@zohodesk/library-platform 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/bc/action-band/Constants.js +4 -0
- package/es/bc/action-band/Properties.js +10 -0
- package/es/bc/action-band/index.js +1 -0
- package/es/bc/app-context/Properties.js +19 -0
- package/es/bc/float-pagination/ActionHandlers.js +1 -0
- package/es/bc/float-pagination/Constants.js +4 -0
- package/es/bc/float-pagination/Properties.js +18 -0
- package/es/bc/float-pagination/index.js +2 -0
- package/es/bc/index.js +0 -1
- package/es/bc/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/search/Constants.js +3 -0
- package/es/bc/search/EventHandlers.js +1 -0
- package/es/bc/search/Properties.js +11 -0
- package/es/bc/search/index.js +2 -0
- package/es/bc/search-box/ActionHandlers.js +1 -0
- package/es/bc/search-box/Constants.js +4 -0
- package/es/bc/search-box/Properties.js +18 -0
- package/es/bc/search-box/index.js +2 -0
- package/es/bc/sort-by/ActionHandlers.js +1 -1
- package/es/bc/sort-by/Constants.js +2 -2
- package/es/bc/sort-by/Properties.js +13 -11
- package/es/bc/sort-by/Types.js +10 -0
- package/es/bc/sort-by/types/SortByBehaviourState.js +1 -0
- package/es/bc/zfield/Constants.js +5 -1
- package/es/bc/zlist/Constants.js +0 -1
- package/es/bc/zlist/Types.js +27 -0
- package/es/bc/zrecord/Constants.js +2 -0
- package/es/bc/zrecord/Schemas.js +29 -0
- package/es/bc/zrecord/Types.js +45 -0
- package/es/cc/action-band/Properties.js +83 -0
- package/es/cc/action-band/SdkContract.js +13 -0
- package/es/cc/action-band/constants/Events.js +1 -0
- package/es/cc/action-band/constants/ExternalConstants.js +7 -0
- package/es/cc/action-band/constants/index.js +2 -0
- package/es/cc/action-band/index.js +3 -0
- package/es/cc/action-icon/Properties.js +20 -1
- package/es/cc/checkbox/Properties.js +2 -1
- package/es/cc/email/Properties.js +8 -0
- package/es/cc/fields/field/Types.js +31 -23
- package/es/cc/floating-pagination/Constants.js +6 -0
- package/es/cc/floating-pagination/Events.js +8 -0
- package/es/cc/floating-pagination/Properties.js +56 -0
- package/es/cc/floating-pagination/index.js +3 -0
- package/es/cc/highlighted-value/Properties.js +18 -0
- package/es/cc/link/Properties.js +13 -3
- package/es/cc/list-item/Properties.js +10 -0
- package/es/cc/more-dropdown/Properties.js +4 -0
- package/es/cc/radio-dropdown/Constants.js +6 -0
- package/es/cc/radio-dropdown/Data.js +1 -0
- package/es/cc/radio-dropdown/Events.js +42 -0
- package/es/cc/radio-dropdown/Properties.js +142 -0
- package/es/cc/radio-dropdown/index.js +4 -0
- package/es/cc/ribbon/Properties.js +59 -0
- package/es/cc/ribbon/index.js +1 -0
- package/es/cc/search/Constants.js +6 -0
- package/es/cc/search/Events.js +17 -0
- package/es/cc/search/Properties.js +11 -0
- package/es/cc/search/index.js +3 -0
- package/es/cc/sort-dropdown/Constants.js +7 -0
- package/es/cc/sort-dropdown/Events.js +46 -0
- package/es/cc/sort-dropdown/Properties.js +135 -0
- package/es/cc/sort-dropdown/index.js +3 -0
- package/es/cc/switch/Properties.js +2 -2
- package/es/cc/table-connected/Properties.js +16 -0
- package/es/cc/table-connected/SdkContract.js +24 -0
- package/es/cc/table-connected/constants/Events.js +2 -0
- package/es/cc/table-list/Actions.js +0 -2
- package/es/cc/table-list/Constants.js +1 -1
- package/es/cc/table-list/Events.js +0 -2
- package/es/cc/table-list/Properties.js +35 -38
- package/es/cc/table-list/data-types/FloatPaginationConfig.js +1 -0
- package/es/cc/tag/Constants.js +6 -0
- package/es/cc/tag/Data.js +14 -0
- package/es/cc/tag/EventHandlers.js +1 -0
- package/es/cc/tag/Events.js +26 -0
- package/es/cc/{tags/model/TagModel.js → tag/Model.js} +6 -2
- package/es/cc/tag/Properties.js +104 -0
- package/es/cc/tag/index.js +6 -0
- package/es/cc/tags/Data.js +0 -6
- package/es/cc/tags/model/index.js +1 -1
- package/es/cc/tags-list-dropdown/Constants.js +5 -0
- package/es/cc/tags-list-dropdown/Data.js +1 -0
- package/es/cc/tags-list-dropdown/Events.js +14 -0
- package/es/cc/tags-list-dropdown/Properties.js +96 -0
- package/es/cc/tags-list-dropdown/index.js +4 -0
- package/es/index.js +1 -1
- package/es/library/behaviours/action-band/adapters/controllers/AbstractController.js +10 -0
- package/es/library/behaviours/action-band/adapters/controllers/MountController.js +21 -0
- package/es/library/behaviours/action-band/adapters/gateways/Repository.js +24 -0
- package/es/library/behaviours/action-band/adapters/gateways/Service.js +11 -0
- package/es/library/behaviours/action-band/applications/interfaces/State.js +1 -0
- package/es/library/behaviours/action-band/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/action-band/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/action-band/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/action-band/applications/interfaces/input/InitializeInput.js +1 -0
- package/es/library/behaviours/action-band/applications/usecases/AbstractUseCase.js +17 -0
- package/es/library/behaviours/action-band/applications/usecases/InitializeUseCase.js +20 -0
- package/es/library/behaviours/action-band/domain/entities/ActionBand.js +95 -0
- package/es/library/behaviours/action-band/domain/entities/interfaces/IActionBand.js +1 -0
- package/es/library/behaviours/action-band/domain/entities/interfaces/IActionModel.js +1 -0
- package/es/library/behaviours/action-band/domain/entities/interfaces/IApiPropsModel.js +1 -0
- package/es/library/behaviours/action-band/domain/entities/interfaces/Properties.js +1 -0
- package/es/library/behaviours/action-band/frameworks/ActionBandBehaviourFactory.js +21 -0
- package/es/library/behaviours/action-band/frameworks/ActionHandlersFactory.js +17 -0
- package/es/library/behaviours/clip-wrap/adapters/controllers/DestructController.js +3 -3
- package/es/library/behaviours/clip-wrap/adapters/controllers/InitializeController.js +3 -3
- package/es/library/behaviours/clip-wrap/adapters/gateway/Service.js +4 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/AbstractController.js +9 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/DestructController.js +18 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/FloatPaginationController.js +25 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/InitializeController.js +18 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/ScrollBottomController.js +23 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/ScrollTopController.js +23 -0
- package/es/library/behaviours/float-pagination/adapters/controllers/UpdateIndexController.js +30 -0
- package/es/library/behaviours/float-pagination/adapters/gateway/Repository.js +27 -0
- package/es/library/behaviours/float-pagination/adapters/gateway/Service.js +20 -0
- package/es/library/behaviours/float-pagination/adapters/presenter/Presenter.js +16 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/DestructInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/FloatPaginationInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/InitializeInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollTopInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/ScrollbottomInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/input/UpdateIndexInputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/output/FloatPaginationOutputModel.js +1 -0
- package/es/library/behaviours/float-pagination/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/float-pagination/applications/usecases/AbstractUseCase.js +17 -0
- package/es/library/behaviours/float-pagination/applications/usecases/DestructUsecase.js +15 -0
- package/es/library/behaviours/float-pagination/applications/usecases/FloatPaginationUseCase.js +31 -0
- package/es/library/behaviours/float-pagination/applications/usecases/InitializeUsecase.js +16 -0
- package/es/library/behaviours/float-pagination/applications/usecases/ScrollBottomUseCase.js +23 -0
- package/es/library/behaviours/float-pagination/applications/usecases/ScrollTopUseCase.js +23 -0
- package/es/library/behaviours/float-pagination/applications/usecases/UpdateIndexUseCase.js +28 -0
- package/es/library/behaviours/float-pagination/domain/entities/FloatPagination.js +28 -0
- package/es/library/behaviours/float-pagination/domain/entities/interfaces/IFloatPagination.js +1 -0
- package/es/library/behaviours/float-pagination/frameworks/ui/ActionsHandlerFactory.js +37 -0
- package/es/library/behaviours/float-pagination/frameworks/ui/FloatPaginationBehaviourFactory.js +21 -0
- package/es/library/behaviours/float-pagination/frameworks/utils.js +70 -0
- package/es/library/behaviours/keyboard-controls/adapters/gateways/Repository.js +2 -1
- package/es/library/behaviours/keyboard-controls/applications/usecases/SpacePress.js +1 -1
- package/es/library/behaviours/keyboard-controls/domain/entities/KeyboardControls.js +6 -1
- package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.js +21 -18
- package/es/library/behaviours/search/adapters/controllers/AbstractController.js +9 -0
- package/es/library/behaviours/search/adapters/controllers/SearchController.js +26 -0
- package/es/library/behaviours/search/adapters/controllers/UpdatePropertiesController.js +27 -0
- package/es/library/behaviours/search/adapters/gateway/Repository.js +20 -0
- package/es/library/behaviours/search/adapters/gateway/Service.js +12 -0
- package/es/library/behaviours/search/adapters/presenter/Presenter.js +16 -0
- package/es/library/behaviours/search/adapters/presenter/SearchTranslator.js +6 -0
- package/es/library/behaviours/search/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/input/SearchInputModel.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/search/applications/interfaces/output/SearchOutputModel.js +1 -0
- package/es/library/behaviours/search/applications/usecases/AbstractUseCase.js +17 -0
- package/es/library/behaviours/search/applications/usecases/SearchUseCase.js +28 -0
- package/es/library/behaviours/search/applications/usecases/UpdatePropertiesUsecase.js +25 -0
- package/es/library/behaviours/search/domain/entities/Search.js +23 -0
- package/es/library/behaviours/search/domain/entities/interfaces/ISearch.js +1 -0
- package/es/library/behaviours/search/frameworks/ui/EventHandlerFactory.js +25 -0
- package/es/library/behaviours/search/frameworks/ui/SearchStringStoreBehaviourFactory.js +26 -0
- package/es/library/behaviours/search-box/adapters/controllers/AbstractController.js +9 -0
- package/es/library/behaviours/search-box/adapters/controllers/ClearSearchController.js +21 -0
- package/es/library/behaviours/search-box/adapters/controllers/SearchController.js +26 -0
- package/es/library/behaviours/search-box/adapters/gateway/Repository.js +28 -0
- package/es/library/behaviours/search-box/adapters/gateway/Service.js +12 -0
- package/es/library/behaviours/search-box/adapters/presenter/Presenter.js +21 -0
- package/es/library/behaviours/search-box/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/input/ClearSearchInputModel.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/input/SearchInputModel.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/search-box/applications/interfaces/output/SearchOutputModel.js +1 -0
- package/es/library/behaviours/search-box/applications/usecases/AbstractUseCase.js +17 -0
- package/es/library/behaviours/search-box/applications/usecases/ClearSearchUseCase.js +24 -0
- package/es/library/behaviours/search-box/applications/usecases/SearchUseCase.js +25 -0
- package/es/library/behaviours/search-box/domain/entities/Search.js +22 -0
- package/es/library/behaviours/search-box/domain/entities/interfaces/ISearch.js +1 -0
- package/es/library/behaviours/search-box/frameworks/ui/ActionsHandlerFactory.js +24 -0
- package/es/library/behaviours/search-box/frameworks/ui/SearchBehaviourFactory.js +26 -0
- package/es/library/behaviours/sort-by/adapters/controllers/{SortBy.js → SortByController.js} +6 -6
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +18 -6
- package/es/library/behaviours/sort-by/adapters/gateway/Service.js +2 -2
- package/es/library/behaviours/sort-by/adapters/presenter/Presenter.js +8 -1
- package/es/library/behaviours/sort-by/applications/interfaces/input/UpdateSortByUseCaseInputModel.js +1 -0
- package/es/library/behaviours/sort-by/applications/interfaces/output/SearchOutputModel.js +1 -0
- package/es/library/behaviours/sort-by/applications/usecases/{SortBy.js → SortByUseCase.js} +12 -13
- package/es/library/behaviours/sort-by/applications/usecases/UpdateSortByUseCase.js +25 -0
- package/es/library/behaviours/sort-by/domain/entities/SortBy.js +11 -25
- package/es/library/behaviours/sort-by/frameworks/ui/ActionsHandlerFactory.js +7 -5
- package/es/library/behaviours/sort-by/frameworks/ui/SortByBehaviourFactory.js +17 -7
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +5 -0
- package/es/library/custom-component/domain/entities/ComponentProperties.js +1 -1
- package/es/library/custom-component/domain/entities/Logger.js +3 -3
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +7 -1
- package/es/library/dot/components/table-list/adapters/controllers/ScrollController.js +2 -2
- package/es/library/dot/components/table-list/adapters/controllers/index.js +0 -2
- package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.js +1 -2
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +24 -1
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +19 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -6
- package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/Search.js +41 -0
- package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/SearchTranslator.js +16 -0
- package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/SearchView.js +37 -0
- package/es/library/dot/legacy-to-new-arch/action-icon/frameworks/ui/ActionIconView.js +5 -1
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPagination.js +10 -0
- package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPaginationView.js +47 -0
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +6 -1
- package/es/library/dot/legacy-to-new-arch/index.js +3 -1
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/list-item/frameworks/ui/ListItemView.js +4 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +125 -0
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +23 -0
- package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/Ribbon.js +10 -0
- package/es/library/dot/legacy-to-new-arch/ribbon/frameworks/ui/RibbonView.js +37 -0
- package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdown.js +31 -0
- package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdownTranslator.js +33 -0
- package/es/library/dot/legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdownView.js +83 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxField.js +12 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/CheckboxFieldView.js +8 -5
- package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailField.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.js +8 -6
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +22 -5
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/labeled-avatar-field/frameworks/ui/LabeledAvatarFieldView.js +22 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/link-field/frameworks/ui/LinkFieldView.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +46 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownField.js +49 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/RadioDropdownFieldView.js +43 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +3 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField.js +14 -4
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +8 -4
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tag-field/frameworks/ui/TagFieldView.js +34 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-field/frameworks/ui/TagsFieldView.js +18 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownField.js +44 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/tags-list-dropdown-field/frameworks/ui/TagsListDropdownFieldView.js +24 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/EventHandlersFactory.js +26 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextField.js +23 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/text-field/frameworks/ui/TextFieldView.js +20 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.js +11 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/Tag.module.css +8 -0
- package/es/library/dot/legacy-to-new-arch/tag/frameworks/ui/TagView.js +96 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagContractAdapter.js +24 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdown.js +12 -0
- package/es/library/dot/legacy-to-new-arch/tags-list-dropdown/frameworks/ui/TagsListDropdownView.js +42 -0
- package/es/platform/client-actions/components/interfaces/ActionViewModel.js +1 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +4 -0
- package/es/platform/client-scripts/bc/zclient-scripts-execution/Constants.js +2 -4
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/ClientScriptExecutor.js +33 -60
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptModel.js +5 -1
- package/es/platform/components/index.js +2 -1
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +73 -0
- package/es/platform/components/smart-action-band/adapters/presenters/translators/interfaces/ActionBandTranslatorState.js +1 -0
- package/es/platform/components/smart-action-band/adapters/presenters/utils/DefaultClientActions.js +147 -0
- package/es/platform/components/smart-action-band/adapters/resources/SmartActionBandResource.js +46 -0
- package/es/platform/components/smart-action-band/applications/interfaces/ISmartActionBandResource.js +1 -0
- package/es/platform/components/smart-action-band/applications/interfaces/State.js +1 -0
- package/es/platform/components/smart-action-band/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/platform/components/smart-action-band/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/components/smart-action-band/applications/usecases/AbstractUseCase.js +18 -0
- package/es/platform/components/smart-action-band/domain/entities/interfaces/Properties.js +1 -0
- package/es/platform/components/smart-action-band/frameworks/EventHandlersFactory.js +106 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBand.js +5 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandFactory.js +55 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandSdkFactory.js +24 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +48 -0
- package/es/platform/components/table-connected/adapters/controllers/ScrollController.js +29 -8
- package/es/platform/components/table-connected/adapters/controllers/ScrollEndReachedController.js +23 -0
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +172 -8
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +39 -6
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +7 -1
- package/es/platform/components/table-connected/frameworks/TableConnectedView.js +2 -0
- package/es/platform/data-source/http-template/getComponentMapping.js +17 -0
- package/es/platform/data-source/http-template/getRecords.js +1 -0
- package/es/platform/data-source/index.js +3 -1
- package/es/platform/sdk/frameworks/Sdk.js +7 -0
- package/es/platform/zfield/applications/usecases/FetchSuccessUseCase.js +33 -0
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +5 -0
- package/es/platform/zlist/adapters/controllers/RefreshRecordsRequestedController.js +21 -0
- package/es/platform/zlist/adapters/controllers/SortController.js +2 -2
- package/es/platform/zlist/adapters/gateways/Repository.js +6 -11
- package/es/platform/zlist/adapters/gateways/Service.js +2 -0
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +57 -13
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +57 -49
- package/es/platform/zlist/adapters/presenters/translators/FieldVariations.js +25 -0
- package/es/platform/zlist/adapters/presenters/translators/Header.js +29 -21
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +3 -3
- package/es/platform/zlist/adapters/presenters/translators/Row.js +16 -2
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +3 -1
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +87 -12
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +66 -11
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +33 -8
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +33 -8
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +29 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +23 -27
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +106 -17
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +100 -26
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +32 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +167 -26
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +16 -9
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +32 -9
- package/es/platform/zlist/adapters/presenters/utils/DateAndTimeFormat.js +25 -0
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +7 -4
- package/es/platform/zlist/adapters/presenters/utils/fieldSortLabels.js +38 -0
- package/es/platform/zlist/applications/entities-factory/ListFactory.js +2 -2
- package/es/platform/zlist/applications/interfaces/input/GetSortConfigUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/RefreshRecordsRequestedUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/interfaces/input/SetSortConfigUseCaseInputModel.js +1 -0
- package/es/platform/zlist/applications/usecases/GetSortConfigUseCase.js +17 -0
- package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +1 -1
- package/es/platform/zlist/applications/usecases/RefreshRecordsRequestedUseCase.js +17 -0
- package/es/platform/zlist/applications/usecases/SetSortConfigUseCase.js +26 -0
- package/es/platform/zlist/applications/usecases/SortUseCase.js +6 -6
- package/es/platform/zlist/domain/entities/List.js +32 -16
- package/es/platform/zlist/domain/entities/interfaces/Properties.js +5 -5
- package/es/platform/zlist/frameworks/EventHandlersFactory.js +3 -4
- package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +15 -13
- package/es/platform/zrecord/adapters/controllers/FilterRecordLocalController.js +28 -0
- package/es/platform/zrecord/adapters/gateways/Repository.js +5 -2
- package/es/platform/zrecord/adapters/gateways/Service.js +2 -0
- package/es/platform/zrecord/applications/entities-factory/RecordsManagerFactory.js +2 -2
- package/es/platform/zrecord/applications/interfaces/input/ClearAllFiltersUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/FilterRecordInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/GetFilterConditionUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/GetFilterConfigUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/RefreshRecordsUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/SetFilterUseCaseInputModel.js +1 -0
- package/es/platform/zrecord/applications/usecases/ClearAllFiltersUseCase.js +24 -0
- package/es/platform/zrecord/applications/usecases/FilterRecordUseCase.js +21 -0
- package/es/platform/zrecord/applications/usecases/GetFilterConditionUseCase.js +15 -0
- package/es/platform/zrecord/applications/usecases/GetFilterConfigUseCase.js +15 -0
- package/es/platform/zrecord/applications/usecases/RefreshRecordsUseCase.js +14 -0
- package/es/platform/zrecord/applications/usecases/SetFilterUseCase.js +29 -0
- package/es/platform/zrecord/domain/entities/Filter.js +247 -0
- package/es/platform/zrecord/domain/entities/RecordsManager.js +43 -1
- package/es/platform/zrecord/domain/entities/interfaces/IFilter.js +1 -0
- package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +4 -1
- package/es/platform/zrecord/frameworks/RecordBehaviourFactory.js +11 -1
- package/package.json +20 -19
- package/es/bc/sort-by/SortOrderEnum.js +0 -8
- package/es/library/behaviours/sort-by/frameworks/ui/DemoBehaviour.js +0 -20
- package/es/library/dot/components/table-list/adapters/controllers/SortByController.js +0 -25
- package/es/library/dot/components/table-list/adapters/controllers/SortedController.js +0 -18
- package/es/library/dot/components/table-list/frameworks/ui/handlers/HandleSortClick.js +0 -12
- package/es/platform/zlist/adapters/gateways/SortBy.js +0 -38
- package/es/platform/zlist/domain/entities/SortBy.js +0 -58
- /package/es/{library/behaviours/sort-by/applications/interfaces/output/SortByOutputModel.js → bc/float-pagination/types/FloatPaginationBehaviourState.js} +0 -0
- /package/es/{platform/zlist/applications/interfaces/gateways/ISortBy.js → bc/list-selection/Types.js} +0 -0
- /package/es/{platform/zlist/domain/entities/interfaces/ISortBy.js → bc/search-box/types/SearchBehaviourState.js} +0 -0
package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import MultiListFieldModel from "../../../../../../cc/fields/multi-select/Model";
|
|
4
|
-
import ColouredMultiListFieldModel from "../../../../../../cc/fields/coloured-multi-select/Model";
|
|
5
3
|
|
|
6
4
|
const MultiSelectFieldTranslator = _ref => {
|
|
7
5
|
let {
|
|
@@ -12,10 +10,7 @@ const MultiSelectFieldTranslator = _ref => {
|
|
|
12
10
|
isRead
|
|
13
11
|
} = _ref;
|
|
14
12
|
const {
|
|
15
|
-
|
|
16
|
-
name,
|
|
17
|
-
subType,
|
|
18
|
-
pickListValues
|
|
13
|
+
subType
|
|
19
14
|
} = field;
|
|
20
15
|
const updatedValue = value.split(';').map(item => item === '' ? '-None-' : item);
|
|
21
16
|
|
|
@@ -23,34 +18,113 @@ const MultiSelectFieldTranslator = _ref => {
|
|
|
23
18
|
return ColouredMultiSelectFieldTranslator(field, updatedValue, appendToActionPayload, textOverflowMode, isRead);
|
|
24
19
|
}
|
|
25
20
|
|
|
26
|
-
return
|
|
27
|
-
uiType: uiType || FieldTypes.MultiSelectField,
|
|
28
|
-
appendToActionPayload,
|
|
29
|
-
name,
|
|
30
|
-
options: pickListValues,
|
|
31
|
-
isRead,
|
|
32
|
-
value: updatedValue,
|
|
33
|
-
textOverflowMode
|
|
34
|
-
});
|
|
21
|
+
return StandardMultiSelectFieldTranslator(field, updatedValue, appendToActionPayload, textOverflowMode, isRead);
|
|
35
22
|
};
|
|
36
23
|
|
|
37
24
|
export default MultiSelectFieldTranslator;
|
|
38
25
|
|
|
39
|
-
const
|
|
26
|
+
const StandardMultiSelectFieldTranslator = (field, value, appendToActionPayload, textOverflowMode, isRead) => {
|
|
40
27
|
const {
|
|
41
28
|
uiType,
|
|
42
29
|
name,
|
|
43
|
-
|
|
30
|
+
displayLabel
|
|
44
31
|
} = field;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
const selectedOptions = value.map(item => ({
|
|
33
|
+
id: item,
|
|
34
|
+
label: item
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
switch (uiType) {
|
|
38
|
+
case FieldTypes.TextField:
|
|
39
|
+
{
|
|
40
|
+
let valueText = value.join(', ');
|
|
41
|
+
return {
|
|
42
|
+
type: FieldTypes.TextField,
|
|
43
|
+
fieldName: name,
|
|
44
|
+
text: valueText,
|
|
45
|
+
isDotted: textOverflowMode === 'clip',
|
|
46
|
+
weight: isRead ? undefined : 'bold',
|
|
47
|
+
tooltip: valueText,
|
|
48
|
+
appendToActionPayload,
|
|
49
|
+
isRead,
|
|
50
|
+
textOverflowMode
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
case FieldTypes.TagsListDropdownField:
|
|
55
|
+
return {
|
|
56
|
+
type: FieldTypes.TagsListDropdownField,
|
|
57
|
+
// fieldName: name,
|
|
58
|
+
text: `${selectedOptions.length} ${displayLabel}`,
|
|
59
|
+
tags: selectedOptions,
|
|
60
|
+
hasSearch: selectedOptions.length > 5,
|
|
61
|
+
searchPlaceholder: 'Search',
|
|
62
|
+
dropdownHeading: displayLabel,
|
|
63
|
+
emptyMessage: 'No items found',
|
|
64
|
+
appendToActionPayload,
|
|
65
|
+
isRead,
|
|
66
|
+
textOverflowMode
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
case FieldTypes.TagsField:
|
|
70
|
+
default:
|
|
71
|
+
return {
|
|
72
|
+
type: FieldTypes.TagsField,
|
|
73
|
+
fieldName: name,
|
|
74
|
+
title: displayLabel,
|
|
75
|
+
isWrapped: textOverflowMode !== 'clip',
|
|
76
|
+
tags: selectedOptions,
|
|
77
|
+
appendToActionPayload,
|
|
78
|
+
isRead,
|
|
79
|
+
textOverflowMode
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const ColouredMultiSelectFieldTranslator = (field, value, appendToActionPayload, textOverflowMode, isRead) => {
|
|
85
|
+
const {
|
|
86
|
+
uiType,
|
|
48
87
|
name,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
value
|
|
54
|
-
|
|
88
|
+
pickListValues,
|
|
89
|
+
displayLabel
|
|
90
|
+
} = field;
|
|
91
|
+
const selectedOptions = value.map(item => {
|
|
92
|
+
const option = pickListValues.find(opt => opt.value === item);
|
|
93
|
+
return {
|
|
94
|
+
id: option.value,
|
|
95
|
+
label: option.value,
|
|
96
|
+
color: option.colorCode || ''
|
|
97
|
+
};
|
|
55
98
|
});
|
|
99
|
+
|
|
100
|
+
switch (uiType) {
|
|
101
|
+
case FieldTypes.TextField:
|
|
102
|
+
{
|
|
103
|
+
let valueText = value.join(', ');
|
|
104
|
+
return {
|
|
105
|
+
type: FieldTypes.TextField,
|
|
106
|
+
fieldName: name,
|
|
107
|
+
text: valueText,
|
|
108
|
+
isDotted: textOverflowMode === 'clip',
|
|
109
|
+
weight: isRead ? undefined : 'bold',
|
|
110
|
+
tooltip: valueText,
|
|
111
|
+
appendToActionPayload,
|
|
112
|
+
isRead,
|
|
113
|
+
textOverflowMode
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
case FieldTypes.TagsField:
|
|
118
|
+
default:
|
|
119
|
+
return {
|
|
120
|
+
type: FieldTypes.TagsField,
|
|
121
|
+
fieldName: name,
|
|
122
|
+
title: displayLabel,
|
|
123
|
+
isWrapped: textOverflowMode !== 'clip',
|
|
124
|
+
tags: selectedOptions,
|
|
125
|
+
appendToActionPayload,
|
|
126
|
+
isRead,
|
|
127
|
+
textOverflowMode
|
|
128
|
+
};
|
|
129
|
+
}
|
|
56
130
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import NumberFieldModel from "../../../../../../cc/fields/number/Model";
|
|
4
3
|
|
|
5
4
|
const NumberLineFieldTranslator = _ref => {
|
|
6
5
|
let {
|
|
@@ -14,14 +13,22 @@ const NumberLineFieldTranslator = _ref => {
|
|
|
14
13
|
uiType,
|
|
15
14
|
name
|
|
16
15
|
} = field;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
|
|
17
|
+
switch (uiType) {
|
|
18
|
+
case FieldTypes.TextField:
|
|
19
|
+
default:
|
|
20
|
+
return {
|
|
21
|
+
type: FieldTypes.TextField,
|
|
22
|
+
fieldName: name,
|
|
23
|
+
text: value,
|
|
24
|
+
isDotted: textOverflowMode === 'clip',
|
|
25
|
+
weight: isRead ? undefined : 'bold',
|
|
26
|
+
tooltip: value,
|
|
27
|
+
appendToActionPayload,
|
|
28
|
+
isRead,
|
|
29
|
+
textOverflowMode
|
|
30
|
+
};
|
|
31
|
+
}
|
|
25
32
|
};
|
|
26
33
|
|
|
27
34
|
export default NumberLineFieldTranslator;
|
package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import PercentFieldModel from "../../../../../../cc/fields/percent/Model";
|
|
4
3
|
|
|
5
4
|
const PercentageFieldTranslator = _ref => {
|
|
6
5
|
let {
|
|
@@ -14,14 +13,22 @@ const PercentageFieldTranslator = _ref => {
|
|
|
14
13
|
uiType,
|
|
15
14
|
name
|
|
16
15
|
} = field;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
|
|
17
|
+
switch (uiType) {
|
|
18
|
+
case FieldTypes.TextField:
|
|
19
|
+
default:
|
|
20
|
+
return {
|
|
21
|
+
type: FieldTypes.TextField,
|
|
22
|
+
fieldName: name,
|
|
23
|
+
text: value,
|
|
24
|
+
isDotted: textOverflowMode === 'clip',
|
|
25
|
+
weight: isRead ? undefined : 'bold',
|
|
26
|
+
tooltip: value,
|
|
27
|
+
appendToActionPayload,
|
|
28
|
+
isRead,
|
|
29
|
+
textOverflowMode
|
|
30
|
+
};
|
|
31
|
+
}
|
|
25
32
|
};
|
|
26
33
|
|
|
27
34
|
export default PercentageFieldTranslator;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import PhoneFieldModel from "../../../../../../cc/fields/phone/Model";
|
|
4
3
|
|
|
5
4
|
const PhoneFieldTranslator = _ref => {
|
|
6
5
|
let {
|
|
@@ -14,14 +13,38 @@ const PhoneFieldTranslator = _ref => {
|
|
|
14
13
|
uiType,
|
|
15
14
|
name
|
|
16
15
|
} = field;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
|
|
17
|
+
switch (uiType) {
|
|
18
|
+
case FieldTypes.TextField:
|
|
19
|
+
return {
|
|
20
|
+
type: FieldTypes.TextField,
|
|
21
|
+
fieldName: name,
|
|
22
|
+
text: value,
|
|
23
|
+
isDotted: textOverflowMode === 'clip',
|
|
24
|
+
weight: isRead ? undefined : 'bold',
|
|
25
|
+
tooltip: value,
|
|
26
|
+
appendToActionPayload,
|
|
27
|
+
isRead,
|
|
28
|
+
textOverflowMode
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
case FieldTypes.LinkField:
|
|
32
|
+
default:
|
|
33
|
+
return {
|
|
34
|
+
type: FieldTypes.LinkField,
|
|
35
|
+
fieldName: name,
|
|
36
|
+
text: value,
|
|
37
|
+
variant: 'secondary',
|
|
38
|
+
href: `tel:${value}`,
|
|
39
|
+
opensNewTab: true,
|
|
40
|
+
isDotted: textOverflowMode === 'clip',
|
|
41
|
+
weight: isRead ? undefined : 'bold',
|
|
42
|
+
tooltip: value,
|
|
43
|
+
appendToActionPayload,
|
|
44
|
+
isRead,
|
|
45
|
+
textOverflowMode
|
|
46
|
+
};
|
|
47
|
+
}
|
|
25
48
|
};
|
|
26
49
|
|
|
27
50
|
export default PhoneFieldTranslator;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
|
|
4
|
-
import ColouredPickListFieldModel from "../../../../../../cc/fields/coloured-pick-list/Model";
|
|
3
|
+
const EMPTY_ARRAY = [];
|
|
5
4
|
|
|
6
5
|
const PickListFieldTranslator = _ref => {
|
|
7
6
|
let {
|
|
@@ -12,9 +11,6 @@ const PickListFieldTranslator = _ref => {
|
|
|
12
11
|
isRead
|
|
13
12
|
} = _ref;
|
|
14
13
|
const {
|
|
15
|
-
uiType,
|
|
16
|
-
name,
|
|
17
|
-
pickListValues,
|
|
18
14
|
subType
|
|
19
15
|
} = field;
|
|
20
16
|
|
|
@@ -22,34 +18,179 @@ const PickListFieldTranslator = _ref => {
|
|
|
22
18
|
return ColouredPickListFieldTranslator(field, value, appendToActionPayload, textOverflowMode, isRead);
|
|
23
19
|
}
|
|
24
20
|
|
|
25
|
-
return
|
|
26
|
-
uiType: uiType || FieldTypes.PickListField,
|
|
27
|
-
appendToActionPayload,
|
|
28
|
-
options: pickListValues,
|
|
29
|
-
name,
|
|
30
|
-
isRead,
|
|
31
|
-
value,
|
|
32
|
-
textOverflowMode
|
|
33
|
-
});
|
|
21
|
+
return StandardPickListFieldTranslator(field, value, appendToActionPayload, textOverflowMode, isRead);
|
|
34
22
|
};
|
|
35
23
|
|
|
36
24
|
export default PickListFieldTranslator;
|
|
37
25
|
|
|
38
|
-
const
|
|
26
|
+
const StandardPickListFieldTranslator = (field, value, appendToActionPayload, textOverflowMode, isRead) => {
|
|
39
27
|
const {
|
|
40
28
|
uiType,
|
|
41
29
|
name,
|
|
42
|
-
pickListValues
|
|
30
|
+
pickListValues = EMPTY_ARRAY,
|
|
31
|
+
displayLabel
|
|
43
32
|
} = field;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
|
|
34
|
+
switch (uiType) {
|
|
35
|
+
case FieldTypes.HighlightedValueField:
|
|
36
|
+
return {
|
|
37
|
+
type: FieldTypes.HighlightedValueField,
|
|
38
|
+
fieldName: name,
|
|
39
|
+
text: value,
|
|
40
|
+
color: 'grey',
|
|
41
|
+
tooltip: value,
|
|
42
|
+
cursor: 'default',
|
|
43
|
+
appendToActionPayload,
|
|
44
|
+
isRead,
|
|
45
|
+
textOverflowMode
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
case FieldTypes.TagField:
|
|
49
|
+
return {
|
|
50
|
+
type: FieldTypes.TagField,
|
|
51
|
+
fieldName: name,
|
|
52
|
+
label: value,
|
|
53
|
+
tooltip: value,
|
|
54
|
+
cursor: 'default',
|
|
55
|
+
appendToActionPayload,
|
|
56
|
+
isRead,
|
|
57
|
+
textOverflowMode
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
case FieldTypes.RadioDropdownField:
|
|
61
|
+
{
|
|
62
|
+
const options = pickListValues.map(option => ({
|
|
63
|
+
id: option.value,
|
|
64
|
+
value: option.value,
|
|
65
|
+
secondaryValue: ''
|
|
66
|
+
}));
|
|
67
|
+
return {
|
|
68
|
+
type: FieldTypes.RadioDropdownField,
|
|
69
|
+
fieldName: name,
|
|
70
|
+
options,
|
|
71
|
+
selectedId: value,
|
|
72
|
+
selectedValue: value,
|
|
73
|
+
dropdownHeading: displayLabel,
|
|
74
|
+
hasSearch: pickListValues.length > 4,
|
|
75
|
+
isDotted: textOverflowMode === 'clip',
|
|
76
|
+
weight: isRead ? undefined : 'bold',
|
|
77
|
+
searchPlaceholder: 'Search',
|
|
78
|
+
emptyStateTitle: 'No results found',
|
|
79
|
+
isDisabled: false,
|
|
80
|
+
isReadOnly: false,
|
|
81
|
+
appendToActionPayload,
|
|
82
|
+
isRead,
|
|
83
|
+
textOverflowMode
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
case FieldTypes.TextField:
|
|
88
|
+
default:
|
|
89
|
+
return {
|
|
90
|
+
type: FieldTypes.TextField,
|
|
91
|
+
fieldName: name,
|
|
92
|
+
text: value,
|
|
93
|
+
isDotted: textOverflowMode === 'clip',
|
|
94
|
+
weight: isRead ? undefined : 'bold',
|
|
95
|
+
tooltip: value,
|
|
96
|
+
appendToActionPayload,
|
|
97
|
+
isRead,
|
|
98
|
+
textOverflowMode
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const colorMapper = {
|
|
104
|
+
"#1e1e1e": "grey",
|
|
105
|
+
"#fd1d1d": "red",
|
|
106
|
+
"#fd5901": "orange",
|
|
107
|
+
"#71c02b": "green",
|
|
108
|
+
"#405de6": "blue"
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const ColouredPickListFieldTranslator = (field, value, appendToActionPayload, textOverflowMode, isRead) => {
|
|
112
|
+
const {
|
|
113
|
+
uiType,
|
|
50
114
|
name,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
115
|
+
displayLabel,
|
|
116
|
+
pickListValues = EMPTY_ARRAY
|
|
117
|
+
} = field;
|
|
118
|
+
const selectedOption = pickListValues.find(option => option.value === value);
|
|
119
|
+
|
|
120
|
+
switch (uiType) {
|
|
121
|
+
case FieldTypes.TextField:
|
|
122
|
+
return {
|
|
123
|
+
type: FieldTypes.TextField,
|
|
124
|
+
fieldName: name,
|
|
125
|
+
text: value,
|
|
126
|
+
isDotted: textOverflowMode === 'clip',
|
|
127
|
+
weight: isRead ? undefined : 'bold',
|
|
128
|
+
tooltip: value,
|
|
129
|
+
appendToActionPayload,
|
|
130
|
+
isRead,
|
|
131
|
+
textOverflowMode
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
case FieldTypes.HighlightedValueField:
|
|
135
|
+
{
|
|
136
|
+
const highlightedValueColor = colorMapper[selectedOption?.colorCode?.toLowerCase()] || 'grey';
|
|
137
|
+
return {
|
|
138
|
+
type: FieldTypes.HighlightedValueField,
|
|
139
|
+
fieldName: name,
|
|
140
|
+
text: value,
|
|
141
|
+
color: highlightedValueColor,
|
|
142
|
+
isDotted: textOverflowMode === 'clip',
|
|
143
|
+
weight: isRead ? undefined : 'bold',
|
|
144
|
+
tooltip: value,
|
|
145
|
+
cursor: 'default',
|
|
146
|
+
appendToActionPayload,
|
|
147
|
+
isRead,
|
|
148
|
+
textOverflowMode
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
case FieldTypes.RadioDropdownField:
|
|
153
|
+
{
|
|
154
|
+
const options = pickListValues.map(option => ({
|
|
155
|
+
id: option.value,
|
|
156
|
+
value: option.value,
|
|
157
|
+
secondaryValue: ''
|
|
158
|
+
}));
|
|
159
|
+
const highlightedValueColor = colorMapper[selectedOption?.colorCode?.toLowerCase()] || 'grey';
|
|
160
|
+
return {
|
|
161
|
+
type: FieldTypes.RadioDropdownField,
|
|
162
|
+
fieldName: name,
|
|
163
|
+
options,
|
|
164
|
+
color: highlightedValueColor,
|
|
165
|
+
selectedId: value,
|
|
166
|
+
selectedValue: value,
|
|
167
|
+
dropdownHeading: displayLabel,
|
|
168
|
+
isDotted: textOverflowMode === 'clip',
|
|
169
|
+
weight: isRead ? undefined : 'bold',
|
|
170
|
+
hasSearch: pickListValues.length > 4,
|
|
171
|
+
searchPlaceholder: 'Search',
|
|
172
|
+
emptyStateTitle: 'No results found',
|
|
173
|
+
isDisabled: false,
|
|
174
|
+
isReadOnly: false,
|
|
175
|
+
appendToActionPayload,
|
|
176
|
+
isRead,
|
|
177
|
+
textOverflowMode
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
case FieldTypes.TagField:
|
|
182
|
+
default:
|
|
183
|
+
{
|
|
184
|
+
return {
|
|
185
|
+
type: FieldTypes.TagField,
|
|
186
|
+
fieldName: name,
|
|
187
|
+
label: value,
|
|
188
|
+
color: selectedOption.colorCode || '',
|
|
189
|
+
tooltip: value,
|
|
190
|
+
cursor: 'default',
|
|
191
|
+
appendToActionPayload,
|
|
192
|
+
isRead
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
55
196
|
};
|
package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import TextFieldModel from "../../../../../../cc/fields/text/Model";
|
|
4
3
|
|
|
5
4
|
const SingleLineFieldTranslator = _ref => {
|
|
6
5
|
let {
|
|
@@ -14,14 +13,22 @@ const SingleLineFieldTranslator = _ref => {
|
|
|
14
13
|
uiType,
|
|
15
14
|
name
|
|
16
15
|
} = field;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
|
|
17
|
+
switch (uiType) {
|
|
18
|
+
case FieldTypes.TextField:
|
|
19
|
+
default:
|
|
20
|
+
return {
|
|
21
|
+
type: FieldTypes.TextField,
|
|
22
|
+
fieldName: name,
|
|
23
|
+
text: value,
|
|
24
|
+
isDotted: textOverflowMode === 'clip',
|
|
25
|
+
weight: isRead ? undefined : 'bold',
|
|
26
|
+
tooltip: value,
|
|
27
|
+
appendToActionPayload,
|
|
28
|
+
isRead,
|
|
29
|
+
textOverflowMode
|
|
30
|
+
};
|
|
31
|
+
}
|
|
25
32
|
};
|
|
26
33
|
|
|
27
34
|
export default SingleLineFieldTranslator;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// import FieldModel from '@platform/zfield/entities/interfaces/FieldModel';
|
|
2
2
|
import FieldTypes from "../../../../../../cc/fields/field/Types";
|
|
3
|
-
import UrlFieldModel from "../../../../../../cc/fields/url/Model";
|
|
4
3
|
|
|
5
4
|
const URLFieldTranslator = _ref => {
|
|
6
5
|
let {
|
|
@@ -14,14 +13,38 @@ const URLFieldTranslator = _ref => {
|
|
|
14
13
|
uiType,
|
|
15
14
|
name
|
|
16
15
|
} = field;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
|
|
17
|
+
switch (uiType) {
|
|
18
|
+
case FieldTypes.TextField:
|
|
19
|
+
return {
|
|
20
|
+
type: FieldTypes.TextField,
|
|
21
|
+
fieldName: name,
|
|
22
|
+
text: value,
|
|
23
|
+
isDotted: textOverflowMode === 'clip',
|
|
24
|
+
weight: isRead ? undefined : 'bold',
|
|
25
|
+
tooltip: value,
|
|
26
|
+
appendToActionPayload,
|
|
27
|
+
isRead,
|
|
28
|
+
textOverflowMode
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
case FieldTypes.LinkField:
|
|
32
|
+
default:
|
|
33
|
+
return {
|
|
34
|
+
type: FieldTypes.LinkField,
|
|
35
|
+
fieldName: name,
|
|
36
|
+
text: value,
|
|
37
|
+
variant: 'secondary',
|
|
38
|
+
href: value,
|
|
39
|
+
opensNewTab: true,
|
|
40
|
+
isDotted: textOverflowMode === 'clip',
|
|
41
|
+
weight: isRead ? undefined : 'bold',
|
|
42
|
+
tooltip: value,
|
|
43
|
+
appendToActionPayload,
|
|
44
|
+
isRead,
|
|
45
|
+
textOverflowMode
|
|
46
|
+
};
|
|
47
|
+
}
|
|
25
48
|
};
|
|
26
49
|
|
|
27
50
|
export default URLFieldTranslator;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
2
|
+
export function DateAndTimeFormat(_ref) {
|
|
3
|
+
let {
|
|
4
|
+
value,
|
|
5
|
+
isDateTimeField,
|
|
6
|
+
isShortenDateTimeInfo
|
|
7
|
+
} = _ref;
|
|
8
|
+
const date = value instanceof Date ? value : new Date(value);
|
|
9
|
+
if (isNaN(date.getTime())) return '';
|
|
10
|
+
const formattedDate = i18NProviderUtils.userDateFormat(date, {}, '', '', false, _ref2 => {
|
|
11
|
+
let {
|
|
12
|
+
dateFormat,
|
|
13
|
+
dateTimeFormat,
|
|
14
|
+
timeFormat
|
|
15
|
+
} = _ref2;
|
|
16
|
+
const isCurrentDate = date.toDateString() === new Date().toDateString();
|
|
17
|
+
|
|
18
|
+
if (isDateTimeField && isShortenDateTimeInfo && isCurrentDate) {
|
|
19
|
+
return timeFormat;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return isDateTimeField ? dateTimeFormat : dateFormat;
|
|
23
|
+
});
|
|
24
|
+
return formattedDate;
|
|
25
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
|
+
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
2
3
|
import { TableListConstants } from "../../../../../cc/table-list";
|
|
3
4
|
import { CheckboxConstants } from "../../../../../cc/checkbox";
|
|
4
5
|
import ClientAction from "../../../../client-actions/behaviour/zclient-actions/domain/entities/ClientAction";
|
|
6
|
+
import { SORT_CLICKED } from "../../../../../cc/table-column-sort/Constants";
|
|
7
|
+
import { SMART_TABLE_SORT_BY_REQUESTED } from "../../../../../cc/table-connected/constants/Events";
|
|
5
8
|
const CHECKBOX_TOGGLED = CheckboxConstants.CHECKBOX_TOGGLED;
|
|
6
9
|
const TABLE_LIST_TOGGLE_ALL_SELECTION = TableListConstants.TABLE_LIST_TOGGLE_ALL_SELECTION;
|
|
7
10
|
|
|
@@ -22,8 +25,8 @@ class DefaultClientActions {
|
|
|
22
25
|
name: 'SortBy',
|
|
23
26
|
propertiesValueMapping: {
|
|
24
27
|
value: '{{@context.field.sort.order}}',
|
|
25
|
-
ascendingLabel: '
|
|
26
|
-
descendingLabel: '
|
|
28
|
+
ascendingLabel: i18NProviderUtils.getI18NValue('crm.report.wizard.groupings.asc'),
|
|
29
|
+
descendingLabel: i18NProviderUtils.getI18NValue('crm.report.wizard.groupings.desc')
|
|
27
30
|
},
|
|
28
31
|
eventMappings: [{
|
|
29
32
|
payloadValueMapping: {
|
|
@@ -31,8 +34,8 @@ class DefaultClientActions {
|
|
|
31
34
|
name: '{{@context.field.name}}',
|
|
32
35
|
order: `{{@payload.value}}`
|
|
33
36
|
},
|
|
34
|
-
sourceEvent:
|
|
35
|
-
targetEvent:
|
|
37
|
+
sourceEvent: SORT_CLICKED,
|
|
38
|
+
targetEvent: SMART_TABLE_SORT_BY_REQUESTED,
|
|
36
39
|
id: '4000000080005'
|
|
37
40
|
}],
|
|
38
41
|
id: '4000000080003'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
2
|
+
export function getFieldTypeSortLabels(fieldType) {
|
|
3
|
+
let ascendLabel = 'Ascending';
|
|
4
|
+
let descendLabel = 'Descending';
|
|
5
|
+
|
|
6
|
+
switch (fieldType) {
|
|
7
|
+
case 'Number':
|
|
8
|
+
case 'Decimal':
|
|
9
|
+
case 'Percent':
|
|
10
|
+
case 'Currency':
|
|
11
|
+
ascendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.number.ascending'));
|
|
12
|
+
descendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.number.descending'));
|
|
13
|
+
break;
|
|
14
|
+
|
|
15
|
+
case 'Date':
|
|
16
|
+
case 'DateTime':
|
|
17
|
+
ascendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.date.ascending'));
|
|
18
|
+
descendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.date.descending'));
|
|
19
|
+
break;
|
|
20
|
+
|
|
21
|
+
case 'Text':
|
|
22
|
+
case 'MultiLine':
|
|
23
|
+
case 'Email':
|
|
24
|
+
case 'Phone':
|
|
25
|
+
case 'Picklist':
|
|
26
|
+
case 'Multiselect':
|
|
27
|
+
case 'LookUp':
|
|
28
|
+
default:
|
|
29
|
+
ascendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.text.ascending'));
|
|
30
|
+
descendLabel = i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.tooltip', i18NProviderUtils.getI18NValue('support.platform.smart.libraries.sort.order.text.descending'));
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
ascendLabel,
|
|
36
|
+
descendLabel
|
|
37
|
+
};
|
|
38
|
+
}
|