x-essential-lib 0.11.6 → 0.11.7
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/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as EventType, t as Emitter } from "./vendor.
|
|
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
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 function createVuetifyOptions(prod: boolean, localeAdapter: LocaleInstance): 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,10 +1,13 @@
|
|
|
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.
|
|
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";
|
|
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";
|
|
8
11
|
import { useRoute, useRouter } from "vue-router";
|
|
9
12
|
|
|
10
13
|
//#region src/composables/color.ts
|
|
@@ -606,6 +609,31 @@ function clearViews(views) {
|
|
|
606
609
|
views.value = [];
|
|
607
610
|
}
|
|
608
611
|
|
|
612
|
+
//#endregion
|
|
613
|
+
//#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
|
+
}
|
|
636
|
+
|
|
609
637
|
//#endregion
|
|
610
638
|
//#region src/composables/globalStates.ts
|
|
611
639
|
function useGlobalStates(globalStates, base) {
|
|
@@ -1552,4 +1580,4 @@ async function loadLocaleMessageEssential(locale) {
|
|
|
1552
1580
|
var src_default = { install };
|
|
1553
1581
|
|
|
1554
1582
|
//#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 };
|
|
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 };
|
|
@@ -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
|
-
|
|
4661
|
+
67,
|
|
4662
4662
|
() => [],
|
|
4663
4663
|
[]
|
|
4664
4664
|
];
|
|
4665
4665
|
var [Handler] = [
|
|
4666
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4749
|
+
73,
|
|
4750
4750
|
(Key, Events) => [
|
|
4751
4751
|
EventType,
|
|
4752
4752
|
Record,
|