x-essential-lib 0.11.6 → 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,5 +1,6 @@
1
- import { n as EventType, t as Emitter } from "./vendor.jfvj7vh6.js";
1
+ import { n as EventType, t as Emitter } from "./vendor.gz9a1xde.js";
2
2
  import { Ref } from "vue";
3
+ import { VuetifyOptions } from "vuetify";
3
4
  import { AxiosInstance } from "axios";
4
5
  //#region src/composables/color.d.ts
5
6
  export declare function useColor(): {
@@ -140,6 +141,9 @@ export declare function delView(views: Ref<string[]>, name: string): void;
140
141
  export declare function popView(views: Ref<string[]>): void;
141
142
  export declare function clearViews(views: Ref<string[]>): void;
142
143
  //#endregion
144
+ //#region src/logic/vuetify/index.d.ts
145
+ export declare const baseVuetifyOptions: VuetifyOptions;
146
+ //#endregion
143
147
  //#region src/composables/globalStates.d.ts
144
148
  export interface GlobalStates {
145
149
  darkRaw: Ref<boolean | undefined>;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){try{document.getElementById(`x-essential-lib`)?.remove();const e = document.createElement(`style`);e.setAttribute(`id`, `x-essential-lib`);const t = document.createTextNode(`.fade-leave-active[data-v-x-essential-lib-c3545c8d]{transition:opacity .5s}.fade-leave-to[data-v-x-essential-lib-c3545c8d]{opacity:0}.x-cont[data-v-x-essential-lib-c3545c8d]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-x-essential-lib-c3545c8d]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-x-essential-lib-c3545c8d]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-x-essential-lib-c3545c8d}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-x-essential-lib-c3545c8d{0%{opacity:1}to{opacity:0}}.x-item[data-v-x-essential-lib-cfcda9d9]{width:600px}@media (width<=600px){.x-item[data-v-x-essential-lib-cfcda9d9]{width:calc(100vw - 16px)}}.x-cont[data-v-x-essential-lib-b973907d]{z-index:9999;position:fixed;bottom:50px;left:50%;transform:translate(-50%)}`);e.appendChild(t);document.head.appendChild(e);}catch(e){console.error('rolldown-plugin-inject-css', e);}})()
2
- import { a as email$1, c as mitt_default, i as custom, l as usePreferredDark, o as string, r as toLower, s as api } from "./vendor.jfvj7vh6.js";
2
+ import { a as email$1, c as mitt_default, i as custom, l as usePreferredDark, o as string, r as toLower, s as api } from "./vendor.gz9a1xde.js";
3
3
  import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, isRef, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, resolveComponent, toDisplayString, unref, useTemplateRef, watch, watchEffect, withCtx, withKeys, withModifiers } from "vue";
4
4
  import { useI18n } from "vue-i18n";
5
5
  import { useDisplay, useTheme } from "vuetify";
@@ -606,6 +606,19 @@ function clearViews(views) {
606
606
  views.value = [];
607
607
  }
608
608
 
609
+ //#endregion
610
+ //#region src/logic/vuetify/index.ts
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
+ };
621
+
609
622
  //#endregion
610
623
  //#region src/composables/globalStates.ts
611
624
  function useGlobalStates(globalStates, base) {
@@ -1542,7 +1555,7 @@ const install = (app) => {
1542
1555
  //#endregion
1543
1556
  //#region src/i18n/index.ts
1544
1557
  async function loadLocaleMessageEssential(locale) {
1545
- 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;
1546
1559
  else if (locale === "zhHans") return (await import("./i18n-zhHans.bl5d1n9h.js").then((n) => n.t)).default;
1547
1560
  else throw new Error(`invalid locale=${locale}`);
1548
1561
  }
@@ -1552,4 +1565,4 @@ async function loadLocaleMessageEssential(locale) {
1552
1565
  var src_default = { install };
1553
1566
 
1554
1567
  //#endregion
1555
- export { addView, 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 };
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 };
@@ -4658,12 +4658,12 @@ function toLower(value) {
4658
4658
  //#endregion
4659
4659
  //#region node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/index.d.ts
4660
4660
  var [EventType] = [
4661
- 66,
4661
+ 67,
4662
4662
  () => [],
4663
4663
  []
4664
4664
  ];
4665
4665
  var [Handler] = [
4666
- 67,
4666
+ 68,
4667
4667
  (T) => [T],
4668
4668
  [
4669
4669
  "",
@@ -4672,7 +4672,7 @@ var [Handler] = [
4672
4672
  ]
4673
4673
  ];
4674
4674
  var [WildcardHandler] = [
4675
- 68,
4675
+ 69,
4676
4676
  (T) => [
4677
4677
  Record,
4678
4678
  T,
@@ -4690,7 +4690,7 @@ var [WildcardHandler] = [
4690
4690
  ]
4691
4691
  ];
4692
4692
  var [EventHandlerList] = [
4693
- 69,
4693
+ 70,
4694
4694
  (T) => [
4695
4695
  T,
4696
4696
  Handler,
@@ -4704,7 +4704,7 @@ var [EventHandlerList] = [
4704
4704
  ]
4705
4705
  ];
4706
4706
  var [WildCardEventHandlerList] = [
4707
- 70,
4707
+ 71,
4708
4708
  (T) => [
4709
4709
  Record,
4710
4710
  T,
@@ -4720,7 +4720,7 @@ var [WildCardEventHandlerList] = [
4720
4720
  ]
4721
4721
  ];
4722
4722
  var [EventHandlerMap] = [
4723
- 71,
4723
+ 72,
4724
4724
  (Events) => [
4725
4725
  EventType,
4726
4726
  Record,
@@ -4746,7 +4746,7 @@ var [EventHandlerMap] = [
4746
4746
  ]
4747
4747
  ];
4748
4748
  var [Emitter] = [
4749
- 72,
4749
+ 73,
4750
4750
  (Key, Events) => [
4751
4751
  EventType,
4752
4752
  Record,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.11.6",
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"