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

Remove {State}, {Config} usages of metal-state

    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 {State}, {Config} from the metal-incremental-dom 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.

      Here is a list of usages

      Family Module File Usage
      account account-admin-web META-INF/resources/account_entries_admin/js/AccountUsersManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/account_entries_admin/js/PersonAccountEntryEventHandler.es.js Config
          META-INF/resources/account_entries_admin/js/SelectAccountUsersManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/account_groups_admin/js/AccountGroupAccountEntriesManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/account_users_admin/js/AccountUserEmailDomainValidator.es.js Config
      asset asset-list-web META-INF/resources/js/AssetEntryListDropdownDefaultEventHandler.es.js Config
          META-INF/resources/js/EmptyResultMessageDefaultEventHandler.es.js Config
          META-INF/resources/js/InfoListProviderDropdownDefaultEventHandler.es.js Config
          META-INF/resources/js/ListItemsDropdownDefaultEventHandler.es.js Config
          META-INF/resources/js/ManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      blogs blogs-web META-INF/resources/blogs_admin/js/ElementsDefaultEventHandler.es.js Config
          META-INF/resources/blogs_admin/js/ManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      commerce commerce-cart-taglib META-INF/resources/add_to_cart/AddToCart.es.js Config
          package.json  
        commerce-frontend-taglib package.json  
        commerce-product-content-web META-INF/resources/js/CategorySelector.es.js Config
          META-INF/resources/js/TagSelector.es.js Config
          package.json  
        commerce-product-options-web META-INF/resources/CPOptionDetail.es.js Config
          META-INF/resources/CPOptionList.es.js Config
          META-INF/resources/CPOptionsEditor.es.js Config
          META-INF/resources/CPOptionValueDetail.es.js Config
          META-INF/resources/CPOptionValueList.es.js Config
          META-INF/resources/CPOptionValuesEditor.es.js Config
          package.json  
        commerce-theme-minium-impl package.json  
      depot depot-web META-INF/resources/js/DepotAdminManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      dynamic-data-mapping dynamic-data-mapping-form-builder META-INF/resources/js/components/FormBuilder/FieldActionsDropDown.es.js Config
          META-INF/resources/js/components/FormBuilder/FormBuilder.es.js Config
          META-INF/resources/js/components/FormBuilder/FormBuilderWithLayoutProvider.es.js Config
          META-INF/resources/js/components/FormBuilder/props.es.js Config
          META-INF/resources/js/components/FormBuilder/withActionableFields.es.js Config
          META-INF/resources/js/components/FormBuilder/withMultiplePages.es.js Config
          META-INF/resources/js/components/LayoutProvider/LayoutProvider.es.js Config
          META-INF/resources/js/components/Sidebar/Sidebar.es.js Config
          META-INF/resources/js/util/config.es.js Config
          package.json  
          test/js/_fixtures_/MockField.es.js Config
        dynamic-data-mapping-form-field-type META-INF/resources/components/FormPortal/FormPortal.es.js Config
          META-INF/resources/components/Tooltip/Tooltip.es.js Config
          META-INF/resources/FieldBase/FieldBase.es.js Config
          META-INF/resources/FieldBase/withLocale.es.js Config
          test/js/_fixtures_ /PageRenderer.es.js Config
        dynamic-data-mapping-form-renderer META-INF/resources/js/components/Field/MetalFieldAdapter.es.js Config
          META-INF/resources/js/util/ReactComponentAdapter.es.js Config
          test/js/_mock_/MetalFieldMock.es.js Config
        dynamic-data-mapping-form-web META-INF/resources/admin.js/main.es.js Config
          META-INF/resources/admin/js/components/PreviewButton/PreviewButton.es.js Config
          META-INF/resources/admin/js/components/PublishButton/PublishButton.es.js Config
          META-INF/resources/admin/js/components/ShareFormModal/Email.es.js Config
          META-INF/resources/admin/js/util/AutoSave.es.js Config
          META-INF/resources/admin/js/util/StateSyncronizer.es.js Config
          package.json  
      fragment fragment-web META-INF/resources/js/FragmentCollectionsViewDefaultEventHandler.es.js Config
          META-INF/resources/js/FragmentEntryDropdownDefaultEventHandler.es.js Config
          META-INF/resources/js/ManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      frontend-js frontend-js-web META-INF/resources/liferay/CompatibilityEventProxy.es.js State
          META-INF/resources/liferay/ItemSelectorDialog.es.js Config
        frontend-taglib-clay META-INF/resources/management_toolbar/ManagementToolbar.es.js Config
          package.json  
      item-selector item-selector-taglib META-INF/resources/repository_entry_browser/js/ItemSelectorRepositoryEntryBrowser.es.js Config
          package.json  
      journal journal-web META-INF/resources/js/elementsDefaultEventHandler.es.js Config
          META-INF/resources/js/JournalPortlet.es.js Config
          META-INF/resources/js/ManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/js/MoveEntries.es.js Config
          package.json  
      layout layout-admin-web META-INF/resources/js/SelectCollectionManagementToolbarDefaultEventHandler.es.js Config
          package.json  
        layout-page-template-admin-web META-INF/resources/js/DisplayPageManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/js/LayoutPageTemplateEntryManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/js/MasterLayoutManagementToolbarDefaultEventHandler.es.js Config
      map map-common META-INF/resources/js/GeoJSONBase.es.js State, Config
          META-INF/resources/js/MapBase.es.js State, Config
          META-INF/resources/js/MarkerBase.es.js State, Config
          package.json  
        map-google-maps META-INF/resources/js/GoogleMapsDialog.es.js State, Config
          META-INF/resources/js/GoogleMapsGeocoder.es.js State
          META-INF/resources/js/GoogleMapsSearch.es.js State, Config
          package.json  
        map-openstreetmap META-INF/resources/js/MapOpenStreetMap.es.js Config
          META-INF/resources/js/OpenStreetMapDialog.es.js State, Config
          META-INF/resources/js/OpenStreetMapGeocoder.es.js State
          package.json  
      product-navigation product-navigation-product-menu-web package.json  
      sdk/project-templates project-templates-form-field META-INF/resources/_artifactId_.es.js Config
          package.json  
          com/liferay/project/templates/form/field/ProjectTemplatesFormFieldTest.java Config
      redirect redirect-web META-INF/resources/js/RedirectManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/js/RedirectNotFoundEntriesManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      site-navigation site-navigation-admin-web META-INF/resources/js/ManagementToolbarDefaultEventHandler.js Config
          package.json  
      style-book style-book-web META-INF/resources/js/ManagementToolbarDefaultEventHandler.es.js Config
          META-INF/resources/js/StyleBookEntryDropdownDefaultEventHandler.es.js Config
          package.json  
      translation translation-web META-INF/resources/js/translate/TranslationManagementToolbarDefaultEventHandler.es.js Config
          package.json  
      trash trash-web META-INF/resources/js/ManagementToolbarDefaultEventHandler.es.js Config
      users-admin users-admin-web META-INF/resources/js/UserNameFields.es.js Config
          package.json  

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              daniel.sanz Daniel Sanz
              Engineering Assignee:
              Krešimir Čoko
              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