@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
|
@@ -25,7 +25,8 @@ function MultiSelectView(_ref, ref) {
|
|
|
25
25
|
readonly,
|
|
26
26
|
labelActions,
|
|
27
27
|
actions,
|
|
28
|
-
uiConfig
|
|
28
|
+
uiConfig,
|
|
29
|
+
clientScripts
|
|
29
30
|
} = state.properties;
|
|
30
31
|
const {
|
|
31
32
|
size,
|
|
@@ -56,7 +57,8 @@ function MultiSelectView(_ref, ref) {
|
|
|
56
57
|
required: required,
|
|
57
58
|
disabled: disabled,
|
|
58
59
|
readonly: readonly,
|
|
59
|
-
actions: actions
|
|
60
|
+
actions: actions,
|
|
61
|
+
clientScripts: clientScripts
|
|
60
62
|
})));
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -19,7 +19,8 @@ function NumberView(_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 NumberView(_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 PercentageView(_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 PercentageView(_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 PhoneView(_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 PhoneView(_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
|
|
|
@@ -25,7 +25,8 @@ function PickListView(_ref, ref) {
|
|
|
25
25
|
readonly,
|
|
26
26
|
labelActions,
|
|
27
27
|
actions,
|
|
28
|
-
uiConfig
|
|
28
|
+
uiConfig,
|
|
29
|
+
clientScripts
|
|
29
30
|
} = state.properties;
|
|
30
31
|
const {
|
|
31
32
|
size,
|
|
@@ -56,7 +57,8 @@ function PickListView(_ref, ref) {
|
|
|
56
57
|
required: required,
|
|
57
58
|
disabled: disabled,
|
|
58
59
|
readonly: readonly,
|
|
59
|
-
actions: actions
|
|
60
|
+
actions: actions,
|
|
61
|
+
clientScripts: clientScripts
|
|
60
62
|
})));
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -19,7 +19,8 @@ function TextAreaView(_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 TextAreaView(_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 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
|
|
|
@@ -19,7 +19,8 @@ function UrlView(_ref, ref) {
|
|
|
19
19
|
readonly,
|
|
20
20
|
required,
|
|
21
21
|
labelActions,
|
|
22
|
-
actions
|
|
22
|
+
actions,
|
|
23
|
+
clientScripts
|
|
23
24
|
} = state.properties;
|
|
24
25
|
const {
|
|
25
26
|
size,
|
|
@@ -44,7 +45,8 @@ function UrlView(_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
|
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import ComponentRegistry from "../../../../../custom-component/frameworks/ui/ComponentRegistry";
|
|
5
|
-
export function renderField(field, key) {
|
|
5
|
+
export function renderField(field, key, clientScripts) {
|
|
6
6
|
const {
|
|
7
7
|
type,
|
|
8
8
|
...properties
|
|
@@ -10,11 +10,13 @@ export function renderField(field, key) {
|
|
|
10
10
|
const Component = ComponentRegistry.get(type);
|
|
11
11
|
|
|
12
12
|
if (!Component) {
|
|
13
|
-
console.warn(`Component for type "${type}" not found.`);
|
|
13
|
+
__DEVELOPMENT__ && console.warn(`Component for type "${type}" not found.`);
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
18
18
|
key: key
|
|
19
|
-
}, properties
|
|
19
|
+
}, properties, {
|
|
20
|
+
clientScripts: clientScripts
|
|
21
|
+
}));
|
|
20
22
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
2
3
|
import VelocityAnimationGroup from '@zohodesk/components/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
4
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
3
5
|
import Section from '@zohodesk-private/desk-components/es/setup/SetupFormBox/SetupFormBox';
|
|
4
6
|
import FieldsLayout from '@zohodesk-private/desk-components/es/form/FieldsLayout/FieldsLayout';
|
|
5
|
-
import { renderField } from "./RenderField";
|
|
7
|
+
import { renderField } from "./RenderField";
|
|
8
|
+
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
6
9
|
|
|
7
10
|
import style from "./css/Section.module.css";
|
|
8
11
|
|
|
@@ -15,8 +18,25 @@ function SectionView(_ref, ref) {
|
|
|
15
18
|
title,
|
|
16
19
|
description,
|
|
17
20
|
isCollapsed,
|
|
18
|
-
fields
|
|
21
|
+
fields,
|
|
22
|
+
titleActions,
|
|
23
|
+
headerActions,
|
|
24
|
+
clientScripts
|
|
19
25
|
} = state.properties;
|
|
26
|
+
|
|
27
|
+
const renderActions = actions => {
|
|
28
|
+
if (!actions?.length) return null;
|
|
29
|
+
return /*#__PURE__*/React.createElement(Flex, {
|
|
30
|
+
$ui_displayMode: "flex",
|
|
31
|
+
$ui_alignItems: "center",
|
|
32
|
+
$ui_className: style.actionContainer
|
|
33
|
+
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
34
|
+
actions: actions,
|
|
35
|
+
gap: ActionViewGap.LARGE,
|
|
36
|
+
clientScripts: clientScripts
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
|
|
20
40
|
return /*#__PURE__*/React.createElement(Section, {
|
|
21
41
|
$i18n_heading: title,
|
|
22
42
|
$flag_isDescriptionAsHtmlText: true,
|
|
@@ -25,7 +45,9 @@ function SectionView(_ref, ref) {
|
|
|
25
45
|
customId: name,
|
|
26
46
|
$tagAttributes_container: {
|
|
27
47
|
ref
|
|
28
|
-
}
|
|
48
|
+
},
|
|
49
|
+
$render_headingRightElement: renderActions(titleActions),
|
|
50
|
+
$render_headerRightElement: renderActions(headerActions)
|
|
29
51
|
}, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
30
52
|
name: "slideDown",
|
|
31
53
|
isActive: !isCollapsed
|
|
@@ -33,7 +55,7 @@ function SectionView(_ref, ref) {
|
|
|
33
55
|
className: style.fieldsContainer
|
|
34
56
|
}, /*#__PURE__*/React.createElement(FieldsLayout, {
|
|
35
57
|
$flag_topSpace: !!title || !!description
|
|
36
|
-
}, fields.filter(field => field.isVisible).map(field => renderField(field, field.name || field.apiName))))));
|
|
58
|
+
}, fields.filter(field => field.isVisible).map(field => renderField(field, field.name || field.apiName, clientScripts))))));
|
|
37
59
|
}
|
|
38
60
|
|
|
39
61
|
export default SectionView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TEXT_OVERFLOW_BEHAVIOUR_UPDATE_REQUESTED } from "../../../../../../bc/clip-wrap/Constants";
|
|
2
|
+
import AbstractController from "./AbstractController";
|
|
3
|
+
|
|
4
|
+
class ClipWrapController extends AbstractController {
|
|
5
|
+
handle(event) {
|
|
6
|
+
const {
|
|
7
|
+
dispatch,
|
|
8
|
+
action
|
|
9
|
+
} = event;
|
|
10
|
+
const {
|
|
11
|
+
value
|
|
12
|
+
} = action.payload;
|
|
13
|
+
dispatch({
|
|
14
|
+
type: TEXT_OVERFLOW_BEHAVIOUR_UPDATE_REQUESTED,
|
|
15
|
+
payload: {
|
|
16
|
+
value
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default ClipWrapController;
|
package/es/library/dot/components/table-list/adapters/controllers/ResolutionBasedCountController.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import AbstractController from "./AbstractController";
|
|
2
|
+
import { TableListConstants } from "../../../../../../cc/table-list";
|
|
3
|
+
|
|
4
|
+
class ResolutionBasedCountController extends AbstractController {
|
|
5
|
+
handle(event) {
|
|
6
|
+
const {
|
|
7
|
+
host,
|
|
8
|
+
dispatch
|
|
9
|
+
} = event;
|
|
10
|
+
const tableHeight = host.offsetHeight;
|
|
11
|
+
const ghostRowElement = host.querySelector('[data-id="table-hidden-row"]');
|
|
12
|
+
const rowHeight = ghostRowElement ? ghostRowElement.offsetHeight : 40;
|
|
13
|
+
const count = Math.ceil(tableHeight / rowHeight);
|
|
14
|
+
dispatch({
|
|
15
|
+
type: TableListConstants.TABLE_LIST_RESOLUTION_BASED_COUNT_CALCULATED,
|
|
16
|
+
payload: {
|
|
17
|
+
count
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default ResolutionBasedCountController;
|
|
@@ -6,4 +6,5 @@ export { default as SortedController } from "./SortedController";
|
|
|
6
6
|
export { default as FieldChangeController } from "./FieldChangeController";
|
|
7
7
|
export { default as FieldClickController } from "./FieldClickController";
|
|
8
8
|
export { default as KeyboardRowSelectController } from "./KeyboardRowSelectController";
|
|
9
|
-
export { default as KeyboardRowClickController } from "./KeyboardRowClickController";
|
|
9
|
+
export { default as KeyboardRowClickController } from "./KeyboardRowClickController";
|
|
10
|
+
export { default as ResolutionBasedCountController } from "./ResolutionBasedCountController";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableListConstants } from "../../../../../../cc/table-list";
|
|
2
|
-
import { SelectItemController, SelectAllController, ScrollController, FieldChangeController, FieldClickController, SortByController, KeyboardRowSelectController, KeyboardRowClickController } from "../../adapters/controllers";
|
|
2
|
+
import { SelectItemController, SelectAllController, ScrollController, FieldChangeController, FieldClickController, SortByController, KeyboardRowSelectController, KeyboardRowClickController, ResolutionBasedCountController } from "../../adapters/controllers";
|
|
3
3
|
import TableRowConstants from "../../../../../../cc/table-list/row/Constants";
|
|
4
4
|
import RowClickController from "../../adapters/controllers/RowClickController";
|
|
5
5
|
import { SMART_TABLE_ACTION_TRIGGERED, SMART_TABLE_SELECTION_TOGGLED } from "../../../../../../cc/table-connected/constants/Events";
|
|
@@ -7,6 +7,7 @@ import { SMART_TABLE_ACTION_TRIGGERED, SMART_TABLE_SELECTION_TOGGLED } from "../
|
|
|
7
7
|
class EventHandlersFactory {
|
|
8
8
|
static create() {
|
|
9
9
|
return {
|
|
10
|
+
[TableListConstants.TABLE_LIST_MOUNT]: new ResolutionBasedCountController().handle,
|
|
10
11
|
[SMART_TABLE_SELECTION_TOGGLED]: new KeyboardRowSelectController().handle,
|
|
11
12
|
[SMART_TABLE_ACTION_TRIGGERED]: new KeyboardRowClickController().handle,
|
|
12
13
|
[TableRowConstants.TABLE_ROW_CLICKED]: new RowClickController().handle,
|
|
@@ -34,6 +34,7 @@ function TableListView(_ref2, _ref) {
|
|
|
34
34
|
rowCursor,
|
|
35
35
|
rowActionsConfig,
|
|
36
36
|
keyboardControlsConfig,
|
|
37
|
+
textOverflowConfig,
|
|
37
38
|
selection,
|
|
38
39
|
emptyStateUiType,
|
|
39
40
|
isError
|
|
@@ -54,6 +55,7 @@ function TableListView(_ref2, _ref) {
|
|
|
54
55
|
const isKeyboardControlsEnabled = keyboardControlsConfig.isEnabled;
|
|
55
56
|
const isReorderEnabled = reOrderConfig.isEnabled;
|
|
56
57
|
const isSelectionEnabled = selectionConfig.isEnabled;
|
|
58
|
+
const isMultiline = textOverflowConfig.mode === 'wrap';
|
|
57
59
|
const className = getTableListClassName({
|
|
58
60
|
isKeyboardControlsEnabled,
|
|
59
61
|
isReorderEnabled,
|
|
@@ -62,13 +64,18 @@ function TableListView(_ref2, _ref) {
|
|
|
62
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
65
|
className: `${style.wrapper} ${style[className]}`,
|
|
64
66
|
ref: _ref
|
|
65
|
-
}, /*#__PURE__*/React.createElement(
|
|
67
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: style.hiddenDummyRow,
|
|
69
|
+
"data-id": "table-hidden-row",
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
}), /*#__PURE__*/React.createElement(Table, {
|
|
66
72
|
ref: TableRef,
|
|
67
73
|
$event_onScroll: e => handleScroll(dispatch, {
|
|
68
74
|
scrollEvent: e
|
|
69
75
|
})
|
|
70
76
|
}, renderHeader({
|
|
71
77
|
headers,
|
|
78
|
+
isMultiline,
|
|
72
79
|
resizerState,
|
|
73
80
|
isReorderEnabled,
|
|
74
81
|
isSelectionEnabled,
|
|
@@ -84,6 +91,7 @@ function TableListView(_ref2, _ref) {
|
|
|
84
91
|
dispatch,
|
|
85
92
|
headers,
|
|
86
93
|
rows,
|
|
94
|
+
isMultiline,
|
|
87
95
|
isFlexibleColumns,
|
|
88
96
|
isReorderEnabled,
|
|
89
97
|
isSelectionEnabled,
|
|
@@ -108,6 +116,7 @@ function TableListView(_ref2, _ref) {
|
|
|
108
116
|
function renderHeader(_ref3) {
|
|
109
117
|
let {
|
|
110
118
|
headers,
|
|
119
|
+
isMultiline,
|
|
111
120
|
resizerState,
|
|
112
121
|
isReorderEnabled,
|
|
113
122
|
isSelectionEnabled,
|
|
@@ -132,6 +141,7 @@ function renderHeader(_ref3) {
|
|
|
132
141
|
rowActionsColumnWidth: rowActionsColumnWidth,
|
|
133
142
|
actions: selection.actions,
|
|
134
143
|
headers: headers,
|
|
144
|
+
isMultiline: isMultiline,
|
|
135
145
|
dispatch: dispatch,
|
|
136
146
|
clientScripts: clientScripts
|
|
137
147
|
});
|
|
@@ -155,6 +165,7 @@ function renderBody(_ref4) {
|
|
|
155
165
|
dispatch,
|
|
156
166
|
headers,
|
|
157
167
|
rows,
|
|
168
|
+
isMultiline,
|
|
158
169
|
isFlexibleColumns,
|
|
159
170
|
isReorderEnabled,
|
|
160
171
|
isSelectionEnabled,
|
|
@@ -202,6 +213,7 @@ function renderBody(_ref4) {
|
|
|
202
213
|
}, /*#__PURE__*/React.createElement(Rows, {
|
|
203
214
|
headers: headers,
|
|
204
215
|
rows: rowData,
|
|
216
|
+
isMultiline: isMultiline,
|
|
205
217
|
isFlexibleColumns: isFlexibleColumns,
|
|
206
218
|
isReorderEnabled: isReorderEnabled,
|
|
207
219
|
isSelectionEnabled: isSelectionEnabled,
|
|
@@ -137,18 +137,35 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.loader {
|
|
140
|
-
padding:
|
|
140
|
+
padding: 40px 0
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.wrapper {
|
|
144
|
-
height: 100
|
|
145
|
-
width: 100
|
|
144
|
+
height: 100%;
|
|
145
|
+
width: 100%;
|
|
146
146
|
z-index: 1;
|
|
147
147
|
position: relative
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
.hiddenDummyRow {
|
|
151
|
+
height: 40px;
|
|
152
|
+
width: 0;
|
|
153
|
+
position: absolute;
|
|
154
|
+
z-index: -100;
|
|
155
|
+
top: 0;
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[dir=ltr] .hiddenDummyRow {
|
|
160
|
+
left: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[dir=rtl] .hiddenDummyRow {
|
|
164
|
+
right: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
150
167
|
.resizerSpace {
|
|
151
|
-
width: calc(var(--local_table_resizer_extra_space, 0) *
|
|
168
|
+
width: calc(var(--local_table_resizer_extra_space, 0) * 1px);
|
|
152
169
|
flex-shrink: 0
|
|
153
170
|
}
|
|
154
171
|
|
|
@@ -157,32 +174,32 @@
|
|
|
157
174
|
}
|
|
158
175
|
|
|
159
176
|
[dir=ltr] .contentWrapper {
|
|
160
|
-
left: 0
|
|
177
|
+
left: 0;
|
|
161
178
|
}
|
|
162
179
|
|
|
163
180
|
[dir=rtl] .contentWrapper {
|
|
164
|
-
right: 0
|
|
181
|
+
right: 0;
|
|
165
182
|
}
|
|
166
183
|
|
|
167
184
|
.initialLoading {
|
|
168
|
-
height: calc(100% -
|
|
185
|
+
height: calc(100% - 100px)
|
|
169
186
|
}
|
|
170
187
|
|
|
171
188
|
.emptyContent {
|
|
172
|
-
padding:
|
|
189
|
+
padding: 160px 0 60px
|
|
173
190
|
}
|
|
174
191
|
|
|
175
192
|
.errorContent {
|
|
176
|
-
padding:
|
|
193
|
+
padding: 60px 0
|
|
177
194
|
}
|
|
178
195
|
|
|
179
196
|
.headerWithActions,
|
|
180
197
|
.fieldWithActions {
|
|
181
|
-
gap:
|
|
198
|
+
gap: 6px
|
|
182
199
|
}
|
|
183
200
|
|
|
184
201
|
.actions {
|
|
185
|
-
gap:
|
|
202
|
+
gap: 8px
|
|
186
203
|
}
|
|
187
204
|
|
|
188
205
|
.rowCursor_default {
|
|
@@ -227,6 +244,7 @@
|
|
|
227
244
|
}
|
|
228
245
|
|
|
229
246
|
.dragHandleContainer {
|
|
247
|
+
height: 100%;
|
|
230
248
|
opacity: 0;
|
|
231
249
|
visibility: hidden;
|
|
232
250
|
}
|
|
@@ -250,8 +268,8 @@
|
|
|
250
268
|
}
|
|
251
269
|
|
|
252
270
|
.rowDropIndicator {
|
|
253
|
-
width: 100
|
|
254
|
-
height:
|
|
271
|
+
width: 100%;
|
|
272
|
+
height: 2px;
|
|
255
273
|
/* css:theme-validation:ignore */
|
|
256
274
|
position: absolute;
|
|
257
275
|
z-index: 2;
|
|
@@ -259,11 +277,11 @@
|
|
|
259
277
|
}
|
|
260
278
|
|
|
261
279
|
.dropIndicatorTop {
|
|
262
|
-
top: 0
|
|
280
|
+
top: 0;
|
|
263
281
|
}
|
|
264
282
|
|
|
265
283
|
.dropIndicatorBottom {
|
|
266
|
-
bottom:
|
|
284
|
+
bottom: -3px;
|
|
267
285
|
}
|
|
268
286
|
|
|
269
287
|
.row {
|
|
@@ -24,6 +24,7 @@ function Header(_ref) {
|
|
|
24
24
|
hasRowActions,
|
|
25
25
|
rowActionsColumnWidth,
|
|
26
26
|
headers,
|
|
27
|
+
isMultiline,
|
|
27
28
|
dispatch,
|
|
28
29
|
clientScripts
|
|
29
30
|
} = _ref;
|
|
@@ -39,17 +40,21 @@ function Header(_ref) {
|
|
|
39
40
|
});
|
|
40
41
|
return /*#__PURE__*/React.createElement(TableHeader, {
|
|
41
42
|
$flag_isColumnsFlexible: isFlexibleColumns,
|
|
43
|
+
$flag_autoHeight: isMultiline,
|
|
42
44
|
$flag_padding: false,
|
|
43
45
|
$flag_hasHighlighter: isKeyboardControlsEnabled,
|
|
44
46
|
customStyle: {
|
|
45
47
|
tableHeader: `${style.header} ${style[headerClasses]}`
|
|
46
48
|
}
|
|
47
|
-
}, /*#__PURE__*/React.createElement(TableHeaderRow,
|
|
49
|
+
}, /*#__PURE__*/React.createElement(TableHeaderRow, {
|
|
50
|
+
$flag_autoHeight: isMultiline
|
|
51
|
+
}, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
function rendermassAction(isSelectionEnabled, actions, clientScripts) {
|
|
54
|
+
function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts) {
|
|
51
55
|
return /*#__PURE__*/React.createElement(MassAction, {
|
|
52
56
|
isSelectionEnabled: isSelectionEnabled,
|
|
57
|
+
isMultiline: isMultiline,
|
|
53
58
|
actions: actions,
|
|
54
59
|
clientScripts: clientScripts
|
|
55
60
|
});
|
|
@@ -67,9 +72,10 @@ function renderReOrderColumn(isReorderEnabled) {
|
|
|
67
72
|
}, /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
function renderHeaders(headers, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts) {
|
|
75
|
+
function renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts) {
|
|
71
76
|
return /*#__PURE__*/React.createElement(Headers, {
|
|
72
77
|
headers: headers,
|
|
78
|
+
isMultiline: isMultiline,
|
|
73
79
|
currentlyResizingColumn: currentlyResizingColumn,
|
|
74
80
|
isResizerEnabled: isResizerEnabled,
|
|
75
81
|
isFlexibleColumns: isFlexibleColumns,
|
|
@@ -9,6 +9,7 @@ const Rows = _ref => {
|
|
|
9
9
|
let {
|
|
10
10
|
headers,
|
|
11
11
|
rows,
|
|
12
|
+
isMultiline,
|
|
12
13
|
isFlexibleColumns,
|
|
13
14
|
isReorderEnabled,
|
|
14
15
|
isSelectionEnabled,
|
|
@@ -27,11 +28,11 @@ const Rows = _ref => {
|
|
|
27
28
|
key: `${row.id}`,
|
|
28
29
|
index: index,
|
|
29
30
|
disabled: isReOrderLoading
|
|
30
|
-
}, getRowProps(row, headers, isFlexibleColumns, isReorderEnabled, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth, isKeyboardControlsEnabled, isDroppable, dropPosition, isReOrderLoading, clientScripts)));
|
|
31
|
+
}, getRowProps(row, headers, isMultiline, isFlexibleColumns, isReorderEnabled, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth, isKeyboardControlsEnabled, isDroppable, dropPosition, isReOrderLoading, clientScripts)));
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
34
|
|
|
34
|
-
function getRowProps(row, headers, isFlexibleColumns, isReorderEnabled, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth, isKeyboardControlsEnabled, isDroppable, dropPosition, isReOrderLoading, clientScripts) {
|
|
35
|
+
function getRowProps(row, headers, isMultiline, isFlexibleColumns, isReorderEnabled, isSelectionEnabled, rowCursor, hasRowActions, rowActionsColumnWidth, isKeyboardControlsEnabled, isDroppable, dropPosition, isReOrderLoading, clientScripts) {
|
|
35
36
|
const {
|
|
36
37
|
id,
|
|
37
38
|
columns,
|
|
@@ -45,6 +46,7 @@ function getRowProps(row, headers, isFlexibleColumns, isReorderEnabled, isSelect
|
|
|
45
46
|
return {
|
|
46
47
|
id,
|
|
47
48
|
columns: updatedColumns,
|
|
49
|
+
isMultiline,
|
|
48
50
|
rowActionLocation,
|
|
49
51
|
isSelected,
|
|
50
52
|
isSelectable,
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/field/FieldComponent.js
CHANGED
|
@@ -12,7 +12,7 @@ const FieldComponent = props => {
|
|
|
12
12
|
const Component = FieldComponents[type] || ComponentRegistry.get(type);
|
|
13
13
|
|
|
14
14
|
if (!Component) {
|
|
15
|
-
console.error(`Field Component type ${type} not found`);
|
|
15
|
+
__DEVELOPMENT__ && console.error(`Field Component type ${type} not found`);
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js
CHANGED
|
@@ -11,6 +11,7 @@ import RowActionsRenderer from "../../../../../../../../platform/client-actions/
|
|
|
11
11
|
function HeaderData(_ref) {
|
|
12
12
|
let {
|
|
13
13
|
header,
|
|
14
|
+
isMultiline,
|
|
14
15
|
sortedBy,
|
|
15
16
|
isResizing,
|
|
16
17
|
isResizerEnabled,
|
|
@@ -47,7 +48,8 @@ function HeaderData(_ref) {
|
|
|
47
48
|
tableHead: style.headerWithActions
|
|
48
49
|
} : undefined
|
|
49
50
|
}, /*#__PURE__*/React.createElement(TableHeading, {
|
|
50
|
-
$i18n_text: text
|
|
51
|
+
$i18n_text: text,
|
|
52
|
+
$flag_wrapText: isMultiline
|
|
51
53
|
}), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
52
54
|
actions: actions,
|
|
53
55
|
gap: ActionViewGap.SMALL,
|
|
@@ -4,6 +4,7 @@ import HeaderData from "./HeaderData";
|
|
|
4
4
|
function Headers(_ref) {
|
|
5
5
|
let {
|
|
6
6
|
headers,
|
|
7
|
+
isMultiline,
|
|
7
8
|
currentlyResizingColumn,
|
|
8
9
|
isResizerEnabled,
|
|
9
10
|
isFlexibleColumns,
|
|
@@ -19,6 +20,7 @@ function Headers(_ref) {
|
|
|
19
20
|
return /*#__PURE__*/React.createElement(HeaderData, {
|
|
20
21
|
key: index,
|
|
21
22
|
header: header,
|
|
23
|
+
isMultiline: isMultiline,
|
|
22
24
|
sortedBy: sortOrder,
|
|
23
25
|
isResizing: isResizing,
|
|
24
26
|
isResizerEnabled: isResizerEnabled,
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableHeadFirstNode from '@zohodesk-private/desk-components/es/table/TableHeadFirstNode/TableHeadFirstNode';
|
|
3
3
|
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
|
|
4
|
+
import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer"; // @ts-ignore
|
|
5
|
+
|
|
4
6
|
import style from "./../../css/TableList.module.css";
|
|
5
|
-
import { AdaptiveRowActionsRenderer } from "../../../../../../../../index";
|
|
6
7
|
|
|
7
8
|
function MassAction(_ref) {
|
|
8
9
|
let {
|
|
9
10
|
isSelectionEnabled,
|
|
11
|
+
isMultiline,
|
|
10
12
|
actions,
|
|
11
13
|
clientScripts
|
|
12
14
|
} = _ref;
|
|
@@ -15,8 +17,11 @@ function MassAction(_ref) {
|
|
|
15
17
|
return null;
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
const alignItems = isMultiline ? 'start' : 'center';
|
|
21
|
+
|
|
18
22
|
if (!actions || actions.length === 0) {
|
|
19
23
|
return /*#__PURE__*/React.createElement(TableHeadFirstNode, {
|
|
24
|
+
$ui_alignItems: alignItems,
|
|
20
25
|
customStyle: {
|
|
21
26
|
container: style.massActionHeader
|
|
22
27
|
}
|
|
@@ -27,6 +32,7 @@ function MassAction(_ref) {
|
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
return /*#__PURE__*/React.createElement(TableHeadFirstNode, {
|
|
35
|
+
$ui_alignItems: alignItems,
|
|
30
36
|
customStyle: {
|
|
31
37
|
container: style.massActionHeader
|
|
32
38
|
}
|