@knime/kds-components 0.28.2 → 0.28.4
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/dist/index.css +90 -106
- package/dist/index.js +368 -352
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/Badge/enums.d.ts +1 -1
- package/dist/src/accessories/DonutChart/KdsDonutChart.vue.d.ts.map +1 -1
- package/dist/src/accessories/Icon/KdsDataType.vue.d.ts +3 -1
- package/dist/src/accessories/Icon/KdsDataType.vue.d.ts.map +1 -1
- package/dist/src/accessories/Icon/KdsIcon.vue.d.ts +3 -1
- package/dist/src/accessories/Icon/KdsIcon.vue.d.ts.map +1 -1
- package/dist/src/accessories/Icon/types.d.ts +8 -0
- package/dist/src/accessories/Icon/types.d.ts.map +1 -1
- package/dist/src/accessories/Icon/useIcon.d.ts +5 -1
- package/dist/src/accessories/Icon/useIcon.d.ts.map +1 -1
- package/dist/src/accessories/InlineMessage/enums.d.ts +1 -1
- package/dist/src/buttons/KdsProgressButton/enums.d.ts +1 -1
- package/dist/src/layouts/Accordion/KdsAccordion.vue.d.ts.map +1 -1
- package/dist/src/layouts/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/src/layouts/Navigation/KdsNavItem/KdsNavItem.vue.d.ts +1 -0
- package/dist/src/layouts/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/Navigation/KdsNavItem/types.d.ts +3 -1
- package/dist/src/layouts/Navigation/KdsNavItem/types.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, toRef, unref, resolveDynamicComponent, useTemplateRef, createVNode, withCtx, renderSlot, mergeProps, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, onMounted, onUnmounted,
|
|
1
|
+
import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, readonly, toRef, unref, resolveDynamicComponent, useTemplateRef, createVNode, withCtx, renderSlot, mergeProps, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, onMounted, onUnmounted, nextTick, useId, watchEffect, useAttrs, withKeys, withModifiers, useCssVars, normalizeProps, withDirectives, vShow, defineAsyncComponent, onBeforeUpdate, onBeforeUnmount, isRef, vModelText, createTextVNode, createSlots, guardReactiveProps } from 'vue';
|
|
2
2
|
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, useElementSize, useMousePressed, useVirtualList, useTemplateRefsList } from '@vueuse/core';
|
|
3
3
|
|
|
4
4
|
import './index.css';const kdsAvatarSize = {
|
|
@@ -9,9 +9,9 @@ import './index.css';const kdsAvatarSize = {
|
|
|
9
9
|
};
|
|
10
10
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
11
11
|
|
|
12
|
-
const _hoisted_1
|
|
13
|
-
const _hoisted_2$
|
|
14
|
-
const _hoisted_3$
|
|
12
|
+
const _hoisted_1$_ = ["role", "title", "aria-hidden", "aria-label", "data-color"];
|
|
13
|
+
const _hoisted_2$B = ["src"];
|
|
14
|
+
const _hoisted_3$s = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "kds-avatar-initials",
|
|
17
17
|
"aria-hidden": "true"
|
|
@@ -80,10 +80,10 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
alt: "",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
onError: onImageError
|
|
83
|
-
}, null, 40, _hoisted_2$
|
|
83
|
+
}, null, 40, _hoisted_2$B)) : (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
84
84
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
85
85
|
]))
|
|
86
|
-
], 10, _hoisted_1
|
|
86
|
+
], 10, _hoisted_1$_);
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -98,9 +98,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
98
98
|
|
|
99
99
|
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["__scopeId", "data-v-9e1a5abe"]]);
|
|
100
100
|
|
|
101
|
-
const _hoisted_1$
|
|
102
|
-
const _hoisted_2$
|
|
103
|
-
const _hoisted_3$
|
|
101
|
+
const _hoisted_1$Z = ["aria-label"];
|
|
102
|
+
const _hoisted_2$A = { class: "avatars" };
|
|
103
|
+
const _hoisted_3$r = {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "more-count",
|
|
106
106
|
"aria-hidden": "true"
|
|
@@ -125,7 +125,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
role: "group",
|
|
126
126
|
"aria-label": ariaLabel.value
|
|
127
127
|
}, [
|
|
128
|
-
createElementVNode("div", _hoisted_2$
|
|
128
|
+
createElementVNode("div", _hoisted_2$A, [
|
|
129
129
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.avatars, (avatar, index) => {
|
|
130
130
|
return openBlock(), createBlock(KdsAvatar, {
|
|
131
131
|
key: index,
|
|
@@ -139,8 +139,8 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
139
139
|
}, null, 8, ["style", "size", "initials", "title", "src"]);
|
|
140
140
|
}), 128))
|
|
141
141
|
]),
|
|
142
|
-
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
143
|
-
], 8, _hoisted_1$
|
|
142
|
+
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$r, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)
|
|
143
|
+
], 8, _hoisted_1$Z);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
});
|
|
@@ -161,30 +161,44 @@ function useIcon({
|
|
|
161
161
|
}) {
|
|
162
162
|
const iconCache = /* @__PURE__ */ new Map();
|
|
163
163
|
const iconComponent = shallowRef(null);
|
|
164
|
+
const status = shallowRef("loading");
|
|
164
165
|
watch(
|
|
165
166
|
() => name.value,
|
|
166
167
|
(newName) => {
|
|
167
168
|
if (iconCache.has(newName)) {
|
|
168
169
|
iconComponent.value = iconCache.get(newName);
|
|
170
|
+
status.value = "loaded";
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
173
|
+
status.value = "loading";
|
|
171
174
|
__variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"../../../node_modules/@knime/kds-styles/dist/img/icons/add-user.svg": () => import('./add-user-BBT39sTb.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/ai-general.svg": () => import('./ai-general-xv5Ym88e.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/annotation-mode.svg": () => import('./annotation-mode-C0YL12XP.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/arrow-down.svg": () => import('./arrow-down-D8Q9vZG_.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/arrow-up.svg": () => import('./arrow-up-DJlZjTYZ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-expand.svg": () => import('./arrows-expand-eXIczgyQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-move.svg": () => import('./arrows-move-CDiEl6Ry.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-order.svg": () => import('./arrows-order-DMoJXS-I.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/back.svg": () => import('./back-D1kA9zuH.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/bold.svg": () => import('./bold-C8dRggXe.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/calendar.svg": () => import('./calendar-B6v1nLjF.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/case-sensitive.svg": () => import('./case-sensitive-CHP-__99.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/center-aligned.svg": () => import('./center-aligned--zRFP8Lf.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/checkmark.svg": () => import('./checkmark-DOn23D5R.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-down.svg": () => import('./chevron-down-BsSG_C_8.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-left-double.svg": () => import('./chevron-left-double-D-EEhZoy.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-left.svg": () => import('./chevron-left-BKFnSetN.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-right-double.svg": () => import('./chevron-right-double-BgfwXKBg.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-right.svg": () => import('./chevron-right-CozOeJxa.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-up.svg": () => import('./chevron-up-FA-c_L5N.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/circle-error.svg": () => import('./circle-error-CwUp2gKh.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/circle-info.svg": () => import('./circle-info-CcCjmOUH.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/circle-question.svg": () => import('./circle-question-TFLpel6L.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/circle-success.svg": () => import('./circle-success-CGkhxpZE.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/circle-unchecked.svg": () => import('./circle-unchecked-DOoOn6iz.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-download.svg": () => import('./cloud-download-CstHUDZv.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-knime.svg": () => import('./cloud-knime-CpZfWe3J.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-pending-changes.svg": () => import('./cloud-pending-changes-CWBUkOnb.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-synced.svg": () => import('./cloud-synced-DlT_4y5Q.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-upload.svg": () => import('./cloud-upload-DQvu_3cc.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-workflow.svg": () => import('./cloud-workflow-Bo_4KHLP.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/code-block.svg": () => import('./code-block-DrOaCM3g.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/collection.svg": () => import('./collection-BBXRVj4b.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/color-picker.svg": () => import('./color-picker-k6GkGnF5.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/comment.svg": () => import('./comment-DL9ZR-vM.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/component.svg": () => import('./component-BArrSsoi.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/connection.svg": () => import('./connection-cIDhN_bU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/copy.svg": () => import('./copy-DAYm6-mo.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/cursor.svg": () => import('./cursor-DSIjd7yc.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/data-app.svg": () => import('./data-app-BHCZS7qU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/data-value-view.svg": () => import('./data-value-view-DZAfZGqs.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/date-time.svg": () => import('./date-time-C3cmSAQm.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-browse.svg": () => import('./db-browse-BJj19qUq.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-database.svg": () => import('./db-database-CyCrPzu-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-fetch.svg": () => import('./db-fetch-CJMHzQp5.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-schema.svg": () => import('./db-schema-C4gtYXvd.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-table-view.svg": () => import('./db-table-view-CcF1plGQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/db-table.svg": () => import('./db-table-DifKATf6.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/deploy.svg": () => import('./deploy-Dr6jEhZU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/detect.svg": () => import('./detect-DkQik2ep.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/divider.svg": () => import('./divider-Bhqt1kvt.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/duration.svg": () => import('./duration-Dfp9ox2I.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/edit.svg": () => import('./edit-Bg040TR4.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/education.svg": () => import('./education-CsB0t7AG.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/error-panel.svg": () => import('./error-panel-BCvYjM5m.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/execute-all.svg": () => import('./execute-all-JZlJ6VtK.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/execute.svg": () => import('./execute-CDtz4PKy.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/expand-panel.svg": () => import('./expand-panel-C0-YqxWN.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/extension-community.svg": () => import('./extension-community-BL7uY2lh.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/extension.svg": () => import('./extension-DV2OG2b-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/external-link.svg": () => import('./external-link-D6c_uzZp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/eye.svg": () => import('./eye-DIQBS75n.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/file-export.svg": () => import('./file-export-Cm5xiHIP.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/file-text.svg": () => import('./file-text-DCIkmzWQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/file.svg": () => import('./file-D-fzxVWf.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/filter.svg": () => import('./filter-BCzsHR5o.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-default.svg": () => import('./flow-variable-default-D8YRzPWl.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-in-out.svg": () => import('./flow-variable-in-out-v434yDUG.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-in.svg": () => import('./flow-variable-in-BiO5ppkU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-out.svg": () => import('./flow-variable-out-BuATVHTL.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/folder-plus.svg": () => import('./folder-plus-0Z-aPAxX.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/folder-search.svg": () => import('./folder-search-DDOYg0f6.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/folder-workflow.svg": () => import('./folder-workflow-hjaE8p-i.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/folder.svg": () => import('./folder-xz8Bw1k6.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/forum.svg": () => import('./forum-CunE8Bpo.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/function-catalog.svg": () => import('./function-catalog-CRXmv7AG.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/hide-eye.svg": () => import('./hide-eye-BrIKmBWt.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/home.svg": () => import('./home-CW06ROg3.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/import.svg": () => import('./import-Bjz9KZM-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/info.svg": () => import('./info-C8GezBIf.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/interval.svg": () => import('./interval-CzQaVMPH.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/italic.svg": () => import('./italic-B6SY7x6N.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/key.svg": () => import('./key-9hybjORk.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/layout-editor.svg": () => import('./layout-editor-At6vQ3aU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/left-aligned.svg": () => import('./left-aligned-C90MrNJd.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/like.svg": () => import('./like-BwC1fMTh.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/limit.svg": () => import('./limit-D84DMtQW.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/link.svg": () => import('./link-DH0XmQMp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/linked-metanode.svg": () => import('./linked-metanode-ojS3JQJp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/list-bulletpoint.svg": () => import('./list-bulletpoint-BLPnukaY.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/list-number.svg": () => import('./list-number-C47JfmdB.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/list-thumbs.svg": () => import('./list-thumbs-F5ICnK4Z.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/list.svg": () => import('./list-CQmzxqnp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/local-filesystem.svg": () => import('./local-filesystem-fyrwOsG5.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/lock.svg": () => import('./lock-B9qCq8wW.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/menu.svg": () => import('./menu-BSS_QnZi.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/metanode.svg": () => import('./metanode-BOoscDpe.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/mini-map.svg": () => import('./mini-map-DKez_1T0.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/minimize-dialog.svg": () => import('./minimize-dialog-CsKInFjQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/minimize-side-panel.svg": () => import('./minimize-side-panel-DOe27uOi.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/minus.svg": () => import('./minus-CUOnFK-_.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/more-actions.svg": () => import('./more-actions-r1Ai1cv8.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/node-stack.svg": () => import('./node-stack-B2-NOdn1.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/nodes-align-horiz.svg": () => import('./nodes-align-horiz-BNN1SQyE.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/nodes-align-vert.svg": () => import('./nodes-align-vert-JG8gmWk5.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/open-in-new-window.svg": () => import('./open-in-new-window-BAU_-IMl.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/pan-mode.svg": () => import('./pan-mode-CGVZU5HB.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/parameter.svg": () => import('./parameter-D3NI1oyc.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/pending-changes.svg": () => import('./pending-changes-BvFdyKn8.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/pin.svg": () => import('./pin-B6vKBZDp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/placeholder.svg": () => import('./placeholder-CIq-OFkj.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/plus.svg": () => import('./plus-BGcbvgG4.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/python.svg": () => import('./python-Bn3ET_9Z.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/quote.svg": () => import('./quote-BhPMewQl.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/re-execution.svg": () => import('./re-execution-CPa8UUdU.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/redo.svg": () => import('./redo-BjctXrq6.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/regex.svg": () => import('./regex-CErlWJQW.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/reload.svg": () => import('./reload-CDm_DDdP.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/rename.svg": () => import('./rename-Cyk_xng4.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/replace.svg": () => import('./replace-9aOLtKuD.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/reset-all.svg": () => import('./reset-all-Buf5y-HV.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/resume-execution.svg": () => import('./resume-execution-CRqaKZqz.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/right-aligned.svg": () => import('./right-aligned-2BkZ58o-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/rocket.svg": () => import('./rocket-Bs46VoUh.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/save-as.svg": () => import('./save-as-CTnCvHfQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/save.svg": () => import('./save-B7DzWjxS.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/schedule.svg": () => import('./schedule-DuSqromp.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/search.svg": () => import('./search-gykfARpE.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/secret-store.svg": () => import('./secret-store-_ZlpQRjr.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/selected-cancel.svg": () => import('./selected-cancel-CS3Gep56.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/selected-execution.svg": () => import('./selected-execution-BJxjtKXq.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/selected-reset.svg": () => import('./selected-reset-SMx6XDk5.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/send.svg": () => import('./send-G2BlBsxu.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/server-rack-workflow.svg": () => import('./server-rack-workflow-CBhKbyGY.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/service.svg": () => import('./service-9hAt2V0T.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/settings.svg": () => import('./settings-BLMTAq-1.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/share.svg": () => import('./share-BIrWLTtn.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/shortcuts.svg": () => import('./shortcuts-fbNZWoSf.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/sort-ascending.svg": () => import('./sort-ascending-DNyV4Drg.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/sort-descending.svg": () => import('./sort-descending-BdIGPn-9.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/space-local.svg": () => import('./space-local-D4kTqwrB.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/space-private.svg": () => import('./space-private-D06CTwvE.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/space.svg": () => import('./space-fMpb-o4-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/stepwise-execution.svg": () => import('./stepwise-execution-C1mAO3z_.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/stop.svg": () => import('./stop-Cgmy2iPY.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/strikethrough.svg": () => import('./strikethrough-DG4Ejxqk.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/tag.svg": () => import('./tag-_fZiuJaC.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/team.svg": () => import('./team-CtZLwOou.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/template-gallery.svg": () => import('./template-gallery-BtXi4GHd.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/text.svg": () => import('./text-DFu-L62Z.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/textstyles.svg": () => import('./textstyles-j0GQtKYE.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/thumbs-down.svg": () => import('./thumbs-down-CiozrdIW.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/thumbs-up.svg": () => import('./thumbs-up-E4uRtjhi.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/time.svg": () => import('./time-DU80J5X8.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/to-bottom.svg": () => import('./to-bottom-B8wat1Dk.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/to-top.svg": () => import('./to-top-CCAfU4xz.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/trash.svg": () => import('./trash-Dq5FHwNO.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/trigger.svg": () => import('./trigger-Qns9VYQG.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/underline.svg": () => import('./underline-CDZcVZHB.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/undo.svg": () => import('./undo-CnghWcXK.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/unlink.svg": () => import('./unlink-CL0kTZX2.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/usage.svg": () => import('./usage-827uIQyn.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/user.svg": () => import('./user-DTq28OjK.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/version.svg": () => import('./version-CSTTEeam.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/view-cards.svg": () => import('./view-cards-DS0Cpf95.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/warning.svg": () => import('./warning-CJC1Oij-.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/workflow.svg": () => import('./workflow-n50o8jCH.js'),"../../../node_modules/@knime/kds-styles/dist/img/icons/x-close.svg": () => import('./x-close-D-oEO9N9.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/audio-datatype.svg": () => import('./audio-datatype-DyzJTMxb.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/binary-object-datatype.svg": () => import('./binary-object-datatype-DHZPEEoV.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/bit-byte-vector-datatype.svg": () => import('./bit-byte-vector-datatype-XJ0yjm_4.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/boolean-datatype.svg": () => import('./boolean-datatype-B0SBV35e.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/collection-list-datatype.svg": () => import('./collection-list-datatype-DDLoFog9.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/collection-set-datatype.svg": () => import('./collection-set-datatype-QGQHiErr.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-datatype.svg": () => import('./date-datatype-DX2o-Qoi.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-time-local-datatype.svg": () => import('./date-time-local-datatype-BRveWl93.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-time-zoned-datatype.svg": () => import('./date-time-zoned-datatype-CvUpjzJk.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/default-extension-datatype.svg": () => import('./default-extension-datatype-C7jbGM5d.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/document-datatype.svg": () => import('./document-datatype-CmWsp5e8.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/duration-date-based-datatype.svg": () => import('./duration-date-based-datatype-ZMMDq_rT.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/duration-time-based-datatype.svg": () => import('./duration-time-based-datatype-DWj4ALsB.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/geo-datatype.svg": () => import('./geo-datatype-CTQgQTql.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/helm-datatype.svg": () => import('./helm-datatype-XIlHXQBP.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/image-png-datatype.svg": () => import('./image-png-datatype-CtnGTQlX.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/image-svg-datatype.svg": () => import('./image-svg-datatype-DgySAOGM.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/json-datatype.svg": () => import('./json-datatype-DgHr_Q8U.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/labeling-datatype.svg": () => import('./labeling-datatype-CGG_DguN.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/linear-notation-molecule.svg": () => import('./linear-notation-molecule-CepA_vEp.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/message-datatype.svg": () => import('./message-datatype-Ds55YGMQ.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/microscope.svg": () => import('./microscope-CPwlykKH.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/model-pmml-datatype.svg": () => import('./model-pmml-datatype-kXlL8AWg.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/molecule.svg": () => import('./molecule-CT71Yhf1.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-double-datatype.svg": () => import('./number-double-datatype-B6nc4th6.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-double-vector-datatype.svg": () => import('./number-double-vector-datatype-D3rzzxjM.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-integer-datatype.svg": () => import('./number-integer-datatype-BWoQkZ03.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/path-datatype.svg": () => import('./path-datatype-BD3D-7dL.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/string-datatype.svg": () => import('./string-datatype-CHI_qvxE.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/string-vector-datatype.svg": () => import('./string-vector-datatype-DhgtZI8f.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/subgraph-datatype.svg": () => import('./subgraph-datatype-BHBSS1-Z.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/term-datatype.svg": () => import('./term-datatype-CRrmVXQx.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/test-tube.svg": () => import('./test-tube-BsB8mbus.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/time-datatype.svg": () => import('./time-datatype-CBnmuYLa.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/tool-datatype.svg": () => import('./tool-datatype-l6cMJHHd.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/unknown-datatype.svg": () => import('./unknown-datatype-BEY7muOy.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/uri-datatype.svg": () => import('./uri-datatype-CJhmCZiq.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-boolean.svg": () => import('./variable-boolean-BzyG4BGV.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-boolean.svg": () => import('./variable-collection-boolean-nWAd6a7R.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-double.svg": () => import('./variable-collection-double-h0sMrPKC.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-integer.svg": () => import('./variable-collection-integer-BZEs4wch.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-string.svg": () => import('./variable-collection-string-BPIuxyHK.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-conda-environment.svg": () => import('./variable-conda-environment-DZ5kqmc5.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-credential.svg": () => import('./variable-credential-D32ztDmY.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-integer.svg": () => import('./variable-integer-CtoE3pq3.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-number-double.svg": () => import('./variable-number-double-D5CGjCM8.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-path.svg": () => import('./variable-path-Dyuv7RmO.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-string.svg": () => import('./variable-string-JWu8Gafe.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-unknown.svg": () => import('./variable-unknown-DYSdcnPs.js'),"../../../node_modules/@knime/kds-styles/dist/img/type-icons/xml-datatype.svg": () => import('./xml-datatype-BlUTXDpw.js')})), `../../../node_modules/@knime/kds-styles/dist/img/${folder}/${newName}.svg`, 10).then((module) => {
|
|
172
175
|
iconCache.set(newName, module.default);
|
|
176
|
+
if (name.value !== newName) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
173
179
|
iconComponent.value = module.default;
|
|
180
|
+
status.value = "loaded";
|
|
174
181
|
}).catch((error) => {
|
|
175
182
|
if (error.name === "AbortError") {
|
|
176
183
|
return;
|
|
177
184
|
}
|
|
185
|
+
if (name.value !== newName) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
178
188
|
console.error(
|
|
179
189
|
`Failed to load icon "${newName}" from folder "${folder}":`,
|
|
180
190
|
error
|
|
181
191
|
);
|
|
182
192
|
iconComponent.value = null;
|
|
193
|
+
status.value = "error";
|
|
183
194
|
});
|
|
184
195
|
},
|
|
185
196
|
{ immediate: true }
|
|
186
197
|
);
|
|
187
|
-
return
|
|
198
|
+
return {
|
|
199
|
+
iconComponent: readonly(iconComponent),
|
|
200
|
+
status: readonly(status)
|
|
201
|
+
};
|
|
188
202
|
}
|
|
189
203
|
|
|
190
204
|
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
@@ -194,12 +208,13 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
194
208
|
size: { default: "medium" },
|
|
195
209
|
disabled: { type: Boolean, default: false }
|
|
196
210
|
},
|
|
197
|
-
setup(__props) {
|
|
211
|
+
setup(__props, { expose: __expose }) {
|
|
198
212
|
const props = createPropsRestProxy(__props, ["size", "disabled"]);
|
|
199
|
-
const iconComponent = useIcon({
|
|
213
|
+
const { iconComponent, status } = useIcon({
|
|
200
214
|
name: toRef(() => props.name),
|
|
201
215
|
folder: "icons"
|
|
202
216
|
});
|
|
217
|
+
__expose({ status });
|
|
203
218
|
return (_ctx, _cache) => {
|
|
204
219
|
return unref(iconComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent)), {
|
|
205
220
|
key: 0,
|
|
@@ -216,7 +231,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
216
231
|
}
|
|
217
232
|
});
|
|
218
233
|
|
|
219
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__scopeId", "data-v-
|
|
234
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__scopeId", "data-v-bff4f419"]]);
|
|
220
235
|
|
|
221
236
|
const ID_TO_ICON_MAP = {
|
|
222
237
|
// Flow Variables
|
|
@@ -554,7 +569,7 @@ const kdsDataTypeSize = {
|
|
|
554
569
|
};
|
|
555
570
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
556
571
|
|
|
557
|
-
const _hoisted_1$
|
|
572
|
+
const _hoisted_1$Y = ["title"];
|
|
558
573
|
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
559
574
|
__name: "KdsDataType",
|
|
560
575
|
props: {
|
|
@@ -563,7 +578,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
563
578
|
size: { default: "medium" },
|
|
564
579
|
disabled: { type: Boolean, default: false }
|
|
565
580
|
},
|
|
566
|
-
setup(__props) {
|
|
581
|
+
setup(__props, { expose: __expose }) {
|
|
567
582
|
const DATA_TYPE_SIZE_TO_ICON_SIZE = {
|
|
568
583
|
large: "medium",
|
|
569
584
|
medium: "small",
|
|
@@ -581,10 +596,11 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
581
596
|
}
|
|
582
597
|
return __props.iconName.startsWith("org.knime") ? "default-extension-datatype" : "unknown-datatype";
|
|
583
598
|
});
|
|
584
|
-
const iconComponent = useIcon({
|
|
599
|
+
const { iconComponent, status } = useIcon({
|
|
585
600
|
name: iconName,
|
|
586
601
|
folder: "type-icons"
|
|
587
602
|
});
|
|
603
|
+
__expose({ status });
|
|
588
604
|
return (_ctx, _cache) => {
|
|
589
605
|
return openBlock(), createElementBlock("div", {
|
|
590
606
|
class: normalizeClass(["kds-data-type-icon-container", __props.size, { disabled: __props.disabled }]),
|
|
@@ -595,12 +611,12 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
595
611
|
"aria-hidden": "true",
|
|
596
612
|
focusable: "false"
|
|
597
613
|
}, null, 8, ["class"]))
|
|
598
|
-
], 10, _hoisted_1$
|
|
614
|
+
], 10, _hoisted_1$Y);
|
|
599
615
|
};
|
|
600
616
|
}
|
|
601
617
|
});
|
|
602
618
|
|
|
603
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-
|
|
619
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-38e9537f"]]);
|
|
604
620
|
|
|
605
621
|
const kdsBadgeVariant = {
|
|
606
622
|
NEUTRAL: "neutral",
|
|
@@ -617,7 +633,7 @@ const kdsBadgeSize = {
|
|
|
617
633
|
};
|
|
618
634
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
619
635
|
|
|
620
|
-
const _hoisted_1$
|
|
636
|
+
const _hoisted_1$X = { class: "label-wrapper" };
|
|
621
637
|
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
622
638
|
__name: "KdsBadge",
|
|
623
639
|
props: {
|
|
@@ -640,7 +656,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
640
656
|
name: __props.leadingIcon,
|
|
641
657
|
size: sizeToIconSize[__props.size]
|
|
642
658
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
643
|
-
createElementVNode("span", _hoisted_1$
|
|
659
|
+
createElementVNode("span", _hoisted_1$X, toDisplayString(__props.label), 1)
|
|
644
660
|
], 2);
|
|
645
661
|
};
|
|
646
662
|
}
|
|
@@ -665,7 +681,7 @@ const kdsColorSwatchSize = {
|
|
|
665
681
|
};
|
|
666
682
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
667
683
|
|
|
668
|
-
const _hoisted_1$
|
|
684
|
+
const _hoisted_1$W = ["role", "title", "aria-hidden", "aria-label"];
|
|
669
685
|
const RGBA_SHORT_HEX_LENGTH = 4;
|
|
670
686
|
const RGBA_LONG_HEX_LENGTH = 8;
|
|
671
687
|
const ALPHA_NIBBLE_INDEX = 3;
|
|
@@ -747,7 +763,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
747
763
|
style: normalizeStyle(swatchStyle.value),
|
|
748
764
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
749
765
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
750
|
-
}, null, 14, _hoisted_1$
|
|
766
|
+
}, null, 14, _hoisted_1$W);
|
|
751
767
|
};
|
|
752
768
|
}
|
|
753
769
|
});
|
|
@@ -872,8 +888,8 @@ function useKdsIsTruncated(elementRef) {
|
|
|
872
888
|
return { isTruncated };
|
|
873
889
|
}
|
|
874
890
|
|
|
875
|
-
const _hoisted_1$
|
|
876
|
-
const _hoisted_2$
|
|
891
|
+
const _hoisted_1$V = ["title", "aria-label"];
|
|
892
|
+
const _hoisted_2$z = ["title"];
|
|
877
893
|
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
878
894
|
__name: "KdsLiveStatus",
|
|
879
895
|
props: {
|
|
@@ -903,8 +919,8 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
903
919
|
ref: labelEl,
|
|
904
920
|
class: "label",
|
|
905
921
|
title: unref(isTruncated) ? __props.label : void 0
|
|
906
|
-
}, toDisplayString(__props.label), 9, _hoisted_2$
|
|
907
|
-
], 10, _hoisted_1$
|
|
922
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$z)) : createCommentVNode("", true)
|
|
923
|
+
], 10, _hoisted_1$V);
|
|
908
924
|
};
|
|
909
925
|
}
|
|
910
926
|
});
|
|
@@ -925,7 +941,7 @@ const kdsLiveStatusSize = {
|
|
|
925
941
|
};
|
|
926
942
|
const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
927
943
|
|
|
928
|
-
const _hoisted_1$
|
|
944
|
+
const _hoisted_1$U = ["data-style"];
|
|
929
945
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
930
946
|
__name: "KdsLoadingSpinner",
|
|
931
947
|
props: {
|
|
@@ -951,7 +967,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
951
967
|
cy: "60",
|
|
952
968
|
r: "50"
|
|
953
969
|
}, null, -1)
|
|
954
|
-
])], 10, _hoisted_1$
|
|
970
|
+
])], 10, _hoisted_1$U);
|
|
955
971
|
};
|
|
956
972
|
}
|
|
957
973
|
});
|
|
@@ -966,9 +982,9 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
966
982
|
kdsLoadingSpinnerVariant
|
|
967
983
|
);
|
|
968
984
|
|
|
969
|
-
const _hoisted_1$
|
|
970
|
-
const _hoisted_2$
|
|
971
|
-
const _hoisted_3$
|
|
985
|
+
const _hoisted_1$T = ["role"];
|
|
986
|
+
const _hoisted_2$y = { class: "header" };
|
|
987
|
+
const _hoisted_3$q = { class: "headline" };
|
|
972
988
|
const _hoisted_4$m = {
|
|
973
989
|
key: 0,
|
|
974
990
|
class: "body"
|
|
@@ -1004,16 +1020,16 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
1004
1020
|
class: normalizeClass(classes.value),
|
|
1005
1021
|
role: role.value
|
|
1006
1022
|
}, [
|
|
1007
|
-
createElementVNode("div", _hoisted_2$
|
|
1023
|
+
createElementVNode("div", _hoisted_2$y, [
|
|
1008
1024
|
createVNode(KdsIcon, {
|
|
1009
1025
|
class: "icon",
|
|
1010
1026
|
name: iconName.value,
|
|
1011
1027
|
size: "small"
|
|
1012
1028
|
}, null, 8, ["name"]),
|
|
1013
|
-
createElementVNode("div", _hoisted_3$
|
|
1029
|
+
createElementVNode("div", _hoisted_3$q, toDisplayString(props.headline), 1)
|
|
1014
1030
|
]),
|
|
1015
1031
|
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$m, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
1016
|
-
], 10, _hoisted_1$
|
|
1032
|
+
], 10, _hoisted_1$T);
|
|
1017
1033
|
};
|
|
1018
1034
|
}
|
|
1019
1035
|
});
|
|
@@ -1028,12 +1044,12 @@ const kdsInlineMessageVariant = {
|
|
|
1028
1044
|
};
|
|
1029
1045
|
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
1030
1046
|
|
|
1031
|
-
const _hoisted_1$
|
|
1032
|
-
const _hoisted_2$
|
|
1033
|
-
const _hoisted_3$
|
|
1047
|
+
const _hoisted_1$S = { class: "donut-container" };
|
|
1048
|
+
const _hoisted_2$x = ["height", "width", "viewBox"];
|
|
1049
|
+
const _hoisted_3$p = ["r", "stroke-width"];
|
|
1034
1050
|
const _hoisted_4$l = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1035
1051
|
const _hoisted_5$b = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1036
|
-
const _hoisted_6$
|
|
1052
|
+
const _hoisted_6$a = {
|
|
1037
1053
|
key: 0,
|
|
1038
1054
|
class: "donut-text"
|
|
1039
1055
|
};
|
|
@@ -1044,7 +1060,6 @@ const _hoisted_8$3 = {
|
|
|
1044
1060
|
};
|
|
1045
1061
|
const radius = 22;
|
|
1046
1062
|
const innerRadius = 10;
|
|
1047
|
-
const backgroundStrokeOffset = 0.5;
|
|
1048
1063
|
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
1049
1064
|
__name: "KdsDonutChart",
|
|
1050
1065
|
props: {
|
|
@@ -1066,10 +1081,6 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1066
1081
|
return __props.acceptValuesLargerThanMax ? clipValue : Math.min(clipValue, __props.maxValue);
|
|
1067
1082
|
});
|
|
1068
1083
|
const strokeWidth = computed(() => radius - innerRadius);
|
|
1069
|
-
const backgroundStrokeWidth = computed(
|
|
1070
|
-
// to account for rendering inaccuracies the background stroke is slightly smaller than the wedge stroke
|
|
1071
|
-
() => strokeWidth.value - backgroundStrokeOffset
|
|
1072
|
-
);
|
|
1073
1084
|
const r = computed(() => radius - strokeWidth.value / 2);
|
|
1074
1085
|
const diameter = computed(() => 2 * radius);
|
|
1075
1086
|
const viewBox = computed(() => `0 0 ${diameter.value} ${diameter.value}`);
|
|
@@ -1093,7 +1104,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1093
1104
|
const transformWedge = computed(() => `rotate(-90, ${radius}, ${radius})`);
|
|
1094
1105
|
const disabled = computed(() => !Number.isFinite(__props.maxValue));
|
|
1095
1106
|
return (_ctx, _cache) => {
|
|
1096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1107
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
1097
1108
|
(openBlock(), createElementBlock("svg", {
|
|
1098
1109
|
height: diameter.value,
|
|
1099
1110
|
width: diameter.value,
|
|
@@ -1105,9 +1116,9 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1105
1116
|
cx: radius,
|
|
1106
1117
|
cy: radius,
|
|
1107
1118
|
r: r.value,
|
|
1108
|
-
"stroke-width":
|
|
1119
|
+
"stroke-width": strokeWidth.value,
|
|
1109
1120
|
fill: "transparent"
|
|
1110
|
-
}, null, 8, _hoisted_3$
|
|
1121
|
+
}, null, 8, _hoisted_3$p),
|
|
1111
1122
|
__props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1112
1123
|
key: 0,
|
|
1113
1124
|
class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
|
|
@@ -1132,8 +1143,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1132
1143
|
fill: "transparent",
|
|
1133
1144
|
transform: transformWedge.value
|
|
1134
1145
|
}, null, 10, _hoisted_5$b)) : createCommentVNode("", true)
|
|
1135
|
-
], 8, _hoisted_2$
|
|
1136
|
-
__props.title ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1146
|
+
], 8, _hoisted_2$x)),
|
|
1147
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
|
|
1137
1148
|
createElementVNode("div", _hoisted_7$3, toDisplayString(__props.title), 1),
|
|
1138
1149
|
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
|
|
1139
1150
|
])) : createCommentVNode("", true)
|
|
@@ -1142,18 +1153,18 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1142
1153
|
}
|
|
1143
1154
|
});
|
|
1144
1155
|
|
|
1145
|
-
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-
|
|
1156
|
+
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-f5faf61c"]]);
|
|
1146
1157
|
|
|
1147
1158
|
const _sfc_main$1n = { };
|
|
1148
1159
|
|
|
1149
|
-
const _hoisted_1$
|
|
1160
|
+
const _hoisted_1$R = { class: "kds-divider" };
|
|
1150
1161
|
|
|
1151
1162
|
function _sfc_render(_ctx, _cache) {
|
|
1152
|
-
return (openBlock(), createElementBlock("hr", _hoisted_1$
|
|
1163
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$R))
|
|
1153
1164
|
}
|
|
1154
1165
|
const KdsDivider = /*#__PURE__*/_export_sfc(_sfc_main$1n, [['render',_sfc_render],['__scopeId',"data-v-4d059bd3"]]);
|
|
1155
1166
|
|
|
1156
|
-
const _hoisted_1$
|
|
1167
|
+
const _hoisted_1$Q = {
|
|
1157
1168
|
key: 0,
|
|
1158
1169
|
class: "label"
|
|
1159
1170
|
};
|
|
@@ -1221,7 +1232,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
1221
1232
|
size: iconSize.value
|
|
1222
1233
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1223
1234
|
], true),
|
|
1224
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1235
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$Q, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
1225
1236
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
1226
1237
|
key: 1,
|
|
1227
1238
|
name: props.trailingIcon,
|
|
@@ -1532,8 +1543,8 @@ function prettyBytes(number, options) {
|
|
|
1532
1543
|
return applyFixedWidth(result, options.fixedWidth);
|
|
1533
1544
|
}
|
|
1534
1545
|
|
|
1535
|
-
const _hoisted_1$
|
|
1536
|
-
const _hoisted_2$
|
|
1546
|
+
const _hoisted_1$P = { class: "label" };
|
|
1547
|
+
const _hoisted_2$w = {
|
|
1537
1548
|
key: 1,
|
|
1538
1549
|
class: "file-size"
|
|
1539
1550
|
};
|
|
@@ -1627,13 +1638,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1627
1638
|
onClick
|
|
1628
1639
|
}, {
|
|
1629
1640
|
default: withCtx(() => [
|
|
1630
|
-
createElementVNode("span", _hoisted_1$
|
|
1641
|
+
createElementVNode("span", _hoisted_1$P, toDisplayString(__props.label), 1),
|
|
1631
1642
|
variant.value === "external" ? (openBlock(), createBlock(KdsIcon, {
|
|
1632
1643
|
key: 0,
|
|
1633
1644
|
name: "external-link",
|
|
1634
1645
|
size: "xsmall"
|
|
1635
1646
|
})) : createCommentVNode("", true),
|
|
1636
|
-
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1647
|
+
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$w, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
1637
1648
|
]),
|
|
1638
1649
|
_: 1
|
|
1639
1650
|
}, 8, ["class", "to", "download", "target", "rel", "title", "aria-disabled"]);
|
|
@@ -1680,8 +1691,8 @@ const kdsToggleButtonVariant = {
|
|
|
1680
1691
|
};
|
|
1681
1692
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1682
1693
|
|
|
1683
|
-
const _hoisted_1$
|
|
1684
|
-
const _hoisted_2$
|
|
1694
|
+
const _hoisted_1$O = ["data-visible"];
|
|
1695
|
+
const _hoisted_2$v = ["data-visible"];
|
|
1685
1696
|
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
1686
1697
|
__name: "KdsProgressButton",
|
|
1687
1698
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1744,7 +1755,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1744
1755
|
name: props.leadingIcon,
|
|
1745
1756
|
size: iconSize.value
|
|
1746
1757
|
}, null, 8, ["name", "size"])
|
|
1747
|
-
], 8, _hoisted_1$
|
|
1758
|
+
], 8, _hoisted_1$O),
|
|
1748
1759
|
createElementVNode("span", {
|
|
1749
1760
|
class: "spinner",
|
|
1750
1761
|
"data-visible": state.value === "progress"
|
|
@@ -1753,7 +1764,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
1753
1764
|
size: iconSize.value,
|
|
1754
1765
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
1755
1766
|
}, null, 8, ["size", "variant"])
|
|
1756
|
-
], 8, _hoisted_2$
|
|
1767
|
+
], 8, _hoisted_2$v)
|
|
1757
1768
|
], 2)
|
|
1758
1769
|
]),
|
|
1759
1770
|
_: 1
|
|
@@ -2032,18 +2043,18 @@ const kdsListItemAccessorySize = {
|
|
|
2032
2043
|
LARGE: "large"
|
|
2033
2044
|
};
|
|
2034
2045
|
|
|
2035
|
-
const _hoisted_1$
|
|
2036
|
-
const _hoisted_2$
|
|
2046
|
+
const _hoisted_1$N = ["id", "role", "aria-selected", "aria-disabled"];
|
|
2047
|
+
const _hoisted_2$u = {
|
|
2037
2048
|
key: 0,
|
|
2038
2049
|
class: "accessory"
|
|
2039
2050
|
};
|
|
2040
|
-
const _hoisted_3$
|
|
2051
|
+
const _hoisted_3$o = { class: "content" };
|
|
2041
2052
|
const _hoisted_4$k = ["title"];
|
|
2042
2053
|
const _hoisted_5$a = {
|
|
2043
2054
|
key: 0,
|
|
2044
2055
|
class: "prefix"
|
|
2045
2056
|
};
|
|
2046
|
-
const _hoisted_6$
|
|
2057
|
+
const _hoisted_6$9 = ["title"];
|
|
2047
2058
|
const _hoisted_7$2 = { class: "trailing-item" };
|
|
2048
2059
|
const _hoisted_8$2 = {
|
|
2049
2060
|
key: 0,
|
|
@@ -2111,14 +2122,14 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
2111
2122
|
]),
|
|
2112
2123
|
onClick
|
|
2113
2124
|
}, [
|
|
2114
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2125
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
|
|
2115
2126
|
createVNode(_sfc_main$1g, {
|
|
2116
2127
|
accessory: props.accessory,
|
|
2117
2128
|
size: accessorySize.value,
|
|
2118
2129
|
disabled: __props.disabled
|
|
2119
2130
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
2120
2131
|
])) : createCommentVNode("", true),
|
|
2121
|
-
createElementVNode("span", _hoisted_3$
|
|
2132
|
+
createElementVNode("span", _hoisted_3$o, [
|
|
2122
2133
|
createElementVNode("span", {
|
|
2123
2134
|
ref_key: "labelEl",
|
|
2124
2135
|
ref: labelEl,
|
|
@@ -2136,7 +2147,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
2136
2147
|
ref: subtextEl,
|
|
2137
2148
|
class: "subtext",
|
|
2138
2149
|
title: unref(isSubtextTruncated) ? props.subText : void 0
|
|
2139
|
-
}, toDisplayString(props.subText), 9, _hoisted_6$
|
|
2150
|
+
}, toDisplayString(props.subText), 9, _hoisted_6$9)) : createCommentVNode("", true)
|
|
2140
2151
|
]),
|
|
2141
2152
|
createElementVNode("span", _hoisted_7$2, [
|
|
2142
2153
|
props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_8$2, toDisplayString(props.shortcut), 1)) : props.badge ? (openBlock(), createBlock(KdsBadge, {
|
|
@@ -2152,19 +2163,19 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
2152
2163
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2153
2164
|
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span", _hoisted_9$2)) : createCommentVNode("", true)
|
|
2154
2165
|
])
|
|
2155
|
-
], 10, _hoisted_1$
|
|
2166
|
+
], 10, _hoisted_1$N);
|
|
2156
2167
|
};
|
|
2157
2168
|
}
|
|
2158
2169
|
});
|
|
2159
2170
|
|
|
2160
2171
|
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-9625480f"]]);
|
|
2161
2172
|
|
|
2162
|
-
const _hoisted_1$
|
|
2163
|
-
const _hoisted_2$
|
|
2173
|
+
const _hoisted_1$M = { class: "kds-list-item-section-title" };
|
|
2174
|
+
const _hoisted_2$t = {
|
|
2164
2175
|
key: 0,
|
|
2165
2176
|
class: "icon"
|
|
2166
2177
|
};
|
|
2167
|
-
const _hoisted_3$
|
|
2178
|
+
const _hoisted_3$n = ["title"];
|
|
2168
2179
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
2169
2180
|
__name: "ListItemSectionTitle",
|
|
2170
2181
|
props: {
|
|
@@ -2176,8 +2187,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2176
2187
|
const labelEl = useTemplateRef("labelEl");
|
|
2177
2188
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
2178
2189
|
return (_ctx, _cache) => {
|
|
2179
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2180
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2190
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
2191
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$t, [
|
|
2181
2192
|
createVNode(KdsIcon, {
|
|
2182
2193
|
name: props.leadingIcon,
|
|
2183
2194
|
size: "small"
|
|
@@ -2188,7 +2199,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2188
2199
|
ref: labelEl,
|
|
2189
2200
|
class: "label",
|
|
2190
2201
|
title: unref(isTruncated) ? props.label : void 0
|
|
2191
|
-
}, toDisplayString(props.label), 9, _hoisted_3$
|
|
2202
|
+
}, toDisplayString(props.label), 9, _hoisted_3$n)
|
|
2192
2203
|
]);
|
|
2193
2204
|
};
|
|
2194
2205
|
}
|
|
@@ -2240,7 +2251,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
2240
2251
|
}
|
|
2241
2252
|
});
|
|
2242
2253
|
|
|
2243
|
-
const _hoisted_1$
|
|
2254
|
+
const _hoisted_1$L = ["id", "aria-label", "aria-activedescendant"];
|
|
2244
2255
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
2245
2256
|
__name: "KdsMenuContainer",
|
|
2246
2257
|
props: {
|
|
@@ -2320,7 +2331,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
2320
2331
|
onClick: ($event) => handleItemInteraction(item, $event)
|
|
2321
2332
|
}, null, 8, ["item", "is-last", "active-id", "variant", "onClick"]);
|
|
2322
2333
|
}), 128))
|
|
2323
|
-
], 12, _hoisted_1$
|
|
2334
|
+
], 12, _hoisted_1$L);
|
|
2324
2335
|
};
|
|
2325
2336
|
}
|
|
2326
2337
|
});
|
|
@@ -2333,8 +2344,8 @@ const kdsPopoverPlacement = {
|
|
|
2333
2344
|
const kdsPopoverType = {
|
|
2334
2345
|
AUTO: "auto"};
|
|
2335
2346
|
|
|
2336
|
-
const _hoisted_1$
|
|
2337
|
-
const _hoisted_2$
|
|
2347
|
+
const _hoisted_1$K = ["id", "popover", "role"];
|
|
2348
|
+
const _hoisted_2$s = {
|
|
2338
2349
|
key: 0,
|
|
2339
2350
|
class: "kds-popover-default-content"
|
|
2340
2351
|
};
|
|
@@ -2396,9 +2407,9 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2396
2407
|
onToggle
|
|
2397
2408
|
}, [
|
|
2398
2409
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2399
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2410
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
2400
2411
|
], true)
|
|
2401
|
-
], 46, _hoisted_1$
|
|
2412
|
+
], 46, _hoisted_1$K);
|
|
2402
2413
|
};
|
|
2403
2414
|
}
|
|
2404
2415
|
});
|
|
@@ -2598,9 +2609,9 @@ const kdsButtonVariant = {
|
|
|
2598
2609
|
};
|
|
2599
2610
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
2600
2611
|
|
|
2601
|
-
const _hoisted_1$
|
|
2602
|
-
const _hoisted_2$
|
|
2603
|
-
const _hoisted_3$
|
|
2612
|
+
const _hoisted_1$J = ["aria-disabled"];
|
|
2613
|
+
const _hoisted_2$r = { class: "kds-empty-state-headline" };
|
|
2614
|
+
const _hoisted_3$m = {
|
|
2604
2615
|
key: 1,
|
|
2605
2616
|
class: "kds-empty-state-description"
|
|
2606
2617
|
};
|
|
@@ -2646,8 +2657,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2646
2657
|
variant: "onSurface",
|
|
2647
2658
|
"aria-hidden": "true"
|
|
2648
2659
|
})) : createCommentVNode("", true),
|
|
2649
|
-
createElementVNode("p", _hoisted_2$
|
|
2650
|
-
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2660
|
+
createElementVNode("p", _hoisted_2$r, toDisplayString(props.headline), 1),
|
|
2661
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$m, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
2651
2662
|
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$j, [
|
|
2652
2663
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
2653
2664
|
disabled: props.button?.disabled || __props.disabled,
|
|
@@ -2658,14 +2669,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2658
2669
|
onClick: _cache[1] || (_cache[1] = ($event) => !__props.disabled && emit("secondaryButtonClick", $event))
|
|
2659
2670
|
}), null, 16, ["disabled"])) : createCommentVNode("", true)
|
|
2660
2671
|
])) : createCommentVNode("", true)
|
|
2661
|
-
], 10, _hoisted_1$
|
|
2672
|
+
], 10, _hoisted_1$J);
|
|
2662
2673
|
};
|
|
2663
2674
|
}
|
|
2664
2675
|
});
|
|
2665
2676
|
|
|
2666
2677
|
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-e913660a"]]);
|
|
2667
2678
|
|
|
2668
|
-
const _hoisted_1$
|
|
2679
|
+
const _hoisted_1$I = ["aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
2669
2680
|
const loadingStateText = "Loading entries";
|
|
2670
2681
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2671
2682
|
__name: "KdsListContainer",
|
|
@@ -2790,7 +2801,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2790
2801
|
"loading-spinner": __props.loading
|
|
2791
2802
|
}, null, 8, ["headline", "loading-spinner"])
|
|
2792
2803
|
])) : createCommentVNode("", true)
|
|
2793
|
-
], 16, _hoisted_1$
|
|
2804
|
+
], 16, _hoisted_1$I);
|
|
2794
2805
|
};
|
|
2795
2806
|
}
|
|
2796
2807
|
});
|
|
@@ -2951,12 +2962,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2951
2962
|
}
|
|
2952
2963
|
});
|
|
2953
2964
|
|
|
2954
|
-
const _hoisted_1$
|
|
2955
|
-
const _hoisted_2$
|
|
2956
|
-
const _hoisted_3$
|
|
2965
|
+
const _hoisted_1$H = { class: "kds-preview-list" };
|
|
2966
|
+
const _hoisted_2$q = { class: "kds-preview-list-title-row" };
|
|
2967
|
+
const _hoisted_3$l = { class: "kds-preview-list-content" };
|
|
2957
2968
|
const _hoisted_4$i = { class: "kds-preview-list-headline" };
|
|
2958
2969
|
const _hoisted_5$9 = ["aria-label"];
|
|
2959
|
-
const _hoisted_6$
|
|
2970
|
+
const _hoisted_6$8 = { class: "kds-preview-list-show-hide" };
|
|
2960
2971
|
const DEFAULT_MAX_VISIBLE_ITEMS = 6;
|
|
2961
2972
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
2962
2973
|
__name: "KdsPreviewList",
|
|
@@ -2992,8 +3003,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
2992
3003
|
})
|
|
2993
3004
|
);
|
|
2994
3005
|
return (_ctx, _cache) => {
|
|
2995
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
2996
|
-
createElementVNode("header", _hoisted_2$
|
|
3006
|
+
return openBlock(), createElementBlock("section", _hoisted_1$H, [
|
|
3007
|
+
createElementVNode("header", _hoisted_2$q, [
|
|
2997
3008
|
__props.loading && !expanded.value ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
2998
3009
|
key: 0,
|
|
2999
3010
|
size: "small",
|
|
@@ -3003,7 +3014,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3003
3014
|
name: __props.leadingIcon,
|
|
3004
3015
|
size: "small"
|
|
3005
3016
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
3006
|
-
createElementVNode("div", _hoisted_3$
|
|
3017
|
+
createElementVNode("div", _hoisted_3$l, [
|
|
3007
3018
|
createElementVNode("span", _hoisted_4$i, toDisplayString(props.headline), 1)
|
|
3008
3019
|
]),
|
|
3009
3020
|
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$1l, normalizeProps(mergeProps({ key: 2 }, trailingButtonProps.value)), null, 16)) : createCommentVNode("", true)
|
|
@@ -3043,7 +3054,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3043
3054
|
], 512), [
|
|
3044
3055
|
[vShow, expanded.value]
|
|
3045
3056
|
]),
|
|
3046
|
-
createElementVNode("footer", _hoisted_6$
|
|
3057
|
+
createElementVNode("footer", _hoisted_6$8, [
|
|
3047
3058
|
createVNode(_sfc_main$1l, {
|
|
3048
3059
|
class: "kds-preview-list-toggle",
|
|
3049
3060
|
label: expanded.value ? "Hide all" : "Show all",
|
|
@@ -3062,8 +3073,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3062
3073
|
|
|
3063
3074
|
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-a11103f6"]]);
|
|
3064
3075
|
|
|
3065
|
-
const _hoisted_1$
|
|
3066
|
-
const _hoisted_2$
|
|
3076
|
+
const _hoisted_1$G = { class: "kds-label-wrapper" };
|
|
3077
|
+
const _hoisted_2$p = ["id", "for", "title"];
|
|
3067
3078
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
3068
3079
|
__name: "KdsLabel",
|
|
3069
3080
|
props: {
|
|
@@ -3081,7 +3092,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3081
3092
|
const labelEl = useTemplateRef("labelEl");
|
|
3082
3093
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
3083
3094
|
return (_ctx, _cache) => {
|
|
3084
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3095
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
3085
3096
|
createElementVNode("label", {
|
|
3086
3097
|
id: props.id,
|
|
3087
3098
|
ref_key: "labelEl",
|
|
@@ -3089,7 +3100,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3089
3100
|
for: props.for,
|
|
3090
3101
|
class: "label",
|
|
3091
3102
|
title: unref(isTruncated) ? props.label : void 0
|
|
3092
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
3103
|
+
}, toDisplayString(props.label), 9, _hoisted_2$p),
|
|
3093
3104
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
3094
3105
|
key: 0,
|
|
3095
3106
|
content: props.description,
|
|
@@ -3102,8 +3113,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3102
3113
|
|
|
3103
3114
|
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-efe3313e"]]);
|
|
3104
3115
|
|
|
3105
|
-
const _hoisted_1$
|
|
3106
|
-
const _hoisted_2$
|
|
3116
|
+
const _hoisted_1$F = ["id"];
|
|
3117
|
+
const _hoisted_2$o = { class: "subtext-text" };
|
|
3107
3118
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
3108
3119
|
__name: "KdsSubText",
|
|
3109
3120
|
props: {
|
|
@@ -3135,23 +3146,23 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3135
3146
|
variant: "onSurface",
|
|
3136
3147
|
"aria-hidden": "true"
|
|
3137
3148
|
})) : createCommentVNode("", true),
|
|
3138
|
-
createElementVNode("span", _hoisted_2$
|
|
3139
|
-
], 10, _hoisted_1$
|
|
3149
|
+
createElementVNode("span", _hoisted_2$o, toDisplayString(props.subText), 1)
|
|
3150
|
+
], 10, _hoisted_1$F)) : createCommentVNode("", true);
|
|
3140
3151
|
};
|
|
3141
3152
|
}
|
|
3142
3153
|
});
|
|
3143
3154
|
|
|
3144
3155
|
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2e6ba10c"]]);
|
|
3145
3156
|
|
|
3146
|
-
const _hoisted_1$
|
|
3147
|
-
const _hoisted_2$
|
|
3148
|
-
const _hoisted_3$
|
|
3157
|
+
const _hoisted_1$E = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
3158
|
+
const _hoisted_2$n = { class: "control" };
|
|
3159
|
+
const _hoisted_3$k = {
|
|
3149
3160
|
key: 0,
|
|
3150
3161
|
class: "content"
|
|
3151
3162
|
};
|
|
3152
3163
|
const _hoisted_4$h = { class: "label" };
|
|
3153
3164
|
const _hoisted_5$8 = ["id"];
|
|
3154
|
-
const _hoisted_6$
|
|
3165
|
+
const _hoisted_6$7 = {
|
|
3155
3166
|
key: 0,
|
|
3156
3167
|
class: "subtext-wrapper"
|
|
3157
3168
|
};
|
|
@@ -3228,7 +3239,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3228
3239
|
role: "checkbox",
|
|
3229
3240
|
onClick: handleClick
|
|
3230
3241
|
}, [
|
|
3231
|
-
createElementVNode("div", _hoisted_2$
|
|
3242
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
3232
3243
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
3233
3244
|
key: 0,
|
|
3234
3245
|
name: icon.value,
|
|
@@ -3236,7 +3247,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3236
3247
|
size: "xsmall"
|
|
3237
3248
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
3238
3249
|
]),
|
|
3239
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3250
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
|
|
3240
3251
|
createElementVNode("div", _hoisted_4$h, toDisplayString(props.label), 1),
|
|
3241
3252
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
3242
3253
|
key: 0,
|
|
@@ -3244,8 +3255,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3244
3255
|
class: "helper-text"
|
|
3245
3256
|
}, toDisplayString(props.helperText), 9, _hoisted_5$8)) : createCommentVNode("", true)
|
|
3246
3257
|
])) : createCommentVNode("", true)
|
|
3247
|
-
], 10, _hoisted_1$
|
|
3248
|
-
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
3258
|
+
], 10, _hoisted_1$E),
|
|
3259
|
+
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
3249
3260
|
createVNode(KdsSubText, {
|
|
3250
3261
|
id: unref(descriptionId),
|
|
3251
3262
|
"sub-text": props.subText,
|
|
@@ -3290,9 +3301,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3290
3301
|
}
|
|
3291
3302
|
});
|
|
3292
3303
|
|
|
3293
|
-
const _hoisted_1$
|
|
3294
|
-
const _hoisted_2$
|
|
3295
|
-
const _hoisted_3$
|
|
3304
|
+
const _hoisted_1$D = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
3305
|
+
const _hoisted_2$m = ["id"];
|
|
3306
|
+
const _hoisted_3$j = ["title"];
|
|
3296
3307
|
const _hoisted_4$g = { class: "kds-fieldset-content" };
|
|
3297
3308
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
3298
3309
|
__name: "BaseFieldsetWrapper",
|
|
@@ -3340,13 +3351,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
3340
3351
|
ref: legendTextEl,
|
|
3341
3352
|
class: "legend-text",
|
|
3342
3353
|
title: unref(isTruncated) ? props.label : void 0
|
|
3343
|
-
}, toDisplayString(props.label), 9, _hoisted_3$
|
|
3354
|
+
}, toDisplayString(props.label), 9, _hoisted_3$j),
|
|
3344
3355
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
3345
3356
|
key: 0,
|
|
3346
3357
|
content: props.description,
|
|
3347
3358
|
hidden: !isHovered.value
|
|
3348
3359
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
3349
|
-
], 8, _hoisted_2$
|
|
3360
|
+
], 8, _hoisted_2$m)) : createCommentVNode("", true),
|
|
3350
3361
|
createElementVNode("div", _hoisted_4$g, [
|
|
3351
3362
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3352
3363
|
]),
|
|
@@ -3357,7 +3368,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
3357
3368
|
validating: props.validating,
|
|
3358
3369
|
"preserve-sub-text-space": props.preserveSubTextSpace
|
|
3359
3370
|
}, null, 8, ["id", "sub-text", "error", "validating", "preserve-sub-text-space"])
|
|
3360
|
-
], 40, _hoisted_1$
|
|
3371
|
+
], 40, _hoisted_1$D);
|
|
3361
3372
|
};
|
|
3362
3373
|
}
|
|
3363
3374
|
});
|
|
@@ -3459,9 +3470,9 @@ const kdsCheckboxValue = {
|
|
|
3459
3470
|
};
|
|
3460
3471
|
const kdsCheckboxValues = Object.values(kdsCheckboxValue);
|
|
3461
3472
|
|
|
3462
|
-
const _hoisted_1$
|
|
3463
|
-
const _hoisted_2$
|
|
3464
|
-
const _hoisted_3$
|
|
3473
|
+
const _hoisted_1$C = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
3474
|
+
const _hoisted_2$l = { class: "control" };
|
|
3475
|
+
const _hoisted_3$i = {
|
|
3465
3476
|
key: 0,
|
|
3466
3477
|
class: "dot",
|
|
3467
3478
|
viewBox: "0 0 2 2",
|
|
@@ -3470,7 +3481,7 @@ const _hoisted_3$j = {
|
|
|
3470
3481
|
};
|
|
3471
3482
|
const _hoisted_4$f = { class: "content" };
|
|
3472
3483
|
const _hoisted_5$7 = { class: "label" };
|
|
3473
|
-
const _hoisted_6$
|
|
3484
|
+
const _hoisted_6$6 = ["id"];
|
|
3474
3485
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
3475
3486
|
__name: "KdsRadioButton",
|
|
3476
3487
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3511,8 +3522,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
3511
3522
|
type: "button",
|
|
3512
3523
|
onClick: handleClick
|
|
3513
3524
|
}, [
|
|
3514
|
-
createElementVNode("div", _hoisted_2$
|
|
3515
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
3525
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
3526
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$i, [..._cache[0] || (_cache[0] = [
|
|
3516
3527
|
createElementVNode("circle", {
|
|
3517
3528
|
cx: "1",
|
|
3518
3529
|
cy: "1",
|
|
@@ -3526,9 +3537,9 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
3526
3537
|
key: 0,
|
|
3527
3538
|
id: `${unref(id)}-helper`,
|
|
3528
3539
|
class: "helper-text"
|
|
3529
|
-
}, toDisplayString(props.helperText), 9, _hoisted_6$
|
|
3540
|
+
}, toDisplayString(props.helperText), 9, _hoisted_6$6)) : createCommentVNode("", true)
|
|
3530
3541
|
])
|
|
3531
|
-
], 10, _hoisted_1$
|
|
3542
|
+
], 10, _hoisted_1$C);
|
|
3532
3543
|
};
|
|
3533
3544
|
}
|
|
3534
3545
|
});
|
|
@@ -3732,7 +3743,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
3732
3743
|
|
|
3733
3744
|
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-d78ed4a2"]]);
|
|
3734
3745
|
|
|
3735
|
-
const _hoisted_1$
|
|
3746
|
+
const _hoisted_1$B = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
3736
3747
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
3737
3748
|
__name: "ValueSwitchItem",
|
|
3738
3749
|
props: {
|
|
@@ -3783,7 +3794,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3783
3794
|
name: props.trailingIcon,
|
|
3784
3795
|
size: __props.size
|
|
3785
3796
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
3786
|
-
], 10, _hoisted_1$
|
|
3797
|
+
], 10, _hoisted_1$B);
|
|
3787
3798
|
};
|
|
3788
3799
|
}
|
|
3789
3800
|
});
|
|
@@ -4680,21 +4691,21 @@ const useInputSegments = (modelValue, getInputElement, configRef) => {
|
|
|
4680
4691
|
};
|
|
4681
4692
|
};
|
|
4682
4693
|
|
|
4683
|
-
const _hoisted_1$
|
|
4694
|
+
const _hoisted_1$A = {
|
|
4684
4695
|
key: 0,
|
|
4685
4696
|
class: "icon-wrapper leading"
|
|
4686
4697
|
};
|
|
4687
|
-
const _hoisted_2$
|
|
4698
|
+
const _hoisted_2$k = {
|
|
4688
4699
|
key: 1,
|
|
4689
4700
|
class: "leading-slot"
|
|
4690
4701
|
};
|
|
4691
|
-
const _hoisted_3$
|
|
4702
|
+
const _hoisted_3$h = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "pattern", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant", "aria-haspopup", "aria-controls", "aria-expanded", "aria-autocomplete"];
|
|
4692
4703
|
const _hoisted_4$e = ["aria-disabled"];
|
|
4693
4704
|
const _hoisted_5$6 = {
|
|
4694
4705
|
key: 4,
|
|
4695
4706
|
class: "trailing-slot"
|
|
4696
4707
|
};
|
|
4697
|
-
const _hoisted_6$
|
|
4708
|
+
const _hoisted_6$5 = {
|
|
4698
4709
|
key: 5,
|
|
4699
4710
|
class: "icon-wrapper trailing"
|
|
4700
4711
|
};
|
|
@@ -4849,13 +4860,13 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4849
4860
|
}),
|
|
4850
4861
|
onClick: handleContainerClick
|
|
4851
4862
|
}, [
|
|
4852
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4863
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
4853
4864
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
4854
4865
|
key: 0,
|
|
4855
4866
|
name: props.leadingIcon
|
|
4856
4867
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
4857
4868
|
])) : createCommentVNode("", true),
|
|
4858
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4869
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
|
|
4859
4870
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
4860
4871
|
])) : createCommentVNode("", true),
|
|
4861
4872
|
createElementVNode("input", {
|
|
@@ -4900,7 +4911,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4900
4911
|
onCut: handleInputCut,
|
|
4901
4912
|
onDrop: handleInputDrop,
|
|
4902
4913
|
onDragend: handleInputDragEnd
|
|
4903
|
-
}, null, 42, _hoisted_3$
|
|
4914
|
+
}, null, 42, _hoisted_3$h),
|
|
4904
4915
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
4905
4916
|
key: 2,
|
|
4906
4917
|
class: normalizeClass({
|
|
@@ -4923,7 +4934,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4923
4934
|
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
4924
4935
|
renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
|
|
4925
4936
|
])) : createCommentVNode("", true),
|
|
4926
|
-
props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
4937
|
+
props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
4927
4938
|
createVNode(KdsIcon, {
|
|
4928
4939
|
name: props.trailingIcon
|
|
4929
4940
|
}, null, 8, ["name"])
|
|
@@ -5643,7 +5654,7 @@ const removeAlphaFromHexInput = (next) => {
|
|
|
5643
5654
|
return next;
|
|
5644
5655
|
};
|
|
5645
5656
|
|
|
5646
|
-
const _hoisted_1$
|
|
5657
|
+
const _hoisted_1$z = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"];
|
|
5647
5658
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5648
5659
|
__name: "ColorPickerSlider",
|
|
5649
5660
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5728,16 +5739,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5728
5739
|
onKeydown: onKeyDown
|
|
5729
5740
|
}, [..._cache[5] || (_cache[5] = [
|
|
5730
5741
|
createElementVNode("div", { class: "handle" }, null, -1)
|
|
5731
|
-
])], 40, _hoisted_1$
|
|
5742
|
+
])], 40, _hoisted_1$z);
|
|
5732
5743
|
};
|
|
5733
5744
|
}
|
|
5734
5745
|
});
|
|
5735
5746
|
|
|
5736
5747
|
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
5737
5748
|
|
|
5738
|
-
const _hoisted_1$
|
|
5739
|
-
const _hoisted_2$
|
|
5740
|
-
const _hoisted_3$
|
|
5749
|
+
const _hoisted_1$y = { class: "kds-color-picker" };
|
|
5750
|
+
const _hoisted_2$j = ["aria-valuetext"];
|
|
5751
|
+
const _hoisted_3$g = { class: "value-inputs" };
|
|
5741
5752
|
const DEFAULT_HUE_DEG = 270;
|
|
5742
5753
|
const DEFAULT_SATURATION = 0.8;
|
|
5743
5754
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -5899,7 +5910,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5899
5910
|
}
|
|
5900
5911
|
};
|
|
5901
5912
|
return (_ctx, _cache) => {
|
|
5902
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5913
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
5903
5914
|
createElementVNode("div", {
|
|
5904
5915
|
ref_key: "colorspaceEl",
|
|
5905
5916
|
ref: colorspaceEl,
|
|
@@ -5927,7 +5938,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5927
5938
|
class: "handle",
|
|
5928
5939
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
5929
5940
|
}, null, 4)
|
|
5930
|
-
], 44, _hoisted_2$
|
|
5941
|
+
], 44, _hoisted_2$j),
|
|
5931
5942
|
createVNode(ColorPickerSlider, {
|
|
5932
5943
|
modelValue: hue.value,
|
|
5933
5944
|
"onUpdate:modelValue": [
|
|
@@ -5962,7 +5973,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5962
5973
|
step: KEYBOARD_STEP,
|
|
5963
5974
|
"large-step": KEYBOARD_LARGE_STEP
|
|
5964
5975
|
}, null, 8, ["modelValue", "value-now", "value-text"]),
|
|
5965
|
-
createElementVNode("div", _hoisted_3$
|
|
5976
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
5966
5977
|
createVNode(KdsTextInput, {
|
|
5967
5978
|
"model-value": hexInputValue.value,
|
|
5968
5979
|
ariaLabel: "Color hex value",
|
|
@@ -10274,12 +10285,12 @@ const sn = /*@__PURE__*/ new WeakMap, cn = /*@__PURE__*/ sn.get.bind(sn), un = /
|
|
|
10274
10285
|
DateTimeFormat: Xn
|
|
10275
10286
|
}));
|
|
10276
10287
|
|
|
10277
|
-
const _hoisted_1$
|
|
10288
|
+
const _hoisted_1$x = {
|
|
10278
10289
|
role: "row",
|
|
10279
10290
|
class: "kds-date-picker-header-row"
|
|
10280
10291
|
};
|
|
10281
|
-
const _hoisted_2$
|
|
10282
|
-
const _hoisted_3$
|
|
10292
|
+
const _hoisted_2$i = ["aria-label"];
|
|
10293
|
+
const _hoisted_3$f = { class: "kds-date-picker-day-grid" };
|
|
10283
10294
|
const _hoisted_4$d = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onFocus"];
|
|
10284
10295
|
const REFERENCE_YEAR$2 = 2024;
|
|
10285
10296
|
const DAYS_PER_WEEK = 7;
|
|
@@ -10579,17 +10590,17 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10579
10590
|
role: "grid",
|
|
10580
10591
|
"aria-label": "Calendar"
|
|
10581
10592
|
}, [
|
|
10582
|
-
createElementVNode("div", _hoisted_1$
|
|
10593
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
10583
10594
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(DAY_LABELS), (day, i) => {
|
|
10584
10595
|
return openBlock(), createElementBlock("div", {
|
|
10585
10596
|
key: day,
|
|
10586
10597
|
role: "columnheader",
|
|
10587
10598
|
"aria-label": unref(DAY_FULL_LABELS)[i],
|
|
10588
10599
|
class: "kds-date-picker-weekday"
|
|
10589
|
-
}, toDisplayString(day), 9, _hoisted_2$
|
|
10600
|
+
}, toDisplayString(day), 9, _hoisted_2$i);
|
|
10590
10601
|
}), 128))
|
|
10591
10602
|
]),
|
|
10592
|
-
createElementVNode("div", _hoisted_3$
|
|
10603
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
10593
10604
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, wi) => {
|
|
10594
10605
|
return openBlock(), createElementBlock("div", {
|
|
10595
10606
|
key: wi,
|
|
@@ -10630,7 +10641,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10630
10641
|
|
|
10631
10642
|
const DatePickerDayGrid = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-51807b35"]]);
|
|
10632
10643
|
|
|
10633
|
-
const _hoisted_1$
|
|
10644
|
+
const _hoisted_1$w = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
10634
10645
|
const REFERENCE_YEAR$1 = 2024;
|
|
10635
10646
|
const MONTHS_PER_YEAR$1 = 12;
|
|
10636
10647
|
const MONTH_GRID_COLS = 3;
|
|
@@ -10824,7 +10835,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
10824
10835
|
onClick: ($event) => selectMonth(cell.month),
|
|
10825
10836
|
onKeydown: ($event) => onKeydown($event, cell.month),
|
|
10826
10837
|
onFocus: ($event) => focusedCell.value = cell.month
|
|
10827
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
10838
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$w);
|
|
10828
10839
|
}), 128))
|
|
10829
10840
|
]);
|
|
10830
10841
|
}), 128))
|
|
@@ -10835,7 +10846,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
10835
10846
|
|
|
10836
10847
|
const DatePickerMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-63d96e84"]]);
|
|
10837
10848
|
|
|
10838
|
-
const _hoisted_1$
|
|
10849
|
+
const _hoisted_1$v = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
10839
10850
|
const YEAR_PAGE_SIZE$1 = 15;
|
|
10840
10851
|
const YEAR_GRID_COLS = 3;
|
|
10841
10852
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
@@ -10996,7 +11007,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10996
11007
|
onClick: ($event) => selectYear(cell.year),
|
|
10997
11008
|
onKeydown: ($event) => onKeydown($event, cell.year),
|
|
10998
11009
|
onFocus: ($event) => focusedCell.value = cell.year
|
|
10999
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
11010
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$v);
|
|
11000
11011
|
}), 128))
|
|
11001
11012
|
]);
|
|
11002
11013
|
}), 128))
|
|
@@ -11007,16 +11018,16 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11007
11018
|
|
|
11008
11019
|
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-270d55b9"]]);
|
|
11009
11020
|
|
|
11010
|
-
const _hoisted_1$
|
|
11011
|
-
const _hoisted_2$
|
|
11012
|
-
const _hoisted_3$
|
|
11021
|
+
const _hoisted_1$u = { class: "kds-date-picker" };
|
|
11022
|
+
const _hoisted_2$h = { class: "kds-date-picker-header" };
|
|
11023
|
+
const _hoisted_3$e = { class: "kds-date-picker-nav-block" };
|
|
11013
11024
|
const _hoisted_4$c = {
|
|
11014
11025
|
key: 1,
|
|
11015
11026
|
class: "kds-date-picker-header-static-label",
|
|
11016
11027
|
"aria-live": "polite"
|
|
11017
11028
|
};
|
|
11018
11029
|
const _hoisted_5$5 = { class: "kds-date-picker-nav-block" };
|
|
11019
|
-
const _hoisted_6$
|
|
11030
|
+
const _hoisted_6$4 = { class: "kds-date-picker-body" };
|
|
11020
11031
|
const MONTHS_PER_YEAR = 12;
|
|
11021
11032
|
const YEAR_PAGE_SIZE = 15;
|
|
11022
11033
|
const REFERENCE_YEAR = 2024;
|
|
@@ -11216,9 +11227,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11216
11227
|
});
|
|
11217
11228
|
__expose({ focus });
|
|
11218
11229
|
return (_ctx, _cache) => {
|
|
11219
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11220
|
-
createElementVNode("div", _hoisted_2$
|
|
11221
|
-
createElementVNode("div", _hoisted_3$
|
|
11230
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
11231
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
11232
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
11222
11233
|
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
11223
11234
|
key: 0,
|
|
11224
11235
|
variant: "transparent",
|
|
@@ -11265,7 +11276,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11265
11276
|
}, null, 8, ["disabled"])) : createCommentVNode("", true)
|
|
11266
11277
|
])
|
|
11267
11278
|
]),
|
|
11268
|
-
createElementVNode("div", _hoisted_6$
|
|
11279
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
11269
11280
|
view.value === "day" ? (openBlock(), createBlock(DatePickerDayGrid, {
|
|
11270
11281
|
key: 0,
|
|
11271
11282
|
ref_key: "dayGridRef",
|
|
@@ -11587,7 +11598,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11587
11598
|
}
|
|
11588
11599
|
});
|
|
11589
11600
|
|
|
11590
|
-
const _hoisted_1$
|
|
11601
|
+
const _hoisted_1$t = { class: "kds-date-time-format-popover" };
|
|
11591
11602
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11592
11603
|
__name: "DateTimeFormatPopover",
|
|
11593
11604
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -11726,7 +11737,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11726
11737
|
}));
|
|
11727
11738
|
});
|
|
11728
11739
|
return (_ctx, _cache) => {
|
|
11729
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11740
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
11730
11741
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch, {
|
|
11731
11742
|
key: 0,
|
|
11732
11743
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -12171,7 +12182,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12171
12182
|
|
|
12172
12183
|
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-3e274ed2"]]);
|
|
12173
12184
|
|
|
12174
|
-
const _hoisted_1$
|
|
12185
|
+
const _hoisted_1$s = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
12175
12186
|
const DEFAULT_ROWS = 3;
|
|
12176
12187
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12177
12188
|
__name: "KdsTextarea",
|
|
@@ -12239,7 +12250,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12239
12250
|
placeholder: __props.placeholder,
|
|
12240
12251
|
disabled: __props.disabled,
|
|
12241
12252
|
autocomplete: props.autocomplete
|
|
12242
|
-
}), null, 16, _hoisted_1$
|
|
12253
|
+
}), null, 16, _hoisted_1$s), [
|
|
12243
12254
|
[vModelText, modelValue.value]
|
|
12244
12255
|
])
|
|
12245
12256
|
]),
|
|
@@ -12251,9 +12262,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
12251
12262
|
|
|
12252
12263
|
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-8e5a54cf"]]);
|
|
12253
12264
|
|
|
12254
|
-
const _hoisted_1$
|
|
12255
|
-
const _hoisted_2$
|
|
12256
|
-
const _hoisted_3$
|
|
12265
|
+
const _hoisted_1$r = { class: "kds-time-picker" };
|
|
12266
|
+
const _hoisted_2$g = { class: "kds-time-picker-fields" };
|
|
12267
|
+
const _hoisted_3$d = { class: "kds-time-picker-fields" };
|
|
12257
12268
|
const _hoisted_4$b = {
|
|
12258
12269
|
key: 0,
|
|
12259
12270
|
class: "kds-time-picker-fields"
|
|
@@ -12262,7 +12273,7 @@ const _hoisted_5$4 = {
|
|
|
12262
12273
|
key: 1,
|
|
12263
12274
|
class: "kds-time-picker-actions"
|
|
12264
12275
|
};
|
|
12265
|
-
const _hoisted_6$
|
|
12276
|
+
const _hoisted_6$3 = {
|
|
12266
12277
|
key: 2,
|
|
12267
12278
|
class: "kds-time-picker-actions"
|
|
12268
12279
|
};
|
|
@@ -12356,8 +12367,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12356
12367
|
};
|
|
12357
12368
|
__expose({ focus });
|
|
12358
12369
|
return (_ctx, _cache) => {
|
|
12359
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12360
|
-
createElementVNode("div", _hoisted_2$
|
|
12370
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
12371
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
12361
12372
|
createVNode(_sfc_main$T, {
|
|
12362
12373
|
ref: "hourInput",
|
|
12363
12374
|
modelValue: hour.value,
|
|
@@ -12383,7 +12394,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12383
12394
|
class: "kds-time-picker-divider"
|
|
12384
12395
|
})) : createCommentVNode("", true),
|
|
12385
12396
|
showSecondInput.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
12386
|
-
createElementVNode("div", _hoisted_3$
|
|
12397
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
12387
12398
|
createVNode(_sfc_main$T, {
|
|
12388
12399
|
ref: "secondInput",
|
|
12389
12400
|
modelValue: second.value,
|
|
@@ -12434,7 +12445,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
12434
12445
|
onClick: addMilliseconds
|
|
12435
12446
|
})
|
|
12436
12447
|
])) : createCommentVNode("", true)
|
|
12437
|
-
], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12448
|
+
], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
12438
12449
|
createVNode(_sfc_main$1l, {
|
|
12439
12450
|
variant: "outlined",
|
|
12440
12451
|
size: "small",
|
|
@@ -13035,9 +13046,9 @@ const stripInactiveFields = (duration, usedFormat) => {
|
|
|
13035
13046
|
};
|
|
13036
13047
|
const toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
13037
13048
|
|
|
13038
|
-
const _hoisted_1$
|
|
13039
|
-
const _hoisted_2$
|
|
13040
|
-
const _hoisted_3$
|
|
13049
|
+
const _hoisted_1$q = { class: "kds-interval-popover" };
|
|
13050
|
+
const _hoisted_2$f = { class: "kds-interval-popover-header" };
|
|
13051
|
+
const _hoisted_3$c = { class: "kds-interval-popover-content" };
|
|
13041
13052
|
const _hoisted_4$a = { class: "kds-interval-popover-grid" };
|
|
13042
13053
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
13043
13054
|
__name: "IntervalInputPopover",
|
|
@@ -13133,8 +13144,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
13133
13144
|
}
|
|
13134
13145
|
});
|
|
13135
13146
|
return (_ctx, _cache) => {
|
|
13136
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13137
|
-
createElementVNode("div", _hoisted_2$
|
|
13147
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
13148
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
13138
13149
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)),
|
|
13139
13150
|
props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
13140
13151
|
key: 0,
|
|
@@ -13146,7 +13157,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
13146
13157
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
13147
13158
|
]),
|
|
13148
13159
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "kds-interval-popover-divider" }, null, -1)),
|
|
13149
|
-
createElementVNode("div", _hoisted_3$
|
|
13160
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
13150
13161
|
props.allowDescending ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
13151
13162
|
key: 0,
|
|
13152
13163
|
modelValue: direction.value,
|
|
@@ -13397,13 +13408,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13397
13408
|
}
|
|
13398
13409
|
});
|
|
13399
13410
|
|
|
13400
|
-
const _hoisted_1$
|
|
13401
|
-
const _hoisted_2$
|
|
13411
|
+
const _hoisted_1$p = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
13412
|
+
const _hoisted_2$e = {
|
|
13402
13413
|
key: 0,
|
|
13403
13414
|
class: "leading",
|
|
13404
13415
|
"aria-hidden": "true"
|
|
13405
13416
|
};
|
|
13406
|
-
const _hoisted_3$
|
|
13417
|
+
const _hoisted_3$b = ["id"];
|
|
13407
13418
|
const _hoisted_4$9 = {
|
|
13408
13419
|
class: "trailing",
|
|
13409
13420
|
"aria-hidden": "true"
|
|
@@ -13480,7 +13491,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13480
13491
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
13481
13492
|
onKeydown
|
|
13482
13493
|
}, [
|
|
13483
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
13494
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
|
|
13484
13495
|
createVNode(_sfc_main$1g, {
|
|
13485
13496
|
accessory: props.accessory,
|
|
13486
13497
|
size: "medium"
|
|
@@ -13492,14 +13503,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13492
13503
|
placeholder: !props.text && !__props.disabled,
|
|
13493
13504
|
missing: __props.missing
|
|
13494
13505
|
}])
|
|
13495
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
13506
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$b),
|
|
13496
13507
|
createElementVNode("span", _hoisted_4$9, [
|
|
13497
13508
|
createVNode(KdsIcon, {
|
|
13498
13509
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
13499
13510
|
size: "small"
|
|
13500
13511
|
}, null, 8, ["name"])
|
|
13501
13512
|
])
|
|
13502
|
-
], 42, _hoisted_1$
|
|
13513
|
+
], 42, _hoisted_1$p);
|
|
13503
13514
|
};
|
|
13504
13515
|
}
|
|
13505
13516
|
});
|
|
@@ -13508,8 +13519,8 @@ const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "da
|
|
|
13508
13519
|
|
|
13509
13520
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
13510
13521
|
|
|
13511
|
-
const _hoisted_1$
|
|
13512
|
-
const _hoisted_2$
|
|
13522
|
+
const _hoisted_1$o = { class: "kds-dropdown-container" };
|
|
13523
|
+
const _hoisted_2$d = {
|
|
13513
13524
|
key: 0,
|
|
13514
13525
|
class: "kds-dropdown-container-sticky-top"
|
|
13515
13526
|
};
|
|
@@ -13597,8 +13608,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13597
13608
|
}
|
|
13598
13609
|
});
|
|
13599
13610
|
return (_ctx, _cache) => {
|
|
13600
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13601
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13611
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
13612
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
13602
13613
|
createVNode(BaseInput, {
|
|
13603
13614
|
ref_key: "searchEl",
|
|
13604
13615
|
ref: searchEl,
|
|
@@ -13725,8 +13736,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13725
13736
|
}
|
|
13726
13737
|
});
|
|
13727
13738
|
|
|
13728
|
-
const _hoisted_1$
|
|
13729
|
-
const _hoisted_2$
|
|
13739
|
+
const _hoisted_1$n = ["disabled"];
|
|
13740
|
+
const _hoisted_2$c = ["title"];
|
|
13730
13741
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
13731
13742
|
__name: "KdsListItemButton",
|
|
13732
13743
|
props: {
|
|
@@ -13757,20 +13768,20 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13757
13768
|
ref: labelEl,
|
|
13758
13769
|
class: "label",
|
|
13759
13770
|
title: unref(isLabelTruncated) ? props.label : void 0
|
|
13760
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
13761
|
-
], 8, _hoisted_1$
|
|
13771
|
+
}, toDisplayString(props.label), 9, _hoisted_2$c)
|
|
13772
|
+
], 8, _hoisted_1$n);
|
|
13762
13773
|
};
|
|
13763
13774
|
}
|
|
13764
13775
|
});
|
|
13765
13776
|
|
|
13766
13777
|
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-21fb5571"]]);
|
|
13767
13778
|
|
|
13768
|
-
const _hoisted_1$
|
|
13769
|
-
const _hoisted_2$
|
|
13779
|
+
const _hoisted_1$m = { class: "kds-multi-select-dropdown-options" };
|
|
13780
|
+
const _hoisted_2$b = {
|
|
13770
13781
|
key: 0,
|
|
13771
13782
|
class: "kds-multi-select-dropdown-search"
|
|
13772
13783
|
};
|
|
13773
|
-
const _hoisted_3$
|
|
13784
|
+
const _hoisted_3$a = {
|
|
13774
13785
|
key: 1,
|
|
13775
13786
|
class: "kds-multi-select-dropdown-footer"
|
|
13776
13787
|
};
|
|
@@ -13897,8 +13908,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13897
13908
|
}
|
|
13898
13909
|
});
|
|
13899
13910
|
return (_ctx, _cache) => {
|
|
13900
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13901
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13911
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
13912
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
13902
13913
|
createVNode(BaseInput, {
|
|
13903
13914
|
ref_key: "searchEl",
|
|
13904
13915
|
ref: searchEl,
|
|
@@ -13927,7 +13938,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13927
13938
|
"aria-label": "Dropdown options",
|
|
13928
13939
|
onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
|
|
13929
13940
|
}, null, 8, ["class", "possible-values", "loading", "empty-text", "controlled-externally"]),
|
|
13930
|
-
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
13941
|
+
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
13931
13942
|
createVNode(unref(KdsListItemButton), {
|
|
13932
13943
|
label: anyVisibleSelected.value ? "Clear all" : "Select all",
|
|
13933
13944
|
"leading-icon": anyVisibleSelected.value ? "trash" : "checkmark",
|
|
@@ -14069,8 +14080,8 @@ const kdsDimensionComponentHeight20x = 320;
|
|
|
14069
14080
|
const kdsSpacingContainer0p10x = 1;
|
|
14070
14081
|
const kdsSpacingContainer0p25x = 4;
|
|
14071
14082
|
|
|
14072
|
-
const _hoisted_1$
|
|
14073
|
-
const _hoisted_2$
|
|
14083
|
+
const _hoisted_1$l = { class: "kds-resize-handle-area" };
|
|
14084
|
+
const _hoisted_2$a = ["aria-label"];
|
|
14074
14085
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
14075
14086
|
__name: "ResizeHandle",
|
|
14076
14087
|
props: {
|
|
@@ -14093,7 +14104,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
14093
14104
|
return `calc((100% - ${n - 1} * ${gap}) / ${2 * n})`;
|
|
14094
14105
|
});
|
|
14095
14106
|
return (_ctx, _cache) => {
|
|
14096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14107
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
14097
14108
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedNumberOfHandles.value, (i) => {
|
|
14098
14109
|
return openBlock(), createElementBlock("button", {
|
|
14099
14110
|
key: i,
|
|
@@ -14102,7 +14113,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
14102
14113
|
type: "button"
|
|
14103
14114
|
}, [..._cache[0] || (_cache[0] = [
|
|
14104
14115
|
createElementVNode("span", { class: "kds-resize-handle-line" }, null, -1)
|
|
14105
|
-
])], 8, _hoisted_2$
|
|
14116
|
+
])], 8, _hoisted_2$a);
|
|
14106
14117
|
}), 128))
|
|
14107
14118
|
]);
|
|
14108
14119
|
};
|
|
@@ -14111,7 +14122,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
14111
14122
|
|
|
14112
14123
|
const ResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-df3803d4"]]);
|
|
14113
14124
|
|
|
14114
|
-
const _hoisted_1$
|
|
14125
|
+
const _hoisted_1$k = {
|
|
14115
14126
|
ref: "content",
|
|
14116
14127
|
class: "kds-resize-container-content"
|
|
14117
14128
|
};
|
|
@@ -14180,7 +14191,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
14180
14191
|
return openBlock(), createElementBlock("div", {
|
|
14181
14192
|
class: normalizeClass(["kds-resize-container", { dragging: unref(activePointerId) !== null }])
|
|
14182
14193
|
}, [
|
|
14183
|
-
createElementVNode("div", _hoisted_1$
|
|
14194
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
14184
14195
|
renderSlot(_ctx.$slots, "default", { contentStyle: contentStyle.value }, void 0, true)
|
|
14185
14196
|
], 512),
|
|
14186
14197
|
createVNode(ResizeHandle, {
|
|
@@ -14490,9 +14501,9 @@ const useMultiSelectListBoxSelection = ({
|
|
|
14490
14501
|
};
|
|
14491
14502
|
};
|
|
14492
14503
|
|
|
14493
|
-
const _hoisted_1$
|
|
14494
|
-
const _hoisted_2$
|
|
14495
|
-
const _hoisted_3$
|
|
14504
|
+
const _hoisted_1$j = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
14505
|
+
const _hoisted_2$9 = { class: "kds-multiselect-list-box-content-grid" };
|
|
14506
|
+
const _hoisted_3$9 = {
|
|
14496
14507
|
key: 0,
|
|
14497
14508
|
class: "kds-multiselect-sticky-bottom"
|
|
14498
14509
|
};
|
|
@@ -14753,7 +14764,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14753
14764
|
onBlur: _cache[17] || (_cache[17] = //@ts-ignore
|
|
14754
14765
|
(...args) => unref(onBlur) && unref(onBlur)(...args))
|
|
14755
14766
|
}), [
|
|
14756
|
-
createElementVNode("div", _hoisted_2$
|
|
14767
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
14757
14768
|
createElementVNode("div", mergeProps({ class: "kds-multiselect-list-box-content" }, unref(wrapperProps)), [
|
|
14758
14769
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(virtualList), ({ data: item, index }) => {
|
|
14759
14770
|
return openBlock(), createBlock(unref(KdsListItem), {
|
|
@@ -14780,7 +14791,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14780
14791
|
}, null, 8, ["id", "class", "text", "accessory", "missing", "special", "data-option-index", "selected", "disabled", "active", "trailing-icon", "onDblclick", "onClick"]);
|
|
14781
14792
|
}), 128))
|
|
14782
14793
|
], 16),
|
|
14783
|
-
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14794
|
+
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
14784
14795
|
createVNode(unref(KdsListItem), {
|
|
14785
14796
|
id: generateOptionId(visibleBottomValue.value.id),
|
|
14786
14797
|
text: visibleBottomValue.value.text,
|
|
@@ -14800,7 +14811,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14800
14811
|
}, null, 8, ["id", "text", "accessory", "missing", "data-option-index", "selected", "disabled", "active", "trailing-icon"])
|
|
14801
14812
|
])) : createCommentVNode("", true)
|
|
14802
14813
|
])
|
|
14803
|
-
], 16, _hoisted_1$
|
|
14814
|
+
], 16, _hoisted_1$j),
|
|
14804
14815
|
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
14805
14816
|
createVNode(KdsEmptyState, {
|
|
14806
14817
|
headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
|
|
@@ -14821,15 +14832,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14821
14832
|
|
|
14822
14833
|
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2c5e2dda"]]);
|
|
14823
14834
|
|
|
14824
|
-
const _hoisted_1$
|
|
14825
|
-
const _hoisted_2$
|
|
14826
|
-
const _hoisted_3$
|
|
14835
|
+
const _hoisted_1$i = { class: "kds-list-column" };
|
|
14836
|
+
const _hoisted_2$8 = { class: "kds-list-header" };
|
|
14837
|
+
const _hoisted_3$8 = { class: "kds-list-label" };
|
|
14827
14838
|
const _hoisted_4$7 = {
|
|
14828
14839
|
key: 0,
|
|
14829
14840
|
class: "kds-list-count"
|
|
14830
14841
|
};
|
|
14831
14842
|
const _hoisted_5$3 = { class: "kds-button-column" };
|
|
14832
|
-
const _hoisted_6$
|
|
14843
|
+
const _hoisted_6$2 = { class: "kds-list-column" };
|
|
14833
14844
|
const _hoisted_7$1 = { class: "kds-list-header" };
|
|
14834
14845
|
const _hoisted_8$1 = { class: "kds-list-label" };
|
|
14835
14846
|
const _hoisted_9$1 = {
|
|
@@ -15011,9 +15022,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15011
15022
|
class: "kds-twin-list-body",
|
|
15012
15023
|
style: normalizeStyle(contentStyle)
|
|
15013
15024
|
}, [
|
|
15014
|
-
createElementVNode("div", _hoisted_1$
|
|
15015
|
-
createElementVNode("div", _hoisted_2$
|
|
15016
|
-
createElementVNode("span", _hoisted_3$
|
|
15025
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
15026
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
15027
|
+
createElementVNode("span", _hoisted_3$8, toDisplayString(__props.excludeLabel), 1),
|
|
15017
15028
|
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(leftOptions.value.length) + " of " + toDisplayString(excludedItems.value.length), 1)) : createCommentVNode("", true)
|
|
15018
15029
|
]),
|
|
15019
15030
|
createVNode(unref(KdsMultiSelectListBox), {
|
|
@@ -15077,7 +15088,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15077
15088
|
]))
|
|
15078
15089
|
}, null, 8, ["disabled"])
|
|
15079
15090
|
]),
|
|
15080
|
-
createElementVNode("div", _hoisted_6$
|
|
15091
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
15081
15092
|
createElementVNode("div", _hoisted_7$1, [
|
|
15082
15093
|
createElementVNode("span", _hoisted_8$1, toDisplayString(__props.includeLabel), 1),
|
|
15083
15094
|
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(rightOptions.value.length) + " of " + toDisplayString(includedItems.value.length), 1)) : createCommentVNode("", true)
|
|
@@ -15220,7 +15231,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
15220
15231
|
}
|
|
15221
15232
|
});
|
|
15222
15233
|
|
|
15223
|
-
const _hoisted_1$
|
|
15234
|
+
const _hoisted_1$h = { class: "kds-twin-list" };
|
|
15224
15235
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
15225
15236
|
__name: "KdsTwinList",
|
|
15226
15237
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -15352,7 +15363,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15352
15363
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
15353
15364
|
}, {
|
|
15354
15365
|
default: withCtx(() => [
|
|
15355
|
-
createElementVNode("div", _hoisted_1$
|
|
15366
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
15356
15367
|
createVNode(_sfc_main$o, {
|
|
15357
15368
|
mode: mode.value,
|
|
15358
15369
|
"onUpdate:mode": _cache[0] || (_cache[0] = ($event) => mode.value = $event),
|
|
@@ -15453,9 +15464,9 @@ const useSortableListBoxReorder = ({
|
|
|
15453
15464
|
};
|
|
15454
15465
|
};
|
|
15455
15466
|
|
|
15456
|
-
const _hoisted_1$
|
|
15457
|
-
const _hoisted_2$
|
|
15458
|
-
const _hoisted_3$
|
|
15467
|
+
const _hoisted_1$g = { class: "kds-sortable-list-box-wrapper" };
|
|
15468
|
+
const _hoisted_2$7 = { class: "kds-sortable-top-buttons" };
|
|
15469
|
+
const _hoisted_3$7 = { class: "kds-sortable-top-buttons-left" };
|
|
15459
15470
|
const _hoisted_4$6 = { class: "kds-sortable-footer-buttons" };
|
|
15460
15471
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
15461
15472
|
__name: "KdsSortableListBox",
|
|
@@ -15514,9 +15525,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
15514
15525
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
15515
15526
|
}), {
|
|
15516
15527
|
default: withCtx(() => [
|
|
15517
|
-
createElementVNode("div", _hoisted_1$
|
|
15518
|
-
createElementVNode("div", _hoisted_2$
|
|
15519
|
-
createElementVNode("div", _hoisted_3$
|
|
15528
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
15529
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
15530
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
15520
15531
|
createVNode(_sfc_main$1l, {
|
|
15521
15532
|
size: "small",
|
|
15522
15533
|
variant: "transparent",
|
|
@@ -15603,7 +15614,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
15603
15614
|
|
|
15604
15615
|
const KdsSortableListBox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ee7b63e2"]]);
|
|
15605
15616
|
|
|
15606
|
-
const _hoisted_1$
|
|
15617
|
+
const _hoisted_1$f = { class: "kds-info-popover-content" };
|
|
15607
15618
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
15608
15619
|
__name: "InfoPopover",
|
|
15609
15620
|
props: {
|
|
@@ -15612,7 +15623,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
15612
15623
|
setup(__props) {
|
|
15613
15624
|
const props = __props;
|
|
15614
15625
|
return (_ctx, _cache) => {
|
|
15615
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15626
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
15616
15627
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15617
15628
|
createTextVNode(toDisplayString(props.content), 1)
|
|
15618
15629
|
], true)
|
|
@@ -15623,7 +15634,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
15623
15634
|
|
|
15624
15635
|
const InfoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-951f2a2b"]]);
|
|
15625
15636
|
|
|
15626
|
-
const _hoisted_1$
|
|
15637
|
+
const _hoisted_1$e = ["aria-pressed", "aria-expanded", "aria-controls"];
|
|
15627
15638
|
const TITLE = "Click for more information";
|
|
15628
15639
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
15629
15640
|
__name: "KdsInfoToggleButton",
|
|
@@ -15667,7 +15678,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
15667
15678
|
name: "circle-question",
|
|
15668
15679
|
size: "small"
|
|
15669
15680
|
})
|
|
15670
|
-
], 16, _hoisted_1$
|
|
15681
|
+
], 16, _hoisted_1$e),
|
|
15671
15682
|
createVNode(KdsPopover, {
|
|
15672
15683
|
ref_key: "popoverEl",
|
|
15673
15684
|
ref: popoverEl,
|
|
@@ -15701,7 +15712,7 @@ const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.def
|
|
|
15701
15712
|
default: KdsInfoToggleButton
|
|
15702
15713
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15703
15714
|
|
|
15704
|
-
const _hoisted_1$
|
|
15715
|
+
const _hoisted_1$d = {
|
|
15705
15716
|
class: "kds-variable-popover",
|
|
15706
15717
|
tabindex: "0"
|
|
15707
15718
|
};
|
|
@@ -15713,7 +15724,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
15713
15724
|
setup(__props) {
|
|
15714
15725
|
const props = __props;
|
|
15715
15726
|
return (_ctx, _cache) => {
|
|
15716
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15727
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
15717
15728
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15718
15729
|
createTextVNode(toDisplayString(props.content), 1)
|
|
15719
15730
|
], true)
|
|
@@ -15724,7 +15735,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
15724
15735
|
|
|
15725
15736
|
const VariablePopover = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8a0c56d0"]]);
|
|
15726
15737
|
|
|
15727
|
-
const _hoisted_1$
|
|
15738
|
+
const _hoisted_1$c = ["title", "aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
15728
15739
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
15729
15740
|
__name: "KdsVariableToggleButton",
|
|
15730
15741
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -15814,7 +15825,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
15814
15825
|
name: iconName.value,
|
|
15815
15826
|
size: "small"
|
|
15816
15827
|
}, null, 8, ["name"])
|
|
15817
|
-
], 16, _hoisted_1$
|
|
15828
|
+
], 16, _hoisted_1$c),
|
|
15818
15829
|
createVNode(KdsPopover, {
|
|
15819
15830
|
ref_key: "popoverEl",
|
|
15820
15831
|
ref: popoverEl,
|
|
@@ -15844,11 +15855,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
15844
15855
|
|
|
15845
15856
|
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b6d29842"]]);
|
|
15846
15857
|
|
|
15847
|
-
const _hoisted_1$
|
|
15848
|
-
const _hoisted_2$
|
|
15849
|
-
const _hoisted_3$
|
|
15850
|
-
const _hoisted_4$5 = { class: "kds-accordion-headline" };
|
|
15851
|
-
const _hoisted_5$2 =
|
|
15858
|
+
const _hoisted_1$b = { class: "kds-accordion" };
|
|
15859
|
+
const _hoisted_2$6 = ["name", "open", "onToggle"];
|
|
15860
|
+
const _hoisted_3$6 = ["aria-disabled", "tabindex", "onClick", "onKeydown"];
|
|
15861
|
+
const _hoisted_4$5 = { class: "kds-accordion-headline-container" };
|
|
15862
|
+
const _hoisted_5$2 = { class: "kds-accordion-headline" };
|
|
15863
|
+
const _hoisted_6$1 = { class: "kds-accordion-content" };
|
|
15852
15864
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
15853
15865
|
__name: "KdsAccordion",
|
|
15854
15866
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -15893,19 +15905,35 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15893
15905
|
);
|
|
15894
15906
|
const expandedItems = computed(() => normalizedModelExpandedItems.value);
|
|
15895
15907
|
const isItemExpanded = (itemId) => expandedItems.value.includes(itemId);
|
|
15896
|
-
const
|
|
15908
|
+
const onSummaryClick = (event, item) => {
|
|
15897
15909
|
if (item.disabled) {
|
|
15910
|
+
event.preventDefault();
|
|
15911
|
+
}
|
|
15912
|
+
};
|
|
15913
|
+
const onDetailsToggle = (event, item) => {
|
|
15914
|
+
const detailsEl = event.currentTarget;
|
|
15915
|
+
if (!(detailsEl instanceof HTMLDetailsElement)) {
|
|
15898
15916
|
return;
|
|
15899
15917
|
}
|
|
15900
|
-
|
|
15901
|
-
|
|
15918
|
+
const isOpen = detailsEl.open;
|
|
15919
|
+
if (item.disabled) {
|
|
15920
|
+
if (isOpen !== isItemExpanded(item.id)) {
|
|
15921
|
+
detailsEl.open = isItemExpanded(item.id);
|
|
15922
|
+
}
|
|
15902
15923
|
return;
|
|
15903
15924
|
}
|
|
15904
|
-
if (
|
|
15905
|
-
setExpandedItems([item.id]);
|
|
15925
|
+
if (isOpen === isItemExpanded(item.id)) {
|
|
15906
15926
|
return;
|
|
15907
15927
|
}
|
|
15908
|
-
|
|
15928
|
+
if (isOpen) {
|
|
15929
|
+
if (__props.singleExpand) {
|
|
15930
|
+
setExpandedItems([item.id]);
|
|
15931
|
+
return;
|
|
15932
|
+
}
|
|
15933
|
+
setExpandedItems([...expandedItems.value, item.id]);
|
|
15934
|
+
return;
|
|
15935
|
+
}
|
|
15936
|
+
setExpandedItems(expandedItems.value.filter((id) => id !== item.id));
|
|
15909
15937
|
};
|
|
15910
15938
|
const triggerRefs = ref({});
|
|
15911
15939
|
const setTriggerRef = (itemId, triggerEl) => {
|
|
@@ -15915,7 +15943,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15915
15943
|
} else if (triggerEl) {
|
|
15916
15944
|
element = triggerEl.$el;
|
|
15917
15945
|
}
|
|
15918
|
-
if (element instanceof
|
|
15946
|
+
if (element instanceof HTMLElement) {
|
|
15919
15947
|
triggerRefs.value[itemId] = element;
|
|
15920
15948
|
return;
|
|
15921
15949
|
}
|
|
@@ -15954,65 +15982,60 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15954
15982
|
}
|
|
15955
15983
|
};
|
|
15956
15984
|
const accordionId = useId();
|
|
15957
|
-
const
|
|
15958
|
-
|
|
15985
|
+
const exclusiveGroupName = computed(
|
|
15986
|
+
() => __props.singleExpand ? `kds-accordion-${accordionId}` : void 0
|
|
15987
|
+
);
|
|
15959
15988
|
return (_ctx, _cache) => {
|
|
15960
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15989
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
15961
15990
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
15962
|
-
return openBlock(), createElementBlock("
|
|
15991
|
+
return openBlock(), createElementBlock("details", {
|
|
15963
15992
|
key: item.id,
|
|
15964
|
-
class: "kds-accordion-item"
|
|
15993
|
+
class: "kds-accordion-item",
|
|
15994
|
+
name: exclusiveGroupName.value,
|
|
15995
|
+
open: isItemExpanded(item.id),
|
|
15996
|
+
onToggle: ($event) => onDetailsToggle($event, item)
|
|
15965
15997
|
}, [
|
|
15966
|
-
createElementVNode("
|
|
15967
|
-
id: getItemTriggerId(item.id),
|
|
15998
|
+
createElementVNode("summary", {
|
|
15968
15999
|
ref_for: true,
|
|
15969
16000
|
ref: (triggerEl) => setTriggerRef(item.id, triggerEl),
|
|
15970
16001
|
class: "kds-accordion-header",
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
disabled: item.disabled,
|
|
15975
|
-
onClick: ($event) => toggleItem(item),
|
|
16002
|
+
"aria-disabled": item.disabled || void 0,
|
|
16003
|
+
tabindex: item.disabled ? -1 : void 0,
|
|
16004
|
+
onClick: ($event) => onSummaryClick($event, item),
|
|
15976
16005
|
onKeydown: ($event) => handleTriggerKeydown($event, item)
|
|
15977
16006
|
}, [
|
|
15978
|
-
createElementVNode("span",
|
|
16007
|
+
createElementVNode("span", _hoisted_4$5, [
|
|
15979
16008
|
item.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
15980
16009
|
key: 0,
|
|
15981
16010
|
name: item.leadingIcon,
|
|
15982
16011
|
size: "small",
|
|
15983
16012
|
disabled: item.disabled
|
|
15984
16013
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
15985
|
-
createElementVNode("span",
|
|
16014
|
+
createElementVNode("span", _hoisted_5$2, toDisplayString(item.headline), 1)
|
|
15986
16015
|
]),
|
|
15987
16016
|
createVNode(KdsIcon, {
|
|
15988
16017
|
name: isItemExpanded(item.id) ? "chevron-up" : "chevron-down",
|
|
15989
16018
|
size: "small"
|
|
15990
16019
|
}, null, 8, ["name"])
|
|
15991
|
-
], 40,
|
|
15992
|
-
createElementVNode("div",
|
|
15993
|
-
id: getItemContentId(item.id),
|
|
15994
|
-
class: "kds-accordion-content",
|
|
15995
|
-
role: "group",
|
|
15996
|
-
"aria-labelledby": getItemTriggerId(item.id),
|
|
15997
|
-
hidden: !isItemExpanded(item.id)
|
|
15998
|
-
}, [
|
|
16020
|
+
], 40, _hoisted_3$6),
|
|
16021
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
15999
16022
|
renderSlot(_ctx.$slots, item.id, { item }, void 0, true)
|
|
16000
|
-
]
|
|
16001
|
-
]);
|
|
16023
|
+
])
|
|
16024
|
+
], 40, _hoisted_2$6);
|
|
16002
16025
|
}), 128))
|
|
16003
16026
|
]);
|
|
16004
16027
|
};
|
|
16005
16028
|
}
|
|
16006
16029
|
});
|
|
16007
16030
|
|
|
16008
|
-
const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
16031
|
+
const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0beea165"]]);
|
|
16009
16032
|
|
|
16010
|
-
const _hoisted_1$
|
|
16011
|
-
const _hoisted_2$
|
|
16033
|
+
const _hoisted_1$a = { class: "kds-card-header" };
|
|
16034
|
+
const _hoisted_2$5 = {
|
|
16012
16035
|
key: 0,
|
|
16013
16036
|
class: "accessory"
|
|
16014
16037
|
};
|
|
16015
|
-
const _hoisted_3$
|
|
16038
|
+
const _hoisted_3$5 = { key: 1 };
|
|
16016
16039
|
const _hoisted_4$4 = {
|
|
16017
16040
|
key: 2,
|
|
16018
16041
|
class: "actions",
|
|
@@ -16025,11 +16048,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16025
16048
|
},
|
|
16026
16049
|
setup(__props) {
|
|
16027
16050
|
return (_ctx, _cache) => {
|
|
16028
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16029
|
-
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16051
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
16052
|
+
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
16030
16053
|
renderSlot(_ctx.$slots, "accessory", {}, void 0, true)
|
|
16031
16054
|
])) : createCommentVNode("", true),
|
|
16032
|
-
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$
|
|
16055
|
+
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$5, toDisplayString(__props.headline), 1)) : createCommentVNode("", true),
|
|
16033
16056
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
16034
16057
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
16035
16058
|
])) : createCommentVNode("", true)
|
|
@@ -16038,7 +16061,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
16038
16061
|
}
|
|
16039
16062
|
});
|
|
16040
16063
|
|
|
16041
|
-
const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
16064
|
+
const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-09093cc0"]]);
|
|
16042
16065
|
|
|
16043
16066
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
16044
16067
|
__name: "BaseCard",
|
|
@@ -16118,7 +16141,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16118
16141
|
}
|
|
16119
16142
|
});
|
|
16120
16143
|
|
|
16121
|
-
const _hoisted_1$
|
|
16144
|
+
const _hoisted_1$9 = ["aria-label", "aria-labelledby", "disabled"];
|
|
16122
16145
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
16123
16146
|
__name: "KdsClickableCard",
|
|
16124
16147
|
props: {
|
|
@@ -16152,7 +16175,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
16152
16175
|
disabled: __props.disabled,
|
|
16153
16176
|
"data-kds-card-primary-action": "",
|
|
16154
16177
|
onClick
|
|
16155
|
-
}, null, 8, _hoisted_1$
|
|
16178
|
+
}, null, 8, _hoisted_1$9)
|
|
16156
16179
|
]),
|
|
16157
16180
|
default: withCtx(() => [
|
|
16158
16181
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -16246,7 +16269,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
16246
16269
|
|
|
16247
16270
|
const KdsLinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-1696fd9e"]]);
|
|
16248
16271
|
|
|
16249
|
-
const _hoisted_1$
|
|
16272
|
+
const _hoisted_1$8 = ["aria-label", "aria-labelledby", "disabled", "aria-pressed"];
|
|
16250
16273
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
16251
16274
|
__name: "KdsSelectableCard",
|
|
16252
16275
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -16285,7 +16308,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
16285
16308
|
"aria-pressed": modelValue.value,
|
|
16286
16309
|
"data-kds-card-primary-action": "",
|
|
16287
16310
|
onClick
|
|
16288
|
-
}, null, 8, _hoisted_1$
|
|
16311
|
+
}, null, 8, _hoisted_1$8)
|
|
16289
16312
|
]),
|
|
16290
16313
|
default: withCtx(() => [
|
|
16291
16314
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -16332,12 +16355,12 @@ const kdsPanelBodyVariant = {
|
|
|
16332
16355
|
};
|
|
16333
16356
|
const kdsPanelBodyVariants = Object.values(kdsPanelBodyVariant);
|
|
16334
16357
|
|
|
16335
|
-
const _hoisted_1$
|
|
16336
|
-
const _hoisted_2$
|
|
16358
|
+
const _hoisted_1$7 = { class: "kds-panel" };
|
|
16359
|
+
const _hoisted_2$4 = {
|
|
16337
16360
|
key: 0,
|
|
16338
16361
|
class: "kds-panel-header"
|
|
16339
16362
|
};
|
|
16340
|
-
const _hoisted_3$
|
|
16363
|
+
const _hoisted_3$4 = ["id"];
|
|
16341
16364
|
const _hoisted_4$3 = {
|
|
16342
16365
|
key: 0,
|
|
16343
16366
|
class: "kds-panel-headline-text"
|
|
@@ -16385,8 +16408,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16385
16408
|
() => isBodyKeyboardFocusable.value && !bodyAriaLabel.value ? slotHeadlineId.value : void 0
|
|
16386
16409
|
);
|
|
16387
16410
|
return (_ctx, _cache) => {
|
|
16388
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16389
|
-
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16411
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
16412
|
+
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
|
|
16390
16413
|
__props.headline ? (openBlock(), createElementBlock("div", {
|
|
16391
16414
|
key: 0,
|
|
16392
16415
|
id: unref(headlineId),
|
|
@@ -16399,7 +16422,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16399
16422
|
size: "small",
|
|
16400
16423
|
onItemClick: __props.headline.onItemClick
|
|
16401
16424
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
16402
|
-
], 8, _hoisted_3$
|
|
16425
|
+
], 8, _hoisted_3$4)) : createCommentVNode("", true),
|
|
16403
16426
|
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
16404
16427
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
16405
16428
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
@@ -16600,9 +16623,9 @@ const useTabBarAdaptiveLayout = ({
|
|
|
16600
16623
|
};
|
|
16601
16624
|
};
|
|
16602
16625
|
|
|
16603
|
-
const _hoisted_1$
|
|
16604
|
-
const _hoisted_2$
|
|
16605
|
-
const _hoisted_3$
|
|
16626
|
+
const _hoisted_1$6 = { class: "kds-tab-bar-wrapper" };
|
|
16627
|
+
const _hoisted_2$3 = ["id", "title", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
16628
|
+
const _hoisted_3$3 = { class: "kds-tab-label" };
|
|
16606
16629
|
const _hoisted_4$2 = {
|
|
16607
16630
|
key: 1,
|
|
16608
16631
|
class: "kds-tab-indicator"
|
|
@@ -16732,7 +16755,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
16732
16755
|
{ immediate: true }
|
|
16733
16756
|
);
|
|
16734
16757
|
return (_ctx, _cache) => {
|
|
16735
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16758
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
16736
16759
|
createElementVNode("div", {
|
|
16737
16760
|
ref_key: "availableWidthContainer",
|
|
16738
16761
|
ref: availableWidthContainer,
|
|
@@ -16768,9 +16791,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
16768
16791
|
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
16769
16792
|
disabled: isTabDisabled(tab)
|
|
16770
16793
|
}, null, 8, ["accessory", "icon-size", "disabled"])) : createCommentVNode("", true),
|
|
16771
|
-
createElementVNode("span", _hoisted_3$
|
|
16794
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(tab.label), 1),
|
|
16772
16795
|
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$2)) : createCommentVNode("", true)
|
|
16773
|
-
], 42, _hoisted_2$
|
|
16796
|
+
], 42, _hoisted_2$3);
|
|
16774
16797
|
}), 128))
|
|
16775
16798
|
], 2)
|
|
16776
16799
|
]);
|
|
@@ -16803,16 +16826,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
16803
16826
|
|
|
16804
16827
|
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-86829b28"]]);
|
|
16805
16828
|
|
|
16806
|
-
const _hoisted_1$
|
|
16829
|
+
const _hoisted_1$5 = {
|
|
16807
16830
|
key: 0,
|
|
16808
16831
|
class: "kds-loading-skeleton",
|
|
16809
16832
|
"aria-busy": "true"
|
|
16810
16833
|
};
|
|
16811
|
-
const _hoisted_2$
|
|
16834
|
+
const _hoisted_2$2 = {
|
|
16812
16835
|
key: 0,
|
|
16813
16836
|
class: "kds-loading-skeleton-headline-with-paragraph"
|
|
16814
16837
|
};
|
|
16815
|
-
const _hoisted_3$
|
|
16838
|
+
const _hoisted_3$2 = { class: "kds-loading-skeleton-paragraph-lines" };
|
|
16816
16839
|
const _hoisted_4$1 = {
|
|
16817
16840
|
key: 1,
|
|
16818
16841
|
class: "kds-loading-skeleton-input-with-label"
|
|
@@ -16831,17 +16854,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
16831
16854
|
"v59c08829": _ctx.repeatGap
|
|
16832
16855
|
}));
|
|
16833
16856
|
return (_ctx, _cache) => {
|
|
16834
|
-
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
16857
|
+
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
16835
16858
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.repeat, (index) => {
|
|
16836
16859
|
return openBlock(), createElementBlock(Fragment, {
|
|
16837
16860
|
key: `skeleton-${index}`
|
|
16838
16861
|
}, [
|
|
16839
|
-
__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16862
|
+
__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
16840
16863
|
createVNode(LoadingSkeletonItem, {
|
|
16841
16864
|
shape: "text",
|
|
16842
16865
|
class: "headline"
|
|
16843
16866
|
}),
|
|
16844
|
-
createElementVNode("div", _hoisted_3$
|
|
16867
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
16845
16868
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
16846
16869
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
16847
16870
|
createVNode(LoadingSkeletonItem, { shape: "text" })
|
|
@@ -16913,12 +16936,6 @@ const kdsLoadingSkeletonVariants = Object.values(
|
|
|
16913
16936
|
kdsLoadingSkeletonVariant
|
|
16914
16937
|
);
|
|
16915
16938
|
|
|
16916
|
-
const _hoisted_1$5 = {
|
|
16917
|
-
key: 0,
|
|
16918
|
-
class: "indicator-selected"
|
|
16919
|
-
};
|
|
16920
|
-
const _hoisted_2$2 = { class: "content" };
|
|
16921
|
-
const _hoisted_3$2 = { class: "trailing-items" };
|
|
16922
16939
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
16923
16940
|
__name: "KdsNavItem",
|
|
16924
16941
|
props: {
|
|
@@ -16933,34 +16950,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
16933
16950
|
},
|
|
16934
16951
|
emits: ["click", "trailingButtonClick"],
|
|
16935
16952
|
setup(__props, { emit: __emit }) {
|
|
16953
|
+
useCssVars((_ctx) => ({
|
|
16954
|
+
"v29854424": paddingRight.value
|
|
16955
|
+
}));
|
|
16936
16956
|
const props = __props;
|
|
16937
16957
|
const emit = __emit;
|
|
16938
|
-
const onClick = (event) =>
|
|
16939
|
-
if (props.disabled) {
|
|
16940
|
-
event.stopPropagation();
|
|
16941
|
-
event.preventDefault();
|
|
16942
|
-
return;
|
|
16943
|
-
}
|
|
16944
|
-
emit("click", event);
|
|
16945
|
-
};
|
|
16958
|
+
const onClick = (event) => emit("click", event);
|
|
16946
16959
|
const onButtonClick = (event) => {
|
|
16947
16960
|
event.stopPropagation();
|
|
16948
16961
|
emit("trailingButtonClick", event);
|
|
16949
16962
|
};
|
|
16950
16963
|
const labelEl = useTemplateRef("labelEl");
|
|
16951
16964
|
const { isTruncated: isLabelTruncated } = useKdsIsTruncated(labelEl);
|
|
16952
|
-
const buttonProps = computed(() => {
|
|
16953
|
-
return {
|
|
16954
|
-
...props.trailingButton,
|
|
16955
|
-
size: "xsmall"
|
|
16956
|
-
};
|
|
16957
|
-
});
|
|
16958
|
-
const badgeProps = computed(() => {
|
|
16959
|
-
return {
|
|
16960
|
-
...props.badge,
|
|
16961
|
-
size: "xxsmall"
|
|
16962
|
-
};
|
|
16963
|
-
});
|
|
16964
16965
|
const navComponent = computed(() => {
|
|
16965
16966
|
if (props.disabled || !props.to) {
|
|
16966
16967
|
return "button";
|
|
@@ -16973,6 +16974,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
16973
16974
|
}
|
|
16974
16975
|
return { to: props.to };
|
|
16975
16976
|
});
|
|
16977
|
+
const hasTrailingItems = computed(
|
|
16978
|
+
() => Boolean(props.trailingIcon) || Boolean(props.badge) || Boolean(props.trailingButton)
|
|
16979
|
+
);
|
|
16980
|
+
const trailingItemsEl = useTemplateRef("trailingItemsEl");
|
|
16981
|
+
const trailingItemsWidth = ref(0);
|
|
16982
|
+
useResizeObserver(trailingItemsEl, ([entry]) => {
|
|
16983
|
+
trailingItemsWidth.value = entry.contentRect.width;
|
|
16984
|
+
});
|
|
16985
|
+
const paddingRight = computed(
|
|
16986
|
+
() => hasTrailingItems.value ? `calc(${trailingItemsWidth.value}px + 2 * var(--kds-spacing-container-0-75x))` : "var(--kds-spacing-container-0-75x)"
|
|
16987
|
+
);
|
|
16976
16988
|
return (_ctx, _cache) => {
|
|
16977
16989
|
return openBlock(), createElementBlock("div", {
|
|
16978
16990
|
class: normalizeClass([
|
|
@@ -16990,40 +17002,44 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
16990
17002
|
onClick
|
|
16991
17003
|
}), {
|
|
16992
17004
|
default: withCtx(() => [
|
|
16993
|
-
__props.
|
|
16994
|
-
|
|
16995
|
-
__props.leadingIcon
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
class: "label"
|
|
17005
|
-
}, toDisplayString(__props.label), 513)
|
|
17006
|
-
])
|
|
17005
|
+
__props.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
17006
|
+
key: 0,
|
|
17007
|
+
name: __props.leadingIcon,
|
|
17008
|
+
size: "medium",
|
|
17009
|
+
disabled: __props.disabled
|
|
17010
|
+
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
17011
|
+
createElementVNode("span", {
|
|
17012
|
+
ref_key: "labelEl",
|
|
17013
|
+
ref: labelEl,
|
|
17014
|
+
class: "label"
|
|
17015
|
+
}, toDisplayString(__props.label), 513)
|
|
17007
17016
|
]),
|
|
17008
17017
|
_: 1
|
|
17009
17018
|
}, 16, ["disabled", "aria-current", "title"])),
|
|
17010
|
-
|
|
17019
|
+
hasTrailingItems.value ? (openBlock(), createElementBlock("div", {
|
|
17020
|
+
key: 0,
|
|
17021
|
+
ref_key: "trailingItemsEl",
|
|
17022
|
+
ref: trailingItemsEl,
|
|
17023
|
+
class: "trailing-items"
|
|
17024
|
+
}, [
|
|
17011
17025
|
__props.trailingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
17012
17026
|
key: 0,
|
|
17013
|
-
class: "trailing-icon",
|
|
17014
17027
|
name: __props.trailingIcon,
|
|
17015
17028
|
size: "small",
|
|
17016
17029
|
disabled: __props.disabled
|
|
17017
17030
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
17018
|
-
__props.badge ? (openBlock(), createBlock(unref(KdsBadge),
|
|
17019
|
-
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$1l), mergeProps({ key: 2 },
|
|
17020
|
-
|
|
17031
|
+
__props.badge ? (openBlock(), createBlock(unref(KdsBadge), mergeProps({ key: 1 }, __props.badge, { size: "xxsmall" }), null, 16)) : createCommentVNode("", true),
|
|
17032
|
+
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$1l), mergeProps({ key: 2 }, __props.trailingButton, {
|
|
17033
|
+
size: "xsmall",
|
|
17034
|
+
onClick: onButtonClick
|
|
17035
|
+
}), null, 16)) : createCommentVNode("", true)
|
|
17036
|
+
], 512)) : createCommentVNode("", true)
|
|
17021
17037
|
], 2);
|
|
17022
17038
|
};
|
|
17023
17039
|
}
|
|
17024
17040
|
});
|
|
17025
17041
|
|
|
17026
|
-
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
17042
|
+
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-17711664"]]);
|
|
17027
17043
|
|
|
17028
17044
|
const _hoisted_1$4 = ["aria-label"];
|
|
17029
17045
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|