@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
|
@@ -36,6 +36,7 @@ function RowView(_ref, ref) {
|
|
|
36
36
|
id,
|
|
37
37
|
columns,
|
|
38
38
|
rowActionLocation,
|
|
39
|
+
isMultiline,
|
|
39
40
|
isFlexibleColumns,
|
|
40
41
|
cursor,
|
|
41
42
|
hasActions,
|
|
@@ -50,6 +51,7 @@ function RowView(_ref, ref) {
|
|
|
50
51
|
key: id,
|
|
51
52
|
ref: ref,
|
|
52
53
|
testId: id,
|
|
54
|
+
$flag_autoHeight: isMultiline,
|
|
53
55
|
$flag_padding: false,
|
|
54
56
|
$flag_active: isSelected,
|
|
55
57
|
$flag_hasHighlighter: isKeyboardControlsEnabled,
|
|
@@ -66,10 +68,12 @@ function RowView(_ref, ref) {
|
|
|
66
68
|
}
|
|
67
69
|
}, renderReorderer({
|
|
68
70
|
isReorderEnabled,
|
|
69
|
-
isReOrderLoading
|
|
71
|
+
isReOrderLoading,
|
|
72
|
+
isMultiline
|
|
70
73
|
}), renderRowSelection({
|
|
71
74
|
isSelectionEnabled,
|
|
72
75
|
id,
|
|
76
|
+
isMultiline,
|
|
73
77
|
selectionTooltip,
|
|
74
78
|
isSelected,
|
|
75
79
|
isSelectable,
|
|
@@ -80,6 +84,7 @@ function RowView(_ref, ref) {
|
|
|
80
84
|
clientScripts
|
|
81
85
|
}), renderRowActions({
|
|
82
86
|
hasActions,
|
|
87
|
+
isMultiline,
|
|
83
88
|
columnWidth: rowActionsColumnWidth,
|
|
84
89
|
type,
|
|
85
90
|
actions,
|
|
@@ -93,6 +98,7 @@ function renderRowSelection(_ref2) {
|
|
|
93
98
|
let {
|
|
94
99
|
isSelectionEnabled,
|
|
95
100
|
id,
|
|
101
|
+
isMultiline,
|
|
96
102
|
selectionTooltip,
|
|
97
103
|
isSelected,
|
|
98
104
|
isSelectable,
|
|
@@ -101,6 +107,7 @@ function renderRowSelection(_ref2) {
|
|
|
101
107
|
return /*#__PURE__*/React.createElement(RowSelection, {
|
|
102
108
|
isSelectionEnabled: isSelectionEnabled,
|
|
103
109
|
id: id,
|
|
110
|
+
isMultiline: isMultiline,
|
|
104
111
|
tooltip: selectionTooltip,
|
|
105
112
|
selected: isSelected,
|
|
106
113
|
selectable: isSelectable,
|
|
@@ -110,10 +117,16 @@ function renderRowSelection(_ref2) {
|
|
|
110
117
|
|
|
111
118
|
const DragHandler = SortableHandle(_ref3 => {
|
|
112
119
|
let {
|
|
113
|
-
isDisabled
|
|
120
|
+
isDisabled,
|
|
121
|
+
isMultiline
|
|
114
122
|
} = _ref3;
|
|
115
123
|
return /*#__PURE__*/React.createElement(DragHandle, {
|
|
116
124
|
isDisabled: isDisabled,
|
|
125
|
+
customProps: {
|
|
126
|
+
containerProps: {
|
|
127
|
+
$ui_alignItems: isMultiline ? 'start' : 'center'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
117
130
|
customStyle: {
|
|
118
131
|
container: style.dragHandleContainer
|
|
119
132
|
}
|
|
@@ -123,7 +136,8 @@ const DragHandler = SortableHandle(_ref3 => {
|
|
|
123
136
|
function renderReorderer(_ref4) {
|
|
124
137
|
let {
|
|
125
138
|
isReorderEnabled,
|
|
126
|
-
isReOrderLoading
|
|
139
|
+
isReOrderLoading,
|
|
140
|
+
isMultiline
|
|
127
141
|
} = _ref4;
|
|
128
142
|
|
|
129
143
|
if (!isReorderEnabled) {
|
|
@@ -134,7 +148,8 @@ function renderReorderer(_ref4) {
|
|
|
134
148
|
tabIndex: 0,
|
|
135
149
|
className: style.dragHandleWrapper
|
|
136
150
|
}, /*#__PURE__*/React.createElement(DragHandler, {
|
|
137
|
-
isDisabled: isReOrderLoading
|
|
151
|
+
isDisabled: isReOrderLoading,
|
|
152
|
+
isMultiline: isMultiline
|
|
138
153
|
}));
|
|
139
154
|
}
|
|
140
155
|
|
|
@@ -154,6 +169,7 @@ function renderColumns(_ref5) {
|
|
|
154
169
|
function renderRowActions(_ref6) {
|
|
155
170
|
let {
|
|
156
171
|
hasActions,
|
|
172
|
+
isMultiline,
|
|
157
173
|
columnWidth,
|
|
158
174
|
actions,
|
|
159
175
|
type,
|
|
@@ -161,6 +177,7 @@ function renderRowActions(_ref6) {
|
|
|
161
177
|
} = _ref6;
|
|
162
178
|
return /*#__PURE__*/React.createElement(RowActions, {
|
|
163
179
|
hasActions: hasActions,
|
|
180
|
+
isMultiline: isMultiline,
|
|
164
181
|
columnWidth: columnWidth,
|
|
165
182
|
type: type,
|
|
166
183
|
actions: actions,
|
|
@@ -5,6 +5,7 @@ import { ActionViewGap } from "../../../../../../../../platform/client-actions/c
|
|
|
5
5
|
export default function RowActions(_ref) {
|
|
6
6
|
let {
|
|
7
7
|
hasActions,
|
|
8
|
+
isMultiline,
|
|
8
9
|
columnWidth,
|
|
9
10
|
type = '',
|
|
10
11
|
actions,
|
|
@@ -13,7 +14,8 @@ export default function RowActions(_ref) {
|
|
|
13
14
|
|
|
14
15
|
if (hasActions) {
|
|
15
16
|
return /*#__PURE__*/React.createElement(TableAction, {
|
|
16
|
-
$data_width: columnWidth
|
|
17
|
+
$data_width: columnWidth,
|
|
18
|
+
$ui_alignItems: isMultiline ? 'start' : 'center'
|
|
17
19
|
}, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
|
|
18
20
|
actions: actions,
|
|
19
21
|
clientScripts: clientScripts,
|
package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js
CHANGED
|
@@ -30,6 +30,7 @@ function RowSelection(_ref) {
|
|
|
30
30
|
let {
|
|
31
31
|
isSelectionEnabled,
|
|
32
32
|
id,
|
|
33
|
+
isMultiline,
|
|
33
34
|
tooltip,
|
|
34
35
|
selected,
|
|
35
36
|
selectable,
|
|
@@ -44,6 +45,8 @@ function RowSelection(_ref) {
|
|
|
44
45
|
$data_id: id,
|
|
45
46
|
$i18n_tooltip: tooltip,
|
|
46
47
|
$flag_checked: selected,
|
|
48
|
+
$flag_autoHeight: isMultiline,
|
|
49
|
+
$ui_alignItems: isMultiline ? 'start' : 'center',
|
|
47
50
|
customStyle: {
|
|
48
51
|
container: style.tableListSelectContainer
|
|
49
52
|
},
|
package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.wrapper, .itemContainer {
|
|
2
|
-
max-width: 100%
|
|
2
|
+
max-width: 100%
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.itemContainer {
|
|
6
|
-
column-gap:
|
|
6
|
+
column-gap: 4px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.separator {
|
|
10
10
|
--separator_fontSize: 14px;
|
|
11
|
-
margin: 0
|
|
11
|
+
margin: 0 10px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.buttonStyle {
|
|
15
15
|
--button_font_size: 14px;
|
|
16
16
|
--button_padding: 0px;
|
|
17
17
|
--button_letter_spacing: 0px;
|
|
18
|
-
max-width: 100
|
|
18
|
+
max-width: 100%;
|
|
19
19
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
3
|
-
import DateConstants from "../../../../../../cc/date/Constants";
|
|
3
|
+
import DateConstants from "../../../../../../cc/date/Constants";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
5
|
+
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
4
6
|
|
|
5
7
|
import style from "./css/DateView.module.css";
|
|
6
|
-
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
7
8
|
|
|
8
9
|
function DateView(_ref, ref) {
|
|
9
10
|
let {
|
|
@@ -20,9 +21,10 @@ function DateView(_ref, ref) {
|
|
|
20
21
|
disabled,
|
|
21
22
|
readonly,
|
|
22
23
|
pattern,
|
|
23
|
-
|
|
24
|
+
isTimeIncluded,
|
|
24
25
|
timeZone,
|
|
25
|
-
actions
|
|
26
|
+
actions,
|
|
27
|
+
clientScripts
|
|
26
28
|
} = state.properties;
|
|
27
29
|
|
|
28
30
|
const renderRightFieldActions = () => {
|
|
@@ -30,7 +32,9 @@ function DateView(_ref, ref) {
|
|
|
30
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
33
|
className: style.actionContainer
|
|
32
34
|
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
33
|
-
actions: actions
|
|
35
|
+
actions: actions,
|
|
36
|
+
clientScripts: clientScripts,
|
|
37
|
+
gap: ActionViewGap.SMALL
|
|
34
38
|
}));
|
|
35
39
|
};
|
|
36
40
|
|
|
@@ -50,7 +54,7 @@ function DateView(_ref, ref) {
|
|
|
50
54
|
getRef: ref,
|
|
51
55
|
htmlId: id,
|
|
52
56
|
value: value,
|
|
53
|
-
isDateTime:
|
|
57
|
+
isDateTime: isTimeIncluded,
|
|
54
58
|
textBoxSize: "xmedium",
|
|
55
59
|
timeZone: timeZone,
|
|
56
60
|
dateFormat: pattern,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableEmail from '@zohodesk-private/desk-components/es/table/TableEmail/TableEmail';
|
|
3
|
-
import
|
|
3
|
+
import EmailConstants from "../../../../../../cc/email/Constants";
|
|
4
4
|
|
|
5
5
|
function EmailView(_ref, ref) {
|
|
6
6
|
let {
|
|
@@ -11,10 +11,14 @@ function EmailView(_ref, ref) {
|
|
|
11
11
|
dispatch
|
|
12
12
|
} = helpers;
|
|
13
13
|
let {
|
|
14
|
-
email
|
|
14
|
+
email,
|
|
15
|
+
isDotted,
|
|
16
|
+
weight
|
|
15
17
|
} = state.properties;
|
|
16
18
|
return /*#__PURE__*/React.createElement(TableEmail, {
|
|
17
19
|
$method_getRef: ref,
|
|
20
|
+
$flag_wrapText: !isDotted,
|
|
21
|
+
$ui_weight: weight,
|
|
18
22
|
$event_onCopyEmailClick: mail => {
|
|
19
23
|
dispatch({
|
|
20
24
|
type: EmailConstants.EMAIL_COPIED,
|
|
@@ -14,7 +14,8 @@ function LabelView(_ref, ref) {
|
|
|
14
14
|
label,
|
|
15
15
|
for: htmlFor,
|
|
16
16
|
isMandatory,
|
|
17
|
-
actions
|
|
17
|
+
actions,
|
|
18
|
+
clientScripts
|
|
18
19
|
} = state.properties;
|
|
19
20
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
20
21
|
ref: ref,
|
|
@@ -28,7 +29,8 @@ function LabelView(_ref, ref) {
|
|
|
28
29
|
customClass: `${style.label} ${isMandatory ? style.mandatory : ''}`
|
|
29
30
|
}), actions.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
30
31
|
actions: actions,
|
|
31
|
-
gap: ActionViewGap.XMEDIUM
|
|
32
|
+
gap: ActionViewGap.XMEDIUM,
|
|
33
|
+
clientScripts: clientScripts
|
|
32
34
|
}) : null);
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.label {
|
|
2
2
|
--label_cursor: inherit
|
|
3
3
|
}[dir=ltr] .label {
|
|
4
|
-
padding-right:
|
|
4
|
+
padding-right: 6px
|
|
5
5
|
}[dir=rtl] .label {
|
|
6
|
-
padding-left:
|
|
6
|
+
padding-left: 6px
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.mandatory::after {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
[dir=ltr] .mandatory::after {
|
|
14
|
-
padding-left:
|
|
14
|
+
padding-left: 2px
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[dir=rtl] .mandatory::after {
|
|
18
|
-
padding-right:
|
|
18
|
+
padding-right: 2px
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import TableLink from "@zohodesk-private/desk-components/es/table/TableLink/TableLink";
|
|
3
|
-
import
|
|
3
|
+
import LinkConstants from "../../../../../../cc/link/Constants";
|
|
4
4
|
|
|
5
5
|
function LinkView(_ref, ref) {
|
|
6
6
|
let {
|
|
@@ -13,6 +13,8 @@ function LinkView(_ref, ref) {
|
|
|
13
13
|
let {
|
|
14
14
|
label,
|
|
15
15
|
variant,
|
|
16
|
+
isDotted,
|
|
17
|
+
weight,
|
|
16
18
|
href,
|
|
17
19
|
opensNewTab
|
|
18
20
|
} = state.properties;
|
|
@@ -26,6 +28,8 @@ function LinkView(_ref, ref) {
|
|
|
26
28
|
$data_url: href,
|
|
27
29
|
$data_target: target,
|
|
28
30
|
$ui_variant: variant,
|
|
31
|
+
$flag_wrapText: !isDotted,
|
|
32
|
+
$ui_weight: weight,
|
|
29
33
|
$event_onClick: () => {
|
|
30
34
|
dispatch({
|
|
31
35
|
type: LinkConstants.LINK_CLICKED
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import MultiSelect from "@zohodesk/components/es/MultiSelect/MultiSelect";
|
|
3
|
-
import { MultiSelectConstants } from "../../../../../../cc/multi-select";
|
|
3
|
+
import { MultiSelectConstants } from "../../../../../../cc/multi-select";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
5
|
+
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
4
6
|
|
|
5
7
|
import style from "./css/MultiSelectView.module.css";
|
|
6
|
-
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
7
8
|
|
|
8
9
|
function MultiSelectView(_ref, ref) {
|
|
9
10
|
let {
|
|
@@ -22,21 +23,44 @@ function MultiSelectView(_ref, ref) {
|
|
|
22
23
|
required,
|
|
23
24
|
disabled,
|
|
24
25
|
readonly,
|
|
25
|
-
actions
|
|
26
|
+
actions,
|
|
27
|
+
clientScripts
|
|
26
28
|
} = state.properties;
|
|
29
|
+
const transformedOptions = options.map(option => {
|
|
30
|
+
const baseOption = option;
|
|
31
|
+
|
|
32
|
+
if (option.optionActions && option.optionActions.length !== 0) {
|
|
33
|
+
return { ...option,
|
|
34
|
+
listItemCustomProps: {
|
|
35
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
36
|
+
actions: option.optionActions,
|
|
37
|
+
gap: ActionViewGap.SMALL,
|
|
38
|
+
clientScripts: clientScripts
|
|
39
|
+
}),
|
|
40
|
+
customClass: {
|
|
41
|
+
customValueRightPlaceholder: style.optionActionsContainer
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return baseOption;
|
|
48
|
+
});
|
|
27
49
|
|
|
28
50
|
const renderRightFieldActions = () => {
|
|
29
51
|
if (!actions?.length) return null;
|
|
30
52
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
className: style.
|
|
53
|
+
className: style.fieldActionsContainer
|
|
32
54
|
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
33
|
-
actions: actions
|
|
55
|
+
actions: actions,
|
|
56
|
+
gap: ActionViewGap.SMALL,
|
|
57
|
+
clientScripts: clientScripts
|
|
34
58
|
}));
|
|
35
59
|
};
|
|
36
60
|
|
|
37
61
|
return /*#__PURE__*/React.createElement(MultiSelect, {
|
|
38
62
|
getRef: ref,
|
|
39
|
-
options:
|
|
63
|
+
options: transformedOptions,
|
|
40
64
|
selectedOptions: value,
|
|
41
65
|
htmlId: id,
|
|
42
66
|
placeHolder: placeholder,
|
package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css
CHANGED
|
@@ -1,37 +1,29 @@
|
|
|
1
|
-
.
|
|
2
|
-
margin-top:
|
|
1
|
+
.fieldActionsContainer {
|
|
2
|
+
margin-top: 4px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[dir=ltr] .optionActionsContainer {
|
|
6
|
+
margin-left: 4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[dir=rtl] .optionActionsContainer {
|
|
10
|
+
margin-right: 4px;
|
|
3
11
|
}
|
|
4
12
|
|
|
5
13
|
.custmInputWrapper {
|
|
6
14
|
position: absolute;
|
|
7
|
-
top: 0
|
|
8
|
-
width: 100
|
|
15
|
+
top: 0;
|
|
16
|
+
width: 100%;
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
[dir=ltr] .custmInputWrapper {
|
|
12
|
-
left: 0
|
|
20
|
+
left: 0;
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
[dir=rtl] .custmInputWrapper {
|
|
16
|
-
right: 0
|
|
24
|
+
right: 0;
|
|
17
25
|
}
|
|
18
26
|
|
|
19
27
|
.clearIconContainer {
|
|
20
28
|
--textboxicon_icon_margin: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[dir=ltr] .paddingRight64 {
|
|
24
|
-
padding-right: var(--zd_size64) ;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[dir=rtl] .paddingRight64 {
|
|
28
|
-
padding-left: var(--zd_size64) ;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[dir=ltr] .paddingRight96 {
|
|
32
|
-
padding-right: var(--zd_size96) ;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
[dir=rtl] .paddingRight96 {
|
|
36
|
-
padding-left: var(--zd_size96) ;
|
|
37
29
|
}
|
|
@@ -2,6 +2,9 @@ import React from "react";
|
|
|
2
2
|
import Select from '@zohodesk/components/es/Select/Select';
|
|
3
3
|
import SelectConstants from "../../../../../../cc/select/Constants";
|
|
4
4
|
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
5
|
+
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
6
|
+
|
|
7
|
+
import style from "./css/Select.module.css";
|
|
5
8
|
|
|
6
9
|
function SelectView(_ref, ref) {
|
|
7
10
|
let {
|
|
@@ -19,16 +22,38 @@ function SelectView(_ref, ref) {
|
|
|
19
22
|
required,
|
|
20
23
|
disabled,
|
|
21
24
|
readonly,
|
|
22
|
-
actions
|
|
25
|
+
actions,
|
|
26
|
+
clientScripts
|
|
23
27
|
} = state.properties;
|
|
24
|
-
const transformedOptions = options.map(option =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
const transformedOptions = options.map(option => {
|
|
29
|
+
const baseOption = {
|
|
30
|
+
id: option.value,
|
|
31
|
+
text: option.value
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
if (option.optionActions && option.optionActions.length !== 0) {
|
|
35
|
+
return { ...baseOption,
|
|
36
|
+
listItemCustomProps: {
|
|
37
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
38
|
+
actions: option.optionActions,
|
|
39
|
+
gap: ActionViewGap.SMALL,
|
|
40
|
+
clientScripts: clientScripts
|
|
41
|
+
}),
|
|
42
|
+
customClass: {
|
|
43
|
+
customValueRightPlaceholder: style.optionActionsContainer
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return baseOption;
|
|
50
|
+
});
|
|
28
51
|
|
|
29
52
|
const renderRightFieldActions = () => {
|
|
30
53
|
return actions?.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
31
|
-
actions: actions
|
|
54
|
+
actions: actions,
|
|
55
|
+
gap: ActionViewGap.SMALL,
|
|
56
|
+
clientScripts: clientScripts
|
|
32
57
|
}) : null;
|
|
33
58
|
};
|
|
34
59
|
|
|
@@ -1,13 +1,65 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useRef } from 'react';
|
|
3
3
|
import ColumnChooser from '@zohodesk-private/desk-components/es/ColumnChooser/ColumnChooser';
|
|
4
|
+
import ListItem from '@zohodesk/components/es/ListItem/ListItem';
|
|
5
|
+
import { DropDownHeading, DropDownSeparator } from '@zohodesk/components/es/DropDown';
|
|
4
6
|
import { TableColumnChooserConstants } from "../../../../../../cc/table-column-chooser";
|
|
7
|
+
import { TableTextOverflowConstants } from "../../../../../../cc/table-text-overflow"; // @ts-ignore
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
import style from "./css/TableColumnChooserView.module.css";
|
|
10
|
+
const textFlowOptions = [{
|
|
11
|
+
id: 'clip',
|
|
12
|
+
value: 'Clip'
|
|
13
|
+
}, {
|
|
14
|
+
id: 'wrap',
|
|
15
|
+
value: 'Wrap'
|
|
16
|
+
}];
|
|
17
|
+
|
|
18
|
+
function TextOverflowConfig(_ref) {
|
|
19
|
+
let {
|
|
20
|
+
mode = 'clip',
|
|
21
|
+
dispatch,
|
|
22
|
+
popupRef
|
|
23
|
+
} = _ref;
|
|
24
|
+
|
|
25
|
+
function handleClick(id) {
|
|
26
|
+
popupRef.current && popupRef.current.closePopupOnly && popupRef.current.closePopupOnly();
|
|
27
|
+
dispatch({
|
|
28
|
+
type: TableTextOverflowConstants.TEXT_OVERFLOW_UPDATED,
|
|
29
|
+
payload: {
|
|
30
|
+
mode: id
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
36
|
+
text: "Text Overflow",
|
|
37
|
+
customClass: style.textOverflowHeading
|
|
38
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: style.textOverflowOptions
|
|
40
|
+
}, textFlowOptions.map(_ref2 => {
|
|
41
|
+
let {
|
|
42
|
+
id,
|
|
43
|
+
value
|
|
44
|
+
} = _ref2;
|
|
45
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
46
|
+
key: id,
|
|
47
|
+
id: id,
|
|
48
|
+
value: value,
|
|
49
|
+
autoHover: true,
|
|
50
|
+
needBorder: false,
|
|
51
|
+
needTick: true,
|
|
52
|
+
active: mode === id,
|
|
53
|
+
onClick: handleClick
|
|
54
|
+
});
|
|
55
|
+
})), /*#__PURE__*/React.createElement(DropDownSeparator, null));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function TableColumnChooserView(_ref3, ref) {
|
|
7
59
|
let {
|
|
8
60
|
state,
|
|
9
61
|
helpers
|
|
10
|
-
} =
|
|
62
|
+
} = _ref3;
|
|
11
63
|
const {
|
|
12
64
|
dispatch
|
|
13
65
|
} = helpers;
|
|
@@ -18,7 +70,8 @@ function TableColumnChooserView(_ref, ref) {
|
|
|
18
70
|
infoText,
|
|
19
71
|
hasSearch,
|
|
20
72
|
searchString,
|
|
21
|
-
searchPlaceholder
|
|
73
|
+
searchPlaceholder,
|
|
74
|
+
textOverflowConfig
|
|
22
75
|
} = state.properties;
|
|
23
76
|
const {
|
|
24
77
|
emptyMessage,
|
|
@@ -26,7 +79,23 @@ function TableColumnChooserView(_ref, ref) {
|
|
|
26
79
|
saveLabel,
|
|
27
80
|
cancelLabel
|
|
28
81
|
} = state.properties;
|
|
82
|
+
const {
|
|
83
|
+
isEnabled: isTextOverflowEnabled,
|
|
84
|
+
mode: textOverflowMode
|
|
85
|
+
} = textOverflowConfig;
|
|
86
|
+
const popupRef = useRef(null);
|
|
87
|
+
|
|
88
|
+
const renderTextOverflowConfig = () => {
|
|
89
|
+
return /*#__PURE__*/React.createElement(TextOverflowConfig, {
|
|
90
|
+
mode: textOverflowMode,
|
|
91
|
+
dispatch: dispatch,
|
|
92
|
+
popupRef: popupRef
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
29
96
|
return /*#__PURE__*/React.createElement(ColumnChooser, {
|
|
97
|
+
ref: popupRef,
|
|
98
|
+
renderCustomHeader: isTextOverflowEnabled ? renderTextOverflowConfig : null,
|
|
30
99
|
options: options,
|
|
31
100
|
getRef: ref,
|
|
32
101
|
tooltip: tooltip,
|
package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js
CHANGED
|
@@ -22,8 +22,6 @@ function TableColumnFilterView(_ref, ref) {
|
|
|
22
22
|
heading,
|
|
23
23
|
hasSearch,
|
|
24
24
|
searchPlaceholder,
|
|
25
|
-
hasClearButton,
|
|
26
|
-
isClearButtonDisabled,
|
|
27
25
|
clearFilterLabel,
|
|
28
26
|
optionTagLabel,
|
|
29
27
|
taggedOption
|
|
@@ -58,7 +56,7 @@ function TableColumnFilterView(_ref, ref) {
|
|
|
58
56
|
});
|
|
59
57
|
};
|
|
60
58
|
|
|
61
|
-
const isFiltered = isMultiSelect ? Array.isArray(selectedOptions) && selectedOptions.length > 0 : selectedOptions && Object.keys(selectedOptions).length > 0; // For SingleSelectFilter, pass selectedOption (object)
|
|
59
|
+
const isFiltered = isMultiSelect ? Array.isArray(selectedOptions) && selectedOptions.length > 0 : selectedOptions && Object.keys(selectedOptions).length > 0 && !!selectedOptions.id; // For SingleSelectFilter, pass selectedOption (object)
|
|
62
60
|
// For MultiSelectFilter, pass selectedOptions (array)
|
|
63
61
|
|
|
64
62
|
const commonProps = {
|
|
@@ -88,8 +86,8 @@ function TableColumnFilterView(_ref, ref) {
|
|
|
88
86
|
options,
|
|
89
87
|
hasSearch,
|
|
90
88
|
searchPlaceholder,
|
|
91
|
-
hasClearButton,
|
|
92
|
-
isClearButtonDisabled,
|
|
89
|
+
hasClearButton: true,
|
|
90
|
+
isClearButtonDisabled: !isFiltered,
|
|
93
91
|
clearFilterLabel,
|
|
94
92
|
optionTagLabel,
|
|
95
93
|
taggedOption,
|
|
@@ -6,7 +6,8 @@ export function ColouredMultiSelectFieldView(_ref, ref) {
|
|
|
6
6
|
} = _ref;
|
|
7
7
|
const {
|
|
8
8
|
value,
|
|
9
|
-
options
|
|
9
|
+
options,
|
|
10
|
+
textOverflowMode
|
|
10
11
|
} = state.properties;
|
|
11
12
|
const selectedOptions = value.map(item => {
|
|
12
13
|
const option = options.find(opt => opt.value === item);
|
|
@@ -18,6 +19,7 @@ export function ColouredMultiSelectFieldView(_ref, ref) {
|
|
|
18
19
|
});
|
|
19
20
|
return /*#__PURE__*/React.createElement(Tags, {
|
|
20
21
|
getRef: ref,
|
|
21
|
-
tags: selectedOptions
|
|
22
|
+
tags: selectedOptions,
|
|
23
|
+
isWrapped: textOverflowMode === 'wrap'
|
|
22
24
|
});
|
|
23
25
|
}
|
|
@@ -8,7 +8,9 @@ export function CurrencyFieldView(_ref, ref) {
|
|
|
8
8
|
const {
|
|
9
9
|
value,
|
|
10
10
|
currencyLocale,
|
|
11
|
-
currencySymbol
|
|
11
|
+
currencySymbol,
|
|
12
|
+
textOverflowMode,
|
|
13
|
+
isRead
|
|
12
14
|
} = state.properties;
|
|
13
15
|
const formatedValue = formatCurrency({
|
|
14
16
|
value,
|
|
@@ -17,6 +19,9 @@ export function CurrencyFieldView(_ref, ref) {
|
|
|
17
19
|
});
|
|
18
20
|
return /*#__PURE__*/React.createElement(Text, {
|
|
19
21
|
getRef: ref,
|
|
20
|
-
text: formatedValue
|
|
22
|
+
text: formatedValue,
|
|
23
|
+
tooltip: formatedValue,
|
|
24
|
+
isDotted: textOverflowMode === 'clip',
|
|
25
|
+
weight: isRead ? undefined : 'bold'
|
|
21
26
|
});
|
|
22
27
|
}
|