rtcpts 0.0.43 → 0.0.44

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/rtcpt.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, ref as w, computed as C, resolveComponent as A, createBlock as V, openBlock as p, createElementBlock as v, createCommentVNode as Q, Fragment as _, renderList as X, normalizeClass as q, createElementVNode as N, renderSlot as Y, createVNode as j, inject as $e, toDisplayString as O, watch as W, nextTick as se, onMounted as ve, onBeforeUnmount as on, Teleport as Jn, Transition as ot, withCtx as D, normalizeStyle as H, createTextVNode as x, mergeProps as fe, createSlots as Ee, getCurrentInstance as Gn, resolveDirective as Ze, withDirectives as re, vShow as ge, Suspense as _n, resolveDynamicComponent as Dt, toHandlers as xn, normalizeProps as he, guardReactiveProps as je, withModifiers as te, withKeys as Tt, createApp as Kn, onUnmounted as Xn, h as el, reactive as be, isRef as xt } from "vue";
1
+ import { defineComponent as U, ref as w, computed as C, resolveComponent as A, createBlock as V, openBlock as p, createElementBlock as v, createCommentVNode as Q, Fragment as _, renderList as X, normalizeClass as q, createElementVNode as N, renderSlot as Y, createVNode as j, inject as $e, toDisplayString as O, watch as W, nextTick as se, onMounted as ve, onBeforeUnmount as on, Teleport as Jn, Transition as ot, withCtx as D, normalizeStyle as H, createTextVNode as x, mergeProps as fe, createSlots as Ee, getCurrentInstance as Gn, resolveDirective as Ze, withDirectives as ie, vShow as ge, Suspense as _n, resolveDynamicComponent as Dt, toHandlers as xn, normalizeProps as he, guardReactiveProps as je, withModifiers as te, withKeys as Tt, createApp as Kn, onUnmounted as Xn, h as el, reactive as be, isRef as xt } from "vue";
2
2
  import { QIcon as le, copyToClipboard as tl, QBtn as Me, QCardActions as nl, QCardSection as ze, QCard as we, QPopupProxy as Ae, ClosePopup as at, QInnerLoading as an, QDialog as rn, QInput as We, QItemSection as it, QItem as rt, QSpinner as ll, QSelect as Fe, QList as st, QMenu as Lt, QTooltip as ol, QTree as al, QField as Se, QItemLabel as il, QBtnDropdown as rl, QDate as sn, date as G, QOptionGroup as sl, QPagination as un, QTd as ul, QTh as cl, QTable as dl, useDialogPluginComponent as Kt, setCssVar as Ye } from "quasar";
3
3
  import { _ as B } from "./charts-fA1hE3y8.js";
4
4
  import { i as Ug, a as Bg, b as Zg, c as Wg, d as Fg, e as Hg } from "./charts-fA1hE3y8.js";
@@ -751,13 +751,12 @@ const Ge = /* @__PURE__ */ B(Ll, [["render", Ol], ["__scopeId", "data-v-e0ad42a1
751
751
  (S = l.value) == null || S.hide();
752
752
  }
753
753
  }, s = w(!1), d = (M) => {
754
- var S, h;
755
- if (r.value = M, e.autoDetect && M) {
756
- const f = M, k = ((S = f.$props) == null ? void 0 : S.rules) || // Vue 3 组件实例的 props
757
- ((h = f.$attrs) == null ? void 0 : h.rules) || // attrs 传递的 rules
758
- f.rules;
759
- Array.isArray(k) && k.length > 0 ? s.value = !0 : s.value = !1;
760
- }
754
+ const S = r.value === null;
755
+ r.value = M, S && e.autoDetect && M && se(() => {
756
+ var k, z;
757
+ const h = M, f = ((k = h.$props) == null ? void 0 : k.rules) || ((z = h.$attrs) == null ? void 0 : z.rules) || h.rules;
758
+ s.value = Array.isArray(f) && f.length > 0;
759
+ });
761
760
  }, g = () => {
762
761
  var M;
763
762
  t("update:modelValue", o.value), t("saved", o.value), (M = l.value) == null || M.hide();
@@ -845,7 +844,7 @@ function Pl(e, t, n, l, o, r) {
845
844
  }, 8, ["code"])
846
845
  ]);
847
846
  }
848
- const ug = /* @__PURE__ */ B($l, [["render", Pl], ["__scopeId", "data-v-7edabc92"]]), Yl = U({
847
+ const ug = /* @__PURE__ */ B($l, [["render", Pl], ["__scopeId", "data-v-3d1377c9"]]), Yl = U({
849
848
  name: "JCFallback",
850
849
  props: {
851
850
  /**
@@ -1484,7 +1483,7 @@ function uo(e, t, n, l, o, r) {
1484
1483
  style: H(e.computedDialogWidth)
1485
1484
  }, {
1486
1485
  default: D(() => [
1487
- re(N("div", ao, [
1486
+ ie(N("div", ao, [
1488
1487
  j(a, {
1489
1488
  showing: e.getDataLoading,
1490
1489
  label: e.t("messages.loading"),
@@ -1506,7 +1505,7 @@ function uo(e, t, n, l, o, r) {
1506
1505
  ], !0)
1507
1506
  ]),
1508
1507
  N("div", ro, [
1509
- re(j(i, {
1508
+ ie(j(i, {
1510
1509
  name: "app:dialog-close",
1511
1510
  class: "dialog-close",
1512
1511
  size: "16px"
@@ -1930,7 +1929,7 @@ function Mo(e, t, n, l, o, r) {
1930
1929
  })
1931
1930
  ]),
1932
1931
  default: D(() => [
1933
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
1932
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
1934
1933
  [ge, !e.filterable && !e.label && (e.innerValue === null || e.innerValue === "" || e.innerValue === void 0 || Array.isArray(e.innerValue) && e.innerValue.length === 0)]
1935
1934
  ])
1936
1935
  ]),
@@ -2198,13 +2197,13 @@ const No = {
2198
2197
  function jo(e) {
2199
2198
  return qt(e || dn);
2200
2199
  }
2201
- let ie = {};
2200
+ let re = {};
2202
2201
  const Rt = {
2203
2202
  /**
2204
2203
  * 配置 DialogProvider 选项
2205
2204
  */
2206
2205
  configure(e) {
2207
- ie = e;
2206
+ re = e;
2208
2207
  },
2209
2208
  async register(e) {
2210
2209
  var z;
@@ -2255,7 +2254,7 @@ const Rt = {
2255
2254
  componentOn: {}
2256
2255
  // 提供空对象避免 v-on 警告
2257
2256
  } : { ...e, dialogId: t }, u = Kn(co, i);
2258
- ie.router && u.use(ie.router), ie.store && u.use(ie.store), ie.i18n && u.use(ie.i18n), ie.plugins && ie.plugins.forEach((b) => u.use(b));
2257
+ re.router && u.use(re.router), re.store && u.use(re.store), re.i18n && u.use(re.i18n), re.plugins && re.plugins.forEach((b) => u.use(b));
2259
2258
  const { Quasar: c, Notify: s, Dialog: d, Loading: g } = await import("quasar");
2260
2259
  u.use(c, {
2261
2260
  plugins: {
@@ -2275,11 +2274,11 @@ const Rt = {
2275
2274
  } catch (b) {
2276
2275
  console.error(`[rtcpt] Failed to load Quasar locale for ${S}:`, b);
2277
2276
  }
2278
- if (ie.iconMapFn) {
2277
+ if (re.iconMapFn) {
2279
2278
  const b = u.config.globalProperties.$q;
2280
- b.iconMapFn = jn(b.iconMapFn, ie.iconMapFn);
2279
+ b.iconMapFn = jn(b.iconMapFn, re.iconMapFn);
2281
2280
  }
2282
- console.log("globalOptions", ie), ie.pagePermissionIds && u.provide(Je, ie.pagePermissionIds), ie.pageActionPermissionIds && u.provide(He, ie.pageActionPermissionIds);
2281
+ re.pagePermissionIds && u.provide(Je, re.pagePermissionIds), re.pageActionPermissionIds && u.provide(He, re.pageActionPermissionIds);
2283
2282
  const f = document.createElement("div");
2284
2283
  document.body.appendChild(f);
2285
2284
  const k = u.mount(f);
@@ -2785,7 +2784,7 @@ function Jo(e, t, n, l, o, r) {
2785
2784
  "default-content": M.defaultContent ?? "-"
2786
2785
  }, {
2787
2786
  default: D(() => [
2788
- e.shouldShowAction(M) ? re((p(), V(u, {
2787
+ e.shouldShowAction(M) ? ie((p(), V(u, {
2789
2788
  key: 0,
2790
2789
  clickable: M.clickable ?? !0,
2791
2790
  disable: e.isActionDisabled(M),
@@ -2873,7 +2872,7 @@ const pg = /* @__PURE__ */ B(Zo, [["render", Jo], ["__scopeId", "data-v-51a82f6e
2873
2872
  });
2874
2873
  function _o(e, t, n, l, o, r) {
2875
2874
  const a = A("q-item-section"), i = A("q-icon"), u = A("nested-menu-item", !0), c = A("q-list"), s = A("q-menu"), d = A("q-item"), g = Ze("close-popup");
2876
- return re((p(), V(d, {
2875
+ return ie((p(), V(d, {
2877
2876
  clickable: "",
2878
2877
  onClick: e.handleClick,
2879
2878
  "have-children-arrow": !!(e.option.children && e.option.children.length > 0)
@@ -3438,7 +3437,7 @@ const pa = U({
3438
3437
  });
3439
3438
  function ma(e, t, n, l, o, r) {
3440
3439
  const a = A("q-tooltip"), i = Ze("j-q-tooltip");
3441
- return re((p(), v("div", {
3440
+ return ie((p(), v("div", {
3442
3441
  class: q(["block", e.ellipsisClass]),
3443
3442
  style: H(e.computedStyle)
3444
3443
  }, [
@@ -3926,7 +3925,7 @@ function $a(e, t, n, l, o, r) {
3926
3925
  ];
3927
3926
  }),
3928
3927
  default: D(() => [
3929
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
3928
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
3930
3929
  [ge, !e.label && (e.computedValue === null || e.computedValue === void 0 || Array.isArray(e.computedValue) && e.computedValue.length === 0)]
3931
3930
  ]),
3932
3931
  j(c, {
@@ -4091,7 +4090,7 @@ function qa(e, t, n, l, o, r) {
4091
4090
  outlined: "",
4092
4091
  ref: "inputRef"
4093
4092
  }), null, 16, ["class", "label", "model-value", "onUpdate:modelValue", "onFocus", "onBlur", "onClear"]),
4094
- re(N("div", Pa, [
4093
+ ie(N("div", Pa, [
4095
4094
  N("ul", null, [
4096
4095
  (p(!0), v(_, null, X(e.historyParams.filterList, (c) => (p(), v("li", {
4097
4096
  key: c.id
@@ -4289,7 +4288,7 @@ function Ba(e, t, n, l, o, r) {
4289
4288
  Y(e.$slots, "default", {}, () => [
4290
4289
  j(s, null, {
4291
4290
  default: D(() => [
4292
- (p(!0), v(_, null, X(e.filteredItems, (M, S) => re((p(), V(c, {
4291
+ (p(!0), v(_, null, X(e.filteredItems, (M, S) => ie((p(), V(c, {
4293
4292
  key: S,
4294
4293
  clickable: "",
4295
4294
  disable: M.disabled,
@@ -4582,7 +4581,7 @@ function Ka(e, t, n, l, o, r) {
4582
4581
  }, null, 8, ["onClick"])) : Q("", !0)
4583
4582
  ]),
4584
4583
  default: D(() => [
4585
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
4584
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
4586
4585
  [ge, !e.computedValueDisplay && !e.label]
4587
4586
  ]),
4588
4587
  j(i, {
@@ -4875,7 +4874,7 @@ function hi(e, t, n, l, o, r) {
4875
4874
  }, null, 8, ["onClick"])) : Q("", !0)
4876
4875
  ]),
4877
4876
  default: D(() => [
4878
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
4877
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
4879
4878
  [ge, !e.computedValueDisplay && !e.label]
4880
4879
  ]),
4881
4880
  j(s, {
@@ -5569,7 +5568,7 @@ function Bi(e, t, n, l, o, r) {
5569
5568
  })) : Q("", !0)
5570
5569
  ]),
5571
5570
  default: D(() => [
5572
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
5571
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
5573
5572
  [ge, !e.computedValueDisplay && !e.label]
5574
5573
  ]),
5575
5574
  j(u, {
@@ -5682,7 +5681,7 @@ function Hi(e, t, n, l, o, r) {
5682
5681
  })) : Q("", !0)
5683
5682
  ]),
5684
5683
  default: D(() => [
5685
- re(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
5684
+ ie(N("div", { class: "float-placeholder" }, O(e.t("messages.pleaseSelect")), 513), [
5686
5685
  [ge, !e.computedValueDisplay && !e.label]
5687
5686
  ]),
5688
5687
  j(u, {
@@ -5763,7 +5762,7 @@ const vg = /* @__PURE__ */ B(Wi, [["render", Hi]]), At = {
5763
5762
  function Ut() {
5764
5763
  var t;
5765
5764
  const e = ((t = document.querySelector('meta[name="host"]')) == null ? void 0 : t.getAttribute("content")) || "";
5766
- return ["auto.redteamobile.com", "iot.redteaready.com", "eim-eu.esim.plus"].includes(e) ? At.iot : ["sunmi.redteaready.com"].includes(e) ? At.sunmi : At.simlessly;
5765
+ return ["auto.redteamobile.com", "iot.redteaready.com", "eim-eu.esim.plus"].includes(e) ? At.iot : ["sunmi.redteaready.com", "esim.sunmi.com"].includes(e) ? At.sunmi : At.simlessly;
5767
5766
  }
5768
5767
  function Ji() {
5769
5768
  const e = Ut();
@@ -6319,7 +6318,7 @@ function Or(e, t, n, l, o, r) {
6319
6318
  "hide-bottom-space": ""
6320
6319
  }, {
6321
6320
  prepend: D(() => [
6322
- re(N("div", {
6321
+ ie(N("div", {
6323
6322
  class: q(["file-action", { "file-action--dragging": e.isDragging }]),
6324
6323
  onDragenter: t[0] || (t[0] = te((...c) => e.dragenter && e.dragenter(...c), ["prevent"])),
6325
6324
  onDragover: t[1] || (t[1] = te((...c) => e.dragover && e.dragover(...c), ["prevent"])),
@@ -6339,7 +6338,7 @@ function Or(e, t, n, l, o, r) {
6339
6338
  ], 34), [
6340
6339
  [ge, e.computedValue.length !== Number(e.maxlength)]
6341
6340
  ]),
6342
- re(N("ul", zr, [
6341
+ ie(N("ul", zr, [
6343
6342
  (p(!0), v(_, null, X(e.computedValue, (c, s) => (p(), v("li", {
6344
6343
  key: s,
6345
6344
  class: "filer-item"
@@ -6366,7 +6365,7 @@ function Or(e, t, n, l, o, r) {
6366
6365
  ])
6367
6366
  ]),
6368
6367
  default: D(() => [
6369
- re(N("input", {
6368
+ ie(N("input", {
6370
6369
  ref: "fileInputRef",
6371
6370
  accept: e.accept,
6372
6371
  multiple: !e.computedMaxlength || 1 < e.computedMaxlength - e.computedValue.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtcpts",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "A Vue 3 component library built with Vite and TypeScript, featuring components integrated with Quasar.",
5
5
  "main": "dist/rtcpt.umd.js",
6
6
  "module": "dist/rtcpt.es.js",