@knime/kds-components 13.6.0 → 14.0.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 +40 -0
- package/dist/{KdsIcon-C6QibTIl.js → KdsIcon-Tvw8bbUN.js} +118 -91
- package/dist/KdsIcon-Tvw8bbUN.js.map +1 -0
- package/dist/index.css +138 -105
- package/dist/index.js +67 -63
- package/dist/index.js.map +1 -1
- package/dist/src/components/feedback/ProgressBar/types.d.ts +1 -1
- package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts.map +1 -1
- package/dist/src/components/forms/RadioButton/KdsRadioButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/BaseInput.vue.d.ts +2 -2
- package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +2 -2
- package/dist/src/components/forms/selects/Dropdown/BaseDropdown.vue.d.ts +2 -2
- package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts +2 -2
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
- package/dist/src/layouts/panels/{Collapsable/KdsCollapsable.vue.d.ts → Collapsible/KdsCollapsible.vue.d.ts} +79 -17
- package/dist/src/layouts/panels/Collapsible/KdsCollapsible.vue.d.ts.map +1 -0
- package/dist/src/layouts/panels/Collapsible/enums.d.ts +15 -0
- package/dist/src/layouts/panels/Collapsible/enums.d.ts.map +1 -0
- package/dist/src/layouts/panels/Collapsible/index.d.ts +4 -0
- package/dist/src/layouts/panels/Collapsible/index.d.ts.map +1 -0
- package/dist/src/layouts/panels/Collapsible/types.d.ts +92 -0
- package/dist/src/layouts/panels/Collapsible/types.d.ts.map +1 -0
- package/dist/src/layouts/panels/Panel/enums.d.ts +1 -1
- package/dist/src/layouts/panels/index.d.ts +2 -2
- package/package.json +6 -6
- package/dist/KdsIcon-C6QibTIl.js.map +0 -1
- package/dist/src/layouts/panels/Collapsable/KdsCollapsable.vue.d.ts.map +0 -1
- package/dist/src/layouts/panels/Collapsable/enums.d.ts +0 -13
- package/dist/src/layouts/panels/Collapsable/enums.d.ts.map +0 -1
- package/dist/src/layouts/panels/Collapsable/index.d.ts +0 -4
- package/dist/src/layouts/panels/Collapsable/index.d.ts.map +0 -1
- package/dist/src/layouts/panels/Collapsable/types.d.ts +0 -69
- package/dist/src/layouts/panels/Collapsable/types.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @knime/kds-components
|
|
2
2
|
|
|
3
|
+
## 14.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b40fd5d: SLEEK-1068: KdsMenuContainer: change order of handler and close to enable the handler to gain focus.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @knime/kds-styles@14.0.1
|
|
10
|
+
|
|
11
|
+
## 14.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- 77dfeb3: - `KdsCollapsible`:
|
|
16
|
+
- fix custom `leading` slot content, such as text with a link, breaking onto separate lines.
|
|
17
|
+
- refine the header layout: centre the `inline` header vertically, show the `leadingIcon` in its own column next to the texts, and render the `inline` headline bold.
|
|
18
|
+
- remove the top padding of the expanded `section` content.
|
|
19
|
+
|
|
20
|
+
BREAKING CHANGES:
|
|
21
|
+
|
|
22
|
+
- `KdsCollapsable`: rename to `KdsCollapsible`, along with its types and enums (`KdsCollapsableProps` → `KdsCollapsibleProps`, `kdsCollapsableToggle` → `kdsCollapsibleToggle`, …).
|
|
23
|
+
- `KdsCollapsible`:
|
|
24
|
+
- replace the `size` prop with `variant`: `large` → `section`, `small` → `inline`. The enum and type are `kdsCollapsibleVariant(s)` and `KdsCollapsibleVariant`.
|
|
25
|
+
- render `subText` only together with a `description`, and `leadingIcon` only together with a `headline` or `description`. For an icon-only header, use the `leading` slot with `ariaLabel`.
|
|
26
|
+
|
|
27
|
+
- 6152761: BREAKING CHANGES:
|
|
28
|
+
|
|
29
|
+
- Require Node.js 26 or later (`engines.node` is `>=26`).
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 3c68cfe: `KdsDropzone`: fix the focus outline of a file's remove button being clipped by the file list.
|
|
34
|
+
- fe1aa3e: - `vKdsTooltip`:
|
|
35
|
+
- create the tooltip element and its document listeners only on hover or focus, so pages with many tooltips mount and scroll faster.
|
|
36
|
+
- describe the trigger with `aria-description` so screen readers announce the tooltip text while it is hidden. `aria-describedby` now references the tooltip only while it is shown. Neither is set when the tooltip text equals the trigger's `aria-label`.
|
|
37
|
+
- keep ids that the trigger's component puts into `aria-describedby`, such as a checkbox's helper or error text. The tooltip now adds and removes only its own id.
|
|
38
|
+
- b781c24: - `KdsRadioButton`: center the radio control when `text` and `helperText` are empty. The empty label no longer takes up the gap next to the control.
|
|
39
|
+
- Updated dependencies [6152761]
|
|
40
|
+
- @knime/kds-styles@14.0.0
|
|
41
|
+
- @knime/utils@3.0.0
|
|
42
|
+
|
|
3
43
|
## 13.6.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as _plugin_vue_export_helper_default } from "./KdsPopover-DezPib64.js";
|
|
2
|
-
import { createBlock, createElementBlock, createPropsRestProxy, defineComponent,
|
|
3
|
-
import {
|
|
2
|
+
import { createBlock, createElementBlock, createPropsRestProxy, defineComponent, markRaw, normalizeClass, openBlock, readonly, ref, resolveDynamicComponent, shallowRef, toRef, unref, watch } from "vue";
|
|
3
|
+
import { useMutationObserver, useResizeObserver } from "@vueuse/core";
|
|
4
4
|
import './KdsIcon.css';//#region src/util/useKdsIsTruncated.ts
|
|
5
5
|
function elementOverflowsHorizontally(element) {
|
|
6
6
|
if (!element) return false;
|
|
@@ -61,26 +61,25 @@ function isTruncatedMod(binding) {
|
|
|
61
61
|
function elementIsTruncated(el) {
|
|
62
62
|
return elementOverflowsHorizontally(el) || elementOverflowsVertically(el);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
-
popover.setAttribute("popover", "manual");
|
|
67
|
-
popover.setAttribute("role", "tooltip");
|
|
68
|
-
popover.setAttribute("aria-hidden", "true");
|
|
69
|
-
const id = `kds-tooltip-${crypto.randomUUID()}`;
|
|
70
|
-
popover.id = id;
|
|
71
|
-
if (!isTruncatedMod(binding)) triggerEl.setAttribute("aria-describedby", id);
|
|
72
|
-
return popover;
|
|
64
|
+
function canShow(state) {
|
|
65
|
+
return !state.truncated || elementIsTruncated(state.triggerEl);
|
|
73
66
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
function setDescribedById(el, id, present) {
|
|
68
|
+
const ids = (el.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((other) => other && other !== id);
|
|
69
|
+
if (present) ids.push(id);
|
|
70
|
+
if (ids.length > 0) el.setAttribute("aria-describedby", ids.join(" "));
|
|
71
|
+
else el.removeAttribute("aria-describedby");
|
|
79
72
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
state.
|
|
73
|
+
function syncDescription(state) {
|
|
74
|
+
if (state.truncated) return;
|
|
75
|
+
const { triggerEl } = state;
|
|
76
|
+
if (state.text.trim() === triggerEl.getAttribute("aria-label")?.trim()) {
|
|
77
|
+
triggerEl.removeAttribute("aria-description");
|
|
78
|
+
setDescribedById(triggerEl, state.id, false);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
triggerEl.setAttribute("aria-description", state.text);
|
|
82
|
+
setDescribedById(triggerEl, state.id, state.attached);
|
|
84
83
|
}
|
|
85
84
|
function cancelTimers(state) {
|
|
86
85
|
if (state.showTimer !== null) {
|
|
@@ -92,113 +91,139 @@ function cancelTimers(state) {
|
|
|
92
91
|
state.hideTimer = null;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
94
|
+
function detachPopover(state) {
|
|
95
|
+
if (!state.attached) return;
|
|
96
|
+
state.attached = false;
|
|
97
|
+
state.popoverEl?.remove();
|
|
98
|
+
syncDescription(state);
|
|
99
|
+
}
|
|
95
100
|
function hidePopover(state) {
|
|
96
101
|
if (!state.visible) return;
|
|
97
102
|
state.visible = false;
|
|
98
103
|
visibleCount--;
|
|
99
104
|
if (currentVisible === state) currentVisible = null;
|
|
100
105
|
try {
|
|
101
|
-
state.popoverEl
|
|
106
|
+
state.popoverEl?.hidePopover();
|
|
102
107
|
} catch {}
|
|
103
108
|
detachPopover(state);
|
|
104
109
|
}
|
|
110
|
+
function deactivate(state) {
|
|
111
|
+
cancelTimers(state);
|
|
112
|
+
hidePopover(state);
|
|
113
|
+
state.documentListeners?.abort();
|
|
114
|
+
state.documentListeners = null;
|
|
115
|
+
}
|
|
116
|
+
function onDocumentKeyDown(state, event) {
|
|
117
|
+
if (event.key === "Escape" && state.visible) {
|
|
118
|
+
deactivate(state);
|
|
119
|
+
state.dismissed = true;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function activate(state) {
|
|
123
|
+
if (state.documentListeners) return;
|
|
124
|
+
const controller = new AbortController();
|
|
125
|
+
const options = {
|
|
126
|
+
capture: true,
|
|
127
|
+
signal: controller.signal
|
|
128
|
+
};
|
|
129
|
+
document.addEventListener("keydown", (event) => onDocumentKeyDown(state, event), options);
|
|
130
|
+
document.addEventListener("scroll", () => deactivate(state), options);
|
|
131
|
+
state.documentListeners = controller;
|
|
132
|
+
}
|
|
133
|
+
function scheduleHide(state) {
|
|
134
|
+
cancelTimers(state);
|
|
135
|
+
state.hideTimer = setTimeout(() => {
|
|
136
|
+
state.hideTimer = null;
|
|
137
|
+
deactivate(state);
|
|
138
|
+
}, HIDE_DELAY);
|
|
139
|
+
}
|
|
140
|
+
function getPopover(state) {
|
|
141
|
+
if (state.popoverEl) return state.popoverEl;
|
|
142
|
+
const popover = generateTooltipDiv(state.text);
|
|
143
|
+
popover.setAttribute("popover", "manual");
|
|
144
|
+
popover.setAttribute("role", "tooltip");
|
|
145
|
+
popover.setAttribute("aria-hidden", "true");
|
|
146
|
+
popover.id = state.id;
|
|
147
|
+
popover.addEventListener("mouseenter", () => cancelTimers(state));
|
|
148
|
+
popover.addEventListener("mouseleave", () => scheduleHide(state));
|
|
149
|
+
state.popoverEl = popover;
|
|
150
|
+
return popover;
|
|
151
|
+
}
|
|
152
|
+
function attachPopover(state) {
|
|
153
|
+
const popoverEl = getPopover(state);
|
|
154
|
+
if (state.attached) return popoverEl;
|
|
155
|
+
state.attached = true;
|
|
156
|
+
const root = state.triggerEl.getRootNode();
|
|
157
|
+
(root === document ? document.body : root).appendChild(popoverEl);
|
|
158
|
+
syncDescription(state);
|
|
159
|
+
return popoverEl;
|
|
160
|
+
}
|
|
105
161
|
function showPopover(state) {
|
|
106
162
|
if (state.visible) return;
|
|
107
|
-
if (currentVisible && currentVisible !== state)
|
|
108
|
-
|
|
109
|
-
hidePopover(currentVisible);
|
|
110
|
-
}
|
|
111
|
-
attachPopover(state);
|
|
163
|
+
if (currentVisible && currentVisible !== state) deactivate(currentVisible);
|
|
164
|
+
const popoverEl = attachPopover(state);
|
|
112
165
|
try {
|
|
113
|
-
|
|
166
|
+
popoverEl.showPopover({ source: state.triggerEl });
|
|
114
167
|
} catch {}
|
|
115
168
|
state.visible = true;
|
|
116
169
|
visibleCount++;
|
|
117
170
|
currentVisible = state;
|
|
118
171
|
}
|
|
119
|
-
function scheduleShow(state, delay
|
|
172
|
+
function scheduleShow(state, delay) {
|
|
120
173
|
cancelTimers(state);
|
|
121
174
|
if (state.dismissed) return;
|
|
175
|
+
activate(state);
|
|
122
176
|
state.showTimer = setTimeout(() => {
|
|
123
177
|
state.showTimer = null;
|
|
124
|
-
if (!canShow())
|
|
178
|
+
if (!canShow(state)) {
|
|
179
|
+
deactivate(state);
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
125
182
|
showPopover(state);
|
|
126
183
|
}, delay);
|
|
127
184
|
}
|
|
128
|
-
function scheduleHide(state) {
|
|
129
|
-
cancelTimers(state);
|
|
130
|
-
state.hideTimer = setTimeout(() => {
|
|
131
|
-
state.hideTimer = null;
|
|
132
|
-
hidePopover(state);
|
|
133
|
-
}, HIDE_DELAY);
|
|
134
|
-
}
|
|
135
185
|
function mount(triggerEl, binding) {
|
|
136
|
-
|
|
137
|
-
|
|
186
|
+
const text = getText(binding);
|
|
187
|
+
if (text === null) return;
|
|
138
188
|
const state = {
|
|
139
189
|
triggerEl,
|
|
140
|
-
|
|
190
|
+
text,
|
|
191
|
+
id: `kds-tooltip-${crypto.randomUUID()}`,
|
|
192
|
+
truncated: isTruncatedMod(binding),
|
|
193
|
+
popoverEl: null,
|
|
141
194
|
showTimer: null,
|
|
142
195
|
hideTimer: null,
|
|
143
196
|
dismissed: false,
|
|
144
197
|
visible: false,
|
|
145
198
|
attached: false,
|
|
146
|
-
|
|
199
|
+
triggerListeners: new AbortController(),
|
|
200
|
+
documentListeners: null
|
|
147
201
|
};
|
|
148
202
|
stateMap.set(triggerEl, state);
|
|
149
|
-
|
|
150
|
-
const
|
|
203
|
+
syncDescription(state);
|
|
204
|
+
const options = { signal: state.triggerListeners.signal };
|
|
205
|
+
triggerEl.addEventListener("mouseenter", () => {
|
|
151
206
|
state.dismissed = false;
|
|
152
|
-
scheduleShow(state, visibleCount > 0 ? 0 : SHOW_DELAY
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
};
|
|
157
|
-
const onFocusIn = () => {
|
|
207
|
+
scheduleShow(state, visibleCount > 0 ? 0 : SHOW_DELAY);
|
|
208
|
+
}, options);
|
|
209
|
+
triggerEl.addEventListener("mouseleave", () => scheduleHide(state), options);
|
|
210
|
+
triggerEl.addEventListener("focusin", () => {
|
|
158
211
|
state.dismissed = false;
|
|
159
|
-
if (triggerEl.matches(":focus-visible")) scheduleShow(state, 0
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
cancelTimers(state);
|
|
163
|
-
hidePopover(state);
|
|
164
|
-
};
|
|
165
|
-
const onDocumentKeyDown = (e) => {
|
|
166
|
-
if (e.key === "Escape" && state.visible) {
|
|
167
|
-
cancelTimers(state);
|
|
168
|
-
hidePopover(state);
|
|
169
|
-
state.dismissed = true;
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
const onPopoverMouseEnter = () => {
|
|
173
|
-
cancelTimers(state);
|
|
174
|
-
};
|
|
175
|
-
const onPopoverMouseLeave = () => {
|
|
176
|
-
scheduleHide(state);
|
|
177
|
-
};
|
|
178
|
-
const onScroll = () => {
|
|
179
|
-
cancelTimers(state);
|
|
180
|
-
if (state.visible) hidePopover(state);
|
|
181
|
-
};
|
|
182
|
-
state.scope.run(() => {
|
|
183
|
-
useEventListener(triggerEl, "mouseenter", onMouseEnter);
|
|
184
|
-
useEventListener(triggerEl, "mouseleave", onMouseLeave);
|
|
185
|
-
useEventListener(triggerEl, "focusin", onFocusIn);
|
|
186
|
-
useEventListener(triggerEl, "focusout", onFocusOut);
|
|
187
|
-
useEventListener(document, "keydown", onDocumentKeyDown, true);
|
|
188
|
-
useEventListener(document, "scroll", onScroll, true);
|
|
189
|
-
useEventListener(popoverEl, "mouseenter", onPopoverMouseEnter);
|
|
190
|
-
useEventListener(popoverEl, "mouseleave", onPopoverMouseLeave);
|
|
191
|
-
});
|
|
212
|
+
if (triggerEl.matches(":focus-visible")) scheduleShow(state, 0);
|
|
213
|
+
}, options);
|
|
214
|
+
triggerEl.addEventListener("focusout", () => deactivate(state), options);
|
|
192
215
|
}
|
|
193
|
-
function unmount(triggerEl
|
|
216
|
+
function unmount(triggerEl) {
|
|
194
217
|
const state = stateMap.get(triggerEl);
|
|
195
218
|
if (state) {
|
|
196
|
-
state.
|
|
197
|
-
|
|
198
|
-
hidePopover(state);
|
|
219
|
+
state.triggerListeners.abort();
|
|
220
|
+
deactivate(state);
|
|
199
221
|
stateMap.delete(triggerEl);
|
|
222
|
+
if (!state.truncated) {
|
|
223
|
+
setDescribedById(triggerEl, state.id, false);
|
|
224
|
+
triggerEl.removeAttribute("aria-description");
|
|
225
|
+
}
|
|
200
226
|
}
|
|
201
|
-
if (!binding || !isTruncatedMod(binding)) triggerEl.removeAttribute("aria-describedby");
|
|
202
227
|
}
|
|
203
228
|
var vKdsTooltip = {
|
|
204
229
|
mounted(el, binding) {
|
|
@@ -208,17 +233,19 @@ var vKdsTooltip = {
|
|
|
208
233
|
const state = stateMap.get(el);
|
|
209
234
|
const newText = getText(binding);
|
|
210
235
|
if (newText === null) {
|
|
211
|
-
if (state) unmount(el
|
|
236
|
+
if (state) unmount(el);
|
|
212
237
|
return;
|
|
213
238
|
}
|
|
214
239
|
if (!state) {
|
|
215
240
|
mount(el, binding);
|
|
216
241
|
return;
|
|
217
242
|
}
|
|
218
|
-
state.
|
|
243
|
+
state.text = newText;
|
|
244
|
+
syncDescription(state);
|
|
245
|
+
if (state.popoverEl) state.popoverEl.textContent = newText;
|
|
219
246
|
},
|
|
220
|
-
unmounted(el
|
|
221
|
-
unmount(el
|
|
247
|
+
unmounted(el) {
|
|
248
|
+
unmount(el);
|
|
222
249
|
}
|
|
223
250
|
};
|
|
224
251
|
//#endregion
|
|
@@ -578,4 +605,4 @@ var KdsIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
578
605
|
//#endregion
|
|
579
606
|
export { useKdsIsTruncated as a, elementOverflowsHorizontally as i, useIcon as n, vKdsTooltip as r, KdsIcon_default as t };
|
|
580
607
|
|
|
581
|
-
//# sourceMappingURL=KdsIcon-
|
|
608
|
+
//# sourceMappingURL=KdsIcon-Tvw8bbUN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsIcon-Tvw8bbUN.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, DirectiveBinding } from \"vue\";\n\nimport {\n elementOverflowsHorizontally,\n elementOverflowsVertically,\n} from \"../../../util/useKdsIsTruncated\";\nimport \"./vKdsTooltip.css\";\n\n/*\n * Pages can bind this directive to thousands of elements, while at most one\n * tooltip is visible at a time. So mounting only registers the trigger\n * listeners. The popover element is created on the first hover or focus and\n * kept for reuse; the document listeners exist only while the tooltip is\n * pending or shown.\n */\ntype TooltipState = {\n triggerEl: HTMLElement;\n text: string;\n id: string;\n truncated: boolean;\n popoverEl: HTMLDivElement | null;\n showTimer: ReturnType<typeof setTimeout> | null;\n hideTimer: ReturnType<typeof setTimeout> | null;\n dismissed: boolean;\n visible: boolean;\n attached: boolean;\n // Aborts the listeners on the trigger element\n triggerListeners: AbortController;\n // Aborts the document listeners; only set while a tooltip is pending or shown\n documentListeners: AbortController | 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\nfunction canShow(state: TooltipState): boolean {\n return !state.truncated || elementIsTruncated(state.triggerEl);\n}\n\n// Adds or removes only the tooltip's id, keeping ids the trigger's own\n// component put into `aria-describedby` (e.g. a checkbox's helper text)\nfunction setDescribedById(el: HTMLElement, id: string, present: boolean) {\n const ids = (el.getAttribute(\"aria-describedby\") ?? \"\")\n .split(/\\s+/)\n .filter((other) => other && other !== id);\n if (present) {\n ids.push(id);\n }\n if (ids.length > 0) {\n el.setAttribute(\"aria-describedby\", ids.join(\" \"));\n } else {\n el.removeAttribute(\"aria-describedby\");\n }\n}\n\n/*\n * The popover is only in the DOM while shown, so `aria-describedby` can only\n * reference it then. `aria-description` describes the trigger in the meantime;\n * while both are set, `aria-describedby` takes precedence. No description is\n * set when the tooltip repeats the trigger's accessible name: for truncated\n * text, or when the text is also the trigger's `aria-label`.\n */\nfunction syncDescription(state: TooltipState) {\n if (state.truncated) {\n return;\n }\n const { triggerEl } = state;\n if (state.text.trim() === triggerEl.getAttribute(\"aria-label\")?.trim()) {\n triggerEl.removeAttribute(\"aria-description\");\n setDescribedById(triggerEl, state.id, false);\n return;\n }\n triggerEl.setAttribute(\"aria-description\", state.text);\n setDescribedById(triggerEl, state.id, state.attached);\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 detachPopover(state: TooltipState) {\n if (!state.attached) {\n return;\n }\n state.attached = false;\n state.popoverEl?.remove();\n syncDescription(state);\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 detachPopover(state);\n}\n\n// Stops everything that only runs while the tooltip is pending or shown\nfunction deactivate(state: TooltipState) {\n cancelTimers(state);\n hidePopover(state);\n state.documentListeners?.abort();\n state.documentListeners = null;\n}\n\nfunction onDocumentKeyDown(state: TooltipState, event: KeyboardEvent) {\n if (event.key === \"Escape\" && state.visible) {\n deactivate(state);\n state.dismissed = true;\n }\n}\n\n// Listens on the document while the tooltip is pending or shown\nfunction activate(state: TooltipState) {\n if (state.documentListeners) {\n return;\n }\n const controller = new AbortController();\n const options = { capture: true, signal: controller.signal };\n document.addEventListener(\n \"keydown\",\n (event) => onDocumentKeyDown(state, event),\n options,\n );\n document.addEventListener(\"scroll\", () => deactivate(state), options);\n state.documentListeners = controller;\n}\n\nfunction scheduleHide(state: TooltipState) {\n cancelTimers(state);\n state.hideTimer = setTimeout(() => {\n state.hideTimer = null;\n deactivate(state);\n }, HIDE_DELAY);\n}\n\nfunction getPopover(state: TooltipState): HTMLDivElement {\n if (state.popoverEl) {\n return state.popoverEl;\n }\n const popover = generateTooltipDiv(state.text);\n popover.setAttribute(\"popover\", \"manual\");\n popover.setAttribute(\"role\", \"tooltip\");\n popover.setAttribute(\"aria-hidden\", \"true\");\n popover.id = state.id;\n\n // Bound to the popover itself, so they go away together with it\n popover.addEventListener(\"mouseenter\", () => cancelTimers(state));\n popover.addEventListener(\"mouseleave\", () => scheduleHide(state));\n\n state.popoverEl = popover;\n return popover;\n}\n\nfunction attachPopover(state: TooltipState): HTMLDivElement {\n const popoverEl = getPopover(state);\n if (state.attached) {\n return popoverEl;\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 // eslint-disable-next-line no-restricted-syntax -- only when the trigger is not in a shadow root\n const appendBase = root === document ? document.body : root;\n appendBase.appendChild(popoverEl);\n syncDescription(state);\n return popoverEl;\n}\n\nfunction showPopover(state: TooltipState) {\n if (state.visible) {\n return;\n }\n if (currentVisible && currentVisible !== state) {\n deactivate(currentVisible);\n }\n const popoverEl = attachPopover(state);\n try {\n // `source` makes the trigger the tooltip's implicit anchor\n popoverEl.showPopover({ source: state.triggerEl });\n } catch {\n // ignore if already showing or not connected\n }\n state.visible = true;\n visibleCount++;\n currentVisible = state;\n}\n\nfunction scheduleShow(state: TooltipState, delay: number) {\n cancelTimers(state);\n if (state.dismissed) {\n return;\n }\n activate(state);\n state.showTimer = setTimeout(() => {\n state.showTimer = null;\n if (!canShow(state)) {\n deactivate(state);\n return;\n }\n showPopover(state);\n }, delay);\n}\n\nfunction mount(triggerEl: HTMLElement, binding: DirectiveBinding) {\n const text = getText(binding);\n if (text === null) {\n return;\n }\n\n const state: TooltipState = {\n triggerEl,\n text,\n id: `kds-tooltip-${crypto.randomUUID()}`,\n truncated: isTruncatedMod(binding),\n popoverEl: null,\n showTimer: null,\n hideTimer: null,\n dismissed: false,\n visible: false,\n attached: false,\n triggerListeners: new AbortController(),\n documentListeners: null,\n };\n\n stateMap.set(triggerEl, state);\n\n syncDescription(state);\n\n const options = { signal: state.triggerListeners.signal };\n\n triggerEl.addEventListener(\n \"mouseenter\",\n () => {\n state.dismissed = false;\n scheduleShow(state, visibleCount > 0 ? 0 : SHOW_DELAY);\n },\n options,\n );\n triggerEl.addEventListener(\"mouseleave\", () => scheduleHide(state), options);\n triggerEl.addEventListener(\n \"focusin\",\n () => {\n state.dismissed = false;\n if (triggerEl.matches(\":focus-visible\")) {\n scheduleShow(state, 0);\n }\n },\n options,\n );\n triggerEl.addEventListener(\"focusout\", () => deactivate(state), options);\n}\n\nfunction unmount(triggerEl: HTMLElement) {\n const state = stateMap.get(triggerEl);\n if (state) {\n state.triggerListeners.abort();\n deactivate(state);\n stateMap.delete(triggerEl);\n if (!state.truncated) {\n setDescribedById(triggerEl, state.id, false);\n triggerEl.removeAttribute(\"aria-description\");\n }\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);\n }\n return;\n }\n\n if (!state) {\n mount(el, binding);\n return;\n }\n\n state.text = newText;\n // Also re-checks whether the text still differs from the `aria-label`\n syncDescription(state);\n if (state.popoverEl) {\n state.popoverEl.textContent = newText;\n }\n },\n\n unmounted(el: HTMLElement) {\n unmount(el);\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,CA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