@vuetify/v0 0.1.12 → 0.2.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/{adapter-DvT8lTup.d.mts → adapter-DIZk5xrU.d.mts} +1 -1
- package/dist/adapter-Drq1v5wV.mjs +27 -0
- package/dist/{adapter-D3dUnE__.d.mts → adapter-MT5TiIjj.d.mts} +2 -2
- package/dist/browser/index.js +3912 -2932
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.mjs +22 -20
- package/dist/{components-CrZmJSH3.mjs → components-lme-T9bN.mjs} +771 -177
- package/dist/composables/index.d.mts +19 -19
- package/dist/composables/index.mjs +22 -20
- package/dist/{consola-C1OjyZVf.d.mts → consola-bPHDMwrK.d.mts} +1 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{useClickOutside-hbi0BOL-.mjs → createCombobox-DgFUWLKw.mjs} +1091 -790
- package/dist/{createDataTable-DKCm5-7f.mjs → createDataTable-DGG3Kgau.mjs} +2 -2
- package/dist/{createGroup-CFMocwej.mjs → createGroup-C38Mc-se.mjs} +1 -1
- package/dist/{createSelection-Cl1nX0he.mjs → createSelection-GS1yfwki.mjs} +1 -1
- package/dist/{createSingle-BxOPkL3l.mjs → createSingle-Dh2gp4kv.mjs} +1 -1
- package/dist/{createTokens-C67MMcZJ.mjs → createTokens-Ckczb95n.mjs} +1 -1
- 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 +4 -4
- package/dist/data-table/adapters/index.mjs +1 -1
- 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 +5 -5
- package/dist/data-table/index.mjs +10 -10
- package/dist/date/index.d.mts +2 -1
- package/dist/date/index.mjs +34 -10
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +2 -2
- package/dist/features/index.d.mts +2 -2
- package/dist/features/index.mjs +8 -8
- package/dist/{globals-uLTsqsl2.mjs → globals-B6VQTLVM.mjs} +1 -1
- package/dist/{index-B_pScNDG.d.mts → index-A6Vo3pb6.d.mts} +28 -1
- package/dist/{index-CBER-Sxt.d.mts → index-BAix61Ke.d.mts} +275 -98
- package/dist/{index-BN-lmMJM.d.mts → index-CuUuJj3-.d.mts} +878 -199
- package/dist/{index-CdUIc68E.d.mts → index-D5ehwqoP.d.mts} +3 -3
- package/dist/{index-YyqYAay2.d.mts → index-Y0Bo7jx-.d.mts} +2 -2
- package/dist/{index-dJKXAO5D.d.mts → index-pwVD-IDb.d.mts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.mjs +23 -21
- package/dist/json/attributes.json +199 -7
- package/dist/json/importMap.json +44 -0
- package/dist/json/tags.json +100 -2
- package/dist/json/web-types.json +592 -10
- package/dist/locale/adapters/index.d.mts +2 -2
- 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 +2 -2
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -1
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +8 -8
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +2 -2
- 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 +2 -2
- package/dist/logger/index.d.mts +5 -5
- package/dist/logger/index.mjs +3 -3
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +1 -1
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +3 -3
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +2 -2
- 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 +5 -5
- package/dist/{pino-CM1iLXmi.d.mts → pino-BUGULcfS.d.mts} +1 -1
- package/dist/{posthog-DSkHSLCw.mjs → posthog-BUVv9Rky.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +9 -9
- package/dist/{server-CSLVeyyI.d.mts → server-Ciw0ZhhL.d.mts} +1 -1
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/index.d.mts +3 -3
- package/dist/storage/index.mjs +20 -18
- package/dist/theme/adapters/index.d.mts +2 -2
- package/dist/theme/adapters/index.mjs +6 -4
- package/dist/theme/adapters/unhead/index.d.mts +2 -0
- package/dist/theme/adapters/unhead/index.mjs +4 -0
- package/dist/theme/adapters/v0/index.d.mts +2 -2
- package/dist/theme/adapters/v0/index.mjs +4 -3
- package/dist/theme/index.d.mts +2 -2
- package/dist/theme/index.mjs +12 -10
- package/dist/types/index.d.mts +1 -1
- package/dist/unhead-CMUN7pv4.mjs +63 -0
- package/dist/{useFeatures-DNQ8V1So.mjs → useFeatures-_uwRwuBy.mjs} +3 -3
- package/dist/{useLocale-BpjMU7hm.mjs → useLocale-BNecStw9.mjs} +9 -5
- package/dist/{useLogger-jmvgVE6N.mjs → useLogger-B3ijAgn0.mjs} +29 -7
- package/dist/{usePermissions-TIV4dGj1.mjs → usePermissions-5g7JSb3-.mjs} +2 -2
- package/dist/{useRules-sRYyyrvM.mjs → useRules-BnQZP8n2.mjs} +2 -2
- package/dist/{useTheme-vAXldHit.mjs → useTheme-CKcE6z3t.mjs} +10 -7
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +11 -11
- package/dist/{v0-vIA3663g.mjs → v0-3e8B6fd8.mjs} +7 -32
- package/dist/{v0-B6ILFiMN.d.mts → v0-BRnEUnx1.d.mts} +2 -2
- package/dist/{v0-CQ2qHo5-.d.mts → v0-B_8xEDpf.d.mts} +1 -1
- package/dist/{v0-JPf99NKg.d.mts → v0-C3cGdshz.d.mts} +1 -1
- package/dist/{v0-Dem6wjKF.mjs → v0-C64RQgkl.mjs} +1 -1
- package/dist/{v0-JMByI2xs.mjs → v0-Dab-mQua.mjs} +1 -1
- package/dist/{v0-3zDdS4II.d.mts → v0-WOPq3YTM.d.mts} +1 -1
- package/dist/{virtual-Dg0Cm5Hn.d.mts → virtual-By1prSSj.d.mts} +1 -1
- package/package.json +2 -1
- /package/dist/{adapter-CJQav2JB.d.mts → adapter-CST7kApg.d.mts} +0 -0
- /package/dist/{adapter-BWMm0JAQ.d.mts → adapter-cc0r4Pfu.d.mts} +0 -0
- /package/dist/{adapters-C66XaKkw.mjs → adapters-BvwLemDt.mjs} +0 -0
- /package/dist/{index-CeNfBYuo.d.mts → index-BsNeOyXe.d.mts} +0 -0
- /package/dist/{index-BvTD7kU8.d.mts → index-BvlxDVXg.d.mts} +0 -0
- /package/dist/{index-DSao7i57.d.mts → index-C9Wj_it8.d.mts} +0 -0
- /package/dist/{index-Dor6eAEc.d.mts → index-D7Yh-7yN.d.mts} +0 -0
- /package/dist/{memory-DyBabFV1.d.mts → memory-CC5pKIAp.d.mts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNullOrUndefined, isNumber, isString } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import { t as createGroup } from "./createGroup-
|
|
4
|
-
import { a as useLocale } from "./useLocale-
|
|
3
|
+
import { t as createGroup } from "./createGroup-C38Mc-se.mjs";
|
|
4
|
+
import { a as useLocale } from "./useLocale-BNecStw9.mjs";
|
|
5
5
|
import { t as ClientAdapter } from "./v0-D87sooe0.mjs";
|
|
6
6
|
import { computed, shallowReactive, shallowRef, toRef, watch } from "vue";
|
|
7
7
|
//#region src/composables/createDataTable/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import { t as createSelection } from "./createSelection-
|
|
3
|
+
import { t as createSelection } from "./createSelection-GS1yfwki.mjs";
|
|
4
4
|
import { t as toArray } from "./toArray-VdROPpy-.mjs";
|
|
5
5
|
import { computed, onScopeDispose, reactive, shallowReactive, toRef, toValue } from "vue";
|
|
6
6
|
//#region src/composables/useProxyRegistry/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import { a as createRegistry } from "./createTokens-
|
|
3
|
+
import { a as createRegistry } from "./createTokens-Ckczb95n.mjs";
|
|
4
4
|
import { computed, isRef, shallowReactive, toRaw, toRef, toValue } from "vue";
|
|
5
5
|
//#region src/composables/createModel/index.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-C_c8eedz.mjs";
|
|
2
|
-
import { t as createSelection } from "./createSelection-
|
|
2
|
+
import { t as createSelection } from "./createSelection-GS1yfwki.mjs";
|
|
3
3
|
import { toRef } from "vue";
|
|
4
4
|
//#region src/composables/createSingle/index.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clamp, isObject, isString, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import { i as useLogger } from "./useLogger-
|
|
3
|
+
import { i as useLogger } from "./useLogger-B3ijAgn0.mjs";
|
|
4
4
|
import { shallowReactive } from "vue";
|
|
5
5
|
//#region src/composables/createRegistry/index.ts
|
|
6
6
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClientAdapter } from "../../../v0-
|
|
1
|
+
import { t as ClientAdapter } from "../../../v0-B_8xEDpf.mjs";
|
|
2
2
|
export { ClientAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SortDirection, i as DataTableAdapterResult, n as DataTableAdapterContext, o as SortEntry, r as DataTableAdapterInterface, t as DataTableAdapter } from "../../adapter-
|
|
2
|
-
import { n as ServerAdapterOptions, t as ServerAdapter } from "../../server-
|
|
3
|
-
import { t as ClientAdapter } from "../../v0-
|
|
4
|
-
import { t as VirtualAdapter } from "../../virtual-
|
|
1
|
+
import { a as SortDirection, i as DataTableAdapterResult, n as DataTableAdapterContext, o as SortEntry, r as DataTableAdapterInterface, t as DataTableAdapter } from "../../adapter-DIZk5xrU.mjs";
|
|
2
|
+
import { n as ServerAdapterOptions, t as ServerAdapter } from "../../server-Ciw0ZhhL.mjs";
|
|
3
|
+
import { t as ClientAdapter } from "../../v0-B_8xEDpf.mjs";
|
|
4
|
+
import { t as VirtualAdapter } from "../../virtual-By1prSSj.mjs";
|
|
5
5
|
export { ClientAdapter, DataTableAdapter, DataTableAdapterContext, DataTableAdapterInterface, DataTableAdapterResult, ServerAdapter, ServerAdapterOptions, SortDirection, SortEntry, VirtualAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ServerAdapterOptions, t as ServerAdapter } from "../../../server-
|
|
1
|
+
import { n as ServerAdapterOptions, t as ServerAdapter } from "../../../server-Ciw0ZhhL.mjs";
|
|
2
2
|
export { ServerAdapter, ServerAdapterOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VirtualAdapter } from "../../../virtual-
|
|
1
|
+
import { t as VirtualAdapter } from "../../../virtual-By1prSSj.mjs";
|
|
2
2
|
export { VirtualAdapter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as SortDirection, i as DataTableAdapterResult, n as DataTableAdapterContext, o as SortEntry, r as DataTableAdapterInterface, t as DataTableAdapter } from "../adapter-
|
|
2
|
-
import { n as ServerAdapterOptions, t as ServerAdapter } from "../server-
|
|
3
|
-
import { t as ClientAdapter } from "../v0-
|
|
4
|
-
import { t as VirtualAdapter } from "../virtual-
|
|
5
|
-
import { a as DataTableGroup, c as DataTableSelection, d as createDataTable, f as createDataTableContext, i as DataTableExpansion, l as DataTableSort, n as DataTableContext, o as DataTableGrouping, p as useDataTable, r as DataTableContextOptions, s as DataTableOptions, t as DataTableColumn, u as SelectStrategy } from "../index-
|
|
1
|
+
import { a as SortDirection, i as DataTableAdapterResult, n as DataTableAdapterContext, o as SortEntry, r as DataTableAdapterInterface, t as DataTableAdapter } from "../adapter-DIZk5xrU.mjs";
|
|
2
|
+
import { n as ServerAdapterOptions, t as ServerAdapter } from "../server-Ciw0ZhhL.mjs";
|
|
3
|
+
import { t as ClientAdapter } from "../v0-B_8xEDpf.mjs";
|
|
4
|
+
import { t as VirtualAdapter } from "../virtual-By1prSSj.mjs";
|
|
5
|
+
import { a as DataTableGroup, c as DataTableSelection, d as createDataTable, f as createDataTableContext, i as DataTableExpansion, l as DataTableSort, n as DataTableContext, o as DataTableGrouping, p as useDataTable, r as DataTableContextOptions, s as DataTableOptions, t as DataTableColumn, u as SelectStrategy } from "../index-D5ehwqoP.mjs";
|
|
6
6
|
export { ClientAdapter, DataTableAdapter, DataTableAdapterContext, DataTableAdapterInterface, DataTableAdapterResult, DataTableColumn, DataTableContext, DataTableContextOptions, DataTableExpansion, DataTableGroup, DataTableGrouping, DataTableOptions, DataTableSelection, DataTableSort, SelectStrategy, ServerAdapter, ServerAdapterOptions, SortDirection, SortEntry, VirtualAdapter, createDataTable, createDataTableContext, useDataTable };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../globals-
|
|
1
|
+
import "../globals-B6VQTLVM.mjs";
|
|
2
2
|
import "../createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import "../useLogger-
|
|
3
|
+
import "../useLogger-B3ijAgn0.mjs";
|
|
4
4
|
import "../pino-B7tJ3m18.mjs";
|
|
5
|
-
import "../v0-
|
|
5
|
+
import "../v0-C64RQgkl.mjs";
|
|
6
6
|
import "../adapters-Bv5aRv3l.mjs";
|
|
7
|
-
import "../createTokens-
|
|
8
|
-
import "../createSelection-
|
|
9
|
-
import "../createSingle-
|
|
10
|
-
import "../createGroup-
|
|
7
|
+
import "../createTokens-Ckczb95n.mjs";
|
|
8
|
+
import "../createSelection-GS1yfwki.mjs";
|
|
9
|
+
import "../createSingle-Dh2gp4kv.mjs";
|
|
10
|
+
import "../createGroup-C38Mc-se.mjs";
|
|
11
11
|
import "../toArray-VdROPpy-.mjs";
|
|
12
|
-
import "../v0-
|
|
12
|
+
import "../v0-Dab-mQua.mjs";
|
|
13
13
|
import "../adapters-BjeDmKc6.mjs";
|
|
14
|
-
import "../useLocale-
|
|
14
|
+
import "../useLocale-BNecStw9.mjs";
|
|
15
15
|
import "../createPagination-CeGMgKCx.mjs";
|
|
16
16
|
import { t as DataTableAdapter } from "../adapter-DXRKF27V.mjs";
|
|
17
17
|
import { t as ClientAdapter } from "../v0-D87sooe0.mjs";
|
|
18
18
|
import { t as ServerAdapter } from "../server-CYYGvVps.mjs";
|
|
19
19
|
import { t as VirtualAdapter } from "../virtual-D75KhU6Q.mjs";
|
|
20
20
|
import "../adapters-uJLWGQJl.mjs";
|
|
21
|
-
import { n as createDataTableContext, r as useDataTable, t as createDataTable } from "../createDataTable-
|
|
21
|
+
import { n as createDataTableContext, r as useDataTable, t as createDataTable } from "../createDataTable-DGG3Kgau.mjs";
|
|
22
22
|
export { ClientAdapter, DataTableAdapter, ServerAdapter, VirtualAdapter, createDataTable, createDataTableContext, useDataTable };
|
package/dist/date/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { n as Temporal, t as DateAdapter } from "../adapter-
|
|
1
|
+
import { n as Temporal, t as DateAdapter } from "../adapter-cc0r4Pfu.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/composables/useDate/adapters/v0.d.ts
|
|
4
4
|
type PlainDateTime = Temporal.PlainDateTime;
|
|
5
5
|
declare class Vuetify0DateAdapter implements DateAdapter<PlainDateTime> {
|
|
6
6
|
private _locale;
|
|
7
7
|
private _firstDayOfWeek;
|
|
8
|
+
private _minimalDays;
|
|
8
9
|
/** Cache for Intl.DateTimeFormat instances, keyed by locale + options */
|
|
9
10
|
private formatCache;
|
|
10
11
|
/** Cache for Intl.NumberFormat instances, keyed by locale */
|
package/dist/date/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-B6VQTLVM.mjs";
|
|
2
2
|
import { isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var __create = Object.create;
|
|
@@ -6941,26 +6941,47 @@ for (const e of _i) {
|
|
|
6941
6941
|
const FORMAT_TOKEN_REGEX = /YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|m|ss|s|A|a/g;
|
|
6942
6942
|
/** Maximum cache size to prevent memory leaks */
|
|
6943
6943
|
const MAX_CACHE_SIZE = 50;
|
|
6944
|
-
/**
|
|
6945
|
-
|
|
6944
|
+
/**
|
|
6945
|
+
* Derive week info from locale.
|
|
6946
|
+
*
|
|
6947
|
+
* Uses Intl.Locale.getWeekInfo() when available, with a hardcoded
|
|
6948
|
+
* fallback table for minimalDays (not available in all runtimes).
|
|
6949
|
+
* Data sourced from CLDR via Intl.Locale.getWeekInfo() spec.
|
|
6950
|
+
*/
|
|
6951
|
+
function deriveWeekInfo(locale) {
|
|
6946
6952
|
try {
|
|
6947
6953
|
const loc = new Intl.Locale(locale);
|
|
6948
6954
|
const info = loc.getWeekInfo?.() ?? loc.weekInfo;
|
|
6949
|
-
return
|
|
6955
|
+
return {
|
|
6956
|
+
firstDay: info?.firstDay === 7 ? 0 : info?.firstDay ?? 0,
|
|
6957
|
+
minimalDays: info?.minimalDays ?? deriveMinimalDays(locale)
|
|
6958
|
+
};
|
|
6950
6959
|
} catch {
|
|
6951
|
-
return
|
|
6960
|
+
return {
|
|
6961
|
+
firstDay: 0,
|
|
6962
|
+
minimalDays: 1
|
|
6963
|
+
};
|
|
6952
6964
|
}
|
|
6953
6965
|
}
|
|
6966
|
+
/** Fallback minimalDays lookup when Intl.Locale doesn't provide it */
|
|
6967
|
+
function deriveMinimalDays(locale) {
|
|
6968
|
+
const code = locale.slice(-2).toUpperCase();
|
|
6969
|
+
if ("AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS IT LI LT LU MC MQ NL NO PL PT RE RU SE SK SM VA".includes(code)) return 4;
|
|
6970
|
+
return 1;
|
|
6971
|
+
}
|
|
6954
6972
|
var Vuetify0DateAdapter = class {
|
|
6955
6973
|
_locale;
|
|
6956
6974
|
_firstDayOfWeek = 0;
|
|
6975
|
+
_minimalDays = 1;
|
|
6957
6976
|
/** Cache for Intl.DateTimeFormat instances, keyed by locale + options */
|
|
6958
6977
|
formatCache = /* @__PURE__ */ new Map();
|
|
6959
6978
|
/** Cache for Intl.NumberFormat instances, keyed by locale */
|
|
6960
6979
|
numberFormatCache = /* @__PURE__ */ new Map();
|
|
6961
6980
|
constructor(locale = "en-US") {
|
|
6962
6981
|
this._locale = locale;
|
|
6963
|
-
|
|
6982
|
+
const info = deriveWeekInfo(locale);
|
|
6983
|
+
this._firstDayOfWeek = info.firstDay;
|
|
6984
|
+
this._minimalDays = info.minimalDays;
|
|
6964
6985
|
}
|
|
6965
6986
|
/** Current locale. Setting a new locale clears format caches. */
|
|
6966
6987
|
get locale() {
|
|
@@ -6972,7 +6993,9 @@ var Vuetify0DateAdapter = class {
|
|
|
6972
6993
|
set locale(value) {
|
|
6973
6994
|
if (this._locale !== value) {
|
|
6974
6995
|
this._locale = value;
|
|
6975
|
-
|
|
6996
|
+
const info = deriveWeekInfo(value);
|
|
6997
|
+
this._firstDayOfWeek = info.firstDay;
|
|
6998
|
+
this._minimalDays = info.minimalDays;
|
|
6976
6999
|
this.formatCache.clear();
|
|
6977
7000
|
this.numberFormatCache.clear();
|
|
6978
7001
|
}
|
|
@@ -7394,17 +7417,18 @@ var Vuetify0DateAdapter = class {
|
|
|
7394
7417
|
default: return duration.days;
|
|
7395
7418
|
}
|
|
7396
7419
|
}
|
|
7397
|
-
getWeek(date, minimalDays
|
|
7420
|
+
getWeek(date, minimalDays) {
|
|
7421
|
+
const md = minimalDays ?? this._minimalDays;
|
|
7398
7422
|
const currentWeekStart = this.startOfWeek(date);
|
|
7399
7423
|
const currentWeekEnd = this.addDays(currentWeekStart, 6);
|
|
7400
7424
|
let year = this.getYear(currentWeekStart);
|
|
7401
7425
|
if (year < this.getYear(currentWeekEnd)) {
|
|
7402
7426
|
const nextYearStart = new qi.PlainDateTime(year + 1, 1, 1);
|
|
7403
|
-
if (7 - this.getDiff(nextYearStart, this.startOfWeek(nextYearStart), "days") >=
|
|
7427
|
+
if (7 - this.getDiff(nextYearStart, this.startOfWeek(nextYearStart), "days") >= md) year++;
|
|
7404
7428
|
}
|
|
7405
7429
|
const yearStart = new qi.PlainDateTime(year, 1, 1);
|
|
7406
7430
|
const firstWeekSize = 7 - this.getDiff(yearStart, this.startOfWeek(yearStart), "days");
|
|
7407
|
-
const weekOneStart = firstWeekSize >=
|
|
7431
|
+
const weekOneStart = firstWeekSize >= md ? yearStart.add({ days: firstWeekSize }).add({ weeks: -1 }) : yearStart.add({ days: firstWeekSize });
|
|
7408
7432
|
return 1 + this.getDiff(currentWeekStart, weekOneStart, "weeks");
|
|
7409
7433
|
}
|
|
7410
7434
|
getDaysInMonth(date) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-
|
|
1
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-pwVD-IDb.mjs";
|
|
2
2
|
import { IFlagsmith, IInitConfig } from "@flagsmith/flagsmith";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/useFeatures/adapters/flagsmith/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-
|
|
1
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-pwVD-IDb.mjs";
|
|
2
2
|
import { LDClient } from "launchdarkly-js-client-sdk";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/useFeatures/adapters/launchdarkly/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-
|
|
1
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "../../../index-pwVD-IDb.mjs";
|
|
2
2
|
import { PostHog } from "posthog-js";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/useFeatures/adapters/posthog/index.d.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../../globals-
|
|
2
|
-
import { t as PostHogFeatureAdapter } from "../../../posthog-
|
|
1
|
+
import "../../../globals-B6VQTLVM.mjs";
|
|
2
|
+
import { t as PostHogFeatureAdapter } from "../../../posthog-BUVv9Rky.mjs";
|
|
3
3
|
export { PostHogFeatureAdapter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as FeaturesAdapterValue, n as FeaturesAdapterFlags, r as FeaturesAdapterInterface, t as FeaturesAdapter } from "../index-
|
|
1
|
+
import { Ci as createFeaturesContext, Si as createFeatures, Ti as useFeatures, _i as FeatureContextOptions, bi as FeatureTicket, gi as FeatureContext, vi as FeatureOptions, wi as createFeaturesPlugin, xi as FeatureTicketInput, yi as FeaturePluginOptions } from "../index-BAix61Ke.mjs";
|
|
2
|
+
import { i as FeaturesAdapterValue, n as FeaturesAdapterFlags, r as FeaturesAdapterInterface, t as FeaturesAdapter } from "../index-pwVD-IDb.mjs";
|
|
3
3
|
export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags, FeaturesAdapterInterface, FeaturesAdapterValue, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
package/dist/features/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../globals-
|
|
1
|
+
import "../globals-B6VQTLVM.mjs";
|
|
2
2
|
import "../createTrinity-C_c8eedz.mjs";
|
|
3
|
-
import "../useLogger-
|
|
3
|
+
import "../useLogger-B3ijAgn0.mjs";
|
|
4
4
|
import "../pino-B7tJ3m18.mjs";
|
|
5
|
-
import "../v0-
|
|
5
|
+
import "../v0-C64RQgkl.mjs";
|
|
6
6
|
import "../adapters-Bv5aRv3l.mjs";
|
|
7
|
-
import "../createTokens-
|
|
8
|
-
import "../createSelection-
|
|
9
|
-
import "../createGroup-
|
|
7
|
+
import "../createTokens-Ckczb95n.mjs";
|
|
8
|
+
import "../createSelection-GS1yfwki.mjs";
|
|
9
|
+
import "../createGroup-C38Mc-se.mjs";
|
|
10
10
|
import "../toArray-VdROPpy-.mjs";
|
|
11
|
-
import { a as FeaturesAdapter, i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-
|
|
12
|
-
import "../posthog-
|
|
11
|
+
import { a as FeaturesAdapter, i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-_uwRwuBy.mjs";
|
|
12
|
+
import "../posthog-BUVv9Rky.mjs";
|
|
13
13
|
export { FeaturesAdapter, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
|
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
|
|
|
5
5
|
const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
|
|
6
6
|
const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
|
|
7
7
|
const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
|
|
8
|
-
const version = "0.
|
|
8
|
+
const version = "0.2.0";
|
|
9
9
|
/* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
|
|
10
10
|
const __LOGGER_ENABLED__ = typeof (process.env.NODE_ENV !== "production") !== "undefined" && process.env.NODE_ENV !== "production" || typeof process.env.VITE_LOGGER_ENABLED !== "undefined" && process.env.VITE_LOGGER_ENABLED === "true";
|
|
11
11
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as DeepPartial } from "./index-
|
|
1
|
+
import { r as DeepPartial } from "./index-D7Yh-7yN.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities/color.d.ts
|
|
4
4
|
interface RGB {
|
|
@@ -229,6 +229,33 @@ declare function isSymbol(item: unknown): item is symbol;
|
|
|
229
229
|
* @see {@link isNumber} to check if a value is a number type
|
|
230
230
|
*/
|
|
231
231
|
declare function isNaN(item: unknown): item is number;
|
|
232
|
+
/**
|
|
233
|
+
* Deeply merges source objects into a target object, returning a new object
|
|
234
|
+
*
|
|
235
|
+
* @param target The base object to merge into
|
|
236
|
+
* @param sources One or more source objects to merge from
|
|
237
|
+
* @returns A new merged object (inputs are not mutated)
|
|
238
|
+
*
|
|
239
|
+
* @remarks
|
|
240
|
+
* - Creates and returns a new object — inputs are never mutated
|
|
241
|
+
* - Nested objects are recursively merged
|
|
242
|
+
* - Arrays are replaced, not merged
|
|
243
|
+
* - Primitives from sources overwrite target values
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```ts
|
|
247
|
+
* const target = { a: 1, b: { c: 2 } }
|
|
248
|
+
* const result = mergeDeep(target, { b: { d: 3 } })
|
|
249
|
+
* // result is { a: 1, b: { c: 2, d: 3 } }
|
|
250
|
+
* // target is unchanged
|
|
251
|
+
*
|
|
252
|
+
* // Multiple sources
|
|
253
|
+
* mergeDeep({}, { a: 1 }, { b: 2 }) // { a: 1, b: 2 }
|
|
254
|
+
*
|
|
255
|
+
* // Arrays are replaced
|
|
256
|
+
* mergeDeep({ arr: [1, 2] }, { arr: [3] }) // { arr: [3] }
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
232
259
|
declare function mergeDeep<T extends object>(target: T, ...sources: DeepPartial<T>[]): T;
|
|
233
260
|
/**
|
|
234
261
|
* Generates a unique ID, using Vue's useId when in component context
|