@steedos-widgets/amis-object 1.2.5 → 1.2.6-beta.10

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.
@@ -4892,13 +4892,16 @@ setTimeout(()=>{
4892
4892
  var sort = orderBy + ' ' + orderDir;
4893
4893
  sort = orderBy ? sort : "${sort}";
4894
4894
  var allowSearchFields = ${JSON.stringify(searchableFields)};
4895
+ let fieldValue;
4895
4896
  if(api.data.$term){
4896
4897
  filters = [["name", "contains", "'+ api.data.$term +'"]];
4897
4898
  }else if(selfData.op === 'loadOptions' && selfData.value){
4898
4899
  if(selfData.value?.indexOf(',') > 0){
4899
- filters = [["${referenceTo.valueField.name}", "=", selfData.value.split(',')]];
4900
+ fieldValue = selfData.value.split(',');
4901
+ filters = [["${referenceTo.valueField.name}", "=", fieldValue]];
4900
4902
  }else{
4901
- filters = [["${referenceTo.valueField.name}", "=", selfData.value]];
4903
+ fieldValue = selfData.value;
4904
+ filters = [["${referenceTo.valueField.name}", "=", fieldValue]];
4902
4905
  }
4903
4906
  }
4904
4907
 
@@ -4952,6 +4955,9 @@ setTimeout(()=>{
4952
4955
  if(enable_tree){
4953
4956
  pageSize = 10000;
4954
4957
  }
4958
+ if(fieldValue && _.isArray(fieldValue) && fieldValue.length > pageSize){
4959
+ pageSize = fieldValue.length;
4960
+ }
4955
4961
  api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', pageSize).replace('{__skip}', skip).replace('{__sort}', sort.trim());
4956
4962
  return api;
4957
4963
  `;
@@ -6033,7 +6039,7 @@ setTimeout(()=>{
6033
6039
  columnsTogglable: false,
6034
6040
  strictMode:false,
6035
6041
  affixHeader: false, // 是否固定表头, 不固定表头, 否则form有y轴滚动条时, 表头会跟随滚动条滚动.
6036
- // needConfirm: true, 此属性设置为false后,导致table不能编辑。
6042
+ needConfirm: false,
6037
6043
  editable: !readonly,
6038
6044
  addable: !readonly,
6039
6045
  removable: !readonly,
@@ -6387,12 +6393,12 @@ setTimeout(()=>{
6387
6393
  });
6388
6394
  }
6389
6395
  }else{
6390
- data[item] = {
6396
+ data[item] = [{
6391
6397
  value: fileFieldValue,
6392
6398
  name: fileFieldDisplayValue.name,
6393
6399
  url: fileFieldDisplayValue.url + "?download=true",
6394
6400
  state: "uploaded"
6395
- };
6401
+ }];
6396
6402
  }
6397
6403
  }
6398
6404
  })
@@ -7119,6 +7125,13 @@ setTimeout(()=>{
7119
7125
  }else if(field.type === 'html'){
7120
7126
  type = 'markdown';
7121
7127
  }
7128
+ let className = "";
7129
+ if(field.type === 'textarea'){
7130
+ className = 'min-w-56';
7131
+ }
7132
+ if(field.wrap === false){
7133
+ className += " whitespace-nowrap";
7134
+ }
7122
7135
  if(!field.hidden && !field.extra){
7123
7136
  columns.push(Object.assign({}, {
7124
7137
  name: field.name,
@@ -7129,7 +7142,7 @@ setTimeout(()=>{
7129
7142
  type: type,
7130
7143
  tpl: tpl,
7131
7144
  toggled: field.toggled,
7132
- className: field.type === 'textarea' ? 'min-w-56 whitespace-pre-wrap textarea' : "whitespace-nowrap",
7145
+ className,
7133
7146
  html: field.type === 'html' ? true : null
7134
7147
  // toggled: true
7135
7148
  }, field.amis, {name: field.name}));
@@ -7625,7 +7638,6 @@ setTimeout(()=>{
7625
7638
  if(_.isEmpty(filters)){
7626
7639
  filters = userFilters;
7627
7640
  }else{
7628
- filters.push('and');
7629
7641
  filters.push(userFilters)
7630
7642
  }
7631
7643
  }
@@ -8053,7 +8065,6 @@ setTimeout(()=>{
8053
8065
  // ObjectForm会认作用域下的变量值
8054
8066
  // TODO: 待组件支持initValues属性后应该改掉,不应该通过data直接传值
8055
8067
  // TODO: 全天事件属性传入doc了但是没有生效,需要手动在ObjectForm中勾选全天事件
8056
- event.data = doc;
8057
8068
  const title = "新建 ${objectSchema.label}";
8058
8069
  doAction(
8059
8070
  {
@@ -8066,6 +8077,7 @@ setTimeout(()=>{
8066
8077
  "type": "steedos-object-form",
8067
8078
  "objectApiName": "\${objectName}",
8068
8079
  "mode": "edit",
8080
+ "defaultData": doc,
8069
8081
  "onEvent": {
8070
8082
  "submitSucc": {
8071
8083
  "weight": 0,
@@ -12957,12 +12969,11 @@ setTimeout(()=>{
12957
12969
  * @Description:
12958
12970
  */
12959
12971
  var AmisRecordDetail = function (props) { return __awaiter(void 0, void 0, void 0, function () {
12960
- var className, appId, _a, objectApiName, body, schema;
12972
+ var className, $schema, appId, _a, objectApiName, body, schema;
12961
12973
  return __generator(this, function (_b) {
12962
12974
  switch (_b.label) {
12963
12975
  case 0:
12964
- console.log("AmisRecordDetail======>", props);
12965
- className = props.className, props.$schema, appId = props.appId, _a = props.objectApiName, objectApiName = _a === void 0 ? "space_users" : _a, props.recordId, props.onEvent, props.defaultData, body = props.body;
12976
+ className = props.className, $schema = props.$schema, appId = props.appId, _a = props.objectApiName, objectApiName = _a === void 0 ? "space_users" : _a, props.recordId, props.onEvent, props.defaultData, body = props.body;
12966
12977
  return [4 /*yield*/, getRecordDetailSchema(objectApiName, appId)];
12967
12978
  case 1:
12968
12979
  schema = (_b.sent()).amisSchema;
@@ -12972,11 +12983,14 @@ setTimeout(()=>{
12972
12983
  // recordDetailData.recordId = recordId;
12973
12984
  // }
12974
12985
  // schema.data = Object.assign({}, schema.data, recordDetailData);
12986
+ if (___default.has(props, "recordId") && $schema.recordId !== "${recordId}") {
12987
+ schema.data.recordId = props.recordId;
12988
+ }
12975
12989
  schema.className = className;
12976
12990
  if (body) {
12977
12991
  schema.body = body;
12978
12992
  }
12979
- console.log("AmisRecordDetail====schema==>", schema);
12993
+ // console.log(`AmisRecordDetail====schema==>`, schema)
12980
12994
  return [2 /*return*/, schema];
12981
12995
  }
12982
12996
  });
@@ -13492,6 +13506,58 @@ setTimeout(()=>{
13492
13506
  });
13493
13507
  }); };
13494
13508
 
13509
+ /*
13510
+ * @Author: baozhoutao@steedos.com
13511
+ * @Date: 2022-09-01 14:44:57
13512
+ * @LastEditors: baozhoutao@steedos.com
13513
+ * @LastEditTime: 2023-04-11 13:51:50
13514
+ * @Description:
13515
+ */
13516
+ var AmisGlobalFooter = function (props) { return __awaiter(void 0, void 0, void 0, function () {
13517
+ var _a, stacked, overflow, appId, data, _b, links, _c, showIcon, _d, indentSize, selectedId, isMobile, className, className1, schema;
13518
+ return __generator(this, function (_e) {
13519
+ _a = props.stacked, stacked = _a === void 0 ? false : _a, overflow = props.overflow, appId = props.appId, data = props.data, _b = props.links, links = _b === void 0 ? null : _b, _c = props.showIcon, showIcon = _c === void 0 ? true : _c, _d = props.indentSize, indentSize = _d === void 0 ? 12 : _d, selectedId = props.selectedId;
13520
+ if (!appId) {
13521
+ appId = data.context.appId || 'admin';
13522
+ }
13523
+ isMobile = window.innerWidth <= 768;
13524
+ className = 'fixed bottom-0 z-20 flex justify-evenly w-full h-16 bg-gray-100 steedos-global-footer';
13525
+ className1 = 'fixed bottom-0 z-20 flex justify-center w-full h-16 bg-gray-100 steedos-global-footer';
13526
+ schema = {};
13527
+ if (links) {
13528
+ schema = {
13529
+ type: 'service',
13530
+ mobile: {
13531
+ body: [
13532
+ {
13533
+ "type": "nav",
13534
+ "className": links.length == 1 ? "".concat(className1) : "".concat(className),
13535
+ "stacked": stacked,
13536
+ "overflow": overflow,
13537
+ "indentSize": indentSize,
13538
+ "links": links
13539
+ }
13540
+ ]
13541
+ }
13542
+ };
13543
+ }
13544
+ else if (isMobile) {
13545
+ schema = {
13546
+ type: 'service',
13547
+ schemaApi: {
13548
+ "method": "get",
13549
+ "url": "${context.rootUrl}/service/api/apps/".concat(appId, "/menus?mobile=true"),
13550
+ "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 _.each(payload.children, (tab)=>{\n const classIcon = tab.icon.replace(/_/g,\"-\");\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-[13px] 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>${tab.name}</span>`,\n className:'h-full flex items-center'\n },\n \"to\": tab.path,\n \"target\":tab.target\n // active: selectedId === tab.id,\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 text-slate-700 block -ml-px no-underline group flex items-center text-[13px] font-medium rounded-md flex-col leading-3 nav-label'><svg class=\" flex-shrink-0 h-10 w-10\"><use xlink:href=\"/assets/icons/standard-sprite/svg/symbols.svg#lead_list\"></use></svg>\u83DC\u5355</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 "),
13551
+ "headers": {
13552
+ "Authorization": "Bearer ${context.tenantId},${context.authToken}"
13553
+ }
13554
+ }
13555
+ };
13556
+ }
13557
+ return [2 /*return*/, schema];
13558
+ });
13559
+ }); };
13560
+
13495
13561
  /*
13496
13562
  * @Author: baozhoutao@steedos.com
13497
13563
  * @Date: 2022-09-01 14:44:57
@@ -13499,7 +13565,7 @@ setTimeout(()=>{
13499
13565
  * @LastEditTime: 2023-03-17 14:09:53
13500
13566
  * @Description:
13501
13567
  */
13502
- var AmisGlobalHeader = function (props) { return __awaiter(void 0, void 0, void 0, function () {
13568
+ var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
13503
13569
  var _a, className, data, _b, logoutScript, _c, customButtons, avatarSrc;
13504
13570
  var _d, _e;
13505
13571
  return __generator(this, function (_f) {
@@ -13511,7 +13577,7 @@ setTimeout(()=>{
13511
13577
  return [2 /*return*/, {
13512
13578
  "type": "wrapper",
13513
13579
  "id": "u:9c3d279be31a",
13514
- "className": "steedos-global-header leading-3\t".concat(className),
13580
+ "className": "steedos-global-header-toolbar leading-3\t".concat(className),
13515
13581
  "size": "xs",
13516
13582
  "body": __spreadArray(__spreadArray([], __read(customButtons), false), [
13517
13583
  {
@@ -13809,25 +13875,25 @@ setTimeout(()=>{
13809
13875
  },
13810
13876
  "level": "link"
13811
13877
  },
13812
- // {
13813
- // "type": "button",
13814
- // "label": "关于",
13815
- // "className": "flex",
13816
- // "onEvent": {
13817
- // "click": {
13818
- // "actions": [
13819
- // {
13820
- // "args": {
13821
- // "url": "/app/admin/page/creator_about",
13822
- // "blank": false
13823
- // },
13824
- // "actionType": "link"
13825
- // }
13826
- // ]
13827
- // }
13828
- // },
13829
- // "level": "link"
13830
- // },
13878
+ {
13879
+ "type": "button",
13880
+ "label": "关于",
13881
+ "className": "flex",
13882
+ "onEvent": {
13883
+ "click": {
13884
+ "actions": [
13885
+ {
13886
+ "args": {
13887
+ "url": "/app/-/page/about",
13888
+ "blank": false
13889
+ },
13890
+ "actionType": "link"
13891
+ }
13892
+ ]
13893
+ }
13894
+ },
13895
+ "level": "link"
13896
+ },
13831
13897
  {
13832
13898
  "type": "button",
13833
13899
  "label": "注销",
@@ -13856,6 +13922,194 @@ setTimeout(()=>{
13856
13922
  });
13857
13923
  }); };
13858
13924
 
13925
+ /*
13926
+ * @Author: baozhoutao@steedos.com
13927
+ * @Date: 2022-09-01 14:44:57
13928
+ * @LastEditors: baozhoutao@steedos.com
13929
+ * @LastEditTime: 2023-04-11 13:51:50
13930
+ * @Description:
13931
+ */
13932
+ var AmisGlobalHeader = function (props) { return __awaiter(void 0, void 0, void 0, function () {
13933
+ var logoSrc, isMobile, schema;
13934
+ return __generator(this, function (_a) {
13935
+ logoSrc = props.logoSrc;
13936
+ isMobile = window.innerWidth <= 768;
13937
+ schema = {
13938
+ "type": "wrapper",
13939
+ "className": 'p-0',
13940
+ body: [
13941
+ {
13942
+ "type": "wrapper",
13943
+ "className": "bg-white sticky p-0 top-0 z-40 w-full flex-none backdrop-blur transition-colors duration-500 lg:z-50 sm:shadow border-b-[3px] border-sky-500 border-solid steedos-header-container",
13944
+ body: [
13945
+ {
13946
+ "type": "wrapper",
13947
+ "className": 'flex w-full px-4 h-[50px] p-0 justify-between items-center steedos-header-container-line-one',
13948
+ "body": [
13949
+ {
13950
+ type: "wrapper",
13951
+ className: 'p-0 flex flex-1 items-center',
13952
+ body: [
13953
+ {
13954
+ "type": "button",
13955
+ "className": "toggle-sidebar flex items-center pr-4",
13956
+ "hiddenOn": "true",
13957
+ "onEvent": {
13958
+ "click": {
13959
+ "actions": [
13960
+ {
13961
+ "actionType": "custom",
13962
+ "script": "document.body.classList.toggle('sidebar-open')",
13963
+ }
13964
+ ]
13965
+ }
13966
+ },
13967
+ "body": [
13968
+ {
13969
+ "type": "steedos-icon",
13970
+ "category": "utility",
13971
+ "name": "rows",
13972
+ "colorVariant": "default",
13973
+ "id": "u:afc3a08e8cf3",
13974
+ "className": "slds-button_icon slds-global-header__icon"
13975
+ }
13976
+ ],
13977
+ },
13978
+ {
13979
+ "className": 'block h-10 w-auto mr-4',
13980
+ "type": "tpl",
13981
+ "tpl": "<a href='/app' class='flex items-center '><img class='block h-10 w-auto' src='".concat(logoSrc, "'></a>"),
13982
+ },
13983
+ ],
13984
+ },
13985
+ {
13986
+ "type": "steedos-global-header-toolbar",
13987
+ "label": "Global Header",
13988
+ className: 'flex flex-nowrap gap-x-3 items-center',
13989
+ logoutScript: "window.signOut();",
13990
+ customButtons: [
13991
+ {
13992
+ "type": "button",
13993
+ "className": "toggle-sidebar",
13994
+ "visibleOn": "${AND(app.showSidebar,!" + isMobile + ")}",
13995
+ "onEvent": {
13996
+ "click": {
13997
+ "actions": [
13998
+ {
13999
+ "actionType": "custom",
14000
+ "script": "document.body.classList.toggle('sidebar-open')",
14001
+ }
14002
+ ]
14003
+ }
14004
+ },
14005
+ "body": [
14006
+ {
14007
+ "type": "steedos-icon",
14008
+ "category": "utility",
14009
+ "name": "rows",
14010
+ "colorVariant": "default",
14011
+ "id": "u:afc3a08e8cf3",
14012
+ "className": "slds-button_icon slds-global-header__icon"
14013
+ }
14014
+ ],
14015
+ },
14016
+ {
14017
+ "type": "steedos-app-launcher",
14018
+ "showAppName": false,
14019
+ "appId": "${app.id}",
14020
+ "visibleOn": "${isMobile}"
14021
+ }
14022
+ ]
14023
+ }
14024
+ ],
14025
+ },
14026
+ {
14027
+ "type": "grid",
14028
+ "className": 'steedos-context-bar flex flex-nowrap h-10 leading-5 pl-4 mb-[-3px] steedos-header-container-line-two',
14029
+ "hiddenOn": "${" + isMobile + "}",
14030
+ "columns": [
14031
+ {
14032
+ "columnClassName": "items-center flex pb-0",
14033
+ "body": [
14034
+ {
14035
+ "type": "steedos-app-launcher",
14036
+ "showAppName": true,
14037
+ "appId": "${app.id}",
14038
+ }
14039
+ ],
14040
+ "md": "auto",
14041
+ "valign": "middle"
14042
+ },
14043
+ {
14044
+ "columnClassName": "flex overflow-hidden",
14045
+ "hiddenOn": "${app.showSidebar === true}",
14046
+ "body": [
14047
+ {
14048
+ "visibleOn": "${AND(!app.showSidebar,!" + isMobile + ")}",
14049
+ "type": "steedos-app-menu",
14050
+ "stacked": false,
14051
+ showIcon: false,
14052
+ "appId": "${app.id}",
14053
+ overflow: {
14054
+ enable: false,
14055
+ itemWidth: 80,
14056
+ },
14057
+ "id": "u:77851eb4aa89",
14058
+ }
14059
+ ],
14060
+ "id": "u:5367229505d8",
14061
+ "md": "",
14062
+ "valign": "middle",
14063
+ }
14064
+ ],
14065
+ },
14066
+ ],
14067
+ },
14068
+ {
14069
+ "type": "button",
14070
+ "className": 'p-0 absolute inset-0 mt-[50px] sm:mt-[90px]',
14071
+ hiddenOn: "${OR(app.showSidebar != true,isMobile)}",
14072
+ body: [
14073
+ {
14074
+ type: "wrapper",
14075
+ className: 'sidebar-wrapper px-0 pt-4 pb-16 fixed z-20 h-full h-fill ease-in-out duration-300 flex flex-col border-r overflow-y-auto bg-white border-slate-200 block -translate-x-0 sm:w-[220px] w-64',
14076
+ body: [
14077
+ {
14078
+ "type": "steedos-app-launcher",
14079
+ "className": "px-4 pb-4",
14080
+ "visibleOn": "${isMobile}",
14081
+ "showAppName": true
14082
+ },
14083
+ {
14084
+ "type": "steedos-app-menu",
14085
+ "stacked": true,
14086
+ "appId": "${app.id}",
14087
+ },
14088
+ ]
14089
+ },
14090
+ {
14091
+ "type": "wrapper",
14092
+ "className": 'sidebar-overlay',
14093
+ "hiddenOn": "${!isMobile}",
14094
+ }
14095
+ ],
14096
+ "onEvent": {
14097
+ "click": {
14098
+ "actions": [
14099
+ {
14100
+ "actionType": "custom",
14101
+ "script": "console.log(event.target); if(window.innerWidth < 768){ document.body.classList.remove('sidebar-open'); }",
14102
+ }
14103
+ ]
14104
+ }
14105
+ },
14106
+ },
14107
+ ],
14108
+ };
14109
+ return [2 /*return*/, schema];
14110
+ });
14111
+ }); };
14112
+
13859
14113
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
13860
14114
  var steedosField, field, _a, readonly, _b, ctx, config, $schema, schema, error_1;
13861
14115
  return __generator(this, function (_c) {
@@ -13904,39 +14158,42 @@ setTimeout(()=>{
13904
14158
  * @Author: baozhoutao@steedos.com
13905
14159
  * @Date: 2023-01-14 16:41:24
13906
14160
  * @LastEditors: baozhoutao@steedos.com
13907
- * @LastEditTime: 2023-03-23 18:00:25
14161
+ * @LastEditTime: 2023-04-21 11:50:26
13908
14162
  * @Description:
13909
14163
  */
13910
14164
  var getSelectFlowSchema = function (id, props) {
13911
14165
  var label = props.label, data = props.data, name = props.name, required = props.required, _a = props.action, action = _a === void 0 ? 'query' : _a, _b = props.distributeInstanceId, distributeInstanceId = _b === void 0 ? "" : _b, _c = props.distributeStepId, distributeStepId = _c === void 0 ? "" : _c, _d = props.mode, mode = _d === void 0 ? 'input-tree' : _d, className = props.className, onEvent = props.onEvent, _e = props.multiple, multiple = _e === void 0 ? false : _e, delimiter = props.delimiter, joinValues = props.joinValues, extractValue = props.extractValue, searchable = props.searchable, _f = props.showIcon, showIcon = _f === void 0 ? true : _f, _g = props.showRadio, showRadio = _g === void 0 ? false : _g, showOutline = props.showOutline, initiallyOpen = props.initiallyOpen, unfoldedLevel = props.unfoldedLevel, treeContainerClassName = props.treeContainerClassName, _h = props.amis, amis = _h === void 0 ? {} : _h;
13912
14166
  console.log("=====onEvent", onEvent);
13913
- return __assign$2({ "type": mode, "id": id, "label": label, "name": name, "options": [], "multiple": multiple, "delimiter": delimiter, "joinValues": joinValues, "extractValue": extractValue, "searchable": searchable, "showOutline": showOutline, "initiallyOpen": initiallyOpen, "unfoldedLevel": unfoldedLevel, "className": className, "required": required, "treeContainerClassName": treeContainerClassName, "menuTpl": {
13914
- // type: "button",
13915
- type: "tpl",
13916
- tpl: "<div class='flex justify-between'><span>${label}</span><span class='rounded p-1 text-xs text-center w-14 ${children != null ? \'hidden\' : \'\'}'><button><i class='fa-regular fa-star'></i></button></span></div>",
13917
- "onEvent": {
13918
- "click": {
13919
- "weight": 0,
13920
- "actions": [
13921
- {
13922
- actionType: 'custom',
13923
- script: "console.log('====event', event), event.preventDefault(); event.stopPropagation()"
13924
- },
13925
- {
13926
- "args": {
13927
- "api": {
13928
- "url": "/aaa",
13929
- "method": "get",
13930
- "messages": {}
13931
- }
13932
- },
13933
- "actionType": "download",
13934
- "stopPropagation": true
13935
- }
13936
- ]
13937
- }
13938
- }
13939
- }, "source": {
14167
+ return __assign$2({ "type": mode, "id": id, "label": label, "name": name, "options": [], "multiple": multiple, "delimiter": delimiter, "joinValues": joinValues, "extractValue": extractValue, "searchable": searchable, "showOutline": showOutline, "initiallyOpen": initiallyOpen, "unfoldedLevel": unfoldedLevel, "className": className, "required": required, "treeContainerClassName": treeContainerClassName,
14168
+ // "menuTpl": {
14169
+ // // type: "button",
14170
+ // type: "tpl",
14171
+ // tpl: "<div class='flex justify-between'><span>${label}</span><span class='rounded p-1 text-xs text-center w-14 ${children != null ? \'hidden\' : \'\'}'><button><i class='fa-regular fa-star'></i></button></span></div>",
14172
+ // "onEvent": {
14173
+ // "click": {
14174
+ // "weight": 0,
14175
+ // "actions": [
14176
+ // {
14177
+ // actionType: 'custom',
14178
+ // script: "console.log('====event', event), event.preventDefault(); event.stopPropagation()"
14179
+ // },
14180
+ // {
14181
+ // "args": {
14182
+ // "api": {
14183
+ // "url": "/aaa",
14184
+ // "method": "get",
14185
+ // "messages": {
14186
+ // }
14187
+ // }
14188
+ // },
14189
+ // "actionType": "download",
14190
+ // "stopPropagation": true
14191
+ // }
14192
+ // ]
14193
+ // }
14194
+ // }
14195
+ // },
14196
+ "source": {
13940
14197
  "method": "post",
13941
14198
  "url": "${context.rootUrl}/graphql?keywords=${keywords}",
13942
14199
  "requestAdaptor": "\n const keywords = api.body.keywords || '';\n const appId = '".concat(data.app_id || '', "';\n api.data = {\n query: `\n {\n options: flows__getList(action: \"").concat(action, "\", keywords: \"${keywords}\", appId: \"${appId}\", distributeInstanceId: \"").concat(distributeInstanceId, "\", distributeStepId: \"").concat(distributeStepId, "\"){\n value:_id\n label:name\n children: flows{\n value: _id,\n label: name\n }\n }\n }\n `\n }\n "),
@@ -14189,7 +14446,9 @@ setTimeout(()=>{
14189
14446
 
14190
14447
  exports.AmisAppLauncher = AmisAppLauncher;
14191
14448
  exports.AmisAppMenu = AmisAppMenu;
14449
+ exports.AmisGlobalFooter = AmisGlobalFooter;
14192
14450
  exports.AmisGlobalHeader = AmisGlobalHeader;
14451
+ exports.AmisGlobalHeaderToolbar = AmisGlobalHeaderToolbar;
14193
14452
  exports.AmisInstanceDetail = AmisInstanceDetail;
14194
14453
  exports.AmisLib = index_esm$1;
14195
14454
  exports.AmisLogo = AmisLogo;