@strands.gg/accui 2.11.24 → 2.11.26
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/accui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +527 -359
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, getCurrentInstance, resolveDynamicComponent, resolveComponent, createSlots, useAttrs, h as h$1,
|
|
1
|
+
import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, getCurrentInstance, resolveDynamicComponent, resolveComponent, ref, nextTick, normalizeProps, mergeProps, createSlots, useAttrs, h as h$1, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
|
|
2
2
|
import { u as useStrandsConfig, p as provideStrandsConfig } from "./useStrandsConfig-XmPqJn_B.es.js";
|
|
3
3
|
import { s } from "./useStrandsConfig-XmPqJn_B.es.js";
|
|
4
4
|
import { u as useStrandsAuth } from "./useStrandsAuth-Dca-zFQT.es.js";
|
|
5
5
|
const _hoisted_1$U = { class: "app-content" };
|
|
6
|
-
const _hoisted_2$
|
|
6
|
+
const _hoisted_2$N = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "ui-app-loading-overlay"
|
|
9
9
|
};
|
|
@@ -64,7 +64,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-app-notifications" }, null, -1))
|
|
65
65
|
])),
|
|
66
66
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
67
|
-
isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
67
|
+
isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, [
|
|
68
68
|
createElementVNode("div", _hoisted_3$J, [
|
|
69
69
|
_cache[1] || (_cache[1] = createElementVNode("div", { class: "ui-app-loading-spinner" }, null, -1)),
|
|
70
70
|
_ctx.loadingMessage ? (openBlock(), createElementBlock("p", _hoisted_4$H, toDisplayString(_ctx.loadingMessage), 1)) : createCommentVNode("", true)
|
|
@@ -84,7 +84,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
84
84
|
};
|
|
85
85
|
const UiApp = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-f18c1706"]]);
|
|
86
86
|
const _hoisted_1$T = { class: "accui-component-scope" };
|
|
87
|
-
const _hoisted_2$
|
|
87
|
+
const _hoisted_2$M = { class: "alert-content" };
|
|
88
88
|
const _hoisted_3$I = { class: "alert-icon-container" };
|
|
89
89
|
const _hoisted_4$G = {
|
|
90
90
|
class: "alert-main-icon",
|
|
@@ -139,7 +139,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
139
139
|
class: normalizeClass(alertClasses.value),
|
|
140
140
|
role: "alert"
|
|
141
141
|
}, [
|
|
142
|
-
createElementVNode("div", _hoisted_2$
|
|
142
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
143
143
|
createElementVNode("div", _hoisted_3$I, [
|
|
144
144
|
(openBlock(), createElementBlock("svg", _hoisted_4$G, [
|
|
145
145
|
createElementVNode("path", {
|
|
@@ -194,7 +194,7 @@ const _hoisted_1$S = {
|
|
|
194
194
|
key: 0,
|
|
195
195
|
class: "loader-icon"
|
|
196
196
|
};
|
|
197
|
-
const _hoisted_2$
|
|
197
|
+
const _hoisted_2$L = ["width", "height"];
|
|
198
198
|
const _hoisted_3$H = ["d"];
|
|
199
199
|
const _hoisted_4$F = ["stroke-width"];
|
|
200
200
|
const _hoisted_5$z = ["stroke-width"];
|
|
@@ -267,7 +267,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
267
267
|
"stroke-linejoin": "round",
|
|
268
268
|
class: "loader-animated-path"
|
|
269
269
|
}, null, 8, _hoisted_5$z)
|
|
270
|
-
], 8, _hoisted_2$
|
|
270
|
+
], 8, _hoisted_2$L))
|
|
271
271
|
])) : _ctx.variant === "circle" ? (openBlock(), createElementBlock("div", {
|
|
272
272
|
key: 1,
|
|
273
273
|
class: "loader-circle",
|
|
@@ -311,7 +311,7 @@ const _hoisted_1$R = {
|
|
|
311
311
|
key: 0,
|
|
312
312
|
class: "button-loading-content"
|
|
313
313
|
};
|
|
314
|
-
const _hoisted_2$
|
|
314
|
+
const _hoisted_2$K = { key: 0 };
|
|
315
315
|
const _hoisted_3$G = {
|
|
316
316
|
key: 0,
|
|
317
317
|
class: "leading-icon"
|
|
@@ -369,7 +369,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
369
369
|
centered: false,
|
|
370
370
|
color: "white"
|
|
371
371
|
}, null, 8, ["size"]),
|
|
372
|
-
!_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
372
|
+
!_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$K, toDisplayString(_ctx.loadingText || "Loading..."), 1)) : createCommentVNode("", true)
|
|
373
373
|
])) : (openBlock(), createElementBlock("span", {
|
|
374
374
|
key: 1,
|
|
375
375
|
class: normalizeClass(["button-content", sizeClass.value])
|
|
@@ -582,8 +582,148 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
|
-
const _hoisted_1$P =
|
|
585
|
+
const _hoisted_1$P = { class: "ui-tooltip-content" };
|
|
586
586
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
587
|
+
__name: "UiTooltip",
|
|
588
|
+
props: {
|
|
589
|
+
content: { default: "" },
|
|
590
|
+
position: { default: "top" },
|
|
591
|
+
delay: { default: 500 },
|
|
592
|
+
disabled: { type: Boolean, default: false },
|
|
593
|
+
offset: { default: 8 },
|
|
594
|
+
maxWidth: { default: 250 }
|
|
595
|
+
},
|
|
596
|
+
setup(__props) {
|
|
597
|
+
const props = __props;
|
|
598
|
+
const tooltipContainer = ref();
|
|
599
|
+
const tooltipRef = ref();
|
|
600
|
+
const isVisible = ref(false);
|
|
601
|
+
const shouldRender = ref(false);
|
|
602
|
+
let showTimeout = null;
|
|
603
|
+
let hideTimeout = null;
|
|
604
|
+
const tooltipStyle = ref({});
|
|
605
|
+
const updateTooltipPosition = async () => {
|
|
606
|
+
if (!tooltipContainer.value || !tooltipRef.value || !shouldRender.value) return;
|
|
607
|
+
await nextTick();
|
|
608
|
+
const containerRect = tooltipContainer.value.getBoundingClientRect();
|
|
609
|
+
tooltipRef.value.style.visibility = "hidden";
|
|
610
|
+
tooltipRef.value.style.opacity = "1";
|
|
611
|
+
const tooltipRect = tooltipRef.value.getBoundingClientRect();
|
|
612
|
+
const tooltipWidth = tooltipRect.width;
|
|
613
|
+
const tooltipHeight = tooltipRect.height;
|
|
614
|
+
tooltipRef.value.style.visibility = "";
|
|
615
|
+
tooltipRef.value.style.opacity = "";
|
|
616
|
+
const viewportWidth = window.innerWidth;
|
|
617
|
+
const viewportHeight = window.innerHeight;
|
|
618
|
+
let top = 0;
|
|
619
|
+
let left = 0;
|
|
620
|
+
switch (props.position) {
|
|
621
|
+
case "top":
|
|
622
|
+
top = containerRect.top - tooltipHeight - props.offset;
|
|
623
|
+
left = containerRect.left + containerRect.width / 2 - tooltipWidth / 2;
|
|
624
|
+
break;
|
|
625
|
+
case "bottom":
|
|
626
|
+
top = containerRect.bottom + props.offset;
|
|
627
|
+
left = containerRect.left + containerRect.width / 2 - tooltipWidth / 2;
|
|
628
|
+
break;
|
|
629
|
+
case "left":
|
|
630
|
+
top = containerRect.top + containerRect.height / 2 - tooltipHeight / 2;
|
|
631
|
+
left = containerRect.left - tooltipWidth - props.offset;
|
|
632
|
+
break;
|
|
633
|
+
case "right":
|
|
634
|
+
top = containerRect.top + containerRect.height / 2 - tooltipHeight / 2;
|
|
635
|
+
left = containerRect.right + props.offset;
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
const padding = 8;
|
|
639
|
+
if (left < padding) {
|
|
640
|
+
left = padding;
|
|
641
|
+
} else if (left + tooltipWidth > viewportWidth - padding) {
|
|
642
|
+
left = viewportWidth - tooltipWidth - padding;
|
|
643
|
+
}
|
|
644
|
+
if (top < padding) {
|
|
645
|
+
top = padding;
|
|
646
|
+
} else if (top + tooltipHeight > viewportHeight - padding) {
|
|
647
|
+
top = viewportHeight - tooltipHeight - padding;
|
|
648
|
+
}
|
|
649
|
+
tooltipStyle.value = {
|
|
650
|
+
position: "fixed",
|
|
651
|
+
top: `${top}px`,
|
|
652
|
+
left: `${left}px`,
|
|
653
|
+
zIndex: "9999"
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
const showTooltip = () => {
|
|
657
|
+
if (props.disabled) return;
|
|
658
|
+
if (hideTimeout) {
|
|
659
|
+
clearTimeout(hideTimeout);
|
|
660
|
+
hideTimeout = null;
|
|
661
|
+
}
|
|
662
|
+
shouldRender.value = true;
|
|
663
|
+
nextTick(() => {
|
|
664
|
+
updateTooltipPosition();
|
|
665
|
+
});
|
|
666
|
+
showTimeout = setTimeout(() => {
|
|
667
|
+
isVisible.value = true;
|
|
668
|
+
}, props.delay);
|
|
669
|
+
};
|
|
670
|
+
const hideTooltip = () => {
|
|
671
|
+
if (showTimeout) {
|
|
672
|
+
clearTimeout(showTimeout);
|
|
673
|
+
showTimeout = null;
|
|
674
|
+
}
|
|
675
|
+
hideTimeout = setTimeout(() => {
|
|
676
|
+
isVisible.value = false;
|
|
677
|
+
setTimeout(() => {
|
|
678
|
+
shouldRender.value = false;
|
|
679
|
+
}, 200);
|
|
680
|
+
}, 100);
|
|
681
|
+
};
|
|
682
|
+
onUnmounted(() => {
|
|
683
|
+
if (showTimeout) clearTimeout(showTimeout);
|
|
684
|
+
if (hideTimeout) clearTimeout(hideTimeout);
|
|
685
|
+
});
|
|
686
|
+
return (_ctx, _cache) => {
|
|
687
|
+
return openBlock(), createElementBlock("div", {
|
|
688
|
+
ref_key: "tooltipContainer",
|
|
689
|
+
ref: tooltipContainer,
|
|
690
|
+
class: "ui-tooltip-container",
|
|
691
|
+
onMouseenter: showTooltip,
|
|
692
|
+
onMouseleave: hideTooltip
|
|
693
|
+
}, [
|
|
694
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
695
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
696
|
+
shouldRender.value ? (openBlock(), createElementBlock("div", {
|
|
697
|
+
key: 0,
|
|
698
|
+
ref_key: "tooltipRef",
|
|
699
|
+
ref: tooltipRef,
|
|
700
|
+
class: normalizeClass(["ui-tooltip", [
|
|
701
|
+
`ui-tooltip--${_ctx.position}`,
|
|
702
|
+
{
|
|
703
|
+
"ui-tooltip--visible": isVisible.value
|
|
704
|
+
}
|
|
705
|
+
]]),
|
|
706
|
+
style: normalizeStyle(tooltipStyle.value),
|
|
707
|
+
role: "tooltip"
|
|
708
|
+
}, [
|
|
709
|
+
createElementVNode("div", _hoisted_1$P, [
|
|
710
|
+
renderSlot(_ctx.$slots, "tooltip", {}, () => [
|
|
711
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
712
|
+
], true)
|
|
713
|
+
]),
|
|
714
|
+
createElementVNode("div", {
|
|
715
|
+
class: normalizeClass(["ui-tooltip-arrow", `ui-tooltip-arrow--${_ctx.position}`])
|
|
716
|
+
}, null, 2)
|
|
717
|
+
], 6)) : createCommentVNode("", true)
|
|
718
|
+
]))
|
|
719
|
+
], 544);
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-b5702341"]]);
|
|
724
|
+
const _hoisted_1$O = ["type", "disabled", "tabindex"];
|
|
725
|
+
const _hoisted_2$J = ["type", "disabled", "tabindex"];
|
|
726
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
587
727
|
__name: "UiButton",
|
|
588
728
|
props: {
|
|
589
729
|
variant: { default: "primary" },
|
|
@@ -600,11 +740,26 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
600
740
|
to: {},
|
|
601
741
|
href: {},
|
|
602
742
|
external: { type: Boolean, default: false },
|
|
603
|
-
tabindex: {}
|
|
743
|
+
tabindex: {},
|
|
744
|
+
title: {}
|
|
604
745
|
},
|
|
605
746
|
emits: ["click"],
|
|
606
747
|
setup(__props, { emit: __emit }) {
|
|
607
748
|
const props = __props;
|
|
749
|
+
const tooltipProps = computed(() => {
|
|
750
|
+
if (!props.title) return null;
|
|
751
|
+
if (typeof props.title === "string") {
|
|
752
|
+
return {
|
|
753
|
+
content: props.title,
|
|
754
|
+
position: "top",
|
|
755
|
+
disabled: props.disabled || props.loading
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
return {
|
|
759
|
+
...props.title,
|
|
760
|
+
disabled: props.title.disabled ?? (props.disabled || props.loading)
|
|
761
|
+
};
|
|
762
|
+
});
|
|
608
763
|
const isNuxtAvailable = computed(() => {
|
|
609
764
|
if (typeof process !== "undefined" && process.client !== void 0) {
|
|
610
765
|
return true;
|
|
@@ -650,20 +805,273 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
650
805
|
return props.tabindex ?? void 0;
|
|
651
806
|
});
|
|
652
807
|
return (_ctx, _cache) => {
|
|
653
|
-
return
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
808
|
+
return _ctx.title ? (openBlock(), createBlock(UiTooltip, normalizeProps(mergeProps({ key: 0 }, tooltipProps.value)), {
|
|
809
|
+
default: withCtx(() => [
|
|
810
|
+
!_ctx.to ? (openBlock(), createElementBlock("button", {
|
|
811
|
+
key: 0,
|
|
812
|
+
type: _ctx.type,
|
|
813
|
+
disabled: _ctx.disabled || _ctx.loading,
|
|
814
|
+
class: normalizeClass(buttonClassString.value),
|
|
815
|
+
style: normalizeStyle(buttonStyles.value),
|
|
816
|
+
tabindex: effectiveTabindex.value,
|
|
817
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
|
|
818
|
+
}, [
|
|
819
|
+
createVNode(UiButtonContent, {
|
|
820
|
+
loading: _ctx.loading,
|
|
821
|
+
"loading-text": _ctx.loadingText,
|
|
822
|
+
icon: _ctx.icon,
|
|
823
|
+
size: _ctx.size
|
|
824
|
+
}, createSlots({
|
|
825
|
+
icon: withCtx(() => [
|
|
826
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
827
|
+
]),
|
|
828
|
+
default: withCtx(() => [
|
|
829
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
830
|
+
]),
|
|
831
|
+
_: 2
|
|
832
|
+
}, [
|
|
833
|
+
_ctx.$slots["leading-icon"] ? {
|
|
834
|
+
name: "leading-icon",
|
|
835
|
+
fn: withCtx(() => [
|
|
836
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
837
|
+
]),
|
|
838
|
+
key: "0"
|
|
839
|
+
} : void 0,
|
|
840
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
841
|
+
name: "trailing-icon",
|
|
842
|
+
fn: withCtx(() => [
|
|
843
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
844
|
+
]),
|
|
845
|
+
key: "1"
|
|
846
|
+
} : void 0
|
|
847
|
+
]), 1032, ["loading", "loading-text", "icon", "size"])
|
|
848
|
+
], 14, _hoisted_1$O)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
|
|
849
|
+
key: 1,
|
|
850
|
+
to: _ctx.to,
|
|
851
|
+
disabled: _ctx.disabled,
|
|
852
|
+
loading: _ctx.loading,
|
|
853
|
+
"loading-text": _ctx.loadingText,
|
|
854
|
+
icon: _ctx.icon,
|
|
855
|
+
"button-classes": buttonClasses.value,
|
|
856
|
+
"button-styles": buttonStyles.value,
|
|
857
|
+
tabindex: effectiveTabindex.value,
|
|
858
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", $event))
|
|
859
|
+
}, createSlots({
|
|
860
|
+
icon: withCtx(() => [
|
|
861
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
862
|
+
]),
|
|
863
|
+
default: withCtx(() => [
|
|
864
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
865
|
+
]),
|
|
866
|
+
_: 2
|
|
867
|
+
}, [
|
|
868
|
+
_ctx.$slots["leading-icon"] ? {
|
|
869
|
+
name: "leading-icon",
|
|
870
|
+
fn: withCtx(() => [
|
|
871
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
872
|
+
]),
|
|
873
|
+
key: "0"
|
|
874
|
+
} : void 0,
|
|
875
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
876
|
+
name: "trailing-icon",
|
|
877
|
+
fn: withCtx(() => [
|
|
878
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
879
|
+
]),
|
|
880
|
+
key: "1"
|
|
881
|
+
} : void 0
|
|
882
|
+
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : isVueRouterAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$W, {
|
|
883
|
+
key: 2,
|
|
884
|
+
to: _ctx.to,
|
|
885
|
+
disabled: _ctx.disabled,
|
|
886
|
+
loading: _ctx.loading,
|
|
887
|
+
"loading-text": _ctx.loadingText,
|
|
888
|
+
icon: _ctx.icon,
|
|
889
|
+
"button-classes": buttonClasses.value,
|
|
890
|
+
"button-styles": buttonStyles.value,
|
|
891
|
+
tabindex: effectiveTabindex.value,
|
|
892
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("click", $event))
|
|
893
|
+
}, createSlots({
|
|
894
|
+
icon: withCtx(() => [
|
|
895
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
896
|
+
]),
|
|
897
|
+
default: withCtx(() => [
|
|
898
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
899
|
+
]),
|
|
900
|
+
_: 2
|
|
901
|
+
}, [
|
|
902
|
+
_ctx.$slots["leading-icon"] ? {
|
|
903
|
+
name: "leading-icon",
|
|
904
|
+
fn: withCtx(() => [
|
|
905
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
906
|
+
]),
|
|
907
|
+
key: "0"
|
|
908
|
+
} : void 0,
|
|
909
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
910
|
+
name: "trailing-icon",
|
|
911
|
+
fn: withCtx(() => [
|
|
912
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
913
|
+
]),
|
|
914
|
+
key: "1"
|
|
915
|
+
} : void 0
|
|
916
|
+
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : (openBlock(), createBlock(_sfc_main$Y, {
|
|
917
|
+
key: 3,
|
|
918
|
+
to: _ctx.to,
|
|
919
|
+
href: _ctx.href,
|
|
920
|
+
external: _ctx.external,
|
|
921
|
+
disabled: _ctx.disabled,
|
|
922
|
+
loading: _ctx.loading,
|
|
923
|
+
"loading-text": _ctx.loadingText,
|
|
924
|
+
icon: _ctx.icon,
|
|
925
|
+
"button-classes": buttonClasses.value,
|
|
926
|
+
"button-styles": buttonStyles.value,
|
|
927
|
+
tabindex: effectiveTabindex.value,
|
|
928
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", $event))
|
|
929
|
+
}, createSlots({
|
|
930
|
+
icon: withCtx(() => [
|
|
931
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
932
|
+
]),
|
|
933
|
+
default: withCtx(() => [
|
|
934
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
935
|
+
]),
|
|
936
|
+
_: 2
|
|
937
|
+
}, [
|
|
938
|
+
_ctx.$slots["leading-icon"] ? {
|
|
939
|
+
name: "leading-icon",
|
|
940
|
+
fn: withCtx(() => [
|
|
941
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
942
|
+
]),
|
|
943
|
+
key: "0"
|
|
944
|
+
} : void 0,
|
|
945
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
946
|
+
name: "trailing-icon",
|
|
947
|
+
fn: withCtx(() => [
|
|
948
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
949
|
+
]),
|
|
950
|
+
key: "1"
|
|
951
|
+
} : void 0
|
|
952
|
+
]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"]))
|
|
953
|
+
]),
|
|
954
|
+
_: 3
|
|
955
|
+
}, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
956
|
+
!_ctx.to ? (openBlock(), createElementBlock("button", {
|
|
957
|
+
key: 0,
|
|
958
|
+
type: _ctx.type,
|
|
959
|
+
disabled: _ctx.disabled || _ctx.loading,
|
|
960
|
+
class: normalizeClass(buttonClassString.value),
|
|
961
|
+
style: normalizeStyle(buttonStyles.value),
|
|
962
|
+
tabindex: effectiveTabindex.value,
|
|
963
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event))
|
|
964
|
+
}, [
|
|
965
|
+
createVNode(UiButtonContent, {
|
|
966
|
+
loading: _ctx.loading,
|
|
967
|
+
"loading-text": _ctx.loadingText,
|
|
968
|
+
icon: _ctx.icon,
|
|
969
|
+
size: _ctx.size
|
|
970
|
+
}, createSlots({
|
|
971
|
+
icon: withCtx(() => [
|
|
972
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
973
|
+
]),
|
|
974
|
+
default: withCtx(() => [
|
|
975
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
976
|
+
]),
|
|
977
|
+
_: 2
|
|
978
|
+
}, [
|
|
979
|
+
_ctx.$slots["leading-icon"] ? {
|
|
980
|
+
name: "leading-icon",
|
|
981
|
+
fn: withCtx(() => [
|
|
982
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
983
|
+
]),
|
|
984
|
+
key: "0"
|
|
985
|
+
} : void 0,
|
|
986
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
987
|
+
name: "trailing-icon",
|
|
988
|
+
fn: withCtx(() => [
|
|
989
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
990
|
+
]),
|
|
991
|
+
key: "1"
|
|
992
|
+
} : void 0
|
|
993
|
+
]), 1032, ["loading", "loading-text", "icon", "size"])
|
|
994
|
+
], 14, _hoisted_2$J)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
|
|
995
|
+
key: 1,
|
|
996
|
+
to: _ctx.to,
|
|
997
|
+
disabled: _ctx.disabled,
|
|
998
|
+
loading: _ctx.loading,
|
|
999
|
+
"loading-text": _ctx.loadingText,
|
|
1000
|
+
icon: _ctx.icon,
|
|
1001
|
+
"button-classes": buttonClasses.value,
|
|
1002
|
+
"button-styles": buttonStyles.value,
|
|
1003
|
+
tabindex: effectiveTabindex.value,
|
|
1004
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click", $event))
|
|
1005
|
+
}, createSlots({
|
|
1006
|
+
icon: withCtx(() => [
|
|
1007
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
1008
|
+
]),
|
|
1009
|
+
default: withCtx(() => [
|
|
1010
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1011
|
+
]),
|
|
1012
|
+
_: 2
|
|
1013
|
+
}, [
|
|
1014
|
+
_ctx.$slots["leading-icon"] ? {
|
|
1015
|
+
name: "leading-icon",
|
|
1016
|
+
fn: withCtx(() => [
|
|
1017
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
1018
|
+
]),
|
|
1019
|
+
key: "0"
|
|
1020
|
+
} : void 0,
|
|
1021
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
1022
|
+
name: "trailing-icon",
|
|
1023
|
+
fn: withCtx(() => [
|
|
1024
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
1025
|
+
]),
|
|
1026
|
+
key: "1"
|
|
1027
|
+
} : void 0
|
|
1028
|
+
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : isVueRouterAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$W, {
|
|
1029
|
+
key: 2,
|
|
1030
|
+
to: _ctx.to,
|
|
1031
|
+
disabled: _ctx.disabled,
|
|
1032
|
+
loading: _ctx.loading,
|
|
1033
|
+
"loading-text": _ctx.loadingText,
|
|
1034
|
+
icon: _ctx.icon,
|
|
1035
|
+
"button-classes": buttonClasses.value,
|
|
1036
|
+
"button-styles": buttonStyles.value,
|
|
1037
|
+
tabindex: effectiveTabindex.value,
|
|
1038
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("click", $event))
|
|
1039
|
+
}, createSlots({
|
|
1040
|
+
icon: withCtx(() => [
|
|
1041
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
1042
|
+
]),
|
|
1043
|
+
default: withCtx(() => [
|
|
1044
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1045
|
+
]),
|
|
1046
|
+
_: 2
|
|
1047
|
+
}, [
|
|
1048
|
+
_ctx.$slots["leading-icon"] ? {
|
|
1049
|
+
name: "leading-icon",
|
|
1050
|
+
fn: withCtx(() => [
|
|
1051
|
+
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
1052
|
+
]),
|
|
1053
|
+
key: "0"
|
|
1054
|
+
} : void 0,
|
|
1055
|
+
_ctx.$slots["trailing-icon"] ? {
|
|
1056
|
+
name: "trailing-icon",
|
|
1057
|
+
fn: withCtx(() => [
|
|
1058
|
+
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
1059
|
+
]),
|
|
1060
|
+
key: "1"
|
|
1061
|
+
} : void 0
|
|
1062
|
+
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : (openBlock(), createBlock(_sfc_main$Y, {
|
|
1063
|
+
key: 3,
|
|
1064
|
+
to: _ctx.to,
|
|
1065
|
+
href: _ctx.href,
|
|
1066
|
+
external: _ctx.external,
|
|
1067
|
+
disabled: _ctx.disabled,
|
|
663
1068
|
loading: _ctx.loading,
|
|
664
1069
|
"loading-text": _ctx.loadingText,
|
|
665
1070
|
icon: _ctx.icon,
|
|
666
|
-
|
|
1071
|
+
"button-classes": buttonClasses.value,
|
|
1072
|
+
"button-styles": buttonStyles.value,
|
|
1073
|
+
tabindex: effectiveTabindex.value,
|
|
1074
|
+
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("click", $event))
|
|
667
1075
|
}, createSlots({
|
|
668
1076
|
icon: withCtx(() => [
|
|
669
1077
|
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
@@ -687,122 +1095,18 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
687
1095
|
]),
|
|
688
1096
|
key: "1"
|
|
689
1097
|
} : void 0
|
|
690
|
-
]), 1032, ["loading", "loading-text", "icon", "
|
|
691
|
-
],
|
|
692
|
-
key: 1,
|
|
693
|
-
to: _ctx.to,
|
|
694
|
-
disabled: _ctx.disabled,
|
|
695
|
-
loading: _ctx.loading,
|
|
696
|
-
"loading-text": _ctx.loadingText,
|
|
697
|
-
icon: _ctx.icon,
|
|
698
|
-
"button-classes": buttonClasses.value,
|
|
699
|
-
"button-styles": buttonStyles.value,
|
|
700
|
-
tabindex: effectiveTabindex.value,
|
|
701
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", $event))
|
|
702
|
-
}, createSlots({
|
|
703
|
-
icon: withCtx(() => [
|
|
704
|
-
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
705
|
-
]),
|
|
706
|
-
default: withCtx(() => [
|
|
707
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
708
|
-
]),
|
|
709
|
-
_: 2
|
|
710
|
-
}, [
|
|
711
|
-
_ctx.$slots["leading-icon"] ? {
|
|
712
|
-
name: "leading-icon",
|
|
713
|
-
fn: withCtx(() => [
|
|
714
|
-
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
715
|
-
]),
|
|
716
|
-
key: "0"
|
|
717
|
-
} : void 0,
|
|
718
|
-
_ctx.$slots["trailing-icon"] ? {
|
|
719
|
-
name: "trailing-icon",
|
|
720
|
-
fn: withCtx(() => [
|
|
721
|
-
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
722
|
-
]),
|
|
723
|
-
key: "1"
|
|
724
|
-
} : void 0
|
|
725
|
-
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : isVueRouterAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$W, {
|
|
726
|
-
key: 2,
|
|
727
|
-
to: _ctx.to,
|
|
728
|
-
disabled: _ctx.disabled,
|
|
729
|
-
loading: _ctx.loading,
|
|
730
|
-
"loading-text": _ctx.loadingText,
|
|
731
|
-
icon: _ctx.icon,
|
|
732
|
-
"button-classes": buttonClasses.value,
|
|
733
|
-
"button-styles": buttonStyles.value,
|
|
734
|
-
tabindex: effectiveTabindex.value,
|
|
735
|
-
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("click", $event))
|
|
736
|
-
}, createSlots({
|
|
737
|
-
icon: withCtx(() => [
|
|
738
|
-
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
739
|
-
]),
|
|
740
|
-
default: withCtx(() => [
|
|
741
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
742
|
-
]),
|
|
743
|
-
_: 2
|
|
744
|
-
}, [
|
|
745
|
-
_ctx.$slots["leading-icon"] ? {
|
|
746
|
-
name: "leading-icon",
|
|
747
|
-
fn: withCtx(() => [
|
|
748
|
-
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
749
|
-
]),
|
|
750
|
-
key: "0"
|
|
751
|
-
} : void 0,
|
|
752
|
-
_ctx.$slots["trailing-icon"] ? {
|
|
753
|
-
name: "trailing-icon",
|
|
754
|
-
fn: withCtx(() => [
|
|
755
|
-
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
756
|
-
]),
|
|
757
|
-
key: "1"
|
|
758
|
-
} : void 0
|
|
759
|
-
]), 1032, ["to", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"])) : (openBlock(), createBlock(_sfc_main$Y, {
|
|
760
|
-
key: 3,
|
|
761
|
-
to: _ctx.to,
|
|
762
|
-
href: _ctx.href,
|
|
763
|
-
external: _ctx.external,
|
|
764
|
-
disabled: _ctx.disabled,
|
|
765
|
-
loading: _ctx.loading,
|
|
766
|
-
"loading-text": _ctx.loadingText,
|
|
767
|
-
icon: _ctx.icon,
|
|
768
|
-
"button-classes": buttonClasses.value,
|
|
769
|
-
"button-styles": buttonStyles.value,
|
|
770
|
-
tabindex: effectiveTabindex.value,
|
|
771
|
-
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", $event))
|
|
772
|
-
}, createSlots({
|
|
773
|
-
icon: withCtx(() => [
|
|
774
|
-
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
775
|
-
]),
|
|
776
|
-
default: withCtx(() => [
|
|
777
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
778
|
-
]),
|
|
779
|
-
_: 2
|
|
780
|
-
}, [
|
|
781
|
-
_ctx.$slots["leading-icon"] ? {
|
|
782
|
-
name: "leading-icon",
|
|
783
|
-
fn: withCtx(() => [
|
|
784
|
-
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
785
|
-
]),
|
|
786
|
-
key: "0"
|
|
787
|
-
} : void 0,
|
|
788
|
-
_ctx.$slots["trailing-icon"] ? {
|
|
789
|
-
name: "trailing-icon",
|
|
790
|
-
fn: withCtx(() => [
|
|
791
|
-
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
792
|
-
]),
|
|
793
|
-
key: "1"
|
|
794
|
-
} : void 0
|
|
795
|
-
]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"]));
|
|
1098
|
+
]), 1032, ["to", "href", "external", "disabled", "loading", "loading-text", "icon", "button-classes", "button-styles", "tabindex"]))
|
|
1099
|
+
], 64));
|
|
796
1100
|
};
|
|
797
1101
|
}
|
|
798
1102
|
});
|
|
799
|
-
const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1103
|
+
const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-52fc28e3"]]);
|
|
800
1104
|
const CompoundUiButton = StrandsUiButton;
|
|
801
1105
|
CompoundUiButton.Content = UiButtonContent;
|
|
802
1106
|
CompoundUiButton.Anchor = _sfc_main$Y;
|
|
803
1107
|
CompoundUiButton.Nuxt = _sfc_main$X;
|
|
804
1108
|
CompoundUiButton.Vue = _sfc_main$W;
|
|
805
|
-
const _hoisted_1$
|
|
1109
|
+
const _hoisted_1$N = {
|
|
806
1110
|
key: 0,
|
|
807
1111
|
class: "ui-card-header"
|
|
808
1112
|
};
|
|
@@ -826,7 +1130,7 @@ const _hoisted_6$s = {
|
|
|
826
1130
|
key: 2,
|
|
827
1131
|
class: "ui-card-footer"
|
|
828
1132
|
};
|
|
829
|
-
const _sfc_main$
|
|
1133
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
830
1134
|
...{
|
|
831
1135
|
inheritAttrs: false
|
|
832
1136
|
},
|
|
@@ -851,7 +1155,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
851
1155
|
unref(attrs)["class"]
|
|
852
1156
|
]])
|
|
853
1157
|
}, [
|
|
854
|
-
_ctx.$slots["header"] || _ctx.title || _ctx.subtitle || _ctx.$slots["leading-icon"] || _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1158
|
+
_ctx.$slots["header"] || _ctx.title || _ctx.subtitle || _ctx.$slots["leading-icon"] || _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
855
1159
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
856
1160
|
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true),
|
|
857
1161
|
_ctx.title || _ctx.$slots["title"] || _ctx.subtitle || _ctx.$slots["subtitle"] ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
|
|
@@ -876,7 +1180,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
876
1180
|
};
|
|
877
1181
|
}
|
|
878
1182
|
});
|
|
879
|
-
const StrandsUiCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1183
|
+
const StrandsUiCard = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-40cbf608"]]);
|
|
880
1184
|
/**
|
|
881
1185
|
* @license lucide-vue-next v0.542.0 - ISC
|
|
882
1186
|
*
|
|
@@ -1430,7 +1734,7 @@ const X = createLucideIcon("x", [
|
|
|
1430
1734
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1431
1735
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1432
1736
|
]);
|
|
1433
|
-
const _hoisted_1$
|
|
1737
|
+
const _hoisted_1$M = {
|
|
1434
1738
|
key: 0,
|
|
1435
1739
|
class: "input-leading-icon"
|
|
1436
1740
|
};
|
|
@@ -1447,7 +1751,7 @@ const _hoisted_5$x = {
|
|
|
1447
1751
|
key: 3,
|
|
1448
1752
|
class: "input-trailing-icon"
|
|
1449
1753
|
};
|
|
1450
|
-
const _sfc_main$
|
|
1754
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
1451
1755
|
__name: "UiInput.Text",
|
|
1452
1756
|
props: {
|
|
1453
1757
|
type: { default: "text" },
|
|
@@ -1538,7 +1842,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
1538
1842
|
return openBlock(), createElementBlock("div", {
|
|
1539
1843
|
class: normalizeClass(["input-field-wrapper", wrapperClasses.value])
|
|
1540
1844
|
}, [
|
|
1541
|
-
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1845
|
+
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
1542
1846
|
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
1543
1847
|
])) : createCommentVNode("", true),
|
|
1544
1848
|
createElementVNode("input", {
|
|
@@ -1600,8 +1904,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
1600
1904
|
};
|
|
1601
1905
|
}
|
|
1602
1906
|
});
|
|
1603
|
-
const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1604
|
-
const _hoisted_1$
|
|
1907
|
+
const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-b3152b5d"]]);
|
|
1908
|
+
const _hoisted_1$L = {
|
|
1605
1909
|
key: 0,
|
|
1606
1910
|
class: "input-leading-icon"
|
|
1607
1911
|
};
|
|
@@ -1610,7 +1914,7 @@ const _hoisted_3$D = {
|
|
|
1610
1914
|
key: 1,
|
|
1611
1915
|
class: "input-trailing-icon"
|
|
1612
1916
|
};
|
|
1613
|
-
const _sfc_main$
|
|
1917
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
1614
1918
|
__name: "UiInput.Textarea",
|
|
1615
1919
|
props: {
|
|
1616
1920
|
rows: { default: 3 },
|
|
@@ -1677,7 +1981,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
1677
1981
|
return openBlock(), createElementBlock("div", {
|
|
1678
1982
|
class: normalizeClass(["input-field-wrapper input-textarea", wrapperClasses.value])
|
|
1679
1983
|
}, [
|
|
1680
|
-
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1984
|
+
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
1681
1985
|
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
1682
1986
|
])) : createCommentVNode("", true),
|
|
1683
1987
|
createElementVNode("div", {
|
|
@@ -1712,7 +2016,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
1712
2016
|
};
|
|
1713
2017
|
}
|
|
1714
2018
|
});
|
|
1715
|
-
const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2019
|
+
const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-4f57fd4b"]]);
|
|
1716
2020
|
function useFloatingPosition(options) {
|
|
1717
2021
|
const {
|
|
1718
2022
|
trigger,
|
|
@@ -1878,12 +2182,14 @@ function useFloatingPosition(options) {
|
|
|
1878
2182
|
resizeObserver = new ResizeObserver(() => {
|
|
1879
2183
|
updatePosition();
|
|
1880
2184
|
});
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
2185
|
+
nextTick(() => {
|
|
2186
|
+
if (trigger.value && resizeObserver) {
|
|
2187
|
+
resizeObserver.observe(trigger.value);
|
|
2188
|
+
}
|
|
2189
|
+
if (floating.value && resizeObserver) {
|
|
2190
|
+
resizeObserver.observe(floating.value);
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
1887
2193
|
}
|
|
1888
2194
|
}
|
|
1889
2195
|
if (clickOutside?.enabled) {
|
|
@@ -1915,7 +2221,7 @@ function useFloatingPosition(options) {
|
|
|
1915
2221
|
cleanup
|
|
1916
2222
|
};
|
|
1917
2223
|
}
|
|
1918
|
-
const _hoisted_1$
|
|
2224
|
+
const _hoisted_1$K = {
|
|
1919
2225
|
key: 0,
|
|
1920
2226
|
class: "input-leading-icon"
|
|
1921
2227
|
};
|
|
@@ -1953,7 +2259,7 @@ const _hoisted_14$l = {
|
|
|
1953
2259
|
key: 0,
|
|
1954
2260
|
class: "input-dropdown-option-check"
|
|
1955
2261
|
};
|
|
1956
|
-
const _sfc_main$
|
|
2262
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
1957
2263
|
__name: "UiInput.Select",
|
|
1958
2264
|
props: {
|
|
1959
2265
|
options: { default: () => [] },
|
|
@@ -2266,7 +2572,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2266
2572
|
paddingClasses.value
|
|
2267
2573
|
]])
|
|
2268
2574
|
}, [
|
|
2269
|
-
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2575
|
+
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
2270
2576
|
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
2271
2577
|
])) : createCommentVNode("", true),
|
|
2272
2578
|
createElementVNode("div", {
|
|
@@ -2365,8 +2671,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2365
2671
|
};
|
|
2366
2672
|
}
|
|
2367
2673
|
});
|
|
2368
|
-
const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2369
|
-
const _hoisted_1$
|
|
2674
|
+
const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-302debb0"]]);
|
|
2675
|
+
const _hoisted_1$J = { class: "input-leading-icon" };
|
|
2370
2676
|
const _hoisted_2$E = ["src"];
|
|
2371
2677
|
const _hoisted_3$B = ["id", "accept", "multiple", "disabled", "required"];
|
|
2372
2678
|
const _hoisted_4$A = { class: "input-file-content" };
|
|
@@ -2402,7 +2708,7 @@ const _hoisted_18$f = {
|
|
|
2402
2708
|
key: 1,
|
|
2403
2709
|
class: "input-trailing-icon"
|
|
2404
2710
|
};
|
|
2405
|
-
const _sfc_main$
|
|
2711
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
2406
2712
|
__name: "UiInput.File",
|
|
2407
2713
|
props: {
|
|
2408
2714
|
accept: {},
|
|
@@ -2604,7 +2910,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2604
2910
|
paddingClasses.value
|
|
2605
2911
|
]])
|
|
2606
2912
|
}, [
|
|
2607
|
-
createElementVNode("div", _hoisted_1$
|
|
2913
|
+
createElementVNode("div", _hoisted_1$J, [
|
|
2608
2914
|
previewImageUrl.value ? (openBlock(), createElementBlock("img", {
|
|
2609
2915
|
key: 0,
|
|
2610
2916
|
src: previewImageUrl.value,
|
|
@@ -2679,8 +2985,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2679
2985
|
};
|
|
2680
2986
|
}
|
|
2681
2987
|
});
|
|
2682
|
-
const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2683
|
-
const _hoisted_1$
|
|
2988
|
+
const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-e1fd712d"]]);
|
|
2989
|
+
const _hoisted_1$I = { class: "tabs-wrapper" };
|
|
2684
2990
|
const _hoisted_2$D = {
|
|
2685
2991
|
key: 0,
|
|
2686
2992
|
class: "tabs-before"
|
|
@@ -2691,7 +2997,7 @@ const _hoisted_4$z = {
|
|
|
2691
2997
|
class: "tabs-after"
|
|
2692
2998
|
};
|
|
2693
2999
|
const _hoisted_5$u = ["aria-labelledby"];
|
|
2694
|
-
const _sfc_main$
|
|
3000
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2695
3001
|
__name: "UiTabs",
|
|
2696
3002
|
props: {
|
|
2697
3003
|
modelValue: {},
|
|
@@ -3018,7 +3324,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3018
3324
|
{ "tabs-container--with-content": hasContentSlot.value }
|
|
3019
3325
|
]])
|
|
3020
3326
|
}, [
|
|
3021
|
-
createElementVNode("div", _hoisted_1$
|
|
3327
|
+
createElementVNode("div", _hoisted_1$I, [
|
|
3022
3328
|
createElementVNode("div", {
|
|
3023
3329
|
class: normalizeClass(["tabs-list", [
|
|
3024
3330
|
`tabs-list--${_ctx.orientation}`,
|
|
@@ -3080,12 +3386,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3080
3386
|
};
|
|
3081
3387
|
}
|
|
3082
3388
|
});
|
|
3083
|
-
const StrandsUiTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3084
|
-
const _hoisted_1$
|
|
3389
|
+
const StrandsUiTabs = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-901716e3"]]);
|
|
3390
|
+
const _hoisted_1$H = {
|
|
3085
3391
|
key: 0,
|
|
3086
3392
|
class: "ui-divider-text"
|
|
3087
3393
|
};
|
|
3088
|
-
const _sfc_main$
|
|
3394
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
3089
3395
|
__name: "UiDivider",
|
|
3090
3396
|
props: {
|
|
3091
3397
|
orientation: { default: "horizontal" },
|
|
@@ -3139,7 +3445,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3139
3445
|
]),
|
|
3140
3446
|
style: normalizeStyle(dividerStyle.value)
|
|
3141
3447
|
}, [
|
|
3142
|
-
hasText.value ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3448
|
+
hasText.value ? (openBlock(), createElementBlock("span", _hoisted_1$H, [
|
|
3143
3449
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3144
3450
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
3145
3451
|
], true)
|
|
@@ -3148,8 +3454,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3148
3454
|
};
|
|
3149
3455
|
}
|
|
3150
3456
|
});
|
|
3151
|
-
const UiDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3152
|
-
const _hoisted_1$
|
|
3457
|
+
const UiDivider = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1c798024"]]);
|
|
3458
|
+
const _hoisted_1$G = { class: "datetime-picker-wrapper" };
|
|
3153
3459
|
const _hoisted_2$C = { class: "datetime-picker-leading-icon" };
|
|
3154
3460
|
const _hoisted_3$z = { class: "datetime-picker-display" };
|
|
3155
3461
|
const _hoisted_4$y = {
|
|
@@ -3189,7 +3495,7 @@ const _hoisted_20$b = {
|
|
|
3189
3495
|
};
|
|
3190
3496
|
const _hoisted_21$b = { class: "time-scroll" };
|
|
3191
3497
|
const _hoisted_22$8 = { class: "datetime-picker-footer" };
|
|
3192
|
-
const _sfc_main$
|
|
3498
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
3193
3499
|
__name: "UiDateTimePicker",
|
|
3194
3500
|
props: {
|
|
3195
3501
|
modelValue: {},
|
|
@@ -3521,7 +3827,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3521
3827
|
cleanupFloating();
|
|
3522
3828
|
});
|
|
3523
3829
|
return (_ctx, _cache) => {
|
|
3524
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3830
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
3525
3831
|
createElementVNode("div", {
|
|
3526
3832
|
ref_key: "triggerElement",
|
|
3527
3833
|
ref: triggerElement,
|
|
@@ -3778,8 +4084,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3778
4084
|
};
|
|
3779
4085
|
}
|
|
3780
4086
|
});
|
|
3781
|
-
const UiDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3782
|
-
const _sfc_main$
|
|
4087
|
+
const UiDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-f688c330"]]);
|
|
4088
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
3783
4089
|
__name: "UiInput.Date",
|
|
3784
4090
|
props: {
|
|
3785
4091
|
min: {},
|
|
@@ -3826,7 +4132,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
3826
4132
|
};
|
|
3827
4133
|
}
|
|
3828
4134
|
});
|
|
3829
|
-
const _sfc_main$
|
|
4135
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
3830
4136
|
__name: "UiInput.Time",
|
|
3831
4137
|
props: {
|
|
3832
4138
|
is24Hour: { type: Boolean, default: true },
|
|
@@ -3871,7 +4177,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
3871
4177
|
};
|
|
3872
4178
|
}
|
|
3873
4179
|
});
|
|
3874
|
-
const _sfc_main$
|
|
4180
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
3875
4181
|
__name: "UiInput.DateTime",
|
|
3876
4182
|
props: {
|
|
3877
4183
|
min: {},
|
|
@@ -24874,14 +25180,14 @@ var TextAlign = Extension.create({
|
|
|
24874
25180
|
});
|
|
24875
25181
|
var index_default$1 = TextAlign;
|
|
24876
25182
|
var index_default = Placeholder;
|
|
24877
|
-
const _hoisted_1$
|
|
25183
|
+
const _hoisted_1$F = { class: "input-richtext-toolbar" };
|
|
24878
25184
|
const _hoisted_2$B = { class: "input-richtext-group" };
|
|
24879
25185
|
const _hoisted_3$y = { class: "input-richtext-group" };
|
|
24880
25186
|
const _hoisted_4$x = { class: "input-richtext-group" };
|
|
24881
25187
|
const _hoisted_5$s = { class: "input-richtext-group" };
|
|
24882
25188
|
const _hoisted_6$o = { class: "input-richtext-group" };
|
|
24883
25189
|
const _hoisted_7$n = { class: "input-richtext-editor-wrapper" };
|
|
24884
|
-
const _sfc_main$
|
|
25190
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
24885
25191
|
__name: "UiInput.RichText",
|
|
24886
25192
|
props: {
|
|
24887
25193
|
minHeight: { default: "200px" },
|
|
@@ -24967,7 +25273,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
24967
25273
|
"input-disabled": _ctx.disabled
|
|
24968
25274
|
}])
|
|
24969
25275
|
}, [
|
|
24970
|
-
createElementVNode("div", _hoisted_1$
|
|
25276
|
+
createElementVNode("div", _hoisted_1$F, [
|
|
24971
25277
|
createElementVNode("div", _hoisted_2$B, [
|
|
24972
25278
|
createVNode(StrandsUiButton, {
|
|
24973
25279
|
color: unref(editor)?.isActive("bold") ? "primary" : "secondary",
|
|
@@ -25248,8 +25554,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
25248
25554
|
};
|
|
25249
25555
|
}
|
|
25250
25556
|
});
|
|
25251
|
-
const UiInputRichText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25252
|
-
const _hoisted_1$
|
|
25557
|
+
const UiInputRichText = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-18a35d5d"]]);
|
|
25558
|
+
const _hoisted_1$E = { class: "pincode-inputs" };
|
|
25253
25559
|
const _hoisted_2$A = {
|
|
25254
25560
|
key: 0,
|
|
25255
25561
|
class: "pincode-icon pincode-icon-leading"
|
|
@@ -25263,7 +25569,7 @@ const _hoisted_5$r = {
|
|
|
25263
25569
|
key: 1,
|
|
25264
25570
|
class: "pincode-icon pincode-icon-trailing"
|
|
25265
25571
|
};
|
|
25266
|
-
const _sfc_main$
|
|
25572
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
25267
25573
|
__name: "UiInput.Pincode",
|
|
25268
25574
|
props: {
|
|
25269
25575
|
maxLength: { default: 6 },
|
|
@@ -25449,7 +25755,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
25449
25755
|
return openBlock(), createElementBlock("div", {
|
|
25450
25756
|
class: normalizeClass(["pincode-wrapper", [`pincode-size-${_ctx.size}`, { "pincode-error": _ctx.error }]])
|
|
25451
25757
|
}, [
|
|
25452
|
-
createElementVNode("div", _hoisted_1$
|
|
25758
|
+
createElementVNode("div", _hoisted_1$E, [
|
|
25453
25759
|
props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
25454
25760
|
renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
|
|
25455
25761
|
])) : createCommentVNode("", true),
|
|
@@ -25490,7 +25796,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
25490
25796
|
};
|
|
25491
25797
|
}
|
|
25492
25798
|
});
|
|
25493
|
-
const UiInputPincode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25799
|
+
const UiInputPincode = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-78a9c50b"]]);
|
|
25494
25800
|
function hasSlotContent(slots, slotName) {
|
|
25495
25801
|
const slot = slots[slotName];
|
|
25496
25802
|
if (!slot) return false;
|
|
@@ -25503,7 +25809,7 @@ function hasSlotContent(slots, slotName) {
|
|
|
25503
25809
|
return false;
|
|
25504
25810
|
});
|
|
25505
25811
|
}
|
|
25506
|
-
const _hoisted_1$
|
|
25812
|
+
const _hoisted_1$D = ["for"];
|
|
25507
25813
|
const _hoisted_2$z = {
|
|
25508
25814
|
key: 0,
|
|
25509
25815
|
class: "input-required"
|
|
@@ -25520,7 +25826,7 @@ const _hoisted_5$q = {
|
|
|
25520
25826
|
key: 3,
|
|
25521
25827
|
class: "input-help-text"
|
|
25522
25828
|
};
|
|
25523
|
-
const _sfc_main$
|
|
25829
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
25524
25830
|
__name: "UiInput",
|
|
25525
25831
|
props: {
|
|
25526
25832
|
type: {},
|
|
@@ -25616,7 +25922,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25616
25922
|
}, [
|
|
25617
25923
|
createTextVNode(toDisplayString(props.label) + " ", 1),
|
|
25618
25924
|
props.required ? (openBlock(), createElementBlock("span", _hoisted_2$z, "*")) : createCommentVNode("", true)
|
|
25619
|
-
], 8, _hoisted_1$
|
|
25925
|
+
], 8, _hoisted_1$D)) : createCommentVNode("", true),
|
|
25620
25926
|
createElementVNode("div", null, [
|
|
25621
25927
|
isTextInput.value ? (openBlock(), createBlock(UiInputText, {
|
|
25622
25928
|
key: 0,
|
|
@@ -25739,7 +26045,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25739
26045
|
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
25740
26046
|
]),
|
|
25741
26047
|
_: 3
|
|
25742
|
-
}, 8, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$
|
|
26048
|
+
}, 8, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$L, {
|
|
25743
26049
|
key: 4,
|
|
25744
26050
|
"model-value": _ctx.modelValue,
|
|
25745
26051
|
placeholder: _ctx.placeholder,
|
|
@@ -25755,7 +26061,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25755
26061
|
"onUpdate:modelValue": handleInput,
|
|
25756
26062
|
onBlur: handleBlur,
|
|
25757
26063
|
onFocus: handleFocus
|
|
25758
|
-
}, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : _ctx.type === "time" ? (openBlock(), createBlock(_sfc_main$
|
|
26064
|
+
}, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "min", "max", "input-id", "error", "size", "tabindex"])) : _ctx.type === "time" ? (openBlock(), createBlock(_sfc_main$K, {
|
|
25759
26065
|
key: 5,
|
|
25760
26066
|
"model-value": _ctx.modelValue,
|
|
25761
26067
|
placeholder: _ctx.placeholder,
|
|
@@ -25769,7 +26075,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25769
26075
|
"onUpdate:modelValue": handleInput,
|
|
25770
26076
|
onBlur: handleBlur,
|
|
25771
26077
|
onFocus: handleFocus
|
|
25772
|
-
}, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size", "tabindex"])) : _ctx.type === "datetime" ? (openBlock(), createBlock(_sfc_main$
|
|
26078
|
+
}, null, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "input-id", "error", "size", "tabindex"])) : _ctx.type === "datetime" ? (openBlock(), createBlock(_sfc_main$J, {
|
|
25773
26079
|
key: 6,
|
|
25774
26080
|
"model-value": _ctx.modelValue,
|
|
25775
26081
|
placeholder: _ctx.placeholder,
|
|
@@ -25840,10 +26146,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
25840
26146
|
};
|
|
25841
26147
|
}
|
|
25842
26148
|
});
|
|
25843
|
-
const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25844
|
-
const _hoisted_1$
|
|
26149
|
+
const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-96984fc3"]]);
|
|
26150
|
+
const _hoisted_1$C = ["disabled", "aria-disabled"];
|
|
25845
26151
|
const _hoisted_2$y = ["href", "target", "rel", "aria-disabled"];
|
|
25846
|
-
const _sfc_main$
|
|
26152
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
25847
26153
|
__name: "UiLink",
|
|
25848
26154
|
props: {
|
|
25849
26155
|
href: {},
|
|
@@ -25933,7 +26239,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
25933
26239
|
onClick: handleClick2
|
|
25934
26240
|
}, [
|
|
25935
26241
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
25936
|
-
], 14, _hoisted_1$
|
|
26242
|
+
], 14, _hoisted_1$C)) : (openBlock(), createElementBlock("a", {
|
|
25937
26243
|
key: 1,
|
|
25938
26244
|
class: normalizeClass(["ui-link", [
|
|
25939
26245
|
`ui-link-${_ctx.variant}`,
|
|
@@ -25953,15 +26259,15 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
25953
26259
|
};
|
|
25954
26260
|
}
|
|
25955
26261
|
});
|
|
25956
|
-
const StrandsUiLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25957
|
-
const _hoisted_1$
|
|
26262
|
+
const StrandsUiLink = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-3bf99110"]]);
|
|
26263
|
+
const _hoisted_1$B = { class: "ui-toggle-container" };
|
|
25958
26264
|
const _hoisted_2$x = ["for"];
|
|
25959
26265
|
const _hoisted_3$v = {
|
|
25960
26266
|
key: 0,
|
|
25961
26267
|
class: "ui-toggle-required"
|
|
25962
26268
|
};
|
|
25963
26269
|
const _hoisted_4$u = ["id", "aria-pressed", "aria-labelledby"];
|
|
25964
|
-
const _sfc_main$
|
|
26270
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
25965
26271
|
__name: "UiToggle",
|
|
25966
26272
|
props: {
|
|
25967
26273
|
modelValue: { type: Boolean, default: false },
|
|
@@ -25994,7 +26300,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25994
26300
|
emit("update:modelValue", !props.modelValue);
|
|
25995
26301
|
};
|
|
25996
26302
|
return (_ctx, _cache) => {
|
|
25997
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26303
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
25998
26304
|
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
25999
26305
|
key: 0,
|
|
26000
26306
|
for: toggleId.value,
|
|
@@ -26019,8 +26325,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
26019
26325
|
};
|
|
26020
26326
|
}
|
|
26021
26327
|
});
|
|
26022
|
-
const UiToggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26023
|
-
const _hoisted_1$
|
|
26328
|
+
const UiToggle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-ba05b9e3"]]);
|
|
26329
|
+
const _hoisted_1$A = { class: "accui-component-scope" };
|
|
26024
26330
|
const _hoisted_2$w = { class: "avatar-editor-simple" };
|
|
26025
26331
|
const _hoisted_3$u = {
|
|
26026
26332
|
key: 1,
|
|
@@ -26045,7 +26351,7 @@ const _hoisted_19$c = { class: "action-buttons" };
|
|
|
26045
26351
|
const _hoisted_20$a = { class: "preview-section" };
|
|
26046
26352
|
const _hoisted_21$a = { class: "preview-container" };
|
|
26047
26353
|
const _hoisted_22$7 = ["width", "height"];
|
|
26048
|
-
const _sfc_main$
|
|
26354
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
26049
26355
|
__name: "UiAvatarEditor",
|
|
26050
26356
|
props: {
|
|
26051
26357
|
size: { default: 300 },
|
|
@@ -26336,7 +26642,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
26336
26642
|
}
|
|
26337
26643
|
}, { immediate: true });
|
|
26338
26644
|
return (_ctx, _cache) => {
|
|
26339
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26645
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
26340
26646
|
createElementVNode("div", _hoisted_2$w, [
|
|
26341
26647
|
createElementVNode("input", {
|
|
26342
26648
|
ref_key: "fileInput",
|
|
@@ -26824,7 +27130,7 @@ class SoundEffects {
|
|
|
26824
27130
|
}
|
|
26825
27131
|
}
|
|
26826
27132
|
const playLevelUp = (level, userSettings) => SoundEffects.playLevelUp(level, userSettings);
|
|
26827
|
-
const _hoisted_1$
|
|
27133
|
+
const _hoisted_1$z = { class: "level-progress-container" };
|
|
26828
27134
|
const _hoisted_2$v = ["width", "height", "viewBox"];
|
|
26829
27135
|
const _hoisted_3$t = { key: 0 };
|
|
26830
27136
|
const _hoisted_4$s = ["r"];
|
|
@@ -26854,7 +27160,7 @@ const INNER_GAP = 18;
|
|
|
26854
27160
|
const ANIMATION_DURATION = 600;
|
|
26855
27161
|
const LABEL_EXTRA_DEGREES = 12;
|
|
26856
27162
|
const LABEL_CHAR_DEGREES = 8;
|
|
26857
|
-
const _sfc_main$
|
|
27163
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
26858
27164
|
__name: "UiLevelProgress",
|
|
26859
27165
|
props: {
|
|
26860
27166
|
value: {},
|
|
@@ -27009,7 +27315,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
27009
27315
|
prevLevel = newLevel;
|
|
27010
27316
|
});
|
|
27011
27317
|
return (_ctx, _cache) => {
|
|
27012
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
27318
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
27013
27319
|
(openBlock(), createElementBlock("svg", {
|
|
27014
27320
|
width: unref(size),
|
|
27015
27321
|
height: unref(size),
|
|
@@ -27107,7 +27413,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
27107
27413
|
};
|
|
27108
27414
|
}
|
|
27109
27415
|
});
|
|
27110
|
-
const UiLevelProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27416
|
+
const UiLevelProgress = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-410a88ab"]]);
|
|
27111
27417
|
class ModalStack {
|
|
27112
27418
|
stack = [];
|
|
27113
27419
|
escapeHandlerRegistered = false;
|
|
@@ -27310,7 +27616,7 @@ function useGlobalModalStack() {
|
|
|
27310
27616
|
}
|
|
27311
27617
|
};
|
|
27312
27618
|
}
|
|
27313
|
-
const _hoisted_1$
|
|
27619
|
+
const _hoisted_1$y = {
|
|
27314
27620
|
key: 0,
|
|
27315
27621
|
class: "ui-modal-backdrop",
|
|
27316
27622
|
role: "dialog",
|
|
@@ -27324,7 +27630,7 @@ const _hoisted_5$n = {
|
|
|
27324
27630
|
class: "ui-modal-subtitle"
|
|
27325
27631
|
};
|
|
27326
27632
|
const _hoisted_6$l = { class: "ui-modal-body-content" };
|
|
27327
|
-
const _sfc_main$
|
|
27633
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
27328
27634
|
__name: "UiModal",
|
|
27329
27635
|
props: {
|
|
27330
27636
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -27479,7 +27785,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27479
27785
|
}, [
|
|
27480
27786
|
createVNode(Transition, { name: "modal" }, {
|
|
27481
27787
|
default: withCtx(() => [
|
|
27482
|
-
isModalOpen.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
27788
|
+
isModalOpen.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
27483
27789
|
createElementVNode("div", {
|
|
27484
27790
|
class: "ui-modal-container",
|
|
27485
27791
|
ref_key: "modalContainer",
|
|
@@ -27554,7 +27860,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27554
27860
|
};
|
|
27555
27861
|
}
|
|
27556
27862
|
});
|
|
27557
|
-
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27863
|
+
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-ecf47be6"]]);
|
|
27558
27864
|
const tailwindColors = {
|
|
27559
27865
|
"#000000": {
|
|
27560
27866
|
label: "Black"
|
|
@@ -28157,7 +28463,7 @@ const tailwindColors = {
|
|
|
28157
28463
|
]
|
|
28158
28464
|
}
|
|
28159
28465
|
};
|
|
28160
|
-
const _hoisted_1$
|
|
28466
|
+
const _hoisted_1$x = { class: "ui-color-picker" };
|
|
28161
28467
|
const _hoisted_2$t = { class: "ui-color-picker-main" };
|
|
28162
28468
|
const _hoisted_3$r = ["viewBox"];
|
|
28163
28469
|
const _hoisted_4$q = ["d"];
|
|
@@ -28240,7 +28546,7 @@ const _hoisted_50$1 = { class: "ui-color-picker-swatch-row ui-color-picker-swatc
|
|
|
28240
28546
|
const _hoisted_51$1 = ["onClick"];
|
|
28241
28547
|
const GLOBAL_PICKER_WIDTH = 200;
|
|
28242
28548
|
const GLOBAL_PICKER_HEIGHT = 150;
|
|
28243
|
-
const _sfc_main$
|
|
28549
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
28244
28550
|
__name: "UiColorPicker.Picker",
|
|
28245
28551
|
props: {
|
|
28246
28552
|
contrastLabel: {},
|
|
@@ -29785,7 +30091,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
29785
30091
|
document.removeEventListener("touchend", handleAreaMouseUp);
|
|
29786
30092
|
});
|
|
29787
30093
|
return (_ctx, _cache) => {
|
|
29788
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30094
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
29789
30095
|
createElementVNode("div", _hoisted_2$t, [
|
|
29790
30096
|
createElementVNode("div", {
|
|
29791
30097
|
ref_key: "colorAreaRef",
|
|
@@ -30427,10 +30733,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
30427
30733
|
};
|
|
30428
30734
|
}
|
|
30429
30735
|
});
|
|
30430
|
-
const UiColorPickerPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30431
|
-
const _hoisted_1$
|
|
30736
|
+
const UiColorPickerPicker = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-24473a61"]]);
|
|
30737
|
+
const _hoisted_1$w = { class: "ui-color-picker-button-container" };
|
|
30432
30738
|
const _hoisted_2$s = { class: "ui-color-picker-button-preview" };
|
|
30433
|
-
const _sfc_main$
|
|
30739
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
30434
30740
|
__name: "UiColorPicker.Button",
|
|
30435
30741
|
props: {
|
|
30436
30742
|
modelValue: {},
|
|
@@ -30514,7 +30820,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30514
30820
|
cleanupFloating();
|
|
30515
30821
|
});
|
|
30516
30822
|
return (_ctx, _cache) => {
|
|
30517
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
30823
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
30518
30824
|
createVNode(StrandsUiButton, {
|
|
30519
30825
|
ref_key: "buttonRef",
|
|
30520
30826
|
ref: buttonRef,
|
|
@@ -30558,8 +30864,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
30558
30864
|
};
|
|
30559
30865
|
}
|
|
30560
30866
|
});
|
|
30561
|
-
const UiColorPickerButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30562
|
-
const _sfc_main$
|
|
30867
|
+
const UiColorPickerButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a03d15a6"]]);
|
|
30868
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
30563
30869
|
__name: "UiColorPicker",
|
|
30564
30870
|
props: {
|
|
30565
30871
|
modelValue: { default: "#EA00A8" },
|
|
@@ -30613,145 +30919,6 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
30613
30919
|
};
|
|
30614
30920
|
}
|
|
30615
30921
|
});
|
|
30616
|
-
const _hoisted_1$w = { class: "ui-tooltip-content" };
|
|
30617
|
-
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
30618
|
-
__name: "UiTooltip",
|
|
30619
|
-
props: {
|
|
30620
|
-
content: { default: "" },
|
|
30621
|
-
position: { default: "top" },
|
|
30622
|
-
delay: { default: 500 },
|
|
30623
|
-
disabled: { type: Boolean, default: false },
|
|
30624
|
-
offset: { default: 8 },
|
|
30625
|
-
maxWidth: { default: 250 }
|
|
30626
|
-
},
|
|
30627
|
-
setup(__props) {
|
|
30628
|
-
const props = __props;
|
|
30629
|
-
const tooltipContainer = ref();
|
|
30630
|
-
const tooltipRef = ref();
|
|
30631
|
-
const isVisible = ref(false);
|
|
30632
|
-
const shouldRender = ref(false);
|
|
30633
|
-
let showTimeout = null;
|
|
30634
|
-
let hideTimeout = null;
|
|
30635
|
-
const tooltipStyle = ref({});
|
|
30636
|
-
const updateTooltipPosition = async () => {
|
|
30637
|
-
if (!tooltipContainer.value || !tooltipRef.value || !shouldRender.value) return;
|
|
30638
|
-
await nextTick();
|
|
30639
|
-
const containerRect = tooltipContainer.value.getBoundingClientRect();
|
|
30640
|
-
tooltipRef.value.style.visibility = "hidden";
|
|
30641
|
-
tooltipRef.value.style.opacity = "1";
|
|
30642
|
-
const tooltipRect = tooltipRef.value.getBoundingClientRect();
|
|
30643
|
-
const tooltipWidth = tooltipRect.width;
|
|
30644
|
-
const tooltipHeight = tooltipRect.height;
|
|
30645
|
-
tooltipRef.value.style.visibility = "";
|
|
30646
|
-
tooltipRef.value.style.opacity = "";
|
|
30647
|
-
const viewportWidth = window.innerWidth;
|
|
30648
|
-
const viewportHeight = window.innerHeight;
|
|
30649
|
-
let top = 0;
|
|
30650
|
-
let left = 0;
|
|
30651
|
-
switch (props.position) {
|
|
30652
|
-
case "top":
|
|
30653
|
-
top = containerRect.top - tooltipHeight - props.offset;
|
|
30654
|
-
left = containerRect.left + containerRect.width / 2 - tooltipWidth / 2;
|
|
30655
|
-
break;
|
|
30656
|
-
case "bottom":
|
|
30657
|
-
top = containerRect.bottom + props.offset;
|
|
30658
|
-
left = containerRect.left + containerRect.width / 2 - tooltipWidth / 2;
|
|
30659
|
-
break;
|
|
30660
|
-
case "left":
|
|
30661
|
-
top = containerRect.top + containerRect.height / 2 - tooltipHeight / 2;
|
|
30662
|
-
left = containerRect.left - tooltipWidth - props.offset;
|
|
30663
|
-
break;
|
|
30664
|
-
case "right":
|
|
30665
|
-
top = containerRect.top + containerRect.height / 2 - tooltipHeight / 2;
|
|
30666
|
-
left = containerRect.right + props.offset;
|
|
30667
|
-
break;
|
|
30668
|
-
}
|
|
30669
|
-
const padding = 8;
|
|
30670
|
-
if (left < padding) {
|
|
30671
|
-
left = padding;
|
|
30672
|
-
} else if (left + tooltipWidth > viewportWidth - padding) {
|
|
30673
|
-
left = viewportWidth - tooltipWidth - padding;
|
|
30674
|
-
}
|
|
30675
|
-
if (top < padding) {
|
|
30676
|
-
top = padding;
|
|
30677
|
-
} else if (top + tooltipHeight > viewportHeight - padding) {
|
|
30678
|
-
top = viewportHeight - tooltipHeight - padding;
|
|
30679
|
-
}
|
|
30680
|
-
tooltipStyle.value = {
|
|
30681
|
-
position: "fixed",
|
|
30682
|
-
top: `${top}px`,
|
|
30683
|
-
left: `${left}px`,
|
|
30684
|
-
zIndex: "9999"
|
|
30685
|
-
};
|
|
30686
|
-
};
|
|
30687
|
-
const showTooltip = () => {
|
|
30688
|
-
if (props.disabled) return;
|
|
30689
|
-
if (hideTimeout) {
|
|
30690
|
-
clearTimeout(hideTimeout);
|
|
30691
|
-
hideTimeout = null;
|
|
30692
|
-
}
|
|
30693
|
-
shouldRender.value = true;
|
|
30694
|
-
nextTick(() => {
|
|
30695
|
-
updateTooltipPosition();
|
|
30696
|
-
});
|
|
30697
|
-
showTimeout = setTimeout(() => {
|
|
30698
|
-
isVisible.value = true;
|
|
30699
|
-
}, props.delay);
|
|
30700
|
-
};
|
|
30701
|
-
const hideTooltip = () => {
|
|
30702
|
-
if (showTimeout) {
|
|
30703
|
-
clearTimeout(showTimeout);
|
|
30704
|
-
showTimeout = null;
|
|
30705
|
-
}
|
|
30706
|
-
hideTimeout = setTimeout(() => {
|
|
30707
|
-
isVisible.value = false;
|
|
30708
|
-
setTimeout(() => {
|
|
30709
|
-
shouldRender.value = false;
|
|
30710
|
-
}, 200);
|
|
30711
|
-
}, 100);
|
|
30712
|
-
};
|
|
30713
|
-
onUnmounted(() => {
|
|
30714
|
-
if (showTimeout) clearTimeout(showTimeout);
|
|
30715
|
-
if (hideTimeout) clearTimeout(hideTimeout);
|
|
30716
|
-
});
|
|
30717
|
-
return (_ctx, _cache) => {
|
|
30718
|
-
return openBlock(), createElementBlock("div", {
|
|
30719
|
-
ref_key: "tooltipContainer",
|
|
30720
|
-
ref: tooltipContainer,
|
|
30721
|
-
class: "ui-tooltip-container",
|
|
30722
|
-
onMouseenter: showTooltip,
|
|
30723
|
-
onMouseleave: hideTooltip
|
|
30724
|
-
}, [
|
|
30725
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
30726
|
-
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
30727
|
-
shouldRender.value ? (openBlock(), createElementBlock("div", {
|
|
30728
|
-
key: 0,
|
|
30729
|
-
ref_key: "tooltipRef",
|
|
30730
|
-
ref: tooltipRef,
|
|
30731
|
-
class: normalizeClass(["ui-tooltip", [
|
|
30732
|
-
`ui-tooltip--${_ctx.position}`,
|
|
30733
|
-
{
|
|
30734
|
-
"ui-tooltip--visible": isVisible.value
|
|
30735
|
-
}
|
|
30736
|
-
]]),
|
|
30737
|
-
style: normalizeStyle(tooltipStyle.value),
|
|
30738
|
-
role: "tooltip"
|
|
30739
|
-
}, [
|
|
30740
|
-
createElementVNode("div", _hoisted_1$w, [
|
|
30741
|
-
renderSlot(_ctx.$slots, "tooltip", {}, () => [
|
|
30742
|
-
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
30743
|
-
], true)
|
|
30744
|
-
]),
|
|
30745
|
-
createElementVNode("div", {
|
|
30746
|
-
class: normalizeClass(["ui-tooltip-arrow", `ui-tooltip-arrow--${_ctx.position}`])
|
|
30747
|
-
}, null, 2)
|
|
30748
|
-
], 6)) : createCommentVNode("", true)
|
|
30749
|
-
]))
|
|
30750
|
-
], 544);
|
|
30751
|
-
};
|
|
30752
|
-
}
|
|
30753
|
-
});
|
|
30754
|
-
const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-614c492f"]]);
|
|
30755
30922
|
const _hoisted_1$v = { class: "ui-table-container" };
|
|
30756
30923
|
const _hoisted_2$r = {
|
|
30757
30924
|
key: 0,
|
|
@@ -39442,7 +39609,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
39442
39609
|
], -1)
|
|
39443
39610
|
])])
|
|
39444
39611
|
]),
|
|
39445
|
-
createVNode(unref(_sfc_main$
|
|
39612
|
+
createVNode(unref(_sfc_main$D), {
|
|
39446
39613
|
uploading: uploading.value,
|
|
39447
39614
|
"preselected-file": selectedImageFile.value,
|
|
39448
39615
|
onUpload: handleAvatarUpload,
|
|
@@ -40272,7 +40439,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
40272
40439
|
to: {},
|
|
40273
40440
|
href: {},
|
|
40274
40441
|
external: { type: Boolean },
|
|
40275
|
-
tabindex: {}
|
|
40442
|
+
tabindex: {},
|
|
40443
|
+
title: {}
|
|
40276
40444
|
},
|
|
40277
40445
|
setup(__props) {
|
|
40278
40446
|
const props = __props;
|
|
@@ -41097,11 +41265,11 @@ export {
|
|
|
41097
41265
|
StrandsUIPlugin,
|
|
41098
41266
|
StrandsUiAlert,
|
|
41099
41267
|
UiApp as StrandsUiApp,
|
|
41100
|
-
_sfc_main$
|
|
41268
|
+
_sfc_main$D as StrandsUiAvatarEditor,
|
|
41101
41269
|
CompoundUiButton as StrandsUiButton,
|
|
41102
41270
|
StrandsUiCard,
|
|
41103
41271
|
UiCheckboxGroup as StrandsUiCheckboxGroup,
|
|
41104
|
-
_sfc_main$
|
|
41272
|
+
_sfc_main$y as StrandsUiColorPicker,
|
|
41105
41273
|
UiDivider as StrandsUiDivider,
|
|
41106
41274
|
UiHero as StrandsUiHero,
|
|
41107
41275
|
StrandsUiInput,
|
|
@@ -41122,12 +41290,12 @@ export {
|
|
|
41122
41290
|
_sfc_main$5 as SvgIcon,
|
|
41123
41291
|
StrandsUiAlert as UiAlert,
|
|
41124
41292
|
UiApp,
|
|
41125
|
-
_sfc_main$
|
|
41126
|
-
_sfc_main$
|
|
41293
|
+
_sfc_main$D as UiAvatarEditor,
|
|
41294
|
+
_sfc_main$D as UiAvatarEditorSimple,
|
|
41127
41295
|
CompoundUiButton as UiButton,
|
|
41128
41296
|
StrandsUiCard as UiCard,
|
|
41129
41297
|
UiCheckboxGroup,
|
|
41130
|
-
_sfc_main$
|
|
41298
|
+
_sfc_main$y as UiColorPicker,
|
|
41131
41299
|
UiDivider,
|
|
41132
41300
|
UiHero,
|
|
41133
41301
|
StrandsUiInput as UiInput,
|