@knime/kds-table 0.2.2 → 0.3.0
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/CHANGELOG.md +10 -0
- package/dist/index.css +173 -167
- package/dist/index.js +921 -1565
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableCore.vue.d.ts +5 -3
- package/dist/src/components/TableCore.vue.d.ts.map +1 -1
- package/dist/src/components/TableCoreVirtual.vue.d.ts +1 -1
- package/dist/src/components/TableCoreVirtual.vue.d.ts.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts +1090 -1660
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +2084 -8120
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/dist/src/components/VirtualRow.vue.d.ts +1 -1
- package/dist/src/components/VirtualRow.vue.d.ts.map +1 -1
- package/dist/src/components/composables/useDataValueViews.d.ts +2 -2
- package/dist/src/components/composables/useDataValueViews.d.ts.map +1 -1
- package/dist/src/components/composables/useHeaderMenuItems.d.ts +4 -3
- package/dist/src/components/composables/useHeaderMenuItems.d.ts.map +1 -1
- package/dist/src/components/control/PageControls.vue.d.ts +29 -7
- package/dist/src/components/control/PageControls.vue.d.ts.map +1 -1
- package/dist/src/components/control/TableActionBar.vue.d.ts +24 -27
- package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts +12 -12
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/FilterControlBody.vue.d.ts +5 -5
- package/dist/src/components/control/actionbar/FilterControlBody.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts +4 -4
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/filterConfigActive.d.ts +5 -5
- package/dist/src/components/control/actionbar/filterConfigActive.d.ts.map +1 -1
- package/dist/src/components/layout/Cell.vue.d.ts +0 -2
- package/dist/src/components/layout/Cell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellProps.d.ts +3 -5
- package/dist/src/components/layout/CellProps.d.ts.map +1 -1
- package/dist/src/components/layout/CellRenderer.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellRendererProps.d.ts +0 -1
- package/dist/src/components/layout/CellRendererProps.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts +194 -412
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/dist/src/components/layout/HeaderCell.vue.d.ts +72 -0
- package/dist/src/components/layout/HeaderCell.vue.d.ts.map +1 -0
- package/dist/src/components/layout/Row.vue.d.ts +4 -2
- package/dist/src/components/layout/Row.vue.d.ts.map +1 -1
- package/dist/src/components/ui/CellSelectionOverlay.vue.d.ts.map +1 -1
- package/dist/src/components/ui/CellSelectionOverlayProps.d.ts +1 -1
- package/dist/src/components/ui/CellSelectionOverlayProps.d.ts.map +1 -1
- package/dist/src/components/ui/EmptyRow.vue.d.ts +1 -1
- package/dist/src/components/ui/EmptyRow.vue.d.ts.map +1 -1
- package/dist/src/config/table.config.d.ts +11 -21
- package/dist/src/config/table.config.d.ts.map +1 -1
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +14 -17
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/ActionConfig.d.ts +16 -0
- package/dist/src/types/ActionConfig.d.ts.map +1 -0
- package/dist/src/types/ColumnConfig.d.ts +44 -0
- package/dist/src/types/ColumnConfig.d.ts.map +1 -0
- package/dist/src/types/ColumnState.d.ts +17 -0
- package/dist/src/types/ColumnState.d.ts.map +1 -0
- package/dist/src/types/FilterConfig.d.ts +10 -3
- package/dist/src/types/FilterConfig.d.ts.map +1 -1
- package/dist/src/types/PageConfig.d.ts +13 -0
- package/dist/src/types/PageConfig.d.ts.map +1 -0
- package/dist/src/types/RowConfig.d.ts +15 -0
- package/dist/src/types/RowConfig.d.ts.map +1 -0
- package/dist/src/types/SubMenuConfig.d.ts +11 -0
- package/dist/src/types/SubMenuConfig.d.ts.map +1 -0
- package/dist/src/types/TableConfig.d.ts +35 -38
- package/dist/src/types/TableConfig.d.ts.map +1 -1
- package/dist/src/{util → utils}/index.d.ts +1 -1
- package/dist/src/utils/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/config/time.config.d.ts +0 -53
- package/dist/src/config/time.config.d.ts.map +0 -1
- package/dist/src/types/DataConfig.d.ts +0 -40
- package/dist/src/types/DataConfig.d.ts.map +0 -1
- package/dist/src/util/constants.d.ts.map +0 -1
- package/dist/src/util/getColumnDomains.d.ts +0 -7
- package/dist/src/util/getColumnDomains.d.ts.map +0 -1
- package/dist/src/util/getFilterConfigs.d.ts +0 -11
- package/dist/src/util/getFilterConfigs.d.ts.map +0 -1
- package/dist/src/util/getNextPage.d.ts +0 -2
- package/dist/src/util/getNextPage.d.ts.map +0 -1
- package/dist/src/util/getWrappedArondNextElement.d.ts +0 -6
- package/dist/src/util/getWrappedArondNextElement.d.ts.map +0 -1
- package/dist/src/util/index.d.ts.map +0 -1
- package/dist/src/util/isSinglePage.d.ts +0 -3
- package/dist/src/util/isSinglePage.d.ts.map +0 -1
- package/dist/src/util/processSelection.d.ts +0 -2
- package/dist/src/util/processSelection.d.ts.map +0 -1
- package/dist/src/util/transform/filter.d.ts +0 -8
- package/dist/src/util/transform/filter.d.ts.map +0 -1
- package/dist/src/util/transform/group.d.ts +0 -7
- package/dist/src/util/transform/group.d.ts.map +0 -1
- package/dist/src/util/transform/paginate.d.ts +0 -4
- package/dist/src/util/transform/paginate.d.ts.map +0 -1
- package/dist/src/util/transform/search.d.ts +0 -3
- package/dist/src/util/transform/search.d.ts.map +0 -1
- package/dist/src/util/transform/sort.d.ts +0 -2
- package/dist/src/util/transform/sort.d.ts.map +0 -1
- /package/dist/src/{util/constants.d.ts → constants.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Header.vue"],"names":[],"mappings":"AACA;
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Header.vue"],"names":[],"mappings":"AACA;AAgcA,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,KAAK,CAAC;AAS3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAM3D;;;;;;GAMG;;;cASmB,QAAQ,CAAC,WAAW,CAAC;;;;cAIrB,QAAQ,CAAC,YAAY,CAAC;;;;cAIvB,QAAQ,CAAC,YAAY,EAAE,CAAC;;;;cAIvB,QAAQ,CAAC,eAAe,CAAC;;;;cAI1B,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;cAIlB,QAAQ,CAAC,YAAY,EAAE,CAAC;;;;;;;;cAQrB,QAAQ,CAAC,MAAM,MAAM,CAAC;;;;;;;;cAQxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;iCAuCL,aAAa,eAAe,MAAM;;;yBAWvC,IAAI,GAAG,MAAM;wBACd,IAAI,GAAG,MAAM;;mCAIZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;;4BAuBpC,MAAM,GAAG,MAAM;+BAGZ,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;mCAMf,MAAM;kCAUP,MAAM;;;uBAkBjB,MAAM;qCAWQ,MAAM;;gCAQX,MAAM,WAAW,MAAM;gCAGvB,MAAM;8BAGR,MAAM,aAAa,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;8CA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ig;
|
|
4
|
+
colFilterValue?: FilterValue;
|
|
5
|
+
tableConfig: TableConfig;
|
|
6
|
+
actionConfig: ActionConfig;
|
|
7
|
+
sortDirection: -1 | 0 | 1;
|
|
8
|
+
columnSize?: number;
|
|
9
|
+
focused: boolean;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
otherColumnResizing: boolean;
|
|
12
|
+
/** Returns the height the drag handle should span while resizing. */
|
|
13
|
+
getDragHandleHeight: () => number;
|
|
14
|
+
};
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
subHeader?(_: {
|
|
19
|
+
subHeader: string;
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLTableCellElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
27
|
+
getHeaderCellWidth: () => number;
|
|
28
|
+
focus: () => void;
|
|
29
|
+
isFocusable: () => boolean;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
columnResize: (newSize: number) => any;
|
|
32
|
+
onColumnSort: (direction: 0 | 1 | -1) => any;
|
|
33
|
+
openActionBarFilterControl: () => any;
|
|
34
|
+
clearColumnFilter: () => any;
|
|
35
|
+
onHeaderCellFocus: () => any;
|
|
36
|
+
onHeaderCellBlur: () => any;
|
|
37
|
+
onHeaderClick: () => any;
|
|
38
|
+
onKeydownTab: () => any;
|
|
39
|
+
onKeydownLeft: () => any;
|
|
40
|
+
onKeydownRight: () => any;
|
|
41
|
+
onKeydownDown: () => any;
|
|
42
|
+
onHeaderCellKeydown: (event: KeyboardEvent) => any;
|
|
43
|
+
onDeleteColumn: () => any;
|
|
44
|
+
columnResizeStart: () => any;
|
|
45
|
+
columnResizeEnd: () => any;
|
|
46
|
+
allColumnsResize: (newSize: number) => any;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
48
|
+
onColumnResize?: ((newSize: number) => any) | undefined;
|
|
49
|
+
onOnColumnSort?: ((direction: 0 | 1 | -1) => any) | undefined;
|
|
50
|
+
onOpenActionBarFilterControl?: (() => any) | undefined;
|
|
51
|
+
onClearColumnFilter?: (() => any) | undefined;
|
|
52
|
+
onOnHeaderCellFocus?: (() => any) | undefined;
|
|
53
|
+
onOnHeaderCellBlur?: (() => any) | undefined;
|
|
54
|
+
onOnHeaderClick?: (() => any) | undefined;
|
|
55
|
+
onOnKeydownTab?: (() => any) | undefined;
|
|
56
|
+
onOnKeydownLeft?: (() => any) | undefined;
|
|
57
|
+
onOnKeydownRight?: (() => any) | undefined;
|
|
58
|
+
onOnKeydownDown?: (() => any) | undefined;
|
|
59
|
+
onOnHeaderCellKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
60
|
+
onOnDeleteColumn?: (() => any) | undefined;
|
|
61
|
+
onColumnResizeStart?: (() => any) | undefined;
|
|
62
|
+
onColumnResizeEnd?: (() => any) | undefined;
|
|
63
|
+
onAllColumnsResize?: ((newSize: number) => any) | undefined;
|
|
64
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableCellElement>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=HeaderCell.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderCell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/HeaderCell.vue"],"names":[],"mappings":"AA4bA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAEjB,MAAM,OAAO,CAAC;AAWf,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qEAAqE;IACrE,mBAAmB,EAAE,MAAM,MAAM,CAAC;CACnC,CAAC;AA0MF,iBAAS,cAAc;WAqNT,OAAO,IAA6B;;;;YAVnB,GAAG;;;;EAejC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KdsMenuItem } from '@knime/kds-components';
|
|
2
|
-
import { ColumnConfig, RowConfig } from '
|
|
2
|
+
import { ColumnConfig, RowConfig, SubMenuConfig } from '../..';
|
|
3
3
|
import { VirtualElementAnchor } from '../../types/DataValueView';
|
|
4
4
|
import { TableConfig } from '../../types/TableConfig';
|
|
5
5
|
export interface RowProps {
|
|
@@ -8,7 +8,9 @@ export interface RowProps {
|
|
|
8
8
|
};
|
|
9
9
|
row?: any[];
|
|
10
10
|
tableConfig: TableConfig;
|
|
11
|
-
|
|
11
|
+
subMenuConfig: SubMenuConfig;
|
|
12
|
+
columns: ColumnConfig[];
|
|
13
|
+
colSizes: number[];
|
|
12
14
|
rowConfig?: RowConfig;
|
|
13
15
|
rowHeight?: number | "dynamic";
|
|
14
16
|
isSelected?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Row.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Row.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Row.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Row.vue"],"names":[],"mappings":"AAshBA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAOpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAU3D,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE;QAAE,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;KAAE,CAAC;IACjD,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0BAA0B,CAAC,EAAE,O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OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellSelectionOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/CellSelectionOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CellSelectionOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/CellSelectionOverlay.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;;;;yCAkHnE,IAAI,GAAG;QACb,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;QAC7B,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,CAAC,cAAc,EAAE;YACzB,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,KAAK,IAAI,GAAG,SAAS,CAAC;KACxB;;;;;AAmIH,wBAQG"}
|
|
@@ -3,7 +3,7 @@ import { CellPosition, Rect } from '../composables/useCellSelection';
|
|
|
3
3
|
interface CellSelectionOverlayProps {
|
|
4
4
|
rect: Rect;
|
|
5
5
|
rowHeight: number;
|
|
6
|
-
|
|
6
|
+
colSizes: number[];
|
|
7
7
|
rowResizeIndex: null | number;
|
|
8
8
|
rowResizeDelta: null | number;
|
|
9
9
|
tableConfig: TableConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellSelectionOverlayProps.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/CellSelectionOverlayProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAE1E,UAAU,yBAAyB;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"CellSelectionOverlayProps.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/CellSelectionOverlayProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAE1E,UAAU,yBAAyB;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,4BAA4B,CAAC,EAAE,YAAY,CAAC;CAC7C;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/EmptyRow.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmptyRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/EmptyRow.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,kBAAkB,EAAE;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;;AAiHF,wBAMG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FilterComponent } from '../types/FilterConfig';
|
|
1
|
+
import { FilterComponent, FilterValue } from '../types/FilterConfig';
|
|
2
2
|
export declare const defaultPageSize = 10;
|
|
3
3
|
export declare const tablePageSizes: number[];
|
|
4
4
|
export declare const filterComponents: Record<string, {
|
|
5
5
|
is: keyof typeof FilterComponent;
|
|
6
|
-
getInitialValue: () =>
|
|
6
|
+
getInitialValue: () => FilterValue;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const columnTypes: {
|
|
9
9
|
Nominal: "Nominal";
|
|
@@ -21,54 +21,44 @@ export type ColumnType = ValueOf<typeof columnTypes>;
|
|
|
21
21
|
export declare const columnFilterConfigs: {
|
|
22
22
|
Nominal: {
|
|
23
23
|
is: keyof typeof FilterComponent;
|
|
24
|
-
getInitialValue: () =>
|
|
24
|
+
getInitialValue: () => FilterValue;
|
|
25
25
|
};
|
|
26
26
|
String: {
|
|
27
27
|
is: keyof typeof FilterComponent;
|
|
28
|
-
getInitialValue: () =>
|
|
28
|
+
getInitialValue: () => FilterValue;
|
|
29
29
|
};
|
|
30
30
|
DateTime: {
|
|
31
31
|
is: keyof typeof FilterComponent;
|
|
32
|
-
getInitialValue: () =>
|
|
32
|
+
getInitialValue: () => FilterValue;
|
|
33
33
|
};
|
|
34
34
|
Duration: {
|
|
35
35
|
is: keyof typeof FilterComponent;
|
|
36
|
-
getInitialValue: () =>
|
|
36
|
+
getInitialValue: () => FilterValue;
|
|
37
37
|
};
|
|
38
38
|
Number: {
|
|
39
39
|
is: keyof typeof FilterComponent;
|
|
40
|
-
getInitialValue: () =>
|
|
40
|
+
getInitialValue: () => FilterValue;
|
|
41
41
|
};
|
|
42
42
|
Boolean: {
|
|
43
43
|
is: keyof typeof FilterComponent;
|
|
44
|
-
getInitialValue: () =>
|
|
44
|
+
getInitialValue: () => FilterValue;
|
|
45
45
|
};
|
|
46
46
|
Array: {
|
|
47
47
|
is: keyof typeof FilterComponent;
|
|
48
|
-
getInitialValue: () =>
|
|
48
|
+
getInitialValue: () => FilterValue;
|
|
49
49
|
};
|
|
50
50
|
Object: {
|
|
51
51
|
is: keyof typeof FilterComponent;
|
|
52
|
-
getInitialValue: () =>
|
|
52
|
+
getInitialValue: () => FilterValue;
|
|
53
53
|
};
|
|
54
54
|
Image: {
|
|
55
55
|
is: keyof typeof FilterComponent;
|
|
56
|
-
getInitialValue: () =>
|
|
56
|
+
getInitialValue: () => FilterValue;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
export declare const columnSortText: Record<ColumnType | "default", {
|
|
60
60
|
ascending: string;
|
|
61
61
|
descending: string;
|
|
62
62
|
}>;
|
|
63
|
-
export declare const valueTypeFormatters: {
|
|
64
|
-
Nominal: (val: any) => any;
|
|
65
|
-
String: (val: any) => any;
|
|
66
|
-
DateTime: (val: any) => any;
|
|
67
|
-
Number: (val: any) => any;
|
|
68
|
-
Boolean: (val: any) => any;
|
|
69
|
-
Array: (val: any) => string;
|
|
70
|
-
Object: (val: any) => string;
|
|
71
|
-
};
|
|
72
|
-
export declare const typeFormatters: (type: keyof typeof valueTypeFormatters) => (val: any) => any;
|
|
73
63
|
export {};
|
|
74
64
|
//# sourceMappingURL=table.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.config.d.ts","sourceRoot":"","sources":["../../../src/config/table.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.config.d.ts","sourceRoot":"","sources":["../../../src/config/table.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE1E,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,cAAc,UAAuB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN;IAAE,EAAE,EAAE,MAAM,OAAO,eAAe,CAAC;IAAC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2B,CAAC;AAOvE,eAAO,MAAM,8BAA8B,IAA2B,CAAC;AAGvE,eAAO,MAAM,uBAAuB,IAA0B,CAAC;AAG/D,eAAO,MAAM,cAAc,QAAqB,CAAC;AAGjD,eAAO,MAAM,aAAa,QACkC,CAAC;AAG7D,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAGtC,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAGxD,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAGjD,eAAO,MAAM,mBAAmB,KAA+B,CAAC;;;;;;;;;AAEhE,wBAOE"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { default as TableUI } from './components/TableUI.vue';
|
|
2
2
|
import { default as TableUIWithAutoSizeCalculation } from './components/TableUIWithAutoSizeCalculation.vue';
|
|
3
3
|
import { default as TableActionBar } from './components/control/TableActionBar.vue';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { default as constants } from './constants';
|
|
5
|
+
import { ActionConfig, ActionState } from './types/ActionConfig';
|
|
6
|
+
import { ColumnConfig, ColumnId } from './types/ColumnConfig';
|
|
7
|
+
import { ColFilterValues, ColSortValue } from './types/ColumnState';
|
|
8
|
+
import { FilterConfig, FilterValue } from './types/FilterConfig';
|
|
9
|
+
import { PageConfig, PageState } from './types/PageConfig';
|
|
6
10
|
import { PossibleValue } from './types/PossibleValue';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
11
|
+
import { RowConfig } from './types/RowConfig';
|
|
12
|
+
import { SubMenuConfig } from './types/SubMenuConfig';
|
|
13
|
+
import { TableConfig, TableState } from './types/TableConfig';
|
|
9
14
|
export { TableUI, TableUIWithAutoSizeCalculation, TableActionBar, constants };
|
|
10
15
|
export * from './config/table.config';
|
|
11
|
-
export
|
|
12
|
-
export { default as getColumnDomains } from './util/getColumnDomains';
|
|
13
|
-
export { getDefaultFilterValues, getFilterConfigs, getInitialFilterValues, } from './util/getFilterConfigs';
|
|
14
|
-
export { getNextPage } from './util/getNextPage';
|
|
15
|
-
export { getProcessedRowInd } from './util/processSelection';
|
|
16
|
-
export { filter } from './util/transform/filter';
|
|
17
|
-
export { group } from './util/transform/group';
|
|
18
|
-
export { paginate } from './util/transform/paginate';
|
|
19
|
-
export { sort } from './util/transform/sort';
|
|
20
|
-
export { unpackObjectRepresentation, isMissingValue, getMissingValueMessage, } from './util/index';
|
|
16
|
+
export { unpackObjectRepresentation, isMissingValue, getMissingValueMessage, } from './utils/index';
|
|
21
17
|
export type { Rect } from './components/composables/useCellSelection';
|
|
22
|
-
export type { PossibleValue, FilterConfig };
|
|
23
|
-
export type { TableConfig,
|
|
24
|
-
export type {
|
|
18
|
+
export type { PossibleValue, FilterConfig, FilterValue };
|
|
19
|
+
export type { TableConfig, TableState, PageConfig, PageState, ActionConfig, ActionState, SubMenuConfig, };
|
|
20
|
+
export type { ColumnConfig, ColumnId, ColFilterValues, ColSortValue };
|
|
21
|
+
export type { RowConfig };
|
|
25
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAC/C,OAAO,8BAA8B,MAAM,iDAAiD,CAAC;AAC7F,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAC/C,OAAO,8BAA8B,MAAM,iDAAiD,CAAC;AAC7F,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC;AAC9E,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AACtE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AACzD,YAAY,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC;AACF,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtE,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { KdsMenuItem } from '@knime/kds-components';
|
|
2
|
+
/** Feature switches for the table's action bar. Its presence enables the action bar. */
|
|
3
|
+
export interface ActionConfig {
|
|
4
|
+
/** Enables the sorting controls in the action bar. */
|
|
5
|
+
enableSorting?: boolean;
|
|
6
|
+
/** Enables the filter controls in the action bar. */
|
|
7
|
+
enableFilters?: boolean;
|
|
8
|
+
/** Menu items offered in the action bar's settings menu. */
|
|
9
|
+
settingsItems?: KdsMenuItem[];
|
|
10
|
+
}
|
|
11
|
+
/** Runtime state of the table's action bar. */
|
|
12
|
+
export interface ActionState {
|
|
13
|
+
/** Title displayed in the action bar. */
|
|
14
|
+
actionBarTitle?: "Temporary view" | "Output";
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ActionConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionConfig.d.ts","sourceRoot":"","sources":["../../../src/types/ActionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;CAC/B;AAED,+CAA+C;AAC/C,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,GAAG,QAAQ,CAAC;CAC9C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { KdsMenuItem } from '@knime/kds-components';
|
|
2
|
+
import { ColumnType } from '../config/table.config';
|
|
3
|
+
import { FilterConfig } from './FilterConfig';
|
|
4
|
+
export type ColumnId = string | number | symbol;
|
|
5
|
+
/**
|
|
6
|
+
* Stable definition of a single column. One entry per column, always present.
|
|
7
|
+
*
|
|
8
|
+
* Runtime-mutable per-column state (size, filter value, sort) is held
|
|
9
|
+
* separately in id-keyed state records (`colSizes`, `colFilterValues`,
|
|
10
|
+
* `colSortValues`).
|
|
11
|
+
*/
|
|
12
|
+
export interface ColumnConfig {
|
|
13
|
+
/** Stable identifier of the column; per-column state records are keyed by this. */
|
|
14
|
+
id: ColumnId;
|
|
15
|
+
/** Accessor that locates this column's value within a row. */
|
|
16
|
+
key: string | number | symbol;
|
|
17
|
+
/** Text shown in the column header. */
|
|
18
|
+
header: string;
|
|
19
|
+
/** Secondary text shown beneath the header. */
|
|
20
|
+
subHeader?: string;
|
|
21
|
+
/** Menu items offered in the header's submenu. */
|
|
22
|
+
headerSubMenuItems?: KdsMenuItem[];
|
|
23
|
+
/** Definition of the column's filter (which control, its options). */
|
|
24
|
+
filterConfig?: FilterConfig;
|
|
25
|
+
/** Data type of the column, driving default rendering and filtering. */
|
|
26
|
+
type?: ColumnType;
|
|
27
|
+
/** Whether cells render slot content instead of the formatted value. */
|
|
28
|
+
hasSlotContent?: boolean;
|
|
29
|
+
/** Whether cells can open a data value view. */
|
|
30
|
+
hasDataValueView?: boolean;
|
|
31
|
+
/** Prevents this column from being sorted (sortable by default). */
|
|
32
|
+
isNotSortable?: boolean;
|
|
33
|
+
/** Accent color applied to the column header. */
|
|
34
|
+
headerColor?: string;
|
|
35
|
+
/** Removes the top/bottom padding of the column's cells. */
|
|
36
|
+
noPaddingTopBottom?: boolean;
|
|
37
|
+
/** Removes the left/right padding of the column's cells. */
|
|
38
|
+
noPaddingLeftRight?: boolean;
|
|
39
|
+
/** Whether the column's cells can be edited. */
|
|
40
|
+
editable?: boolean;
|
|
41
|
+
/** Whether the column can be deleted. */
|
|
42
|
+
deletable?: boolean;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ColumnConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnConfig.d.ts","sourceRoot":"","sources":["../../../src/types/ColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,EAAE,EAAE,QAAQ,CAAC;IACb,8DAA8D;IAC9D,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9B,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;IACnC,sEAAsE;IACtE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,wEAAwE;IACxE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oEAAoE;IACpE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FilterValue } from './FilterConfig';
|
|
2
|
+
/**
|
|
3
|
+
* Per-column runtime state, keyed by column `id` so it survives column
|
|
4
|
+
* removal and reordering and can be mutated one column at a time.
|
|
5
|
+
*/
|
|
6
|
+
/** Current filter values, keyed by column `id`. */
|
|
7
|
+
export type ColFilterValues = Record<string | number | symbol, FilterValue>;
|
|
8
|
+
/**
|
|
9
|
+
* Active sorts as an ordered array where the position defines the sort
|
|
10
|
+
* priority. Each entry references a column by `id` and its sort direction
|
|
11
|
+
* (`1` ascending, `-1` descending).
|
|
12
|
+
*/
|
|
13
|
+
export type ColSortValue = {
|
|
14
|
+
id: string | number | symbol;
|
|
15
|
+
direction: 1 | -1;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ColumnState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnState.d.ts","sourceRoot":"","sources":["../../../src/types/ColumnState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AAEH,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,WAAW,CAAC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;CAAE,CAAC"}
|
|
@@ -12,19 +12,26 @@ export type FilterConfigDropdownBase = FilterConfigBase & {
|
|
|
12
12
|
};
|
|
13
13
|
export type FilterConfigDropdown = FilterConfigDropdownBase & {
|
|
14
14
|
is: "ControlDropdown";
|
|
15
|
-
modelValue?: string | null;
|
|
16
15
|
};
|
|
17
16
|
export type FilterConfigMultiselect = FilterConfigDropdownBase & {
|
|
18
17
|
is: "ControlMultiselect";
|
|
19
|
-
modelValue?: Array<string> | [null];
|
|
20
18
|
};
|
|
21
19
|
export type FilterConfigInput = FilterConfigBase & {
|
|
22
20
|
is: "FilterInputField";
|
|
23
21
|
disabled?: boolean;
|
|
24
|
-
modelValue?: number | string | null;
|
|
25
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Definition of a column's filter: which control is used and the options it
|
|
25
|
+
* offers. The control's current value is held separately in `colFilterValues`.
|
|
26
|
+
*/
|
|
26
27
|
type FilterConfig = (FilterConfigDropdown | FilterConfigMultiselect | FilterConfigInput) & {
|
|
27
28
|
is: keyof typeof FilterComponent;
|
|
28
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Current value of a column's filter, as stored in `colFilterValues`. The
|
|
32
|
+
* union covers the value shapes of the dropdown, multiselect and input
|
|
33
|
+
* filters.
|
|
34
|
+
*/
|
|
35
|
+
export type FilterValue = string | number | null | Array<string> | [null];
|
|
29
36
|
export type { FilterConfig };
|
|
30
37
|
//# sourceMappingURL=FilterConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterConfig.d.ts","sourceRoot":"","sources":["../../../src/types/FilterConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,eAAe;IACzB,eAAe,IAAA;IACf,kBAAkB,IAAA;IAClB,gBAAgB,IAAA;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG;IACxD,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC5D,EAAE,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterConfig.d.ts","sourceRoot":"","sources":["../../../src/types/FilterConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,eAAe;IACzB,eAAe,IAAA;IACf,kBAAkB,IAAA;IAClB,gBAAgB,IAAA;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GAAG;IACxD,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC5D,EAAE,EAAE,iBAAiB,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG;IAC/D,EAAE,EAAE,oBAAoB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,EAAE,EAAE,kBAAkB,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,KAAK,YAAY,GAAG,CAChB,oBAAoB,GACpB,uBAAuB,GACvB,iBAAiB,CACpB,GAAG;IACF,EAAE,EAAE,MAAM,OAAO,eAAe,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAE1E,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Pagination settings. Its presence enables pagination. */
|
|
2
|
+
export interface PageConfig {
|
|
3
|
+
/** Number of rows shown per page. */
|
|
4
|
+
pageSize: number;
|
|
5
|
+
/** Page sizes the user can choose from. */
|
|
6
|
+
possiblePageSizes?: number[];
|
|
7
|
+
}
|
|
8
|
+
/** Runtime pagination state. */
|
|
9
|
+
export interface PageState {
|
|
10
|
+
/** Index of the currently displayed page. */
|
|
11
|
+
currentPage: number;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=PageConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageConfig.d.ts","sourceRoot":"","sources":["../../../src/types/PageConfig.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IACzB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,gCAAgC;AAChC,MAAM,WAAW,SAAS;IACxB,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Appearance of the table's rows. */
|
|
2
|
+
interface RowConfigBase {
|
|
3
|
+
/** Fixed height of each row in pixels. */
|
|
4
|
+
rowHeight?: number;
|
|
5
|
+
/** Renders rows in a denser layout. */
|
|
6
|
+
compactMode?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type RowConfig = RowConfigBase | {
|
|
9
|
+
/** Lets each row size itself to its content. */
|
|
10
|
+
rowHeight: "dynamic";
|
|
11
|
+
/** Renders rows in a denser layout. */
|
|
12
|
+
compactMode?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=RowConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowConfig.d.ts","sourceRoot":"","sources":["../../../src/types/RowConfig.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,UAAU,aAAa;IACrB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,SAAS,GACjB,aAAa,GACb;IACE,gDAAgD;IAChD,SAAS,EAAE,SAAS,CAAC;IACrB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KdsMenuItem } from '@knime/kds-components';
|
|
2
|
+
/** Settings for the per-row and per-group submenus. */
|
|
3
|
+
export interface SubMenuConfig {
|
|
4
|
+
/** Menu items offered in each row's submenu. */
|
|
5
|
+
subMenuItems?: KdsMenuItem[];
|
|
6
|
+
/** Menu items offered in each group's submenu. */
|
|
7
|
+
groupSubMenuItems?: KdsMenuItem[];
|
|
8
|
+
/** Whether to reserve layout space for the submenu always or only when needed. */
|
|
9
|
+
reserveSpaceForSubMenu?: "always" | "auto";
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=SubMenuConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubMenuConfig.d.ts","sourceRoot":"","sources":["../../../src/types/SubMenuConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,uDAAuD;AACvD,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC;IAClC,kFAAkF;IAClF,sBAAsB,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC5C"}
|
|
@@ -1,53 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
columnCount: number;
|
|
8
|
-
possiblePageSizes?: number[];
|
|
9
|
-
showTableSize?: boolean;
|
|
10
|
-
showPageControls?: boolean;
|
|
11
|
-
rowLabel?: string;
|
|
12
|
-
actionBarTitle?: "Temporary view" | "Output";
|
|
13
|
-
}
|
|
14
|
-
export interface SortConfig {
|
|
15
|
-
sortColumn?: number;
|
|
16
|
-
sortDirection?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface TimeFilterConfig {
|
|
19
|
-
currentTimeFilter: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ColumnSelectionConfig {
|
|
22
|
-
possibleColumns: string[];
|
|
23
|
-
}
|
|
24
|
-
interface TableConfig {
|
|
25
|
-
timeFilterConfig?: TimeFilterConfig;
|
|
26
|
-
columnSelectionConfig?: ColumnSelectionConfig;
|
|
27
|
-
pageConfig?: PageConfig;
|
|
28
|
-
settingsItems?: KdsMenuItem[];
|
|
29
|
-
sortConfig?: SortConfig;
|
|
1
|
+
/**
|
|
2
|
+
* Feature switches for the table. Each flag enables an optional capability;
|
|
3
|
+
* an absent flag leaves that feature off.
|
|
4
|
+
*/
|
|
5
|
+
export interface TableConfig {
|
|
6
|
+
/** Allows columns to be resized by dragging their borders. */
|
|
30
7
|
enableColumnResizing?: boolean;
|
|
31
|
-
|
|
8
|
+
/** Allows rows to be resized. */
|
|
9
|
+
enableRowResizing?: boolean;
|
|
10
|
+
/** Shows the row selection controls. */
|
|
32
11
|
showSelection?: boolean;
|
|
33
|
-
|
|
12
|
+
/** Disables selecting rows while still showing the controls. */
|
|
34
13
|
disableSelection?: boolean;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
/** Allows rows to be deleted. */
|
|
15
|
+
enableRowDeletion?: boolean;
|
|
16
|
+
/** Shows the table size. */
|
|
17
|
+
showTableSize?: boolean;
|
|
18
|
+
/** Label used for rows in the table. */
|
|
19
|
+
rowLabel?: string;
|
|
20
|
+
/** Allows selecting individual cells. */
|
|
39
21
|
enableCellSelection?: boolean;
|
|
22
|
+
/** Allows selecting header cells. */
|
|
40
23
|
enableHeaderCellSelection?: boolean;
|
|
24
|
+
/** Allows opening data value views from cells. */
|
|
41
25
|
enableDataValueViews?: boolean;
|
|
26
|
+
/** Shows the button for adding a new column and row. */
|
|
42
27
|
showNewColumnAndRowButton?: boolean;
|
|
43
|
-
|
|
28
|
+
/** Renders cell content as inline-block. */
|
|
44
29
|
cellRendererInlineBlock?: boolean;
|
|
45
30
|
/**
|
|
46
|
-
*
|
|
31
|
+
* Disables row- and column-virtualization so every row and every cell is
|
|
47
32
|
* rendered. Used by TableUIWithAutoSizeCalculation, whose hidden table needs
|
|
48
33
|
* all cells in the DOM to measure their content dimensions.
|
|
49
34
|
*/
|
|
50
35
|
forceRenderAll?: boolean;
|
|
51
36
|
}
|
|
52
|
-
|
|
37
|
+
/** Runtime totals and flags describing the table's current contents. */
|
|
38
|
+
export interface TableState {
|
|
39
|
+
/** Number of currently selected rows. */
|
|
40
|
+
totalSelected: number;
|
|
41
|
+
/** Whether a data value view is currently open. */
|
|
42
|
+
dataValueViewIsShown?: boolean;
|
|
43
|
+
/** Total number of rows the table represents. */
|
|
44
|
+
tableSize?: number;
|
|
45
|
+
/** Number of rows currently available to the table. */
|
|
46
|
+
currentSize?: number;
|
|
47
|
+
/** Number of columns in the table. */
|
|
48
|
+
columnCount?: number;
|
|
49
|
+
}
|
|
53
50
|
//# sourceMappingURL=TableConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableConfig.d.ts","sourceRoot":"","sources":["../../../src/types/TableConfig.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TableConfig.d.ts","sourceRoot":"","sources":["../../../src/types/TableConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wCAAwC;IACxC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qCAAqC;IACrC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,kDAAkD;IAClD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnConfig } from '
|
|
1
|
+
import { ColumnConfig } from '..';
|
|
2
2
|
export declare const unpackObjectRepresentation: (val: any) => any;
|
|
3
3
|
export declare const getColor: (val: any) => string | null;
|
|
4
4
|
export declare const isMissingValue: (val: any) => val is {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAiBvC,eAAO,MAAM,0BAA0B,GAAI,KAAK,GAAG,QAQlD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,kBAMhC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,GAAG,IAAI;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAEN,CAAC;AAEnE,eAAO,MAAM,sBAAsB,GACjC,UAAU;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,WAKtC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,KAAG,GAAG,IAAI;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GAAG,SACT,CAAC;AAEzD,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,YAAY,EACnE,eAAe,YAAY,EAAE,EAC7B,KAAK,CAAC,KACL,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAqD,CAAC"}
|