x-essential-lib 0.5.5 → 0.5.6

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.
Files changed (2) hide show
  1. package/dist/index.js +23 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.inner-left-enter-active,.inner-right-enter-active{transition:transform .35s ease}.inner-left-enter-from{transform:translate(-100%)}.inner-right-enter-from{transform:translate(100%)}.inner-left-enter-to,.inner-right-enter-to{transform:translate(0)}.x-cont[data-v-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-70ed4b89]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { ref as i, computed as g, onMounted as V, onBeforeUnmount as O, defineComponent as M, watch as J, resolveComponent as h, openBlock as R, createBlock as B, unref as W, isRef as X, withKeys as z, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as A, toDisplayString as T, createElementBlock as F, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
2
+ import { ref as i, computed as g, onMounted as V, onBeforeUnmount as O, defineComponent as M, watch as J, resolveComponent as h, openBlock as R, createBlock as B, unref as z, isRef as X, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as A, toDisplayString as T, createElementBlock as F, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
3
3
  import { useLocale as G, useTheme as Q, useDisplay as be } from "vuetify";
4
4
  import { defineStore as re } from "pinia";
5
5
  import Ce from "axios";
@@ -69,7 +69,7 @@ const ne = re(
69
69
  };
70
70
  });
71
71
  /*! js-cookie v3.0.5 | MIT */
72
- function L(e) {
72
+ function W(e) {
73
73
  for (var a = 1; a < arguments.length; a++) {
74
74
  var t = arguments[a];
75
75
  for (var r in t)
@@ -91,7 +91,7 @@ var Se = {
91
91
  function H(e, a) {
92
92
  function t(o, n, l) {
93
93
  if (!(typeof document > "u")) {
94
- l = L({}, a, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
94
+ l = W({}, a, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
95
95
  var c = "";
96
96
  for (var u in l)
97
97
  l[u] && (c += "; " + u, l[u] !== !0 && (c += "=" + l[u].split(";")[0]));
@@ -120,16 +120,16 @@ function H(e, a) {
120
120
  t(
121
121
  o,
122
122
  "",
123
- L({}, n, {
123
+ W({}, n, {
124
124
  expires: -1
125
125
  })
126
126
  );
127
127
  },
128
128
  withAttributes: function(o) {
129
- return H(this.converter, L({}, this.attributes, o));
129
+ return H(this.converter, W({}, this.attributes, o));
130
130
  },
131
131
  withConverter: function(o) {
132
- return H(L({}, this.converter, o), this.attributes);
132
+ return H(W({}, this.converter, o), this.attributes);
133
133
  }
134
134
  },
135
135
  {
@@ -421,11 +421,11 @@ const Ue = /* @__PURE__ */ M({
421
421
  }), (p, y) => {
422
422
  const C = h("v-card-text"), S = h("v-btn"), I = h("v-card-actions"), d = h("v-card"), x = h("v-dialog");
423
423
  return R(), B(x, {
424
- modelValue: W(t),
424
+ modelValue: z(t),
425
425
  "onUpdate:modelValue": y[1] || (y[1] = (U) => X(t) ? t.value = U : null),
426
426
  onKeydown: [
427
- y[2] || (y[2] = z(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
428
- z(K(f, ["stop", "prevent"]), ["enter"])
427
+ y[2] || (y[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
428
+ L(K(f, ["stop", "prevent"]), ["enter"])
429
429
  ],
430
430
  transition: "dialog-top-transition",
431
431
  "max-width": "600px"
@@ -485,9 +485,9 @@ const Ue = /* @__PURE__ */ M({
485
485
  /* @__PURE__ */ m("div"),
486
486
  /* @__PURE__ */ m("div"),
487
487
  /* @__PURE__ */ m("div")
488
- ], -1)), Le = [
488
+ ], -1)), We = [
489
489
  Ke
490
- ], We = /* @__PURE__ */ M({
490
+ ], ze = /* @__PURE__ */ M({
491
491
  __name: "index",
492
492
  props: {
493
493
  zIndex: {
@@ -503,14 +503,14 @@ const Ue = /* @__PURE__ */ M({
503
503
  return (o, n) => (R(), F("div", {
504
504
  class: "x-cont",
505
505
  style: ve(r.value)
506
- }, Le, 4));
506
+ }, We, 4));
507
507
  }
508
508
  }), pe = (e, a) => {
509
509
  const t = e.__vccOpts || e;
510
510
  for (const [r, o] of a)
511
511
  t[r] = o;
512
512
  return t;
513
- }, ze = /* @__PURE__ */ pe(We, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ M({
513
+ }, Le = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ M({
514
514
  __name: "item",
515
515
  props: {
516
516
  id: {
@@ -644,11 +644,11 @@ const Ue = /* @__PURE__ */ M({
644
644
  }), (d, x) => {
645
645
  const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), P = h("v-btn"), ie = h("v-card-actions"), fe = h("v-card"), ge = h("v-dialog");
646
646
  return R(), B(ge, {
647
- modelValue: W(t),
647
+ modelValue: z(t),
648
648
  "onUpdate:modelValue": x[2] || (x[2] = ($) => X(t) ? t.value = $ : null),
649
649
  onKeydown: [
650
- x[3] || (x[3] = z(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
651
- z(K(I, ["stop", "prevent"]), ["enter"])
650
+ x[3] || (x[3] = L(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
651
+ L(K(I, ["stop", "prevent"]), ["enter"])
652
652
  ],
653
653
  transition: "dialog-top-transition",
654
654
  "max-width": "600px"
@@ -724,7 +724,7 @@ const Ue = /* @__PURE__ */ M({
724
724
  }), (n, l) => {
725
725
  const c = h("v-card"), u = h("v-dialog");
726
726
  return R(), B(u, {
727
- modelValue: W(t),
727
+ modelValue: z(t),
728
728
  "onUpdate:modelValue": l[0] || (l[0] = (_) => X(t) ? t.value = _ : null),
729
729
  persistent: "",
730
730
  "no-click-animation": "",
@@ -739,7 +739,7 @@ const Ue = /* @__PURE__ */ M({
739
739
  }, {
740
740
  default: w(() => [
741
741
  m("div", Ge, [
742
- m("span", null, T(W(a).t("waitingResponse")), 1)
742
+ m("span", null, T(z(a).t("waitingResponse")), 1)
743
743
  ])
744
744
  ]),
745
745
  _: 1
@@ -751,7 +751,7 @@ const Ue = /* @__PURE__ */ M({
751
751
  };
752
752
  }
753
753
  }), Ye = (e) => {
754
- e.component("x-confirm-dlg", Ue), e.component("x-loading", ze), e.component("x-message", He), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
754
+ e.component("x-confirm-dlg", Ue), e.component("x-loading", Le), e.component("x-message", He), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
755
755
  };
756
756
  function vt() {
757
757
  const e = Q(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), r = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
@@ -797,19 +797,19 @@ function mt(e, a) {
797
797
  u();
798
798
  return;
799
799
  }
800
- if (!e && f.ctrlKey && f.shiftKey && f.key.toLowerCase() === "d") {
800
+ if (!e && f.ctrlKey && f.altKey && f.code === "KeyD") {
801
801
  o.dark = !o.dark;
802
802
  return;
803
803
  }
804
- if (!e && f.ctrlKey && f.shiftKey && f.key.toLowerCase() === "l") {
804
+ if (!e && f.ctrlKey && f.altKey && f.code === "KeyL") {
805
805
  o.locale === "en" ? o.locale = "zhHans" : o.locale = "en";
806
806
  return;
807
807
  }
808
808
  };
809
809
  V(() => {
810
- window.addEventListener("keydown", _, !1);
810
+ window.addEventListener("keydown", _);
811
811
  }), O(() => {
812
- window.removeEventListener("keydown", _, !1);
812
+ window.removeEventListener("keydown", _);
813
813
  });
814
814
  let v;
815
815
  const D = async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.5",
4
+ "version": "0.5.6",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",