@cniot/mdd-editor 0.2.0-beta.41 → 0.2.0-beta.43

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
@@ -1564,132 +1564,103 @@ class HeaderToolbar$1 extends JSONWatch {
1564
1564
  return this.data || [];
1565
1565
  }
1566
1566
  }
1567
- var js_cookie = { exports: {} };
1568
- /*!
1569
- * JavaScript Cookie v2.2.1
1570
- * https://github.com/js-cookie/js-cookie
1571
- *
1572
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
1573
- * Released under the MIT license
1574
- */
1575
- (function(module, exports) {
1576
- (function(factory) {
1577
- var registeredInModuleLoader;
1578
- {
1579
- module.exports = factory();
1580
- registeredInModuleLoader = true;
1581
- }
1582
- if (!registeredInModuleLoader) {
1583
- var OldCookies = window.Cookies;
1584
- var api = window.Cookies = factory();
1585
- api.noConflict = function() {
1586
- window.Cookies = OldCookies;
1587
- return api;
1588
- };
1567
+ /*! js-cookie v3.0.5 | MIT */
1568
+ function assign(target) {
1569
+ for (var i = 1; i < arguments.length; i++) {
1570
+ var source = arguments[i];
1571
+ for (var key in source) {
1572
+ target[key] = source[key];
1589
1573
  }
1590
- })(function() {
1591
- function extend() {
1592
- var i = 0;
1593
- var result = {};
1594
- for (; i < arguments.length; i++) {
1595
- var attributes = arguments[i];
1596
- for (var key in attributes) {
1597
- result[key] = attributes[key];
1598
- }
1599
- }
1600
- return result;
1574
+ }
1575
+ return target;
1576
+ }
1577
+ var defaultConverter = {
1578
+ read: function(value) {
1579
+ if (value[0] === '"') {
1580
+ value = value.slice(1, -1);
1601
1581
  }
1602
- function decode(s) {
1603
- return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
1582
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1583
+ },
1584
+ write: function(value) {
1585
+ return encodeURIComponent(value).replace(
1586
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1587
+ decodeURIComponent
1588
+ );
1589
+ }
1590
+ };
1591
+ function init$1(converter, defaultAttributes) {
1592
+ function set(name, value, attributes) {
1593
+ if (typeof document === "undefined") {
1594
+ return;
1595
+ }
1596
+ attributes = assign({}, defaultAttributes, attributes);
1597
+ if (typeof attributes.expires === "number") {
1598
+ attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
1599
+ }
1600
+ if (attributes.expires) {
1601
+ attributes.expires = attributes.expires.toUTCString();
1604
1602
  }
1605
- function init2(converter) {
1606
- function api() {
1603
+ name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1604
+ var stringifiedAttributes = "";
1605
+ for (var attributeName in attributes) {
1606
+ if (!attributes[attributeName]) {
1607
+ continue;
1607
1608
  }
1608
- function set(key, value, attributes) {
1609
- if (typeof document === "undefined") {
1610
- return;
1611
- }
1612
- attributes = extend({
1613
- path: "/"
1614
- }, api.defaults, attributes);
1615
- if (typeof attributes.expires === "number") {
1616
- attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e5);
1617
- }
1618
- attributes.expires = attributes.expires ? attributes.expires.toUTCString() : "";
1619
- try {
1620
- var result = JSON.stringify(value);
1621
- if (/^[\{\[]/.test(result)) {
1622
- value = result;
1623
- }
1624
- } catch (e) {
1625
- }
1626
- 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);
1627
- key = encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
1628
- var stringifiedAttributes = "";
1629
- for (var attributeName in attributes) {
1630
- if (!attributes[attributeName]) {
1631
- continue;
1632
- }
1633
- stringifiedAttributes += "; " + attributeName;
1634
- if (attributes[attributeName] === true) {
1635
- continue;
1636
- }
1637
- stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
1638
- }
1639
- return document.cookie = key + "=" + value + stringifiedAttributes;
1609
+ stringifiedAttributes += "; " + attributeName;
1610
+ if (attributes[attributeName] === true) {
1611
+ continue;
1640
1612
  }
1641
- function get2(key, json) {
1642
- if (typeof document === "undefined") {
1643
- return;
1644
- }
1645
- var jar = {};
1646
- var cookies = document.cookie ? document.cookie.split("; ") : [];
1647
- var i = 0;
1648
- for (; i < cookies.length; i++) {
1649
- var parts = cookies[i].split("=");
1650
- var cookie = parts.slice(1).join("=");
1651
- if (!json && cookie.charAt(0) === '"') {
1652
- cookie = cookie.slice(1, -1);
1653
- }
1654
- try {
1655
- var name = decode(parts[0]);
1656
- cookie = (converter.read || converter)(cookie, name) || decode(cookie);
1657
- if (json) {
1658
- try {
1659
- cookie = JSON.parse(cookie);
1660
- } catch (e) {
1661
- }
1662
- }
1663
- jar[name] = cookie;
1664
- if (key === name) {
1665
- break;
1666
- }
1667
- } catch (e) {
1668
- }
1613
+ stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
1614
+ }
1615
+ return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
1616
+ }
1617
+ function get2(name) {
1618
+ if (typeof document === "undefined" || arguments.length && !name) {
1619
+ return;
1620
+ }
1621
+ var cookies = document.cookie ? document.cookie.split("; ") : [];
1622
+ var jar = {};
1623
+ for (var i = 0; i < cookies.length; i++) {
1624
+ var parts = cookies[i].split("=");
1625
+ var value = parts.slice(1).join("=");
1626
+ try {
1627
+ var found = decodeURIComponent(parts[0]);
1628
+ jar[found] = converter.read(value, found);
1629
+ if (name === found) {
1630
+ break;
1669
1631
  }
1670
- return key ? jar[key] : jar;
1632
+ } catch (e) {
1671
1633
  }
1672
- api.set = set;
1673
- api.get = function(key) {
1674
- return get2(key, false);
1675
- };
1676
- api.getJSON = function(key) {
1677
- return get2(key, true);
1678
- };
1679
- api.remove = function(key, attributes) {
1680
- set(key, "", extend(attributes, {
1681
- expires: -1
1682
- }));
1683
- };
1684
- api.defaults = {};
1685
- api.withConverter = init2;
1686
- return api;
1687
1634
  }
1688
- return init2(function() {
1689
- });
1690
- });
1691
- })(js_cookie);
1692
- var Cookies = js_cookie.exports;
1635
+ return name ? jar[name] : jar;
1636
+ }
1637
+ return Object.create(
1638
+ {
1639
+ set,
1640
+ get: get2,
1641
+ remove: function(name, attributes) {
1642
+ set(
1643
+ name,
1644
+ "",
1645
+ assign({}, attributes, {
1646
+ expires: -1
1647
+ })
1648
+ );
1649
+ },
1650
+ withAttributes: function(attributes) {
1651
+ return init$1(this.converter, assign({}, this.attributes, attributes));
1652
+ },
1653
+ withConverter: function(converter2) {
1654
+ return init$1(assign({}, this.converter, converter2), this.attributes);
1655
+ }
1656
+ },
1657
+ {
1658
+ attributes: { value: Object.freeze(defaultAttributes) },
1659
+ converter: { value: Object.freeze(converter) }
1660
+ }
1661
+ );
1662
+ }
1663
+ var api = init$1(defaultConverter, { path: "/" });
1693
1664
  const calcWordWidth = (str) => {
1694
1665
  const Min_Width = 50;
1695
1666
  if (!str || typeof str !== "string")
@@ -1709,7 +1680,7 @@ const upperFirst$1 = (str) => {
1709
1680
  return str.slice(0, 1).toUpperCase() + temp;
1710
1681
  };
1711
1682
  const getGlobalSizeFromCookie = () => {
1712
- return Cookies == null ? void 0 : Cookies.get("CNUICOOKIESIZE");
1683
+ return api == null ? void 0 : api.get("CNUICOOKIESIZE");
1713
1684
  };
1714
1685
  const getDefaultFomrLabelAlign = () => {
1715
1686
  const globalSize = getGlobalSizeFromCookie();
@@ -2006,29 +1977,29 @@ const openApi3Support = (apiInfo) => {
2006
1977
  responses: res
2007
1978
  };
2008
1979
  };
2009
- var buildSwaggerApiJson = (api, apiMeta) => {
2010
- if (!api || !apiMeta) {
1980
+ var buildSwaggerApiJson = (api2, apiMeta) => {
1981
+ if (!api2 || !apiMeta) {
2011
1982
  throw Error("mdd-tool columns complier error: api or api meta is null");
2012
1983
  }
2013
1984
  const { paths, definitions } = apiMeta || {};
2014
- if (!paths[api]) {
2015
- throw Error(`mdd-tool columns complier error: api meta has not api: ${api}`);
1985
+ if (!paths[api2]) {
1986
+ throw Error(`mdd-tool columns complier error: api meta has not api: ${api2}`);
2016
1987
  }
2017
1988
  let method = "";
2018
1989
  let apiInfo = null;
2019
- if (Object.prototype.hasOwnProperty.call(paths[api], "post")) {
1990
+ if (Object.prototype.hasOwnProperty.call(paths[api2], "post")) {
2020
1991
  method = "post";
2021
- apiInfo = paths[api]["post"];
2022
- } else if (Object.prototype.hasOwnProperty.call(paths[api], "get")) {
1992
+ apiInfo = paths[api2]["post"];
1993
+ } else if (Object.prototype.hasOwnProperty.call(paths[api2], "get")) {
2023
1994
  method = "get";
2024
- apiInfo = paths[api]["get"];
1995
+ apiInfo = paths[api2]["get"];
2025
1996
  } else {
2026
1997
  throw Error("mdd-tool columns complier error: api method not support");
2027
1998
  }
2028
1999
  const { summary } = apiInfo;
2029
2000
  const { parameters = [], responses } = openApi3Support(apiInfo);
2030
2001
  return {
2031
- api,
2002
+ api: api2,
2032
2003
  method,
2033
2004
  summary,
2034
2005
  parameters: transfer$refToJson("parameters", parameters, definitions),
@@ -2469,11 +2440,11 @@ function handleDefinitions(obj, map, depth) {
2469
2440
  function getSwaggerInfoFromJson(swaggerJson) {
2470
2441
  return jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerJson));
2471
2442
  }
2472
- function getApiInfo(api, swaggerInfo) {
2443
+ function getApiInfo(api2, swaggerInfo) {
2473
2444
  const realSwaggerInfo = jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerInfo));
2474
- return buildSwaggerApiJson(api, realSwaggerInfo);
2445
+ return buildSwaggerApiJson(api2, realSwaggerInfo);
2475
2446
  }
2476
- function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}) {
2447
+ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {}) {
2477
2448
  const { parameters = [], responses = [], method = "" } = apiInfo || {};
2478
2449
  const methodUpperCase = method.toUpperCase();
2479
2450
  const result = {
@@ -2496,8 +2467,8 @@ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}
2496
2467
  tableColumns: "$RET.data.tableColumns",
2497
2468
  totalCount: "$RET.data.paging.totalCount"
2498
2469
  },
2499
- value: api,
2500
- url: api
2470
+ value: api2,
2471
+ url: api2
2501
2472
  },
2502
2473
  filter: {
2503
2474
  maxVisibleRow: 2,
@@ -2542,8 +2513,8 @@ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}
2542
2513
  watch: [],
2543
2514
  params: {},
2544
2515
  formatResponseData: {},
2545
- value: api,
2546
- url: api
2516
+ value: api2,
2517
+ url: api2
2547
2518
  },
2548
2519
  initApi: [],
2549
2520
  effectApi: [],
@@ -2582,7 +2553,7 @@ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}
2582
2553
  label: "\u57FA\u7840\u4FE1\u606F",
2583
2554
  source: [
2584
2555
  {
2585
- url: api,
2556
+ url: api2,
2586
2557
  method: methodUpperCase,
2587
2558
  type: "ajax",
2588
2559
  formatResponseData: {
@@ -2615,8 +2586,8 @@ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}
2615
2586
  formatResponseData: {
2616
2587
  tableData: "$RET.data.tableData"
2617
2588
  },
2618
- value: api,
2619
- url: api
2589
+ value: api2,
2590
+ url: api2
2620
2591
  },
2621
2592
  submitApi: {
2622
2593
  type: "ajax",
@@ -2654,9 +2625,9 @@ function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}
2654
2625
  }
2655
2626
  return merge_1(result, extraSchema);
2656
2627
  }
2657
- function api2SchemaFromSwagger(api, schemaType, swaggerInfo, extraSchema = {}) {
2658
- const apiInfo = getApiInfo(api, swaggerInfo);
2659
- return api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema);
2628
+ function api2SchemaFromSwagger(api2, schemaType, swaggerInfo, extraSchema = {}) {
2629
+ const apiInfo = getApiInfo(api2, swaggerInfo);
2630
+ return api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema);
2660
2631
  }
2661
2632
  function transferOpenAPI3ToSwagger2$1(data) {
2662
2633
  if (data && data.components && data.components.schemas) {
@@ -2792,10 +2763,10 @@ class MiddleItem extends JSONWatch {
2792
2763
  }
2793
2764
  class FtpSchema extends Schema {
2794
2765
  constructor(props, isCompleteSchema = false) {
2795
- const { api, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
2766
+ const { api: api2, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
2796
2767
  super(more2);
2797
2768
  this.type = "ftp";
2798
- this.api = new AjaxSchema(api);
2769
+ this.api = new AjaxSchema(api2);
2799
2770
  this.filter = new Filter(filter);
2800
2771
  this.headerToolbar = new HeaderToolbar$1(headerToolbar);
2801
2772
  this.table = new TableSchema$2(table);
@@ -2869,12 +2840,12 @@ class FtpSchema extends Schema {
2869
2840
  }
2870
2841
  initFromCache(schema) {
2871
2842
  const { body, ...more2 } = schema;
2872
- const { api, filter, headerToolbar, table, tabs, middleModules } = body;
2843
+ const { api: api2, filter, headerToolbar, table, tabs, middleModules } = body;
2873
2844
  if (this.willDetach) {
2874
2845
  this.willDetach();
2875
2846
  }
2876
2847
  this.init(more2);
2877
- this.api.updateAll(api);
2848
+ this.api.updateAll(api2);
2878
2849
  this.filter.updateAll(filter);
2879
2850
  this.headerToolbar.updateAll(headerToolbar);
2880
2851
  this.table.updateAll(this.compatTableHandle(table));
@@ -3347,11 +3318,11 @@ function getWatchByRequest(params) {
3347
3318
  }
3348
3319
  class FormilyFormV2Schema extends Schema {
3349
3320
  constructor(props, isCompleteSchema = false) {
3350
- const { api, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
3321
+ const { api: api2, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
3351
3322
  super(more2);
3352
3323
  this.type = "formily-form-v2";
3353
3324
  this.baseInfo = new FormInfo(baseInfo);
3354
- this.api = new AjaxSchema(api);
3325
+ this.api = new AjaxSchema(api2);
3355
3326
  if (!initApi) {
3356
3327
  this.initApi = new AjaxSchemaQueue([]);
3357
3328
  } else {
@@ -3393,12 +3364,12 @@ class FormilyFormV2Schema extends Schema {
3393
3364
  }
3394
3365
  initFromCache(schema) {
3395
3366
  const { body, ...more2 } = schema;
3396
- const { api, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
3367
+ const { api: api2, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
3397
3368
  if (this.willDetach) {
3398
3369
  this.willDetach();
3399
3370
  }
3400
3371
  this.init(more2);
3401
- this.api.updateAll(api);
3372
+ this.api.updateAll(api2);
3402
3373
  if (!initApi) {
3403
3374
  this.initApi.updateAll([]);
3404
3375
  } else {
@@ -3469,7 +3440,6 @@ class DetailItemSchema extends JSONWatch {
3469
3440
  columnsDirection = "row",
3470
3441
  columnsBoxes = [],
3471
3442
  height = 100,
3472
- hideCard = true,
3473
3443
  ...more2
3474
3444
  } = props || {};
3475
3445
  super({
@@ -3491,7 +3461,6 @@ class DetailItemSchema extends JSONWatch {
3491
3461
  columnsDirection,
3492
3462
  columnsBoxes,
3493
3463
  height,
3494
- hideCard,
3495
3464
  ...more2
3496
3465
  });
3497
3466
  }
@@ -4126,7 +4095,7 @@ function shouldUseNative() {
4126
4095
  return false;
4127
4096
  }
4128
4097
  }
4129
- var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
4098
+ var _objectAssign_4_1_1_objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
4130
4099
  var from;
4131
4100
  var to = toObject(target);
4132
4101
  var symbols;
@@ -5518,7 +5487,7 @@ function createSingletonDndContext(backend, context = getGlobalContext(), option
5518
5487
  function getGlobalContext() {
5519
5488
  return typeof global !== "undefined" ? global : window;
5520
5489
  }
5521
- var fastDeepEqual = function equal(a, b) {
5490
+ var _fastDeepEqual_3_1_3_fastDeepEqual = function equal(a, b) {
5522
5491
  if (a === b)
5523
5492
  return true;
5524
5493
  if (a && b && typeof a == "object" && typeof b == "object") {
@@ -5563,7 +5532,7 @@ function useCollector(monitor, collect, onUpdate) {
5563
5532
  );
5564
5533
  const updateCollected = useCallback(() => {
5565
5534
  const nextValue = collect(monitor);
5566
- if (!fastDeepEqual(collected, nextValue)) {
5535
+ if (!_fastDeepEqual_3_1_3_fastDeepEqual(collected, nextValue)) {
5567
5536
  setCollected(nextValue);
5568
5537
  if (onUpdate) {
5569
5538
  onUpdate();
@@ -7580,7 +7549,7 @@ var index$2 = {
7580
7549
  };
7581
7550
  var config$1 = {
7582
7551
  paths: {
7583
- vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"
7552
+ vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
7584
7553
  }
7585
7554
  };
7586
7555
  function curry(fn) {
@@ -8022,7 +7991,7 @@ const schemaScenarioList = async (params) => {
8022
7991
  return null;
8023
7992
  return res;
8024
7993
  };
8025
- var hox = {};
7994
+ var _hox_1_1_6_hox = {};
8026
7995
  var createModel$2 = {};
8027
7996
  var container$1 = {};
8028
7997
  var __values$1 = commonjsGlobal && commonjsGlobal.__values || function(o) {
@@ -8087,9 +8056,9 @@ function Executor(props) {
8087
8056
  }
8088
8057
  executor.Executor = Executor;
8089
8058
  var renderer = {};
8090
- var reactReconciler = { exports: {} };
8059
+ var _reactReconciler_0_26_2_reactReconciler = { exports: {} };
8091
8060
  var reactReconciler_production_min = { exports: {} };
8092
- var scheduler = { exports: {} };
8061
+ var _scheduler_0_20_2_scheduler = { exports: {} };
8093
8062
  var scheduler_production_min = {};
8094
8063
  /** @license React v0.20.2
8095
8064
  * scheduler.production.min.js
@@ -8373,7 +8342,7 @@ var scheduler_production_min = {};
8373
8342
  };
8374
8343
  })(scheduler_production_min);
8375
8344
  {
8376
- scheduler.exports = scheduler_production_min;
8345
+ _scheduler_0_20_2_scheduler.exports = scheduler_production_min;
8377
8346
  }
8378
8347
  /** @license React v0.26.2
8379
8348
  * react-reconciler.production.min.js
@@ -8386,7 +8355,7 @@ var scheduler_production_min = {};
8386
8355
  (function(module) {
8387
8356
  module.exports = function $$$reconciler($$$hostConfig) {
8388
8357
  var exports = {};
8389
- var aa = objectAssign, ba = React$1, m2 = scheduler.exports;
8358
+ var aa = _objectAssign_4_1_1_objectAssign, ba = React$1, m2 = _scheduler_0_20_2_scheduler.exports;
8390
8359
  function q2(a) {
8391
8360
  for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
8392
8361
  b += "&args[]=" + encodeURIComponent(arguments[c]);
@@ -13029,13 +12998,13 @@ var scheduler_production_min = {};
13029
12998
  };
13030
12999
  })(reactReconciler_production_min);
13031
13000
  {
13032
- reactReconciler.exports = reactReconciler_production_min.exports;
13001
+ _reactReconciler_0_26_2_reactReconciler.exports = reactReconciler_production_min.exports;
13033
13002
  }
13034
13003
  var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
13035
13004
  return mod && mod.__esModule ? mod : { "default": mod };
13036
13005
  };
13037
13006
  Object.defineProperty(renderer, "__esModule", { value: true });
13038
- var react_reconciler_1 = __importDefault$1(reactReconciler.exports);
13007
+ var react_reconciler_1 = __importDefault$1(_reactReconciler_0_26_2_reactReconciler.exports);
13039
13008
  var reconciler = react_reconciler_1.default({
13040
13009
  now: Date.now,
13041
13010
  getRootHostContext: function() {
@@ -13280,12 +13249,12 @@ function withModel(useModelOrUseModels, mapModelToProps) {
13280
13249
  };
13281
13250
  }
13282
13251
  withModel$1.withModel = withModel;
13283
- Object.defineProperty(hox, "__esModule", { value: true });
13252
+ Object.defineProperty(_hox_1_1_6_hox, "__esModule", { value: true });
13284
13253
  var create_model_1 = createModel$2;
13285
- var createModel = hox.createModel = create_model_1.createModel;
13286
- hox.createLazyModel = create_model_1.createLazyModel;
13254
+ var createModel = _hox_1_1_6_hox.createModel = create_model_1.createModel;
13255
+ _hox_1_1_6_hox.createLazyModel = create_model_1.createLazyModel;
13287
13256
  var with_model_1 = withModel$1;
13288
- hox.withModel = with_model_1.withModel;
13257
+ _hox_1_1_6_hox.withModel = with_model_1.withModel;
13289
13258
  function useSwagger() {
13290
13259
  const [apiList, setApiList] = useState([]);
13291
13260
  const [swaggerInfo, setSwaggerInfo] = useState(null);
@@ -13346,23 +13315,23 @@ function useSwagger() {
13346
13315
  }
13347
13316
  };
13348
13317
  }
13349
- function createApiSelectItem(summary, api, method, request = []) {
13318
+ function createApiSelectItem(summary, api2, method, request = []) {
13350
13319
  return {
13351
13320
  summary,
13352
- label: `${summary} - ${method} ${api}`,
13353
- value: api,
13354
- url: api,
13321
+ label: `${summary} - ${method} ${api2}`,
13322
+ value: api2,
13323
+ url: api2,
13355
13324
  method,
13356
13325
  request,
13357
- parameters: api.parameters
13326
+ parameters: api2.parameters
13358
13327
  };
13359
13328
  }
13360
13329
  const getDataSourceArray$1 = (paths = {}) => {
13361
13330
  try {
13362
13331
  return Object.keys(paths).map((key) => {
13363
- const api = paths[key];
13364
- const apiPost = api.post || api.POST;
13365
- const apiGet = api.get || api.GET;
13332
+ const api2 = paths[key];
13333
+ const apiPost = api2.post || api2.POST;
13334
+ const apiGet = api2.get || api2.GET;
13366
13335
  if (apiPost) {
13367
13336
  return createApiSelectItem(apiPost.summary, key, "POST");
13368
13337
  } else if (apiGet) {
@@ -13435,8 +13404,8 @@ class PersistentStorage {
13435
13404
  }
13436
13405
  var storage = new PersistentStorage();
13437
13406
  class DataSourceSchema extends JSONWatch {
13438
- constructor(api) {
13439
- const { url, method = "get", ...more2 } = api || {};
13407
+ constructor(api2) {
13408
+ const { url, method = "get", ...more2 } = api2 || {};
13440
13409
  super({
13441
13410
  url,
13442
13411
  method,
@@ -14148,10 +14117,10 @@ function emitterVSCodeMessage(action, content2) {
14148
14117
  function emitSave(fileMapContent) {
14149
14118
  emitterVSCodeMessage(EMIT_EVENT_ACTION_SAVE, fileMapContent);
14150
14119
  }
14151
- const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
14120
+ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
14152
14121
  let schemaObj = null;
14153
14122
  if (schemaType === "ftp") {
14154
- schemaObj = new FtpSchema({ host: api, title: "" });
14123
+ schemaObj = new FtpSchema({ host: api2, title: "" });
14155
14124
  const realDataSource = {
14156
14125
  ...mainDataSource,
14157
14126
  type: "ajax",
@@ -14164,14 +14133,14 @@ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
14164
14133
  };
14165
14134
  schemaObj.getDataSourcePanel().update(realDataSource);
14166
14135
  } else if (schemaType === "formily-form") {
14167
- schemaObj = new FormilyFormSchema({ host: api, title: "" });
14136
+ schemaObj = new FormilyFormSchema({ host: api2, title: "" });
14168
14137
  const realDataSource = {
14169
14138
  ...mainDataSource,
14170
14139
  type: "ajax"
14171
14140
  };
14172
14141
  schemaObj.getDataSourcePanel().update(realDataSource);
14173
14142
  } else if (schemaType === "formily-form-v2") {
14174
- schemaObj = new FormilyFormV2Schema({ host: api, title: "" });
14143
+ schemaObj = new FormilyFormV2Schema({ host: api2, title: "" });
14175
14144
  const realDataSource = {
14176
14145
  ...mainDataSource,
14177
14146
  type: "ajax"
@@ -14179,7 +14148,7 @@ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
14179
14148
  schemaObj.getApiPanel().update(realDataSource);
14180
14149
  } else if (schemaType === "detail") {
14181
14150
  if (moreProps == null ? void 0 : moreProps.children) {
14182
- schemaObj = new DetailSchema({ host: api, title: "", ...moreProps });
14151
+ schemaObj = new DetailSchema({ host: api2, title: "", ...moreProps });
14183
14152
  } else {
14184
14153
  const realDataSource = {
14185
14154
  ...mainDataSource,
@@ -14188,10 +14157,10 @@ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
14188
14157
  detailData: "$RET.data"
14189
14158
  }
14190
14159
  };
14191
- schemaObj = new DetailSchema({ host: api, title: "", initDataSource: realDataSource });
14160
+ schemaObj = new DetailSchema({ host: api2, title: "", initDataSource: realDataSource });
14192
14161
  }
14193
14162
  } else if (schemaType === "edit-table") {
14194
- schemaObj = new EditTableSchema({ host: api, title: "", ...moreProps });
14163
+ schemaObj = new EditTableSchema({ host: api2, title: "", ...moreProps });
14195
14164
  const realDataSource = {
14196
14165
  ...mainDataSource,
14197
14166
  type: "ajax",
@@ -14218,8 +14187,8 @@ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
14218
14187
  }
14219
14188
  }, 500)
14220
14189
  );
14221
- if (api.indexOf("?") === -1 && api.indexOf("mocks") === -1) {
14222
- axios.defaults.baseURL = api;
14190
+ if (api2.indexOf("?") === -1 && api2.indexOf("mocks") === -1) {
14191
+ axios.defaults.baseURL = api2;
14223
14192
  }
14224
14193
  return schemaObj;
14225
14194
  };
@@ -14228,11 +14197,11 @@ const buildSchemaObjFromSchema = (schema) => {
14228
14197
  return null;
14229
14198
  }
14230
14199
  const { host, body } = schema;
14231
- const { type, api, ...more2 } = body || {};
14200
+ const { type, api: api2, ...more2 } = body || {};
14232
14201
  if (!host || !type) {
14233
14202
  return null;
14234
14203
  }
14235
- return buildSchema(type, host, api, more2);
14204
+ return buildSchema(type, host, api2, more2);
14236
14205
  };
14237
14206
  function useSchema() {
14238
14207
  const { fetchSwaggerInfo } = useSwagger$1();
@@ -16756,9 +16725,9 @@ function AjaxFormDialog({ title: title2 = "\u6570\u636E\u6E90\u914D\u7F6E", sche
16756
16725
  dataSource: swagger.apiList,
16757
16726
  defaultValue: schema.get("url"),
16758
16727
  onChange: (value) => {
16759
- const api = swagger.getApi(value);
16760
- if (api) {
16761
- schema.setAjaxRequest(value, api.method);
16728
+ const api2 = swagger.getApi(value);
16729
+ if (api2) {
16730
+ schema.setAjaxRequest(value, api2.method);
16762
16731
  } else {
16763
16732
  schema.set("url", value);
16764
16733
  }
@@ -19685,6 +19654,17 @@ var cnGraphicsPercent = (params) => {
19685
19654
  var formCommon = () => {
19686
19655
  var _a2;
19687
19656
  return {
19657
+ shouldRender: {
19658
+ title: "\u6761\u4EF6\u6E32\u67D3",
19659
+ "x-decorator": "CnFormItem",
19660
+ "x-component": "Input",
19661
+ "x-validator": [],
19662
+ "x-component-props": {
19663
+ placeholder: "\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"
19664
+ },
19665
+ "x-decorator-props": {},
19666
+ name: "shouldRender"
19667
+ },
19688
19668
  hasClear: {
19689
19669
  type: "boolean",
19690
19670
  title: "\u6709\u6E05\u9664\u6309\u94AE",
@@ -21421,6 +21401,17 @@ var filterCommon = {
21421
21401
  },
21422
21402
  default: 1,
21423
21403
  "x-designable-id": "r52k327v2zu"
21404
+ },
21405
+ shouldRender: {
21406
+ title: "\u6761\u4EF6\u6E32\u67D3",
21407
+ "x-decorator": "CnFormItem",
21408
+ "x-component": "Input",
21409
+ "x-validator": [],
21410
+ "x-component-props": {
21411
+ placeholder: "\u6839\u636E\u6761\u4EF6\u5224\u65AD\u662F\u5426\u6E32\u67D3"
21412
+ },
21413
+ "x-decorator-props": {},
21414
+ name: "shouldRender"
21424
21415
  }
21425
21416
  };
21426
21417
  var formValidator = {
@@ -25843,7 +25834,7 @@ function hackRowDetail$1(schema) {
25843
25834
  schema.set("rowDetail", void 0);
25844
25835
  }
25845
25836
  }
25846
- var immutabilityHelper = { exports: {} };
25837
+ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
25847
25838
  (function(module, exports) {
25848
25839
  Object.defineProperty(exports, "__esModule", { value: true });
25849
25840
  function stringifiable(obj) {
@@ -25865,7 +25856,7 @@ var immutabilityHelper = { exports: {} };
25865
25856
  function type(obj) {
25866
25857
  return toString2.call(obj).slice(8, -1);
25867
25858
  }
25868
- var assign = Object.assign || function(target, source) {
25859
+ var assign2 = Object.assign || function(target, source) {
25869
25860
  getAllKeys2(source).forEach(function(key) {
25870
25861
  if (hasOwnProperty2.call(source, key)) {
25871
25862
  target[key] = source[key];
@@ -25879,11 +25870,11 @@ var immutabilityHelper = { exports: {} };
25879
25870
  return Object.keys(obj);
25880
25871
  };
25881
25872
  function copy(object) {
25882
- 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;
25873
+ 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;
25883
25874
  }
25884
25875
  var Context = function() {
25885
25876
  function Context2() {
25886
- this.commands = assign({}, defaultCommands);
25877
+ this.commands = assign2({}, defaultCommands);
25887
25878
  this.update = this.update.bind(this);
25888
25879
  this.update.extend = this.extend = this.extend.bind(this);
25889
25880
  this.update.isEquals = function(x, y) {
@@ -26042,7 +26033,7 @@ var immutabilityHelper = { exports: {} };
26042
26033
  exports.isEquals = defaultContext.update.isEquals;
26043
26034
  exports.extend = defaultContext.extend;
26044
26035
  exports.default = defaultContext.update;
26045
- exports.default.default = module.exports = assign(exports.default, exports);
26036
+ exports.default.default = module.exports = assign2(exports.default, exports);
26046
26037
  function invariantPushAndUnshift(value, spec, command) {
26047
26038
  invariant2(Array.isArray(value), function() {
26048
26039
  return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + ".";
@@ -26089,8 +26080,8 @@ var immutabilityHelper = { exports: {} };
26089
26080
  return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
26090
26081
  });
26091
26082
  }
26092
- })(immutabilityHelper, immutabilityHelper.exports);
26093
- var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
26083
+ })(_immutabilityHelper_3_1_1_immutabilityHelper, _immutabilityHelper_3_1_1_immutabilityHelper.exports);
26084
+ var update = /* @__PURE__ */ getDefaultExportFromCjs(_immutabilityHelper_3_1_1_immutabilityHelper.exports);
26094
26085
  const mddTableArray$1 = "_mddTableArray_16ght_1";
26095
26086
  const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
26096
26087
  const tableArrayContent$1 = "_tableArrayContent_16ght_18";
@@ -27648,6 +27639,11 @@ const customTitleRender = (props) => {
27648
27639
  if (key === "type" && val === "detail-static-steps") {
27649
27640
  data.initStepSource();
27650
27641
  }
27642
+ if (key === "type" && val === "detail-columns") {
27643
+ data.set("hideCard", true);
27644
+ } else {
27645
+ data.set("hideCard", false);
27646
+ }
27651
27647
  onChange(data);
27652
27648
  };
27653
27649
  return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {