@astryx-vue/core 0.16.5 → 0.18.0
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/AppShell/index.d.ts +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Dk9BQQbT.js → Collapsible-ExzU7vC0.js} +104 -40
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-mNR6dV0B.js → CommandPalette-CECjNvGB.js} +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CR9XbpTa.js → ComplexSelector-Dmaag1wm.js} +5 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-ChGin5zS.js → DateTimeInput-Cfkuec_h.js} +1 -1
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Field/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-7rA65NO7.js → InternationalizationProvider-Dr5GE6f0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BNVd70jg.js → Markdown-DnnWjJGX.js} +1 -1
- package/dist/{MediaTheme-Bkj-_DFN.js → MediaTheme-DfcdEWx-.js} +2 -36
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CXX1Hsty.js → MultiSelector-BK6nZweN.js} +26 -14
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BvZFvwso.js → Pagination-DFQNX_Mb.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BiupstfT.js → PowerSearch-BAOqpQag.js} +10 -10
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DiSLNzl8.js → Selector-Bo7qkt1P.js} +157 -62
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-BD8MugZo.js → Table-iemur_3E.js} +378 -7
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/{Theme-8bDq2nud.js → Theme-1RJVaRgz.js} +329 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CzbqvHDN.js → Toast-D4Q6wvYu.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-mu0Sak58.js → Tokenizer-CsFiYUJ_.js} +171 -103
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CNj4KnHH.js → TreeList-ugSF9DWj.js} +117 -2
- package/dist/Typeahead/index.d.ts +2 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-Db8Tu27Z.js → Typeahead--kEp21ut.js} +159 -71
- package/dist/{useKeyboardHighlight-CGCf1O57.js → assertOptions-CK_gJ0d3.js} +12 -1
- package/dist/composables/index.d.ts +4 -3
- package/dist/composables/index.js +5 -5
- package/dist/composables-BgfubKnk.js +5437 -0
- package/dist/handle-BPXdHbkr.js +458 -0
- package/dist/{index-sXu15K4j.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-9eluGe3a.d.ts → index-BBTU-TKb.d.ts} +1 -1
- package/dist/{index-CE74Qsbn.d.ts → index-BKpnfdq1.d.ts} +9 -9
- package/dist/{index-D_xBhUV5.d.ts → index-B_PKY-Wn.d.ts} +11 -11
- package/dist/{index-Bfm6mF-r.d.ts → index-BfoazhEu.d.ts} +1 -1
- package/dist/{index-BWzEt0gT.d.ts → index-BhxqUt3y.d.ts} +1 -1
- package/dist/{index-CJdOt5Cc.d.ts → index-BtqvPjAf.d.ts} +3 -3
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-DBwEz4M9.d.ts → index-BzmcDJau.d.ts} +11 -11
- package/dist/{index-CQ1bsxLC.d.ts → index-C1qJlC65.d.ts} +1 -1
- package/dist/{index-CMLnSg3T.d.ts → index-C4S65SAW.d.ts} +8 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-gmY3A_Iw.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
- package/dist/{index-B0R5CLPF.d.ts → index-CsYDrQ9R.d.ts} +1 -1
- package/dist/{index-C2cH8OLC.d.ts → index-D31bgBoy.d.ts} +1 -1
- package/dist/{index-BxWCX2pJ.d.ts → index-DFLPv9io.d.ts} +3 -3
- package/dist/index-DGXCnzOL.d.ts +69 -0
- package/dist/{index-BPf_jmME.d.ts → index-DMcf0QeR.d.ts} +3 -3
- package/dist/{index-SWw-WMTO.d.ts → index-DPhQZXYw.d.ts} +3 -3
- package/dist/{index-B-Jla56c.d.ts → index-DmAEpn5E.d.ts} +1 -1
- package/dist/{index-B0yaHi__.d.ts → index-DtZUOyCy.d.ts} +12 -5
- package/dist/{index-BQ3cm7mP.d.ts → index-FeZXsFO-.d.ts} +1 -1
- package/dist/{index-Byan7Dad.d.ts → index-GmoeIuhl.d.ts} +1 -1
- package/dist/{index-ygmRS6Np.d.ts → index-KcCNhdAw.d.ts} +1 -1
- package/dist/{index-BPHqOCfp.d.ts → index-PffxihMx.d.ts} +4 -4
- package/dist/{index-unAZVFGz.d.ts → index-Qdbssopn.d.ts} +2 -2
- package/dist/{index-LHvLg1Pv.d.ts → index-Y4H4X6Vy.d.ts} +88 -82
- package/dist/{index-Xc3q9f84.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-BXDqyk2_.d.ts → index-gu5EvbE0.d.ts} +170 -2
- package/dist/{index-BFZxzCYu.d.ts → index-o00Upzjp.d.ts} +3 -3
- package/dist/{index-BEZ4ezJk.d.ts → index-ql9ApSTF.d.ts} +7 -0
- package/dist/index.d.ts +39 -37
- package/dist/index.js +31 -30
- package/dist/landing-Bs0aMIsR.js +2049 -0
- package/dist/{loadCatalog-DFyDz_4e.d.ts → loadCatalog-BJwcyX8i.d.ts} +2 -0
- package/dist/{loadCatalog-C3MSknfx.js → loadCatalog-C1kms5sO.js} +5 -1
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-OCGw4bi6.js → locale-CHhsd9Mq.js} +1 -1
- package/dist/motionTokenDefaults-EFzpiAF5.js +38 -0
- package/dist/tokenName-0U-WEH09.js +36 -0
- package/dist/{typeahead-RkZw0Ktn.js → typeahead-BgfLP7vR.js} +2 -0
- package/dist/{index-DbFIQDoa.d.ts → types-C1ydeFiu.d.ts} +43 -65
- package/dist/{types-uWxXh1Jm.d.ts → types-fRasDCe4.d.ts} +47 -6
- package/dist/useAnimatedLayout-C0koWm4a.d.ts +56 -0
- package/dist/{useAsyncSource-Gk0VtE7_.js → useAsyncSource-7GTcK8ep.js} +31 -1
- package/dist/{useAsyncSource-aGzrvRkI.d.ts → useAsyncSource-DbG2FSuI.d.ts} +19 -2
- package/dist/{useCombobox-D374_pT8.js → useCombobox-DIR9yoEu.js} +150 -3
- package/dist/{useTypeaheadAnnouncement-CSikDlpK.js → useTypeaheadMenuConfig--4f7jR6G.js} +264 -20
- package/package.json +1 -1
- package/styles/motion.css +10 -0
- package/styles/selector.css +10 -0
- package/styles/table.css +19 -0
- package/dist/composables-CCsHfpCS.js +0 -1256
- package/dist/{Chat-PEkZTrQE.js → Chat-Wq7e98zS.js} +1 -1
- package/dist/{CodeBlock-9Lfec8C8.js → CodeBlock-CLVXVlB7.js} +1 -1
- package/dist/{DateInput-kXAc_r5m.js → DateInput-BitZfGEY.js} +1 -1
- package/dist/{DateRangeInput-DW7IzFQM.js → DateRangeInput-kxXBsUTU.js} +1 -1
|
@@ -8,9 +8,10 @@ import { t as _sfc_main$4 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
|
8
8
|
import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
9
9
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
10
10
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
11
|
-
import { t as useCombobox } from "./useCombobox-
|
|
11
|
+
import { t as useCombobox } from "./useCombobox-DIR9yoEu.js";
|
|
12
12
|
import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
|
|
13
13
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
14
|
+
import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
|
|
14
15
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
16
|
import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
16
17
|
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
@@ -18,12 +19,12 @@ import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
|
|
|
18
19
|
import { t as _sfc_main$7 } from "./Field-BXkGR8H0.js";
|
|
19
20
|
import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
|
|
20
21
|
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
22
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
21
23
|
import { n as fieldStatusPlacement, r as _sfc_main$8, t as normalizeTriggerVariant } from "./triggerVariant-BDVvyLtv.js";
|
|
22
24
|
import { t as selectorMessages } from "./selector-BmGLjm94.js";
|
|
23
|
-
import { t as
|
|
24
|
-
import { a as onSelectorListboxEscape, i as focusSelectorTrigger, n as bindListboxEscape, r as dismissSelectorEscape, t as useKeyboardHighlight } from "./useKeyboardHighlight-CGCf1O57.js";
|
|
25
|
+
import { a as focusSelectorTrigger, i as dismissSelectorEscape, n as useKeyboardHighlight, o as onSelectorListboxEscape, r as bindListboxEscape, t as assertOptionsArray } from "./assertOptions-CK_gJ0d3.js";
|
|
25
26
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
26
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, isVNode, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
27
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, isVNode, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
27
28
|
import "../styles/layer.css";
|
|
28
29
|
import "../styles/button.css";
|
|
29
30
|
import "../styles/visually-hidden-utility.css";
|
|
@@ -104,6 +105,7 @@ const _hoisted_2$1 = [
|
|
|
104
105
|
"aria-label",
|
|
105
106
|
"aria-expanded",
|
|
106
107
|
"aria-controls",
|
|
108
|
+
"aria-required",
|
|
107
109
|
"aria-activedescendant",
|
|
108
110
|
"placeholder",
|
|
109
111
|
"value"
|
|
@@ -131,7 +133,7 @@ const _hoisted_9$1 = {
|
|
|
131
133
|
key: 0,
|
|
132
134
|
class: "astryx-selector-option-mark"
|
|
133
135
|
};
|
|
134
|
-
const _hoisted_10 = { class: "astryx-selector-option-body" };
|
|
136
|
+
const _hoisted_10$1 = { class: "astryx-selector-option-body" };
|
|
135
137
|
const _hoisted_11 = { class: "astryx-selector-option-copy" };
|
|
136
138
|
const _hoisted_12 = { class: "astryx-selector-option-label" };
|
|
137
139
|
const _hoisted_13 = {
|
|
@@ -170,6 +172,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
170
172
|
__name: "SelectorPanel",
|
|
171
173
|
props: {
|
|
172
174
|
searchable: { type: Boolean },
|
|
175
|
+
required: { type: Boolean },
|
|
173
176
|
query: {},
|
|
174
177
|
placeholder: {},
|
|
175
178
|
clearLabel: {},
|
|
@@ -210,6 +213,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
210
213
|
function active(index) {
|
|
211
214
|
return index === props.activeIndex;
|
|
212
215
|
}
|
|
216
|
+
/** 主题用 highlighted、selected、disabled 状态属性挂样式。 */
|
|
217
|
+
function stateAttrs(option, index) {
|
|
218
|
+
return {
|
|
219
|
+
"data-highlighted": active(index) ? "highlighted" : void 0,
|
|
220
|
+
"data-selected": selected(option) ? "selected" : void 0,
|
|
221
|
+
"data-disabled": option.disabled ? "disabled" : void 0
|
|
222
|
+
};
|
|
223
|
+
}
|
|
213
224
|
__expose({ focusSearch: () => searchInput.value?.focus() });
|
|
214
225
|
function clearQuery(event) {
|
|
215
226
|
event.stopPropagation();
|
|
@@ -246,10 +257,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
246
257
|
class: "astryx-selector-search-input",
|
|
247
258
|
role: "combobox",
|
|
248
259
|
autocomplete: "off",
|
|
260
|
+
autocorrect: "off",
|
|
261
|
+
enterkeyhint: "search",
|
|
249
262
|
"aria-label": __props.placeholder,
|
|
250
263
|
"aria-expanded": __props.isOpen,
|
|
251
264
|
"aria-controls": __props.listboxId,
|
|
252
265
|
"aria-autocomplete": "list",
|
|
266
|
+
"aria-required": __props.required || void 0,
|
|
253
267
|
"aria-activedescendant": __props.activeDescendant,
|
|
254
268
|
placeholder: __props.placeholder,
|
|
255
269
|
value: __props.query,
|
|
@@ -272,28 +286,29 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
272
286
|
class: "astryx-selector-section",
|
|
273
287
|
role: "rowgroup",
|
|
274
288
|
"aria-label": row.title
|
|
275
|
-
}, [createElementVNode("span", _hoisted_7$1, toDisplayString(row.title), 1)], 8, _hoisted_6$1)) : row.option && row.index != null && !__props.grid ? (openBlock(), createElementBlock("div", {
|
|
289
|
+
}, [createElementVNode("span", _hoisted_7$1, toDisplayString(row.title), 1)], 8, _hoisted_6$1)) : row.option && row.index != null && !__props.grid ? (openBlock(), createElementBlock("div", mergeProps({
|
|
276
290
|
key: 2,
|
|
277
291
|
id: optionId(row.index),
|
|
278
292
|
role: "option",
|
|
279
293
|
tabindex: "-1",
|
|
280
|
-
class:
|
|
294
|
+
class: ["astryx-selector-option", {
|
|
281
295
|
"is-active": active(row.index),
|
|
282
296
|
"is-selected": selected(row.option),
|
|
283
297
|
"is-disabled": row.option.disabled
|
|
284
|
-
}]
|
|
298
|
+
}],
|
|
285
299
|
"aria-selected": selected(row.option),
|
|
286
|
-
"aria-disabled": row.option.disabled
|
|
300
|
+
"aria-disabled": row.option.disabled
|
|
301
|
+
}, { ref_for: true }, stateAttrs(row.option, row.index), {
|
|
287
302
|
onClick: ($event) => emit("select", row.option),
|
|
288
303
|
onKeydown: [withKeys(($event) => emit("select", row.option), ["enter"]), withKeys(withModifiers(($event) => emit("select", row.option), ["prevent"]), ["space"])]
|
|
289
|
-
}, [
|
|
304
|
+
}), [
|
|
290
305
|
__props.indicatorPosition === "start" ? (openBlock(), createElementBlock("span", _hoisted_9$1, [(openBlock(), createBlock(resolveDynamicComponent(__props.mark), {
|
|
291
306
|
class: "astryx-selector-check",
|
|
292
307
|
state: selected(row.option) ? "checked" : "unchecked",
|
|
293
308
|
size: "sm",
|
|
294
309
|
"is-disabled": row.option.disabled
|
|
295
310
|
}, null, 8, ["state", "is-disabled"]))])) : createCommentVNode("v-if", true),
|
|
296
|
-
createElementVNode("span", _hoisted_10, [_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
|
|
311
|
+
createElementVNode("span", _hoisted_10$1, [_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
|
|
297
312
|
option: row.option,
|
|
298
313
|
isActive: active(row.index),
|
|
299
314
|
isSelected: selected(row.option)
|
|
@@ -308,17 +323,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
308
323
|
size: "sm",
|
|
309
324
|
"is-disabled": row.option.disabled
|
|
310
325
|
}, null, 8, ["state", "is-disabled"]))])) : createCommentVNode("v-if", true)
|
|
311
|
-
],
|
|
326
|
+
], 16, _hoisted_8$1)) : row.option && row.index != null ? (openBlock(), createElementBlock("div", mergeProps({
|
|
312
327
|
key: 3,
|
|
313
|
-
class:
|
|
328
|
+
class: ["astryx-selector-option", {
|
|
314
329
|
"is-active": active(row.index),
|
|
315
330
|
"is-selected": selected(row.option),
|
|
316
331
|
"is-disabled": row.option.disabled
|
|
317
|
-
}]
|
|
332
|
+
}],
|
|
318
333
|
role: "row",
|
|
319
334
|
"aria-selected": selected(row.option),
|
|
320
335
|
"aria-disabled": row.option.disabled || void 0
|
|
321
|
-
}, [
|
|
336
|
+
}, { ref_for: true }, stateAttrs(row.option, row.index)), [
|
|
322
337
|
createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events -- 选项格不进 Tab 序,方向键和回车由组合框处理。 "),
|
|
323
338
|
createElementVNode("div", {
|
|
324
339
|
id: optionId(row.index),
|
|
@@ -360,7 +375,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
360
375
|
node: row.option.action,
|
|
361
376
|
"dom-id": actionId(row.index)
|
|
362
377
|
}, null, 8, ["node", "dom-id"])) : createCommentVNode("v-if", true)], 42, _hoisted_23)
|
|
363
|
-
],
|
|
378
|
+
], 16, _hoisted_15)) : createCommentVNode("v-if", true)], 64);
|
|
364
379
|
}), 128))])) : __props.showEmpty ? (openBlock(), createElementBlock("div", _hoisted_24, [!__props.searching && _ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.emptyText), 1)], 64))])) : createCommentVNode("v-if", true)], 512);
|
|
365
380
|
};
|
|
366
381
|
}
|
|
@@ -410,11 +425,28 @@ function createTriggerActivation(options) {
|
|
|
410
425
|
};
|
|
411
426
|
}
|
|
412
427
|
//#endregion
|
|
428
|
+
//#region src/Selector/triggerName.ts
|
|
429
|
+
function ids(...parts) {
|
|
430
|
+
return parts.flatMap((part) => part?.split(" ") ?? []).filter(Boolean);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* 触发器的 aria-labelledby。调用方的 id 接在字段标签(组内先是组标签)后面,
|
|
434
|
+
* 不取代它;可搜索的触发器再在最后接上所选的值。
|
|
435
|
+
* 返回 undefined 时触发器由 aria-label 命名。
|
|
436
|
+
*/
|
|
437
|
+
function selectorTriggerLabelledBy(input) {
|
|
438
|
+
const caller = typeof input.callerLabelledBy === "string" && input.callerLabelledBy !== "" ? input.callerLabelledBy : void 0;
|
|
439
|
+
if (caller === void 0 && !input.includesValue) return void 0;
|
|
440
|
+
const base = ids(input.groupLabelId, input.fieldLabelId, caller);
|
|
441
|
+
return (input.includesValue ? [...base, input.valueId] : base).join(" ");
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
413
444
|
//#region src/Selector/useListboxOverlay.ts
|
|
414
445
|
/**
|
|
415
446
|
* 原版的下拉列表(没有搜索框、没指定位置时)把选中项盖在触发器上:
|
|
416
447
|
* 列表上移,使选中项的顶边和字段顶边对齐;还没选值时贴着字段下沿、不留空隙。
|
|
417
448
|
* 只在朝下展开时生效;空间不够翻到上方时按普通位置走。
|
|
449
|
+
* 列表自己的尺寸变了(选项增减、异步加载)也重新量一次,选中项始终留在触发器上。
|
|
418
450
|
*/
|
|
419
451
|
function useListboxOverlay(options) {
|
|
420
452
|
const overlayTop = ref(null);
|
|
@@ -438,9 +470,42 @@ function useListboxOverlay(options) {
|
|
|
438
470
|
], () => {
|
|
439
471
|
nextTick(syncOverlay);
|
|
440
472
|
}, { flush: "post" });
|
|
473
|
+
let stopObserving;
|
|
474
|
+
watch([options.isOpen, options.listboxRef], ([open, list]) => {
|
|
475
|
+
stopObserving?.();
|
|
476
|
+
stopObserving = void 0;
|
|
477
|
+
if (!open || !list) return;
|
|
478
|
+
let isInitial = true;
|
|
479
|
+
stopObserving = observeResize(list, () => {
|
|
480
|
+
if (isInitial) {
|
|
481
|
+
isInitial = false;
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
syncOverlay();
|
|
485
|
+
});
|
|
486
|
+
}, { flush: "post" });
|
|
487
|
+
onScopeDispose(() => stopObserving?.());
|
|
441
488
|
return { overlayTop };
|
|
442
489
|
}
|
|
443
490
|
//#endregion
|
|
491
|
+
//#region src/Selector/useListboxStyle.ts
|
|
492
|
+
/** 弹层形态下列表的位置和最小宽度;底部弹层不用定位。 */
|
|
493
|
+
function useListboxStyle(options) {
|
|
494
|
+
const anchorWidth = ref(0);
|
|
495
|
+
function syncAnchorWidth() {
|
|
496
|
+
anchorWidth.value = options.fieldRef.value?.getBoundingClientRect().width ?? 0;
|
|
497
|
+
}
|
|
498
|
+
watch(options.isOpen, (open) => {
|
|
499
|
+
if (open) syncAnchorWidth();
|
|
500
|
+
}, { flush: "pre" });
|
|
501
|
+
onMounted(syncAnchorWidth);
|
|
502
|
+
return computed(() => options.isSheet.value ? void 0 : {
|
|
503
|
+
top: `${options.overlayTop.value ?? options.position.value.top}px`,
|
|
504
|
+
left: `${options.position.value.left}px`,
|
|
505
|
+
minWidth: anchorWidth.value > 0 ? clampInlineSize(`${anchorWidth.value}px`) : void 0
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
444
509
|
//#region src/Selector/useSelectorPopup.ts
|
|
445
510
|
/** 选项操作把弹出层锁成网格,并拦下行末方向键。 */
|
|
446
511
|
function useSelectorPopup(options) {
|
|
@@ -494,6 +559,19 @@ function useSelectorPopup(options) {
|
|
|
494
559
|
};
|
|
495
560
|
}
|
|
496
561
|
//#endregion
|
|
562
|
+
//#region src/Selector/useSelectorTexts.ts
|
|
563
|
+
/** 调用方没给文案时,各处用内置文案补上。 */
|
|
564
|
+
function useSelectorTexts(props, messages) {
|
|
565
|
+
return {
|
|
566
|
+
resolvedPlaceholder: computed(() => props.placeholder ?? messages.value.selector.placeholder),
|
|
567
|
+
resolvedSearchPlaceholder: computed(() => props.searchPlaceholder ?? messages.value.selector.search),
|
|
568
|
+
resolvedClearLabel: computed(() => props.clearLabel ?? messages.value.selector.clear),
|
|
569
|
+
valueClearLabel: computed(() => props.clearLabel ?? messages.value.selector.clearField(props.label)),
|
|
570
|
+
resolvedEmptyText: computed(() => props.emptyText ?? messages.value.selector.empty),
|
|
571
|
+
resolvedEmptySearchText: computed(() => props.emptySearchText ?? messages.value.selector.emptySearch)
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
497
575
|
//#region src/Selector/Selector.vue
|
|
498
576
|
const _hoisted_1 = ["data-variant"];
|
|
499
577
|
const _hoisted_2 = [
|
|
@@ -507,28 +585,31 @@ const _hoisted_2 = [
|
|
|
507
585
|
"aria-busy",
|
|
508
586
|
"aria-required",
|
|
509
587
|
"aria-label",
|
|
588
|
+
"aria-labelledby",
|
|
510
589
|
"aria-describedby",
|
|
511
590
|
"aria-autocomplete",
|
|
512
591
|
"aria-activedescendant"
|
|
513
592
|
];
|
|
514
|
-
const _hoisted_3 =
|
|
515
|
-
const _hoisted_4 =
|
|
516
|
-
const _hoisted_5 = ["
|
|
517
|
-
const _hoisted_6 =
|
|
518
|
-
const _hoisted_7 =
|
|
593
|
+
const _hoisted_3 = ["id"];
|
|
594
|
+
const _hoisted_4 = { class: "astryx-selector-value-label" };
|
|
595
|
+
const _hoisted_5 = ["aria-label"];
|
|
596
|
+
const _hoisted_6 = ["id"];
|
|
597
|
+
const _hoisted_7 = { class: "astryx-selector-sheet-title" };
|
|
598
|
+
const _hoisted_8 = [
|
|
519
599
|
"id",
|
|
520
600
|
"role",
|
|
601
|
+
"aria-label",
|
|
521
602
|
"data-placement",
|
|
522
603
|
"data-keyboard-highlight"
|
|
523
604
|
];
|
|
524
|
-
const
|
|
605
|
+
const _hoisted_9 = [
|
|
525
606
|
"id",
|
|
526
607
|
"name",
|
|
527
608
|
"value",
|
|
528
609
|
"disabled",
|
|
529
610
|
"aria-label"
|
|
530
611
|
];
|
|
531
|
-
const
|
|
612
|
+
const _hoisted_10 = ["value"];
|
|
532
613
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
533
614
|
name: "AstryxSelector",
|
|
534
615
|
inheritAttrs: false,
|
|
@@ -629,6 +710,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
629
710
|
setup(__props, { emit: __emit }) {
|
|
630
711
|
const props = __props;
|
|
631
712
|
const emit = __emit;
|
|
713
|
+
assertOptionsArray("Selector", props.options);
|
|
632
714
|
const size = useSize(() => props.size, "md");
|
|
633
715
|
const slots = useSlots();
|
|
634
716
|
const attrs = useAttrs();
|
|
@@ -659,13 +741,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
659
741
|
const selectorId = computed(() => typeof attrs.id === "string" && attrs.id !== "" ? attrs.id : generatedId);
|
|
660
742
|
const listboxId = computed(() => `${selectorId.value}-listbox`);
|
|
661
743
|
const messages = useComponentMessages({ selector: selectorMessages });
|
|
662
|
-
const resolvedPlaceholder =
|
|
663
|
-
const resolvedSearchPlaceholder = computed(() => props.searchPlaceholder ?? messages.value.selector.search);
|
|
664
|
-
const resolvedClearLabel = computed(() => props.clearLabel ?? messages.value.selector.clear);
|
|
665
|
-
/** 值上的清除按钮带着字段名,读屏能听出清的是哪一项。 */
|
|
666
|
-
const valueClearLabel = computed(() => props.clearLabel ?? messages.value.selector.clearField(props.label));
|
|
667
|
-
const resolvedEmptyText = computed(() => props.emptyText ?? messages.value.selector.empty);
|
|
668
|
-
const resolvedEmptySearchText = computed(() => props.emptySearchText ?? messages.value.selector.emptySearch);
|
|
744
|
+
const { resolvedPlaceholder, resolvedSearchPlaceholder, resolvedClearLabel, valueClearLabel, resolvedEmptyText, resolvedEmptySearchText } = useSelectorTexts(props, messages);
|
|
669
745
|
const inputGroup = useInputGroupContext();
|
|
670
746
|
const inGroup = computed(() => inputGroup != null);
|
|
671
747
|
const groupDisabled = useInputGroupDisabled(() => props.disabled);
|
|
@@ -693,6 +769,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
693
769
|
const sheetLabel = computed(() => props.label || resolvedPlaceholder.value);
|
|
694
770
|
const isEnabled = control.canActivate;
|
|
695
771
|
const isSearchable = computed(() => props.searchable && control.canActivate.value);
|
|
772
|
+
/** 带搜索且不是只读时,触发器是普通按钮,搜索框才是组合框。 */
|
|
773
|
+
const isSearchTrigger = computed(() => props.searchable && !control.isReadOnly.value);
|
|
696
774
|
const normalizedEntries = computed(() => normalizeSelectorEntries(props.options));
|
|
697
775
|
const flatOptions = computed(() => flattenSelectorOptions(normalizedEntries.value));
|
|
698
776
|
const comboboxOptions = computed(() => flatOptions.value.map((opt) => ({
|
|
@@ -714,6 +792,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
714
792
|
isSearchable,
|
|
715
793
|
onChange: (value) => {
|
|
716
794
|
modelValueRef.value = value;
|
|
795
|
+
focusSelectorTrigger(fieldRef.value);
|
|
717
796
|
},
|
|
718
797
|
onOpenChange: (isOpen) => {
|
|
719
798
|
if (isOpen && props.searchable) nextTick(() => {
|
|
@@ -776,6 +855,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
776
855
|
});
|
|
777
856
|
const isSearching = computed(() => props.searchable && combobox.searchQuery.value.trim() !== "");
|
|
778
857
|
const showEmpty = computed(() => isEmpty.value && !control.isLoading.value);
|
|
858
|
+
const fieldLabelId = computed(() => `${selectorId.value}-label`);
|
|
859
|
+
const valueId = computed(() => `${selectorId.value}-value`);
|
|
860
|
+
/** 调用方的 aria-label 优先于字段标签。 */
|
|
861
|
+
const triggerAriaLabel = computed(() => {
|
|
862
|
+
const external = attrs["aria-label"];
|
|
863
|
+
return typeof external === "string" && external !== "" ? external : props.label;
|
|
864
|
+
});
|
|
865
|
+
/** 带搜索的触发器是不带角色的按钮,读屏不念它的值,所以名字里接上所选的值。 */
|
|
866
|
+
const triggerLabelledBy = computed(() => selectorTriggerLabelledBy({
|
|
867
|
+
fieldLabelId: fieldLabelId.value,
|
|
868
|
+
valueId: valueId.value,
|
|
869
|
+
groupLabelId: inGroup.value ? inputGroup?.labelId.value : void 0,
|
|
870
|
+
callerLabelledBy: attrs["aria-labelledby"],
|
|
871
|
+
includesValue: isSearchTrigger.value
|
|
872
|
+
}));
|
|
779
873
|
const describedBy = computed(() => {
|
|
780
874
|
return [
|
|
781
875
|
inGroup.value ? inputGroup?.describedBy.value : void 0,
|
|
@@ -838,10 +932,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
838
932
|
combobox.setSearchQuery(value);
|
|
839
933
|
emit("search", value);
|
|
840
934
|
}
|
|
841
|
-
const anchorWidth = ref(0);
|
|
842
|
-
function syncAnchorWidth() {
|
|
843
|
-
anchorWidth.value = fieldRef.value?.getBoundingClientRect().width ?? 0;
|
|
844
|
-
}
|
|
845
935
|
const { overlayTop } = useListboxOverlay({
|
|
846
936
|
fieldRef,
|
|
847
937
|
listboxRef,
|
|
@@ -850,15 +940,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
850
940
|
value: () => props.modelValue,
|
|
851
941
|
isEnabled: () => !props.searchable && !isSheet.value && props.placement == null
|
|
852
942
|
});
|
|
853
|
-
const listboxStyle =
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
943
|
+
const listboxStyle = useListboxStyle({
|
|
944
|
+
fieldRef,
|
|
945
|
+
isOpen: combobox.isOpen,
|
|
946
|
+
isSheet,
|
|
947
|
+
overlayTop,
|
|
948
|
+
position
|
|
857
949
|
});
|
|
858
|
-
watch(combobox.isOpen, (open) => {
|
|
859
|
-
if (open) syncAnchorWidth();
|
|
860
|
-
}, { flush: "pre" });
|
|
861
|
-
onMounted(syncAnchorWidth);
|
|
862
950
|
return (_ctx, _cache) => {
|
|
863
951
|
return openBlock(), createBlock(_sfc_main$7, {
|
|
864
952
|
class: normalizeClass(["astryx-selector", [
|
|
@@ -915,8 +1003,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
915
1003
|
"aria-readonly": unref(control).isReadOnly.value || void 0,
|
|
916
1004
|
"aria-disabled": unref(control).isDisabled.value || void 0,
|
|
917
1005
|
"aria-busy": unref(control).isLoading.value || void 0,
|
|
918
|
-
"aria-required": props.isRequired
|
|
919
|
-
"aria-label":
|
|
1006
|
+
"aria-required": props.isRequired && !isSearchTrigger.value ? true : void 0,
|
|
1007
|
+
"aria-label": triggerAriaLabel.value,
|
|
1008
|
+
"aria-labelledby": triggerLabelledBy.value,
|
|
920
1009
|
"aria-describedby": describedBy.value,
|
|
921
1010
|
"aria-autocomplete": props.searchable ? void 0 : "none",
|
|
922
1011
|
"aria-activedescendant": !props.searchable && !unref(control).isReadOnly.value ? unref(actionGrid).activeDescendant.value : void 0,
|
|
@@ -924,15 +1013,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
924
1013
|
onFocus: onTriggerFocus,
|
|
925
1014
|
onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
|
|
926
1015
|
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onTriggerKeyDown) && unref(onTriggerKeyDown)(...args))
|
|
927
|
-
}), [createElementVNode("span", {
|
|
928
|
-
|
|
929
|
-
"
|
|
930
|
-
|
|
931
|
-
|
|
1016
|
+
}), [createElementVNode("span", {
|
|
1017
|
+
id: valueId.value,
|
|
1018
|
+
class: normalizeClass(["astryx-selector-value", {
|
|
1019
|
+
"is-placeholder": !selectedOption.value,
|
|
1020
|
+
"is-rich": unref(slots).selected,
|
|
1021
|
+
"is-grouped": inGroup.value
|
|
1022
|
+
}])
|
|
1023
|
+
}, [unref(slots).selected ? renderSlot(_ctx.$slots, "selected", { option: selectedOption.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [!props.startIcon && selectedOption.value?.icon ? (openBlock(), createBlock(unref(SelectorIcon), {
|
|
932
1024
|
key: 0,
|
|
933
1025
|
class: "astryx-selector-value-icon",
|
|
934
1026
|
icon: selectedOption.value.icon
|
|
935
|
-
}, null, 8, ["icon"])) : createCommentVNode("v-if", true), createElementVNode("span",
|
|
1027
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_4, toDisplayString(displayText.value), 1)], 64))], 10, _hoisted_3)], 16, _hoisted_2),
|
|
936
1028
|
unref(control).isLoading.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
937
1029
|
key: 1,
|
|
938
1030
|
class: "astryx-selector-spinner",
|
|
@@ -943,12 +1035,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
943
1035
|
key: 2,
|
|
944
1036
|
type: "button",
|
|
945
1037
|
class: "astryx-selector-clear",
|
|
946
|
-
"aria-label": valueClearLabel
|
|
1038
|
+
"aria-label": unref(valueClearLabel),
|
|
947
1039
|
onClick: onClear
|
|
948
1040
|
}, [createVNode(_sfc_main$3, {
|
|
949
1041
|
icon: "close",
|
|
950
1042
|
size: "sm"
|
|
951
|
-
})], 8,
|
|
1043
|
+
})], 8, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
952
1044
|
statusGlyph.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
953
1045
|
key: 3,
|
|
954
1046
|
type: statusGlyph.value,
|
|
@@ -968,7 +1060,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
968
1060
|
key: 5,
|
|
969
1061
|
id: readOnlyId.value,
|
|
970
1062
|
class: "astryx-visually-hidden"
|
|
971
|
-
}, toDisplayString(unref(messages).selector.readOnly), 9,
|
|
1063
|
+
}, toDisplayString(unref(messages).selector.readOnly), 9, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
972
1064
|
], 46, _hoisted_1),
|
|
973
1065
|
showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
974
1066
|
key: 0,
|
|
@@ -1005,7 +1097,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1005
1097
|
ref_key: "sheetSlot",
|
|
1006
1098
|
ref: sheetSlot,
|
|
1007
1099
|
class: "astryx-selector-sheet"
|
|
1008
|
-
}, [createElementVNode("div",
|
|
1100
|
+
}, [createElementVNode("div", _hoisted_7, toDisplayString(sheetLabel.value), 1)], 512)]),
|
|
1009
1101
|
_: 1
|
|
1010
1102
|
}, 8, ["is-open", "label"])) : createCommentVNode("v-if", true),
|
|
1011
1103
|
(openBlock(), createBlock(Teleport, { to: isSheet.value && sheetSlot.value ? sheetSlot.value : unref(teleportTarget) }, [withDirectives(createElementVNode("div", {
|
|
@@ -1013,21 +1105,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1013
1105
|
ref_key: "listboxRef",
|
|
1014
1106
|
ref: listboxRef,
|
|
1015
1107
|
role: unref(gridMode) ? "grid" : "listbox",
|
|
1108
|
+
"aria-label": fieldLabel.value,
|
|
1016
1109
|
class: normalizeClass(["astryx-selector-listbox astryx-layer", [{
|
|
1017
1110
|
"is-sheet": isSheet.value,
|
|
1018
1111
|
"is-input": triggerVariant.value === "input"
|
|
1019
1112
|
}, `size-${unref(size)}`]]),
|
|
1020
1113
|
"data-placement": isSheet.value ? void 0 : unref(position).placement,
|
|
1021
|
-
style: normalizeStyle(listboxStyle
|
|
1114
|
+
style: normalizeStyle(unref(listboxStyle)),
|
|
1022
1115
|
"data-keyboard-highlight": unref(isKeyboardHighlight) || void 0,
|
|
1023
1116
|
tabindex: "-1"
|
|
1024
1117
|
}, [createVNode(_sfc_main$1, {
|
|
1025
1118
|
ref_key: "panelRef",
|
|
1026
1119
|
ref: panelRef,
|
|
1027
1120
|
searchable: props.searchable,
|
|
1121
|
+
required: props.isRequired,
|
|
1028
1122
|
query: unref(combobox).searchQuery.value,
|
|
1029
|
-
placeholder: resolvedSearchPlaceholder
|
|
1030
|
-
"clear-label": resolvedClearLabel
|
|
1123
|
+
placeholder: unref(resolvedSearchPlaceholder),
|
|
1124
|
+
"clear-label": unref(resolvedClearLabel),
|
|
1031
1125
|
rows: displayRows.value,
|
|
1032
1126
|
"active-index": unref(combobox).activeIndex.value,
|
|
1033
1127
|
"model-value": props.modelValue,
|
|
@@ -1037,7 +1131,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1037
1131
|
loading: unref(control).isLoading.value,
|
|
1038
1132
|
"show-empty": showEmpty.value,
|
|
1039
1133
|
searching: isSearching.value,
|
|
1040
|
-
"empty-text": isSearching.value ? resolvedEmptySearchText
|
|
1134
|
+
"empty-text": isSearching.value ? unref(resolvedEmptySearchText) : unref(resolvedEmptyText),
|
|
1041
1135
|
"listbox-id": listboxId.value,
|
|
1042
1136
|
"is-open": unref(combobox).isOpen.value,
|
|
1043
1137
|
"active-descendant": unref(actionGrid).activeDescendant.value,
|
|
@@ -1055,6 +1149,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1055
1149
|
key: "1"
|
|
1056
1150
|
} : void 0]), 1032, [
|
|
1057
1151
|
"searchable",
|
|
1152
|
+
"required",
|
|
1058
1153
|
"query",
|
|
1059
1154
|
"placeholder",
|
|
1060
1155
|
"clear-label",
|
|
@@ -1073,14 +1168,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1073
1168
|
"active-descendant",
|
|
1074
1169
|
"mark",
|
|
1075
1170
|
"onKeydown"
|
|
1076
|
-
])], 14,
|
|
1171
|
+
])], 14, _hoisted_8), [[vShow, unref(combobox).isOpen.value]])], 8, ["to"])),
|
|
1077
1172
|
props.name ? (openBlock(), createElementBlock("select", {
|
|
1078
1173
|
key: 3,
|
|
1079
1174
|
id: `${selectorId.value}-hidden-select`,
|
|
1080
1175
|
name: props.name,
|
|
1081
1176
|
value: props.modelValue ?? "",
|
|
1082
1177
|
disabled: unref(control).isDisabled.value,
|
|
1083
|
-
"aria-label": props.label || resolvedPlaceholder
|
|
1178
|
+
"aria-label": props.label || unref(resolvedPlaceholder),
|
|
1084
1179
|
tabindex: "-1",
|
|
1085
1180
|
style: {
|
|
1086
1181
|
"position": "absolute",
|
|
@@ -1092,8 +1187,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1092
1187
|
return openBlock(), createElementBlock("option", {
|
|
1093
1188
|
key: option.value,
|
|
1094
1189
|
value: option.value
|
|
1095
|
-
}, toDisplayString(option.label), 9,
|
|
1096
|
-
}), 128))], 8,
|
|
1190
|
+
}, toDisplayString(option.label), 9, _hoisted_10);
|
|
1191
|
+
}), 128))], 8, _hoisted_9)) : createCommentVNode("v-if", true)
|
|
1097
1192
|
]),
|
|
1098
1193
|
_: 3
|
|
1099
1194
|
}, 8, [
|
package/dist/SideNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cr as SideNavSectionProps, Sr as SideNavResizable, Tr as useSideNavCollapse, _r as SideNavHandle, br as SideNavItemProps, cr as _default$2, dr as SideNavCollapseButtonProps, fr as SideNavCollapseButtonSize, gr as SideNavEmits, hr as SideNavControlledCollapsible, lr as _default$1, mr as SideNavCollapsible, or as _default$4, pr as SideNavCollapseButtonSlots, sr as _default$3, ur as _default, vr as SideNavHeadingProps, wr as SideNavCollapseContext, xr as SideNavProps, yr as SideNavItemEmits } from "../index-
|
|
1
|
+
import { Cr as SideNavSectionProps, Sr as SideNavResizable, Tr as useSideNavCollapse, _r as SideNavHandle, br as SideNavItemProps, cr as _default$2, dr as SideNavCollapseButtonProps, fr as SideNavCollapseButtonSize, gr as SideNavEmits, hr as SideNavControlledCollapsible, lr as _default$1, mr as SideNavCollapsible, or as _default$4, pr as SideNavCollapseButtonSlots, sr as _default$3, ur as _default, vr as SideNavHeadingProps, wr as SideNavCollapseContext, xr as SideNavProps, yr as SideNavItemEmits } from "../index-Y4H4X6Vy.js";
|
|
2
2
|
export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
|
package/dist/Stepper/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-
|
|
1
|
+
import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-B-3EGjfQ.js";
|
|
2
2
|
export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as SwitchLabelPosition, Qn as SwitchEmits, Xn as SwitchChangeAction, Yn as _default, Zn as SwitchChangeEvent, ar as SwitchStatusType, er as SwitchLabelSpacing, ir as SwitchStatus, nr as SwitchSize, rr as SwitchSlots, tr as SwitchProps } from "../index-
|
|
1
|
+
import { $n as SwitchLabelPosition, Qn as SwitchEmits, Xn as SwitchChangeAction, Yn as _default, Zn as SwitchChangeEvent, ar as SwitchStatusType, er as SwitchLabelSpacing, ir as SwitchStatus, nr as SwitchSize, rr as SwitchSlots, tr as SwitchProps } from "../index-Y4H4X6Vy.js";
|
|
2
2
|
export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchLabelPosition, type SwitchLabelSpacing, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
|
package/dist/Table/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as TableCustomRowStatus, An as useTableColumnSettingsState, At as _default$4, Bn as capitalize, Bt as UseTableTreeDataConfig, Cn as applyTableFilters, Dn as TableColumnSettingsState, Dt as _default$7, En as ColumnSettingsOption, Fn as columnResizeMinWidth, Ft as UseTableColumnsVirtualizationConfig, Gn as proportional, Gt as StickySide, Hn as generateColumns, Ht as flattenTree, In as columnResizeStep, It as UseTableRowsVirtualizationConfig, Jn as sortRows, Jt as stickyOffsets, Kn as resolveColumnFloorWidths, Kt as UseTableStickyColumnsConfig, Ln as isProportionalColumnWidth, Lt as useTableColumnsVirtualization, Mn as ColumnResizeSnapshot, Mt as _default$2, Nn as UseTableColumnResizeConfig, Nt as _default$1, On as UseTableColumnSettingsConfig, Ot as _default$6, Pn as columnResizeDirectionSign, Pt as _default, Qt as useTableSortableState, Rn as resizeColumnWidths, Rt as useTableRowsVirtualization, Sn as UseTableFilteringConfig, Tn as useTableFiltering, Un as paginateData, Ut as useTableTreeData, Vn as cellText, Vt as UseTableTreeStateConfig, Wn as pixel, Wt as useTableTreeState, Xt as UseTableSortableConfig, Yt as useTableStickyColumns, Zt as useTableSortable, _n as buildGroupedRows, an as useTableRowStatus, bn as TableFilterStateHandle, cn as UseTableRowExpansionConfig, dn as UseTablePaginationConfig, en as TableRowStatus, fn as useTablePagination, gn as UseTableGroupedRowsConfig, hn as useTableInfiniteScroll, in as UseTableRowStatusConfig, jn as ColumnResizePlan, jt as _default$3, kn as useTableColumnSettings, kt as _default$5, ln as useTableRowExpansion, mn as UseTableInfiniteScrollConfig, nn as TableRowStatusName, on as UseTableRowIndexConfig, pn as isInteractiveRowClick, qn as resolveColumnWidths, qt as resolveStickySide, rn as TableSemanticRowStatus, sn as useTableRowIndex, tn as TableRowStatusColor, un as TablePaginationVariant, vn as isTableGroupHeader, wn as useTableFilterState, xn as UseTableFilterStateOptions, yn as useTableGroupedRows, zn as useTableColumnResize, zt as TableTreeRowMeta } from "../index-
|
|
1
|
+
import { $t as TableCustomRowStatus, An as useTableColumnSettingsState, At as _default$4, Bn as capitalize, Bt as UseTableTreeDataConfig, Cn as applyTableFilters, Dn as TableColumnSettingsState, Dt as _default$7, En as ColumnSettingsOption, Fn as columnResizeMinWidth, Ft as UseTableColumnsVirtualizationConfig, Gn as proportional, Gt as StickySide, Hn as generateColumns, Ht as flattenTree, In as columnResizeStep, It as UseTableRowsVirtualizationConfig, Jn as sortRows, Jt as stickyOffsets, Kn as resolveColumnFloorWidths, Kt as UseTableStickyColumnsConfig, Ln as isProportionalColumnWidth, Lt as useTableColumnsVirtualization, Mn as ColumnResizeSnapshot, Mt as _default$2, Nn as UseTableColumnResizeConfig, Nt as _default$1, On as UseTableColumnSettingsConfig, Ot as _default$6, Pn as columnResizeDirectionSign, Pt as _default, Qt as useTableSortableState, Rn as resizeColumnWidths, Rt as useTableRowsVirtualization, Sn as UseTableFilteringConfig, Tn as useTableFiltering, Un as paginateData, Ut as useTableTreeData, Vn as cellText, Vt as UseTableTreeStateConfig, Wn as pixel, Wt as useTableTreeState, Xt as UseTableSortableConfig, Yt as useTableStickyColumns, Zt as useTableSortable, _n as buildGroupedRows, an as useTableRowStatus, bn as TableFilterStateHandle, cn as UseTableRowExpansionConfig, dn as UseTablePaginationConfig, en as TableRowStatus, fn as useTablePagination, gn as UseTableGroupedRowsConfig, hn as useTableInfiniteScroll, in as UseTableRowStatusConfig, jn as ColumnResizePlan, jt as _default$3, kn as useTableColumnSettings, kt as _default$5, ln as useTableRowExpansion, mn as UseTableInfiniteScrollConfig, nn as TableRowStatusName, on as UseTableRowIndexConfig, pn as isInteractiveRowClick, qn as resolveColumnWidths, qt as resolveStickySide, rn as TableSemanticRowStatus, sn as useTableRowIndex, tn as TableRowStatusColor, un as TablePaginationVariant, vn as isTableGroupHeader, wn as useTableFilterState, xn as UseTableFilterStateOptions, yn as useTableGroupedRows, zn as useTableColumnResize, zt as TableTreeRowMeta } from "../index-Y4H4X6Vy.js";
|
|
2
2
|
import { $ as useTableSelectionState, A as TableLoadingState, B as TableSelectionToolbarSlots, C as TableFilterField, D as TableFilterVariant, E as TableFilterValue, F as TableRowMenuItem, G as TableTextOverflow, H as TableSortDirection, I as TableRowModel, J as TableSelectedKeysSetter, K as TableVerticalAlign, L as TableRowPatch, M as TablePlugin, N as TableProps, O as TableGroupPatch, P as TableRowListeners, Q as useTableSelection, R as TableRowProps, S as TableDividers, T as TableFilterState, U as TableSortEntry, W as TableSortState, X as UseTableSelectionConfig, Y as TableSelectionState, Z as UseTableSelectionStateConfig, _ as TableCellProps, b as TableColumnResizeContribution, g as TableCellPatch, h as ProportionalWidth, j as TablePanelPatch, k as TableHeaderPatch, m as PixelWidth, p as ColumnWidth, q as TableVirtualizationContribution, v as TableColumn, w as TableFilterFieldType, x as TableDensity, y as TableColumnAlign, z as TableSelectionToolbarProps } from "../useResizable-CJd4JkbJ.js";
|
|
3
3
|
export { type ColumnResizePlan, type ColumnResizeSnapshot, type ColumnSettingsOption, type ColumnWidth, type PixelWidth, type ProportionalWidth, type StickySide, _default as Table, _default$1 as TableBody, _default$2 as TableCell, type TableCellPatch, type TableCellProps, type TableColumn, type TableColumnAlign, type TableColumnResizeContribution, type TableColumnSettingsState, type TableCustomRowStatus, type TableDensity, type TableDividers, type TableFilterField, type TableFilterFieldType, type TableFilterState, type TableFilterStateHandle, type TableFilterValue, type TableFilterVariant, _default$3 as TableFooter, type TableGroupPatch, _default$4 as TableHeader, _default$5 as TableHeaderCell, type TableHeaderPatch, type TableLoadingState, type TablePaginationVariant, type TablePanelPatch, type TablePlugin, type TableProps, _default$6 as TableRow, type TableRowListeners, type TableRowMenuItem, type TableRowModel, type TableRowPatch, type TableRowProps, type TableRowStatus, type TableRowStatusColor, type TableRowStatusName, type TableSelectedKeysSetter, type TableSelectionState, _default$7 as TableSelectionToolbar, type TableSelectionToolbarProps, type TableSelectionToolbarSlots, type TableSemanticRowStatus, type TableSortDirection, type TableSortEntry, type TableSortState, type TableTextOverflow, type TableTreeRowMeta, type TableVerticalAlign, type TableVirtualizationContribution, type UseTableColumnResizeConfig, type UseTableColumnSettingsConfig, type UseTableColumnsVirtualizationConfig, type UseTableFilterStateOptions, type UseTableFilteringConfig, type UseTableGroupedRowsConfig, type UseTableInfiniteScrollConfig, type UseTablePaginationConfig, type UseTableRowExpansionConfig, type UseTableRowIndexConfig, type UseTableRowStatusConfig, type UseTableRowsVirtualizationConfig, type UseTableSelectionConfig, type UseTableSelectionStateConfig, type UseTableSortableConfig, type UseTableStickyColumnsConfig, type UseTableTreeDataConfig, type UseTableTreeStateConfig, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
package/dist/Table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-
|
|
1
|
+
import { A as applyTableFilters, B as useTableColumnResize, C as useTableRowExpansion, D as buildGroupedRows, E as useTableInfiniteScroll, F as columnResizeDirectionSign, G as pixel, H as cellText, I as columnResizeMinWidth, J as resolveColumnWidths, K as proportional, L as columnResizeStep, M as useTableFiltering, N as useTableColumnSettings, O as isTableGroupHeader, P as useTableColumnSettingsState, R as isProportionalColumnWidth, S as useTableRowIndex, T as isInteractiveRowClick, U as generateColumns, V as capitalize, W as paginateData, Y as sortRows, _ as useTableSortable, a as _sfc_main$3, b as useTableSelectionState, c as _sfc_main, d as flattenTree, f as useTableTreeData, g as useTableStickyColumns, h as stickyOffsets, i as _sfc_main$4, j as useTableFilterState, k as useTableGroupedRows, l as useTableColumnsVirtualization, m as resolveStickySide, n as _sfc_main$6, o as _sfc_main$2, p as useTableTreeState, q as resolveColumnFloorWidths, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableRowsVirtualization, v as useTableSortableState, w as useTablePagination, x as useTableRowStatus, y as useTableSelection, z as resizeColumnWidths } from "../Table-iemur_3E.js";
|
|
2
2
|
export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableColumnsVirtualization, useTableFilterState, useTableFiltering, useTableGroupedRows, useTableInfiniteScroll, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableRowsVirtualization, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|