@zohodesk/library-platform 1.1.9 → 1.1.10-exp.2
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/app-context/Constants.js +0 -0
- package/es/bc/app-context/Event.js +1 -0
- package/es/bc/app-context/EventHandlers.js +0 -0
- package/es/bc/app-context/Properties.js +68 -0
- package/es/bc/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/zdata-source/Constants.js +6 -11
- package/es/bc/zform/Constants.js +11 -1
- package/es/bc/zform/Properties.js +29 -27
- package/es/bc/zform/Symbol.js +2 -3
- package/es/bc/zlist/Properties.js +0 -45
- package/es/bc/zrecord/Constants.js +11 -19
- package/es/cc/action-icon/Constants.js +3 -5
- package/es/cc/action-location/Constants.js +5 -9
- package/es/cc/avatar/Constants.js +3 -5
- package/es/cc/breadcrumb/Constants.js +3 -5
- package/es/cc/button/Constants.js +3 -5
- package/es/cc/checkbox/Constants.js +5 -9
- package/es/cc/component/ErrorStructure.js +9 -0
- package/es/cc/date/Constants.js +5 -9
- package/es/cc/email/Constants.js +3 -5
- package/es/cc/error-state/ErrorTypes.js +11 -0
- package/es/cc/error-state/Properties.js +31 -0
- package/es/cc/error-state/index.js +2 -0
- package/es/cc/fields/currency/Model.js +2 -0
- package/es/cc/fields/currency/Properties.js +2 -1
- package/es/cc/fields/field/Constants.js +9 -13
- package/es/cc/fields/field/FormDefaultUIType.js +1 -1
- package/es/cc/fields/field/Properties.js +14 -8
- package/es/cc/fields/lookup/Properties.js +34 -1
- package/es/cc/form/Constants.js +6 -11
- package/es/cc/form/Properties.js +8 -0
- package/es/cc/form-connected/ExternalConstants.js +14 -0
- package/es/cc/form-connected/Properties.js +21 -13
- package/es/cc/form-connected/index.js +1 -1
- package/es/cc/highlighted-value/Constants.js +3 -5
- package/es/cc/icon-button/Constants.js +3 -5
- package/es/cc/link/Constants.js +3 -5
- package/es/cc/list-item/Constants.js +3 -5
- package/es/cc/more-dropdown/Constants.js +3 -5
- package/es/cc/multi-select/Constants.js +5 -9
- package/es/cc/section/Constants.js +5 -9
- package/es/cc/select/Constants.js +6 -11
- package/es/cc/switch/Constants.js +3 -5
- package/es/cc/switch/Properties.js +2 -2
- package/es/cc/table-column-filter/Constants.js +5 -9
- package/es/cc/table-connected/Events.js +1 -1
- package/es/cc/table-connected/Properties.js +6 -0
- package/es/cc/table-connected/SdkContract.js +14 -0
- package/es/cc/table-connected/constants/Events.js +3 -9
- package/es/cc/table-connected/constants/ExternalConstants.js +9 -0
- package/es/cc/table-connected/constants/index.js +2 -1
- package/es/cc/table-list/Constants.js +14 -27
- package/es/cc/table-list/model/index.js +5 -9
- package/es/cc/table-list/row/Constants.js +5 -9
- package/es/cc/table-list/row/Properties.js +8 -0
- package/es/cc/tags/Constants.js +3 -5
- package/es/cc/tags/model/index.js +4 -7
- package/es/cc/text/Constants.js +3 -5
- package/es/cc/textarea/Constants.js +5 -9
- package/es/cc/textarea/Properties.js +11 -0
- package/es/cc/textbox/Constants.js +6 -11
- package/es/index.js +26 -5
- package/es/library/analytics/Analytics.js +36 -0
- package/es/library/analytics/AnalyticsContract.js +13 -0
- package/es/library/analytics/index.js +2 -0
- package/es/library/behaviours/field-focus/frameworks/ui/EventHandlersFactory.js +1 -3
- package/es/library/behaviours/keyboard-controls/adapters/gateways/KeyboardHandler.js +0 -4
- package/es/library/behaviours/keyboard-controls/adapters/gateways/Repository.js +2 -10
- package/es/library/behaviours/keyboard-controls/adapters/gateways/Service.js +0 -14
- package/es/library/behaviours/keyboard-controls/adapters/presenters/Presenter.js +2 -11
- package/es/library/behaviours/list-selection/adapters/gateways/Repository.js +2 -8
- package/es/library/behaviours/list-selection/adapters/gateways/Service.js +0 -16
- package/es/library/behaviours/list-selection/adapters/presenters/Presenter.js +0 -8
- package/es/library/behaviours/local-storage/adapters/gateways/LocalStorageRepository.js +0 -6
- package/es/library/behaviours/local-storage/adapters/gateways/Service.js +0 -4
- package/es/library/behaviours/local-storage/adapters/presenters/Presenter.js +0 -8
- package/es/library/behaviours/local-storage/domain/entities/Storage.js +0 -4
- package/es/library/behaviours/sort-by/adapters/gateway/Repository.js +0 -6
- package/es/library/behaviours/sort-by/adapters/gateway/Service.js +0 -4
- package/es/library/behaviours/sort-by/adapters/presenter/Presenter.js +0 -8
- package/es/library/behaviours/table-column-resizer/adapters/gateways/Repository.js +0 -6
- package/es/library/behaviours/table-column-resizer/adapters/gateways/Service.js +0 -10
- package/es/library/behaviours/table-column-resizer/adapters/gateways/TableElementService.js +0 -8
- package/es/library/behaviours/table-column-resizer/adapters/presenters/AutoScroll.js +0 -12
- package/es/library/behaviours/table-column-resizer/adapters/presenters/Presenter.js +0 -8
- package/es/library/behaviours/table-column-resizer/domain/entities/ColumnResizer.js +0 -12
- package/es/library/behaviours/table-column-resizer/domain/entities/Mouse.js +0 -6
- package/es/library/behaviours/table-column-resizer/domain/entities/ResizeColumnCalculator.js +0 -12
- package/es/library/behaviours/table-column-resizer/domain/entities/ResizerAutoScrollCalculator.js +0 -6
- package/es/library/behaviours/table-column-resizer/domain/entities/ResizingColumn.js +0 -13
- package/es/library/behaviours/table-column-resizer/domain/entities/Table.js +0 -11
- package/es/library/behaviours/text-to-field-click/adapters/gateway/Repository.js +0 -6
- package/es/library/custom-component/adapters/controllers/Controller.js +9 -0
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +6 -7
- package/es/library/custom-component/adapters/gateways/repository/Repository.js +1 -5
- package/es/library/custom-component/adapters/gateways/service/Service.js +2 -14
- package/es/library/custom-component/adapters/presenters/Presenter.js +0 -5
- package/es/library/custom-component/applications/entities-factory/ComponentFactory.js +12 -9
- package/es/library/custom-component/applications/usecases/DispatchUseCase.js +28 -5
- package/es/library/custom-component/applications/usecases/InitializeUseCase.js +5 -4
- package/es/library/custom-component/applications/usecases/MountUseCase.js +10 -6
- package/es/library/custom-component/applications/usecases/SetRefUseCase.js +31 -0
- package/es/library/custom-component/applications/usecases/UnmountUseCase.js +6 -5
- package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +23 -18
- package/es/library/custom-component/applications/usecases/UpdateStateUseCase.js +4 -3
- package/es/library/custom-component/domain/entities/Behaviour.js +4 -11
- package/es/library/custom-component/domain/entities/Component.js +81 -99
- package/es/library/custom-component/domain/entities/ComponentProperties.js +120 -0
- package/es/library/custom-component/domain/entities/Event.js +0 -7
- package/es/library/custom-component/domain/entities/EventHandler.js +0 -6
- package/es/library/custom-component/domain/entities/LifeCycleAction.js +0 -10
- package/es/library/custom-component/domain/entities/Logger.js +93 -0
- package/es/library/custom-component/domain/entities/Payload.js +0 -6
- package/es/library/custom-component/domain/entities/Properties.js +10 -142
- package/es/library/custom-component/domain/entities/Property.js +29 -13
- package/es/library/custom-component/domain/entities/Schema.js +1 -5
- package/es/library/custom-component/domain/entities/State.js +0 -4
- package/es/library/custom-component/domain/entities/Style.js +0 -14
- package/es/library/custom-component/domain/entities/interfaces/IComponentProperties.js +0 -0
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +129 -31
- package/es/library/custom-component/frameworks/ui/ComponentRegistry.js +3 -7
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +30 -34
- package/es/library/custom-component/frameworks/ui/CreateSlotComponent.js +4 -2
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +1 -1
- package/es/library/custom-component/frameworks/ui/DependencyFactory.js +1 -2
- package/es/library/dot/components/action-location/adapters/gateway/Repository.js +0 -8
- package/es/library/dot/components/action-location/adapters/presenters/Presenter.js +0 -8
- package/es/library/dot/components/action-location/entities/ActionLocationEntity.js +2 -6
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +2 -1
- package/es/library/dot/components/actions-renderer/frameworks/ui/ActionsRendererView.js +6 -4
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
- package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +12 -3
- package/es/library/dot/components/form/frameworks/ui/Form.js +2 -0
- package/es/library/dot/components/form/frameworks/ui/FormFallbackView.js +23 -0
- package/es/library/dot/components/form/frameworks/ui/FormView.js +9 -3
- package/es/library/dot/components/form/frameworks/ui/__test__/Form.test.js +14 -20
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -16
- package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +7 -4
- package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +7 -4
- package/es/library/dot/components/form/frameworks/ui/sub-components/SectionsWithRightPanelLayout.js +1 -2
- package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +1 -3
- package/es/library/dot/components/form-fields/currency/frameworks/ui/Currency.js +3 -3
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +15 -3
- package/es/library/dot/components/form-fields/currency/frameworks/ui/EventHandlerFactory.js +8 -0
- package/es/library/dot/components/form-fields/field/__test__/common.js +18 -16
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/form-fields/index.js +2 -1
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/EventHandlerFactory.js +70 -0
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/Lookup.js +13 -0
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +51 -0
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +4 -2
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +5 -4
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +12 -3
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -0
- package/es/library/dot/components/table-list/adapters/controllers/KeyboardRowClickController.js +2 -2
- package/es/library/dot/components/table-list/adapters/controllers/KeyboardRowSelectController.js +1 -1
- package/es/library/dot/components/table-list/adapters/presenters/TableTranslator.js +1 -1
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +14 -7
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +16 -15
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/ErrorState.js +4 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +9 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +11 -9
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.js +1 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +7 -5
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +4 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +4 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +14 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +6 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +32 -7
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/sub-components/BreadcrumbItem.js +1 -1
- package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +3 -3
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -5
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +3 -0
- package/es/library/dot/legacy-to-new-arch/error-state/frameworks/ui/ErrorState.js +10 -0
- package/es/library/dot/legacy-to-new-arch/error-state/frameworks/ui/ErrorStateView.js +68 -0
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +6 -8
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +5 -7
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +14 -4
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +37 -0
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +2 -2
- package/es/library/dot/legacy-to-new-arch/switch/frameworks/ui/SwitchView.js +5 -5
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +5 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyFieldView.js +10 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +1 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchFieldView.js +0 -1
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +1 -1
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +22 -4
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +40 -0
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +2 -2
- package/es/library/slot/frameworks/ui/ConvertSlotToComponent.js +5 -4
- package/es/library/translator-common/adapters/presenter/formatCurrency.js +42 -0
- package/es/library/translator-common/index.js +2 -1
- package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +31 -0
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/controllers/MountController.js +15 -18
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Repository.js +0 -6
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/gateways/Service.js +0 -16
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/presenters/Presenter.js +0 -8
- package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionResource.js +2 -4
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionLocationUseCase.js +1 -1
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionUIComponentPropertiesUseCase.js +1 -1
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/GetClientActionsUseCase.js +1 -1
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +6 -1
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/UpdateClientActionUIComponentPropertiesUseCase.js +1 -1
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientAction.js +0 -26
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActionManager.js +58 -19
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/ClientActions.js +8 -17
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMapping.js +0 -12
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/EventMappings.js +0 -4
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/UIComponentMapping.js +0 -14
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionResponse.js +1 -0
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionFetchResponse.js +0 -0
- package/es/platform/client-actions/behaviour/zclient-actions/frameworks/sdk/ClientActionsSDKFactory.js +2 -2
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +75 -3
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/MountController.js +1 -1
- package/es/platform/client-actions/components/action-event-mediator/adapters/controllers/PropertiesChangeController.js +2 -2
- package/es/platform/client-actions/components/action-event-mediator/adapters/gateway/Repository.js +2 -10
- package/es/platform/client-actions/components/action-event-mediator/adapters/presenters/Presenter.js +0 -8
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/InitializeUseCase.js +15 -1
- package/es/platform/client-actions/components/action-event-mediator/applications/usecases/PropertiesChangeUseCase.js +3 -3
- package/es/platform/client-actions/components/action-event-mediator/domain/entities/ActionEventMediatorEntity.js +43 -34
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator.js +3 -1
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediatorView.js +31 -14
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -48
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +3 -11
- package/es/platform/client-actions/components/interfaces/ActionViewModel.js +1 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +12 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +42 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRenderer.js +10 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRendererView.js +79 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/{RowActionsRenderer.js → RowActions/RowActionsRenderer.js} +3 -3
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +19 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +37 -0
- package/es/platform/client-actions/translators/client-actions-translator/index.js +14 -2
- package/es/platform/client-actions/translators/condition-resolver/index.js +6 -1
- package/es/platform/client-scripts/bc/zclient-scripts-execution/Constants.js +11 -0
- package/es/platform/client-scripts/bc/zclient-scripts-execution/EventHandlers.js +1 -0
- package/es/platform/client-scripts/bc/zclient-scripts-fetch/Constants.js +11 -0
- package/es/platform/client-scripts/bc/zclient-scripts-fetch/EventHandlers.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/controllers/ClientScriptExecutionController.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/controllers/SetClientScriptsMappingController.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/gateways/Repository.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/gateways/Service.js +9 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/adapters/presenters/Presenter.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/AbstractUseCase.js +15 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/ExecuteClientScriptsUseCase.js +23 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/applications/usecases/SetClientScriptsMappingUseCase.js +16 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/ClientScriptExecutor.js +142 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/State.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/domain/entities/types/ClientScriptExectionTypeDefintions.js +7 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsExecutionBehaviourFactory.js +12 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsExecutionHandlersFactory.js +30 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsUtils.js +25 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsController.js +27 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsFailureController.js +28 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsNoContentController.js +23 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsStopController.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/FetchClientScriptsSuccessController.js +28 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/MountController.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/controllers/SetClientScriptsController.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/gateways/Repository.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/gateways/Service.js +19 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/presenters/Presenter.js +16 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/entities-factory/ClientScriptsFactory.js +11 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/entities-factory/ClientScriptsManagerFactory.js +10 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptUseCase.js +33 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsFailureUseCase.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsNoContentUseCase.js +27 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsStopUseCase.js +25 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/FetchClientScriptsSuccessUseCase.js +22 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/InitializeUseCase.js +17 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/applications/usecases/SetClientScriptsUseCase.js +21 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/ClientScript.js +24 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/ClientScripts.js +41 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/GetClientScriptsStrategy.js +44 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/State.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptEventMappingState.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptModel.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/ClientScriptsModel.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScript.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScripts.js +0 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IEvent.js +1 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/frameworks/ClientScriptsBehaviourFactory.js +12 -0
- package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/frameworks/ClientScriptsHandlersFactory.js +47 -0
- package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +15 -0
- package/es/platform/column-chooser/adapters/gateways/Repository.js +0 -6
- package/es/platform/column-chooser/adapters/gateways/Service.js +0 -14
- package/es/platform/column-chooser/adapters/presenters/Presenter.js +0 -8
- package/es/platform/column-chooser/domain/entities/SelectEntityImp.js +0 -5
- package/es/platform/components/app/adapters/resources/AppResource.js +25 -0
- package/es/platform/components/form-connected/adapters/resources/SmartFormResources.js +20 -4
- package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +5 -4
- package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +8 -2
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +4 -2
- package/es/platform/components/form-connected/frameworks/FormSdkFactory.js +6 -4
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +7 -1
- package/es/platform/components/table-connected/adapters/controllers/ResizeFinishController.js +3 -5
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +52 -4
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +222 -8
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +6 -4
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +7 -3
- package/es/platform/data-source/http-template/fetchLookupFields.js +24 -0
- package/es/platform/data-source/http-template/getClientScripts.js +23 -0
- package/es/platform/data-source/http-template/{fetchDependencyMappings.js → getDependencyMappings.js} +3 -3
- package/es/platform/data-source/http-template/{fetchLayoutRules.js → getLayoutRules.js} +3 -3
- package/es/platform/data-source/http-template/{fetchMyForm.js → getMyForm.js} +3 -3
- package/es/platform/data-source/http-template/{fetchMyFormLayout.js → getMyLayout.js} +3 -3
- package/es/platform/data-source/http-template/{fetchValidationRules.js → getValidationRules.js} +3 -3
- package/es/platform/data-source/http-template/updateSelectedFields.js +1 -1
- package/es/platform/data-source/index.js +15 -10
- package/es/platform/data-source/utils/validation-rules/TransFormValidationRules.js +7 -1
- package/es/platform/sdk/adapters/gateways/Repository.js +5 -9
- package/es/platform/sdk/adapters/gateways/Service.js +2 -12
- package/es/platform/sdk/adapters/presenters/Presenter.js +0 -6
- package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +0 -6
- package/es/platform/sdk/application/usecases/GetResourcesUseCase.js +12 -0
- package/es/platform/sdk/domain/entities/ResourceManager.js +24 -20
- package/es/platform/sdk/frameworks/Sdk.js +23 -2
- package/es/platform/sdk/frameworks/SdkRegistry.js +11 -8
- package/es/platform/sdk-behaviour/adapters/controllers/AbstractController.js +0 -4
- package/es/platform/sdk-behaviour/adapters/gateways/Repository.js +0 -8
- package/es/platform/sdk-behaviour/adapters/gateways/ResourceManagerGateWay.js +0 -6
- package/es/platform/sdk-behaviour/adapters/gateways/Service.js +0 -8
- package/es/platform/zdata-source/adapters/controllers/FailureController.js +26 -29
- package/es/platform/zdata-source/adapters/controllers/NoContentController.js +21 -24
- package/es/platform/zdata-source/adapters/controllers/RegisterController.js +17 -20
- package/es/platform/zdata-source/adapters/controllers/SuccessController.js +26 -29
- package/es/platform/zdata-source/adapters/gateways/Repository.js +0 -6
- package/es/platform/zdata-source/adapters/gateways/Service.js +0 -12
- package/es/platform/zdata-source/adapters/presenters/Presenter.js +1 -9
- package/es/platform/zdata-source/domain/entities/APITemplate.js +3 -17
- package/es/platform/zfield/adapters/gateways/Repository.js +0 -6
- package/es/platform/zfield/adapters/gateways/Service.js +0 -14
- package/es/platform/zfield/adapters/presenters/Presenter.js +0 -8
- package/es/platform/zfield/applications/entities-factory/FieldBuilder.js +0 -30
- package/es/platform/zfield/applications/entities-factory/FieldsManagerBuilder.js +0 -12
- package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +6 -1
- package/es/platform/zform/adapters/controllers/ApiFailureController.js +31 -0
- package/es/platform/zform/adapters/controllers/CreateRecordFailedController.js +21 -0
- package/es/platform/zform/adapters/controllers/CreateRecordSuccessController.js +21 -0
- package/es/platform/zform/adapters/controllers/IntializeController.js +4 -2
- package/es/platform/zform/adapters/controllers/LookupFieldController.js +23 -0
- package/es/platform/zform/adapters/controllers/MyLayoutSuccessController.js +4 -2
- package/es/platform/zform/adapters/controllers/SubmitValidationCompletedController.js +5 -1
- package/es/platform/zform/adapters/gateway/FormRepository.js +6 -8
- package/es/platform/zform/adapters/gateway/Service.js +8 -36
- package/es/platform/zform/adapters/presenter/FormPresenter.js +0 -8
- package/es/platform/zform/adapters/presenter/FormTranslator.js +33 -22
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +53 -37
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +9 -1
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -1
- package/es/platform/zform/adapters/presenter/utils/DefaultClientActions.js +83 -73
- package/es/platform/zform/adapters/presenter/utils/sanitizeHtmlString.js +11 -0
- package/es/platform/zform/applications/interfaces/input/ApiFailureInputModel.js +1 -0
- package/es/platform/zform/applications/interfaces/input/CreateRecordFailedUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/interfaces/input/CreateRecordSuccessUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/interfaces/input/GetIsFieldValueChangedUseCaseInput.js +1 -0
- package/es/platform/zform/applications/interfaces/input/LookUpFieldSuccessUseCaseInputModel.js +1 -0
- package/es/platform/zform/applications/usecases/ApiFailureUseCase.js +30 -0
- package/es/platform/zform/applications/usecases/CreateRecordFailedUseCase.js +25 -0
- package/es/platform/zform/applications/usecases/CreateRecordSuccessUseCase.js +25 -0
- package/es/platform/zform/applications/usecases/FormSubmitUseCase.js +4 -1
- package/es/platform/zform/applications/usecases/GetFieldValueUseCase.js +1 -1
- package/es/platform/zform/applications/usecases/GetIsFieldValueChanged.js +35 -0
- package/es/platform/zform/applications/usecases/InitializeUseCase.js +54 -26
- package/es/platform/zform/applications/usecases/LookupFieldSuccessUseCase.js +33 -0
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +41 -7
- package/es/platform/zform/applications/usecases/MyLayoutSuccessUseCase.js +61 -37
- package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +14 -8
- package/es/platform/zform/domain/ZDependencyMapping.js +0 -17
- package/es/platform/zform/domain/ZField.js +16 -59
- package/es/platform/zform/domain/ZForm.js +74 -42
- package/es/platform/zform/domain/ZLayout.js +0 -14
- package/es/platform/zform/domain/ZLayoutRule.js +0 -31
- package/es/platform/zform/domain/ZSection.js +0 -19
- package/es/platform/zform/domain/ZValidationRule.js +0 -28
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +26 -28
- package/es/platform/zform/frameworks/ui/ZFormBehaviourFactory.js +1 -0
- package/es/platform/zform/frameworks/validation-rules/Validator.js +4 -8
- package/es/platform/zhttp/adapters/controllers/FetchController.js +5 -1
- package/es/platform/zlist/adapters/gateways/Repository.js +4 -8
- package/es/platform/zlist/adapters/gateways/Service.js +0 -33
- package/es/platform/zlist/adapters/presenters/Presenters.js +0 -8
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +7 -6
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +19 -12
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +33 -26
- package/es/platform/zlist/adapters/presenters/translators/Header.js +5 -6
- package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -3
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +8 -2
- package/es/platform/zlist/adapters/presenters/translators/actions/ActionsTranslator.js +4 -15
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +7 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +7 -2
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +1 -1
- package/es/platform/zlist/adapters/presenters/utils/calculateFieldWidths.js +1 -3
- package/es/platform/zlist/applications/usecases/DeleteMultipleRecordUseCase.js +1 -3
- package/es/platform/zlist/applications/usecases/DeleteSingleRecordUseCase.js +1 -3
- package/es/platform/zlist/applications/usecases/GetContextUseCase.js +1 -1
- package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +1 -3
- package/es/platform/zlist/applications/usecases/RecordUpdateUseCase.js +1 -3
- package/es/platform/zlist/applications/usecases/UpdateMultipleRecordUseCase.js +1 -3
- package/es/platform/zlist/domain/entities/List.js +20 -5
- package/es/platform/zrecord/adapters/controllers/AppendRecordsController.js +20 -23
- package/es/platform/zrecord/adapters/controllers/DeleteMultipleRecordLocalController.js +20 -23
- package/es/platform/zrecord/adapters/controllers/FailureController.js +26 -29
- package/es/platform/zrecord/adapters/controllers/FetchStateStopController.js +17 -20
- package/es/platform/zrecord/adapters/controllers/MountController.js +15 -18
- package/es/platform/zrecord/adapters/controllers/NoContentController.js +21 -24
- package/es/platform/zrecord/adapters/controllers/RefetchController.js +26 -29
- package/es/platform/zrecord/adapters/controllers/SetRecordsController.js +24 -27
- package/es/platform/zrecord/adapters/controllers/SuccessController.js +26 -29
- package/es/platform/zrecord/adapters/gateways/Repository.js +0 -6
- package/es/platform/zrecord/adapters/gateways/Service.js +0 -30
- package/es/platform/zrecord/adapters/presenters/Presenter.js +0 -8
- package/es/platform/zrecord/applications/usecases/GetMultipleRecordUseCase.js +1 -1
- package/es/platform/zrecord/applications/usecases/GetSingleRecordUseCase.js +1 -1
- package/es/platform/zrecord/domain/entities/CustomFieldValues.js +0 -4
- package/es/platform/zrecord/domain/entities/Record.js +0 -22
- package/es/platform/zrecord/domain/entities/Records.js +0 -11
- package/package.json +28 -29
- package/es/cc/form-connected/Constants.js +0 -21
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/LabelAction.js +0 -9
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/LabelActionView.js +0 -38
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/css/LabelAction.module.css +0 -4
- package/es/platform/client-actions/cc/dynamic-action-component/Properties.js +0 -51
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponent.js +0 -9
- package/es/platform/client-actions/components/dynamic-component/frameworks/ui/DynamicActionComponentView.js +0 -36
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +0 -15
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +0 -33
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +0 -11
- /package/es/{platform/client-actions/components/dynamic-component/domain/entities/interfaces/IState.js → library/custom-component/applications/interfaces/input/SetRefInputModel.js} +0 -0
|
@@ -1,96 +1,120 @@
|
|
|
1
1
|
import AbstractUseCase from "./AbstractUseCase";
|
|
2
|
-
import { ZFORM_DEPENDENCY_MAPPINGS_SUCCESS, ZFORM_LAYOUT_RULES_SUCCESS, ZFORM_MY_FORM_SUCCESS } from "../../../../bc/zform/Symbol";
|
|
2
|
+
import { ZFORM_API_FAILURE, ZFORM_DEPENDENCY_MAPPINGS_SUCCESS, ZFORM_LAYOUT_RULES_SUCCESS, ZFORM_MY_FORM_SUCCESS } from "../../../../bc/zform/Symbol";
|
|
3
3
|
import { DATA_SOURCE_EXECUTE as DATA_BROKER_EXECUTE } from "../../../../bc/zdata-source/Constants";
|
|
4
|
-
import { DATA_SOURCE_SUCCESS
|
|
4
|
+
import { DATA_SOURCE_SUCCESS, DATA_SOURCE_NO_CONTENT, DATA_SOURCE_FAILURE } from "../../../../bc/zdata-source/Symbols";
|
|
5
5
|
|
|
6
6
|
class MyLayoutSuccessUseCase extends AbstractUseCase {
|
|
7
7
|
execute(input) {
|
|
8
8
|
const {
|
|
9
9
|
disableValidationRule,
|
|
10
|
-
disableLayoutRule
|
|
10
|
+
disableLayoutRule,
|
|
11
|
+
disableDependencyMapping
|
|
11
12
|
} = input;
|
|
12
13
|
let {
|
|
13
14
|
dispatch,
|
|
14
15
|
layouts,
|
|
15
16
|
orgName
|
|
16
17
|
} = input;
|
|
17
|
-
let layoutObject = layouts.find(layout => layout.isDefaultLayout == true); // dispatch({type:ZFORM_MY_FORM_REQUEST,payload:{isFetching:true}})
|
|
18
|
+
let layoutObject = layouts.length == 1 ? layouts[0] : layouts.find(layout => layout.isDefaultLayout == true); // dispatch({type:ZFORM_MY_FORM_REQUEST,payload:{isFetching:true}})
|
|
18
19
|
|
|
19
20
|
const zformEntity = this.dependencies.repository.getFormEntity();
|
|
20
|
-
zformEntity.setLayoutId(layoutObject
|
|
21
|
+
zformEntity.setLayoutId(layoutObject?.id);
|
|
21
22
|
const context = { ...zformEntity.getContext(),
|
|
22
23
|
layoutId: zformEntity.getLayoutId()
|
|
23
24
|
};
|
|
24
25
|
dispatch({
|
|
25
26
|
type: DATA_BROKER_EXECUTE,
|
|
26
27
|
payload: {
|
|
27
|
-
actionName: "
|
|
28
|
+
actionName: "getMyForm",
|
|
28
29
|
props: context
|
|
29
30
|
},
|
|
30
31
|
metaData: {
|
|
31
|
-
actionName: "
|
|
32
|
+
actionName: "getMyForm",
|
|
32
33
|
//hack
|
|
33
|
-
[
|
|
34
|
+
[DATA_SOURCE_NO_CONTENT]: {
|
|
34
35
|
type: ZFORM_MY_FORM_SUCCESS,
|
|
35
36
|
metaData: {
|
|
36
|
-
actionName: "
|
|
37
|
+
actionName: "getMyForm"
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
//hack
|
|
40
|
-
[
|
|
41
|
+
[DATA_SOURCE_FAILURE]: {
|
|
42
|
+
type: ZFORM_API_FAILURE,
|
|
43
|
+
metaData: {
|
|
44
|
+
actionName: 'getMyForm'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
[DATA_SOURCE_SUCCESS]: {
|
|
41
48
|
type: ZFORM_MY_FORM_SUCCESS,
|
|
42
49
|
metaData: {
|
|
43
|
-
actionName: "
|
|
50
|
+
actionName: "getMyForm"
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
54
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
actionName: "fetchDependencyMappings",
|
|
56
|
-
//hack
|
|
57
|
-
[DATA_BROKER_SUCCESS]: {
|
|
58
|
-
type: ZFORM_DEPENDENCY_MAPPINGS_SUCCESS,
|
|
59
|
-
metaData: {
|
|
60
|
-
actionName: "fetchDependencyMappings"
|
|
61
|
-
}
|
|
55
|
+
|
|
56
|
+
if (!disableDependencyMapping) {
|
|
57
|
+
dispatch({
|
|
58
|
+
type: DATA_BROKER_EXECUTE,
|
|
59
|
+
payload: {
|
|
60
|
+
actionName: "getDependencyMappings",
|
|
61
|
+
props: context
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
metaData: {
|
|
64
|
+
actionName: "getDependencyMappings",
|
|
65
|
+
//hack
|
|
66
|
+
[DATA_SOURCE_SUCCESS]: {
|
|
67
|
+
type: ZFORM_DEPENDENCY_MAPPINGS_SUCCESS,
|
|
68
|
+
metaData: {
|
|
69
|
+
actionName: "getDependencyMappings"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[DATA_SOURCE_FAILURE]: {
|
|
73
|
+
type: ZFORM_API_FAILURE,
|
|
74
|
+
metaData: {
|
|
75
|
+
actionName: 'getDependencyMappings'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
[DATA_SOURCE_NO_CONTENT]: {
|
|
79
|
+
type: ZFORM_DEPENDENCY_MAPPINGS_SUCCESS,
|
|
80
|
+
metaData: {
|
|
81
|
+
actionName: "getDependencyMappings"
|
|
82
|
+
}
|
|
67
83
|
}
|
|
68
84
|
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
85
|
+
});
|
|
86
|
+
} else {
|
|
87
|
+
zformEntity.setDependencyFetching(false);
|
|
88
|
+
}
|
|
71
89
|
|
|
72
90
|
if (!disableLayoutRule) {
|
|
73
91
|
dispatch({
|
|
74
92
|
type: DATA_BROKER_EXECUTE,
|
|
75
93
|
payload: {
|
|
76
|
-
actionName: "
|
|
94
|
+
actionName: "getLayoutRules",
|
|
77
95
|
props: { ...context,
|
|
78
96
|
activeRulesOnly: true
|
|
79
97
|
}
|
|
80
98
|
},
|
|
81
99
|
metaData: {
|
|
82
|
-
actionName: "
|
|
100
|
+
actionName: "getLayoutRules",
|
|
83
101
|
//hack
|
|
84
|
-
[
|
|
102
|
+
[DATA_SOURCE_NO_CONTENT]: {
|
|
85
103
|
type: ZFORM_LAYOUT_RULES_SUCCESS,
|
|
86
104
|
metaData: {
|
|
87
|
-
actionName: "
|
|
105
|
+
actionName: "getLayoutRules"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
[DATA_SOURCE_FAILURE]: {
|
|
109
|
+
type: ZFORM_API_FAILURE,
|
|
110
|
+
metaData: {
|
|
111
|
+
actionName: 'getLayoutRules'
|
|
88
112
|
}
|
|
89
113
|
},
|
|
90
|
-
[
|
|
114
|
+
[DATA_SOURCE_SUCCESS]: {
|
|
91
115
|
type: ZFORM_LAYOUT_RULES_SUCCESS,
|
|
92
116
|
metaData: {
|
|
93
|
-
actionName: "
|
|
117
|
+
actionName: "getLayoutRules"
|
|
94
118
|
}
|
|
95
119
|
}
|
|
96
120
|
}
|
|
@@ -5,7 +5,8 @@ import { ZFORM_ERROR, ZFORM_VALIDATION_SUCCESS, ZFORM_SUBMIT_VALIDATION_FAILURE
|
|
|
5
5
|
class SubmitValidationCompletedUseCase extends AbstractUseCase {
|
|
6
6
|
execute(params) {
|
|
7
7
|
const {
|
|
8
|
-
dispatch
|
|
8
|
+
dispatch,
|
|
9
|
+
disableCreateRecord
|
|
9
10
|
} = params;
|
|
10
11
|
const {
|
|
11
12
|
repository,
|
|
@@ -23,6 +24,8 @@ class SubmitValidationCompletedUseCase extends AbstractUseCase {
|
|
|
23
24
|
|
|
24
25
|
if (isFormHasError) {
|
|
25
26
|
const errorMessages = zFormEntity.getVisibleFieldsErrorMessages();
|
|
27
|
+
zFormEntity.setSubmitFetching(false);
|
|
28
|
+
presenter.updateFormResponse(zFormEntity.toObject());
|
|
26
29
|
dispatch({
|
|
27
30
|
type: ZFORM_SUBMIT_VALIDATION_FAILURE,
|
|
28
31
|
payload: {
|
|
@@ -47,13 +50,16 @@ class SubmitValidationCompletedUseCase extends AbstractUseCase {
|
|
|
47
50
|
record
|
|
48
51
|
}
|
|
49
52
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
|
|
54
|
+
if (!disableCreateRecord) {
|
|
55
|
+
dispatch({
|
|
56
|
+
type: CREATE_RECORD,
|
|
57
|
+
payload: {
|
|
58
|
+
record,
|
|
59
|
+
moduleName
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
export default class ZDependencyMapping {
|
|
4
2
|
constructor(_ref) {
|
|
5
3
|
let {
|
|
@@ -11,21 +9,6 @@ export default class ZDependencyMapping {
|
|
|
11
9
|
parent,
|
|
12
10
|
child
|
|
13
11
|
} = _ref;
|
|
14
|
-
|
|
15
|
-
_defineProperty(this, "parentId", void 0);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "childId", void 0);
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "mappings", void 0);
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "layoutId", void 0);
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "id", void 0);
|
|
24
|
-
|
|
25
|
-
_defineProperty(this, "parent", void 0);
|
|
26
|
-
|
|
27
|
-
_defineProperty(this, "child", void 0);
|
|
28
|
-
|
|
29
12
|
this.parentId = parentId;
|
|
30
13
|
this.childId = childId;
|
|
31
14
|
this.mappings = mappings;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
export default class ZField {
|
|
4
2
|
constructor(_ref) {
|
|
5
3
|
let {
|
|
@@ -25,57 +23,9 @@ export default class ZField {
|
|
|
25
23
|
toolTipType,
|
|
26
24
|
defaultValue,
|
|
27
25
|
isPHI,
|
|
28
|
-
subType
|
|
26
|
+
subType,
|
|
27
|
+
lookup
|
|
29
28
|
} = _ref;
|
|
30
|
-
|
|
31
|
-
_defineProperty(this, "displayLabel", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "apiName", void 0);
|
|
34
|
-
|
|
35
|
-
_defineProperty(this, "isCustomField", void 0);
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "i18NLabel", void 0);
|
|
38
|
-
|
|
39
|
-
_defineProperty(this, "isSystemMandatory", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "type", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(this, "isReadOnly", void 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(this, "name", void 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "isEncryptedField", void 0);
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "id", void 0);
|
|
50
|
-
|
|
51
|
-
_defineProperty(this, "isRemovable", void 0);
|
|
52
|
-
|
|
53
|
-
_defineProperty(this, "maxLength", void 0);
|
|
54
|
-
|
|
55
|
-
_defineProperty(this, "isMandatory", void 0);
|
|
56
|
-
|
|
57
|
-
_defineProperty(this, "value", void 0);
|
|
58
|
-
|
|
59
|
-
_defineProperty(this, "errorMessage", void 0);
|
|
60
|
-
|
|
61
|
-
_defineProperty(this, "isVisible", void 0);
|
|
62
|
-
|
|
63
|
-
_defineProperty(this, "decimalPlaces", void 0);
|
|
64
|
-
|
|
65
|
-
_defineProperty(this, "pickListValues", void 0);
|
|
66
|
-
|
|
67
|
-
_defineProperty(this, "defaultPickListValues", void 0);
|
|
68
|
-
|
|
69
|
-
_defineProperty(this, "subType", void 0);
|
|
70
|
-
|
|
71
|
-
_defineProperty(this, "toolTip", void 0);
|
|
72
|
-
|
|
73
|
-
_defineProperty(this, "toolTipType", void 0);
|
|
74
|
-
|
|
75
|
-
_defineProperty(this, "defaultValue", void 0);
|
|
76
|
-
|
|
77
|
-
_defineProperty(this, "isPHI", void 0);
|
|
78
|
-
|
|
79
29
|
this.displayLabel = displayLabel;
|
|
80
30
|
this.apiName = apiName;
|
|
81
31
|
this.isCustomField = isCustomField;
|
|
@@ -99,7 +49,8 @@ export default class ZField {
|
|
|
99
49
|
this.toolTip = toolTip;
|
|
100
50
|
this.toolTipType = toolTipType;
|
|
101
51
|
this.defaultValue = defaultValue;
|
|
102
|
-
this.isPHI = isPHI;
|
|
52
|
+
this.isPHI = isPHI;
|
|
53
|
+
this.lookup = lookup; // if(value===undefined){
|
|
103
54
|
// this.setDefaultValue()
|
|
104
55
|
// }
|
|
105
56
|
}
|
|
@@ -109,8 +60,8 @@ export default class ZField {
|
|
|
109
60
|
return false;
|
|
110
61
|
}
|
|
111
62
|
|
|
112
|
-
if (typeof defaultValue ===
|
|
113
|
-
return defaultValue ===
|
|
63
|
+
if (typeof defaultValue === 'string') {
|
|
64
|
+
return defaultValue === 'true' ? true : false;
|
|
114
65
|
}
|
|
115
66
|
|
|
116
67
|
return defaultValue;
|
|
@@ -121,8 +72,8 @@ export default class ZField {
|
|
|
121
72
|
return [];
|
|
122
73
|
}
|
|
123
74
|
|
|
124
|
-
if (typeof defaultValue ===
|
|
125
|
-
return defaultValue.split(
|
|
75
|
+
if (typeof defaultValue === 'string') {
|
|
76
|
+
return defaultValue.split(';');
|
|
126
77
|
}
|
|
127
78
|
|
|
128
79
|
return defaultValue;
|
|
@@ -157,7 +108,7 @@ export default class ZField {
|
|
|
157
108
|
|
|
158
109
|
setValue(value) {
|
|
159
110
|
if (this.value !== value) {
|
|
160
|
-
this.errorMessage =
|
|
111
|
+
this.errorMessage = ''; // Reset error message when value changes
|
|
161
112
|
}
|
|
162
113
|
|
|
163
114
|
this.value = value;
|
|
@@ -167,6 +118,10 @@ export default class ZField {
|
|
|
167
118
|
return this.value;
|
|
168
119
|
}
|
|
169
120
|
|
|
121
|
+
getDefaultValue() {
|
|
122
|
+
return this.defaultValue;
|
|
123
|
+
}
|
|
124
|
+
|
|
170
125
|
getErrorMessage() {
|
|
171
126
|
return this.errorMessage;
|
|
172
127
|
}
|
|
@@ -188,6 +143,7 @@ export default class ZField {
|
|
|
188
143
|
this.defaultPickListValues = fieldProperties.defaultPickListValues !== undefined ? fieldProperties.defaultPickListValues : this.defaultPickListValues;
|
|
189
144
|
this.toolTip = fieldProperties.toolTip !== undefined ? fieldProperties.toolTip : this.toolTip;
|
|
190
145
|
this.decimalPlaces = fieldProperties.decimalPlaces !== undefined ? fieldProperties.decimalPlaces : this.decimalPlaces;
|
|
146
|
+
this.lookup = fieldProperties.lookup !== undefined ? fieldProperties.lookup : this.lookup;
|
|
191
147
|
}
|
|
192
148
|
|
|
193
149
|
setErrorMessage(errorMessage) {
|
|
@@ -241,7 +197,8 @@ export default class ZField {
|
|
|
241
197
|
toolTipType: this.toolTipType,
|
|
242
198
|
defaultValue: this.defaultValue,
|
|
243
199
|
isPHI: this.isPHI,
|
|
244
|
-
subType: this.subType
|
|
200
|
+
subType: this.subType,
|
|
201
|
+
lookup: this.lookup
|
|
245
202
|
};
|
|
246
203
|
}
|
|
247
204
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ErrorCodes } from "../../../cc/component/ErrorStructure";
|
|
2
|
+
import { ZFormApiActionName } from "../../../bc/zform/Constants";
|
|
3
|
+
import { ZHttpErrorCode } from "../../../bc/zhttp/Errors";
|
|
3
4
|
export default class ZForm {
|
|
4
5
|
/*hack*/
|
|
5
6
|
|
|
@@ -25,49 +26,11 @@ export default class ZForm {
|
|
|
25
26
|
isMyFormFetching,
|
|
26
27
|
isDependencyFetching,
|
|
27
28
|
isLayoutRulesFetching,
|
|
29
|
+
isSubmitFetching,
|
|
28
30
|
isValidationRulesFetching
|
|
29
31
|
/*hack end*/
|
|
30
32
|
|
|
31
33
|
} = _ref;
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "modifiedTime", void 0);
|
|
34
|
-
|
|
35
|
-
_defineProperty(this, "isStandardLayout", void 0);
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "hasLogo", void 0);
|
|
38
|
-
|
|
39
|
-
_defineProperty(this, "departmentId", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "module", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(this, "layoutDisplayName", void 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(this, "layoutDesc", void 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "isDefaultLayout", void 0);
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "sections", void 0);
|
|
50
|
-
|
|
51
|
-
_defineProperty(this, "validationRules", void 0);
|
|
52
|
-
|
|
53
|
-
_defineProperty(this, "layoutRules", void 0);
|
|
54
|
-
|
|
55
|
-
_defineProperty(this, "dependencyMappings", void 0);
|
|
56
|
-
|
|
57
|
-
_defineProperty(this, "context", void 0);
|
|
58
|
-
|
|
59
|
-
_defineProperty(this, "focusedFieldName", void 0);
|
|
60
|
-
|
|
61
|
-
_defineProperty(this, "layoutId", void 0);
|
|
62
|
-
|
|
63
|
-
_defineProperty(this, "isMyFormFetching", void 0);
|
|
64
|
-
|
|
65
|
-
_defineProperty(this, "isDependencyFetching", void 0);
|
|
66
|
-
|
|
67
|
-
_defineProperty(this, "isLayoutRulesFetching", void 0);
|
|
68
|
-
|
|
69
|
-
_defineProperty(this, "isValidationRulesFetching", void 0);
|
|
70
|
-
|
|
71
34
|
this.modifiedTime = modifiedTime;
|
|
72
35
|
this.isStandardLayout = isStandardLayout;
|
|
73
36
|
this.hasLogo = hasLogo;
|
|
@@ -88,6 +51,7 @@ export default class ZForm {
|
|
|
88
51
|
this.isDependencyFetching = isDependencyFetching;
|
|
89
52
|
this.isLayoutRulesFetching = isLayoutRulesFetching;
|
|
90
53
|
this.isValidationRulesFetching = isValidationRulesFetching;
|
|
54
|
+
this.isSubmitFetching = isSubmitFetching;
|
|
91
55
|
/*hack end*/
|
|
92
56
|
}
|
|
93
57
|
|
|
@@ -121,6 +85,7 @@ export default class ZForm {
|
|
|
121
85
|
module,
|
|
122
86
|
departmentId: departmentId,
|
|
123
87
|
orgName,
|
|
88
|
+
...this.context,
|
|
124
89
|
servicePrefix: servicePrefix || 'supportapi/zd' // FIX: servicePrefix defaultValue should be available from properties
|
|
125
90
|
|
|
126
91
|
};
|
|
@@ -164,6 +129,72 @@ export default class ZForm {
|
|
|
164
129
|
this.isValidationRulesFetching = isValidationRulesFetching;
|
|
165
130
|
}
|
|
166
131
|
|
|
132
|
+
setSubmitFetching(isSubmitFetching) {
|
|
133
|
+
this.isSubmitFetching = isSubmitFetching;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
stopLoadingAndDecideIsBreaking(actionName) {
|
|
137
|
+
let isBreaking = false; // Set error state based on the failed action
|
|
138
|
+
|
|
139
|
+
switch (actionName) {
|
|
140
|
+
case ZFormApiActionName.getMyForm:
|
|
141
|
+
this.setMyFormFetching(false);
|
|
142
|
+
isBreaking = true;
|
|
143
|
+
break;
|
|
144
|
+
|
|
145
|
+
case ZFormApiActionName.getMyLayouts:
|
|
146
|
+
// this.setMyLayoutsFetching(false);
|
|
147
|
+
// isBreaking = true;
|
|
148
|
+
break;
|
|
149
|
+
|
|
150
|
+
case ZFormApiActionName.getValidationRules:
|
|
151
|
+
// isBreaking = true;
|
|
152
|
+
this.setValidationRulesFetching(false);
|
|
153
|
+
break;
|
|
154
|
+
|
|
155
|
+
case ZFormApiActionName.getLayoutRules:
|
|
156
|
+
// isBreaking = true;
|
|
157
|
+
this.setLayoutRulesFetching(false);
|
|
158
|
+
break;
|
|
159
|
+
|
|
160
|
+
case ZFormApiActionName.getDependencyMappings:
|
|
161
|
+
// isBreaking = true;
|
|
162
|
+
this.setDependencyFetching(false);
|
|
163
|
+
break;
|
|
164
|
+
|
|
165
|
+
default:
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return isBreaking;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
constructApiErrorEvent(error, actionName, isBreaking) {
|
|
173
|
+
console.log('Error in action: ', actionName, error);
|
|
174
|
+
|
|
175
|
+
if (error.code === ZHttpErrorCode.ApiError) {
|
|
176
|
+
return {
|
|
177
|
+
code: ErrorCodes.API_FAILED,
|
|
178
|
+
message: 'Api call failed for action: ' + actionName,
|
|
179
|
+
errorDetails: {
|
|
180
|
+
isBreaking,
|
|
181
|
+
originalError: error,
|
|
182
|
+
actionName
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
code: ErrorCodes.UNKNOWN_ERROR,
|
|
189
|
+
message: 'Api call failed for action: ' + actionName,
|
|
190
|
+
errorDetails: {
|
|
191
|
+
isBreaking,
|
|
192
|
+
originalError: error,
|
|
193
|
+
actionName
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
167
198
|
getSectionId(_ref2) {
|
|
168
199
|
let {
|
|
169
200
|
fieldName,
|
|
@@ -366,7 +397,7 @@ export default class ZForm {
|
|
|
366
397
|
|
|
367
398
|
getFieldValidateRules(fieldName, eventName) {
|
|
368
399
|
const validationRules = this.validationRules.map(vr => vr.toObject());
|
|
369
|
-
return validationRules.filter(vr => vr.fieldName === fieldName).filter(vr => vr.fieldConditions.every(condition => eventName ? condition
|
|
400
|
+
return validationRules.filter(vr => vr.fieldName === fieldName).filter(vr => vr.fieldConditions.every(condition => eventName ? condition?.executeOn ? condition.executeOn.includes(eventName) : false : true));
|
|
370
401
|
}
|
|
371
402
|
|
|
372
403
|
executeLayoutRules(layoutRuleHelper) {
|
|
@@ -620,6 +651,7 @@ export default class ZForm {
|
|
|
620
651
|
isMyFormFetching: this.isMyFormFetching,
|
|
621
652
|
isDependencyFetching: this.isDependencyFetching,
|
|
622
653
|
isLayoutRulesFetching: this.isLayoutRulesFetching,
|
|
654
|
+
isSubmitFetching: this.isSubmitFetching,
|
|
623
655
|
isValidationRulesFetching: this.isValidationRulesFetching
|
|
624
656
|
/*hack end*/
|
|
625
657
|
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
export default class ZLayout {
|
|
4
2
|
constructor(departmentId, id, isDefaultLayout, isStandardLayout, layoutName, module) {
|
|
5
|
-
_defineProperty(this, "departmentId", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "id", void 0);
|
|
8
|
-
|
|
9
|
-
_defineProperty(this, "isDefaultLayout", void 0);
|
|
10
|
-
|
|
11
|
-
_defineProperty(this, "isStandardLayout", void 0);
|
|
12
|
-
|
|
13
|
-
_defineProperty(this, "layoutName", void 0);
|
|
14
|
-
|
|
15
|
-
_defineProperty(this, "module", void 0);
|
|
16
|
-
|
|
17
3
|
this.departmentId = departmentId;
|
|
18
4
|
this.id = id;
|
|
19
5
|
this.isDefaultLayout = isDefaultLayout;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
// ZLayoutRule Entity
|
|
4
2
|
export default class ZLayoutRule {
|
|
5
3
|
constructor(_ref) {
|
|
@@ -19,35 +17,6 @@ export default class ZLayoutRule {
|
|
|
19
17
|
id,
|
|
20
18
|
status
|
|
21
19
|
} = _ref;
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "displayLabel", void 0);
|
|
24
|
-
|
|
25
|
-
_defineProperty(this, "fieldConditions", void 0);
|
|
26
|
-
|
|
27
|
-
_defineProperty(this, "modifiedTime", void 0);
|
|
28
|
-
|
|
29
|
-
_defineProperty(this, "fieldName", void 0);
|
|
30
|
-
|
|
31
|
-
_defineProperty(this, "description", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "systemGenerated", void 0);
|
|
34
|
-
|
|
35
|
-
_defineProperty(this, "layoutId", void 0);
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "executeInHelpCentre", void 0);
|
|
38
|
-
|
|
39
|
-
_defineProperty(this, "createdBy", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "name", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(this, "createdTime", void 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(this, "modifiedBy", void 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "id", void 0);
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "status", void 0);
|
|
50
|
-
|
|
51
20
|
this.displayLabel = displayLabel;
|
|
52
21
|
this.fieldConditions = fieldConditions;
|
|
53
22
|
this.modifiedTime = modifiedTime;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
export default class ZSection {
|
|
4
2
|
// Optional field for description
|
|
5
3
|
// private visibility:boolean;
|
|
@@ -15,23 +13,6 @@ export default class ZSection {
|
|
|
15
13
|
// visibility
|
|
16
14
|
isVisible
|
|
17
15
|
} = _ref;
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "name", void 0);
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "i18NLabel", void 0);
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "isCustomSection", void 0);
|
|
24
|
-
|
|
25
|
-
_defineProperty(this, "description", void 0);
|
|
26
|
-
|
|
27
|
-
_defineProperty(this, "isCollapsed", void 0);
|
|
28
|
-
|
|
29
|
-
_defineProperty(this, "id", void 0);
|
|
30
|
-
|
|
31
|
-
_defineProperty(this, "fields", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "isVisible", void 0);
|
|
34
|
-
|
|
35
16
|
this.name = name;
|
|
36
17
|
this.i18NLabel = i18NLabel;
|
|
37
18
|
this.isCustomSection = isCustomSection;
|
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
export default class ZValidationRule {
|
|
4
2
|
constructor(validationRuleData) {
|
|
5
|
-
_defineProperty(this, "displayLabel", void 0);
|
|
6
|
-
|
|
7
|
-
_defineProperty(this, "fieldConditions", void 0);
|
|
8
|
-
|
|
9
|
-
_defineProperty(this, "modifiedTime", void 0);
|
|
10
|
-
|
|
11
|
-
_defineProperty(this, "fieldName", void 0);
|
|
12
|
-
|
|
13
|
-
_defineProperty(this, "executeInHelpCentre", void 0);
|
|
14
|
-
|
|
15
|
-
_defineProperty(this, "createdBy", void 0);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "createdTime", void 0);
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "modifiedBy", void 0);
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "systemGenerated", void 0);
|
|
24
|
-
|
|
25
|
-
_defineProperty(this, "layoutId", void 0);
|
|
26
|
-
|
|
27
|
-
_defineProperty(this, "status", void 0);
|
|
28
|
-
|
|
29
|
-
_defineProperty(this, "isActive", void 0);
|
|
30
|
-
|
|
31
3
|
this.displayLabel = validationRuleData.displayLabel;
|
|
32
4
|
this.fieldConditions = validationRuleData.fieldConditions;
|
|
33
5
|
this.modifiedTime = validationRuleData.modifiedTime;
|