@knime/kds-components 11.6.0 → 13.0.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 +29 -0
- package/dist/{KdsIcon-CJrxt0gq.js → KdsIcon-DWTHABhA.js} +6 -47
- package/dist/KdsIcon-DWTHABhA.js.map +1 -0
- package/dist/KdsIcon.css +4 -2
- package/dist/{KdsPopover-Bqel9iqk.js → KdsPopover-DezPib64.js} +28 -13
- package/dist/KdsPopover-DezPib64.js.map +1 -0
- package/dist/KdsPopover.css +17 -17
- package/dist/index.css +89 -86
- package/dist/index.js +234 -246
- package/dist/index.js.map +1 -1
- package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -1
- package/dist/src/components/lists/Menu/KdsMenu.vue.d.ts +3 -7
- package/dist/src/components/lists/Menu/KdsMenu.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts +1 -6
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.d.ts +1 -1
- package/dist/src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Popover/KdsPopover.vue.d.ts +4 -0
- package/dist/src/layouts/overlays/Popover/KdsPopover.vue.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Popover/types.d.ts +11 -5
- package/dist/src/layouts/overlays/Popover/types.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts +0 -2
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/KdsIcon-CJrxt0gq.js.map +0 -1
- package/dist/KdsPopover-Bqel9iqk.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMenuButton/KdsMenuButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMenuButton/KdsMenuButton.vue"],"names":[],"mappings":"AA4GA,OAAO,KAAK,EAGV,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAqEjB,KAAK,gBAAgB,GAAG;IACxB,gCAAgC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsSplitButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSplitButton/KdsSplitButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsSplitButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsSplitButton/KdsSplitButton.vue"],"names":[],"mappings":"AAgXA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsInfoToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsInfoToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,KAAK,WAAW,GAAG,wBAAwB,CAAC;AAI5C,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAgBF,KAAK,gBAAgB,GAAG;IACxB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA8HxD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsVariableToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsVariableToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,WAAW,GAAG,4BAA4B,CAAC;AAUhD,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAiEF,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAkIxD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsColorInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/ColorInput/KdsColorInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsColorInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/ColorInput/KdsColorInput.vue"],"names":[],"mappings":"AAuJA,KAAK,gBAAgB,GAAG;IACxB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAsLF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsDateTimeFormatInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsDateTimeFormatInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,KAAK,WAAW,GAAG,2BAA2B,CAAC;AAsB/C,KAAK,gBAAgB,GAAG;IACxB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAgLxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsIntervalInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsIntervalInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue"],"names":[],"mappings":"AA0QA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAiBlD,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAEjB,KAAK,WAAW,GAAG,qBAAqB,CAAC;AAgLzC,KAAK,gBAAgB,GAAG;IACxB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;CACrC,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA0OxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsSearchInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/SearchInput/KdsSearchInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsSearchInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/SearchInput/KdsSearchInput.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AA6GtD,KAAK,gBAAgB,GAAG;IACxB,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAuNF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsTextInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/TextInput/KdsTextInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsTextInput.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/inputs/TextInput/KdsTextInput.vue"],"names":[],"mappings":"AAuMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAqHtD,KAAK,gBAAgB,GAAG;IACxB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAkMF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnwrapRef } from 'vue';
|
|
1
|
+
import { ComponentPublicInstance, UnwrapRef } from 'vue';
|
|
2
2
|
import { KdsMenuProps } from './types';
|
|
3
3
|
declare const isMenuOpenReadonly: import('vue').ComputedRef<boolean>;
|
|
4
4
|
declare const open: () => void;
|
|
@@ -8,11 +8,7 @@ declare const attrs: import('vue').ComputedRef<{
|
|
|
8
8
|
"aria-haspopup": "menu";
|
|
9
9
|
"aria-expanded": boolean;
|
|
10
10
|
"aria-controls": string | undefined;
|
|
11
|
-
|
|
12
|
-
style: Record<string, string>;
|
|
13
|
-
"aria-haspopup": "menu";
|
|
14
|
-
"aria-expanded": boolean;
|
|
15
|
-
"aria-controls": string | undefined;
|
|
11
|
+
ref: (el: Element | ComponentPublicInstance | null) => void;
|
|
16
12
|
}>;
|
|
17
13
|
type SlotPropsType = {
|
|
18
14
|
attrs: UnwrapRef<typeof attrs>;
|
|
@@ -25,7 +21,7 @@ type __VLS_Slots = {
|
|
|
25
21
|
/**
|
|
26
22
|
* Custom toggle for the menu. This slot provides the following props:
|
|
27
23
|
*
|
|
28
|
-
* `attrs`: Attributes you must bind to your custom toggle. They ensure the correct aria attributes
|
|
24
|
+
* `attrs`: Attributes you must bind to your custom toggle. They ensure the correct aria attributes and register the toggle (via a function `ref`) as the anchor the menu is positioned against. Don't add another `ref` to the toggle, it would replace this one <br/>
|
|
29
25
|
* `isOpen`: Readonly state that communicates the current state of the menu <br/>
|
|
30
26
|
* `open`: function to programmatically open the menu <br/>
|
|
31
27
|
* `close`: function to programmatically close the menu <br/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenu.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/Menu/KdsMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenu.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/Menu/KdsMenu.vue"],"names":[],"mappings":"AA2IA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EAOf,MAAM,KAAK,CAAC;AAMb,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,SAAS,CAAC;AA6C1D,QAAA,MAAM,kBAAkB,oCAAmC,CAAC;AAE5D,QAAA,MAAM,IAAI,YAET,CAAC;AAEF,QAAA,MAAM,KAAK,YAEV,CAAC;AAEF,QAAA,MAAM,MAAM,YAEX,CAAC;AAQF,QAAA,MAAM,KAAK;;;;cALY,OAAO,GAAG,uBAAuB,GAAG,IAAI;EAU5D,CAAC;AAEJ,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC,OAAO,KAAK,CAAC,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC7C,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC;CACxC,CAAC;AA+FF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"AA+iBA,OAAO,KAAK,EAEV,sBAAsB,EACtB,6BAA6B,EAG9B,MAAM,SAAS,CAAC;AAkkBjB,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -9,12 +9,7 @@ type __VLS_Slots = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Submenu content rendered when the item has children.
|
|
11
11
|
*/
|
|
12
|
-
children(
|
|
13
|
-
anchor: {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
};
|
|
17
|
-
}): unknown;
|
|
12
|
+
children(): unknown;
|
|
18
13
|
};
|
|
19
14
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, KdsMenuItemExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
15
|
mouseenter: (event: MouseEvent) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuItem.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EAEX,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;CAC5C,CAAC;AAsFF,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC;CACrB,CAAC;AAuSF,QAAA,MAAM,UAAU;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsFileExplorer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/KdsFileExplorer.vue"],"names":[],"mappings":"AAowBA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAIjB;;GAEG;AAEH,KAAK,WAAW,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"KdsFileExplorer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/KdsFileExplorer.vue"],"names":[],"mappings":"AAowBA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAIjB;;GAEG;AAEH,KAAK,WAAW,GAAG,oBAAoB,CAAC;AAycxC,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC;IAC7B;;OAEG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,mBAAmB,CAAA;KAAE,KAAK,OAAO,CAAC;CACnE,CAAC;AAUF,KAAK,gBAAgB,GAAG;IACxB,kDAAkD;IAClD,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC,CAAC;AAgBF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAwjBxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const popoverAnchor: {
|
|
2
|
-
create: (top: `${string}px` | `${string}%`, left: `${string}px` | `${string}
|
|
2
|
+
create: (top: `${string}px` | `${string}%`, left: `${string}px` | `${string}%`) => HTMLDivElement;
|
|
3
3
|
remove: () => void;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=popoverAnchorElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popoverAnchorElement.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popoverAnchorElement.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,aAAa;kBAlBnB,GAAG,MAAM,IAAI,GAAG,GAAG,MAAM,GAAG,QAC3B,GAAG,MAAM,IAAI,GAAG,GAAG,MAAM,GAAG;;CAoBnC,CAAC"}
|
|
@@ -18,6 +18,7 @@ declare const __VLS_base: import('vue').DefineComponent<({
|
|
|
18
18
|
content?: string;
|
|
19
19
|
} & {
|
|
20
20
|
placement?: Exclude<import('./types').KdsPopoverPlacement, "custom">;
|
|
21
|
+
anchor: HTMLElement | null | undefined;
|
|
21
22
|
customPlacementPosition?: never;
|
|
22
23
|
} & __VLS_ModelProps) | ({
|
|
23
24
|
role?: import('./types').KdsPopoverRole;
|
|
@@ -32,6 +33,7 @@ declare const __VLS_base: import('vue').DefineComponent<({
|
|
|
32
33
|
x: number;
|
|
33
34
|
y: number;
|
|
34
35
|
};
|
|
36
|
+
anchor?: never;
|
|
35
37
|
} & __VLS_ModelProps), KdsPopoverExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
38
|
"update:modelValue": (value: boolean) => any;
|
|
37
39
|
}, string, import('vue').PublicProps, Readonly<({
|
|
@@ -43,6 +45,7 @@ declare const __VLS_base: import('vue').DefineComponent<({
|
|
|
43
45
|
content?: string;
|
|
44
46
|
} & {
|
|
45
47
|
placement?: Exclude<import('./types').KdsPopoverPlacement, "custom">;
|
|
48
|
+
anchor: HTMLElement | null | undefined;
|
|
46
49
|
customPlacementPosition?: never;
|
|
47
50
|
} & __VLS_ModelProps) | ({
|
|
48
51
|
role?: import('./types').KdsPopoverRole;
|
|
@@ -57,6 +60,7 @@ declare const __VLS_base: import('vue').DefineComponent<({
|
|
|
57
60
|
x: number;
|
|
58
61
|
y: number;
|
|
59
62
|
};
|
|
63
|
+
anchor?: never;
|
|
60
64
|
} & __VLS_ModelProps)> & Readonly<{
|
|
61
65
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
62
66
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsPopover.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Popover/KdsPopover.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsPopover.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Popover/KdsPopover.vue"],"names":[],"mappings":"AAsPA,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AA0DjE,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAoCF,KAAK,gBAAgB,GAAG;IACxB,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAoFF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -47,6 +47,13 @@ type KdsPopoverAnchoredProps = {
|
|
|
47
47
|
* - `alignment`: how the popover aligns with the anchor (`left`, `center`, `right`)
|
|
48
48
|
*/
|
|
49
49
|
placement?: Exclude<KdsPopoverPlacement, "custom">;
|
|
50
|
+
/**
|
|
51
|
+
* The element the popover is positioned against, usually its activator.
|
|
52
|
+
* For a component, pass its root element (e.g. `buttonRef?.$el`). Required,
|
|
53
|
+
* but may be `null` or `undefined` until the element is mounted; the popover
|
|
54
|
+
* only opens once it is set.
|
|
55
|
+
*/
|
|
56
|
+
anchor: HTMLElement | null | undefined;
|
|
50
57
|
/**
|
|
51
58
|
* Not allowed for anchored placements. Only valid when `placement` is `"custom"`.
|
|
52
59
|
*/
|
|
@@ -66,14 +73,13 @@ type KdsPopoverCustomPlacementProps = {
|
|
|
66
73
|
x: number;
|
|
67
74
|
y: number;
|
|
68
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Not allowed for custom placement, which is not anchored to an element.
|
|
78
|
+
*/
|
|
79
|
+
anchor?: never;
|
|
69
80
|
};
|
|
70
81
|
export type KdsPopoverProps = KdsPopoverCommonProps & (KdsPopoverAnchoredProps | KdsPopoverCustomPlacementProps);
|
|
71
82
|
export type KdsPopoverExpose = {
|
|
72
|
-
/**
|
|
73
|
-
* Ready-to-use inline style object (`{ "anchor-name": "..." }`) to apply
|
|
74
|
-
* on the anchor/activator element via `:style="popoverRef?.anchorStyle"`.
|
|
75
|
-
*/
|
|
76
|
-
anchorStyle: Record<string, string>;
|
|
77
83
|
/**
|
|
78
84
|
* The popover element's ID. Use for `aria-controls` on the activator.
|
|
79
85
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;IAEnD;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,CAAC;AAEF,KAAK,8BAA8B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ACpC;;;OAGG;IACH,SAAS,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,uBAAuB,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAElD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,CAAC,uBAAuB,GAAG,8BAA8B,CAAC,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Directive } from 'vue';
|
|
2
2
|
export declare function generateTooltipDiv(text: string): HTMLDivElement;
|
|
3
|
-
/** @internal Exported for tests */
|
|
4
|
-
export declare function getAnchorNames(el: HTMLElement): string[];
|
|
5
3
|
export declare const vKdsTooltip: Directive<HTMLElement>;
|
|
6
4
|
/** @internal Reset module-level state for tests */
|
|
7
5
|
export declare function _resetVisibleCount(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,KAAK,CAAC;AAOzE,OAAO,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,KAAK,CAAC;AAOzE,OAAO,mBAAmB,CAAC;AAqB3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AAoOD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CA2B9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"vue": "~3.5.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@knime/kds-styles": "^
|
|
38
|
+
"@knime/kds-styles": "^13.0.0",
|
|
39
39
|
"@knime/utils": "^2.0.4",
|
|
40
40
|
"consola": "^3.4.2",
|
|
41
41
|
"motion": "^12.42.2",
|
|
42
42
|
"temporal-polyfill": "^1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@knime/kds-code-editor": "^
|
|
46
|
-
"@knime/kds-table": "^
|
|
45
|
+
"@knime/kds-code-editor": "^13.0.0",
|
|
46
|
+
"@knime/kds-table": "^13.0.0",
|
|
47
47
|
"@storybook/vue3-vite": "^10.6.2",
|
|
48
48
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
49
49
|
"@vue/test-utils": "^2.4.11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KdsIcon-CJrxt0gq.js","names":[],"sources":["../src/util/useKdsIsTruncated.ts","../src/layouts/overlays/Tooltip/vKdsTooltip.ts","../src/components/accessories/Icon/useIcon.ts","../src/components/accessories/Icon/KdsIcon.vue","../src/components/accessories/Icon/KdsIcon.vue"],"sourcesContent":["import { type Ref, ref } from \"vue\";\nimport { useMutationObserver, useResizeObserver } from \"@vueuse/core\";\n\nexport function elementOverflowsHorizontally(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollWidth > element.clientWidth;\n}\n\nexport function elementOverflowsVertically(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollHeight > element.clientHeight;\n}\n\n/**\n * Tracks whether the content of an element is visually truncated.\n *\n * Detects both horizontal truncation (e.g. `text-overflow: ellipsis`)\n * and vertical truncation (e.g. `-webkit-line-clamp`).\n *\n * This can be used to set tooltips or other UI affordances when text is cut off.\n * Changing the size of the provided element based on this composable may result in an infinite loop!\n *\n * @param elementRef - A ref pointing to the element that might be truncated.\n * @returns An object containing a reactive `isTruncated` ref.\n */\nexport function useKdsIsTruncated(elementRef: Ref<HTMLElement | null>) {\n const isTruncated = ref(false);\n\n const checkTruncation = () => {\n isTruncated.value =\n elementOverflowsHorizontally(elementRef.value) ||\n elementOverflowsVertically(elementRef.value);\n };\n\n useResizeObserver(elementRef, checkTruncation);\n\n // Observe changes to the element's subtree, including text-node updates,\n // so content changes without size changes still re-check truncation.\n useMutationObserver(elementRef, checkTruncation, {\n childList: true,\n characterData: true,\n subtree: true,\n // Also observe attribute changes (especially class/style) that can affect\n // truncation without necessarily triggering a resize event.\n attributes: true,\n attributeFilter: [\"class\", \"style\"],\n });\n\n return { isTruncated };\n}\n","import { type Directive, type DirectiveBinding, effectScope } from \"vue\";\nimport { useEventListener } from \"@vueuse/core\";\n\nimport {\n elementOverflowsHorizontally,\n elementOverflowsVertically,\n} from \"../../../util/useKdsIsTruncated\";\nimport \"./vKdsTooltip.css\";\n\ntype TooltipState = {\n triggerEl: HTMLElement;\n popoverEl: HTMLDivElement;\n anchorName: string;\n showTimer: ReturnType<typeof setTimeout> | null;\n hideTimer: ReturnType<typeof setTimeout> | null;\n dismissed: boolean;\n visible: boolean;\n attached: boolean;\n scope: ReturnType<typeof effectScope>;\n styleObserver: MutationObserver | null;\n};\n\nconst SHOW_DELAY = 450;\nconst HIDE_DELAY = 150;\n\nconst stateMap = new WeakMap<HTMLElement, TooltipState>();\n\nlet visibleCount = 0;\nlet currentVisible: TooltipState | null = null;\n\nexport function generateTooltipDiv(text: string): HTMLDivElement {\n const div = document.createElement(\"div\");\n div.classList.add(\"kds-tooltip\");\n div.textContent = text;\n return div;\n}\n\nfunction getText(binding: DirectiveBinding): string | null {\n const value = binding.value;\n if (value === null || value === undefined || value === \"\") {\n return null;\n }\n return String(value);\n}\n\nfunction isTruncatedMod(binding: DirectiveBinding): boolean {\n return binding.arg === \"truncated\";\n}\n\nfunction elementIsTruncated(el: HTMLElement | null): boolean {\n return elementOverflowsHorizontally(el) || elementOverflowsVertically(el);\n}\n\n/** @internal Exported for tests */\nexport function getAnchorNames(el: HTMLElement): string[] {\n return el.style\n .getPropertyValue(\"anchor-name\")\n .split(\",\")\n .map((n) => n.trim())\n .filter(Boolean);\n}\n\nfunction appendAnchorName(el: HTMLElement, anchorName: string) {\n const names = getAnchorNames(el);\n if (!names.includes(anchorName)) {\n names.push(anchorName);\n }\n el.style.setProperty(\"anchor-name\", names.join(\", \"));\n}\n\nfunction removeAnchorName(el: HTMLElement, anchorName: string) {\n const names = getAnchorNames(el).filter((n) => n !== anchorName);\n if (names.length > 0) {\n el.style.setProperty(\"anchor-name\", names.join(\", \"));\n } else {\n el.style.removeProperty(\"anchor-name\");\n }\n}\n\n/**\n * Re-appends our anchor-name whenever the inline style is rewritten (e.g. by a\n * KdsPopover anchor on the same element); otherwise the tooltip loses its\n * anchor and jumps to the top-left corner. Created on the first show and only\n * observed while the tooltip is visible.\n */\nfunction createStyleObserver(triggerEl: HTMLElement, anchorName: string) {\n return new MutationObserver(() => {\n // Guard against an endless loop: setting the style re-triggers the observer\n if (!getAnchorNames(triggerEl).includes(anchorName)) {\n appendAnchorName(triggerEl, anchorName);\n }\n });\n}\n\nfunction createPopover(\n triggerEl: HTMLElement,\n binding: DirectiveBinding,\n): { popover: HTMLDivElement; anchorName: string } {\n const popover = generateTooltipDiv(getText(binding) ?? \"\");\n popover.setAttribute(\"popover\", \"manual\");\n popover.setAttribute(\"role\", \"tooltip\");\n popover.setAttribute(\"aria-hidden\", \"true\");\n\n const id = `kds-tooltip-${crypto.randomUUID()}`;\n popover.id = id;\n\n if (!isTruncatedMod(binding)) {\n triggerEl.setAttribute(\"aria-describedby\", id);\n }\n\n const anchorName = `--kds-tooltip-anchor-${id}`;\n popover.style.setProperty(\"position-anchor\", anchorName);\n\n return { popover, anchorName };\n}\n\nfunction attachPopover(state: TooltipState) {\n if (state.attached) {\n return;\n }\n\n state.attached = true;\n // Appended to `document.body` (or shadow dom root node) to ensure element is decoupled from the Vue render\n // tree for the component using this directive. Otherwise, if inserted inside the render tree this can cause errors during\n // VDOM mutations (e.g v-if) because this element would have been inserted outside of Vue's internal updates\n const root = state.triggerEl.getRootNode();\n const appendBase = root === document ? document.body : root;\n appendBase.appendChild(state.popoverEl);\n}\n\nfunction detachPopover(state: TooltipState) {\n if (!state.attached) {\n return;\n }\n state.attached = false;\n state.popoverEl.remove();\n}\n\nfunction cancelTimers(state: TooltipState) {\n if (state.showTimer !== null) {\n clearTimeout(state.showTimer);\n state.showTimer = null;\n }\n if (state.hideTimer !== null) {\n clearTimeout(state.hideTimer);\n state.hideTimer = null;\n }\n}\n\nfunction hidePopover(state: TooltipState) {\n if (!state.visible) {\n return;\n }\n state.visible = false;\n visibleCount--;\n if (currentVisible === state) {\n currentVisible = null;\n }\n try {\n state.popoverEl.hidePopover();\n } catch {\n // ignore if already hidden or not connected\n }\n state.styleObserver?.disconnect();\n removeAnchorName(state.triggerEl, state.anchorName);\n detachPopover(state);\n}\n\nfunction showPopover(state: TooltipState) {\n if (state.visible) {\n return;\n }\n if (currentVisible && currentVisible !== state) {\n cancelTimers(currentVisible);\n hidePopover(currentVisible);\n }\n const { triggerEl, anchorName } = state;\n appendAnchorName(triggerEl, anchorName);\n state.styleObserver ??= createStyleObserver(triggerEl, anchorName);\n state.styleObserver.observe(triggerEl, {\n attributes: true,\n attributeFilter: [\"style\"],\n });\n attachPopover(state);\n try {\n state.popoverEl.showPopover();\n } catch {\n // ignore if already showing or not connected\n }\n state.visible = true;\n visibleCount++;\n currentVisible = state;\n}\n\nfunction scheduleShow(\n state: TooltipState,\n delay: number,\n canShow: () => boolean,\n) {\n cancelTimers(state);\n if (state.dismissed) {\n return;\n }\n state.showTimer = setTimeout(() => {\n state.showTimer = null;\n if (!canShow()) {\n return;\n }\n showPopover(state);\n }, delay);\n}\n\nfunction scheduleHide(state: TooltipState) {\n cancelTimers(state);\n state.hideTimer = setTimeout(() => {\n state.hideTimer = null;\n hidePopover(state);\n }, HIDE_DELAY);\n}\n\nfunction mount(triggerEl: HTMLElement, binding: DirectiveBinding) {\n if (getText(binding) === null) {\n return;\n }\n\n const { popover: popoverEl, anchorName } = createPopover(triggerEl, binding);\n\n const state: TooltipState = {\n triggerEl,\n popoverEl,\n anchorName,\n showTimer: null,\n hideTimer: null,\n dismissed: false,\n visible: false,\n attached: false,\n scope: effectScope(),\n styleObserver: null,\n };\n\n stateMap.set(triggerEl, state);\n\n const canShow = () =>\n !isTruncatedMod(binding) || elementIsTruncated(triggerEl);\n\n const onMouseEnter = () => {\n state.dismissed = false;\n const delay = visibleCount > 0 ? 0 : SHOW_DELAY;\n scheduleShow(state, delay, canShow);\n };\n\n const onMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onFocusIn = () => {\n state.dismissed = false;\n if (triggerEl.matches(\":focus-visible\")) {\n scheduleShow(state, 0, canShow);\n }\n };\n\n const onFocusOut = () => {\n cancelTimers(state);\n hidePopover(state);\n };\n\n const onDocumentKeyDown = (e: KeyboardEvent) => {\n if (e.key === \"Escape\" && state.visible) {\n cancelTimers(state);\n hidePopover(state);\n state.dismissed = true;\n }\n };\n\n const onPopoverMouseEnter = () => {\n cancelTimers(state);\n };\n\n const onPopoverMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onScroll = () => {\n cancelTimers(state);\n if (state.visible) {\n hidePopover(state);\n }\n };\n\n state.scope.run(() => {\n useEventListener(triggerEl, \"mouseenter\", onMouseEnter);\n useEventListener(triggerEl, \"mouseleave\", onMouseLeave);\n useEventListener(triggerEl, \"focusin\", onFocusIn);\n useEventListener(triggerEl, \"focusout\", onFocusOut);\n useEventListener(document, \"keydown\", onDocumentKeyDown, true);\n useEventListener(document, \"scroll\", onScroll, true);\n\n useEventListener(popoverEl, \"mouseenter\", onPopoverMouseEnter);\n useEventListener(popoverEl, \"mouseleave\", onPopoverMouseLeave);\n });\n}\n\nfunction unmount(triggerEl: HTMLElement, binding?: DirectiveBinding) {\n const state = stateMap.get(triggerEl);\n if (state) {\n state.scope.stop();\n cancelTimers(state);\n hidePopover(state);\n stateMap.delete(triggerEl);\n }\n\n if (!binding || !isTruncatedMod(binding)) {\n triggerEl.removeAttribute(\"aria-describedby\");\n }\n}\n\nexport const vKdsTooltip: Directive<HTMLElement> = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n mount(el, binding);\n },\n\n updated(el: HTMLElement, binding: DirectiveBinding) {\n const state = stateMap.get(el);\n const newText = getText(binding);\n\n if (newText === null) {\n if (state) {\n unmount(el, binding);\n }\n return;\n }\n\n if (!state) {\n mount(el, binding);\n return;\n }\n\n state.popoverEl.textContent = newText;\n },\n\n unmounted(el: HTMLElement, binding: DirectiveBinding) {\n unmount(el, binding);\n },\n};\n\n/** @internal Reset module-level state for tests */\nexport function _resetVisibleCount() {\n visibleCount = 0;\n currentVisible = null;\n}\n","import {\n type DefineComponent,\n type Ref,\n type ShallowRef,\n markRaw,\n readonly,\n shallowRef,\n watch,\n} from \"vue\";\n\nimport type { KdsIconStatus } from \"./types\";\n\n// Module-scoped caches shared across all `KdsIcon` instances.\nconst iconCache = new Map<string, DefineComponent>();\nconst iconLoadPromises = new Map<string, Promise<DefineComponent>>();\n\n/**\n * Test-only helper to reset the module-scoped icon caches between tests.\n * Not part of the public API.\n */\nexport function __resetIconCacheForTesting() {\n iconCache.clear();\n iconLoadPromises.clear();\n}\n\nfunction useIcon({\n name,\n folder,\n}: {\n name: Ref<string>;\n folder: \"icons\" | \"type-icons\";\n}): {\n iconComponent: Readonly<ShallowRef<DefineComponent | null>>;\n status: Readonly<ShallowRef<KdsIconStatus>>;\n} {\n const iconComponent = shallowRef<DefineComponent | null>(null);\n const status = shallowRef<KdsIconStatus>(\"loading\");\n\n watch(\n () => name.value,\n (newName) => {\n const cacheKey = `${folder}/${newName}`;\n\n if (iconCache.has(cacheKey)) {\n iconComponent.value = iconCache.get(cacheKey)!;\n status.value = \"loaded\";\n return;\n }\n\n status.value = \"loading\";\n\n // Deduplicate concurrent imports for the same icon so that rendering\n // many instances of the same icon at once only triggers a single\n // network request.\n let loadPromise = iconLoadPromises.get(cacheKey);\n if (!loadPromise) {\n // Do *not* change this code to use try/catch blocks:\n // try/catch relies on the async frame being intact when the rejection resumes.\n // Which might be gone due to vue teardown.\n // `.catch()` registers a reaction on the Promise's internal [[PromiseRejectReactions]]\n // slot directly, so it doesn't depend on a live call frame.\n loadPromise = import(\n `../../../../node_modules/@knime/kds-styles/dist/img/${folder}/${newName}.svg`\n )\n .then((module) => {\n const component = markRaw(module.default);\n iconCache.set(cacheKey, component);\n iconLoadPromises.delete(cacheKey);\n return component;\n })\n .catch((error) => {\n iconLoadPromises.delete(cacheKey);\n throw error;\n });\n iconLoadPromises.set(cacheKey, loadPromise);\n }\n\n loadPromise\n .then((component) => {\n // ignore stale resolutions if the name has changed in the meantime\n if (name.value !== newName) {\n return;\n }\n iconComponent.value = component;\n status.value = \"loaded\";\n })\n .catch((error) => {\n // do not log an abort, might happen due to teardown\n if (error.name === \"AbortError\") {\n return;\n }\n\n // ignore stale rejections if the name has changed in the meantime,\n // so we don't spam the console with errors for icons that are no\n // longer requested\n if (name.value !== newName) {\n return;\n }\n\n // eslint-disable-next-line no-console\n console.error(\n `Failed to load icon \"${newName}\" from folder \"${folder}\":`,\n error,\n );\n\n iconComponent.value = null;\n status.value = \"error\";\n });\n },\n { immediate: true },\n );\n\n return {\n iconComponent: readonly(iconComponent) as Readonly<\n ShallowRef<DefineComponent | null>\n >,\n status: readonly(status) as Readonly<ShallowRef<KdsIconStatus>>,\n };\n}\n\nexport default useIcon;\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n"],"mappings":";;;;AAGA,SAAgB,6BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,cAAc,QAAQ;AACvC;AAEA,SAAgB,2BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,eAAe,QAAQ;AACxC;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,YAAqC;CACrE,MAAM,cAAc,IAAI,KAAK;CAE7B,MAAM,wBAAwB;EAC5B,YAAY,QACV,6BAA6B,WAAW,KAAK,KAC7C,2BAA2B,WAAW,KAAK;CAC/C;CAEA,kBAAkB,YAAY,eAAe;CAI7C,oBAAoB,YAAY,iBAAiB;EAC/C,WAAW;EACX,eAAe;EACf,SAAS;EAGT,YAAY;EACZ,iBAAiB,CAAC,SAAS,OAAO;CACpC,CAAC;CAED,OAAO,EAAE,YAAY;AACvB;;;ACnCA,IAAM,aAAa;AACnB,IAAM,aAAa;AAEnB,IAAM,2BAAW,IAAI,QAAmC;AAExD,IAAI,eAAe;AACnB,IAAI,iBAAsC;AAE1C,SAAgB,mBAAmB,MAA8B;CAC/D,MAAM,MAAM,SAAS,cAAc,KAAK;CACxC,IAAI,UAAU,IAAI,aAAa;CAC/B,IAAI,cAAc;CAClB,O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UAAI,QAAA,SAAQ;IAAA,CAAA;IACpC,sBAAoB,MAAM;IAC3B,eAAY;IACZ,WAAU;iEAEZ,mBAME,QAAA;;IAJC,OAAK,eAAA;KAAA;KAAe,QAAA;KAAI,EAAA,UAAI,QAAA,SAAQ;IAAA,CAAA;IACpC,sBAAoB,MAAM;IAC3B,eAAY;IACZ,WAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KdsPopover-Bqel9iqk.js","names":[],"sources":["../src/layouts/overlays/Popover/enums.ts","../src/layouts/overlays/Popover/KdsPopover.vue","../src/layouts/overlays/Popover/KdsPopover.vue"],"sourcesContent":["export const kdsPopoverPlacement = {\n TOP_LEFT: \"top-left\",\n TOP_CENTER: \"top-center\",\n TOP_RIGHT: \"top-right\",\n BOTTOM_LEFT: \"bottom-left\",\n BOTTOM_CENTER: \"bottom-center\",\n BOTTOM_RIGHT: \"bottom-right\",\n CUSTOM: \"custom\",\n} as const;\n\nexport const kdsPopoverPlacements = Object.values(kdsPopoverPlacement);\n\nexport const kdsPopoverRole = {\n DIALOG: \"dialog\",\n MENU: \"menu\",\n LISTBOX: \"listbox\",\n} as const;\n\nexport const kdsPopoverRoles = Object.values(kdsPopoverRole);\n\nexport const kdsPopoverType = {\n AUTO: \"auto\",\n MANUAL: \"manual\",\n} as const;\n\nexport const kdsPopoverTypes = Object.values(kdsPopoverType);\n","<script setup lang=\"ts\">\nimport { computed, useId, useTemplateRef, watchEffect } from \"vue\";\n\nimport { kdsPopoverPlacement } from \"./enums\";\nimport type { KdsPopoverExpose, KdsPopoverProps } from \"./types\";\n\nconst {\n placement = \"bottom-left\",\n popoverType = \"auto\",\n fullWidth = false,\n maxInlineSize = undefined,\n stretchInline = false,\n ...props\n} = defineProps<KdsPopoverProps>();\n\n/** Whether the popover is open. */\nconst open = defineModel<boolean>({ default: false });\nconst popoverEl = useTemplateRef(\"popoverEl\");\n\nconst popoverId = useId();\nconst anchorName = `--anchor-${popoverId}`;\n\n// Sync the open state with the native popover element's open state\nwatchEffect(() => {\n if (open.value) {\n popoverEl.value?.showPopover?.();\n } else {\n popoverEl.value?.hidePopover?.();\n }\n});\n\nconst anchorStyle: Record<string, string> =\n placement === kdsPopoverPlacement.CUSTOM ? {} : { \"anchor-name\": anchorName };\n\nconst onToggle = (event: ToggleEvent) => {\n open.value = event.newState === \"open\";\n};\n\ndefineExpose<KdsPopoverExpose>({ anchorStyle, popoverId });\n\ndefineSlots<{\n /**\n * Custom content for the popover. When provided, overrides the `content` prop.\n */\n default(): unknown;\n}>();\n\nconst viewportCappedMaxInlineSize = computed(() =>\n maxInlineSize\n ? `min(${maxInlineSize}, var(--popover-viewport-max-inline-size))`\n : undefined,\n);\n\nconst wrapperStyles = computed(() => {\n if (\n placement === kdsPopoverPlacement.CUSTOM &&\n props.customPlacementPosition\n ) {\n return {\n \"max-inline-size\": viewportCappedMaxInlineSize.value,\n left: `${props.customPlacementPosition.x}px`,\n top: `${props.customPlacementPosition.y}px`,\n };\n }\n\n return {\n \"position-anchor\": anchorName,\n \"max-inline-size\": viewportCappedMaxInlineSize.value,\n // Fill the position area instead of stretching, so the popover stays\n // aligned to the anchor when a fallback flips it\n ...(stretchInline && {\n \"inline-size\": \"calc(100% - var(--popover-offset))\",\n }),\n };\n});\n</script>\n\n<template>\n <div\n :id=\"popoverId\"\n ref=\"popoverEl\"\n class=\"kds-popover\"\n :class=\"['floating', placement, { 'full-width': fullWidth }]\"\n :popover=\"popoverType\"\n :style=\"wrapperStyles\"\n :role=\"props.role\"\n @toggle=\"onToggle\"\n >\n <slot>\n <div\n v-if=\"props.content?.trim().length\"\n class=\"kds-popover-default-content\"\n >\n {{ props.content }}\n </div>\n </slot>\n </div>\n</template>\n\n<style scoped>\n.kds-popover {\n /* Gap to the anchor and to the viewport edges */\n --popover-offset: var(--kds-spacing-container-0-25x);\n --popover-viewport-max-inline-size: calc(100vw - 2 * var(--popover-offset));\n\n max-inline-size: var(--popover-viewport-max-inline-size);\n padding: 0;\n margin: 0;\n overflow: visible;\n font: inherit;\n color: inherit;\n background-color: transparent;\n border: none;\n border-radius: 0;\n box-shadow: none;\n\n &.full-width {\n --popover-full-width: min(\n anchor-size(width),\n var(--popover-viewport-max-inline-size)\n );\n\n min-inline-size: var(--popover-full-width);\n max-inline-size: var(--popover-full-width);\n }\n\n /*\n * position-area places the popover in a region of the grid around the\n * anchor. When no fallback fits, the browser shifts the popover back into\n * the viewport instead of letting it overflow.\n *\n * The centered fallbacks span the whole viewport width, so the browser can\n * still choose between below and above when the popover is too wide for\n * either side of the anchor.\n *\n * All placements share this list. Chromium crashes when a flipped popover\n * switches to a placement with a different position-area and a shorter list.\n */\n &:not(.custom) {\n position-try-fallbacks:\n flip-inline,\n flip-block,\n flip-block flip-inline,\n --kds-popover-try-bottom-centered,\n --kds-popover-try-top-centered;\n }\n\n &.floating.top-left,\n &.floating.bottom-left {\n margin: var(--popover-offset) var(--popover-offset) var(--popover-offset) 0;\n }\n\n &.floating.top-right,\n &.floating.bottom-right {\n margin: var(--popover-offset) 0 var(--popover-offset) var(--popover-offset);\n }\n\n &.floating.top-center,\n &.floating.bottom-center {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n }\n\n &.floating.top-left {\n position-area: top span-right;\n }\n\n &.floating.top-center {\n position-area: top span-all;\n }\n\n &.floating.top-right {\n position-area: top span-left;\n }\n\n &.floating.bottom-left {\n position-area: bottom span-right;\n }\n\n &.floating.bottom-center {\n position-area: bottom span-all;\n }\n\n &.floating.bottom-right {\n position-area: bottom span-left;\n }\n\n /*\n * For custom placement the popover is positioned statically via inline\n * left/top styles. Explicitly clear the UA default `inset: 0` so the\n * popover doesn't stretch to the viewport edges (which would break\n * light-dismiss / click-outside behavior).\n */\n &.floating.custom {\n position: fixed;\n inset: auto;\n margin: 0;\n }\n}\n\n@position-try --kds-popover-try-bottom-centered {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n position-area: bottom span-all;\n}\n\n@position-try --kds-popover-try-top-centered {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n position-area: top span-all;\n}\n\n.kds-popover-default-content {\n padding: var(--kds-spacing-container-0-75x);\n font: var(--kds-font-base-body-small);\n color: var(--kds-color-text-and-icon-neutral);\n background-color: var(--kds-color-surface-default);\n border-radius: var(--kds-border-radius-container-0-37x);\n box-shadow: var(--kds-elevation-level-3);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { computed, useId, useTemplateRef, watchEffect } from \"vue\";\n\nimport { kdsPopoverPlacement } from \"./enums\";\nimport type { KdsPopoverExpose, KdsPopoverProps } from \"./types\";\n\nconst {\n placement = \"bottom-left\",\n popoverType = \"auto\",\n fullWidth = false,\n maxInlineSize = undefined,\n stretchInline = false,\n ...props\n} = defineProps<KdsPopoverProps>();\n\n/** Whether the popover is open. */\nconst open = defineModel<boolean>({ default: false });\nconst popoverEl = useTemplateRef(\"popoverEl\");\n\nconst popoverId = useId();\nconst anchorName = `--anchor-${popoverId}`;\n\n// Sync the open state with the native popover element's open state\nwatchEffect(() => {\n if (open.value) {\n popoverEl.value?.showPopover?.();\n } else {\n popoverEl.value?.hidePopover?.();\n }\n});\n\nconst anchorStyle: Record<string, string> =\n placement === kdsPopoverPlacement.CUSTOM ? {} : { \"anchor-name\": anchorName };\n\nconst onToggle = (event: ToggleEvent) => {\n open.value = event.newState === \"open\";\n};\n\ndefineExpose<KdsPopoverExpose>({ anchorStyle, popoverId });\n\ndefineSlots<{\n /**\n * Custom content for the popover. When provided, overrides the `content` prop.\n */\n default(): unknown;\n}>();\n\nconst viewportCappedMaxInlineSize = computed(() =>\n maxInlineSize\n ? `min(${maxInlineSize}, var(--popover-viewport-max-inline-size))`\n : undefined,\n);\n\nconst wrapperStyles = computed(() => {\n if (\n placement === kdsPopoverPlacement.CUSTOM &&\n props.customPlacementPosition\n ) {\n return {\n \"max-inline-size\": viewportCappedMaxInlineSize.value,\n left: `${props.customPlacementPosition.x}px`,\n top: `${props.customPlacementPosition.y}px`,\n };\n }\n\n return {\n \"position-anchor\": anchorName,\n \"max-inline-size\": viewportCappedMaxInlineSize.value,\n // Fill the position area instead of stretching, so the popover stays\n // aligned to the anchor when a fallback flips it\n ...(stretchInline && {\n \"inline-size\": \"calc(100% - var(--popover-offset))\",\n }),\n };\n});\n</script>\n\n<template>\n <div\n :id=\"popoverId\"\n ref=\"popoverEl\"\n class=\"kds-popover\"\n :class=\"['floating', placement, { 'full-width': fullWidth }]\"\n :popover=\"popoverType\"\n :style=\"wrapperStyles\"\n :role=\"props.role\"\n @toggle=\"onToggle\"\n >\n <slot>\n <div\n v-if=\"props.content?.trim().length\"\n class=\"kds-popover-default-content\"\n >\n {{ props.content }}\n </div>\n </slot>\n </div>\n</template>\n\n<style scoped>\n.kds-popover {\n /* Gap to the anchor and to the viewport edges */\n --popover-offset: var(--kds-spacing-container-0-25x);\n --popover-viewport-max-inline-size: calc(100vw - 2 * var(--popover-offset));\n\n max-inline-size: var(--popover-viewport-max-inline-size);\n padding: 0;\n margin: 0;\n overflow: visible;\n font: inherit;\n color: inherit;\n background-color: transparent;\n border: none;\n border-radius: 0;\n box-shadow: none;\n\n &.full-width {\n --popover-full-width: min(\n anchor-size(width),\n var(--popover-viewport-max-inline-size)\n );\n\n min-inline-size: var(--popover-full-width);\n max-inline-size: var(--popover-full-width);\n }\n\n /*\n * position-area places the popover in a region of the grid around the\n * anchor. When no fallback fits, the browser shifts the popover back into\n * the viewport instead of letting it overflow.\n *\n * The centered fallbacks span the whole viewport width, so the browser can\n * still choose between below and above when the popover is too wide for\n * either side of the anchor.\n *\n * All placements share this list. Chromium crashes when a flipped popover\n * switches to a placement with a different position-area and a shorter list.\n */\n &:not(.custom) {\n position-try-fallbacks:\n flip-inline,\n flip-block,\n flip-block flip-inline,\n --kds-popover-try-bottom-centered,\n --kds-popover-try-top-centered;\n }\n\n &.floating.top-left,\n &.floating.bottom-left {\n margin: var(--popover-offset) var(--popover-offset) var(--popover-offset) 0;\n }\n\n &.floating.top-right,\n &.floating.bottom-right {\n margin: var(--popover-offset) 0 var(--popover-offset) var(--popover-offset);\n }\n\n &.floating.top-center,\n &.floating.bottom-center {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n }\n\n &.floating.top-left {\n position-area: top span-right;\n }\n\n &.floating.top-center {\n position-area: top span-all;\n }\n\n &.floating.top-right {\n position-area: top span-left;\n }\n\n &.floating.bottom-left {\n position-area: bottom span-right;\n }\n\n &.floating.bottom-center {\n position-area: bottom span-all;\n }\n\n &.floating.bottom-right {\n position-area: bottom span-left;\n }\n\n /*\n * For custom placement the popover is positioned statically via inline\n * left/top styles. Explicitly clear the UA default `inset: 0` so the\n * popover doesn't stretch to the viewport edges (which would break\n * light-dismiss / click-outside behavior).\n */\n &.floating.custom {\n position: fixed;\n inset: auto;\n margin: 0;\n }\n}\n\n@position-try --kds-popover-try-bottom-centered {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n position-area: bottom span-all;\n}\n\n@position-try --kds-popover-try-top-centered {\n justify-self: anchor-center;\n margin: var(--popover-offset);\n position-area: top span-all;\n}\n\n.kds-popover-default-content {\n padding: var(--kds-spacing-container-0-75x);\n font: var(--kds-font-base-body-small);\n color: var(--kds-color-text-and-icon-neutral);\n background-color: var(--kds-color-surface-default);\n border-radius: var(--kds-border-radius-container-0-37x);\n box-shadow: var(--kds-elevation-level-3);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAa,sBAAsB;CACjC,UAAU;CACV,YAAY;CACZ,WAAW;CACX,aAAa;CACb,eAAe;CACf,cAAc;CACd,QAAQ;AACV;AAEA,IAAa,uBAAuB,OAAO,OAAO,mBAAmB;AAErE,IAAa,iBAAiB;CAC5B,QAAQ;CACR,MAAM;CACN,SAAS;AACX;AAEA,IAAa,kBAAkB,OAAO,OAAO,cAAc;AAE3D,IAAa,iBAAiB;CAC5B,MAAM;CACN,QAAQ;AACV;AAEA,IAAa,kBAAkB,OAAO,OAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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