Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125125

Remove {Component} usages of metal-component

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Discarded
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Metal.js
    • Labels:
      None

      Description

      Part of our plan to remove usages of metal in DXP codebase

      The goal of this task is to remove existing usages of {Component} from the metal-component package. 

      The intended order of removal is:

      1. Replace the classes/function calls with standard APIs or specific DXP functions when needed.
      2. Remove imports of these functions/objects in the .js files
      3. Remove the dependencies in package.json file if it's declared there

      Do not look for occurrences in neither .npmbundlerrc nor .eslintrc.js files as these will be dealt with in a separate task.

      For the case of {Component} class, the features offered may be substituted by equivalent React components. Part of this work will be application-specific.

      Here is a list of usages

      Family Module File Usage
      commerce commerce-cart-taglib META-INF/resources/add_to_cart/AddToCart.es.js Component
          package.json  
        commerce-frontend-taglib META-INF/resources/account_selector/AccountSelector.es.js Component
          META-INF/resources/account_selector/AccountsTable.es.js Component
          META-INF/resources/account_selector/AccountsTableItem.es.js Component
          META-INF/resources/account_selector/OrdersTable.es.js Component
          META-INF/resources/add_account_modal/AddAccountModal.es.js Component
          META-INF/resources/add_organizations_modal/AddOrganizationsModal.es.js Component
          META-INF/resources/add_organizations_modal/OrganizationInputItem.es.js Component
          META-INF/resources/add_organizations_modal/OrganizationListItem.es.js Component
          META-INF/resources/add_to_cart/AddToCartButton.es.js Component
          META-INF/resources/add_to_tick_item/AddToTickItem.es.js Component
          META-INF/resources/address_modal/AddressModal.es.js Component
          META-INF/resources/autocomplete_item/AutocompleteItem.es.js Component
          META-INF/resources/compare_checkbox/CompareCheckbox.es.js Component
          META-INF/resources/input_utils/CommerceInputText.js Component
          META-INF/resources/price/Price.es.js Component
          META-INF/resources/product_card/ProductCard.es.js Component
          META-INF/resources/product_details_modal/ProductDetailsModal.js Component
          META-INF/resources/products_compare/ProductsCompare.es.js Component
          META-INF/resources/products_compare/ProductsCompareItem.es.js Component
          META-INF/resources/quantity_selector/QuantitySelector.es.js Component
          META-INF/resources/search_bar/SearchBar.es.js Component
          META-INF/resources/search_results/SearchResults.es.js Component
          META-INF/resources/user_invitation_modal/serInvitationModal.es.js Component
          META-INF/resources/user_roles_modal/RoleInputItem.es.js Component
          META-INF/resources/user_roles_modal/RoleListItem.es.js Component
          META-INF/resources/user_roles_modal/UserRolesModal.es.js Component
          META-INF/resources/user_utils/UserInputItem.es.js Component
          META-INF/resources/user_utils/UserInvitation.es.js Component
          META-INF/resources/user_utils/UserListItem.es.js Component
          package.json  
        commerce-product-content-web META-INF/resources/js/AutoField.es.js Component
          META-INF/resources/js/CategorySelector.es.js Component
          META-INF/resources/js/TagSelector.es.js Component
          package.json  
        commerce-product-options-web META-INF/resources/CPOptionDetail.es.js Component
          META-INF/resources/CPOptionList.es.js Component
          META-INF/resources/CPOptionsEditor.es.js Component
          META-INF/resources/CPOptionValueDetail.es.js Component
          META-INF/resources/CPOptionValueList.es.js Component
          META-INF/resources/CPOptionValuesEditor.es.js Component
          package.json  
        commerce-theme-minium-impl META-INF/resources/action_menus/MiniumActionsMenu.es.js Component
          package.json  
      dynamic-data-mapping dynamic-data-mapping-form-builder test/js/_fixtures_/MockField.es.js Component
        dynamic-data-mapping-form-field-type META-INF/resources/components/FormPortal/FormPortal.es.js Component
          META-INF/resources/components/Tooltip/Tooltip.es.js Component
          META-INF/resources/FieldBase/FieldBase.es.js Component
          package.json  
          test/js/_fixtures_/PageRenderer.es.js Component
        dynamic-data-mapping-form-renderer META-INF/resources/js/components/Field/Field.es.js MetalComponent
          META-INF/resources/js/components/Field/MetalFieldAdapter.es.js Component
          package.json  
          test/js/_mock_/MetalFieldMock.es.js Component
      fragment fragment-web package.json  
      frontend-js frontend-js-web META-INF/resources/liferay/ItemSelectorDialog.es.js Component
          META-INF/resources/liferay/PortletBase.es.js Component
          package.json  
      frontend-taglib frontend-taglib-clay package.json  
      journal journal-article-dynamic-data-mapping-form-field-type package.json  
      layout layout-admin-web package.json  
        layout-dynamic-data-mapping-form-field-type package.json  
      product-navigation product-navigation-product-menu-web META-INF/resources/js/PagesTreeEventHandler.es.js Component
      sdk/project-templates project-templates-form-field package.json  
          META-INF/resources/_artifactId_.es.js Component
        portal-tools-soy-builder com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/footer.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/header.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/navigation.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/view.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/footer.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/header.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/navigation.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/view.soy.js metal-component/src/Component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/footer.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/header.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/navigation.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/view.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/footer.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/header.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/navigation.soy.js metal-component/src/all/component
          com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/view.soy.js metal-component/src/all/component

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            daniel.sanz Daniel Sanz
            Recent user:
            Chema Balsas
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package