@cniot/mdd-editor 0.2.0-beta.50 → 0.2.0-beta.52

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
@@ -4101,7 +4101,7 @@ function shouldUseNative() {
4101
4101
  return false;
4102
4102
  }
4103
4103
  }
4104
- var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
4104
+ var _objectAssign_4_1_1_objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
4105
4105
  var from;
4106
4106
  var to = toObject(target);
4107
4107
  var symbols;
@@ -5493,7 +5493,7 @@ function createSingletonDndContext(backend, context = getGlobalContext(), option
5493
5493
  function getGlobalContext() {
5494
5494
  return typeof global !== "undefined" ? global : window;
5495
5495
  }
5496
- var fastDeepEqual = function equal(a, b) {
5496
+ var _fastDeepEqual_3_1_3_fastDeepEqual = function equal(a, b) {
5497
5497
  if (a === b)
5498
5498
  return true;
5499
5499
  if (a && b && typeof a == "object" && typeof b == "object") {
@@ -5538,7 +5538,7 @@ function useCollector(monitor, collect, onUpdate) {
5538
5538
  );
5539
5539
  const updateCollected = useCallback(() => {
5540
5540
  const nextValue = collect(monitor);
5541
- if (!fastDeepEqual(collected, nextValue)) {
5541
+ if (!_fastDeepEqual_3_1_3_fastDeepEqual(collected, nextValue)) {
5542
5542
  setCollected(nextValue);
5543
5543
  if (onUpdate) {
5544
5544
  onUpdate();
@@ -7254,136 +7254,121 @@ const mapStatus$1 = (props, field) => {
7254
7254
  state: takeState(props.state) || takeStatus()
7255
7255
  };
7256
7256
  };
7257
- function _defineProperty$1(obj, key, value) {
7258
- if (key in obj) {
7259
- Object.defineProperty(obj, key, {
7260
- value,
7261
- enumerable: true,
7262
- configurable: true,
7263
- writable: true
7264
- });
7265
- } else {
7266
- obj[key] = value;
7257
+ function _arrayLikeToArray(r, a) {
7258
+ (null == a || a > r.length) && (a = r.length);
7259
+ for (var e = 0, n2 = Array(a); e < a; e++)
7260
+ n2[e] = r[e];
7261
+ return n2;
7262
+ }
7263
+ function _arrayWithHoles(r) {
7264
+ if (Array.isArray(r))
7265
+ return r;
7266
+ }
7267
+ function _defineProperty$1(e, r, t) {
7268
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
7269
+ value: t,
7270
+ enumerable: true,
7271
+ configurable: true,
7272
+ writable: true
7273
+ }) : e[r] = t, e;
7274
+ }
7275
+ function _iterableToArrayLimit(r, l2) {
7276
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7277
+ if (null != t) {
7278
+ var e, n2, i, u, a = [], f2 = true, o = false;
7279
+ try {
7280
+ if (i = (t = t.call(r)).next, 0 === l2)
7281
+ ;
7282
+ else
7283
+ for (; !(f2 = (e = i.call(t)).done) && (a.push(e.value), a.length !== l2); f2 = true)
7284
+ ;
7285
+ } catch (r2) {
7286
+ o = true, n2 = r2;
7287
+ } finally {
7288
+ try {
7289
+ if (!f2 && null != t.return && (u = t.return(), Object(u) !== u))
7290
+ return;
7291
+ } finally {
7292
+ if (o)
7293
+ throw n2;
7294
+ }
7295
+ }
7296
+ return a;
7267
7297
  }
7268
- return obj;
7269
7298
  }
7270
- function ownKeys$1(object, enumerableOnly) {
7271
- var keys2 = Object.keys(object);
7272
- if (Object.getOwnPropertySymbols) {
7273
- var symbols = Object.getOwnPropertySymbols(object);
7274
- if (enumerableOnly)
7275
- symbols = symbols.filter(function(sym) {
7276
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7277
- });
7278
- keys2.push.apply(keys2, symbols);
7279
- }
7280
- return keys2;
7299
+ function _nonIterableRest() {
7300
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7281
7301
  }
7282
- function _objectSpread2$1(target) {
7283
- for (var i = 1; i < arguments.length; i++) {
7284
- var source = arguments[i] != null ? arguments[i] : {};
7285
- if (i % 2) {
7286
- ownKeys$1(Object(source), true).forEach(function(key) {
7287
- _defineProperty$1(target, key, source[key]);
7288
- });
7289
- } else if (Object.getOwnPropertyDescriptors) {
7290
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7291
- } else {
7292
- ownKeys$1(Object(source)).forEach(function(key) {
7293
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7294
- });
7295
- }
7302
+ function ownKeys$1(e, r) {
7303
+ var t = Object.keys(e);
7304
+ if (Object.getOwnPropertySymbols) {
7305
+ var o = Object.getOwnPropertySymbols(e);
7306
+ r && (o = o.filter(function(r2) {
7307
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
7308
+ })), t.push.apply(t, o);
7309
+ }
7310
+ return t;
7311
+ }
7312
+ function _objectSpread2$1(e) {
7313
+ for (var r = 1; r < arguments.length; r++) {
7314
+ var t = null != arguments[r] ? arguments[r] : {};
7315
+ r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
7316
+ _defineProperty$1(e, r2, t[r2]);
7317
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r2) {
7318
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
7319
+ });
7296
7320
  }
7297
- return target;
7321
+ return e;
7298
7322
  }
7299
- function _objectWithoutPropertiesLoose(source, excluded) {
7300
- if (source == null)
7323
+ function _objectWithoutProperties(e, t) {
7324
+ if (null == e)
7301
7325
  return {};
7302
- var target = {};
7303
- var sourceKeys = Object.keys(source);
7304
- var key, i;
7305
- for (i = 0; i < sourceKeys.length; i++) {
7306
- key = sourceKeys[i];
7307
- if (excluded.indexOf(key) >= 0)
7308
- continue;
7309
- target[key] = source[key];
7326
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
7327
+ if (Object.getOwnPropertySymbols) {
7328
+ var n2 = Object.getOwnPropertySymbols(e);
7329
+ for (r = 0; r < n2.length; r++)
7330
+ o = n2[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
7310
7331
  }
7311
- return target;
7332
+ return i;
7312
7333
  }
7313
- function _objectWithoutProperties(source, excluded) {
7314
- if (source == null)
7334
+ function _objectWithoutPropertiesLoose(r, e) {
7335
+ if (null == r)
7315
7336
  return {};
7316
- var target = _objectWithoutPropertiesLoose(source, excluded);
7317
- var key, i;
7318
- if (Object.getOwnPropertySymbols) {
7319
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
7320
- for (i = 0; i < sourceSymbolKeys.length; i++) {
7321
- key = sourceSymbolKeys[i];
7322
- if (excluded.indexOf(key) >= 0)
7337
+ var t = {};
7338
+ for (var n2 in r)
7339
+ if ({}.hasOwnProperty.call(r, n2)) {
7340
+ if (-1 !== e.indexOf(n2))
7323
7341
  continue;
7324
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
7325
- continue;
7326
- target[key] = source[key];
7342
+ t[n2] = r[n2];
7327
7343
  }
7328
- }
7329
- return target;
7330
- }
7331
- function _slicedToArray(arr, i) {
7332
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
7344
+ return t;
7333
7345
  }
7334
- function _arrayWithHoles(arr) {
7335
- if (Array.isArray(arr))
7336
- return arr;
7346
+ function _slicedToArray(r, e) {
7347
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
7337
7348
  }
7338
- function _iterableToArrayLimit(arr, i) {
7339
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr)))
7340
- return;
7341
- var _arr = [];
7342
- var _n = true;
7343
- var _d = false;
7344
- var _e = void 0;
7345
- try {
7346
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
7347
- _arr.push(_s.value);
7348
- if (i && _arr.length === i)
7349
- break;
7350
- }
7351
- } catch (err) {
7352
- _d = true;
7353
- _e = err;
7354
- } finally {
7355
- try {
7356
- if (!_n && _i["return"] != null)
7357
- _i["return"]();
7358
- } finally {
7359
- if (_d)
7360
- throw _e;
7361
- }
7349
+ function _toPrimitive(t, r) {
7350
+ if ("object" != typeof t || !t)
7351
+ return t;
7352
+ var e = t[Symbol.toPrimitive];
7353
+ if (void 0 !== e) {
7354
+ var i = e.call(t, r);
7355
+ if ("object" != typeof i)
7356
+ return i;
7357
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7362
7358
  }
7363
- return _arr;
7359
+ return ("string" === r ? String : Number)(t);
7364
7360
  }
7365
- function _unsupportedIterableToArray(o, minLen) {
7366
- if (!o)
7367
- return;
7368
- if (typeof o === "string")
7369
- return _arrayLikeToArray(o, minLen);
7370
- var n2 = Object.prototype.toString.call(o).slice(8, -1);
7371
- if (n2 === "Object" && o.constructor)
7372
- n2 = o.constructor.name;
7373
- if (n2 === "Map" || n2 === "Set")
7374
- return Array.from(o);
7375
- if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
7376
- return _arrayLikeToArray(o, minLen);
7377
- }
7378
- function _arrayLikeToArray(arr, len) {
7379
- if (len == null || len > arr.length)
7380
- len = arr.length;
7381
- for (var i = 0, arr2 = new Array(len); i < len; i++)
7382
- arr2[i] = arr[i];
7383
- return arr2;
7361
+ function _toPropertyKey(t) {
7362
+ var i = _toPrimitive(t, "string");
7363
+ return "symbol" == typeof i ? i : i + "";
7384
7364
  }
7385
- function _nonIterableRest() {
7386
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7365
+ function _unsupportedIterableToArray(r, a) {
7366
+ if (r) {
7367
+ if ("string" == typeof r)
7368
+ return _arrayLikeToArray(r, a);
7369
+ var t = {}.toString.call(r).slice(8, -1);
7370
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
7371
+ }
7387
7372
  }
7388
7373
  function _defineProperty(obj, key, value) {
7389
7374
  if (key in obj) {
@@ -7555,7 +7540,7 @@ var index$2 = {
7555
7540
  };
7556
7541
  var config$1 = {
7557
7542
  paths: {
7558
- vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
7543
+ vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"
7559
7544
  }
7560
7545
  };
7561
7546
  function curry(fn) {
@@ -7642,6 +7627,7 @@ function makeCancelable(promise) {
7642
7627
  return hasCanceled_ = true;
7643
7628
  }, wrappedPromise;
7644
7629
  }
7630
+ var _excluded = ["monaco"];
7645
7631
  var _state$create = index$2.create({
7646
7632
  config: config$1,
7647
7633
  isInitialized: false,
@@ -7650,7 +7636,7 @@ var _state$create = index$2.create({
7650
7636
  monaco: null
7651
7637
  }), _state$create2 = _slicedToArray(_state$create, 2), getState = _state$create2[0], setState = _state$create2[1];
7652
7638
  function config(globalConfig) {
7653
- var _validators$config = validators.config(globalConfig), monaco = _validators$config.monaco, config2 = _objectWithoutProperties(_validators$config, ["monaco"]);
7639
+ var _validators$config = validators.config(globalConfig), monaco = _validators$config.monaco, config2 = _objectWithoutProperties(_validators$config, _excluded);
7654
7640
  setState(function(state) {
7655
7641
  return {
7656
7642
  config: merge(state.config, config2),
@@ -7717,7 +7703,8 @@ function configureLoader() {
7717
7703
  });
7718
7704
  var require2 = window.require;
7719
7705
  require2.config(state.config);
7720
- require2(["vs/editor/editor.main"], function(monaco) {
7706
+ require2(["vs/editor/editor.main"], function(_ref4) {
7707
+ var monaco = _ref4.m;
7721
7708
  storeMonacoInstance(monaco);
7722
7709
  state.resolve(monaco);
7723
7710
  }, function(error) {
@@ -7732,8 +7719,8 @@ function storeMonacoInstance(monaco) {
7732
7719
  }
7733
7720
  }
7734
7721
  function __getMonacoInstance() {
7735
- return getState(function(_ref4) {
7736
- var monaco = _ref4.monaco;
7722
+ return getState(function(_ref5) {
7723
+ var monaco = _ref5.monaco;
7737
7724
  return monaco;
7738
7725
  });
7739
7726
  }
@@ -7997,7 +7984,7 @@ const schemaScenarioList = async (params) => {
7997
7984
  return null;
7998
7985
  return res;
7999
7986
  };
8000
- var hox = {};
7987
+ var _hox_1_1_6_hox = {};
8001
7988
  var createModel$2 = {};
8002
7989
  var container$1 = {};
8003
7990
  var __values$1 = commonjsGlobal && commonjsGlobal.__values || function(o) {
@@ -8062,9 +8049,9 @@ function Executor(props) {
8062
8049
  }
8063
8050
  executor.Executor = Executor;
8064
8051
  var renderer = {};
8065
- var reactReconciler = { exports: {} };
8052
+ var _reactReconciler_0_26_2_reactReconciler = { exports: {} };
8066
8053
  var reactReconciler_production_min = { exports: {} };
8067
- var scheduler = { exports: {} };
8054
+ var _scheduler_0_20_2_scheduler = { exports: {} };
8068
8055
  var scheduler_production_min = {};
8069
8056
  /** @license React v0.20.2
8070
8057
  * scheduler.production.min.js
@@ -8348,7 +8335,7 @@ var scheduler_production_min = {};
8348
8335
  };
8349
8336
  })(scheduler_production_min);
8350
8337
  {
8351
- scheduler.exports = scheduler_production_min;
8338
+ _scheduler_0_20_2_scheduler.exports = scheduler_production_min;
8352
8339
  }
8353
8340
  /** @license React v0.26.2
8354
8341
  * react-reconciler.production.min.js
@@ -8361,7 +8348,7 @@ var scheduler_production_min = {};
8361
8348
  (function(module) {
8362
8349
  module.exports = function $$$reconciler($$$hostConfig) {
8363
8350
  var exports = {};
8364
- var aa = objectAssign, ba = React$1, m2 = scheduler.exports;
8351
+ var aa = _objectAssign_4_1_1_objectAssign, ba = React$1, m2 = _scheduler_0_20_2_scheduler.exports;
8365
8352
  function q2(a) {
8366
8353
  for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
8367
8354
  b += "&args[]=" + encodeURIComponent(arguments[c]);
@@ -13004,13 +12991,13 @@ var scheduler_production_min = {};
13004
12991
  };
13005
12992
  })(reactReconciler_production_min);
13006
12993
  {
13007
- reactReconciler.exports = reactReconciler_production_min.exports;
12994
+ _reactReconciler_0_26_2_reactReconciler.exports = reactReconciler_production_min.exports;
13008
12995
  }
13009
12996
  var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
13010
12997
  return mod && mod.__esModule ? mod : { "default": mod };
13011
12998
  };
13012
12999
  Object.defineProperty(renderer, "__esModule", { value: true });
13013
- var react_reconciler_1 = __importDefault$1(reactReconciler.exports);
13000
+ var react_reconciler_1 = __importDefault$1(_reactReconciler_0_26_2_reactReconciler.exports);
13014
13001
  var reconciler = react_reconciler_1.default({
13015
13002
  now: Date.now,
13016
13003
  getRootHostContext: function() {
@@ -13255,12 +13242,12 @@ function withModel(useModelOrUseModels, mapModelToProps) {
13255
13242
  };
13256
13243
  }
13257
13244
  withModel$1.withModel = withModel;
13258
- Object.defineProperty(hox, "__esModule", { value: true });
13245
+ Object.defineProperty(_hox_1_1_6_hox, "__esModule", { value: true });
13259
13246
  var create_model_1 = createModel$2;
13260
- var createModel = hox.createModel = create_model_1.createModel;
13261
- hox.createLazyModel = create_model_1.createLazyModel;
13247
+ var createModel = _hox_1_1_6_hox.createModel = create_model_1.createModel;
13248
+ _hox_1_1_6_hox.createLazyModel = create_model_1.createLazyModel;
13262
13249
  var with_model_1 = withModel$1;
13263
- hox.withModel = with_model_1.withModel;
13250
+ _hox_1_1_6_hox.withModel = with_model_1.withModel;
13264
13251
  function useSwagger() {
13265
13252
  const [apiList, setApiList] = useState([]);
13266
13253
  const [swaggerInfo, setSwaggerInfo] = useState(null);
@@ -22464,6 +22451,34 @@ const addressSelectSchema = {
22464
22451
  "x-decorator-props": {},
22465
22452
  name: "required",
22466
22453
  "x-designable-id": "ff3dus7pijt"
22454
+ },
22455
+ showTopLevel: {
22456
+ type: "boolean",
22457
+ title: "\u662F\u5426\u5148\u9009\u62E9\u56FD\u5BB6",
22458
+ "x-decorator": "CnFormItem",
22459
+ "x-component": "Switch",
22460
+ "x-validator": [],
22461
+ "x-component-props": {},
22462
+ "x-decorator-props": {},
22463
+ default: false,
22464
+ name: "showTopLevel",
22465
+ "x-designable-id": "bnxht222111ei07c4"
22466
+ },
22467
+ iso: {
22468
+ type: "string",
22469
+ title: "\u9ED8\u8BA4\u56FD\u5BB6ISO",
22470
+ "x-decorator": "CnFormItem",
22471
+ "x-component": "Input",
22472
+ "x-validator": [],
22473
+ "x-component-props": {
22474
+ placeholder: "\u8BF7\u8F93\u5165\u9ED8\u8BA4\u56FD\u5BB6\u7F16\u7801"
22475
+ },
22476
+ default: "CN",
22477
+ name: "iso",
22478
+ "x-decorator-props": {
22479
+ tip: "\u9ED8\u8BA4\u4E2D\u56FDCN\u3002\u8BBE\u7F6E\u7A7A && \u5F00\u542F\u5148\u9009\u62E9\u56FD\u5BB6 \u8868\u793A\u9009\u62E9\u56FD\u5BB6\u3002 ISO\u5B57\u5178\u67E5\u770B: https://aliyuque.antfin.com/cndzk/fex/xc1vnw?"
22480
+ },
22481
+ "x-designable-id": "fgzssslls02l3sg2"
22467
22482
  }
22468
22483
  };
22469
22484
  var EditAddressSelectSchema = {
@@ -27158,7 +27173,7 @@ function hackRowDetail$1(schema) {
27158
27173
  schema.set("rowDetail", void 0);
27159
27174
  }
27160
27175
  }
27161
- var immutabilityHelper = { exports: {} };
27176
+ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
27162
27177
  (function(module, exports) {
27163
27178
  Object.defineProperty(exports, "__esModule", { value: true });
27164
27179
  function stringifiable(obj) {
@@ -27404,8 +27419,8 @@ var immutabilityHelper = { exports: {} };
27404
27419
  return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
27405
27420
  });
27406
27421
  }
27407
- })(immutabilityHelper, immutabilityHelper.exports);
27408
- var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
27422
+ })(_immutabilityHelper_3_1_1_immutabilityHelper, _immutabilityHelper_3_1_1_immutabilityHelper.exports);
27423
+ var update = /* @__PURE__ */ getDefaultExportFromCjs(_immutabilityHelper_3_1_1_immutabilityHelper.exports);
27409
27424
  const mddTableArray$1 = "_mddTableArray_16ght_1";
27410
27425
  const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
27411
27426
  const tableArrayContent$1 = "_tableArrayContent_16ght_18";
@@ -30264,7 +30279,7 @@ function getDefaultIndexStyle() {
30264
30279
  `;
30265
30280
  }
30266
30281
  const name = "@cniot/mdd-editor";
30267
- const version = "0.2.0-beta.50";
30282
+ const version = "0.2.0-beta.52";
30268
30283
  const description = "\u6A21\u578B\u9A71\u52A8\u7F16\u8F91\u5668";
30269
30284
  const scripts = {
30270
30285
  build: "vite build"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cniot/mdd-editor",
3
- "version": "0.2.0-beta.50",
3
+ "version": "0.2.0-beta.52",
4
4
  "description": "模型驱动编辑器",
5
5
  "scripts": {
6
6
  "build": "vite build"