@zohodesk/library-platform 1.1.10-temp-1 → 1.1.11
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/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/zlist/Constants.js +2 -1
- package/es/bc/zrecord/Constants.js +4 -0
- package/es/cc/checkbox/Properties.js +8 -0
- package/es/cc/date/Properties.js +1 -1
- package/es/cc/email/Properties.js +18 -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/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 +27 -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 +2 -1
- 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/Model.js +6 -2
- package/es/cc/fields/name/Properties.js +3 -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/url/Model.js +6 -2
- 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 +0 -18
- package/es/cc/table-connected/Properties.js +38 -0
- package/es/cc/table-connected/SdkContract.js +18 -0
- 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 +21 -0
- package/es/cc/table-list/data-types/TextOverflowConfig.js +1 -0
- package/es/cc/table-list/row/Properties.js +9 -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 +4 -2
- package/es/library/analytics/Analytics.js +1 -1
- package/es/library/behaviours/clip-wrap/adapters/controllers/AbstractController.js +9 -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/clip-wrap/applications/interfaces/UseCaseDependencies.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/gateways/IService.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/input/ClipWrapInputModel.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/input/DestructInputModel.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/input/InitializeInputModel.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/output/ClipWrapOutputModel.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/interfaces/output/IPresenter.js +1 -0
- package/es/library/behaviours/clip-wrap/applications/usecases/AbstractUseCase.js +17 -0
- 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/domain/entities/interfaces/IClipWrap.js +1 -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/gateways/event-manager/EventManager.js +23 -20
- package/es/library/custom-component/applications/usecases/UpdateStateUseCase.js +2 -4
- package/es/library/custom-component/domain/entities/ComponentProperties.js +0 -1
- package/es/library/custom-component/domain/entities/Logger.js +43 -37
- package/es/library/custom-component/frameworks/ui/ComponentRegistry.js +2 -2
- package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +1 -1
- package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +2 -0
- package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +3 -3
- package/es/library/dot/components/form/frameworks/ui/FormView.js +2 -2
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- 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/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/field/css/FieldItem.module.css +2 -2
- 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 +26 -4
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +9 -1
- 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 +13 -1
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +33 -15
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +9 -3
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +4 -2
- 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 +3 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +2 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +7 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +21 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +3 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +3 -0
- 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/date/frameworks/ui/DateView.js +10 -6
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/email/frameworks/ui/EmailView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +4 -2
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -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 +30 -6
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +14 -22
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +31 -6
- 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 +7 -2
- package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +3 -5
- 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/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/PrimaryFieldView.js +25 -13
- 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 +4 -3
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +6 -2
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -27
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +6 -2
- package/es/platform/app-context-behaviour/frameworks/AppContextBehaviourFactory.js +2 -2
- package/es/platform/client-actions/behaviour/zclient-actions/domain/entities/interfaces/ClientActionReordererFunction.js +0 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionReordererRegistry.js +40 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +5 -5
- package/es/platform/client-actions/translators/client-actions-translator/index.js +27 -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 +32 -0
- package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +66 -4
- package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +6 -2
- package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +3 -2
- package/es/platform/components/table-connected/frameworks/TableConnectedView.js +2 -0
- 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/index.js +4 -0
- package/es/platform/data-source/utils/validation-rules/TransFormValidationRules.js +0 -1
- package/es/platform/sdk/domain/entities/ResourceManager.js +3 -3
- package/es/platform/zform/adapters/presenter/FormTranslator.js +18 -3
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +34 -8
- 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/domain/ZForm.js +2 -6
- package/es/platform/zform/frameworks/validation-rules/Validator.js +1 -1
- package/es/platform/zlist/adapters/controllers/ResolutionBasedLimitController.js +26 -0
- package/es/platform/zlist/adapters/gateways/Repository.js +3 -2
- package/es/platform/zlist/adapters/gateways/Service.js +2 -0
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +19 -8
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +19 -5
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +24 -14
- package/es/platform/zlist/adapters/presenters/translators/Row.js +4 -2
- package/es/platform/zlist/adapters/presenters/translators/RowsTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/BooleanFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/DecimalFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/EmailFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/LookUpFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiLineFieldTranslator.js +7 -3
- package/es/platform/zlist/adapters/presenters/translators/fields/MultiSelectFieldTranslator.js +11 -5
- package/es/platform/zlist/adapters/presenters/translators/fields/NameFieldTranslator.js +8 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/NumberFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PercentageFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PhoneFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/PickListFieldTranslator.js +11 -5
- package/es/platform/zlist/adapters/presenters/translators/fields/SingleLineFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/translators/fields/URLFieldTranslator.js +6 -2
- package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +74 -2
- 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 +5 -0
- 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 +9 -10
- package/es/cc/fields/name/Constants.js +0 -5
- package/es/cc/table-primary-field/Constants.js +0 -5
- package/es/cc/table-primary-field/Events.js +0 -4
- package/es/cc/table-primary-field/Properties.js +0 -29
- package/es/library/custom-component/frameworks/ui/CustomComponentFactory.js +0 -56
- package/es/library/dot/components/table-list/.DS_Store +0 -0
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/TableColumnChooserView.module.css +0 -3
- package/es/library/dot/legacy-to-new-arch/table-field-components/primary-field/frameworks/ui/EventHandlersFactory.js +0 -28
- 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/RowActionsRenderer.js +0 -12
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +0 -19
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRendererView.js +0 -33
- package/es/platform/data-source/http-template/fetchDependencyMappings.js +0 -18
- package/es/platform/data-source/http-template/fetchLayoutRules.js +0 -29
- package/es/platform/data-source/http-template/fetchMyForm.js +0 -19
- package/es/platform/data-source/http-template/fetchMyFormLayout.js +0 -43
- package/es/platform/data-source/http-template/fetchValidationRules.js +0 -30
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +0 -11
- /package/es/{platform/client-actions/components/dynamic-component/domain/entities/interfaces/IState.js → bc/clip-wrap/types/ClipWrapBehaviourState.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AbstractUseCase from "./AbstractUseCase";
|
|
2
|
+
|
|
3
|
+
class DestructUsecase extends AbstractUseCase {
|
|
4
|
+
execute() {
|
|
5
|
+
const {
|
|
6
|
+
repository,
|
|
7
|
+
presenter
|
|
8
|
+
} = this.dependencies;
|
|
9
|
+
const textOverFlow = repository.getClipWrapEntity();
|
|
10
|
+
presenter.updateClipWrap(textOverFlow.toObject());
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default DestructUsecase;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AbstractUseCase from "./AbstractUseCase";
|
|
2
|
+
|
|
3
|
+
class InitializeUsecase extends AbstractUseCase {
|
|
4
|
+
execute() {
|
|
5
|
+
const {
|
|
6
|
+
repository,
|
|
7
|
+
presenter
|
|
8
|
+
} = this.dependencies;
|
|
9
|
+
const textOverFlow = repository.getClipWrapEntity();
|
|
10
|
+
presenter.updateClipWrap(textOverFlow.toObject());
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default InitializeUsecase;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
class ClipWrap {
|
|
2
|
+
constructor(value) {
|
|
3
|
+
this.value = value;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
setValue(value) {
|
|
7
|
+
this.value = value;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
getValue() {
|
|
11
|
+
return this.value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
toObject() {
|
|
15
|
+
return {
|
|
16
|
+
mode: this.value
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default ClipWrap;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TEXT_OVERFLOW_BEHAVIOUR_UPDATE_REQUESTED } from "../../../../../bc/clip-wrap/Constants";
|
|
2
|
+
import ClipWrapController from "../../adapters/controllers/ClipWrap";
|
|
3
|
+
import Repository from "../../adapters/gateway/Repository";
|
|
4
|
+
import Service from "../../adapters/gateway/Service";
|
|
5
|
+
import Presenter from "../../adapters/presenter/Presenter";
|
|
6
|
+
import LifeCycleAction from "../../../../../cc/architecture/LifeCycleActionEnum";
|
|
7
|
+
import InitializeController from "../../adapters/controllers/InitializeController";
|
|
8
|
+
import DestructController from "../../adapters/controllers/DestructController"; // TODO: Rename as EventHandlersFactory
|
|
9
|
+
|
|
10
|
+
class ActionsHandlersFactory {
|
|
11
|
+
static create() {
|
|
12
|
+
const presenter = new Presenter();
|
|
13
|
+
const repository = new Repository();
|
|
14
|
+
const service = new Service({
|
|
15
|
+
presenter,
|
|
16
|
+
repository
|
|
17
|
+
});
|
|
18
|
+
const controller = new ClipWrapController(service);
|
|
19
|
+
return {
|
|
20
|
+
[LifeCycleAction.MOUNT]: new InitializeController(service).handle,
|
|
21
|
+
[LifeCycleAction.UN_MOUNT]: new DestructController(service).handle,
|
|
22
|
+
[TEXT_OVERFLOW_BEHAVIOUR_UPDATE_REQUESTED]: controller.handle
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default ActionsHandlersFactory;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import properties from "../../../../../bc/clip-wrap/Properties";
|
|
2
|
+
import ActionsHandlerFactory from "./ActionsHandlerFactory";
|
|
3
|
+
|
|
4
|
+
class ClipWrapBehaviourFactory {
|
|
5
|
+
static create() {
|
|
6
|
+
return {
|
|
7
|
+
name: 'textOverflow',
|
|
8
|
+
setInitialState: _ref => {
|
|
9
|
+
let {
|
|
10
|
+
properties
|
|
11
|
+
} = _ref;
|
|
12
|
+
const {
|
|
13
|
+
textOverflowConfig
|
|
14
|
+
} = properties;
|
|
15
|
+
return {
|
|
16
|
+
mode: textOverflowConfig.mode || 'clip'
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
properties,
|
|
20
|
+
eventHandlers: ActionsHandlerFactory.create()
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default ClipWrapBehaviourFactory;
|
|
@@ -55,10 +55,10 @@ class EventManager {
|
|
|
55
55
|
metaData,
|
|
56
56
|
type
|
|
57
57
|
} = event;
|
|
58
|
-
this.log(type, payload, metaData);
|
|
58
|
+
__DEVELOPMENT__ && this.log(type, payload, metaData);
|
|
59
59
|
|
|
60
60
|
if (!this._element) {
|
|
61
|
-
console.error('Error: Element `ref` not found!', this._element, type, {
|
|
61
|
+
__DEVELOPMENT__ && console.error('Error: Element `ref` not found!', this._element, type, {
|
|
62
62
|
payload,
|
|
63
63
|
metaData
|
|
64
64
|
});
|
|
@@ -110,25 +110,28 @@ class EventManager {
|
|
|
110
110
|
|
|
111
111
|
printEventPayloadSchemaInvalidError(eventName, error) {
|
|
112
112
|
let dataName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '(root)';
|
|
113
|
-
const {
|
|
114
|
-
msg,
|
|
115
|
-
styles: nameStyles
|
|
116
|
-
} = this.eventNameConsoleStyle(eventName);
|
|
117
|
-
console.group(`${msg}%c's ${dataName} Validation Errors:`, ...nameStyles, 'color: initial; font-weight: initial');
|
|
118
|
-
|
|
119
|
-
if (error.code === ErrorCode.InvalidSchema) {
|
|
120
|
-
console.error(`%cInvalid Schema:`, 'color: #FF6F61; font-weight: bold;', error.error);
|
|
121
|
-
} else if (error.code === ErrorCode.InvalidData) {
|
|
122
|
-
error.errors.forEach((_ref, i) => {
|
|
123
|
-
let {
|
|
124
|
-
dataPath,
|
|
125
|
-
message
|
|
126
|
-
} = _ref;
|
|
127
|
-
console.error(`%c${i + 1}. %c${dataName + dataPath}%c → ${message}`, 'color: initial;', 'color: #FF6F61; font-weight: bold;', 'color: #FFA500;');
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
113
|
|
|
131
|
-
|
|
114
|
+
if (__DEVELOPMENT__) {
|
|
115
|
+
const {
|
|
116
|
+
msg,
|
|
117
|
+
styles: nameStyles
|
|
118
|
+
} = this.eventNameConsoleStyle(eventName);
|
|
119
|
+
console.group(`${msg}%c's ${dataName} Validation Errors:`, ...nameStyles, 'color: initial; font-weight: initial');
|
|
120
|
+
|
|
121
|
+
if (error.code === ErrorCode.InvalidSchema) {
|
|
122
|
+
console.error(`%cInvalid Schema:`, 'color: #FF6F61; font-weight: bold;', error.error);
|
|
123
|
+
} else if (error.code === ErrorCode.InvalidData) {
|
|
124
|
+
error.errors.forEach((_ref, i) => {
|
|
125
|
+
let {
|
|
126
|
+
dataPath,
|
|
127
|
+
message
|
|
128
|
+
} = _ref;
|
|
129
|
+
console.error(`%c${i + 1}. %c${dataName + dataPath}%c → ${message}`, 'color: initial;', 'color: #FF6F61; font-weight: bold;', 'color: #FFA500;');
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
console.groupEnd();
|
|
134
|
+
}
|
|
132
135
|
}
|
|
133
136
|
|
|
134
137
|
verifyEventPayload(event) {
|
|
@@ -8,11 +8,9 @@ class UpdateStateUseCase extends AbstractUseCase {
|
|
|
8
8
|
eventManager
|
|
9
9
|
} = this.dependencies;
|
|
10
10
|
let component = repository.getComponent();
|
|
11
|
-
let preState = component.getState();
|
|
12
|
-
|
|
11
|
+
let preState = component.getState();
|
|
13
12
|
component.updateState(newState);
|
|
14
|
-
let state = component.getState();
|
|
15
|
-
|
|
13
|
+
let state = component.getState();
|
|
16
14
|
presenter.render(state);
|
|
17
15
|
eventManager.dispatch(component.getStateUpdatedAction({
|
|
18
16
|
state,
|
|
@@ -43,7 +43,6 @@ export default class ComponentProperties {
|
|
|
43
43
|
} = this.validateProperties(jsonValidator, newProps);
|
|
44
44
|
|
|
45
45
|
if (!isValid) {
|
|
46
|
-
// console.log({ isValid, componentName: this.componentName, validationResults });
|
|
47
46
|
throw {
|
|
48
47
|
code: ErrorCodes.PROPERTY_VALIDATION_FAILED,
|
|
49
48
|
message: `Properties validation failed for component ${this.componentName}`,
|
|
@@ -12,55 +12,61 @@ export default class Logger {
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
logPropertiesValidation(validationResults) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
if (__DEVELOPMENT__) {
|
|
16
|
+
console.group(`%cProperties Validation: %c${this.componentName}`, ERROR_PRIMARY, ERROR_SECONDARY, validationResults);
|
|
17
|
+
validationResults.forEach(_ref => {
|
|
18
|
+
let {
|
|
19
|
+
key,
|
|
20
|
+
errors,
|
|
21
|
+
warnings,
|
|
22
|
+
value
|
|
23
|
+
} = _ref;
|
|
24
|
+
errors?.forEach(error => {
|
|
25
|
+
this.printResult(key, error, 'error');
|
|
26
|
+
});
|
|
27
|
+
warnings?.forEach(warning => {
|
|
28
|
+
this.printResult(key, warning, 'warning');
|
|
29
|
+
});
|
|
30
|
+
console.log('%cBut, Given is:', 'color: white;font-weight: bold;', {
|
|
31
|
+
[key]: value
|
|
32
|
+
});
|
|
25
33
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
console.log('%cBut, Given is:', 'color: white;font-weight: bold;', {
|
|
30
|
-
[key]: value
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
console.groupEnd();
|
|
34
|
+
console.groupEnd();
|
|
35
|
+
}
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
logError(error) {
|
|
37
|
-
|
|
39
|
+
if (__DEVELOPMENT__) {
|
|
40
|
+
console.log('Logging Error in ComponentProperties - logError');
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
if (error.code === ErrorCodes.PROPERTY_VALIDATION_FAILED) {
|
|
43
|
+
this.logPropertiesValidation(error.errorDetails?.validationResults);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
console.group(`%cError Occurred: %c${this.componentName}`, ERROR_PRIMARY, ERROR_SECONDARY, error);
|
|
48
|
+
console.error(`%cError Code: %c${error.code}`, ERROR_PRIMARY, ERROR_SECONDARY);
|
|
49
|
+
console.error(`%cError Message: %c${error.message}`, ERROR_PRIMARY, ERROR_SECONDARY);
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
if (error.errorDetails?.originalError) {
|
|
52
|
+
console.error(error.errorDetails.originalError);
|
|
53
|
+
}
|
|
51
54
|
|
|
52
|
-
|
|
55
|
+
console.groupEnd();
|
|
56
|
+
}
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
printResult(key, errorOrWarning, type) {
|
|
56
|
-
|
|
60
|
+
if (__DEVELOPMENT__) {
|
|
61
|
+
const log = type === 'error' ? console.error : console.warn;
|
|
57
62
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
if (errorOrWarning.dataPath) {
|
|
64
|
+
log(`Invalid Property %c${key}%c${errorOrWarning.dataPath} %c${errorOrWarning.message}`, ERROR_PRIMARY, ERROR_SECONDARY, 'color: white;');
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
62
67
|
|
|
63
|
-
|
|
68
|
+
log(`Invalid Property %c${key} : %c${errorOrWarning.message}`, ERROR_PRIMARY, 'color: white;');
|
|
69
|
+
}
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
eventNameConsoleStyle(type) {
|
|
@@ -81,7 +87,7 @@ export default class Logger {
|
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
logEvent(type, data) {
|
|
84
|
-
if (this.isLoggingEnabledAndTypePresent(type)) {
|
|
90
|
+
if (__DEVELOPMENT__ && this.isLoggingEnabledAndTypePresent(type)) {
|
|
85
91
|
const {
|
|
86
92
|
msg,
|
|
87
93
|
styles: nameStyles
|
|
@@ -13,11 +13,11 @@ class ComponentRegistry {
|
|
|
13
13
|
|
|
14
14
|
register(name, component) {
|
|
15
15
|
if (this.components.has(name)) {
|
|
16
|
-
console.warn(`Component with name "${name}" is already registered. Overwriting the existing component.`);
|
|
16
|
+
__DEVELOPMENT__ && console.warn(`Component with name "${name}" is already registered. Overwriting the existing component.`);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
if (this.components.has(name) && this.get(name) !== component) {
|
|
20
|
-
console.warn(`Component with name "${name}" is already registered with a different instance. Overwriting the existing component.`);
|
|
20
|
+
__DEVELOPMENT__ && console.warn(`Component with name "${name}" is already registered with a different instance. Overwriting the existing component.`);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
this.components.set(name, component);
|
|
@@ -77,7 +77,7 @@ const createCustomComponent = input => {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
componentDidCatch(error, errorInfo) {
|
|
80
|
-
console.log('Error', error, errorInfo, errorInfo.componentStack);
|
|
80
|
+
__DEVELOPMENT__ && console.log('Error', error, errorInfo, errorInfo.componentStack);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
componentWillReceiveProps(nextProps, nextContext) {
|
|
@@ -9,10 +9,12 @@ import MoreDropdown from "../../../../legacy-to-new-arch/more-dropdown/framework
|
|
|
9
9
|
import Breadcrumb from "../../../../legacy-to-new-arch/breadcrumb/frameworks/ui/Breadcrumb";
|
|
10
10
|
import IconButton from "../../../../legacy-to-new-arch/icon-button/frameworks/ui/IconButton";
|
|
11
11
|
import HighlightedValue from "../../../../legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValue";
|
|
12
|
+
import Switch from "../../../../legacy-to-new-arch/switch/frameworks/ui/Switch";
|
|
12
13
|
import ListItem from "../../../../legacy-to-new-arch/list-item/frameworks/ui/ListItem";
|
|
13
14
|
const ActionComponentMapping = {
|
|
14
15
|
['ActionIcon']: ActionIcon,
|
|
15
16
|
['Button']: Button,
|
|
17
|
+
['Switch']: Switch,
|
|
16
18
|
['ListItem']: ListItem,
|
|
17
19
|
['MoreDropdown']: MoreDropdown,
|
|
18
20
|
['TableColumnSort']: TableColumnSort,
|
|
@@ -3,8 +3,8 @@ import ComponentRegistry from "../../../../../custom-component/frameworks/ui/Com
|
|
|
3
3
|
import { TextArea, TextBox, Email, PickList, Currency, MultiSelect, Url, Percentage, Phone, Number, Decimal, Date, DateTime, Checkbox, LookUp } from "../../../form-fields";
|
|
4
4
|
import Section from "../../../section/frameworks/ui/Section";
|
|
5
5
|
import ActionIcon from "../../../../legacy-to-new-arch/action-icon/frameworks/ui/ActionIcon";
|
|
6
|
-
import Button from "../../../../legacy-to-new-arch/button/frameworks/ui/Button";
|
|
7
|
-
|
|
6
|
+
import Button from "../../../../legacy-to-new-arch/button/frameworks/ui/Button"; // import SwitchField from '@library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/SwitchField';
|
|
7
|
+
|
|
8
8
|
export function registerDefaultComponents() {
|
|
9
9
|
// Registering components in the ComponentRegistry
|
|
10
10
|
// NOTE: This is a workaround to avoid dynamic imports
|
|
@@ -26,8 +26,8 @@ export function registerDefaultComponents() {
|
|
|
26
26
|
|
|
27
27
|
ComponentRegistry.register('LookUp', LookUp);
|
|
28
28
|
ComponentRegistry.register(DefaultFormSectionUIType, Section); // Add more components as needed
|
|
29
|
+
// ComponentRegistry.register('Switch', SwitchField);
|
|
29
30
|
|
|
30
|
-
ComponentRegistry.register('Switch', SwitchField);
|
|
31
31
|
ComponentRegistry.register('Button', Button);
|
|
32
32
|
ComponentRegistry.register('ActionIcon', ActionIcon);
|
|
33
33
|
}
|
|
@@ -21,7 +21,6 @@ function FormView(_ref, ref) {
|
|
|
21
21
|
clientScripts
|
|
22
22
|
} = state.viewModel;
|
|
23
23
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
24
|
-
$ui_tagName: "form",
|
|
25
24
|
$ui_displayMode: "flex",
|
|
26
25
|
$ui_direction: "column",
|
|
27
26
|
$flag_fullsize: true,
|
|
@@ -37,7 +36,8 @@ function FormView(_ref, ref) {
|
|
|
37
36
|
}), /*#__PURE__*/React.createElement(MiddleSection, {
|
|
38
37
|
sections: sections,
|
|
39
38
|
isLoading: isLoading,
|
|
40
|
-
rightPanel: rightPanel
|
|
39
|
+
rightPanel: rightPanel,
|
|
40
|
+
clientScripts: clientScripts
|
|
41
41
|
}), /*#__PURE__*/React.createElement(Footer, {
|
|
42
42
|
hasFooter: isFooterEnabled,
|
|
43
43
|
footerLeftActions: footerLeftActions,
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.field {
|
|
6
|
-
margin-top:
|
|
6
|
+
margin-top: 5px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.multiSelectField {
|
|
10
|
-
margin-top:
|
|
10
|
+
margin-top: 2px
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.checkboxField {
|
|
14
14
|
composes: dInflex alignFstart from '~@zohodesk/components/es/common/common.module.css';
|
|
15
|
-
max-width: 100
|
|
16
|
-
gap:
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
gap: 8px
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.cursor_pointer {
|
|
@@ -27,36 +27,36 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
[dir=ltr] .footer {
|
|
30
|
-
padding-right:
|
|
30
|
+
padding-right: 32px
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
[dir=rtl] .footer {
|
|
34
|
-
padding-left:
|
|
34
|
+
padding-left: 32px
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* Sections layout */
|
|
38
38
|
|
|
39
39
|
.sectionsWrapper {
|
|
40
|
-
padding-bottom:
|
|
40
|
+
padding-bottom: 8px
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.sectionsLayout, .sectionsTwoLayout {
|
|
44
|
-
margin: 0 auto
|
|
44
|
+
margin: 0 auto
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.sectionsLayout {
|
|
48
|
-
max-width: var(--local-form-layout-max-width,
|
|
48
|
+
max-width: var(--local-form-layout-max-width, 1080px)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.sectionsTwoLayout {
|
|
52
|
-
column-gap:
|
|
53
|
-
max-width: var(--local-form-layout-max-width,
|
|
52
|
+
column-gap: 8px;
|
|
53
|
+
max-width: var(--local-form-layout-max-width, 1210px)
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.rightPanel {
|
|
57
57
|
height: var(--local-form-right-panel-height, 100%);
|
|
58
58
|
position: -webkit-sticky;
|
|
59
59
|
position: sticky;
|
|
60
|
-
top: 0
|
|
61
|
-
padding:
|
|
60
|
+
top: 0;
|
|
61
|
+
padding: 8px 0
|
|
62
62
|
}
|
|
@@ -7,7 +7,8 @@ export default function MiddleSection(_ref) {
|
|
|
7
7
|
let {
|
|
8
8
|
sections,
|
|
9
9
|
isLoading,
|
|
10
|
-
rightPanel
|
|
10
|
+
rightPanel,
|
|
11
|
+
clientScripts
|
|
11
12
|
} = _ref;
|
|
12
13
|
return /*#__PURE__*/React.createElement(MiddleContainer, {
|
|
13
14
|
$flag_padding: true,
|
|
@@ -19,6 +20,7 @@ export default function MiddleSection(_ref) {
|
|
|
19
20
|
}) : /*#__PURE__*/React.createElement(SectionsLayout, {
|
|
20
21
|
rightPanel: rightPanel
|
|
21
22
|
}, /*#__PURE__*/React.createElement(Sections, {
|
|
22
|
-
sections: sections
|
|
23
|
+
sections: sections,
|
|
24
|
+
clientScripts: clientScripts
|
|
23
25
|
})));
|
|
24
26
|
}
|
|
@@ -5,7 +5,8 @@ import SectionsWrapper from '@zohodesk-private/desk-components/es/form/SectionsW
|
|
|
5
5
|
import style from "../css/Form.module.css";
|
|
6
6
|
export default function Sections(_ref) {
|
|
7
7
|
let {
|
|
8
|
-
sections
|
|
8
|
+
sections,
|
|
9
|
+
clientScripts
|
|
9
10
|
} = _ref;
|
|
10
11
|
return /*#__PURE__*/React.createElement(SectionsWrapper, {
|
|
11
12
|
$ui_className: style.sectionsWrapper
|
|
@@ -19,6 +20,8 @@ export default function Sections(_ref) {
|
|
|
19
20
|
isVisible,
|
|
20
21
|
fields,
|
|
21
22
|
type,
|
|
23
|
+
titleActions,
|
|
24
|
+
headerActions,
|
|
22
25
|
additionalDetails
|
|
23
26
|
} = section;
|
|
24
27
|
const Section = ComponentRegistry.get(type);
|
|
@@ -31,7 +34,10 @@ export default function Sections(_ref) {
|
|
|
31
34
|
description: description,
|
|
32
35
|
fields: fields,
|
|
33
36
|
isCollapsed: isCollapsed,
|
|
34
|
-
|
|
37
|
+
titleActions: titleActions,
|
|
38
|
+
headerActions: headerActions,
|
|
39
|
+
additionalDetails: additionalDetails,
|
|
40
|
+
clientScripts: clientScripts
|
|
35
41
|
});
|
|
36
42
|
}));
|
|
37
43
|
}
|
|
@@ -34,7 +34,8 @@ function CheckboxView(_ref2, ref) {
|
|
|
34
34
|
disabled,
|
|
35
35
|
readonly,
|
|
36
36
|
required,
|
|
37
|
-
labelActions
|
|
37
|
+
labelActions,
|
|
38
|
+
clientScripts
|
|
38
39
|
} = state.properties;
|
|
39
40
|
const {
|
|
40
41
|
size,
|
|
@@ -74,7 +75,8 @@ function CheckboxView(_ref2, ref) {
|
|
|
74
75
|
for: id,
|
|
75
76
|
label: label,
|
|
76
77
|
actions: labelActions,
|
|
77
|
-
isMandatory: required
|
|
78
|
+
isMandatory: required,
|
|
79
|
+
clientScripts: clientScripts
|
|
78
80
|
})));
|
|
79
81
|
}
|
|
80
82
|
|
|
@@ -26,7 +26,8 @@ function CurrencyView(_ref, ref) {
|
|
|
26
26
|
currencySymbol,
|
|
27
27
|
labelActions,
|
|
28
28
|
actions,
|
|
29
|
-
uiConfig
|
|
29
|
+
uiConfig,
|
|
30
|
+
clientScripts
|
|
30
31
|
} = properties;
|
|
31
32
|
const {
|
|
32
33
|
size,
|
|
@@ -56,7 +57,8 @@ function CurrencyView(_ref, ref) {
|
|
|
56
57
|
disabled: disabled,
|
|
57
58
|
readonly: readonly,
|
|
58
59
|
required: required,
|
|
59
|
-
actions: actions
|
|
60
|
+
actions: actions,
|
|
61
|
+
clientScripts: clientScripts
|
|
60
62
|
})));
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -18,7 +18,8 @@ function DateView(_ref, ref) {
|
|
|
18
18
|
required,
|
|
19
19
|
uiConfig,
|
|
20
20
|
labelActions,
|
|
21
|
-
actions
|
|
21
|
+
actions,
|
|
22
|
+
clientScripts
|
|
22
23
|
} = state.properties;
|
|
23
24
|
const {
|
|
24
25
|
size,
|
|
@@ -42,7 +43,8 @@ function DateView(_ref, ref) {
|
|
|
42
43
|
disabled: disabled,
|
|
43
44
|
readonly: readonly,
|
|
44
45
|
required: required,
|
|
45
|
-
actions: actions
|
|
46
|
+
actions: actions,
|
|
47
|
+
clientScripts: clientScripts
|
|
46
48
|
})));
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -18,7 +18,8 @@ function DateView(_ref, ref) {
|
|
|
18
18
|
required,
|
|
19
19
|
uiConfig,
|
|
20
20
|
labelActions,
|
|
21
|
-
actions
|
|
21
|
+
actions,
|
|
22
|
+
clientScripts
|
|
22
23
|
} = state.properties;
|
|
23
24
|
const {
|
|
24
25
|
size,
|
|
@@ -43,7 +44,8 @@ function DateView(_ref, ref) {
|
|
|
43
44
|
disabled: disabled,
|
|
44
45
|
readonly: readonly,
|
|
45
46
|
actions: actions,
|
|
46
|
-
|
|
47
|
+
isTimeIncluded: true,
|
|
48
|
+
clientScripts: clientScripts
|
|
47
49
|
})));
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -19,7 +19,8 @@ function DecimalView(_ref, ref) {
|
|
|
19
19
|
required,
|
|
20
20
|
uiConfig,
|
|
21
21
|
labelActions,
|
|
22
|
-
actions
|
|
22
|
+
actions,
|
|
23
|
+
clientScripts
|
|
23
24
|
} = state.properties;
|
|
24
25
|
const {
|
|
25
26
|
size,
|
|
@@ -44,7 +45,8 @@ function DecimalView(_ref, ref) {
|
|
|
44
45
|
required: required,
|
|
45
46
|
disabled: disabled,
|
|
46
47
|
readonly: readonly,
|
|
47
|
-
actions: actions
|
|
48
|
+
actions: actions,
|
|
49
|
+
clientScripts: clientScripts
|
|
48
50
|
})));
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -19,7 +19,8 @@ function EmailView(_ref, ref) {
|
|
|
19
19
|
required,
|
|
20
20
|
uiConfig,
|
|
21
21
|
labelActions,
|
|
22
|
-
actions
|
|
22
|
+
actions,
|
|
23
|
+
clientScripts
|
|
23
24
|
} = state.properties;
|
|
24
25
|
const {
|
|
25
26
|
size,
|
|
@@ -44,7 +45,8 @@ function EmailView(_ref, ref) {
|
|
|
44
45
|
disabled: disabled,
|
|
45
46
|
readonly: readonly,
|
|
46
47
|
required: required,
|
|
47
|
-
actions: actions
|
|
48
|
+
actions: actions,
|
|
49
|
+
clientScripts: clientScripts
|
|
48
50
|
})));
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -19,7 +19,8 @@ function TextBoxView(_ref, ref) {
|
|
|
19
19
|
required,
|
|
20
20
|
uiConfig,
|
|
21
21
|
labelActions,
|
|
22
|
-
actions
|
|
22
|
+
actions,
|
|
23
|
+
clientScripts
|
|
23
24
|
} = state.properties;
|
|
24
25
|
const {
|
|
25
26
|
size,
|
|
@@ -44,7 +45,8 @@ function TextBoxView(_ref, ref) {
|
|
|
44
45
|
required: required,
|
|
45
46
|
disabled: disabled,
|
|
46
47
|
readonly: readonly,
|
|
47
|
-
actions: actions
|
|
48
|
+
actions: actions,
|
|
49
|
+
clientScripts: clientScripts
|
|
48
50
|
})));
|
|
49
51
|
}
|
|
50
52
|
|