@zohodesk/library-platform 1.1.12 → 1.2.0
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/.DS_Store +0 -0
- 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/column-chooser/EventHandlers.js +1 -2
- 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/zform/Properties.js +20 -0
- package/es/bc/zform/Symbol.js +3 -0
- package/es/bc/zlist/Constants.js +0 -1
- package/es/bc/zlist/Types.js +27 -0
- package/es/bc/zrecord/Constants.js +4 -0
- package/es/bc/zrecord/Schemas.js +29 -0
- package/es/bc/zrecord/Types.js +45 -0
- package/es/cc/action-band/Properties.js +120 -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 +9 -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/component/LifeCycleEventsEnum.js +1 -0
- package/es/cc/email/Properties.js +8 -0
- package/es/cc/fields/currency/Properties.js +9 -0
- package/es/cc/fields/decimal/Properties.js +9 -0
- package/es/cc/fields/email/Properties.js +9 -0
- package/es/cc/fields/field/Types.js +31 -23
- package/es/cc/fields/lookup/Properties.js +10 -26
- package/es/cc/fields/multi-line/Properties.js +1 -0
- package/es/cc/fields/number/Properties.js +10 -1
- package/es/cc/fields/phone/Properties.js +9 -0
- package/es/cc/fields/text/Properties.js +2 -2
- package/es/cc/fields/url/Properties.js +9 -0
- 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-column-chooser/Constants.js +2 -1
- package/es/cc/table-connected/Properties.js +16 -0
- package/es/cc/table-connected/SdkContract.js +46 -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/cc/text/Properties.js +100 -0
- package/es/cc/textbox/Properties.js +1 -1
- package/es/index.js +2 -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/clip-wrap/applications/usecases/ClipWrapUpdateUseCase.js +19 -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 +32 -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 +9 -3
- package/es/library/custom-component/applications/usecases/DispatchUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/InitializeUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/MountUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/SetRefUseCase.js +7 -0
- package/es/library/custom-component/applications/usecases/UnmountUseCase.js +1 -0
- package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +1 -0
- package/es/library/custom-component/domain/entities/Component.js +1 -0
- package/es/library/custom-component/domain/entities/ComponentProperties.js +1 -1
- package/es/library/custom-component/domain/entities/Logger.js +7 -12
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +7 -1
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +2 -0
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +2 -0
- package/es/library/dot/components/form-fields/email/frameworks/ui/Email.js +1 -1
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +2 -0
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +2 -0
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +2 -0
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextArea.js +1 -1
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +4 -2
- package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +2 -0
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +2 -0
- 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/header/HeaderData.js +1 -1
- 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 +40 -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/library/dot/legacy-to-new-arch/text/frameworks/ui/Text.js +2 -2
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +22 -1
- package/es/platform/.DS_Store +0 -0
- package/es/platform/app-context-behaviour/adapters/controllers/AbstractController.js +9 -0
- package/es/platform/app-context-behaviour/adapters/controllers/UpdatePropertiesController.js +32 -0
- package/es/platform/app-context-behaviour/adapters/gateway/Repository.js +22 -0
- package/es/platform/app-context-behaviour/adapters/gateway/Service.js +10 -0
- package/es/platform/app-context-behaviour/adapters/presenter/Presenter.js +16 -0
- package/es/platform/app-context-behaviour/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/gateways/IService.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/input/UpdatePropertiesInputModel.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/output/BehaviourOutputModel.js +1 -0
- package/es/platform/app-context-behaviour/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/app-context-behaviour/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/app-context-behaviour/applications/usecases/UpdatePropertiesUsecase.js +25 -0
- package/es/platform/app-context-behaviour/domain/entities/AppContext.js +44 -0
- package/es/platform/app-context-behaviour/domain/entities/interfaces/IAppContext.js +1 -0
- package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +2 -2
- package/es/platform/app-context-behaviour/frameworks/EventHandlerFactory.js +22 -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/column-chooser/adapters/controllers/ColumnChooserOpenController.js +14 -6
- package/es/platform/column-chooser/adapters/controllers/ColumnChooserUpdateController.js +22 -0
- package/es/platform/column-chooser/adapters/gateways/Repository.js +12 -1
- package/es/platform/column-chooser/adapters/gateways/Service.js +2 -0
- package/es/platform/column-chooser/applications/interfaces/input/ColumnChooserUpdateInput.js +1 -0
- package/es/platform/column-chooser/applications/usecases/ColumnChooserSaveUseCase.js +8 -1
- package/es/platform/column-chooser/applications/usecases/ColumnChooserUpdateUseCase.js +35 -0
- package/es/platform/column-chooser/domain/entities/ColumnChooserImp.js +6 -0
- package/es/platform/column-chooser/frameworks/EventHandlersFactory.js +6 -4
- package/es/platform/components/index.js +2 -1
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +132 -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 +179 -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 +147 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBand.js +5 -0
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandFactory.js +58 -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 +224 -8
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +39 -12
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +4 -2
- 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/fetchLookupFields.js +0 -6
- 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/http-template/getSingleRecord.js +51 -0
- package/es/platform/data-source/index.js +5 -1
- package/es/platform/data-source/utils/validation-rules/FieldConditions.js +1 -1
- package/es/platform/sdk/frameworks/Sdk.js +7 -0
- package/es/platform/sdk-behaviour/adapters/controllers/InitializeController.js +7 -2
- package/es/platform/sdk-behaviour/applications/usecases/CreateResourceInstanceUseCase.js +10 -1
- 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/zform/adapters/controllers/GetInitialRecordSuccessController.js +31 -0
- package/es/platform/zform/adapters/gateway/FormRepository.js +10 -2
- package/es/platform/zform/adapters/gateway/Service.js +2 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +9 -0
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +11 -7
- package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +1 -0
- package/es/platform/zform/adapters/presenter/utils/sanitizeHtmlString.js +2 -2
- package/es/platform/zform/applications/interfaces/input/GetInitialRecordSuccessUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/usecases/GetInitialRecordSuccessUseCase.js +132 -0
- package/es/platform/zform/applications/usecases/InitializeUseCase.js +54 -30
- package/es/platform/zform/applications/usecases/LookupFieldSuccessUseCase.js +5 -0
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +12 -11
- package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +21 -8
- package/es/platform/zform/domain/ZField.js +7 -5
- package/es/platform/zform/domain/ZForm.js +97 -20
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +23 -5
- package/es/platform/zform/frameworks/ui/ZFormBehaviourFactory.js +2 -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/controllers/UpdateRecordController.js +30 -0
- package/es/platform/zrecord/adapters/gateways/Repository.js +5 -2
- package/es/platform/zrecord/adapters/gateways/Service.js +4 -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/interfaces/input/UpdateRecordInputModel.js +0 -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/applications/usecases/UpdateRecordUseCase.js +30 -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 +7 -1
- package/es/platform/zrecord/frameworks/RecordBehaviourFactory.js +11 -1
- package/package.json +26 -28
- 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/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +0 -28
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +0 -31
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import Table from '@zohodesk-private/desk-components/es/table/Table/Table';
|
|
3
|
+
import FloatingPagination from "../../../../legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPagination";
|
|
3
4
|
import Header from "./sub-components/Header";
|
|
4
5
|
import Body from "./sub-components/Body";
|
|
5
6
|
import Rows from "./sub-components/Rows";
|
|
@@ -35,6 +36,7 @@ function TableListView(_ref2, _ref) {
|
|
|
35
36
|
rowActionsConfig,
|
|
36
37
|
keyboardControlsConfig,
|
|
37
38
|
textOverflowConfig,
|
|
39
|
+
floatPaginationConfig,
|
|
38
40
|
selection,
|
|
39
41
|
emptyStateUiType,
|
|
40
42
|
isError
|
|
@@ -56,6 +58,16 @@ function TableListView(_ref2, _ref) {
|
|
|
56
58
|
const isReorderEnabled = reOrderConfig.isEnabled;
|
|
57
59
|
const isSelectionEnabled = selectionConfig.isEnabled;
|
|
58
60
|
const isMultiline = textOverflowConfig.mode === 'wrap';
|
|
61
|
+
const {
|
|
62
|
+
isEnabled: isPaginationEnabled,
|
|
63
|
+
scrollCount,
|
|
64
|
+
totalCount,
|
|
65
|
+
scrollToUpTooltip,
|
|
66
|
+
scrollToDownTooltip,
|
|
67
|
+
isTopReached,
|
|
68
|
+
isBottomReached,
|
|
69
|
+
isVisible
|
|
70
|
+
} = floatPaginationConfig;
|
|
59
71
|
const className = getTableListClassName({
|
|
60
72
|
isKeyboardControlsEnabled,
|
|
61
73
|
isReorderEnabled,
|
|
@@ -70,6 +82,9 @@ function TableListView(_ref2, _ref) {
|
|
|
70
82
|
"aria-hidden": "true"
|
|
71
83
|
}), /*#__PURE__*/React.createElement(Table, {
|
|
72
84
|
ref: TableRef,
|
|
85
|
+
customStyle: !isLoading && isPaginationEnabled ? {
|
|
86
|
+
table: style.paginationSpace
|
|
87
|
+
} : undefined,
|
|
73
88
|
$event_onScroll: e => handleScroll(dispatch, {
|
|
74
89
|
scrollEvent: e
|
|
75
90
|
})
|
|
@@ -110,7 +125,15 @@ function TableListView(_ref2, _ref) {
|
|
|
110
125
|
}), /*#__PURE__*/React.createElement(Loading, {
|
|
111
126
|
isLoading: isLoading,
|
|
112
127
|
hasRows: hasRows
|
|
113
|
-
})), renderColumnResizingLine(resizerState)
|
|
128
|
+
})), renderColumnResizingLine(resizerState), isPaginationEnabled && isVisible && scrollCount > 0 && totalCount !== undefined && /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: style.pagination
|
|
130
|
+
}, /*#__PURE__*/React.createElement(FloatingPagination, {
|
|
131
|
+
text: `${scrollCount}/${totalCount}`,
|
|
132
|
+
scrollToUpTooltip: scrollToUpTooltip,
|
|
133
|
+
scrollToDownTooltip: scrollToDownTooltip,
|
|
134
|
+
isScrollToUpDisabled: isTopReached,
|
|
135
|
+
isScrollToDownDisabled: isBottomReached
|
|
136
|
+
})));
|
|
114
137
|
}
|
|
115
138
|
|
|
116
139
|
function renderHeader(_ref3) {
|
|
@@ -136,15 +136,19 @@
|
|
|
136
136
|
/* */
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
.paginationSpace {
|
|
140
|
+
padding-bottom: var(--zd_size70) ;
|
|
141
|
+
}
|
|
142
|
+
|
|
139
143
|
.loader {
|
|
140
|
-
padding: var(--
|
|
144
|
+
padding: var(--zd_size20) 0
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
.wrapper {
|
|
144
148
|
height: 100% ;
|
|
145
149
|
width: 100% ;
|
|
146
150
|
z-index: 1;
|
|
147
|
-
position: relative
|
|
151
|
+
position: relative;
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
.hiddenDummyRow {
|
|
@@ -333,4 +337,17 @@
|
|
|
333
337
|
[dir=rtl] .massActionHeader {
|
|
334
338
|
right: var(--local-tableList-massActionHeader-left, 0);
|
|
335
339
|
padding-left: var(--local-tableList-massActionHeader-paddingRight, 0);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.pagination {
|
|
343
|
+
composes: posab from '~@zohodesk/components/lib/common/common.module.css';
|
|
344
|
+
bottom: var(--zd_size20) ;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
[dir=ltr] .pagination {
|
|
348
|
+
right: var(--zd_size30) ;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
[dir=rtl] .pagination {
|
|
352
|
+
left: var(--zd_size30) ;
|
|
336
353
|
}
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js
CHANGED
|
@@ -41,7 +41,7 @@ function HeaderData(_ref) {
|
|
|
41
41
|
},
|
|
42
42
|
$customProps_container: hasActions ? {
|
|
43
43
|
$ui_displayMode: 'flex',
|
|
44
|
-
$ui_alignItems: 'center',
|
|
44
|
+
$ui_alignItems: isMultiline ? 'baseline' : 'center',
|
|
45
45
|
$ui_justifyContent: AlignmentOfFlex[alignment]
|
|
46
46
|
} : null,
|
|
47
47
|
customStyle: hasActions ? {
|
|
@@ -10,6 +10,8 @@ import TableRowProperties from "../../../../../../../../cc/table-list/row/Proper
|
|
|
10
10
|
import TableRowConstants from "../../../../../../../../cc/table-list/row/Constants";
|
|
11
11
|
import { SortableHandle } from 'react-sortable-hoc'; // @ts-ignore
|
|
12
12
|
|
|
13
|
+
import arrowStyle from '@zohodesk/components/es/shared/ArrowIcon/ArrowIcon.module.css'; // @ts-ignore
|
|
14
|
+
|
|
13
15
|
import style from "../../css/TableList.module.css";
|
|
14
16
|
|
|
15
17
|
function RowView(_ref, ref) {
|
|
@@ -63,7 +65,7 @@ function RowView(_ref, ref) {
|
|
|
63
65
|
}
|
|
64
66
|
}),
|
|
65
67
|
customStyle: {
|
|
66
|
-
tableList: style.row
|
|
68
|
+
tableList: `${arrowStyle.transparentContainer} ${style.row}`,
|
|
67
69
|
$pointer: style[`rowCursor_${cursor}`]
|
|
68
70
|
}
|
|
69
71
|
}, renderReorderer({
|
|
@@ -122,11 +124,7 @@ const DragHandler = SortableHandle(_ref3 => {
|
|
|
122
124
|
} = _ref3;
|
|
123
125
|
return /*#__PURE__*/React.createElement(DragHandle, {
|
|
124
126
|
isDisabled: isDisabled,
|
|
125
|
-
|
|
126
|
-
containerProps: {
|
|
127
|
-
$ui_alignItems: isMultiline ? 'start' : 'center'
|
|
128
|
-
}
|
|
129
|
-
},
|
|
127
|
+
iconVerticalPlacement: isMultiline ? 'top' : 'middle',
|
|
130
128
|
customStyle: {
|
|
131
129
|
container: style.dragHandleContainer
|
|
132
130
|
}
|
package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/Search.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../../custom-component";
|
|
2
|
+
import SearchProperties from "../../../../../../../cc/search/Properties";
|
|
3
|
+
import SearchEvents from "../../../../../../../cc/search/Events";
|
|
4
|
+
import SearchView from "./SearchView";
|
|
5
|
+
import SearchBehaviourFactory from "../../../../../../behaviours/search-box/frameworks/ui/SearchBehaviourFactory";
|
|
6
|
+
import { SEARCH_TYPE_CLEAR_REQUESTED, SEARCH_TYPE_UPDATE_REQUESTED } from "../../../../../../../bc/search-box/Constants";
|
|
7
|
+
import SearchTranslator from "./SearchTranslator";
|
|
8
|
+
import { SearchConstants } from "../../../../../../../cc/search";
|
|
9
|
+
let Search = createCustomComponent({
|
|
10
|
+
name: "Search",
|
|
11
|
+
View: SearchView,
|
|
12
|
+
properties: SearchProperties,
|
|
13
|
+
events: SearchEvents,
|
|
14
|
+
transformState: SearchTranslator.transformState,
|
|
15
|
+
eventHandlers: {
|
|
16
|
+
[SearchConstants.SEARCH_REQUESTED]: _ref => {
|
|
17
|
+
let {
|
|
18
|
+
action,
|
|
19
|
+
dispatch
|
|
20
|
+
} = _ref;
|
|
21
|
+
const {
|
|
22
|
+
payload
|
|
23
|
+
} = action;
|
|
24
|
+
dispatch({
|
|
25
|
+
type: SEARCH_TYPE_UPDATE_REQUESTED,
|
|
26
|
+
payload
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
[SearchConstants.SEARCH_CLEARED]: _ref2 => {
|
|
30
|
+
let {
|
|
31
|
+
action,
|
|
32
|
+
dispatch
|
|
33
|
+
} = _ref2;
|
|
34
|
+
dispatch({
|
|
35
|
+
type: SEARCH_TYPE_CLEAR_REQUESTED
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
behaviours: [SearchBehaviourFactory.create()]
|
|
40
|
+
});
|
|
41
|
+
export default Search;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default class SearchTranslator {
|
|
2
|
+
static transformState(state) {
|
|
3
|
+
const {
|
|
4
|
+
search
|
|
5
|
+
} = state.behaviours;
|
|
6
|
+
const {
|
|
7
|
+
searchQuery
|
|
8
|
+
} = search;
|
|
9
|
+
return { ...state,
|
|
10
|
+
viewModel: { ...state.viewModel,
|
|
11
|
+
value: searchQuery
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
package/es/library/dot/legacy-to-new-arch/action-band-components/search/frameworks/ui/SearchView.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SearchBox from '@zohodesk-private/desk-components/es/SearchBox/SearchBox';
|
|
3
|
+
import SearchConstants from "../../../../../../../cc/search/Constants";
|
|
4
|
+
|
|
5
|
+
function SearchView(_ref, ref) {
|
|
6
|
+
let {
|
|
7
|
+
state,
|
|
8
|
+
helpers
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
dispatch
|
|
12
|
+
} = helpers;
|
|
13
|
+
const {
|
|
14
|
+
value
|
|
15
|
+
} = state.viewModel;
|
|
16
|
+
return /*#__PURE__*/React.createElement(SearchBox, {
|
|
17
|
+
getRef: ref,
|
|
18
|
+
value: value,
|
|
19
|
+
onChange: searchQuery => {
|
|
20
|
+
dispatch({
|
|
21
|
+
type: SearchConstants.SEARCH_REQUESTED,
|
|
22
|
+
payload: {
|
|
23
|
+
searchQuery
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
onClear: () => {
|
|
28
|
+
dispatch({
|
|
29
|
+
type: SearchConstants.SEARCH_CLEARED
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
customId: "searchBox",
|
|
33
|
+
testId: "searchBox"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default SearchView;
|
|
@@ -13,6 +13,8 @@ export default function ActionIconView(_ref, ref) {
|
|
|
13
13
|
iconSize,
|
|
14
14
|
hasPadding,
|
|
15
15
|
label,
|
|
16
|
+
colorVariant,
|
|
17
|
+
isHoverable,
|
|
16
18
|
hoverVariant,
|
|
17
19
|
isDisabled
|
|
18
20
|
} = state.properties;
|
|
@@ -23,11 +25,13 @@ export default function ActionIconView(_ref, ref) {
|
|
|
23
25
|
ref: ref,
|
|
24
26
|
$ui_iconName: icon,
|
|
25
27
|
$ui_size: JSON.stringify(iconSize),
|
|
28
|
+
$ui_colorVariant: colorVariant,
|
|
29
|
+
$flag_isHoverable: isHoverable,
|
|
26
30
|
$ui_hoverVariant: hoverVariant,
|
|
27
31
|
$flag_disabled: isDisabled,
|
|
28
32
|
$i18n_tooltip: label,
|
|
29
33
|
$flag_hasPadding: hasPadding,
|
|
30
|
-
customStyle: hoverVariant === 'default' ? {
|
|
34
|
+
customStyle: !isHoverable && hoverVariant === 'default' ? {
|
|
31
35
|
icon: style.cursor_default
|
|
32
36
|
} : undefined,
|
|
33
37
|
$event_onClick: !isDisabled ? () => {
|
|
@@ -13,7 +13,8 @@ function EmailView(_ref, ref) {
|
|
|
13
13
|
let {
|
|
14
14
|
email,
|
|
15
15
|
isDotted,
|
|
16
|
-
weight
|
|
16
|
+
weight,
|
|
17
|
+
tooltip
|
|
17
18
|
} = state.properties;
|
|
18
19
|
return /*#__PURE__*/React.createElement(TableEmail, {
|
|
19
20
|
$method_getRef: ref,
|
|
@@ -27,7 +28,8 @@ function EmailView(_ref, ref) {
|
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
},
|
|
30
|
-
$data_email: email
|
|
31
|
+
$data_email: email,
|
|
32
|
+
$i18n_tooltip: tooltip
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
|
package/es/library/dot/legacy-to-new-arch/floating-pagination/frameworks/ui/FloatingPagination.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import FloatingPaginationProperties from "../../../../../../cc/floating-pagination/Properties";
|
|
3
|
+
import FloatingPaginationView from "./FloatingPaginationView";
|
|
4
|
+
let WrapFloatingPagination = createCustomComponent({
|
|
5
|
+
name: "FloatingPagination",
|
|
6
|
+
View: FloatingPaginationView,
|
|
7
|
+
properties: FloatingPaginationProperties,
|
|
8
|
+
eventHandlers: {}
|
|
9
|
+
});
|
|
10
|
+
export default WrapFloatingPagination;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import FloatingPagination from '@zohodesk-private/desk-components/es/ListPagination/ListPagination';
|
|
3
|
+
import FloatingPaginationConstants from "../../../../../../cc/floating-pagination/Constants";
|
|
4
|
+
|
|
5
|
+
function FloatingPaginationView(_ref, ref) {
|
|
6
|
+
let {
|
|
7
|
+
state,
|
|
8
|
+
helpers
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
dispatch
|
|
12
|
+
} = helpers;
|
|
13
|
+
let {
|
|
14
|
+
text,
|
|
15
|
+
hasScrollControls,
|
|
16
|
+
scrollToUpTooltip,
|
|
17
|
+
scrollToDownTooltip,
|
|
18
|
+
isScrollToUpDisabled,
|
|
19
|
+
isScrollToDownDisabled
|
|
20
|
+
} = state.properties;
|
|
21
|
+
return /*#__PURE__*/React.createElement(FloatingPagination, {
|
|
22
|
+
text: text,
|
|
23
|
+
hasScrollControls: hasScrollControls,
|
|
24
|
+
scrollToUpTooltip: scrollToUpTooltip,
|
|
25
|
+
scrollToDownTooltip: scrollToDownTooltip,
|
|
26
|
+
customProps: {
|
|
27
|
+
container: {
|
|
28
|
+
eleRef: ref
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
isScrollToUpDisabled: isScrollToUpDisabled,
|
|
32
|
+
isScrollToDownDisabled: isScrollToDownDisabled,
|
|
33
|
+
onScrollToUp: () => {
|
|
34
|
+
dispatch({
|
|
35
|
+
type: FloatingPaginationConstants.SCROLL_UP_CLICKED
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
onScrollToDown: () => {
|
|
39
|
+
dispatch({
|
|
40
|
+
type: FloatingPaginationConstants.SCROLL_DOWN_CLICKED
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
testId: "listPagination"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default FloatingPaginationView;
|
package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import StatusBox from "@zohodesk-private/desk-components/es/table/StatusBox/StatusBox";
|
|
3
|
-
import
|
|
3
|
+
import HighlightedValueConstants from "../../../../../../cc/highlighted-value/Constants"; // @ts-ignore
|
|
4
|
+
|
|
4
5
|
import style from "./css/HighlightedValue.module.css";
|
|
5
6
|
|
|
6
7
|
function HighlightedValueView(_ref, ref) {
|
|
@@ -15,6 +16,8 @@ function HighlightedValueView(_ref, ref) {
|
|
|
15
16
|
text,
|
|
16
17
|
color,
|
|
17
18
|
tooltip,
|
|
19
|
+
weight,
|
|
20
|
+
isDotted,
|
|
18
21
|
cursor
|
|
19
22
|
} = state.properties;
|
|
20
23
|
return /*#__PURE__*/React.createElement(StatusBox, {
|
|
@@ -23,6 +26,8 @@ function HighlightedValueView(_ref, ref) {
|
|
|
23
26
|
},
|
|
24
27
|
$ui_color: color,
|
|
25
28
|
$i18n_text: text,
|
|
29
|
+
$ui_weight: weight,
|
|
30
|
+
$flag_wrapText: !isDotted,
|
|
26
31
|
$i18n_tooltip: tooltip,
|
|
27
32
|
customStyle: {
|
|
28
33
|
pointer: cursor === "default" && style.default
|
|
@@ -5,5 +5,7 @@ export { default as HighlightedValue } from "./highlighted-value/frameworks/ui/H
|
|
|
5
5
|
export { default as Link } from "./link/frameworks/ui/Link";
|
|
6
6
|
export { default as Switch } from "./switch/frameworks/ui/Switch";
|
|
7
7
|
export { default as Tags } from "./tags/frameworks/ui/Tags";
|
|
8
|
+
export { default as Tag } from "./tag/frameworks/ui/Tag";
|
|
8
9
|
export { default as Text } from "./text/frameworks/ui/Text";
|
|
9
|
-
export { default as ActionIcon } from "./action-icon/frameworks/ui/ActionIcon";
|
|
10
|
+
export { default as ActionIcon } from "./action-icon/frameworks/ui/ActionIcon";
|
|
11
|
+
export { default as SortDropdown } from "./sort-dropdown/frameworks/ui/SortDropdown";
|
|
@@ -11,11 +11,12 @@ function LinkView(_ref, ref) {
|
|
|
11
11
|
dispatch
|
|
12
12
|
} = helpers;
|
|
13
13
|
let {
|
|
14
|
-
|
|
14
|
+
text,
|
|
15
15
|
variant,
|
|
16
16
|
isDotted,
|
|
17
17
|
weight,
|
|
18
18
|
href,
|
|
19
|
+
tooltip,
|
|
19
20
|
opensNewTab
|
|
20
21
|
} = state.properties;
|
|
21
22
|
let target = opensNewTab ? '_blank' : '_self'; // Will be adopted with properties
|
|
@@ -24,12 +25,13 @@ function LinkView(_ref, ref) {
|
|
|
24
25
|
$customProps_link: {
|
|
25
26
|
ref
|
|
26
27
|
},
|
|
27
|
-
$data_text:
|
|
28
|
+
$data_text: text,
|
|
28
29
|
$data_url: href,
|
|
29
30
|
$data_target: target,
|
|
30
31
|
$ui_variant: variant,
|
|
31
32
|
$flag_wrapText: !isDotted,
|
|
32
33
|
$ui_weight: weight,
|
|
34
|
+
$i18n_tooltip: tooltip,
|
|
33
35
|
$event_onClick: () => {
|
|
34
36
|
dispatch({
|
|
35
37
|
type: LinkConstants.LINK_CLICKED
|
|
@@ -19,6 +19,7 @@ function ListItemView(_ref, ref) {
|
|
|
19
19
|
isActive,
|
|
20
20
|
text,
|
|
21
21
|
secondaryText,
|
|
22
|
+
palette,
|
|
22
23
|
size,
|
|
23
24
|
tooltip,
|
|
24
25
|
icon,
|
|
@@ -41,6 +42,7 @@ function ListItemView(_ref, ref) {
|
|
|
41
42
|
active: isActive,
|
|
42
43
|
value: text,
|
|
43
44
|
secondaryValue: secondaryText,
|
|
45
|
+
palette: palette,
|
|
44
46
|
size: size,
|
|
45
47
|
title: tooltip,
|
|
46
48
|
disableTitle: tooltip,
|
|
@@ -72,6 +74,7 @@ function ListItemView(_ref, ref) {
|
|
|
72
74
|
active: isActive,
|
|
73
75
|
value: text,
|
|
74
76
|
secondaryValue: secondaryText,
|
|
77
|
+
palette: palette,
|
|
75
78
|
size: size,
|
|
76
79
|
title: tooltip,
|
|
77
80
|
disableTitle: tooltip,
|
|
@@ -99,6 +102,7 @@ function ListItemView(_ref, ref) {
|
|
|
99
102
|
active: isActive,
|
|
100
103
|
value: text,
|
|
101
104
|
secondaryValue: secondaryText,
|
|
105
|
+
palette: palette,
|
|
102
106
|
size: size,
|
|
103
107
|
title: tooltip,
|
|
104
108
|
disableTitle: tooltip,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import RadioDropdownProperties from "../../../../../../cc/radio-dropdown/Properties";
|
|
3
|
+
import RadioDropdownEvents from "../../../../../../cc/radio-dropdown/Events";
|
|
4
|
+
import RadioDropdownView from "./RadioDropdownView";
|
|
5
|
+
let RadioDropdown = createCustomComponent({
|
|
6
|
+
name: "RadioDropdown",
|
|
7
|
+
View: RadioDropdownView,
|
|
8
|
+
properties: RadioDropdownProperties,
|
|
9
|
+
events: RadioDropdownEvents,
|
|
10
|
+
eventHandlers: {}
|
|
11
|
+
});
|
|
12
|
+
export default RadioDropdown;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RadioDropdown from '@zohodesk-private/desk-components/es/RadioDropdown/RadioDropdown';
|
|
3
|
+
import HighlightedValue from '@zohodesk-private/desk-components/es/table/StatusBox/StatusBox';
|
|
4
|
+
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import Constants from "../../../../../../cc/radio-dropdown/Constants"; // @ts-ignore
|
|
6
|
+
|
|
7
|
+
import style from "./css/RadioDropdown.module.css";
|
|
8
|
+
let dropboxHeaderElementsOrder = ['heading', 'search'];
|
|
9
|
+
|
|
10
|
+
function RadioDropdownView(_ref, ref) {
|
|
11
|
+
let {
|
|
12
|
+
state,
|
|
13
|
+
helpers
|
|
14
|
+
} = _ref;
|
|
15
|
+
let {
|
|
16
|
+
dispatch
|
|
17
|
+
} = helpers;
|
|
18
|
+
let {
|
|
19
|
+
options,
|
|
20
|
+
hoverVariant,
|
|
21
|
+
color,
|
|
22
|
+
isDotted,
|
|
23
|
+
weight,
|
|
24
|
+
selectedId,
|
|
25
|
+
selectedValue,
|
|
26
|
+
dropdownHeading,
|
|
27
|
+
hasSearch,
|
|
28
|
+
searchPlaceholder,
|
|
29
|
+
emptyStateTitle,
|
|
30
|
+
isDisabled,
|
|
31
|
+
isReadOnly
|
|
32
|
+
} = state.properties;
|
|
33
|
+
|
|
34
|
+
function renderCustomTargetElement(_ref2) {
|
|
35
|
+
let {
|
|
36
|
+
handleTogglePopup,
|
|
37
|
+
selectedValue
|
|
38
|
+
} = _ref2;
|
|
39
|
+
return /*#__PURE__*/React.createElement(HighlightedValue, {
|
|
40
|
+
$ui_color: color,
|
|
41
|
+
$i18n_text: selectedValue,
|
|
42
|
+
$ui_weight: weight,
|
|
43
|
+
$flag_wrapText: !isDotted,
|
|
44
|
+
$i18n_tooltip: selectedValue,
|
|
45
|
+
$event_onClick: !isDisabled ? handleTogglePopup : undefined,
|
|
46
|
+
$render_rightChild: !isDisabled ? /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
name: "ZD-down",
|
|
48
|
+
size: "7",
|
|
49
|
+
iconClass: style.downIcon
|
|
50
|
+
}) : undefined,
|
|
51
|
+
customStyle: isDisabled ? {
|
|
52
|
+
container: style.disabled
|
|
53
|
+
} : undefined
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return /*#__PURE__*/React.createElement(RadioDropdown, {
|
|
58
|
+
getRef: ref,
|
|
59
|
+
options: options,
|
|
60
|
+
selectedId: selectedId,
|
|
61
|
+
selectedValue: selectedValue,
|
|
62
|
+
dropdownHeading: dropdownHeading,
|
|
63
|
+
hasSearch: hasSearch,
|
|
64
|
+
searchPlaceholder: searchPlaceholder,
|
|
65
|
+
emptyStateTitle: emptyStateTitle,
|
|
66
|
+
isDisabled: isDisabled,
|
|
67
|
+
isReadOnly: isReadOnly,
|
|
68
|
+
isAbsolutePositioningNeeded: true,
|
|
69
|
+
defaultPosition: "bottomRight",
|
|
70
|
+
dropboxSize: "large",
|
|
71
|
+
testId: "radioDropdown",
|
|
72
|
+
dropboxHeaderElementsOrder: dropboxHeaderElementsOrder,
|
|
73
|
+
isMultilineEnabled: true,
|
|
74
|
+
isFocusScopeEnabled: true,
|
|
75
|
+
hasListItemActiveStyle: false,
|
|
76
|
+
hasLoading: false,
|
|
77
|
+
hasDropboxGap: true,
|
|
78
|
+
renderCustomTargetElement: color !== 'none' ? renderCustomTargetElement : undefined,
|
|
79
|
+
customProps: {
|
|
80
|
+
dropdown: {
|
|
81
|
+
customProps: {
|
|
82
|
+
dropdown: {
|
|
83
|
+
customStyle: {
|
|
84
|
+
container: style.wrapper
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
targetElement: {
|
|
90
|
+
hoverVariant,
|
|
91
|
+
customProps: {
|
|
92
|
+
text: {
|
|
93
|
+
$flag_dotted: isDotted,
|
|
94
|
+
$ui_weight: weight
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
onChange: _ref3 => {
|
|
100
|
+
let {
|
|
101
|
+
id,
|
|
102
|
+
value,
|
|
103
|
+
secondaryValue
|
|
104
|
+
} = _ref3;
|
|
105
|
+
dispatch({
|
|
106
|
+
type: Constants.RADIO_DROPDOWN_VALUE_CHANGED,
|
|
107
|
+
payload: {
|
|
108
|
+
id,
|
|
109
|
+
value,
|
|
110
|
+
secondaryValue
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
onSearch: value => {
|
|
115
|
+
dispatch({
|
|
116
|
+
type: Constants.RADIO_DROPDOWN_SEARCHED,
|
|
117
|
+
payload: {
|
|
118
|
+
value
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export default RadioDropdownView;
|
package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
.wrapper {
|
|
3
|
+
max-width: 100%
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.disabled {
|
|
7
|
+
opacity: 0.7;
|
|
8
|
+
cursor: not-allowed
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.downIcon {
|
|
12
|
+
flex-shrink: 0;
|
|
13
|
+
opacity: 0.4;
|
|
14
|
+
margin-top: var(--zd_size2)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[dir=ltr] .downIcon {
|
|
18
|
+
margin-left: var(--zd_size4)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[dir=rtl] .downIcon {
|
|
22
|
+
margin-right: var(--zd_size4)
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import RibbonProperties from "../../../../../../cc/ribbon/Properties";
|
|
3
|
+
import RibbonView from "./RibbonView";
|
|
4
|
+
let Ribbon = createCustomComponent({
|
|
5
|
+
name: "Ribbon",
|
|
6
|
+
View: RibbonView,
|
|
7
|
+
properties: RibbonProperties,
|
|
8
|
+
eventHandlers: {}
|
|
9
|
+
});
|
|
10
|
+
export default Ribbon;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Ribbon from '@zohodesk-private/desk-components/es/Ribbon/Ribbon';
|
|
3
|
+
const paletteMapper = {
|
|
4
|
+
secondary: 'grey',
|
|
5
|
+
warning: 'orange'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
function RibbonView(_ref, ref) {
|
|
9
|
+
let {
|
|
10
|
+
state
|
|
11
|
+
} = _ref;
|
|
12
|
+
let {
|
|
13
|
+
text,
|
|
14
|
+
palette,
|
|
15
|
+
iconName,
|
|
16
|
+
iconSize,
|
|
17
|
+
size,
|
|
18
|
+
flagPlacement
|
|
19
|
+
} = state.properties;
|
|
20
|
+
palette = paletteMapper[palette] || palette;
|
|
21
|
+
return /*#__PURE__*/React.createElement(Ribbon, {
|
|
22
|
+
text: text,
|
|
23
|
+
palette: palette,
|
|
24
|
+
iconName: iconName,
|
|
25
|
+
iconSize: iconSize,
|
|
26
|
+
size: size,
|
|
27
|
+
arrowDirection: flagPlacement,
|
|
28
|
+
isInline: true,
|
|
29
|
+
customProps: {
|
|
30
|
+
container: {
|
|
31
|
+
eleRef: ref
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default RibbonView;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createCustomComponent } from "../../../../../custom-component";
|
|
2
|
+
import SortDropdownProperties from "../../../../../../cc/sort-dropdown/Properties";
|
|
3
|
+
import SortDropdownConstants from "../../../../../../cc/sort-dropdown/Constants";
|
|
4
|
+
import SortDropdownEvents from "../../../../../../cc/sort-dropdown/Events";
|
|
5
|
+
import SortDropdownView from "./SortDropdownView";
|
|
6
|
+
import SearchBehaviourFactory from "../../../../../behaviours/search/frameworks/ui/SearchStringStoreBehaviourFactory";
|
|
7
|
+
import { SEARCH_REQUESTED } from "../../../../../../bc/search/Constants";
|
|
8
|
+
import SortDropdownTranslator from "./SortDropdownTranslator";
|
|
9
|
+
const SortDropdown = createCustomComponent({
|
|
10
|
+
name: 'SortDropdown',
|
|
11
|
+
View: SortDropdownView,
|
|
12
|
+
properties: SortDropdownProperties,
|
|
13
|
+
transformState: SortDropdownTranslator.transformState,
|
|
14
|
+
behaviours: [SearchBehaviourFactory.create()],
|
|
15
|
+
events: SortDropdownEvents,
|
|
16
|
+
eventHandlers: {
|
|
17
|
+
[SortDropdownConstants.SORT_DROPDOWN_SEARCH_REQUESTED]: _ref => {
|
|
18
|
+
let {
|
|
19
|
+
dispatch,
|
|
20
|
+
action
|
|
21
|
+
} = _ref;
|
|
22
|
+
dispatch({
|
|
23
|
+
type: SEARCH_REQUESTED,
|
|
24
|
+
payload: {
|
|
25
|
+
searchString: action.payload.searchValue
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export default SortDropdown;
|