@vuetify/v0 1.0.0-alpha.2 → 1.0.0-alpha.4
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 +6 -1
- package/dist/adapter-BSKx9WQ7.mjs +4 -0
- package/dist/{index-CT5SCLzW.d.mts → adapter-C6JmOyYo.d.mts} +6 -9
- package/dist/{adapter-gQ2SNKZq.mjs → adapter-C9cR4AcY.mjs} +248 -5
- package/dist/adapter-Chznb9Ju.mjs +4 -0
- package/dist/{adapter-DlX3FA3A.d.mts → adapter-Cr7Bl4la.d.mts} +3 -7
- package/dist/adapter-D8zizQVP.mjs +4 -0
- package/dist/adapter-DgBBe_BW.d.mts +17 -0
- package/dist/adapter-Dzyrlbz7.d.mts +98 -0
- package/dist/adapter-o8r-2vUn.d.mts +11 -0
- package/dist/adapters-B25KaYU4.mjs +2 -0
- package/dist/adapters-BcddLSNs.mjs +4 -0
- package/dist/adapters-D64TORDu.mjs +2 -0
- package/dist/adapters-Dv74Jk6A.mjs +5 -0
- package/dist/adapters-t6QC-zE8.mjs +3 -0
- package/dist/browser/index.js +5167 -597
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{components-CqDewYTU.mjs → components-BWxMSWr7.mjs} +3780 -417
- package/dist/composables/index.d.mts +19 -19
- package/dist/composables/index.mjs +31 -29
- package/dist/{consola-BdgyPEfx.d.mts → consola-Crr4qbeI.d.mts} +2 -2
- package/dist/{consola-Ceox8BWi.mjs → consola-DYvbPNbF.mjs} +3 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{createDataTable-rXBqGglI.mjs → createDataTable-DDr2yY-A.mjs} +30 -29
- package/dist/{createGroup-BU4olYtB.mjs → createGroup-BSGtfBUE.mjs} +3 -3
- package/dist/{createRegistry-Dl-bSSTr.mjs → createRegistry-Db_juawd.mjs} +78 -41
- package/dist/{createSelection-Csaa-C8p.mjs → createSelection-BeKZMxha.mjs} +3 -3
- package/dist/{createSingle-8xbHAIpY.mjs → createSingle-Dms2efxr.mjs} +1 -1
- package/dist/{createTokens-lNg2M_P_.mjs → createTokens-B1lwHZvO.mjs} +2 -2
- package/dist/data-table/adapters/client/index.d.mts +2 -2
- package/dist/data-table/adapters/client/index.mjs +2 -2
- package/dist/data-table/adapters/index.d.mts +5 -5
- package/dist/data-table/adapters/index.mjs +6 -6
- package/dist/data-table/adapters/server/index.d.mts +2 -2
- package/dist/data-table/adapters/server/index.mjs +2 -2
- package/dist/data-table/adapters/virtual/index.d.mts +2 -2
- package/dist/data-table/adapters/virtual/index.mjs +2 -2
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +6 -6
- package/dist/date/index.d.mts +3 -3
- package/dist/date/index.mjs +11 -4
- package/dist/features/adapters/flagsmith/index.d.mts +2 -2
- package/dist/features/adapters/flagsmith/index.mjs +2 -2
- package/dist/features/adapters/launchdarkly/index.d.mts +2 -2
- package/dist/features/adapters/launchdarkly/index.mjs +2 -2
- package/dist/features/adapters/posthog/index.d.mts +2 -2
- package/dist/features/adapters/posthog/index.mjs +2 -2
- package/dist/features/index.d.mts +3 -3
- package/dist/features/index.mjs +2 -1
- package/dist/{flagsmith-Dbh1h8WF.mjs → flagsmith-Cu93hUIF.mjs} +6 -4
- package/dist/{index-BzFHTW59.d.mts → flagsmith-ygKMImos.d.mts} +4 -4
- package/dist/{globals-CKdzjeLe.mjs → globals-BAe6tA_x.mjs} +1 -1
- package/dist/{index-GOpjKzaJ.d.mts → index-B3-FstpY.d.mts} +25 -2
- package/dist/{index-BJGcVy7e.d.mts → index-BA7YU2xY.d.mts} +5 -5
- package/dist/{index-BxKMMWnQ.d.mts → index-BfpLkDR_.d.mts} +1113 -74
- package/dist/{index-DE3bWw11.d.mts → index-Cw04PFVO.d.mts} +92 -48
- package/dist/index-DewYtDsc.d.mts +4 -0
- package/dist/{index-B7cqgTBL.d.mts → index-jQPkwo3G.d.mts} +598 -363
- package/dist/index.d.mts +23 -23
- package/dist/index.mjs +35 -33
- package/dist/json/attributes.json +57 -1
- package/dist/json/importMap.json +16 -0
- package/dist/json/tags.json +29 -0
- package/dist/json/web-types.json +181 -3
- package/dist/launchdarkly-BJR4vbbV.d.mts +13 -0
- package/dist/{launchdarkly-BKtW-idu.mjs → launchdarkly-CLGtJCsI.mjs} +6 -4
- package/dist/locale/adapters/index.d.mts +3 -3
- package/dist/locale/adapters/index.mjs +4 -3
- package/dist/locale/adapters/v0/index.d.mts +2 -2
- package/dist/locale/adapters/v0/index.mjs +2 -2
- package/dist/locale/adapters/vue-i18n/index.d.mts +3 -3
- package/dist/locale/adapters/vue-i18n/index.mjs +4 -2
- package/dist/locale/index.d.mts +4 -4
- package/dist/locale/index.mjs +4 -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 +5 -5
- package/dist/logger/adapters/index.mjs +6 -5
- 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 +2 -2
- package/dist/logger/adapters/v0/index.mjs +2 -2
- package/dist/logger/index.d.mts +6 -6
- package/dist/logger/index.mjs +6 -5
- package/dist/{memory-CeSQE-QV.d.mts → memory-B0w39kno.d.mts} +9 -9
- package/dist/{memory-oYBvtkgx.mjs → memory-BMpJcQjQ.mjs} +13 -3
- package/dist/notifications/index.d.mts +30 -4
- package/dist/notifications/index.mjs +187 -126
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +3 -3
- package/dist/palettes/leonardo/generate/index.mjs +5 -1
- 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 +3 -3
- package/dist/permissions/adapters/v0/index.d.mts +2 -2
- package/dist/permissions/adapters/v0/index.mjs +2 -2
- package/dist/permissions/index.d.mts +2 -2
- package/dist/permissions/index.mjs +3 -3
- package/dist/{pino-9L79n6y6.mjs → pino-CIcYlW3u.mjs} +3 -1
- package/dist/{pino-DNfCEb0p.d.mts → pino-NmR7X0s4.d.mts} +2 -2
- package/dist/{posthog-DZNnPXxS.mjs → posthog-B3go2aCh.mjs} +7 -5
- package/dist/posthog-CQntUXFO.d.mts +13 -0
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-3ilWFwqe.d.mts → server-DQK305lc.d.mts} +5 -5
- package/dist/{server-y7zLSCSx.mjs → server-ZFXbgQoY.mjs} +4 -3
- package/dist/storage/adapters/index.d.mts +3 -3
- package/dist/storage/adapters/index.mjs +2 -2
- package/dist/storage/adapters/memory/index.d.mts +2 -2
- package/dist/storage/adapters/memory/index.mjs +2 -2
- package/dist/storage/index.d.mts +4 -4
- package/dist/storage/index.mjs +3 -3
- package/dist/theme/adapters/index.d.mts +2 -2
- package/dist/theme/adapters/index.mjs +4 -4
- 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 +3 -3
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-DZiD-4Tx.mjs → unhead-dPyVkgiJ.mjs} +2 -2
- package/dist/{useClickOutside-CmCUD_Pf.mjs → useClickOutside-B8naChaQ.mjs} +1405 -288
- package/dist/{useFeatures-ZIvzzuEV.mjs → useFeatures-x2iKp0C8.mjs} +7 -10
- package/dist/{useLocale-DTJx3aKR.mjs → useLocale-BUms59Bw.mjs} +6 -6
- package/dist/{useLogger-BBTcMN61.mjs → useLogger-DPSSa-YR.mjs} +4 -4
- package/dist/{useNotifications-H4knpvNw.mjs → useNotifications-BPTmZWQy.mjs} +22 -11
- package/dist/{usePermissions-B_G12Dwd.mjs → usePermissions-CTi-3pBk.mjs} +6 -6
- package/dist/{useRules--7Qoo60I.mjs → useRules-DNhljkyO.mjs} +2 -2
- package/dist/{useTheme-Co05TEeD.mjs → useTheme-3vW3kFNg.mjs} +5 -5
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +27 -2
- package/dist/{v0-DrOub-e1.d.mts → v0-CRGArJim.d.mts} +4 -4
- package/dist/{v0-D0Mh3EVG.mjs → v0-CotC1PiS.mjs} +5 -3
- package/dist/{v0-Dq3zhexO.mjs → v0-DAlKpCR8.mjs} +3 -4
- package/dist/{v0-D7Fm2C3Y.d.mts → v0-DDELiSI6.d.mts} +3 -3
- package/dist/v0-DYsCJPIu.d.mts +8 -0
- package/dist/{v0-BrTEO5sv.mjs → v0-DadOcxFI.mjs} +2 -2
- package/dist/{v0-Bmow1q_x.mjs → v0-Dvu8fMl3.mjs} +3 -3
- package/dist/{v0-DeiZuexg.mjs → v0-YJQoTLsp.mjs} +6 -4
- package/dist/virtual-BqCRw0ly.d.mts +8 -0
- package/dist/{virtual-C0yHf1DC.mjs → virtual-Dnno49F8.mjs} +3 -4
- package/package.json +10 -10
- package/dist/adapter-58IvIfAZ.d.mts +0 -96
- package/dist/adapter-BvWEd9w-.d.mts +0 -17
- package/dist/adapter-Dhq68tz0.d.mts +0 -11
- package/dist/adapters-BJ5n7rgh.mjs +0 -3
- package/dist/adapters-BnKW0BF_.mjs +0 -2
- package/dist/adapters-CBrvizWb.mjs +0 -4
- package/dist/adapters-CMJGA1k7.mjs +0 -2
- package/dist/adapters-Dse4bPxk.mjs +0 -5
- package/dist/createPagination-CHF7SmmK.mjs +0 -247
- package/dist/index-1XdASTjp.d.mts +0 -13
- package/dist/index-C6rdXZ7j.d.mts +0 -11
- package/dist/index-Dp1HjBxJ.d.mts +0 -13
- package/dist/v0-CdusXjY_.d.mts +0 -8
- package/dist/virtual-D4fckewC.d.mts +0 -8
- /package/dist/{adapter-Be9zUc-n.mjs → adapter-oM18AdUc.mjs} +0 -0
- /package/dist/{htmlElements-D4oMQZPJ.mjs → htmlElements-CHXZfsZu.mjs} +0 -0
- /package/dist/{index-CFhUdAHM.d.mts → index-CKKoxA9V.d.mts} +0 -0
- /package/dist/{index-DuddF-NR.d.mts → index-CLR1QMM3.d.mts} +0 -0
- /package/dist/{index-BgCkepP_.d.mts → index-DJQwYeyx.d.mts} +0 -0
- /package/dist/{index-CROz1VSV.d.mts → index-DWfPppPU.d.mts} +0 -0
- /package/dist/{index-DTvqw22G.d.mts → index-H_hl6-4b.d.mts} +0 -0
- /package/dist/{toArray-as9BWxBK.mjs → toArray-CD2-OxAz.mjs} +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { isArray, isBoolean, isFunction, isObject } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as createGroup } from "./createGroup-
|
|
5
|
-
import "./flagsmith-
|
|
6
|
-
import "./launchdarkly-
|
|
7
|
-
import "./posthog-
|
|
8
|
-
//#region src/composables/useFeatures/adapters/generic/index.ts
|
|
9
|
-
var FeaturesAdapter = class {};
|
|
10
|
-
//#endregion
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-B1lwHZvO.mjs";
|
|
4
|
+
import { t as createGroup } from "./createGroup-BSGtfBUE.mjs";
|
|
5
|
+
import "./flagsmith-Cu93hUIF.mjs";
|
|
6
|
+
import "./launchdarkly-CLGtJCsI.mjs";
|
|
7
|
+
import "./posthog-B3go2aCh.mjs";
|
|
11
8
|
//#region src/composables/useFeatures/index.ts
|
|
12
9
|
/**
|
|
13
10
|
* @module useFeatures
|
|
@@ -128,4 +125,4 @@ const [createFeaturesContext, createFeaturesPlugin, useFeatures] = createPluginC
|
|
|
128
125
|
}
|
|
129
126
|
});
|
|
130
127
|
//#endregion
|
|
131
|
-
export {
|
|
128
|
+
export { useFeatures as i, createFeaturesContext as n, createFeaturesPlugin as r, createFeatures as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as createPluginContext } from "./useLogger-
|
|
2
|
-
import { t as createSingle } from "./createSingle-
|
|
3
|
-
import { r as flatten, t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as
|
|
5
|
-
import "./adapters-
|
|
1
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
2
|
+
import { t as createSingle } from "./createSingle-Dms2efxr.mjs";
|
|
3
|
+
import { r as flatten, t as createTokens } from "./createTokens-B1lwHZvO.mjs";
|
|
4
|
+
import { t as V0LocaleAdapter } from "./v0-CotC1PiS.mjs";
|
|
5
|
+
import "./adapters-B25KaYU4.mjs";
|
|
6
6
|
//#region src/composables/useLocale/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module useLocale
|
|
@@ -49,7 +49,7 @@ function createLocale(_options = {}) {
|
|
|
49
49
|
registry.register({ id });
|
|
50
50
|
if (id === options.default && !registry.selectedId.value) registry.select(id);
|
|
51
51
|
}
|
|
52
|
-
const adapter = externalAdapter ?? new
|
|
52
|
+
const adapter = externalAdapter ?? new V0LocaleAdapter({
|
|
53
53
|
tokens,
|
|
54
54
|
selectedId: registry.selectedId,
|
|
55
55
|
fallbackLocale,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-BAe6tA_x.mjs";
|
|
2
2
|
import { isNullOrUndefined, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
4
|
-
import { t as
|
|
5
|
-
import "./adapters-
|
|
4
|
+
import { t as V0LoggerAdapter } from "./v0-YJQoTLsp.mjs";
|
|
5
|
+
import "./adapters-t6QC-zE8.mjs";
|
|
6
6
|
import { hasInjectionContext, inject, watch } from "vue";
|
|
7
7
|
//#region src/composables/createPlugin/index.ts
|
|
8
8
|
/**
|
|
@@ -206,7 +206,7 @@ function createPluginContext(defaultNamespace, factory, config) {
|
|
|
206
206
|
* ```
|
|
207
207
|
*/
|
|
208
208
|
function createLogger(options = {}) {
|
|
209
|
-
const { adapter = new
|
|
209
|
+
const { adapter = new V0LoggerAdapter({ prefix: options.prefix }), level: initialLevel = "info", enabled: initialEnabled = __LOGGER_ENABLED__ } = options;
|
|
210
210
|
let currentLevel = initialLevel;
|
|
211
211
|
let isEnabled = initialEnabled;
|
|
212
212
|
function value(level) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BAe6tA_x.mjs";
|
|
2
2
|
import { isFunction, isNull, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
4
|
-
import { o as createPluginContext } from "./useLogger-
|
|
5
|
-
import { t as createRegistry } from "./createRegistry-
|
|
6
|
-
import { onScopeDispose, shallowRef } from "vue";
|
|
4
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-Db_juawd.mjs";
|
|
6
|
+
import { onScopeDispose, shallowRef, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useTimer/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* @module useTimer
|
|
@@ -16,6 +16,7 @@ import { onScopeDispose, shallowRef } from "vue";
|
|
|
16
16
|
* Key features:
|
|
17
17
|
* - Start/stop/pause/resume controls
|
|
18
18
|
* - Reactive remaining time tracking
|
|
19
|
+
* - Reactive `duration` via `MaybeRefOrGetter` — read fresh on each `start()`
|
|
19
20
|
* - One-shot (default) or repeating mode
|
|
20
21
|
* - Automatic cleanup on scope disposal
|
|
21
22
|
* - SSR-safe
|
|
@@ -45,17 +46,26 @@ import { onScopeDispose, shallowRef } from "vue";
|
|
|
45
46
|
* timer.pause()
|
|
46
47
|
* timer.resume()
|
|
47
48
|
* timer.stop()
|
|
49
|
+
*
|
|
50
|
+
* // Reactive duration — re-read on each start()
|
|
51
|
+
* const duration = shallowRef(1000)
|
|
52
|
+
* const reactive = useTimer(handler, { duration })
|
|
53
|
+
* duration.value = 2000
|
|
54
|
+
* reactive.start() // fires after 2000ms
|
|
48
55
|
* ```
|
|
49
56
|
*/
|
|
50
57
|
function useTimer(handler, options = {}) {
|
|
51
58
|
const { duration = 1e3, repeat = false } = options;
|
|
52
|
-
|
|
59
|
+
function resolveDuration() {
|
|
60
|
+
return toValue(duration);
|
|
61
|
+
}
|
|
62
|
+
const remaining = shallowRef(resolveDuration());
|
|
53
63
|
const isActive = shallowRef(false);
|
|
54
64
|
const isPaused = shallowRef(false);
|
|
55
65
|
let timeoutId;
|
|
56
66
|
let trackingId;
|
|
57
67
|
let startedAt = 0;
|
|
58
|
-
let budget =
|
|
68
|
+
let budget = remaining.value;
|
|
59
69
|
function clearTimer() {
|
|
60
70
|
if (!/* @__PURE__ */ isUndefined(timeoutId)) {
|
|
61
71
|
globalThis.clearTimeout(timeoutId);
|
|
@@ -81,7 +91,7 @@ function useTimer(handler, options = {}) {
|
|
|
81
91
|
clearTimer();
|
|
82
92
|
stopTracking();
|
|
83
93
|
handler();
|
|
84
|
-
if (repeat) begin(
|
|
94
|
+
if (repeat) begin(resolveDuration());
|
|
85
95
|
else {
|
|
86
96
|
isActive.value = false;
|
|
87
97
|
remaining.value = 0;
|
|
@@ -99,15 +109,16 @@ function useTimer(handler, options = {}) {
|
|
|
99
109
|
startTracking();
|
|
100
110
|
}
|
|
101
111
|
function start() {
|
|
102
|
-
|
|
103
|
-
|
|
112
|
+
const ms = resolveDuration();
|
|
113
|
+
if (ms < 0) return;
|
|
114
|
+
begin(ms);
|
|
104
115
|
}
|
|
105
116
|
function stop() {
|
|
106
117
|
clearTimer();
|
|
107
118
|
stopTracking();
|
|
108
119
|
isActive.value = false;
|
|
109
120
|
isPaused.value = false;
|
|
110
|
-
remaining.value =
|
|
121
|
+
remaining.value = resolveDuration();
|
|
111
122
|
}
|
|
112
123
|
function pause() {
|
|
113
124
|
if (!isActive.value || isPaused.value) return;
|
|
@@ -265,7 +276,7 @@ function createQueue(_options = {}) {
|
|
|
265
276
|
if (!ticket || ticket.index !== 0 || !ticket.isPaused) return void 0;
|
|
266
277
|
const updated = registry.upsert(ticket.id, { isPaused: false });
|
|
267
278
|
const timer = timers.get(updated.id);
|
|
268
|
-
if (timer) timer.
|
|
279
|
+
if (timer) timer.resume();
|
|
269
280
|
else createTicketTimer(updated);
|
|
270
281
|
return updated;
|
|
271
282
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as createPluginContext } from "./useLogger-
|
|
2
|
-
import { t as createTokens } from "./createTokens-
|
|
3
|
-
import { t as toArray } from "./toArray-
|
|
4
|
-
import { t as
|
|
5
|
-
import "./adapters-
|
|
1
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
2
|
+
import { t as createTokens } from "./createTokens-B1lwHZvO.mjs";
|
|
3
|
+
import { t as toArray } from "./toArray-CD2-OxAz.mjs";
|
|
4
|
+
import { t as V0PermissionsAdapter } from "./v0-Dvu8fMl3.mjs";
|
|
5
|
+
import "./adapters-D64TORDu.mjs";
|
|
6
6
|
//#region src/composables/usePermissions/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module usePermissions
|
|
@@ -53,7 +53,7 @@ import "./adapters-CMJGA1k7.mjs";
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
function createPermissions(_options = {}) {
|
|
56
|
-
const { adapter = new
|
|
56
|
+
const { adapter = new V0PermissionsAdapter(), permissions = {}, ...options } = _options;
|
|
57
57
|
const record = {};
|
|
58
58
|
for (const role in permissions) {
|
|
59
59
|
if (!record[role]) record[role] = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { instanceExists, isFunction, isObject } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { a as useLocale } from "./useLocale-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
3
|
+
import { a as useLocale } from "./useLocale-BUms59Bw.mjs";
|
|
4
4
|
//#region src/composables/useRules/adapters/standard.ts
|
|
5
5
|
/**
|
|
6
6
|
* Type guard for Standard Schema objects.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { foreground } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createSingle } from "./createSingle-
|
|
4
|
-
import { r as flatten, t as createTokens } from "./createTokens-
|
|
5
|
-
import { t as V0StyleSheetThemeAdapter } from "./v0-
|
|
6
|
-
import "./adapters-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-DPSSa-YR.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-Dms2efxr.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-B1lwHZvO.mjs";
|
|
5
|
+
import { t as V0StyleSheetThemeAdapter } from "./v0-DadOcxFI.mjs";
|
|
6
|
+
import "./adapters-BcddLSNs.mjs";
|
|
7
7
|
import { computed, shallowRef, toRef } from "vue";
|
|
8
8
|
//#region src/composables/useTheme/index.ts
|
|
9
9
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { RGB, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
1
|
+
import { C as apca, D as rgbToHex, E as hexToRgb, S as useId, T as RGB, _ as isUndefined, a as isBoolean, b as resolveIds, c as isNaN, d as isNumber, f as isObject, g as isThenable, h as isSymbol, i as isArray, l as isNull, m as isString, n as instanceName, o as isElement, p as isPrimitive, r as clamp, s as isFunction, t as instanceExists, u as isNullOrUndefined, v as mergeDeep, w as foreground, x as resolveIndexes, y as range } from "../index-B3-FstpY.mjs";
|
|
2
|
+
export { RGB, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-BAe6tA_x.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
@@ -230,6 +230,30 @@ function isObject(item) {
|
|
|
230
230
|
return typeof item === "object" && item !== null && !Array.isArray(item);
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
+
* Checks if a value is a thenable (any object with a `.then` method).
|
|
234
|
+
* Duck-typed — matches both native Promises and any Promise-like.
|
|
235
|
+
*
|
|
236
|
+
* @param item The value to check
|
|
237
|
+
* @returns True if the value has a callable `then` property
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```ts
|
|
241
|
+
* isThenable(Promise.resolve()) // true
|
|
242
|
+
* isThenable({ then: () => {} }) // true
|
|
243
|
+
* isThenable({}) // false
|
|
244
|
+
* isThenable('string') // false
|
|
245
|
+
* ```
|
|
246
|
+
*
|
|
247
|
+
* @remarks Use this when duck-typing async behavior — for example, rejecting
|
|
248
|
+
* a callback that returned a Promise-like when only synchronous returns are
|
|
249
|
+
* supported. If you specifically want native Promise instances, use
|
|
250
|
+
* `instanceof Promise` directly.
|
|
251
|
+
*/
|
|
252
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
253
|
+
function isThenable(item) {
|
|
254
|
+
return /* @__PURE__ */ isObject(item) && "then" in item && /* @__PURE__ */ isFunction(item.then);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
233
257
|
* Checks if a value is an array
|
|
234
258
|
*
|
|
235
259
|
* @param item The value to check
|
|
@@ -481,6 +505,7 @@ function useId() {
|
|
|
481
505
|
*/
|
|
482
506
|
/* @__NO_SIDE_EFFECTS__ */
|
|
483
507
|
function clamp(value, min = 0, max = 1) {
|
|
508
|
+
if (!Number.isFinite(value)) return min;
|
|
484
509
|
return Math.max(min, Math.min(max, value));
|
|
485
510
|
}
|
|
486
511
|
/**
|
|
@@ -518,4 +543,4 @@ function resolveIndexes(items) {
|
|
|
518
543
|
return Array.from(items).map((item) => item?.index).filter((index) => !/* @__PURE__ */ isUndefined(index));
|
|
519
544
|
}
|
|
520
545
|
//#endregion
|
|
521
|
-
export { apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
546
|
+
export { apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as LoggerAdapter } from "./adapter-
|
|
1
|
+
import { t as LoggerAdapter } from "./adapter-o8r-2vUn.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/composables/useLogger/adapters/v0.d.ts
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* V0 logger adapter implementation
|
|
6
6
|
*
|
|
7
7
|
* This adapter provides console-based logging with proper formatting,
|
|
8
8
|
* color coding, timestamps, and log level filtering for development
|
|
9
9
|
* and production environments.
|
|
10
10
|
*/
|
|
11
|
-
declare class
|
|
11
|
+
declare class V0LoggerAdapter extends LoggerAdapter {
|
|
12
12
|
private prefix;
|
|
13
13
|
private colors;
|
|
14
14
|
private timestamps;
|
|
@@ -29,4 +29,4 @@ declare class Vuetify0LoggerAdapter implements LoggerAdapter {
|
|
|
29
29
|
private log;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export { V0LoggerAdapter as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BAe6tA_x.mjs";
|
|
2
2
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
3
|
+
import { t as LocaleAdapter } from "./adapter-D8zizQVP.mjs";
|
|
3
4
|
//#region src/composables/useLocale/adapters/v0.ts
|
|
4
5
|
/**
|
|
5
6
|
* Default locale adapter for @vuetify/v0.
|
|
@@ -7,9 +8,10 @@ import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
|
7
8
|
* Handles the full translation pipeline: key lookup via tokens,
|
|
8
9
|
* fallback chain, token reference resolution, and placeholder interpolation.
|
|
9
10
|
*/
|
|
10
|
-
var
|
|
11
|
+
var V0LocaleAdapter = class extends LocaleAdapter {
|
|
11
12
|
context;
|
|
12
13
|
constructor(context) {
|
|
14
|
+
super();
|
|
13
15
|
this.context = context;
|
|
14
16
|
}
|
|
15
17
|
t(key, ...params) {
|
|
@@ -59,4 +61,4 @@ var Vuetify0LocaleAdapter = class {
|
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
63
|
//#endregion
|
|
62
|
-
export {
|
|
64
|
+
export { V0LocaleAdapter as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as DataTableAdapter } from "./adapter-
|
|
2
|
-
import { t as createPagination } from "./createPagination-CHF7SmmK.mjs";
|
|
1
|
+
import { n as createPagination, t as DataTableAdapter } from "./adapter-C9cR4AcY.mjs";
|
|
3
2
|
import { computed, toRef, watch } from "vue";
|
|
4
3
|
//#region src/composables/createDataTable/adapters/v0.ts
|
|
5
4
|
/**
|
|
@@ -10,7 +9,7 @@ import { computed, toRef, watch } from "vue";
|
|
|
10
9
|
* filtering via createFilter, sorting via computed comparisons, and pagination
|
|
11
10
|
* via createPagination. Automatically resets to page 1 on filter/sort changes.
|
|
12
11
|
*/
|
|
13
|
-
var
|
|
12
|
+
var ClientDataTableAdapter = class extends DataTableAdapter {
|
|
14
13
|
setup(context) {
|
|
15
14
|
const { search, sortBy, locale, paginationOptions, customSorts } = context;
|
|
16
15
|
const { allItems, filteredItems } = this.filter(context);
|
|
@@ -36,4 +35,4 @@ var ClientAdapter = class extends DataTableAdapter {
|
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
//#endregion
|
|
39
|
-
export {
|
|
38
|
+
export { ClientDataTableAdapter as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as LocaleAdapterContext, t as LocaleAdapter } from "./adapter-
|
|
1
|
+
import { n as LocaleAdapterContext, t as LocaleAdapter } from "./adapter-DgBBe_BW.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/composables/useLocale/adapters/v0.d.ts
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { n as LocaleAdapterContext, t as LocaleAdapter } from "./adapter-BvWEd9w
|
|
|
7
7
|
* Handles the full translation pipeline: key lookup via tokens,
|
|
8
8
|
* fallback chain, token reference resolution, and placeholder interpolation.
|
|
9
9
|
*/
|
|
10
|
-
declare class
|
|
10
|
+
declare class V0LocaleAdapter extends LocaleAdapter {
|
|
11
11
|
private context;
|
|
12
12
|
constructor(context: LocaleAdapterContext);
|
|
13
13
|
t(key: string, ...params: unknown[]): string;
|
|
@@ -16,4 +16,4 @@ declare class Vuetify0LocaleAdapter implements LocaleAdapter {
|
|
|
16
16
|
private interpolate;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { V0LocaleAdapter as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-Cr7Bl4la.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/composables/createDataTable/adapters/v0.d.ts
|
|
4
|
+
declare class ClientDataTableAdapter<T extends Record<string, unknown>> extends DataTableAdapter<T> {
|
|
5
|
+
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ClientDataTableAdapter as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BAe6tA_x.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-oM18AdUc.mjs";
|
|
4
4
|
import { onScopeDispose, watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/v0.ts
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isFunction } from "./utilities/index.mjs";
|
|
2
2
|
//#region src/composables/usePermissions/adapters/adapter.ts
|
|
3
|
-
var
|
|
3
|
+
var PermissionsAdapter = class {};
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/composables/usePermissions/adapters/v0.ts
|
|
6
|
-
var
|
|
6
|
+
var V0PermissionsAdapter = class extends PermissionsAdapter {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
}
|
|
@@ -15,4 +15,4 @@ var Vuetify0PermissionAdapter = class extends PermissionAdapter {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
|
-
export {
|
|
18
|
+
export { PermissionsAdapter as n, V0PermissionsAdapter as t };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BAe6tA_x.mjs";
|
|
2
2
|
import { isFunction } from "./utilities/index.mjs";
|
|
3
|
+
import { t as LoggerAdapter } from "./adapter-Chznb9Ju.mjs";
|
|
3
4
|
//#region src/composables/useLogger/adapters/v0.ts
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* V0 logger adapter implementation
|
|
6
7
|
*
|
|
7
8
|
* This adapter provides console-based logging with proper formatting,
|
|
8
9
|
* color coding, timestamps, and log level filtering for development
|
|
9
10
|
* and production environments.
|
|
10
11
|
*/
|
|
11
|
-
var
|
|
12
|
+
var V0LoggerAdapter = class extends LoggerAdapter {
|
|
12
13
|
prefix;
|
|
13
14
|
colors;
|
|
14
15
|
timestamps;
|
|
15
16
|
constructor(options = {}) {
|
|
17
|
+
super();
|
|
16
18
|
this.prefix = options.prefix || "v0";
|
|
17
19
|
this.colors = options.colors !== false;
|
|
18
20
|
this.timestamps = options.timestamps !== false;
|
|
@@ -68,4 +70,4 @@ var Vuetify0LoggerAdapter = class {
|
|
|
68
70
|
}
|
|
69
71
|
};
|
|
70
72
|
//#endregion
|
|
71
|
-
export {
|
|
73
|
+
export { V0LoggerAdapter as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-Cr7Bl4la.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/composables/createDataTable/adapters/virtual.d.ts
|
|
4
|
+
declare class VirtualDataTableAdapter<T extends Record<string, unknown>> extends DataTableAdapter<T> {
|
|
5
|
+
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { VirtualDataTableAdapter as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as DataTableAdapter } from "./adapter-
|
|
2
|
-
import { t as createPagination } from "./createPagination-CHF7SmmK.mjs";
|
|
1
|
+
import { n as createPagination, t as DataTableAdapter } from "./adapter-C9cR4AcY.mjs";
|
|
3
2
|
import { toRef, watch } from "vue";
|
|
4
3
|
//#region src/composables/createDataTable/adapters/virtual.ts
|
|
5
4
|
/**
|
|
@@ -15,7 +14,7 @@ import { toRef, watch } from "vue";
|
|
|
15
14
|
* `table.items` (or `table.sortedItems`) with createVirtual to render
|
|
16
15
|
* only the visible viewport.
|
|
17
16
|
*/
|
|
18
|
-
var
|
|
17
|
+
var VirtualDataTableAdapter = class extends DataTableAdapter {
|
|
19
18
|
setup(context) {
|
|
20
19
|
const { search, sortBy, locale, customSorts } = context;
|
|
21
20
|
const { allItems, filteredItems } = this.filter(context);
|
|
@@ -39,4 +38,4 @@ var VirtualAdapter = class extends DataTableAdapter {
|
|
|
39
38
|
}
|
|
40
39
|
};
|
|
41
40
|
//#endregion
|
|
42
|
-
export {
|
|
41
|
+
export { VirtualDataTableAdapter as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/v0",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "A meta UI framework for building applications, component libraries, and design systems with Vue 3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"@ant-design/colors": "^8.0.1",
|
|
53
53
|
"@flagsmith/flagsmith": "^11.0.0",
|
|
54
54
|
"@material/material-color-utilities": "^0.4.0",
|
|
55
|
-
"@vue/compiler-dom": "^3.5.
|
|
56
|
-
"@vue/test-utils": "^2.4.
|
|
55
|
+
"@vue/compiler-dom": "^3.5.33",
|
|
56
|
+
"@vue/test-utils": "^2.4.10",
|
|
57
57
|
"concurrently": "^9.2.1",
|
|
58
58
|
"launchdarkly-js-client-sdk": "^3.9.1",
|
|
59
|
-
"posthog-js": "^1.
|
|
60
|
-
"tsdown": "^0.21.
|
|
59
|
+
"posthog-js": "^1.372.6",
|
|
60
|
+
"tsdown": "^0.21.10",
|
|
61
61
|
"tsx": "4.21.0",
|
|
62
|
-
"typescript": "6.0.
|
|
63
|
-
"unplugin-vue": "^7.
|
|
64
|
-
"vue": "3.5.
|
|
65
|
-
"vue-component-meta": "3.2.
|
|
66
|
-
"vue-i18n": "^11.
|
|
62
|
+
"typescript": "6.0.3",
|
|
63
|
+
"unplugin-vue": "^7.2.0",
|
|
64
|
+
"vue": "3.5.33",
|
|
65
|
+
"vue-component-meta": "3.2.7",
|
|
66
|
+
"vue-i18n": "^11.4.0"
|
|
67
67
|
},
|
|
68
68
|
"imports": {
|
|
69
69
|
"#v0/*": {
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
2
|
-
|
|
3
|
-
//#region src/composables/useDate/adapters/adapter.d.ts
|
|
4
|
-
interface DateAdapter<T = Temporal.PlainDateTime> {
|
|
5
|
-
/** Current locale for formatting */
|
|
6
|
-
locale?: string;
|
|
7
|
-
/** First day of week. 0=Sunday, 1=Monday, ... 6=Saturday. Managed by the plugin. */
|
|
8
|
-
firstDayOfWeek?: number;
|
|
9
|
-
/** Create a date from various input types */
|
|
10
|
-
date: (value?: unknown) => T | null;
|
|
11
|
-
/** Convert to JavaScript Date object */
|
|
12
|
-
toJsDate: (value: T) => Date;
|
|
13
|
-
/** Parse ISO 8601 string */
|
|
14
|
-
parseISO: (date: string) => T;
|
|
15
|
-
/** Convert to ISO 8601 string */
|
|
16
|
-
toISO: (date: T) => string;
|
|
17
|
-
/** Parse date string with custom format */
|
|
18
|
-
parse: (value: string, format: string) => T | null;
|
|
19
|
-
/** Check if value is a valid date (type predicate for narrowing) */
|
|
20
|
-
isValid: (date: unknown) => date is T;
|
|
21
|
-
/** Check if value is null (type predicate for narrowing) */
|
|
22
|
-
isNullish: (value: T | null) => value is null;
|
|
23
|
-
/** Get current locale code */
|
|
24
|
-
getCurrentLocaleCode: () => string;
|
|
25
|
-
/** Check if current locale uses 12-hour cycle */
|
|
26
|
-
is12HourCycleInCurrentLocale: () => boolean;
|
|
27
|
-
/** Format date using preset format key */
|
|
28
|
-
format: (date: T, formatString: string) => string;
|
|
29
|
-
/** Format date using custom format string */
|
|
30
|
-
formatByString: (date: T, formatString: string) => string;
|
|
31
|
-
/** Get helper text for format string (e.g., "mm/dd/yyyy") */
|
|
32
|
-
getFormatHelperText: (format: string) => string;
|
|
33
|
-
/** Format number according to locale */
|
|
34
|
-
formatNumber: (numberToFormat: string) => string;
|
|
35
|
-
/** Get meridiem text (AM/PM) for locale */
|
|
36
|
-
getMeridiemText: (ampm: 'am' | 'pm') => string;
|
|
37
|
-
startOfDay: (date: T) => T;
|
|
38
|
-
endOfDay: (date: T) => T;
|
|
39
|
-
startOfWeek: (date: T) => T;
|
|
40
|
-
endOfWeek: (date: T) => T;
|
|
41
|
-
startOfMonth: (date: T) => T;
|
|
42
|
-
endOfMonth: (date: T) => T;
|
|
43
|
-
startOfYear: (date: T) => T;
|
|
44
|
-
endOfYear: (date: T) => T;
|
|
45
|
-
addSeconds: (date: T, amount: number) => T;
|
|
46
|
-
addMinutes: (date: T, amount: number) => T;
|
|
47
|
-
addHours: (date: T, amount: number) => T;
|
|
48
|
-
addDays: (date: T, amount: number) => T;
|
|
49
|
-
addWeeks: (date: T, amount: number) => T;
|
|
50
|
-
addMonths: (date: T, amount: number) => T;
|
|
51
|
-
addYears: (date: T, amount: number) => T;
|
|
52
|
-
isAfter: (date: T, comparing: T) => boolean;
|
|
53
|
-
isAfterDay: (date: T, comparing: T) => boolean;
|
|
54
|
-
isAfterMonth: (date: T, comparing: T) => boolean;
|
|
55
|
-
isAfterYear: (date: T, comparing: T) => boolean;
|
|
56
|
-
isBefore: (date: T, comparing: T) => boolean;
|
|
57
|
-
isBeforeDay: (date: T, comparing: T) => boolean;
|
|
58
|
-
isBeforeMonth: (date: T, comparing: T) => boolean;
|
|
59
|
-
isBeforeYear: (date: T, comparing: T) => boolean;
|
|
60
|
-
isEqual: (date: T, comparing: T) => boolean;
|
|
61
|
-
isSameDay: (date: T, comparing: T) => boolean;
|
|
62
|
-
isSameMonth: (date: T, comparing: T) => boolean;
|
|
63
|
-
isSameYear: (date: T, comparing: T) => boolean;
|
|
64
|
-
isSameHour: (date: T, comparing: T) => boolean;
|
|
65
|
-
isWithinRange: (date: T, range: [T, T]) => boolean;
|
|
66
|
-
getYear: (date: T) => number;
|
|
67
|
-
getMonth: (date: T) => number;
|
|
68
|
-
getDate: (date: T) => number;
|
|
69
|
-
getHours: (date: T) => number;
|
|
70
|
-
getMinutes: (date: T) => number;
|
|
71
|
-
getSeconds: (date: T) => number;
|
|
72
|
-
/** @param comparing - Can be T or ISO string */
|
|
73
|
-
getDiff: (date: T, comparing: T | string, unit?: string) => number;
|
|
74
|
-
/** @param minimalDays - Minimum days in first week for it to count as week 1 */
|
|
75
|
-
getWeek: (date: T, minimalDays?: number) => number;
|
|
76
|
-
/** Get number of days in the month */
|
|
77
|
-
getDaysInMonth: (date: T) => number;
|
|
78
|
-
setYear: (date: T, year: number) => T;
|
|
79
|
-
setMonth: (date: T, month: number) => T;
|
|
80
|
-
setDate: (date: T, day: number) => T;
|
|
81
|
-
setHours: (date: T, hours: number) => T;
|
|
82
|
-
setMinutes: (date: T, minutes: number) => T;
|
|
83
|
-
setSeconds: (date: T, seconds: number) => T;
|
|
84
|
-
getWeekdays: (weekdayFormat?: 'long' | 'short' | 'narrow') => string[];
|
|
85
|
-
getWeekArray: (date: T) => T[][];
|
|
86
|
-
/** Get array of months in a year (12 dates, one for each month) */
|
|
87
|
-
getMonthArray: (date: T) => T[];
|
|
88
|
-
/** Get array of years between start and end dates */
|
|
89
|
-
getYearRange: (start: T, end: T) => T[];
|
|
90
|
-
getNextMonth: (date: T) => T;
|
|
91
|
-
getPreviousMonth: (date: T) => T;
|
|
92
|
-
/** Merge date from one value with time from another */
|
|
93
|
-
mergeDateAndTime: (date: T, time: T) => T;
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
export { DateAdapter as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { a as ID } from "./index-DuddF-NR.mjs";
|
|
2
|
-
import { c as TokenTicket, i as TokenContext } from "./index-DE3bWw11.mjs";
|
|
3
|
-
import { Ref } from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
6
|
-
interface LocaleAdapterContext {
|
|
7
|
-
tokens: TokenContext<TokenTicket>;
|
|
8
|
-
selectedId: Ref<ID | null | undefined>;
|
|
9
|
-
fallbackLocale: ID | undefined;
|
|
10
|
-
has: (id: ID) => boolean;
|
|
11
|
-
}
|
|
12
|
-
interface LocaleAdapter {
|
|
13
|
-
t: (key: string, ...params: unknown[]) => string;
|
|
14
|
-
n: (value: number) => string;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { LocaleAdapterContext as n, LocaleAdapter as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/composables/useLogger/adapters/adapter.d.ts
|
|
2
|
-
interface LoggerAdapter {
|
|
3
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
4
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
5
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
6
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
7
|
-
trace?: (message: string, ...args: unknown[]) => void;
|
|
8
|
-
fatal?: (message: string, ...args: unknown[]) => void;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { LoggerAdapter as t };
|