@pdfme/ui 4.0.0 → 4.0.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 CHANGED
@@ -9237,7 +9237,7 @@ ieee754.write = function(a, s, $, _, _e, tt) {
9237
9237
  throw new Error("BigInt not supported");
9238
9238
  }
9239
9239
  })(buffer$1);
9240
- const langs = ["en", "ja", "ar", "th", "pl", "it", "de", "es", "fr"], Lang = z.enum(langs);
9240
+ const langs = ["en", "zh", "ja", "ko", "ar", "th", "pl", "it", "de", "es", "fr"], Lang = z.enum(langs);
9241
9241
  z.object({
9242
9242
  // -----------------used in ui-----------------
9243
9243
  cancel: z.string(),
@@ -85494,7 +85494,7 @@ function _typeof$q(a) {
85494
85494
  return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
85495
85495
  }, _typeof$q(a);
85496
85496
  }
85497
- function toPrimitive$4(a, s) {
85497
+ function toPrimitive$3(a, s) {
85498
85498
  if (_typeof$q(a) != "object" || !a)
85499
85499
  return a;
85500
85500
  var $ = a[Symbol.toPrimitive];
@@ -85507,7 +85507,7 @@ function toPrimitive$4(a, s) {
85507
85507
  return (s === "string" ? String : Number)(a);
85508
85508
  }
85509
85509
  function toPropertyKey$1(a) {
85510
- var s = toPrimitive$4(a, "string");
85510
+ var s = toPrimitive$3(a, "string");
85511
85511
  return _typeof$q(s) == "symbol" ? s : String(s);
85512
85512
  }
85513
85513
  function _defineProperty$c(a, s, $) {
@@ -135127,6 +135127,63 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135127
135127
  "schemas.table.headStyle": "Header Style",
135128
135128
  "schemas.table.bodyStyle": "Body Style",
135129
135129
  "schemas.table.columnStyle": "Column Style"
135130
+ }, dictZh = {
135131
+ cancel: "取消",
135132
+ field: "字段",
135133
+ fieldName: "名称",
135134
+ align: "对齐",
135135
+ width: "宽度",
135136
+ height: "高度",
135137
+ opacity: "透明度",
135138
+ rotate: "旋转",
135139
+ edit: "编辑",
135140
+ plsInputName: "请输入名称",
135141
+ fieldMustUniq: "字段名称必须唯一",
135142
+ notUniq: "(名称不唯一)",
135143
+ noKeyName: "无名称",
135144
+ fieldsList: "字段列表",
135145
+ editField: "编辑字段",
135146
+ type: "类型",
135147
+ errorOccurred: "发生错误",
135148
+ errorBulkUpdateFieldName: "由于项目数量已更改,无法提交更改。",
135149
+ commitBulkUpdateFieldName: "提交更改",
135150
+ bulkUpdateFieldName: "批量更新字段名称",
135151
+ addPageAfter: "在之后添加页面",
135152
+ removePage: "删除当前页面",
135153
+ removePageConfirm: "您确定要删除此页面吗?此操作无法撤销。",
135154
+ hexColorPrompt: "请输入有效的十六进制颜色代码。",
135155
+ "schemas.color": "颜色",
135156
+ "schemas.borderWidth": "边框宽度",
135157
+ "schemas.borderColor": "边框颜色",
135158
+ "schemas.backgroundColor": "背景颜色",
135159
+ "schemas.textColor": "文字颜色",
135160
+ "schemas.bgColor": "背景颜色",
135161
+ "schemas.horizontal": "水平",
135162
+ "schemas.vertical": "垂直",
135163
+ "schemas.left": "左",
135164
+ "schemas.center": "中",
135165
+ "schemas.right": "右",
135166
+ "schemas.top": "顶",
135167
+ "schemas.middle": "中间",
135168
+ "schemas.bottom": "底",
135169
+ "schemas.padding": "填充",
135170
+ "schemas.text.fontName": "字体名称",
135171
+ "schemas.text.size": "大小",
135172
+ "schemas.text.spacing": "间距",
135173
+ "schemas.text.textAlign": "文本对齐",
135174
+ "schemas.text.verticalAlign": "垂直对齐",
135175
+ "schemas.text.lineHeight": "行高",
135176
+ "schemas.text.min": "最小",
135177
+ "schemas.text.max": "最大",
135178
+ "schemas.text.fit": "适应",
135179
+ "schemas.text.dynamicFontSize": "动态字体大小",
135180
+ "schemas.barcodes.barColor": "条码颜色",
135181
+ "schemas.barcodes.includetext": "包括文本",
135182
+ "schemas.table.alternateBackgroundColor": "交替背景颜色",
135183
+ "schemas.table.tableStyle": "表格样式",
135184
+ "schemas.table.headStyle": "表头样式",
135185
+ "schemas.table.bodyStyle": "表体样式",
135186
+ "schemas.table.columnStyle": "列样式"
135130
135187
  }, dictJa = {
135131
135188
  cancel: "キャンセル",
135132
135189
  field: "入力項目",
@@ -135184,6 +135241,63 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135184
135241
  "schemas.table.headStyle": "ヘッダースタイル",
135185
135242
  "schemas.table.bodyStyle": "ボディスタイル",
135186
135243
  "schemas.table.columnStyle": "カラムスタイル"
135244
+ }, dictKo = {
135245
+ cancel: "취소",
135246
+ field: "필드",
135247
+ fieldName: "이름",
135248
+ align: "정렬",
135249
+ width: "너비",
135250
+ height: "높이",
135251
+ opacity: "투명도",
135252
+ rotate: "회전",
135253
+ edit: "편집",
135254
+ plsInputName: "이름을 입력하세요",
135255
+ fieldMustUniq: "필드 이름은 유일해야 합니다",
135256
+ notUniq: "(유일하지 않은 이름)",
135257
+ noKeyName: "이름 없음",
135258
+ fieldsList: "필드 목록",
135259
+ editField: "필드 편집",
135260
+ type: "유형",
135261
+ errorOccurred: "오류 발생",
135262
+ errorBulkUpdateFieldName: "항목 수가 변경되어 변경을 커밋할 수 없습니다.",
135263
+ commitBulkUpdateFieldName: "변경 사항 커밋",
135264
+ bulkUpdateFieldName: "필드 이름 일괄 업데이트",
135265
+ addPageAfter: "다음에 페이지 추가",
135266
+ removePage: "현재 페이지 제거",
135267
+ removePageConfirm: "이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
135268
+ hexColorPrompt: "유효한 16진수 색상 코드를 입력하세요.",
135269
+ "schemas.color": "색상",
135270
+ "schemas.borderWidth": "테두리 너비",
135271
+ "schemas.borderColor": "테두리 색상",
135272
+ "schemas.backgroundColor": "배경색",
135273
+ "schemas.textColor": "텍스트 색상",
135274
+ "schemas.bgColor": "배경색",
135275
+ "schemas.horizontal": "수평",
135276
+ "schemas.vertical": "수직",
135277
+ "schemas.left": "왼쪽",
135278
+ "schemas.center": "중앙",
135279
+ "schemas.right": "오른쪽",
135280
+ "schemas.top": "상단",
135281
+ "schemas.middle": "중간",
135282
+ "schemas.bottom": "하단",
135283
+ "schemas.padding": "패딩",
135284
+ "schemas.text.fontName": "글꼴 이름",
135285
+ "schemas.text.size": "크기",
135286
+ "schemas.text.spacing": "간격",
135287
+ "schemas.text.textAlign": "텍스트 정렬",
135288
+ "schemas.text.verticalAlign": "수직 정렬",
135289
+ "schemas.text.lineHeight": "줄 높이",
135290
+ "schemas.text.min": "최소",
135291
+ "schemas.text.max": "최대",
135292
+ "schemas.text.fit": "맞춤",
135293
+ "schemas.text.dynamicFontSize": "동적 폰트 크기",
135294
+ "schemas.barcodes.barColor": "바코드 색상",
135295
+ "schemas.barcodes.includetext": "텍스트 포함",
135296
+ "schemas.table.alternateBackgroundColor": "대체 배경색",
135297
+ "schemas.table.tableStyle": "테이블 스타일",
135298
+ "schemas.table.headStyle": "헤더 스타일",
135299
+ "schemas.table.bodyStyle": "본문 스타일",
135300
+ "schemas.table.columnStyle": "열 스타일"
135187
135301
  }, dictAr = {
135188
135302
  cancel: "إلغاء",
135189
135303
  field: "الحقل",
@@ -135585,7 +135699,9 @@ const MinusOutlined$1 = /* @__PURE__ */ reactExports.forwardRef(MinusOutlined),
135585
135699
  "schemas.table.columnStyle": "Style de colonne"
135586
135700
  }, dictionaries = {
135587
135701
  en: dictEn,
135702
+ zh: dictZh,
135588
135703
  ja: dictJa,
135704
+ ko: dictKo,
135589
135705
  ar: dictAr,
135590
135706
  th: dictTh,
135591
135707
  it: dictIt,
@@ -142082,28 +142198,38 @@ function require_domCreate() {
142082
142198
  return $ ? s.createElement(_) : {};
142083
142199
  }, _domCreate;
142084
142200
  }
142085
- var _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
142086
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
142087
- return 7;
142088
- } }).a != 7;
142089
- }), isObject$4 = _isObject, _toPrimitive$5 = function(a, s) {
142201
+ var _ie8DomDefine, hasRequired_ie8DomDefine;
142202
+ function require_ie8DomDefine() {
142203
+ return hasRequired_ie8DomDefine || (hasRequired_ie8DomDefine = 1, _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
142204
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
142205
+ return 7;
142206
+ } }).a != 7;
142207
+ })), _ie8DomDefine;
142208
+ }
142209
+ var isObject$4 = _isObject, _toPrimitive$5 = function(a, s) {
142090
142210
  if (!isObject$4(a))
142091
142211
  return a;
142092
142212
  var $, _;
142093
142213
  if (s && typeof ($ = a.toString) == "function" && !isObject$4(_ = $.call(a)) || typeof ($ = a.valueOf) == "function" && !isObject$4(_ = $.call(a)) || !s && typeof ($ = a.toString) == "function" && !isObject$4(_ = $.call(a)))
142094
142214
  return _;
142095
142215
  throw TypeError("Can't convert object to primitive value");
142096
- }, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive$5, dP$3 = Object.defineProperty;
142097
- _objectDp.f = require_descriptors() ? Object.defineProperty : function a(s, $, _) {
142098
- if (anObject$3(s), $ = toPrimitive$3($, !0), anObject$3(_), IE8_DOM_DEFINE$1)
142099
- try {
142100
- return dP$3(s, $, _);
142101
- } catch {
142102
- }
142103
- if ("get" in _ || "set" in _)
142104
- throw TypeError("Accessors not supported!");
142105
- return "value" in _ && (s[$] = _.value), s;
142106
- };
142216
+ }, hasRequired_objectDp;
142217
+ function require_objectDp() {
142218
+ if (hasRequired_objectDp)
142219
+ return _objectDp;
142220
+ hasRequired_objectDp = 1;
142221
+ var a = _anObject, s = require_ie8DomDefine(), $ = _toPrimitive$5, _ = Object.defineProperty;
142222
+ return _objectDp.f = require_descriptors() ? Object.defineProperty : function(tt, nt, at) {
142223
+ if (a(tt), nt = $(nt, !0), a(at), s)
142224
+ try {
142225
+ return _(tt, nt, at);
142226
+ } catch {
142227
+ }
142228
+ if ("get" in at || "set" in at)
142229
+ throw TypeError("Accessors not supported!");
142230
+ return "value" in at && (tt[nt] = at.value), tt;
142231
+ }, _objectDp;
142232
+ }
142107
142233
  var _propertyDesc = function(a, s) {
142108
142234
  return {
142109
142235
  enumerable: !(a & 1),
@@ -142111,7 +142237,7 @@ var _propertyDesc = function(a, s) {
142111
142237
  writable: !(a & 4),
142112
142238
  value: s
142113
142239
  };
142114
- }, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
142240
+ }, dP$2 = require_objectDp(), createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(a, s, $) {
142115
142241
  return dP$2.f(a, s, createDesc$2(1, $));
142116
142242
  } : function(a, s, $) {
142117
142243
  return a[s] = $, a;
@@ -142942,7 +143068,7 @@ var _default$g = function(a, s) {
142942
143068
  if (!(a instanceof s))
142943
143069
  throw new TypeError("Cannot call a class as a function");
142944
143070
  }, $export$3 = _export;
142945
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
143071
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
142946
143072
  var $Object$1 = _coreExports.Object, defineProperty$3 = function a(s, $, _) {
142947
143073
  return $Object$1.defineProperty(s, $, _);
142948
143074
  }, defineProperty$2 = { default: defineProperty$3, __esModule: !0 }, _defineProperty$8 = defineProperty$2, _defineProperty2$1 = _interopRequireDefault$f(_defineProperty$8);
@@ -142964,7 +143090,7 @@ var _default$f = /* @__PURE__ */ function() {
142964
143090
  var _ = String(defined(s)), _e = toInteger($), tt = _.length, nt, at;
142965
143091
  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);
142966
143092
  };
142967
- }, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
143093
+ }, _redefine = _hide, _iterators = {}, dP$1 = require_objectDp(), anObject$2 = _anObject, getKeys$2 = require_objectKeys(), _objectDps = require_descriptors() ? Object.defineProperties : function a(s, $) {
142968
143094
  anObject$2(s);
142969
143095
  for (var _ = getKeys$2($), _e = _.length, tt = 0, nt; _e > tt; )
142970
143096
  dP$1.f(s, nt = _[tt++], $[nt]);
@@ -142990,7 +143116,7 @@ var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PRO
142990
143116
  return store[a] || (store[a] = USE_SYMBOL && Symbol$1[a] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + a));
142991
143117
  };
142992
143118
  $exports.store = store;
142993
- var _wksExports = _wks.exports, def = _objectDp.f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(a, s, $) {
143119
+ var _wksExports = _wks.exports, def = require_objectDp().f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(a, s, $) {
142994
143120
  a && !has$3(a = $ ? a : a.prototype, TAG) && def(a, TAG, { configurable: !0, value: s });
142995
143121
  }, _iterCreate, hasRequired_iterCreate;
142996
143122
  function require_iterCreate() {
@@ -143080,7 +143206,7 @@ for (var i = 0; i < DOMIterables.length; i++) {
143080
143206
  }
143081
143207
  var _wksExt = {};
143082
143208
  _wksExt.f = _wksExports;
143083
- 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() {
143209
+ 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 = require_objectDp().f, id = 0, isExtensible = Object.isExtensible || function() {
143084
143210
  return !0;
143085
143211
  }, FREEZE = !require_fails()(function() {
143086
143212
  return isExtensible(Object.preventExtensions({}));
@@ -143119,7 +143245,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
143119
143245
  fastKey,
143120
143246
  getWeak,
143121
143247
  onFreeze
143122
- }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty$1 = _objectDp.f, _wksDefine = function(a) {
143248
+ }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty$1 = require_objectDp().f, _wksDefine = function(a) {
143123
143249
  var s = core.Symbol || (core.Symbol = {});
143124
143250
  a.charAt(0) != "_" && !(a in s) && defineProperty$1(s, a, { value: wksExt$1.f(a) });
143125
143251
  }, getKeys$1 = require_objectKeys(), gOPS = require_objectGops(), pIE$1 = require_objectPie(), _enumKeys = function(a) {
@@ -143144,7 +143270,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString$1 = {}.toString,
143144
143270
  _objectGopnExt.f = function a(s) {
143145
143271
  return windowNames && toString$1.call(s) == "[object Window]" ? getWindowNames(s) : gOPN$1(toIObject$2(s));
143146
143272
  };
143147
- 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;
143273
+ var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$2 = _toPrimitive$5, has$1 = _has, IE8_DOM_DEFINE = require_ie8DomDefine(), gOPD$1 = Object.getOwnPropertyDescriptor;
143148
143274
  _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
143149
143275
  if (s = toIObject$1(s), $ = toPrimitive$2($, !0), IE8_DOM_DEFINE)
143150
143276
  try {
@@ -143154,7 +143280,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function a(s, $) {
143154
143280
  if (has$1(s, $))
143155
143281
  return createDesc$1(!pIE.f.call(s, $), s[$]);
143156
143282
  };
143157
- var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = require_toObject(), toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = require_objectGops(), $DP = _objectDp, $keys = require_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() {
143283
+ var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray$1 = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = require_toObject(), toIObject = _toIobject, toPrimitive$1 = _toPrimitive$5, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = require_objectGops(), $DP = require_objectDp(), $keys = require_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() {
143158
143284
  return _create$1(dP({}, "a", {
143159
143285
  get: function() {
143160
143286
  return dP(this, "a", { value: 7 }).a;