@zohodesk/library-platform 1.1.10 → 1.1.12-temp-1
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/Event.js +1 -0
- package/es/bc/app-context/Properties.js +68 -0
- package/es/bc/clip-wrap/ActionHandlers.js +1 -0
- package/es/bc/clip-wrap/ClipWrapEnum.js +7 -0
- package/es/bc/clip-wrap/Constants.js +2 -0
- package/es/bc/clip-wrap/Properties.js +24 -0
- package/es/bc/clip-wrap/index.js +2 -0
- package/es/bc/column-chooser/Properties.js +12 -0
- package/es/bc/sdk/ResourceNamesEnum.js +1 -0
- package/es/bc/zform/Constants.js +11 -1
- package/es/bc/zform/Properties.js +29 -33
- package/es/bc/zform/Symbol.js +1 -3
- package/es/bc/zlist/Constants.js +2 -1
- package/es/bc/zlist/Properties.js +0 -51
- package/es/bc/zrecord/Constants.js +5 -0
- package/es/cc/checkbox/Properties.js +8 -0
- package/es/cc/component/ErrorStructure.js +9 -0
- package/es/cc/date/Properties.js +1 -1
- package/es/cc/email/Properties.js +18 -0
- 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/boolean/Model.js +6 -2
- package/es/cc/fields/coloured-multi-select/Model.js +6 -2
- package/es/cc/fields/coloured-pick-list/Model.js +6 -2
- package/es/cc/fields/currency/Model.js +6 -2
- package/es/cc/fields/currency/Properties.js +2 -1
- package/es/cc/fields/date/Model.js +6 -2
- package/es/cc/fields/datetime/Model.js +6 -2
- package/es/cc/fields/decimal/Model.js +6 -2
- package/es/cc/fields/email/Model.js +6 -2
- package/es/cc/fields/field/Properties.js +41 -8
- package/es/cc/fields/field/Types.js +1 -0
- package/es/cc/fields/formula/Model.js +6 -2
- package/es/cc/fields/lookup/Model.js +6 -2
- package/es/cc/fields/lookup/Properties.js +49 -2
- package/es/cc/fields/multi-line/Model.js +6 -2
- package/es/cc/fields/multi-select/Model.js +6 -2
- package/es/cc/fields/multi-select/Properties.js +6 -0
- package/es/cc/fields/name/Events.js +3 -0
- package/es/cc/fields/name/Model.js +18 -0
- package/es/cc/fields/name/Properties.js +27 -0
- package/es/cc/fields/number/Model.js +6 -2
- package/es/cc/fields/percent/Model.js +6 -2
- package/es/cc/fields/phone/Model.js +6 -2
- package/es/cc/fields/pick-list/Model.js +6 -2
- package/es/cc/fields/pick-list/Properties.js +6 -0
- package/es/cc/fields/text/Model.js +6 -2
- package/es/cc/fields/text/Properties.js +0 -9
- package/es/cc/fields/url/Model.js +6 -2
- package/es/cc/form/Properties.js +8 -0
- package/es/cc/form-connected/ExternalConstants.js +3 -0
- package/es/cc/form-connected/Properties.js +21 -13
- package/es/cc/label/Properties.js +8 -0
- package/es/cc/link/Properties.js +18 -0
- package/es/cc/multi-select/Properties.js +8 -0
- package/es/cc/section/Properties.js +32 -0
- package/es/cc/select/Properties.js +8 -0
- package/es/cc/table-column-chooser/Properties.js +21 -0
- package/es/cc/table-column-filter/Model.js +0 -4
- package/es/cc/table-column-filter/Properties.js +5 -14
- package/es/cc/table-connected/Properties.js +50 -0
- package/es/cc/table-connected/SdkContract.js +32 -0
- package/es/cc/table-connected/constants/Events.js +2 -1
- package/es/cc/table-connected/constants/ExternalConstants.js +4 -1
- package/es/cc/table-list/Constants.js +3 -0
- package/es/cc/table-list/Events.js +32 -0
- package/es/cc/table-list/Properties.js +23 -1
- package/es/cc/table-list/row/Properties.js +17 -0
- package/es/cc/table-text-overflow/Constants.js +5 -0
- package/es/cc/table-text-overflow/Events.js +15 -0
- package/es/cc/table-text-overflow/Properties.js +23 -0
- package/es/cc/table-text-overflow/index.js +2 -0
- package/es/cc/tags/Properties.js +9 -0
- package/es/cc/text/Properties.js +9 -0
- package/es/cc/textbox/Properties.js +8 -0
- package/es/index.js +15 -3
- 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/clip-wrap/adapters/controllers/ClipWrap.js +26 -0
- package/es/library/behaviours/clip-wrap/adapters/controllers/DestructController.js +18 -0
- package/es/library/behaviours/clip-wrap/adapters/controllers/InitializeController.js +18 -0
- package/es/library/behaviours/clip-wrap/adapters/gateway/Repository.js +30 -0
- package/es/library/behaviours/clip-wrap/adapters/gateway/Service.js +10 -0
- package/es/library/behaviours/clip-wrap/adapters/presenter/Presenter.js +16 -0
- package/es/library/behaviours/{field-validation → clip-wrap}/applications/usecases/AbstractUseCase.js +3 -1
- package/es/library/behaviours/clip-wrap/applications/usecases/ClipWrap.js +25 -0
- package/es/library/behaviours/clip-wrap/applications/usecases/DestructUsecase.js +15 -0
- package/es/library/behaviours/clip-wrap/applications/usecases/InitializeUsecase.js +15 -0
- package/es/library/behaviours/clip-wrap/domain/entities/ClipWrap.js +22 -0
- package/es/library/behaviours/clip-wrap/frameworks/ui/ActionsHandlerFactory.js +28 -0
- package/es/library/behaviours/clip-wrap/frameworks/ui/ClipWrapBehaviourFactory.js +26 -0
- package/es/library/custom-component/adapters/controllers/Controller.js +9 -0
- package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +27 -20
- package/es/library/custom-component/adapters/gateways/service/Service.js +2 -0
- 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 +5 -6
- package/es/library/custom-component/domain/entities/Behaviour.js +4 -0
- package/es/library/custom-component/domain/entities/Component.js +89 -83
- package/es/library/custom-component/domain/entities/ComponentProperties.js +119 -0
- package/es/library/custom-component/domain/entities/Logger.js +99 -0
- package/es/library/custom-component/domain/entities/Properties.js +10 -137
- package/es/library/custom-component/domain/entities/Property.js +29 -0
- package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +65 -28
- package/es/library/custom-component/frameworks/ui/ComponentRegistry.js +2 -2
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +27 -14
- package/es/library/custom-component/frameworks/ui/DependencyFactory.js +1 -2
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +4 -1
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
- package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +10 -2
- 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 -5
- 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/MiddleSection.js +4 -2
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +8 -2
- package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +4 -2
- 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 +4 -2
- package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +4 -2
- package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +4 -2
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +4 -2
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +4 -2
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/Lookup.js +1 -1
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +4 -2
- package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -2
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +4 -2
- package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -2
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +4 -2
- package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -2
- 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 +4 -2
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +4 -2
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +5 -3
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +35 -5
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +11 -0
- package/es/library/dot/components/table-list/adapters/controllers/ClipWrapController.js +23 -0
- package/es/library/dot/components/table-list/adapters/controllers/ResolutionBasedCountController.js +24 -0
- package/es/library/dot/components/table-list/adapters/controllers/index.js +2 -1
- package/es/library/dot/components/table-list/frameworks/ui/EventHandlersFactory.js +2 -1
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +27 -8
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +18 -0
- 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 +15 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +8 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.js +1 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +9 -5
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +6 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +12 -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 +35 -11
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +8 -5
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +5 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +35 -7
- 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 +11 -7
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +6 -2
- 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 -4
- package/es/library/dot/legacy-to-new-arch/link/frameworks/ui/LinkView.js +5 -1
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +31 -7
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +9 -17
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +33 -8
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +5 -0
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/TableColumnChooserView.js +73 -4
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +8 -0
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +2 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/coloured-multiselect-field/frameworks/ui/ColouredMultiSelectFieldView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/currency-field/frameworks/ui/CurrencyFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/date-field/frameworks/ui/DateFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/datetime-field/frameworks/ui/DateTimeFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/decimal-field/frameworks/ui/DecimalFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/email-field/frameworks/ui/EmailFieldView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/index.js +3 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/lookup-field/frameworks/ui/LookupFieldView.js +9 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/multiselect-field/frameworks/ui/MultiSelectFieldView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/number-field/frameworks/ui/NumberFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/percentage-field/frameworks/ui/PercentageFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/phone-field/frameworks/ui/PhoneFieldView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/picklist-field/frameworks/ui/PickListFieldView.js +7 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/primary-field/frameworks/ui/PrimaryField.js +12 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/primary-field/frameworks/ui/PrimaryFieldView.js +50 -0
- package/es/library/dot/legacy-to-new-arch/table-field-components/singleline-field/frameworks/ui/SingleLineFieldView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/table-field-components/url-field/frameworks/ui/UrlFieldView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/tags/frameworks/ui/TagsView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/text/frameworks/ui/TextView.js +5 -4
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +8 -4
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +0 -24
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +8 -4
- package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +31 -0
- package/es/platform/client-actions/behaviour/zclient-actions/applications/usecases/SetClientActionsUseCase.js +6 -1
- 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 -8
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionResponse.js +1 -0
- 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 -2
- 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 +41 -24
- 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/ClientActionReordererRegistry.js +40 -0
- 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/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/RowActionsRendererView.js +37 -0
- package/es/platform/client-actions/translators/client-actions-translator/index.js +41 -3
- 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/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/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/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/components/app/adapters/resources/AppResource.js +13 -3
- package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +2 -1
- package/es/platform/components/form-connected/frameworks/FormConnectedFactory.js +7 -1
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +4 -2
- package/es/platform/components/table-connected/adapters/controllers/ColumnChooserUpdateController.js +7 -1
- package/es/platform/components/table-connected/adapters/controllers/ResolutionBasedLimitController.js +21 -0
- package/es/platform/components/table-connected/adapters/resources/ErrorPrinter.js +14 -11
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +82 -0
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +280 -4
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +8 -2
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +9 -4
- 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/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/markAsRead.js +27 -0
- package/es/platform/data-source/http-template/markAsUnRead.js +27 -0
- package/es/platform/data-source/http-template/updateSelectedFields.js +1 -1
- package/es/platform/data-source/index.js +18 -11
- package/es/platform/sdk/domain/entities/ResourceManager.js +3 -3
- package/es/platform/sdk/frameworks/Sdk.js +1 -1
- package/es/platform/zdata-source/domain/entities/APITemplate.js +2 -1
- 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/MyLayoutSuccessController.js +4 -2
- package/es/platform/zform/adapters/controllers/SubmitValidationCompletedController.js +5 -1
- package/es/platform/zform/adapters/gateway/FormRepository.js +9 -3
- package/es/platform/zform/adapters/gateway/Service.js +6 -0
- package/es/platform/zform/adapters/presenter/FormTranslator.js +51 -25
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +39 -11
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +11 -11
- package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +18 -1
- package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +18 -1
- package/es/platform/zform/adapters/presenter/translators/interfaces/ClientActions.js +1 -0
- package/es/platform/zform/adapters/presenter/utils/DefaultClientActions.js +3 -1
- 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/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/InitializeUseCase.js +54 -26
- package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +16 -17
- package/es/platform/zform/applications/usecases/MyLayoutSuccessUseCase.js +60 -36
- package/es/platform/zform/applications/usecases/SubmitValidationCompletedUseCase.js +14 -8
- package/es/platform/zform/domain/ZForm.js +74 -4
- package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +21 -26
- package/es/platform/zform/frameworks/ui/ZFormBehaviourFactory.js +1 -0
- package/es/platform/zform/frameworks/validation-rules/Validator.js +1 -1
- package/es/platform/zhttp/adapters/controllers/FetchController.js +5 -1
- package/es/platform/zlist/adapters/controllers/ResolutionBasedLimitController.js +26 -0
- package/es/platform/zlist/adapters/gateways/Repository.js +7 -4
- package/es/platform/zlist/adapters/gateways/Service.js +2 -0
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +24 -10
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +37 -10
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +56 -28
- 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 +8 -3
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +13 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +11 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +13 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +11 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +13 -3
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +17 -5
- package/es/platform/zlist/adapters/presenters/translators/fields/NameFieldTranslator.js +58 -0
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +17 -5
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +12 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/index.js +3 -1
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +75 -3
- package/es/platform/zlist/applications/interfaces/input/ResolutionBasedLimitInput.js +1 -0
- package/es/platform/zlist/applications/usecases/ResolutionBasedLimitUseCase.js +20 -0
- package/es/platform/zlist/domain/entities/List.js +22 -2
- package/es/platform/zlist/frameworks/EventHandlersFactory.js +3 -1
- package/es/platform/zrecord/adapters/controllers/MarkAsReadController.js +28 -0
- package/es/platform/zrecord/adapters/controllers/MarkAsUnReadController.js +28 -0
- package/es/platform/zrecord/adapters/gateways/Service.js +4 -0
- package/es/platform/zrecord/applications/interfaces/input/MarkAsReadInputModel.js +1 -0
- package/es/platform/zrecord/applications/interfaces/input/MarkAsUnReadInputModel.js +1 -0
- package/es/platform/zrecord/applications/usecases/MarkAsReadUseCase.js +32 -0
- package/es/platform/zrecord/applications/usecases/MarkAsUnReadUseCase.js +32 -0
- package/es/platform/zrecord/domain/entities/Record.js +6 -0
- package/es/platform/zrecord/domain/entities/Records.js +12 -0
- package/es/platform/zrecord/domain/entities/RecordsManager.js +8 -0
- package/es/platform/zrecord/frameworks/ActionsHandlersFactory.js +7 -1
- package/package.json +8 -8
- package/es/bc/field-validation/Constants.js +0 -4
- package/es/bc/field-validation/EventHandlers.js +0 -1
- package/es/bc/field-validation/Events.js +0 -106
- package/es/bc/field-validation/FieldTypes.js +0 -20
- package/es/bc/field-validation/Properties.js +0 -11
- package/es/bc/field-validation/index.js +0 -5
- package/es/cc/ephi-tag/Properties.js +0 -1
- package/es/cc/ephi-tag/index.js +0 -1
- package/es/cc/form-connected/Constants.js +0 -12
- package/es/cc/info-icon/Properties.js +0 -10
- package/es/cc/info-icon/index.js +0 -1
- package/es/library/behaviours/field-validation/adapters/controllers/ValidateFieldController.js +0 -32
- package/es/library/behaviours/field-validation/adapters/controllers/ValidateFieldsController.js +0 -31
- package/es/library/behaviours/field-validation/adapters/gateway/Repository.js +0 -23
- package/es/library/behaviours/field-validation/adapters/gateway/Service.js +0 -18
- package/es/library/behaviours/field-validation/applications/interfaces/input/FieldData.js +0 -17
- package/es/library/behaviours/field-validation/applications/usecases/ValidateField.js +0 -29
- package/es/library/behaviours/field-validation/applications/usecases/ValidateFields.js +0 -28
- package/es/library/behaviours/field-validation/domain/FieldValidation.js +0 -94
- package/es/library/behaviours/field-validation/domain/field-vise-validations/BooleanValidation.js +0 -28
- package/es/library/behaviours/field-validation/domain/field-vise-validations/CurrencyValidation.js +0 -49
- package/es/library/behaviours/field-validation/domain/field-vise-validations/DateTimeValidation.js +0 -24
- package/es/library/behaviours/field-validation/domain/field-vise-validations/DateValidation.js +0 -24
- package/es/library/behaviours/field-validation/domain/field-vise-validations/DecimalValidation.js +0 -49
- package/es/library/behaviours/field-validation/domain/field-vise-validations/EmailValidation.js +0 -28
- package/es/library/behaviours/field-validation/domain/field-vise-validations/IntegerValidation.js +0 -39
- package/es/library/behaviours/field-validation/domain/field-vise-validations/LookUpValidation.js +0 -24
- package/es/library/behaviours/field-validation/domain/field-vise-validations/MultiSelectValidation.js +0 -26
- package/es/library/behaviours/field-validation/domain/field-vise-validations/PercentValidation.js +0 -28
- package/es/library/behaviours/field-validation/domain/field-vise-validations/PhoneValidation.js +0 -39
- package/es/library/behaviours/field-validation/domain/field-vise-validations/PicklistValidation.js +0 -24
- package/es/library/behaviours/field-validation/domain/field-vise-validations/TextAreaValidation.js +0 -39
- package/es/library/behaviours/field-validation/domain/field-vise-validations/TextBoxValidation.js +0 -39
- package/es/library/behaviours/field-validation/domain/field-vise-validations/URLValidation.js +0 -28
- package/es/library/behaviours/field-validation/domain/interfaces/FieldTypes.js +0 -20
- package/es/library/behaviours/field-validation/domain/interfaces/ValidationsEnum.js +0 -22
- package/es/library/behaviours/field-validation/domain/interfaces/fields/IMultiSelectField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/IPercentField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/IPhoneField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/IPicklistField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/ITextAreaField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/ITextBoxField.js +0 -0
- package/es/library/behaviours/field-validation/domain/interfaces/fields/IURLField.js +0 -0
- package/es/library/behaviours/field-validation/frameworks/ui/EventHandlerFactory.js +0 -23
- package/es/library/behaviours/field-validation/frameworks/ui/FieldValidationBehaviourFactory.js +0 -27
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/BooleanFieldValidation.test.js +0 -137
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/CurrencyFieldValidation.test.js +0 -228
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/DateFieldValidation.test.js +0 -108
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/DateTimeFieldValidation.test.js +0 -108
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/DecimalFieldValidation.test.js +0 -257
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/EmailFieldValidation.test.js +0 -139
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/FieldValidationBehaviour.test.js +0 -171
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/IntegerFieldValidation.test.js +0 -168
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/LookUpFieldValidation.test.js +0 -108
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/MultiSelectFieldValidation.test.js +0 -79
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/PercentFieldValidation.test.js +0 -108
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/PhoneFieldValidation.test.js +0 -168
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/PicklistFieldValidation.test.js +0 -79
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/TextAreaFieldValidation.test.js +0 -170
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/TextBoxFieldValidation.test.js +0 -170
- package/es/library/behaviours/field-validation/frameworks/ui/__tests__/URLFieldValidation.test.js +0 -108
- package/es/library/behaviours/field-validation/frameworks/utils/FormBasicValidationAdaptor.js +0 -228
- package/es/library/behaviours/field-validation/frameworks/utils/__tests__/formValidate.test.js +0 -284
- package/es/library/behaviours/field-validation/frameworks/utils/formValidate.js +0 -334
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +0 -56
- package/es/library/dot/components/form-fields/checkbox/adapters/presenter/TransformState.js +0 -22
- package/es/library/dot/components/form-fields/currency/adapters/presenter/TransformState.js +0 -81
- package/es/library/dot/components/form-fields/date/adapters/presenter/TransformState.js +0 -22
- package/es/library/dot/components/form-fields/datetime/adapters/presenter/TransformState.js +0 -22
- package/es/library/dot/components/form-fields/decimal/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/form-fields/email/adapters/presenter/TransformState.js +0 -23
- package/es/library/dot/components/form-fields/ephi-tag/frameworks/ui/EPHITag.js +0 -10
- package/es/library/dot/components/form-fields/ephi-tag/frameworks/ui/EPHITagView.js +0 -21
- package/es/library/dot/components/form-fields/ephi-tag/frameworks/ui/css/EPHITag.module.css +0 -3
- package/es/library/dot/components/form-fields/info-icon/frameworks/ui/InfoIcon.js +0 -10
- package/es/library/dot/components/form-fields/info-icon/frameworks/ui/InfoIconView.js +0 -21
- package/es/library/dot/components/form-fields/info-icon/frameworks/ui/css/InfoIcon.module.css +0 -3
- package/es/library/dot/components/form-fields/multi-select/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/form-fields/number/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/form-fields/percentage/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/form-fields/phone/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/form-fields/pick-list/adapters/presenter/TransformState.js +0 -23
- package/es/library/dot/components/form-fields/textarea/adapters/presenter/TransformState.js +0 -23
- package/es/library/dot/components/form-fields/textbox/adapters/presenter/TransformState.js +0 -32
- package/es/library/dot/components/form-fields/url/adapters/presenter/TransformState.js +0 -31
- package/es/library/dot/components/section/adapters/presenter/TransFormState.js +0 -26
- 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 -38
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +0 -33
- package/es/platform/zform/adapters/controllers/ValidateErrorMessageController.js +0 -22
- package/es/platform/zform/applications/usecases/ValidateErrorMessageUseCase.js +0 -33
- package/es/platform/zform/applications/usecases/ValidateFieldRequestUseCase.js +0 -56
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +0 -11
- /package/es/{library/behaviours/field-validation/domain/interfaces/IField.js → bc/app-context/Constants.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IBooleanField.js → bc/app-context/EventHandlers.js} +0 -0
- /package/es/{library/behaviours/field-validation/applications/interfaces/UseCaseDependencies.js → bc/clip-wrap/types/ClipWrapBehaviourState.js} +0 -0
- /package/es/{library/behaviours/field-validation/applications/interfaces/gateways/IRepository.js → cc/table-list/data-types/TextOverflowConfig.js} +0 -0
- /package/es/library/behaviours/{field-validation → clip-wrap}/adapters/controllers/AbstractController.js +0 -0
- /package/es/library/behaviours/{field-validation/applications/interfaces/gateways/IService.js → clip-wrap/applications/interfaces/UseCaseDependencies.js} +0 -0
- /package/es/library/behaviours/{field-validation/applications/interfaces/input/FieldValidationInputModel.js → clip-wrap/applications/interfaces/gateways/IRepository.js} +0 -0
- /package/es/library/behaviours/{field-validation/applications/interfaces/input/ValidateFieldsInputModel.js → clip-wrap/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/library/behaviours/{field-validation/domain/interfaces/IFieldValidation.js → clip-wrap/applications/interfaces/input/ClipWrapInputModel.js} +0 -0
- /package/es/library/behaviours/{field-validation/domain/interfaces/IFieldViseValidation.js → clip-wrap/applications/interfaces/input/DestructInputModel.js} +0 -0
- /package/es/library/behaviours/{field-validation/domain/interfaces/ValidationResult.js → clip-wrap/applications/interfaces/input/InitializeInputModel.js} +0 -0
- /package/es/library/behaviours/{field-validation/domain/interfaces/ValidationsArray.js → clip-wrap/applications/interfaces/output/ClipWrapOutputModel.js} +0 -0
- /package/es/library/behaviours/{field-validation/domain/interfaces/ValidationsMap.js → clip-wrap/applications/interfaces/output/IPresenter.js} +0 -0
- /package/es/{platform/client-actions/components/dynamic-component/domain/entities/interfaces/IState.js → library/behaviours/clip-wrap/domain/entities/interfaces/IClipWrap.js} +0 -0
- /package/es/{platform/zform/applications/interfaces/input/ValidateErrorMessageInputModel.js → library/custom-component/applications/interfaces/input/SetRefInputModel.js} +0 -0
- /package/es/library/{behaviours/field-validation/domain/interfaces/fields/ICurrencyField.js → custom-component/domain/entities/interfaces/IComponentProperties.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IDateField.js → platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionReordererFunction.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IDateTimeField.js → platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/IClientActionFetchResponse.js} +0 -0
- /package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/{RowActionsRenderer.module.css → RowActions/RowActionsRenderer.module.css} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IDecimalField.js → platform/client-scripts/behaviour/zclient-scripts-execution/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IEmailField.js → platform/client-scripts/behaviour/zclient-scripts-fetch/applications/interfaces/gateways/IService.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/IIntegerField.js → platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScript.js} +0 -0
- /package/es/{library/behaviours/field-validation/domain/interfaces/fields/ILookUpField.js → platform/client-scripts/behaviour/zclient-scripts-fetch/domain/entities/interfaces/IClientScripts.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
export default class MarkAsReadController extends AbstractController {
|
|
3
|
+
handle(event) {
|
|
4
|
+
const {
|
|
5
|
+
state,
|
|
6
|
+
updateState,
|
|
7
|
+
action,
|
|
8
|
+
dispatch
|
|
9
|
+
} = event;
|
|
10
|
+
const {
|
|
11
|
+
payload
|
|
12
|
+
} = action;
|
|
13
|
+
const {
|
|
14
|
+
recordId,
|
|
15
|
+
props
|
|
16
|
+
} = payload;
|
|
17
|
+
const {
|
|
18
|
+
markAsReadUseCase
|
|
19
|
+
} = this.service;
|
|
20
|
+
markAsReadUseCase.updateDependency(state, updateState);
|
|
21
|
+
markAsReadUseCase.execute({
|
|
22
|
+
recordId,
|
|
23
|
+
dispatch,
|
|
24
|
+
props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
export default class MarkAsUnReadController extends AbstractController {
|
|
3
|
+
handle(event) {
|
|
4
|
+
const {
|
|
5
|
+
state,
|
|
6
|
+
updateState,
|
|
7
|
+
action,
|
|
8
|
+
dispatch
|
|
9
|
+
} = event;
|
|
10
|
+
const {
|
|
11
|
+
payload
|
|
12
|
+
} = action;
|
|
13
|
+
const {
|
|
14
|
+
recordId,
|
|
15
|
+
props
|
|
16
|
+
} = payload;
|
|
17
|
+
const {
|
|
18
|
+
markAsUnReadUseCase
|
|
19
|
+
} = this.service;
|
|
20
|
+
markAsUnReadUseCase.updateDependency(state, updateState);
|
|
21
|
+
markAsUnReadUseCase.execute({
|
|
22
|
+
recordId,
|
|
23
|
+
dispatch,
|
|
24
|
+
props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -12,6 +12,8 @@ import FieldChangeUseCase from "../../applications/usecases/FieldChangeUseCase";
|
|
|
12
12
|
import SetRecordsUseCase from "../../applications/usecases/SetRecordsUseCase";
|
|
13
13
|
import FetchStateStopUseCase from "../../applications/usecases/FetchStateStopUseCase";
|
|
14
14
|
import CreateRecordUseCase from "../../applications/usecases/CreateRecordUseCase";
|
|
15
|
+
import MarkAsReadUseCase from "../../applications/usecases/MarkAsReadUseCase";
|
|
16
|
+
import MarkAsUnReadUseCase from "../../applications/usecases/MarkAsUnReadUseCase";
|
|
15
17
|
export default class Service {
|
|
16
18
|
constructor(dependencies) {
|
|
17
19
|
this.initializeUseCase = new InitializeUseCase(dependencies);
|
|
@@ -28,6 +30,8 @@ export default class Service {
|
|
|
28
30
|
this.recordUpdateLocalUseCase = new RecordUpdateLocalUseCase(dependencies);
|
|
29
31
|
this.deleteMultipleRecordUseCase = new DeleteMultipleRecordUseCase(dependencies);
|
|
30
32
|
this.createRecordUseCase = new CreateRecordUseCase(dependencies);
|
|
33
|
+
this.markAsReadUseCase = new MarkAsReadUseCase(dependencies);
|
|
34
|
+
this.markAsUnReadUseCase = new MarkAsUnReadUseCase(dependencies);
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import AbstractUseCase from "./AbstractUseCase";
|
|
2
|
+
import { RecordApiActionName } from "../../../../bc/zrecord/Constants";
|
|
3
|
+
|
|
4
|
+
class MarkAsReadUseCase extends AbstractUseCase {
|
|
5
|
+
execute(input) {
|
|
6
|
+
const {
|
|
7
|
+
presenter,
|
|
8
|
+
repository
|
|
9
|
+
} = this.dependencies;
|
|
10
|
+
const {
|
|
11
|
+
props,
|
|
12
|
+
dispatch,
|
|
13
|
+
recordId
|
|
14
|
+
} = input;
|
|
15
|
+
const actionName = RecordApiActionName.MARK_AS_READ;
|
|
16
|
+
const apiName = RecordApiActionName.MARK_AS_READ;
|
|
17
|
+
const recordManager = repository.getRecordsManagerEntity();
|
|
18
|
+
recordManager.setIsRead(recordId, true);
|
|
19
|
+
const record = recordManager.getRecordEntity(recordId);
|
|
20
|
+
recordManager.updateRecord(recordId, record);
|
|
21
|
+
const metaData = recordManager.createFetchMoreRecordMeta(actionName, apiName, { ...props,
|
|
22
|
+
recordReadStatus: 'read'
|
|
23
|
+
});
|
|
24
|
+
presenter.updateRecord(recordManager.toObject());
|
|
25
|
+
dispatch(recordManager.createDataSourceExecuteEvent({ ...props,
|
|
26
|
+
recordReadStatus: 'read'
|
|
27
|
+
}, actionName, metaData));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default MarkAsReadUseCase;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import AbstractUseCase from "./AbstractUseCase";
|
|
2
|
+
import { RecordApiActionName } from "../../../../bc/zrecord/Constants";
|
|
3
|
+
|
|
4
|
+
class MarkAsUnReadUseCase extends AbstractUseCase {
|
|
5
|
+
execute(input) {
|
|
6
|
+
const {
|
|
7
|
+
presenter,
|
|
8
|
+
repository
|
|
9
|
+
} = this.dependencies;
|
|
10
|
+
const {
|
|
11
|
+
props,
|
|
12
|
+
dispatch,
|
|
13
|
+
recordId
|
|
14
|
+
} = input;
|
|
15
|
+
const actionName = RecordApiActionName.MARK_AS_UNREAD;
|
|
16
|
+
const apiName = RecordApiActionName.MARK_AS_UNREAD;
|
|
17
|
+
const recordManager = repository.getRecordsManagerEntity();
|
|
18
|
+
recordManager.setIsRead(recordId, false);
|
|
19
|
+
const record = recordManager.getRecordEntity(recordId);
|
|
20
|
+
recordManager.updateRecord(recordId, record);
|
|
21
|
+
const metaData = recordManager.createFetchMoreRecordMeta(actionName, apiName, { ...props,
|
|
22
|
+
recordReadStatus: 'read'
|
|
23
|
+
});
|
|
24
|
+
presenter.updateRecord(recordManager.toObject());
|
|
25
|
+
dispatch(recordManager.createDataSourceExecuteEvent({ ...props,
|
|
26
|
+
recordReadStatus: 'read'
|
|
27
|
+
}, actionName, metaData));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default MarkAsUnReadUseCase;
|
|
@@ -11,6 +11,7 @@ export default class Record {
|
|
|
11
11
|
this.modifiedBy = recordObj.modifiedBy;
|
|
12
12
|
this.createdBy = recordObj.createdBy;
|
|
13
13
|
this.cf = new CustomFieldValues(recordObj.cf);
|
|
14
|
+
this.isRead = recordObj.isRead;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
updateField(fieldName, value) {
|
|
@@ -25,6 +26,11 @@ export default class Record {
|
|
|
25
26
|
this.input[fieldName] = value;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
setIsRead(isRead) {
|
|
30
|
+
this.isRead = isRead;
|
|
31
|
+
this.input.isRead = isRead;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
toObject() {
|
|
29
35
|
return this.input;
|
|
30
36
|
}
|
|
@@ -42,6 +42,18 @@ export default class Records {
|
|
|
42
42
|
return record ? record.toObject() : null;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
getRecordEntity(recordId) {
|
|
46
|
+
return this.records.find(r => r.getId() === recordId);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
setIsRead(recordId, isRead) {
|
|
50
|
+
const record = this.records.find(r => r.getId() === recordId);
|
|
51
|
+
|
|
52
|
+
if (record) {
|
|
53
|
+
record.setIsRead(isRead);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
updateHasMore(recordsLength) {
|
|
46
58
|
this.hasMore = recordsLength >= this.fetchLimit;
|
|
47
59
|
}
|
|
@@ -219,6 +219,14 @@ export default class RecordsManager {
|
|
|
219
219
|
return this.records.getRecord(recordId);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
getRecordEntity(recordId) {
|
|
223
|
+
return this.records.getRecordEntity(recordId);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
setIsRead(recordId, isRead) {
|
|
227
|
+
return this.records.setIsRead(recordId, isRead);
|
|
228
|
+
}
|
|
229
|
+
|
|
222
230
|
appendRecords(records) {
|
|
223
231
|
this.records.appendRecords(records);
|
|
224
232
|
this.records.updateHasMore(records.length);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
|
-
import { APPEND_RECORDS, RECORD_EXECUTE, RECORD_FETCH_MORE, RECORD_FIELD_CHANGE, RECORD_LOCAL_MULTIPLE_DELETE, RECORD_LOCAL_UPDATE, SET_RECORDS, RECORD_REFETCH, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCESS_NO_CONTENT_CALLBACK, RECORD_EXECUTE_SUCCESS_CALLBACK, RECORD_EXECUTE_FAIL_CALLBACK, CREATE_RECORD } from "../../../bc/zrecord/Constants";
|
|
2
|
+
import { APPEND_RECORDS, RECORD_EXECUTE, RECORD_FETCH_MORE, RECORD_FIELD_CHANGE, RECORD_LOCAL_MULTIPLE_DELETE, RECORD_LOCAL_UPDATE, SET_RECORDS, RECORD_REFETCH, RECORD_EXECUTE_SUCCEEDED, RECORD_EXECUTE_SUCCEEDED_NO_CONTENT, RECORD_EXECUTE_FAILED, RECORD_EXECUTE_SUCCESS_NO_CONTENT_CALLBACK, RECORD_EXECUTE_SUCCESS_CALLBACK, RECORD_EXECUTE_FAIL_CALLBACK, CREATE_RECORD, RECORD_MARK_AS_READ, RECORD_MARK_AS_UNREAD } from "../../../bc/zrecord/Constants";
|
|
3
3
|
import MountController from "../adapters/controllers/MountController";
|
|
4
4
|
import Presenter from "../adapters/presenters/Presenter";
|
|
5
5
|
import Repository from "../adapters/gateways/Repository";
|
|
@@ -17,6 +17,8 @@ import DeleteMultipleRecordLocalController from "../adapters/controllers/DeleteM
|
|
|
17
17
|
import SetRecordsController from "../adapters/controllers/SetRecordsController";
|
|
18
18
|
import FetchStateStopController from "../adapters/controllers/FetchStateStopController";
|
|
19
19
|
import CreateRecordController from "../adapters/controllers/CreateRecordController";
|
|
20
|
+
import MarkAsReadController from "../adapters/controllers/MarkAsReadController";
|
|
21
|
+
import MarkAsUnReadController from "../adapters/controllers/MarkAsUnReadController";
|
|
20
22
|
export default class ActionsHandlersFactory {
|
|
21
23
|
static create(apiDetails) {
|
|
22
24
|
const presenter = new Presenter();
|
|
@@ -40,8 +42,12 @@ export default class ActionsHandlersFactory {
|
|
|
40
42
|
const deleteMultipleRecordLocalController = new DeleteMultipleRecordLocalController(service);
|
|
41
43
|
const fetchStateStopController = new FetchStateStopController(service);
|
|
42
44
|
const createRecordController = new CreateRecordController(service);
|
|
45
|
+
const markAsReadController = new MarkAsReadController(service);
|
|
46
|
+
const markAsUnReadController = new MarkAsUnReadController(service);
|
|
43
47
|
return {
|
|
44
48
|
MOUNT: mountController.handle,
|
|
49
|
+
[RECORD_MARK_AS_READ]: markAsReadController.handle,
|
|
50
|
+
[RECORD_MARK_AS_UNREAD]: markAsUnReadController.handle,
|
|
45
51
|
[RECORD_EXECUTE]: executeController.handle,
|
|
46
52
|
[RECORD_FETCH_MORE]: fetchMoreController.handle,
|
|
47
53
|
[RECORD_REFETCH]: refetchController.handle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/library-platform",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12-temp-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"!es/*.spec.js"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"download": "cdt clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps
|
|
12
|
+
"download": "cdt clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
|
|
13
13
|
"form:test": "npm test -- --silent --testPathIgnorePatterns=\"table\"",
|
|
14
14
|
"test:form": "react-cli test -- --silent --testPathIgnorePatterns=\"(table|mock)\"",
|
|
15
15
|
"clean": "cdt clean ./es",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@typescript-eslint/parser": "^7.11.0",
|
|
43
43
|
"@zoho/SecurityJS": "7.2.4",
|
|
44
44
|
"@zohodesk-private/css-variable-migrator": "^1.0.8",
|
|
45
|
-
"@zohodesk-private/desk-components": "1.
|
|
45
|
+
"@zohodesk-private/desk-components": "1.3.16",
|
|
46
46
|
"@zohodesk-private/dot-registry": "0.0.2",
|
|
47
47
|
"@zohodesk-private/node-plugins": "1.1.9",
|
|
48
48
|
"@zohodesk/a11y": "2.3.6",
|
|
49
49
|
"@zohodesk/codestandard-analytics": "1.0.2",
|
|
50
50
|
"@zohodesk/codestandard-validator": "1.0.0",
|
|
51
|
-
"@zohodesk/components": "1.4.
|
|
51
|
+
"@zohodesk/components": "1.4.18",
|
|
52
52
|
"@zohodesk/dot": "1.7.17",
|
|
53
53
|
"@zohodesk/dotkit": "1.0.3",
|
|
54
54
|
"@zohodesk/eslint-plugin-architecturerules": "0.0.6-exp-4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@zohodesk/icons": "1.1.0",
|
|
58
58
|
"@zohodesk/layout": "3.1.0",
|
|
59
59
|
"@zohodesk/svg": "1.2.1",
|
|
60
|
-
"@zohodesk/utils": "1.3.
|
|
60
|
+
"@zohodesk/utils": "1.3.15",
|
|
61
61
|
"@zohodesk/variables": "1.1.0",
|
|
62
62
|
"@zohodesk/virtualizer": "1.0.13",
|
|
63
63
|
"babel-jest": "29.7.0",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"typescript": "4.9.5"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@zohodesk-private/desk-components": "1.
|
|
80
|
+
"@zohodesk-private/desk-components": "1.3.16",
|
|
81
81
|
"@zohodesk-private/dot-registry": "0.0.2",
|
|
82
82
|
"@zohodesk/a11y": "2.3.6",
|
|
83
|
-
"@zohodesk/components": "1.4.
|
|
83
|
+
"@zohodesk/components": "1.4.18",
|
|
84
84
|
"@zohodesk/dot": "1.7.17",
|
|
85
85
|
"@zohodesk/dotkit": "1.0.3",
|
|
86
86
|
"@zohodesk/hooks": "2.0.5",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@zohodesk/icons": "1.1.0",
|
|
89
89
|
"@zohodesk/layout": "3.1.0",
|
|
90
90
|
"@zohodesk/svg": "1.2.1",
|
|
91
|
-
"@zohodesk/utils": "1.3.
|
|
91
|
+
"@zohodesk/utils": "1.3.15",
|
|
92
92
|
"color": "4.2.3",
|
|
93
93
|
"react-sortable-hoc": "1.11.0"
|
|
94
94
|
},
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export const VALIDATE_FIELD = 'FIELD_VALIDATION#VALIDATE_FIELD';
|
|
2
|
-
export const FIELD_VALIDATION_RESULT = 'FIELD_VALIDATION#FIELD_VALIDATION_RESULT';
|
|
3
|
-
export const VALIDATE_FIELDS = 'FIELD_VALIDATION#VALIDATE_FIELDS';
|
|
4
|
-
export const VALIDATE_FIELDS_RESULT = 'FIELD_VALIDATION#VALIDATE_FIELDS_RESULT';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { VALIDATE_FIELD } from "./Constants";
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { VALIDATE_FIELD, FIELD_VALIDATION_RESULT, VALIDATE_FIELDS, VALIDATE_FIELDS_RESULT } from "./Constants";
|
|
2
|
-
const fieldMeta = {
|
|
3
|
-
type: 'object',
|
|
4
|
-
properties: {
|
|
5
|
-
name: {
|
|
6
|
-
type: 'string'
|
|
7
|
-
},
|
|
8
|
-
type: {
|
|
9
|
-
type: 'string'
|
|
10
|
-
},
|
|
11
|
-
value: {
|
|
12
|
-
type: 'any'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const Events = [{
|
|
17
|
-
type: VALIDATE_FIELD,
|
|
18
|
-
payload: {
|
|
19
|
-
fields: {
|
|
20
|
-
required: true,
|
|
21
|
-
typeMetadata: {
|
|
22
|
-
schema: {
|
|
23
|
-
type: 'array',
|
|
24
|
-
items: fieldMeta
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
|
-
type: FIELD_VALIDATION_RESULT,
|
|
31
|
-
payload: {
|
|
32
|
-
validationResult: {
|
|
33
|
-
required: true,
|
|
34
|
-
typeMetadata: {
|
|
35
|
-
schema: {
|
|
36
|
-
type: 'object',
|
|
37
|
-
properties: {
|
|
38
|
-
isValid: {
|
|
39
|
-
type: 'boolean'
|
|
40
|
-
},
|
|
41
|
-
message: {
|
|
42
|
-
type: 'string'
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
field: {
|
|
49
|
-
required: true,
|
|
50
|
-
typeMetadata: {
|
|
51
|
-
schema: fieldMeta
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
type: VALIDATE_FIELDS,
|
|
57
|
-
payload: {
|
|
58
|
-
fields: {
|
|
59
|
-
required: true,
|
|
60
|
-
typeMetadata: {
|
|
61
|
-
schema: fieldMeta
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
value: {
|
|
65
|
-
required: true,
|
|
66
|
-
typeMetadata: {
|
|
67
|
-
schema: {
|
|
68
|
-
type: 'any'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
type: VALIDATE_FIELDS_RESULT,
|
|
75
|
-
payload: {
|
|
76
|
-
validationResults: {
|
|
77
|
-
required: true,
|
|
78
|
-
typeMetadata: {
|
|
79
|
-
schema: {
|
|
80
|
-
type: 'Array',
|
|
81
|
-
items: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
properties: {
|
|
84
|
-
isValid: {
|
|
85
|
-
type: 'boolean'
|
|
86
|
-
},
|
|
87
|
-
message: {
|
|
88
|
-
type: 'string'
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
fields: {
|
|
96
|
-
required: true,
|
|
97
|
-
typeMetadata: {
|
|
98
|
-
schema: {
|
|
99
|
-
type: 'array',
|
|
100
|
-
items: fieldMeta
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}];
|
|
106
|
-
export default Events;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var FieldTypes = /*#__PURE__*/function (FieldTypes) {
|
|
2
|
-
FieldTypes["TextBox"] = "Text";
|
|
3
|
-
FieldTypes["Email"] = "Email";
|
|
4
|
-
FieldTypes["Decimal"] = "Decimal";
|
|
5
|
-
FieldTypes["Integer"] = "Integer";
|
|
6
|
-
FieldTypes["Phone"] = "Phone";
|
|
7
|
-
FieldTypes["Date"] = "Date";
|
|
8
|
-
FieldTypes["DateTime"] = "DateTime";
|
|
9
|
-
FieldTypes["Boolean"] = "Boolean";
|
|
10
|
-
FieldTypes["MultiSelect"] = "MultiSelect";
|
|
11
|
-
FieldTypes["Picklist"] = "Picklist";
|
|
12
|
-
FieldTypes["Percent"] = "Percent";
|
|
13
|
-
FieldTypes["Currency"] = "Currency";
|
|
14
|
-
FieldTypes["URL"] = "URL";
|
|
15
|
-
FieldTypes["LookUp"] = "LookUp";
|
|
16
|
-
FieldTypes["TextArea"] = "TextArea";
|
|
17
|
-
return FieldTypes;
|
|
18
|
-
}(FieldTypes || {});
|
|
19
|
-
|
|
20
|
-
export default FieldTypes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default {};
|
package/es/cc/ephi-tag/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EPHITagProperties } from "./Properties";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
class SmartFormConstants {
|
|
2
|
-
static SMART_FORM_FIELD_FOCUSED = 'SMART_FORM#FIELD_FOCUSED';
|
|
3
|
-
static SMART_FORM_FIELD_BLURRED = 'SMART_FORM#FIELD_BLURRED';
|
|
4
|
-
static SMART_FORM_FIELD_VALUE_CHANGED = 'SMART_FORM#FIELD_VALUE_CHANGED';
|
|
5
|
-
static SMART_FORM_SUBMIT = 'SMART_FORM#SUBMIT';
|
|
6
|
-
static SMART_FORM_SUBMIT_CLICKED = 'SMART_FORM#SUBMIT_CLICKED';
|
|
7
|
-
static SMART_FORM_CANCEL_CLICKED = 'SMART_FORM#CANCEL_CLICKED';
|
|
8
|
-
static SMART_FORM_SUBMIT_SUCCESS = 'SMART_FORM#SUBMIT_SUCCESS';
|
|
9
|
-
static SMART_FORM_SUBMIT_FAILURE = 'SMART_FORM#SUBMIT_FAILED';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default SmartFormConstants;
|
package/es/cc/info-icon/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as InfoIconProperties } from "./Properties";
|
package/es/library/behaviours/field-validation/adapters/controllers/ValidateFieldController.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import AbstractController from "./AbstractController";
|
|
2
|
-
|
|
3
|
-
class ValidateFieldController extends AbstractController {
|
|
4
|
-
handle(event) {
|
|
5
|
-
const {
|
|
6
|
-
validateFieldUseCase
|
|
7
|
-
} = this.service;
|
|
8
|
-
const {
|
|
9
|
-
state,
|
|
10
|
-
updateState,
|
|
11
|
-
action,
|
|
12
|
-
dispatch
|
|
13
|
-
} = event;
|
|
14
|
-
const {
|
|
15
|
-
field,
|
|
16
|
-
value
|
|
17
|
-
} = action.payload;
|
|
18
|
-
const {
|
|
19
|
-
metadata
|
|
20
|
-
} = action;
|
|
21
|
-
validateFieldUseCase.updateDependencies(state, updateState);
|
|
22
|
-
validateFieldUseCase.execute({
|
|
23
|
-
field,
|
|
24
|
-
value,
|
|
25
|
-
dispatch,
|
|
26
|
-
metadata
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default ValidateFieldController;
|
package/es/library/behaviours/field-validation/adapters/controllers/ValidateFieldsController.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import AbstractController from "./AbstractController";
|
|
2
|
-
|
|
3
|
-
class ValidateFieldsController extends AbstractController {
|
|
4
|
-
handle(event) {
|
|
5
|
-
const {
|
|
6
|
-
validateFieldsUseCase
|
|
7
|
-
} = this.service;
|
|
8
|
-
const {
|
|
9
|
-
state,
|
|
10
|
-
updateState,
|
|
11
|
-
action,
|
|
12
|
-
dispatch
|
|
13
|
-
} = event;
|
|
14
|
-
const {
|
|
15
|
-
fields,
|
|
16
|
-
value
|
|
17
|
-
} = action.payload;
|
|
18
|
-
const {
|
|
19
|
-
metadata
|
|
20
|
-
} = action;
|
|
21
|
-
validateFieldsUseCase.updateDependencies(state, updateState);
|
|
22
|
-
validateFieldsUseCase.execute({
|
|
23
|
-
fields,
|
|
24
|
-
dispatch,
|
|
25
|
-
metadata
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default ValidateFieldsController;
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
import FieldValidation from "../../domain/FieldValidation";
|
|
4
|
-
export default class Repository {
|
|
5
|
-
constructor() {
|
|
6
|
-
_defineProperty(this, "state", void 0);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
init(state) {
|
|
10
|
-
this.state = state;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getFieldValidationEntity() {
|
|
14
|
-
const {
|
|
15
|
-
properties
|
|
16
|
-
} = this.state;
|
|
17
|
-
const {
|
|
18
|
-
validations: validationsMap
|
|
19
|
-
} = properties;
|
|
20
|
-
return new FieldValidation(validationsMap);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
import ValidateField from "../../applications/usecases/ValidateField";
|
|
4
|
-
import ValidateFields from "../../applications/usecases/ValidateFields";
|
|
5
|
-
|
|
6
|
-
class Service {
|
|
7
|
-
constructor(dependencies) {
|
|
8
|
-
_defineProperty(this, "validateFieldUseCase", void 0);
|
|
9
|
-
|
|
10
|
-
_defineProperty(this, "validateFieldsUseCase", void 0);
|
|
11
|
-
|
|
12
|
-
this.validateFieldUseCase = new ValidateField(dependencies);
|
|
13
|
-
this.validateFieldsUseCase = new ValidateFields(dependencies);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default Service;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var FieldTypes = /*#__PURE__*/function (FieldTypes) {
|
|
2
|
-
FieldTypes["TextBox"] = "Text";
|
|
3
|
-
FieldTypes["Email"] = "Email";
|
|
4
|
-
FieldTypes["Decimal"] = "Decimal";
|
|
5
|
-
FieldTypes["Integer"] = "Integer";
|
|
6
|
-
FieldTypes["Phone"] = "Phone";
|
|
7
|
-
FieldTypes["Date"] = "Date";
|
|
8
|
-
FieldTypes["DateTime"] = "DateTime";
|
|
9
|
-
FieldTypes["Boolean"] = "Boolean";
|
|
10
|
-
FieldTypes["MultiSelect"] = "MultiSelect";
|
|
11
|
-
FieldTypes["Picklist"] = "Picklist";
|
|
12
|
-
FieldTypes["Percent"] = "Percent";
|
|
13
|
-
FieldTypes["Currency"] = "Currency";
|
|
14
|
-
FieldTypes["URL"] = "URL";
|
|
15
|
-
FieldTypes["TextArea"] = "TextArea";
|
|
16
|
-
return FieldTypes;
|
|
17
|
-
}(FieldTypes || {});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FIELD_VALIDATION_RESULT } from "../../../../../bc/field-validation/Constants";
|
|
2
|
-
import AbstractUseCase from "./AbstractUseCase";
|
|
3
|
-
|
|
4
|
-
class ValidateField extends AbstractUseCase {
|
|
5
|
-
execute(input) {
|
|
6
|
-
const {
|
|
7
|
-
field,
|
|
8
|
-
value,
|
|
9
|
-
dispatch,
|
|
10
|
-
metadata
|
|
11
|
-
} = input;
|
|
12
|
-
const {
|
|
13
|
-
repository
|
|
14
|
-
} = this.dependencies;
|
|
15
|
-
const fieldValidation = repository.getFieldValidationEntity();
|
|
16
|
-
const validationResult = fieldValidation.validateField(field, value);
|
|
17
|
-
dispatch({
|
|
18
|
-
type: FIELD_VALIDATION_RESULT,
|
|
19
|
-
payload: {
|
|
20
|
-
validationResult,
|
|
21
|
-
field
|
|
22
|
-
},
|
|
23
|
-
metadata
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default ValidateField;
|