@skewedaspect/sleekspace-ui 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/NumberInput/SkNumberInput.vue.d.ts +8 -0
- package/dist/sleekspace-ui.css +6 -4
- package/dist/sleekspace-ui.es.js +97 -62
- package/dist/sleekspace-ui.umd.js +96 -61
- package/dist/utils/slots.d.ts +6 -0
- package/llms-full.txt +3 -0
- package/package.json +6 -3
- package/src/components/Alert/SkAlert.vue +4 -2
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +6 -12
- package/src/components/Button/SkButton.vue +8 -5
- package/src/components/Card/SkCard.vue +12 -5
- package/src/components/Checkbox/SkCheckbox.vue +9 -2
- package/src/components/Modal/SkModal.vue +11 -4
- package/src/components/NavBar/SkNavBar.vue +5 -4
- package/src/components/NumberInput/SkNumberInput.vue +10 -1
- package/src/components/Page/SkPage.vue +18 -15
- package/src/components/Popover/SkPopover.vue +11 -4
- package/src/components/Radio/SkRadio.vue +9 -2
- package/src/components/Switch/SkSwitch.vue +14 -13
- package/src/components/Tabs/SkTab.vue +7 -2
- package/src/components/TreeView/SkTreeItem.vue +10 -2
- package/src/static/generated/defaults.ts +1 -0
- package/src/static/generated/propTypes.ts +1 -0
- package/src/styles/components/_number-input.scss +10 -2
- package/src/utils/slots.ts +75 -0
- package/web-types.json +11 -1
|
@@ -69,6 +69,13 @@ export interface SkNumberInputComponentProps extends ComponentCustomColors {
|
|
|
69
69
|
* @default 1
|
|
70
70
|
*/
|
|
71
71
|
step?: number;
|
|
72
|
+
/**
|
|
73
|
+
* When true, renders the increment/decrement stepper buttons on the right side of the
|
|
74
|
+
* input. Set to false for a plain numeric text field (users can still use arrow keys
|
|
75
|
+
* and type values directly).
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
showSteppers?: boolean;
|
|
72
79
|
}
|
|
73
80
|
type __VLS_Props = SkNumberInputComponentProps;
|
|
74
81
|
type __VLS_PublicProps = {
|
|
@@ -89,5 +96,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
89
96
|
min: number;
|
|
90
97
|
max: number;
|
|
91
98
|
step: number;
|
|
99
|
+
showSteppers: boolean;
|
|
92
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
93
101
|
export default _default;
|
package/dist/sleekspace-ui.css
CHANGED
|
@@ -8866,11 +8866,10 @@
|
|
|
8866
8866
|
}
|
|
8867
8867
|
.sk-number-input-increment {
|
|
8868
8868
|
position: relative;
|
|
8869
|
-
border-bottom: var(--sk-border-width-thin) solid var(--sk-number-input-color-base);
|
|
8870
8869
|
}
|
|
8871
8870
|
@supports (corner-shape: bevel) {
|
|
8872
8871
|
.sk-number-input-increment {
|
|
8873
|
-
border:
|
|
8872
|
+
border: 0 solid transparent;
|
|
8874
8873
|
border-top-left-radius: 0;
|
|
8875
8874
|
border-top-right-radius: var(--sk-number-input-cut);
|
|
8876
8875
|
border-bottom-right-radius: 0;
|
|
@@ -8890,11 +8889,14 @@
|
|
|
8890
8889
|
left: 0;
|
|
8891
8890
|
right: 0;
|
|
8892
8891
|
bottom: 0;
|
|
8893
|
-
background-color:
|
|
8892
|
+
background-color: transparent;
|
|
8894
8893
|
z-index: -1;
|
|
8895
|
-
clip-path: polygon(0% 0%, calc(100% - var(--sk-number-input-cut)) 0%, 100% var(--sk-number-input-cut), 100% 100%, 0% 100%, 0% 0%,
|
|
8894
|
+
clip-path: polygon(0% 0%, calc(100% - var(--sk-number-input-cut)) 0%, 100% var(--sk-number-input-cut), 100% 100%, 0% 100%, 0% 0%, 0 0, 0 calc(100% - 0), calc(100% - 0) calc(100% - 0), calc(100% - 0) calc(var(--sk-number-input-cut) + 0), calc(100% - var(--sk-number-input-cut) - 0) 0, 0 0);
|
|
8896
8895
|
}
|
|
8897
8896
|
}
|
|
8897
|
+
.sk-number-input-increment {
|
|
8898
|
+
border-bottom: var(--sk-border-width-thin) solid var(--sk-number-input-color-base);
|
|
8899
|
+
}
|
|
8898
8900
|
.sk-number-input-wrapper:where(:not(.sk-neutral):not(.sk-primary):not(.sk-accent):not(.sk-info):not(.sk-success):not(.sk-warning):not(.sk-danger):not(.sk-boulder):not(.sk-neon-blue):not(.sk-light-blue):not(.sk-neon-orange):not(.sk-neon-purple):not(.sk-neon-green):not(.sk-neon-mint):not(.sk-neon-pink):not(.sk-yellow):not(.sk-red)) {
|
|
8899
8901
|
--sk-number-input-color-base: var(--sk-neutral-base);
|
|
8900
8902
|
--sk-number-input-fg: var(--sk-neutral-text);
|
package/dist/sleekspace-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Comment, Fragment, Teleport, Transition, camelize, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, customRef, defineComponent, effectScope, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveDynamicComponent, shallowReadonly, shallowRef, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, useCssVars, useModel, useSlots, useTemplateRef, vModelDynamic, vModelText, watch, watchEffect, watchPostEffect, watchSyncEffect, withCtx, withDirectives, withKeys, withMemo, withModifiers } from "vue";
|
|
2
|
+
import { Comment, Fragment, Teleport, Text, Transition, camelize, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, customRef, defineComponent, effectScope, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveDynamicComponent, shallowReadonly, shallowRef, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, useCssVars, useModel, useSlots, useTemplateRef, vModelDynamic, vModelText, watch, watchEffect, watchPostEffect, watchSyncEffect, withCtx, withDirectives, withKeys, withMemo, withModifiers } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -22233,6 +22233,31 @@ var SkAccordionItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(
|
|
|
22233
22233
|
}
|
|
22234
22234
|
}), [["__scopeId", "data-v-5e73d91f"]]);
|
|
22235
22235
|
//#endregion
|
|
22236
|
+
//#region src/utils/slots.ts
|
|
22237
|
+
function hasRenderableContent(vnodes) {
|
|
22238
|
+
return vnodes.some((vnode) => {
|
|
22239
|
+
if (vnode.type === Comment) return false;
|
|
22240
|
+
if (vnode.type === Text) return typeof vnode.children === "string" && vnode.children.trim().length > 0;
|
|
22241
|
+
if (vnode.type === Fragment && Array.isArray(vnode.children)) return hasRenderableContent(vnode.children);
|
|
22242
|
+
return true;
|
|
22243
|
+
});
|
|
22244
|
+
}
|
|
22245
|
+
function hasSlotContent(slot, props) {
|
|
22246
|
+
if (!slot) return false;
|
|
22247
|
+
return hasRenderableContent(slot(props));
|
|
22248
|
+
}
|
|
22249
|
+
function filterRenderableVNodes(vnodes) {
|
|
22250
|
+
return vnodes.flatMap((vnode) => {
|
|
22251
|
+
if (vnode.type === Comment) return [];
|
|
22252
|
+
if (vnode.type === Text) {
|
|
22253
|
+
if (typeof vnode.children === "string" && vnode.children.trim().length > 0) return [vnode];
|
|
22254
|
+
return [];
|
|
22255
|
+
}
|
|
22256
|
+
if (vnode.type === Fragment && Array.isArray(vnode.children)) return filterRenderableVNodes(vnode.children);
|
|
22257
|
+
return [vnode];
|
|
22258
|
+
});
|
|
22259
|
+
}
|
|
22260
|
+
//#endregion
|
|
22236
22261
|
//#region src/components/Alert/SkAlert.vue?vue&type=script&setup=true&lang.ts
|
|
22237
22262
|
var _hoisted_1$39 = {
|
|
22238
22263
|
key: 0,
|
|
@@ -22324,9 +22349,7 @@ var SkAlert_default = /* @__PURE__ */ defineComponent({
|
|
|
22324
22349
|
});
|
|
22325
22350
|
const shouldShowIcon = computed(() => {
|
|
22326
22351
|
if (props.showIcon !== void 0) return props.showIcon;
|
|
22327
|
-
|
|
22328
|
-
const hasSlotContent = !!slots.icon;
|
|
22329
|
-
return hasDefaultIcon || hasSlotContent;
|
|
22352
|
+
return FEEDBACK_KINDS.includes(props.kind) || hasSlotContent(slots.icon);
|
|
22330
22353
|
});
|
|
22331
22354
|
const customColorStyles = useCustomColors("alert", toRef(() => props.baseColor), toRef(() => props.textColor));
|
|
22332
22355
|
return (_ctx, _cache) => {
|
|
@@ -22875,9 +22898,7 @@ var SkBreadcrumbs_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
22875
22898
|
}));
|
|
22876
22899
|
const processedItems = computed(() => {
|
|
22877
22900
|
if (!slots.default) return [];
|
|
22878
|
-
|
|
22879
|
-
if (!defaultSlot || defaultSlot.length === 0) return [];
|
|
22880
|
-
return defaultSlot;
|
|
22901
|
+
return filterRenderableVNodes(slots.default());
|
|
22881
22902
|
});
|
|
22882
22903
|
return (_ctx, _cache) => {
|
|
22883
22904
|
return openBlock(), createElementBlock("nav", {
|
|
@@ -22889,7 +22910,7 @@ var SkBreadcrumbs_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
22889
22910
|
}), 128))])], 6);
|
|
22890
22911
|
};
|
|
22891
22912
|
}
|
|
22892
|
-
}), [["__scopeId", "data-v-
|
|
22913
|
+
}), [["__scopeId", "data-v-6d108335"]]);
|
|
22893
22914
|
//#endregion
|
|
22894
22915
|
//#region src/components/Button/SkButton.vue?vue&type=script&setup=true&lang.ts
|
|
22895
22916
|
var _hoisted_1$34 = { class: "sk-button-chrome" };
|
|
@@ -22972,7 +22993,7 @@ var SkButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
22972
22993
|
else return "button";
|
|
22973
22994
|
});
|
|
22974
22995
|
const classes = computed(() => {
|
|
22975
|
-
const isIconOnly =
|
|
22996
|
+
const isIconOnly = hasSlotContent(slots.icon) && !hasSlotContent(slots.default);
|
|
22976
22997
|
return {
|
|
22977
22998
|
"sk-button": true,
|
|
22978
22999
|
[`sk-${props.kind}`]: true,
|
|
@@ -23001,10 +23022,10 @@ var SkButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
23001
23022
|
"sk-button-content": true,
|
|
23002
23023
|
"loading": __props.loading
|
|
23003
23024
|
}) }, [
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
23025
|
+
unref(hasSlotContent)(unref(slots).leading) ? (openBlock(), createElementBlock("span", _hoisted_3$14, [renderSlot(_ctx.$slots, "leading", {}, void 0, true)])) : createCommentVNode("", true),
|
|
23026
|
+
unref(hasSlotContent)(unref(slots).icon) ? (openBlock(), createElementBlock("span", _hoisted_4$10, [renderSlot(_ctx.$slots, "icon", {}, void 0, true)])) : createCommentVNode("", true),
|
|
23027
|
+
unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("span", _hoisted_5$8, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])) : createCommentVNode("", true),
|
|
23028
|
+
unref(hasSlotContent)(unref(slots).trailing) ? (openBlock(), createElementBlock("span", _hoisted_6$5, [renderSlot(_ctx.$slots, "trailing", {}, void 0, true)])) : createCommentVNode("", true)
|
|
23008
23029
|
], 2)])]),
|
|
23009
23030
|
_: 3
|
|
23010
23031
|
}, 8, [
|
|
@@ -23019,7 +23040,7 @@ var SkButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
23019
23040
|
]);
|
|
23020
23041
|
};
|
|
23021
23042
|
}
|
|
23022
|
-
}), [["__scopeId", "data-v-
|
|
23043
|
+
}), [["__scopeId", "data-v-b276bf6c"]]);
|
|
23023
23044
|
//#endregion
|
|
23024
23045
|
//#region src/components/Panel/SkPanel.vue
|
|
23025
23046
|
var SkPanel_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -23160,6 +23181,7 @@ var SkCard_default = /* @__PURE__ */ defineComponent({
|
|
|
23160
23181
|
* appropriate spacing.
|
|
23161
23182
|
*/
|
|
23162
23183
|
const props = __props;
|
|
23184
|
+
const slots = useSlots();
|
|
23163
23185
|
const classes = computed(() => {
|
|
23164
23186
|
return { "sk-card": true };
|
|
23165
23187
|
});
|
|
@@ -23194,17 +23216,17 @@ var SkCard_default = /* @__PURE__ */ defineComponent({
|
|
|
23194
23216
|
class: normalizeClass(classes.value)
|
|
23195
23217
|
}, {
|
|
23196
23218
|
default: withCtx(() => [
|
|
23197
|
-
__props.title ||
|
|
23219
|
+
__props.title || unref(hasSlotContent)(unref(slots).header) ? (openBlock(), createElementBlock("div", {
|
|
23198
23220
|
key: 0,
|
|
23199
23221
|
class: "sk-card-header",
|
|
23200
23222
|
style: normalizeStyle(headerStyles.value)
|
|
23201
23223
|
}, [__props.title ? (openBlock(), createElementBlock("h3", _hoisted_1$33, toDisplayString(__props.title), 1)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")], 4)) : createCommentVNode("", true),
|
|
23202
|
-
|
|
23203
|
-
|
|
23224
|
+
unref(hasSlotContent)(unref(slots).media) ? (openBlock(), createElementBlock("div", _hoisted_2$17, [renderSlot(_ctx.$slots, "media")])) : createCommentVNode("", true),
|
|
23225
|
+
unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("div", {
|
|
23204
23226
|
key: 2,
|
|
23205
23227
|
class: normalizeClass(contentClasses.value)
|
|
23206
23228
|
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true),
|
|
23207
|
-
|
|
23229
|
+
unref(hasSlotContent)(unref(slots).footer) ? (openBlock(), createElementBlock("div", _hoisted_3$13, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
|
|
23208
23230
|
]),
|
|
23209
23231
|
_: 3
|
|
23210
23232
|
}, 8, [
|
|
@@ -23300,6 +23322,7 @@ var SkCheckbox_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
23300
23322
|
* @default false
|
|
23301
23323
|
*/
|
|
23302
23324
|
const checked = useModel(__props, "modelValue");
|
|
23325
|
+
const slots = useSlots();
|
|
23303
23326
|
const classes = computed(() => ({
|
|
23304
23327
|
"sk-checkbox": true,
|
|
23305
23328
|
[`sk-${props.kind}`]: true,
|
|
@@ -23337,10 +23360,10 @@ var SkCheckbox_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
23337
23360
|
"disabled",
|
|
23338
23361
|
"required",
|
|
23339
23362
|
"name"
|
|
23340
|
-
]), __props.label ||
|
|
23363
|
+
]), __props.label || unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("span", _hoisted_3$12, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)], 2);
|
|
23341
23364
|
};
|
|
23342
23365
|
}
|
|
23343
|
-
}), [["__scopeId", "data-v-
|
|
23366
|
+
}), [["__scopeId", "data-v-8e0fd27f"]]);
|
|
23344
23367
|
//#endregion
|
|
23345
23368
|
//#region src/components/Collapsible/SkCollapsible.vue?vue&type=script&setup=true&lang.ts
|
|
23346
23369
|
var _hoisted_1$31 = { class: "sk-collapsible-content-inner" };
|
|
@@ -27884,6 +27907,7 @@ var SkModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
27884
27907
|
const props = __props;
|
|
27885
27908
|
const emit = __emit;
|
|
27886
27909
|
const { theme } = usePortalContext();
|
|
27910
|
+
const slots = useSlots();
|
|
27887
27911
|
const isOpen = ref(props.open);
|
|
27888
27912
|
watch(() => props.open, (newValue) => {
|
|
27889
27913
|
isOpen.value = newValue;
|
|
@@ -27923,7 +27947,7 @@ var SkModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
27923
27947
|
open: isOpen.value,
|
|
27924
27948
|
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event)
|
|
27925
27949
|
}, {
|
|
27926
|
-
default: withCtx(() => [
|
|
27950
|
+
default: withCtx(() => [unref(hasSlotContent)(unref(slots).trigger) || __props.triggerText ? (openBlock(), createBlock(unref(DialogTrigger_default), {
|
|
27927
27951
|
key: 0,
|
|
27928
27952
|
"as-child": ""
|
|
27929
27953
|
}, {
|
|
@@ -27945,7 +27969,7 @@ var SkModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
27945
27969
|
onInteractOutside: handleOverlayClick
|
|
27946
27970
|
}, {
|
|
27947
27971
|
default: withCtx(() => [
|
|
27948
|
-
|
|
27972
|
+
unref(hasSlotContent)(unref(slots).title) || __props.title ? (openBlock(), createElementBlock("div", _hoisted_1$21, [createVNode(unref(DialogTitle_default), { class: "sk-modal-title" }, {
|
|
27949
27973
|
default: withCtx(() => [renderSlot(_ctx.$slots, "title", { close }, () => [createTextVNode(toDisplayString(__props.title), 1)], true)]),
|
|
27950
27974
|
_: 3
|
|
27951
27975
|
}), createVNode(unref(DialogClose_default), { "as-child": "" }, {
|
|
@@ -27968,7 +27992,7 @@ var SkModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
27968
27992
|
_: 1
|
|
27969
27993
|
})])) : createCommentVNode("", true),
|
|
27970
27994
|
createElementVNode("div", _hoisted_2$12, [renderSlot(_ctx.$slots, "default", { close }, void 0, true)]),
|
|
27971
|
-
|
|
27995
|
+
unref(hasSlotContent)(unref(slots).footer) ? (openBlock(), createElementBlock("div", _hoisted_3$9, [renderSlot(_ctx.$slots, "footer", { close }, void 0, true)])) : createCommentVNode("", true)
|
|
27972
27996
|
]),
|
|
27973
27997
|
_: 3
|
|
27974
27998
|
}, 8, [
|
|
@@ -27982,7 +28006,7 @@ var SkModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
27982
28006
|
}, 8, ["open"]);
|
|
27983
28007
|
};
|
|
27984
28008
|
}
|
|
27985
|
-
}), [["__scopeId", "data-v-
|
|
28009
|
+
}), [["__scopeId", "data-v-291eea32"]]);
|
|
27986
28010
|
//#endregion
|
|
27987
28011
|
//#region src/components/NavBar/SkNavBar.vue?vue&type=script&setup=true&lang.ts
|
|
27988
28012
|
var _hoisted_1$20 = { class: "sk-navbar-content" };
|
|
@@ -28065,17 +28089,20 @@ var SkNavBar_default = /* @__PURE__ */ defineComponent({
|
|
|
28065
28089
|
class: normalizeClass(classes.value),
|
|
28066
28090
|
style: normalizeStyle(unref(customColorStyles))
|
|
28067
28091
|
}, [createElementVNode("div", _hoisted_1$20, [
|
|
28068
|
-
unref(slots).leading ? (openBlock(), createElementBlock("div", _hoisted_2$11, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("", true),
|
|
28069
|
-
unref(slots).brand ? (openBlock(), createElementBlock("div", _hoisted_3$8, [renderSlot(_ctx.$slots, "brand")])) : createCommentVNode("", true),
|
|
28070
|
-
unref(slots).default ? (openBlock(), createElementBlock("div", _hoisted_4$7, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true),
|
|
28071
|
-
unref(slots).actions ? (openBlock(), createElementBlock("div", _hoisted_5$5, [renderSlot(_ctx.$slots, "actions")])) : createCommentVNode("", true)
|
|
28092
|
+
unref(hasSlotContent)(unref(slots).leading) ? (openBlock(), createElementBlock("div", _hoisted_2$11, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("", true),
|
|
28093
|
+
unref(hasSlotContent)(unref(slots).brand) ? (openBlock(), createElementBlock("div", _hoisted_3$8, [renderSlot(_ctx.$slots, "brand")])) : createCommentVNode("", true),
|
|
28094
|
+
unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("div", _hoisted_4$7, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true),
|
|
28095
|
+
unref(hasSlotContent)(unref(slots).actions) ? (openBlock(), createElementBlock("div", _hoisted_5$5, [renderSlot(_ctx.$slots, "actions")])) : createCommentVNode("", true)
|
|
28072
28096
|
])], 6);
|
|
28073
28097
|
};
|
|
28074
28098
|
}
|
|
28075
28099
|
});
|
|
28076
28100
|
//#endregion
|
|
28077
28101
|
//#region src/components/NumberInput/SkNumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
28078
|
-
var _hoisted_1$19 = {
|
|
28102
|
+
var _hoisted_1$19 = {
|
|
28103
|
+
key: 0,
|
|
28104
|
+
class: "sk-number-input-steppers"
|
|
28105
|
+
};
|
|
28079
28106
|
//#endregion
|
|
28080
28107
|
//#region src/components/NumberInput/SkNumberInput.vue
|
|
28081
28108
|
var SkNumberInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -28100,6 +28127,10 @@ var SkNumberInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
28100
28127
|
min: { default: void 0 },
|
|
28101
28128
|
max: { default: void 0 },
|
|
28102
28129
|
step: { default: 1 },
|
|
28130
|
+
showSteppers: {
|
|
28131
|
+
type: Boolean,
|
|
28132
|
+
default: true
|
|
28133
|
+
},
|
|
28103
28134
|
baseColor: {},
|
|
28104
28135
|
textColor: {},
|
|
28105
28136
|
borderColor: {}
|
|
@@ -28158,7 +28189,7 @@ var SkNumberInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
28158
28189
|
default: withCtx(() => [createVNode(unref(NumberFieldInput_default), {
|
|
28159
28190
|
class: normalizeClass(inputClasses.value),
|
|
28160
28191
|
placeholder: __props.placeholder
|
|
28161
|
-
}, null, 8, ["class", "placeholder"]),
|
|
28192
|
+
}, null, 8, ["class", "placeholder"]), __props.showSteppers ? (openBlock(), createElementBlock("div", _hoisted_1$19, [createVNode(unref(NumberFieldIncrement_default), { class: "sk-number-input-increment" }, {
|
|
28162
28193
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("svg", {
|
|
28163
28194
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28164
28195
|
viewBox: "0 0 24 24",
|
|
@@ -28180,7 +28211,7 @@ var SkNumberInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
28180
28211
|
"stroke-linejoin": "miter"
|
|
28181
28212
|
}, [createElementVNode("polyline", { points: "18 9 12 15 6 9" })], -1)])]),
|
|
28182
28213
|
_: 1
|
|
28183
|
-
})])]),
|
|
28214
|
+
})])) : createCommentVNode("", true)]),
|
|
28184
28215
|
_: 1
|
|
28185
28216
|
}, 8, [
|
|
28186
28217
|
"modelValue",
|
|
@@ -28196,7 +28227,7 @@ var SkNumberInput_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
28196
28227
|
])], 2);
|
|
28197
28228
|
};
|
|
28198
28229
|
}
|
|
28199
|
-
}), [["__scopeId", "data-v-
|
|
28230
|
+
}), [["__scopeId", "data-v-413329cd"]]);
|
|
28200
28231
|
//#endregion
|
|
28201
28232
|
//#region src/components/Theme/useTheme.ts
|
|
28202
28233
|
var ThemeSymbol = Symbol("SkTheme");
|
|
@@ -28558,8 +28589,8 @@ var SkPage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
28558
28589
|
const props = __props;
|
|
28559
28590
|
const emit = __emit;
|
|
28560
28591
|
const slots = useSlots();
|
|
28561
|
-
const hasSidebar = computed(() =>
|
|
28562
|
-
const hasAside = computed(() =>
|
|
28592
|
+
const hasSidebar = computed(() => hasSlotContent(slots.sidebar));
|
|
28593
|
+
const hasAside = computed(() => hasSlotContent(slots.aside));
|
|
28563
28594
|
const rootRef = ref(null);
|
|
28564
28595
|
const rootWidth = ref(Number.POSITIVE_INFINITY);
|
|
28565
28596
|
function resolvePx(value, context) {
|
|
@@ -28711,26 +28742,26 @@ var SkPage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
28711
28742
|
style: normalizeStyle(customStyles.value),
|
|
28712
28743
|
"data-scheme": __props.theme
|
|
28713
28744
|
}, [
|
|
28714
|
-
|
|
28715
|
-
|
|
28745
|
+
unref(hasSlotContent)(slots.header) ? (openBlock(), createElementBlock("header", _hoisted_2$10, [renderSlot(_ctx.$slots, "header", {}, void 0, true)])) : createCommentVNode("", true),
|
|
28746
|
+
unref(hasSlotContent)(slots.subheader) ? (openBlock(), createElementBlock("div", _hoisted_3$7, [renderSlot(_ctx.$slots, "subheader", {}, void 0, true)])) : createCommentVNode("", true),
|
|
28716
28747
|
createElementVNode("div", _hoisted_4$6, [
|
|
28717
28748
|
hasSidebar.value && !isSidebarDrawerActive.value ? (openBlock(), createElementBlock("aside", _hoisted_5$4, [
|
|
28718
|
-
|
|
28749
|
+
unref(hasSlotContent)(slots["sidebar-header"]) ? (openBlock(), createElementBlock("div", _hoisted_6$3, [renderSlot(_ctx.$slots, "sidebar-header", { isDrawer: false }, void 0, true)])) : createCommentVNode("", true),
|
|
28719
28750
|
createElementVNode("div", _hoisted_7$1, [renderSlot(_ctx.$slots, "sidebar", { isDrawer: false }, void 0, true)]),
|
|
28720
|
-
|
|
28751
|
+
unref(hasSlotContent)(slots["sidebar-footer"]) ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "sidebar-footer", { isDrawer: false }, void 0, true)])) : createCommentVNode("", true)
|
|
28721
28752
|
])) : createCommentVNode("", true),
|
|
28722
28753
|
createElementVNode("div", _hoisted_9, [
|
|
28723
|
-
|
|
28754
|
+
unref(hasSlotContent)(slots["main-header"]) ? (openBlock(), createElementBlock("div", _hoisted_10, [renderSlot(_ctx.$slots, "main-header", {}, void 0, true)])) : createCommentVNode("", true),
|
|
28724
28755
|
createElementVNode("main", _hoisted_11, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
28725
|
-
|
|
28756
|
+
unref(hasSlotContent)(slots["main-footer"]) ? (openBlock(), createElementBlock("div", _hoisted_12, [renderSlot(_ctx.$slots, "main-footer", {}, void 0, true)])) : createCommentVNode("", true)
|
|
28726
28757
|
]),
|
|
28727
28758
|
hasAside.value && !isAsideDrawerActive.value ? (openBlock(), createElementBlock("aside", _hoisted_13, [
|
|
28728
|
-
|
|
28759
|
+
unref(hasSlotContent)(slots["aside-header"]) ? (openBlock(), createElementBlock("div", _hoisted_14, [renderSlot(_ctx.$slots, "aside-header", { isDrawer: false }, void 0, true)])) : createCommentVNode("", true),
|
|
28729
28760
|
createElementVNode("div", _hoisted_15, [renderSlot(_ctx.$slots, "aside", { isDrawer: false }, void 0, true)]),
|
|
28730
|
-
|
|
28761
|
+
unref(hasSlotContent)(slots["aside-footer"]) ? (openBlock(), createElementBlock("div", _hoisted_16, [renderSlot(_ctx.$slots, "aside-footer", { isDrawer: false }, void 0, true)])) : createCommentVNode("", true)
|
|
28731
28762
|
])) : createCommentVNode("", true)
|
|
28732
28763
|
]),
|
|
28733
|
-
|
|
28764
|
+
unref(hasSlotContent)(slots.footer) ? (openBlock(), createElementBlock("footer", _hoisted_17, [renderSlot(_ctx.$slots, "footer", {}, void 0, true)])) : createCommentVNode("", true),
|
|
28734
28765
|
hasSidebar.value && isSidebarDrawerActive.value ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createVNode(Transition, { name: "sk-page-drawer-backdrop" }, {
|
|
28735
28766
|
default: withCtx(() => [unref(sidebarDrawerOpen) ? (openBlock(), createElementBlock("div", {
|
|
28736
28767
|
key: 0,
|
|
@@ -28751,9 +28782,9 @@ var SkPage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
28751
28782
|
tabindex: "-1",
|
|
28752
28783
|
onClick: onSidebarDrawerClick
|
|
28753
28784
|
}, [
|
|
28754
|
-
|
|
28785
|
+
unref(hasSlotContent)(slots["sidebar-header"]) ? (openBlock(), createElementBlock("div", _hoisted_20, [renderSlot(_ctx.$slots, "sidebar-header", { isDrawer: true }, void 0, true)])) : createCommentVNode("", true),
|
|
28755
28786
|
createElementVNode("div", _hoisted_21, [renderSlot(_ctx.$slots, "sidebar", { isDrawer: true }, void 0, true)]),
|
|
28756
|
-
|
|
28787
|
+
unref(hasSlotContent)(slots["sidebar-footer"]) ? (openBlock(), createElementBlock("div", _hoisted_22, [renderSlot(_ctx.$slots, "sidebar-footer", { isDrawer: true }, void 0, true)])) : createCommentVNode("", true)
|
|
28757
28788
|
], 8, _hoisted_19)) : createCommentVNode("", true)]),
|
|
28758
28789
|
_: 3
|
|
28759
28790
|
})], 64)) : createCommentVNode("", true),
|
|
@@ -28777,16 +28808,16 @@ var SkPage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
28777
28808
|
tabindex: "-1",
|
|
28778
28809
|
onClick: onAsideDrawerClick
|
|
28779
28810
|
}, [
|
|
28780
|
-
|
|
28811
|
+
unref(hasSlotContent)(slots["aside-header"]) ? (openBlock(), createElementBlock("div", _hoisted_25, [renderSlot(_ctx.$slots, "aside-header", { isDrawer: true }, void 0, true)])) : createCommentVNode("", true),
|
|
28781
28812
|
createElementVNode("div", _hoisted_26, [renderSlot(_ctx.$slots, "aside", { isDrawer: true }, void 0, true)]),
|
|
28782
|
-
|
|
28813
|
+
unref(hasSlotContent)(slots["aside-footer"]) ? (openBlock(), createElementBlock("div", _hoisted_27, [renderSlot(_ctx.$slots, "aside-footer", { isDrawer: true }, void 0, true)])) : createCommentVNode("", true)
|
|
28783
28814
|
], 8, _hoisted_24)) : createCommentVNode("", true)]),
|
|
28784
28815
|
_: 3
|
|
28785
28816
|
})], 64)) : createCommentVNode("", true)
|
|
28786
28817
|
], 14, _hoisted_1$18);
|
|
28787
28818
|
};
|
|
28788
28819
|
}
|
|
28789
|
-
}), [["__scopeId", "data-v-
|
|
28820
|
+
}), [["__scopeId", "data-v-2b46217a"]]);
|
|
28790
28821
|
//#endregion
|
|
28791
28822
|
//#region src/components/Page/SkPageSidebarToggle.vue?vue&type=script&setup=true&lang.ts
|
|
28792
28823
|
var _hoisted_1$17 = {
|
|
@@ -29214,6 +29245,7 @@ var SkPopover_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
|
|
|
29214
29245
|
set: (value) => emit("update:open", value ?? false)
|
|
29215
29246
|
});
|
|
29216
29247
|
const { theme } = usePortalContext();
|
|
29248
|
+
const slots = useSlots();
|
|
29217
29249
|
const contentClasses = computed(() => ({
|
|
29218
29250
|
"sk-popover-content": true,
|
|
29219
29251
|
[`sk-${props.kind}`]: true
|
|
@@ -29238,7 +29270,7 @@ var SkPopover_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
|
|
|
29238
29270
|
"collision-padding": 8
|
|
29239
29271
|
}, {
|
|
29240
29272
|
default: withCtx(() => [
|
|
29241
|
-
__props.title ||
|
|
29273
|
+
__props.title || unref(hasSlotContent)(unref(slots).header) ? (openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
29242
29274
|
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$7, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
29243
29275
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
29244
29276
|
__props.closable ? (openBlock(), createBlock(unref(PopoverClose_default), {
|
|
@@ -29270,8 +29302,8 @@ var SkPopover_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
|
|
|
29270
29302
|
_: 1
|
|
29271
29303
|
})) : createCommentVNode("", true)
|
|
29272
29304
|
])) : createCommentVNode("", true),
|
|
29273
|
-
|
|
29274
|
-
|
|
29305
|
+
unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("div", _hoisted_3$5, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])) : createCommentVNode("", true),
|
|
29306
|
+
unref(hasSlotContent)(unref(slots).footer) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [renderSlot(_ctx.$slots, "footer", {}, void 0, true)])) : createCommentVNode("", true),
|
|
29275
29307
|
__props.showArrow ? (openBlock(), createBlock(unref(PopoverArrow_default), {
|
|
29276
29308
|
key: 3,
|
|
29277
29309
|
class: "sk-popover-arrow"
|
|
@@ -29292,7 +29324,7 @@ var SkPopover_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
|
|
|
29292
29324
|
}, 8, ["open"]);
|
|
29293
29325
|
};
|
|
29294
29326
|
}
|
|
29295
|
-
}), [["__scopeId", "data-v-
|
|
29327
|
+
}), [["__scopeId", "data-v-401ea442"]]);
|
|
29296
29328
|
//#endregion
|
|
29297
29329
|
//#region src/components/Progress/SkProgress.vue
|
|
29298
29330
|
var SkProgress_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -29433,6 +29465,7 @@ var SkRadio_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
29433
29465
|
* formatting, icons, or complex layouts alongside the radio button.
|
|
29434
29466
|
*/
|
|
29435
29467
|
const props = __props;
|
|
29468
|
+
const slots = useSlots();
|
|
29436
29469
|
const parentKind = inject("radio-kind", computed(() => void 0));
|
|
29437
29470
|
const parentSize = inject("radio-size", computed(() => void 0));
|
|
29438
29471
|
const effectiveKind = computed(() => props.kind ?? parentKind.value ?? "neutral");
|
|
@@ -29461,10 +29494,10 @@ var SkRadio_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PU
|
|
|
29461
29494
|
"style",
|
|
29462
29495
|
"value",
|
|
29463
29496
|
"disabled"
|
|
29464
|
-
]), __props.label ||
|
|
29497
|
+
]), __props.label || unref(hasSlotContent)(unref(slots).default) ? (openBlock(), createElementBlock("span", _hoisted_1$14, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)], true)])) : createCommentVNode("", true)], 2);
|
|
29465
29498
|
};
|
|
29466
29499
|
}
|
|
29467
|
-
}), [["__scopeId", "data-v-
|
|
29500
|
+
}), [["__scopeId", "data-v-dcd86f1e"]]);
|
|
29468
29501
|
//#endregion
|
|
29469
29502
|
//#region src/components/Radio/SkRadioGroup.vue
|
|
29470
29503
|
var SkRadioGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -30528,7 +30561,7 @@ var SkSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
30528
30561
|
};
|
|
30529
30562
|
});
|
|
30530
30563
|
const showLabel = computed(() => {
|
|
30531
|
-
return
|
|
30564
|
+
return hasSlotContent(slots.default) || Boolean(props.labelOn) || Boolean(props.labelOff) || hasSlotContent(slots["label-on"]) || hasSlotContent(slots["label-off"]) || Boolean(props.label);
|
|
30532
30565
|
});
|
|
30533
30566
|
const useOnOffLabels = computed(() => {
|
|
30534
30567
|
return Boolean(props.labelOn || props.labelOff || slots["label-on"] || slots["label-off"]);
|
|
@@ -30561,14 +30594,14 @@ var SkSwitch_default = /* @__PURE__ */ defineComponent({
|
|
|
30561
30594
|
"required",
|
|
30562
30595
|
"class",
|
|
30563
30596
|
"style"
|
|
30564
|
-
]), showLabel.value ? (openBlock(), createElementBlock("label", _hoisted_2$3, [unref(slots).default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : useOnOffLabels.value && !__props.disableLabelAnimation ? (openBlock(), createBlock(Transition, {
|
|
30597
|
+
]), showLabel.value ? (openBlock(), createElementBlock("label", _hoisted_2$3, [unref(hasSlotContent)(unref(slots).default) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : useOnOffLabels.value && !__props.disableLabelAnimation ? (openBlock(), createBlock(Transition, {
|
|
30565
30598
|
key: 1,
|
|
30566
30599
|
name: "sk-switch-label-fade",
|
|
30567
30600
|
mode: "out-in"
|
|
30568
30601
|
}, {
|
|
30569
|
-
default: withCtx(() => [__props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_3$3, [unref(slots)["label-on"] ? renderSlot(_ctx.$slots, "label-on", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOn.value), 1)], 64))])) : (openBlock(), createElementBlock("span", _hoisted_4$3, [unref(slots)["label-off"] ? renderSlot(_ctx.$slots, "label-off", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOff.value), 1)], 64))]))]),
|
|
30602
|
+
default: withCtx(() => [__props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_3$3, [unref(hasSlotContent)(unref(slots)["label-on"]) ? renderSlot(_ctx.$slots, "label-on", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOn.value), 1)], 64))])) : (openBlock(), createElementBlock("span", _hoisted_4$3, [unref(hasSlotContent)(unref(slots)["label-off"]) ? renderSlot(_ctx.$slots, "label-off", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOff.value), 1)], 64))]))]),
|
|
30570
30603
|
_: 3
|
|
30571
|
-
})) : useOnOffLabels.value && __props.disableLabelAnimation ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [__props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_5$2, [unref(slots)["label-on"] ? renderSlot(_ctx.$slots, "label-on", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOn.value), 1)], 64))])) : (openBlock(), createElementBlock("span", _hoisted_6$1, [unref(slots)["label-off"] ? renderSlot(_ctx.$slots, "label-off", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOff.value), 1)], 64))]))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(__props.label), 1)], 64))])) : createCommentVNode("", true)]);
|
|
30604
|
+
})) : useOnOffLabels.value && __props.disableLabelAnimation ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [__props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_5$2, [unref(hasSlotContent)(unref(slots)["label-on"]) ? renderSlot(_ctx.$slots, "label-on", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOn.value), 1)], 64))])) : (openBlock(), createElementBlock("span", _hoisted_6$1, [unref(hasSlotContent)(unref(slots)["label-off"]) ? renderSlot(_ctx.$slots, "label-off", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(labelOff.value), 1)], 64))]))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(__props.label), 1)], 64))])) : createCommentVNode("", true)]);
|
|
30572
30605
|
};
|
|
30573
30606
|
}
|
|
30574
30607
|
});
|
|
@@ -30708,6 +30741,7 @@ var SkTab_default = /* @__PURE__ */ defineComponent({
|
|
|
30708
30741
|
* @slot icon - Optional icon displayed before the tab label. Useful for visual indicators.
|
|
30709
30742
|
*/
|
|
30710
30743
|
const props = __props;
|
|
30744
|
+
const slots = useSlots();
|
|
30711
30745
|
const parentKind = inject("tabs-kind", computed(() => void 0));
|
|
30712
30746
|
const kind = computed(() => props.kind ?? parentKind.value);
|
|
30713
30747
|
const classes = computed(() => {
|
|
@@ -30723,7 +30757,7 @@ var SkTab_default = /* @__PURE__ */ defineComponent({
|
|
|
30723
30757
|
disabled: __props.disabled,
|
|
30724
30758
|
class: normalizeClass(classes.value)
|
|
30725
30759
|
}, {
|
|
30726
|
-
default: withCtx(() => [
|
|
30760
|
+
default: withCtx(() => [unref(hasSlotContent)(unref(slots).icon) ? (openBlock(), createElementBlock("span", _hoisted_1$7, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), createElementVNode("span", _hoisted_2$2, [createElementVNode("span", _hoisted_3$2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), createElementVNode("span", _hoisted_4$2, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])])]),
|
|
30727
30761
|
_: 3
|
|
30728
30762
|
}, 8, [
|
|
30729
30763
|
"value",
|
|
@@ -31974,6 +32008,7 @@ var SkTreeItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
31974
32008
|
}
|
|
31975
32009
|
},
|
|
31976
32010
|
setup(__props) {
|
|
32011
|
+
const slots = useSlots();
|
|
31977
32012
|
return (_ctx, _cache) => {
|
|
31978
32013
|
return openBlock(), createBlock(unref(TreeItem_default), mergeProps({ class: "sk-tree-item" }, __props.item.bind, {
|
|
31979
32014
|
value: __props.item.value,
|
|
@@ -31990,7 +32025,7 @@ var SkTreeItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
31990
32025
|
key: 0,
|
|
31991
32026
|
class: normalizeClass(["sk-tree-item-chevron", { "sk-expanded": isExpanded }])
|
|
31992
32027
|
}, [(openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createElementVNode("polyline", { points: "9 6 15 12 9 18" }, null, -1)])]))], 2)) : __props.showChevron ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true),
|
|
31993
|
-
|
|
32028
|
+
unref(hasSlotContent)(unref(slots).leading) ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "leading", {
|
|
31994
32029
|
isExpanded,
|
|
31995
32030
|
isSelected
|
|
31996
32031
|
}, void 0, true)])) : createCommentVNode("", true),
|
|
@@ -32000,7 +32035,7 @@ var SkTreeItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
32000
32035
|
hasChildren: __props.item.hasChildren,
|
|
32001
32036
|
level: __props.item.level
|
|
32002
32037
|
}, void 0, true)]),
|
|
32003
|
-
|
|
32038
|
+
unref(hasSlotContent)(unref(slots).trailing) ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "trailing", {
|
|
32004
32039
|
isExpanded,
|
|
32005
32040
|
isSelected
|
|
32006
32041
|
}, void 0, true)])) : createCommentVNode("", true)
|
|
@@ -32015,7 +32050,7 @@ var SkTreeItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
32015
32050
|
]);
|
|
32016
32051
|
};
|
|
32017
32052
|
}
|
|
32018
|
-
}), [["__scopeId", "data-v-
|
|
32053
|
+
}), [["__scopeId", "data-v-adb75a1a"]]);
|
|
32019
32054
|
//#endregion
|
|
32020
32055
|
//#region src/components/TreeView/SkTreeView.vue
|
|
32021
32056
|
var SkTreeView_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|