@knime/kds-table 0.2.2 → 0.3.1
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 +16 -0
- package/dist/index.css +440 -284
- package/dist/index.js +1154 -1769
- 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 +1297 -1696
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +2258 -8118
- 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 -4
- package/dist/src/components/layout/Cell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellProps.d.ts +3 -6
- 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 -2
- package/dist/src/components/layout/CellRendererProps.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts +252 -411
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/dist/src/components/layout/HeaderCell.vue.d.ts +190 -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 +18 -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 +34 -39
- 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 +5 -5
- 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;8C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fig, FilterValue, TableConfig } from '../..';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
column: ColumnConfig;
|
|
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
|
+
columnHeader: HTMLTableCellElement;
|
|
24
|
+
content: HTMLDivElement;
|
|
25
|
+
mainHeader: HTMLDivElement;
|
|
26
|
+
headerText: HTMLSpanElement;
|
|
27
|
+
columnDeleteButton: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<(import('packages/components/dist/src/types/testId').WithTestId & {
|
|
28
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
title?: string;
|
|
31
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
label: string;
|
|
34
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
35
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
36
|
+
ariaLabel?: never;
|
|
37
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive) | (import('packages/components/dist/src/types/testId').WithTestId & {
|
|
38
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
title?: string;
|
|
41
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
label?: never;
|
|
44
|
+
leadingIcon: import('@knime/kds-components').KdsIconName;
|
|
45
|
+
trailingIcon?: never;
|
|
46
|
+
ariaLabel: string;
|
|
47
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive)> & Readonly<{
|
|
48
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
49
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
click: (event: MouseEvent) => any;
|
|
51
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
52
|
+
P: {};
|
|
53
|
+
B: {};
|
|
54
|
+
D: {};
|
|
55
|
+
C: {};
|
|
56
|
+
M: {};
|
|
57
|
+
Defaults: {};
|
|
58
|
+
}, {} & (Readonly<(import('packages/components/dist/src/types/testId').WithTestId & {
|
|
59
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
title?: string;
|
|
62
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
63
|
+
} & {
|
|
64
|
+
label: string;
|
|
65
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
66
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
67
|
+
ariaLabel?: never;
|
|
68
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive) | (import('packages/components/dist/src/types/testId').WithTestId & {
|
|
69
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
title?: string;
|
|
72
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
73
|
+
} & {
|
|
74
|
+
label?: never;
|
|
75
|
+
leadingIcon: import('@knime/kds-components').KdsIconName;
|
|
76
|
+
trailingIcon?: never;
|
|
77
|
+
ariaLabel: string;
|
|
78
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive)> & Readonly<{
|
|
79
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
80
|
+
}>), {}, {}, {}, {}, {}> | null;
|
|
81
|
+
};
|
|
82
|
+
rootEl: HTMLTableCellElement;
|
|
83
|
+
};
|
|
84
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
85
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
86
|
+
getHeaderCellWidth: () => number;
|
|
87
|
+
focus: () => void;
|
|
88
|
+
isFocusable: () => boolean;
|
|
89
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
|
+
columnResize: (newSize: number) => any;
|
|
91
|
+
onColumnSort: (direction: 0 | 1 | -1) => any;
|
|
92
|
+
openActionBarFilterControl: () => any;
|
|
93
|
+
clearColumnFilter: () => any;
|
|
94
|
+
onHeaderCellFocus: () => any;
|
|
95
|
+
onHeaderCellBlur: () => any;
|
|
96
|
+
onHeaderClick: () => any;
|
|
97
|
+
onKeydownTab: () => any;
|
|
98
|
+
onKeydownLeft: () => any;
|
|
99
|
+
onKeydownRight: () => any;
|
|
100
|
+
onKeydownDown: () => any;
|
|
101
|
+
onHeaderCellKeydown: (event: KeyboardEvent) => any;
|
|
102
|
+
onDeleteColumn: () => any;
|
|
103
|
+
columnResizeStart: () => any;
|
|
104
|
+
columnResizeEnd: () => any;
|
|
105
|
+
allColumnsResize: (newSize: number) => any;
|
|
106
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
107
|
+
onColumnResize?: ((newSize: number) => any) | undefined;
|
|
108
|
+
onOnColumnSort?: ((direction: 0 | 1 | -1) => any) | undefined;
|
|
109
|
+
onOpenActionBarFilterControl?: (() => any) | undefined;
|
|
110
|
+
onClearColumnFilter?: (() => any) | undefined;
|
|
111
|
+
onOnHeaderCellFocus?: (() => any) | undefined;
|
|
112
|
+
onOnHeaderCellBlur?: (() => any) | undefined;
|
|
113
|
+
onOnHeaderClick?: (() => any) | undefined;
|
|
114
|
+
onOnKeydownTab?: (() => any) | undefined;
|
|
115
|
+
onOnKeydownLeft?: (() => any) | undefined;
|
|
116
|
+
onOnKeydownRight?: (() => any) | undefined;
|
|
117
|
+
onOnKeydownDown?: (() => any) | undefined;
|
|
118
|
+
onOnHeaderCellKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
119
|
+
onOnDeleteColumn?: (() => any) | undefined;
|
|
120
|
+
onColumnResizeStart?: (() => any) | undefined;
|
|
121
|
+
onColumnResizeEnd?: (() => any) | undefined;
|
|
122
|
+
onAllColumnsResize?: ((newSize: number) => any) | undefined;
|
|
123
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
124
|
+
columnHeader: HTMLTableCellElement;
|
|
125
|
+
content: HTMLDivElement;
|
|
126
|
+
mainHeader: HTMLDivElement;
|
|
127
|
+
headerText: HTMLSpanElement;
|
|
128
|
+
columnDeleteButton: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<(import('packages/components/dist/src/types/testId').WithTestId & {
|
|
129
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
130
|
+
disabled?: boolean;
|
|
131
|
+
title?: string;
|
|
132
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
133
|
+
} & {
|
|
134
|
+
label: string;
|
|
135
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
136
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
137
|
+
ariaLabel?: never;
|
|
138
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive) | (import('packages/components/dist/src/types/testId').WithTestId & {
|
|
139
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
140
|
+
disabled?: boolean;
|
|
141
|
+
title?: string;
|
|
142
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
143
|
+
} & {
|
|
144
|
+
label?: never;
|
|
145
|
+
leadingIcon: import('@knime/kds-components').KdsIconName;
|
|
146
|
+
trailingIcon?: never;
|
|
147
|
+
ariaLabel: string;
|
|
148
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive)> & Readonly<{
|
|
149
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
150
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
151
|
+
click: (event: MouseEvent) => any;
|
|
152
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
153
|
+
P: {};
|
|
154
|
+
B: {};
|
|
155
|
+
D: {};
|
|
156
|
+
C: {};
|
|
157
|
+
M: {};
|
|
158
|
+
Defaults: {};
|
|
159
|
+
}, {} & (Readonly<(import('packages/components/dist/src/types/testId').WithTestId & {
|
|
160
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
title?: string;
|
|
163
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
164
|
+
} & {
|
|
165
|
+
label: string;
|
|
166
|
+
leadingIcon?: import('@knime/kds-components').KdsIconName;
|
|
167
|
+
trailingIcon?: import('@knime/kds-components').KdsIconName;
|
|
168
|
+
ariaLabel?: never;
|
|
169
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive) | (import('packages/components/dist/src/types/testId').WithTestId & {
|
|
170
|
+
size?: import('@knime/kds-components').KdsButtonSize;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
title?: string;
|
|
173
|
+
variant?: import('@knime/kds-components').KdsButtonVariant | undefined;
|
|
174
|
+
} & {
|
|
175
|
+
label?: never;
|
|
176
|
+
leadingIcon: import('@knime/kds-components').KdsIconName;
|
|
177
|
+
trailingIcon?: never;
|
|
178
|
+
ariaLabel: string;
|
|
179
|
+
} & import('packages/components/dist/src/buttons/types').WithDestructive)> & Readonly<{
|
|
180
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
181
|
+
}>), {}, {}, {}, {}, {}> | null;
|
|
182
|
+
}, HTMLTableCellElement>;
|
|
183
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
184
|
+
export default _default;
|
|
185
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
186
|
+
new (): {
|
|
187
|
+
$slots: S;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
//# 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":"AAsbA,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;AAoMF,iBAAS,cAAc;WAqOT,OAAO,IAA6B;;;;YAfnB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBjC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAUnB,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":"AAqhBA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO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GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;IA1ZnB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;SAzOG,GAAG,EAAE;eAMC,MAAM,GAAG,SAAS;0BAUP,MAAM;gBAThB,OAAO;aARV;QAAE,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;KAAE;eAMpC,SAAS;kBAGN,MAAM;oBACJ,OAAO;uBACJ,OAAO;gCACE,OAAO;uBAChB,MAAM,GAAG,IAAI;wBACZ;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;2BAChC,MAAM,GAAG,IAAI;yBACf,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4nBnC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,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,eAAe,EAAE,MAAM,WAAW,CAAA;CAAE,CAczE,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;CAUvB,CAAC;AAEF,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,eAAO,MAAM,mBAAmB;;YAhCxB,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;;YAAhE,MAAM,OAAO,eAAe;yBAAmB,MAAM,WAAW;;CA6CvE,CAAC;AAEF,eAAO,MAAM,cAAc,EAyCtB,MAAM,CAAC,UAAU,GAAG,SAAS,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,KAAK,CAAC;AAGlC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,eAAO,MAAM,oBAAoB,KAA+B,CAAC;AAGjE,eAAO,MAAM,uBAAuB,IAAuB,CAAC;AAI5D,eAAO,MAAM,kBAAkB,QAC4B,CAAC;AAI5D,eAAO,MAAM,kBAAkB,QAC6B,CAAC;AAO7D,eAAO,MAAM,8BAA8B,KAA2B,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,18 @@
|
|
|
1
|
+
import { ColumnId } from './ColumnConfig';
|
|
2
|
+
import { FilterValue } from './FilterConfig';
|
|
3
|
+
/**
|
|
4
|
+
* Per-column runtime state, keyed by column `id` so it survives column
|
|
5
|
+
* removal and reordering and can be mutated one column at a time.
|
|
6
|
+
*/
|
|
7
|
+
/** Current filter values, keyed by column `id`. */
|
|
8
|
+
export type ColFilterValues = Record<ColumnId, FilterValue>;
|
|
9
|
+
/**
|
|
10
|
+
* Sort direction for a column identified by its `id`.
|
|
11
|
+
* We use an array of these for multi-column sorting, since the order
|
|
12
|
+
* is important (thus no record).
|
|
13
|
+
*/
|
|
14
|
+
export type ColSortValue = {
|
|
15
|
+
id: ColumnId;
|
|
16
|
+
direction: 1 | -1;
|
|
17
|
+
};
|
|
18
|
+
//# 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,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AAEH,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,QAAQ,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;AA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1E,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"}
|