@quirekit/ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{catalog-TxH_u9wJ.mjs → catalog-Dn7izrV5.mjs} +545 -18
- package/dist/catalog-Dn7izrV5.mjs.map +1 -0
- package/dist/{chat-CDuOfk3d.mjs → chat-1THPEdHw.mjs} +6 -6
- package/dist/chat-1THPEdHw.mjs.map +1 -0
- package/dist/chat.d.mts +2 -2
- package/dist/chat.mjs +1 -1
- package/dist/{code-block-5fEEwwMN.mjs → code-block-BLzjRjTb.mjs} +2 -2
- package/dist/{code-block-5fEEwwMN.mjs.map → code-block-BLzjRjTb.mjs.map} +1 -1
- package/dist/{html-sandbox-BJeg9mHs.mjs → html-sandbox-D9a7iXbU.mjs} +2 -2
- package/dist/{html-sandbox-BJeg9mHs.mjs.map → html-sandbox-D9a7iXbU.mjs.map} +1 -1
- package/dist/html-sandbox.mjs +1 -1
- package/dist/{index-BOSlg0Xl.d.mts → index-BkzB7Lb6.d.mts} +279 -6
- package/dist/index-BkzB7Lb6.d.mts.map +1 -0
- package/dist/{index-CtgUjd_A.d.mts → index-FDnUNAX_.d.mts} +27 -27
- package/dist/{index-CtgUjd_A.d.mts.map → index-FDnUNAX_.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{model-DvNHVLwg.mjs → model-BjGYjpa9.mjs} +3 -3
- package/dist/{model-DvNHVLwg.mjs.map → model-BjGYjpa9.mjs.map} +1 -1
- package/dist/{resolve-DlCNcx0Q.mjs → resolve-nFmJOtS9.mjs} +2 -2
- package/dist/{resolve-DlCNcx0Q.mjs.map → resolve-nFmJOtS9.mjs.map} +1 -1
- package/dist/vue.d.mts +180 -172
- package/dist/vue.d.mts.map +1 -1
- package/dist/vue.mjs +155 -62
- package/dist/vue.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/dialog/index.ts +1 -1
- package/src/components/dialog/types.ts +5 -2
- package/src/components/icon/custom/formatting.ts +3 -0
- package/src/components/icon/custom/insert.ts +30 -0
- package/src/components/icon/custom/mind-map.ts +28 -0
- package/src/components/icon/custom.ts +3 -1
- package/src/components/icon/lucide.ts +21 -1
- package/src/components/icon/metadata.ts +277 -0
- package/src/locale/components/icon-catalog/en.ts +86 -2
- package/src/locale/components/icon-catalog/zh-hans.ts +86 -2
- package/src/vue/dialog/content.vue +29 -5
- package/src/vue/dialog/size.test.ts +61 -0
- package/src/vue/scroll-area/scroll-area.test.ts +10 -0
- package/src/vue/scroll-area/scroll-area.vue +1 -1
- package/src/vue/select/select.test.ts +18 -0
- package/src/vue/select/select.vue +3 -0
- package/src/vue/slider/slider.test.ts +13 -0
- package/src/vue/slider/slider.vue +4 -2
- package/src/vue/splitter/splitter.vue +1 -1
- package/src/vue/toolbar/items/body.vue +5 -3
- package/src/vue/toolbar/items/memo.test.ts +49 -0
- package/src/vue/toolbar/items/memo.ts +24 -0
- package/src/vue/toolbar/toolbar-split-button.test.ts +2 -0
- package/src/vue/toolbar/toolbar-split-button.vue +1 -0
- package/dist/catalog-TxH_u9wJ.mjs.map +0 -1
- package/dist/chat-CDuOfk3d.mjs.map +0 -1
- package/dist/index-BOSlg0Xl.d.mts.map +0 -1
package/dist/vue.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as getQuireKitEditorIconGroups, g as resolveQuireKitLocale, h as quireKitDefaultLocale, i as quireKitEditorIconData, t as getQuireKitEditorIconCatalog } from "./catalog-
|
|
2
|
-
import { C as themeVariableReferences, S as resolveQuireKitToolbarVisibleUnits, _ as quireDocumentColorRows, a as createQuireSelectionGesture, b as resolveToolbarNavigationTarget, c as resolveQuireRecentEmojis, d as getQuireKitFileUploadErrorMessage, f as parseQuireColor, h as layoutQuireCommentRail, i as tableQuickGridSize, l as createQuireEmojiCatalog, m as serializeQuireColor, n as moveTableGridSelection, o as createQuireSelectionHandles, r as normalizeTableSize, s as filterQuireEmojis, t as isTableGridCellHighlighted, u as createQuireEmojiGroups, v as resolveQuireKitToolbarEntrySpan, x as resolveToolbarTabStop } from "./model-
|
|
3
|
-
import { a as useQuireKitLocale, c as quireKitIconRegistryKey, i as quireKitLocaleKey, l as _sfc_main$13, n as _sfc_main$39, o as useQuireKitMessages, r as _sfc_main$37, s as _sfc_main$86, t as _sfc_main$38 } from "./code-block-
|
|
4
|
-
import { $ as _sfc_main$34, A as _sfc_main$180, B as useMenuLayerClass, C as _sfc_main$73, Ct as _sfc_main$87, D as _sfc_main$225, E as _sfc_main$226, F as _sfc_main$109, G as _sfc_main$99, H as anchoredSurfaceStyle, I as _sfc_main$108, J as keyLabel, K as _sfc_main$206, L as _sfc_main$110, M as _sfc_main$103, N as _sfc_main$107, O as _sfc_main$224, P as _sfc_main$104, Q as _sfc_main$40, R as _sfc_main$111, S as _sfc_main$4, St as _sfc_main$76, T as _sfc_main$307, U as _sfc_main$105, V as resolveViewportMenuContentStyle, W as _sfc_main$106, X as useFieldLabel, Y as provideFieldLabel, Z as useModalPortal, _ as _sfc_main$35, _t as provideQuireInheritedThemePortals, a as _sfc_main$28, at as useImagePreviewGroup, b as _sfc_main$306, bt as provideQuireOverlayHost, c as _sfc_main$193, ct as _sfc_main$126, d as _sfc_main$25, dt as _sfc_main$91, et as _sfc_main$7, f as _sfc_main$24, ft as quireImagePreviewToolbarPresets, g as _sfc_main$20, gt as _sfc_main$305, h as _sfc_main$21, ht as _sfc_main$303, i as _sfc_main$26, it as useHorizontalScroll, j as guardRadioReadOnlyKey, k as _sfc_main$184, l as _sfc_main$33, lt as _sfc_main$89, m as _sfc_main$19, mt as _sfc_main$63, n as _sfc_main$29, nt as scrollLeftIcon, o as _sfc_main$30, ot as _sfc_main$6, p as _sfc_main$32, pt as useModalSurfaceOwner, q as chordText, r as _sfc_main$23, rt as scrollRightIcon, s as _sfc_main$22, st as _sfc_main$190, t as _sfc_main$27, tt as _sfc_main$304, u as _sfc_main$31, ut as imagePreviewGroupKey, v as assertChoiceValues, vt as quireKitThemeKey, w as _sfc_main$230, x as _sfc_main$15, xt as useQuireOverlayHost, y as useChoiceState, yt as useQuireKitTheme, z as provideSubmenuSiblings } from "./chat-
|
|
5
|
-
import { n as _sfc_main$161, r as _sfc_main$201, t as _sfc_main$85 } from "./html-sandbox-
|
|
1
|
+
import { a as getQuireKitEditorIconGroups, g as resolveQuireKitLocale, h as quireKitDefaultLocale, i as quireKitEditorIconData, t as getQuireKitEditorIconCatalog } from "./catalog-Dn7izrV5.mjs";
|
|
2
|
+
import { C as themeVariableReferences, S as resolveQuireKitToolbarVisibleUnits, _ as quireDocumentColorRows, a as createQuireSelectionGesture, b as resolveToolbarNavigationTarget, c as resolveQuireRecentEmojis, d as getQuireKitFileUploadErrorMessage, f as parseQuireColor, h as layoutQuireCommentRail, i as tableQuickGridSize, l as createQuireEmojiCatalog, m as serializeQuireColor, n as moveTableGridSelection, o as createQuireSelectionHandles, r as normalizeTableSize, s as filterQuireEmojis, t as isTableGridCellHighlighted, u as createQuireEmojiGroups, v as resolveQuireKitToolbarEntrySpan, x as resolveToolbarTabStop } from "./model-BjGYjpa9.mjs";
|
|
3
|
+
import { a as useQuireKitLocale, c as quireKitIconRegistryKey, i as quireKitLocaleKey, l as _sfc_main$13, n as _sfc_main$39, o as useQuireKitMessages, r as _sfc_main$37, s as _sfc_main$86, t as _sfc_main$38 } from "./code-block-BLzjRjTb.mjs";
|
|
4
|
+
import { $ as _sfc_main$34, A as _sfc_main$180, B as useMenuLayerClass, C as _sfc_main$73, Ct as _sfc_main$87, D as _sfc_main$225, E as _sfc_main$226, F as _sfc_main$109, G as _sfc_main$99, H as anchoredSurfaceStyle, I as _sfc_main$108, J as keyLabel, K as _sfc_main$206, L as _sfc_main$110, M as _sfc_main$103, N as _sfc_main$107, O as _sfc_main$224, P as _sfc_main$104, Q as _sfc_main$40, R as _sfc_main$111, S as _sfc_main$4, St as _sfc_main$76, T as _sfc_main$307, U as _sfc_main$105, V as resolveViewportMenuContentStyle, W as _sfc_main$106, X as useFieldLabel, Y as provideFieldLabel, Z as useModalPortal, _ as _sfc_main$35, _t as provideQuireInheritedThemePortals, a as _sfc_main$28, at as useImagePreviewGroup, b as _sfc_main$306, bt as provideQuireOverlayHost, c as _sfc_main$193, ct as _sfc_main$126, d as _sfc_main$25, dt as _sfc_main$91, et as _sfc_main$7, f as _sfc_main$24, ft as quireImagePreviewToolbarPresets, g as _sfc_main$20, gt as _sfc_main$305, h as _sfc_main$21, ht as _sfc_main$303, i as _sfc_main$26, it as useHorizontalScroll, j as guardRadioReadOnlyKey, k as _sfc_main$184, l as _sfc_main$33, lt as _sfc_main$89, m as _sfc_main$19, mt as _sfc_main$63, n as _sfc_main$29, nt as scrollLeftIcon, o as _sfc_main$30, ot as _sfc_main$6, p as _sfc_main$32, pt as useModalSurfaceOwner, q as chordText, r as _sfc_main$23, rt as scrollRightIcon, s as _sfc_main$22, st as _sfc_main$190, t as _sfc_main$27, tt as _sfc_main$304, u as _sfc_main$31, ut as imagePreviewGroupKey, v as assertChoiceValues, vt as quireKitThemeKey, w as _sfc_main$230, x as _sfc_main$15, xt as useQuireOverlayHost, y as useChoiceState, yt as useQuireKitTheme, z as provideSubmenuSiblings } from "./chat-1THPEdHw.mjs";
|
|
5
|
+
import { n as _sfc_main$161, r as _sfc_main$201, t as _sfc_main$85 } from "./html-sandbox-D9a7iXbU.mjs";
|
|
6
6
|
import { ColorPicker, useColorPickerContext } from "@ark-ui/vue/color-picker";
|
|
7
|
-
import { Comment, Fragment, Teleport, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isVNode, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRef, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vShow, watch, watchEffect, watchPostEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
7
|
+
import { Comment, Fragment, Teleport, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isMemoSame, isVNode, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRef, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vShow, watch, watchEffect, watchPostEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
8
8
|
import { ark } from "@ark-ui/vue/factory";
|
|
9
9
|
import { Accordion } from "@ark-ui/vue/accordion";
|
|
10
10
|
import { Dialog, useDialogContext } from "@ark-ui/vue/dialog";
|
|
@@ -245,6 +245,8 @@ const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
|
245
245
|
title: {},
|
|
246
246
|
description: {},
|
|
247
247
|
size: { default: "medium" },
|
|
248
|
+
width: {},
|
|
249
|
+
height: {},
|
|
248
250
|
portalTarget: { default: "body" },
|
|
249
251
|
portalled: {
|
|
250
252
|
type: Boolean,
|
|
@@ -265,9 +267,32 @@ const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
|
265
267
|
errorText: {}
|
|
266
268
|
},
|
|
267
269
|
setup(__props) {
|
|
270
|
+
const props = __props;
|
|
268
271
|
const attrs = useAttrs();
|
|
269
272
|
const text = useQuireKitMessages("dialog");
|
|
270
273
|
const dialog = useDialogContext();
|
|
274
|
+
/** Size modifiers; auto dimensions fall back to the content while the viewport still caps them. */
|
|
275
|
+
const sizeClasses = computed(() => {
|
|
276
|
+
const autoHeight = props.height === "auto" || props.size === "auto" && props.height === void 0;
|
|
277
|
+
const autoWidth = props.size === "auto" && props.width === void 0;
|
|
278
|
+
return [
|
|
279
|
+
`qk-dialog__content--${props.size}`,
|
|
280
|
+
autoHeight && "qk-dialog__content--auto-height",
|
|
281
|
+
autoWidth && "qk-dialog__content--auto-width"
|
|
282
|
+
];
|
|
283
|
+
});
|
|
284
|
+
/** Custom lengths override the preset through the variables the size recipe reads. */
|
|
285
|
+
const sizeStyle = computed(() => ({
|
|
286
|
+
...props.width === void 0 ? {} : { "--qk-dialog-width": cssLength(props.width) },
|
|
287
|
+
...props.height === void 0 || props.height === "auto" ? {} : { "--qk-dialog-height": cssLength(props.height) }
|
|
288
|
+
}));
|
|
289
|
+
/**
|
|
290
|
+
* @param value - Pixel count or CSS length.
|
|
291
|
+
* @returns CSS length.
|
|
292
|
+
*/
|
|
293
|
+
function cssLength(value) {
|
|
294
|
+
return typeof value === "number" ? `${value}px` : value;
|
|
295
|
+
}
|
|
271
296
|
return (_ctx, _cache) => {
|
|
272
297
|
return openBlock(), createBlock(Teleport, {
|
|
273
298
|
to: __props.portalTarget,
|
|
@@ -286,9 +311,10 @@ const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
|
286
311
|
default: withCtx(() => [createVNode(unref(Dialog).Content, mergeProps({ "as-child": "" }, unref(attrs), {
|
|
287
312
|
class: [
|
|
288
313
|
"qk-dialog__content",
|
|
289
|
-
|
|
314
|
+
...sizeClasses.value,
|
|
290
315
|
__props.busy && "qk-dialog__content--busy"
|
|
291
316
|
],
|
|
317
|
+
style: sizeStyle.value,
|
|
292
318
|
"aria-busy": __props.busy || void 0
|
|
293
319
|
}), {
|
|
294
320
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(__props.as), null, {
|
|
@@ -324,7 +350,11 @@ const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
|
324
350
|
_: 3
|
|
325
351
|
}))]),
|
|
326
352
|
_: 3
|
|
327
|
-
}, 16, [
|
|
353
|
+
}, 16, [
|
|
354
|
+
"class",
|
|
355
|
+
"style",
|
|
356
|
+
"aria-busy"
|
|
357
|
+
])]),
|
|
328
358
|
_: 3
|
|
329
359
|
}, 8, ["style", "inert"])]),
|
|
330
360
|
_: 3
|
|
@@ -1904,7 +1934,12 @@ const _sfc_main$301 = /*@__PURE__*/ defineComponent({
|
|
|
1904
1934
|
});
|
|
1905
1935
|
//#endregion
|
|
1906
1936
|
//#region src/vue/select/select.vue
|
|
1907
|
-
const _hoisted_1$170 =
|
|
1937
|
+
const _hoisted_1$170 = {
|
|
1938
|
+
key: 0,
|
|
1939
|
+
class: "qk-select__leading",
|
|
1940
|
+
"aria-hidden": "true"
|
|
1941
|
+
};
|
|
1942
|
+
const _hoisted_2$107 = ["aria-label"];
|
|
1908
1943
|
const _sfc_main$186 = /*@__PURE__*/ defineComponent({
|
|
1909
1944
|
__name: "select",
|
|
1910
1945
|
props: /*@__PURE__*/ mergeModels({
|
|
@@ -2037,23 +2072,27 @@ const _sfc_main$186 = /*@__PURE__*/ defineComponent({
|
|
|
2037
2072
|
style: { "width": "100%" },
|
|
2038
2073
|
class: normalizeClass(["qk-select__trigger", `qk-select__trigger--${__props.size}`])
|
|
2039
2074
|
}, {
|
|
2040
|
-
default: withCtx(() => [
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2075
|
+
default: withCtx(() => [
|
|
2076
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("span", _hoisted_1$170, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
|
|
2077
|
+
createVNode(unref(Select).ValueText, {
|
|
2078
|
+
placeholder: __props.placeholder ?? unref(text).placeholder,
|
|
2079
|
+
class: "qk-select__value"
|
|
2080
|
+
}, null, 8, ["placeholder"]),
|
|
2081
|
+
createVNode(unref(Select).Indicator, { class: "qk-select__indicator" }, {
|
|
2082
|
+
default: withCtx(() => [createVNode(_sfc_main$86, {
|
|
2083
|
+
name: "chevronDown",
|
|
2084
|
+
size: 16
|
|
2085
|
+
})]),
|
|
2086
|
+
_: 1
|
|
2087
|
+
})
|
|
2088
|
+
]),
|
|
2089
|
+
_: 3
|
|
2051
2090
|
}, 8, [
|
|
2052
2091
|
"aria-label",
|
|
2053
2092
|
"data-variant",
|
|
2054
2093
|
"class"
|
|
2055
2094
|
])]),
|
|
2056
|
-
_:
|
|
2095
|
+
_: 3
|
|
2057
2096
|
}),
|
|
2058
2097
|
(openBlock(), createBlock(Teleport, {
|
|
2059
2098
|
to: unref(portal).target.value,
|
|
@@ -2088,7 +2127,7 @@ const _sfc_main$186 = /*@__PURE__*/ defineComponent({
|
|
|
2088
2127
|
key: 0,
|
|
2089
2128
|
class: "qk-select__item-shortcut",
|
|
2090
2129
|
"aria-label": unref(keyLabel)(item.shortcut)
|
|
2091
|
-
}, toDisplayString(unref(chordText)(item.shortcut)), 9,
|
|
2130
|
+
}, toDisplayString(unref(chordText)(item.shortcut)), 9, _hoisted_2$107)) : createCommentVNode("v-if", true),
|
|
2092
2131
|
createVNode(unref(Select).ItemIndicator, { class: "qk-select__item-indicator" }, {
|
|
2093
2132
|
default: withCtx(() => [createVNode(_sfc_main$86, {
|
|
2094
2133
|
name: "check",
|
|
@@ -2132,7 +2171,7 @@ const _sfc_main$186 = /*@__PURE__*/ defineComponent({
|
|
|
2132
2171
|
//#endregion
|
|
2133
2172
|
//#region src/vue/color-picker/color-editor.vue
|
|
2134
2173
|
const _hoisted_1$169 = ["aria-label"];
|
|
2135
|
-
const _hoisted_2$
|
|
2174
|
+
const _hoisted_2$106 = {
|
|
2136
2175
|
key: 0,
|
|
2137
2176
|
class: "qk-color-picker__editor-header"
|
|
2138
2177
|
};
|
|
@@ -2210,7 +2249,7 @@ const _sfc_main$41 = /*@__PURE__*/ defineComponent({
|
|
|
2210
2249
|
class: "qk-color-picker__editor",
|
|
2211
2250
|
"aria-label": __props.label ?? unref(text).editor
|
|
2212
2251
|
}, [
|
|
2213
|
-
__props.showBack ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2252
|
+
__props.showBack ? (openBlock(), createElementBlock("div", _hoisted_2$106, [createElementVNode("button", {
|
|
2214
2253
|
type: "button",
|
|
2215
2254
|
class: "qk-color-picker__back",
|
|
2216
2255
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("back"))
|
|
@@ -2309,7 +2348,7 @@ const _sfc_main$41 = /*@__PURE__*/ defineComponent({
|
|
|
2309
2348
|
//#endregion
|
|
2310
2349
|
//#region src/vue/color-picker/color-palette.vue
|
|
2311
2350
|
const _hoisted_1$168 = ["aria-label", "data-reset-active"];
|
|
2312
|
-
const _hoisted_2$
|
|
2351
|
+
const _hoisted_2$105 = {
|
|
2313
2352
|
class: "qk-color-picker__current",
|
|
2314
2353
|
role: "status"
|
|
2315
2354
|
};
|
|
@@ -2404,7 +2443,7 @@ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
|
|
|
2404
2443
|
style: normalizeStyle({ "--qk-color-picker-columns": paletteColumns.value }),
|
|
2405
2444
|
"data-reset-active": __props.resetActive ? "true" : "false"
|
|
2406
2445
|
}, [
|
|
2407
|
-
createElementVNode("div", _hoisted_2$
|
|
2446
|
+
createElementVNode("div", _hoisted_2$105, [__props.resetActive ? (openBlock(), createElementBlock("span", _hoisted_3$80)) : (openBlock(), createBlock(unref(ColorPicker).ValueSwatch, {
|
|
2408
2447
|
key: 1,
|
|
2409
2448
|
"respect-alpha": "",
|
|
2410
2449
|
class: normalizeClass(["qk-color-picker__current-swatch", isWhiteColor(currentColor.value) && "qk-color-picker__swatch--white"])
|
|
@@ -2919,7 +2958,7 @@ const _sfc_main$43 = /*@__PURE__*/ defineComponent({
|
|
|
2919
2958
|
//#endregion
|
|
2920
2959
|
//#region src/vue/field/field.vue
|
|
2921
2960
|
const _hoisted_1$166 = { class: "qk-field__header" };
|
|
2922
|
-
const _hoisted_2$
|
|
2961
|
+
const _hoisted_2$104 = {
|
|
2923
2962
|
key: 0,
|
|
2924
2963
|
class: "qk-field__meta"
|
|
2925
2964
|
};
|
|
@@ -3033,7 +3072,7 @@ const _sfc_main$74 = /*@__PURE__*/ defineComponent({
|
|
|
3033
3072
|
_: 1
|
|
3034
3073
|
})) : createCommentVNode("v-if", true)]),
|
|
3035
3074
|
_: 1
|
|
3036
|
-
}), _ctx.$slots.meta ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3075
|
+
}), _ctx.$slots.meta ? (openBlock(), createElementBlock("span", _hoisted_2$104, [renderSlot(_ctx.$slots, "meta")])) : createCommentVNode("v-if", true)]),
|
|
3037
3076
|
createVNode(unref(Field).Context, null, {
|
|
3038
3077
|
default: withCtx((field) => [renderSlot(_ctx.$slots, "default", {
|
|
3039
3078
|
controlProps: controlProps(field),
|
|
@@ -3276,7 +3315,7 @@ function useFormController(props, root, emit) {
|
|
|
3276
3315
|
//#endregion
|
|
3277
3316
|
//#region src/vue/form/form.vue
|
|
3278
3317
|
const _hoisted_1$165 = ["aria-busy"];
|
|
3279
|
-
const _hoisted_2$
|
|
3318
|
+
const _hoisted_2$103 = {
|
|
3280
3319
|
key: 0,
|
|
3281
3320
|
class: "qk-form__error",
|
|
3282
3321
|
role: "alert"
|
|
@@ -3329,7 +3368,7 @@ const _sfc_main$80 = /*@__PURE__*/ defineComponent({
|
|
|
3329
3368
|
onReset: _cache[1] || (_cache[1] = withModifiers(($event) => unref(form).resetForm(), ["prevent"]))
|
|
3330
3369
|
}, [
|
|
3331
3370
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(state))),
|
|
3332
|
-
state.submitError ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3371
|
+
state.submitError ? (openBlock(), createElementBlock("div", _hoisted_2$103, [renderSlot(_ctx.$slots, "error", normalizeProps(guardReactiveProps(state)), () => [createTextVNode(toDisplayString(state.submitError), 1)])])) : createCommentVNode("v-if", true),
|
|
3333
3372
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_3$78, [renderSlot(_ctx.$slots, "actions", normalizeProps(guardReactiveProps(state)))])) : createCommentVNode("v-if", true)
|
|
3334
3373
|
], 40, _hoisted_1$165);
|
|
3335
3374
|
};
|
|
@@ -3580,7 +3619,7 @@ const _hoisted_1$163 = {
|
|
|
3580
3619
|
key: 1,
|
|
3581
3620
|
class: "qk-fieldset__legend-label"
|
|
3582
3621
|
};
|
|
3583
|
-
const _hoisted_2$
|
|
3622
|
+
const _hoisted_2$102 = {
|
|
3584
3623
|
key: 2,
|
|
3585
3624
|
class: "qk-fieldset__meta"
|
|
3586
3625
|
};
|
|
@@ -3632,7 +3671,7 @@ const _sfc_main$75 = /*@__PURE__*/ defineComponent({
|
|
|
3632
3671
|
]
|
|
3633
3672
|
}), {
|
|
3634
3673
|
default: withCtx(() => [createVNode(unref(Fieldset).Legend, { class: normalizeClass([__props.legendHidden ? "qk-fieldset__legend--hidden" : "qk-fieldset__legend"]) }, {
|
|
3635
|
-
default: withCtx(() => [__props.legendHidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(__props.legend), 1)], 64)) : (openBlock(), createElementBlock("span", _hoisted_1$163, [renderSlot(_ctx.$slots, "legend", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(__props.legend), 1)])])), !__props.legendHidden && _ctx.$slots.meta ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3674
|
+
default: withCtx(() => [__props.legendHidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(__props.legend), 1)], 64)) : (openBlock(), createElementBlock("span", _hoisted_1$163, [renderSlot(_ctx.$slots, "legend", normalizeProps(guardReactiveProps(slotProps.value)), () => [createTextVNode(toDisplayString(__props.legend), 1)])])), !__props.legendHidden && _ctx.$slots.meta ? (openBlock(), createElementBlock("span", _hoisted_2$102, [renderSlot(_ctx.$slots, "meta", normalizeProps(guardReactiveProps(slotProps.value)))])) : createCommentVNode("v-if", true)]),
|
|
3636
3675
|
_: 3
|
|
3637
3676
|
}, 8, ["class"]), createElementVNode("div", _hoisted_3$77, [
|
|
3638
3677
|
__props.description && !__props.invalid ? (openBlock(), createBlock(unref(Fieldset).HelperText, {
|
|
@@ -3736,7 +3775,7 @@ const _hoisted_1$162 = {
|
|
|
3736
3775
|
class: "qk-input__adornment",
|
|
3737
3776
|
"data-slot": "leading"
|
|
3738
3777
|
};
|
|
3739
|
-
const _hoisted_2$
|
|
3778
|
+
const _hoisted_2$101 = {
|
|
3740
3779
|
key: 2,
|
|
3741
3780
|
class: "qk-input__adornment",
|
|
3742
3781
|
"data-slot": "trailing"
|
|
@@ -3922,7 +3961,7 @@ const _sfc_main$93 = /*@__PURE__*/ defineComponent({
|
|
|
3922
3961
|
})]),
|
|
3923
3962
|
_: 1
|
|
3924
3963
|
}, 8, ["aria-label"])) : createCommentVNode("v-if", true),
|
|
3925
|
-
_ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3964
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("span", _hoisted_2$101, [renderSlot(_ctx.$slots, "trailing")])) : createCommentVNode("v-if", true)
|
|
3926
3965
|
], 6);
|
|
3927
3966
|
};
|
|
3928
3967
|
}
|
|
@@ -4258,7 +4297,7 @@ const _sfc_main$298 = /*@__PURE__*/ defineComponent({
|
|
|
4258
4297
|
//#endregion
|
|
4259
4298
|
//#region src/vue/file-upload/file-list.vue
|
|
4260
4299
|
const _hoisted_1$161 = ["data-layout"];
|
|
4261
|
-
const _hoisted_2$
|
|
4300
|
+
const _hoisted_2$100 = {
|
|
4262
4301
|
class: "qk-file-upload__preview",
|
|
4263
4302
|
"aria-hidden": "true"
|
|
4264
4303
|
};
|
|
@@ -4316,7 +4355,7 @@ const _sfc_main$78 = /*@__PURE__*/ defineComponent({
|
|
|
4316
4355
|
sizeText: unref(fileUpload).getFileSize(file),
|
|
4317
4356
|
remove: () => remove(file, "accepted")
|
|
4318
4357
|
}, () => [
|
|
4319
|
-
createElementVNode("div", _hoisted_2$
|
|
4358
|
+
createElementVNode("div", _hoisted_2$100, [createVNode(_sfc_main$76, {
|
|
4320
4359
|
name: file.name,
|
|
4321
4360
|
"media-type": file.type,
|
|
4322
4361
|
size: 28
|
|
@@ -4416,7 +4455,7 @@ const _hoisted_1$160 = {
|
|
|
4416
4455
|
class: "qk-file-upload__required",
|
|
4417
4456
|
"aria-hidden": "true"
|
|
4418
4457
|
};
|
|
4419
|
-
const _hoisted_2$
|
|
4458
|
+
const _hoisted_2$99 = {
|
|
4420
4459
|
class: "qk-file-upload__dropzone-icon",
|
|
4421
4460
|
"aria-hidden": "true"
|
|
4422
4461
|
};
|
|
@@ -4583,7 +4622,7 @@ const _sfc_main$77 = /*@__PURE__*/ defineComponent({
|
|
|
4583
4622
|
maxFilesReached: fileUpload.maxFilesReached,
|
|
4584
4623
|
remainingFiles: fileUpload.remainingFiles
|
|
4585
4624
|
}, () => [
|
|
4586
|
-
createElementVNode("span", _hoisted_2$
|
|
4625
|
+
createElementVNode("span", _hoisted_2$99, [createVNode(_sfc_main$86, {
|
|
4587
4626
|
name: "upload",
|
|
4588
4627
|
size: 20
|
|
4589
4628
|
})]),
|
|
@@ -4885,7 +4924,7 @@ const _hoisted_1$159 = [
|
|
|
4885
4924
|
"aria-describedby",
|
|
4886
4925
|
"aria-busy"
|
|
4887
4926
|
];
|
|
4888
|
-
const _hoisted_2$
|
|
4927
|
+
const _hoisted_2$98 = { class: "qk-inspector__header" };
|
|
4889
4928
|
const _hoisted_3$74 = { class: "qk-inspector__heading" };
|
|
4890
4929
|
const _hoisted_4$56 = ["id"];
|
|
4891
4930
|
const _hoisted_5$45 = ["id"];
|
|
@@ -4986,7 +5025,7 @@ const _sfc_main$96 = /*@__PURE__*/ defineComponent({
|
|
|
4986
5025
|
props.disabled && "qk-inspector--disabled"
|
|
4987
5026
|
])
|
|
4988
5027
|
}, [
|
|
4989
|
-
createElementVNode("header", _hoisted_2$
|
|
5028
|
+
createElementVNode("header", _hoisted_2$98, [createElementVNode("div", _hoisted_3$74, [renderSlot(_ctx.$slots, "heading", {}, () => [createElementVNode("h2", {
|
|
4990
5029
|
id: titleId.value,
|
|
4991
5030
|
class: "qk-inspector__title"
|
|
4992
5031
|
}, toDisplayString(__props.title), 9, _hoisted_4$56)]), props.description ? (openBlock(), createElementBlock("p", {
|
|
@@ -5009,7 +5048,7 @@ const _sfc_main$96 = /*@__PURE__*/ defineComponent({
|
|
|
5009
5048
|
//#endregion
|
|
5010
5049
|
//#region src/vue/inspector/section.vue
|
|
5011
5050
|
const _hoisted_1$158 = ["id", "aria-labelledby"];
|
|
5012
|
-
const _hoisted_2$
|
|
5051
|
+
const _hoisted_2$97 = { class: "qk-inspector__section-header" };
|
|
5013
5052
|
const _hoisted_3$73 = { class: "qk-inspector__section-heading" };
|
|
5014
5053
|
const _hoisted_4$55 = ["id"];
|
|
5015
5054
|
const _hoisted_5$44 = {
|
|
@@ -5044,7 +5083,7 @@ const _sfc_main$97 = /*@__PURE__*/ defineComponent({
|
|
|
5044
5083
|
class: "qk-inspector__section",
|
|
5045
5084
|
"aria-labelledby": titleId.value
|
|
5046
5085
|
}, [
|
|
5047
|
-
createElementVNode("header", _hoisted_2$
|
|
5086
|
+
createElementVNode("header", _hoisted_2$97, [createElementVNode("span", _hoisted_3$73, [createElementVNode("h3", {
|
|
5048
5087
|
id: titleId.value,
|
|
5049
5088
|
class: "qk-inspector__section-title"
|
|
5050
5089
|
}, toDisplayString(__props.title), 9, _hoisted_4$55), __props.statusText ? (openBlock(), createElementBlock("span", _hoisted_5$44, toDisplayString(__props.statusText), 1)) : createCommentVNode("v-if", true)]), _ctx.$slots.actions ? (openBlock(), createElementBlock("span", _hoisted_6$38, [renderSlot(_ctx.$slots, "actions")])) : createCommentVNode("v-if", true)]),
|
|
@@ -5488,7 +5527,7 @@ const _hoisted_1$156 = {
|
|
|
5488
5527
|
key: 1,
|
|
5489
5528
|
class: "qk-pagination__jumper"
|
|
5490
5529
|
};
|
|
5491
|
-
const _hoisted_2$
|
|
5530
|
+
const _hoisted_2$96 = { key: 0 };
|
|
5492
5531
|
const _hoisted_3$72 = { key: 1 };
|
|
5493
5532
|
const _sfc_main$296 = /*@__PURE__*/ defineComponent({
|
|
5494
5533
|
__name: "options",
|
|
@@ -5563,7 +5602,7 @@ const _sfc_main$296 = /*@__PURE__*/ defineComponent({
|
|
|
5563
5602
|
"size",
|
|
5564
5603
|
"disabled"
|
|
5565
5604
|
])) : (openBlock(), createElementBlock("div", _hoisted_1$156, [
|
|
5566
|
-
unref(text).jumpPrefix ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5605
|
+
unref(text).jumpPrefix ? (openBlock(), createElementBlock("span", _hoisted_2$96, toDisplayString(unref(text).jumpPrefix), 1)) : createCommentVNode("v-if", true),
|
|
5567
5606
|
createVNode(_sfc_main$93, {
|
|
5568
5607
|
modelValue: draft.value,
|
|
5569
5608
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => draft.value = $event),
|
|
@@ -5595,7 +5634,7 @@ const _hoisted_1$155 = {
|
|
|
5595
5634
|
class: "qk-pagination__spacer",
|
|
5596
5635
|
"aria-hidden": "true"
|
|
5597
5636
|
};
|
|
5598
|
-
const _hoisted_2$
|
|
5637
|
+
const _hoisted_2$95 = {
|
|
5599
5638
|
key: 1,
|
|
5600
5639
|
class: "qk-pagination__controls"
|
|
5601
5640
|
};
|
|
@@ -5725,7 +5764,7 @@ const _sfc_main$114 = /*@__PURE__*/ defineComponent({
|
|
|
5725
5764
|
}), {
|
|
5726
5765
|
default: withCtx(() => [createVNode(unref(Pagination).Context, null, {
|
|
5727
5766
|
default: withCtx((pagination) => [(openBlock(true), createElementBlock(Fragment, null, renderList(layoutGroups.value, (group) => {
|
|
5728
|
-
return openBlock(), createElementBlock(Fragment, { key: group.join("-") }, [group[0] === "spacer" ? (openBlock(), createElementBlock("span", _hoisted_1$155)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5767
|
+
return openBlock(), createElementBlock(Fragment, { key: group.join("-") }, [group[0] === "spacer" ? (openBlock(), createElementBlock("span", _hoisted_1$155)) : (openBlock(), createElementBlock("div", _hoisted_2$95, [(openBlock(true), createElementBlock(Fragment, null, renderList(group, (part) => {
|
|
5729
5768
|
return openBlock(), createElementBlock(Fragment, { key: part }, [part === "summary" || part === "range" ? renderSlot(_ctx.$slots, part, {
|
|
5730
5769
|
page: pagination.page,
|
|
5731
5770
|
totalPages: pagination.totalPages,
|
|
@@ -6163,7 +6202,7 @@ const _sfc_main$123 = /*@__PURE__*/ defineComponent({
|
|
|
6163
6202
|
//#endregion
|
|
6164
6203
|
//#region src/vue/splitter/splitter.vue
|
|
6165
6204
|
const _hoisted_1$154 = { class: "qk-splitter-frame" };
|
|
6166
|
-
const _hoisted_2$
|
|
6205
|
+
const _hoisted_2$94 = { class: "qk-splitter__panel-label" };
|
|
6167
6206
|
const _sfc_main$195 = /*@__PURE__*/ defineComponent({
|
|
6168
6207
|
__name: "splitter",
|
|
6169
6208
|
props: /*@__PURE__*/ mergeModels({
|
|
@@ -6344,7 +6383,7 @@ const _sfc_main$195 = /*@__PURE__*/ defineComponent({
|
|
|
6344
6383
|
panel,
|
|
6345
6384
|
index,
|
|
6346
6385
|
size: unref(splitter).getPanelSize(panel.id)
|
|
6347
|
-
}, () => [createElementVNode("span", _hoisted_2$
|
|
6386
|
+
}, () => [createElementVNode("span", _hoisted_2$94, toDisplayString(panel.label ?? panel.id), 1)])]),
|
|
6348
6387
|
_: 2
|
|
6349
6388
|
}, 1032, ["id"]), index < __props.panels.length - 1 ? (openBlock(), createBlock(unref(Splitter).ResizeTrigger, {
|
|
6350
6389
|
key: 0,
|
|
@@ -6484,8 +6523,10 @@ const _sfc_main$185 = /*@__PURE__*/ defineComponent({
|
|
|
6484
6523
|
});
|
|
6485
6524
|
//#endregion
|
|
6486
6525
|
//#region src/vue/slider/slider.vue
|
|
6487
|
-
const _hoisted_1$153 = {
|
|
6488
|
-
|
|
6526
|
+
const _hoisted_1$153 = {
|
|
6527
|
+
key: 0,
|
|
6528
|
+
class: "qk-slider__header"
|
|
6529
|
+
};
|
|
6489
6530
|
const _sfc_main$192 = /*@__PURE__*/ defineComponent({
|
|
6490
6531
|
__name: "slider",
|
|
6491
6532
|
props: /*@__PURE__*/ mergeModels({
|
|
@@ -6503,6 +6544,7 @@ const _sfc_main$192 = /*@__PURE__*/ defineComponent({
|
|
|
6503
6544
|
type: Boolean,
|
|
6504
6545
|
default: true
|
|
6505
6546
|
},
|
|
6547
|
+
hideLabel: { type: Boolean },
|
|
6506
6548
|
unit: { default: "" },
|
|
6507
6549
|
name: {},
|
|
6508
6550
|
form: {},
|
|
@@ -6557,13 +6599,13 @@ const _sfc_main$192 = /*@__PURE__*/ defineComponent({
|
|
|
6557
6599
|
class: ["qk-slider", `qk-slider--${__props.orientation}`],
|
|
6558
6600
|
"onUpdate:modelValue": updateValues
|
|
6559
6601
|
}), {
|
|
6560
|
-
default: withCtx(() => [
|
|
6602
|
+
default: withCtx(() => [!__props.hideLabel || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$153, [createElementVNode("span", { class: normalizeClass(["qk-slider__label", __props.hideLabel && "sr-only"]) }, toDisplayString(__props.label), 3), __props.showValue ? (openBlock(), createBlock(unref(Slider).ValueText, {
|
|
6561
6603
|
key: 0,
|
|
6562
6604
|
class: "qk-slider__value"
|
|
6563
6605
|
}, {
|
|
6564
6606
|
default: withCtx(() => [createTextVNode(toDisplayString(currentValues.value.join(" – ")) + toDisplayString(__props.unit), 1)]),
|
|
6565
6607
|
_: 1
|
|
6566
|
-
})) : createCommentVNode("v-if", true)]), createVNode(unref(Slider).Control, {
|
|
6608
|
+
})) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createVNode(unref(Slider).Control, {
|
|
6567
6609
|
"data-readonly": __props.readOnly ? "" : void 0,
|
|
6568
6610
|
class: "qk-slider__control"
|
|
6569
6611
|
}, {
|
|
@@ -7615,7 +7657,11 @@ const _sfc_main$217 = /*@__PURE__*/ defineComponent({
|
|
|
7615
7657
|
});
|
|
7616
7658
|
//#endregion
|
|
7617
7659
|
//#region src/vue/toolbar/toolbar-split-button.vue
|
|
7618
|
-
const _hoisted_1$144 = [
|
|
7660
|
+
const _hoisted_1$144 = [
|
|
7661
|
+
"aria-label",
|
|
7662
|
+
"data-state",
|
|
7663
|
+
"data-pressed"
|
|
7664
|
+
];
|
|
7619
7665
|
const _hoisted_2$87 = [
|
|
7620
7666
|
"type",
|
|
7621
7667
|
"aria-label",
|
|
@@ -7719,6 +7765,7 @@ const _sfc_main$222 = /*@__PURE__*/ defineComponent({
|
|
|
7719
7765
|
role: "group",
|
|
7720
7766
|
"aria-label": __props.label,
|
|
7721
7767
|
"data-state": expanded.value ? "open" : "closed",
|
|
7768
|
+
"data-pressed": __props.pressed === true || __props.pressed === "mixed" ? "" : void 0,
|
|
7722
7769
|
class: "qk-toolbar__split",
|
|
7723
7770
|
"data-kind": "split-button"
|
|
7724
7771
|
}, [createVNode(_sfc_main$295, {
|
|
@@ -9645,6 +9692,33 @@ function regroup(slots) {
|
|
|
9645
9692
|
return entries;
|
|
9646
9693
|
}
|
|
9647
9694
|
//#endregion
|
|
9695
|
+
//#region src/vue/toolbar/items/memo.ts
|
|
9696
|
+
/**
|
|
9697
|
+
* Whether an entry hands the host context to what it draws: custom renderers and popup bodies receive it in their
|
|
9698
|
+
* scope, while plain actions, toggles and separators draw from the entry alone.
|
|
9699
|
+
* @param entry - Configured entry.
|
|
9700
|
+
* @returns Whether the entry, or one of its group children, reads the context.
|
|
9701
|
+
*/
|
|
9702
|
+
function entryReadsContext(entry) {
|
|
9703
|
+
if (entry.kind === "group") return (entry.children ?? []).some(entryReadsContext);
|
|
9704
|
+
return entry.kind !== void 0 && entry.kind !== "action" && entry.kind !== "toggle" && entry.kind !== "separator";
|
|
9705
|
+
}
|
|
9706
|
+
/**
|
|
9707
|
+
* What one top-level entry's rendering depends on, for `v-memo`: an entry the host kept by identity is not patched
|
|
9708
|
+
* again when other entries or a context it does not read change.
|
|
9709
|
+
* @param entry - Configured entry.
|
|
9710
|
+
* @param context - Host context.
|
|
9711
|
+
* @param shared - Values every entry depends on, such as renderers, slots and layout mode.
|
|
9712
|
+
* @returns Memo dependencies.
|
|
9713
|
+
*/
|
|
9714
|
+
function entryMemo(entry, context, shared) {
|
|
9715
|
+
return [
|
|
9716
|
+
entry,
|
|
9717
|
+
entryReadsContext(entry) ? context : void 0,
|
|
9718
|
+
...shared
|
|
9719
|
+
];
|
|
9720
|
+
}
|
|
9721
|
+
//#endregion
|
|
9648
9722
|
//#region src/vue/toolbar/items/body.vue
|
|
9649
9723
|
const _hoisted_1$142 = ["data-qk-toolbar-unit"];
|
|
9650
9724
|
const _hoisted_2$85 = ["data-qk-toolbar-unit"];
|
|
@@ -9662,8 +9736,15 @@ const _sfc_main$289 = /*@__PURE__*/ defineComponent({
|
|
|
9662
9736
|
setup(__props, { emit: __emit }) {
|
|
9663
9737
|
const emit = __emit;
|
|
9664
9738
|
return (_ctx, _cache) => {
|
|
9665
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" One keyed anatomy retains open/focused controls across overflow modes.\n Only collapse wrappers create boxes; other single-row modes flatten them. "), __props.rows === void 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList((__props.items ?? []).filter((entry) => !entry.hidden), (item) => {
|
|
9666
|
-
|
|
9739
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" One keyed anatomy retains open/focused controls across overflow modes.\n Only collapse wrappers create boxes; other single-row modes flatten them.\n v-memo skips entries the host kept by identity, so a change to a few entries patches only those. "), __props.rows === void 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList((__props.items ?? []).filter((entry) => !entry.hidden), (item, __, ___, _cached) => {
|
|
9740
|
+
const _memo = unref(entryMemo)(item, __props.context, [
|
|
9741
|
+
__props.units,
|
|
9742
|
+
__props.renderers,
|
|
9743
|
+
_ctx.$slots.item,
|
|
9744
|
+
_ctx.$slots.content
|
|
9745
|
+
]);
|
|
9746
|
+
if (_cached && _cached.el && _cached.key === item.value && isMemoSame(_cached, _memo)) return _cached;
|
|
9747
|
+
const _item = (openBlock(), createElementBlock(Fragment, { key: item.value }, [item.kind === "group" ? (openBlock(), createBlock(_sfc_main$219, {
|
|
9667
9748
|
key: 0,
|
|
9668
9749
|
label: item.label
|
|
9669
9750
|
}, {
|
|
@@ -9721,9 +9802,19 @@ const _sfc_main$289 = /*@__PURE__*/ defineComponent({
|
|
|
9721
9802
|
"items",
|
|
9722
9803
|
"context",
|
|
9723
9804
|
"renderers"
|
|
9724
|
-
])], 14, _hoisted_2$85))], 64);
|
|
9725
|
-
|
|
9726
|
-
return
|
|
9805
|
+
])], 14, _hoisted_2$85))], 64));
|
|
9806
|
+
_item.memo = _memo;
|
|
9807
|
+
return _item;
|
|
9808
|
+
}, _cache, 4), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.rows, (row, __, ___, _cached) => {
|
|
9809
|
+
const _memo = [
|
|
9810
|
+
row,
|
|
9811
|
+
row.items.some(unref(entryReadsContext)) ? __props.context : void 0,
|
|
9812
|
+
__props.renderers,
|
|
9813
|
+
_ctx.$slots.item,
|
|
9814
|
+
_ctx.$slots.content
|
|
9815
|
+
];
|
|
9816
|
+
if (_cached && _cached.el && _cached.key === row.value && isMemoSame(_cached, _memo)) return _cached;
|
|
9817
|
+
const _item = (openBlock(), createElementBlock(Fragment, { key: row.value }, [!row.hidden && row.items.some((item) => !item.hidden) ? (openBlock(), createElementBlock("div", {
|
|
9727
9818
|
key: 0,
|
|
9728
9819
|
role: "group",
|
|
9729
9820
|
"aria-label": row.label,
|
|
@@ -9735,8 +9826,8 @@ const _sfc_main$289 = /*@__PURE__*/ defineComponent({
|
|
|
9735
9826
|
disabled: row.disabled ?? false,
|
|
9736
9827
|
context: __props.context,
|
|
9737
9828
|
renderers: __props.renderers,
|
|
9738
|
-
onExecute: _cache[
|
|
9739
|
-
onOpenChange: _cache[
|
|
9829
|
+
onExecute: _cache[6] || (_cache[6] = ($event) => emit("execute", $event)),
|
|
9830
|
+
onOpenChange: _cache[7] || (_cache[7] = ($event) => emit("openChange", $event))
|
|
9740
9831
|
}, createSlots({ _: 2 }, [_ctx.$slots.item ? {
|
|
9741
9832
|
name: "item",
|
|
9742
9833
|
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, scope))]),
|
|
@@ -9751,8 +9842,10 @@ const _sfc_main$289 = /*@__PURE__*/ defineComponent({
|
|
|
9751
9842
|
"disabled",
|
|
9752
9843
|
"context",
|
|
9753
9844
|
"renderers"
|
|
9754
|
-
])], 8, _hoisted_3$62)) : createCommentVNode("v-if", true)], 64);
|
|
9755
|
-
|
|
9845
|
+
])], 8, _hoisted_3$62)) : createCommentVNode("v-if", true)], 64));
|
|
9846
|
+
_item.memo = _memo;
|
|
9847
|
+
return _item;
|
|
9848
|
+
}, _cache, 8), 128))], 2112);
|
|
9756
9849
|
};
|
|
9757
9850
|
}
|
|
9758
9851
|
});
|