@steedos-widgets/amis-object 1.2.30 → 1.2.32

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.
@@ -3628,7 +3628,7 @@ function getNameTpl(field, ctx){
3628
3628
 
3629
3629
  function getRelatedFieldTpl(field, ctx){
3630
3630
  let tpl = '';
3631
- if(!field.reference_to && (field.optionsFunction || field._optionsFunction)){
3631
+ if(!field.reference_to && (field.optionsFunction || field._optionsFunction || field.options)){
3632
3632
  if(field.isTableField){
3633
3633
  return `\${${field.name}}`
3634
3634
  }else {
@@ -4092,6 +4092,7 @@ var frontend_form_cancel$1 = "Cancel";
4092
4092
  var frontend_form_new$1 = "New";
4093
4093
  var frontend_form_edit$1 = "Edit";
4094
4094
  var frontend_form_select$1 = "Select";
4095
+ var frontend_form_please_select$1 = "Please select";
4095
4096
  var frontend_form_confirm$1 = "Confirm";
4096
4097
  var frontend_form_delete$1 = "Delete";
4097
4098
  var frontend_form_view$1 = "view";
@@ -4173,6 +4174,7 @@ var en_us = {
4173
4174
  frontend_form_new: frontend_form_new$1,
4174
4175
  frontend_form_edit: frontend_form_edit$1,
4175
4176
  frontend_form_select: frontend_form_select$1,
4177
+ frontend_form_please_select: frontend_form_please_select$1,
4176
4178
  frontend_form_confirm: frontend_form_confirm$1,
4177
4179
  frontend_form_delete: frontend_form_delete$1,
4178
4180
  frontend_form_view: frontend_form_view$1,
@@ -4255,6 +4257,7 @@ var frontend_form_cancel = "取消";
4255
4257
  var frontend_form_new = "新建";
4256
4258
  var frontend_form_edit = "编辑";
4257
4259
  var frontend_form_select = "选择";
4260
+ var frontend_form_please_select = "请选择";
4258
4261
  var frontend_form_confirm = "确认";
4259
4262
  var frontend_form_delete = "删除";
4260
4263
  var frontend_form_view = "查看";
@@ -4337,6 +4340,7 @@ var zh_cn = {
4337
4340
  frontend_form_new: frontend_form_new,
4338
4341
  frontend_form_edit: frontend_form_edit,
4339
4342
  frontend_form_select: frontend_form_select,
4343
+ frontend_form_please_select: frontend_form_please_select,
4340
4344
  frontend_form_confirm: frontend_form_confirm,
4341
4345
  frontend_form_delete: frontend_form_delete,
4342
4346
  frontend_form_view: frontend_form_view,
@@ -5703,7 +5707,8 @@ const StandardButtons = {
5703
5707
  } = this;
5704
5708
  const scopeId = this.scopeId || `amis-${appId}-${objectName}-listview`;
5705
5709
  const scope = this.scope || SteedosUI?.getRef(scopeId);
5706
- const listViewRef = scope.getComponentById(`listview_${uiSchema.name}`);
5710
+ //https://github.com/baidu/amis/pull/6807 .parent的改动是为适应3.2getComponentById的规则改动,不影响2.9
5711
+ const listViewRef = scope.parent?.getComponentById(`listview_${uiSchema.name}`);
5707
5712
  if(_.isEmpty(listViewRef.props.store.toJSON().selectedItems)){
5708
5713
  listViewRef.handleAction({}, {
5709
5714
  "actionType": "toast",
@@ -8249,7 +8254,7 @@ const getSettingListviewToolbarButtonSchema = ()=>{
8249
8254
  "trigger": "click",
8250
8255
  "icon": "fa fa-cog",
8251
8256
  "tooltip": instance.t('frontend_button_listview_control_tooltip'),
8252
- "btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
8257
+ "btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded border-gray-300 text-gray-500",
8253
8258
  "align": "right",
8254
8259
  "visibleOn": "${!isLookup}",
8255
8260
  "buttons": [
@@ -8293,7 +8298,7 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
8293
8298
  "type": "dropdown-button",
8294
8299
  "icon": "fa fa-table-columns",
8295
8300
  "tooltip": `${instance.t('frontend_display_as')} ${displayAsLabel}`,
8296
- "btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
8301
+ "btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded border-gray-300 text-gray-500",
8297
8302
  "align": "right",
8298
8303
  "visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
8299
8304
  "buttons": [
@@ -8955,6 +8960,14 @@ async function lookupToAmisPicker(field, readonly, ctx){
8955
8960
  }
8956
8961
  }
8957
8962
 
8963
+ if(${referenceTo?.objectName === "space_users"} && ${field.reference_to_field === "user"}){
8964
+ if(filters.length > 0){
8965
+ filters = [ ["user_accepted", "=", true], "and", filters ]
8966
+ }else{
8967
+ filters = [["user_accepted", "=", true]];
8968
+ }
8969
+ }
8970
+
8958
8971
 
8959
8972
  if(allowSearchFields){
8960
8973
  allowSearchFields.forEach(function(key){
@@ -9171,6 +9184,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
9171
9184
 
9172
9185
  const data = {
9173
9186
  type: getAmisStaticFieldType('picker', readonly),
9187
+ modalTitle: instance.t('frontend_form_please_select') + " " + refObjectConfig.label,
9174
9188
  labelField: referenceTo.labelField.name,
9175
9189
  valueField: referenceTo.valueField.name,
9176
9190
  modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
@@ -9287,6 +9301,14 @@ async function lookupToAmisSelect(field, readonly, ctx){
9287
9301
  filters.push(fieldFilters);
9288
9302
  }
9289
9303
 
9304
+ if(${referenceTo?.objectName === "space_users"} && ${field.reference_to_field === "user"}){
9305
+ if(filters.length > 0){
9306
+ filters = [ ["user_accepted", "=", true], "and", filters ]
9307
+ }else{
9308
+ filters = [["user_accepted", "=", true]];
9309
+ }
9310
+ }
9311
+
9290
9312
  const inFilterForm = ${ctx.inFilterForm};
9291
9313
  const filtersFunction = ${field.filtersFunction || field._filtersFunction};
9292
9314
 
@@ -9326,6 +9348,18 @@ async function lookupToAmisSelect(field, readonly, ctx){
9326
9348
  payload.data.options = options;
9327
9349
  return payload;
9328
9350
  `;
9351
+ }else if(field.options){
9352
+ apiInfo.adaptor = `
9353
+ var options = ${JSON.stringify(field.options)}
9354
+ if(api.data.$term){
9355
+ options = _.filter(options, function(o) {
9356
+ var label = o.label;
9357
+ return label.toLowerCase().indexOf(api.data.$term.toLowerCase()) > -1;
9358
+ });
9359
+ }
9360
+ payload.data.options = options;
9361
+ return payload;
9362
+ `;
9329
9363
  }
9330
9364
 
9331
9365
  const data = {
@@ -9405,11 +9439,6 @@ async function lookupToAmis(field, readonly, ctx){
9405
9439
  // ids人员点选模式
9406
9440
  return await lookupToAmisIdsPicker(field, readonly, ctx);
9407
9441
  }
9408
- if(!field.filters || field.filters.length == 0){
9409
- field.filters = [["user_accepted", "=", true]];
9410
- }else {
9411
- field.filters = [ ["user_accepted", "=", true], "and", field.filters ];
9412
- }
9413
9442
  // 左侧树右侧人员列表的下拉框模式,不再支持,而是执行下面的lookupToAmisPicker函数弹出选人窗口
9414
9443
  // return await lookupToAmisSelectUser(field, readonly, ctx);
9415
9444
  }
@@ -9629,8 +9658,8 @@ const getHtmlFieldSchema = (field, readonly, ctx)=>{
9629
9658
  /*
9630
9659
  * @Author: baozhoutao@steedos.com
9631
9660
  * @Date: 2022-10-28 14:52:55
9632
- * @LastEditors: Please set LastEditors
9633
- * @LastEditTime: 2023-05-31 13:25:53
9661
+ * @LastEditors: liaodaxue
9662
+ * @LastEditTime: 2023-07-14 17:18:42
9634
9663
  * @Description:
9635
9664
  */
9636
9665
 
@@ -9662,6 +9691,8 @@ function getAmisStaticFieldType(type, readonly, options){
9662
9691
  return `static-images`;
9663
9692
  }
9664
9693
  return `static-${type}`;
9694
+ }else if(type === 'url'){
9695
+ return "input-url"
9665
9696
  }else {
9666
9697
  return 'static';
9667
9698
  }
@@ -9897,13 +9928,13 @@ function getSelectFieldOptions(field){
9897
9928
  ___default.each(field.options, (item)=>{
9898
9929
  switch (dataType) {
9899
9930
  case 'number':
9900
- options.push({label: item.label, value: Number(item.value)});
9931
+ options.push({label: item.label, value: Number(item.value), icon: item.icon});
9901
9932
  break;
9902
9933
  case 'text':
9903
- options.push({label: item.label, value: String(item.value)});
9934
+ options.push({label: item.label, value: String(item.value), icon: item.icon});
9904
9935
  break;
9905
9936
  case 'boolean':
9906
- options.push({label: item.label, value: item.value === 'false' ? false : true});
9937
+ options.push({label: item.label, value: item.value === 'false' ? false : true, icon: item.icon});
9907
9938
  break;
9908
9939
  }
9909
9940
  });
@@ -9965,6 +9996,17 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
9965
9996
  labelField: 'label',
9966
9997
  valueField: 'value'
9967
9998
  };
9999
+ const select_menuTpl = `<span class='flex items-center mt-0.5'>
10000
+ <span role='img' aria-label='smile' class='anticon anticon-smile'>
10001
+ <span class='slds-icon_container slds-icon-standard-\${REPLACE(icon,'_','-')}'>
10002
+ <svg class='slds-icon slds-icon_x-small' aria-hidden='true'>
10003
+ <use xlink:href='/assets/icons/standard-sprite/svg/symbols.svg#\${icon}'></use>
10004
+ </svg>
10005
+ </span>
10006
+ </span>
10007
+ <span class='pl-1.5'>\${label}</span>
10008
+ </span>`;
10009
+ convertData.menuTpl = "${icon ? `"+select_menuTpl+"` : label}";
9968
10010
  if(field.multiple){
9969
10011
  convertData.multiple = true;
9970
10012
  convertData.extractValue = true;
@@ -10178,7 +10220,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
10178
10220
  break;
10179
10221
  case 'url':
10180
10222
  convertData = {
10181
- type: getAmisStaticFieldType('url', readonly, field)
10223
+ type: getAmisStaticFieldType('url', readonly, field),
10224
+ static: readonly ? true : false
10182
10225
  };
10183
10226
  if(readonly && field.show_as_qr){
10184
10227
  convertData = {
@@ -10512,17 +10555,19 @@ async function getQuickEditSchema(field, options){
10512
10555
  return EventType;
10513
10556
  };
10514
10557
  switch (field.type) {
10515
- //TODO:amis的picker组件直接点击选项x时不会触发change事件,待处理
10558
+ //TODO: amis的picker组件直接点击选项x时不会触发change事件,待处理
10516
10559
  case "lookup":
10517
10560
  case "master_detail":
10561
+ let labelField = quickEditSchema.body[0].labelField || "label";
10562
+ let valueField = quickEditSchema.body[0].valueField || "value";
10518
10563
  if (field.multiple) {
10519
10564
  TempDisplayField = `
10520
10565
  _display["${field.name}"] = [];
10521
- event.data.value.forEach(function(item,index){
10566
+ event.data.selectedItems.forEach(function(item,index){
10522
10567
  _display["${field.name}"].push(
10523
10568
  {
10524
- "label": event.data.option[index].${quickEditSchema.body[0].labelField},
10525
- "value": event.data.option[index]._id,
10569
+ "label": item.${labelField},
10570
+ "value": item.${valueField},
10526
10571
  "objectName": "${field.reference_to}"
10527
10572
  }
10528
10573
  )
@@ -10531,8 +10576,8 @@ async function getQuickEditSchema(field, options){
10531
10576
  } else {
10532
10577
  TempDisplayField = `
10533
10578
  _display["${field.name}"] = {
10534
- "label": event.data.option.${quickEditSchema.body[0].labelField},
10535
- "value": event.data._id,
10579
+ "label": event.data.selectedItems.${labelField},
10580
+ "value": event.data.selectedItems.${valueField},
10536
10581
  "objectName": "${field.reference_to}"
10537
10582
  }
10538
10583
  `;
@@ -10696,7 +10741,7 @@ async function getTableColumns$1(fields, options){
10696
10741
  type: "switch",
10697
10742
  name: field.name,
10698
10743
  label: field.label,
10699
- width: field.width,
10744
+ width: field.width || defaultWidth,
10700
10745
  toggled: field.toggled,
10701
10746
  static: true,
10702
10747
  className:"whitespace-nowrap",
@@ -10717,6 +10762,10 @@ async function getTableColumns$1(fields, options){
10717
10762
  }
10718
10763
  else if(field.type === 'select'){
10719
10764
  const map = getSelectMap(field.options);
10765
+ let className = "";
10766
+ if(field.wrap === false){
10767
+ className += " whitespace-nowrap";
10768
+ }
10720
10769
  columns.push(Object.assign({}, {
10721
10770
  type: "mapping",
10722
10771
  name: field.name,
@@ -10725,7 +10774,7 @@ async function getTableColumns$1(fields, options){
10725
10774
  sortable: field.sortable,
10726
10775
  width: field.width || defaultWidth,
10727
10776
  toggled: field.toggled,
10728
- className:"whitespace-nowrap",
10777
+ className,
10729
10778
  static: true,
10730
10779
  quickEdit: quickEditSchema
10731
10780
  }, field.amis, {name: field.name}));
@@ -10737,8 +10786,12 @@ async function getTableColumns$1(fields, options){
10737
10786
  type = 'tpl';
10738
10787
  }else if(field.type === 'html'){
10739
10788
  type = 'markdown';
10740
- }else if(field.type === 'url' && field.show_as_qr){
10741
- type = 'qr-code';
10789
+ }else if(field.type === 'url'){
10790
+ if(field.show_as_qr){
10791
+ type = 'qr-code';
10792
+ }else {
10793
+ type = 'input-url';
10794
+ }
10742
10795
  }
10743
10796
  let className = "";
10744
10797
  if(field.type === 'textarea'){
@@ -11364,7 +11417,10 @@ async function getTableApi(mainObject, fields, options){
11364
11417
  if(item[key]){
11365
11418
  if(field._optionsFunction){
11366
11419
  const optionsFunction = eval("(" + field._optionsFunction+ ")")(item);
11367
- item[key + '__label'] = _.map(_.filter(optionsFunction, function(option){return _.includes(item[key], option.value)}), 'label').join(' ');
11420
+ item[key + '__label'] = _.map(_.filter(optionsFunction, function(option){return item[key] == option.value}), 'label').join(' ');
11421
+ }else if(field.options){
11422
+ const options = field.options;
11423
+ item[key + '__label'] = _.map(_.filter(options, function(option){return item[key] == option.value}), 'label').join(' ');
11368
11424
  }
11369
11425
  }
11370
11426
  })
@@ -11419,7 +11475,8 @@ async function getTableApi(mainObject, fields, options){
11419
11475
 
11420
11476
  const setDataToComponentId = "${setDataToComponentId}";
11421
11477
  if(setDataToComponentId){
11422
- SteedosUI.getRef(api.body.$self.$scopeId)?.getComponentById(setDataToComponentId)?.setData({$count: payload.data.count})
11478
+ //https://github.com/baidu/amis/pull/6807 .parent的改动是为适应3.2getComponentById的规则改动,不影响2.9
11479
+ SteedosUI.getRef(api.body.$self.$scopeId)?.parent?.getComponentById(setDataToComponentId)?.setData({$count: payload.data.count})
11423
11480
  };
11424
11481
  ${options.adaptor || ''}
11425
11482
  return payload;
@@ -12111,17 +12168,18 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
12111
12168
  "objectApiName": "\${objectName}",
12112
12169
  "mode": "edit",
12113
12170
  "defaultData": doc,
12114
- "onEvent": {
12115
- "submitSucc": {
12116
- "weight": 0,
12117
- "actions": [
12118
- {
12119
- "actionType": "custom",
12120
- "script": "event.data.view?.calendar.refetchEvents();"
12121
- }
12122
- ]
12123
- }
12124
- }
12171
+ //改回为通用的提交事件
12172
+ // "onEvent": {
12173
+ // "submitSucc": {
12174
+ // "weight": 0,
12175
+ // "actions": [
12176
+ // {
12177
+ // "actionType": "custom",
12178
+ // "script": "event.data.view?.calendar.refetchEvents();"
12179
+ // }
12180
+ // ]
12181
+ // }
12182
+ // }
12125
12183
  }
12126
12184
  ],
12127
12185
  "closeOnEsc": false,
@@ -12250,6 +12308,20 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
12250
12308
  "script": "console.log('eventsSet'); console.log(event);"
12251
12309
  }
12252
12310
  ]
12311
+ },
12312
+ "getRef": {
12313
+ "weight": 0,
12314
+ "actions": [
12315
+ {
12316
+ "componentId": `service_${options.id}`,
12317
+ "args": {
12318
+ "value":{
12319
+ "calendarRef": "${event.data.calendarRef}"
12320
+ }
12321
+ },
12322
+ "actionType": "setValue",
12323
+ }
12324
+ ]
12253
12325
  }
12254
12326
  };
12255
12327
 
@@ -12285,6 +12357,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
12285
12357
  const amisSchema = {
12286
12358
  "type": "steedos-fullcalendar",
12287
12359
  "label": "",
12360
+ "id": options.id,
12288
12361
  "name": "fullcalendar",
12289
12362
  "placeholder":"${additionalFilters}",//用于触发reload
12290
12363
  "editable": permissions.allowEdit,
@@ -12307,7 +12380,7 @@ async function getObjectCalendar(objectSchema, calendarOptions, options) {
12307
12380
  * @Author: baozhoutao@steedos.com
12308
12381
  * @Date: 2022-05-26 16:02:08
12309
12382
  * @LastEditors: liaodaxue
12310
- * @LastEditTime: 2023-06-29 17:27:19
12383
+ * @LastEditTime: 2023-07-12 15:45:55
12311
12384
  * @Description:
12312
12385
  */
12313
12386
 
@@ -12366,7 +12439,11 @@ const getSection = async (formFields, permissionFields, fieldSchemaArray, sectio
12366
12439
 
12367
12440
  // fieldSet 已支持显隐控制
12368
12441
  const sectionFieldsVisibleOn = ___default.map(___default.compact(___default.map(fieldSetBody, 'visibleOn')), (visibleOn) => {
12369
- return visibleOn;
12442
+ let visible = visibleOn;
12443
+ if(visible.indexOf('${')>-1){
12444
+ visible = visible.substring(visible.indexOf('{')+1, visible.indexOf('}'));
12445
+ }
12446
+ return visible ? "("+visible+")" : visible;
12370
12447
  });
12371
12448
 
12372
12449
  let section = {
@@ -16807,6 +16884,7 @@ var index_esm$1 = /*#__PURE__*/Object.freeze({
16807
16884
  getRecordPageInitSchema: getRecordPageInitSchema,
16808
16885
  getRecordPermissions: getRecordPermissions,
16809
16886
  getRecordServiceSchema: getRecordServiceSchema,
16887
+ getReferenceTo: getReferenceTo,
16810
16888
  getRelatedFieldValue: getRelatedFieldValue,
16811
16889
  getRelatedListSchema: getRelatedListSchema,
16812
16890
  getRelatedsCount: getRelatedsCount,
@@ -17560,32 +17638,45 @@ var AmisObjectTable = function (props) { return __awaiter(void 0, void 0, void 0
17560
17638
  }); };
17561
17639
 
17562
17640
  var AmisObjectCalendar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
17563
- var top, sort, filters, filtersFunction, title, currentView, startDateExpr, endDateExpr, allDayExpr, textExpr, data, defaultData, _a, className, onEvent, config, objectApiName, amisSchemaData, schema, uiSchema, amisSchema, serviceData;
17564
- return __generator(this, function (_b) {
17565
- switch (_b.label) {
17641
+ var top, sort, filters, filtersFunction, title, currentView, startDateExpr, endDateExpr, allDayExpr, textExpr, data, defaultData, _a, className, onEvent, config, objectApiName, amisSchemaData, id, schema, uiSchema, amisSchema, serviceData;
17642
+ var _b;
17643
+ return __generator(this, function (_c) {
17644
+ switch (_c.label) {
17566
17645
  case 0:
17567
17646
  console.log("AmisObjectCalendar props", props);
17568
17647
  props.$schema, top = props.top, sort = props.sort, filters = props.filters, filtersFunction = props.filtersFunction, title = props.title, currentView = props.currentView, startDateExpr = props.startDateExpr, endDateExpr = props.endDateExpr, allDayExpr = props.allDayExpr, textExpr = props.textExpr, data = props.data, defaultData = props.defaultData, _a = props.className, className = _a === void 0 ? "" : _a, onEvent = props.onEvent, config = props.config;
17569
17648
  objectApiName = props.objectApiName || "events";
17570
17649
  amisSchemaData = Object.assign({}, data, defaultData);
17650
+ id = props.id || "steedos_object_calendar_".concat(objectApiName);
17571
17651
  return [4 /*yield*/, getCalendarSchema(amisSchemaData.appId, objectApiName, {
17572
17652
  title: title,
17573
17653
  currentView: currentView,
17574
17654
  startDateExpr: startDateExpr,
17575
17655
  endDateExpr: endDateExpr,
17576
17656
  allDayExpr: allDayExpr,
17577
- textExpr: textExpr
17578
- }, { top: top, sort: sort, filter: filters, filtersFunction: filtersFunction, onEvent: onEvent, config: config })];
17657
+ textExpr: textExpr,
17658
+ }, { top: top, sort: sort, filter: filters, filtersFunction: filtersFunction, onEvent: onEvent, config: config, id: id })];
17579
17659
  case 1:
17580
- schema = (_b.sent());
17660
+ schema = (_c.sent());
17581
17661
  uiSchema = schema.uiSchema;
17582
17662
  amisSchema = schema.amisSchema;
17583
17663
  serviceData = Object.assign({}, { objectName: objectApiName, uiSchema: uiSchema });
17584
17664
  return [2 /*return*/, {
17585
17665
  "type": "service",
17586
17666
  "body": amisSchema,
17667
+ "id": "service_".concat(id),
17587
17668
  "className": "".concat(className),
17588
- "data": serviceData
17669
+ "data": serviceData,
17670
+ "onEvent": (_b = {},
17671
+ _b["@data.changed.".concat(objectApiName)] = {
17672
+ "actions": [
17673
+ {
17674
+ "actionType": "custom",
17675
+ "script": "context.props.data.calendarRef.current.getApi().refetchEvents()"
17676
+ }
17677
+ ]
17678
+ },
17679
+ _b)
17589
17680
  }];
17590
17681
  }
17591
17682
  });
@@ -18049,8 +18140,6 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
18049
18140
  "items": {
18050
18141
  "type": "button",
18051
18142
  "level": "link",
18052
- "actionType": "link",
18053
- "link": "${path}",
18054
18143
  "body": [{
18055
18144
  "type": "tpl",
18056
18145
  "wrapperComponent": "span",
@@ -18060,6 +18149,21 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
18060
18149
  "onEvent": {
18061
18150
  "click": {
18062
18151
  "actions": [
18152
+ {
18153
+ "actionType": "link",
18154
+ "args": {
18155
+ "link": "${path}"
18156
+ }
18157
+ },
18158
+ {
18159
+ "actionType": "broadcast",
18160
+ "args": {
18161
+ "eventName": "@tabId.changed"
18162
+ },
18163
+ "data": {
18164
+ "tabId": "${event.data.id}"
18165
+ }
18166
+ },
18063
18167
  {
18064
18168
  "actionType": "closeDialog"
18065
18169
  }
@@ -18212,7 +18316,7 @@ var AmisAppMenu = function (props) { return __awaiter(void 0, void 0, void 0, fu
18212
18316
  schemaApi: {
18213
18317
  "method": "get",
18214
18318
  "url": "${context.rootUrl}/service/api/apps/".concat(appId, "/menus"),
18215
- "adaptor": "\n try {\n console.log('payload====>', payload)\n if(payload.nav_schema){\n payload.data = payload.nav_schema;\n return payload\n }\n\n const data = { nav: [] };\n const stacked = ".concat(stacked, ";\n const showIcon = ").concat(showIcon, ";\n const selectedId = '").concat(selectedId, "';\n const tab_groups = payload.tab_groups;\n if(stacked){\n _.each(_.groupBy(payload.children, 'group'), (tabs, groupName) => {\n if (groupName === 'undefined' || groupName === '') {\n _.each(tabs, (tab) => {\n data.nav.push({\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target\n // active: selectedId === tab.id,\n })\n })\n } else {\n data.nav.push({\n \"label\": groupName,\n \"unfolded\": _.find(tab_groups, {\"group_name\": groupName})?.default_open != false,\n \"children\": _.map(tabs, (tab) => {\n return {\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target\n // active: selectedId === tab.id,\n }\n })\n }) \n }\n });\n }else{\n _.each(payload.children, (tab)=>{\n data.nav.push({\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target\n // active: selectedId === tab.id,\n });\n })\n }\n payload.data = {\n \"type\": \"nav\",\n className: \"").concat(className, "\",\n \"stacked\": ").concat(stacked, ",\n \"overflow\": ").concat(JSON.stringify(overflow), ",\n \"indentSize\": ").concat(indentSize, ",\n \"links\": data.nav,\n };\n } catch (error) {\n console.log(`error`, error)\n }\n console.log('payload===2==>', payload)\n return payload;\n "),
18319
+ "adaptor": "\n try {\n console.log('payload====>', payload)\n if(payload.nav_schema){\n payload.data = payload.nav_schema;\n return payload\n }\n\n const data = { nav: [] };\n const stacked = ".concat(stacked, ";\n const showIcon = ").concat(showIcon, ";\n const selectedId = '").concat(selectedId, "';\n const tab_groups = payload.tab_groups;\n const locationPathname = window.location.pathname;\n var customTabId = \"\";\n var objectTabId = \"\";\n if(stacked){\n _.each(_.groupBy(payload.children, 'group'), (tabs, groupName) => {\n if (groupName === 'undefined' || groupName === '') {\n _.each(tabs, (tab) => {\n if(locationPathname == tab.path){\n customTabId = tab.id;\n }else if(locationPathname.startsWith(tab.path + \"/\")){\n objectTabId = tab.id;\n }\n data.nav.push({\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target,\n \"id\": tab.id,\n \"activeOn\": \"\\\\${tabId == '\"+ tab.id +\"'}\"\n // active: selectedId === tab.id,\n })\n })\n } else {\n data.nav.push({\n \"label\": groupName,\n \"unfolded\": _.find(tab_groups, {\"group_name\": groupName})?.default_open != false,\n \"children\": _.map(tabs, (tab) => {\n if(locationPathname == tab.path){\n customTabId = tab.id;\n }else if(locationPathname.startsWith(tab.path + \"/\")){\n objectTabId = tab.id;\n }\n return {\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target,\n \"id\": tab.id,\n \"activeOn\": \"\\\\${tabId == '\"+ tab.id +\"'}\"\n // active: selectedId === tab.id,\n }\n })\n }) \n }\n });\n }else{\n _.each(payload.children, (tab)=>{\n if(locationPathname == tab.path){\n customTabId = tab.id;\n }else if(locationPathname.startsWith(tab.path + \"/\")){\n objectTabId = tab.id;\n }\n data.nav.push({\n \"label\": showIcon ? {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[15px] font-medium rounded-md'><svg class=\"mr-1 flex-shrink-0 h-6 w-6\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg>${tab.name}</span>`\n } : tab.name,\n \"to\": tab.path,\n \"target\":tab.target,\n \"id\": tab.id,\n \"activeOn\": \"\\\\${tabId == '\"+ tab.id +\"'}\"\n // active: selectedId === tab.id,\n });\n })\n }\n\n payload.data = {\n \"type\":\"service\",\n \"data\":{\n \"tabId\": customTabId || objectTabId,\n \"items\": data.nav\n },\n \"id\": \"appMenuService\",\n \"body\":{\n \"type\": \"nav\",\n className: \"").concat(className, "\",\n \"stacked\": ").concat(stacked, ",\n \"overflow\": ").concat(JSON.stringify(overflow), ",\n \"indentSize\": ").concat(indentSize, ",\n \"source\": \"${items}\",\n \"onEvent\": {\n \"click\": {\n \"actions\": [\n {\n \"actionType\": \"setValue\",\n \"componentId\": \"appMenuService\",\n \"args\": {\n \"value\": {\n \"tabId\": \"${event.data.item.id}\",\n \"items\": data.nav\n }\n },\n \"expression\":\"${event.data.item.id}\"\n }\n ]\n },\n \"@tabId.changed\":{\n \"actions\":[\n {\n \"actionType\": \"setValue\",\n \"componentId\": \"appMenuService\",\n \"args\": {\n \"value\": {\n \"tabId\": \"${event.data.tabId}\",\n \"items\": data.nav\n }\n },\n \"expression\":\"${event.data.tabId}\"\n }\n ]\n }\n }\n }\n };\n } catch (error) {\n console.log(`error`, error)\n }\n console.log('payload===2==>', payload)\n return payload;\n "),
18216
18320
  "headers": {
18217
18321
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
18218
18322
  }
@@ -18264,7 +18368,7 @@ var AmisGlobalFooter = function (props) { return __awaiter(void 0, void 0, void
18264
18368
  schemaApi: {
18265
18369
  "method": "get",
18266
18370
  "url": "${context.rootUrl}/service/api/apps/".concat(appId, "/menus?mobile=true"),
18267
- "adaptor": "\n try {\n\n if(payload.children.length == 0){\n payload.data = {};\n return payload\n }\n const data = { nav: [] };\n const stacked = ".concat(stacked, ";\n const showIcon = ").concat(showIcon, ";\n const selectedId = '").concat(selectedId, "';\n let sum = 0;\n _.each(payload.children, (tab)=>{\n sum++;\n const classIcon = tab.icon.replace(/_/g,\"-\");\n if(sum >= 5){\n data.nav.push({\n \"label\": {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\"slds-icon slds-icon_container slds-icon-standard-`+classIcon+` flex-shrink-0 h-10 w-10\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg><span>${tab.name}</span><i class=\"fa fa-angle-right\" aria-hidden=\"true\" style=\"position: absolute;right: 20px;color: #bababa;\"></i></span>`,\n className:'h-full flex items-center'\n },\n \"to\": tab.path,\n \"target\":tab.target\n });\n }else{\n data.nav.push({\n \"label\": {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 truncate text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\"slds-icon slds-icon_container slds-icon-standard-`+classIcon+` flex-shrink-0 h-10 w-10\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg><span class=\"truncate\" style=\"max-width: 20vw\">${tab.name}</span></span>`,\n className:'h-full flex items-center'\n },\n \"to\": tab.path,\n \"target\":tab.target\n });\n }\n \n })\n\n payload.data = {\n \"type\": \"nav\",\n className: payload.children.length ==1 ? '").concat(className1, "' : '").concat(className, "',\n \"stacked\": ").concat(stacked, ",\n \"overflow\": {\n \"enable\": true,\n \"maxVisibleCount\": 4,\n \"overflowPopoverClassName\": \"steedos-global-footer-popup\",\n \"overflowLabel\":{\n \"type\": 'tpl',\n \"tpl\": `<span class='fill-slate-500 truncate text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\" flex-shrink-0 h-10 w-10\" style=\"padding:7px\"><use xlink:href=\"/assets/icons/utility-sprite/svg/symbols.svg#rows\"></use></svg><span class=\"truncate\" style=\"max-width: 20vw\">").concat(instance.t('frontend_menu'), "</span></span>`,\n \"className\":'h-full flex items-center'\n },\n \"overflowIndicator\":\"\"\n },\n \"indentSize\": ").concat(indentSize, ",\n \"links\": data.nav,\n };\n } catch (error) {\n console.log(`error`, error)\n }\n return payload;\n "),
18371
+ "adaptor": "\n try {\n if(payload.children.length == 0){\n payload.data = {};\n return payload\n }\n const data = { nav: [] };\n const stacked = ".concat(stacked, ";\n const showIcon = ").concat(showIcon, ";\n const selectedId = '").concat(selectedId, "';\n const locationPathname = window.location.pathname;\n var customTabId = \"\";\n var objectTabId = \"\";\n let sum = 0;\n _.each(payload.children, (tab)=>{\n sum++;\n const classIcon = tab.icon.replace(/_/g,\"-\");\n if(locationPathname == tab.path){\n customTabId = tab.id;\n }else if(locationPathname.startsWith(tab.path + \"/\")){\n objectTabId = tab.id;\n }\n if(sum >= 5){\n data.nav.push({\n \"label\": {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\"slds-icon slds-icon_container slds-icon-standard-`+classIcon+` flex-shrink-0 h-10 w-10\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg><span>${tab.name}</span><i class=\"fa fa-angle-right\" aria-hidden=\"true\" style=\"position: absolute;right: 20px;color: #bababa;\"></i></span>`,\n className:'h-full flex items-center'\n },\n \"to\": tab.path,\n \"target\":tab.target,\n \"id\": tab.id,\n \"activeOn\": \"\\\\${tabId == '\"+ tab.id +\"'}\"\n });\n }else{\n data.nav.push({\n \"label\": {\n type: 'tpl',\n tpl: `<span class='fill-slate-500 truncate text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\"slds-icon slds-icon_container slds-icon-standard-`+classIcon+` flex-shrink-0 h-10 w-10\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#${tab.icon || 'account'}\"></use></svg><span class=\"truncate\" style=\"max-width: 20vw\">${tab.name}</span></span>`,\n className:'h-full flex items-center'\n },\n \"to\": tab.path,\n \"target\":tab.target,\n \"id\": tab.id,\n \"activeOn\": \"\\\\${tabId == '\"+ tab.id +\"'}\"\n });\n }\n })\n\n payload.data = {\n \"type\": \"service\",\n \"data\":{\n \"tabId\": customTabId || objectTabId,\n \"items\": data.nav\n },\n \"id\": \"footerService\",\n \"body\": {\n \"type\": \"nav\",\n className: payload.children.length ==1 ? '").concat(className1, "' : '").concat(className, "',\n \"stacked\": ").concat(stacked, ",\n \"overflow\": {\n \"enable\": true,\n \"maxVisibleCount\": 4,\n \"overflowPopoverClassName\": \"steedos-global-footer-popup\",\n \"overflowLabel\":{\n \"type\": 'tpl',\n \"tpl\": `<span class='fill-slate-500 truncate text-slate-700 block -ml-px no-underline group flex items-center text-[12px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\" flex-shrink-0 h-10 w-10\" style=\"padding:7px\"><use xlink:href=\"/assets/icons/utility-sprite/svg/symbols.svg#rows\"></use></svg><span class=\"truncate\" style=\"max-width: 20vw\">").concat(instance.t('frontend_menu'), "</span></span>`,\n \"className\":'h-full flex items-center'\n },\n \"overflowIndicator\":\"\"\n },\n \"indentSize\": ").concat(indentSize, ",\n \"source\": \"${items}\",\n \"onEvent\": {\n \"click\": {\n \"actions\": [\n {\n \"actionType\": \"setValue\",\n \"componentId\": \"footerService\",\n \"args\": {\n \"value\": {\n \"tabId\": \"${event.data.item.id}\",\n \"items\": data.nav\n }\n },\n \"expression\":\"${event.data.item.id}\"\n }\n ]\n },\n \"@tabId.changed\":{\n \"actions\":[\n {\n \"actionType\": \"setValue\",\n \"componentId\": \"footerService\",\n \"args\": {\n \"value\": {\n \"tabId\": \"${event.data.tabId}\",\n \"items\": data.nav\n }\n },\n \"expression\":\"${event.data.tabId}\"\n }\n ]\n }\n }\n }\n \n };\n } catch (error) {\n console.log(`error`, error)\n }\n return payload;\n "),
18268
18372
  "headers": {
18269
18373
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
18270
18374
  }
@@ -18880,12 +18984,13 @@ var AmisGlobalHeader = function (props) { return __awaiter(void 0, void 0, void
18880
18984
  }); };
18881
18985
 
18882
18986
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
18883
- var steedosField, field, _a, readonly, _b, ctx, config, $schema, schema, error_1;
18884
- return __generator(this, function (_c) {
18885
- switch (_c.label) {
18987
+ var steedosField, field, _a, readonly, _b, ctx, config, $schema, fStatic, objectName, filters, valueFieldKey, labelFieldKey, referenceTo, referenceToField, value, _steedosField, referenceTo, referenceToField, schema, schema, error_1;
18988
+ var _c, _d, _e, _f, _g;
18989
+ return __generator(this, function (_h) {
18990
+ switch (_h.label) {
18886
18991
  case 0:
18887
18992
  steedosField = null;
18888
- field = props.field, _a = props.readonly, readonly = _a === void 0 ? false : _a, _b = props.ctx, ctx = _b === void 0 ? {} : _b, config = props.config, $schema = props.$schema;
18993
+ field = props.field, _a = props.readonly, readonly = _a === void 0 ? false : _a, _b = props.ctx, ctx = _b === void 0 ? {} : _b, config = props.config, $schema = props.$schema, fStatic = props.static;
18889
18994
  // console.log(`AmisSteedosField`, props)
18890
18995
  if ($schema.config && isString($schema.config)) {
18891
18996
  $schema.config = JSON.parse($schema.config);
@@ -18906,19 +19011,66 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
18906
19011
  steedosField = JSON.parse(field);
18907
19012
  }
18908
19013
  }
18909
- _c.label = 1;
19014
+ _h.label = 1;
18910
19015
  case 1:
18911
- _c.trys.push([1, 3, , 4]);
18912
- return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, readonly, ctx)];
19016
+ _h.trys.push([1, 9, , 10]);
19017
+ if (!(fStatic && (steedosField.type === 'lookup' || steedosField.type === 'master_detail'))) return [3 /*break*/, 6];
19018
+ objectName = void 0, filters = void 0, valueFieldKey = void 0, labelFieldKey = void 0;
19019
+ if (!props.data[steedosField.name]) {
19020
+ return [2 /*return*/, {}];
19021
+ }
19022
+ if (!isString(steedosField.reference_to)) return [3 /*break*/, 3];
19023
+ return [4 /*yield*/, getReferenceTo(steedosField)];
18913
19024
  case 2:
18914
- schema = _c.sent();
18915
- // console.log(`schema`, schema)
18916
- return [2 /*return*/, schema];
19025
+ referenceTo = _h.sent();
19026
+ referenceToField = steedosField.reference_to_field || '_id';
19027
+ objectName = referenceTo.objectName;
19028
+ valueFieldKey = referenceTo && ((_c = referenceTo.valueField) === null || _c === void 0 ? void 0 : _c.name) || '_id';
19029
+ labelFieldKey = referenceTo && ((_d = referenceTo.labelField) === null || _d === void 0 ? void 0 : _d.name) || 'name';
19030
+ value = props.data[steedosField.name];
19031
+ if (isString(value)) {
19032
+ value = [value];
19033
+ }
19034
+ filters = [referenceToField, "in", value];
19035
+ return [3 /*break*/, 5];
18917
19036
  case 3:
18918
- error_1 = _c.sent();
19037
+ _steedosField = __assign$2(__assign$2({}, steedosField), { reference_to: props.data[steedosField.name].o });
19038
+ return [4 /*yield*/, getReferenceTo(_steedosField)];
19039
+ case 4:
19040
+ referenceTo = _h.sent();
19041
+ referenceToField = _steedosField.reference_to_field || '_id';
19042
+ objectName = referenceTo.objectName;
19043
+ valueFieldKey = referenceTo && ((_e = referenceTo.valueField) === null || _e === void 0 ? void 0 : _e.name) || '_id';
19044
+ labelFieldKey = referenceTo && ((_f = referenceTo.labelField) === null || _f === void 0 ? void 0 : _f.name) || 'name';
19045
+ filters = [referenceToField, "in", props.data[_steedosField.name].ids];
19046
+ _h.label = 5;
19047
+ case 5:
19048
+ schema = Object.assign({}, {
19049
+ type: 'select',
19050
+ multiple: steedosField.multiple,
19051
+ name: steedosField.name,
19052
+ label: steedosField.label,
19053
+ static: true,
19054
+ className: (_g = steedosField.amis) === null || _g === void 0 ? void 0 : _g.className,
19055
+ source: {
19056
+ "method": "post",
19057
+ "url": "${context.rootUrl}/graphql",
19058
+ "requestAdaptor": "\n api.data = {\n query: '{options:".concat(objectName, "(filters: ").concat(JSON.stringify(filters), "){label: ").concat(labelFieldKey, ",value: ").concat(valueFieldKey, "}}'\n }\n return api;\n ")
19059
+ }
19060
+ }, pick(steedosField.amis || {}, ['className', 'inline', 'label', 'labelAlign', 'name', 'labelRemark', 'description', 'placeholder', 'staticClassName', 'staticLabelClassName', 'staticInputClassName', 'staticSchema']));
19061
+ // console.log(`AmisSteedosField return schema`, schema)
19062
+ return [2 /*return*/, schema];
19063
+ case 6: return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, readonly, ctx)];
19064
+ case 7:
19065
+ schema = _h.sent();
19066
+ // console.log(`AmisSteedosField return schema`, schema)
19067
+ return [2 /*return*/, schema];
19068
+ case 8: return [3 /*break*/, 10];
19069
+ case 9:
19070
+ error_1 = _h.sent();
18919
19071
  console.log("error", error_1);
18920
- return [3 /*break*/, 4];
18921
- case 4: return [2 /*return*/, null];
19072
+ return [3 /*break*/, 10];
19073
+ case 10: return [2 /*return*/, null];
18922
19074
  }
18923
19075
  });
18924
19076
  }); };
@@ -19211,7 +19363,7 @@ var PageObject = function (props) { return __awaiter(void 0, void 0, void 0, fun
19211
19363
  });
19212
19364
  }); };
19213
19365
 
19214
- var __assign=function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},StandardObjects={Base:{Actions:{standard_query:{visible:function(e,t,r){return !1}},standard_new:{visible:function(e,t,r){return "cms_files"!==e&&"instances"!==e&&(r?r.allowCreate:void 0)}},standard_edit:{visible:function(e,t,r){if(r)return r.allowEdit}},standard_delete:{visible:function(e,t,r){if(r)return r.allowDelete}},standard_import_data:{visible:function(e,t,r){var n=this.object;if(r)return r.allowCreate&&n.hasImportTemplates}},standard_approve:{visible:function(e,t,r){return !1}},standard_view_instance:{visible:function(e,t,r){return !1}},standard_submit_for_approval:{visible:function(e,t,r){return window.Steedos.ProcessManager.allowSubmit.apply(this,[e,t])},todo:function(e,t){return window.Steedos.ProcessManager.submit.apply(this,[e,t])}},standard_follow:{visible:function(e,t,r){return !1}},standard_delete_many:{visible:function(e,t,r){return !RegExp("\\w+/view/\\w+").test(location.pathname)&&(r?r.allowDelete:void 0)}},standard_export_excel:{visible:function(e,t,r){return !1}}}}},authRequest=function(e,t){var i=null;e=Steedos.absoluteUrl(e);try{var r=[{name:"Content-Type",value:"application/json"},{name:"Authorization",value:Steedos.getAuthorization()}],n={type:"get",url:e,dataType:"json",contentType:"application/json",beforeSend:function(t){if(r&&r.length)return r.forEach(function(e){return t.setRequestHeader(e.name,e.value)})},success:function(e){i=e;},error:function(e,t,r){var n,o;e.responseJSON&&e.responseJSON.error?(n=e.responseJSON.error,o=void(i={error:n}),o=n.reason||n.message||n,console.error(o)):console.error(e.responseJSON);}};return $.ajax(Object.assign({},n,t)),i}catch(e){console.error(e);}};function _extends(){return (_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}const newFunctionComponent=o=>e=>{const[t,r]=useState(!0);var n=()=>{r(!1);};return has(e,"ref")||(window.SteedosUI.refs[e.name]={show:()=>{r(!0);},close:n}),React.createElement(o,_extends({visible:t,onCancel:n,onClose:n},{width:"70%",style:{width:"70%",maxWidth:"950px",minWidth:"480px"}},e))},newComponentRender=(r,n)=>(e,t)=>{e.name||(e.name=r+"-"+(e.name||"default")),(t=t||document.getElementById(`steedos-${r}-root-`+e.name))||((t=document.createElement("div")).setAttribute("id",`steedos-${r}-root-`+e.name),document.body.appendChild(t));e=React.createElement(newFunctionComponent(n),e);createRoot(t).render(e);},Modal=assign(newComponentRender("modal",Modal$1),{info:Modal$1.info,success:Modal$1.success,error:Modal$1.error,warning:Modal$1.warning,confirm:Modal$1.confirm}),Drawer=newComponentRender("drawer",Drawer$1),getGraphqlFieldsQuery=e=>{const t=["_id"];return e.push("record_permissions"),each(e,e=>{-1<e.indexOf(".")&&(e=e.split(".")[0]),t.push(""+e);}),""+t.join(" ")},getFindOneQuery=(e,t,r)=>{e=e.replace(/\./g,"_");r=getGraphqlFieldsQuery(r);let n="";t=[`id: "${t}"`];return `{record:${e}__findOne${n=0<t.length?`(${t.join(",")})`:n}{${r}}}`},SObject={getRecord:async(e,t,r)=>{return (await fetchAPI("/graphql",{method:"post",body:JSON.stringify({query:getFindOneQuery(e,t,r)})})).data.record},getUISchema:async(e,t)=>getUISchema(e,t)},canSaveFilter=e=>!(!e._id||e.owner!==getSteedosAuth()?.userId),ListView={showFilter:(e,{listView:t,data:r})=>{canSaveFilter(t);r.filters&&(r.filters=filtersToConditions(r.filters));},getVisibleFilter:(e,t)=>{return t||(canSaveFilter(e)?e.filters:void 0)},getQueryFilter:(e,t)=>{return canSaveFilter(e)?ListView.getVisibleFilter(e,t):isEmpty(t)?e.filters:[e.filters,"and",t]},getFirstListView:async e=>{e=await window.getUISchema(e);return _.first(_.sortBy(_.values(e.list_views),"sort_no"))}},Router={getAppPath({appId:e}){return "/app/"+e},getPagePath(){},getObjectListViewPath({appId:e,objectName:t,listViewName:r}){return `/app/${e}/${t}/grid/`+r},getObjectDetailPath({appId:e,objectName:t,recordId:r}){return `/app/${e}/${t}/view/`+r},getObjectRelatedViewPath({appId:e,masterObjectName:t,masterRecordId:r,objectName:n,foreignKey:o}){return `/app/${e}/${t}/${r}/${n}/grid?related_field_name=`+o}};var withModalWrap=function(t,e){return function(e){return createElement(t,e)}},render=function(e,t,r,n){e=withModalWrap(e),e=createElement(e,__assign({},t));return ReactDOM.render(e,r)};const safeRunFunction=(t,r,n,o)=>{try{var i=window.Creator;if(!!(!i||!i.getObjectUrl)&&/\bSteedos\b|\bCreator\b|\bMeteor\b|\bSession\b/.test(t))return console.info("调用了Creator|Steedos|Meteor|Session变量的脚本不执行,直接按空值处理。"),"";let e=[];return isNil(r)||(e=isArray(r)?r:[r]),t.bind(o||{})(...e)}catch(e){return console.log(e),n}};function safeEval(js){try{return eval(js)}catch(e){console.error(e,js);}}const isExpression=function(e){var t,r;return "string"==typeof e&&(t=/^{{(function.+)}}$/,r=/^{{(.+=>.+)}}$/,!("string"!=typeof e||!e.match(/^{{(.+)}}$/)||e.match(t)||e.match(r)))},parseSingleExpression=function(t,e,r,n){var o,i=function(e,t){return "#"!==t&&t?"string"==typeof t?_.get(e,t):void console.error("path has to be a string"):e||{}}(e=void 0===e?{}:e,function(e){return "string"!=typeof e||1===(e=e.split(".")).length?"#":(e.pop(),e.join("."))}(r))||{};if("string"!=typeof t)return t;o="__G_L_O_B_A_L__",e="\n return "+t.substring(2,t.length-2).replace(/\bformData\b/g,JSON.stringify(e).replace(/\bglobal\b/g,o)).replace(/\bglobal\b/g,JSON.stringify(n)).replace(new RegExp("\\b"+o+"\\b","g"),"global").replace(/rootValue/g,JSON.stringify(i));try{return Function(e)()}catch(e){return console.log(e,t,r),t}};var Expression=Object.freeze({__proto__:null,isExpression:isExpression,parseSingleExpression:parseSingleExpression});const getCompatibleDefaultValueExpression=(e,t)=>{let r=e;return /^\{\w+(\.*\w+)*\}$/.test(e)&&(r=-1<e.indexOf("userId")||-1<e.indexOf("spaceId")||-1<e.indexOf("user.")||-1<e.indexOf("now")?`{${e}}`.replace("{{","{{global."):`{${e}}`.replace("{{","{{formData."),t&&(r=r.replace(/\{\{(.+)\}\}/,"{{[$1]}}"))),r},getFieldDefaultValue=(e,t)=>{if(!e)return null;let r=e.defaultValue;e._defaultValue&&(r=safeEval(`(${e._defaultValue})`)),isFunction(r)&&(r=safeRunFunction(r,[],null,{name:e.name})),isString(r)&&(r=getCompatibleDefaultValueExpression(r,e.multiple));var n=isExpression(r);return n&&(r=parseSingleExpression(r,{},"#",t)),"select"===e.type&&(t=e.data_type||"text",!r||n||e.multiple||("text"!==t||isString(r)?"number"!==t||isNumber(r)?"boolean"!==t||isBoolean(r)||(r="true"===r):r=Number(r):r=String(r))),r};function getTreeOptions(t,e){const o=e?.valueField||"value";e?.labelField;const r=e?.unfoldedNum||1,n=[],i=(t,r,n)=>{var e;if(r)return e=_.filter(t,e=>_.includes(r,e[o])),_.each(e,e=>{1<=n?(e.unfolded=!0,e.children&&(e.children=i(t,e.children,n-1))):e.children&&(e.children=i(t,e.children,n));}),e};for(var a=t,s=0;s<a.length;s++)if(a[s].noParent=0,a[s].unfolded=!1,a[s].parent){let e=1;for(var l=0;l<a.length;l++)a[s].parent==a[l][o]&&(e=0);1==e&&(a[s].noParent=1);}else a[s].noParent=1;return _.each(t,e=>{1==e.noParent&&(1<=r?(e.unfolded=!0,n.push(Object.assign({},e,{children:i(t,e.children,r-1)}))):n.push(Object.assign({},e,{children:i(t,e.children,r)})));}),n}function getClosestAmisComponentByType(t,r,n){let o=(n=n||{}).name;var e=n.direction||"up";let i=t.getComponents().find(function(e){return e.props.type===r&&(!o||e.props.name===o)});if(i)return i;if("down"===e){if(t.children&&t.children.length){for(let e=0;e<t.children.length&&!(i=getClosestAmisComponentByType(t.children[e],r,n));e++);return i}}else if("up"===e&&t.parent)return getClosestAmisComponentByType(t.parent,r,n)}function isFilterFormValuesEmpty(e){let t=!0;var e=_.pickBy(e,function(e,t){return /^__searchable__/g.test(t)});return _.isEmpty(e)||(e=_.omitBy(e,function(e){return _.isNil(e)||_.isObject(e)&&_.isEmpty(e)||_.isArray(e)&&_.isEmpty(e.filter(function(e){return !_.isNil(e)}))||_.isString(e)&&0===e.length}),_.isEmpty(e)||(t=!1)),t}const SteedosUI$1=Object.assign({},{render:render,Router:Router,ListView:ListView,Object:SObject,Modal:Modal,Drawer:Drawer,refs:{},getRef(e){return SteedosUI$1.refs[e]},router:{go:(e,t)=>{var r=window.FlowRouter;if(t)return r?r.go(t):window.open(t);r?r.reload():console.warn("暂不支持自动跳转",e);},reload:()=>{console.log("reload");}},message:message,notification:notification,components:{Button:Button,Space:Space},getRefId:({type:e,appId:t,name:r})=>{switch(e){case"listview":return `amis-${t}-${r}-listview`;case"form":return `amis-${t}-${r}-form`;case"detail":return `amis-${t}-${r}-detail`;default:return `amis-${t}-${r}-`+e}},reloadRecord:()=>{if(window.FlowRouter)return window.FlowRouter.reload()},getFieldDefaultValue:getFieldDefaultValue,getTreeOptions:getTreeOptions,getClosestAmisComponentByType:getClosestAmisComponentByType,isFilterFormValuesEmpty:isFilterFormValuesEmpty,getSearchFilter:e=>{var o=[];return _.each(e,(e,t)=>{var r,n;_.isEmpty(e)&&!_.isBoolean(e)||(_.startsWith(t,"__searchable__between__")?o.push([""+t.replace("__searchable__between__",""),"between",e]):_.startsWith(t,"__searchable__")&&(_.isString(e)?o.push([""+t.replace("__searchable__",""),"contains",e]):_.isObject(e)&&e.o?(n=[[(r=""+t.replace("__searchable__",""))+"/o","=",e.o]],e.ids.length&&n.push([r+"/ids","=",e.ids]),o.push(n)):o.push([""+t.replace("__searchable__",""),"=",e])));}),o}});var getBuilderContext=function(){return "undefined"==typeof window?{}:Builder.settings.context||Builder.settings},Steedos$1=__assign({getRootUrl:function(e){var t=getBuilderContext();return t.rootUrl||("undefined"!=typeof window?window.localStorage.getItem("steedos:rootUrl"):"")||e},absoluteUrl:function(e){return void 0===e&&(e=""),"".concat(Steedos$1.getRootUrl()).concat(e)},getTenantId:function(){try{var e=getBuilderContext().tenantId;return (e=window.location.search&&!e?new URLSearchParams(window.location.search).get("X-Space-Id"):e)?e:null}catch(e){console.error(e);}},getAuthorization:function(){try{var e=getBuilderContext(),t=e.tenantId,r=e.authToken;return t&&r?"Bearer ".concat(t,",").concat(r):null}catch(e){console.error(e);}},authRequest:authRequest,StandardObjects:StandardObjects},Expression);"undefined"==typeof window||window.Steedos||(window.Steedos=Steedos$1),"undefined"==typeof window||window.SteedosUI||(window.SteedosUI=SteedosUI$1);
19366
+ var __assign=function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},StandardObjects={Base:{Actions:{standard_query:{visible:function(e,t,r){return !1}},standard_new:{visible:function(e,t,r){return "cms_files"!==e&&"instances"!==e&&(r?r.allowCreate:void 0)}},standard_edit:{visible:function(e,t,r){if(r)return r.allowEdit}},standard_delete:{visible:function(e,t,r){if(r)return r.allowDelete}},standard_import_data:{visible:function(e,t,r){var n=this.object;if(r)return r.allowCreate&&n.hasImportTemplates}},standard_approve:{visible:function(e,t,r){return !1}},standard_view_instance:{visible:function(e,t,r){return !1}},standard_submit_for_approval:{visible:function(e,t,r){return window.Steedos.ProcessManager.allowSubmit.apply(this,[e,t])},todo:function(e,t){return window.Steedos.ProcessManager.submit.apply(this,[e,t])}},standard_follow:{visible:function(e,t,r){return !1}},standard_delete_many:{visible:function(e,t,r){return !RegExp("\\w+/view/\\w+").test(location.pathname)&&(r?r.allowDelete:void 0)}},standard_export_excel:{visible:function(e,t,r){return !1}}}}},authRequest=function(e,t){var i=null;e=Steedos.absoluteUrl(e);try{var r=[{name:"Content-Type",value:"application/json"},{name:"Authorization",value:Steedos.getAuthorization()}],n={type:"get",url:e,dataType:"json",contentType:"application/json",beforeSend:function(t){if(r&&r.length)return r.forEach(function(e){return t.setRequestHeader(e.name,e.value)})},success:function(e){i=e;},error:function(e,t,r){var n,o;e.responseJSON&&e.responseJSON.error?(n=e.responseJSON.error,o=void(i={error:n}),o=n.reason||n.message||n,console.error(o)):console.error(e.responseJSON);}};return $.ajax(Object.assign({},n,t)),i}catch(e){console.error(e);}};function _extends(){return (_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}const newFunctionComponent=o=>e=>{const[t,r]=useState(!0);var n=()=>{r(!1);};return has(e,"ref")||(window.SteedosUI.refs[e.name]={show:()=>{r(!0);},close:n}),React.createElement(o,_extends({visible:t,onCancel:n,onClose:n},{width:"70%",style:{width:"70%",maxWidth:"950px",minWidth:"480px"}},e))},newComponentRender=(r,n)=>(e,t)=>{e.name||(e.name=r+"-"+(e.name||"default")),(t=t||document.getElementById(`steedos-${r}-root-`+e.name))||((t=document.createElement("div")).setAttribute("id",`steedos-${r}-root-`+e.name),document.body.appendChild(t));e=React.createElement(newFunctionComponent(n),e);createRoot(t).render(e);},Modal=assign(newComponentRender("modal",Modal$1),{info:Modal$1.info,success:Modal$1.success,error:Modal$1.error,warning:Modal$1.warning,confirm:Modal$1.confirm}),Drawer=newComponentRender("drawer",Drawer$1),getGraphqlFieldsQuery=e=>{const t=["_id"];return e.push("record_permissions"),each(e,e=>{-1<e.indexOf(".")&&(e=e.split(".")[0]),t.push(""+e);}),""+t.join(" ")},getFindOneQuery=(e,t,r)=>{e=e.replace(/\./g,"_");r=getGraphqlFieldsQuery(r);let n="";t=[`id: "${t}"`];return `{record:${e}__findOne${n=0<t.length?`(${t.join(",")})`:n}{${r}}}`},SObject={getRecord:async(e,t,r)=>{return (await fetchAPI("/graphql",{method:"post",body:JSON.stringify({query:getFindOneQuery(e,t,r)})})).data.record},getUISchema:async(e,t)=>getUISchema(e,t)},canSaveFilter=e=>!(!e._id||e.owner!==getSteedosAuth()?.userId),ListView={showFilter:(e,{listView:t,data:r})=>{canSaveFilter(t);r.filters&&(r.filters=filtersToConditions(r.filters));},getVisibleFilter:(e,t)=>{return t||(canSaveFilter(e)?e.filters:void 0)},getQueryFilter:(e,t)=>{return canSaveFilter(e)?ListView.getVisibleFilter(e,t):isEmpty(t)?e.filters:[e.filters,"and",t]},getFirstListView:async e=>{e=await window.getUISchema(e);return _.first(_.sortBy(_.values(e.list_views),"sort_no"))}},Router={getAppPath({appId:e}){return "/app/"+e},getPagePath(){},getObjectListViewPath({appId:e,objectName:t,listViewName:r}){return `/app/${e}/${t}/grid/`+r},getObjectDetailPath({appId:e,objectName:t,recordId:r}){return `/app/${e}/${t}/view/`+r},getObjectRelatedViewPath({appId:e,masterObjectName:t,masterRecordId:r,objectName:n,foreignKey:o}){return `/app/${e}/${t}/${r}/${n}/grid?related_field_name=`+o}};var withModalWrap=function(t,e){return function(e){return createElement(t,e)}},render=function(e,t,r,n){e=withModalWrap(e),e=createElement(e,__assign({},t));return ReactDOM.render(e,r)};const safeRunFunction=(t,r,n,o)=>{try{var i=window.Creator;if(!!(!i||!i.getObjectUrl)&&/\bSteedos\b|\bCreator\b|\bMeteor\b|\bSession\b/.test(t))return console.info("调用了Creator|Steedos|Meteor|Session变量的脚本不执行,直接按空值处理。"),"";let e=[];return isNil(r)||(e=isArray(r)?r:[r]),t.bind(o||{})(...e)}catch(e){return console.log(e),n}};function safeEval(js){try{return eval(js)}catch(e){console.error(e,js);}}const isExpression=function(e){var t,r;return "string"==typeof e&&(t=/^{{(function.+)}}$/,r=/^{{(.+=>.+)}}$/,!("string"!=typeof e||!e.match(/^{{(.+)}}$/)||e.match(t)||e.match(r)))},parseSingleExpression=function(t,e,r,n){var o,i=function(e,t){return "#"!==t&&t?"string"==typeof t?_.get(e,t):void console.error("path has to be a string"):e||{}}(e=void 0===e?{}:e,function(e){return "string"!=typeof e||1===(e=e.split(".")).length?"#":(e.pop(),e.join("."))}(r))||{};if("string"!=typeof t)return t;o="__G_L_O_B_A_L__",e="\n return "+t.substring(2,t.length-2).replace(/\bformData\b/g,JSON.stringify(e).replace(/\bglobal\b/g,o)).replace(/\bglobal\b/g,JSON.stringify(n)).replace(new RegExp("\\b"+o+"\\b","g"),"global").replace(/rootValue/g,JSON.stringify(i));try{return Function(e)()}catch(e){return console.log(e,t,r),t}};var Expression=Object.freeze({__proto__:null,isExpression:isExpression,parseSingleExpression:parseSingleExpression});const getCompatibleDefaultValueExpression=(express,multiple)=>{const reg=/^\{\w+(\.*\w+)*\}$/,reg2=/^{{[\s\S]*}}$/;let result=express;if(reg.test(express)&&(result=-1<express.indexOf("userId")||-1<express.indexOf("spaceId")||-1<express.indexOf("user.")||-1<express.indexOf("now")?`{${express}}`.replace("{{","{{global."):`{${express}}`.replace("{{","{{formData."),multiple&&(result=result.replace(/\{\{(.+)\}\}/,"{{[$1]}}"))),reg2.test(express)&&(-1<express.indexOf("function")||-1<express.indexOf("=>"))){let regex=/\{\{([\s\S]*)\}\}/,matches=regex.exec(express);if(matches&&1<matches.length){let functionCode=matches[1];result=eval("("+functionCode+")")();}}return result},getFieldDefaultValue=(e,t)=>{if(!e)return null;let r=e.defaultValue;e._defaultValue&&(r=safeEval(`(${e._defaultValue})`)),isFunction(r)&&(r=safeRunFunction(r,[],null,{name:e.name})),isString(r)&&(r=getCompatibleDefaultValueExpression(r,e.multiple));var n=isExpression(r);return n&&(r=parseSingleExpression(r,{},"#",t)),"select"===e.type&&(t=e.data_type||"text",!r||n||e.multiple||("text"!==t||isString(r)?"number"!==t||isNumber(r)?"boolean"!==t||isBoolean(r)||(r="true"===r):r=Number(r):r=String(r))),r};function getTreeOptions(t,e){const o=e?.valueField||"value";e?.labelField;const r=e?.unfoldedNum||1,n=[],i=(t,r,n)=>{var e;if(r)return e=_.filter(t,e=>_.includes(r,e[o])),_.each(e,e=>{1<=n?(e.unfolded=!0,e.children&&(e.children=i(t,e.children,n-1))):e.children&&(e.children=i(t,e.children,n));}),e};for(var s=t,a=0;a<s.length;a++)if(s[a].noParent=0,s[a].unfolded=!1,s[a].parent){let e=1;for(var l=0;l<s.length;l++)s[a].parent==s[l][o]&&(e=0);1==e&&(s[a].noParent=1);}else s[a].noParent=1;return _.each(t,e=>{1==e.noParent&&(1<=r?(e.unfolded=!0,n.push(Object.assign({},e,{children:i(t,e.children,r-1)}))):n.push(Object.assign({},e,{children:i(t,e.children,r)})));}),n}function getClosestAmisComponentByType(t,r,n){let o=(n=n||{}).name;var e=n.direction||"up";let i=t.getComponents().find(function(e){return e.props.type===r&&(!o||e.props.name===o)});if(i)return i;if("down"===e){if(t.children&&t.children.length){for(let e=0;e<t.children.length&&!(i=getClosestAmisComponentByType(t.children[e],r,n));e++);return i}}else if("up"===e&&t.parent)return getClosestAmisComponentByType(t.parent,r,n)}function isFilterFormValuesEmpty(e){let t=!0;var e=_.pickBy(e,function(e,t){return /^__searchable__/g.test(t)});return _.isEmpty(e)||(e=_.omitBy(e,function(e){return _.isNil(e)||_.isObject(e)&&_.isEmpty(e)||_.isArray(e)&&_.isEmpty(e.filter(function(e){return !_.isNil(e)}))||_.isString(e)&&0===e.length}),_.isEmpty(e)||(t=!1)),t}const SteedosUI$1=Object.assign({},{render:render,Router:Router,ListView:ListView,Object:SObject,Modal:Modal,Drawer:Drawer,refs:{},getRef(e){return SteedosUI$1.refs[e]},router:{go:(e,t)=>{var r=window.FlowRouter;if(t)return r?r.go(t):window.open(t);r?r.reload():console.warn("暂不支持自动跳转",e);},reload:()=>{console.log("reload");}},message:message,notification:notification,components:{Button:Button,Space:Space},getRefId:({type:e,appId:t,name:r})=>{switch(e){case"listview":return `amis-${t}-${r}-listview`;case"form":return `amis-${t}-${r}-form`;case"detail":return `amis-${t}-${r}-detail`;default:return `amis-${t}-${r}-`+e}},reloadRecord:()=>{if(window.FlowRouter)return window.FlowRouter.reload()},getFieldDefaultValue:getFieldDefaultValue,getTreeOptions:getTreeOptions,getClosestAmisComponentByType:getClosestAmisComponentByType,isFilterFormValuesEmpty:isFilterFormValuesEmpty,getSearchFilter:e=>{var o=[];return _.each(e,(e,t)=>{var r,n;_.isEmpty(e)&&!_.isBoolean(e)||(_.startsWith(t,"__searchable__between__")?o.push([""+t.replace("__searchable__between__",""),"between",e]):_.startsWith(t,"__searchable__")&&(_.isString(e)?o.push([""+t.replace("__searchable__",""),"contains",e]):_.isObject(e)&&e.o?(n=[[(r=""+t.replace("__searchable__",""))+"/o","=",e.o]],e.ids.length&&n.push([r+"/ids","=",e.ids]),o.push(n)):o.push([""+t.replace("__searchable__",""),"=",e])));}),o}});var getBuilderContext=function(){return "undefined"==typeof window?{}:Builder.settings.context||Builder.settings},Steedos$1=__assign({getRootUrl:function(e){var t=getBuilderContext();return t.rootUrl||("undefined"!=typeof window?window.localStorage.getItem("steedos:rootUrl"):"")||e},absoluteUrl:function(e){return void 0===e&&(e=""),"".concat(Steedos$1.getRootUrl()).concat(e)},getTenantId:function(){try{var e=getBuilderContext().tenantId;return (e=window.location.search&&!e?new URLSearchParams(window.location.search).get("X-Space-Id"):e)?e:null}catch(e){console.error(e);}},getAuthorization:function(){try{var e=getBuilderContext(),t=e.tenantId,r=e.authToken;return t&&r?"Bearer ".concat(t,",").concat(r):null}catch(e){console.error(e);}},authRequest:authRequest,StandardObjects:StandardObjects},Expression);"undefined"==typeof window||window.Steedos||(window.Steedos=Steedos$1),"undefined"==typeof window||window.SteedosUI||(window.SteedosUI=SteedosUI$1);
19215
19367
 
19216
19368
  var index_esm = /*#__PURE__*/Object.freeze({
19217
19369
  __proto__: null,