@vuetify/v0 1.0.0-alpha.3 → 1.0.0-alpha.5
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 +5 -0
- package/dist/adapter-B6IrPwib.d.mts +98 -0
- package/dist/adapter-BEJXp-ie.d.mts +11 -0
- package/dist/adapter-BFSJsyv7.mjs +481 -0
- package/dist/{adapter-DlX3FA3A.d.mts → adapter-BO75n0Cn.d.mts} +10 -14
- package/dist/adapter-BSKx9WQ7.mjs +4 -0
- package/dist/adapter-Chznb9Ju.mjs +4 -0
- package/dist/{index-CT5SCLzW.d.mts → adapter-CspReV3g.d.mts} +6 -9
- package/dist/adapter-D8zizQVP.mjs +4 -0
- package/dist/adapter-DDJHLC8K.d.mts +17 -0
- package/dist/adapters-4t-NhR11.mjs +5 -0
- package/dist/adapters-BcoA0zCS.mjs +4 -0
- package/dist/adapters-BjaPK635.mjs +2 -0
- package/dist/adapters-D64TORDu.mjs +2 -0
- package/dist/adapters-DvG-9z9q.mjs +3 -0
- package/dist/browser/index.js +2074 -561
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{components-C4jI-78d.mjs → components-Dn4Kbi0i.mjs} +149 -101
- package/dist/composables/index.d.mts +20 -19
- package/dist/composables/index.mjs +31 -29
- package/dist/{consola-BdgyPEfx.d.mts → consola-CUNHyu8J.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-iODP6aKB.mjs → createDataTable-H-PuVigU.mjs} +216 -124
- package/dist/{createGroup-CGk6hY_Y.mjs → createGroup-aHt_kvtU.mjs} +3 -3
- package/dist/{createRegistry-BXzdXAjq.mjs → createRegistry-CWpvSbCe.mjs} +78 -41
- package/dist/{createSelection-B3HJEPNg.mjs → createSelection-MRyUZyW2.mjs} +3 -3
- package/dist/{createSingle-Dql8mRi-.mjs → createSingle-BSciC9EJ.mjs} +1 -1
- package/dist/{createTokens-DgFYsOrv.mjs → createTokens-CQ9C7GTV.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 +12 -5
- 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/{index-BzFHTW59.d.mts → flagsmith-Cd44vxff.d.mts} +4 -4
- package/dist/{flagsmith-Dbh1h8WF.mjs → flagsmith-Cu93hUIF.mjs} +6 -4
- package/dist/{globals-zEjWBKCr.mjs → globals-BRdxsC2M.mjs} +1 -1
- package/dist/{index-GOpjKzaJ.d.mts → index-BLaKZq0Y.d.mts} +25 -2
- package/dist/{index-BJGcVy7e.d.mts → index-BmEu85PI.d.mts} +126 -65
- package/dist/{index-DE3bWw11.d.mts → index-C0ewabdY.d.mts} +93 -215
- package/dist/index-C6NnIuDv.d.mts +4 -0
- package/dist/{index-DNDuacmH.d.mts → index-CJdG9yY1.d.mts} +116 -106
- package/dist/index-C_t6t0Z-.d.mts +170 -0
- package/dist/{index-B76iGRE3.d.mts → index-CyUCELZC.d.mts} +1149 -61
- package/dist/index.d.mts +24 -23
- package/dist/index.mjs +35 -33
- package/dist/json/attributes.json +1 -1
- package/dist/json/web-types.json +2 -2
- package/dist/{launchdarkly-BKtW-idu.mjs → launchdarkly-CLGtJCsI.mjs} +6 -4
- package/dist/launchdarkly-De701hkf.d.mts +13 -0
- 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-oYBvtkgx.mjs → memory-BMpJcQjQ.mjs} +13 -3
- package/dist/{memory-CeSQE-QV.d.mts → memory-D-JbdKXg.d.mts} +9 -9
- 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 +3 -0
- 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-DNfCEb0p.d.mts → pino-BaYY_KIN.d.mts} +2 -2
- package/dist/{pino-9L79n6y6.mjs → pino-CIcYlW3u.mjs} +3 -1
- package/dist/{posthog-DmuyycaR.mjs → posthog-0umvvA48.mjs} +7 -5
- package/dist/posthog-CIrmvke4.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-7vjHxjNc.d.mts} +5 -5
- package/dist/{server-y7zLSCSx.mjs → server-BNSiVoMe.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-B-I2OS6i.mjs → unhead-_cXZcx0j.mjs} +2 -2
- package/dist/{useClickOutside-CY4U2J9W.mjs → useClickOutside-DbOLg1uw.mjs} +1483 -182
- package/dist/{useFeatures-BPOke6iP.mjs → useFeatures-Dhnr-Lg2.mjs} +7 -10
- package/dist/{useLocale-BV8e3imF.mjs → useLocale-Sh-2sNiG.mjs} +6 -6
- package/dist/{useLogger-DvdRTrqC.mjs → useLogger-1_ZeBY12.mjs} +5 -5
- package/dist/{useNotifications-vSJE6z6t.mjs → useNotifications-CAVQ7hK6.mjs} +6 -6
- package/dist/{usePermissions-D3zPwKQc.mjs → usePermissions-D9Oituwy.mjs} +6 -6
- package/dist/{useRules-BT6cgoTj.mjs → useRules-DK4AeNeC.mjs} +4 -3
- package/dist/{useTheme-cUZb2A9O.mjs → useTheme-FMDQC81h.mjs} +5 -5
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +26 -2
- package/dist/{v0-CHZpnMeP.mjs → v0-C42ssNIy.mjs} +6 -4
- package/dist/{v0-Dq3zhexO.mjs → v0-CEfbyyp2.mjs} +3 -4
- package/dist/{v0-C49OI_wc.mjs → v0-Ch-O6YVd.mjs} +5 -3
- package/dist/{v0-gpExNexS.mjs → v0-D0imQlSD.mjs} +2 -2
- package/dist/{v0-DrOub-e1.d.mts → v0-DWZ_N2GG.d.mts} +4 -4
- package/dist/{v0-Bmow1q_x.mjs → v0-Dvu8fMl3.mjs} +3 -3
- package/dist/v0-QIjffi4E.d.mts +8 -0
- package/dist/{v0-D7Fm2C3Y.d.mts → v0-aYLq6qmT.d.mts} +3 -3
- package/dist/{virtual-C0yHf1DC.mjs → virtual-Cq5aRp7m.mjs} +3 -4
- package/dist/virtual-CrgGA-o6.d.mts +8 -0
- package/package.json +1 -1
- 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/adapter-gQ2SNKZq.mjs +0 -238
- package/dist/adapters-BSiqsTZN.mjs +0 -3
- package/dist/adapters-C3QXhf4I.mjs +0 -2
- package/dist/adapters-CMJGA1k7.mjs +0 -2
- package/dist/adapters-Dse4bPxk.mjs +0 -5
- package/dist/adapters-_ZqxCD8f.mjs +0 -4
- 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-BOn0AAue.d.mts} +0 -0
- /package/dist/{index-CROz1VSV.d.mts → index-CKKoxA9V.d.mts} +0 -0
- /package/dist/{index-DuddF-NR.d.mts → index-CLR1QMM3.d.mts} +0 -0
- /package/dist/{index-DTvqw22G.d.mts → index-H_hl6-4b.d.mts} +0 -0
- /package/dist/{index-BgCkepP_.d.mts → index-PvkxPev3.d.mts} +0 -0
- /package/dist/{toArray-as9BWxBK.mjs → toArray-CD2-OxAz.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clamp, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
3
|
-
import { i as useLogger } from "./useLogger-
|
|
3
|
+
import { i as useLogger } from "./useLogger-1_ZeBY12.mjs";
|
|
4
4
|
import { shallowReactive } from "vue";
|
|
5
5
|
//#region src/composables/createRegistry/index.ts
|
|
6
6
|
/**
|
|
@@ -66,7 +66,7 @@ function createRegistry(options) {
|
|
|
66
66
|
let indexDependentCount = 0;
|
|
67
67
|
let needsReindex = false;
|
|
68
68
|
let minDirtyIndex = Infinity;
|
|
69
|
-
let
|
|
69
|
+
let isBatching = false;
|
|
70
70
|
let batched = [];
|
|
71
71
|
function dispatch(event, data) {
|
|
72
72
|
const cbs = listeners.get(event);
|
|
@@ -75,7 +75,7 @@ function createRegistry(options) {
|
|
|
75
75
|
}
|
|
76
76
|
function emit(event, data = void 0) {
|
|
77
77
|
if (!events) return;
|
|
78
|
-
if (
|
|
78
|
+
if (isBatching) {
|
|
79
79
|
batched.push({
|
|
80
80
|
event,
|
|
81
81
|
data
|
|
@@ -109,6 +109,7 @@ function createRegistry(options) {
|
|
|
109
109
|
return collection.get(id);
|
|
110
110
|
}
|
|
111
111
|
function upsert(id, patch = {}, event) {
|
|
112
|
+
if (needsReindex) reindex();
|
|
112
113
|
const existing = get(id);
|
|
113
114
|
if (!existing) return register({
|
|
114
115
|
...patch,
|
|
@@ -132,23 +133,22 @@ function createRegistry(options) {
|
|
|
132
133
|
assign(value, id);
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
...existing,
|
|
137
|
-
...patch,
|
|
136
|
+
Object.assign(existing, patch, {
|
|
138
137
|
id,
|
|
139
138
|
index: existing.index,
|
|
140
139
|
value,
|
|
141
140
|
valueIsIndex
|
|
142
|
-
};
|
|
143
|
-
collection.set(id,
|
|
141
|
+
});
|
|
142
|
+
collection.set(id, existing);
|
|
144
143
|
invalidate();
|
|
145
|
-
emit("update:ticket",
|
|
146
|
-
if (event) emit(event,
|
|
147
|
-
return
|
|
144
|
+
emit("update:ticket", existing);
|
|
145
|
+
if (event) emit(event, existing);
|
|
146
|
+
return existing;
|
|
148
147
|
}
|
|
149
148
|
function browse(value) {
|
|
150
149
|
if (needsReindex) reindex();
|
|
151
|
-
|
|
150
|
+
const bucket = catalog.get(value);
|
|
151
|
+
return bucket ? bucket.slice() : void 0;
|
|
152
152
|
}
|
|
153
153
|
function lookup(index) {
|
|
154
154
|
if (needsReindex) reindex();
|
|
@@ -174,25 +174,25 @@ function createRegistry(options) {
|
|
|
174
174
|
if (reactive) return Array.from(collection.keys());
|
|
175
175
|
const cached = cache.get("keys");
|
|
176
176
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
177
|
-
const
|
|
178
|
-
cache.set("keys",
|
|
179
|
-
return
|
|
177
|
+
const out = Array.from(collection.keys());
|
|
178
|
+
cache.set("keys", out);
|
|
179
|
+
return out;
|
|
180
180
|
}
|
|
181
181
|
function values() {
|
|
182
182
|
if (reactive) return Array.from(collection.values());
|
|
183
183
|
const cached = cache.get("values");
|
|
184
184
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
185
|
-
const
|
|
186
|
-
cache.set("values",
|
|
187
|
-
return
|
|
185
|
+
const out = Array.from(collection.values());
|
|
186
|
+
cache.set("values", out);
|
|
187
|
+
return out;
|
|
188
188
|
}
|
|
189
189
|
function entries() {
|
|
190
190
|
if (reactive) return Array.from(collection.entries());
|
|
191
191
|
const cached = cache.get("entries");
|
|
192
192
|
if (!/* @__PURE__ */ isUndefined(cached)) return cached;
|
|
193
|
-
const
|
|
194
|
-
cache.set("entries",
|
|
195
|
-
return
|
|
193
|
+
const out = Array.from(collection.entries());
|
|
194
|
+
cache.set("entries", out);
|
|
195
|
+
return out;
|
|
196
196
|
}
|
|
197
197
|
function clear() {
|
|
198
198
|
collection.clear();
|
|
@@ -205,12 +205,12 @@ function createRegistry(options) {
|
|
|
205
205
|
emit("clear:registry");
|
|
206
206
|
}
|
|
207
207
|
function invalidate() {
|
|
208
|
-
if (
|
|
208
|
+
if (isBatching) return;
|
|
209
209
|
cache.clear();
|
|
210
210
|
}
|
|
211
211
|
function batch(fn) {
|
|
212
|
-
if (
|
|
213
|
-
|
|
212
|
+
if (isBatching) return fn();
|
|
213
|
+
isBatching = true;
|
|
214
214
|
batched = [];
|
|
215
215
|
try {
|
|
216
216
|
const result = fn();
|
|
@@ -218,7 +218,7 @@ function createRegistry(options) {
|
|
|
218
218
|
for (const { event, data } of batched) dispatch(event, data);
|
|
219
219
|
return result;
|
|
220
220
|
} finally {
|
|
221
|
-
|
|
221
|
+
isBatching = false;
|
|
222
222
|
batched = [];
|
|
223
223
|
}
|
|
224
224
|
}
|
|
@@ -250,6 +250,7 @@ function createRegistry(options) {
|
|
|
250
250
|
emit("reindex:registry");
|
|
251
251
|
}
|
|
252
252
|
function register(registration = {}) {
|
|
253
|
+
if (needsReindex) reindex();
|
|
253
254
|
const size = collection.size;
|
|
254
255
|
const id = registration.id ?? /* @__PURE__ */ useId$1();
|
|
255
256
|
if (has(id)) {
|
|
@@ -259,9 +260,9 @@ function createRegistry(options) {
|
|
|
259
260
|
const valueIsUndefined = /* @__PURE__ */ isUndefined(registration.value);
|
|
260
261
|
const index = registration.index ?? size;
|
|
261
262
|
const value = valueIsUndefined ? index : registration.value;
|
|
262
|
-
const valueIsIndex = valueIsUndefined;
|
|
263
|
+
const valueIsIndex = registration.valueIsIndex ?? valueIsUndefined;
|
|
263
264
|
if (valueIsIndex) indexDependentCount++;
|
|
264
|
-
const
|
|
265
|
+
const input = {
|
|
265
266
|
...registration,
|
|
266
267
|
id,
|
|
267
268
|
index,
|
|
@@ -269,7 +270,7 @@ function createRegistry(options) {
|
|
|
269
270
|
valueIsIndex,
|
|
270
271
|
unregister: () => unregister(id)
|
|
271
272
|
};
|
|
272
|
-
const ticket = reactive ? shallowReactive(
|
|
273
|
+
const ticket = reactive ? shallowReactive(input) : input;
|
|
273
274
|
collection.set(ticket.id, ticket);
|
|
274
275
|
directory.set(ticket.index, ticket.id);
|
|
275
276
|
assign(ticket.value, ticket.id);
|
|
@@ -291,9 +292,23 @@ function createRegistry(options) {
|
|
|
291
292
|
else needsReindex = true;
|
|
292
293
|
emit("unregister:ticket", ticket);
|
|
293
294
|
}
|
|
295
|
+
function onboard(registrations) {
|
|
296
|
+
return batch(() => registrations.map((registration) => register(registration)));
|
|
297
|
+
}
|
|
298
|
+
function toInput(ticket) {
|
|
299
|
+
const input = { ...ticket };
|
|
300
|
+
delete input.index;
|
|
301
|
+
delete input.valueIsIndex;
|
|
302
|
+
delete input.unregister;
|
|
303
|
+
if (ticket.valueIsIndex) {
|
|
304
|
+
delete input.id;
|
|
305
|
+
delete input.value;
|
|
306
|
+
}
|
|
307
|
+
return input;
|
|
308
|
+
}
|
|
294
309
|
function offboard(ids) {
|
|
310
|
+
const removed = [];
|
|
295
311
|
batch(() => {
|
|
296
|
-
const removed = [];
|
|
297
312
|
for (const id of ids) {
|
|
298
313
|
const ticket = collection.get(id);
|
|
299
314
|
if (!ticket) continue;
|
|
@@ -308,6 +323,7 @@ function createRegistry(options) {
|
|
|
308
323
|
for (const ticket of removed) emit("unregister:ticket", ticket);
|
|
309
324
|
needsReindex = true;
|
|
310
325
|
});
|
|
326
|
+
return removed.map((ticket) => toInput(ticket));
|
|
311
327
|
}
|
|
312
328
|
function move(id, toIndex) {
|
|
313
329
|
if (needsReindex) reindex();
|
|
@@ -316,15 +332,37 @@ function createRegistry(options) {
|
|
|
316
332
|
const size = collection.size;
|
|
317
333
|
const target = /* @__PURE__ */ clamp(toIndex, 0, size - 1);
|
|
318
334
|
if (ticket.index === target) return ticket;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
335
|
+
return batch(() => {
|
|
336
|
+
const items = Array.from(collection.entries());
|
|
337
|
+
const fromIndex = items.findIndex(([key]) => key === id);
|
|
338
|
+
const [entry] = items.splice(fromIndex, 1);
|
|
339
|
+
items.splice(target, 0, entry);
|
|
340
|
+
collection.clear();
|
|
341
|
+
for (const [key, value] of items) collection.set(key, value);
|
|
342
|
+
minDirtyIndex = Math.min(ticket.index, target);
|
|
343
|
+
reindex();
|
|
344
|
+
emit("update:ticket", ticket);
|
|
345
|
+
return ticket;
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
function reorder(ids) {
|
|
349
|
+
if (needsReindex) reindex();
|
|
350
|
+
if (ids.length !== collection.size) return;
|
|
351
|
+
const seen = /* @__PURE__ */ new Set();
|
|
352
|
+
const entries = [];
|
|
353
|
+
for (const id of ids) {
|
|
354
|
+
if (seen.has(id)) return;
|
|
355
|
+
const ticket = collection.get(id);
|
|
356
|
+
if (!ticket) return;
|
|
357
|
+
seen.add(id);
|
|
358
|
+
entries.push([id, ticket]);
|
|
359
|
+
}
|
|
360
|
+
batch(() => {
|
|
361
|
+
collection.clear();
|
|
362
|
+
for (const [id, ticket] of entries) collection.set(id, ticket);
|
|
363
|
+
minDirtyIndex = 0;
|
|
364
|
+
reindex();
|
|
365
|
+
});
|
|
328
366
|
}
|
|
329
367
|
function seek(direction = "first", from, predicate) {
|
|
330
368
|
if (collection.size === 0) return void 0;
|
|
@@ -368,11 +406,10 @@ function createRegistry(options) {
|
|
|
368
406
|
unregister,
|
|
369
407
|
reindex,
|
|
370
408
|
move,
|
|
409
|
+
reorder,
|
|
371
410
|
seek,
|
|
372
411
|
batch,
|
|
373
|
-
onboard
|
|
374
|
-
return batch(() => registrations.map((registration) => register(registration)));
|
|
375
|
-
},
|
|
412
|
+
onboard,
|
|
376
413
|
offboard,
|
|
377
414
|
get size() {
|
|
378
415
|
return collection.size;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isUndefined, resolveIds, useId as useId$1 } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
3
|
-
import { t as createRegistry } from "./createRegistry-
|
|
3
|
+
import { t as createRegistry } from "./createRegistry-CWpvSbCe.mjs";
|
|
4
4
|
import { computed, isRef, shallowReactive, toRaw, toRef, toValue } from "vue";
|
|
5
5
|
//#region src/composables/createModel/index.ts
|
|
6
6
|
/**
|
|
@@ -136,7 +136,7 @@ function createModel(_options = {}) {
|
|
|
136
136
|
}
|
|
137
137
|
function offboard(ids) {
|
|
138
138
|
for (const id of ids) selectedIds.delete(id);
|
|
139
|
-
registry.offboard(ids);
|
|
139
|
+
return registry.offboard(ids);
|
|
140
140
|
}
|
|
141
141
|
function reset() {
|
|
142
142
|
selectedIds.clear();
|
|
@@ -305,7 +305,7 @@ function createSelection(_options = {}) {
|
|
|
305
305
|
if (ids) for (const id of ids) targetIds.add(id);
|
|
306
306
|
}
|
|
307
307
|
if (isMultiple) {
|
|
308
|
-
for (const id of currentIds.difference(targetIds))
|
|
308
|
+
for (const id of currentIds.difference(targetIds)) unselect(id);
|
|
309
309
|
for (const id of targetIds.difference(currentIds)) model.selectedIds.add(id);
|
|
310
310
|
} else {
|
|
311
311
|
const next = targetIds.values().next().value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
2
|
-
import { t as createSelection } from "./createSelection-
|
|
2
|
+
import { t as createSelection } from "./createSelection-MRyUZyW2.mjs";
|
|
3
3
|
import { toRef } from "vue";
|
|
4
4
|
//#region src/composables/createSingle/index.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
2
2
|
import { i as useContext, t as createTrinity } from "./createTrinity-BTCs1pYx.mjs";
|
|
3
|
-
import { i as useLogger } from "./useLogger-
|
|
4
|
-
import { t as createRegistry } from "./createRegistry-
|
|
3
|
+
import { i as useLogger } from "./useLogger-1_ZeBY12.mjs";
|
|
4
|
+
import { t as createRegistry } from "./createRegistry-CWpvSbCe.mjs";
|
|
5
5
|
//#region src/composables/createTokens/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module createTokens
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as ClientDataTableAdapter } from "../../../v0-QIjffi4E.mjs";
|
|
2
|
+
export { ClientDataTableAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as ClientDataTableAdapter } from "../../../v0-CEfbyyp2.mjs";
|
|
2
|
+
export { ClientDataTableAdapter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
export {
|
|
1
|
+
import { a as SortEntry, i as SortDirection, n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "../../adapter-BO75n0Cn.mjs";
|
|
2
|
+
import { n as ServerDataTableAdapterOptions, t as ServerDataTableAdapter } from "../../server-7vjHxjNc.mjs";
|
|
3
|
+
import { t as ClientDataTableAdapter } from "../../v0-QIjffi4E.mjs";
|
|
4
|
+
import { t as VirtualDataTableAdapter } from "../../virtual-CrgGA-o6.mjs";
|
|
5
|
+
export { ClientDataTableAdapter, DataTableAdapter, DataTableAdapterContext, DataTableAdapterResult, ServerDataTableAdapter, ServerDataTableAdapterOptions, SortDirection, SortEntry, VirtualDataTableAdapter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DataTableAdapter } from "../../adapter-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import "../../adapters-
|
|
6
|
-
export {
|
|
1
|
+
import { t as DataTableAdapter } from "../../adapter-BFSJsyv7.mjs";
|
|
2
|
+
import { t as ClientDataTableAdapter } from "../../v0-CEfbyyp2.mjs";
|
|
3
|
+
import { t as ServerDataTableAdapter } from "../../server-BNSiVoMe.mjs";
|
|
4
|
+
import { t as VirtualDataTableAdapter } from "../../virtual-Cq5aRp7m.mjs";
|
|
5
|
+
import "../../adapters-4t-NhR11.mjs";
|
|
6
|
+
export { ClientDataTableAdapter, DataTableAdapter, ServerDataTableAdapter, VirtualDataTableAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export {
|
|
1
|
+
import { n as ServerDataTableAdapterOptions, t as ServerDataTableAdapter } from "../../../server-7vjHxjNc.mjs";
|
|
2
|
+
export { ServerDataTableAdapter, ServerDataTableAdapterOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as ServerDataTableAdapter } from "../../../server-BNSiVoMe.mjs";
|
|
2
|
+
export { ServerDataTableAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as VirtualDataTableAdapter } from "../../../virtual-CrgGA-o6.mjs";
|
|
2
|
+
export { VirtualDataTableAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as VirtualDataTableAdapter } from "../../../virtual-Cq5aRp7m.mjs";
|
|
2
|
+
export { VirtualDataTableAdapter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
export {
|
|
1
|
+
import { a as SortEntry, i as SortDirection, n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "../adapter-BO75n0Cn.mjs";
|
|
2
|
+
import { _ as ColumnNode, a as DataTableExpansion, b as extractLeaves, c as DataTableOptions, d as DataTableTicket, f as DataTableTicketInput, g as useDataTable, h as createDataTableContext, i as DataTableContextOptions, l as DataTableSelection, m as createDataTable, n as DataTableColumnTicketInput, o as DataTableGroup, p as SelectStrategy, r as DataTableContext, s as DataTableGrouping, t as DataTableColumnTicket, u as DataTableSort, v as InternalHeader, x as resolveHeaders, y as computeDepth } from "../index-BmEu85PI.mjs";
|
|
3
|
+
import { n as ServerDataTableAdapterOptions, t as ServerDataTableAdapter } from "../server-7vjHxjNc.mjs";
|
|
4
|
+
import { t as ClientDataTableAdapter } from "../v0-QIjffi4E.mjs";
|
|
5
|
+
import { t as VirtualDataTableAdapter } from "../virtual-CrgGA-o6.mjs";
|
|
6
|
+
export { ClientDataTableAdapter, ColumnNode, DataTableAdapter, DataTableAdapterContext, DataTableAdapterResult, DataTableColumnTicket, DataTableColumnTicketInput, DataTableContext, DataTableContextOptions, DataTableExpansion, DataTableGroup, DataTableGrouping, DataTableOptions, DataTableSelection, DataTableSort, DataTableTicket, DataTableTicketInput, InternalHeader, SelectStrategy, ServerDataTableAdapter, ServerDataTableAdapterOptions, SortDirection, SortEntry, VirtualDataTableAdapter, computeDepth, createDataTable, createDataTableContext, extractLeaves, resolveHeaders, useDataTable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DataTableAdapter } from "../adapter-
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
export {
|
|
1
|
+
import { t as DataTableAdapter } from "../adapter-BFSJsyv7.mjs";
|
|
2
|
+
import { t as ClientDataTableAdapter } from "../v0-CEfbyyp2.mjs";
|
|
3
|
+
import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-H-PuVigU.mjs";
|
|
4
|
+
import { t as ServerDataTableAdapter } from "../server-BNSiVoMe.mjs";
|
|
5
|
+
import { t as VirtualDataTableAdapter } from "../virtual-Cq5aRp7m.mjs";
|
|
6
|
+
export { ClientDataTableAdapter, DataTableAdapter, ServerDataTableAdapter, VirtualDataTableAdapter, computeDepth, createDataTable, createDataTableContext, extractLeaves, resolveHeaders, useDataTable };
|
package/dist/date/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as DateAdapter } from "../adapter-
|
|
1
|
+
import { t as DateAdapter } from "../adapter-B6IrPwib.mjs";
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
|
|
4
4
|
//#region src/composables/useDate/adapters/v0.d.ts
|
|
5
5
|
type PlainDateTime = Temporal.PlainDateTime;
|
|
6
|
-
declare class
|
|
6
|
+
declare class V0DateAdapter extends DateAdapter<PlainDateTime> {
|
|
7
7
|
private _locale;
|
|
8
8
|
private _firstDayOfWeek;
|
|
9
9
|
private _minimalDays;
|
|
@@ -124,4 +124,4 @@ declare class Vuetify0DateAdapter implements DateAdapter<PlainDateTime> {
|
|
|
124
124
|
private getNumberFormatter;
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
export {
|
|
127
|
+
export { V0DateAdapter };
|
package/dist/date/index.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-BRdxsC2M.mjs";
|
|
2
2
|
import { isFunction, isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
|
|
3
3
|
import { Temporal } from "@js-temporal/polyfill";
|
|
4
|
+
//#region src/composables/useDate/adapters/adapter.ts
|
|
5
|
+
var DateAdapter = class {};
|
|
6
|
+
//#endregion
|
|
4
7
|
//#region src/composables/useDate/adapters/v0.ts
|
|
5
8
|
/**
|
|
6
|
-
* @module
|
|
9
|
+
* @module V0DateAdapter
|
|
7
10
|
*
|
|
8
11
|
* @remarks
|
|
9
12
|
* Default DateAdapter for v0, built on the Temporal API.
|
|
@@ -30,6 +33,7 @@ const MAX_CACHE_SIZE = 50;
|
|
|
30
33
|
function deriveWeekInfo(locale) {
|
|
31
34
|
try {
|
|
32
35
|
const loc = new Intl.Locale(locale);
|
|
36
|
+
/* v8 ignore next -- Intl.Locale.getWeekInfo always present in Node 22+, .weekInfo fallback is for legacy runtimes */
|
|
33
37
|
const info = /* @__PURE__ */ isFunction(loc.getWeekInfo) ? loc.getWeekInfo() : loc.weekInfo;
|
|
34
38
|
return {
|
|
35
39
|
firstDay: info?.firstDay === 7 ? 0 : info?.firstDay ?? 0,
|
|
@@ -48,7 +52,7 @@ function deriveMinimalDays(locale) {
|
|
|
48
52
|
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;
|
|
49
53
|
return 1;
|
|
50
54
|
}
|
|
51
|
-
var
|
|
55
|
+
var V0DateAdapter = class extends DateAdapter {
|
|
52
56
|
_locale;
|
|
53
57
|
_firstDayOfWeek = 0;
|
|
54
58
|
_minimalDays = 1;
|
|
@@ -57,6 +61,7 @@ var Vuetify0DateAdapter = class {
|
|
|
57
61
|
/** Cache for Intl.NumberFormat instances, keyed by locale */
|
|
58
62
|
numberFormatCache = /* @__PURE__ */ new Map();
|
|
59
63
|
constructor(locale = "en-US") {
|
|
64
|
+
super();
|
|
60
65
|
this._locale = locale;
|
|
61
66
|
const info = deriveWeekInfo(locale);
|
|
62
67
|
this._firstDayOfWeek = info.firstDay;
|
|
@@ -338,7 +343,7 @@ var Vuetify0DateAdapter = class {
|
|
|
338
343
|
keyboardDateTime: "mm/dd/yyyy hh:mm",
|
|
339
344
|
keyboardDateTime12h: "mm/dd/yyyy hh:mm am/pm",
|
|
340
345
|
keyboardDateTime24h: "mm/dd/yyyy hh:mm"
|
|
341
|
-
}[format] ?? format.replace(/YYYY/g, "yyyy").replace(/MM/g, "mm").replace(/DD/g, "dd").replace(/HH/g, "hh")
|
|
346
|
+
}[format] ?? format.replace(/YYYY/g, "yyyy").replace(/MM/g, "mm").replace(/DD/g, "dd").replace(/HH/g, "hh");
|
|
342
347
|
}
|
|
343
348
|
formatNumber(numberToFormat) {
|
|
344
349
|
return this.getNumberFormatter().format(Number(numberToFormat));
|
|
@@ -603,6 +608,7 @@ var Vuetify0DateAdapter = class {
|
|
|
603
608
|
const key = `${this.locale}:${JSON.stringify(options)}`;
|
|
604
609
|
let formatter = this.formatCache.get(key);
|
|
605
610
|
if (!formatter) {
|
|
611
|
+
/* v8 ignore next 4 -- cache-eviction only triggers past MAX_CACHE_SIZE; not exercised through public API */
|
|
606
612
|
if (this.formatCache.size >= MAX_CACHE_SIZE) {
|
|
607
613
|
const firstKey = this.formatCache.keys().next().value;
|
|
608
614
|
if (firstKey) this.formatCache.delete(firstKey);
|
|
@@ -619,6 +625,7 @@ var Vuetify0DateAdapter = class {
|
|
|
619
625
|
getNumberFormatter() {
|
|
620
626
|
let formatter = this.numberFormatCache.get(this.locale);
|
|
621
627
|
if (!formatter) {
|
|
628
|
+
/* v8 ignore next 4 -- cache-eviction only triggers past MAX_CACHE_SIZE; not exercised through public API */
|
|
622
629
|
if (this.numberFormatCache.size >= MAX_CACHE_SIZE) {
|
|
623
630
|
const firstKey = this.numberFormatCache.keys().next().value;
|
|
624
631
|
if (firstKey) this.numberFormatCache.delete(firstKey);
|
|
@@ -630,4 +637,4 @@ var Vuetify0DateAdapter = class {
|
|
|
630
637
|
}
|
|
631
638
|
};
|
|
632
639
|
//#endregion
|
|
633
|
-
export {
|
|
640
|
+
export { V0DateAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as FlagsmithFeaturesAdapter } from "../../../flagsmith-Cd44vxff.mjs";
|
|
2
|
+
export { FlagsmithFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as FlagsmithFeaturesAdapter } from "../../../flagsmith-Cu93hUIF.mjs";
|
|
2
|
+
export { FlagsmithFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as LaunchDarklyFeaturesAdapter } from "../../../launchdarkly-De701hkf.mjs";
|
|
2
|
+
export { LaunchDarklyFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as LaunchDarklyFeaturesAdapter } from "../../../launchdarkly-CLGtJCsI.mjs";
|
|
2
|
+
export { LaunchDarklyFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as PostHogFeaturesAdapter } from "../../../posthog-CIrmvke4.mjs";
|
|
2
|
+
export { PostHogFeaturesAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as PostHogFeaturesAdapter } from "../../../posthog-0umvvA48.mjs";
|
|
2
|
+
export { PostHogFeaturesAdapter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import {
|
|
3
|
-
export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags,
|
|
1
|
+
import { $n as useFeatures, Gn as FeatureContextOptions, Jn as FeatureTicket, Kn as FeatureOptions, Qn as createFeaturesPlugin, Wn as FeatureContext, Xn as createFeatures, Yn as FeatureTicketInput, Zn as createFeaturesContext, qn as FeaturePluginOptions } from "../index-CyUCELZC.mjs";
|
|
2
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterValue, t as FeaturesAdapter } from "../adapter-CspReV3g.mjs";
|
|
3
|
+
export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags, FeaturesAdapterValue, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
package/dist/features/index.mjs
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as FeaturesAdapter } from "../adapter-BSKx9WQ7.mjs";
|
|
2
|
+
import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-Dhnr-Lg2.mjs";
|
|
2
3
|
export { FeaturesAdapter, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as FeaturesAdapterFlags,
|
|
1
|
+
import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-CspReV3g.mjs";
|
|
2
2
|
import { IFlagsmith, IInitConfig } from "@flagsmith/flagsmith";
|
|
3
3
|
|
|
4
|
-
//#region src/composables/useFeatures/adapters/flagsmith
|
|
5
|
-
declare class
|
|
4
|
+
//#region src/composables/useFeatures/adapters/flagsmith.d.ts
|
|
5
|
+
declare class FlagsmithFeaturesAdapter extends FeaturesAdapter {
|
|
6
6
|
private client;
|
|
7
7
|
private options;
|
|
8
8
|
constructor(client: IFlagsmith, options: IInitConfig);
|
|
@@ -11,4 +11,4 @@ declare class FlagsmithFeatureAdapter implements FeaturesAdapterInterface {
|
|
|
11
11
|
private disposeFn;
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { FlagsmithFeaturesAdapter as t };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { isNullOrUndefined } from "./utilities/index.mjs";
|
|
2
|
-
|
|
2
|
+
import { t as FeaturesAdapter } from "./adapter-BSKx9WQ7.mjs";
|
|
3
|
+
//#region src/composables/useFeatures/adapters/flagsmith.ts
|
|
3
4
|
/**
|
|
4
|
-
* @module
|
|
5
|
+
* @module FlagsmithFeaturesAdapter
|
|
5
6
|
*
|
|
6
7
|
* @remarks
|
|
7
8
|
* Flagsmith adapter for feature flags.
|
|
8
9
|
*/
|
|
9
|
-
var
|
|
10
|
+
var FlagsmithFeaturesAdapter = class extends FeaturesAdapter {
|
|
10
11
|
client;
|
|
11
12
|
options;
|
|
12
13
|
constructor(client, options) {
|
|
14
|
+
super();
|
|
13
15
|
this.client = client;
|
|
14
16
|
this.options = options;
|
|
15
17
|
}
|
|
@@ -43,4 +45,4 @@ var FlagsmithFeatureAdapter = class {
|
|
|
43
45
|
disposeFn = () => {};
|
|
44
46
|
};
|
|
45
47
|
//#endregion
|
|
46
|
-
export {
|
|
48
|
+
export { FlagsmithFeaturesAdapter as t };
|
|
@@ -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 = "1.0.0-alpha.
|
|
8
|
+
const version = "1.0.0-alpha.5";
|
|
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 { a as ID, r as DeepPartial } from "./index-
|
|
1
|
+
import { a as ID, r as DeepPartial } from "./index-CLR1QMM3.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utilities/color.d.ts
|
|
4
4
|
interface RGB {
|
|
@@ -98,6 +98,29 @@ declare function isBoolean(item: unknown): item is boolean;
|
|
|
98
98
|
* @see {@link isNull} to check for null
|
|
99
99
|
*/
|
|
100
100
|
declare function isObject(item: unknown): item is Record<string, unknown>;
|
|
101
|
+
/**
|
|
102
|
+
* Checks if a value is a thenable (any object with a `.then` method).
|
|
103
|
+
* Duck-typed — matches both native Promises and any Promise-like.
|
|
104
|
+
*
|
|
105
|
+
* @param item The value to check
|
|
106
|
+
* @returns True if the value has a callable `then` property
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* isThenable(Promise.resolve()) // true
|
|
111
|
+
* isThenable({ then: () => {} }) // true
|
|
112
|
+
* isThenable({}) // false
|
|
113
|
+
* isThenable('string') // false
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @remarks Use this when duck-typing async behavior — for example, rejecting
|
|
117
|
+
* a callback that returned a Promise-like when only synchronous returns are
|
|
118
|
+
* supported. If you specifically want native Promise instances, use
|
|
119
|
+
* `instanceof Promise` directly.
|
|
120
|
+
*/
|
|
121
|
+
declare function isThenable(item: unknown): item is {
|
|
122
|
+
then: Function;
|
|
123
|
+
};
|
|
101
124
|
/**
|
|
102
125
|
* Checks if a value is an array
|
|
103
126
|
*
|
|
@@ -325,4 +348,4 @@ declare function resolveIndexes(items: Iterable<{
|
|
|
325
348
|
declare function instanceExists(): boolean;
|
|
326
349
|
declare function instanceName(): string | undefined;
|
|
327
350
|
//#endregion
|
|
328
|
-
export {
|
|
351
|
+
export { apca as C, rgbToHex as D, hexToRgb as E, useId as S, RGB as T, isUndefined as _, isBoolean as a, resolveIds as b, isNaN as c, isNumber as d, isObject as f, isThenable as g, isSymbol as h, isArray as i, isNull as l, isString as m, instanceName as n, isElement as o, isPrimitive as p, clamp as r, isFunction as s, instanceExists as t, isNullOrUndefined as u, mergeDeep as v, foreground as w, resolveIndexes as x, range as y };
|