@cniot/mdd-editor 0.2.0-beta.5 → 0.2.0-beta.7

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/build/index.es.js CHANGED
@@ -1225,8 +1225,8 @@ const CURRENT_EDITOR_VERSION = "0.1.15";
1225
1225
  class Schema extends EventEmitter {
1226
1226
  constructor(props) {
1227
1227
  super();
1228
- const { title = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
- this.title = title;
1228
+ const { title: title2 = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
+ this.title = title2;
1230
1230
  this.host = host;
1231
1231
  this.type = "page";
1232
1232
  this.editorVersion = editorVersion ? editorVersion : CURRENT_EDITOR_VERSION;
@@ -1245,8 +1245,8 @@ class Schema extends EventEmitter {
1245
1245
  this.host = host;
1246
1246
  }
1247
1247
  init(data) {
1248
- const { title, host, editorVersion } = data || {};
1249
- this.title = title;
1248
+ const { title: title2, host, editorVersion } = data || {};
1249
+ this.title = title2;
1250
1250
  this.host = host;
1251
1251
  this.editorVersion = editorVersion;
1252
1252
  }
@@ -1558,103 +1558,132 @@ class HeaderToolbar$1 extends JSONWatch {
1558
1558
  return this.data || [];
1559
1559
  }
1560
1560
  }
1561
- /*! js-cookie v3.0.5 | MIT */
1562
- function assign(target) {
1563
- for (var i = 1; i < arguments.length; i++) {
1564
- var source = arguments[i];
1565
- for (var key in source) {
1566
- target[key] = source[key];
1567
- }
1568
- }
1569
- return target;
1570
- }
1571
- var defaultConverter = {
1572
- read: function(value) {
1573
- if (value[0] === '"') {
1574
- value = value.slice(1, -1);
1575
- }
1576
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1577
- },
1578
- write: function(value) {
1579
- return encodeURIComponent(value).replace(
1580
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1581
- decodeURIComponent
1582
- );
1583
- }
1584
- };
1585
- function init$1(converter, defaultAttributes) {
1586
- function set(name, value, attributes) {
1587
- if (typeof document === "undefined") {
1588
- return;
1589
- }
1590
- attributes = assign({}, defaultAttributes, attributes);
1591
- if (typeof attributes.expires === "number") {
1592
- attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
1593
- }
1594
- if (attributes.expires) {
1595
- attributes.expires = attributes.expires.toUTCString();
1561
+ var js_cookie = { exports: {} };
1562
+ /*!
1563
+ * JavaScript Cookie v2.2.1
1564
+ * https://github.com/js-cookie/js-cookie
1565
+ *
1566
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
1567
+ * Released under the MIT license
1568
+ */
1569
+ (function(module, exports) {
1570
+ (function(factory) {
1571
+ var registeredInModuleLoader;
1572
+ {
1573
+ module.exports = factory();
1574
+ registeredInModuleLoader = true;
1575
+ }
1576
+ if (!registeredInModuleLoader) {
1577
+ var OldCookies = window.Cookies;
1578
+ var api = window.Cookies = factory();
1579
+ api.noConflict = function() {
1580
+ window.Cookies = OldCookies;
1581
+ return api;
1582
+ };
1596
1583
  }
1597
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1598
- var stringifiedAttributes = "";
1599
- for (var attributeName in attributes) {
1600
- if (!attributes[attributeName]) {
1601
- continue;
1602
- }
1603
- stringifiedAttributes += "; " + attributeName;
1604
- if (attributes[attributeName] === true) {
1605
- continue;
1584
+ })(function() {
1585
+ function extend() {
1586
+ var i = 0;
1587
+ var result = {};
1588
+ for (; i < arguments.length; i++) {
1589
+ var attributes = arguments[i];
1590
+ for (var key in attributes) {
1591
+ result[key] = attributes[key];
1592
+ }
1606
1593
  }
1607
- stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
1594
+ return result;
1608
1595
  }
1609
- return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
1610
- }
1611
- function get2(name) {
1612
- if (typeof document === "undefined" || arguments.length && !name) {
1613
- return;
1596
+ function decode(s) {
1597
+ return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
1614
1598
  }
1615
- var cookies = document.cookie ? document.cookie.split("; ") : [];
1616
- var jar = {};
1617
- for (var i = 0; i < cookies.length; i++) {
1618
- var parts = cookies[i].split("=");
1619
- var value = parts.slice(1).join("=");
1620
- try {
1621
- var found = decodeURIComponent(parts[0]);
1622
- jar[found] = converter.read(value, found);
1623
- if (name === found) {
1624
- break;
1599
+ function init2(converter) {
1600
+ function api() {
1601
+ }
1602
+ function set(key, value, attributes) {
1603
+ if (typeof document === "undefined") {
1604
+ return;
1625
1605
  }
1626
- } catch (e) {
1606
+ attributes = extend({
1607
+ path: "/"
1608
+ }, api.defaults, attributes);
1609
+ if (typeof attributes.expires === "number") {
1610
+ attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e5);
1611
+ }
1612
+ attributes.expires = attributes.expires ? attributes.expires.toUTCString() : "";
1613
+ try {
1614
+ var result = JSON.stringify(value);
1615
+ if (/^[\{\[]/.test(result)) {
1616
+ value = result;
1617
+ }
1618
+ } catch (e) {
1619
+ }
1620
+ value = converter.write ? converter.write(value, key) : encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
1621
+ key = encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
1622
+ var stringifiedAttributes = "";
1623
+ for (var attributeName in attributes) {
1624
+ if (!attributes[attributeName]) {
1625
+ continue;
1626
+ }
1627
+ stringifiedAttributes += "; " + attributeName;
1628
+ if (attributes[attributeName] === true) {
1629
+ continue;
1630
+ }
1631
+ stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
1632
+ }
1633
+ return document.cookie = key + "=" + value + stringifiedAttributes;
1627
1634
  }
1628
- }
1629
- return name ? jar[name] : jar;
1630
- }
1631
- return Object.create(
1632
- {
1633
- set,
1634
- get: get2,
1635
- remove: function(name, attributes) {
1636
- set(
1637
- name,
1638
- "",
1639
- assign({}, attributes, {
1640
- expires: -1
1641
- })
1642
- );
1643
- },
1644
- withAttributes: function(attributes) {
1645
- return init$1(this.converter, assign({}, this.attributes, attributes));
1646
- },
1647
- withConverter: function(converter2) {
1648
- return init$1(assign({}, this.converter, converter2), this.attributes);
1635
+ function get2(key, json) {
1636
+ if (typeof document === "undefined") {
1637
+ return;
1638
+ }
1639
+ var jar = {};
1640
+ var cookies = document.cookie ? document.cookie.split("; ") : [];
1641
+ var i = 0;
1642
+ for (; i < cookies.length; i++) {
1643
+ var parts = cookies[i].split("=");
1644
+ var cookie = parts.slice(1).join("=");
1645
+ if (!json && cookie.charAt(0) === '"') {
1646
+ cookie = cookie.slice(1, -1);
1647
+ }
1648
+ try {
1649
+ var name = decode(parts[0]);
1650
+ cookie = (converter.read || converter)(cookie, name) || decode(cookie);
1651
+ if (json) {
1652
+ try {
1653
+ cookie = JSON.parse(cookie);
1654
+ } catch (e) {
1655
+ }
1656
+ }
1657
+ jar[name] = cookie;
1658
+ if (key === name) {
1659
+ break;
1660
+ }
1661
+ } catch (e) {
1662
+ }
1663
+ }
1664
+ return key ? jar[key] : jar;
1649
1665
  }
1650
- },
1651
- {
1652
- attributes: { value: Object.freeze(defaultAttributes) },
1653
- converter: { value: Object.freeze(converter) }
1666
+ api.set = set;
1667
+ api.get = function(key) {
1668
+ return get2(key, false);
1669
+ };
1670
+ api.getJSON = function(key) {
1671
+ return get2(key, true);
1672
+ };
1673
+ api.remove = function(key, attributes) {
1674
+ set(key, "", extend(attributes, {
1675
+ expires: -1
1676
+ }));
1677
+ };
1678
+ api.defaults = {};
1679
+ api.withConverter = init2;
1680
+ return api;
1654
1681
  }
1655
- );
1656
- }
1657
- var api = init$1(defaultConverter, { path: "/" });
1682
+ return init2(function() {
1683
+ });
1684
+ });
1685
+ })(js_cookie);
1686
+ var Cookies = js_cookie.exports;
1658
1687
  const calcWordWidth = (str) => {
1659
1688
  const Min_Width = 50;
1660
1689
  if (!str || typeof str !== "string")
@@ -1674,7 +1703,7 @@ const upperFirst$1 = (str) => {
1674
1703
  return str.slice(0, 1).toUpperCase() + temp;
1675
1704
  };
1676
1705
  const getGlobalSizeFromCookie = () => {
1677
- return api == null ? void 0 : api.get("CNUICOOKIESIZE");
1706
+ return Cookies == null ? void 0 : Cookies.get("CNUICOOKIESIZE");
1678
1707
  };
1679
1708
  const getDefaultFomrLabelAlign = () => {
1680
1709
  const globalSize = getGlobalSizeFromCookie();
@@ -1971,29 +2000,29 @@ const openApi3Support = (apiInfo) => {
1971
2000
  responses: res
1972
2001
  };
1973
2002
  };
1974
- var buildSwaggerApiJson = (api2, apiMeta) => {
1975
- if (!api2 || !apiMeta) {
2003
+ var buildSwaggerApiJson = (api, apiMeta) => {
2004
+ if (!api || !apiMeta) {
1976
2005
  throw Error("mdd-tool columns complier error: api or api meta is null");
1977
2006
  }
1978
2007
  const { paths, definitions } = apiMeta || {};
1979
- if (!paths[api2]) {
1980
- throw Error(`mdd-tool columns complier error: api meta has not api: ${api2}`);
2008
+ if (!paths[api]) {
2009
+ throw Error(`mdd-tool columns complier error: api meta has not api: ${api}`);
1981
2010
  }
1982
2011
  let method = "";
1983
2012
  let apiInfo = null;
1984
- if (Object.prototype.hasOwnProperty.call(paths[api2], "post")) {
2013
+ if (Object.prototype.hasOwnProperty.call(paths[api], "post")) {
1985
2014
  method = "post";
1986
- apiInfo = paths[api2]["post"];
1987
- } else if (Object.prototype.hasOwnProperty.call(paths[api2], "get")) {
2015
+ apiInfo = paths[api]["post"];
2016
+ } else if (Object.prototype.hasOwnProperty.call(paths[api], "get")) {
1988
2017
  method = "get";
1989
- apiInfo = paths[api2]["get"];
2018
+ apiInfo = paths[api]["get"];
1990
2019
  } else {
1991
2020
  throw Error("mdd-tool columns complier error: api method not support");
1992
2021
  }
1993
2022
  const { summary } = apiInfo;
1994
2023
  const { parameters = [], responses } = openApi3Support(apiInfo);
1995
2024
  return {
1996
- api: api2,
2025
+ api,
1997
2026
  method,
1998
2027
  summary,
1999
2028
  parameters: transfer$refToJson("parameters", parameters, definitions),
@@ -2122,11 +2151,11 @@ const disabled = (key) => {
2122
2151
  const Default_Column_Type = "text";
2123
2152
  const Default_Edit_Column_Type = "edit-input";
2124
2153
  const buildCompProps = (key, obj, buildType, templateType) => {
2125
- const { title, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
2154
+ const { title: title2, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
2126
2155
  if (REMOVE_FIELDS_NAME.includes(key)) {
2127
2156
  return null;
2128
2157
  }
2129
- const label = title || description || key;
2158
+ const label = title2 || description || key;
2130
2159
  const isReq = buildType === "parameters";
2131
2160
  let result = null;
2132
2161
  if (isReq) {
@@ -2432,11 +2461,11 @@ function handleDefinitions(obj, map, depth) {
2432
2461
  function getSwaggerInfoFromJson(swaggerJson) {
2433
2462
  return jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerJson));
2434
2463
  }
2435
- function getApiInfo(api2, swaggerInfo) {
2464
+ function getApiInfo(api, swaggerInfo) {
2436
2465
  const realSwaggerInfo = jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerInfo));
2437
- return buildSwaggerApiJson(api2, realSwaggerInfo);
2466
+ return buildSwaggerApiJson(api, realSwaggerInfo);
2438
2467
  }
2439
- function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {}) {
2468
+ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}) {
2440
2469
  const { parameters = [], responses = [], method = "" } = apiInfo || {};
2441
2470
  const methodUpperCase = method.toUpperCase();
2442
2471
  const result = {
@@ -2459,8 +2488,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
2459
2488
  tableColumns: "$RET.data.tableColumns",
2460
2489
  totalCount: "$RET.data.paging.totalCount"
2461
2490
  },
2462
- value: api2,
2463
- url: api2
2491
+ value: api,
2492
+ url: api
2464
2493
  },
2465
2494
  filter: {
2466
2495
  maxVisibleRow: 2,
@@ -2505,8 +2534,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
2505
2534
  watch: [],
2506
2535
  params: {},
2507
2536
  formatResponseData: {},
2508
- value: api2,
2509
- url: api2
2537
+ value: api,
2538
+ url: api
2510
2539
  },
2511
2540
  initApi: [],
2512
2541
  effectApi: [],
@@ -2545,7 +2574,7 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
2545
2574
  label: "\u57FA\u7840\u4FE1\u606F",
2546
2575
  source: [
2547
2576
  {
2548
- url: api2,
2577
+ url: api,
2549
2578
  method: methodUpperCase,
2550
2579
  type: "ajax",
2551
2580
  formatResponseData: {
@@ -2578,8 +2607,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
2578
2607
  formatResponseData: {
2579
2608
  tableData: "$RET.data.tableData"
2580
2609
  },
2581
- value: api2,
2582
- url: api2
2610
+ value: api,
2611
+ url: api
2583
2612
  },
2584
2613
  submitApi: {
2585
2614
  type: "ajax",
@@ -2611,9 +2640,9 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
2611
2640
  }
2612
2641
  return merge_1(result, extraSchema);
2613
2642
  }
2614
- function api2SchemaFromSwagger(api2, schemaType, swaggerInfo, extraSchema = {}) {
2615
- const apiInfo = getApiInfo(api2, swaggerInfo);
2616
- return api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema);
2643
+ function api2SchemaFromSwagger(api, schemaType, swaggerInfo, extraSchema = {}) {
2644
+ const apiInfo = getApiInfo(api, swaggerInfo);
2645
+ return api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema);
2617
2646
  }
2618
2647
  function transferOpenAPI3ToSwagger2$1(data) {
2619
2648
  if (data && data.components && data.components.schemas) {
@@ -2749,10 +2778,10 @@ class MiddleItem extends JSONWatch {
2749
2778
  }
2750
2779
  class FtpSchema$1 extends Schema {
2751
2780
  constructor(props, isCompleteSchema = false) {
2752
- const { api: api2, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
2781
+ const { api, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
2753
2782
  super(more2);
2754
2783
  this.type = "ftp";
2755
- this.api = new AjaxSchema(api2);
2784
+ this.api = new AjaxSchema(api);
2756
2785
  this.filter = new Filter(filter);
2757
2786
  this.headerToolbar = new HeaderToolbar$1(headerToolbar);
2758
2787
  this.table = new TableSchema$1(table);
@@ -2826,12 +2855,12 @@ class FtpSchema$1 extends Schema {
2826
2855
  }
2827
2856
  initFromCache(schema) {
2828
2857
  const { body, ...more2 } = schema;
2829
- const { api: api2, filter, headerToolbar, table, tabs, middleModules } = body;
2858
+ const { api, filter, headerToolbar, table, tabs, middleModules } = body;
2830
2859
  if (this.willDetach) {
2831
2860
  this.willDetach();
2832
2861
  }
2833
2862
  this.init(more2);
2834
- this.api.updateAll(api2);
2863
+ this.api.updateAll(api);
2835
2864
  this.filter.updateAll(filter);
2836
2865
  this.headerToolbar.updateAll(headerToolbar);
2837
2866
  this.table.updateAll(this.compatTableHandle(table));
@@ -3084,11 +3113,11 @@ function getWatchByRequest(params) {
3084
3113
  }
3085
3114
  class FormilyFormV2Schema extends Schema {
3086
3115
  constructor(props, isCompleteSchema = false) {
3087
- const { api: api2, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
3116
+ const { api, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
3088
3117
  super(more2);
3089
3118
  this.type = "formily-form-v2";
3090
3119
  this.baseInfo = new FormInfo(baseInfo);
3091
- this.api = new AjaxSchema(api2);
3120
+ this.api = new AjaxSchema(api);
3092
3121
  if (!initApi) {
3093
3122
  this.initApi = new AjaxSchemaQueue([]);
3094
3123
  } else {
@@ -3130,12 +3159,12 @@ class FormilyFormV2Schema extends Schema {
3130
3159
  }
3131
3160
  initFromCache(schema) {
3132
3161
  const { body, ...more2 } = schema;
3133
- const { api: api2, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
3162
+ const { api, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
3134
3163
  if (this.willDetach) {
3135
3164
  this.willDetach();
3136
3165
  }
3137
3166
  this.init(more2);
3138
- this.api.updateAll(api2);
3167
+ this.api.updateAll(api);
3139
3168
  if (!initApi) {
3140
3169
  this.initApi.updateAll([]);
3141
3170
  } else {
@@ -3203,6 +3232,9 @@ class DetailItemSchema extends JSONWatch {
3203
3232
  pagination,
3204
3233
  actions = [],
3205
3234
  current = 1,
3235
+ columnsDirection = "row",
3236
+ columnsBoxes = [],
3237
+ hideCardTitle = false,
3206
3238
  ...more2
3207
3239
  } = props || {};
3208
3240
  super({
@@ -3221,6 +3253,9 @@ class DetailItemSchema extends JSONWatch {
3221
3253
  pagination,
3222
3254
  actions,
3223
3255
  current,
3256
+ columnsDirection,
3257
+ columnsBoxes,
3258
+ hideCardTitle,
3224
3259
  ...more2
3225
3260
  });
3226
3261
  }
@@ -3299,7 +3334,7 @@ class DetailItemSchema extends JSONWatch {
3299
3334
  this.emit("$updated", null, ignoreUpdate);
3300
3335
  }
3301
3336
  update(index2, record, key = "columns", ignoreUpdate = false) {
3302
- if (["columns", "actionColumns", "bulkActions"].includes(key)) {
3337
+ if (["columnsBoxes", "columns", "actionColumns", "bulkActions"].includes(key)) {
3303
3338
  this.data[key].splice(index2, 1, record);
3304
3339
  } else {
3305
3340
  this.data[key] = record;
@@ -7688,7 +7723,7 @@ const dsTitleWatch$1 = "_dsTitleWatch_mxilv_32";
7688
7723
  const staticValueOkBtn$1 = "_staticValueOkBtn_mxilv_37";
7689
7724
  const tableDeleteBtn$1 = "_tableDeleteBtn_mxilv_41";
7690
7725
  const secondConfirm$1 = "_secondConfirm_mxilv_45";
7691
- var styles$c = {
7726
+ var styles$d = {
7692
7727
  dsType: dsType$1,
7693
7728
  dsJSONContent: dsJSONContent$1,
7694
7729
  dsJSONContentTip: dsJSONContentTip$1,
@@ -13059,23 +13094,23 @@ function useSwagger() {
13059
13094
  }
13060
13095
  };
13061
13096
  }
13062
- function createApiSelectItem(summary, api2, method, request = []) {
13097
+ function createApiSelectItem(summary, api, method, request = []) {
13063
13098
  return {
13064
13099
  summary,
13065
- label: `${summary} - ${method} ${api2}`,
13066
- value: api2,
13067
- url: api2,
13100
+ label: `${summary} - ${method} ${api}`,
13101
+ value: api,
13102
+ url: api,
13068
13103
  method,
13069
13104
  request,
13070
- parameters: api2.parameters
13105
+ parameters: api.parameters
13071
13106
  };
13072
13107
  }
13073
13108
  const getDataSourceArray$1 = (paths = {}) => {
13074
13109
  try {
13075
13110
  return Object.keys(paths).map((key) => {
13076
- const api2 = paths[key];
13077
- const apiPost = api2.post || api2.POST;
13078
- const apiGet = api2.get || api2.GET;
13111
+ const api = paths[key];
13112
+ const apiPost = api.post || api.POST;
13113
+ const apiGet = api.get || api.GET;
13079
13114
  if (apiPost) {
13080
13115
  return createApiSelectItem(apiPost.summary, key, "POST");
13081
13116
  } else if (apiGet) {
@@ -13148,8 +13183,8 @@ class PersistentStorage {
13148
13183
  }
13149
13184
  var storage = new PersistentStorage();
13150
13185
  class DataSourceSchema extends JSONWatch {
13151
- constructor(api2) {
13152
- const { url, method = "get", ...more2 } = api2 || {};
13186
+ constructor(api) {
13187
+ const { url, method = "get", ...more2 } = api || {};
13153
13188
  super({
13154
13189
  url,
13155
13190
  method,
@@ -13861,10 +13896,10 @@ function emitterVSCodeMessage(action, content2) {
13861
13896
  function emitSave(fileMapContent) {
13862
13897
  emitterVSCodeMessage(EMIT_EVENT_ACTION_SAVE, fileMapContent);
13863
13898
  }
13864
- const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
13899
+ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
13865
13900
  let schemaObj = null;
13866
13901
  if (schemaType === "ftp") {
13867
- schemaObj = new FtpSchema$1({ host: api2, title: "" });
13902
+ schemaObj = new FtpSchema$1({ host: api, title: "" });
13868
13903
  const realDataSource = {
13869
13904
  ...mainDataSource,
13870
13905
  type: "ajax",
@@ -13877,14 +13912,14 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
13877
13912
  };
13878
13913
  schemaObj.getDataSourcePanel().update(realDataSource);
13879
13914
  } else if (schemaType === "formily-form") {
13880
- schemaObj = new FormilyFormSchema({ host: api2, title: "" });
13915
+ schemaObj = new FormilyFormSchema({ host: api, title: "" });
13881
13916
  const realDataSource = {
13882
13917
  ...mainDataSource,
13883
13918
  type: "ajax"
13884
13919
  };
13885
13920
  schemaObj.getDataSourcePanel().update(realDataSource);
13886
13921
  } else if (schemaType === "formily-form-v2") {
13887
- schemaObj = new FormilyFormV2Schema({ host: api2, title: "" });
13922
+ schemaObj = new FormilyFormV2Schema({ host: api, title: "" });
13888
13923
  const realDataSource = {
13889
13924
  ...mainDataSource,
13890
13925
  type: "ajax"
@@ -13892,7 +13927,7 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
13892
13927
  schemaObj.getApiPanel().update(realDataSource);
13893
13928
  } else if (schemaType === "detail") {
13894
13929
  if (moreProps == null ? void 0 : moreProps.children) {
13895
- schemaObj = new DetailSchema({ host: api2, title: "", ...moreProps });
13930
+ schemaObj = new DetailSchema({ host: api, title: "", ...moreProps });
13896
13931
  } else {
13897
13932
  const realDataSource = {
13898
13933
  ...mainDataSource,
@@ -13901,10 +13936,10 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
13901
13936
  detailData: "$RET.data"
13902
13937
  }
13903
13938
  };
13904
- schemaObj = new DetailSchema({ host: api2, title: "", initDataSource: realDataSource });
13939
+ schemaObj = new DetailSchema({ host: api, title: "", initDataSource: realDataSource });
13905
13940
  }
13906
13941
  } else if (schemaType === "edit-table") {
13907
- schemaObj = new FtpSchema({ host: api2, title: "", ...moreProps });
13942
+ schemaObj = new FtpSchema({ host: api, title: "", ...moreProps });
13908
13943
  const realDataSource = {
13909
13944
  ...mainDataSource,
13910
13945
  type: "ajax",
@@ -13931,8 +13966,8 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
13931
13966
  }
13932
13967
  }, 500)
13933
13968
  );
13934
- if (api2.indexOf("?") === -1 && api2.indexOf("mocks") === -1) {
13935
- axios.defaults.baseURL = api2;
13969
+ if (api.indexOf("?") === -1 && api.indexOf("mocks") === -1) {
13970
+ axios.defaults.baseURL = api;
13936
13971
  }
13937
13972
  return schemaObj;
13938
13973
  };
@@ -13941,11 +13976,11 @@ const buildSchemaObjFromSchema = (schema) => {
13941
13976
  return null;
13942
13977
  }
13943
13978
  const { host, body } = schema;
13944
- const { type, api: api2, ...more2 } = body || {};
13979
+ const { type, api, ...more2 } = body || {};
13945
13980
  if (!host || !type) {
13946
13981
  return null;
13947
13982
  }
13948
- return buildSchema(type, host, api2, more2);
13983
+ return buildSchema(type, host, api, more2);
13949
13984
  };
13950
13985
  function useSchema() {
13951
13986
  const { fetchSwaggerInfo } = useSwagger$1();
@@ -14588,7 +14623,7 @@ function DataSourceSelect(props) {
14588
14623
  size: "small",
14589
14624
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14590
14625
  }), /* @__PURE__ */ React$1.createElement(Button, {
14591
- className: styles$c.staticValueOkBtn,
14626
+ className: styles$d.staticValueOkBtn,
14592
14627
  size: "small",
14593
14628
  onClick: onOkQuery
14594
14629
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14599,7 +14634,7 @@ function DataSourceSelect(props) {
14599
14634
  size: "small",
14600
14635
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14601
14636
  }), /* @__PURE__ */ React$1.createElement(Button, {
14602
- className: styles$c.staticValueOkBtn,
14637
+ className: styles$d.staticValueOkBtn,
14603
14638
  size: "small",
14604
14639
  onClick: onOkRecordData
14605
14640
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14610,7 +14645,7 @@ function DataSourceSelect(props) {
14610
14645
  size: "small",
14611
14646
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14612
14647
  }), /* @__PURE__ */ React$1.createElement(Button, {
14613
- className: styles$c.staticValueOkBtn,
14648
+ className: styles$d.staticValueOkBtn,
14614
14649
  size: "small",
14615
14650
  onClick: onOkParams
14616
14651
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14621,7 +14656,7 @@ function DataSourceSelect(props) {
14621
14656
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14622
14657
  size: "small"
14623
14658
  }), /* @__PURE__ */ React$1.createElement(Button, {
14624
- className: styles$c.staticValueOkBtn,
14659
+ className: styles$d.staticValueOkBtn,
14625
14660
  size: "small",
14626
14661
  onClick: onOkStatic
14627
14662
  }, "\u786E\u5B9A")) : null) : null);
@@ -14650,12 +14685,12 @@ function DataSourceSelect(props) {
14650
14685
  type: "primary",
14651
14686
  text: true,
14652
14687
  size: "small",
14653
- className: styles$c.tableDeleteBtn,
14688
+ className: styles$d.tableDeleteBtn,
14654
14689
  onClick: () => commonTableDelete(value2, index2, record, "params")
14655
14690
  }, "\u5220\u9664"));
14656
14691
  };
14657
14692
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
14658
- className: styles$c.dsTitle
14693
+ className: styles$d.dsTitle
14659
14694
  }, "\u5165\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
14660
14695
  style: { marginBottom: 8 }
14661
14696
  }, /* @__PURE__ */ React$1.createElement(Button, {
@@ -14689,9 +14724,9 @@ function DataSourceSelect(props) {
14689
14724
  };
14690
14725
  const renderWatch = () => {
14691
14726
  return /* @__PURE__ */ React$1.createElement("div", {
14692
- className: styles$c.watchContainer
14727
+ className: styles$d.watchContainer
14693
14728
  }, /* @__PURE__ */ React$1.createElement("div", {
14694
- className: styles$c.dsTitleWatch
14729
+ className: styles$d.dsTitleWatch
14695
14730
  }, "\u89E6\u53D1\u65F6\u673A:"), /* @__PURE__ */ React$1.createElement(Select$2, {
14696
14731
  mode: "multiple",
14697
14732
  showSearch: true,
@@ -14969,7 +15004,7 @@ function DataSourceSelect(props) {
14969
15004
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14970
15005
  size: "small"
14971
15006
  }), /* @__PURE__ */ React$1.createElement(Button, {
14972
- className: styles$c.staticValueOkBtn,
15007
+ className: styles$d.staticValueOkBtn,
14973
15008
  size: "small",
14974
15009
  onClick: onOkQuery
14975
15010
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14980,7 +15015,7 @@ function DataSourceSelect(props) {
14980
15015
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14981
15016
  size: "small"
14982
15017
  }), /* @__PURE__ */ React$1.createElement(Button, {
14983
- className: styles$c.staticValueOkBtn,
15018
+ className: styles$d.staticValueOkBtn,
14984
15019
  size: "small",
14985
15020
  onClick: onOkStatic
14986
15021
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$RET" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14991,7 +15026,7 @@ function DataSourceSelect(props) {
14991
15026
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14992
15027
  size: "small"
14993
15028
  }), /* @__PURE__ */ React$1.createElement(Button, {
14994
- className: styles$c.staticValueOkBtn,
15029
+ className: styles$d.staticValueOkBtn,
14995
15030
  size: "small",
14996
15031
  onClick: onOkRet
14997
15032
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15002,7 +15037,7 @@ function DataSourceSelect(props) {
15002
15037
  size: "small",
15003
15038
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15004
15039
  }), /* @__PURE__ */ React$1.createElement(Button, {
15005
- className: styles$c.staticValueOkBtn,
15040
+ className: styles$d.staticValueOkBtn,
15006
15041
  size: "small",
15007
15042
  onClick: onOkParams
15008
15043
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15013,7 +15048,7 @@ function DataSourceSelect(props) {
15013
15048
  size: "small",
15014
15049
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15015
15050
  }), /* @__PURE__ */ React$1.createElement(Button, {
15016
- className: styles$c.staticValueOkBtn,
15051
+ className: styles$d.staticValueOkBtn,
15017
15052
  size: "small",
15018
15053
  onClick: onOkRecordData
15019
15054
  }, "\u786E\u5B9A")) : null) : null);
@@ -15051,9 +15086,9 @@ function DataSourceSelect(props) {
15051
15086
  }, "\u5220\u9664");
15052
15087
  };
15053
15088
  return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
15054
- className: styles$c.dsTitle
15089
+ className: styles$d.dsTitle
15055
15090
  }, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
15056
- className: styles$c.actionButton
15091
+ className: styles$d.actionButton
15057
15092
  }, /* @__PURE__ */ React$1.createElement(Button, {
15058
15093
  onClick: onResponseAdd,
15059
15094
  size: "small"
@@ -15083,9 +15118,9 @@ function DataSourceSelect(props) {
15083
15118
  })));
15084
15119
  };
15085
15120
  return /* @__PURE__ */ React$1.createElement("div", {
15086
- className: styles$c.dsContainer
15121
+ className: styles$d.dsContainer
15087
15122
  }, hasExtra && !defaultAjax ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
15088
- className: styles$c.dsType
15123
+ className: styles$d.dsType
15089
15124
  }, /* @__PURE__ */ React$1.createElement(RadioGroup$1, {
15090
15125
  value: typeValue,
15091
15126
  onChange: onTypeChange,
@@ -15115,9 +15150,9 @@ function DataSourceSelect(props) {
15115
15150
  filter: mainDataSourceFilter,
15116
15151
  ...selectProps
15117
15152
  }) : null, hasExtra && typeValue === "json" ? /* @__PURE__ */ React$1.createElement("div", {
15118
- className: styles$c.dsJSONContent
15153
+ className: styles$d.dsJSONContent
15119
15154
  }, /* @__PURE__ */ React$1.createElement("div", {
15120
- className: styles$c.dsJSONContentTip
15155
+ className: styles$d.dsJSONContentTip
15121
15156
  }, "\u8BF7\u8F93\u5165json(\u63D0\u793A\uFF1Ajson\u7684key\u9700\u8981\u52A0\u4E0A\u53CC\u5F15\u53F7)"), /* @__PURE__ */ React$1.createElement(MonacoEditor, {
15122
15157
  value: codeMirrorJsonObj,
15123
15158
  onChange: (v2, viewUpdate) => {
@@ -15130,9 +15165,9 @@ function DataSourceSelect(props) {
15130
15165
  }
15131
15166
  }
15132
15167
  })) : null, hasExtra && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
15133
- className: styles$c.dsAjaxContent
15168
+ className: styles$d.dsAjaxContent
15134
15169
  }, showWatch && !defaultAjax && renderWatch(), renderParamsTable(), renderFormatResponse()) : null, hasExtra && showSecondConfirm && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
15135
- className: styles$c.secondConfirm
15170
+ className: styles$d.secondConfirm
15136
15171
  }, /* @__PURE__ */ React$1.createElement(Checkbox, {
15137
15172
  checked: secondConfirmValue,
15138
15173
  onChange: secondConfirmChange
@@ -15163,7 +15198,7 @@ const dsTitleWatch = "_dsTitleWatch_1islj_28";
15163
15198
  const staticValueOkBtn = "_staticValueOkBtn_1islj_33";
15164
15199
  const tableDeleteBtn = "_tableDeleteBtn_1islj_37";
15165
15200
  const secondConfirm = "_secondConfirm_1islj_41";
15166
- var styles$b = {
15201
+ var styles$c = {
15167
15202
  dsType,
15168
15203
  dsJSONContent,
15169
15204
  dsJSONContentTip,
@@ -15526,7 +15561,7 @@ function ParamsSelect(props) {
15526
15561
  size: "small",
15527
15562
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15528
15563
  }), /* @__PURE__ */ React$1.createElement(Button, {
15529
- className: styles$b.staticValueOkBtn,
15564
+ className: styles$c.staticValueOkBtn,
15530
15565
  size: "small",
15531
15566
  onClick: onOkQuery
15532
15567
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15537,7 +15572,7 @@ function ParamsSelect(props) {
15537
15572
  size: "small",
15538
15573
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15539
15574
  }), /* @__PURE__ */ React$1.createElement(Button, {
15540
- className: styles$b.staticValueOkBtn,
15575
+ className: styles$c.staticValueOkBtn,
15541
15576
  size: "small",
15542
15577
  onClick: onOkParams
15543
15578
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15548,7 +15583,7 @@ function ParamsSelect(props) {
15548
15583
  size: "small",
15549
15584
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15550
15585
  }), /* @__PURE__ */ React$1.createElement(Button, {
15551
- className: styles$b.staticValueOkBtn,
15586
+ className: styles$c.staticValueOkBtn,
15552
15587
  size: "small",
15553
15588
  onClick: onOkRecordData
15554
15589
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$FORM" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15559,7 +15594,7 @@ function ParamsSelect(props) {
15559
15594
  size: "small",
15560
15595
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15561
15596
  }), /* @__PURE__ */ React$1.createElement(Button, {
15562
- className: styles$b.staticValueOkBtn,
15597
+ className: styles$c.staticValueOkBtn,
15563
15598
  size: "small",
15564
15599
  onClick: onOkForm
15565
15600
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15570,7 +15605,7 @@ function ParamsSelect(props) {
15570
15605
  placeholder: "\u8BF7\u8F93\u5165\u503C",
15571
15606
  size: "small"
15572
15607
  }), /* @__PURE__ */ React$1.createElement(Button, {
15573
- className: styles$b.staticValueOkBtn,
15608
+ className: styles$c.staticValueOkBtn,
15574
15609
  size: "small",
15575
15610
  onClick: onOkStatic
15576
15611
  }, "\u786E\u5B9A")) : null) : null);
@@ -15599,7 +15634,7 @@ function ParamsSelect(props) {
15599
15634
  type: "primary",
15600
15635
  text: true,
15601
15636
  size: "small",
15602
- className: styles$b.tableDeleteBtn,
15637
+ className: styles$c.tableDeleteBtn,
15603
15638
  onClick: () => commonTableDelete(value2, index2, record, "params")
15604
15639
  }, "\u5220\u9664"));
15605
15640
  };
@@ -15627,9 +15662,9 @@ function ParamsSelect(props) {
15627
15662
  })));
15628
15663
  };
15629
15664
  return /* @__PURE__ */ React$1.createElement("div", {
15630
- className: styles$b.dsContainer
15665
+ className: styles$c.dsContainer
15631
15666
  }, /* @__PURE__ */ React$1.createElement("div", {
15632
- className: styles$b.dsAjaxContent
15667
+ className: styles$c.dsAjaxContent
15633
15668
  }, renderParamsTable()));
15634
15669
  }
15635
15670
  const { connect: connect$7, mapReadPretty: mapReadPretty$6, mapProps: mapProps$7 } = formilyReact;
@@ -15803,7 +15838,7 @@ Select$1.AutoComplete = connect$4(
15803
15838
  );
15804
15839
  const container = "_container_t9q14_1";
15805
15840
  const footer = "_footer_t9q14_8";
15806
- var styles$a = {
15841
+ var styles$b = {
15807
15842
  container,
15808
15843
  footer
15809
15844
  };
@@ -15903,14 +15938,14 @@ const FormilyForm = (props) => {
15903
15938
  fixedSpan: 8
15904
15939
  },
15905
15940
  size: "small",
15906
- className: styles$a.container
15941
+ className: styles$b.container
15907
15942
  },
15908
15943
  ...restProps
15909
15944
  }, /* @__PURE__ */ React$1.createElement(SchemaField, {
15910
15945
  components,
15911
15946
  schema: schema == null ? void 0 : schema.schema
15912
15947
  }), children, !hiddenSubmit && /* @__PURE__ */ React$1.createElement("div", {
15913
- className: styles$a.footer
15948
+ className: styles$b.footer
15914
15949
  }, /* @__PURE__ */ React$1.createElement(Submit, {
15915
15950
  ...SubmitProps
15916
15951
  }, "\u63D0\u4EA4")));
@@ -16379,7 +16414,7 @@ function AjaxSchemaForm(props) {
16379
16414
  generateFastJson
16380
16415
  }) : null);
16381
16416
  }
16382
- function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
16417
+ function AjaxFormDialog({ title: title2 = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
16383
16418
  const swagger = useSwagger$1();
16384
16419
  const schema = React$1.useMemo(() => {
16385
16420
  return oldSchema.clone();
@@ -16399,7 +16434,7 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
16399
16434
  const type = schema.getViewType();
16400
16435
  return /* @__PURE__ */ React$1.createElement(Dialog, {
16401
16436
  footerActions: ["cancel", "ok"],
16402
- title,
16437
+ title: title2,
16403
16438
  v2: true,
16404
16439
  visible,
16405
16440
  centered: true,
@@ -16468,9 +16503,9 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
16468
16503
  dataSource: swagger.apiList,
16469
16504
  defaultValue: schema.get("url"),
16470
16505
  onChange: (value) => {
16471
- const api2 = swagger.getApi(value);
16472
- if (api2) {
16473
- schema.setAjaxRequest(value, api2.method);
16506
+ const api = swagger.getApi(value);
16507
+ if (api) {
16508
+ schema.setAjaxRequest(value, api.method);
16474
16509
  } else {
16475
16510
  schema.set("url", value);
16476
16511
  }
@@ -17326,7 +17361,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
17326
17361
  ],
17327
17362
  fulfill: {
17328
17363
  state: {
17329
- visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' }}"
17364
+ visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"
17330
17365
  }
17331
17366
  }
17332
17367
  }
@@ -23757,7 +23792,7 @@ const itemComponent$1 = "_itemComponent_tl8oe_70";
23757
23792
  const itemLabel$1 = "_itemLabel_tl8oe_76";
23758
23793
  const collapseContent$2 = "_collapseContent_tl8oe_81";
23759
23794
  const itemClose$2 = "_itemClose_tl8oe_85";
23760
- var styles$9 = {
23795
+ var styles$a = {
23761
23796
  mddTableForm,
23762
23797
  tableFormTitle,
23763
23798
  tableFormContent,
@@ -23771,7 +23806,7 @@ var styles$9 = {
23771
23806
  itemClose: itemClose$2
23772
23807
  };
23773
23808
  const DRAG_KEY$2 = "PanelTitle";
23774
- const { Panel: Panel$2 } = Collapse;
23809
+ const { Panel: Panel$3 } = Collapse;
23775
23810
  const { Tooltip } = Balloon;
23776
23811
  const TitleRender$2 = (props) => {
23777
23812
  const ref = useRef(null);
@@ -23835,7 +23870,7 @@ const TitleRender$2 = (props) => {
23835
23870
  setValue({ ...value });
23836
23871
  onChange(value, key);
23837
23872
  };
23838
- const cls = classnames.bind(styles$9)({
23873
+ const cls = classnames.bind(styles$a)({
23839
23874
  itemTitle: "itemTitle",
23840
23875
  "drop-over-upward": isOver && index2 < sourceItem.index,
23841
23876
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -23851,9 +23886,9 @@ const TitleRender$2 = (props) => {
23851
23886
  onChange: (v2) => titleChange("label", v2),
23852
23887
  placeholder: "\u8F93\u5165\u4E2D\u6587\u540D"
23853
23888
  }), titleType.includes("type") && /* @__PURE__ */ React$1.createElement("div", {
23854
- className: styles$9.itemComponent
23889
+ className: styles$a.itemComponent
23855
23890
  }, /* @__PURE__ */ React$1.createElement("label", {
23856
- className: styles$9.itemLabel
23891
+ className: styles$a.itemLabel
23857
23892
  }, "\u7EC4\u4EF6: "), /* @__PURE__ */ React$1.createElement(Select$2, {
23858
23893
  size: "small",
23859
23894
  autoWidth: false,
@@ -23872,9 +23907,9 @@ const TitleRender$2 = (props) => {
23872
23907
  onChange: (v2) => titleChange("name", v2),
23873
23908
  placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"
23874
23909
  }), titleType.includes("groupKey") && /* @__PURE__ */ React$1.createElement("div", {
23875
- className: styles$9.itemComponent
23910
+ className: styles$a.itemComponent
23876
23911
  }, /* @__PURE__ */ React$1.createElement("label", {
23877
- className: styles$9.itemLabel
23912
+ className: styles$a.itemLabel
23878
23913
  }, "\u5206\u7EC4: "), /* @__PURE__ */ React$1.createElement(Input$1, {
23879
23914
  size: "small",
23880
23915
  value: groupKey,
@@ -23883,7 +23918,7 @@ const TitleRender$2 = (props) => {
23883
23918
  })), /* @__PURE__ */ React$1.createElement(Icon, {
23884
23919
  type: "close",
23885
23920
  size: "small",
23886
- className: styles$9.itemClose,
23921
+ className: styles$a.itemClose,
23887
23922
  onClick: onRemove
23888
23923
  }));
23889
23924
  };
@@ -23893,7 +23928,7 @@ const watchFields = (listSchema) => {
23893
23928
  });
23894
23929
  return fieldStringArray.join(",");
23895
23930
  };
23896
- const ContentRender$1 = (props) => {
23931
+ const ContentRender$2 = (props) => {
23897
23932
  const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag, listSchema } = props;
23898
23933
  const { type, label, name } = values;
23899
23934
  const { formilySchema: formilySchema2, dataAdaptor: dataAdaptor2 } = schema || {};
@@ -23935,7 +23970,7 @@ const ContentRender$1 = (props) => {
23935
23970
  };
23936
23971
  }, [type, updateForceFLag, realSchema]);
23937
23972
  return /* @__PURE__ */ React$1.createElement("div", {
23938
- className: styles$9.collapseContent
23973
+ className: styles$a.collapseContent
23939
23974
  }, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
23940
23975
  ...formilyForm,
23941
23976
  hiddenSubmit: true
@@ -23943,7 +23978,7 @@ const ContentRender$1 = (props) => {
23943
23978
  };
23944
23979
  function MddTableForm(props, ref) {
23945
23980
  const {
23946
- title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
23981
+ title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
23947
23982
  tip = "",
23948
23983
  actionContent = null,
23949
23984
  data = [],
@@ -24010,26 +24045,26 @@ function MddTableForm(props, ref) {
24010
24045
  forceUpdate();
24011
24046
  };
24012
24047
  return /* @__PURE__ */ React$1.createElement("div", {
24013
- className: styles$9.mddTableForm
24048
+ className: styles$a.mddTableForm
24014
24049
  }, /* @__PURE__ */ React$1.createElement("div", {
24015
- className: styles$9.tableFormTitle
24016
- }, /* @__PURE__ */ React$1.createElement("div", null, title, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
24050
+ className: styles$a.tableFormTitle
24051
+ }, /* @__PURE__ */ React$1.createElement("div", null, title2, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
24017
24052
  trigger: /* @__PURE__ */ React$1.createElement(Icon, {
24018
24053
  type: "help",
24019
24054
  size: "small"
24020
24055
  }),
24021
24056
  align: "t"
24022
24057
  }, tip)), actionContent && /* @__PURE__ */ React$1.createElement("div", {
24023
- className: styles$9.tableFormAction
24058
+ className: styles$a.tableFormAction
24024
24059
  }, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
24025
- className: styles$9.tableFormContent
24060
+ className: styles$a.tableFormContent
24026
24061
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
24027
24062
  backend: HTML5Backend
24028
24063
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
24029
24064
  accordion: true
24030
24065
  }, dataRef.current.map((item, idx) => {
24031
- item.name || item.dataIndex || `${title}_${idx}`;
24032
- return /* @__PURE__ */ React$1.createElement(Panel$2, {
24066
+ item.name || item.dataIndex || `${title2}_${idx}`;
24067
+ return /* @__PURE__ */ React$1.createElement(Panel$3, {
24033
24068
  title: /* @__PURE__ */ React$1.createElement(TitleRender$2, {
24034
24069
  index: idx,
24035
24070
  draggable,
@@ -24046,7 +24081,7 @@ function MddTableForm(props, ref) {
24046
24081
  titleType,
24047
24082
  componentOptions: props.componentOptions
24048
24083
  })
24049
- }, /* @__PURE__ */ React$1.createElement(ContentRender$1, {
24084
+ }, /* @__PURE__ */ React$1.createElement(ContentRender$2, {
24050
24085
  updateForceFLag: sortUpdateFlag[idx],
24051
24086
  values: item,
24052
24087
  index: idx,
@@ -24064,7 +24099,7 @@ function MddTableForm(props, ref) {
24064
24099
  }
24065
24100
  }));
24066
24101
  })))), /* @__PURE__ */ React$1.createElement("div", {
24067
- className: styles$9.tableFormBottom
24102
+ className: styles$a.tableFormBottom
24068
24103
  }, /* @__PURE__ */ React$1.createElement(Button, {
24069
24104
  onClick: onAddHandle,
24070
24105
  style: { padding: "0 48px" }
@@ -24104,14 +24139,14 @@ const FormTitle = "_FormTitle_1e2nn_20";
24104
24139
  const FormTitleHelp = "_FormTitleHelp_1e2nn_24";
24105
24140
  const FormContent = "_FormContent_1e2nn_30";
24106
24141
  const content = "_content_1e2nn_35";
24107
- var styles$8 = {
24142
+ var styles$9 = {
24108
24143
  mddForm,
24109
24144
  FormTitle,
24110
24145
  FormTitleHelp,
24111
24146
  FormContent,
24112
24147
  content
24113
24148
  };
24114
- const ContentRender = (props) => {
24149
+ const ContentRender$1 = (props) => {
24115
24150
  const { values, index: index2, effects, onChange, schema } = props;
24116
24151
  const formilyForm = useMemo(() => {
24117
24152
  return {
@@ -24134,7 +24169,7 @@ const ContentRender = (props) => {
24134
24169
  };
24135
24170
  }, [schema]);
24136
24171
  return /* @__PURE__ */ React$1.createElement("div", {
24137
- className: styles$8.content
24172
+ className: styles$9.content
24138
24173
  }, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
24139
24174
  ...formilyForm,
24140
24175
  hiddenSubmit: true
@@ -24142,7 +24177,7 @@ const ContentRender = (props) => {
24142
24177
  };
24143
24178
  function MddForm(props) {
24144
24179
  const {
24145
- title = "\u914D\u7F6E\u5206\u9875",
24180
+ title: title2 = "\u914D\u7F6E\u5206\u9875",
24146
24181
  help,
24147
24182
  data = {},
24148
24183
  type,
@@ -24154,16 +24189,16 @@ function MddForm(props) {
24154
24189
  contentStyle
24155
24190
  } = props;
24156
24191
  return /* @__PURE__ */ React$1.createElement("div", {
24157
- className: styles$8.mddForm,
24192
+ className: styles$9.mddForm,
24158
24193
  style: style2
24159
24194
  }, /* @__PURE__ */ React$1.createElement("div", {
24160
- className: styles$8.FormTitle
24161
- }, title), help && /* @__PURE__ */ React$1.createElement("div", {
24162
- className: styles$8.FormTitleHelp
24195
+ className: styles$9.FormTitle
24196
+ }, title2), help && /* @__PURE__ */ React$1.createElement("div", {
24197
+ className: styles$9.FormTitleHelp
24163
24198
  }, help), /* @__PURE__ */ React$1.createElement("div", {
24164
- className: styles$8.FormContent,
24199
+ className: styles$9.FormContent,
24165
24200
  style: contentStyle
24166
- }, children || /* @__PURE__ */ React$1.createElement(ContentRender, {
24201
+ }, children || /* @__PURE__ */ React$1.createElement(ContentRender$1, {
24167
24202
  values: data,
24168
24203
  schema: CompSchema[type],
24169
24204
  effects,
@@ -24897,7 +24932,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
24897
24932
  function type(obj) {
24898
24933
  return toString2.call(obj).slice(8, -1);
24899
24934
  }
24900
- var assign2 = Object.assign || function(target, source) {
24935
+ var assign = Object.assign || function(target, source) {
24901
24936
  getAllKeys2(source).forEach(function(key) {
24902
24937
  if (hasOwnProperty2.call(source, key)) {
24903
24938
  target[key] = source[key];
@@ -24911,11 +24946,11 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
24911
24946
  return Object.keys(obj);
24912
24947
  };
24913
24948
  function copy(object) {
24914
- return Array.isArray(object) ? assign2(object.constructor(object.length), object) : type(object) === "Map" ? new Map(object) : type(object) === "Set" ? new Set(object) : object && typeof object === "object" ? assign2(Object.create(Object.getPrototypeOf(object)), object) : object;
24949
+ return Array.isArray(object) ? assign(object.constructor(object.length), object) : type(object) === "Map" ? new Map(object) : type(object) === "Set" ? new Set(object) : object && typeof object === "object" ? assign(Object.create(Object.getPrototypeOf(object)), object) : object;
24915
24950
  }
24916
24951
  var Context = function() {
24917
24952
  function Context2() {
24918
- this.commands = assign2({}, defaultCommands);
24953
+ this.commands = assign({}, defaultCommands);
24919
24954
  this.update = this.update.bind(this);
24920
24955
  this.update.extend = this.extend = this.extend.bind(this);
24921
24956
  this.update.isEquals = function(x, y) {
@@ -25074,7 +25109,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
25074
25109
  exports.isEquals = defaultContext.update.isEquals;
25075
25110
  exports.extend = defaultContext.extend;
25076
25111
  exports.default = defaultContext.update;
25077
- exports.default.default = module.exports = assign2(exports.default, exports);
25112
+ exports.default.default = module.exports = assign(exports.default, exports);
25078
25113
  function invariantPushAndUnshift(value, spec, command) {
25079
25114
  invariant2(Array.isArray(value), function() {
25080
25115
  return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + ".";
@@ -25130,7 +25165,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
25130
25165
  const itemTitle$1 = "_itemTitle_16ght_39";
25131
25166
  const collapseContent$1 = "_collapseContent_16ght_69";
25132
25167
  const itemClose$1 = "_itemClose_16ght_73";
25133
- var styles$7 = {
25168
+ var styles$8 = {
25134
25169
  mddTableArray: mddTableArray$1,
25135
25170
  tableArrayTitle: tableArrayTitle$1,
25136
25171
  tableArrayContent: tableArrayContent$1,
@@ -25142,11 +25177,13 @@ var styles$7 = {
25142
25177
  itemClose: itemClose$1
25143
25178
  };
25144
25179
  const DRAG_KEY$1 = "TableArrayPanelTitle";
25145
- const { Panel: Panel$1 } = Collapse;
25180
+ const { Panel: Panel$2 } = Collapse;
25146
25181
  const TitleRender$1 = (props) => {
25147
25182
  const ref = useRef(null);
25148
25183
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
25149
25184
  } } = props;
25185
+ const { dataMap, getModule } = useModule$1();
25186
+ const moduleDataSource = getModule("$ModuleDataSource");
25150
25187
  const [{ isOver }, drop] = useDrop({
25151
25188
  accept: DRAG_KEY$1,
25152
25189
  collect(monitor) {
@@ -25173,7 +25210,7 @@ const TitleRender$1 = (props) => {
25173
25210
  });
25174
25211
  const opacity = isDragging ? 0 : 1;
25175
25212
  draggable && drag(drop(ref));
25176
- const cls = classnames.bind(styles$7)({
25213
+ const cls = classnames.bind(styles$8)({
25177
25214
  itemTitle: "itemTitle",
25178
25215
  "drop-over-upward": isOver && index2 < sourceItem.index,
25179
25216
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25183,16 +25220,18 @@ const TitleRender$1 = (props) => {
25183
25220
  className: cls,
25184
25221
  style: { cursor: draggable ? "move" : "default", opacity },
25185
25222
  onClick: (e) => e.stopPropagation()
25186
- }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
25223
+ }, customRender && customRender({ data, index: index2, onChange, moduleDataSource }), /* @__PURE__ */ React$1.createElement(Icon, {
25187
25224
  type: "close",
25188
25225
  size: "small",
25189
- className: styles$7.itemClose,
25226
+ className: styles$8.itemClose,
25190
25227
  onClick: onRemove
25191
25228
  }));
25192
25229
  };
25193
25230
  function MddTableSimpleArray(props) {
25231
+ var _a2;
25194
25232
  const {
25195
- title = "",
25233
+ title: title2 = "",
25234
+ tip,
25196
25235
  data = [],
25197
25236
  onChange = () => {
25198
25237
  },
@@ -25221,17 +25260,23 @@ function MddTableSimpleArray(props) {
25221
25260
  onChange({ record, index: index2, data });
25222
25261
  };
25223
25262
  return /* @__PURE__ */ React$1.createElement("div", {
25224
- className: styles$7.mddTableArray
25263
+ className: styles$8.mddTableArray
25225
25264
  }, /* @__PURE__ */ React$1.createElement("div", {
25226
- className: styles$7.tableArrayTitle
25227
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25228
- className: styles$7.tableArrayContent
25265
+ className: styles$8.tableArrayTitle
25266
+ }, title2, tip && /* @__PURE__ */ React$1.createElement(Balloon, {
25267
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
25268
+ type: "help",
25269
+ size: "small"
25270
+ }),
25271
+ align: "t"
25272
+ }, tip)), /* @__PURE__ */ React$1.createElement("div", {
25273
+ className: styles$8.tableArrayContent
25229
25274
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25230
25275
  backend: HTML5Backend
25231
25276
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
25232
25277
  accordion: true
25233
- }, data.map((item, idx) => {
25234
- return /* @__PURE__ */ React$1.createElement(Panel$1, {
25278
+ }, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
25279
+ return /* @__PURE__ */ React$1.createElement(Panel$2, {
25235
25280
  title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
25236
25281
  index: idx,
25237
25282
  draggable,
@@ -25244,10 +25289,10 @@ function MddTableSimpleArray(props) {
25244
25289
  customRender: titleRender
25245
25290
  })
25246
25291
  }, /* @__PURE__ */ React$1.createElement("div", {
25247
- className: styles$7.collapseContent
25292
+ className: styles$8.collapseContent
25248
25293
  }, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
25249
25294
  })))), /* @__PURE__ */ React$1.createElement("div", {
25250
- className: styles$7.tableArrayBottom
25295
+ className: styles$8.tableArrayBottom
25251
25296
  }, /* @__PURE__ */ React$1.createElement(Button, {
25252
25297
  onClick: onAdd,
25253
25298
  style: { padding: "0 48px" }
@@ -25259,7 +25304,7 @@ const tabLabel$4 = "_tabLabel_119xt_9";
25259
25304
  const middleBox = "_middleBox_119xt_20";
25260
25305
  const middleBoxLeft = "_middleBoxLeft_119xt_26";
25261
25306
  const middleBoxRight = "_middleBoxRight_119xt_31";
25262
- var styles$6 = {
25307
+ var styles$7 = {
25263
25308
  customTabItem: customTabItem$4,
25264
25309
  tabTitle: tabTitle$4,
25265
25310
  tabLabel: tabLabel$4,
@@ -25299,8 +25344,8 @@ function Middle(props) {
25299
25344
  };
25300
25345
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
25301
25346
  data: schema.getMiddlePanel(),
25302
- titleRender: customTitleRender$1,
25303
- contentRender,
25347
+ titleRender: customTitleRender$2,
25348
+ contentRender: contentRender$1,
25304
25349
  title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
25305
25350
  onChange: onChangeHandle,
25306
25351
  onSort: onSortHandle,
@@ -25308,11 +25353,11 @@ function Middle(props) {
25308
25353
  onRemove: onRemoveHandle
25309
25354
  }));
25310
25355
  }
25311
- function customTitleRender$1(props) {
25356
+ function customTitleRender$2(props) {
25312
25357
  const { data, index: index2 } = props;
25313
25358
  return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
25314
25359
  }
25315
- function contentRender(props) {
25360
+ function contentRender$1(props) {
25316
25361
  const { data: schema, index: index2, onChange } = props;
25317
25362
  const onBaseInfoChange = (key, value) => {
25318
25363
  schema.set(key, value);
@@ -25320,47 +25365,47 @@ function contentRender(props) {
25320
25365
  };
25321
25366
  const moduleValue = schema.get("value");
25322
25367
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
25323
- className: styles$6.middleBox
25368
+ className: styles$7.middleBox
25324
25369
  }, /* @__PURE__ */ React$1.createElement("label", {
25325
- className: styles$6.middleBoxLeft
25370
+ className: styles$7.middleBoxLeft
25326
25371
  }, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
25327
25372
  dataSource: Middle_Module_Opts,
25328
25373
  size: "small",
25329
- className: styles$6.middleBoxRight,
25374
+ className: styles$7.middleBoxRight,
25330
25375
  value: moduleValue,
25331
25376
  onChange: (val) => onBaseInfoChange("value", val)
25332
25377
  })), /* @__PURE__ */ React$1.createElement("div", {
25333
- className: styles$6.middleBox
25378
+ className: styles$7.middleBox
25334
25379
  }, /* @__PURE__ */ React$1.createElement("label", {
25335
- className: styles$6.middleBoxLeft
25380
+ className: styles$7.middleBoxLeft
25336
25381
  }, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
25337
- className: styles$6.middleBoxRight,
25382
+ className: styles$7.middleBoxRight,
25338
25383
  value: schema.get("params"),
25339
25384
  onChange: (v2) => onBaseInfoChange("params", v2)
25340
25385
  })), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
25341
- className: styles$6.middleBox
25386
+ className: styles$7.middleBox
25342
25387
  }, /* @__PURE__ */ React$1.createElement("label", {
25343
- className: styles$6.middleBoxLeft
25388
+ className: styles$7.middleBoxLeft
25344
25389
  }, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
25345
- className: styles$6.middleBoxRight,
25390
+ className: styles$7.middleBoxRight,
25346
25391
  value: schema.get("dataIndex"),
25347
25392
  size: "small",
25348
25393
  onChange: (v2) => onBaseInfoChange("dataIndex", v2)
25349
25394
  })), /* @__PURE__ */ React$1.createElement("div", {
25350
- className: styles$6.middleBox
25395
+ className: styles$7.middleBox
25351
25396
  }, /* @__PURE__ */ React$1.createElement("label", {
25352
- className: styles$6.middleBoxLeft
25397
+ className: styles$7.middleBoxLeft
25353
25398
  }, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
25354
- className: styles$6.middleBoxRight,
25399
+ className: styles$7.middleBoxRight,
25355
25400
  value: schema.get("defaultTabValue"),
25356
25401
  size: "small",
25357
25402
  onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
25358
25403
  })), /* @__PURE__ */ React$1.createElement("div", {
25359
- className: styles$6.middleBox
25404
+ className: styles$7.middleBox
25360
25405
  }, /* @__PURE__ */ React$1.createElement("label", {
25361
- className: styles$6.middleBoxLeft
25406
+ className: styles$7.middleBoxLeft
25362
25407
  }, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
25363
- className: styles$6.middleBoxRight
25408
+ className: styles$7.middleBoxRight
25364
25409
  }, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
25365
25410
  schema: schema.getSourcePanel(),
25366
25411
  isSelectType: false
@@ -25373,17 +25418,17 @@ function contentRender(props) {
25373
25418
  href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
25374
25419
  }, "\u6587\u6863"))))));
25375
25420
  }
25376
- const CustomTabItem$4 = ({ title, icon }) => {
25421
+ const CustomTabItem$4 = ({ title: title2, icon }) => {
25377
25422
  return /* @__PURE__ */ React$1.createElement("div", {
25378
- className: styles$6.customTabItem
25423
+ className: styles$7.customTabItem
25379
25424
  }, /* @__PURE__ */ React$1.createElement("div", {
25380
- className: styles$6.tabTitle
25425
+ className: styles$7.tabTitle
25381
25426
  }, /* @__PURE__ */ React$1.createElement(Icon, {
25382
25427
  type: icon,
25383
25428
  size: "small"
25384
25429
  }), /* @__PURE__ */ React$1.createElement("span", {
25385
- className: styles$6.tabLabel
25386
- }, title)));
25430
+ className: styles$7.tabLabel
25431
+ }, title2)));
25387
25432
  };
25388
25433
  function FtpBuild$1({ schema, moduleMap }) {
25389
25434
  const { getApiFields } = useSwagger$1();
@@ -25446,7 +25491,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
25446
25491
  const itemTitle = "_itemTitle_16ght_39";
25447
25492
  const collapseContent = "_collapseContent_16ght_69";
25448
25493
  const itemClose = "_itemClose_16ght_73";
25449
- var styles$5 = {
25494
+ var styles$6 = {
25450
25495
  mddTableArray,
25451
25496
  tableArrayTitle,
25452
25497
  tableArrayContent,
@@ -25458,7 +25503,7 @@ var styles$5 = {
25458
25503
  itemClose
25459
25504
  };
25460
25505
  const DRAG_KEY = "TableArrayPanelTitle";
25461
- const { Panel } = Collapse;
25506
+ const { Panel: Panel$1 } = Collapse;
25462
25507
  const TitleRender = (props) => {
25463
25508
  const ref = useRef(null);
25464
25509
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
@@ -25489,7 +25534,7 @@ const TitleRender = (props) => {
25489
25534
  });
25490
25535
  const opacity = isDragging ? 0 : 1;
25491
25536
  draggable && drag(drop(ref));
25492
- const cls = classnames.bind(styles$5)({
25537
+ const cls = classnames.bind(styles$6)({
25493
25538
  itemTitle: "itemTitle",
25494
25539
  "drop-over-upward": isOver && index2 < sourceItem.index,
25495
25540
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25502,7 +25547,7 @@ const TitleRender = (props) => {
25502
25547
  }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
25503
25548
  type: "close",
25504
25549
  size: "small",
25505
- className: styles$5.itemClose,
25550
+ className: styles$6.itemClose,
25506
25551
  onClick: onRemove
25507
25552
  }));
25508
25553
  };
@@ -25516,7 +25561,7 @@ const getTypeContentMap = (typeContent2) => {
25516
25561
  };
25517
25562
  function MddTableArray(props) {
25518
25563
  const {
25519
- title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
25564
+ title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
25520
25565
  data = [],
25521
25566
  onChange = () => {
25522
25567
  },
@@ -25546,11 +25591,11 @@ function MddTableArray(props) {
25546
25591
  onChange({ record, index: index2, data });
25547
25592
  };
25548
25593
  return /* @__PURE__ */ React$1.createElement("div", {
25549
- className: styles$5.mddTableArray
25594
+ className: styles$6.mddTableArray
25550
25595
  }, /* @__PURE__ */ React$1.createElement("div", {
25551
- className: styles$5.tableArrayTitle
25552
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25553
- className: styles$5.tableArrayContent
25596
+ className: styles$6.tableArrayTitle
25597
+ }, title2), /* @__PURE__ */ React$1.createElement("div", {
25598
+ className: styles$6.tableArrayContent
25554
25599
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25555
25600
  backend: HTML5Backend
25556
25601
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
@@ -25558,7 +25603,7 @@ function MddTableArray(props) {
25558
25603
  }, data.map((item, idx) => {
25559
25604
  var _a2;
25560
25605
  const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
25561
- return /* @__PURE__ */ React$1.createElement(Panel, {
25606
+ return /* @__PURE__ */ React$1.createElement(Panel$1, {
25562
25607
  title: /* @__PURE__ */ React$1.createElement(TitleRender, {
25563
25608
  index: idx,
25564
25609
  draggable,
@@ -25572,10 +25617,10 @@ function MddTableArray(props) {
25572
25617
  customRender: titleRender
25573
25618
  })
25574
25619
  }, /* @__PURE__ */ React$1.createElement("div", {
25575
- className: styles$5.collapseContent
25620
+ className: styles$6.collapseContent
25576
25621
  }, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
25577
25622
  })))), /* @__PURE__ */ React$1.createElement("div", {
25578
- className: styles$5.tableArrayBottom
25623
+ className: styles$6.tableArrayBottom
25579
25624
  }, /* @__PURE__ */ React$1.createElement(Button, {
25580
25625
  onClick: onAdd,
25581
25626
  style: { padding: "0 48px" }
@@ -26083,6 +26128,199 @@ function DetailStaticStep(props) {
26083
26128
  single: true
26084
26129
  })));
26085
26130
  }
26131
+ const title = "_title_10adh_1";
26132
+ const titleItem = "_titleItem_10adh_7";
26133
+ const titleItemLabel = "_titleItemLabel_10adh_12";
26134
+ var styles$5 = {
26135
+ title,
26136
+ titleItem,
26137
+ titleItemLabel
26138
+ };
26139
+ const { Panel } = Collapse;
26140
+ function DetailColumns(props) {
26141
+ const { data, index: idx, onChange } = props;
26142
+ const [_2, forceUpdate] = React$1.useState({});
26143
+ React$1.useEffect(() => {
26144
+ data.set("hideCardTitle", true);
26145
+ forceUpdate();
26146
+ return () => {
26147
+ data.set("hideCardTitle", false);
26148
+ forceUpdate();
26149
+ };
26150
+ }, []);
26151
+ const onAddHandle = () => {
26152
+ data.add(
26153
+ {
26154
+ moduleName: "",
26155
+ cols: 1,
26156
+ params: [],
26157
+ canUpdateOtherColumns: true,
26158
+ canBeUpdated: true
26159
+ },
26160
+ "columnsBoxes"
26161
+ );
26162
+ forceUpdate({});
26163
+ };
26164
+ const onRemoveHandle = (index2) => {
26165
+ data.remove(index2, "columnsBoxes");
26166
+ forceUpdate({});
26167
+ };
26168
+ const onChangeHandle = ({ index: index2, record }) => {
26169
+ data.update(index2, record, "columnsBoxes");
26170
+ forceUpdate({});
26171
+ };
26172
+ return /* @__PURE__ */ React$1.createElement(Form, {
26173
+ labelCol: { span: 4 },
26174
+ wrapperCol: { span: 19 },
26175
+ size: "small",
26176
+ onChange: (values, item) => {
26177
+ data.set(item.name, item.value);
26178
+ onChange({ index: idx, record: data });
26179
+ }
26180
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
26181
+ labelAlign: "left",
26182
+ label: "\u5E03\u5C40\u65B9\u5F0F",
26183
+ name: "columnsDirection"
26184
+ }, /* @__PURE__ */ React$1.createElement(CnRadioGroup, {
26185
+ defaultValue: data.get("columnsDirection")
26186
+ }, /* @__PURE__ */ React$1.createElement(CnRadio, {
26187
+ value: "row"
26188
+ }, "\u5DE6\u53F3\u5E03\u5C40"), /* @__PURE__ */ React$1.createElement(CnRadio, {
26189
+ value: "column"
26190
+ }, "\u4E0A\u4E0B\u5E03\u5C40"))), /* @__PURE__ */ React$1.createElement(Form.Item, {
26191
+ labelAlign: "left",
26192
+ label: "\u9690\u85CF\u5361\u7247\u5934\u90E8",
26193
+ name: "hideCardTitle"
26194
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26195
+ checked: data.get("hideCardTitle")
26196
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26197
+ labelAlign: "top",
26198
+ label: ""
26199
+ }, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
26200
+ data: data.get("columnsBoxes"),
26201
+ titleRender: customTitleRender$1,
26202
+ contentRender,
26203
+ title: "\u914D\u7F6E\u5206\u680F\u4FE1\u606F",
26204
+ tip: "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",
26205
+ onChange: onChangeHandle,
26206
+ onSort: (newList) => {
26207
+ data.setItemAll(newList, "columnsBoxes");
26208
+ forceUpdate({});
26209
+ },
26210
+ onAdd: onAddHandle,
26211
+ onRemove: (index2) => onRemoveHandle(index2)
26212
+ })), data.get("hideCardTitle") ? null : /* @__PURE__ */ React$1.createElement(ActionsPanel, {
26213
+ schema: data
26214
+ }));
26215
+ }
26216
+ function customTitleRender$1(props) {
26217
+ const { data, index: index2, onChange, moduleDataSource } = props;
26218
+ return /* @__PURE__ */ React$1.createElement("div", {
26219
+ className: styles$5.title
26220
+ }, /* @__PURE__ */ React$1.createElement("div", {
26221
+ className: styles$5.titleItem
26222
+ }, /* @__PURE__ */ React$1.createElement("label", {
26223
+ className: styles$5.titleItemLabel
26224
+ }, "\u6A21\u5757\u5730\u5740"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
26225
+ placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
26226
+ hasClear: true,
26227
+ size: "small",
26228
+ style: {
26229
+ minWidth: 280
26230
+ },
26231
+ dataSource: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || moduleDataSource || [],
26232
+ value: data == null ? void 0 : data.moduleName,
26233
+ onChange: (v2) => onChange({ ...data, moduleName: v2 })
26234
+ })), /* @__PURE__ */ React$1.createElement("div", {
26235
+ className: styles$5.titleItem
26236
+ }, /* @__PURE__ */ React$1.createElement("label", {
26237
+ className: styles$5.titleItemLabel
26238
+ }, /* @__PURE__ */ React$1.createElement(Balloon, {
26239
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
26240
+ style: { display: "flex", alignItems: "center" }
26241
+ }, "\u5360\u5217\u6570 ", /* @__PURE__ */ React$1.createElement(Icon, {
26242
+ type: "help",
26243
+ size: "small"
26244
+ })),
26245
+ align: "t"
26246
+ }, /* @__PURE__ */ React$1.createElement("b", null, "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))), /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
26247
+ size: "small",
26248
+ min: 0,
26249
+ max: 24,
26250
+ value: data == null ? void 0 : data.cols,
26251
+ onChange: (v2) => onChange({ ...data, cols: v2 }),
26252
+ placeholder: "\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"
26253
+ })));
26254
+ }
26255
+ const layoutConfig = {
26256
+ wrapperCol: { span: 16 },
26257
+ labelCol: { span: 8 }
26258
+ };
26259
+ function contentRender(props) {
26260
+ return /* @__PURE__ */ React$1.createElement(ContentRender, {
26261
+ ...props
26262
+ });
26263
+ }
26264
+ const ContentRender = (props) => {
26265
+ const { data, index: index2, onChange } = props;
26266
+ return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Form.Item, {
26267
+ name: "",
26268
+ wrapperCol: { span: 22 },
26269
+ labelCol: { span: 2 },
26270
+ style: { position: "relative" },
26271
+ label: /* @__PURE__ */ React$1.createElement("div", null, "\u53C2\u6570", /* @__PURE__ */ React$1.createElement("a", {
26272
+ rel: "noreferrer",
26273
+ target: "_blank",
26274
+ href: "https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",
26275
+ title: "\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",
26276
+ className: "help-link"
26277
+ }, "\u5E2E\u52A9"))
26278
+ }, /* @__PURE__ */ React$1.createElement(FormilyTableFormProxy, {
26279
+ keyTitle: "key(\u53C2\u6570\u540D)",
26280
+ valueTitle: "value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",
26281
+ value: data == null ? void 0 : data.params,
26282
+ onChange: (v2) => onChange({ index: index2, record: { ...data, params: v2 } })
26283
+ })), /* @__PURE__ */ React$1.createElement(Collapse, {
26284
+ accordion: true
26285
+ }, /* @__PURE__ */ React$1.createElement(Panel, {
26286
+ title: /* @__PURE__ */ React$1.createElement(Balloon, {
26287
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
26288
+ style: { width: "fit-content", display: "flex", alignItems: "center" }
26289
+ }, "\u5176\u4ED6\u914D\u7F6E\uFF1A", /* @__PURE__ */ React$1.createElement(Icon, {
26290
+ type: "help",
26291
+ size: "small"
26292
+ })),
26293
+ align: "t"
26294
+ }, "\u914D\u7F6E\u4EE5\u4E0B\u5C5E\u6027\u540E\uFF0C\u65B9\u53EF\u5728\u6BCF\u4E2A\u5206\u680F\u4E2D \u4F7F\u7528\u3010\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3011\u4E8B\u4EF6\uFF0C\u5F15\u64CE\u4F1A\u76D1\u542C \u5E76\u81EA\u52A8\u66F4\u65B0\u5176\u4ED6\u5206\u680F\uFF08\u89E6\u53D1\u4E00\u4E2A detail:updateColumns \u4E8B\u4EF6\u3002\u82E5\u5206\u680F\u4E3A FTP \u7C7B\u578B \u5219\u652F\u6301\u81EA\u52A8\u5237\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301\uFF09\u3002", /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("b", null, "\u5EFA\u8BAE\u5728\u6BCF\u4E2A\u5206\u680F\u6A21\u5757\u4E2D\u5199\u80F6\u6C34\u4EE3\u7801\uFF0C\u624B\u52A8\u63A7\u5236\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3002")))
26295
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
26296
+ ...layoutConfig,
26297
+ label: "\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",
26298
+ name: ""
26299
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26300
+ defaultChecked: data == null ? void 0 : data.canUpdateOtherColumns,
26301
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canUpdateOtherColumns: v2 } })
26302
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26303
+ ...layoutConfig,
26304
+ label: "\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",
26305
+ name: ""
26306
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26307
+ defaultChecked: data == null ? void 0 : data.canBeUpdated,
26308
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canBeUpdated: v2 } })
26309
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26310
+ ...layoutConfig,
26311
+ label: /* @__PURE__ */ React$1.createElement(Balloon, {
26312
+ trigger: /* @__PURE__ */ React$1.createElement("div", null, "\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0", /* @__PURE__ */ React$1.createElement(Icon, {
26313
+ type: "help",
26314
+ size: "small"
26315
+ })),
26316
+ align: "t"
26317
+ }, /* @__PURE__ */ React$1.createElement("b", null, "\u4EE5FTP\u9875\u9762\u683C\u5F0F \u88AB\u66F4\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301")),
26318
+ name: ""
26319
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26320
+ defaultChecked: data == null ? void 0 : data.autoUpdateWhenIsFTP,
26321
+ onChange: (v2) => onChange({ index: index2, record: { ...data, autoUpdateWhenIsFTP: v2 } })
26322
+ })))));
26323
+ };
26086
26324
  const customTabItem$3 = "_customTabItem_1lh1l_1";
26087
26325
  const tabTitle$3 = "_tabTitle_1lh1l_5";
26088
26326
  const tabLabel$3 = "_tabLabel_1lh1l_9";
@@ -26134,6 +26372,15 @@ const typeContent = [
26134
26372
  });
26135
26373
  }
26136
26374
  },
26375
+ {
26376
+ label: "\u5E03\u5C40",
26377
+ value: "detail-columns",
26378
+ contentRender: (props) => {
26379
+ return /* @__PURE__ */ React$1.createElement(DetailColumns, {
26380
+ ...props
26381
+ });
26382
+ }
26383
+ },
26137
26384
  {
26138
26385
  label: "\u5185\u5D4C\u9875\u9762",
26139
26386
  value: "import-component",
@@ -26226,7 +26473,7 @@ function DetailItems({ schema = {} }) {
26226
26473
  onRemove: onRemoveHandle
26227
26474
  }));
26228
26475
  }
26229
- const CustomTabItem$3 = ({ title, icon }) => {
26476
+ const CustomTabItem$3 = ({ title: title2, icon }) => {
26230
26477
  return /* @__PURE__ */ React$1.createElement("div", {
26231
26478
  className: styles$4.customTabItem
26232
26479
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26236,7 +26483,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
26236
26483
  size: "small"
26237
26484
  }), /* @__PURE__ */ React$1.createElement("span", {
26238
26485
  className: styles$4.tabLabel
26239
- }, title)));
26486
+ }, title2)));
26240
26487
  };
26241
26488
  function DetailBuild({ schema }) {
26242
26489
  return /* @__PURE__ */ React$1.createElement(Tab, {
@@ -26524,7 +26771,7 @@ var styles$3 = {
26524
26771
  tabTitle: tabTitle$2,
26525
26772
  tabLabel: tabLabel$2
26526
26773
  };
26527
- const CustomTabItem$2 = ({ title, icon }) => {
26774
+ const CustomTabItem$2 = ({ title: title2, icon }) => {
26528
26775
  return /* @__PURE__ */ React$1.createElement("div", {
26529
26776
  className: styles$3.customTabItem
26530
26777
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26534,9 +26781,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
26534
26781
  size: "small"
26535
26782
  }), /* @__PURE__ */ React$1.createElement("span", {
26536
26783
  className: styles$3.tabLabel
26537
- }, title)));
26784
+ }, title2)));
26538
26785
  };
26539
- const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
26786
+ const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
26540
26787
  return /* @__PURE__ */ React$1.createElement("div", {
26541
26788
  className: "formily-form-v2-kv"
26542
26789
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26545,7 +26792,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
26545
26792
  className: "formily-form-v2-title-wrapper"
26546
26793
  }, /* @__PURE__ */ React$1.createElement("label", {
26547
26794
  className: "title"
26548
- }, title), /* @__PURE__ */ React$1.createElement("label", {
26795
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26549
26796
  className: "subTitle"
26550
26797
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26551
26798
  };
@@ -26779,7 +27026,7 @@ var styles$2 = {
26779
27026
  kvTitle,
26780
27027
  kvSubTitle
26781
27028
  };
26782
- var CustomKV = ({ title = "", subTitle = "", children }) => {
27029
+ var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
26783
27030
  return /* @__PURE__ */ React$1.createElement("div", {
26784
27031
  className: styles$2.kvContainer
26785
27032
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26788,7 +27035,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
26788
27035
  className: styles$2.kvWrapper
26789
27036
  }, /* @__PURE__ */ React$1.createElement("label", {
26790
27037
  className: styles$2.kvTitle
26791
- }, title), /* @__PURE__ */ React$1.createElement("label", {
27038
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26792
27039
  className: styles$2.kvSubTitle
26793
27040
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26794
27041
  };
@@ -26800,7 +27047,7 @@ var styles$1 = {
26800
27047
  tabTitle: tabTitle$1,
26801
27048
  tabLabel: tabLabel$1
26802
27049
  };
26803
- const CustomTabItem$1 = ({ title, icon }) => {
27050
+ const CustomTabItem$1 = ({ title: title2, icon }) => {
26804
27051
  return /* @__PURE__ */ React$1.createElement("div", {
26805
27052
  className: styles$1.customTabItem
26806
27053
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26810,7 +27057,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
26810
27057
  size: "small"
26811
27058
  }), /* @__PURE__ */ React$1.createElement("span", {
26812
27059
  className: styles$1.tabLabel
26813
- }, title)));
27060
+ }, title2)));
26814
27061
  };
26815
27062
  function FtpBuild({ schema }) {
26816
27063
  const [_2, forceUpdate] = React$1.useState({});
@@ -27263,7 +27510,7 @@ var styles = {
27263
27510
  tabTitle,
27264
27511
  tabLabel
27265
27512
  };
27266
- const CustomTabItem = ({ title, icon }) => {
27513
+ const CustomTabItem = ({ title: title2, icon }) => {
27267
27514
  return /* @__PURE__ */ React$1.createElement("div", {
27268
27515
  className: styles.customTabItem
27269
27516
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -27273,7 +27520,7 @@ const CustomTabItem = ({ title, icon }) => {
27273
27520
  size: "small"
27274
27521
  }), /* @__PURE__ */ React$1.createElement("span", {
27275
27522
  className: styles.tabLabel
27276
- }, title)));
27523
+ }, title2)));
27277
27524
  };
27278
27525
  function SimpleFtp({ schema }) {
27279
27526
  return /* @__PURE__ */ React$1.createElement(Tab, {