@talxis/base-controls 1.2509.1-alpha.6 → 1.2509.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +49 -0
- package/README.md +3 -40
- package/dist/components/DatasetControl/DatasetControl.js +55 -59
- package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
- package/dist/components/DatasetControl/Paging/DatasetPaging.d.ts +3 -0
- package/dist/components/DatasetControl/Paging/DatasetPaging.js +69 -0
- package/dist/components/DatasetControl/Paging/DatasetPaging.js.map +1 -0
- package/dist/components/DatasetControl/Paging/Paging.d.ts +26 -0
- package/dist/components/DatasetControl/Paging/Paging.js +80 -0
- package/dist/components/DatasetControl/Paging/Paging.js.map +1 -0
- package/dist/components/DatasetControl/Paging/index.d.ts +3 -0
- package/dist/components/DatasetControl/Paging/index.js +3 -0
- package/dist/components/DatasetControl/Paging/index.js.map +1 -0
- package/dist/components/DatasetControl/Paging/interfaces.d.ts +16 -0
- package/dist/components/DatasetControl/Paging/styles.d.ts +35 -0
- package/dist/components/DatasetControl/Paging/styles.js +41 -0
- package/dist/components/DatasetControl/Paging/styles.js.map +1 -0
- package/dist/components/DatasetControl/Paging/translations.d.ts +38 -0
- package/dist/components/DatasetControl/Paging/translations.js +14 -0
- package/dist/components/DatasetControl/Paging/translations.js.map +1 -0
- package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +12 -4
- package/dist/components/DatasetControl/QuickFind/QuickFind.js +32 -36
- package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -1
- package/dist/components/DatasetControl/QuickFind/styles.d.ts +1 -1
- package/dist/components/DatasetControl/QuickFind/styles.js +2 -2
- package/dist/components/DatasetControl/QuickFind/styles.js.map +1 -1
- package/dist/components/DatasetControl/index.d.ts +1 -0
- package/dist/components/DatasetControl/index.js +2 -0
- package/dist/components/DatasetControl/index.js.map +1 -1
- package/dist/components/DatasetControl/interfaces.d.ts +20 -54
- package/dist/components/DatasetControl/styles.d.ts +11 -4
- package/dist/components/DatasetControl/styles.js +11 -5
- package/dist/components/DatasetControl/styles.js.map +1 -1
- package/dist/components/DatasetControl/translations.d.ts +0 -44
- package/dist/components/DatasetControl/translations.js +1 -15
- package/dist/components/DatasetControl/translations.js.map +1 -1
- package/dist/components/Grid/Grid.d.ts +3 -0
- package/dist/components/Grid/Grid.js +37 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Grid/GridContext.d.ts +3 -0
- package/dist/components/Grid/GridContext.js.map +1 -0
- package/dist/components/Grid/aggregation/Aggregation.d.ts +18 -0
- package/dist/components/Grid/aggregation/Aggregation.js +129 -0
- package/dist/components/Grid/aggregation/Aggregation.js.map +1 -0
- package/dist/components/Grid/{grid/Grid.d.ts → core/components/AgGrid/AgGrid.d.ts} +2 -2
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js +203 -0
- package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -0
- package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js +12 -0
- package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js.map +1 -0
- package/dist/components/Grid/{overlays/empty-records → core/components/AgGrid/components/EmptyRecordsOverlay}/styles.d.ts +1 -1
- package/dist/components/Grid/{overlays/empty-records → core/components/AgGrid/components/EmptyRecordsOverlay}/styles.js +1 -1
- package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js.map +1 -0
- package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js.map +1 -0
- package/dist/components/Grid/{grid/ag-grid/AgGridContext.d.ts → core/components/AgGrid/context.d.ts} +2 -2
- package/dist/components/Grid/{grid/ag-grid/AgGridContext.js → core/components/AgGrid/context.js} +1 -1
- package/dist/components/Grid/core/components/AgGrid/context.js.map +1 -0
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +52 -0
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +343 -0
- package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -0
- package/dist/components/Grid/{grid/ValueComparator.d.ts → core/components/AgGrid/model/Comparator.d.ts} +1 -1
- package/dist/components/Grid/{grid/ValueComparator.js → core/components/AgGrid/model/Comparator.js} +1 -7
- package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +1 -0
- package/dist/components/Grid/{grid → core/components/AgGrid}/styles.d.ts +4 -24
- package/dist/components/Grid/{grid → core/components/AgGrid}/styles.js +6 -37
- package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -0
- package/dist/components/Grid/{cells/cell → core/components/Cell}/Cell.d.ts +3 -3
- package/dist/components/Grid/core/components/Cell/Cell.js +158 -0
- package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -0
- package/dist/components/Grid/{cells/cell/content → core/components/Cell/CellContent}/CellContent.d.ts +2 -2
- package/dist/components/Grid/{cells/cell/content → core/components/Cell/CellContent}/CellContent.js +31 -40
- package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -0
- package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +1 -0
- package/dist/components/Grid/{cells/cell/notifications → core/components/Cell/Notifications}/Notifications.d.ts +1 -1
- package/dist/components/Grid/{cells/cell/notifications → core/components/Cell/Notifications}/Notifications.js +5 -5
- package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +1 -0
- package/dist/components/Grid/{cells/cell/notifications → core/components/Cell/Notifications}/styles.js +1 -1
- package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +1 -0
- package/dist/components/Grid/{cells/cell → core/components/Cell}/styles.d.ts +3 -34
- package/dist/components/Grid/core/components/Cell/styles.js +59 -0
- package/dist/components/Grid/core/components/Cell/styles.js.map +1 -0
- package/dist/components/Grid/{column-headers/column-header → core/components/ColumnHeader}/ColumnHeader.d.ts +1 -1
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +61 -0
- package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.d.ts +2 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +50 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -0
- package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +1 -0
- package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +42 -0
- package/dist/components/Grid/core/components/ColumnHeader/styles.js +48 -0
- package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Dialog/Constants.d.ts +2 -0
- package/dist/components/Grid/core/components/Dialog/Constants.js +9 -0
- package/dist/components/Grid/core/components/Dialog/Constants.js.map +1 -0
- package/dist/components/Grid/core/components/Dialog/Styles.d.ts +2 -0
- package/dist/components/Grid/core/components/Dialog/Styles.js +61 -0
- package/dist/components/Grid/core/components/Dialog/Styles.js.map +1 -0
- package/dist/components/Grid/core/components/Dialog/index.d.ts +4 -0
- package/dist/components/Grid/core/components/Dialog/index.js +16 -0
- package/dist/components/Grid/core/components/Dialog/index.js.map +1 -0
- package/dist/components/Grid/core/components/Dialog/interfaces/index.d.ts +6 -0
- package/dist/components/Grid/core/components/Dialog/interfaces/index.js +2 -0
- package/dist/components/Grid/core/components/Dialog/interfaces/index.js.map +1 -0
- package/dist/components/Grid/core/components/Save/Save.d.ts +2 -0
- package/dist/components/Grid/core/components/Save/Save.js +59 -0
- package/dist/components/Grid/core/components/Save/Save.js.map +1 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.d.ts +7 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +73 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +11 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +231 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.d.ts +39 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js +45 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.d.ts +31 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js +37 -0
- package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js.map +1 -0
- package/dist/components/Grid/core/components/Save/styles.d.ts +35 -0
- package/dist/components/Grid/core/components/Save/styles.js +42 -0
- package/dist/components/Grid/core/components/Save/styles.js.map +1 -0
- package/dist/components/Grid/core/controllers/useGridController.d.ts +7 -0
- package/dist/components/Grid/core/controllers/useGridController.js +29 -0
- package/dist/components/Grid/core/controllers/useGridController.js.map +1 -0
- package/dist/components/Grid/core/enums/ConditionOperator.d.ts +48 -0
- package/dist/components/Grid/core/enums/ConditionOperator.js +52 -0
- package/dist/components/Grid/core/enums/ConditionOperator.js.map +1 -0
- package/dist/components/Grid/core/enums/DataType.d.ts +25 -0
- package/dist/components/Grid/core/enums/DataType.js +30 -0
- package/dist/components/Grid/core/enums/DataType.js.map +1 -0
- package/dist/components/Grid/core/hooks/useGridInstance.d.ts +2 -0
- package/dist/components/Grid/{grid → core/hooks}/useGridInstance.js +2 -2
- package/dist/components/Grid/core/hooks/useGridInstance.js.map +1 -0
- package/dist/components/Grid/core/hooks/useRefreshCallback.d.ts +2 -0
- package/dist/components/Grid/core/hooks/useRefreshCallback.js +20 -0
- package/dist/components/Grid/core/hooks/useRefreshCallback.js.map +1 -0
- package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +13 -0
- package/dist/components/Grid/core/interfaces/IGridContext.d.ts +4 -0
- package/dist/components/Grid/core/model/Grid.d.ts +83 -0
- package/dist/components/Grid/core/model/Grid.js +528 -0
- package/dist/components/Grid/core/model/Grid.js.map +1 -0
- package/dist/components/Grid/core/model/GridDependency.d.ts +13 -0
- package/dist/components/Grid/core/model/GridDependency.js +28 -0
- package/dist/components/Grid/core/model/GridDependency.js.map +1 -0
- package/dist/components/Grid/core/services/KeyListener.d.ts +12 -0
- package/dist/components/Grid/core/services/KeyListener.js +31 -0
- package/dist/components/Grid/core/services/KeyListener.js.map +1 -0
- package/dist/components/Grid/{column-headers/column-header → filtering/components/FilterCallout}/FilterCallout.d.ts +1 -1
- package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js +59 -0
- package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.d.ts +7 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js +56 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.d.ts +7 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +73 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.d.ts +7 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js +90 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +48 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js +146 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.d.ts +11 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js +53 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.d.ts +9 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js +31 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.d.ts +10 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js +294 -0
- package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -0
- package/dist/components/Grid/filtering/components/FilterCallout/styles.d.ts +35 -0
- package/dist/components/Grid/{column-headers/column-header → filtering/components/FilterCallout}/styles.js +11 -20
- package/dist/components/Grid/filtering/components/FilterCallout/styles.js.map +1 -0
- package/dist/components/Grid/filtering/constants.d.ts +5 -0
- package/dist/components/Grid/filtering/constants.js +53 -0
- package/dist/components/Grid/filtering/constants.js.map +1 -0
- package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.d.ts +21 -0
- package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js +44 -0
- package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js.map +1 -0
- package/dist/components/Grid/filtering/model/Condition.d.ts +49 -0
- package/dist/components/Grid/filtering/model/Condition.js +347 -0
- package/dist/components/Grid/filtering/model/Condition.js.map +1 -0
- package/dist/components/Grid/filtering/model/Filtering.d.ts +11 -0
- package/dist/components/Grid/filtering/model/Filtering.js +78 -0
- package/dist/components/Grid/filtering/model/Filtering.js.map +1 -0
- package/dist/components/Grid/filtering/utils/FilteringUtilts.d.ts +34 -0
- package/dist/components/Grid/filtering/utils/FilteringUtilts.js +195 -0
- package/dist/components/Grid/filtering/utils/FilteringUtilts.js.map +1 -0
- package/dist/components/Grid/index.d.ts +1 -1
- package/dist/components/Grid/index.js +1 -1
- package/dist/components/Grid/interfaces.d.ts +0 -9
- package/dist/components/Grid/selection/model/Selection.d.ts +12 -0
- package/dist/components/Grid/selection/model/Selection.js +55 -0
- package/dist/components/Grid/selection/model/Selection.js.map +1 -0
- package/dist/components/Grid/sorting/Sorting.d.ts +10 -0
- package/dist/components/Grid/sorting/Sorting.js +31 -0
- package/dist/components/Grid/sorting/Sorting.js.map +1 -0
- package/dist/components/Grid/{column-headers/column-header/ColumnHeaderContextualMenu.d.ts → sorting/components/SortingContextualMenu/SortingContextualMenu.d.ts} +3 -3
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +157 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.d.ts +9 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js +15 -0
- package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js.map +1 -0
- package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +9 -0
- package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +22 -0
- package/dist/components/Grid/sorting/controllers/useColumnSortingController.js.map +1 -0
- package/dist/components/Grid/translations.d.ts +180 -20
- package/dist/components/Grid/translations.js +48 -5
- package/dist/components/Grid/translations.js.map +1 -1
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +2 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +11 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +1 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +2 -0
- package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +1 -0
- package/dist/components/GridCellRenderer/GridCellRenderer.js +282 -99
- package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -1
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +5 -0
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +75 -0
- package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -0
- package/dist/components/GridCellRenderer/OptionSet/index.d.ts +1 -0
- package/dist/components/GridCellRenderer/OptionSet/index.js +2 -0
- package/dist/components/GridCellRenderer/OptionSet/index.js.map +1 -0
- package/dist/components/GridCellRenderer/OptionSet/styles.d.ts +20 -0
- package/dist/components/GridCellRenderer/OptionSet/styles.js +29 -0
- package/dist/components/GridCellRenderer/OptionSet/styles.js.map +1 -0
- package/dist/components/GridCellRenderer/RecordCommands/Icon.d.ts +7 -0
- package/dist/components/GridCellRenderer/RecordCommands/Icon.js +32 -0
- package/dist/components/GridCellRenderer/RecordCommands/Icon.js.map +1 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.d.ts +13 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js +103 -0
- package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js.map +1 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.d.ts +13 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.js +32 -0
- package/dist/components/GridCellRenderer/RecordCommands/styles.js.map +1 -0
- package/dist/components/GridCellRenderer/interfaces.d.ts +42 -53
- package/dist/components/GridCellRenderer/styles.d.ts +60 -34
- package/dist/components/GridCellRenderer/styles.js +77 -69
- package/dist/components/GridCellRenderer/styles.js.map +1 -1
- package/dist/components/GridCellRenderer/translations.d.ts +1 -1
- package/dist/components/GridCellRenderer/translations.js +32 -30
- package/dist/components/GridCellRenderer/translations.js.map +1 -1
- package/dist/components/GridCellRenderer/useComponentProps.d.ts +6 -0
- package/dist/components/GridCellRenderer/useComponentProps.js +10 -0
- package/dist/components/GridCellRenderer/useComponentProps.js.map +1 -0
- package/dist/components/Lookup/Lookup.js +1 -1
- package/dist/components/Lookup/Lookup.js.map +1 -1
- package/dist/components/Lookup/hooks/useLookup.js +2 -2
- package/dist/components/Lookup/hooks/useLookup.js.map +1 -1
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +2 -2
- package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
- package/dist/components/NestedControlRenderer/NestedControl.d.ts +0 -2
- package/dist/components/NestedControlRenderer/NestedControl.js +2 -5
- package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -1
- package/dist/components/NestedControlRenderer/NestedControlRenderer.js +6 -11
- package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -1
- package/dist/components/NestedControlRenderer/interfaces.d.ts +0 -4
- package/dist/components/NestedControlRenderer/properties/FileProperty.js +1 -1
- package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -1
- package/dist/components/OptionSet/OptionSet.js +4 -5
- package/dist/components/OptionSet/OptionSet.js.map +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useControl.d.ts +0 -1
- package/dist/hooks/useControl.js +0 -1
- package/dist/hooks/useControl.js.map +1 -1
- package/dist/hooks/useInputBasedControl.js +1 -2
- package/dist/hooks/useInputBasedControl.js.map +1 -1
- package/dist/index.d.ts +299 -162
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/property.d.ts +1 -1
- package/dist/utils/BaseControls.d.ts +1 -2
- package/dist/utils/BaseControls.js +1 -5
- package/dist/utils/BaseControls.js.map +1 -1
- package/dist/utils/dataset/adapters/VirtualDatasetAdapter.d.ts +16 -12
- package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js +72 -27
- package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js.map +1 -1
- package/dist/utils/theme/components/ThemeWrapper.d.ts +1 -1
- package/dist/utils/theme/components/ThemeWrapper.js.map +1 -1
- package/dist/utils/theme/hooks/useControlTheme.js +1 -2
- package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
- package/package.json +5 -9
- package/dist/components/DatasetControl/DatasetControlModel.d.ts +0 -37
- package/dist/components/DatasetControl/DatasetControlModel.js +0 -110
- package/dist/components/DatasetControl/DatasetControlModel.js.map +0 -1
- package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.d.ts +0 -3
- package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js +0 -166
- package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js.map +0 -1
- package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.d.ts +0 -15
- package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js +0 -59
- package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js.map +0 -1
- package/dist/components/DatasetControl/Filtering/interfaces.d.ts +0 -31
- package/dist/components/DatasetControl/Filtering/styles.d.ts +0 -16
- package/dist/components/DatasetControl/Filtering/styles.js +0 -23
- package/dist/components/DatasetControl/Filtering/styles.js.map +0 -1
- package/dist/components/DatasetControl/Filtering/translations.d.ts +0 -154
- package/dist/components/DatasetControl/Filtering/translations.js +0 -43
- package/dist/components/DatasetControl/Filtering/translations.js.map +0 -1
- package/dist/components/DatasetControl/Header/Header.d.ts +0 -5
- package/dist/components/DatasetControl/Header/Header.js +0 -89
- package/dist/components/DatasetControl/Header/Header.js.map +0 -1
- package/dist/components/DatasetControl/Header/styles.d.ts +0 -22
- package/dist/components/DatasetControl/Header/styles.js +0 -29
- package/dist/components/DatasetControl/Header/styles.js.map +0 -1
- package/dist/components/DatasetControl/Pagination/Pagination.d.ts +0 -5
- package/dist/components/DatasetControl/Pagination/Pagination.js +0 -91
- package/dist/components/DatasetControl/Pagination/Pagination.js.map +0 -1
- package/dist/components/DatasetControl/Pagination/PaginationModel.d.ts +0 -10
- package/dist/components/DatasetControl/Pagination/PaginationModel.js +0 -45
- package/dist/components/DatasetControl/Pagination/PaginationModel.js.map +0 -1
- package/dist/components/DatasetControl/Pagination/styles.d.ts +0 -23
- package/dist/components/DatasetControl/Pagination/styles.js +0 -29
- package/dist/components/DatasetControl/Pagination/styles.js.map +0 -1
- package/dist/components/DatasetControl/useModel.d.ts +0 -4
- package/dist/components/DatasetControl/useModel.js +0 -9
- package/dist/components/DatasetControl/useModel.js.map +0 -1
- package/dist/components/Grid/cells/cell/Cell.js +0 -302
- package/dist/components/Grid/cells/cell/Cell.js.map +0 -1
- package/dist/components/Grid/cells/cell/content/CellContent.js.map +0 -1
- package/dist/components/Grid/cells/cell/content/styles.js.map +0 -1
- package/dist/components/Grid/cells/cell/notifications/Notifications.js.map +0 -1
- package/dist/components/Grid/cells/cell/notifications/styles.js.map +0 -1
- package/dist/components/Grid/cells/cell/styles.js +0 -78
- package/dist/components/Grid/cells/cell/styles.js.map +0 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js +0 -83
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js.map +0 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js +0 -115
- package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js.map +0 -1
- package/dist/components/Grid/column-headers/column-header/FilterCallout.js +0 -103
- package/dist/components/Grid/column-headers/column-header/FilterCallout.js.map +0 -1
- package/dist/components/Grid/column-headers/column-header/styles.d.ts +0 -84
- package/dist/components/Grid/column-headers/column-header/styles.js.map +0 -1
- package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.d.ts +0 -2
- package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js +0 -50
- package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js.map +0 -1
- package/dist/components/Grid/column-headers/record-selection-checkbox/styles.js.map +0 -1
- package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.d.ts +0 -6
- package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js +0 -15
- package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js.map +0 -1
- package/dist/components/Grid/errors/FullWidthCellRendererError/styles.d.ts +0 -6
- package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js +0 -13
- package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js.map +0 -1
- package/dist/components/Grid/grid/Grid.js +0 -64
- package/dist/components/Grid/grid/Grid.js.map +0 -1
- package/dist/components/Grid/grid/GridContext.d.ts +0 -3
- package/dist/components/Grid/grid/GridContext.js.map +0 -1
- package/dist/components/Grid/grid/GridModel.d.ts +0 -117
- package/dist/components/Grid/grid/GridModel.js +0 -787
- package/dist/components/Grid/grid/GridModel.js.map +0 -1
- package/dist/components/Grid/grid/ValueComparator.js.map +0 -1
- package/dist/components/Grid/grid/ag-grid/AgGridContext.js.map +0 -1
- package/dist/components/Grid/grid/ag-grid/AgGridModel.d.ts +0 -88
- package/dist/components/Grid/grid/ag-grid/AgGridModel.js +0 -565
- package/dist/components/Grid/grid/ag-grid/AgGridModel.js.map +0 -1
- package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.d.ts +0 -7
- package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js +0 -38
- package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js.map +0 -1
- package/dist/components/Grid/grid/ag-grid/useAgGridInstance.d.ts +0 -2
- package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js +0 -9
- package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js.map +0 -1
- package/dist/components/Grid/grid/styles.js.map +0 -1
- package/dist/components/Grid/grid/useGridInstance.d.ts +0 -2
- package/dist/components/Grid/grid/useGridInstance.js.map +0 -1
- package/dist/components/Grid/loading/full-row/FullRowLoading.d.ts +0 -3
- package/dist/components/Grid/loading/full-row/FullRowLoading.js +0 -33
- package/dist/components/Grid/loading/full-row/FullRowLoading.js.map +0 -1
- package/dist/components/Grid/loading/full-row/styles.d.ts +0 -9
- package/dist/components/Grid/loading/full-row/styles.js +0 -16
- package/dist/components/Grid/loading/full-row/styles.js.map +0 -1
- package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js +0 -13
- package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js.map +0 -1
- package/dist/components/Grid/overlays/empty-records/styles.js.map +0 -1
- package/dist/components/Grid/overlays/loading/LoadingOverlay.js.map +0 -1
- package/dist/components/GridCellRenderer/GridCellRendererModel.d.ts +0 -51
- package/dist/components/GridCellRenderer/GridCellRendererModel.js +0 -211
- package/dist/components/GridCellRenderer/GridCellRendererModel.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.d.ts +0 -9
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js +0 -53
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.d.ts +0 -20
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js +0 -29
- package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.d.ts +0 -7
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js +0 -76
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.d.ts +0 -18
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js +0 -25
- package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.d.ts +0 -3
- package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js +0 -52
- package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js.map +0 -1
- package/dist/components/GridCellRenderer/ValueRenderer/styles.d.ts +0 -1666
- package/dist/components/GridCellRenderer/ValueRenderer/styles.js +0 -31
- package/dist/components/GridCellRenderer/ValueRenderer/styles.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Email.d.ts +0 -5
- package/dist/components/GridCellRenderer/properties/Email.js +0 -15
- package/dist/components/GridCellRenderer/properties/Email.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/File.d.ts +0 -19
- package/dist/components/GridCellRenderer/properties/File.js +0 -99
- package/dist/components/GridCellRenderer/properties/File.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Image.d.ts +0 -4
- package/dist/components/GridCellRenderer/properties/Image.js +0 -15
- package/dist/components/GridCellRenderer/properties/Image.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Lookup.d.ts +0 -6
- package/dist/components/GridCellRenderer/properties/Lookup.js +0 -19
- package/dist/components/GridCellRenderer/properties/Lookup.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.d.ts +0 -5
- package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js +0 -11
- package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/MultilineText.d.ts +0 -4
- package/dist/components/GridCellRenderer/properties/MultilineText.js +0 -10
- package/dist/components/GridCellRenderer/properties/MultilineText.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/OptionSet.d.ts +0 -5
- package/dist/components/GridCellRenderer/properties/OptionSet.js +0 -11
- package/dist/components/GridCellRenderer/properties/OptionSet.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/OptionSetBase.d.ts +0 -7
- package/dist/components/GridCellRenderer/properties/OptionSetBase.js +0 -19
- package/dist/components/GridCellRenderer/properties/OptionSetBase.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Phone.d.ts +0 -9
- package/dist/components/GridCellRenderer/properties/Phone.js +0 -15
- package/dist/components/GridCellRenderer/properties/Phone.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Property.d.ts +0 -19
- package/dist/components/GridCellRenderer/properties/Property.js +0 -54
- package/dist/components/GridCellRenderer/properties/Property.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/TwoOptions.d.ts +0 -5
- package/dist/components/GridCellRenderer/properties/TwoOptions.js +0 -11
- package/dist/components/GridCellRenderer/properties/TwoOptions.js.map +0 -1
- package/dist/components/GridCellRenderer/properties/Url.d.ts +0 -5
- package/dist/components/GridCellRenderer/properties/Url.js +0 -15
- package/dist/components/GridCellRenderer/properties/Url.js.map +0 -1
- package/dist/components/GridCellRenderer/useModel.d.ts +0 -4
- package/dist/components/GridCellRenderer/useModel.js +0 -9
- package/dist/components/GridCellRenderer/useModel.js.map +0 -1
- package/dist/components/GridColumnHeader/GridColumnHeader.d.ts +0 -3
- package/dist/components/GridColumnHeader/GridColumnHeader.js +0 -134
- package/dist/components/GridColumnHeader/GridColumnHeader.js.map +0 -1
- package/dist/components/GridColumnHeader/GridColumnHeaderModel.d.ts +0 -26
- package/dist/components/GridColumnHeader/GridColumnHeaderModel.js +0 -87
- package/dist/components/GridColumnHeader/GridColumnHeaderModel.js.map +0 -1
- package/dist/components/GridColumnHeader/interfaces.d.ts +0 -45
- package/dist/components/GridColumnHeader/styles.d.ts +0 -37
- package/dist/components/GridColumnHeader/styles.js +0 -55
- package/dist/components/GridColumnHeader/styles.js.map +0 -1
- package/dist/components/GridColumnHeader/translations.d.ts +0 -26
- package/dist/components/GridColumnHeader/translations.js +0 -29
- package/dist/components/GridColumnHeader/translations.js.map +0 -1
- package/dist/components/Ribbon/Ribbon.d.ts +0 -3
- package/dist/components/Ribbon/Ribbon.js +0 -97
- package/dist/components/Ribbon/Ribbon.js.map +0 -1
- package/dist/components/Ribbon/RibbonModel.d.ts +0 -4
- package/dist/components/Ribbon/interfaces.d.ts +0 -19
- package/dist/components/Ribbon/styles.d.ts +0 -11
- package/dist/components/Ribbon/styles.js +0 -18
- package/dist/components/Ribbon/styles.js.map +0 -1
- package/dist/hooks/useEventEmitter.d.ts +0 -2
- package/dist/hooks/useEventEmitter.js +0 -18
- package/dist/hooks/useEventEmitter.js.map +0 -1
- /package/dist/components/Grid/{grid/GridContext.js → GridContext.js} +0 -0
- /package/dist/components/Grid/{overlays/empty-records/EmptyRecordsOverlay.d.ts → core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.d.ts} +0 -0
- /package/dist/components/Grid/{overlays/loading → core/components/AgGrid/components/LoadingOverlay}/LoadingOverlay.d.ts +0 -0
- /package/dist/components/Grid/{overlays/loading → core/components/AgGrid/components/LoadingOverlay}/LoadingOverlay.js +0 -0
- /package/dist/components/Grid/{cells/cell/content → core/components/Cell/CellContent}/styles.d.ts +0 -0
- /package/dist/components/Grid/{cells/cell/content → core/components/Cell/CellContent}/styles.js +0 -0
- /package/dist/components/Grid/{cells/cell/notifications → core/components/Cell/Notifications}/styles.d.ts +0 -0
- /package/dist/components/Grid/{column-headers/record-selection-checkbox → core/components/ColumnHeader/components/GlobalCheckbox}/styles.d.ts +0 -0
- /package/dist/components/Grid/{column-headers/record-selection-checkbox → core/components/ColumnHeader/components/GlobalCheckbox}/styles.js +0 -0
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { ThemeProvider, PrimaryButton, DefaultButton } from '@fluentui/react';
|
|
3
|
-
import { datasetColumnFilteringTranslations } from './translations.js';
|
|
4
|
-
import React, { useState, useCallback, useMemo, useEffect } from 'react';
|
|
5
|
-
import { DatasetColumnFilteringModel } from './DatasetColumnFilteringModel.js';
|
|
6
|
-
import { useRerender } from '@talxis/react-components';
|
|
7
|
-
import { getDatasetColumnFilteringStyles } from './styles.js';
|
|
8
|
-
import { useDebouncedCallback } from 'use-debounce';
|
|
9
|
-
import { Type } from '@talxis/client-libraries';
|
|
10
|
-
import { useControl } from '../../../hooks/useControl.js';
|
|
11
|
-
import { OptionSet } from '../../OptionSet/OptionSet.js';
|
|
12
|
-
import { NestedControlRenderer } from '../../NestedControlRenderer/NestedControlRenderer.js';
|
|
13
|
-
|
|
14
|
-
const DatasetColumnFiltering = (props) => {
|
|
15
|
-
const onOverrideComponentProps = props.onOverrideComponentProps ?? ((props) => props);
|
|
16
|
-
const { labels, theme, onNotifyOutputChanged } = useControl('DatasetFiltering', props, datasetColumnFilteringTranslations);
|
|
17
|
-
const context = props.context;
|
|
18
|
-
const filtering = props.parameters.Filtering;
|
|
19
|
-
const columnFilter = props.parameters.Filtering.getColumnFilter(props.parameters.ColumnName.raw);
|
|
20
|
-
//automatically create a condition if it's not present
|
|
21
|
-
if (columnFilter.getConditions().length === 0) {
|
|
22
|
-
columnFilter.addCondition();
|
|
23
|
-
}
|
|
24
|
-
//this is the first condition, we assume that the control is used for a single condition
|
|
25
|
-
const condition = columnFilter.getConditions()[0];
|
|
26
|
-
const rerender = useRerender();
|
|
27
|
-
const [shouldRemountValueControl, setShouldRemountValueControl] = useState(false);
|
|
28
|
-
const onOperatorChanged = useCallback(() => {
|
|
29
|
-
setShouldRemountValueControl(true);
|
|
30
|
-
}, []);
|
|
31
|
-
const isClearButtonDisabled = () => {
|
|
32
|
-
if (condition.isValueLoading()) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
return model.getConditionValue().every(value => {
|
|
36
|
-
return value == null;
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
const onSave = () => {
|
|
40
|
-
condition.setIsValueRequired(true);
|
|
41
|
-
const result = filtering.getFilterExpression(Type.And.Value);
|
|
42
|
-
if (!result) {
|
|
43
|
-
rerender();
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
onNotifyOutputChanged(result);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const onClear = () => {
|
|
50
|
-
condition.setValue(null);
|
|
51
|
-
setShouldRemountValueControl(true);
|
|
52
|
-
};
|
|
53
|
-
const debouncedSetConditionControlValue = useDebouncedCallback((value, index) => {
|
|
54
|
-
model.setConditionValue(value, index);
|
|
55
|
-
});
|
|
56
|
-
const model = useMemo(() => {
|
|
57
|
-
condition.addEventListener('onOperatorChanged', onOperatorChanged);
|
|
58
|
-
condition.addEventListener('onValueChanged', rerender);
|
|
59
|
-
return new DatasetColumnFilteringModel(condition, labels);
|
|
60
|
-
}, []);
|
|
61
|
-
const conditionValue = model.getConditionValue();
|
|
62
|
-
const validationResult = condition.getValidationResult();
|
|
63
|
-
const styles = useMemo(() => getDatasetColumnFilteringStyles(), []);
|
|
64
|
-
const componentProps = onOverrideComponentProps({
|
|
65
|
-
onRender: (props, defaultRender) => defaultRender(props),
|
|
66
|
-
});
|
|
67
|
-
useEffect(() => {
|
|
68
|
-
if (shouldRemountValueControl) {
|
|
69
|
-
setShouldRemountValueControl(false);
|
|
70
|
-
}
|
|
71
|
-
}, [shouldRemountValueControl]);
|
|
72
|
-
return componentProps.onRender({
|
|
73
|
-
container: {
|
|
74
|
-
theme: theme,
|
|
75
|
-
className: styles.datasetColumnFilteringRoot
|
|
76
|
-
},
|
|
77
|
-
valueControlsContainer: {
|
|
78
|
-
className: styles.valueControlsContainer
|
|
79
|
-
},
|
|
80
|
-
onRenderConditionOperatorControl: (props, defaultRender) => defaultRender(props),
|
|
81
|
-
onRenderConditionValueControl: (props, defaultRender) => defaultRender(props),
|
|
82
|
-
onRenderButtons: (props, defaultRender) => defaultRender(props),
|
|
83
|
-
}, (props) => {
|
|
84
|
-
return jsxs(ThemeProvider, { ...props.container, children: [props.onRenderConditionOperatorControl({
|
|
85
|
-
context: context,
|
|
86
|
-
//@ts-ignore - typings
|
|
87
|
-
onNotifyOutputChanged: (outputs) => condition.setOperator(outputs.value),
|
|
88
|
-
parameters: {
|
|
89
|
-
value: {
|
|
90
|
-
raw: condition.getOperator(),
|
|
91
|
-
//@ts-ignore - typings
|
|
92
|
-
attributes: {
|
|
93
|
-
Options: model.getOperatorOptionSet()
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
}, (props) => jsx(OptionSet, { ...props })), jsx("div", { ...props.valueControlsContainer, children: !shouldRemountValueControl &&
|
|
98
|
-
jsx(Fragment, { children: conditionValue.map((value, index) => {
|
|
99
|
-
return jsx(React.Fragment, { children: props.onRenderConditionValueControl({
|
|
100
|
-
context: context,
|
|
101
|
-
onOverrideComponentProps: (props) => {
|
|
102
|
-
return {
|
|
103
|
-
...props,
|
|
104
|
-
onOverrideIsLoading: () => condition.isValueLoading()
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
parameters: {
|
|
108
|
-
ControlName: model.getControlName(),
|
|
109
|
-
LoadingType: 'shimmer',
|
|
110
|
-
Bindings: {
|
|
111
|
-
value: {
|
|
112
|
-
isStatic: false,
|
|
113
|
-
value: value,
|
|
114
|
-
type: condition.getDataType() ?? 'SingleLine.Text',
|
|
115
|
-
error: validationResult[index].error,
|
|
116
|
-
errorMessage: validationResult[index].errorMessage,
|
|
117
|
-
metadata: {
|
|
118
|
-
onOverrideMetadata: () => {
|
|
119
|
-
return {
|
|
120
|
-
...condition.getMetadata()
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
onNotifyOutputChanged: (value) => debouncedSetConditionControlValue(value, index)
|
|
125
|
-
},
|
|
126
|
-
AutoFocus: {
|
|
127
|
-
isStatic: true,
|
|
128
|
-
value: index === 0 && conditionValue.length === 1,
|
|
129
|
-
type: 'TwoOptions'
|
|
130
|
-
},
|
|
131
|
-
ShowErrorMessage: {
|
|
132
|
-
isStatic: true,
|
|
133
|
-
value: true,
|
|
134
|
-
type: 'TwoOptions'
|
|
135
|
-
},
|
|
136
|
-
...condition.getBindings()
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}, (props) => {
|
|
140
|
-
if (!model.getControlName()) {
|
|
141
|
-
return jsx(Fragment, {});
|
|
142
|
-
}
|
|
143
|
-
return jsx(NestedControlRenderer, { ...props });
|
|
144
|
-
}) }, index);
|
|
145
|
-
}) }) }), props.onRenderButtons({
|
|
146
|
-
container: {
|
|
147
|
-
className: styles.buttons
|
|
148
|
-
},
|
|
149
|
-
onRenderApplyButton: (props, defaultRender) => defaultRender(props),
|
|
150
|
-
onRenderClearButton: (props, defaultRender) => defaultRender(props)
|
|
151
|
-
}, (props) => {
|
|
152
|
-
return jsxs("div", { ...props.container, children: [props.onRenderApplyButton({
|
|
153
|
-
text: 'Apply',
|
|
154
|
-
disabled: condition.isValueLoading(),
|
|
155
|
-
onClick: onSave,
|
|
156
|
-
}, (props) => jsx(PrimaryButton, { ...props })), props.onRenderClearButton({
|
|
157
|
-
text: 'Clear',
|
|
158
|
-
disabled: isClearButtonDisabled(),
|
|
159
|
-
onClick: onClear
|
|
160
|
-
}, (props) => jsx(DefaultButton, { ...props }))] });
|
|
161
|
-
})] });
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export { DatasetColumnFiltering };
|
|
166
|
-
//# sourceMappingURL=DatasetColumnFiltering.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetColumnFiltering.js","sources":["../../../../src/components/DatasetControl/Filtering/DatasetColumnFiltering.tsx"],"sourcesContent":["import { DefaultButton, DirectionalHint, PrimaryButton, ThemeProvider } from \"@fluentui/react\";\nimport { useControl } from \"../../../hooks\"\nimport { OptionSet } from \"../../OptionSet\";\nimport { IDatasetColumnFiltering } from \"./interfaces\";\nimport { datasetColumnFilteringTranslations } from \"./translations\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { DatasetColumnFilteringModel } from \"./DatasetColumnFilteringModel\";\nimport { useRerender } from \"@talxis/react-components\";\nimport { NestedControlRenderer } from \"../../NestedControlRenderer\";\nimport React from \"react\";\nimport { getDatasetColumnFilteringStyles } from \"./styles\";\nimport { useDebouncedCallback } from \"use-debounce\";\nimport { Type as FilterType } from \"@talxis/client-libraries\";\n\nexport const DatasetColumnFiltering = (props: IDatasetColumnFiltering) => {\n const onOverrideComponentProps = props.onOverrideComponentProps ?? ((props) => props);\n const { labels, theme, onNotifyOutputChanged } = useControl('DatasetFiltering', props, datasetColumnFilteringTranslations);\n const context = props.context;\n const filtering = props.parameters.Filtering;\n const columnFilter = props.parameters.Filtering.getColumnFilter(props.parameters.ColumnName.raw!);\n //automatically create a condition if it's not present\n if (columnFilter.getConditions().length === 0) {\n columnFilter.addCondition();\n }\n //this is the first condition, we assume that the control is used for a single condition\n const condition = columnFilter.getConditions()[0];\n const rerender = useRerender();\n const [shouldRemountValueControl, setShouldRemountValueControl] = useState(false);\n\n const onOperatorChanged = useCallback(() => {\n setShouldRemountValueControl(true);\n }, []);\n\n const isClearButtonDisabled = () => {\n if (condition.isValueLoading()) {\n return true;\n }\n return model.getConditionValue().every(value => {\n return value == null;\n });\n }\n const onSave = () => {\n condition.setIsValueRequired(true);\n const result = filtering.getFilterExpression(FilterType.And.Value);\n if (!result) {\n rerender();\n }\n else {\n onNotifyOutputChanged(result)\n }\n }\n\n const onClear = () => {\n condition.setValue(null);\n setShouldRemountValueControl(true);\n }\n\n const debouncedSetConditionControlValue = useDebouncedCallback((value, index) => {\n model.setConditionValue(value, index);\n })\n\n const model = useMemo(() => {\n condition.addEventListener('onOperatorChanged', onOperatorChanged);\n condition.addEventListener('onValueChanged', rerender);\n return new DatasetColumnFilteringModel(condition, labels)\n }, []);\n\n const conditionValue = model.getConditionValue();\n const validationResult = condition.getValidationResult();\n const styles = useMemo(() => getDatasetColumnFilteringStyles(), []);\n\n const componentProps = onOverrideComponentProps({\n onRender: (props, defaultRender) => defaultRender(props),\n })\n\n useEffect(() => {\n if (shouldRemountValueControl) {\n setShouldRemountValueControl(false);\n }\n }, [shouldRemountValueControl])\n\n return componentProps.onRender({\n container: {\n theme: theme,\n className: styles.datasetColumnFilteringRoot\n },\n valueControlsContainer: {\n className: styles.valueControlsContainer\n },\n onRenderConditionOperatorControl: (props, defaultRender) => defaultRender(props),\n onRenderConditionValueControl: (props, defaultRender) => defaultRender(props),\n onRenderButtons: (props, defaultRender) => defaultRender(props),\n\n }, (props) => {\n return <ThemeProvider {...props.container}>\n {props.onRenderConditionOperatorControl({\n context: context,\n //@ts-ignore - typings\n onNotifyOutputChanged: (outputs) => condition.setOperator(outputs.value),\n parameters: {\n value: {\n raw: condition.getOperator(),\n //@ts-ignore - typings\n attributes: {\n Options: model.getOperatorOptionSet()\n }\n }\n },\n }, (props) => <OptionSet {...props} />)}\n <div {...props.valueControlsContainer}>\n {!shouldRemountValueControl &&\n <>\n {\n conditionValue.map((value, index) => {\n return <React.Fragment key={index}>\n {props.onRenderConditionValueControl({\n context: context,\n onOverrideComponentProps: (props) => {\n return {\n ...props,\n onOverrideIsLoading: () => condition.isValueLoading()\n }\n },\n parameters: {\n ControlName: model.getControlName()!,\n LoadingType: 'shimmer',\n Bindings: {\n value: {\n isStatic: false,\n value: value,\n type: condition.getDataType() ?? 'SingleLine.Text',\n error: validationResult[index].error,\n errorMessage: validationResult[index].errorMessage,\n metadata: {\n onOverrideMetadata: () => {\n return {\n ...condition.getMetadata()\n }\n }\n },\n onNotifyOutputChanged: (value) => debouncedSetConditionControlValue(value, index)\n },\n AutoFocus: {\n isStatic: true,\n value: index === 0 && conditionValue.length === 1,\n type: 'TwoOptions'\n },\n ShowErrorMessage: {\n isStatic: true,\n value: true,\n type: 'TwoOptions'\n },\n ...condition.getBindings()\n }\n }\n }, (props) => {\n if (!model.getControlName()) {\n return <></>\n }\n return <NestedControlRenderer {...props} />\n })}\n </React.Fragment>\n })\n }\n </>\n }\n </div>\n {props.onRenderButtons({\n container: {\n className: styles.buttons\n },\n onRenderApplyButton: (props, defaultRender) => defaultRender(props),\n onRenderClearButton: (props, defaultRender) => defaultRender(props)\n }, (props) => {\n return <div {...props.container}>\n {props.onRenderApplyButton({\n text: 'Apply',\n disabled: condition.isValueLoading(),\n onClick: onSave,\n }, (props) => <PrimaryButton {...props} />)}\n {props.onRenderClearButton({\n text: 'Clear',\n disabled: isClearButtonDisabled(),\n onClick: onClear\n }, (props) => <DefaultButton\n {...props} />)}\n </div>\n })}\n </ThemeProvider>\n })\n}"],"names":["FilterType","_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;;;AAca,MAAA,sBAAsB,GAAG,CAAC,KAA8B,KAAI;AACrE,IAAA,MAAM,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AACtF,IAAA,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC,kBAAkB,EAAE,KAAK,EAAE,kCAAkC,CAAC,CAAC;AAC3H,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;AAC9B,IAAA,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC;AAC7C,IAAA,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,GAAI,CAAC,CAAC;;IAElG,IAAI,YAAY,CAAC,aAAa,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3C,YAAY,CAAC,YAAY,EAAE,CAAC;AAC/B,KAAA;;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;AAClD,IAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAElF,IAAA,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAK;QACvC,4BAA4B,CAAC,IAAI,CAAC,CAAC;KACtC,EAAE,EAAE,CAAC,CAAC;I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AAE,OAAO;AACb,gCAAA,QAAQ,EAAE,SAAS,CAAC,cAAc,EAAE;AACpC,gCAAA,OAAO,EAAE,MAAM;AAClB,6BAAA,EAAE,CAAC,KAAK,KAAKC,GAAC,CAAA,aAAa,EAAK,EAAA,GAAA,KAAK,GAAI,CAAC,EAC1C,KAAK,CAAC,mBAAmB,CAAC;AACvB,gCAAA,IAAI,EAAE,OAAO;gCACb,QAAQ,EAAE,qBAAqB,EAAE;AACjC,gCAAA,OAAO,EAAE,OAAO;AACnB,6BAAA,EAAE,CAAC,KAAK,KAAKA,GAAA,CAAC,aAAa,EAAA,EAAA,GACpB,KAAK,EAAA,CAAI,CAAC,CAAA,EAAA,CAChB,CAAA;iBACT,CAAC,IACU,CAAA;AACpB,KAAC,CAAC,CAAA;AACN;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
import { ITranslation } from "../../../hooks";
|
|
3
|
-
import { datasetColumnFilteringTranslations } from "./translations";
|
|
4
|
-
import { Condition } from '@talxis/client-libraries';
|
|
5
|
-
type Labels = Required<ITranslation<typeof datasetColumnFilteringTranslations>>;
|
|
6
|
-
export declare class DatasetColumnFilteringModel {
|
|
7
|
-
private _condition;
|
|
8
|
-
private _labels;
|
|
9
|
-
constructor(condition: Condition, labels: Labels);
|
|
10
|
-
getOperatorOptionSet(): ComponentFramework.PropertyHelper.OptionMetadata[];
|
|
11
|
-
setConditionValue(value: any, index: number): void;
|
|
12
|
-
getConditionValue(): any[];
|
|
13
|
-
getControlName(): "Decimal" | "TextField" | "OptionSet" | "MultiSelectOptionSet" | "DateTime" | "Duration" | "Lookup" | "TwoOptions" | null;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Operators } from '@talxis/client-libraries';
|
|
2
|
-
import { BaseControls } from '../../../utils/BaseControls.js';
|
|
3
|
-
|
|
4
|
-
class DatasetColumnFilteringModel {
|
|
5
|
-
constructor(condition, labels) {
|
|
6
|
-
this._condition = condition;
|
|
7
|
-
this._labels = labels;
|
|
8
|
-
}
|
|
9
|
-
getOperatorOptionSet() {
|
|
10
|
-
const operators = this._condition.getColumn().metadata?.SupportedFilterConditionOperators ?? [];
|
|
11
|
-
return operators.map(operator => {
|
|
12
|
-
return {
|
|
13
|
-
Value: operator,
|
|
14
|
-
//@ts-ignore - typings
|
|
15
|
-
Label: this._labels[`operator-${operator}`](),
|
|
16
|
-
Color: ''
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
setConditionValue(value, index) {
|
|
21
|
-
const operator = this._condition.getOperator();
|
|
22
|
-
if (operator !== Operators.Between.Value && operator !== Operators.NotBetween.Value) {
|
|
23
|
-
this._condition.setValue(value);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
const values = [this._condition.getControlValue()?.[0] ?? null, this._condition.getControlValue()?.[1] ?? null];
|
|
27
|
-
if (index === 0) {
|
|
28
|
-
values[0] = value;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
values[1] = value;
|
|
32
|
-
}
|
|
33
|
-
this._condition.setValue(values);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
getConditionValue() {
|
|
37
|
-
const operator = this._condition.getOperator();
|
|
38
|
-
if (operator !== Operators.Between.Value && operator !== Operators.NotBetween.Value) {
|
|
39
|
-
return [this._condition.getControlValue()];
|
|
40
|
-
}
|
|
41
|
-
const value = this._condition.getControlValue();
|
|
42
|
-
if (Array.isArray(value)) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return [null, null];
|
|
46
|
-
}
|
|
47
|
-
getControlName() {
|
|
48
|
-
const dataType = this._condition.getDataType();
|
|
49
|
-
if (!dataType) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return BaseControls.GetControlNameForDataType(dataType);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { DatasetColumnFilteringModel };
|
|
59
|
-
//# sourceMappingURL=DatasetColumnFilteringModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatasetColumnFilteringModel.js","sources":["../../../../src/components/DatasetControl/Filtering/DatasetColumnFilteringModel.ts"],"sourcesContent":["import { Operators } from \"@talxis/client-libraries\";\nimport { ITranslation } from \"../../../hooks\";\nimport { datasetColumnFilteringTranslations } from \"./translations\";\nimport { BaseControls } from \"../../../utils\";\nimport { Condition } from '@talxis/client-libraries';\n\ntype Labels = Required<ITranslation<typeof datasetColumnFilteringTranslations>>;\n\nexport class DatasetColumnFilteringModel {\n private _condition: Condition;\n private _labels: Labels;\n\n constructor(condition: Condition, labels: Labels) {\n this._condition = condition;\n this._labels = labels;\n }\n\n public getOperatorOptionSet(): ComponentFramework.PropertyHelper.OptionMetadata[] {\n const operators = this._condition.getColumn().metadata?.SupportedFilterConditionOperators ?? []\n return operators.map(operator => {\n return {\n Value: operator,\n //@ts-ignore - typings\n Label: this._labels[`operator-${operator}`](),\n Color: ''\n }\n })\n }\n\n public setConditionValue(value: any, index: number) {\n const operator = this._condition.getOperator();\n if (operator !== Operators.Between.Value && operator !== Operators.NotBetween.Value) {\n this._condition.setValue(value);\n }\n else {\n const values = [this._condition.getControlValue()?.[0] ?? null, this._condition.getControlValue()?.[1] ?? null];\n if (index === 0) {\n values[0] = value;\n }\n else {\n values[1] = value;\n }\n this._condition.setValue(values);\n }\n }\n\n public getConditionValue(): any[] {\n const operator = this._condition.getOperator();\n if (operator !== Operators.Between.Value && operator !== Operators.NotBetween.Value) {\n return [this._condition.getControlValue()];\n }\n const value = this._condition.getControlValue();\n if (Array.isArray(value)) {\n return value;\n }\n return [null, null];\n }\n\n public getControlName() {\n const dataType = this._condition.getDataType();\n if (!dataType) {\n return null;\n }\n else {\n return BaseControls.GetControlNameForDataType(dataType);\n }\n }\n}"],"names":[],"mappings":";;;MA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AK,CAAC;AACrB,aAAA;AACD,YAAA,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACpC,SAAA;KACJ;IAEM,iBAAiB,GAAA;QACpB,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;AAC/C,QAAA,IAAI,QAAQ,KAAK,SAAS,CAAC,OAAO,CAAC,KAAK,IAAI,QAAQ,KAAK,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE;YACjF,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;AAC9C,SAAA;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;AAChD,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACtB,YAAA,OAAO,KAAK,CAAC;AAChB,SAAA;AACD,QAAA,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACvB;IAEM,cAAc,GAAA;QACjB,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;QAC/C,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;AACI,aAAA;AACD,YAAA,OAAO,YAAY,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;AAC3D,SAAA;KACJ;AACJ;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
-
import { ThemeProviderProps } from "@fluentui/react";
|
|
3
|
-
import { IControl, IParameters, IStringProperty, ITranslations } from "../../../interfaces";
|
|
4
|
-
import { IOptionSet } from "../../OptionSet";
|
|
5
|
-
import { datasetColumnFilteringTranslations } from "./translations";
|
|
6
|
-
import { INestedControlRenderer } from "../../NestedControlRenderer/interfaces";
|
|
7
|
-
import { IButtonProps as IFluentButtonProps } from "@fluentui/react";
|
|
8
|
-
import React from "react";
|
|
9
|
-
import { Filtering } from "@talxis/client-libraries";
|
|
10
|
-
export interface IDatasetColumnFiltering extends IControl<IDatasetColumnFilteringParameters, ComponentFramework.PropertyHelper.DataSetApi.FilterExpression, Partial<ITranslations<typeof datasetColumnFilteringTranslations>>, IDatasetColumnFilteringComponentProps> {
|
|
11
|
-
}
|
|
12
|
-
export interface IDatasetColumnFilteringParameters extends IParameters {
|
|
13
|
-
ColumnName: IStringProperty;
|
|
14
|
-
Filtering: Filtering;
|
|
15
|
-
}
|
|
16
|
-
interface IDatasetColumnFilteringComponentProps {
|
|
17
|
-
onRender: (props: IComponentProps, defaultRender: (props: IComponentProps) => React.ReactElement) => React.ReactElement;
|
|
18
|
-
}
|
|
19
|
-
interface IComponentProps {
|
|
20
|
-
container: ThemeProviderProps;
|
|
21
|
-
valueControlsContainer: React.HTMLAttributes<HTMLDivElement>;
|
|
22
|
-
onRenderConditionOperatorControl: (props: IOptionSet, defaultRender: (props: IOptionSet) => React.ReactElement) => React.ReactElement;
|
|
23
|
-
onRenderConditionValueControl: (props: INestedControlRenderer, defaultRender: (props: INestedControlRenderer) => React.ReactElement) => React.ReactElement;
|
|
24
|
-
onRenderButtons: (props: IButtonsProps, defaultRender: (props: IButtonsProps) => React.ReactElement) => React.ReactElement;
|
|
25
|
-
}
|
|
26
|
-
interface IButtonsProps {
|
|
27
|
-
container: React.HTMLAttributes<HTMLDivElement>;
|
|
28
|
-
onRenderApplyButton: (props: IFluentButtonProps, defaultRender: (props: IFluentButtonProps) => React.ReactElement) => React.ReactElement;
|
|
29
|
-
onRenderClearButton: (props: IFluentButtonProps, defaultRender: (props: IFluentButtonProps) => React.ReactElement) => React.ReactElement;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const getDatasetColumnFilteringStyles: () => import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
-
datasetColumnFilteringRoot: {
|
|
3
|
-
display: string;
|
|
4
|
-
flexDirection: string;
|
|
5
|
-
gap: number;
|
|
6
|
-
};
|
|
7
|
-
valueControlsContainer: {
|
|
8
|
-
display: string;
|
|
9
|
-
flexDirection: string;
|
|
10
|
-
gap: number;
|
|
11
|
-
};
|
|
12
|
-
buttons: {
|
|
13
|
-
display: string;
|
|
14
|
-
gap: number;
|
|
15
|
-
};
|
|
16
|
-
}>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { mergeStyleSets } from '@fluentui/react';
|
|
2
|
-
|
|
3
|
-
const getDatasetColumnFilteringStyles = () => {
|
|
4
|
-
return mergeStyleSets({
|
|
5
|
-
datasetColumnFilteringRoot: {
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexDirection: 'column',
|
|
8
|
-
gap: 10
|
|
9
|
-
},
|
|
10
|
-
valueControlsContainer: {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
flexDirection: 'column',
|
|
13
|
-
gap: 5
|
|
14
|
-
},
|
|
15
|
-
buttons: {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
gap: 5
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { getDatasetColumnFilteringStyles };
|
|
23
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../src/components/DatasetControl/Filtering/styles.ts"],"sourcesContent":["import { mergeStyleSets } from \"@fluentui/react\"\n\nexport const getDatasetColumnFilteringStyles = () => {\n return mergeStyleSets({\n datasetColumnFilteringRoot: {\n display: 'flex',\n flexDirection: 'column', \n gap: 10\n },\n valueControlsContainer: {\n display: 'flex',\n flexDirection: 'column',\n gap: 5\n },\n buttons: {\n display: 'flex',\n gap: 5\n }\n })\n}"],"names":[],"mappings":";;AAEO,MAAM,+BAA+B,GAAG,MAAK;AAChD,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,0BAA0B,EAAE;AACxB,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,GAAG,EAAE,EAAE;AACV,SAAA;AACD,QAAA,sBAAsB,EAAE;AACpB,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,GAAG,EAAE,CAAC;AACT,SAAA;AACD,QAAA,OAAO,EAAE;AACL,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,GAAG,EAAE,CAAC;AACT,SAAA;AACJ,KAAA,CAAC,CAAA;AACN;;;;"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
export declare const datasetColumnFilteringTranslations: {
|
|
2
|
-
"operator-6": {
|
|
3
|
-
1029: string;
|
|
4
|
-
1033: string;
|
|
5
|
-
};
|
|
6
|
-
"operator-7": {
|
|
7
|
-
1029: string;
|
|
8
|
-
1033: string;
|
|
9
|
-
};
|
|
10
|
-
"operator-0": {
|
|
11
|
-
1029: string;
|
|
12
|
-
1033: string;
|
|
13
|
-
};
|
|
14
|
-
"operator-1": {
|
|
15
|
-
1029: string;
|
|
16
|
-
1033: string;
|
|
17
|
-
};
|
|
18
|
-
"operator-13": {
|
|
19
|
-
1029: string;
|
|
20
|
-
1033: string;
|
|
21
|
-
};
|
|
22
|
-
"operator-12": {
|
|
23
|
-
1029: string;
|
|
24
|
-
1033: string;
|
|
25
|
-
};
|
|
26
|
-
"operator-14": {
|
|
27
|
-
1029: string;
|
|
28
|
-
1033: string;
|
|
29
|
-
};
|
|
30
|
-
"operator-15": {
|
|
31
|
-
1029: string;
|
|
32
|
-
1033: string;
|
|
33
|
-
};
|
|
34
|
-
"operator-16": {
|
|
35
|
-
1029: string;
|
|
36
|
-
1033: string;
|
|
37
|
-
};
|
|
38
|
-
"operator-17": {
|
|
39
|
-
1029: string;
|
|
40
|
-
1033: string;
|
|
41
|
-
};
|
|
42
|
-
"operator-18": {
|
|
43
|
-
1029: string;
|
|
44
|
-
1033: string;
|
|
45
|
-
};
|
|
46
|
-
"operator-19": {
|
|
47
|
-
1029: string;
|
|
48
|
-
1033: string;
|
|
49
|
-
};
|
|
50
|
-
"operator-20": {
|
|
51
|
-
1029: string;
|
|
52
|
-
1033: string;
|
|
53
|
-
};
|
|
54
|
-
"operator-22": {
|
|
55
|
-
1029: string;
|
|
56
|
-
1033: string;
|
|
57
|
-
};
|
|
58
|
-
"operator-23": {
|
|
59
|
-
1029: string;
|
|
60
|
-
1033: string;
|
|
61
|
-
};
|
|
62
|
-
"operator-25": {
|
|
63
|
-
1029: string;
|
|
64
|
-
1033: string;
|
|
65
|
-
};
|
|
66
|
-
"operator-26": {
|
|
67
|
-
1029: string;
|
|
68
|
-
1033: string;
|
|
69
|
-
};
|
|
70
|
-
"operator-27": {
|
|
71
|
-
1029: string;
|
|
72
|
-
1033: string;
|
|
73
|
-
};
|
|
74
|
-
"operator-28": {
|
|
75
|
-
1029: string;
|
|
76
|
-
1033: string;
|
|
77
|
-
};
|
|
78
|
-
"operator-29": {
|
|
79
|
-
1029: string;
|
|
80
|
-
1033: string;
|
|
81
|
-
};
|
|
82
|
-
"operator-33": {
|
|
83
|
-
1029: string;
|
|
84
|
-
1033: string;
|
|
85
|
-
};
|
|
86
|
-
"operator-34": {
|
|
87
|
-
1029: string;
|
|
88
|
-
1033: string;
|
|
89
|
-
};
|
|
90
|
-
"operator-37": {
|
|
91
|
-
1029: string;
|
|
92
|
-
1033: string;
|
|
93
|
-
};
|
|
94
|
-
"operator-38": {
|
|
95
|
-
1029: string;
|
|
96
|
-
1033: string;
|
|
97
|
-
};
|
|
98
|
-
"operator-2": {
|
|
99
|
-
1029: string;
|
|
100
|
-
1033: string;
|
|
101
|
-
};
|
|
102
|
-
"operator-4": {
|
|
103
|
-
1029: string;
|
|
104
|
-
1033: string;
|
|
105
|
-
};
|
|
106
|
-
"operator-5": {
|
|
107
|
-
1029: string;
|
|
108
|
-
1033: string;
|
|
109
|
-
};
|
|
110
|
-
"operator-3": {
|
|
111
|
-
1029: string;
|
|
112
|
-
1033: string;
|
|
113
|
-
};
|
|
114
|
-
"operator-87": {
|
|
115
|
-
1029: string;
|
|
116
|
-
1033: string;
|
|
117
|
-
};
|
|
118
|
-
"operator-88": {
|
|
119
|
-
1029: string;
|
|
120
|
-
1033: string;
|
|
121
|
-
};
|
|
122
|
-
"operator-54": {
|
|
123
|
-
1029: string;
|
|
124
|
-
1033: string;
|
|
125
|
-
};
|
|
126
|
-
"operator-55": {
|
|
127
|
-
1029: string;
|
|
128
|
-
1033: string;
|
|
129
|
-
};
|
|
130
|
-
"operator-56": {
|
|
131
|
-
1029: string;
|
|
132
|
-
1033: string;
|
|
133
|
-
};
|
|
134
|
-
"operator-57": {
|
|
135
|
-
1029: string;
|
|
136
|
-
1033: string;
|
|
137
|
-
};
|
|
138
|
-
"operator-8": {
|
|
139
|
-
1029: string;
|
|
140
|
-
1033: string;
|
|
141
|
-
};
|
|
142
|
-
"operator-9": {
|
|
143
|
-
1029: string;
|
|
144
|
-
1033: string;
|
|
145
|
-
};
|
|
146
|
-
"operator-10": {
|
|
147
|
-
1029: string;
|
|
148
|
-
1033: string;
|
|
149
|
-
};
|
|
150
|
-
"operator-11": {
|
|
151
|
-
1029: string;
|
|
152
|
-
1033: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const datasetColumnFilteringTranslations = {
|
|
2
|
-
"operator-6": { 1029: "Obsahuje", 1033: "Contains" },
|
|
3
|
-
"operator-7": { 1029: "Neobsahuje", 1033: "Does not contain" },
|
|
4
|
-
"operator-0": { 1029: "Je rovno", 1033: "Equals" },
|
|
5
|
-
"operator-1": { 1029: "Není rovno", 1033: "Does not equal" },
|
|
6
|
-
"operator-13": { 1029: "Obsahuje data", 1033: "Contains data" },
|
|
7
|
-
"operator-12": { 1029: "Neobsahuje data", 1033: "Does not contain data" },
|
|
8
|
-
"operator-14": { 1029: "Včera", 1033: "Yesterday" },
|
|
9
|
-
"operator-15": { 1029: "Dneska", 1033: "Today" },
|
|
10
|
-
"operator-16": { 1029: "Zítra", 1033: "Tomorrow" },
|
|
11
|
-
"operator-17": { 1029: "Posledních 7 dnů", 1033: "Last 7 days" },
|
|
12
|
-
"operator-18": { 1029: "Příštích 7 dnů", 1033: "Next 7 days" },
|
|
13
|
-
"operator-19": { 1029: "Minulý týden", 1033: "Last week" },
|
|
14
|
-
"operator-20": { 1029: "Tento týden", 1033: "This week" },
|
|
15
|
-
"operator-22": { 1029: "Minulý měsíc", 1033: "Last month" },
|
|
16
|
-
"operator-23": { 1029: "Tento měsíc", 1033: "This month" },
|
|
17
|
-
"operator-25": { 1029: "V den", 1033: "On" },
|
|
18
|
-
"operator-26": { 1029: "Před dnem (včetně)", 1033: "On or before" },
|
|
19
|
-
"operator-27": { 1029: "Po dni (včetně)", 1033: "On or after" },
|
|
20
|
-
"operator-28": { 1029: "Poslední rok", 1033: "Last year" },
|
|
21
|
-
"operator-29": { 1029: "Tento rok", 1033: "This year" },
|
|
22
|
-
"operator-33": { 1029: "Posledních X dnů", 1033: "Last X days" },
|
|
23
|
-
"operator-34": { 1029: "Příštích X dnů", 1033: "Next X days" },
|
|
24
|
-
"operator-37": { 1029: "Posledních X měsíců", 1033: "Last X months" },
|
|
25
|
-
"operator-38": { 1029: "Příštích X měsíců", 1033: "Next X months" },
|
|
26
|
-
"operator-2": { 1029: "Větší než", 1033: "Greater than" },
|
|
27
|
-
"operator-4": { 1029: "Větší než nebo rovno", 1033: "Greater than or equal to" },
|
|
28
|
-
"operator-5": { 1029: "Menší než nebo rovno", 1033: "Less than or equal to" },
|
|
29
|
-
"operator-3": { 1029: "Menší než", 1033: "Less than" },
|
|
30
|
-
"operator-87": { 1029: "Obsahuje hodnoty", 1033: "Contain values" },
|
|
31
|
-
"operator-88": { 1029: "Neobsahuje hodnoty", 1033: "Does not contain values" },
|
|
32
|
-
"operator-54": { 1029: "Začíná na", 1033: "Begins with" },
|
|
33
|
-
"operator-55": { 1029: "Nezačíná na", 1033: "Does not begin with" },
|
|
34
|
-
"operator-56": { 1029: "Končí na", 1033: "Ends with" },
|
|
35
|
-
"operator-57": { 1029: "Nekončí na", 1033: "Does not end with" },
|
|
36
|
-
"operator-8": { 1029: "Mezi", 1033: "In" },
|
|
37
|
-
"operator-9": { 1029: "Není mezi", 1033: "Not in" },
|
|
38
|
-
"operator-10": { 1029: "Mezi", 1033: "Between" },
|
|
39
|
-
"operator-11": { 1029: "Není mezi", 1033: "Not between" } // not-between
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { datasetColumnFilteringTranslations };
|
|
43
|
-
//# sourceMappingURL=translations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","sources":["../../../../src/components/DatasetControl/Filtering/translations.ts"],"sourcesContent":["export const datasetColumnFilteringTranslations = {\n \"operator-6\": { 1029: \"Obsahuje\", 1033: \"Contains\" }, // like\n \"operator-7\": { 1029: \"Neobsahuje\", 1033: \"Does not contain\" }, // not-like\n \"operator-0\": { 1029: \"Je rovno\", 1033: \"Equals\" }, // eq\n \"operator-1\": { 1029: \"Není rovno\", 1033: \"Does not equal\" }, // ne\n \"operator-13\": { 1029: \"Obsahuje data\", 1033: \"Contains data\" }, // not-null\n \"operator-12\": { 1029: \"Neobsahuje data\", 1033: \"Does not contain data\" }, // null\n \"operator-14\": { 1029: \"Včera\", 1033: \"Yesterday\" }, // yesterday\n \"operator-15\": { 1029: \"Dneska\", 1033: \"Today\" }, // today\n \"operator-16\": { 1029: \"Zítra\", 1033: \"Tomorrow\" }, // tomorrow\n \"operator-17\": { 1029: \"Posledních 7 dnů\", 1033: \"Last 7 days\" }, // last-seven-days\n \"operator-18\": { 1029: \"Příštích 7 dnů\", 1033: \"Next 7 days\" }, // next-seven-days\n \"operator-19\": { 1029: \"Minulý týden\", 1033: \"Last week\" }, // last-week\n \"operator-20\": { 1029: \"Tento týden\", 1033: \"This week\" }, // this-week\n \"operator-22\": { 1029: \"Minulý měsíc\", 1033: \"Last month\" }, // last-month\n \"operator-23\": { 1029: \"Tento měsíc\", 1033: \"This month\" }, // this-month\n \"operator-25\": { 1029: \"V den\", 1033: \"On\" }, // on\n \"operator-26\": { 1029: \"Před dnem (včetně)\", 1033: \"On or before\" }, // on-or-before\n \"operator-27\": { 1029: \"Po dni (včetně)\", 1033: \"On or after\" }, // on-or-after\n \"operator-28\": { 1029: \"Poslední rok\", 1033: \"Last year\" }, // last-year\n \"operator-29\": { 1029: \"Tento rok\", 1033: \"This year\" }, // this-year\n \"operator-33\": { 1029: \"Posledních X dnů\", 1033: \"Last X days\" }, // last-x-days\n \"operator-34\": { 1029: \"Příštích X dnů\", 1033: \"Next X days\" }, // next-x-days\n \"operator-37\": { 1029: \"Posledních X měsíců\", 1033: \"Last X months\" }, // last-x-months\n \"operator-38\": { 1029: \"Příštích X měsíců\", 1033: \"Next X months\" }, // next-x-months\n \"operator-2\": { 1029: \"Větší než\", 1033: \"Greater than\" }, // gt\n \"operator-4\": { 1029: \"Větší než nebo rovno\", 1033: \"Greater than or equal to\" }, // ge\n \"operator-5\": { 1029: \"Menší než nebo rovno\", 1033: \"Less than or equal to\" }, // le\n \"operator-3\": { 1029: \"Menší než\", 1033: \"Less than\" }, // lt\n \"operator-87\": { 1029: \"Obsahuje hodnoty\", 1033: \"Contain values\" }, // contain-values\n \"operator-88\": { 1029: \"Neobsahuje hodnoty\", 1033: \"Does not contain values\" }, // not-contain-values\n \"operator-54\": { 1029: \"Začíná na\", 1033: \"Begins with\" }, // begins-with\n \"operator-55\": { 1029: \"Nezačíná na\", 1033: \"Does not begin with\" }, // not-begin-with\n \"operator-56\": { 1029: \"Končí na\", 1033: \"Ends with\" }, // ends-with\n \"operator-57\": { 1029: \"Nekončí na\", 1033: \"Does not end with\" }, // not-end-with\n \"operator-8\": { 1029: \"Mezi\", 1033: \"In\" }, // in\n \"operator-9\": { 1029: \"Není mezi\", 1033: \"Not in\" }, // not-in\n \"operator-10\": { 1029: \"Mezi\", 1033: \"Between\" }, // between\n \"operator-11\": { 1029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AAa,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE;IACtD,aAAa,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAChE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IAC1C,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;IACnD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;IAChD,aAAa,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE;;;;;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IComponentProps } from "../interfaces";
|
|
3
|
-
export declare const Header: (props: {
|
|
4
|
-
onRenderHeader: IComponentProps['onRenderHeader'];
|
|
5
|
-
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|