@vuetify/v0 1.2.1 → 1.2.2
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/README.md +29 -0
- package/dist/{adapter-TiGrumDi.mjs → adapter-B6R54NMr.mjs} +1 -1
- package/dist/{adapter-D5nT3bLw.d.mts → adapter-BC1VWu0H.d.mts} +0 -1
- package/dist/{adapter-PDTe5nFT.d.mts → adapter-BP7jNtvH.d.mts} +3 -4
- package/dist/{adapter-FckJSz_o.d.mts → adapter-Bi799Zn7.d.mts} +2 -3
- package/dist/{adapter-ClB-53_F.d.mts → adapter-CbkRdMju.d.mts} +0 -1
- package/dist/{adapter-BiQV5j8B.mjs → adapter-DMzQI6ma.mjs} +8 -6
- package/dist/{adapter-BXunW_mw.d.mts → adapter-w8SEWO2v.d.mts} +1 -2
- package/dist/{adapter-BuSfpxur.mjs → adapter-z5dFxm0f.mjs} +1 -1
- package/dist/browser/index.d.ts +1134 -1016
- package/dist/browser/index.js +472 -461
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{components-MCFhfNlt.mjs → components-CSFzUH3d.mjs} +365 -360
- package/dist/composables/index.d.mts +22 -22
- package/dist/composables/index.mjs +40 -40
- package/dist/{composables-8xtFVviy.mjs → composables-CLNFa1uu.mjs} +55 -47
- package/dist/{consola-cad-VEV2.mjs → consola-B9K6H_EB.mjs} +1 -1
- package/dist/{consola-CdMU53rU.d.mts → consola-BGm_oQkS.d.mts} +1 -2
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{createDataTable-OCGnpy-N.mjs → createDataTable-CfJCltDt.mjs} +14 -12
- package/dist/{createGroup-DtVYu-VY.mjs → createGroup-CKE5o-VH.mjs} +5 -4
- package/dist/{createPlugin-Oo6t-vBw.mjs → createPlugin-YYkwbiUd.mjs} +3 -2
- package/dist/{createRegistry-DSQiALGi.mjs → createRegistry-D31hPifx.mjs} +8 -5
- package/dist/{createSelection-TB5oK1FG.mjs → createSelection-DdTgggyM.mjs} +4 -3
- package/dist/{createSingle-CV1qigP2.mjs → createSingle-hQWwVTVX.mjs} +4 -3
- package/dist/{createTokens-B0CqJEL6.mjs → createTokens-DuZrXRfN.mjs} +6 -5
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.d.mts +6 -5
- package/dist/data-table/adapters/index.mjs +4 -4
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +5 -5
- package/dist/date/index.d.mts +1 -2
- package/dist/date/index.mjs +3 -3
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +2 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +3 -3
- package/dist/features/index.mjs +2 -2
- package/dist/{flagsmith-DcIDrI7_.d.mts → flagsmith-BA8q5LAx.d.mts} +1 -2
- package/dist/{globals-wvVdMRFF.mjs → globals-DVcr1oW0.mjs} +1 -1
- package/dist/{htmlElements-CHXZfsZu.mjs → htmlElements-Bt1XN_d8.mjs} +1 -1
- package/dist/{index-H_hl6-4b.d.mts → index-ClUa0Bl7.d.mts} +0 -1
- package/dist/{index-Dgkt7Ve9.d.mts → index-Ct0Pmzpx.d.mts} +144 -58
- package/dist/{index-3bThcqCN.d.mts → index-DDwX_0Um.d.mts} +5 -5
- package/dist/{index-CORslci7.d.mts → index-DMQv04YO.d.mts} +2 -8
- package/dist/{index-3vvA76pZ.d.mts → index-Dlr9_rf1.d.mts} +2 -3
- package/dist/index-DmDf_FmM.d.mts +4 -0
- package/dist/{index-BTdCsSz0.d.mts → index-DqAML7MT.d.mts} +1110 -1073
- package/dist/{index-DtiaWx5U.d.mts → index-XNZrgWCq.d.mts} +1 -2
- package/dist/{index-4Z38WhA9.d.mts → index-Y6VfllT2.d.mts} +19 -20
- package/dist/index-h87SNntw.d.mts +2 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +43 -43
- package/dist/json/web-types.json +1 -1
- package/dist/{launchdarkly-CUzunYol.d.mts → launchdarkly-CWhPi3lZ.d.mts} +1 -2
- package/dist/locale/adapters/index.d.mts +4 -3
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -2
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +4 -4
- package/dist/locale/index.mjs +3 -3
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/consola/index.mjs +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +4 -4
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +6 -6
- package/dist/logger/index.mjs +5 -5
- package/dist/notifications/index.d.mts +1 -2
- package/dist/notifications/index.mjs +4 -2
- package/dist/palettes/ant/generate/index.d.mts +0 -1
- package/dist/palettes/ant/generate/index.mjs +1 -1
- package/dist/palettes/ant/index.d.mts +1 -2
- package/dist/palettes/index.d.mts +3 -4
- package/dist/palettes/leonardo/generate/index.d.mts +0 -1
- package/dist/palettes/leonardo/generate/index.mjs +1 -1
- package/dist/palettes/material/generate/index.d.mts +0 -1
- package/dist/palettes/material/generate/index.mjs +1 -1
- package/dist/palettes/material/index.d.mts +1 -2
- package/dist/palettes/md1/index.d.mts +1 -2
- package/dist/palettes/md2/index.d.mts +1 -2
- package/dist/palettes/radix/index.d.mts +1 -2
- package/dist/palettes/tailwind/index.d.mts +1 -2
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/index.mjs +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/{pino-BscMO3RR.mjs → pino-DOI2Y-WP.mjs} +1 -1
- package/dist/{pino-DjeWBFnj.d.mts → pino-cSCLlizQ.d.mts} +1 -2
- package/dist/popover/adapters/floating-ui/index.d.mts +1 -2
- package/dist/popover/adapters/floating-ui/index.mjs +4 -3
- package/dist/popover/index.d.mts +3 -3
- package/dist/popover/index.mjs +2 -2
- package/dist/{posthog-CJAYssdr.d.mts → posthog-Bzaj2Jbd.d.mts} +1 -2
- package/dist/rules/index.d.mts +2 -2
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-m7iD1vOr.mjs → server-CSXNc-my.mjs} +1 -1
- package/dist/{server-5vbJ7GGs.d.mts → server-bE0UxPFS.d.mts} +1 -2
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/index.mjs +1 -1
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/adapters/memory/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/storage/index.mjs +2 -2
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +3 -3
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +4 -4
- package/dist/{toArray-MY9Kb1Qy.mjs → toArray-DCZRopC6.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-SyU953Pt.mjs → unhead-hPXFvbDX.mjs} +2 -2
- package/dist/{useEventListener-hF6R2p6X.mjs → useEventListener-DI-1-WPJ.mjs} +2 -2
- package/dist/{useFeatures-CTpkM6hV.mjs → useFeatures-CuTiM9YA.mjs} +4 -4
- package/dist/{useLocale-D-iWu08b.mjs → useLocale-OjumdVbi.mjs} +4 -4
- package/dist/{useLogger-CDsgHbzO.mjs → useLogger-CuGy-g9B.mjs} +3 -3
- package/dist/{useNotifications-DhNjvRt1.mjs → useNotifications-BuZuDxSy.mjs} +6 -5
- package/dist/{usePermissions-CKe8xcvz.mjs → usePermissions-CabbzZd_.mjs} +4 -4
- package/dist/{usePopover-DyAdne_S.mjs → usePopover-7WMiJ9Zt.mjs} +8 -6
- package/dist/{useRovingFocus-D0OOozbe.mjs → useRovingFocus-DuYBgzOA.mjs} +91 -78
- package/dist/{useRules-DA8bNhNq.mjs → useRules-Bg7yBYP5.mjs} +5 -5
- package/dist/{useStorage-D9c6xx4N.mjs → useStorage-BtuW9p_Q.mjs} +7 -6
- package/dist/{useTheme-BrXA5VBp.mjs → useTheme-CfrtMZFH.mjs} +6 -6
- package/dist/{useTimer-DLtkRCHw.mjs → useTimer-aOp5haHg.mjs} +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +32 -32
- package/dist/{v0-cC-WxCLd.mjs → v0-B9gSaems.mjs} +2 -2
- package/dist/{v0-DpFVF6pD.mjs → v0-BusOrX6s.mjs} +2 -2
- package/dist/{v0-GI9U-rPA.d.mts → v0-CMqoGujd.d.mts} +1 -2
- package/dist/{v0-yZ2ZUtVF.mjs → v0-DoHWpAZn.mjs} +1 -1
- package/dist/{v0-C09lR5fc.d.mts → v0-IFGH9KS0.d.mts} +1 -2
- package/dist/{v0-CaTmC7C4.mjs → v0-Lo13oRUf.mjs} +2 -2
- package/dist/{v0-DfFK-p4X.d.mts → v0-QlSKvaAH.d.mts} +1 -2
- package/dist/{virtual-Bbu26O_h.mjs → virtual-Bsnip0cm.mjs} +1 -1
- package/dist/{virtual-JIdFLpTQ.d.mts → virtual-DrLIdUr1.d.mts} +1 -2
- package/package.json +10 -10
- package/dist/index-CX869wwk.d.mts +0 -1
- package/dist/index-CsuikFeJ.d.mts +0 -1
- /package/dist/{adapter-Chznb9Ju.mjs → adapter-B5mEUP5W.mjs} +0 -0
- /package/dist/{adapter-CrRJuxRk.mjs → adapter-B5teFrQH.mjs} +0 -0
- /package/dist/{adapter-D8zizQVP.mjs → adapter-BTNELv6-.mjs} +0 -0
- /package/dist/{adapter-ryk5H6YZ.d.mts → adapter-CHvvxw4c.d.mts} +0 -0
- /package/dist/{adapter-8UADsA3-.mjs → adapter-CxCiZYZO.mjs} +0 -0
- /package/dist/{createTrinity-z-3q9QWR.mjs → createTrinity-DJROWgXU.mjs} +0 -0
- /package/dist/{index-u_qSc2xS.d.mts → index-Bmr3SnAx.d.mts} +0 -0
- /package/dist/{index-Djhiy3nS.d.mts → index-Cyv2jtYx.d.mts} +0 -0
- /package/dist/{memory-CR6zvuaP.mjs → memory-C-Hi69Zc.mjs} +0 -0
- /package/dist/{memory-B7z1RR9r.d.mts → memory-DyA22X2q.d.mts} +0 -0
- /package/dist/{v0-Ch0yBKEj.mjs → v0-C4TLCYZJ.mjs} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-
|
|
1
|
+
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-w8SEWO2v.mjs";
|
|
2
2
|
import { PostHog } from "posthog-js";
|
|
3
|
-
|
|
4
3
|
//#region src/composables/useFeatures/adapters/posthog.d.ts
|
|
5
4
|
declare class PostHogFeaturesAdapter extends FeaturesAdapter {
|
|
6
5
|
private client;
|
package/dist/rules/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-
|
|
2
|
-
export { RuleAlias, RuleAliases, RuleInput, RulesContext, RulesContextOptions, RulesOptions, StandardSchemaV1, createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
|
1
|
+
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-Ct0Pmzpx.mjs";
|
|
2
|
+
export { RuleAlias, RuleAliases, RuleInput, RulesContext, RulesContextOptions, RulesOptions, type StandardSchemaV1, createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
package/dist/rules/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-
|
|
1
|
+
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-Bg7yBYP5.mjs";
|
|
2
2
|
export { createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createPagination, t as DataTableAdapter } from "./adapter-
|
|
1
|
+
import { n as createPagination, t as DataTableAdapter } from "./adapter-DMzQI6ma.mjs";
|
|
2
2
|
import { toRef, toValue, watch } from "vue";
|
|
3
3
|
//#region src/composables/createDataTable/adapters/server.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-
|
|
1
|
+
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-BP7jNtvH.mjs";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/composables/createDataTable/adapters/server.d.ts
|
|
5
4
|
interface ServerDataTableAdapterOptions {
|
|
6
5
|
/** Total number of items on the server (for pagination calculation) */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../../memory-
|
|
2
|
-
import { t as StorageType } from "../../index-
|
|
1
|
+
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../../memory-DyA22X2q.mjs";
|
|
2
|
+
import { t as StorageType } from "../../index-Cyv2jtYx.mjs";
|
|
3
3
|
export { MemoryStorageAdapter, StorageAdapter, StorageType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../../memory-
|
|
1
|
+
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../../memory-C-Hi69Zc.mjs";
|
|
2
2
|
export { MemoryStorageAdapter, StorageAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MemoryStorageAdapter } from "../../../memory-
|
|
1
|
+
import { t as MemoryStorageAdapter } from "../../../memory-DyA22X2q.mjs";
|
|
2
2
|
export { MemoryStorageAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MemoryStorageAdapter } from "../../../memory-
|
|
1
|
+
import { t as MemoryStorageAdapter } from "../../../memory-C-Hi69Zc.mjs";
|
|
2
2
|
export { MemoryStorageAdapter };
|
package/dist/storage/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as useStorage, F as StorageOptions, I as StoragePluginOptions, L as createStorage, N as StorageContext, P as StorageContextOptions, R as createStorageContext, z as createStoragePlugin } from "../index-
|
|
2
|
-
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-
|
|
3
|
-
import { t as StorageType } from "../index-
|
|
4
|
-
export { MemoryStorageAdapter, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, StorageType, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
|
1
|
+
import { B as useStorage, F as StorageOptions, I as StoragePluginOptions, L as createStorage, N as StorageContext, P as StorageContextOptions, R as createStorageContext, z as createStoragePlugin } from "../index-Ct0Pmzpx.mjs";
|
|
2
|
+
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-DyA22X2q.mjs";
|
|
3
|
+
import { t as StorageType } from "../index-Cyv2jtYx.mjs";
|
|
4
|
+
export { MemoryStorageAdapter, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, type StorageType, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
package/dist/storage/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-
|
|
2
|
-
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-
|
|
1
|
+
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-C-Hi69Zc.mjs";
|
|
2
|
+
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-BtuW9p_Q.mjs";
|
|
3
3
|
export { MemoryStorageAdapter, StorageAdapter, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as V0StyleSheetThemeAdapter, M as ThemeAdapter, O as V0UnheadThemeAdapter } from "../../index-
|
|
1
|
+
import { A as V0StyleSheetThemeAdapter, M as ThemeAdapter, O as V0UnheadThemeAdapter } from "../../index-Ct0Pmzpx.mjs";
|
|
2
2
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ThemeAdapter } from "../../adapter-
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../../unhead-
|
|
1
|
+
import { t as ThemeAdapter } from "../../adapter-B6R54NMr.mjs";
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../../v0-Lo13oRUf.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../../unhead-hPXFvbDX.mjs";
|
|
4
4
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { O as V0UnheadThemeAdapter, k as V0UnheadThemeOptions } from "../../../index-
|
|
1
|
+
import { O as V0UnheadThemeAdapter, k as V0UnheadThemeOptions } from "../../../index-Ct0Pmzpx.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter, V0UnheadThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0UnheadThemeAdapter } from "../../../unhead-
|
|
1
|
+
import { t as V0UnheadThemeAdapter } from "../../../unhead-hPXFvbDX.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as V0StyleSheetThemeAdapter, j as Vuetify0ThemeOptions } from "../../../index-
|
|
1
|
+
import { A as V0StyleSheetThemeAdapter, j as Vuetify0ThemeOptions } from "../../../index-Ct0Pmzpx.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter, Vuetify0ThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0StyleSheetThemeAdapter } from "../../../v0-
|
|
1
|
+
import { t as V0StyleSheetThemeAdapter } from "../../../v0-Lo13oRUf.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter };
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as V0StyleSheetThemeAdapter, C as ThemeTicketInput, D as useTheme, E as createThemePlugin, M as ThemeAdapter, O as V0UnheadThemeAdapter, S as ThemeTicket, T as createThemeContext, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, m as Colors, v as ThemeOptions, w as createTheme, x as ThemeSystemPair, y as ThemePluginOptions } from "../index-
|
|
1
|
+
import { A as V0StyleSheetThemeAdapter, C as ThemeTicketInput, D as useTheme, E as createThemePlugin, M as ThemeAdapter, O as V0UnheadThemeAdapter, S as ThemeTicket, T as createThemeContext, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, m as Colors, v as ThemeOptions, w as createTheme, x as ThemeSystemPair, y as ThemePluginOptions } from "../index-Ct0Pmzpx.mjs";
|
|
2
2
|
export { Colors, ThemeAdapter, ThemeColors, ThemeContext, ThemeContextOptions, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeSystemPair, ThemeTicket, ThemeTicketInput, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
package/dist/theme/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-
|
|
2
|
-
import { t as ThemeAdapter } from "../adapter-
|
|
3
|
-
import { t as V0StyleSheetThemeAdapter } from "../v0-
|
|
4
|
-
import { t as V0UnheadThemeAdapter } from "../unhead-
|
|
1
|
+
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-CfrtMZFH.mjs";
|
|
2
|
+
import { t as ThemeAdapter } from "../adapter-B6R54NMr.mjs";
|
|
3
|
+
import { t as V0StyleSheetThemeAdapter } from "../v0-Lo13oRUf.mjs";
|
|
4
|
+
import { t as V0UnheadThemeAdapter } from "../unhead-hPXFvbDX.mjs";
|
|
5
5
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
|
@@ -40,7 +40,7 @@ import { isArray, isNullOrUndefined } from "./utilities/index.mjs";
|
|
|
40
40
|
* console.log(valueAsArray) // ['Example Value']
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
/*
|
|
43
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
44
44
|
function toArray(value) {
|
|
45
45
|
return /* @__PURE__ */ isNullOrUndefined(value) ? [] : /* @__PURE__ */ isArray(value) ? value : [value];
|
|
46
46
|
}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ID, c as V0ErrorCode, i as Extensible, l as V0ErrorDetails, n as DOMElement, o as MaybeArray, r as DeepPartial, s as UnknownObject, t as Activation } from "../index-
|
|
1
|
+
import { a as ID, c as V0ErrorCode, i as Extensible, l as V0ErrorDetails, n as DOMElement, o as MaybeArray, r as DeepPartial, s as UnknownObject, t as Activation } from "../index-XNZrgWCq.mjs";
|
|
2
2
|
export { Activation, DOMElement, DeepPartial, Extensible, ID, MaybeArray, UnknownObject, V0ErrorCode, V0ErrorDetails };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-B6R54NMr.mjs";
|
|
4
4
|
import { watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/unhead.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
2
|
-
import { t as toArray } from "./toArray-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
|
+
import { t as toArray } from "./toArray-DCZRopC6.mjs";
|
|
3
3
|
import { onScopeDispose, toValue, unref, watch } from "vue";
|
|
4
4
|
//#region src/composables/useEventListener/index.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isArray, isBoolean, isNumber, isObject, isString } from "./utilities/index.mjs";
|
|
2
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as toArray } from "./toArray-
|
|
5
|
-
import { t as createGroup } from "./createGroup-
|
|
2
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-DuZrXRfN.mjs";
|
|
4
|
+
import { t as toArray } from "./toArray-DCZRopC6.mjs";
|
|
5
|
+
import { t as createGroup } from "./createGroup-CKE5o-VH.mjs";
|
|
6
6
|
import { shallowReactive, shallowRef } from "vue";
|
|
7
7
|
//#region src/composables/useFeatures/index.ts
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isNumber, isString } from "./utilities/index.mjs";
|
|
2
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
3
|
-
import { t as createSingle } from "./createSingle-
|
|
4
|
-
import { r as flatten, t as createTokens } from "./createTokens-
|
|
5
|
-
import { t as V0LocaleAdapter } from "./v0-
|
|
2
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-hQWwVTVX.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-DuZrXRfN.mjs";
|
|
5
|
+
import { t as V0LocaleAdapter } from "./v0-B9gSaems.mjs";
|
|
6
6
|
//#region src/composables/useLocale/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module useLocale
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isUndefined } from "./utilities/index.mjs";
|
|
3
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
4
|
-
import { t as V0LoggerAdapter } from "./v0-
|
|
3
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
4
|
+
import { t as V0LoggerAdapter } from "./v0-BusOrX6s.mjs";
|
|
5
5
|
//#region src/composables/useLogger/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module useLogger
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UNSAFE_KEYS, isNaN, isNull, isObject, isString, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
|
-
import { i as useContext, t as createTrinity } from "./createTrinity-
|
|
3
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
4
|
-
import { t as createRegistry } from "./createRegistry-
|
|
5
|
-
import { t as useTimer } from "./useTimer-
|
|
2
|
+
import { i as useContext, t as createTrinity } from "./createTrinity-DJROWgXU.mjs";
|
|
3
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
4
|
+
import { t as createRegistry } from "./createRegistry-D31hPifx.mjs";
|
|
5
|
+
import { t as useTimer } from "./useTimer-aOp5haHg.mjs";
|
|
6
6
|
import { onScopeDispose } from "vue";
|
|
7
7
|
//#region src/composables/createQueue/index.ts
|
|
8
8
|
/**
|
|
@@ -180,7 +180,8 @@ function createQueue(_options = {}) {
|
|
|
180
180
|
*/
|
|
181
181
|
function createQueueContext(_options = {}) {
|
|
182
182
|
const { namespace = "v0:queue", ...options } = _options;
|
|
183
|
-
|
|
183
|
+
const context = createQueue(options);
|
|
184
|
+
return createTrinity(namespace, context);
|
|
184
185
|
}
|
|
185
186
|
/**
|
|
186
187
|
* Returns the current queue instance.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UNSAFE_KEYS } from "./utilities/index.mjs";
|
|
2
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as toArray } from "./toArray-
|
|
5
|
-
import { t as V0PermissionsAdapter } from "./v0-
|
|
2
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-DuZrXRfN.mjs";
|
|
4
|
+
import { t as toArray } from "./toArray-DCZRopC6.mjs";
|
|
5
|
+
import { t as V0PermissionsAdapter } from "./v0-C4TLCYZJ.mjs";
|
|
6
6
|
//#region src/composables/usePermissions/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module usePermissions
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isNullOrUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
|
-
import { n as createPluginContext } from "./createPlugin-
|
|
4
|
-
import { n as useEventListener } from "./useEventListener-
|
|
5
|
-
import { t as useTimer } from "./useTimer-
|
|
6
|
-
import { t as PopoverAdapter } from "./adapter-
|
|
3
|
+
import { n as createPluginContext } from "./createPlugin-YYkwbiUd.mjs";
|
|
4
|
+
import { n as useEventListener } from "./useEventListener-DI-1-WPJ.mjs";
|
|
5
|
+
import { t as useTimer } from "./useTimer-aOp5haHg.mjs";
|
|
6
|
+
import { t as PopoverAdapter } from "./adapter-B5teFrQH.mjs";
|
|
7
7
|
import { computed, onScopeDispose, shallowReadonly, shallowRef, toRef, toValue, watch } from "vue";
|
|
8
8
|
//#region src/composables/useDelay/index.ts
|
|
9
9
|
/**
|
|
@@ -163,7 +163,9 @@ const SIDE_KEYWORDS = {
|
|
|
163
163
|
*/
|
|
164
164
|
function toPlacement(positionArea) {
|
|
165
165
|
const tokens = positionArea.trim().split(/\s+/);
|
|
166
|
-
|
|
166
|
+
/* v8 ignore next -- defensive: split() on a string always yields at least one element */
|
|
167
|
+
const first = tokens[0] ?? "bottom";
|
|
168
|
+
const side = SIDE_KEYWORDS[first] ?? "bottom";
|
|
167
169
|
let align = "center";
|
|
168
170
|
const second = tokens[1];
|
|
169
171
|
if (second === "span-left" || second === "span-start" || second === "left") align = "start";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { clamp, getActiveElement, instanceExists, isArray, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isObject, isString, isUndefined, pxToNumber, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
|
-
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-
|
|
4
|
-
import { n as createPluginContext, t as createPlugin } from "./createPlugin-
|
|
5
|
-
import { i as useLogger } from "./useLogger-
|
|
6
|
-
import { t as createRegistry } from "./createRegistry-
|
|
7
|
-
import { i as createModel, t as createSelection } from "./createSelection-
|
|
8
|
-
import { t as createSingle } from "./createSingle-
|
|
9
|
-
import { a as useLocale } from "./useLocale-
|
|
10
|
-
import { t as toArray } from "./toArray-
|
|
11
|
-
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-
|
|
12
|
-
import { p as useHydration } from "./useTheme-
|
|
13
|
-
import { i as useProxyRegistry, t as createGroup } from "./createGroup-
|
|
14
|
-
import { t as useTimer } from "./useTimer-
|
|
15
|
-
import { i as usePopover } from "./usePopover-
|
|
16
|
-
import { a as createFilter } from "./adapter-
|
|
17
|
-
import { a as extractLeaves, t as createDataTable } from "./createDataTable-
|
|
18
|
-
import { a as useRules, o as isStandardSchema } from "./useRules-
|
|
3
|
+
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-DJROWgXU.mjs";
|
|
4
|
+
import { n as createPluginContext, t as createPlugin } from "./createPlugin-YYkwbiUd.mjs";
|
|
5
|
+
import { i as useLogger } from "./useLogger-CuGy-g9B.mjs";
|
|
6
|
+
import { t as createRegistry } from "./createRegistry-D31hPifx.mjs";
|
|
7
|
+
import { i as createModel, t as createSelection } from "./createSelection-DdTgggyM.mjs";
|
|
8
|
+
import { t as createSingle } from "./createSingle-hQWwVTVX.mjs";
|
|
9
|
+
import { a as useLocale } from "./useLocale-OjumdVbi.mjs";
|
|
10
|
+
import { t as toArray } from "./toArray-DCZRopC6.mjs";
|
|
11
|
+
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-DI-1-WPJ.mjs";
|
|
12
|
+
import { p as useHydration } from "./useTheme-CfrtMZFH.mjs";
|
|
13
|
+
import { i as useProxyRegistry, t as createGroup } from "./createGroup-CKE5o-VH.mjs";
|
|
14
|
+
import { t as useTimer } from "./useTimer-aOp5haHg.mjs";
|
|
15
|
+
import { i as usePopover } from "./usePopover-7WMiJ9Zt.mjs";
|
|
16
|
+
import { a as createFilter } from "./adapter-DMzQI6ma.mjs";
|
|
17
|
+
import { a as extractLeaves, t as createDataTable } from "./createDataTable-CfJCltDt.mjs";
|
|
18
|
+
import { a as useRules, o as isStandardSchema } from "./useRules-Bg7yBYP5.mjs";
|
|
19
19
|
import { computed, effectScope, hasInjectionContext, isReadonly, isRef, nextTick, onScopeDispose, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, watch } from "vue";
|
|
20
20
|
//#region src/composables/useClickOutside/index.ts
|
|
21
21
|
/**
|
|
@@ -353,7 +353,7 @@ function useClickOutside(target, handler, options = {}) {
|
|
|
353
353
|
* toElement(component) // Element | undefined (from $el)
|
|
354
354
|
* ```
|
|
355
355
|
*/
|
|
356
|
-
/*
|
|
356
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
357
357
|
function toElement(target) {
|
|
358
358
|
if (!target) return void 0;
|
|
359
359
|
if (/* @__PURE__ */ isElement(target)) return target;
|
|
@@ -516,7 +516,8 @@ function createStack(_options = {}) {
|
|
|
516
516
|
*/
|
|
517
517
|
function createStackContext(_options = {}) {
|
|
518
518
|
const { namespace = "v0:stack", ...options } = _options;
|
|
519
|
-
|
|
519
|
+
const context = createStack(options);
|
|
520
|
+
return createTrinity(namespace, context);
|
|
520
521
|
}
|
|
521
522
|
/**
|
|
522
523
|
* Creates a Vue plugin to provide stack context at app level.
|
|
@@ -862,7 +863,7 @@ function createObserver(target, userCallback, config) {
|
|
|
862
863
|
* with no layout box resolves its lengths to `''`, and this runs on whatever
|
|
863
864
|
* `getComputedStyle` returns.
|
|
864
865
|
*/
|
|
865
|
-
/*
|
|
866
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
866
867
|
function measure(el) {
|
|
867
868
|
const rect = el.getBoundingClientRect();
|
|
868
869
|
const style = getComputedStyle(el);
|
|
@@ -1118,7 +1119,7 @@ function useElementSize(target) {
|
|
|
1118
1119
|
*/
|
|
1119
1120
|
function createOverflow(options = {}) {
|
|
1120
1121
|
const { container: _container, gap = 0, reserved = 0, itemWidth, reverse } = options;
|
|
1121
|
-
const container = /* @__PURE__ */ isUndefined(_container) ? shallowRef() : toRef(_container);
|
|
1122
|
+
const container = /* @__PURE__ */ isUndefined(_container) ? shallowRef() : toRef(() => /* @__PURE__ */ toElement(_container) ?? null);
|
|
1122
1123
|
const widths = shallowRef(/* @__PURE__ */ new Map());
|
|
1123
1124
|
const { width } = useElementSize(container);
|
|
1124
1125
|
function measure(index, el) {
|
|
@@ -1218,7 +1219,8 @@ function createOverflow(options = {}) {
|
|
|
1218
1219
|
*/
|
|
1219
1220
|
function createOverflowContext(_options = {}) {
|
|
1220
1221
|
const { namespace = "v0:overflow", ...options } = _options;
|
|
1221
|
-
|
|
1222
|
+
const context = createOverflow(options);
|
|
1223
|
+
return createTrinity(namespace, context);
|
|
1222
1224
|
}
|
|
1223
1225
|
/**
|
|
1224
1226
|
* Returns the current overflow context from dependency injection.
|
|
@@ -1481,7 +1483,8 @@ function createBreadcrumbs(options = {}) {
|
|
|
1481
1483
|
*/
|
|
1482
1484
|
function createBreadcrumbsContext(_options = {}) {
|
|
1483
1485
|
const { namespace = "v0:breadcrumbs", ...options } = _options;
|
|
1484
|
-
|
|
1486
|
+
const context = createBreadcrumbs(options);
|
|
1487
|
+
return createTrinity(namespace, context);
|
|
1485
1488
|
}
|
|
1486
1489
|
/**
|
|
1487
1490
|
* Returns the current breadcrumbs instance from context.
|
|
@@ -1810,7 +1813,8 @@ function createStep(_options = {}) {
|
|
|
1810
1813
|
*/
|
|
1811
1814
|
function createStepContext(_options = {}) {
|
|
1812
1815
|
const { namespace = "v0:step", ...options } = _options;
|
|
1813
|
-
|
|
1816
|
+
const context = createStep(options);
|
|
1817
|
+
return createTrinity(namespace, context);
|
|
1814
1818
|
}
|
|
1815
1819
|
/**
|
|
1816
1820
|
* Returns the current step instance.
|
|
@@ -1986,7 +1990,6 @@ function createFocusTraversal(items, activate, options = {}) {
|
|
|
1986
1990
|
e.preventDefault();
|
|
1987
1991
|
if (e.ctrlKey) last();
|
|
1988
1992
|
else rowLast();
|
|
1989
|
-
break;
|
|
1990
1993
|
}
|
|
1991
1994
|
return;
|
|
1992
1995
|
}
|
|
@@ -2362,7 +2365,8 @@ function createCombobox(options = {}) {
|
|
|
2362
2365
|
*/
|
|
2363
2366
|
function createComboboxContext(_options = {}) {
|
|
2364
2367
|
const { namespace = "v0:combobox", ...options } = _options;
|
|
2365
|
-
|
|
2368
|
+
const context = createCombobox(options);
|
|
2369
|
+
return createTrinity(namespace, context);
|
|
2366
2370
|
}
|
|
2367
2371
|
/**
|
|
2368
2372
|
* Injects the current combobox context from a parent provider.
|
|
@@ -2463,9 +2467,10 @@ function useLazy(active, options = {}) {
|
|
|
2463
2467
|
isBooted.value = true;
|
|
2464
2468
|
}, { duration: delay }) : void 0;
|
|
2465
2469
|
const stop = watch(() => toValue(active), (value) => {
|
|
2466
|
-
if (value)
|
|
2467
|
-
|
|
2468
|
-
|
|
2470
|
+
if (value) {
|
|
2471
|
+
if (timer) timer.start();
|
|
2472
|
+
else isBooted.value = true;
|
|
2473
|
+
} else timer?.stop();
|
|
2469
2474
|
}, { immediate: true });
|
|
2470
2475
|
function reset() {
|
|
2471
2476
|
isBooted.value = false;
|
|
@@ -3105,7 +3110,7 @@ function createRowSpanning(options) {
|
|
|
3105
3110
|
if (!span) return result;
|
|
3106
3111
|
const list = items.value;
|
|
3107
3112
|
const resolved = toValue(columns);
|
|
3108
|
-
const covered = Array.from({ length: resolved.length })
|
|
3113
|
+
const covered = Array.from({ length: resolved.length }, () => 0);
|
|
3109
3114
|
for (let row = 0; row < list.length; row++) {
|
|
3110
3115
|
const item = list[row];
|
|
3111
3116
|
const id = key ? key(item, row) : item[itemKey];
|
|
@@ -3601,7 +3606,8 @@ function createForm(_options = {}) {
|
|
|
3601
3606
|
*/
|
|
3602
3607
|
function createFormContext(_options = {}) {
|
|
3603
3608
|
const { namespace = "v0:form", ...options } = _options;
|
|
3604
|
-
|
|
3609
|
+
const context = createForm(options);
|
|
3610
|
+
return createTrinity(namespace, context);
|
|
3605
3611
|
}
|
|
3606
3612
|
/**
|
|
3607
3613
|
* Returns the current form instance.
|
|
@@ -4109,7 +4115,8 @@ function createNumeric(options = {}) {
|
|
|
4109
4115
|
function snap(value) {
|
|
4110
4116
|
if (!Number.isFinite(value)) return min;
|
|
4111
4117
|
if (step <= 0 || !Number.isFinite(min)) return /* @__PURE__ */ clamp(value, min, max);
|
|
4112
|
-
const
|
|
4118
|
+
const steps = Math.round((/* @__PURE__ */ clamp(value, min, max) - min) / step);
|
|
4119
|
+
const result = min + steps * step;
|
|
4113
4120
|
return /* @__PURE__ */ clamp(decimals > 0 ? +result.toFixed(decimals) : result, min, max);
|
|
4114
4121
|
}
|
|
4115
4122
|
function fromValue(value) {
|
|
@@ -4399,9 +4406,7 @@ function usePresence(options) {
|
|
|
4399
4406
|
case "mounted":
|
|
4400
4407
|
state.value = "present";
|
|
4401
4408
|
break;
|
|
4402
|
-
case "unmounted":
|
|
4403
|
-
enter();
|
|
4404
|
-
break;
|
|
4409
|
+
case "unmounted": enter();
|
|
4405
4410
|
}
|
|
4406
4411
|
} else if (booted) leave();
|
|
4407
4412
|
}, { immediate: true });
|
|
@@ -4538,7 +4543,8 @@ function createProgress(options = {}) {
|
|
|
4538
4543
|
*/
|
|
4539
4544
|
function createProgressContext(_options = {}) {
|
|
4540
4545
|
const { namespace = "v0:progress", ...options } = _options;
|
|
4541
|
-
|
|
4546
|
+
const context = createProgress(options);
|
|
4547
|
+
return createTrinity(namespace, context);
|
|
4542
4548
|
}
|
|
4543
4549
|
/**
|
|
4544
4550
|
* Returns the current progress instance from context.
|
|
@@ -4637,7 +4643,8 @@ function createRating(_options = {}) {
|
|
|
4637
4643
|
value,
|
|
4638
4644
|
items: computed(() => {
|
|
4639
4645
|
const current = value.value;
|
|
4640
|
-
|
|
4646
|
+
const count = /* @__PURE__ */ clamp(Math.floor(toValue(_size)), 0, MAX_SIZE);
|
|
4647
|
+
return (/* @__PURE__ */ range(count, 1)).map((i) => ({
|
|
4641
4648
|
value: i,
|
|
4642
4649
|
state: getState(i, current)
|
|
4643
4650
|
}));
|
|
@@ -4677,7 +4684,8 @@ function createRating(_options = {}) {
|
|
|
4677
4684
|
*/
|
|
4678
4685
|
function createRatingContext(_options = {}) {
|
|
4679
4686
|
const { namespace = "v0:rating", ...options } = _options;
|
|
4680
|
-
|
|
4687
|
+
const context = createRating(options);
|
|
4688
|
+
return createTrinity(namespace, context);
|
|
4681
4689
|
}
|
|
4682
4690
|
/**
|
|
4683
4691
|
* Returns the current rating instance from context.
|
|
@@ -5077,7 +5085,7 @@ function createNested(_options = {}) {
|
|
|
5077
5085
|
}
|
|
5078
5086
|
if (revealOnOpen) {
|
|
5079
5087
|
let parentId = parents.get(id);
|
|
5080
|
-
const visited = new Set([id]);
|
|
5088
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
5081
5089
|
while (!/* @__PURE__ */ isUndefined(parentId)) {
|
|
5082
5090
|
if (visited.has(parentId)) {
|
|
5083
5091
|
logger.warn(`Circular parent reference detected at "${parentId}".`);
|
|
@@ -5198,7 +5206,7 @@ function createNested(_options = {}) {
|
|
|
5198
5206
|
const initial = children.get(id);
|
|
5199
5207
|
if (!initial) return descendants;
|
|
5200
5208
|
const queue = initial.slice();
|
|
5201
|
-
const visited = new Set([id]);
|
|
5209
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
5202
5210
|
let index = 0;
|
|
5203
5211
|
while (index < queue.length) {
|
|
5204
5212
|
const currentId = queue[index++];
|
|
@@ -5228,7 +5236,7 @@ function createNested(_options = {}) {
|
|
|
5228
5236
|
if (!group.has(ancestorId) || !group.has(descendantId)) return false;
|
|
5229
5237
|
if (ancestorId === descendantId) return false;
|
|
5230
5238
|
let currentId = parents.get(descendantId);
|
|
5231
|
-
const visited = new Set([descendantId]);
|
|
5239
|
+
const visited = /* @__PURE__ */ new Set([descendantId]);
|
|
5232
5240
|
while (!/* @__PURE__ */ isUndefined(currentId)) {
|
|
5233
5241
|
if (currentId === ancestorId) return true;
|
|
5234
5242
|
if (visited.has(currentId)) {
|
|
@@ -5296,7 +5304,7 @@ function createNested(_options = {}) {
|
|
|
5296
5304
|
function updateAncestors(id) {
|
|
5297
5305
|
const { selectedIds, mixedIds } = group;
|
|
5298
5306
|
let parentId = parents.get(id);
|
|
5299
|
-
const visited = new Set([id]);
|
|
5307
|
+
const visited = /* @__PURE__ */ new Set([id]);
|
|
5300
5308
|
while (!/* @__PURE__ */ isUndefined(parentId)) {
|
|
5301
5309
|
if (visited.has(parentId)) {
|
|
5302
5310
|
logger.warn(`Circular parent reference detected at "${parentId}".`);
|
|
@@ -5341,13 +5349,14 @@ function createNested(_options = {}) {
|
|
|
5341
5349
|
function select(ids) {
|
|
5342
5350
|
if (toValue(group.disabled)) return;
|
|
5343
5351
|
for (const id of /* @__PURE__ */ toArray(ids)) if (selectionMode === "independent") group.select(id);
|
|
5344
|
-
else if (selectionMode === "leaf")
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5352
|
+
else if (selectionMode === "leaf") {
|
|
5353
|
+
if (isLeaf(id)) group.select(id);
|
|
5354
|
+
else {
|
|
5355
|
+
const item = group.get(id);
|
|
5356
|
+
if (!item || toValue(item.disabled)) continue;
|
|
5357
|
+
for (const lid of getLeafDescendants(id)) group.select(lid);
|
|
5358
|
+
}
|
|
5359
|
+
} else {
|
|
5351
5360
|
const item = group.get(id);
|
|
5352
5361
|
if (!item || toValue(item.disabled)) continue;
|
|
5353
5362
|
if (!toValue(multipleOption)) {
|
|
@@ -5378,7 +5387,7 @@ function createNested(_options = {}) {
|
|
|
5378
5387
|
if (!item || toValue(item.disabled)) continue;
|
|
5379
5388
|
const { selectedIds, mixedIds } = group;
|
|
5380
5389
|
if (toValue(mandatoryOption)) {
|
|
5381
|
-
const toRemove = new Set([id, ...getDescendants(id)]);
|
|
5390
|
+
const toRemove = /* @__PURE__ */ new Set([id, ...getDescendants(id)]);
|
|
5382
5391
|
if ([...selectedIds].every((sid) => toRemove.has(sid))) return;
|
|
5383
5392
|
}
|
|
5384
5393
|
mixedIds.delete(id);
|
|
@@ -5393,15 +5402,16 @@ function createNested(_options = {}) {
|
|
|
5393
5402
|
function toggle(ids) {
|
|
5394
5403
|
if (toValue(group.disabled)) return;
|
|
5395
5404
|
for (const id of /* @__PURE__ */ toArray(ids)) if (selectionMode === "independent") group.toggle(id);
|
|
5396
|
-
else if (selectionMode === "leaf")
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
+
else if (selectionMode === "leaf") {
|
|
5406
|
+
if (isLeaf(id)) group.toggle(id);
|
|
5407
|
+
else {
|
|
5408
|
+
const item = group.get(id);
|
|
5409
|
+
if (!item || toValue(item.disabled)) continue;
|
|
5410
|
+
const leafIds = getLeafDescendants(id);
|
|
5411
|
+
if (leafIds.every((lid) => group.selected(lid))) removeLeaves(leafIds);
|
|
5412
|
+
else for (const lid of leafIds) group.select(lid);
|
|
5413
|
+
}
|
|
5414
|
+
} else if (group.selected(id) || group.mixed(id)) unselect(id);
|
|
5405
5415
|
else select(id);
|
|
5406
5416
|
}
|
|
5407
5417
|
function selectAll() {
|
|
@@ -5515,24 +5525,26 @@ function createNested(_options = {}) {
|
|
|
5515
5525
|
}
|
|
5516
5526
|
}
|
|
5517
5527
|
const list = children.get(id);
|
|
5518
|
-
if (list?.length)
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5528
|
+
if (list?.length) {
|
|
5529
|
+
if (cascade) {
|
|
5530
|
+
const descendantIds = getDescendants(id);
|
|
5531
|
+
for (const did of descendantIds) {
|
|
5532
|
+
parents.delete(did);
|
|
5533
|
+
children.delete(did);
|
|
5534
|
+
openedIds.delete(did);
|
|
5535
|
+
activeIds.delete(did);
|
|
5536
|
+
rootIds.delete(did);
|
|
5537
|
+
}
|
|
5538
|
+
group.offboard(descendantIds);
|
|
5539
|
+
} else {
|
|
5540
|
+
for (const did of getDescendants(id)) {
|
|
5541
|
+
openedIds.delete(did);
|
|
5542
|
+
activeIds.delete(did);
|
|
5543
|
+
}
|
|
5544
|
+
for (const cid of list) {
|
|
5545
|
+
parents.set(cid, void 0);
|
|
5546
|
+
rootIds.add(cid);
|
|
5547
|
+
}
|
|
5536
5548
|
}
|
|
5537
5549
|
}
|
|
5538
5550
|
parents.delete(id);
|
|
@@ -5661,7 +5673,8 @@ function createNested(_options = {}) {
|
|
|
5661
5673
|
*/
|
|
5662
5674
|
function createNestedContext(_options = {}) {
|
|
5663
5675
|
const { namespace = "v0:nested", ...options } = _options;
|
|
5664
|
-
|
|
5676
|
+
const context = createNested(options);
|
|
5677
|
+
return createTrinity(namespace, context);
|
|
5665
5678
|
}
|
|
5666
5679
|
/**
|
|
5667
5680
|
* Returns the current nested instance from context.
|