@pdfme/ui 5.0.0 → 5.1.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.
- package/dist/index.es.js +143 -163
- package/dist/index.umd.js +8 -8
- package/dist/types/Form.d.ts +3 -0
- package/dist/types/class.d.ts +1 -1
- package/dist/types/contexts.d.ts +4 -1
- package/package.json +3 -2
- package/src/Form.tsx +31 -0
- package/src/class.ts +2 -2
- package/src/i18n.ts +50 -10
package/dist/index.es.js
CHANGED
@@ -9304,7 +9304,10 @@ z.object({
|
|
9304
9304
|
"schemas.table.tableStyle": z.string(),
|
9305
9305
|
"schemas.table.headStyle": z.string(),
|
9306
9306
|
"schemas.table.bodyStyle": z.string(),
|
9307
|
-
"schemas.table.columnStyle": z.string()
|
9307
|
+
"schemas.table.columnStyle": z.string(),
|
9308
|
+
"schemas.date.format": z.string(),
|
9309
|
+
"schemas.select.options": z.string(),
|
9310
|
+
"schemas.select.optionPlaceholder": z.string()
|
9308
9311
|
});
|
9309
9312
|
z.enum(["viewer", "form", "designer"]);
|
9310
9313
|
const ColorType = z.enum(["rgb", "cmyk"]).optional();
|
@@ -76123,7 +76126,7 @@ strings$2.utf8border = function(a, s) {
|
|
76123
76126
|
function ZStream$2() {
|
76124
76127
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
76125
76128
|
}
|
76126
|
-
var zstream = ZStream$2, zlib_deflate = deflate$3, utils$5 = common, strings$1 = strings$2, msg$1 = messages$1, ZStream$1 = zstream, toString$
|
76129
|
+
var zstream = ZStream$2, zlib_deflate = deflate$3, utils$5 = common, strings$1 = strings$2, msg$1 = messages$1, ZStream$1 = zstream, toString$5 = Object.prototype.toString, Z_NO_FLUSH = 0, Z_FINISH$1 = 4, Z_OK$1 = 0, Z_STREAM_END$1 = 1, Z_SYNC_FLUSH = 2, Z_DEFAULT_COMPRESSION = -1, Z_DEFAULT_STRATEGY = 0, Z_DEFLATED$1 = 8;
|
76127
76130
|
function Deflate(a) {
|
76128
76131
|
if (!(this instanceof Deflate))
|
76129
76132
|
return new Deflate(a);
|
@@ -76150,7 +76153,7 @@ function Deflate(a) {
|
|
76150
76153
|
throw new Error(msg$1[$]);
|
76151
76154
|
if (s.header && zlib_deflate.deflateSetHeader(this.strm, s.header), s.dictionary) {
|
76152
76155
|
var _;
|
76153
|
-
if (typeof s.dictionary == "string" ? _ = strings$1.string2buf(s.dictionary) : toString$
|
76156
|
+
if (typeof s.dictionary == "string" ? _ = strings$1.string2buf(s.dictionary) : toString$5.call(s.dictionary) === "[object ArrayBuffer]" ? _ = new Uint8Array(s.dictionary) : _ = s.dictionary, $ = zlib_deflate.deflateSetDictionary(this.strm, _), $ !== Z_OK$1)
|
76154
76157
|
throw new Error(msg$1[$]);
|
76155
76158
|
this._dict_set = !0;
|
76156
76159
|
}
|
@@ -76159,7 +76162,7 @@ Deflate.prototype.push = function(a, s) {
|
|
76159
76162
|
var $ = this.strm, _ = this.options.chunkSize, _e, tt;
|
76160
76163
|
if (this.ended)
|
76161
76164
|
return !1;
|
76162
|
-
tt = s === ~~s ? s : s === !0 ? Z_FINISH$1 : Z_NO_FLUSH, typeof a == "string" ? $.input = strings$1.string2buf(a) : toString$
|
76165
|
+
tt = s === ~~s ? s : s === !0 ? Z_FINISH$1 : Z_NO_FLUSH, typeof a == "string" ? $.input = strings$1.string2buf(a) : toString$5.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
|
76163
76166
|
do {
|
76164
76167
|
if ($.avail_out === 0 && ($.output = new utils$5.Buf8(_), $.next_out = 0, $.avail_out = _), _e = zlib_deflate.deflate($, tt), _e !== Z_STREAM_END$1 && _e !== Z_OK$1)
|
76165
76168
|
return this.onEnd(_e), this.ended = !0, !1;
|
@@ -77000,7 +77003,7 @@ var constants$1 = {
|
|
77000
77003
|
function GZheader$1() {
|
77001
77004
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
77002
77005
|
}
|
77003
|
-
var gzheader = GZheader$1, zlib_inflate = inflate$3, utils$2 = common, strings = strings$2, c$1 = constants$1, msg = messages$1, ZStream = zstream, GZheader = gzheader, toString$
|
77006
|
+
var gzheader = GZheader$1, zlib_inflate = inflate$3, utils$2 = common, strings = strings$2, c$1 = constants$1, msg = messages$1, ZStream = zstream, GZheader = gzheader, toString$4 = Object.prototype.toString;
|
77004
77007
|
function Inflate(a) {
|
77005
77008
|
if (!(this instanceof Inflate))
|
77006
77009
|
return new Inflate(a);
|
@@ -77017,14 +77020,14 @@ function Inflate(a) {
|
|
77017
77020
|
);
|
77018
77021
|
if ($ !== c$1.Z_OK)
|
77019
77022
|
throw new Error(msg[$]);
|
77020
|
-
if (this.header = new GZheader(), zlib_inflate.inflateGetHeader(this.strm, this.header), s.dictionary && (typeof s.dictionary == "string" ? s.dictionary = strings.string2buf(s.dictionary) : toString$
|
77023
|
+
if (this.header = new GZheader(), zlib_inflate.inflateGetHeader(this.strm, this.header), s.dictionary && (typeof s.dictionary == "string" ? s.dictionary = strings.string2buf(s.dictionary) : toString$4.call(s.dictionary) === "[object ArrayBuffer]" && (s.dictionary = new Uint8Array(s.dictionary)), s.raw && ($ = zlib_inflate.inflateSetDictionary(this.strm, s.dictionary), $ !== c$1.Z_OK)))
|
77021
77024
|
throw new Error(msg[$]);
|
77022
77025
|
}
|
77023
77026
|
Inflate.prototype.push = function(a, s) {
|
77024
77027
|
var $ = this.strm, _ = this.options.chunkSize, _e = this.options.dictionary, tt, nt, at, ot, rt, st = !1;
|
77025
77028
|
if (this.ended)
|
77026
77029
|
return !1;
|
77027
|
-
nt = s === ~~s ? s : s === !0 ? c$1.Z_FINISH : c$1.Z_NO_FLUSH, typeof a == "string" ? $.input = strings.binstring2buf(a) : toString$
|
77030
|
+
nt = s === ~~s ? s : s === !0 ? c$1.Z_FINISH : c$1.Z_NO_FLUSH, typeof a == "string" ? $.input = strings.binstring2buf(a) : toString$4.call(a) === "[object ArrayBuffer]" ? $.input = new Uint8Array(a) : $.input = a, $.next_in = 0, $.avail_in = $.input.length;
|
77028
77031
|
do {
|
77029
77032
|
if ($.avail_out === 0 && ($.output = new utils$2.Buf8(_), $.next_out = 0, $.avail_out = _), tt = zlib_inflate.inflate($, c$1.Z_NO_FLUSH), tt === c$1.Z_NEED_DICT && _e && (tt = zlib_inflate.inflateSetDictionary(this.strm, _e)), tt === c$1.Z_BUF_ERROR && st === !0 && (tt = c$1.Z_OK, st = !1), tt !== c$1.Z_STREAM_END && tt !== c$1.Z_OK)
|
77030
77033
|
return this.onEnd(tt), this.ended = !0, !1;
|
@@ -82545,7 +82548,7 @@ const UseDynamicFontSize = (a) => {
|
|
82545
82548
|
backgroundColor: "transparent",
|
82546
82549
|
textDecoration: ht.join(" ")
|
82547
82550
|
}, gt = document.createElement("div");
|
82548
|
-
return gt.id = "text-" + $.id, Object.assign(gt.style, dt), ut.appendChild(gt), gt;
|
82551
|
+
return gt.id = "text-" + String($.id), Object.assign(gt.style, dt), ut.appendChild(gt), gt;
|
82549
82552
|
}, makeElementPlainTextContentEditable = (a) => {
|
82550
82553
|
if (!isFirefox()) {
|
82551
82554
|
a.contentEditable = "plaintext-only";
|
@@ -135264,7 +135267,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135264
135267
|
"schemas.table.tableStyle": "Table Style",
|
135265
135268
|
"schemas.table.headStyle": "Header Style",
|
135266
135269
|
"schemas.table.bodyStyle": "Body Style",
|
135267
|
-
"schemas.table.columnStyle": "Column Style"
|
135270
|
+
"schemas.table.columnStyle": "Column Style",
|
135271
|
+
"schemas.date.format": "Date Format",
|
135272
|
+
"schemas.select.options": "Options",
|
135273
|
+
"schemas.select.optionPlaceholder": "Enter an option"
|
135268
135274
|
}, dictZh = {
|
135269
135275
|
cancel: "取消",
|
135270
135276
|
field: "字段",
|
@@ -135328,7 +135334,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135328
135334
|
"schemas.table.tableStyle": "表格样式",
|
135329
135335
|
"schemas.table.headStyle": "表头样式",
|
135330
135336
|
"schemas.table.bodyStyle": "表体样式",
|
135331
|
-
"schemas.table.columnStyle": "列样式"
|
135337
|
+
"schemas.table.columnStyle": "列样式",
|
135338
|
+
"schemas.date.format": "日期格式",
|
135339
|
+
"schemas.select.options": "选项",
|
135340
|
+
"schemas.select.optionPlaceholder": "请输入选项"
|
135332
135341
|
}, dictJa = {
|
135333
135342
|
cancel: "キャンセル",
|
135334
135343
|
field: "入力項目",
|
@@ -135392,7 +135401,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135392
135401
|
"schemas.table.tableStyle": "テーブルスタイル",
|
135393
135402
|
"schemas.table.headStyle": "ヘッダースタイル",
|
135394
135403
|
"schemas.table.bodyStyle": "ボディスタイル",
|
135395
|
-
"schemas.table.columnStyle": "カラムスタイル"
|
135404
|
+
"schemas.table.columnStyle": "カラムスタイル",
|
135405
|
+
"schemas.date.format": "日付形式",
|
135406
|
+
"schemas.select.options": "オプション",
|
135407
|
+
"schemas.select.optionPlaceholder": "オプションを入力してください"
|
135396
135408
|
}, dictKo = {
|
135397
135409
|
cancel: "취소",
|
135398
135410
|
field: "필드",
|
@@ -135456,7 +135468,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135456
135468
|
"schemas.table.tableStyle": "테이블 스타일",
|
135457
135469
|
"schemas.table.headStyle": "헤더 스타일",
|
135458
135470
|
"schemas.table.bodyStyle": "본문 스타일",
|
135459
|
-
"schemas.table.columnStyle": "열 스타일"
|
135471
|
+
"schemas.table.columnStyle": "열 스타일",
|
135472
|
+
"schemas.date.format": "날짜 형식",
|
135473
|
+
"schemas.select.options": "옵션",
|
135474
|
+
"schemas.select.optionPlaceholder": "옵션을 입력하세요"
|
135460
135475
|
}, dictAr = {
|
135461
135476
|
cancel: "إلغاء",
|
135462
135477
|
field: "الحقل",
|
@@ -135520,7 +135535,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135520
135535
|
"schemas.table.tableStyle": "أسلوب الجدول",
|
135521
135536
|
"schemas.table.headStyle": "أسلوب الرأس",
|
135522
135537
|
"schemas.table.bodyStyle": "أسلوب الجسم",
|
135523
|
-
"schemas.table.columnStyle": "أسلوب العمود"
|
135538
|
+
"schemas.table.columnStyle": "أسلوب العمود",
|
135539
|
+
"schemas.date.format": "تنسيق التاريخ",
|
135540
|
+
"schemas.select.options": "خيارات",
|
135541
|
+
"schemas.select.optionPlaceholder": "أدخل خيارًا"
|
135524
135542
|
}, dictTh = {
|
135525
135543
|
cancel: "ยกเลิก",
|
135526
135544
|
field: "ฟิลด์",
|
@@ -135584,7 +135602,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135584
135602
|
"schemas.table.tableStyle": "สไตล์ตาราง",
|
135585
135603
|
"schemas.table.headStyle": "สไตล์หัวข้อ",
|
135586
135604
|
"schemas.table.bodyStyle": "สไตล์เนื้อหา",
|
135587
|
-
"schemas.table.columnStyle": "สไตล์คอลัมน์"
|
135605
|
+
"schemas.table.columnStyle": "สไตล์คอลัมน์",
|
135606
|
+
"schemas.date.format": "รูปแบบวันที่",
|
135607
|
+
"schemas.select.options": "ตัวเลือก",
|
135608
|
+
"schemas.select.optionPlaceholder": "กรอกตัวเลือก"
|
135588
135609
|
}, dictIt = {
|
135589
135610
|
cancel: "Annulla",
|
135590
135611
|
field: "Campo",
|
@@ -135648,7 +135669,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135648
135669
|
"schemas.table.tableStyle": "Stile della Tabella",
|
135649
135670
|
"schemas.table.headStyle": "Stile dell'Intestazione",
|
135650
135671
|
"schemas.table.bodyStyle": "Stile del Corpo",
|
135651
|
-
"schemas.table.columnStyle": "Stile della Colonna"
|
135672
|
+
"schemas.table.columnStyle": "Stile della Colonna",
|
135673
|
+
"schemas.date.format": "Formato data",
|
135674
|
+
"schemas.select.options": "Opzioni",
|
135675
|
+
"schemas.select.optionPlaceholder": "Inserisci un'opzione"
|
135652
135676
|
}, dictPl = {
|
135653
135677
|
cancel: "Anuluj",
|
135654
135678
|
field: "pole",
|
@@ -135712,7 +135736,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135712
135736
|
"schemas.table.tableStyle": "Styl tabeli",
|
135713
135737
|
"schemas.table.headStyle": "Styl nagłówka",
|
135714
135738
|
"schemas.table.bodyStyle": "Styl ciała",
|
135715
|
-
"schemas.table.columnStyle": "Styl kolumny"
|
135739
|
+
"schemas.table.columnStyle": "Styl kolumny",
|
135740
|
+
"schemas.date.format": "Format daty",
|
135741
|
+
"schemas.select.options": "Opcje",
|
135742
|
+
"schemas.select.optionPlaceholder": "Wpisz opcję"
|
135716
135743
|
}, dictDe = {
|
135717
135744
|
cancel: "Abbrechen",
|
135718
135745
|
field: "Feld",
|
@@ -135776,7 +135803,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135776
135803
|
"schemas.table.tableStyle": "Tabellenstil",
|
135777
135804
|
"schemas.table.headStyle": "Kopfzeilenstil",
|
135778
135805
|
"schemas.table.bodyStyle": "Körperstil",
|
135779
|
-
"schemas.table.columnStyle": "Spaltenstil"
|
135806
|
+
"schemas.table.columnStyle": "Spaltenstil",
|
135807
|
+
"schemas.date.format": "Datumsformat",
|
135808
|
+
"schemas.select.options": "Optionen",
|
135809
|
+
"schemas.select.optionPlaceholder": "Geben Sie eine Option ein"
|
135780
135810
|
}, dictEs = {
|
135781
135811
|
cancel: "Cancelar",
|
135782
135812
|
field: "campo",
|
@@ -135840,7 +135870,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135840
135870
|
"schemas.table.tableStyle": "Estilo de tabla",
|
135841
135871
|
"schemas.table.headStyle": "Estilo de cabecera",
|
135842
135872
|
"schemas.table.bodyStyle": "Estilo de cuerpo",
|
135843
|
-
"schemas.table.columnStyle": "Estilo de columna"
|
135873
|
+
"schemas.table.columnStyle": "Estilo de columna",
|
135874
|
+
"schemas.date.format": "Formato de fecha",
|
135875
|
+
"schemas.select.options": "Opciones",
|
135876
|
+
"schemas.select.optionPlaceholder": "Ingrese una opción"
|
135844
135877
|
}, dictFr = {
|
135845
135878
|
cancel: "Annuler",
|
135846
135879
|
field: "Champ",
|
@@ -135904,7 +135937,10 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
|
|
135904
135937
|
"schemas.table.tableStyle": "Style de tableau",
|
135905
135938
|
"schemas.table.headStyle": "Style d'en-tête",
|
135906
135939
|
"schemas.table.bodyStyle": "Style de corps",
|
135907
|
-
"schemas.table.columnStyle": "Style de colonne"
|
135940
|
+
"schemas.table.columnStyle": "Style de colonne",
|
135941
|
+
"schemas.date.format": "Format de date",
|
135942
|
+
"schemas.select.options": "Options",
|
135943
|
+
"schemas.select.optionPlaceholder": "Entrez une option"
|
135908
135944
|
}, dictionaries = {
|
135909
135945
|
en: dictEn,
|
135910
135946
|
zh: dictZh,
|
@@ -137295,11 +137331,11 @@ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\
|
|
137295
137331
|
}), s;
|
137296
137332
|
});
|
137297
137333
|
const stringToPath$1 = stringToPath;
|
137298
|
-
function toString$
|
137334
|
+
function toString$3(a) {
|
137299
137335
|
return a == null ? "" : baseToString(a);
|
137300
137336
|
}
|
137301
137337
|
function castPath(a, s) {
|
137302
|
-
return isArray$5(a) ? a : isKey(a, s) ? [a] : stringToPath$1(toString$
|
137338
|
+
return isArray$5(a) ? a : isKey(a, s) ? [a] : stringToPath$1(toString$3(a));
|
137303
137339
|
}
|
137304
137340
|
var INFINITY = 1 / 0;
|
137305
137341
|
function toKey(a) {
|
@@ -137845,7 +137881,7 @@ var objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnPro
|
|
137845
137881
|
function baseHas(a, s) {
|
137846
137882
|
return a != null && hasOwnProperty$2.call(a, s);
|
137847
137883
|
}
|
137848
|
-
function has$
|
137884
|
+
function has$6(a, s) {
|
137849
137885
|
return a != null && hasPath(a, s, baseHas);
|
137850
137886
|
}
|
137851
137887
|
function parent(a, s) {
|
@@ -138095,7 +138131,7 @@ var FRContext = /* @__PURE__ */ reactExports.createContext(null), ConfigContext
|
|
138095
138131
|
validateTrigger: It,
|
138096
138132
|
antdVersion: yt
|
138097
138133
|
};
|
138098
|
-
}, _set = set, _get = get, _cloneDeep = cloneDeep, _has$1 = has$
|
138134
|
+
}, _set = set, _get = get, _cloneDeep = cloneDeep, _has$1 = has$6, _some = some$1, _isMatch = isMatch, isObject$6 = function a(s) {
|
138099
138135
|
var $ = Object.prototype.toString.call(s);
|
138100
138136
|
return $.indexOf("Object") > -1;
|
138101
138137
|
}, isArray$3 = function a(s) {
|
@@ -142414,25 +142450,17 @@ var _coreExports = _core.exports, _aFunction = function(a) {
|
|
142414
142450
|
if (!isObject$5(a))
|
142415
142451
|
throw TypeError(a + " is not an object!");
|
142416
142452
|
return a;
|
142417
|
-
}, _fails
|
142418
|
-
|
142419
|
-
|
142420
|
-
|
142421
|
-
|
142422
|
-
|
142423
|
-
|
142424
|
-
|
142425
|
-
|
142426
|
-
}
|
142427
|
-
|
142428
|
-
function require_descriptors() {
|
142429
|
-
return hasRequired_descriptors || (hasRequired_descriptors = 1, _descriptors = !require_fails()(function() {
|
142430
|
-
return Object.defineProperty({}, "a", { get: function() {
|
142431
|
-
return 7;
|
142432
|
-
} }).a != 7;
|
142433
|
-
})), _descriptors;
|
142434
|
-
}
|
142435
|
-
var _domCreate, hasRequired_domCreate;
|
142453
|
+
}, _fails = function(a) {
|
142454
|
+
try {
|
142455
|
+
return !!a();
|
142456
|
+
} catch {
|
142457
|
+
return !0;
|
142458
|
+
}
|
142459
|
+
}, _descriptors = !_fails(function() {
|
142460
|
+
return Object.defineProperty({}, "a", { get: function() {
|
142461
|
+
return 7;
|
142462
|
+
} }).a != 7;
|
142463
|
+
}), _domCreate, hasRequired_domCreate;
|
142436
142464
|
function require_domCreate() {
|
142437
142465
|
if (hasRequired_domCreate)
|
142438
142466
|
return _domCreate;
|
@@ -142442,7 +142470,7 @@ function require_domCreate() {
|
|
142442
142470
|
return $ ? s.createElement(_) : {};
|
142443
142471
|
}, _domCreate;
|
142444
142472
|
}
|
142445
|
-
var _ie8DomDefine = !
|
142473
|
+
var _ie8DomDefine = !_descriptors && !_fails(function() {
|
142446
142474
|
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
142447
142475
|
return 7;
|
142448
142476
|
} }).a != 7;
|
@@ -142454,7 +142482,7 @@ var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
|
142454
142482
|
return _;
|
142455
142483
|
throw TypeError("Can't convert object to primitive value");
|
142456
142484
|
}, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
|
142457
|
-
_objectDp.f =
|
142485
|
+
_objectDp.f = _descriptors ? Object.defineProperty : function a(s, $, _) {
|
142458
142486
|
if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
|
142459
142487
|
try {
|
142460
142488
|
return dP$3(s, $, _);
|
@@ -142471,17 +142499,17 @@ var _propertyDesc = function(a, s) {
|
|
142471
142499
|
writable: !(a & 4),
|
142472
142500
|
value: s
|
142473
142501
|
};
|
142474
|
-
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide =
|
142502
|
+
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(a, s, $) {
|
142475
142503
|
return dP$2.f(a, s, createDesc$2(1, $));
|
142476
142504
|
} : function(a, s, $) {
|
142477
142505
|
return a[s] = $, a;
|
142478
142506
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(a, s) {
|
142479
142507
|
return hasOwnProperty.call(a, s);
|
142480
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$
|
142508
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$5 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(a, s, $) {
|
142481
142509
|
var _ = a & $export$5.F, _e = a & $export$5.G, tt = a & $export$5.S, nt = a & $export$5.P, at = a & $export$5.B, ot = a & $export$5.W, rt = _e ? core$2 : core$2[s] || (core$2[s] = {}), st = rt[PROTOTYPE$2], lt = _e ? global$4 : tt ? global$4[s] : (global$4[s] || {})[PROTOTYPE$2], et, it, ut;
|
142482
142510
|
_e && ($ = s);
|
142483
142511
|
for (et in $)
|
142484
|
-
it = !_ && lt && lt[et] !== void 0, !(it && has$
|
142512
|
+
it = !_ && lt && lt[et] !== void 0, !(it && has$5(rt, et)) && (ut = it ? lt[et] : $[et], rt[et] = _e && typeof lt[et] != "function" ? $[et] : at && it ? ctx(ut, global$4) : ot && lt[et] == ut ? function(ft) {
|
142485
142513
|
var ht = function(dt, gt, pt) {
|
142486
142514
|
if (this instanceof ft) {
|
142487
142515
|
switch (arguments.length) {
|
@@ -142507,80 +142535,44 @@ $export$5.B = 16;
|
|
142507
142535
|
$export$5.W = 32;
|
142508
142536
|
$export$5.U = 64;
|
142509
142537
|
$export$5.R = 128;
|
142510
|
-
var _export = $export$5,
|
142511
|
-
|
142512
|
-
|
142513
|
-
return _cof;
|
142514
|
-
hasRequired_cof = 1;
|
142515
|
-
var a = {}.toString;
|
142516
|
-
return _cof = function(s) {
|
142517
|
-
return a.call(s).slice(8, -1);
|
142518
|
-
}, _cof;
|
142519
|
-
}
|
142520
|
-
var _iobject, hasRequired_iobject;
|
142538
|
+
var _export = $export$5, toString$2 = {}.toString, _cof = function(a) {
|
142539
|
+
return toString$2.call(a).slice(8, -1);
|
142540
|
+
}, _iobject, hasRequired_iobject;
|
142521
142541
|
function require_iobject() {
|
142522
142542
|
if (hasRequired_iobject)
|
142523
142543
|
return _iobject;
|
142524
142544
|
hasRequired_iobject = 1;
|
142525
|
-
var a =
|
142545
|
+
var a = _cof;
|
142526
142546
|
return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(s) {
|
142527
142547
|
return a(s) == "String" ? s.split("") : Object(s);
|
142528
142548
|
}, _iobject;
|
142529
142549
|
}
|
142530
|
-
var _defined
|
142531
|
-
|
142532
|
-
|
142533
|
-
|
142534
|
-
|
142535
|
-
|
142536
|
-
}), _defined;
|
142537
|
-
}
|
142538
|
-
var IObject = require_iobject(), defined$1 = require_defined(), _toIobject = function(a) {
|
142539
|
-
return IObject(defined$1(a));
|
142550
|
+
var _defined = function(a) {
|
142551
|
+
if (a == null)
|
142552
|
+
throw TypeError("Can't call method on " + a);
|
142553
|
+
return a;
|
142554
|
+
}, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(a) {
|
142555
|
+
return IObject(defined$2(a));
|
142540
142556
|
}, ceil = Math.ceil, floor = Math.floor, _toInteger = function(a) {
|
142541
142557
|
return isNaN(a = +a) ? 0 : (a > 0 ? floor : ceil)(a);
|
142542
|
-
},
|
142543
|
-
|
142544
|
-
|
142545
|
-
|
142546
|
-
|
142547
|
-
|
142548
|
-
|
142549
|
-
|
142550
|
-
|
142551
|
-
|
142552
|
-
|
142553
|
-
|
142554
|
-
|
142555
|
-
|
142556
|
-
|
142557
|
-
|
142558
|
-
|
142559
|
-
|
142560
|
-
}, _toAbsoluteIndex;
|
142561
|
-
}
|
142562
|
-
var _arrayIncludes, hasRequired_arrayIncludes;
|
142563
|
-
function require_arrayIncludes() {
|
142564
|
-
if (hasRequired_arrayIncludes)
|
142565
|
-
return _arrayIncludes;
|
142566
|
-
hasRequired_arrayIncludes = 1;
|
142567
|
-
var a = _toIobject, s = require_toLength(), $ = require_toAbsoluteIndex();
|
142568
|
-
return _arrayIncludes = function(_) {
|
142569
|
-
return function(_e, tt, nt) {
|
142570
|
-
var at = a(_e), ot = s(at.length), rt = $(nt, ot), st;
|
142571
|
-
if (_ && tt != tt) {
|
142572
|
-
for (; ot > rt; )
|
142573
|
-
if (st = at[rt++], st != st)
|
142574
|
-
return !0;
|
142575
|
-
} else
|
142576
|
-
for (; ot > rt; rt++)
|
142577
|
-
if ((_ || rt in at) && at[rt] === tt)
|
142578
|
-
return _ || rt || 0;
|
142579
|
-
return !_ && -1;
|
142580
|
-
};
|
142581
|
-
}, _arrayIncludes;
|
142582
|
-
}
|
142583
|
-
var _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 = _globalExports, SHARED = "__core-js_shared__", store$1 = global$3[SHARED] || (global$3[SHARED] = {});
|
142558
|
+
}, toInteger$2 = _toInteger, min$1 = Math.min, _toLength = function(a) {
|
142559
|
+
return a > 0 ? min$1(toInteger$2(a), 9007199254740991) : 0;
|
142560
|
+
}, toInteger$1 = _toInteger, max = Math.max, min = Math.min, _toAbsoluteIndex = function(a, s) {
|
142561
|
+
return a = toInteger$1(a), a < 0 ? max(a + s, 0) : min(a, s);
|
142562
|
+
}, toIObject$5 = _toIobject, toLength = _toLength, toAbsoluteIndex = _toAbsoluteIndex, _arrayIncludes = function(a) {
|
142563
|
+
return function(s, $, _) {
|
142564
|
+
var _e = toIObject$5(s), tt = toLength(_e.length), nt = toAbsoluteIndex(_, tt), at;
|
142565
|
+
if (a && $ != $) {
|
142566
|
+
for (; tt > nt; )
|
142567
|
+
if (at = _e[nt++], at != at)
|
142568
|
+
return !0;
|
142569
|
+
} else
|
142570
|
+
for (; tt > nt; nt++)
|
142571
|
+
if ((a || nt in _e) && _e[nt] === $)
|
142572
|
+
return a || nt || 0;
|
142573
|
+
return !a && -1;
|
142574
|
+
};
|
142575
|
+
}, _shared = { exports: {} }, _library = !0, core$1 = _coreExports, global$3 = _globalExports, SHARED = "__core-js_shared__", store$1 = global$3[SHARED] || (global$3[SHARED] = {});
|
142584
142576
|
(_shared.exports = function(a, s) {
|
142585
142577
|
return store$1[a] || (store$1[a] = s !== void 0 ? s : {});
|
142586
142578
|
})("versions", []).push({
|
@@ -142592,56 +142584,30 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
142592
142584
|
return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++id$1 + px).toString(36));
|
142593
142585
|
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(a) {
|
142594
142586
|
return shared$1[a] || (shared$1[a] = uid$2(a));
|
142595
|
-
}, _objectKeysInternal,
|
142596
|
-
|
142597
|
-
|
142598
|
-
|
142599
|
-
|
142600
|
-
|
142601
|
-
return
|
142602
|
-
|
142603
|
-
|
142604
|
-
|
142605
|
-
|
142606
|
-
a(nt, rt = tt[at++]) && (~$(ot, rt) || ot.push(rt));
|
142607
|
-
return ot;
|
142608
|
-
}, _objectKeysInternal;
|
142609
|
-
}
|
142610
|
-
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), _objectKeys, hasRequired_objectKeys;
|
142611
|
-
function require_objectKeys() {
|
142612
|
-
if (hasRequired_objectKeys)
|
142613
|
-
return _objectKeys;
|
142614
|
-
hasRequired_objectKeys = 1;
|
142615
|
-
var a = require_objectKeysInternal(), s = _enumBugKeys;
|
142616
|
-
return _objectKeys = Object.keys || function(_) {
|
142617
|
-
return a(_, s);
|
142618
|
-
}, _objectKeys;
|
142619
|
-
}
|
142620
|
-
var _objectGops = {}, hasRequired_objectGops;
|
142621
|
-
function require_objectGops() {
|
142622
|
-
return hasRequired_objectGops || (hasRequired_objectGops = 1, _objectGops.f = Object.getOwnPropertySymbols), _objectGops;
|
142623
|
-
}
|
142587
|
+
}, has$4 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(a, s) {
|
142588
|
+
var $ = toIObject$4(a), _ = 0, _e = [], tt;
|
142589
|
+
for (tt in $)
|
142590
|
+
tt != IE_PROTO$1 && has$4($, tt) && _e.push(tt);
|
142591
|
+
for (; s.length > _; )
|
142592
|
+
has$4($, tt = s[_++]) && (~arrayIndexOf(_e, tt) || _e.push(tt));
|
142593
|
+
return _e;
|
142594
|
+
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys$1 = _enumBugKeys, _objectKeys = Object.keys || function a(s) {
|
142595
|
+
return $keys$2(s, enumBugKeys$1);
|
142596
|
+
}, _objectGops = {};
|
142597
|
+
_objectGops.f = Object.getOwnPropertySymbols;
|
142624
142598
|
var _objectPie = {}, hasRequired_objectPie;
|
142625
142599
|
function require_objectPie() {
|
142626
142600
|
return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
|
142627
142601
|
}
|
142628
|
-
var
|
142629
|
-
|
142630
|
-
|
142631
|
-
return _toObject;
|
142632
|
-
hasRequired_toObject = 1;
|
142633
|
-
var a = require_defined();
|
142634
|
-
return _toObject = function(s) {
|
142635
|
-
return Object(a(s));
|
142636
|
-
}, _toObject;
|
142637
|
-
}
|
142638
|
-
var _objectAssign, hasRequired_objectAssign;
|
142602
|
+
var defined$1 = _defined, _toObject = function(a) {
|
142603
|
+
return Object(defined$1(a));
|
142604
|
+
}, _objectAssign, hasRequired_objectAssign;
|
142639
142605
|
function require_objectAssign() {
|
142640
142606
|
if (hasRequired_objectAssign)
|
142641
142607
|
return _objectAssign;
|
142642
142608
|
hasRequired_objectAssign = 1;
|
142643
|
-
var a =
|
142644
|
-
return _objectAssign = !nt ||
|
142609
|
+
var a = _descriptors, s = _objectKeys, $ = _objectGops, _ = require_objectPie(), _e = _toObject, tt = require_iobject(), nt = Object.assign;
|
142610
|
+
return _objectAssign = !nt || _fails(function() {
|
142645
142611
|
var at = {}, ot = {}, rt = Symbol(), st = "abcdefghijklmnopqrst";
|
142646
142612
|
return at[rt] = 7, st.split("").forEach(function(lt) {
|
142647
142613
|
ot[lt] = lt;
|
@@ -143302,7 +143268,7 @@ var _default$g = function(a, s) {
|
|
143302
143268
|
if (!(a instanceof s))
|
143303
143269
|
throw new TypeError("Cannot call a class as a function");
|
143304
143270
|
}, $export$3 = _export;
|
143305
|
-
$export$3($export$3.S + $export$3.F * !
|
143271
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
|
143306
143272
|
var $Object$1 = _coreExports.Object, defineProperty$3 = function a(s, $, _) {
|
143307
143273
|
return $Object$1.defineProperty(s, $, _);
|
143308
143274
|
}, defineProperty$2 = { default: defineProperty$3, __esModule: !0 }, _defineProperty$8 = defineProperty$2, _defineProperty2$1 = _interopRequireDefault$f(_defineProperty$8);
|
@@ -143319,12 +143285,12 @@ var _default$f = /* @__PURE__ */ function() {
|
|
143319
143285
|
return function(s, $, _) {
|
143320
143286
|
return $ && a(s.prototype, $), _ && a(s, _), s;
|
143321
143287
|
};
|
143322
|
-
}(), _typeof$j = {}, toInteger = _toInteger, defined =
|
143288
|
+
}(), _typeof$j = {}, toInteger = _toInteger, defined = _defined, _stringAt = function(a) {
|
143323
143289
|
return function(s, $) {
|
143324
143290
|
var _ = String(defined(s)), _e = toInteger($), tt = _.length, nt, at;
|
143325
143291
|
return _e < 0 || _e >= tt ? a ? "" : void 0 : (nt = _.charCodeAt(_e), nt < 55296 || nt > 56319 || _e + 1 === tt || (at = _.charCodeAt(_e + 1)) < 56320 || at > 57343 ? a ? _.charAt(_e) : nt : a ? _.slice(_e, _e + 2) : (nt - 55296 << 10) + (at - 56320) + 65536);
|
143326
143292
|
};
|
143327
|
-
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 =
|
143293
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = _objectKeys, _objectDps = _descriptors ? Object.defineProperties : function a(s, $) {
|
143328
143294
|
anObject$2(s);
|
143329
143295
|
for (var _ = getKeys$2($), _e = _.length, tt = 0, nt; _e > tt; )
|
143330
143296
|
dP$1.f(s, nt = _[tt++], $[nt]);
|
@@ -143369,7 +143335,7 @@ function require_objectGpo() {
|
|
143369
143335
|
if (hasRequired_objectGpo)
|
143370
143336
|
return _objectGpo;
|
143371
143337
|
hasRequired_objectGpo = 1;
|
143372
|
-
var a = _has, s =
|
143338
|
+
var a = _has, s = _toObject, $ = _sharedKey("IE_PROTO"), _ = Object.prototype;
|
143373
143339
|
return _objectGpo = Object.getPrototypeOf || function(_e) {
|
143374
143340
|
return _e = s(_e), a(_e, $) ? _e[$] : typeof _e.constructor == "function" && _e instanceof _e.constructor ? _e.constructor.prototype : _e instanceof Object ? _ : null;
|
143375
143341
|
}, _objectGpo;
|
@@ -143442,7 +143408,7 @@ var _wksExt = {};
|
|
143442
143408
|
_wksExt.f = _wksExports;
|
143443
143409
|
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$3 = _isObject, has$2 = _has, setDesc = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
|
143444
143410
|
return !0;
|
143445
|
-
}, FREEZE = !
|
143411
|
+
}, FREEZE = !_fails(function() {
|
143446
143412
|
return isExtensible(Object.preventExtensions({}));
|
143447
143413
|
}), setMeta = function(a) {
|
143448
143414
|
setDesc(a, META$1, { value: {
|
@@ -143482,15 +143448,15 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
143482
143448
|
}, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty$1 = _objectDp.f, _wksDefine = function(a) {
|
143483
143449
|
var s = core.Symbol || (core.Symbol = {});
|
143484
143450
|
a.charAt(0) != "_" && !(a in s) && defineProperty$1(s, a, { value: wksExt$1.f(a) });
|
143485
|
-
}, getKeys$1 =
|
143451
|
+
}, getKeys$1 = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(a) {
|
143486
143452
|
var s = getKeys$1(a), $ = gOPS.f;
|
143487
143453
|
if ($)
|
143488
143454
|
for (var _ = $(a), _e = pIE$1.f, tt = 0, nt; _.length > tt; )
|
143489
143455
|
_e.call(a, nt = _[tt++]) && s.push(nt);
|
143490
143456
|
return s;
|
143491
|
-
}, cof =
|
143457
|
+
}, cof = _cof, _isArray = Array.isArray || function a(s) {
|
143492
143458
|
return cof(s) == "Array";
|
143493
|
-
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 =
|
143459
|
+
}, _objectGopnExt = {}, _objectGopn = {}, $keys$1 = _objectKeysInternal, hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
143494
143460
|
_objectGopn.f = Object.getOwnPropertyNames || function a(s) {
|
143495
143461
|
return $keys$1(s, hiddenKeys);
|
143496
143462
|
};
|
@@ -143505,7 +143471,7 @@ _objectGopnExt.f = function a(s) {
|
|
143505
143471
|
return windowNames && toString$1.call(s) == "[object Window]" ? getWindowNames(s) : gOPN$1(toIObject$2(s));
|
143506
143472
|
};
|
143507
143473
|
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$2 = _toPrimitive$5, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
|
143508
|
-
_objectGopd.f =
|
143474
|
+
_objectGopd.f = _descriptors ? gOPD$1 : function a(s, $) {
|
143509
143475
|
if (s = toIObject$1(s), $ = toPrimitive$2($, !0), IE8_DOM_DEFINE)
|
143510
143476
|
try {
|
143511
143477
|
return gOPD$1(s, $);
|
@@ -143514,7 +143480,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
|
|
143514
143480
|
if (has$1(s, $))
|
143515
143481
|
return createDesc$1(!pIE.f.call(s, $), s[$]);
|
143516
143482
|
};
|
143517
|
-
var global$1 = _globalExports, has = _has, DESCRIPTORS =
|
143483
|
+
var global$1 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = _fails, shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = _objectDp, $keys = _objectKeys, gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
143518
143484
|
return _create$1(dP({}, "a", {
|
143519
143485
|
get: function() {
|
143520
143486
|
return dP(this, "a", { value: 7 }).a;
|
@@ -162930,6 +162896,20 @@ class Form extends PreviewUI {
|
|
162930
162896
|
onChangeInput(s) {
|
162931
162897
|
this.onChangeInputCallback = s;
|
162932
162898
|
}
|
162899
|
+
setInputs(s) {
|
162900
|
+
const $ = this.getInputs();
|
162901
|
+
super.setInputs(s);
|
162902
|
+
const _ = [];
|
162903
|
+
s.forEach((_e, tt) => {
|
162904
|
+
const nt = $[tt] || {};
|
162905
|
+
(/* @__PURE__ */ new Set([...Object.keys(_e), ...Object.keys(nt)])).forEach((ot) => {
|
162906
|
+
const rt = _e[ot], st = nt[ot];
|
162907
|
+
rt !== st && _.push({ index: tt, name: ot, value: rt });
|
162908
|
+
});
|
162909
|
+
}), _.forEach((_e) => {
|
162910
|
+
this.onChangeInputCallback && this.onChangeInputCallback(_e);
|
162911
|
+
});
|
162912
|
+
}
|
162933
162913
|
render() {
|
162934
162914
|
if (!this.domContainer)
|
162935
162915
|
throw Error(DESTROYED_ERR_MSG);
|