@auronui/vue 1.0.17 → 1.0.19
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/cjs/index.cjs +769 -482
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/accordion/Accordion.js.map +1 -1
- package/dist/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +26 -3
- package/dist/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +23 -4
- package/dist/components/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +26 -4
- package/dist/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js +53 -2
- package/dist/components/button/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/ButtonGroup.js.map +1 -1
- package/dist/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +28 -4
- package/dist/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/ToggleButtonGroup.js.map +1 -1
- package/dist/components/button/ToggleButtonGroup.vue_vue_type_script_setup_true_lang.js +21 -3
- package/dist/components/button/ToggleButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/button/button-group.context.js.map +1 -1
- package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +14 -3
- package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/collapsible/CollapsibleGroup.js.map +1 -1
- package/dist/components/collapsible/CollapsibleGroup.vue_vue_type_script_setup_true_lang.js +22 -3
- package/dist/components/collapsible/CollapsibleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/list-box/ListBox.js.map +1 -1
- package/dist/components/list-box/ListBox.vue_vue_type_script_setup_true_lang.js +19 -3
- package/dist/components/list-box/ListBox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/modal/ModalContent.js.map +1 -1
- package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/radio/RadioGroup.js.map +1 -1
- package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js +14 -3
- package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/stepper/Stepper.js.map +1 -1
- package/dist/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +37 -5
- package/dist/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/switch/SwitchGroup.js.map +1 -1
- package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js +14 -3
- package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs.vue_vue_type_script_setup_true_lang.js +30 -3
- package/dist/components/tabs/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js +25 -3
- package/dist/components/toolbar/ToolbarToggleGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/index.d.ts +128 -2
- package/dist/index.js +7 -7
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -373,7 +373,7 @@ function createContext(contextName) {
|
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
375
|
//#region src/components/spinner/Spinner.vue?vue&type=script&setup=true&lang.ts
|
|
376
|
-
var _hoisted_1$
|
|
376
|
+
var _hoisted_1$63 = ["aria-label"];
|
|
377
377
|
var _hoisted_2$31 = {
|
|
378
378
|
"data-slot": "spinner-icon",
|
|
379
379
|
viewBox: "0 0 24 24",
|
|
@@ -447,13 +447,13 @@ var Spinner_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
447
447
|
fill: `url(#${gradId2})`,
|
|
448
448
|
transform: "translate(1.5 1.625)"
|
|
449
449
|
}, null, 8, _hoisted_5$9)
|
|
450
|
-
])]))], 10, _hoisted_1$
|
|
450
|
+
])]))], 10, _hoisted_1$63);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region src/components/separator/Separator.vue?vue&type=script&setup=true&lang.ts
|
|
456
|
-
var _hoisted_1$
|
|
456
|
+
var _hoisted_1$62 = { class: "separator__content" };
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/components/separator/Separator.vue
|
|
459
459
|
var Separator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -487,7 +487,7 @@ var Separator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
487
487
|
"aria-orientation": "horizontal"
|
|
488
488
|
}, [
|
|
489
489
|
_cache[0] || (_cache[0] = (0, vue.createElementVNode)("div", { class: "separator__line" }, null, -1)),
|
|
490
|
-
(0, vue.createElementVNode)("div", _hoisted_1$
|
|
490
|
+
(0, vue.createElementVNode)("div", _hoisted_1$62, [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
491
491
|
_cache[1] || (_cache[1] = (0, vue.createElementVNode)("div", { class: "separator__line" }, null, -1))
|
|
492
492
|
], 2));
|
|
493
493
|
};
|
|
@@ -546,7 +546,7 @@ var Text_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
546
546
|
});
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region src/components/label/Label.vue?vue&type=script&setup=true&lang.ts
|
|
549
|
-
var _hoisted_1$
|
|
549
|
+
var _hoisted_1$61 = ["for"];
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region src/components/label/Label.vue
|
|
552
552
|
var Label_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -578,13 +578,13 @@ var Label_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
578
578
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("label", {
|
|
579
579
|
class: (0, vue.normalizeClass)(classes.value),
|
|
580
580
|
for: props.for
|
|
581
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
581
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$61);
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region src/components/description/Description.vue?vue&type=script&setup=true&lang.ts
|
|
587
|
-
var _hoisted_1$
|
|
587
|
+
var _hoisted_1$60 = ["id"];
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region src/components/description/Description.vue
|
|
590
590
|
var Description_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -600,7 +600,7 @@ var Description_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
600
600
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("p", {
|
|
601
601
|
id: props.id,
|
|
602
602
|
class: (0, vue.normalizeClass)(classes.value)
|
|
603
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
603
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$60);
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
});
|
|
@@ -682,7 +682,7 @@ var Badge_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
682
682
|
});
|
|
683
683
|
//#endregion
|
|
684
684
|
//#region src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
685
|
-
var _hoisted_1$
|
|
685
|
+
var _hoisted_1$59 = ["aria-label"];
|
|
686
686
|
//#endregion
|
|
687
687
|
//#region src/components/chip/Chip.vue
|
|
688
688
|
var Chip_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -762,7 +762,7 @@ var Chip_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
762
762
|
y1: "6",
|
|
763
763
|
x2: "18",
|
|
764
764
|
y2: "18"
|
|
765
|
-
})], -1)])], 10, _hoisted_1$
|
|
765
|
+
})], -1)])], 10, _hoisted_1$59)) : (0, vue.createCommentVNode)("", true)
|
|
766
766
|
], 2);
|
|
767
767
|
};
|
|
768
768
|
}
|
|
@@ -795,7 +795,7 @@ var Surface_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
795
795
|
var { useProvide: useCardProvide, useInject: useCardInject, key: cardContextKey } = createContext("Card");
|
|
796
796
|
//#endregion
|
|
797
797
|
//#region src/components/card/Card.vue?vue&type=script&setup=true&lang.ts
|
|
798
|
-
var _hoisted_1$
|
|
798
|
+
var _hoisted_1$58 = [
|
|
799
799
|
"role",
|
|
800
800
|
"tabindex",
|
|
801
801
|
"aria-disabled",
|
|
@@ -878,7 +878,7 @@ var Card_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
878
878
|
"data-disabled": __props.isDisabled || void 0,
|
|
879
879
|
onClick,
|
|
880
880
|
onKeydown
|
|
881
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 42, _hoisted_1$
|
|
881
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 42, _hoisted_1$58);
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
884
|
});
|
|
@@ -1025,6 +1025,7 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1025
1025
|
__name: "Button",
|
|
1026
1026
|
props: {
|
|
1027
1027
|
variant: { default: void 0 },
|
|
1028
|
+
color: { default: void 0 },
|
|
1028
1029
|
size: { default: void 0 },
|
|
1029
1030
|
radius: { default: void 0 },
|
|
1030
1031
|
isIconOnly: {
|
|
@@ -1057,7 +1058,8 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1057
1058
|
setup(__props) {
|
|
1058
1059
|
const props = __props;
|
|
1059
1060
|
const groupCtx = useButtonGroupInject({
|
|
1060
|
-
variant: (0, vue.ref)("
|
|
1061
|
+
variant: (0, vue.ref)("solid"),
|
|
1062
|
+
color: (0, vue.ref)("primary"),
|
|
1061
1063
|
size: (0, vue.ref)("md"),
|
|
1062
1064
|
disabled: (0, vue.ref)(false),
|
|
1063
1065
|
fullWidth: (0, vue.ref)(false),
|
|
@@ -1073,10 +1075,59 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1073
1075
|
}
|
|
1074
1076
|
const isDisabled = (0, vue.computed)(() => groupCtx.disabled.value || props.disabled);
|
|
1075
1077
|
const finalVariant = (0, vue.computed)(() => props.variant ?? groupCtx.variant.value);
|
|
1078
|
+
const finalColor = (0, vue.computed)(() => props.color ?? groupCtx.color.value);
|
|
1076
1079
|
const finalSize = (0, vue.computed)(() => props.size ?? groupCtx.size.value);
|
|
1077
1080
|
const finalFullWidth = (0, vue.computed)(() => props.fullWidth || groupCtx.fullWidth.value);
|
|
1081
|
+
const LEGACY_VARIANTS = {
|
|
1082
|
+
primary: {
|
|
1083
|
+
variant: "solid",
|
|
1084
|
+
color: "primary"
|
|
1085
|
+
},
|
|
1086
|
+
secondary: {
|
|
1087
|
+
variant: "default",
|
|
1088
|
+
color: "default"
|
|
1089
|
+
},
|
|
1090
|
+
tertiary: {
|
|
1091
|
+
variant: "default",
|
|
1092
|
+
color: "default"
|
|
1093
|
+
},
|
|
1094
|
+
danger: {
|
|
1095
|
+
variant: "solid",
|
|
1096
|
+
color: "danger"
|
|
1097
|
+
},
|
|
1098
|
+
"danger-soft": {
|
|
1099
|
+
variant: "soft",
|
|
1100
|
+
color: "danger"
|
|
1101
|
+
},
|
|
1102
|
+
success: {
|
|
1103
|
+
variant: "solid",
|
|
1104
|
+
color: "success"
|
|
1105
|
+
},
|
|
1106
|
+
"success-soft": {
|
|
1107
|
+
variant: "soft",
|
|
1108
|
+
color: "success"
|
|
1109
|
+
},
|
|
1110
|
+
warning: {
|
|
1111
|
+
variant: "solid",
|
|
1112
|
+
color: "warning"
|
|
1113
|
+
},
|
|
1114
|
+
"warning-soft": {
|
|
1115
|
+
variant: "soft",
|
|
1116
|
+
color: "warning"
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
const resolvedVariant = (0, vue.computed)(() => {
|
|
1120
|
+
const v = finalVariant.value;
|
|
1121
|
+
return LEGACY_VARIANTS[v]?.variant ?? v;
|
|
1122
|
+
});
|
|
1123
|
+
const resolvedColor = (0, vue.computed)(() => {
|
|
1124
|
+
const v = finalVariant.value;
|
|
1125
|
+
if (props.color === void 0 && LEGACY_VARIANTS[v]) return LEGACY_VARIANTS[v].color;
|
|
1126
|
+
return finalColor.value;
|
|
1127
|
+
});
|
|
1078
1128
|
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.buttonVariants)({
|
|
1079
|
-
variant:
|
|
1129
|
+
variant: resolvedVariant.value,
|
|
1130
|
+
color: resolvedColor.value,
|
|
1080
1131
|
size: finalSize.value,
|
|
1081
1132
|
radius: props.radius,
|
|
1082
1133
|
isIconOnly: props.isIconOnly,
|
|
@@ -1133,13 +1184,14 @@ var Button_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1133
1184
|
});
|
|
1134
1185
|
//#endregion
|
|
1135
1186
|
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1136
|
-
var _hoisted_1$
|
|
1187
|
+
var _hoisted_1$57 = ["data-orientation"];
|
|
1137
1188
|
//#endregion
|
|
1138
1189
|
//#region src/components/button/ButtonGroup.vue
|
|
1139
1190
|
var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
1140
1191
|
__name: "ButtonGroup",
|
|
1141
1192
|
props: {
|
|
1142
|
-
variant: { default: "
|
|
1193
|
+
variant: { default: "solid" },
|
|
1194
|
+
color: { default: "primary" },
|
|
1143
1195
|
size: { default: "md" },
|
|
1144
1196
|
disabled: {
|
|
1145
1197
|
type: Boolean,
|
|
@@ -1159,7 +1211,8 @@ var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1159
1211
|
] },
|
|
1160
1212
|
classNames: {},
|
|
1161
1213
|
selectionMode: { default: "single" },
|
|
1162
|
-
modelValue: { default: void 0 }
|
|
1214
|
+
modelValue: { default: void 0 },
|
|
1215
|
+
buttons: {}
|
|
1163
1216
|
},
|
|
1164
1217
|
emits: ["update:modelValue"],
|
|
1165
1218
|
setup(__props, { emit: __emit }) {
|
|
@@ -1187,6 +1240,7 @@ var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1187
1240
|
}
|
|
1188
1241
|
useButtonGroupProvide({
|
|
1189
1242
|
variant: (0, vue.toRef)(props, "variant"),
|
|
1243
|
+
color: (0, vue.toRef)(props, "color"),
|
|
1190
1244
|
size: (0, vue.toRef)(props, "size"),
|
|
1191
1245
|
disabled: (0, vue.toRef)(props, "disabled"),
|
|
1192
1246
|
fullWidth: (0, vue.toRef)(props, "fullWidth"),
|
|
@@ -1205,7 +1259,27 @@ var ButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1205
1259
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
1206
1260
|
"data-orientation": props.orientation,
|
|
1207
1261
|
role: "group"
|
|
1208
|
-
}, [(0, vue.
|
|
1262
|
+
}, [props.buttons ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.buttons, (btn, idx) => {
|
|
1263
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Button_default, {
|
|
1264
|
+
key: idx,
|
|
1265
|
+
value: btn.value,
|
|
1266
|
+
disabled: btn.disabled,
|
|
1267
|
+
"is-loading": btn.isLoading,
|
|
1268
|
+
variant: btn.variant,
|
|
1269
|
+
color: btn.color,
|
|
1270
|
+
class: (0, vue.normalizeClass)(btn.class)
|
|
1271
|
+
}, {
|
|
1272
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(btn.label), 1)]),
|
|
1273
|
+
_: 2
|
|
1274
|
+
}, 1032, [
|
|
1275
|
+
"value",
|
|
1276
|
+
"disabled",
|
|
1277
|
+
"is-loading",
|
|
1278
|
+
"variant",
|
|
1279
|
+
"color",
|
|
1280
|
+
"class"
|
|
1281
|
+
]);
|
|
1282
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$57);
|
|
1209
1283
|
};
|
|
1210
1284
|
}
|
|
1211
1285
|
});
|
|
@@ -1277,7 +1351,7 @@ var CloseButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1277
1351
|
var { useProvide: useToggleButtonGroupProvide, useInject: useToggleButtonGroupInject, key: toggleButtonGroupContextKey } = createContext("ToggleButtonGroup");
|
|
1278
1352
|
//#endregion
|
|
1279
1353
|
//#region src/components/button/ToggleButton.vue?vue&type=script&setup=true&lang.ts
|
|
1280
|
-
var _hoisted_1$
|
|
1354
|
+
var _hoisted_1$56 = ["disabled", "data-orientation"];
|
|
1281
1355
|
//#endregion
|
|
1282
1356
|
//#region src/components/button/ToggleButton.vue
|
|
1283
1357
|
var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1348,7 +1422,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1348
1422
|
disabled: isDisabled.value || void 0,
|
|
1349
1423
|
"data-orientation": (0, vue.unref)(groupCtx).orientation.value,
|
|
1350
1424
|
type: "button"
|
|
1351
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1425
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$56)]),
|
|
1352
1426
|
_: 3
|
|
1353
1427
|
}, 8, [
|
|
1354
1428
|
"disabled",
|
|
@@ -1360,7 +1434,7 @@ var ToggleButton_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1360
1434
|
});
|
|
1361
1435
|
//#endregion
|
|
1362
1436
|
//#region src/components/button/ToggleButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1363
|
-
var _hoisted_1$
|
|
1437
|
+
var _hoisted_1$55 = ["data-orientation"];
|
|
1364
1438
|
//#endregion
|
|
1365
1439
|
//#region src/components/button/ToggleButtonGroup.vue
|
|
1366
1440
|
var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1391,7 +1465,8 @@ var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1391
1465
|
Object,
|
|
1392
1466
|
Array
|
|
1393
1467
|
] },
|
|
1394
|
-
classNames: {}
|
|
1468
|
+
classNames: {},
|
|
1469
|
+
buttons: {}
|
|
1395
1470
|
},
|
|
1396
1471
|
emits: ["update:modelValue"],
|
|
1397
1472
|
setup(__props, { emit: __emit }) {
|
|
@@ -1434,7 +1509,23 @@ var ToggleButtonGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1434
1509
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
1435
1510
|
"data-orientation": props.orientation,
|
|
1436
1511
|
role: "group"
|
|
1437
|
-
}, [(0, vue.
|
|
1512
|
+
}, [props.buttons ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.buttons, (btn) => {
|
|
1513
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(ToggleButton_default, {
|
|
1514
|
+
key: btn.value,
|
|
1515
|
+
value: btn.value,
|
|
1516
|
+
"is-icon-only": btn.isIconOnly,
|
|
1517
|
+
disabled: btn.disabled,
|
|
1518
|
+
class: (0, vue.normalizeClass)(btn.class)
|
|
1519
|
+
}, {
|
|
1520
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(btn.label), 1)]),
|
|
1521
|
+
_: 2
|
|
1522
|
+
}, 1032, [
|
|
1523
|
+
"value",
|
|
1524
|
+
"is-icon-only",
|
|
1525
|
+
"disabled",
|
|
1526
|
+
"class"
|
|
1527
|
+
]);
|
|
1528
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$55);
|
|
1438
1529
|
};
|
|
1439
1530
|
}
|
|
1440
1531
|
});
|
|
@@ -1930,7 +2021,7 @@ var FormField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
1930
2021
|
});
|
|
1931
2022
|
//#endregion
|
|
1932
2023
|
//#region src/components/input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
1933
|
-
var _hoisted_1$
|
|
2024
|
+
var _hoisted_1$54 = [
|
|
1934
2025
|
"data-invalid",
|
|
1935
2026
|
"data-disabled",
|
|
1936
2027
|
"data-readonly",
|
|
@@ -2202,13 +2293,13 @@ var Input_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2202
2293
|
key: 1,
|
|
2203
2294
|
id: descriptionId.value,
|
|
2204
2295
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2205
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_12)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
2296
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_12)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$54);
|
|
2206
2297
|
};
|
|
2207
2298
|
}
|
|
2208
2299
|
});
|
|
2209
2300
|
//#endregion
|
|
2210
2301
|
//#region src/components/textarea/Textarea.vue?vue&type=script&setup=true&lang.ts
|
|
2211
|
-
var _hoisted_1$
|
|
2302
|
+
var _hoisted_1$53 = [
|
|
2212
2303
|
"data-invalid",
|
|
2213
2304
|
"data-disabled",
|
|
2214
2305
|
"data-readonly",
|
|
@@ -2432,13 +2523,13 @@ var Textarea_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2432
2523
|
key: 1,
|
|
2433
2524
|
id: descriptionId.value,
|
|
2434
2525
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
2435
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_9)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
2526
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_9)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$53);
|
|
2436
2527
|
};
|
|
2437
2528
|
}
|
|
2438
2529
|
});
|
|
2439
2530
|
//#endregion
|
|
2440
2531
|
//#region src/components/number-field/NumberField.vue?vue&type=script&setup=true&lang.ts
|
|
2441
|
-
var _hoisted_1$
|
|
2532
|
+
var _hoisted_1$52 = ["for"];
|
|
2442
2533
|
//#endregion
|
|
2443
2534
|
//#region src/components/number-field/NumberField.vue
|
|
2444
2535
|
var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2525,7 +2616,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2525
2616
|
for: resolvedInputId.value,
|
|
2526
2617
|
class: (0, vue.normalizeClass)(isLabelVisible.value ? void 0 : "sr-only"),
|
|
2527
2618
|
"data-slot": "label"
|
|
2528
|
-
}, (0, vue.toDisplayString)(props.label || props.ariaLabel), 11, _hoisted_1$
|
|
2619
|
+
}, (0, vue.toDisplayString)(props.label || props.ariaLabel), 11, _hoisted_1$52)) : (0, vue.createCommentVNode)("", true), (0, vue.createElementVNode)("div", {
|
|
2529
2620
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.group(), props.classNames?.group)),
|
|
2530
2621
|
"data-slot": "group"
|
|
2531
2622
|
}, [
|
|
@@ -2588,7 +2679,7 @@ var NumberField_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2588
2679
|
});
|
|
2589
2680
|
//#endregion
|
|
2590
2681
|
//#region src/components/fieldset/Fieldset.vue?vue&type=script&setup=true&lang.ts
|
|
2591
|
-
var _hoisted_1$
|
|
2682
|
+
var _hoisted_1$51 = ["disabled"];
|
|
2592
2683
|
//#endregion
|
|
2593
2684
|
//#region src/components/fieldset/Fieldset.vue
|
|
2594
2685
|
var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -2616,7 +2707,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2616
2707
|
}, [props.legend ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("legend", {
|
|
2617
2708
|
key: 0,
|
|
2618
2709
|
class: (0, vue.normalizeClass)((0, vue.unref)(styles).legend())
|
|
2619
|
-
}, (0, vue.toDisplayString)(props.legend), 3)) : (0, vue.createCommentVNode)("", true), (0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
2710
|
+
}, (0, vue.toDisplayString)(props.legend), 3)) : (0, vue.createCommentVNode)("", true), (0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$51);
|
|
2620
2711
|
};
|
|
2621
2712
|
}
|
|
2622
2713
|
});
|
|
@@ -2625,7 +2716,7 @@ var Fieldset_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2625
2716
|
var { useProvide: useCheckboxGroupProvide, useInject: useCheckboxGroupInject, key: checkboxGroupContextKey } = createContext("CheckboxGroup");
|
|
2626
2717
|
//#endregion
|
|
2627
2718
|
//#region src/components/checkbox/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
2628
|
-
var _hoisted_1$
|
|
2719
|
+
var _hoisted_1$50 = {
|
|
2629
2720
|
key: 0,
|
|
2630
2721
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2631
2722
|
width: "12",
|
|
@@ -2719,7 +2810,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2719
2810
|
"onUpdate:modelValue": handleUpdate
|
|
2720
2811
|
}), {
|
|
2721
2812
|
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.control(), props.classNames?.control)) }, [(0, vue.createVNode)((0, vue.unref)(reka_ui.CheckboxIndicator), { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.indicator(), props.classNames?.indicator)) }, {
|
|
2722
|
-
default: (0, vue.withCtx)(() => [props.isIndeterminate ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$
|
|
2813
|
+
default: (0, vue.withCtx)(() => [props.isIndeterminate ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$50, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("line", {
|
|
2723
2814
|
x1: "5",
|
|
2724
2815
|
y1: "12",
|
|
2725
2816
|
x2: "19",
|
|
@@ -2740,7 +2831,7 @@ var Checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2740
2831
|
});
|
|
2741
2832
|
//#endregion
|
|
2742
2833
|
//#region src/components/checkbox/CheckboxGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2743
|
-
var _hoisted_1$
|
|
2834
|
+
var _hoisted_1$49 = ["aria-labelledby", "data-orientation"];
|
|
2744
2835
|
var _hoisted_2$27 = { class: "checkbox-group__wrapper" };
|
|
2745
2836
|
var _hoisted_3$17 = {
|
|
2746
2837
|
key: 1,
|
|
@@ -2762,7 +2853,8 @@ var CheckboxGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2762
2853
|
orientation: { default: "vertical" },
|
|
2763
2854
|
label: { default: void 0 },
|
|
2764
2855
|
description: { default: void 0 },
|
|
2765
|
-
class: {}
|
|
2856
|
+
class: {},
|
|
2857
|
+
items: {}
|
|
2766
2858
|
},
|
|
2767
2859
|
emits: ["update:modelValue"],
|
|
2768
2860
|
setup(__props, { emit: __emit }) {
|
|
@@ -2796,9 +2888,18 @@ var CheckboxGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2796
2888
|
id: labelId,
|
|
2797
2889
|
class: "checkbox-group__label"
|
|
2798
2890
|
}, (0, vue.toDisplayString)(props.label), 1)) : (0, vue.createCommentVNode)("", true),
|
|
2799
|
-
(0, vue.createElementVNode)("div", _hoisted_2$27, [(0, vue.
|
|
2891
|
+
(0, vue.createElementVNode)("div", _hoisted_2$27, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
2892
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Checkbox_default, {
|
|
2893
|
+
key: item.value,
|
|
2894
|
+
value: item.value,
|
|
2895
|
+
disabled: item.disabled
|
|
2896
|
+
}, {
|
|
2897
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label ?? item.value), 1)]),
|
|
2898
|
+
_: 2
|
|
2899
|
+
}, 1032, ["value", "disabled"]);
|
|
2900
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
2800
2901
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$17, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
2801
|
-
], 10, _hoisted_1$
|
|
2902
|
+
], 10, _hoisted_1$49);
|
|
2802
2903
|
};
|
|
2803
2904
|
}
|
|
2804
2905
|
});
|
|
@@ -2859,7 +2960,7 @@ var Radio_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2859
2960
|
});
|
|
2860
2961
|
//#endregion
|
|
2861
2962
|
//#region src/components/radio/RadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2862
|
-
var _hoisted_1$
|
|
2963
|
+
var _hoisted_1$48 = { class: "radio-group__wrapper" };
|
|
2863
2964
|
var _hoisted_2$26 = {
|
|
2864
2965
|
key: 1,
|
|
2865
2966
|
class: "radio-group__description"
|
|
@@ -2880,7 +2981,8 @@ var RadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2880
2981
|
orientation: { default: "vertical" },
|
|
2881
2982
|
label: { default: void 0 },
|
|
2882
2983
|
description: { default: void 0 },
|
|
2883
|
-
class: {}
|
|
2984
|
+
class: {},
|
|
2985
|
+
items: {}
|
|
2884
2986
|
},
|
|
2885
2987
|
emits: ["update:modelValue"],
|
|
2886
2988
|
setup(__props, { emit: __emit }) {
|
|
@@ -2909,7 +3011,16 @@ var RadioGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
2909
3011
|
id: labelId,
|
|
2910
3012
|
class: "radio-group__label"
|
|
2911
3013
|
}, (0, vue.toDisplayString)(props.label), 1)) : (0, vue.createCommentVNode)("", true),
|
|
2912
|
-
(0, vue.createElementVNode)("div", _hoisted_1$
|
|
3014
|
+
(0, vue.createElementVNode)("div", _hoisted_1$48, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
3015
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Radio_default, {
|
|
3016
|
+
key: item.value,
|
|
3017
|
+
value: item.value,
|
|
3018
|
+
disabled: item.disabled
|
|
3019
|
+
}, {
|
|
3020
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label ?? item.value), 1)]),
|
|
3021
|
+
_: 2
|
|
3022
|
+
}, 1032, ["value", "disabled"]);
|
|
3023
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
2913
3024
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$26, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
2914
3025
|
]),
|
|
2915
3026
|
_: 3
|
|
@@ -3008,7 +3119,7 @@ var Switch_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3008
3119
|
});
|
|
3009
3120
|
//#endregion
|
|
3010
3121
|
//#region src/components/switch/SwitchGroup.vue?vue&type=script&setup=true&lang.ts
|
|
3011
|
-
var _hoisted_1$
|
|
3122
|
+
var _hoisted_1$47 = ["aria-labelledby", "data-orientation"];
|
|
3012
3123
|
var _hoisted_2$25 = {
|
|
3013
3124
|
key: 1,
|
|
3014
3125
|
class: "switch-group__description"
|
|
@@ -3029,7 +3140,8 @@ var SwitchGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3029
3140
|
orientation: { default: "vertical" },
|
|
3030
3141
|
label: { default: void 0 },
|
|
3031
3142
|
description: { default: void 0 },
|
|
3032
|
-
class: {}
|
|
3143
|
+
class: {},
|
|
3144
|
+
items: {}
|
|
3033
3145
|
},
|
|
3034
3146
|
emits: ["update:modelValue"],
|
|
3035
3147
|
setup(__props, { emit: __emit }) {
|
|
@@ -3063,9 +3175,18 @@ var SwitchGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
3063
3175
|
id: labelId,
|
|
3064
3176
|
class: "switch-group__label"
|
|
3065
3177
|
}, (0, vue.toDisplayString)(props.label), 1)) : (0, vue.createCommentVNode)("", true),
|
|
3066
|
-
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(groupSlots.value.items()) }, [(0, vue.
|
|
3178
|
+
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(groupSlots.value.items()) }, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
3179
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Switch_default, {
|
|
3180
|
+
key: item.value,
|
|
3181
|
+
value: item.value,
|
|
3182
|
+
disabled: item.disabled
|
|
3183
|
+
}, {
|
|
3184
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label ?? item.value), 1)]),
|
|
3185
|
+
_: 2
|
|
3186
|
+
}, 1032, ["value", "disabled"]);
|
|
3187
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 2),
|
|
3067
3188
|
props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$25, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)
|
|
3068
|
-
], 10, _hoisted_1$
|
|
3189
|
+
], 10, _hoisted_1$47);
|
|
3069
3190
|
};
|
|
3070
3191
|
}
|
|
3071
3192
|
});
|
|
@@ -12555,6 +12676,9 @@ var ModalOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12555
12676
|
}
|
|
12556
12677
|
});
|
|
12557
12678
|
//#endregion
|
|
12679
|
+
//#region src/components/modal/ModalContent.vue?vue&type=script&setup=true&lang.ts
|
|
12680
|
+
var _hoisted_1$46 = { class: "modal__portal" };
|
|
12681
|
+
//#endregion
|
|
12558
12682
|
//#region src/components/modal/ModalContent.vue
|
|
12559
12683
|
var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
12560
12684
|
__name: "ModalContent",
|
|
@@ -12579,7 +12703,7 @@ var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12579
12703
|
const styles = modalVariants();
|
|
12580
12704
|
return (_ctx, _cache) => {
|
|
12581
12705
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.DialogPortal), null, {
|
|
12582
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ModalOverlay_default), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
12706
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1$46, [(0, vue.createVNode)(ModalOverlay_default), (0, vue.createVNode)((0, vue.unref)(reka_ui.DialogContent), {
|
|
12583
12707
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).container({ scroll: (0, vue.unref)(ctx).scroll }), props.class)),
|
|
12584
12708
|
"data-placement": (0, vue.unref)(ctx).placement,
|
|
12585
12709
|
"aria-hidden": !(0, vue.unref)(dialogRootContext).open.value || void 0,
|
|
@@ -12627,7 +12751,7 @@ var ModalContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12627
12751
|
"class",
|
|
12628
12752
|
"data-placement",
|
|
12629
12753
|
"aria-hidden"
|
|
12630
|
-
])]),
|
|
12754
|
+
])])]),
|
|
12631
12755
|
_: 3
|
|
12632
12756
|
});
|
|
12633
12757
|
};
|
|
@@ -12887,7 +13011,7 @@ var AlertDialogOverlay_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12887
13011
|
});
|
|
12888
13012
|
//#endregion
|
|
12889
13013
|
//#region src/components/alert-dialog/AlertDialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
12890
|
-
var _hoisted_1$
|
|
13014
|
+
var _hoisted_1$45 = ["data-placement"];
|
|
12891
13015
|
//#endregion
|
|
12892
13016
|
//#region src/components/alert-dialog/AlertDialogContent.vue
|
|
12893
13017
|
var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -12922,7 +13046,7 @@ var AlertDialogContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
12922
13046
|
}, {
|
|
12923
13047
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
12924
13048
|
_: 3
|
|
12925
|
-
}, 8, ["class", "data-placement"])], 10, _hoisted_1$
|
|
13049
|
+
}, 8, ["class", "data-placement"])], 10, _hoisted_1$45)]),
|
|
12926
13050
|
_: 3
|
|
12927
13051
|
});
|
|
12928
13052
|
};
|
|
@@ -13072,7 +13196,7 @@ var AlertDialogDescription_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13072
13196
|
});
|
|
13073
13197
|
//#endregion
|
|
13074
13198
|
//#region src/components/alert-dialog/AlertDialogIcon.vue?vue&type=script&setup=true&lang.ts
|
|
13075
|
-
var _hoisted_1$
|
|
13199
|
+
var _hoisted_1$44 = {
|
|
13076
13200
|
key: 0,
|
|
13077
13201
|
"data-slot": "alert-dialog-default-icon",
|
|
13078
13202
|
viewBox: "0 0 24 24",
|
|
@@ -13134,7 +13258,7 @@ var AlertDialogIcon_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13134
13258
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
13135
13259
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(styles).icon({ status: resolvedStatus() }), props.class)),
|
|
13136
13260
|
"aria-hidden": "true"
|
|
13137
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [resolvedStatus() === "danger" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$
|
|
13261
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [resolvedStatus() === "danger" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$44, [..._cache[0] || (_cache[0] = [
|
|
13138
13262
|
(0, vue.createElementVNode)("circle", {
|
|
13139
13263
|
cx: "12",
|
|
13140
13264
|
cy: "12",
|
|
@@ -13483,67 +13607,8 @@ var DrawerTitle_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13483
13607
|
//#region src/components/tabs/tabs.context.ts
|
|
13484
13608
|
var { useProvide: useTabsProvide, useInject: useTabsInject, key: tabsContextKey } = createContext("Tabs");
|
|
13485
13609
|
//#endregion
|
|
13486
|
-
//#region src/components/tabs/Tabs.vue
|
|
13487
|
-
var Tabs_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13488
|
-
__name: "Tabs",
|
|
13489
|
-
props: {
|
|
13490
|
-
modelValue: {},
|
|
13491
|
-
defaultValue: {},
|
|
13492
|
-
orientation: { default: "horizontal" },
|
|
13493
|
-
variant: { default: "primary" },
|
|
13494
|
-
activationMode: { default: "automatic" },
|
|
13495
|
-
class: { type: [
|
|
13496
|
-
String,
|
|
13497
|
-
Boolean,
|
|
13498
|
-
null,
|
|
13499
|
-
Object,
|
|
13500
|
-
Array
|
|
13501
|
-
] },
|
|
13502
|
-
classNames: {}
|
|
13503
|
-
},
|
|
13504
|
-
emits: ["update:modelValue"],
|
|
13505
|
-
setup(__props, { emit: __emit }) {
|
|
13506
|
-
const props = __props;
|
|
13507
|
-
const emit = __emit;
|
|
13508
|
-
const internalValue = (0, vue.ref)(props.modelValue ?? props.defaultValue);
|
|
13509
|
-
(0, vue.watch)(() => props.modelValue, (v) => {
|
|
13510
|
-
if (v !== void 0) internalValue.value = v;
|
|
13511
|
-
});
|
|
13512
|
-
function changeTab(value) {
|
|
13513
|
-
internalValue.value = value;
|
|
13514
|
-
emit("update:modelValue", value);
|
|
13515
|
-
}
|
|
13516
|
-
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.tabsVariants)({ variant: props.variant }));
|
|
13517
|
-
useTabsProvide({
|
|
13518
|
-
slotFns,
|
|
13519
|
-
orientation: (0, vue.toRef)(props, "orientation"),
|
|
13520
|
-
currentValue: internalValue,
|
|
13521
|
-
changeTab
|
|
13522
|
-
});
|
|
13523
|
-
return (_ctx, _cache) => {
|
|
13524
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.TabsRoot), {
|
|
13525
|
-
"model-value": internalValue.value,
|
|
13526
|
-
orientation: props.orientation,
|
|
13527
|
-
"activation-mode": props.activationMode,
|
|
13528
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
13529
|
-
"data-orientation": props.orientation,
|
|
13530
|
-
"onUpdate:modelValue": changeTab
|
|
13531
|
-
}, {
|
|
13532
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13533
|
-
_: 3
|
|
13534
|
-
}, 8, [
|
|
13535
|
-
"model-value",
|
|
13536
|
-
"orientation",
|
|
13537
|
-
"activation-mode",
|
|
13538
|
-
"class",
|
|
13539
|
-
"data-orientation"
|
|
13540
|
-
]);
|
|
13541
|
-
};
|
|
13542
|
-
}
|
|
13543
|
-
});
|
|
13544
|
-
//#endregion
|
|
13545
13610
|
//#region src/components/tabs/TabList.vue?vue&type=script&setup=true&lang.ts
|
|
13546
|
-
var _hoisted_1$
|
|
13611
|
+
var _hoisted_1$43 = {
|
|
13547
13612
|
key: 0,
|
|
13548
13613
|
class: "tabs__overflow-menu",
|
|
13549
13614
|
role: "menu"
|
|
@@ -13813,7 +13878,7 @@ var TabList_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13813
13878
|
"stroke-linejoin": "round"
|
|
13814
13879
|
})], -1))]),
|
|
13815
13880
|
_: 1
|
|
13816
|
-
}, 8, ["aria-expanded"]), dropdownOpen.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$
|
|
13881
|
+
}, 8, ["aria-expanded"]), dropdownOpen.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$43, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(hiddenTabs.value, (tab) => {
|
|
13817
13882
|
return (0, vue.openBlock)(), (0, vue.createBlock)(Button_default, {
|
|
13818
13883
|
key: tab.value,
|
|
13819
13884
|
variant: "ghost",
|
|
@@ -13903,10 +13968,15 @@ var TabPanel_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13903
13968
|
}
|
|
13904
13969
|
});
|
|
13905
13970
|
//#endregion
|
|
13906
|
-
//#region src/components/tabs/
|
|
13907
|
-
var
|
|
13908
|
-
__name: "
|
|
13971
|
+
//#region src/components/tabs/Tabs.vue
|
|
13972
|
+
var Tabs_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13973
|
+
__name: "Tabs",
|
|
13909
13974
|
props: {
|
|
13975
|
+
modelValue: {},
|
|
13976
|
+
defaultValue: {},
|
|
13977
|
+
orientation: { default: "horizontal" },
|
|
13978
|
+
variant: { default: "primary" },
|
|
13979
|
+
activationMode: { default: "automatic" },
|
|
13910
13980
|
class: { type: [
|
|
13911
13981
|
String,
|
|
13912
13982
|
Boolean,
|
|
@@ -13914,37 +13984,77 @@ var TabIndicator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13914
13984
|
Object,
|
|
13915
13985
|
Array
|
|
13916
13986
|
] },
|
|
13917
|
-
classNames: {}
|
|
13987
|
+
classNames: {},
|
|
13988
|
+
items: {}
|
|
13918
13989
|
},
|
|
13919
|
-
|
|
13990
|
+
emits: ["update:modelValue"],
|
|
13991
|
+
setup(__props, { emit: __emit }) {
|
|
13920
13992
|
const props = __props;
|
|
13921
|
-
const
|
|
13993
|
+
const emit = __emit;
|
|
13994
|
+
const internalValue = (0, vue.ref)(props.modelValue ?? props.defaultValue);
|
|
13995
|
+
(0, vue.watch)(() => props.modelValue, (v) => {
|
|
13996
|
+
if (v !== void 0) internalValue.value = v;
|
|
13997
|
+
});
|
|
13998
|
+
(0, vue.watch)(() => props.items, (items) => {
|
|
13999
|
+
if (items && items.length > 0 && !props.modelValue && !props.defaultValue && internalValue.value === void 0) internalValue.value = items[0].value;
|
|
14000
|
+
}, { immediate: true });
|
|
14001
|
+
function changeTab(value) {
|
|
14002
|
+
internalValue.value = value;
|
|
14003
|
+
emit("update:modelValue", value);
|
|
14004
|
+
}
|
|
14005
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.tabsVariants)({ variant: props.variant }));
|
|
14006
|
+
useTabsProvide({
|
|
14007
|
+
slotFns,
|
|
14008
|
+
orientation: (0, vue.toRef)(props, "orientation"),
|
|
14009
|
+
currentValue: internalValue,
|
|
14010
|
+
changeTab
|
|
14011
|
+
});
|
|
13922
14012
|
return (_ctx, _cache) => {
|
|
13923
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.
|
|
14013
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.TabsRoot), {
|
|
14014
|
+
"model-value": internalValue.value,
|
|
14015
|
+
orientation: props.orientation,
|
|
14016
|
+
"activation-mode": props.activationMode,
|
|
14017
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
14018
|
+
"data-orientation": props.orientation,
|
|
14019
|
+
"onUpdate:modelValue": changeTab
|
|
14020
|
+
}, {
|
|
14021
|
+
default: (0, vue.withCtx)(() => [props.items ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [(0, vue.createVNode)(TabList_default, null, {
|
|
14022
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(props.items, (item) => {
|
|
14023
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Tab_default, {
|
|
14024
|
+
key: item.value,
|
|
14025
|
+
value: item.value,
|
|
14026
|
+
disabled: item.disabled
|
|
14027
|
+
}, {
|
|
14028
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label), 1)]),
|
|
14029
|
+
_: 2
|
|
14030
|
+
}, 1032, ["value", "disabled"]);
|
|
14031
|
+
}), 128))]),
|
|
14032
|
+
_: 1
|
|
14033
|
+
}), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(props.items, (item) => {
|
|
14034
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(TabPanel_default, {
|
|
14035
|
+
key: item.value,
|
|
14036
|
+
value: item.value
|
|
14037
|
+
}, {
|
|
14038
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.content), 1)]),
|
|
14039
|
+
_: 2
|
|
14040
|
+
}, 1032, ["value"]);
|
|
14041
|
+
}), 128))], 64)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
14042
|
+
_: 3
|
|
14043
|
+
}, 8, [
|
|
14044
|
+
"model-value",
|
|
14045
|
+
"orientation",
|
|
14046
|
+
"activation-mode",
|
|
14047
|
+
"class",
|
|
14048
|
+
"data-orientation"
|
|
14049
|
+
]);
|
|
13924
14050
|
};
|
|
13925
14051
|
}
|
|
13926
14052
|
});
|
|
13927
14053
|
//#endregion
|
|
13928
|
-
//#region src/components/
|
|
13929
|
-
var
|
|
13930
|
-
|
|
13931
|
-
//#region src/components/accordion/Accordion.vue
|
|
13932
|
-
var Accordion_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
13933
|
-
__name: "Accordion",
|
|
14054
|
+
//#region src/components/tabs/TabIndicator.vue
|
|
14055
|
+
var TabIndicator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14056
|
+
__name: "TabIndicator",
|
|
13934
14057
|
props: {
|
|
13935
|
-
type: {},
|
|
13936
|
-
modelValue: {},
|
|
13937
|
-
defaultValue: {},
|
|
13938
|
-
collapsible: {
|
|
13939
|
-
type: Boolean,
|
|
13940
|
-
default: true
|
|
13941
|
-
},
|
|
13942
|
-
disabled: {
|
|
13943
|
-
type: Boolean,
|
|
13944
|
-
default: false
|
|
13945
|
-
},
|
|
13946
|
-
variant: { default: "default" },
|
|
13947
|
-
size: { default: "md" },
|
|
13948
14058
|
class: { type: [
|
|
13949
14059
|
String,
|
|
13950
14060
|
Boolean,
|
|
@@ -13954,41 +14064,18 @@ var Accordion_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
13954
14064
|
] },
|
|
13955
14065
|
classNames: {}
|
|
13956
14066
|
},
|
|
13957
|
-
|
|
13958
|
-
setup(__props, { emit: __emit }) {
|
|
14067
|
+
setup(__props) {
|
|
13959
14068
|
const props = __props;
|
|
13960
|
-
const
|
|
13961
|
-
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.accordionVariants)({
|
|
13962
|
-
variant: props.variant,
|
|
13963
|
-
size: props.size
|
|
13964
|
-
}));
|
|
13965
|
-
useAccordionProvide({ slotFns });
|
|
14069
|
+
const ctx = useTabsInject();
|
|
13966
14070
|
return (_ctx, _cache) => {
|
|
13967
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.
|
|
13968
|
-
type: props.type,
|
|
13969
|
-
"model-value": props.modelValue,
|
|
13970
|
-
"default-value": props.defaultValue,
|
|
13971
|
-
collapsible: props.collapsible,
|
|
13972
|
-
disabled: props.disabled,
|
|
13973
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
13974
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => {
|
|
13975
|
-
if (v !== void 0) emit("update:modelValue", v);
|
|
13976
|
-
})
|
|
13977
|
-
}, {
|
|
13978
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
13979
|
-
_: 3
|
|
13980
|
-
}, 8, [
|
|
13981
|
-
"type",
|
|
13982
|
-
"model-value",
|
|
13983
|
-
"default-value",
|
|
13984
|
-
"collapsible",
|
|
13985
|
-
"disabled",
|
|
13986
|
-
"class"
|
|
13987
|
-
]);
|
|
14071
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.TabsIndicator), { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.tabIndicator(), props.class, props.classNames?.tabIndicator)) }, null, 8, ["class"]);
|
|
13988
14072
|
};
|
|
13989
14073
|
}
|
|
13990
14074
|
});
|
|
13991
14075
|
//#endregion
|
|
14076
|
+
//#region src/components/accordion/accordion.context.ts
|
|
14077
|
+
var { useProvide: useAccordionProvide, useInject: useAccordionInject, key: accordionContextKey } = createContext("Accordion");
|
|
14078
|
+
//#endregion
|
|
13992
14079
|
//#region src/components/accordion/accordion-item.context.ts
|
|
13993
14080
|
var { useProvide: useAccordionItemProvide, useInject: useAccordionItemInject, key: accordionItemContextKey } = createContext("AccordionItem");
|
|
13994
14081
|
//#endregion
|
|
@@ -14146,21 +14233,101 @@ var AccordionContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14146
14233
|
}
|
|
14147
14234
|
});
|
|
14148
14235
|
//#endregion
|
|
14149
|
-
//#region src/components/
|
|
14150
|
-
var
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
}
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14236
|
+
//#region src/components/accordion/Accordion.vue
|
|
14237
|
+
var Accordion_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14238
|
+
__name: "Accordion",
|
|
14239
|
+
props: {
|
|
14240
|
+
type: {},
|
|
14241
|
+
modelValue: {},
|
|
14242
|
+
defaultValue: {},
|
|
14243
|
+
collapsible: {
|
|
14244
|
+
type: Boolean,
|
|
14245
|
+
default: true
|
|
14246
|
+
},
|
|
14247
|
+
disabled: {
|
|
14248
|
+
type: Boolean,
|
|
14249
|
+
default: false
|
|
14250
|
+
},
|
|
14251
|
+
variant: { default: "default" },
|
|
14252
|
+
size: { default: "md" },
|
|
14253
|
+
class: { type: [
|
|
14254
|
+
String,
|
|
14255
|
+
Boolean,
|
|
14256
|
+
null,
|
|
14257
|
+
Object,
|
|
14258
|
+
Array
|
|
14259
|
+
] },
|
|
14260
|
+
classNames: {},
|
|
14261
|
+
items: {}
|
|
14262
|
+
},
|
|
14263
|
+
emits: ["update:modelValue"],
|
|
14264
|
+
setup(__props, { emit: __emit }) {
|
|
14265
|
+
const props = __props;
|
|
14266
|
+
const emit = __emit;
|
|
14267
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.accordionVariants)({
|
|
14268
|
+
variant: props.variant,
|
|
14269
|
+
size: props.size
|
|
14270
|
+
}));
|
|
14271
|
+
useAccordionProvide({ slotFns });
|
|
14272
|
+
return (_ctx, _cache) => {
|
|
14273
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.AccordionRoot), {
|
|
14274
|
+
type: props.type,
|
|
14275
|
+
"model-value": props.modelValue,
|
|
14276
|
+
"default-value": props.defaultValue,
|
|
14277
|
+
collapsible: props.collapsible,
|
|
14278
|
+
disabled: props.disabled,
|
|
14279
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
14280
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => {
|
|
14281
|
+
if (v !== void 0) emit("update:modelValue", v);
|
|
14282
|
+
})
|
|
14283
|
+
}, {
|
|
14284
|
+
default: (0, vue.withCtx)(() => [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
14285
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(AccordionItem_default, {
|
|
14286
|
+
key: item.value,
|
|
14287
|
+
value: item.value,
|
|
14288
|
+
disabled: item.disabled
|
|
14289
|
+
}, {
|
|
14290
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(AccordionHeader_default, null, {
|
|
14291
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(AccordionTrigger_default, null, {
|
|
14292
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.title), 1)]),
|
|
14293
|
+
_: 2
|
|
14294
|
+
}, 1024)]),
|
|
14295
|
+
_: 2
|
|
14296
|
+
}, 1024), (0, vue.createVNode)(AccordionContent_default, null, {
|
|
14297
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.content), 1)]),
|
|
14298
|
+
_: 2
|
|
14299
|
+
}, 1024)]),
|
|
14300
|
+
_: 2
|
|
14301
|
+
}, 1032, ["value", "disabled"]);
|
|
14302
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
14303
|
+
_: 3
|
|
14304
|
+
}, 8, [
|
|
14305
|
+
"type",
|
|
14306
|
+
"model-value",
|
|
14307
|
+
"default-value",
|
|
14308
|
+
"collapsible",
|
|
14309
|
+
"disabled",
|
|
14310
|
+
"class"
|
|
14311
|
+
]);
|
|
14312
|
+
};
|
|
14313
|
+
}
|
|
14314
|
+
});
|
|
14315
|
+
//#endregion
|
|
14316
|
+
//#region src/components/collapsible/collapsible.context.ts
|
|
14317
|
+
var { useProvide: useCollapsibleProvide, useInject: useCollapsibleInject, key: collapsibleContextKey } = createContext("Collapsible");
|
|
14318
|
+
//#endregion
|
|
14319
|
+
//#region src/components/collapsible/collapsible-group.context.ts
|
|
14320
|
+
var collapsibleGroupKey = Symbol("CollapsibleGroup");
|
|
14321
|
+
function provideCollapsibleGroup(ctx) {
|
|
14322
|
+
(0, vue.provide)(collapsibleGroupKey, ctx);
|
|
14323
|
+
}
|
|
14324
|
+
function injectCollapsibleGroup() {
|
|
14325
|
+
return (0, vue.inject)(collapsibleGroupKey, null);
|
|
14326
|
+
}
|
|
14327
|
+
//#endregion
|
|
14328
|
+
//#region src/components/collapsible/Collapsible.vue
|
|
14329
|
+
var Collapsible_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14330
|
+
__name: "Collapsible",
|
|
14164
14331
|
props: {
|
|
14165
14332
|
open: {
|
|
14166
14333
|
type: [Boolean, null],
|
|
@@ -14235,7 +14402,7 @@ var Collapsible_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14235
14402
|
});
|
|
14236
14403
|
//#endregion
|
|
14237
14404
|
//#region src/components/collapsible/CollapsibleTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
14238
|
-
var _hoisted_1$
|
|
14405
|
+
var _hoisted_1$42 = ["data-state"];
|
|
14239
14406
|
//#endregion
|
|
14240
14407
|
//#region src/components/collapsible/CollapsibleTrigger.vue
|
|
14241
14408
|
var CollapsibleTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -14271,7 +14438,7 @@ var CollapsibleTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14271
14438
|
"stroke-linejoin": "round",
|
|
14272
14439
|
"aria-hidden": "true",
|
|
14273
14440
|
focusable: "false"
|
|
14274
|
-
}, [(0, vue.createElementVNode)("polyline", { points: "6 9 12 15 18 9" })], -1)])], 10, _hoisted_1$
|
|
14441
|
+
}, [(0, vue.createElementVNode)("polyline", { points: "6 9 12 15 18 9" })], -1)])], 10, _hoisted_1$42)]),
|
|
14275
14442
|
_: 3
|
|
14276
14443
|
}, 8, ["class"]);
|
|
14277
14444
|
};
|
|
@@ -14347,7 +14514,8 @@ var CollapsibleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14347
14514
|
Object,
|
|
14348
14515
|
Array
|
|
14349
14516
|
] },
|
|
14350
|
-
classNames: {}
|
|
14517
|
+
classNames: {},
|
|
14518
|
+
items: {}
|
|
14351
14519
|
},
|
|
14352
14520
|
setup(__props) {
|
|
14353
14521
|
const props = __props;
|
|
@@ -14368,7 +14536,22 @@ var CollapsibleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14368
14536
|
});
|
|
14369
14537
|
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.collapsibleGroupVariants)({}));
|
|
14370
14538
|
return (_ctx, _cache) => {
|
|
14371
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)) }, [(0, vue.
|
|
14539
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)) }, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item, idx) => {
|
|
14540
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Collapsible_default, {
|
|
14541
|
+
key: idx,
|
|
14542
|
+
"default-open": item.defaultOpen,
|
|
14543
|
+
disabled: item.disabled
|
|
14544
|
+
}, {
|
|
14545
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(CollapsibleTrigger_default, null, {
|
|
14546
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.title), 1)]),
|
|
14547
|
+
_: 2
|
|
14548
|
+
}, 1024), (0, vue.createVNode)(CollapsibleContent_default, null, {
|
|
14549
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.content), 1)]),
|
|
14550
|
+
_: 2
|
|
14551
|
+
}, 1024)]),
|
|
14552
|
+
_: 2
|
|
14553
|
+
}, 1032, ["default-open", "disabled"]);
|
|
14554
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 2);
|
|
14372
14555
|
};
|
|
14373
14556
|
}
|
|
14374
14557
|
});
|
|
@@ -14376,6 +14559,63 @@ var CollapsibleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14376
14559
|
//#region src/components/breadcrumbs/breadcrumbs.context.ts
|
|
14377
14560
|
var { useProvide: useBreadcrumbsProvide, useInject: useBreadcrumbsInject, key: breadcrumbsContextKey } = createContext("Breadcrumbs");
|
|
14378
14561
|
//#endregion
|
|
14562
|
+
//#region src/components/breadcrumbs/BreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
14563
|
+
var _hoisted_1$41 = ["aria-current"];
|
|
14564
|
+
var _hoisted_2$23 = ["href"];
|
|
14565
|
+
var _hoisted_3$15 = {
|
|
14566
|
+
key: 1,
|
|
14567
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14568
|
+
viewBox: "0 0 24 24",
|
|
14569
|
+
fill: "none",
|
|
14570
|
+
stroke: "currentColor",
|
|
14571
|
+
"stroke-width": "2",
|
|
14572
|
+
"stroke-linecap": "round",
|
|
14573
|
+
"stroke-linejoin": "round",
|
|
14574
|
+
focusable: "false"
|
|
14575
|
+
};
|
|
14576
|
+
//#endregion
|
|
14577
|
+
//#region src/components/breadcrumbs/BreadcrumbItem.vue
|
|
14578
|
+
var BreadcrumbItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14579
|
+
__name: "BreadcrumbItem",
|
|
14580
|
+
props: {
|
|
14581
|
+
href: {},
|
|
14582
|
+
isLast: {
|
|
14583
|
+
type: Boolean,
|
|
14584
|
+
default: false
|
|
14585
|
+
},
|
|
14586
|
+
class: { type: [
|
|
14587
|
+
String,
|
|
14588
|
+
Boolean,
|
|
14589
|
+
null,
|
|
14590
|
+
Object,
|
|
14591
|
+
Array
|
|
14592
|
+
] },
|
|
14593
|
+
classNames: {}
|
|
14594
|
+
},
|
|
14595
|
+
setup(__props) {
|
|
14596
|
+
const props = __props;
|
|
14597
|
+
const ctx = useBreadcrumbsInject();
|
|
14598
|
+
const SeparatorRenderer = (0, vue.computed)(() => ctx.separatorSlot ? () => (0, vue.h)(() => ctx.separatorSlot()) : null);
|
|
14599
|
+
return (_ctx, _cache) => {
|
|
14600
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("li", {
|
|
14601
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.item(), props.class, props.classNames?.item)),
|
|
14602
|
+
"aria-current": props.isLast ? "page" : void 0
|
|
14603
|
+
}, [props.href && !props.isLast ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("a", {
|
|
14604
|
+
key: 0,
|
|
14605
|
+
href: props.href,
|
|
14606
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.link(), props.classNames?.link))
|
|
14607
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_2$23)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
14608
|
+
key: 1,
|
|
14609
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.link(), props.classNames?.link))
|
|
14610
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2)), !props.isLast ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
14611
|
+
key: 2,
|
|
14612
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.separator(), props.classNames?.separator)),
|
|
14613
|
+
"aria-hidden": "true"
|
|
14614
|
+
}, [SeparatorRenderer.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(SeparatorRenderer.value), { key: 0 })) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_3$15, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("polyline", { points: "9 6 15 12 9 18" }, null, -1)])]))], 2)) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$41);
|
|
14615
|
+
};
|
|
14616
|
+
}
|
|
14617
|
+
});
|
|
14618
|
+
//#endregion
|
|
14379
14619
|
//#region src/components/breadcrumbs/Breadcrumbs.vue
|
|
14380
14620
|
var Breadcrumbs_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14381
14621
|
__name: "Breadcrumbs",
|
|
@@ -14388,7 +14628,8 @@ var Breadcrumbs_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14388
14628
|
Object,
|
|
14389
14629
|
Array
|
|
14390
14630
|
] },
|
|
14391
|
-
classNames: {}
|
|
14631
|
+
classNames: {},
|
|
14632
|
+
items: {}
|
|
14392
14633
|
},
|
|
14393
14634
|
setup(__props) {
|
|
14394
14635
|
const props = __props;
|
|
@@ -14423,79 +14664,42 @@ var Breadcrumbs_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14423
14664
|
}
|
|
14424
14665
|
return list;
|
|
14425
14666
|
});
|
|
14667
|
+
const total = (0, vue.computed)(() => renderedChildren.value.length);
|
|
14668
|
+
const renderedItems = (0, vue.computed)(() => {
|
|
14669
|
+
if (!props.items) return [];
|
|
14670
|
+
const max = props.maxItems;
|
|
14671
|
+
if (!max || props.items.length <= max || max < 2) return props.items;
|
|
14672
|
+
return [
|
|
14673
|
+
props.items[0],
|
|
14674
|
+
{ label: "…" },
|
|
14675
|
+
...props.items.slice(props.items.length - (max - 2))
|
|
14676
|
+
];
|
|
14677
|
+
});
|
|
14426
14678
|
useBreadcrumbsProvide({
|
|
14427
14679
|
slotFns,
|
|
14428
|
-
total
|
|
14680
|
+
total,
|
|
14429
14681
|
separatorSlot: slots.separator
|
|
14430
14682
|
});
|
|
14431
14683
|
return (_ctx, _cache) => {
|
|
14432
14684
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("nav", {
|
|
14433
14685
|
"aria-label": "Breadcrumb",
|
|
14434
14686
|
class: (0, vue.normalizeClass)(props.class)
|
|
14435
|
-
}, [(0, vue.createElementVNode)("ol", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)) }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment,
|
|
14687
|
+
}, [(0, vue.createElementVNode)("ol", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)) }, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(renderedItems.value, (item, idx) => {
|
|
14688
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(BreadcrumbItem_default, {
|
|
14689
|
+
key: idx,
|
|
14690
|
+
href: item.href,
|
|
14691
|
+
"is-last": idx === renderedItems.value.length - 1
|
|
14692
|
+
}, {
|
|
14693
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label), 1)]),
|
|
14694
|
+
_: 2
|
|
14695
|
+
}, 1032, ["href", "is-last"]);
|
|
14696
|
+
}), 128)) : ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(renderedChildren.value, (child, idx) => {
|
|
14436
14697
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(child), { key: idx });
|
|
14437
14698
|
}), 128))], 2)], 2);
|
|
14438
14699
|
};
|
|
14439
14700
|
}
|
|
14440
14701
|
});
|
|
14441
14702
|
//#endregion
|
|
14442
|
-
//#region src/components/breadcrumbs/BreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
14443
|
-
var _hoisted_1$40 = ["aria-current"];
|
|
14444
|
-
var _hoisted_2$23 = ["href"];
|
|
14445
|
-
var _hoisted_3$15 = {
|
|
14446
|
-
key: 1,
|
|
14447
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14448
|
-
viewBox: "0 0 24 24",
|
|
14449
|
-
fill: "none",
|
|
14450
|
-
stroke: "currentColor",
|
|
14451
|
-
"stroke-width": "2",
|
|
14452
|
-
"stroke-linecap": "round",
|
|
14453
|
-
"stroke-linejoin": "round",
|
|
14454
|
-
focusable: "false"
|
|
14455
|
-
};
|
|
14456
|
-
//#endregion
|
|
14457
|
-
//#region src/components/breadcrumbs/BreadcrumbItem.vue
|
|
14458
|
-
var BreadcrumbItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14459
|
-
__name: "BreadcrumbItem",
|
|
14460
|
-
props: {
|
|
14461
|
-
href: {},
|
|
14462
|
-
isLast: {
|
|
14463
|
-
type: Boolean,
|
|
14464
|
-
default: false
|
|
14465
|
-
},
|
|
14466
|
-
class: { type: [
|
|
14467
|
-
String,
|
|
14468
|
-
Boolean,
|
|
14469
|
-
null,
|
|
14470
|
-
Object,
|
|
14471
|
-
Array
|
|
14472
|
-
] },
|
|
14473
|
-
classNames: {}
|
|
14474
|
-
},
|
|
14475
|
-
setup(__props) {
|
|
14476
|
-
const props = __props;
|
|
14477
|
-
const ctx = useBreadcrumbsInject();
|
|
14478
|
-
const SeparatorRenderer = (0, vue.computed)(() => ctx.separatorSlot ? () => (0, vue.h)(() => ctx.separatorSlot()) : null);
|
|
14479
|
-
return (_ctx, _cache) => {
|
|
14480
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("li", {
|
|
14481
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.item(), props.class, props.classNames?.item)),
|
|
14482
|
-
"aria-current": props.isLast ? "page" : void 0
|
|
14483
|
-
}, [props.href && !props.isLast ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("a", {
|
|
14484
|
-
key: 0,
|
|
14485
|
-
href: props.href,
|
|
14486
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.link(), props.classNames?.link))
|
|
14487
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_2$23)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
14488
|
-
key: 1,
|
|
14489
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.link(), props.classNames?.link))
|
|
14490
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 2)), !props.isLast ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
14491
|
-
key: 2,
|
|
14492
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)((0, vue.unref)(ctx).slotFns.value.separator(), props.classNames?.separator)),
|
|
14493
|
-
"aria-hidden": "true"
|
|
14494
|
-
}, [SeparatorRenderer.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(SeparatorRenderer.value), { key: 0 })) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_3$15, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("polyline", { points: "9 6 15 12 9 18" }, null, -1)])]))], 2)) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$40);
|
|
14495
|
-
};
|
|
14496
|
-
}
|
|
14497
|
-
});
|
|
14498
|
-
//#endregion
|
|
14499
14703
|
//#region src/components/toolbar/toolbar.context.ts
|
|
14500
14704
|
var { useProvide: useToolbarProvide, useInject: useToolbarInject } = createContext("Toolbar");
|
|
14501
14705
|
//#endregion
|
|
@@ -14604,6 +14808,41 @@ var ToolbarSeparator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14604
14808
|
}
|
|
14605
14809
|
});
|
|
14606
14810
|
//#endregion
|
|
14811
|
+
//#region src/components/toolbar/ToolbarToggleItem.vue
|
|
14812
|
+
var ToolbarToggleItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14813
|
+
__name: "ToolbarToggleItem",
|
|
14814
|
+
props: {
|
|
14815
|
+
value: {},
|
|
14816
|
+
variant: {},
|
|
14817
|
+
size: {},
|
|
14818
|
+
isIconOnly: { type: Boolean },
|
|
14819
|
+
disabled: { type: Boolean },
|
|
14820
|
+
class: {}
|
|
14821
|
+
},
|
|
14822
|
+
setup(__props) {
|
|
14823
|
+
const props = __props;
|
|
14824
|
+
const classes = (0, vue.computed)(() => (0, _auronui_styles.toggleButtonVariants)({
|
|
14825
|
+
variant: props.variant ?? "ghost",
|
|
14826
|
+
size: props.size ?? "md",
|
|
14827
|
+
isIconOnly: props.isIconOnly ?? false
|
|
14828
|
+
}));
|
|
14829
|
+
return (_ctx, _cache) => {
|
|
14830
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ToolbarToggleItem), {
|
|
14831
|
+
value: props.value,
|
|
14832
|
+
disabled: props.disabled,
|
|
14833
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(classes.value, props.class))
|
|
14834
|
+
}, {
|
|
14835
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
14836
|
+
_: 3
|
|
14837
|
+
}, 8, [
|
|
14838
|
+
"value",
|
|
14839
|
+
"disabled",
|
|
14840
|
+
"class"
|
|
14841
|
+
]);
|
|
14842
|
+
};
|
|
14843
|
+
}
|
|
14844
|
+
});
|
|
14845
|
+
//#endregion
|
|
14607
14846
|
//#region src/components/toolbar/ToolbarToggleGroup.vue
|
|
14608
14847
|
var ToolbarToggleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14609
14848
|
__name: "ToolbarToggleGroup",
|
|
@@ -14614,7 +14853,8 @@ var ToolbarToggleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14614
14853
|
disabled: { type: Boolean },
|
|
14615
14854
|
orientation: {},
|
|
14616
14855
|
isDetached: { type: Boolean },
|
|
14617
|
-
class: {}
|
|
14856
|
+
class: {},
|
|
14857
|
+
items: {}
|
|
14618
14858
|
},
|
|
14619
14859
|
emits: ["update:modelValue"],
|
|
14620
14860
|
setup(__props, { emit: __emit }) {
|
|
@@ -14635,7 +14875,27 @@ var ToolbarToggleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14635
14875
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(classes.value, props.class)),
|
|
14636
14876
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => emit("update:modelValue", v))
|
|
14637
14877
|
}, {
|
|
14638
|
-
default: (0, vue.withCtx)(() => [(0, vue.
|
|
14878
|
+
default: (0, vue.withCtx)(() => [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
14879
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(ToolbarToggleItem_default, {
|
|
14880
|
+
key: item.value,
|
|
14881
|
+
value: item.value,
|
|
14882
|
+
variant: item.variant,
|
|
14883
|
+
size: item.size,
|
|
14884
|
+
"is-icon-only": item.isIconOnly,
|
|
14885
|
+
disabled: item.disabled,
|
|
14886
|
+
class: (0, vue.normalizeClass)(item.class)
|
|
14887
|
+
}, {
|
|
14888
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label), 1)]),
|
|
14889
|
+
_: 2
|
|
14890
|
+
}, 1032, [
|
|
14891
|
+
"value",
|
|
14892
|
+
"variant",
|
|
14893
|
+
"size",
|
|
14894
|
+
"is-icon-only",
|
|
14895
|
+
"disabled",
|
|
14896
|
+
"class"
|
|
14897
|
+
]);
|
|
14898
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
14639
14899
|
_: 3
|
|
14640
14900
|
}, 8, [
|
|
14641
14901
|
"type",
|
|
@@ -14648,43 +14908,8 @@ var ToolbarToggleGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14648
14908
|
}
|
|
14649
14909
|
});
|
|
14650
14910
|
//#endregion
|
|
14651
|
-
//#region src/components/toolbar/ToolbarToggleItem.vue
|
|
14652
|
-
var ToolbarToggleItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
14653
|
-
__name: "ToolbarToggleItem",
|
|
14654
|
-
props: {
|
|
14655
|
-
value: {},
|
|
14656
|
-
variant: {},
|
|
14657
|
-
size: {},
|
|
14658
|
-
isIconOnly: { type: Boolean },
|
|
14659
|
-
disabled: { type: Boolean },
|
|
14660
|
-
class: {}
|
|
14661
|
-
},
|
|
14662
|
-
setup(__props) {
|
|
14663
|
-
const props = __props;
|
|
14664
|
-
const classes = (0, vue.computed)(() => (0, _auronui_styles.toggleButtonVariants)({
|
|
14665
|
-
variant: props.variant ?? "ghost",
|
|
14666
|
-
size: props.size ?? "md",
|
|
14667
|
-
isIconOnly: props.isIconOnly ?? false
|
|
14668
|
-
}));
|
|
14669
|
-
return (_ctx, _cache) => {
|
|
14670
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ToolbarToggleItem), {
|
|
14671
|
-
value: props.value,
|
|
14672
|
-
disabled: props.disabled,
|
|
14673
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(classes.value, props.class))
|
|
14674
|
-
}, {
|
|
14675
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
14676
|
-
_: 3
|
|
14677
|
-
}, 8, [
|
|
14678
|
-
"value",
|
|
14679
|
-
"disabled",
|
|
14680
|
-
"class"
|
|
14681
|
-
]);
|
|
14682
|
-
};
|
|
14683
|
-
}
|
|
14684
|
-
});
|
|
14685
|
-
//#endregion
|
|
14686
14911
|
//#region src/components/alert/Alert.vue?vue&type=script&setup=true&lang.ts
|
|
14687
|
-
var _hoisted_1$
|
|
14912
|
+
var _hoisted_1$40 = {
|
|
14688
14913
|
key: 0,
|
|
14689
14914
|
"data-slot": "alert-default-icon",
|
|
14690
14915
|
viewBox: "0 0 24 24",
|
|
@@ -14779,7 +15004,7 @@ var Alert_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14779
15004
|
(0, vue.renderSlot)(_ctx.$slots, "icon", {}, () => [(0, vue.createElementVNode)("span", {
|
|
14780
15005
|
class: (0, vue.normalizeClass)(styles.value.indicator()),
|
|
14781
15006
|
"aria-hidden": "true"
|
|
14782
|
-
}, [__props.severity === "default" || __props.severity === "primary" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$
|
|
15007
|
+
}, [__props.severity === "default" || __props.severity === "primary" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$40, [..._cache[0] || (_cache[0] = [
|
|
14783
15008
|
(0, vue.createElementVNode)("circle", {
|
|
14784
15009
|
cx: "12",
|
|
14785
15010
|
cy: "12",
|
|
@@ -15153,7 +15378,7 @@ function useToast() {
|
|
|
15153
15378
|
}
|
|
15154
15379
|
//#endregion
|
|
15155
15380
|
//#region src/components/toast/ToastViewport.vue?vue&type=script&setup=true&lang.ts
|
|
15156
|
-
var _hoisted_1$
|
|
15381
|
+
var _hoisted_1$39 = { class: "flex shrink-0 items-center gap-1 ml-auto" };
|
|
15157
15382
|
//#endregion
|
|
15158
15383
|
//#region src/components/toast/ToastViewport.vue
|
|
15159
15384
|
var ToastViewport_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -15223,7 +15448,7 @@ var ToastViewport_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15223
15448
|
}, 1024), toast.description ? ((0, vue.openBlock)(), (0, vue.createBlock)(ToastDescription_default, { key: 0 }, {
|
|
15224
15449
|
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(toast.description), 1)]),
|
|
15225
15450
|
_: 2
|
|
15226
|
-
}, 1024)) : (0, vue.createCommentVNode)("", true)], 2), (0, vue.createElementVNode)("div", _hoisted_1$
|
|
15451
|
+
}, 1024)) : (0, vue.createCommentVNode)("", true)], 2), (0, vue.createElementVNode)("div", _hoisted_1$39, [toast.action ? ((0, vue.openBlock)(), (0, vue.createBlock)(ToastAction_default, {
|
|
15227
15452
|
key: 0,
|
|
15228
15453
|
"alt-text": toast.action.label,
|
|
15229
15454
|
onClick: toast.action.onClick
|
|
@@ -15234,88 +15459,27 @@ var ToastViewport_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15234
15459
|
_: 2
|
|
15235
15460
|
}, 1032, [
|
|
15236
15461
|
"open",
|
|
15237
|
-
"duration",
|
|
15238
|
-
"position",
|
|
15239
|
-
"variant",
|
|
15240
|
-
"onUpdate:open"
|
|
15241
|
-
]);
|
|
15242
|
-
}), 128)), (0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
15243
|
-
_: 3
|
|
15244
|
-
}, 8, [
|
|
15245
|
-
"hotkey",
|
|
15246
|
-
"label",
|
|
15247
|
-
"class"
|
|
15248
|
-
])]),
|
|
15249
|
-
_: 3
|
|
15250
|
-
}, 8, ["swipe-direction"]);
|
|
15251
|
-
};
|
|
15252
|
-
}
|
|
15253
|
-
});
|
|
15254
|
-
//#endregion
|
|
15255
|
-
//#region src/components/list-box/ListBox.context.ts
|
|
15256
|
-
var { useProvide: useListBoxProvide, useInject: useListBoxInject, key: listBoxContextKey } = createContext("ListBox");
|
|
15257
|
-
//#endregion
|
|
15258
|
-
//#region src/components/list-box/ListBox.vue
|
|
15259
|
-
var ListBox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
15260
|
-
inheritAttrs: false,
|
|
15261
|
-
__name: "ListBox",
|
|
15262
|
-
props: {
|
|
15263
|
-
modelValue: { default: void 0 },
|
|
15264
|
-
defaultValue: { default: void 0 },
|
|
15265
|
-
selectionMode: { default: "single" },
|
|
15266
|
-
variant: { default: "default" },
|
|
15267
|
-
isDisabled: {
|
|
15268
|
-
type: Boolean,
|
|
15269
|
-
default: false
|
|
15270
|
-
},
|
|
15271
|
-
class: {
|
|
15272
|
-
type: [
|
|
15273
|
-
String,
|
|
15274
|
-
Boolean,
|
|
15275
|
-
null,
|
|
15276
|
-
Object,
|
|
15277
|
-
Array
|
|
15278
|
-
],
|
|
15279
|
-
default: void 0
|
|
15280
|
-
},
|
|
15281
|
-
classNames: {}
|
|
15282
|
-
},
|
|
15283
|
-
emits: ["update:modelValue"],
|
|
15284
|
-
setup(__props, { emit: __emit }) {
|
|
15285
|
-
const props = __props;
|
|
15286
|
-
const emit = __emit;
|
|
15287
|
-
const attrs = (0, vue.useAttrs)();
|
|
15288
|
-
useListBoxProvide({
|
|
15289
|
-
variant: (0, vue.toRef)(props, "variant"),
|
|
15290
|
-
itemVariant: (0, vue.toRef)(props, "variant"),
|
|
15291
|
-
isDisabled: (0, vue.toRef)(props, "isDisabled")
|
|
15292
|
-
});
|
|
15293
|
-
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.listboxVariants)({ variant: props.variant }));
|
|
15294
|
-
return (_ctx, _cache) => {
|
|
15295
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ListboxRoot), {
|
|
15296
|
-
"model-value": props.modelValue == null ? void 0 : [].concat(props.modelValue),
|
|
15297
|
-
"default-value": props.defaultValue == null ? void 0 : [].concat(props.defaultValue),
|
|
15298
|
-
multiple: props.selectionMode === "multiple",
|
|
15299
|
-
"selection-behavior": props.selectionMode === "multiple" ? "toggle" : "replace",
|
|
15300
|
-
disabled: props.isDisabled,
|
|
15301
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", props.selectionMode === "single" ? Array.isArray($event) ? $event[0] : $event : $event))
|
|
15302
|
-
}, {
|
|
15303
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.ListboxContent), (0, vue.mergeProps)((0, vue.unref)(attrs), { class: (0, vue.unref)(composeClassName)(slotFns.value, props.class, props.classNames?.base) }), {
|
|
15304
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
15462
|
+
"duration",
|
|
15463
|
+
"position",
|
|
15464
|
+
"variant",
|
|
15465
|
+
"onUpdate:open"
|
|
15466
|
+
]);
|
|
15467
|
+
}), 128)), (0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
15305
15468
|
_: 3
|
|
15306
|
-
},
|
|
15469
|
+
}, 8, [
|
|
15470
|
+
"hotkey",
|
|
15471
|
+
"label",
|
|
15472
|
+
"class"
|
|
15473
|
+
])]),
|
|
15307
15474
|
_: 3
|
|
15308
|
-
}, 8, [
|
|
15309
|
-
"model-value",
|
|
15310
|
-
"default-value",
|
|
15311
|
-
"multiple",
|
|
15312
|
-
"selection-behavior",
|
|
15313
|
-
"disabled"
|
|
15314
|
-
]);
|
|
15475
|
+
}, 8, ["swipe-direction"]);
|
|
15315
15476
|
};
|
|
15316
15477
|
}
|
|
15317
15478
|
});
|
|
15318
15479
|
//#endregion
|
|
15480
|
+
//#region src/components/list-box/ListBox.context.ts
|
|
15481
|
+
var { useProvide: useListBoxProvide, useInject: useListBoxInject, key: listBoxContextKey } = createContext("ListBox");
|
|
15482
|
+
//#endregion
|
|
15319
15483
|
//#region src/components/list-box/ListBoxItem.vue
|
|
15320
15484
|
var ListBoxItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
15321
15485
|
__name: "ListBoxItem",
|
|
@@ -15388,6 +15552,82 @@ var ListBoxItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15388
15552
|
}
|
|
15389
15553
|
});
|
|
15390
15554
|
//#endregion
|
|
15555
|
+
//#region src/components/list-box/ListBox.vue
|
|
15556
|
+
var ListBox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
15557
|
+
inheritAttrs: false,
|
|
15558
|
+
__name: "ListBox",
|
|
15559
|
+
props: {
|
|
15560
|
+
modelValue: { default: void 0 },
|
|
15561
|
+
defaultValue: { default: void 0 },
|
|
15562
|
+
selectionMode: { default: "single" },
|
|
15563
|
+
variant: { default: "default" },
|
|
15564
|
+
isDisabled: {
|
|
15565
|
+
type: Boolean,
|
|
15566
|
+
default: false
|
|
15567
|
+
},
|
|
15568
|
+
class: {
|
|
15569
|
+
type: [
|
|
15570
|
+
String,
|
|
15571
|
+
Boolean,
|
|
15572
|
+
null,
|
|
15573
|
+
Object,
|
|
15574
|
+
Array
|
|
15575
|
+
],
|
|
15576
|
+
default: void 0
|
|
15577
|
+
},
|
|
15578
|
+
classNames: {},
|
|
15579
|
+
items: {}
|
|
15580
|
+
},
|
|
15581
|
+
emits: ["update:modelValue"],
|
|
15582
|
+
setup(__props, { emit: __emit }) {
|
|
15583
|
+
const props = __props;
|
|
15584
|
+
const emit = __emit;
|
|
15585
|
+
const attrs = (0, vue.useAttrs)();
|
|
15586
|
+
useListBoxProvide({
|
|
15587
|
+
variant: (0, vue.toRef)(props, "variant"),
|
|
15588
|
+
itemVariant: (0, vue.toRef)(props, "variant"),
|
|
15589
|
+
isDisabled: (0, vue.toRef)(props, "isDisabled")
|
|
15590
|
+
});
|
|
15591
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.listboxVariants)({ variant: props.variant }));
|
|
15592
|
+
return (_ctx, _cache) => {
|
|
15593
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ListboxRoot), {
|
|
15594
|
+
"model-value": props.modelValue == null ? void 0 : [].concat(props.modelValue),
|
|
15595
|
+
"default-value": props.defaultValue == null ? void 0 : [].concat(props.defaultValue),
|
|
15596
|
+
multiple: props.selectionMode === "multiple",
|
|
15597
|
+
"selection-behavior": props.selectionMode === "multiple" ? "toggle" : "replace",
|
|
15598
|
+
disabled: props.isDisabled,
|
|
15599
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", props.selectionMode === "single" ? Array.isArray($event) ? $event[0] : $event : $event))
|
|
15600
|
+
}, {
|
|
15601
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(reka_ui.ListboxContent), (0, vue.mergeProps)((0, vue.unref)(attrs), { class: (0, vue.unref)(composeClassName)(slotFns.value, props.class, props.classNames?.base) }), {
|
|
15602
|
+
default: (0, vue.withCtx)(() => [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item) => {
|
|
15603
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(ListBoxItem_default, {
|
|
15604
|
+
key: item.value,
|
|
15605
|
+
value: item.value,
|
|
15606
|
+
"is-disabled": item.disabled,
|
|
15607
|
+
"text-value": item.textValue
|
|
15608
|
+
}, {
|
|
15609
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.label ?? item.value), 1)]),
|
|
15610
|
+
_: 2
|
|
15611
|
+
}, 1032, [
|
|
15612
|
+
"value",
|
|
15613
|
+
"is-disabled",
|
|
15614
|
+
"text-value"
|
|
15615
|
+
]);
|
|
15616
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })]),
|
|
15617
|
+
_: 3
|
|
15618
|
+
}, 16, ["class"])]),
|
|
15619
|
+
_: 3
|
|
15620
|
+
}, 8, [
|
|
15621
|
+
"model-value",
|
|
15622
|
+
"default-value",
|
|
15623
|
+
"multiple",
|
|
15624
|
+
"selection-behavior",
|
|
15625
|
+
"disabled"
|
|
15626
|
+
]);
|
|
15627
|
+
};
|
|
15628
|
+
}
|
|
15629
|
+
});
|
|
15630
|
+
//#endregion
|
|
15391
15631
|
//#region src/components/list-box/ListBoxSection.vue
|
|
15392
15632
|
var ListBoxSection_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
15393
15633
|
__name: "ListBoxSection",
|
|
@@ -15454,7 +15694,7 @@ function hasSlotComponent(nodes, components) {
|
|
|
15454
15694
|
}
|
|
15455
15695
|
//#endregion
|
|
15456
15696
|
//#region src/components/select/SelectTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
15457
|
-
var _hoisted_1$
|
|
15697
|
+
var _hoisted_1$38 = ["for"];
|
|
15458
15698
|
var _hoisted_2$21 = {
|
|
15459
15699
|
key: 0,
|
|
15460
15700
|
"aria-hidden": "true"
|
|
@@ -15504,7 +15744,7 @@ var SelectTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15504
15744
|
key: 0,
|
|
15505
15745
|
for: (0, vue.unref)(ctx).triggerId.value,
|
|
15506
15746
|
class: (0, vue.normalizeClass)((0, vue.unref)(ctx).slots.value.label())
|
|
15507
|
-
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(ctx).label.value), 1), (0, vue.unref)(ctx).isRequired.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$21, " *")) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$
|
|
15747
|
+
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(ctx).label.value), 1), (0, vue.unref)(ctx).isRequired.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$21, " *")) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$38)) : (0, vue.createCommentVNode)("", true),
|
|
15508
15748
|
_ctx.$slots.startContent ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
15509
15749
|
key: 1,
|
|
15510
15750
|
class: (0, vue.normalizeClass)((0, vue.unref)(ctx).slots.value.startContent()),
|
|
@@ -15545,7 +15785,7 @@ var SelectTrigger_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15545
15785
|
});
|
|
15546
15786
|
//#endregion
|
|
15547
15787
|
//#region src/components/select/SelectOverflowChips.vue?vue&type=script&setup=true&lang.ts
|
|
15548
|
-
var _hoisted_1$
|
|
15788
|
+
var _hoisted_1$37 = {
|
|
15549
15789
|
ref: "container",
|
|
15550
15790
|
style: {
|
|
15551
15791
|
"display": "flex",
|
|
@@ -15603,7 +15843,7 @@ var SelectOverflowChips_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15603
15843
|
(0, _vueuse_core.useResizeObserver)(containerEl, reflow);
|
|
15604
15844
|
(0, vue.watch)(() => props.values.join("\0"), () => reflow(), { flush: "post" });
|
|
15605
15845
|
return (_ctx, _cache) => {
|
|
15606
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$
|
|
15846
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$37, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.values, (val, i) => {
|
|
15607
15847
|
return (0, vue.openBlock)(), (0, vue.createBlock)(Chip_default, {
|
|
15608
15848
|
key: val,
|
|
15609
15849
|
"data-chip-item": "",
|
|
@@ -15783,7 +16023,7 @@ var SelectItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15783
16023
|
});
|
|
15784
16024
|
//#endregion
|
|
15785
16025
|
//#region src/components/select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
15786
|
-
var _hoisted_1$
|
|
16026
|
+
var _hoisted_1$36 = [
|
|
15787
16027
|
"data-invalid",
|
|
15788
16028
|
"data-disabled",
|
|
15789
16029
|
"data-readonly",
|
|
@@ -15984,7 +16224,7 @@ var Select_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
15984
16224
|
key: 1,
|
|
15985
16225
|
id: descriptionId.value,
|
|
15986
16226
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
15987
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_5$6)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
16227
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_5$6)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$36);
|
|
15988
16228
|
};
|
|
15989
16229
|
}
|
|
15990
16230
|
});
|
|
@@ -16104,7 +16344,7 @@ var DropdownMenu_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16104
16344
|
});
|
|
16105
16345
|
//#endregion
|
|
16106
16346
|
//#region src/components/dropdown/DropdownItem.vue?vue&type=script&setup=true&lang.ts
|
|
16107
|
-
var _hoisted_1$
|
|
16347
|
+
var _hoisted_1$35 = { class: "flex flex-1 flex-col" };
|
|
16108
16348
|
var _hoisted_2$19 = { "data-slot": "label" };
|
|
16109
16349
|
var _hoisted_3$12 = {
|
|
16110
16350
|
key: 0,
|
|
@@ -16144,7 +16384,7 @@ var DropdownItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16144
16384
|
}, {
|
|
16145
16385
|
default: (0, vue.withCtx)(() => [
|
|
16146
16386
|
(0, vue.renderSlot)(_ctx.$slots, "startContent"),
|
|
16147
|
-
(0, vue.createElementVNode)("div", _hoisted_1$
|
|
16387
|
+
(0, vue.createElementVNode)("div", _hoisted_1$35, [(0, vue.createElementVNode)("span", _hoisted_2$19, [(0, vue.renderSlot)(_ctx.$slots, "default")]), props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$12, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)]),
|
|
16148
16388
|
props.shortcut ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("kbd", _hoisted_4$7, (0, vue.toDisplayString)(props.shortcut), 1)) : (0, vue.createCommentVNode)("", true),
|
|
16149
16389
|
(0, vue.renderSlot)(_ctx.$slots, "endContent")
|
|
16150
16390
|
]),
|
|
@@ -16727,7 +16967,7 @@ var ComboBoxItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16727
16967
|
});
|
|
16728
16968
|
//#endregion
|
|
16729
16969
|
//#region src/components/combo-box/ComboBox.vue?vue&type=script&setup=true&lang.ts
|
|
16730
|
-
var _hoisted_1$
|
|
16970
|
+
var _hoisted_1$34 = ["aria-invalid"];
|
|
16731
16971
|
var _hoisted_2$18 = ["id"];
|
|
16732
16972
|
var _hoisted_3$11 = {
|
|
16733
16973
|
key: 0,
|
|
@@ -16907,7 +17147,7 @@ var ComboBox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16907
17147
|
"filter-function"
|
|
16908
17148
|
]),
|
|
16909
17149
|
props.description || props.isInvalid && props.errorMessage ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_4$6, [props.isInvalid && props.errorMessage ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_5$5, (0, vue.toDisplayString)(props.errorMessage), 1)) : props.description ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("p", _hoisted_6$4, (0, vue.toDisplayString)(props.description), 1)) : (0, vue.createCommentVNode)("", true)])) : (0, vue.createCommentVNode)("", true)
|
|
16910
|
-
], 10, _hoisted_1$
|
|
17150
|
+
], 10, _hoisted_1$34);
|
|
16911
17151
|
};
|
|
16912
17152
|
}
|
|
16913
17153
|
});
|
|
@@ -16932,7 +17172,7 @@ var ComboBoxEmpty_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
16932
17172
|
var { useProvide: useAutocompleteProvide, useInject: useAutocompleteInject, key: autocompleteContextKey } = createContext("Autocomplete");
|
|
16933
17173
|
//#endregion
|
|
16934
17174
|
//#region src/components/autocomplete/AutocompleteOverflowChips.vue?vue&type=script&setup=true&lang.ts
|
|
16935
|
-
var _hoisted_1$
|
|
17175
|
+
var _hoisted_1$33 = {
|
|
16936
17176
|
ref: "container",
|
|
16937
17177
|
style: {
|
|
16938
17178
|
"display": "flex",
|
|
@@ -16991,7 +17231,7 @@ var AutocompleteOverflowChips_default = /* @__PURE__ */ (0, vue.defineComponent)
|
|
|
16991
17231
|
(0, _vueuse_core.useResizeObserver)(containerEl, reflow);
|
|
16992
17232
|
(0, vue.watch)(() => props.values.join("\0"), () => reflow(), { flush: "post" });
|
|
16993
17233
|
return (_ctx, _cache) => {
|
|
16994
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$
|
|
17234
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$33, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.values, (val, i) => {
|
|
16995
17235
|
return (0, vue.openBlock)(), (0, vue.createBlock)(Chip_default, {
|
|
16996
17236
|
key: val,
|
|
16997
17237
|
"data-chip-item": "",
|
|
@@ -17016,7 +17256,7 @@ var AutocompleteOverflowChips_default = /* @__PURE__ */ (0, vue.defineComponent)
|
|
|
17016
17256
|
});
|
|
17017
17257
|
//#endregion
|
|
17018
17258
|
//#region src/components/autocomplete/AutocompleteInput.vue?vue&type=script&setup=true&lang.ts
|
|
17019
|
-
var _hoisted_1$
|
|
17259
|
+
var _hoisted_1$32 = ["for"];
|
|
17020
17260
|
var _hoisted_2$17 = {
|
|
17021
17261
|
key: 0,
|
|
17022
17262
|
"aria-hidden": "true"
|
|
@@ -17053,7 +17293,7 @@ var AutocompleteInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17053
17293
|
key: 0,
|
|
17054
17294
|
for: (0, vue.unref)(ctx).inputId.value,
|
|
17055
17295
|
class: (0, vue.normalizeClass)((0, vue.unref)(ctx).slots.value.label())
|
|
17056
|
-
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(ctx).label.value), 1), (0, vue.unref)(ctx).isRequired.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$17, " *")) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$
|
|
17296
|
+
}, [(0, vue.createTextVNode)((0, vue.toDisplayString)((0, vue.unref)(ctx).label.value), 1), (0, vue.unref)(ctx).isRequired.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$17, " *")) : (0, vue.createCommentVNode)("", true)], 10, _hoisted_1$32)) : (0, vue.createCommentVNode)("", true),
|
|
17057
17297
|
_ctx.$slots.startContent ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
17058
17298
|
key: 1,
|
|
17059
17299
|
class: (0, vue.normalizeClass)((0, vue.unref)(ctx).slots.value.startContent()),
|
|
@@ -17179,7 +17419,7 @@ var AutocompleteInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17179
17419
|
});
|
|
17180
17420
|
//#endregion
|
|
17181
17421
|
//#region src/components/autocomplete/AutocompleteContent.vue?vue&type=script&setup=true&lang.ts
|
|
17182
|
-
var _hoisted_1$
|
|
17422
|
+
var _hoisted_1$31 = [
|
|
17183
17423
|
"inert",
|
|
17184
17424
|
"aria-disabled",
|
|
17185
17425
|
"data-disabled"
|
|
@@ -17279,7 +17519,7 @@ var AutocompleteContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17279
17519
|
_: 3
|
|
17280
17520
|
})) : (0, vue.createCommentVNode)("", true)]),
|
|
17281
17521
|
_: 3
|
|
17282
|
-
})], 10, _hoisted_1$
|
|
17522
|
+
})], 10, _hoisted_1$31)]),
|
|
17283
17523
|
_: 3
|
|
17284
17524
|
}, 8, [
|
|
17285
17525
|
"data-loading",
|
|
@@ -17297,7 +17537,7 @@ var AutocompleteContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17297
17537
|
});
|
|
17298
17538
|
//#endregion
|
|
17299
17539
|
//#region src/components/autocomplete/AutocompleteItem.vue?vue&type=script&setup=true&lang.ts
|
|
17300
|
-
var _hoisted_1$
|
|
17540
|
+
var _hoisted_1$30 = {
|
|
17301
17541
|
class: "autocomplete-item__text",
|
|
17302
17542
|
"data-slot": "item-text"
|
|
17303
17543
|
};
|
|
@@ -17360,7 +17600,7 @@ var AutocompleteItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17360
17600
|
}, {
|
|
17361
17601
|
default: (0, vue.withCtx)(() => [
|
|
17362
17602
|
(0, vue.renderSlot)(_ctx.$slots, "startContent"),
|
|
17363
|
-
(0, vue.createElementVNode)("span", _hoisted_1$
|
|
17603
|
+
(0, vue.createElementVNode)("span", _hoisted_1$30, [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
17364
17604
|
!(0, vue.unref)(ctx).multiple.value ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ComboboxItemIndicator), {
|
|
17365
17605
|
key: 0,
|
|
17366
17606
|
class: "list-box-item__indicator",
|
|
@@ -17408,7 +17648,7 @@ var AutocompleteItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17408
17648
|
});
|
|
17409
17649
|
//#endregion
|
|
17410
17650
|
//#region src/components/autocomplete/Autocomplete.vue?vue&type=script&setup=true&lang.ts
|
|
17411
|
-
var _hoisted_1$
|
|
17651
|
+
var _hoisted_1$29 = [
|
|
17412
17652
|
"data-invalid",
|
|
17413
17653
|
"data-disabled",
|
|
17414
17654
|
"data-readonly",
|
|
@@ -17793,13 +18033,13 @@ var Autocomplete_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17793
18033
|
key: 1,
|
|
17794
18034
|
id: descriptionId.value,
|
|
17795
18035
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.description(), props.classNames?.description))
|
|
17796
|
-
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_5$4)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$
|
|
18036
|
+
}, (0, vue.toDisplayString)(__props.description), 11, _hoisted_5$4)) : (0, vue.createCommentVNode)("", true)], 2)) : (0, vue.createCommentVNode)("", true)], 2)], 10, _hoisted_1$29);
|
|
17797
18037
|
};
|
|
17798
18038
|
}
|
|
17799
18039
|
});
|
|
17800
18040
|
//#endregion
|
|
17801
18041
|
//#region src/components/autocomplete/AutocompleteCreateItem.vue?vue&type=script&setup=true&lang.ts
|
|
17802
|
-
var _hoisted_1$
|
|
18042
|
+
var _hoisted_1$28 = {
|
|
17803
18043
|
class: "autocomplete-item__text",
|
|
17804
18044
|
"data-slot": "item-text"
|
|
17805
18045
|
};
|
|
@@ -17840,7 +18080,7 @@ var AutocompleteCreateItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17840
18080
|
"data-create-item": "",
|
|
17841
18081
|
onSelect: handleSelect
|
|
17842
18082
|
}, {
|
|
17843
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { term: term.value }, () => [(0, vue.createElementVNode)("span", _hoisted_1$
|
|
18083
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { term: term.value }, () => [(0, vue.createElementVNode)("span", _hoisted_1$28, (0, vue.toDisplayString)(displayLabel.value), 1)])]),
|
|
17844
18084
|
_: 3
|
|
17845
18085
|
}, 8, [
|
|
17846
18086
|
"value",
|
|
@@ -17952,7 +18192,7 @@ var Pagination_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17952
18192
|
});
|
|
17953
18193
|
//#endregion
|
|
17954
18194
|
//#region src/components/pagination/PaginationContent.vue?vue&type=script&setup=true&lang.ts
|
|
17955
|
-
var _hoisted_1$
|
|
18195
|
+
var _hoisted_1$27 = ["disabled", "data-disabled"];
|
|
17956
18196
|
var _hoisted_2$14 = ["disabled", "data-disabled"];
|
|
17957
18197
|
//#endregion
|
|
17958
18198
|
//#region src/components/pagination/PaginationContent.vue
|
|
@@ -17985,7 +18225,7 @@ var PaginationContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17985
18225
|
"data-disabled": !hasPreviousPage.value || (0, vue.unref)(ctx).disabled.value || void 0,
|
|
17986
18226
|
"aria-label": "Before page",
|
|
17987
18227
|
onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(ctx).onCursorChange((0, vue.unref)(ctx).beforeCursor.value, null))
|
|
17988
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "before", {}, () => [_cache[2] || (_cache[2] = (0, vue.createTextVNode)(" Before ", -1))])], 10, _hoisted_1$
|
|
18228
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "before", {}, () => [_cache[2] || (_cache[2] = (0, vue.createTextVNode)(" Before ", -1))])], 10, _hoisted_1$27),
|
|
17989
18229
|
(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(styles.value.summary?.()) }, [(0, vue.renderSlot)(_ctx.$slots, "page-info", {}, () => [(0, vue.createTextVNode)("Page " + (0, vue.toDisplayString)((0, vue.unref)(ctx).page.value), 1)])], 2),
|
|
17990
18230
|
(0, vue.createElementVNode)("button", {
|
|
17991
18231
|
type: "button",
|
|
@@ -20776,7 +21016,7 @@ function useTableKeyboardNav(options) {
|
|
|
20776
21016
|
}
|
|
20777
21017
|
//#endregion
|
|
20778
21018
|
//#region src/components/table/TableHeader.vue?vue&type=script&setup=true&lang.ts
|
|
20779
|
-
var _hoisted_1$
|
|
21019
|
+
var _hoisted_1$26 = [
|
|
20780
21020
|
"data-col-index",
|
|
20781
21021
|
"aria-sort",
|
|
20782
21022
|
"data-allows-sorting",
|
|
@@ -20833,7 +21073,7 @@ var TableHeader_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
20833
21073
|
key: 0,
|
|
20834
21074
|
render: header.column.columnDef.header,
|
|
20835
21075
|
props: header.getContext()
|
|
20836
|
-
}, null, 8, ["render", "props"])) : (0, vue.createCommentVNode)("", true)], 42, _hoisted_1$
|
|
21076
|
+
}, null, 8, ["render", "props"])) : (0, vue.createCommentVNode)("", true)], 42, _hoisted_1$26);
|
|
20837
21077
|
}), 128))], 2);
|
|
20838
21078
|
}), 128))], 2);
|
|
20839
21079
|
};
|
|
@@ -20841,7 +21081,7 @@ var TableHeader_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
20841
21081
|
});
|
|
20842
21082
|
//#endregion
|
|
20843
21083
|
//#region src/components/table/TableBody.vue?vue&type=script&setup=true&lang.ts
|
|
20844
|
-
var _hoisted_1$
|
|
21084
|
+
var _hoisted_1$25 = [
|
|
20845
21085
|
"aria-rowindex",
|
|
20846
21086
|
"aria-selected",
|
|
20847
21087
|
"data-state",
|
|
@@ -20899,7 +21139,7 @@ var TableBody_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
20899
21139
|
render: cell.column.columnDef.cell,
|
|
20900
21140
|
props: cell.getContext()
|
|
20901
21141
|
}, null, 8, ["render", "props"])])], 10, _hoisted_2$13);
|
|
20902
|
-
}), 128))], 42, _hoisted_1$
|
|
21142
|
+
}), 128))], 42, _hoisted_1$25);
|
|
20903
21143
|
}), 128))], 2);
|
|
20904
21144
|
};
|
|
20905
21145
|
}
|
|
@@ -21691,7 +21931,7 @@ function useVirtualizer(options) {
|
|
|
21691
21931
|
}
|
|
21692
21932
|
//#endregion
|
|
21693
21933
|
//#region src/components/table/TableVirtualBody.vue?vue&type=script&setup=true&lang.ts
|
|
21694
|
-
var _hoisted_1$
|
|
21934
|
+
var _hoisted_1$24 = {
|
|
21695
21935
|
key: 0,
|
|
21696
21936
|
"aria-hidden": "true"
|
|
21697
21937
|
};
|
|
@@ -21760,7 +22000,7 @@ var TableVirtualBody_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
21760
22000
|
__expose({ scrollToIndex: (index) => virtualizer.value.scrollToIndex(index, { align: "auto" }) });
|
|
21761
22001
|
return (_ctx, _cache) => {
|
|
21762
22002
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tbody", { class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.body(), props.classNames?.body)) }, [
|
|
21763
|
-
paddingTop.value > 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("tr", _hoisted_1$
|
|
22003
|
+
paddingTop.value > 0 ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("tr", _hoisted_1$24, [(0, vue.createElementVNode)("td", {
|
|
21764
22004
|
colspan: columnCount.value,
|
|
21765
22005
|
style: (0, vue.normalizeStyle)({
|
|
21766
22006
|
height: `${paddingTop.value}px`,
|
|
@@ -21865,7 +22105,7 @@ var TableCheckboxCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
21865
22105
|
});
|
|
21866
22106
|
//#endregion
|
|
21867
22107
|
//#region src/components/table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
21868
|
-
var _hoisted_1$
|
|
22108
|
+
var _hoisted_1$23 = [
|
|
21869
22109
|
"aria-label",
|
|
21870
22110
|
"aria-rowcount",
|
|
21871
22111
|
"aria-colcount"
|
|
@@ -22039,7 +22279,7 @@ var Table_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22039
22279
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "footer")]),
|
|
22040
22280
|
_: 3
|
|
22041
22281
|
})) : (0, vue.createCommentVNode)("", true)
|
|
22042
|
-
], 40, _hoisted_1$
|
|
22282
|
+
], 40, _hoisted_1$23)], 6)], 2);
|
|
22043
22283
|
};
|
|
22044
22284
|
}
|
|
22045
22285
|
});
|
|
@@ -22071,7 +22311,7 @@ var TableRow_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22071
22311
|
});
|
|
22072
22312
|
//#endregion
|
|
22073
22313
|
//#region src/components/table/TableCell.vue?vue&type=script&setup=true&lang.ts
|
|
22074
|
-
var _hoisted_1$
|
|
22314
|
+
var _hoisted_1$22 = ["data-row-index", "data-col-index"];
|
|
22075
22315
|
//#endregion
|
|
22076
22316
|
//#region src/components/table/TableCell.vue
|
|
22077
22317
|
var TableCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -22091,13 +22331,13 @@ var TableCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22091
22331
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.cell(), props.classNames?.cell)),
|
|
22092
22332
|
"data-row-index": __props.rowIndex,
|
|
22093
22333
|
"data-col-index": __props.columnIndex
|
|
22094
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
22334
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$22);
|
|
22095
22335
|
};
|
|
22096
22336
|
}
|
|
22097
22337
|
});
|
|
22098
22338
|
//#endregion
|
|
22099
22339
|
//#region src/components/table/TableHeaderCell.vue?vue&type=script&setup=true&lang.ts
|
|
22100
|
-
var _hoisted_1$
|
|
22340
|
+
var _hoisted_1$21 = ["data-col-index", "aria-sort"];
|
|
22101
22341
|
//#endregion
|
|
22102
22342
|
//#region src/components/table/TableHeaderCell.vue
|
|
22103
22343
|
var TableHeaderCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -22117,7 +22357,7 @@ var TableHeaderCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22117
22357
|
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.column(), props.classNames?.column)),
|
|
22118
22358
|
"data-col-index": __props.columnIndex,
|
|
22119
22359
|
"aria-sort": __props.sortDirection
|
|
22120
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
22360
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$21);
|
|
22121
22361
|
};
|
|
22122
22362
|
}
|
|
22123
22363
|
});
|
|
@@ -22126,7 +22366,7 @@ var TableHeaderCell_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22126
22366
|
var { useProvide: useAvatarGroupProvide, useInject: useAvatarGroupInject, key: avatarGroupContextKey } = createContext("AvatarGroup");
|
|
22127
22367
|
//#endregion
|
|
22128
22368
|
//#region src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
22129
|
-
var _hoisted_1$
|
|
22369
|
+
var _hoisted_1$20 = {
|
|
22130
22370
|
key: 0,
|
|
22131
22371
|
class: /* @__PURE__ */ (0, vue.normalizeClass)("avatar__name text-xs font-medium leading-none")
|
|
22132
22372
|
};
|
|
@@ -22212,7 +22452,7 @@ var Avatar_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22212
22452
|
"alt",
|
|
22213
22453
|
"class"
|
|
22214
22454
|
])) : (0, vue.createCommentVNode)("", true), (0, vue.createVNode)((0, vue.unref)(reka_ui.AvatarFallback), (0, vue.mergeProps)({ class: (0, vue.unref)(composeClassName)(slotFns.value.fallback(), props.classNames?.fallback) }, props.src && !props.showFallback ? { "delay-ms": 600 } : {}), {
|
|
22215
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "fallback", {}, () => [initials.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1$
|
|
22455
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "fallback", {}, () => [initials.value ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1$20, (0, vue.toDisplayString)(initials.value), 1)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_2$11, [..._cache[0] || (_cache[0] = [(0, vue.createElementVNode)("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }, null, -1)])]))])]),
|
|
22216
22456
|
_: 3
|
|
22217
22457
|
}, 16, ["class"])]),
|
|
22218
22458
|
_: 3
|
|
@@ -22225,6 +22465,9 @@ var Avatar_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22225
22465
|
}
|
|
22226
22466
|
});
|
|
22227
22467
|
//#endregion
|
|
22468
|
+
//#region src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
22469
|
+
var _hoisted_1$19 = { class: "avatar__name text-xs font-medium leading-none" };
|
|
22470
|
+
//#endregion
|
|
22228
22471
|
//#region src/components/avatar/AvatarGroup.vue
|
|
22229
22472
|
var AvatarGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
22230
22473
|
__name: "AvatarGroup",
|
|
@@ -22245,7 +22488,8 @@ var AvatarGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22245
22488
|
max: {},
|
|
22246
22489
|
total: {},
|
|
22247
22490
|
renderCount: {},
|
|
22248
|
-
class: {}
|
|
22491
|
+
class: {},
|
|
22492
|
+
avatars: {}
|
|
22249
22493
|
},
|
|
22250
22494
|
setup(__props) {
|
|
22251
22495
|
const props = __props;
|
|
@@ -22258,6 +22502,18 @@ var AvatarGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22258
22502
|
isInGroup: (0, vue.ref)(true)
|
|
22259
22503
|
});
|
|
22260
22504
|
const containerClass = (0, vue.computed)(() => composeClassName("flex items-center flex-row", props.class));
|
|
22505
|
+
const visibleAvatars = (0, vue.computed)(() => {
|
|
22506
|
+
if (!props.avatars) return [];
|
|
22507
|
+
return props.max !== void 0 ? props.avatars.slice(0, props.max) : props.avatars;
|
|
22508
|
+
});
|
|
22509
|
+
const avatarOverflowCount = (0, vue.computed)(() => {
|
|
22510
|
+
if (!props.avatars || props.max === void 0) return 0;
|
|
22511
|
+
return (props.total ?? props.avatars.length) - props.max;
|
|
22512
|
+
});
|
|
22513
|
+
const avatarOverflowLabel = (0, vue.computed)(() => {
|
|
22514
|
+
if (avatarOverflowCount.value <= 0) return "";
|
|
22515
|
+
return props.renderCount ? props.renderCount(avatarOverflowCount.value) : `+${avatarOverflowCount.value}`;
|
|
22516
|
+
});
|
|
22261
22517
|
function flattenVNodes(vnodes) {
|
|
22262
22518
|
const result = [];
|
|
22263
22519
|
for (const vnode of vnodes) if (vnode.type === vue.Fragment && Array.isArray(vnode.children)) result.push(...flattenVNodes(vnode.children));
|
|
@@ -22280,9 +22536,14 @@ var AvatarGroup_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22280
22536
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
22281
22537
|
role: "group",
|
|
22282
22538
|
class: (0, vue.normalizeClass)(containerClass.value)
|
|
22283
|
-
}, [props.
|
|
22539
|
+
}, [props.avatars ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(visibleAvatars.value, (avatar, idx) => {
|
|
22540
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Avatar_default, (0, vue.mergeProps)({ key: idx }, { ref_for: true }, avatar), null, 16);
|
|
22541
|
+
}), 128)), avatarOverflowCount.value > 0 ? ((0, vue.openBlock)(), (0, vue.createBlock)(Avatar_default, { key: 0 }, {
|
|
22542
|
+
fallback: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", _hoisted_1$19, (0, vue.toDisplayString)(avatarOverflowLabel.value), 1)]),
|
|
22543
|
+
_: 1
|
|
22544
|
+
})) : (0, vue.createCommentVNode)("", true)], 64)) : props.max !== void 0 ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(getSlicedNodes(), (node, _i) => {
|
|
22284
22545
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(node), { key: _i });
|
|
22285
|
-
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key:
|
|
22546
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 2 })], 2);
|
|
22286
22547
|
};
|
|
22287
22548
|
}
|
|
22288
22549
|
});
|
|
@@ -22474,74 +22735,8 @@ var SplitterResizeHandle_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22474
22735
|
//#region src/components/stepper/Stepper.context.ts
|
|
22475
22736
|
var stepperContextKey = Symbol("Stepper");
|
|
22476
22737
|
//#endregion
|
|
22477
|
-
//#region src/components/stepper/Stepper.vue?vue&type=script&setup=true&lang.ts
|
|
22478
|
-
var _hoisted_1$18 = ["aria-label"];
|
|
22479
|
-
//#endregion
|
|
22480
|
-
//#region src/components/stepper/Stepper.vue
|
|
22481
|
-
var Stepper_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
22482
|
-
__name: "Stepper",
|
|
22483
|
-
props: {
|
|
22484
|
-
modelValue: { default: void 0 },
|
|
22485
|
-
defaultValue: { default: 1 },
|
|
22486
|
-
totalSteps: { default: 0 },
|
|
22487
|
-
orientation: { default: "horizontal" },
|
|
22488
|
-
size: { default: "md" },
|
|
22489
|
-
color: { default: "accent" },
|
|
22490
|
-
class: {
|
|
22491
|
-
type: [
|
|
22492
|
-
String,
|
|
22493
|
-
Boolean,
|
|
22494
|
-
null,
|
|
22495
|
-
Object,
|
|
22496
|
-
Array
|
|
22497
|
-
],
|
|
22498
|
-
default: void 0
|
|
22499
|
-
},
|
|
22500
|
-
classNames: {}
|
|
22501
|
-
},
|
|
22502
|
-
emits: ["update:modelValue"],
|
|
22503
|
-
setup(__props, { emit: __emit }) {
|
|
22504
|
-
const props = __props;
|
|
22505
|
-
const emit = __emit;
|
|
22506
|
-
const internalStep = (0, vue.ref)(props.defaultValue ?? 1);
|
|
22507
|
-
const currentStep = (0, vue.computed)({
|
|
22508
|
-
get: () => props.modelValue ?? internalStep.value,
|
|
22509
|
-
set: (val) => {
|
|
22510
|
-
internalStep.value = val;
|
|
22511
|
-
emit("update:modelValue", val);
|
|
22512
|
-
}
|
|
22513
|
-
});
|
|
22514
|
-
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.stepperVariants)({
|
|
22515
|
-
orientation: props.orientation,
|
|
22516
|
-
size: props.size,
|
|
22517
|
-
color: props.color
|
|
22518
|
-
}));
|
|
22519
|
-
function getStepStatus(step) {
|
|
22520
|
-
const curr = currentStep.value;
|
|
22521
|
-
if (step < curr) return "completed";
|
|
22522
|
-
if (step === curr) return "current";
|
|
22523
|
-
return "pending";
|
|
22524
|
-
}
|
|
22525
|
-
(0, vue.provide)(stepperContextKey, {
|
|
22526
|
-
currentStep: (0, vue.computed)(() => currentStep.value),
|
|
22527
|
-
orientation: (0, vue.computed)(() => props.orientation ?? "horizontal"),
|
|
22528
|
-
size: (0, vue.computed)(() => props.size ?? "md"),
|
|
22529
|
-
color: (0, vue.computed)(() => props.color ?? "accent"),
|
|
22530
|
-
totalSteps: (0, vue.computed)(() => props.totalSteps),
|
|
22531
|
-
getStepStatus
|
|
22532
|
-
});
|
|
22533
|
-
return (_ctx, _cache) => {
|
|
22534
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
22535
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
22536
|
-
"aria-label": `Step ${currentStep.value} of ${__props.totalSteps}`,
|
|
22537
|
-
"data-slot": "stepper"
|
|
22538
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1$18);
|
|
22539
|
-
};
|
|
22540
|
-
}
|
|
22541
|
-
});
|
|
22542
|
-
//#endregion
|
|
22543
22738
|
//#region src/components/stepper/StepperItem.vue?vue&type=script&setup=true&lang.ts
|
|
22544
|
-
var _hoisted_1$
|
|
22739
|
+
var _hoisted_1$18 = ["data-status", "data-step"];
|
|
22545
22740
|
//#endregion
|
|
22546
22741
|
//#region src/components/stepper/StepperItem.vue
|
|
22547
22742
|
var StepperItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -22581,7 +22776,7 @@ var StepperItem_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22581
22776
|
isCurrent: status.value === "current",
|
|
22582
22777
|
isCompleted: status.value === "completed",
|
|
22583
22778
|
isError: status.value === "error"
|
|
22584
|
-
})], 10, _hoisted_1$
|
|
22779
|
+
})], 10, _hoisted_1$18);
|
|
22585
22780
|
};
|
|
22586
22781
|
}
|
|
22587
22782
|
});
|
|
@@ -22676,6 +22871,36 @@ var StepperDescription_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22676
22871
|
}
|
|
22677
22872
|
});
|
|
22678
22873
|
//#endregion
|
|
22874
|
+
//#region src/components/stepper/StepperSeparator.vue
|
|
22875
|
+
var StepperSeparator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
22876
|
+
__name: "StepperSeparator",
|
|
22877
|
+
props: {
|
|
22878
|
+
class: {
|
|
22879
|
+
type: [
|
|
22880
|
+
String,
|
|
22881
|
+
Boolean,
|
|
22882
|
+
null,
|
|
22883
|
+
Object,
|
|
22884
|
+
Array
|
|
22885
|
+
],
|
|
22886
|
+
default: void 0
|
|
22887
|
+
},
|
|
22888
|
+
classNames: { default: void 0 }
|
|
22889
|
+
},
|
|
22890
|
+
setup(__props) {
|
|
22891
|
+
const props = __props;
|
|
22892
|
+
const ctx = (0, vue.inject)(stepperContextKey);
|
|
22893
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.stepperVariants)({ orientation: ctx?.orientation.value }));
|
|
22894
|
+
return (_ctx, _cache) => {
|
|
22895
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
22896
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.separator(), props.class, props.classNames?.separator)),
|
|
22897
|
+
role: "none",
|
|
22898
|
+
"data-slot": "stepper-separator"
|
|
22899
|
+
}, null, 2);
|
|
22900
|
+
};
|
|
22901
|
+
}
|
|
22902
|
+
});
|
|
22903
|
+
//#endregion
|
|
22679
22904
|
//#region src/components/stepper/StepperContent.vue
|
|
22680
22905
|
var StepperContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
22681
22906
|
__name: "StepperContent",
|
|
@@ -22704,10 +22929,19 @@ var StepperContent_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22704
22929
|
}
|
|
22705
22930
|
});
|
|
22706
22931
|
//#endregion
|
|
22707
|
-
//#region src/components/stepper/
|
|
22708
|
-
var
|
|
22709
|
-
|
|
22932
|
+
//#region src/components/stepper/Stepper.vue?vue&type=script&setup=true&lang.ts
|
|
22933
|
+
var _hoisted_1$17 = ["aria-label"];
|
|
22934
|
+
//#endregion
|
|
22935
|
+
//#region src/components/stepper/Stepper.vue
|
|
22936
|
+
var Stepper_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
22937
|
+
__name: "Stepper",
|
|
22710
22938
|
props: {
|
|
22939
|
+
modelValue: { default: void 0 },
|
|
22940
|
+
defaultValue: { default: 1 },
|
|
22941
|
+
totalSteps: { default: 0 },
|
|
22942
|
+
orientation: { default: "horizontal" },
|
|
22943
|
+
size: { default: "md" },
|
|
22944
|
+
color: { default: "accent" },
|
|
22711
22945
|
class: {
|
|
22712
22946
|
type: [
|
|
22713
22947
|
String,
|
|
@@ -22718,18 +22952,71 @@ var StepperSeparator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
22718
22952
|
],
|
|
22719
22953
|
default: void 0
|
|
22720
22954
|
},
|
|
22721
|
-
classNames: {
|
|
22955
|
+
classNames: {},
|
|
22956
|
+
items: {}
|
|
22722
22957
|
},
|
|
22723
|
-
|
|
22958
|
+
emits: ["update:modelValue"],
|
|
22959
|
+
setup(__props, { emit: __emit }) {
|
|
22724
22960
|
const props = __props;
|
|
22725
|
-
const
|
|
22726
|
-
const
|
|
22961
|
+
const emit = __emit;
|
|
22962
|
+
const internalStep = (0, vue.ref)(props.defaultValue ?? 1);
|
|
22963
|
+
const currentStep = (0, vue.computed)({
|
|
22964
|
+
get: () => props.modelValue ?? internalStep.value,
|
|
22965
|
+
set: (val) => {
|
|
22966
|
+
internalStep.value = val;
|
|
22967
|
+
emit("update:modelValue", val);
|
|
22968
|
+
}
|
|
22969
|
+
});
|
|
22970
|
+
const slotFns = (0, vue.computed)(() => (0, _auronui_styles.stepperVariants)({
|
|
22971
|
+
orientation: props.orientation,
|
|
22972
|
+
size: props.size,
|
|
22973
|
+
color: props.color
|
|
22974
|
+
}));
|
|
22975
|
+
function getStepStatus(step) {
|
|
22976
|
+
const curr = currentStep.value;
|
|
22977
|
+
if (step < curr) return "completed";
|
|
22978
|
+
if (step === curr) return "current";
|
|
22979
|
+
return "pending";
|
|
22980
|
+
}
|
|
22981
|
+
const resolvedTotalSteps = (0, vue.computed)(() => props.items ? props.items.length : props.totalSteps);
|
|
22982
|
+
(0, vue.provide)(stepperContextKey, {
|
|
22983
|
+
currentStep: (0, vue.computed)(() => currentStep.value),
|
|
22984
|
+
orientation: (0, vue.computed)(() => props.orientation ?? "horizontal"),
|
|
22985
|
+
size: (0, vue.computed)(() => props.size ?? "md"),
|
|
22986
|
+
color: (0, vue.computed)(() => props.color ?? "accent"),
|
|
22987
|
+
totalSteps: resolvedTotalSteps,
|
|
22988
|
+
getStepStatus
|
|
22989
|
+
});
|
|
22727
22990
|
return (_ctx, _cache) => {
|
|
22728
22991
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
22729
|
-
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.
|
|
22730
|
-
|
|
22731
|
-
"data-slot": "stepper
|
|
22732
|
-
},
|
|
22992
|
+
class: (0, vue.normalizeClass)((0, vue.unref)(composeClassName)(slotFns.value.base(), props.class, props.classNames?.base)),
|
|
22993
|
+
"aria-label": `Step ${currentStep.value} of ${resolvedTotalSteps.value}`,
|
|
22994
|
+
"data-slot": "stepper"
|
|
22995
|
+
}, [props.items ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, (0, vue.renderList)(props.items, (item, idx) => {
|
|
22996
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(StepperItem_default, {
|
|
22997
|
+
key: idx + 1,
|
|
22998
|
+
step: idx + 1
|
|
22999
|
+
}, {
|
|
23000
|
+
default: (0, vue.withCtx)(() => [
|
|
23001
|
+
(0, vue.createVNode)(StepperIndicator_default, null, {
|
|
23002
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(idx + 1), 1)]),
|
|
23003
|
+
_: 2
|
|
23004
|
+
}, 1024),
|
|
23005
|
+
idx < props.items.length - 1 ? ((0, vue.openBlock)(), (0, vue.createBlock)(StepperSeparator_default, { key: 0 })) : (0, vue.createCommentVNode)("", true),
|
|
23006
|
+
(0, vue.createVNode)(StepperContent_default, null, {
|
|
23007
|
+
default: (0, vue.withCtx)(() => [item.title ? ((0, vue.openBlock)(), (0, vue.createBlock)(StepperTitle_default, { key: 0 }, {
|
|
23008
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.title), 1)]),
|
|
23009
|
+
_: 2
|
|
23010
|
+
}, 1024)) : (0, vue.createCommentVNode)("", true), item.description ? ((0, vue.openBlock)(), (0, vue.createBlock)(StepperDescription_default, { key: 1 }, {
|
|
23011
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.description), 1)]),
|
|
23012
|
+
_: 2
|
|
23013
|
+
}, 1024)) : (0, vue.createCommentVNode)("", true)]),
|
|
23014
|
+
_: 2
|
|
23015
|
+
}, 1024)
|
|
23016
|
+
]),
|
|
23017
|
+
_: 2
|
|
23018
|
+
}, 1032, ["step"]);
|
|
23019
|
+
}), 128)) : (0, vue.renderSlot)(_ctx.$slots, "default", { key: 1 })], 10, _hoisted_1$17);
|
|
22733
23020
|
};
|
|
22734
23021
|
}
|
|
22735
23022
|
});
|