@steedos-widgets/amis-lib 6.10.1-beta.47 → 6.10.1-beta.48

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.cjs.js CHANGED
@@ -1599,7 +1599,7 @@ var frontend_app_launcher_dialog_new_app_title$1 = "New App";
1599
1599
  var frontend_app_launcher_dialog_new_app_code_label$1 = "App ID";
1600
1600
  var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
1601
1601
  var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
1602
- var en_us = {
1602
+ var en_us$1 = {
1603
1603
  frontend_field_group_generalization: frontend_field_group_generalization$1,
1604
1604
  frontend_download: frontend_download$1,
1605
1605
  frontend_form_save: frontend_form_save$1,
@@ -1835,7 +1835,7 @@ var frontend_app_launcher_dialog_new_app_title = "新建应用";
1835
1835
  var frontend_app_launcher_dialog_new_app_code_label = "应用唯一标识";
1836
1836
  var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
1837
1837
  var frontend_app_launcher_dialog_new_app_icon_label = "图标";
1838
- var zh_cn = {
1838
+ var zh_cn$1 = {
1839
1839
  frontend_field_group_generalization: frontend_field_group_generalization,
1840
1840
  frontend_download: frontend_download,
1841
1841
  frontend_form_save: frontend_form_save,
@@ -1955,28 +1955,41 @@ var zh_cn = {
1955
1955
  frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label
1956
1956
  };
1957
1957
 
1958
+ /*
1959
+ * @Author: 殷亮辉 yinlianghui@hotoa.com
1960
+ * @Date: 2025-08-25 21:06:56
1961
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
1962
+ * @LastEditTime: 2025-08-26 10:17:05
1963
+ */
1964
+
1958
1965
  const resources = {
1959
1966
  "en": {
1960
- translation: en_us
1967
+ translation: en_us$1
1961
1968
  },
1962
1969
  "zh-CN": {
1963
- translation: zh_cn
1970
+ translation: zh_cn$1
1964
1971
  }
1965
1972
  };
1966
1973
 
1967
- var locale = "zh-CN";
1968
- if (typeof window != 'undefined') {
1969
- locale = Builder.settings.context?.user?.language || window.navigator.language;
1970
- if(locale === 'en' || locale.startsWith('en-')){
1971
- locale = 'en';
1974
+ const getUserLanguage$1 = () => {
1975
+ var lan = Builder.settings.context?.user?.language || window.navigator.language;
1976
+ if(lan === 'en' || lan.startsWith('en-')){
1977
+ lan = 'en';
1972
1978
  }
1979
+ return lan;
1980
+ };
1981
+
1982
+ var locale$1 = "zh-CN";
1983
+ if (typeof window != 'undefined') {
1984
+ window.steedosI18next = i18next__default["default"];
1985
+ locale$1 = getUserLanguage$1();
1973
1986
  }
1974
1987
 
1975
1988
  i18next__default["default"]
1976
1989
  .use(reactI18next.initReactI18next)
1977
1990
  .init({
1978
1991
  resources,
1979
- lng: locale,
1992
+ lng: locale$1,
1980
1993
  interpolation: {
1981
1994
  escapeValue: false
1982
1995
  }
@@ -19079,6 +19092,793 @@ const getInstanceInfo = async (props) => {
19079
19092
  };
19080
19093
  };
19081
19094
 
19095
+ var asc$1 = "Asc";
19096
+ var cancel$1 = "Cancel";
19097
+ var clear$1 = "Clear";
19098
+ var add$1 = "New";
19099
+ var confirm$1 = "Confirm";
19100
+ var deleteConfirm$1 = "Are your sure to delete?";
19101
+ var deleteFailed$1 = "Delete failed";
19102
+ var desc$1 = "Desc";
19103
+ var fetchFailed$1 = "Fetch api failed";
19104
+ var link$1 = "Link";
19105
+ var loading$1 = "Loading";
19106
+ var networkError$1 = "Network error or missing CORS configuration";
19107
+ var noResult$1 = "No Result";
19108
+ var reset$1 = "Reset";
19109
+ var saveFailed$1 = "Save failed";
19110
+ var saveSuccess$1 = "Saved successfully";
19111
+ var search$1 = "Search";
19112
+ var searchHistory$1 = "Search History";
19113
+ var searchResult$1 = "Search result";
19114
+ var sort$1 = "Sort";
19115
+ var stop$1 = "Stop";
19116
+ var validateFailed$1 = "Validate failed";
19117
+ var reload$1 = "Reload";
19118
+ var rotate$1 = "Rotate";
19119
+ var TimeNow$1 = "Now";
19120
+ var en_us = {
19121
+ "Action.countDown": "Wait for ${timeLeft}s",
19122
+ "Alert.info": "System Info",
19123
+ "App.home": "Home",
19124
+ "App.navigation": "Navigation",
19125
+ asc: asc$1,
19126
+ "Calendar.datepicker": "Date Picker",
19127
+ "Calendar.yearmonth": "YYYY MM",
19128
+ "Calendar.year": "YYYY",
19129
+ "Calendar.begin": "begin",
19130
+ "Calendar.end": "end",
19131
+ "Calendar.beginAndEnd": "b/e",
19132
+ "Calendar.toast": "Out of date range",
19133
+ "Calendar.startPick": "Select start time",
19134
+ "Calendar.endPick": "Select end time",
19135
+ cancel: cancel$1,
19136
+ "Card.dragTip": "Drag top button to sort",
19137
+ "Card.toggleDrag": "Toggle drag to sort",
19138
+ "City.street": "Enter street info",
19139
+ clear: clear$1,
19140
+ "ColorPicker.placeholder": "Select color",
19141
+ "SubForm.add": "New",
19142
+ add: add$1,
19143
+ "Combo.dragDropSort": "Drag to sort",
19144
+ "Combo.invalidData": "invalid data, please remove",
19145
+ "Combo.maxLength": "Maximum item ia {{MaxLength}}}. Please delete some",
19146
+ "Combo.minLength": "A least {{minLength}} item. Please add more",
19147
+ "Combo.type": "Type",
19148
+ confirm: confirm$1,
19149
+ "Copyable.tip": "Copy",
19150
+ "CRUD.exportCSV": "Export CSV",
19151
+ "CRUD.exportExcel": "Export Excel",
19152
+ "CRUD.fetchFailed": "Fetch failed",
19153
+ "CRUD.filter": "Filter",
19154
+ "CRUD.selected": "selected {{total}} items===: ",
19155
+ "CRUD.invalidArray": "data.items must be an array",
19156
+ "CRUD.invalidData": "data is empty",
19157
+ "CRUD.loadMore": "Load more",
19158
+ "CRUD.perPage": "Per page",
19159
+ "CRUD.stat": "{{page}} of {{lastPage}} total: {{total}}.",
19160
+ "CRUD.paginationGoText": "Go to",
19161
+ "CRUD.paginationPageText": "page",
19162
+ "PaginationWrapper.placeholder": "please config body",
19163
+ "Pagination.select": "{{count}} items/page",
19164
+ "Pagination.goto": "goto",
19165
+ "Pagination.go": "GO",
19166
+ "Pagination.totalPage": "total {{lastPage}} pages",
19167
+ "Pagination.totalCount": "total {{total}} items",
19168
+ "Date.titleYear": "select year",
19169
+ "Date.titleMonth": "select month and year",
19170
+ "Date.titleDate": "select month, year and day",
19171
+ "Date.titleTime": "select time",
19172
+ "Date.daysago": "{{days}} day(s) ago",
19173
+ "Date.dayslater": "{{days}} day(s) later",
19174
+ "Date.endOfMonth": "last day of the month",
19175
+ "Date.endOfLastMonth": "last day of last month",
19176
+ "Date.endOfWeek": "Saturday",
19177
+ "Date.hoursago": "{{hours}} hour(s) ago",
19178
+ "Date.hourslater": "{{hours}} hour(s) later",
19179
+ "Date.invalid": "Invalid date",
19180
+ "Date.monday": "Monday",
19181
+ "Date.monthsago": "{{months}} month(s) ago",
19182
+ "Date.monthslater": "{{months}} month(s) later",
19183
+ "Date.now": "Now",
19184
+ "Date.placeholder": "Select Date",
19185
+ "Date.quartersago": "{{quarters}} quarter(s) ago",
19186
+ "Date.quarterslater": "{{quarters}} quarter(s) later",
19187
+ "Date.startOfLastMonth": "First day of the last month",
19188
+ "Date.startOfLastQuarter": "First day of the last quarter",
19189
+ "Date.startOfMonth": "First day of the month",
19190
+ "Date.startOfQuarter": "First day of the quarter",
19191
+ "Date.today": "Today",
19192
+ "Date.tomorrow": "Tomorrow",
19193
+ "Date.weeksago": "{{weeks}} week(s) ago",
19194
+ "Date.weekslater": "{{weeks}} week(s) later",
19195
+ "Date.yesterday": "Yesterday",
19196
+ "dateformat.year": "YYYY",
19197
+ "DateRange.daysago": "Last {{days}} day(s)",
19198
+ "DateRange.dayslater": "Within {{days}} day(s)",
19199
+ "DateRange.weeksago": "Last {{weeks}} week(s)",
19200
+ "DateRange.weekslater": "Within {{weeks}} week(s)",
19201
+ "DateRange.monthsago": "Last {{months}} month(s)",
19202
+ "DateRange.monthslater": "Within {{months}} month(s)",
19203
+ "DateRange.quartersago": "Last {{quarters}} quarter(s)",
19204
+ "DateRange.quarterslater": "Within {{quarters}} quarter(s)",
19205
+ "DateRange.yearsago": "Last {{years}} year(s)",
19206
+ "DateRange.yearslater": "Within {{years}} year(s)",
19207
+ "DateRange.hoursago": "Last {{hours}} hour(s)",
19208
+ "DateRange.hourslater": "Within {{hours}} hour(s)",
19209
+ "DateRange.1dayago": "1 day ago",
19210
+ "DateRange.1daysago": "1 day ago",
19211
+ "DateRange.7daysago": "7 days ago",
19212
+ "DateRange.30daysago": "30 days ago",
19213
+ "DateRange.90daysago": "90 days ago",
19214
+ "DateRange.lastMonth": "Last month",
19215
+ "DateRange.lastWeek": "Last week",
19216
+ "DateRange.lastQuarter": "Last quarter",
19217
+ "DateRange.placeholder": "Select a Date range",
19218
+ "YearRange.placeholder": "Select a Year range",
19219
+ "DateRange.thisWeek": "This Week",
19220
+ "DateRange.thisMonth": "This month",
19221
+ "DateRange.thisQuarter": "This quarter",
19222
+ "DateRange.thisYear": "This year",
19223
+ "DateRange.lastYear": "Last year",
19224
+ "DateRange.valueConcat": " to ",
19225
+ "DateTime.placeholder": "Select Datetime",
19226
+ "delete": "Delete",
19227
+ deleteConfirm: deleteConfirm$1,
19228
+ deleteFailed: deleteFailed$1,
19229
+ desc: desc$1,
19230
+ "Dialog.close": "Close",
19231
+ "Dialog.title": "Title",
19232
+ "Embed.invalidRoot": "Invalid root selector",
19233
+ "Embed.downloading": "Start downloading",
19234
+ "Excel.placeholder": "Drag 'n' drop excel here, or click to select",
19235
+ "Excel.parsed": "{{filename}} Parsed",
19236
+ fetchFailed: fetchFailed$1,
19237
+ "File.continueAdd": "Continue add",
19238
+ "File.downloadTpl": "Download template",
19239
+ "File.dragDrop": "Drag 'n' drop some files here or",
19240
+ "File.clickUpload": "click here to upload",
19241
+ "File.helpText": "Help documentation",
19242
+ "File.errorRetry": "File upload failed, please try again",
19243
+ "File.failed": "Failed files.",
19244
+ "File.invalidType": "{{files}} does not match type `{{accept}}`",
19245
+ "File.maxLength": "The maximum limit is {{maxLength}}",
19246
+ "File.maxSize": "{{filename}} you selected exceeds the maximum limit of {{maxsize}} (in bytes)",
19247
+ "File.pause": "Pause uplaod",
19248
+ "File.repick": "Repick",
19249
+ "File.result": "Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files",
19250
+ "File.retry": "Retry",
19251
+ "File.sizeLimit": "The maximum file size is {{maxSize}}",
19252
+ "File.start": "Start upload",
19253
+ "File.upload": "Upload",
19254
+ "Image.upload": "Upload image",
19255
+ "File.uploadFailed": "return data of udpload api is empty",
19256
+ "File.uploading": "Uploading",
19257
+ "FormItem.autoFillLoadFailed": "return data of autoUpdate api is error",
19258
+ "FormItem.autoFillSuggest": "Reference data entry",
19259
+ "Form.loadOptionsFailed": "Failed to load options because: {{reason}}",
19260
+ "Form.submit": "Submit",
19261
+ "Form.title": "Form",
19262
+ "Form.unique": "Current value is not unique",
19263
+ "Form.validateFailed": "Form input validation failed",
19264
+ "Form.nestedError": "Form cannot appear as a descendant of form",
19265
+ "Image.configError": "Can only set one of crop or multiple",
19266
+ "Image.crop": "Crop image",
19267
+ "Image.dragDrop": "Drag 'n' drop some photos here",
19268
+ "Image.height": "height: {{height}}px",
19269
+ "Image.limitMax": "Minimum image size is {{info}}",
19270
+ "Image.limitMin": "Maximum image size is {{info}}",
19271
+ "Image.limitRatio": "Please upload image with the size ratio of {{ration}}",
19272
+ "Image.pasteTip": "You can paste image from the clipboard",
19273
+ "Image.placeholder": "Click to select image or drag into this area",
19274
+ "Image.size": "size: ({{width}}px x {{height}}px)",
19275
+ "Image.sizeNotEqual": "The image you selected does not meet the size requirements {{info}}",
19276
+ "Image.width": "width: {{width}}px",
19277
+ "Image.zoomIn": "Zoom In",
19278
+ "Log.mustHaveSource": "Must have source in config",
19279
+ "Log.showLineNumber": "Display line number",
19280
+ "Log.notShowLineNumber": "Hide line number",
19281
+ "Log.expand": "Expand Operation",
19282
+ "Log.collapse": "Collapse Operation",
19283
+ link: link$1,
19284
+ loading: loading$1,
19285
+ "LocationPicker.placeholder": "Pick location",
19286
+ "Month.placeholder": "Select a month",
19287
+ "Nav.sourceError": "Fetch link error",
19288
+ networkError: networkError$1,
19289
+ noResult: noResult$1,
19290
+ "NumberInput.placeholder": "Please enter a number",
19291
+ "Options.addPlaceholder": "Please enter a name",
19292
+ "Options.deleteAPI": "Must have deleteAPI",
19293
+ "Options.editLabel": "Edit {{label}}",
19294
+ "Options.label": "option",
19295
+ "Options.createFailed": "create failed, please check",
19296
+ "placeholder.empty": "<Empty>",
19297
+ "placeholder.enter": "Enter",
19298
+ "placeholder.noData": "No data",
19299
+ "placeholder.noOption": "No option",
19300
+ "placeholder.selectData": "Select data",
19301
+ "Quarter.placeholder": "Select a quarter",
19302
+ "Repeat.pre": "Per",
19303
+ reset: reset$1,
19304
+ saveFailed: saveFailed$1,
19305
+ saveSuccess: saveSuccess$1,
19306
+ search: search$1,
19307
+ searchHistory: searchHistory$1,
19308
+ searchResult: searchResult$1,
19309
+ "Checkboxes.selectAll": "Select/Deselect All",
19310
+ "Select.checkAll": "Check all",
19311
+ "Select.clear": "Clear",
19312
+ "Select.upload": "Re upload",
19313
+ "Select.clearAll": "Clear all",
19314
+ "Select.createLabel": "New option",
19315
+ "Select.placeholder": "Select",
19316
+ "Select.searchPromptText": "Input to search",
19317
+ sort: sort$1,
19318
+ stop: stop$1,
19319
+ "SubForm.button": "Config",
19320
+ "SubForm.editDetail": "Edit Detail",
19321
+ "System.error": "System error",
19322
+ "System.notify": "System notify",
19323
+ "System.copy": "Content copied",
19324
+ "System.requestError": "Request error: ",
19325
+ "System.requestErrorStatus": "Request error, status code: ",
19326
+ "Table.addRow": "Add row",
19327
+ "Table.copyRow": "Copy row",
19328
+ "Table.columnsVisibility": "Click to control columns visibility",
19329
+ "Table.deleteRow": "Delete current row",
19330
+ "Table.discard": "Discard",
19331
+ "Table.dragTip": "Drag the button on the left to sort",
19332
+ "Table.editing": "You should finished editing",
19333
+ "Table.editRow": "Edit current row",
19334
+ "Table.modified": "There are {{modified}} records have been modified, you can:",
19335
+ "Table.moved": "There are {{moved}} records changed the order, you can:",
19336
+ "Table.operation": "Operation",
19337
+ "Table.playload": "Must have playload",
19338
+ "Table.startSort": "Click to start sorting",
19339
+ "Table.valueField": "Must have valueField",
19340
+ "Table.index": "Index",
19341
+ "Table.toggleColumn": "Display columns",
19342
+ "Table.searchFields": "Set query fields",
19343
+ "Tag.placeholder": "No tag yet",
19344
+ "Tag.tip": "Recently used tag",
19345
+ "Text.add": "New {{label}}",
19346
+ "Time.placeholder": "Select Time",
19347
+ "Transfer.configError": "Config error",
19348
+ "Transfer.refreshIcon": "Click to refresh",
19349
+ "Transfer.searchKeyword": "Enter keywords",
19350
+ "Transfer.available": "Available",
19351
+ "Transfer.selectd": "Selected",
19352
+ "Transfer.selectFromLeft": "Select from the left",
19353
+ "Tree.addChild": "Add child",
19354
+ "Tree.addRoot": "Add root node",
19355
+ "Tree.editNode": "Edit this node",
19356
+ "Tree.removeNode": "Remove this node",
19357
+ "Tree.root": "Root",
19358
+ "validate.equals": "value must be $1",
19359
+ "validate.equalsField": "value must be $1",
19360
+ "validate.gt": "Please enter a value greater than $1",
19361
+ "validate.isAlpha": "Please enter letters",
19362
+ "validate.isAlphanumeric": "Please enter letters or numbers",
19363
+ "validate.isEmail": "Email format is incorrect",
19364
+ "validate.isFloat": "Please enter a floating point value",
19365
+ "validate.isId": "invalid ID Card number",
19366
+ "validate.isInt": "Please enter an integer number",
19367
+ "validate.isJson": "invalid JSON format.",
19368
+ "validate.isLength": "Please make sure the length of contents is $1",
19369
+ "validate.isNumeric": "Please enter a number",
19370
+ "validate.isPhoneNumber": "invalid phone number",
19371
+ "validate.isRequired": "This is required",
19372
+ "validate.isTelNumber": "invalid telephone number",
19373
+ "validate.isUrl": "Incorrect URL format",
19374
+ "validate.isUrlPath": "You can only enter letters, numbers, `-` and`_` .",
19375
+ "validate.isWords": "Please enter word",
19376
+ "validate.isZipcode": "invalid postal address",
19377
+ "validate.lt": "Please enter a value less than $1",
19378
+ "validate.matchRegexp": "The format is not correct. Please enter the content with the rule `${1| raw}`.",
19379
+ "validate.maximum": "The input value exceeds the maximum value of $1",
19380
+ "validate.maxLength": "Please control the content length, do not enter more than $1 letters",
19381
+ "validate.minimum": "The input value is lower than the minimum value of $1",
19382
+ "validate.minLength": "Please enter more, at least $1 characters.",
19383
+ "validate.notEmptyString": "Please do not enter all blank characters",
19384
+ validateFailed: validateFailed$1,
19385
+ "Wizard.configError": "Config error",
19386
+ "Wizard.finish": "Finish",
19387
+ "Wizard.next": "Next",
19388
+ "Wizard.prev": "Prev",
19389
+ "Wizard.saveAndNext": "Save & Next",
19390
+ "year-to-year": "{{from}} - {{to}}",
19391
+ "Year.placeholder": "Select a Year",
19392
+ reload: reload$1,
19393
+ rotate: rotate$1,
19394
+ "Editor.fullscreen": "full screen",
19395
+ "Editor.exitFullscreen": "exit fullscreen mode",
19396
+ "Condition.not": "not",
19397
+ "Condition.and": "and",
19398
+ "Condition.or": "or",
19399
+ "Condition.add_cond": "add condition",
19400
+ "Condition.add_cond_group": "add condition group",
19401
+ "Condition.delete_cond_group": "delete condition group",
19402
+ "Condition.equal": "equal",
19403
+ "Condition.not_equal": "not equal",
19404
+ "Condition.less": "less",
19405
+ "Condition.less_or_equal": "less or equal",
19406
+ "Condition.greater": "greater",
19407
+ "Condition.greater_or_equal": "greater or equal",
19408
+ "Condition.between": "between",
19409
+ "Condition.not_between": "not between",
19410
+ "Condition.is_empty": "empty",
19411
+ "Condition.is_not_empty": "not empty",
19412
+ "Condition.like": "contains",
19413
+ "Condition.not_like": "not contains",
19414
+ "Condition.starts_with": "starts with",
19415
+ "Condition.ends_with": "ends with",
19416
+ "Condition.select_equals": "equals",
19417
+ "Condition.select_not_equals": "not equal",
19418
+ "Condition.select_any_in": "contains",
19419
+ "Condition.select_not_any_in": "not contains",
19420
+ "Condition.placeholder": "Please enter text",
19421
+ "Condition.cond_placeholder": "select condition",
19422
+ "Condition.field_placeholder": "select field",
19423
+ "Condition.blank": "blank",
19424
+ "Condition.expression": "expression",
19425
+ "Condition.formula_placeholder": "Please enter a formula",
19426
+ "Condition.fun_error": "Function is undefined",
19427
+ "InputTable.uniqueError": "Column `{{label}}` unique validate failed",
19428
+ "Timeline.collapseText": "Unfold",
19429
+ "Timeline.expandText": "Fold",
19430
+ "FormulaEditor.btnLabel": "Formula Edit",
19431
+ "FormulaEditor.title": "Formula Editor",
19432
+ "FormulaEditor.variable": "Variable",
19433
+ "FormulaEditor.function": "Function",
19434
+ "FormulaEditor.invalidData": "invalid data, position or reason is {{err}}",
19435
+ "pullRefresh.pullingText": "Pull down to refresh...",
19436
+ "pullRefresh.loosingText": "Release to refresh...",
19437
+ "pullRefresh.loadingText": "Loading...",
19438
+ "pullRefresh.successText": "Loading success",
19439
+ "Picker.placeholder": "Click icon on the right",
19440
+ "UserSelect.edit": "edit",
19441
+ "UserSelect.save": "preservation",
19442
+ "UserSelect.resultSort": "Select result sort",
19443
+ "UserSelect.selected": "Selected",
19444
+ "UserSelect.clear": "empty",
19445
+ "SchemaType.string": "String",
19446
+ "SchemaType.number": "Number",
19447
+ "SchemaType.integer": "integer",
19448
+ "SchemaType.object": "Object",
19449
+ "SchemaType.array": "Array",
19450
+ "SchemaType.boolean": "Boolean",
19451
+ "SchemaType.any": "Any",
19452
+ "SchemaType.null": "Null",
19453
+ "JSONSchema.title": "Title",
19454
+ "JSONSchema.default": "Default",
19455
+ "JSONSchema.description": "Description",
19456
+ "JSONSchema.key": "Key",
19457
+ "JSONSchema.array_items": "Items",
19458
+ TimeNow: TimeNow$1
19459
+ };
19460
+
19461
+ var asc = "正序";
19462
+ var Schedule = "日程";
19463
+ var Time = "时间";
19464
+ var Content = "内容";
19465
+ var cancel = "取消";
19466
+ var clear = "清空";
19467
+ var add = "新增";
19468
+ var confirm = "确认";
19469
+ var deleteConfirm = "确认要删除?";
19470
+ var deleteFailed = "删除失败";
19471
+ var desc = "降序";
19472
+ var fetchFailed = "初始化失败";
19473
+ var link = "链接";
19474
+ var loading = "加载中";
19475
+ var networkError = "网络错误,可能是未配置跨域 CORS";
19476
+ var noResult = "未找到任何结果";
19477
+ var reset = "重置";
19478
+ var saveFailed = "保存失败";
19479
+ var saveSuccess = "保存成功";
19480
+ var search = "搜索";
19481
+ var searchHistory = "搜索历史";
19482
+ var searchResult = "搜索结果";
19483
+ var stop = "停止";
19484
+ var sort = "排序";
19485
+ var validateFailed = "表单验证失败";
19486
+ var reload = "刷新";
19487
+ var rotate = "旋转";
19488
+ var collapse = "展开";
19489
+ var expand = "折叠";
19490
+ var Required = "必填";
19491
+ var TimeNow = "此刻";
19492
+ var zh_cn = {
19493
+ "Action.countDown": "请等待 ${timeLeft} 秒",
19494
+ "Alert.info": "系统消息",
19495
+ "App.home": "首页",
19496
+ "App.navigation": "导航",
19497
+ asc: asc,
19498
+ "Calendar.datepicker": "日期选择",
19499
+ "Calendar.yearmonth": "YYYY年MM月",
19500
+ "Calendar.year": "YYYY年",
19501
+ "Calendar.begin": "开始",
19502
+ "Calendar.end": "结束",
19503
+ "Calendar.beginAndEnd": "始/终",
19504
+ "Calendar.toast": "超出日期范围",
19505
+ "Calendar.startPick": "开始时间",
19506
+ "Calendar.endPick": "结束时间",
19507
+ Schedule: Schedule,
19508
+ Time: Time,
19509
+ Content: Content,
19510
+ cancel: cancel,
19511
+ "Card.dragTip": "请拖动顶部的按钮进行排序",
19512
+ "Card.toggleDrag": "对卡片进行排序操作",
19513
+ "City.street": "请输入街道信息",
19514
+ clear: clear,
19515
+ "ColorPicker.placeholder": "请选择颜色",
19516
+ "SubForm.add": "新增一项",
19517
+ add: add,
19518
+ "Combo.dragDropSort": "拖拽排序",
19519
+ "Combo.invalidData": "数值格式不正确",
19520
+ "Combo.maxLength": "组合表单超出{{maxLength}}个,请删除",
19521
+ "Combo.minLength": "组合表单数量不足{{minLength}}个,请添加更多",
19522
+ "Combo.type": "类型",
19523
+ confirm: confirm,
19524
+ "Copyable.tip": "点击复制",
19525
+ "CRUD.exportCSV": "导出 CSV",
19526
+ "CRUD.exportExcel": "导出 Excel",
19527
+ "CRUD.fetchFailed": "获取失败",
19528
+ "CRUD.filter": "筛选",
19529
+ "CRUD.selected": "已选{{total}}条==:",
19530
+ "CRUD.invalidArray": "data.items 必须是数组",
19531
+ "CRUD.invalidData": "返回数据格式不正确,data 没有数据",
19532
+ "CRUD.loadMore": "加载更多",
19533
+ "CRUD.perPage": "每页显示",
19534
+ "CRUD.stat": "{{page}}/{{lastPage}} 总共:{{total}} 项",
19535
+ "CRUD.paginationGoText": "前往",
19536
+ "CRUD.paginationPageText": "页",
19537
+ "PaginationWrapper.placeholder": "请配置内容",
19538
+ "Pagination.select": "{{count}} 条/页",
19539
+ "Pagination.goto": "跳转至",
19540
+ "Pagination.go": "跳转",
19541
+ "Pagination.totalPage": "共 {{lastPage}} 页",
19542
+ "Pagination.totalCount": "共 {{total}} 条",
19543
+ "Date.titleYear": "选择年",
19544
+ "Date.titleMonth": "选择年月",
19545
+ "Date.titleDate": "选择年月日",
19546
+ "Date.titleTime": "选择时间",
19547
+ "Date.daysago": "{{days}}天前",
19548
+ "Date.dayslater": "{{days}}天后",
19549
+ "Date.endOfMonth": "本月最后一天",
19550
+ "Date.endOfWeek": "周日",
19551
+ "Date.endOfLastMonth": "上月最后一天",
19552
+ "Date.hoursago": "{{hours}}小时前",
19553
+ "Date.hourslater": "{{hours}}小时后",
19554
+ "Date.invalid": "日期无效",
19555
+ "Date.monday": "本周一",
19556
+ "Date.monthsago": "{{months}}月前",
19557
+ "Date.monthslater": "{{months}}月后",
19558
+ "Date.now": "现在",
19559
+ "Date.placeholder": "请选择日期",
19560
+ "Date.quartersago": "{{quarters}}季度前",
19561
+ "Date.quarterslater": "{{quarters}}季度后",
19562
+ "Date.startOfLastMonth": "上个月第一天",
19563
+ "Date.startOfLastQuarter": "上个季度第一天",
19564
+ "Date.startOfMonth": "本月第一天",
19565
+ "Date.startOfQuarter": "本季度第一天",
19566
+ "Date.today": "今天",
19567
+ "Date.tomorrow": "明天",
19568
+ "Date.weeksago": "{{weeks}}周前",
19569
+ "Date.weekslater": "{{weeks}}周后",
19570
+ "Date.yesterday": "昨天",
19571
+ "dateformat.year": "YYYY年",
19572
+ "DateRange.daysago": "最近{{days}}天",
19573
+ "DateRange.dayslater": "{{days}}天以内",
19574
+ "DateRange.weeksago": "最近{{weeks}}周",
19575
+ "DateRange.weekslater": "{{weeks}}周以内",
19576
+ "DateRange.monthsago": "最近{{months}}月",
19577
+ "DateRange.monthslater": "{{months}}月以内",
19578
+ "DateRange.quartersago": "最近{{quarters}}季度",
19579
+ "DateRange.quarterslater": "{{quarters}}季度以内",
19580
+ "DateRange.yearsago": "最近{{years}}年",
19581
+ "DateRange.yearslater": "{{years}}年以内",
19582
+ "DateRange.hoursago": "最近{{hours}}小时",
19583
+ "DateRange.hourslater": "{{hours}}小时以内",
19584
+ "DateRange.1daysago": "最近1天",
19585
+ "DateRange.1dayago": "最近1天",
19586
+ "DateRange.7daysago": "最近7天",
19587
+ "DateRange.30daysago": "最近30天",
19588
+ "DateRange.90daysago": "最近90天",
19589
+ "DateRange.lastWeek": "上周",
19590
+ "DateRange.lastMonth": "上个月",
19591
+ "DateRange.lastQuarter": "上个季度",
19592
+ "DateRange.placeholder": "请选择日期范围",
19593
+ "DateRange.thisWeek": "这个周",
19594
+ "DateRange.thisMonth": "这个月",
19595
+ "DateRange.thisQuarter": "这个季度",
19596
+ "DateRange.valueConcat": " 至 ",
19597
+ "DateTime.placeholder": "请选择日期以及时间",
19598
+ "MonthRange.placeholder": "请选择月份范围",
19599
+ "QuarterRange.placeholder": "请选择季度范围",
19600
+ "YearRange.placeholder": "请选择年份范围",
19601
+ "DateRange.thisYear": "今年",
19602
+ "DateRange.lastYear": "去年",
19603
+ "delete": "删除",
19604
+ deleteConfirm: deleteConfirm,
19605
+ deleteFailed: deleteFailed,
19606
+ desc: desc,
19607
+ "Dialog.close": "关闭",
19608
+ "Dialog.title": "弹框",
19609
+ "Embed.invalidRoot": "选择器不对,页面上没有此元素",
19610
+ "Embed.downloading": "文件即将开始下载",
19611
+ "Excel.placeholder": "拖拽 Excel 到这,或点击上传",
19612
+ "Excel.parsed": "已解析 {{filename}}",
19613
+ fetchFailed: fetchFailed,
19614
+ "File.continueAdd": "继续添加",
19615
+ "File.downloadTpl": "下载模板",
19616
+ "File.dragDrop": "将文件拖到此处,或",
19617
+ "File.clickUpload": "点击上传",
19618
+ "File.helpText": "帮助文档",
19619
+ "File.errorRetry": "文件上传失败请重试",
19620
+ "File.failed": "失败文件",
19621
+ "File.invalidType": "{{files}} 不符合类型的 {{accept}} 的设定,请仔细检查",
19622
+ "File.maxLength": "最多上传 {{maxLength}} 个文件",
19623
+ "File.maxSize": "{{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} (字节)的限制",
19624
+ "File.pause": "暂停上传",
19625
+ "File.repick": "重新选择",
19626
+ "File.result": "已成功上传 {{uploaded}} 个文件,{{failed}} 个文件上传失败,",
19627
+ "File.retry": "重试上传",
19628
+ "File.sizeLimit": "文件大小不超过 {{maxSize}}",
19629
+ "File.start": "开始上传",
19630
+ "File.upload": "文件上传",
19631
+ "Image.upload": "图片上传",
19632
+ "File.uploadFailed": "接口返回错误,请仔细检查",
19633
+ "File.uploading": "上传中...",
19634
+ "FormItem.autoFillLoadFailed": "接口返回错误,请仔细检查",
19635
+ "FormItem.autoFillSuggest": "参照录入数据",
19636
+ "Form.loadOptionsFailed": "加载选项失败,原因:{{reason}}",
19637
+ "Form.submit": "提交",
19638
+ "Form.title": "表单",
19639
+ "Form.unique": "当前值不唯一",
19640
+ "Form.validateFailed": "依赖的部分字段没有通过验证",
19641
+ "Form.nestedError": "表单不要直接嵌套在表单下面",
19642
+ "Image.configError": "图片多选配置和裁剪配置只能设置一个",
19643
+ "Image.crop": "裁剪图片",
19644
+ "Image.dragDrop": "将图片拖拽到此处",
19645
+ "Image.height": "高度 {{height}}px",
19646
+ "Image.limitRatio": "请上传尺寸比率为 {{ratio}} 的图片",
19647
+ "Image.pasteTip": "可以粘贴剪切板中的图片",
19648
+ "Image.placeholder": "点击选择图片或拖拽图片到这里",
19649
+ "Image.size": "尺寸({{width}} x {{height}})",
19650
+ "Image.sizeMax": "请上传不要大于{{info}}的图片",
19651
+ "Image.sizeMin": "请上传不要小于{{info}}的图片",
19652
+ "Image.sizeNotEqual": "请上传{{info}}的图片",
19653
+ "Image.width": "宽度 {{width}}px",
19654
+ "Image.zoomIn": "查看大图",
19655
+ "Image.limitMax": "上传图片大于{{info}},请检查图片尺寸",
19656
+ "Image.limitMin": "上传图片小于{{info}},请检查图片尺寸",
19657
+ "Log.mustHaveSource": "需要配置 Source",
19658
+ "Log.showLineNumber": "显示行数",
19659
+ "Log.notShowLineNumber": "不现实行数",
19660
+ "Log.expand": "展开工具栏",
19661
+ "Log.collapse": "收起工具栏",
19662
+ link: link,
19663
+ loading: loading,
19664
+ "LocationPicker.placeholder": "请选择位置",
19665
+ "Month.placeholder": "请选择月份",
19666
+ "Nav.sourceError": "获取链接错误",
19667
+ networkError: networkError,
19668
+ noResult: noResult,
19669
+ "NumberInput.placeholder": "请输入数字",
19670
+ "Options.addPlaceholder": "请输入名称",
19671
+ "Options.deleteAPI": "必须设置 deleteAPI",
19672
+ "Options.editLabel": "编辑{{label}}",
19673
+ "Options.label": "选项",
19674
+ "Options.createFailed": "新增失败,请仔细检查",
19675
+ "placeholder.empty": "<空>",
19676
+ "placeholder.enter": "请输入",
19677
+ "placeholder.noData": "暂无数据",
19678
+ "placeholder.noOption": "暂无选项",
19679
+ "placeholder.selectData": "请先选择数据",
19680
+ "Quarter.placeholder": "请选择季度",
19681
+ "Repeat.pre": "每",
19682
+ reset: reset,
19683
+ saveFailed: saveFailed,
19684
+ saveSuccess: saveSuccess,
19685
+ search: search,
19686
+ searchHistory: searchHistory,
19687
+ searchResult: searchResult,
19688
+ stop: stop,
19689
+ "Checkboxes.selectAll": "全选/不选",
19690
+ "Select.checkAll": "全选",
19691
+ "Select.clear": "移除",
19692
+ "Select.upload": "重新上传",
19693
+ "Select.clearAll": "移除所有",
19694
+ "Select.createLabel": "新增选项",
19695
+ "Select.placeholder": "请选择",
19696
+ "Select.searchPromptText": "搜索",
19697
+ sort: sort,
19698
+ "SubForm.button": "设置",
19699
+ "SubForm.editDetail": "编辑详情",
19700
+ "System.error": "系统错误",
19701
+ "System.notify": "系统消息",
19702
+ "System.copy": "内容已复制到粘贴板",
19703
+ "System.requestError": "接口报错:",
19704
+ "System.requestErrorStatus": "接口出错,状态码是:",
19705
+ "Table.addRow": "新增一行",
19706
+ "Table.copyRow": "复制一行",
19707
+ "Table.columnsVisibility": "点击选择显示列",
19708
+ "Table.deleteRow": "删除当前行",
19709
+ "Table.discard": "放弃",
19710
+ "Table.dragTip": "请拖动左边的按钮进行排序",
19711
+ "Table.editing": "请先处理表格编辑项",
19712
+ "Table.editRow": "编辑当前行",
19713
+ "Table.modified": "当前有 {{modified}} 条记录修改但没有提交,你可以:",
19714
+ "Table.moved": "当前有 {{moved}} 条记录修改了顺序但没有提交,你可以:",
19715
+ "Table.operation": "操作",
19716
+ "Table.playload": "action 上请配置 payload, 否则不清楚要删除哪个",
19717
+ "Table.startSort": "点击开始排序",
19718
+ "Table.valueField": "请配置 valueField",
19719
+ "Table.index": "序号",
19720
+ "Table.toggleColumn": "显示列",
19721
+ "Table.searchFields": "设置查询字段",
19722
+ "Tag.placeholder": "请输入/选择标签",
19723
+ "Tag.tip": "最近使用的标签",
19724
+ "Text.add": "新增:{{label}}",
19725
+ "Time.placeholder": "请选择时间",
19726
+ "Transfer.configError": "配置错误,选项无法与左侧选项对应",
19727
+ "Transfer.refreshIcon": "点击刷新重新加载",
19728
+ "Transfer.searchKeyword": "请输入关键字",
19729
+ "Transfer.available": "可选项",
19730
+ "Transfer.selectd": "已选项",
19731
+ "Transfer.selectFromLeft": "请选择左侧数据",
19732
+ "Tree.addChild": "添加子节点",
19733
+ "Tree.addRoot": "添加一级节点",
19734
+ "Tree.editNode": "编辑该节点",
19735
+ "Tree.removeNode": "移除该节点",
19736
+ "Tree.root": "顶级",
19737
+ "validate.equals": "输入的数据与 $1 不一致",
19738
+ "validate.equalsField": "输入的数据与 $1 值不一致",
19739
+ "validate.gt": "请输入大于 $1 的值",
19740
+ "validate.isAlpha": "请输入字母",
19741
+ "validate.isAlphanumeric": "请输入字母或者数字",
19742
+ "validate.isEmail": "Email 格式不正确",
19743
+ "validate.isFloat": "请输入浮点型数值",
19744
+ "validate.isId": "请输入合法的身份证号",
19745
+ "validate.isInt": "请输入整型数字",
19746
+ "validate.isJson": "JSON 格式不正确",
19747
+ "validate.isLength": "请输入长度为 $1 的内容",
19748
+ "validate.isNumeric": "请输入数字",
19749
+ "validate.isPhoneNumber": "请输入合法的手机号码",
19750
+ "validate.isRequired": "这是必填项",
19751
+ "validate.isTelNumber": "请输入合法的电话号码",
19752
+ "validate.isUrl": "URL 格式不正确",
19753
+ "validate.isUrlPath": "只能输入字母、数字、`-` 和 `_`.",
19754
+ "validate.isWords": "请输入单词",
19755
+ "validate.isZipcode": "请输入合法的邮编地址",
19756
+ "validate.lt": "请输入小于 $1 的值",
19757
+ "validate.matchRegexp": "格式不正确, 请输入符合规则为 `${1|raw}` 的内容。",
19758
+ "validate.maximum": "当前输入值超出最大值 $1",
19759
+ "validate.maxLength": "请控制内容长度, 不要输入 $1 个以上字符",
19760
+ "validate.minimum": "当前输入值低于最小值 $1",
19761
+ "validate.minLength": "请输入更多的内容,至少输入 $1 个字符。",
19762
+ "validate.notEmptyString": "请不要全输入空白字符",
19763
+ validateFailed: validateFailed,
19764
+ "Wizard.configError": "配置错误",
19765
+ "Wizard.finish": "完成",
19766
+ "Wizard.next": "下一步",
19767
+ "Wizard.prev": "上一步",
19768
+ "Wizard.saveAndNext": "保存并下一步",
19769
+ "year-to-year": "{{from}} 年 - {{to}} 年",
19770
+ "Year.placeholder": "请选择年",
19771
+ reload: reload,
19772
+ rotate: rotate,
19773
+ "Editor.fullscreen": "全屏",
19774
+ "Editor.exitFullscreen": "退出全屏",
19775
+ "Condition.not": "非",
19776
+ "Condition.and": "并",
19777
+ "Condition.or": "或",
19778
+ "Condition.add_cond": "添加条件",
19779
+ "Condition.add_cond_group": "添加条件组",
19780
+ "Condition.delete_cond_group": "删除组",
19781
+ "Condition.equal": "等于",
19782
+ "Condition.not_equal": "不等于",
19783
+ "Condition.less": "小于",
19784
+ "Condition.less_or_equal": "小于或等于",
19785
+ "Condition.greater": "大于",
19786
+ "Condition.greater_or_equal": "大于或等于",
19787
+ "Condition.between": "属于范围",
19788
+ "Condition.not_between": "不属于范围",
19789
+ "Condition.is_empty": "为空",
19790
+ "Condition.is_not_empty": "不为空",
19791
+ "Condition.like": "模糊匹配",
19792
+ "Condition.not_like": "不匹配",
19793
+ "Condition.starts_with": "匹配开头",
19794
+ "Condition.ends_with": "匹配结尾",
19795
+ "Condition.select_equals": "等于",
19796
+ "Condition.select_not_equals": "不等于",
19797
+ "Condition.select_any_in": "包含",
19798
+ "Condition.select_not_any_in": "不包含",
19799
+ "Condition.placeholder": "请输入文本",
19800
+ "Condition.cond_placeholder": "请选择操作",
19801
+ "Condition.field_placeholder": "请选择字段",
19802
+ "Condition.blank": "空",
19803
+ "Condition.expression": "表达式",
19804
+ "Condition.formula_placeholder": "请输入公式",
19805
+ "Condition.fun_error": "方法未定义",
19806
+ "InputTable.uniqueError": "列`{{label}}`没有通过唯一验证",
19807
+ "Timeline.collapseText": "展开",
19808
+ "Timeline.expandText": "折叠",
19809
+ collapse: collapse,
19810
+ expand: expand,
19811
+ "FormulaEditor.btnLabel": "公式编辑",
19812
+ "FormulaEditor.title": "公式编辑器",
19813
+ "FormulaEditor.variable": "变量",
19814
+ "FormulaEditor.function": "函数",
19815
+ "FormulaEditor.invalidData": "公式值校验错误,错误的位置/原因是 {{err}}",
19816
+ "pullRefresh.pullingText": "下拉即可刷新...",
19817
+ "pullRefresh.loosingText": "释放即可刷新...",
19818
+ "pullRefresh.loadingText": "加载中...",
19819
+ "pullRefresh.successText": "加载成功",
19820
+ "Picker.placeholder": "请点击右侧的图标",
19821
+ "UserSelect.edit": "编辑",
19822
+ "UserSelect.save": "保存",
19823
+ "UserSelect.resultSort": "选择结果排序",
19824
+ "UserSelect.selected": "已选",
19825
+ "UserSelect.clear": "清空",
19826
+ "SchemaType.string": "文本",
19827
+ "SchemaType.number": "数字",
19828
+ "SchemaType.integer": "整数",
19829
+ "SchemaType.object": "对象",
19830
+ "SchemaType.array": "数组",
19831
+ "SchemaType.boolean": "布尔",
19832
+ "SchemaType.null": "Null",
19833
+ "SchemaType.any": "任意",
19834
+ "JSONSchema.title": "名称",
19835
+ "JSONSchema.default": "默认值",
19836
+ "JSONSchema.key": "字段名",
19837
+ "JSONSchema.description": "描述",
19838
+ "JSONSchema.add_prop": "添加属性",
19839
+ "JSONSchema.array_items": "成员类型",
19840
+ Required: Required,
19841
+ TimeNow: TimeNow
19842
+ };
19843
+
19844
+ /*
19845
+ * @Author: 殷亮辉 yinlianghui@hotoa.com
19846
+ * @Date: 2025-08-23 21:36:26
19847
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
19848
+ * @LastEditTime: 2025-08-26 11:49:26
19849
+ */
19850
+
19851
+ const resourcesMap = {
19852
+ "en-US": en_us,
19853
+ "zh-CN": zh_cn,
19854
+ };
19855
+
19856
+ const getUserLanguage = () => {
19857
+ var lan = Builder.settings.context?.user?.language || window.navigator.language;
19858
+ if (lan === 'en') {
19859
+ lan = 'en-US';
19860
+ }
19861
+ return lan;
19862
+ };
19863
+
19864
+ var locale = "zh-CN";
19865
+ if (typeof window != 'undefined') {
19866
+ locale = getUserLanguage();
19867
+ }
19868
+
19869
+ function getAmisLocaleResource() {
19870
+ var rs = resourcesMap[locale];
19871
+ if (rs) {
19872
+ return rs;
19873
+ }
19874
+ return resourcesMap["zh-CN"];
19875
+ }
19876
+
19877
+ if (typeof window != 'undefined') {
19878
+ var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
19879
+ currentAmis && currentAmis.registerLocale(locale, getAmisLocaleResource());
19880
+ }
19881
+
19082
19882
  Object.defineProperty(exports, 'i18next', {
19083
19883
  enumerable: true,
19084
19884
  get: function () { return i18next__default["default"]; }
@@ -19099,6 +19899,7 @@ exports.extendObject = extendObject;
19099
19899
  exports.fetchAPI = fetchAPI;
19100
19900
  exports.filtersToConditions = filtersToConditions;
19101
19901
  exports.getAmisInputTableSchema = getAmisInputTableSchema;
19902
+ exports.getAmisLocaleResource = getAmisLocaleResource;
19102
19903
  exports.getApp = getApp;
19103
19904
  exports.getApps = getApps;
19104
19905
  exports.getAuthToken = getAuthToken;
@@ -19194,6 +19995,7 @@ exports.getUISchemaSync = getUISchemaSync$1;
19194
19995
  exports.getUiFieldTpl = getUiFieldTpl;
19195
19996
  exports.getUiFileSizeTpl = getUiFileSizeTpl;
19196
19997
  exports.getUserId = getUserId;
19998
+ exports.getUserLanguage = getUserLanguage$1;
19197
19999
  exports.getViewSchema = getViewSchema;
19198
20000
  exports.isExpression = isExpression;
19199
20001
  exports.isObject = isObject;