@qikdev/vue-ui 0.2.331 → 0.2.333
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/lib.es.js +43 -41
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +463 -461
- package/dist/lib.umd.js.map +1 -1
- package/dist/vue-ui.css +25 -25
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
resolveDirective as Vf,
|
|
50
50
|
} from "vue";
|
|
51
51
|
import { EventDispatcher as vd } from "@qikdev/sdk";
|
|
52
|
-
const Cf = "0.2.
|
|
52
|
+
const Cf = "0.2.333";
|
|
53
53
|
class Gt extends Error {}
|
|
54
54
|
class Df extends Gt {
|
|
55
55
|
constructor(t) {
|
|
@@ -5461,6 +5461,7 @@ ue.readableTime = function (e) {
|
|
|
5461
5461
|
})
|
|
5462
5462
|
.toFormat("h:mma")
|
|
5463
5463
|
.toLowerCase()
|
|
5464
|
+
.replace(/:00/g, "")
|
|
5464
5465
|
);
|
|
5465
5466
|
};
|
|
5466
5467
|
ue.timeago = function (e, t) {
|
|
@@ -5502,9 +5503,12 @@ ue.getMiddleDate = function (e, t) {
|
|
|
5502
5503
|
return new Date(s);
|
|
5503
5504
|
};
|
|
5504
5505
|
ue.shortTime = function (e) {
|
|
5505
|
-
return
|
|
5506
|
-
|
|
5507
|
-
|
|
5506
|
+
return (
|
|
5507
|
+
e.toJSDate || (e = V.fromJSDate(new Date(e))),
|
|
5508
|
+
e.toFormat("mm") === "00"
|
|
5509
|
+
? e.toFormat("ha").toLowerCase()
|
|
5510
|
+
: e.toFormat("h:mma").toLowerCase()
|
|
5511
|
+
);
|
|
5508
5512
|
};
|
|
5509
5513
|
ue.readableEventDate = function ({ startDate: e, endDate: t, timezone: n }, i) {
|
|
5510
5514
|
if (!e) return "";
|
|
@@ -6455,7 +6459,7 @@ const jn = /* @__PURE__ */ $t(Ap),
|
|
|
6455
6459
|
);
|
|
6456
6460
|
},
|
|
6457
6461
|
},
|
|
6458
|
-
Up = /* @__PURE__ */ C(Np, [["__scopeId", "data-v-
|
|
6462
|
+
Up = /* @__PURE__ */ C(Np, [["__scopeId", "data-v-781fc138"]]),
|
|
6459
6463
|
Rp = {
|
|
6460
6464
|
emits: ["mount", "unmount"],
|
|
6461
6465
|
name: "tab",
|
|
@@ -41310,61 +41314,59 @@ const vD = {
|
|
|
41310
41314
|
this.ensureMeta(e), this.manager.toggle(e);
|
|
41311
41315
|
},
|
|
41312
41316
|
async load(e) {
|
|
41313
|
-
var
|
|
41317
|
+
var u, d, h, p;
|
|
41314
41318
|
var t = this;
|
|
41315
41319
|
(t.loading = !0), Ae && (Ae.cancel(), (Ae = null));
|
|
41316
41320
|
var n = Object.assign({}, t.loadCriteria);
|
|
41317
41321
|
if (
|
|
41318
|
-
((n.includeAll = e),
|
|
41319
|
-
t.trash && (n.trash = !0),
|
|
41320
|
-
t.dateFilterEnabled && !n.search)
|
|
41322
|
+
((n.includeAll = e), t.trash && (n.trash = !0), t.dateFilterEnabled)
|
|
41321
41323
|
) {
|
|
41322
|
-
let
|
|
41323
|
-
(
|
|
41324
|
+
let g =
|
|
41325
|
+
(d = (u = t.dateRangeFilter) == null ? void 0 : u.dateRange) ==
|
|
41324
41326
|
null
|
|
41325
41327
|
? void 0
|
|
41326
|
-
:
|
|
41327
|
-
|
|
41328
|
-
(
|
|
41328
|
+
: d.startDate,
|
|
41329
|
+
_ =
|
|
41330
|
+
(p = (h = t.dateRangeFilter) == null ? void 0 : h.dateRange) ==
|
|
41329
41331
|
null
|
|
41330
41332
|
? void 0
|
|
41331
|
-
:
|
|
41332
|
-
const
|
|
41333
|
-
|
|
41333
|
+
: p.endDate;
|
|
41334
|
+
const x = g && !isNaN(new Date(g).getTime()),
|
|
41335
|
+
S = _ && !isNaN(new Date(_).getTime());
|
|
41334
41336
|
if (
|
|
41335
|
-
(
|
|
41336
|
-
|
|
41337
|
-
|
|
41337
|
+
(x || (g = /* @__PURE__ */ new Date()),
|
|
41338
|
+
S || (_ = /* @__PURE__ */ new Date()),
|
|
41339
|
+
g || _)
|
|
41338
41340
|
) {
|
|
41339
|
-
let
|
|
41340
|
-
|
|
41341
|
-
? ((
|
|
41342
|
-
|
|
41343
|
-
(
|
|
41344
|
-
|
|
41345
|
-
: ((
|
|
41341
|
+
let D = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
41342
|
+
g.toISOString() == _.toISOString()
|
|
41343
|
+
? ((g = new Date(g)),
|
|
41344
|
+
g.setHours(0, 0, 0, 0),
|
|
41345
|
+
(_ = new Date(g)),
|
|
41346
|
+
_.setHours(23, 59, 59, 999))
|
|
41347
|
+
: ((_ = new Date(_)), _.setHours(23, 59, 59, 999)),
|
|
41346
41348
|
(n.date = {
|
|
41347
|
-
startDate:
|
|
41348
|
-
endDate:
|
|
41349
|
-
timezone:
|
|
41349
|
+
startDate: g,
|
|
41350
|
+
endDate: _,
|
|
41351
|
+
timezone: D,
|
|
41350
41352
|
});
|
|
41351
41353
|
}
|
|
41352
41354
|
}
|
|
41353
|
-
const
|
|
41354
|
-
{ promise:
|
|
41355
|
+
const s = Math.random(),
|
|
41356
|
+
{ promise: r, cancel: l } = await t.$sdk.content.list(t.type, n, {
|
|
41355
41357
|
remoteURL: t.actualOptions.remoteURL,
|
|
41356
41358
|
cancellable: !0,
|
|
41357
41359
|
});
|
|
41358
|
-
(Ae = { id:
|
|
41359
|
-
|
|
41360
|
-
(Ae == null ? void 0 : Ae.id) ===
|
|
41360
|
+
(Ae = { id: s, cancel: l }),
|
|
41361
|
+
r.then(function (g) {
|
|
41362
|
+
(Ae == null ? void 0 : Ae.id) === s &&
|
|
41361
41363
|
((Ae = null), (t.loading = !1), t.loadKey++);
|
|
41362
41364
|
}),
|
|
41363
|
-
|
|
41364
|
-
(Ae == null ? void 0 : Ae.id) ===
|
|
41365
|
+
r.catch(function (g) {
|
|
41366
|
+
(Ae == null ? void 0 : Ae.id) === s && (Ae = null);
|
|
41365
41367
|
});
|
|
41366
|
-
const { data:
|
|
41367
|
-
if (
|
|
41368
|
+
const { data: a } = await r;
|
|
41369
|
+
if (a) return a.items.forEach(t.ensureMeta), a;
|
|
41368
41370
|
},
|
|
41369
41371
|
},
|
|
41370
41372
|
data() {
|
|
@@ -41403,7 +41405,7 @@ const vD = {
|
|
|
41403
41405
|
};
|
|
41404
41406
|
},
|
|
41405
41407
|
},
|
|
41406
|
-
Ql = (e) => (Ze("data-v-
|
|
41408
|
+
Ql = (e) => (Ze("data-v-81d5376b"), (e = e()), Xe(), e),
|
|
41407
41409
|
_D = /* @__PURE__ */ Ql(() =>
|
|
41408
41410
|
/* @__PURE__ */ w("strong", null, "Select Columns", -1),
|
|
41409
41411
|
),
|
|
@@ -42035,7 +42037,7 @@ function TD(e, t, n, i, s, r) {
|
|
|
42035
42037
|
}
|
|
42036
42038
|
const OD = /* @__PURE__ */ C(vD, [
|
|
42037
42039
|
["render", TD],
|
|
42038
|
-
["__scopeId", "data-v-
|
|
42040
|
+
["__scopeId", "data-v-81d5376b"],
|
|
42039
42041
|
]),
|
|
42040
42042
|
VD = {
|
|
42041
42043
|
props: {
|