x-essential-lib 0.3.0 → 0.3.1

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.
@@ -1 +1 @@
1
- export declare function useHotkey(): void;
1
+ export declare function useHotkey(): {};
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");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-a8f3d91f]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-a8f3d91f]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-a8f3d91f]{transform-origin:20px 20px;animation:lds-spinner-a8f3d91f 1.2s linear infinite}.lds-spinner div[data-v-a8f3d91f]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-a8f3d91f]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-a8f3d91f]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-a8f3d91f]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-a8f3d91f]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-a8f3d91f]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-a8f3d91f]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-a8f3d91f]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-a8f3d91f]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-a8f3d91f]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-a8f3d91f{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
2
  import { VAlert as we, VBtn as ye, VCard as ke, VCardActions as be, VCardText as Ce, VCardTitle as Ve, VDialog as De, VForm as Se, VTextField as qe } from "vuetify/lib/components/index.mjs";
3
- import { ref as f, computed as d, onMounted as q, onBeforeUnmount as R, defineComponent as O, watch as P, resolveComponent as v, openBlock as C, createBlock as $, unref as L, isRef as X, withKeys as K, withModifiers as M, withCtx as g, createVNode as h, createTextVNode as b, toDisplayString as k, createElementBlock as H, normalizeStyle as Re, pushScopeId as Oe, popScopeId as Ee, createElementVNode as _, reactive as Ie, Fragment as Te, renderList as je, inject as le } from "vue";
3
+ import { ref as f, computed as d, onMounted as q, onBeforeUnmount as R, defineComponent as O, watch as P, resolveComponent as v, openBlock as C, createBlock as $, unref as K, isRef as X, withKeys as L, withModifiers as M, withCtx as g, createVNode as h, createTextVNode as b, toDisplayString as k, createElementBlock as H, normalizeStyle as Re, pushScopeId as Oe, popScopeId as Ee, createElementVNode as _, reactive as Ie, Fragment as Te, renderList as je, inject as le } from "vue";
4
4
  import { useLocale as F, useTheme as N, useDisplay as Pe } from "vuetify/lib/framework.mjs";
5
5
  import { defineStore as ae } from "pinia";
6
6
  import { useI18n as Me } from "vue-i18n";
@@ -106,11 +106,11 @@ const Be = /* @__PURE__ */ O({
106
106
  }), (u, w) => {
107
107
  const S = v("v-card-title"), U = v("v-card-text"), I = v("v-btn"), i = v("v-card-actions"), x = v("v-card"), z = v("v-dialog");
108
108
  return C(), $(z, {
109
- modelValue: L(t),
109
+ modelValue: K(t),
110
110
  "onUpdate:modelValue": w[1] || (w[1] = (T) => X(t) ? t.value = T : null),
111
111
  onKeydown: [
112
- w[2] || (w[2] = K(M((T) => t.value = !1, ["stop", "prevent"]), ["esc"])),
113
- K(M(B, ["stop", "prevent"]), ["enter"])
112
+ w[2] || (w[2] = L(M((T) => t.value = !1, ["stop", "prevent"]), ["esc"])),
113
+ L(M(B, ["stop", "prevent"]), ["enter"])
114
114
  ],
115
115
  transition: "dialog-top-transition",
116
116
  "max-width": "600px"
@@ -176,9 +176,9 @@ const Be = /* @__PURE__ */ O({
176
176
  /* @__PURE__ */ _("div"),
177
177
  /* @__PURE__ */ _("div"),
178
178
  /* @__PURE__ */ _("div")
179
- ], -1)), Le = [
179
+ ], -1)), Ke = [
180
180
  We
181
- ], Ke = /* @__PURE__ */ O({
181
+ ], Le = /* @__PURE__ */ O({
182
182
  __name: "index",
183
183
  props: {
184
184
  zIndex: {
@@ -194,14 +194,14 @@ const Be = /* @__PURE__ */ O({
194
194
  return (r, a) => (C(), H("div", {
195
195
  class: "x-cont",
196
196
  style: Re(o.value)
197
- }, Le, 4));
197
+ }, Ke, 4));
198
198
  }
199
199
  }), ce = (e, n) => {
200
200
  const t = e.__vccOpts || e;
201
201
  for (const [o, r] of n)
202
202
  t[o] = r;
203
203
  return t;
204
- }, Ne = /* @__PURE__ */ ce(Ke, [["__scopeId", "data-v-a8f3d91f"]]), ze = /* @__PURE__ */ O({
204
+ }, Ne = /* @__PURE__ */ ce(Le, [["__scopeId", "data-v-a8f3d91f"]]), ze = /* @__PURE__ */ O({
205
205
  __name: "item",
206
206
  props: {
207
207
  id: {
@@ -335,11 +335,11 @@ const Be = /* @__PURE__ */ O({
335
335
  }), (i, x) => {
336
336
  const z = v("v-card-title"), T = v("v-card-text"), ve = v("v-text-field"), ge = v("v-form"), Q = v("v-btn"), _e = v("v-card-actions"), he = v("v-card"), xe = v("v-dialog");
337
337
  return C(), $(xe, {
338
- modelValue: L(t),
338
+ modelValue: K(t),
339
339
  "onUpdate:modelValue": x[2] || (x[2] = (j) => X(t) ? t.value = j : null),
340
340
  onKeydown: [
341
- x[3] || (x[3] = K(M((j) => t.value = !1, ["stop", "prevent"]), ["esc"])),
342
- K(M(I, ["stop", "prevent"]), ["enter"])
341
+ x[3] || (x[3] = L(M((j) => t.value = !1, ["stop", "prevent"]), ["esc"])),
342
+ L(M(I, ["stop", "prevent"]), ["enter"])
343
343
  ],
344
344
  transition: "dialog-top-transition",
345
345
  "max-width": "600px"
@@ -421,7 +421,7 @@ const Be = /* @__PURE__ */ O({
421
421
  }), (a, l) => {
422
422
  const s = v("v-card"), p = v("v-dialog");
423
423
  return C(), $(p, {
424
- modelValue: L(t),
424
+ modelValue: K(t),
425
425
  "onUpdate:modelValue": l[0] || (l[0] = (m) => X(t) ? t.value = m : null),
426
426
  persistent: "",
427
427
  "no-click-animation": "",
@@ -436,7 +436,7 @@ const Be = /* @__PURE__ */ O({
436
436
  }, {
437
437
  default: g(() => [
438
438
  _("div", Je, [
439
- _("span", null, k(L(n).t("waitingResponse")), 1)
439
+ _("span", null, k(K(n).t("waitingResponse")), 1)
440
440
  ])
441
441
  ]),
442
442
  _: 1
@@ -520,7 +520,7 @@ function yt() {
520
520
  const e = tt(), n = ue();
521
521
  nt();
522
522
  const t = se(), o = (a) => {
523
- if (a.key === "Escape") {
523
+ if (console.log("onKeydown", a), a.key === "Escape") {
524
524
  r();
525
525
  return;
526
526
  }
@@ -537,11 +537,11 @@ function yt() {
537
537
  }
538
538
  ) : n.back();
539
539
  };
540
- q(() => {
541
- window.addEventListener("keydown", o, !1);
540
+ return q(() => {
541
+ window.addEventListener("keydown", o, !1), console.log("onMounted");
542
542
  }), R(() => {
543
- window.removeEventListener("keydown", o, !1);
544
- });
543
+ window.removeEventListener("keydown", o, !1), console.log("onBeforeUnmount");
544
+ }), {};
545
545
  }
546
546
  function kt() {
547
547
  const e = N(), { width: n } = Pe(), t = d(() => e.global.name.value), o = d(() => !!window.cordova), r = d(() => n.value <= 1280 ? n.value + "px" : n.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",