@knime/kds-table 0.6.4 → 0.7.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 +20 -0
- package/dist/index.css +36 -53
- package/dist/index.js +98 -545
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts +280 -498
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +285 -502
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/dist/src/components/composables/useHeaderMenuItems.d.ts +2 -8
- package/dist/src/components/composables/useHeaderMenuItems.d.ts.map +1 -1
- package/dist/src/components/control/TableActionBar.vue.d.ts +18 -196
- package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts +12 -27
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/dist/src/components/layout/HeaderCell.vue.d.ts +2 -6
- package/dist/src/components/layout/HeaderCell.vue.d.ts.map +1 -1
- package/dist/src/config/table.config.d.ts +0 -43
- package/dist/src/config/table.config.d.ts.map +1 -1
- package/dist/src/index.d.ts +10 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/ActionConfig.d.ts +0 -2
- package/dist/src/types/ActionConfig.d.ts.map +1 -1
- package/dist/src/types/ColumnConfig.d.ts +2 -9
- package/dist/src/types/ColumnConfig.d.ts.map +1 -1
- package/dist/src/types/ColumnState.d.ts +0 -7
- package/dist/src/types/ColumnState.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts +0 -176
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts.map +0 -1
- package/dist/src/components/control/actionbar/FilterControlBody.vue.d.ts +0 -14
- package/dist/src/components/control/actionbar/FilterControlBody.vue.d.ts.map +0 -1
- package/dist/src/components/control/actionbar/filterConfigActive.d.ts +0 -6
- package/dist/src/components/control/actionbar/filterConfigActive.d.ts.map +0 -1
- package/dist/src/types/FilterConfig.d.ts +0 -37
- package/dist/src/types/FilterConfig.d.ts.map +0 -1
|
@@ -3,8 +3,6 @@ import { KdsMenuItem } from '@knime/kds-components';
|
|
|
3
3
|
export interface ActionConfig {
|
|
4
4
|
/** Enables the sorting controls in the action bar. */
|
|
5
5
|
enableSorting?: boolean;
|
|
6
|
-
/** Enables the filter controls in the action bar. */
|
|
7
|
-
enableFilters?: boolean;
|
|
8
6
|
/** Enables a search control in the action bar. */
|
|
9
7
|
enableSearch?: boolean;
|
|
10
8
|
/** Menu items offered in the action bar's settings menu. */
|
|
@@ -1 +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,
|
|
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,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEpE,+CAA+C;AAC/C,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { KdsMenuItem } from '@knime/kds-components';
|
|
2
1
|
import { ColumnType } from '../config/table.config';
|
|
3
|
-
import { FilterConfig } from './FilterConfig';
|
|
4
2
|
export type ColumnId = string | number | symbol;
|
|
5
3
|
/**
|
|
6
4
|
* Stable definition of a single column. One entry per column, always present.
|
|
7
5
|
*
|
|
8
|
-
* Runtime-mutable per-column state (size,
|
|
9
|
-
*
|
|
10
|
-
* `colSortValues`).
|
|
6
|
+
* Runtime-mutable per-column state (size, sort) is held separately in
|
|
7
|
+
* id-keyed state records (`colSizes`, `colSortValues`).
|
|
11
8
|
*/
|
|
12
9
|
export interface ColumnConfig {
|
|
13
10
|
/** Stable identifier of the column; per-column state records are keyed by this. */
|
|
@@ -18,10 +15,6 @@ export interface ColumnConfig {
|
|
|
18
15
|
header: string;
|
|
19
16
|
/** Secondary text shown beneath the header. */
|
|
20
17
|
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
18
|
/** Data type of the column, driving default rendering and filtering. */
|
|
26
19
|
type?: ColumnType;
|
|
27
20
|
/** Whether cells render slot content instead of the formatted value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnConfig.d.ts","sourceRoot":"","sources":["../../../src/types/ColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ColumnConfig.d.ts","sourceRoot":"","sources":["../../../src/types/ColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD;;;;;GAKG;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,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"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
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
2
|
/**
|
|
10
3
|
* Sort direction for a column identified by its `id`.
|
|
11
4
|
* We use an array of these for multi-column sorting, since the order
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"ColumnState.d.ts","sourceRoot":"","sources":["../../../src/types/ColumnState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-table",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "Package containing the table component of the KNIME Design System",
|
|
6
6
|
"license": "See LICENSE file",
|
|
7
7
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"fast-deep-equal": "3.1.3",
|
|
15
15
|
"raf-throttle": "2.0.6",
|
|
16
16
|
"uuid": "14.0.1",
|
|
17
|
-
"@knime/kds-components": "^2.
|
|
18
|
-
"@knime/kds-styles": "^2.
|
|
19
|
-
"@knime/utils": "^1.12.
|
|
17
|
+
"@knime/kds-components": "^2.3.0",
|
|
18
|
+
"@knime/kds-styles": "^2.3.0",
|
|
19
|
+
"@knime/utils": "^1.12.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@storybook/vue3-vite": "^10.4.6",
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
import { ColFilterValues, ColumnConfig, FilterValue } from '../../..';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
columns: ColumnConfig[];
|
|
5
|
-
colFilterValues: ColFilterValues;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
8
|
-
openPopover: (columnIndex?: number) => Promise<void>;
|
|
9
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
columnFilter: (colInd: number, value: FilterValue) => any;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
onColumnFilter?: ((colInd: number, value: FilterValue) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
-
filterPopoverRef: ({
|
|
15
|
-
$: import('vue').ComponentInternalInstance;
|
|
16
|
-
$data: {};
|
|
17
|
-
$props: ({
|
|
18
|
-
readonly modelValue?: boolean | undefined;
|
|
19
|
-
readonly role?: import('@knime/kds-components').KdsPopoverRole | undefined;
|
|
20
|
-
readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
|
|
21
|
-
readonly fullWidth?: boolean | undefined;
|
|
22
|
-
readonly maxInlineSize?: string | undefined;
|
|
23
|
-
readonly stretchInline?: boolean | undefined;
|
|
24
|
-
readonly content?: string | undefined;
|
|
25
|
-
readonly placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom"> | undefined;
|
|
26
|
-
readonly customPlacementPosition?: never | undefined;
|
|
27
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
readonly modelValue?: boolean | undefined;
|
|
30
|
-
readonly role?: import('@knime/kds-components').KdsPopoverRole | undefined;
|
|
31
|
-
readonly popoverType?: import('@knime/kds-components').KdsPopoverType | undefined;
|
|
32
|
-
readonly fullWidth?: boolean | undefined;
|
|
33
|
-
readonly maxInlineSize?: string | undefined;
|
|
34
|
-
readonly stretchInline?: boolean | undefined;
|
|
35
|
-
readonly content?: string | undefined;
|
|
36
|
-
readonly placement: "custom";
|
|
37
|
-
readonly customPlacementPosition: {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
};
|
|
41
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
|
|
42
|
-
}) & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
43
|
-
$attrs: import('vue').Attrs;
|
|
44
|
-
$refs: {
|
|
45
|
-
[x: string]: unknown;
|
|
46
|
-
} & {
|
|
47
|
-
popoverEl: HTMLDivElement;
|
|
48
|
-
};
|
|
49
|
-
$slots: Readonly<{
|
|
50
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
53
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
54
|
-
$host: Element | null;
|
|
55
|
-
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
56
|
-
$el: HTMLDivElement;
|
|
57
|
-
$options: import('vue').ComponentOptionsBase<Readonly<({
|
|
58
|
-
modelValue?: boolean;
|
|
59
|
-
} & {
|
|
60
|
-
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
61
|
-
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
62
|
-
fullWidth?: boolean;
|
|
63
|
-
maxInlineSize?: string;
|
|
64
|
-
stretchInline?: boolean;
|
|
65
|
-
content?: string;
|
|
66
|
-
} & {
|
|
67
|
-
placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
|
|
68
|
-
customPlacementPosition?: never;
|
|
69
|
-
}) | ({
|
|
70
|
-
modelValue?: boolean;
|
|
71
|
-
} & {
|
|
72
|
-
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
73
|
-
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
74
|
-
fullWidth?: boolean;
|
|
75
|
-
maxInlineSize?: string;
|
|
76
|
-
stretchInline?: boolean;
|
|
77
|
-
content?: string;
|
|
78
|
-
} & {
|
|
79
|
-
placement: "custom";
|
|
80
|
-
customPlacementPosition: {
|
|
81
|
-
x: number;
|
|
82
|
-
y: number;
|
|
83
|
-
};
|
|
84
|
-
})> & Readonly<{
|
|
85
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
86
|
-
}>, {
|
|
87
|
-
anchorStyle: Record<string, string>;
|
|
88
|
-
popoverId: string;
|
|
89
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
|
-
"update:modelValue": (value: boolean) => any;
|
|
91
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
92
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
93
|
-
created?: (() => void) | (() => void)[];
|
|
94
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
95
|
-
mounted?: (() => void) | (() => void)[];
|
|
96
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
97
|
-
updated?: (() => void) | (() => void)[];
|
|
98
|
-
activated?: (() => void) | (() => void)[];
|
|
99
|
-
deactivated?: (() => void) | (() => void)[];
|
|
100
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
101
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
102
|
-
destroyed?: (() => void) | (() => void)[];
|
|
103
|
-
unmounted?: (() => void) | (() => void)[];
|
|
104
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
105
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
106
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
107
|
-
};
|
|
108
|
-
$forceUpdate: () => void;
|
|
109
|
-
$nextTick: typeof nextTick;
|
|
110
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
111
|
-
} & Readonly<{}> & Omit<{} & (Readonly<({
|
|
112
|
-
modelValue?: boolean;
|
|
113
|
-
} & {
|
|
114
|
-
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
115
|
-
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
116
|
-
fullWidth?: boolean;
|
|
117
|
-
maxInlineSize?: string;
|
|
118
|
-
stretchInline?: boolean;
|
|
119
|
-
content?: string;
|
|
120
|
-
} & {
|
|
121
|
-
placement?: Exclude<import('@knime/kds-components').KdsPopoverPlacement, "custom">;
|
|
122
|
-
customPlacementPosition?: never;
|
|
123
|
-
}) | ({
|
|
124
|
-
modelValue?: boolean;
|
|
125
|
-
} & {
|
|
126
|
-
role?: import('@knime/kds-components').KdsPopoverRole;
|
|
127
|
-
popoverType?: import('@knime/kds-components').KdsPopoverType;
|
|
128
|
-
fullWidth?: boolean;
|
|
129
|
-
maxInlineSize?: string;
|
|
130
|
-
stretchInline?: boolean;
|
|
131
|
-
content?: string;
|
|
132
|
-
} & {
|
|
133
|
-
placement: "custom";
|
|
134
|
-
customPlacementPosition: {
|
|
135
|
-
x: number;
|
|
136
|
-
y: number;
|
|
137
|
-
};
|
|
138
|
-
})> & Readonly<{
|
|
139
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
140
|
-
}>), "anchorStyle" | "popoverId"> & {
|
|
141
|
-
anchorStyle: Record<string, string>;
|
|
142
|
-
popoverId: string;
|
|
143
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
144
|
-
$slots: Readonly<{
|
|
145
|
-
default(): unknown;
|
|
146
|
-
}> & {
|
|
147
|
-
default(): unknown;
|
|
148
|
-
};
|
|
149
|
-
}) | null;
|
|
150
|
-
filterBodyRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
151
|
-
columns: ColumnConfig[];
|
|
152
|
-
colFilterValues: ColFilterValues;
|
|
153
|
-
}> & Readonly<{
|
|
154
|
-
onColumnFilter?: ((colInd: number, value: FilterValue) => any) | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
addAndFocusColumn: (columnIndex: number) => Promise<void>;
|
|
157
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
158
|
-
columnFilter: (colInd: number, value: FilterValue) => any;
|
|
159
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
160
|
-
P: {};
|
|
161
|
-
B: {};
|
|
162
|
-
D: {};
|
|
163
|
-
C: {};
|
|
164
|
-
M: {};
|
|
165
|
-
Defaults: {};
|
|
166
|
-
}, Readonly<{
|
|
167
|
-
columns: ColumnConfig[];
|
|
168
|
-
colFilterValues: ColFilterValues;
|
|
169
|
-
}> & Readonly<{
|
|
170
|
-
onColumnFilter?: ((colInd: number, value: FilterValue) => any) | undefined;
|
|
171
|
-
}>, {
|
|
172
|
-
addAndFocusColumn: (columnIndex: number) => Promise<void>;
|
|
173
|
-
}, {}, {}, {}, {}> | null;
|
|
174
|
-
}, any>;
|
|
175
|
-
export default _default;
|
|
176
|
-
//# sourceMappingURL=FilterControl.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterControl.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/control/actionbar/FilterControl.vue"],"names":[],"mappings":"AA8FA,OAAO,EAAY,QAAQ,EAAkB,MAAM,KAAK,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO3E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;;gCA0BuC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAoM0ge,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjB/qe,wBASG"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColFilterValues, ColumnConfig, FilterValue } from '../../..';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
columns: ColumnConfig[];
|
|
4
|
-
colFilterValues: ColFilterValues;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
-
addAndFocusColumn: (columnIndex: number) => Promise<void>;
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
columnFilter: (colInd: number, value: FilterValue) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onColumnFilter?: ((colInd: number, value: FilterValue) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
export default _default;
|
|
14
|
-
//# sourceMappingURL=FilterControlBody.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterControlBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/control/actionbar/FilterControlBody.vue"],"names":[],"mappings":"AA2SA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EAEZ,WAAW,EACZ,MAAM,UAAU,CAAC;AASlB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;;qCAuJ4C,MAAM;;;;;;AAkTpD,wBAQG"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FilterConfig, FilterValue } from '../../../types/FilterConfig';
|
|
2
|
-
export declare const defaultValueFor: (is: FilterConfig["is"]) => FilterValue;
|
|
3
|
-
export declare const missingValueFor: (is: FilterConfig["is"]) => FilterValue;
|
|
4
|
-
export declare const isMissingMode: (config: FilterConfig, value?: FilterValue) => boolean;
|
|
5
|
-
export declare const isActive: (config: FilterConfig | undefined, value?: FilterValue) => config is FilterConfig;
|
|
6
|
-
//# sourceMappingURL=filterConfigActive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterConfigActive.d.ts","sourceRoot":"","sources":["../../../../../src/components/control/actionbar/filterConfigActive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE7E,eAAO,MAAM,eAAe,GAAI,IAAI,YAAY,CAAC,IAAI,CAAC,KAAG,WAKxD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,IAAI,YAAY,CAAC,IAAI,CAAC,KAAG,WAKxD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,QAAQ,YAAY,EACpB,QAAQ,WAAW,KAClB,OAKF,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,QAAQ,YAAY,GAAG,SAAS,EAChC,QAAQ,WAAW,KAClB,MAAM,IAAI,YAWZ,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PossibleValue } from './PossibleValue';
|
|
2
|
-
export declare enum FilterComponent {
|
|
3
|
-
ControlDropdown = 0,
|
|
4
|
-
ControlMultiselect = 1,
|
|
5
|
-
FilterInputField = 2
|
|
6
|
-
}
|
|
7
|
-
export interface FilterConfigBase {
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
10
|
-
export type FilterConfigDropdownBase = FilterConfigBase & {
|
|
11
|
-
possibleValues: PossibleValue[];
|
|
12
|
-
};
|
|
13
|
-
export type FilterConfigDropdown = FilterConfigDropdownBase & {
|
|
14
|
-
is: "ControlDropdown";
|
|
15
|
-
};
|
|
16
|
-
export type FilterConfigMultiselect = FilterConfigDropdownBase & {
|
|
17
|
-
is: "ControlMultiselect";
|
|
18
|
-
};
|
|
19
|
-
export type FilterConfigInput = FilterConfigBase & {
|
|
20
|
-
is: "FilterInputField";
|
|
21
|
-
disabled?: boolean;
|
|
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
|
-
*/
|
|
27
|
-
type FilterConfig = (FilterConfigDropdown | FilterConfigMultiselect | FilterConfigInput) & {
|
|
28
|
-
is: keyof typeof FilterComponent;
|
|
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];
|
|
36
|
-
export type { FilterConfig };
|
|
37
|
-
//# sourceMappingURL=FilterConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|