ik-next-form 0.0.5 → 0.0.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.
- package/dist/designer.es.js +3 -136
- package/dist/designer.umd.js +101 -101
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -28,6 +28,7 @@ import { IkSvgIcon, IkRadioGroup, IkIconPicker, IkPreviewFile, IkCurrencyInput,
|
|
|
28
28
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|
29
29
|
import { CirclePlus, Remove as Remove$1, Platform, Search, Edit, Minus, Plus, InfoFilled, Delete, ArrowDown, ArrowUp, Bottom, Top, Back, Right, BottomLeft, TopRight, CaretLeft, CaretRight } from "@element-plus/icons-vue";
|
|
30
30
|
import { ElMessage, ElMessageBox, ElInput } from "element-plus";
|
|
31
|
+
import duration from "dayjs/plugin/duration";
|
|
31
32
|
function _mergeNamespaces(n2, m2) {
|
|
32
33
|
m2.forEach(function(e3) {
|
|
33
34
|
e3 && typeof e3 !== "string" && !Array.isArray(e3) && Object.keys(e3).forEach(function(k2) {
|
|
@@ -54491,140 +54492,6 @@ var emitter = {
|
|
|
54491
54492
|
}
|
|
54492
54493
|
}
|
|
54493
54494
|
};
|
|
54494
|
-
var duration$1 = { exports: {} };
|
|
54495
|
-
(function(module2, exports2) {
|
|
54496
|
-
!function(t2, s) {
|
|
54497
|
-
module2.exports = s();
|
|
54498
|
-
}(commonjsGlobal, function() {
|
|
54499
|
-
var t2, s, n2 = 1e3, i2 = 6e4, e3 = 36e5, r2 = 864e5, o2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u2 = 31536e6, d2 = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h2 = { years: u2, months: d2, days: r2, hours: e3, minutes: i2, seconds: n2, milliseconds: 1, weeks: 6048e5 }, c = function(t3) {
|
|
54500
|
-
return t3 instanceof g2;
|
|
54501
|
-
}, f2 = function(t3, s2, n3) {
|
|
54502
|
-
return new g2(t3, n3, s2.$l);
|
|
54503
|
-
}, m2 = function(t3) {
|
|
54504
|
-
return s.p(t3) + "s";
|
|
54505
|
-
}, l2 = function(t3) {
|
|
54506
|
-
return t3 < 0;
|
|
54507
|
-
}, $2 = function(t3) {
|
|
54508
|
-
return l2(t3) ? Math.ceil(t3) : Math.floor(t3);
|
|
54509
|
-
}, y = function(t3) {
|
|
54510
|
-
return Math.abs(t3);
|
|
54511
|
-
}, v = function(t3, s2) {
|
|
54512
|
-
return t3 ? l2(t3) ? { negative: true, format: "" + y(t3) + s2 } : { negative: false, format: "" + t3 + s2 } : { negative: false, format: "" };
|
|
54513
|
-
}, g2 = function() {
|
|
54514
|
-
function l3(t3, s2, n3) {
|
|
54515
|
-
var i3 = this;
|
|
54516
|
-
if (this.$d = {}, this.$l = n3, t3 === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), s2)
|
|
54517
|
-
return f2(t3 * h2[m2(s2)], this);
|
|
54518
|
-
if (typeof t3 == "number")
|
|
54519
|
-
return this.$ms = t3, this.parseFromMilliseconds(), this;
|
|
54520
|
-
if (typeof t3 == "object")
|
|
54521
|
-
return Object.keys(t3).forEach(function(s3) {
|
|
54522
|
-
i3.$d[m2(s3)] = t3[s3];
|
|
54523
|
-
}), this.calMilliseconds(), this;
|
|
54524
|
-
if (typeof t3 == "string") {
|
|
54525
|
-
var e4 = t3.match(a);
|
|
54526
|
-
if (e4) {
|
|
54527
|
-
var r3 = e4.slice(2).map(function(t4) {
|
|
54528
|
-
return t4 != null ? Number(t4) : 0;
|
|
54529
|
-
});
|
|
54530
|
-
return this.$d.years = r3[0], this.$d.months = r3[1], this.$d.weeks = r3[2], this.$d.days = r3[3], this.$d.hours = r3[4], this.$d.minutes = r3[5], this.$d.seconds = r3[6], this.calMilliseconds(), this;
|
|
54531
|
-
}
|
|
54532
|
-
}
|
|
54533
|
-
return this;
|
|
54534
|
-
}
|
|
54535
|
-
var y2 = l3.prototype;
|
|
54536
|
-
return y2.calMilliseconds = function() {
|
|
54537
|
-
var t3 = this;
|
|
54538
|
-
this.$ms = Object.keys(this.$d).reduce(function(s2, n3) {
|
|
54539
|
-
return s2 + (t3.$d[n3] || 0) * h2[n3];
|
|
54540
|
-
}, 0);
|
|
54541
|
-
}, y2.parseFromMilliseconds = function() {
|
|
54542
|
-
var t3 = this.$ms;
|
|
54543
|
-
this.$d.years = $2(t3 / u2), t3 %= u2, this.$d.months = $2(t3 / d2), t3 %= d2, this.$d.days = $2(t3 / r2), t3 %= r2, this.$d.hours = $2(t3 / e3), t3 %= e3, this.$d.minutes = $2(t3 / i2), t3 %= i2, this.$d.seconds = $2(t3 / n2), t3 %= n2, this.$d.milliseconds = t3;
|
|
54544
|
-
}, y2.toISOString = function() {
|
|
54545
|
-
var t3 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n3 = +this.$d.days || 0;
|
|
54546
|
-
this.$d.weeks && (n3 += 7 * this.$d.weeks);
|
|
54547
|
-
var i3 = v(n3, "D"), e4 = v(this.$d.hours, "H"), r3 = v(this.$d.minutes, "M"), o3 = this.$d.seconds || 0;
|
|
54548
|
-
this.$d.milliseconds && (o3 += this.$d.milliseconds / 1e3, o3 = Math.round(1e3 * o3) / 1e3);
|
|
54549
|
-
var u3 = v(o3, "S"), d3 = t3.negative || s2.negative || i3.negative || e4.negative || r3.negative || u3.negative, a2 = e4.format || r3.format || u3.format ? "T" : "", h3 = (d3 ? "-" : "") + "P" + t3.format + s2.format + i3.format + a2 + e4.format + r3.format + u3.format;
|
|
54550
|
-
return h3 === "P" || h3 === "-P" ? "P0D" : h3;
|
|
54551
|
-
}, y2.toJSON = function() {
|
|
54552
|
-
return this.toISOString();
|
|
54553
|
-
}, y2.format = function(t3) {
|
|
54554
|
-
var n3 = t3 || "YYYY-MM-DDTHH:mm:ss", i3 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
|
|
54555
|
-
return n3.replace(o2, function(t4, s2) {
|
|
54556
|
-
return s2 || String(i3[t4]);
|
|
54557
|
-
});
|
|
54558
|
-
}, y2.as = function(t3) {
|
|
54559
|
-
return this.$ms / h2[m2(t3)];
|
|
54560
|
-
}, y2.get = function(t3) {
|
|
54561
|
-
var s2 = this.$ms, n3 = m2(t3);
|
|
54562
|
-
return n3 === "milliseconds" ? s2 %= 1e3 : s2 = n3 === "weeks" ? $2(s2 / h2[n3]) : this.$d[n3], s2 || 0;
|
|
54563
|
-
}, y2.add = function(t3, s2, n3) {
|
|
54564
|
-
var i3;
|
|
54565
|
-
return i3 = s2 ? t3 * h2[m2(s2)] : c(t3) ? t3.$ms : f2(t3, this).$ms, f2(this.$ms + i3 * (n3 ? -1 : 1), this);
|
|
54566
|
-
}, y2.subtract = function(t3, s2) {
|
|
54567
|
-
return this.add(t3, s2, true);
|
|
54568
|
-
}, y2.locale = function(t3) {
|
|
54569
|
-
var s2 = this.clone();
|
|
54570
|
-
return s2.$l = t3, s2;
|
|
54571
|
-
}, y2.clone = function() {
|
|
54572
|
-
return f2(this.$ms, this);
|
|
54573
|
-
}, y2.humanize = function(s2) {
|
|
54574
|
-
return t2().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
|
|
54575
|
-
}, y2.valueOf = function() {
|
|
54576
|
-
return this.asMilliseconds();
|
|
54577
|
-
}, y2.milliseconds = function() {
|
|
54578
|
-
return this.get("milliseconds");
|
|
54579
|
-
}, y2.asMilliseconds = function() {
|
|
54580
|
-
return this.as("milliseconds");
|
|
54581
|
-
}, y2.seconds = function() {
|
|
54582
|
-
return this.get("seconds");
|
|
54583
|
-
}, y2.asSeconds = function() {
|
|
54584
|
-
return this.as("seconds");
|
|
54585
|
-
}, y2.minutes = function() {
|
|
54586
|
-
return this.get("minutes");
|
|
54587
|
-
}, y2.asMinutes = function() {
|
|
54588
|
-
return this.as("minutes");
|
|
54589
|
-
}, y2.hours = function() {
|
|
54590
|
-
return this.get("hours");
|
|
54591
|
-
}, y2.asHours = function() {
|
|
54592
|
-
return this.as("hours");
|
|
54593
|
-
}, y2.days = function() {
|
|
54594
|
-
return this.get("days");
|
|
54595
|
-
}, y2.asDays = function() {
|
|
54596
|
-
return this.as("days");
|
|
54597
|
-
}, y2.weeks = function() {
|
|
54598
|
-
return this.get("weeks");
|
|
54599
|
-
}, y2.asWeeks = function() {
|
|
54600
|
-
return this.as("weeks");
|
|
54601
|
-
}, y2.months = function() {
|
|
54602
|
-
return this.get("months");
|
|
54603
|
-
}, y2.asMonths = function() {
|
|
54604
|
-
return this.as("months");
|
|
54605
|
-
}, y2.years = function() {
|
|
54606
|
-
return this.get("years");
|
|
54607
|
-
}, y2.asYears = function() {
|
|
54608
|
-
return this.as("years");
|
|
54609
|
-
}, l3;
|
|
54610
|
-
}(), p2 = function(t3, s2, n3) {
|
|
54611
|
-
return t3.add(s2.years() * n3, "y").add(s2.months() * n3, "M").add(s2.days() * n3, "d").add(s2.hours() * n3, "h").add(s2.minutes() * n3, "m").add(s2.seconds() * n3, "s").add(s2.milliseconds() * n3, "ms");
|
|
54612
|
-
};
|
|
54613
|
-
return function(n3, i3, e4) {
|
|
54614
|
-
t2 = e4, s = e4().$utils(), e4.duration = function(t3, s2) {
|
|
54615
|
-
var n4 = e4.locale();
|
|
54616
|
-
return f2(t3, { $l: n4 }, s2);
|
|
54617
|
-
}, e4.isDuration = c;
|
|
54618
|
-
var r3 = i3.prototype.add, o3 = i3.prototype.subtract;
|
|
54619
|
-
i3.prototype.add = function(t3, s2) {
|
|
54620
|
-
return c(t3) ? p2(this, t3, 1) : r3.bind(this)(t3, s2);
|
|
54621
|
-
}, i3.prototype.subtract = function(t3, s2) {
|
|
54622
|
-
return c(t3) ? p2(this, t3, -1) : o3.bind(this)(t3, s2);
|
|
54623
|
-
};
|
|
54624
|
-
};
|
|
54625
|
-
});
|
|
54626
|
-
})(duration$1);
|
|
54627
|
-
var duration = duration$1.exports;
|
|
54628
54495
|
var wrapperMixin = {
|
|
54629
54496
|
inject: ["previewLayout", "getFormConfig"],
|
|
54630
54497
|
computed: {
|
|
@@ -108471,13 +108338,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
108471
108338
|
if (typeof window !== "undefined") {
|
|
108472
108339
|
let loadSvg = function() {
|
|
108473
108340
|
var body = document.body;
|
|
108474
|
-
var svgDom = document.getElementById("
|
|
108341
|
+
var svgDom = document.getElementById("__svg__icons__dom__1774519553787__");
|
|
108475
108342
|
if (!svgDom) {
|
|
108476
108343
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
108477
108344
|
svgDom.style.position = "absolute";
|
|
108478
108345
|
svgDom.style.width = "0";
|
|
108479
108346
|
svgDom.style.height = "0";
|
|
108480
|
-
svgDom.id = "
|
|
108347
|
+
svgDom.id = "__svg__icons__dom__1774519553787__";
|
|
108481
108348
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
108482
108349
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
108483
108350
|
}
|