x-essential-lib 0.11.7 → 0.11.8

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.
@@ -193,7 +193,7 @@ var en_default = {
193
193
  $vuetify,
194
194
  "x-essential-lib": {
195
195
  dlg: {
196
- ask: "Do you want {verb} {object} '{name}' ?",
196
+ ask: "Do you want {verb} {object} '{name}'?",
197
197
  cancel: "Cancel",
198
198
  ok: "OK",
199
199
  responding: "Responding..."
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as EventType, t as Emitter } from "./vendor.gz9a1xde.js";
2
2
  import { Ref } from "vue";
3
- import { LocaleInstance, VuetifyOptions } from "vuetify";
3
+ import { VuetifyOptions } from "vuetify";
4
4
  import { AxiosInstance } from "axios";
5
5
  //#region src/composables/color.d.ts
6
6
  export declare function useColor(): {
@@ -142,7 +142,7 @@ export declare function popView(views: Ref<string[]>): void;
142
142
  export declare function clearViews(views: Ref<string[]>): void;
143
143
  //#endregion
144
144
  //#region src/logic/vuetify/index.d.ts
145
- export declare function createVuetifyOptions(prod: boolean, localeAdapter: LocaleInstance): VuetifyOptions;
145
+ export declare const baseVuetifyOptions: VuetifyOptions;
146
146
  //#endregion
147
147
  //#region src/composables/globalStates.d.ts
148
148
  export interface GlobalStates {
package/dist/index.js CHANGED
@@ -5,9 +5,6 @@ import { useI18n } from "vue-i18n";
5
5
  import { useDisplay, useTheme } from "vuetify";
6
6
  import axios from "axios";
7
7
  import { globalObjects as globalObjects$1 } from "x-essential-lib";
8
- import * as components from "vuetify/components";
9
- import * as directives from "vuetify/directives";
10
- import * as labsComponents from "vuetify/labs/components";
11
8
  import { useRoute, useRouter } from "vue-router";
12
9
 
13
10
  //#region src/composables/color.ts
@@ -611,28 +608,16 @@ function clearViews(views) {
611
608
 
612
609
  //#endregion
613
610
  //#region src/logic/vuetify/index.ts
614
- function createVuetifyOptions(prod, localeAdapter) {
615
- const dynamicOptions = {};
616
- if (!prod) {
617
- dynamicOptions["components"] = {
618
- ...components,
619
- ...labsComponents
620
- };
621
- dynamicOptions["directives"] = directives;
622
- }
623
- return {
624
- ...dynamicOptions,
625
- locale: { adapter: localeAdapter },
626
- defaults: {
627
- VDataTable: { hover: true },
628
- VDataTableServer: { hover: true },
629
- VDataTableVirtual: { hover: true },
630
- VDialog: { captureFocus: false },
631
- VNavigationDrawer: { disableRouteWatcher: true }
632
- },
633
- icons: { defaultSet: "mdi" }
634
- };
635
- }
611
+ const baseVuetifyOptions = {
612
+ defaults: {
613
+ VDataTable: { hover: true },
614
+ VDataTableServer: { hover: true },
615
+ VDataTableVirtual: { hover: true },
616
+ VDialog: { captureFocus: false },
617
+ VNavigationDrawer: { disableRouteWatcher: true }
618
+ },
619
+ icons: { defaultSet: "mdi" }
620
+ };
636
621
 
637
622
  //#endregion
638
623
  //#region src/composables/globalStates.ts
@@ -1570,7 +1555,7 @@ const install = (app) => {
1570
1555
  //#endregion
1571
1556
  //#region src/i18n/index.ts
1572
1557
  async function loadLocaleMessageEssential(locale) {
1573
- if (locale === "en") return (await import("./i18n-en.b05zxa4b.js").then((n) => n.t)).default;
1558
+ if (locale === "en") return (await import("./i18n-en.j7vfghgh.js").then((n) => n.t)).default;
1574
1559
  else if (locale === "zhHans") return (await import("./i18n-zhHans.bl5d1n9h.js").then((n) => n.t)).default;
1575
1560
  else throw new Error(`invalid locale=${locale}`);
1576
1561
  }
@@ -1580,4 +1565,4 @@ async function loadLocaleMessageEssential(locale) {
1580
1565
  var src_default = { install };
1581
1566
 
1582
1567
  //#endregion
1583
- export { addView, clearViews, closeWaitDlg, createAxios, createVuetifyOptions, src_default as default, delView, email, eventBus, getErrorMessage, getTypeColor, getTypeDefault, globalObjects, hasView, injectDark, injectLocale, injectPermissionObjects, injectViews, isEmpty, isExist, lastView, length, loadLocaleMessageEssential, matchRouteMeta, maxLength, messageError, messageInfo, messageSuccess, messageWarning, minLength, onBeforeEnter, openConfirmDlg, openNumberDlg, openPromptDlg, openWaitDlg, popView, provideDark, provideLocale, providePermissionObjects, provideViews, required, routeTransName, toPermissionObjects, types, useColor, useGlobalStates, useMicroApp, usePageRoute, usePermission, useSystem, useViewStack, verifyPermission, waitMs, waitUtil };
1568
+ export { addView, baseVuetifyOptions, clearViews, closeWaitDlg, createAxios, src_default as default, delView, email, eventBus, getErrorMessage, getTypeColor, getTypeDefault, globalObjects, hasView, injectDark, injectLocale, injectPermissionObjects, injectViews, isEmpty, isExist, lastView, length, loadLocaleMessageEssential, matchRouteMeta, maxLength, messageError, messageInfo, messageSuccess, messageWarning, minLength, onBeforeEnter, openConfirmDlg, openNumberDlg, openPromptDlg, openWaitDlg, popView, provideDark, provideLocale, providePermissionObjects, provideViews, required, routeTransName, toPermissionObjects, types, useColor, useGlobalStates, useMicroApp, usePageRoute, usePermission, useSystem, useViewStack, verifyPermission, waitMs, waitUtil };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.11.7",
3
+ "version": "0.11.8",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -15,7 +15,7 @@
15
15
  "registry": "https://registry.npmjs.org"
16
16
  },
17
17
  "scripts": {
18
- "sync": "git submodule update --remote",
18
+ "sync": "git submodule update --init --remote",
19
19
  "gen": "buf generate --clean",
20
20
  "play": "vite",
21
21
  "test": "vitest",
@@ -45,7 +45,7 @@
45
45
  "typescript": "^6.0.3",
46
46
  "vite": "^8.3.0",
47
47
  "vue-tsc": "^3.3.11",
48
- "x-config-lib": "^0.1.6",
48
+ "x-config-lib": "^0.1.8",
49
49
  "x-config-oxfmt": "^0.1.6",
50
50
  "x-config-oxlint": "^0.1.7",
51
51
  "zod": "^4.6.5"