@vuetify/v0 1.0.1 → 1.0.3
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/browser/index.d.ts +633 -374
- package/dist/browser/index.js +960 -449
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/{components-BGEPbuSG.mjs → components-CeyYdes9.mjs} +926 -516
- package/dist/composables/index.d.mts +1 -1
- package/dist/composables/index.mjs +21 -21
- package/dist/{composables-CfcQp7UD.mjs → composables-Br-ApSWN.mjs} +45 -38
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-BQKvmkfj.mjs → createDataTable-B1uf_rZu.mjs} +3 -3
- package/dist/{createGroup-63cIJS__.mjs → createGroup-Czt0x8tf.mjs} +1 -1
- package/dist/{createRegistry-DMIsLVfQ.mjs → createRegistry-Cu1WQTyV.mjs} +1 -1
- package/dist/{createSelection-BHnOqlJY.mjs → createSelection-kydb14hZ.mjs} +1 -1
- package/dist/{createSingle-Rh6cR-G_.mjs → createSingle-JWAjGQLk.mjs} +1 -1
- package/dist/{createTokens-BD-AGGzk.mjs → createTokens-BD7p5_XB.mjs} +2 -2
- package/dist/data-table/index.mjs +1 -1
- package/dist/date/index.mjs +1 -1
- package/dist/features/adapters/posthog/index.mjs +1 -1
- package/dist/features/index.d.mts +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-CM2GpI-A.mjs → globals-XB8xcQFv.mjs} +1 -1
- package/dist/{index-Bhzo6qwv.d.mts → index-0Wnlny_C.d.mts} +44 -0
- package/dist/{index-C0GDmRHJ.d.mts → index-BS_OGRsE.d.mts} +619 -424
- package/dist/{index-u0Sy6Dif.d.mts → index-DF0tMI2_.d.mts} +22 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +24 -24
- package/dist/json/attributes.json +41 -1
- package/dist/json/importMap.json +8 -0
- package/dist/json/tags.json +156 -47
- package/dist/json/web-types.json +316 -2
- package/dist/locale/adapters/index.mjs +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/index.d.mts +1 -1
- package/dist/locale/index.mjs +2 -2
- package/dist/locale/messages/en/index.d.mts +6 -0
- package/dist/locale/messages/en/index.mjs +11 -3
- package/dist/logger/adapters/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +2 -2
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +2 -2
- package/dist/palettes/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +2 -2
- 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/{unhead-DVB3cg3m.mjs → unhead-VVWCVv5Z.mjs} +1 -1
- package/dist/{useEventListener-DO9cWwJS.mjs → useEventListener-DasgNSNh.mjs} +1 -1
- package/dist/{useFeatures-DYsDqjFv.mjs → useFeatures-SX-DoCwv.mjs} +3 -3
- package/dist/{useLocale-CIMTKTN0.mjs → useLocale-C8E7B4Il.mjs} +4 -4
- package/dist/{useLogger-eTRi_LkE.mjs → useLogger-pEmKLFsd.mjs} +2 -2
- package/dist/{useNotifications-BWSWV7A6.mjs → useNotifications-C6xFiQsD.mjs} +3 -3
- package/dist/{usePermissions-QP0GIGdO.mjs → usePermissions-CCA_18Be.mjs} +2 -2
- package/dist/{useRovingFocus-CK50J09j.mjs → useRovingFocus-D2_aApXC.mjs} +99 -25
- package/dist/{useRules-DhQuZ66P.mjs → useRules-CWWsE2Xt.mjs} +2 -2
- package/dist/{useStorage-Cs-eTm7F.mjs → useStorage-Dd_snxwm.mjs} +3 -3
- package/dist/{useTheme-oWWN_lkE.mjs → useTheme-8qFLgTvi.mjs} +4 -4
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +21 -1
- package/dist/{v0-SlPjHjDu.mjs → v0-BLhsLm61.mjs} +1 -1
- package/dist/{v0-BQDezfA9.mjs → v0-Bdm1oHXK.mjs} +1 -1
- package/dist/{v0-DfAHWKPZ.mjs → v0-DYG-2UmI.mjs} +1 -1
- package/package.json +25 -3
|
@@ -26,6 +26,7 @@ declare const _default: {
|
|
|
26
26
|
readonly indicatorLabel: "+{count} more";
|
|
27
27
|
};
|
|
28
28
|
readonly Breadcrumbs: {
|
|
29
|
+
readonly expand: "Show {count} more breadcrumbs";
|
|
29
30
|
readonly label: "Breadcrumbs";
|
|
30
31
|
};
|
|
31
32
|
readonly Button: {
|
|
@@ -51,6 +52,7 @@ declare const _default: {
|
|
|
51
52
|
readonly NumberField: {
|
|
52
53
|
readonly decrement: "Decrement";
|
|
53
54
|
readonly increment: "Increment";
|
|
55
|
+
readonly label: "Number";
|
|
54
56
|
};
|
|
55
57
|
readonly Pagination: {
|
|
56
58
|
readonly currentPage: "Page {page}, current";
|
|
@@ -63,8 +65,12 @@ declare const _default: {
|
|
|
63
65
|
readonly status: "Page {page} of {pages}";
|
|
64
66
|
};
|
|
65
67
|
readonly Rating: {
|
|
68
|
+
readonly label: "Rating";
|
|
66
69
|
readonly valueText: "{value} of {size} stars";
|
|
67
70
|
};
|
|
71
|
+
readonly Slider: {
|
|
72
|
+
readonly label: "Slider";
|
|
73
|
+
};
|
|
68
74
|
readonly Snackbar: {
|
|
69
75
|
readonly close: "Dismiss";
|
|
70
76
|
};
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
var en_default = {
|
|
22
22
|
AlertDialog: { close: "Close" },
|
|
23
23
|
Avatar: { indicatorLabel: "+{count} more" },
|
|
24
|
-
Breadcrumbs: {
|
|
24
|
+
Breadcrumbs: {
|
|
25
|
+
expand: "Show {count} more breadcrumbs",
|
|
26
|
+
label: "Breadcrumbs"
|
|
27
|
+
},
|
|
25
28
|
Button: { label: "Button" },
|
|
26
29
|
Carousel: {
|
|
27
30
|
indicator: "Go to slide {current} of {size}",
|
|
@@ -38,7 +41,8 @@ var en_default = {
|
|
|
38
41
|
Dialog: { close: "Close" },
|
|
39
42
|
NumberField: {
|
|
40
43
|
decrement: "Decrement",
|
|
41
|
-
increment: "Increment"
|
|
44
|
+
increment: "Increment",
|
|
45
|
+
label: "Number"
|
|
42
46
|
},
|
|
43
47
|
Pagination: {
|
|
44
48
|
currentPage: "Page {page}, current",
|
|
@@ -50,7 +54,11 @@ var en_default = {
|
|
|
50
54
|
prev: "Previous page",
|
|
51
55
|
status: "Page {page} of {pages}"
|
|
52
56
|
},
|
|
53
|
-
Rating: {
|
|
57
|
+
Rating: {
|
|
58
|
+
label: "Rating",
|
|
59
|
+
valueText: "{value} of {size} stars"
|
|
60
|
+
},
|
|
61
|
+
Slider: { label: "Slider" },
|
|
54
62
|
Snackbar: { close: "Dismiss" },
|
|
55
63
|
Splitter: { handle: "Resize" }
|
|
56
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as LoggerAdapter } from "../../adapter-Chznb9Ju.mjs";
|
|
2
2
|
import { t as ConsolaLoggerAdapter } from "../../consola-cad-VEV2.mjs";
|
|
3
3
|
import { t as PinoLoggerAdapter } from "../../pino-BscMO3RR.mjs";
|
|
4
|
-
import { t as V0LoggerAdapter } from "../../v0-
|
|
4
|
+
import { t as V0LoggerAdapter } from "../../v0-Bdm1oHXK.mjs";
|
|
5
5
|
export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, V0LoggerAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0LoggerAdapter } from "../../../v0-
|
|
1
|
+
import { t as V0LoggerAdapter } from "../../../v0-Bdm1oHXK.mjs";
|
|
2
2
|
export { V0LoggerAdapter };
|
package/dist/logger/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as LogLevel, Cn as LoggerContextOptions, Dn as createLoggerContext, En as createLogger, On as createLoggerPlugin, Sn as LoggerContext, Tn as LoggerPluginOptions, kn as useLogger, wn as LoggerOptions } from "../index-
|
|
1
|
+
import { An as LogLevel, Cn as LoggerContextOptions, Dn as createLoggerContext, En as createLogger, On as createLoggerPlugin, Sn as LoggerContext, Tn as LoggerPluginOptions, kn as useLogger, wn as LoggerOptions } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
import { t as LoggerAdapter } from "../adapter-BYzU4Ey5.mjs";
|
|
3
3
|
import { t as ConsolaLoggerAdapter } from "../consola-BPGkJp_q.mjs";
|
|
4
4
|
import { n as PinoLoggerAdapter } from "../pino-B6BI1AOK.mjs";
|
package/dist/logger/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as useLogger, n as createLoggerContext, r as createLoggerPlugin, t as createLogger } from "../useLogger-
|
|
1
|
+
import { i as useLogger, n as createLoggerContext, r as createLoggerPlugin, t as createLogger } from "../useLogger-pEmKLFsd.mjs";
|
|
2
2
|
import { t as LoggerAdapter } from "../adapter-Chznb9Ju.mjs";
|
|
3
3
|
import { t as ConsolaLoggerAdapter } from "../consola-cad-VEV2.mjs";
|
|
4
4
|
import { t as PinoLoggerAdapter } from "../pino-BscMO3RR.mjs";
|
|
5
|
-
import { t as V0LoggerAdapter } from "../v0-
|
|
5
|
+
import { t as V0LoggerAdapter } from "../v0-Bdm1oHXK.mjs";
|
|
6
6
|
export { ConsolaLoggerAdapter, LoggerAdapter, PinoLoggerAdapter, V0LoggerAdapter, createLogger, createLoggerContext, createLoggerPlugin, useLogger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as NotificationInput, an as NotificationsOptions, cn as createNotificationsContext, dn as NotificationsAdapter, en as NotificationSeverity, in as NotificationsContext, ln as createNotificationsPlugin, nn as NotificationTicketInput, on as NotificationsPluginOptions, rn as NotificationsAdapterContext, sn as createNotifications, tn as NotificationTicket, un as useNotifications } from "../index-
|
|
1
|
+
import { $t as NotificationInput, an as NotificationsOptions, cn as createNotificationsContext, dn as NotificationsAdapter, en as NotificationSeverity, in as NotificationsContext, ln as createNotificationsPlugin, nn as NotificationTicketInput, on as NotificationsPluginOptions, rn as NotificationsAdapterContext, sn as createNotifications, tn as NotificationTicket, un as useNotifications } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/composables/useNotifications/adapters/knock.d.ts
|
|
4
4
|
/** Minimal Knock feed item shape. Uses type-only imports to avoid bundling the SDK. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
2
|
-
import { i as useNotifications, n as createNotificationsContext, r as createNotificationsPlugin, t as createNotifications } from "../useNotifications-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-XB8xcQFv.mjs";
|
|
2
|
+
import { i as useNotifications, n as createNotificationsContext, r as createNotificationsPlugin, t as createNotifications } from "../useNotifications-C6xFiQsD.mjs";
|
|
3
3
|
//#region src/composables/useNotifications/adapters/adapter.ts
|
|
4
4
|
var NotificationsAdapter = class {};
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ID } from "../index-CyNk9FpR.mjs";
|
|
2
|
-
import { b as ThemeRecord } from "../index-
|
|
2
|
+
import { b as ThemeRecord } from "../index-0Wnlny_C.mjs";
|
|
3
3
|
import { r as TokenCollection } from "../index-QnpcDsV7.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/palettes/index.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Qt as PermissionsAdapter, Zt as V0PermissionsAdapter } from "../../index-
|
|
1
|
+
import { Qt as PermissionsAdapter, Zt as V0PermissionsAdapter } from "../../index-0Wnlny_C.mjs";
|
|
2
2
|
export { PermissionsAdapter, V0PermissionsAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Zt as V0PermissionsAdapter } from "../../../index-
|
|
1
|
+
import { Zt as V0PermissionsAdapter } from "../../../index-0Wnlny_C.mjs";
|
|
2
2
|
export { V0PermissionsAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gt as PermissionPluginOptions, Ht as PermissionContext, Jt as createPermissionsContext, Kt as PermissionTicket, Qt as PermissionsAdapter, Ut as PermissionContextOptions, Wt as PermissionOptions, Xt as usePermissions, Yt as createPermissionsPlugin, qt as createPermissions } from "../index-
|
|
1
|
+
import { Gt as PermissionPluginOptions, Ht as PermissionContext, Jt as createPermissionsContext, Kt as PermissionTicket, Qt as PermissionsAdapter, Ut as PermissionContextOptions, Wt as PermissionOptions, Xt as usePermissions, Yt as createPermissionsPlugin, qt as createPermissions } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
export { PermissionContext, PermissionContextOptions, PermissionOptions, PermissionPluginOptions, PermissionTicket, PermissionsAdapter, createPermissions, createPermissionsContext, createPermissionsPlugin, usePermissions };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as PermissionsAdapter } from "../v0-UNyykD27.mjs";
|
|
2
|
-
import { i as usePermissions, n as createPermissionsContext, r as createPermissionsPlugin, t as createPermissions } from "../usePermissions-
|
|
2
|
+
import { i as usePermissions, n as createPermissionsContext, r as createPermissionsPlugin, t as createPermissions } from "../usePermissions-CCA_18Be.mjs";
|
|
3
3
|
export { PermissionsAdapter, createPermissions, createPermissionsContext, createPermissionsPlugin, usePermissions };
|
package/dist/rules/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-
|
|
1
|
+
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
export { RuleAlias, RuleAliases, RuleInput, RulesContext, RulesContextOptions, RulesOptions, StandardSchemaV1, createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
package/dist/rules/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-
|
|
1
|
+
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-CWWsE2Xt.mjs";
|
|
2
2
|
export { createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
package/dist/storage/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as StoragePluginOptions, I as createStorage, L as createStorageContext, M as StorageContext, N as StorageContextOptions, P as StorageOptions, R as createStoragePlugin, z as useStorage } from "../index-
|
|
1
|
+
import { F as StoragePluginOptions, I as createStorage, L as createStorageContext, M as StorageContext, N as StorageContextOptions, P as StorageOptions, R as createStoragePlugin, z as useStorage } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-DbyZeNjg.mjs";
|
|
3
3
|
import { t as StorageType } from "../index-DidZKN6S.mjs";
|
|
4
4
|
export { MemoryStorageAdapter, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, StorageType, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
package/dist/storage/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-BJjkQzxs.mjs";
|
|
2
|
-
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-
|
|
2
|
+
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-Dd_snxwm.mjs";
|
|
3
3
|
export { MemoryStorageAdapter, StorageAdapter, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as V0UnheadThemeAdapter, j as ThemeAdapter, k as V0StyleSheetThemeAdapter } from "../../index-
|
|
1
|
+
import { D as V0UnheadThemeAdapter, j as ThemeAdapter, k as V0StyleSheetThemeAdapter } from "../../index-0Wnlny_C.mjs";
|
|
2
2
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as ThemeAdapter } from "../../adapter-lS_VpRow.mjs";
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../../unhead-
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../../v0-DYG-2UmI.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../../unhead-VVWCVv5Z.mjs";
|
|
4
4
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as V0UnheadThemeAdapter, O as V0UnheadThemeOptions } from "../../../index-
|
|
1
|
+
import { D as V0UnheadThemeAdapter, O as V0UnheadThemeOptions } from "../../../index-0Wnlny_C.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter, V0UnheadThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0UnheadThemeAdapter } from "../../../unhead-
|
|
1
|
+
import { t as V0UnheadThemeAdapter } from "../../../unhead-VVWCVv5Z.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Vuetify0ThemeOptions, k as V0StyleSheetThemeAdapter } from "../../../index-
|
|
1
|
+
import { A as Vuetify0ThemeOptions, k as V0StyleSheetThemeAdapter } from "../../../index-0Wnlny_C.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter, Vuetify0ThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0StyleSheetThemeAdapter } from "../../../v0-
|
|
1
|
+
import { t as V0StyleSheetThemeAdapter } from "../../../v0-DYG-2UmI.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter };
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as createTheme, D as V0UnheadThemeAdapter, E as useTheme, S as ThemeTicketInput, T as createThemePlugin, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, j as ThemeAdapter, k as V0StyleSheetThemeAdapter, m as Colors, v as ThemeOptions, w as createThemeContext, x as ThemeTicket, y as ThemePluginOptions } from "../index-
|
|
1
|
+
import { C as createTheme, D as V0UnheadThemeAdapter, E as useTheme, S as ThemeTicketInput, T as createThemePlugin, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, j as ThemeAdapter, k as V0StyleSheetThemeAdapter, m as Colors, v as ThemeOptions, w as createThemeContext, x as ThemeTicket, y as ThemePluginOptions } from "../index-0Wnlny_C.mjs";
|
|
2
2
|
export { Colors, ThemeAdapter, ThemeColors, ThemeContext, ThemeContextOptions, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeTicket, ThemeTicketInput, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
package/dist/theme/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ThemeAdapter } from "../adapter-lS_VpRow.mjs";
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../unhead-
|
|
4
|
-
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../v0-DYG-2UmI.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../unhead-VVWCVv5Z.mjs";
|
|
4
|
+
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-8qFLgTvi.mjs";
|
|
5
5
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
2
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
3
3
|
import { onScopeDispose, toValue, unref, watch } from "vue";
|
|
4
4
|
//#region src/composables/useEventListener/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-BD7p5_XB.mjs";
|
|
4
|
+
import { t as createGroup } from "./createGroup-Czt0x8tf.mjs";
|
|
5
5
|
//#region src/composables/useFeatures/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module useFeatures
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isNumber, isString } 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 V0LocaleAdapter } from "./v0-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-JWAjGQLk.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-BD7p5_XB.mjs";
|
|
5
|
+
import { t as V0LocaleAdapter } from "./v0-BLhsLm61.mjs";
|
|
6
6
|
//#region src/composables/useLocale/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module useLocale
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
2
|
import { isNullOrUndefined, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
4
|
-
import { t as V0LoggerAdapter } from "./v0-
|
|
4
|
+
import { t as V0LoggerAdapter } from "./v0-Bdm1oHXK.mjs";
|
|
5
5
|
import { hasInjectionContext, inject, watch } from "vue";
|
|
6
6
|
//#region src/composables/createPlugin/index.ts
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-XB8xcQFv.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-z-3q9QWR.mjs";
|
|
4
|
-
import { o as createPluginContext } from "./useLogger-
|
|
5
|
-
import { t as createRegistry } from "./createRegistry-
|
|
4
|
+
import { o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
|
|
6
6
|
import { onScopeDispose, shallowRef, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useTimer/index.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UNSAFE_KEYS } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-BD7p5_XB.mjs";
|
|
4
4
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
5
5
|
import { t as V0PermissionsAdapter } from "./v0-UNyykD27.mjs";
|
|
6
6
|
//#region src/composables/usePermissions/index.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-
|
|
2
|
-
import { clamp, instanceExists, isArray, isElement, isFunction, isNull, isNullOrUndefined, isObject, isString, isUndefined, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
1
|
+
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
|
+
import { clamp, instanceExists, isArray, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isObject, isString, isUndefined, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
4
|
-
import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-
|
|
5
|
-
import { t as createRegistry } from "./createRegistry-
|
|
6
|
-
import { i as createModel, t as createSelection } from "./createSelection-
|
|
7
|
-
import { t as createSingle } from "./createSingle-
|
|
4
|
+
import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
|
|
6
|
+
import { i as createModel, t as createSelection } from "./createSelection-kydb14hZ.mjs";
|
|
7
|
+
import { t as createSingle } from "./createSingle-JWAjGQLk.mjs";
|
|
8
8
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
9
|
-
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-
|
|
10
|
-
import { t as createGroup } from "./createGroup-
|
|
11
|
-
import { c as useTimer } from "./useNotifications-
|
|
9
|
+
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-DasgNSNh.mjs";
|
|
10
|
+
import { t as createGroup } from "./createGroup-Czt0x8tf.mjs";
|
|
11
|
+
import { c as useTimer } from "./useNotifications-C6xFiQsD.mjs";
|
|
12
12
|
import { i as createFilter } from "./createPagination-B5dfqY-a.mjs";
|
|
13
|
-
import { a as useRules, o as isStandardSchema } from "./useRules-
|
|
13
|
+
import { a as useRules, o as isStandardSchema } from "./useRules-CWWsE2Xt.mjs";
|
|
14
14
|
import { computed, effectScope, hasInjectionContext, isReadonly, isRef, nextTick, onMounted, onScopeDispose, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, watch } from "vue";
|
|
15
15
|
//#region src/composables/useClickOutside/index.ts
|
|
16
16
|
/**
|
|
@@ -927,6 +927,7 @@ function createObserver(target, userCallback, config) {
|
|
|
927
927
|
* - SSR-safe (checks SUPPORTS_OBSERVER)
|
|
928
928
|
* - Hydration-aware
|
|
929
929
|
* - Box model options (content-box/border-box)
|
|
930
|
+
* - Reports `borderBoxSize` and `contentBoxSize` alongside `contentRect`
|
|
930
931
|
*
|
|
931
932
|
* Perfect for responsive components and size-based rendering.
|
|
932
933
|
*
|
|
@@ -941,6 +942,74 @@ function createObserver(target, userCallback, config) {
|
|
|
941
942
|
* })
|
|
942
943
|
* ```
|
|
943
944
|
*/
|
|
945
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
946
|
+
function pxToNumber(value, fallback = 0) {
|
|
947
|
+
if (!/* @__PURE__ */ isString(value)) return fallback;
|
|
948
|
+
const parsed = Number.parseFloat(value);
|
|
949
|
+
return /* @__PURE__ */ isNaN(parsed) ? fallback : parsed;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Synthesize the entry the observer would report for `el`, for the `immediate`
|
|
953
|
+
* callback that fires before the observer's own first delivery.
|
|
954
|
+
*
|
|
955
|
+
* Every measurement comes from `getComputedStyle` rather than
|
|
956
|
+
* `getBoundingClientRect` because resolved lengths are layout values — like the
|
|
957
|
+
* observer, and unlike a client rect, they are not scaled by CSS transforms.
|
|
958
|
+
* `contentRect` mirrors the native entry: width/height are the content box and
|
|
959
|
+
* top/left are the padding offsets, so the immediate entry matches what the
|
|
960
|
+
* observer reports next. The client rect only remains as the fallback when a
|
|
961
|
+
* resolved length is not numeric (e.g. a detached element).
|
|
962
|
+
*
|
|
963
|
+
* Every read is written to tolerate a partial style declaration: an element
|
|
964
|
+
* with no layout box resolves its lengths to `''`, and this runs on whatever
|
|
965
|
+
* `getComputedStyle` returns.
|
|
966
|
+
*/
|
|
967
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
968
|
+
function measure(el) {
|
|
969
|
+
const rect = el.getBoundingClientRect();
|
|
970
|
+
const style = getComputedStyle(el);
|
|
971
|
+
const padding = {
|
|
972
|
+
top: /* @__PURE__ */ pxToNumber(style.paddingTop),
|
|
973
|
+
left: /* @__PURE__ */ pxToNumber(style.paddingLeft),
|
|
974
|
+
right: /* @__PURE__ */ pxToNumber(style.paddingRight),
|
|
975
|
+
bottom: /* @__PURE__ */ pxToNumber(style.paddingBottom)
|
|
976
|
+
};
|
|
977
|
+
const paddingX = padding.left + padding.right;
|
|
978
|
+
const paddingY = padding.top + padding.bottom;
|
|
979
|
+
const borderX = /* @__PURE__ */ pxToNumber(style.borderLeftWidth) + /* @__PURE__ */ pxToNumber(style.borderRightWidth);
|
|
980
|
+
const borderY = /* @__PURE__ */ pxToNumber(style.borderTopWidth) + /* @__PURE__ */ pxToNumber(style.borderBottomWidth);
|
|
981
|
+
const outer = style.boxSizing === "border-box";
|
|
982
|
+
const resolvedX = /* @__PURE__ */ pxToNumber(style.width, rect.width);
|
|
983
|
+
const resolvedY = /* @__PURE__ */ pxToNumber(style.height, rect.height);
|
|
984
|
+
const width = {
|
|
985
|
+
border: outer ? resolvedX : resolvedX + paddingX + borderX,
|
|
986
|
+
content: Math.max(0, outer ? resolvedX - paddingX - borderX : resolvedX)
|
|
987
|
+
};
|
|
988
|
+
const height = {
|
|
989
|
+
border: outer ? resolvedY : resolvedY + paddingY + borderY,
|
|
990
|
+
content: Math.max(0, outer ? resolvedY - paddingY - borderY : resolvedY)
|
|
991
|
+
};
|
|
992
|
+
const vertical = /* @__PURE__ */ isString(style.writingMode) && style.writingMode.startsWith("vertical");
|
|
993
|
+
const inline = vertical ? height : width;
|
|
994
|
+
const block = vertical ? width : height;
|
|
995
|
+
return {
|
|
996
|
+
contentRect: {
|
|
997
|
+
width: width.content,
|
|
998
|
+
height: height.content,
|
|
999
|
+
top: padding.top,
|
|
1000
|
+
left: padding.left
|
|
1001
|
+
},
|
|
1002
|
+
borderBoxSize: [{
|
|
1003
|
+
inlineSize: inline.border,
|
|
1004
|
+
blockSize: block.border
|
|
1005
|
+
}],
|
|
1006
|
+
contentBoxSize: [{
|
|
1007
|
+
inlineSize: inline.content,
|
|
1008
|
+
blockSize: block.content
|
|
1009
|
+
}],
|
|
1010
|
+
target: el
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
944
1013
|
/**
|
|
945
1014
|
* A composable that uses the Resize Observer API to detect when an element's
|
|
946
1015
|
* size changes.
|
|
@@ -981,6 +1050,15 @@ function createObserver(target, userCallback, config) {
|
|
|
981
1050
|
* // Resume observation
|
|
982
1051
|
* resume()
|
|
983
1052
|
* ```
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* Measuring the border box — padding and borders included:
|
|
1056
|
+
*
|
|
1057
|
+
* ```ts
|
|
1058
|
+
* useResizeObserver(el, ([entry]) => {
|
|
1059
|
+
* height.value = entry.borderBoxSize[0].blockSize
|
|
1060
|
+
* }, { box: 'border-box' })
|
|
1061
|
+
* ```
|
|
984
1062
|
*/
|
|
985
1063
|
function useResizeObserver(target, callback, options = {}) {
|
|
986
1064
|
return createObserver(target, callback, {
|
|
@@ -994,22 +1072,13 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
994
1072
|
top: e.contentRect.top,
|
|
995
1073
|
left: e.contentRect.left
|
|
996
1074
|
},
|
|
1075
|
+
borderBoxSize: e.borderBoxSize,
|
|
1076
|
+
contentBoxSize: e.contentBoxSize,
|
|
997
1077
|
target: e.target
|
|
998
1078
|
})));
|
|
999
1079
|
}),
|
|
1000
1080
|
observe: (obs, el) => obs.observe(el, { box: options.box ?? "content-box" }),
|
|
1001
|
-
immediate: options.immediate ? (el) =>
|
|
1002
|
-
const rect = el.getBoundingClientRect();
|
|
1003
|
-
return [{
|
|
1004
|
-
contentRect: {
|
|
1005
|
-
width: rect.width,
|
|
1006
|
-
height: rect.height,
|
|
1007
|
-
top: rect.top,
|
|
1008
|
-
left: rect.left
|
|
1009
|
-
},
|
|
1010
|
-
target: el
|
|
1011
|
-
}];
|
|
1012
|
-
} : void 0
|
|
1081
|
+
immediate: options.immediate ? (el) => [/* @__PURE__ */ measure(el)] : void 0
|
|
1013
1082
|
});
|
|
1014
1083
|
}
|
|
1015
1084
|
/**
|
|
@@ -1609,11 +1678,14 @@ function useProxyModel(context, model, options) {
|
|
|
1609
1678
|
}
|
|
1610
1679
|
const applyOptions = toValue(multiple) === toValue(context.multiple ?? false) ? void 0 : { multiple: toValue(multiple) };
|
|
1611
1680
|
const pending = /* @__PURE__ */ new Set();
|
|
1681
|
+
function deferred(value) {
|
|
1682
|
+
return !context.browse?.(value)?.length;
|
|
1683
|
+
}
|
|
1612
1684
|
function reconcile(values) {
|
|
1613
1685
|
context.apply(values, applyOptions);
|
|
1614
1686
|
const selected = new Set(context.selectedValues.value);
|
|
1615
1687
|
pending.clear();
|
|
1616
|
-
for (const value of values) if (!selected.has(value)) pending.add(value);
|
|
1688
|
+
for (const value of values) if (!selected.has(value) && deferred(value)) pending.add(value);
|
|
1617
1689
|
}
|
|
1618
1690
|
reconcile(transformIn(model));
|
|
1619
1691
|
let syncing = false;
|
|
@@ -1635,8 +1707,10 @@ function useProxyModel(context, model, options) {
|
|
|
1635
1707
|
syncing = true;
|
|
1636
1708
|
contextWatch.pause();
|
|
1637
1709
|
reconcile(transformIn(val));
|
|
1638
|
-
|
|
1639
|
-
|
|
1710
|
+
if (pending.size === 0) {
|
|
1711
|
+
const actual = transformOut(Array.from(context.selectedValues.value));
|
|
1712
|
+
if (!shallowEqual(val, actual)) model.value = actual;
|
|
1713
|
+
}
|
|
1640
1714
|
contextWatch.resume();
|
|
1641
1715
|
syncing = false;
|
|
1642
1716
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { instanceExists, isFunction, isObject } from "./utilities/index.mjs";
|
|
2
|
-
import { i as useLogger, o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { a as useLocale } from "./useLocale-
|
|
2
|
+
import { i as useLogger, o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
3
|
+
import { a as useLocale } from "./useLocale-C8E7B4Il.mjs";
|
|
4
4
|
//#region src/composables/useRules/adapters/standard.ts
|
|
5
5
|
/**
|
|
6
6
|
* Type guard for Standard Schema objects.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
2
|
import { isArray, isNullOrUndefined, isObject } from "./utilities/index.mjs";
|
|
3
|
-
import { i as useLogger, o as createPluginContext } from "./useLogger-
|
|
4
|
-
import { r as useWindowEventListener } from "./useEventListener-
|
|
3
|
+
import { i as useLogger, o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
4
|
+
import { r as useWindowEventListener } from "./useEventListener-DasgNSNh.mjs";
|
|
5
5
|
import { t as MemoryStorageAdapter } from "./memory-BJjkQzxs.mjs";
|
|
6
6
|
import { ref, watch } from "vue";
|
|
7
7
|
//#region src/composables/useStorage/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { foreground, isNumber, isString } 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-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-pEmKLFsd.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-JWAjGQLk.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-BD7p5_XB.mjs";
|
|
5
|
+
import { t as V0StyleSheetThemeAdapter } from "./v0-DYG-2UmI.mjs";
|
|
6
6
|
import { computed, shallowRef, toRef } from "vue";
|
|
7
7
|
//#region src/composables/useTheme/index.ts
|
|
8
8
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as rgbToHex, C as useId, D as foreground, E as apca, O as RGB, S as resolveIndexes, T as isV0Error, _ as isThenable, a as isArray, b as range, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as clamp, k as hexToRgb, l as isNaN, m as isPrimitive, n as instanceName, o as isBoolean, p as isObject, r as UNSAFE_KEYS, s as isElement, t as instanceExists, u as isNull, v as isUndefined, w as V0Error, x as resolveIds, y as mergeDeep } from "../index-
|
|
1
|
+
import { A as rgbToHex, C as useId, D as foreground, E as apca, O as RGB, S as resolveIndexes, T as isV0Error, _ as isThenable, a as isArray, b as range, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as clamp, k as hexToRgb, l as isNaN, m as isPrimitive, n as instanceName, o as isBoolean, p as isObject, r as UNSAFE_KEYS, s as isElement, t as instanceExists, u as isNull, v as isUndefined, w as V0Error, x as resolveIds, y as mergeDeep } from "../index-DF0tMI2_.mjs";
|
|
2
2
|
export { RGB, UNSAFE_KEYS, V0Error, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, isV0Error, 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-XB8xcQFv.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
@@ -214,6 +214,11 @@ function isBoolean(item) {
|
|
|
214
214
|
* Returns false for null and arrays, even though `typeof null === 'object'`
|
|
215
215
|
* and `typeof [] === 'object'` in JavaScript.
|
|
216
216
|
*
|
|
217
|
+
* `Record<string, any>` is load-bearing: TypeScript does not grant interfaces
|
|
218
|
+
* an implicit index signature, so `Record<string, unknown>` destroys known
|
|
219
|
+
* property types on interface-typed values and fails to subtract
|
|
220
|
+
* `Record<string, any>` members in the negative branch.
|
|
221
|
+
*
|
|
217
222
|
* @example
|
|
218
223
|
* ```ts
|
|
219
224
|
* isObject({}) // true
|
|
@@ -265,6 +270,21 @@ function isThenable(item) {
|
|
|
265
270
|
* isArray([1, 2, 3]) // true
|
|
266
271
|
* isArray('string') // false
|
|
267
272
|
* ```
|
|
273
|
+
*
|
|
274
|
+
* @remarks The guard keeps whichever array constituents the input already had —
|
|
275
|
+
* element types, tuple arity and `readonly` all survive, and the `else` branch
|
|
276
|
+
* drops exactly those constituents. Three branches, in order:
|
|
277
|
+
*
|
|
278
|
+
* 1. `0 extends (1 & T)` detects an `any` input and yields `T[]` (`any[]`),
|
|
279
|
+
* matching `Array.isArray` so callback parameters stay contextually typed.
|
|
280
|
+
* 2. Nothing array-shaped to extract (an `unknown` value, say) falls back to
|
|
281
|
+
* `unknown[]`, reproducing the previous narrowing so mutation and assignment
|
|
282
|
+
* to `unknown[]` keep compiling.
|
|
283
|
+
* 3. Otherwise the array constituents of `T` pass through untouched.
|
|
284
|
+
*
|
|
285
|
+
* `NoInfer<T[]>` widens the parameter just enough for TypeScript to accept the
|
|
286
|
+
* first branch (a predicate must be assignable to its parameter's type) without
|
|
287
|
+
* letting an array argument capture the inference site.
|
|
268
288
|
*/
|
|
269
289
|
/* @__NO_SIDE_EFFECTS__ */
|
|
270
290
|
function isArray(item) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
2
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { t as LocaleAdapter } from "./adapter-bwZo7b5p.mjs";
|
|
4
4
|
//#region src/composables/useLocale/adapters/v0.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
|
|
2
2
|
import { isFunction } from "./utilities/index.mjs";
|
|
3
3
|
import { t as LoggerAdapter } from "./adapter-Chznb9Ju.mjs";
|
|
4
4
|
//#region src/composables/useLogger/adapters/v0.ts
|