@plasmicpkgs/antd5 0.0.131 → 0.0.133

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/dist/index.js CHANGED
@@ -182,43 +182,43 @@ function pick(obj, ...paths) {
182
182
  return res;
183
183
  }
184
184
 
185
- var __defProp$p = Object.defineProperty;
186
- var __defProps$i = Object.defineProperties;
187
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
188
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
189
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
190
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
191
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
192
- var __spreadValues$p = (a, b) => {
185
+ var __defProp$q = Object.defineProperty;
186
+ var __defProps$j = Object.defineProperties;
187
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
188
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
189
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
190
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
191
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
192
+ var __spreadValues$q = (a, b) => {
193
193
  for (var prop in b || (b = {}))
194
- if (__hasOwnProp$p.call(b, prop))
195
- __defNormalProp$p(a, prop, b[prop]);
196
- if (__getOwnPropSymbols$p)
197
- for (var prop of __getOwnPropSymbols$p(b)) {
198
- if (__propIsEnum$p.call(b, prop))
199
- __defNormalProp$p(a, prop, b[prop]);
194
+ if (__hasOwnProp$q.call(b, prop))
195
+ __defNormalProp$q(a, prop, b[prop]);
196
+ if (__getOwnPropSymbols$q)
197
+ for (var prop of __getOwnPropSymbols$q(b)) {
198
+ if (__propIsEnum$q.call(b, prop))
199
+ __defNormalProp$q(a, prop, b[prop]);
200
200
  }
201
201
  return a;
202
202
  };
203
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
204
- var __objRest$i = (source, exclude) => {
203
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
204
+ var __objRest$j = (source, exclude) => {
205
205
  var target = {};
206
206
  for (var prop in source)
207
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
207
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
208
208
  target[prop] = source[prop];
209
- if (source != null && __getOwnPropSymbols$p)
210
- for (var prop of __getOwnPropSymbols$p(source)) {
211
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
209
+ if (source != null && __getOwnPropSymbols$q)
210
+ for (var prop of __getOwnPropSymbols$q(source)) {
211
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
212
212
  target[prop] = source[prop];
213
213
  }
214
214
  return target;
215
215
  };
216
216
  function AntdButton(props) {
217
- const _a = props, { submitsForm = false, children } = _a, rest = __objRest$i(_a, ["submitsForm", "children"]);
217
+ const _a = props, { submitsForm = false, children } = _a, rest = __objRest$j(_a, ["submitsForm", "children"]);
218
218
  const target = props.target === true ? "_blank" : props.target === false ? void 0 : props.target;
219
219
  return /* @__PURE__ */ React__default.default.createElement(
220
220
  antd.Button,
221
- __spreadProps$i(__spreadValues$p({}, rest), {
221
+ __spreadProps$j(__spreadValues$q({}, rest), {
222
222
  children: /* @__PURE__ */ React__default.default.createElement(
223
223
  "div",
224
224
  {
@@ -299,7 +299,7 @@ function registerButton(loader) {
299
299
  hidden: (props) => !props.href,
300
300
  defaultValueHint: false
301
301
  },
302
- children: __spreadValues$p({
302
+ children: __spreadValues$q({
303
303
  type: "slot",
304
304
  defaultValue: [
305
305
  {
@@ -323,39 +323,39 @@ function registerButton(loader) {
323
323
  });
324
324
  }
325
325
 
326
- var __defProp$o = Object.defineProperty;
327
- var __defProps$h = Object.defineProperties;
328
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
329
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
330
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
331
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
332
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
333
- var __spreadValues$o = (a, b) => {
326
+ var __defProp$p = Object.defineProperty;
327
+ var __defProps$i = Object.defineProperties;
328
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
329
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
330
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
331
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
332
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
333
+ var __spreadValues$p = (a, b) => {
334
334
  for (var prop in b || (b = {}))
335
- if (__hasOwnProp$o.call(b, prop))
336
- __defNormalProp$o(a, prop, b[prop]);
337
- if (__getOwnPropSymbols$o)
338
- for (var prop of __getOwnPropSymbols$o(b)) {
339
- if (__propIsEnum$o.call(b, prop))
340
- __defNormalProp$o(a, prop, b[prop]);
335
+ if (__hasOwnProp$p.call(b, prop))
336
+ __defNormalProp$p(a, prop, b[prop]);
337
+ if (__getOwnPropSymbols$p)
338
+ for (var prop of __getOwnPropSymbols$p(b)) {
339
+ if (__propIsEnum$p.call(b, prop))
340
+ __defNormalProp$p(a, prop, b[prop]);
341
341
  }
342
342
  return a;
343
343
  };
344
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
345
- var __objRest$h = (source, exclude) => {
344
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
345
+ var __objRest$i = (source, exclude) => {
346
346
  var target = {};
347
347
  for (var prop in source)
348
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
348
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
349
349
  target[prop] = source[prop];
350
- if (source != null && __getOwnPropSymbols$o)
351
- for (var prop of __getOwnPropSymbols$o(source)) {
352
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
350
+ if (source != null && __getOwnPropSymbols$p)
351
+ for (var prop of __getOwnPropSymbols$p(source)) {
352
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
353
353
  target[prop] = source[prop];
354
354
  }
355
355
  return target;
356
356
  };
357
357
  function AntdCheckbox(props) {
358
- const _a = props, { onChange } = _a, rest = __objRest$h(_a, ["onChange"]);
358
+ const _a = props, { onChange } = _a, rest = __objRest$i(_a, ["onChange"]);
359
359
  const wrappedOnChange = React__default.default.useMemo(() => {
360
360
  if (onChange) {
361
361
  return (event) => onChange(event.target.checked);
@@ -363,7 +363,7 @@ function AntdCheckbox(props) {
363
363
  return void 0;
364
364
  }
365
365
  }, [onChange]);
366
- return /* @__PURE__ */ React__default.default.createElement(antd.Checkbox, __spreadProps$h(__spreadValues$o({}, rest), { onChange: wrappedOnChange }));
366
+ return /* @__PURE__ */ React__default.default.createElement(antd.Checkbox, __spreadProps$i(__spreadValues$p({}, rest), { onChange: wrappedOnChange }));
367
367
  }
368
368
  AntdCheckbox.__plasmicFormFieldMeta = { valueProp: "checked" };
369
369
  const AntdCheckboxGroup = antd.Checkbox.Group;
@@ -398,7 +398,7 @@ function registerCheckbox(loader) {
398
398
  defaultValueHint: false,
399
399
  advanced: true
400
400
  },
401
- children: __spreadValues$o({
401
+ children: __spreadValues$p({
402
402
  type: "slot",
403
403
  defaultValue: [
404
404
  {
@@ -479,33 +479,33 @@ function registerCheckbox(loader) {
479
479
  });
480
480
  }
481
481
 
482
- var __defProp$n = Object.defineProperty;
483
- var __defProps$g = Object.defineProperties;
484
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
485
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
486
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
487
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
488
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
489
- var __spreadValues$n = (a, b) => {
482
+ var __defProp$o = Object.defineProperty;
483
+ var __defProps$h = Object.defineProperties;
484
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
485
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
486
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
487
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
488
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
489
+ var __spreadValues$o = (a, b) => {
490
490
  for (var prop in b || (b = {}))
491
- if (__hasOwnProp$n.call(b, prop))
492
- __defNormalProp$n(a, prop, b[prop]);
493
- if (__getOwnPropSymbols$n)
494
- for (var prop of __getOwnPropSymbols$n(b)) {
495
- if (__propIsEnum$n.call(b, prop))
496
- __defNormalProp$n(a, prop, b[prop]);
491
+ if (__hasOwnProp$o.call(b, prop))
492
+ __defNormalProp$o(a, prop, b[prop]);
493
+ if (__getOwnPropSymbols$o)
494
+ for (var prop of __getOwnPropSymbols$o(b)) {
495
+ if (__propIsEnum$o.call(b, prop))
496
+ __defNormalProp$o(a, prop, b[prop]);
497
497
  }
498
498
  return a;
499
499
  };
500
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
501
- var __objRest$g = (source, exclude) => {
500
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
501
+ var __objRest$h = (source, exclude) => {
502
502
  var target = {};
503
503
  for (var prop in source)
504
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
504
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
505
505
  target[prop] = source[prop];
506
- if (source != null && __getOwnPropSymbols$n)
507
- for (var prop of __getOwnPropSymbols$n(source)) {
508
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
506
+ if (source != null && __getOwnPropSymbols$o)
507
+ for (var prop of __getOwnPropSymbols$o(source)) {
508
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
509
509
  target[prop] = source[prop];
510
510
  }
511
511
  return target;
@@ -555,12 +555,12 @@ function themeToAntdConfig(opts) {
555
555
  };
556
556
  }
557
557
  function AntdConfigProvider(props) {
558
- const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$g(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
558
+ const _a = props, { children, themeStyles, loadingText, removeLoading } = _a, rest = __objRest$h(_a, ["children", "themeStyles", "loadingText", "removeLoading"]);
559
559
  return /* @__PURE__ */ React__default.default.createElement(
560
560
  antd.ConfigProvider,
561
- __spreadValues$n({
561
+ __spreadValues$o({
562
562
  locale: defaultLocale
563
- }, themeToAntdConfig(__spreadProps$g(__spreadValues$n({}, rest), {
563
+ }, themeToAntdConfig(__spreadProps$h(__spreadValues$o({}, rest), {
564
564
  fontFamily: themeStyles.fontFamily,
565
565
  fontSize: themeStyles.fontSize ? parseInt(themeStyles.fontSize) : void 0,
566
566
  lineHeight: themeStyles.lineHeight ? parseInt(themeStyles.lineHeight) : void 0,
@@ -601,9 +601,12 @@ function InnerConfigProvider(props) {
601
601
  const actions = React__default.default.useMemo(
602
602
  () => ({
603
603
  showNotification: (opts) => {
604
- var _b;
605
- const _a = opts, rest = __objRest$g(_a, ["type"]);
606
- app.notification[(_b = opts.type) != null ? _b : "info"](__spreadValues$n({}, rest));
604
+ var _b, _c, _d;
605
+ const _a = opts, rest = __objRest$h(_a, ["type"]);
606
+ app.notification[(_b = opts.type) != null ? _b : "info"](__spreadProps$h(__spreadValues$o({}, rest), {
607
+ message: (_c = rest.message) == null ? void 0 : _c.toString(),
608
+ description: (_d = rest.description) == null ? void 0 : _d.toString()
609
+ }));
607
610
  },
608
611
  hideNotifications: () => {
609
612
  app.notification.destroy();
@@ -903,7 +906,7 @@ function registerTokens(loader) {
903
906
  }
904
907
  const registerConfigProvider = makeRegisterGlobalContext(
905
908
  AntdConfigProvider,
906
- __spreadProps$g(__spreadValues$n({
909
+ __spreadProps$h(__spreadValues$o({
907
910
  name: "plasmic-antd5-config-provider",
908
911
  displayName: "Ant Design System Settings",
909
912
  props: {
@@ -1023,25 +1026,25 @@ const registerConfigProvider = makeRegisterGlobalContext(
1023
1026
  })
1024
1027
  );
1025
1028
 
1026
- var __defProp$m = Object.defineProperty;
1027
- var __defProps$f = Object.defineProperties;
1028
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1029
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1030
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1031
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1032
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1033
- var __spreadValues$m = (a, b) => {
1029
+ var __defProp$n = Object.defineProperty;
1030
+ var __defProps$g = Object.defineProperties;
1031
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
1032
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1033
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1034
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1035
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1036
+ var __spreadValues$n = (a, b) => {
1034
1037
  for (var prop in b || (b = {}))
1035
- if (__hasOwnProp$m.call(b, prop))
1036
- __defNormalProp$m(a, prop, b[prop]);
1037
- if (__getOwnPropSymbols$m)
1038
- for (var prop of __getOwnPropSymbols$m(b)) {
1039
- if (__propIsEnum$m.call(b, prop))
1040
- __defNormalProp$m(a, prop, b[prop]);
1038
+ if (__hasOwnProp$n.call(b, prop))
1039
+ __defNormalProp$n(a, prop, b[prop]);
1040
+ if (__getOwnPropSymbols$n)
1041
+ for (var prop of __getOwnPropSymbols$n(b)) {
1042
+ if (__propIsEnum$n.call(b, prop))
1043
+ __defNormalProp$n(a, prop, b[prop]);
1041
1044
  }
1042
1045
  return a;
1043
1046
  };
1044
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1047
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
1045
1048
  const AntdMenuDivider = antd.Menu.Divider;
1046
1049
  const AntdMenuItem = antd.Menu.Item;
1047
1050
  const AntdMenuItemGroup = antd.Menu.ItemGroup;
@@ -1096,7 +1099,7 @@ const MENU_ITEM_TYPE = {
1096
1099
  }
1097
1100
  }
1098
1101
  };
1099
- const UNKEYED_MENU_ITEM_TYPE = __spreadProps$f(__spreadValues$m({}, MENU_ITEM_TYPE), {
1102
+ const UNKEYED_MENU_ITEM_TYPE = __spreadProps$g(__spreadValues$n({}, MENU_ITEM_TYPE), {
1100
1103
  fields: Object.fromEntries(
1101
1104
  Object.entries(MENU_ITEM_TYPE.fields).filter(([k]) => k !== "key")
1102
1105
  )
@@ -1201,7 +1204,7 @@ function registerMenu(loader) {
1201
1204
  type: "string",
1202
1205
  description: "Set display title for collapsed item"
1203
1206
  },
1204
- children: __spreadValues$m({
1207
+ children: __spreadValues$n({
1205
1208
  type: "slot",
1206
1209
  defaultValue: [
1207
1210
  {
@@ -1313,33 +1316,33 @@ function registerMenu(loader) {
1313
1316
  });
1314
1317
  }
1315
1318
 
1316
- var __defProp$l = Object.defineProperty;
1317
- var __defProps$e = Object.defineProperties;
1318
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1319
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1320
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1321
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1322
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1323
- var __spreadValues$l = (a, b) => {
1319
+ var __defProp$m = Object.defineProperty;
1320
+ var __defProps$f = Object.defineProperties;
1321
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
1322
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
1323
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
1324
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
1325
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1326
+ var __spreadValues$m = (a, b) => {
1324
1327
  for (var prop in b || (b = {}))
1325
- if (__hasOwnProp$l.call(b, prop))
1326
- __defNormalProp$l(a, prop, b[prop]);
1327
- if (__getOwnPropSymbols$l)
1328
- for (var prop of __getOwnPropSymbols$l(b)) {
1329
- if (__propIsEnum$l.call(b, prop))
1330
- __defNormalProp$l(a, prop, b[prop]);
1328
+ if (__hasOwnProp$m.call(b, prop))
1329
+ __defNormalProp$m(a, prop, b[prop]);
1330
+ if (__getOwnPropSymbols$m)
1331
+ for (var prop of __getOwnPropSymbols$m(b)) {
1332
+ if (__propIsEnum$m.call(b, prop))
1333
+ __defNormalProp$m(a, prop, b[prop]);
1331
1334
  }
1332
1335
  return a;
1333
1336
  };
1334
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1335
- var __objRest$f = (source, exclude) => {
1337
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
1338
+ var __objRest$g = (source, exclude) => {
1336
1339
  var target = {};
1337
1340
  for (var prop in source)
1338
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
1341
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
1339
1342
  target[prop] = source[prop];
1340
- if (source != null && __getOwnPropSymbols$l)
1341
- for (var prop of __getOwnPropSymbols$l(source)) {
1342
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
1343
+ if (source != null && __getOwnPropSymbols$m)
1344
+ for (var prop of __getOwnPropSymbols$m(source)) {
1345
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
1343
1346
  target[prop] = source[prop];
1344
1347
  }
1345
1348
  return target;
@@ -1353,7 +1356,7 @@ function AntdDropdown(props) {
1353
1356
  menuItemsJson,
1354
1357
  trigger = "click",
1355
1358
  dropdownMenuScopeClassName
1356
- } = _a, rest = __objRest$f(_a, [
1359
+ } = _a, rest = __objRest$g(_a, [
1357
1360
  "children",
1358
1361
  "onAction",
1359
1362
  "menuItems",
@@ -1364,7 +1367,7 @@ function AntdDropdown(props) {
1364
1367
  ]);
1365
1368
  return /* @__PURE__ */ React__default.default.createElement(
1366
1369
  antd.Dropdown,
1367
- __spreadProps$e(__spreadValues$l({}, rest), {
1370
+ __spreadProps$f(__spreadValues$m({}, rest), {
1368
1371
  trigger: [trigger],
1369
1372
  overlay: () => {
1370
1373
  var _a2;
@@ -1505,7 +1508,7 @@ function registerDropdown(loader) {
1505
1508
  advanced: true,
1506
1509
  description: "Instead of configuring a list of menu items, build the menu items using MenuItem elements. This gives you greater control over item styling."
1507
1510
  },
1508
- children: __spreadValues$l({
1511
+ children: __spreadValues$m({
1509
1512
  type: "slot",
1510
1513
  defaultValue: [
1511
1514
  {
@@ -1530,19 +1533,19 @@ function registerDropdown(loader) {
1530
1533
  });
1531
1534
  }
1532
1535
 
1533
- var __defProp$k = Object.defineProperty;
1534
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1535
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1536
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1537
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1538
- var __spreadValues$k = (a, b) => {
1536
+ var __defProp$l = Object.defineProperty;
1537
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1538
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1539
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
1540
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1541
+ var __spreadValues$l = (a, b) => {
1539
1542
  for (var prop in b || (b = {}))
1540
- if (__hasOwnProp$k.call(b, prop))
1541
- __defNormalProp$k(a, prop, b[prop]);
1542
- if (__getOwnPropSymbols$k)
1543
- for (var prop of __getOwnPropSymbols$k(b)) {
1544
- if (__propIsEnum$k.call(b, prop))
1545
- __defNormalProp$k(a, prop, b[prop]);
1543
+ if (__hasOwnProp$l.call(b, prop))
1544
+ __defNormalProp$l(a, prop, b[prop]);
1545
+ if (__getOwnPropSymbols$l)
1546
+ for (var prop of __getOwnPropSymbols$l(b)) {
1547
+ if (__propIsEnum$l.call(b, prop))
1548
+ __defNormalProp$l(a, prop, b[prop]);
1546
1549
  }
1547
1550
  return a;
1548
1551
  };
@@ -1553,7 +1556,7 @@ function mergeProps(props, ...restProps) {
1553
1556
  if (restProps.every((rest) => Object.keys(rest).length === 0)) {
1554
1557
  return props;
1555
1558
  }
1556
- const result = __spreadValues$k({}, props);
1559
+ const result = __spreadValues$l({}, props);
1557
1560
  for (const rest of restProps) {
1558
1561
  for (const key of Object.keys(rest)) {
1559
1562
  result[key] = mergePropVals(key, result[key], rest[key]);
@@ -1590,7 +1593,7 @@ function mergePropVals(name, val1, val2) {
1590
1593
  } else if (name === "className") {
1591
1594
  return classNames__default.default(val1, val2);
1592
1595
  } else if (name === "style") {
1593
- return __spreadValues$k(__spreadValues$k({}, val1), val2);
1596
+ return __spreadValues$l(__spreadValues$l({}, val1), val2);
1594
1597
  } else if (name === "ref") {
1595
1598
  return mergeRefs(val1, val2);
1596
1599
  } else if (typeof val1 !== typeof val2) {
@@ -1626,25 +1629,25 @@ function reactNodeToString(reactNode) {
1626
1629
  return string;
1627
1630
  }
1628
1631
 
1629
- var __defProp$j = Object.defineProperty;
1630
- var __defProps$d = Object.defineProperties;
1631
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1632
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1633
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1634
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1635
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1636
- var __spreadValues$j = (a, b) => {
1632
+ var __defProp$k = Object.defineProperty;
1633
+ var __defProps$e = Object.defineProperties;
1634
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1635
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1636
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1637
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
1638
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1639
+ var __spreadValues$k = (a, b) => {
1637
1640
  for (var prop in b || (b = {}))
1638
- if (__hasOwnProp$j.call(b, prop))
1639
- __defNormalProp$j(a, prop, b[prop]);
1640
- if (__getOwnPropSymbols$j)
1641
- for (var prop of __getOwnPropSymbols$j(b)) {
1642
- if (__propIsEnum$j.call(b, prop))
1643
- __defNormalProp$j(a, prop, b[prop]);
1641
+ if (__hasOwnProp$k.call(b, prop))
1642
+ __defNormalProp$k(a, prop, b[prop]);
1643
+ if (__getOwnPropSymbols$k)
1644
+ for (var prop of __getOwnPropSymbols$k(b)) {
1645
+ if (__propIsEnum$k.call(b, prop))
1646
+ __defNormalProp$k(a, prop, b[prop]);
1644
1647
  }
1645
1648
  return a;
1646
1649
  };
1647
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1650
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1648
1651
  const AntdInput = antd.Input;
1649
1652
  const AntdTextArea = antd.Input.TextArea;
1650
1653
  const AntdPassword = antd.Input.Password;
@@ -1734,10 +1737,10 @@ const COMMON_EVENT_HANDLERS = {
1734
1737
  };
1735
1738
  const inputComponentName = "plasmic-antd5-input";
1736
1739
  function registerInput(loader) {
1737
- registerComponentHelper(loader, AntdInput, __spreadProps$d(__spreadValues$j({
1740
+ registerComponentHelper(loader, AntdInput, __spreadProps$e(__spreadValues$k({
1738
1741
  name: inputComponentName,
1739
1742
  displayName: "Input",
1740
- props: __spreadValues$j(__spreadValues$j(__spreadValues$j({
1743
+ props: __spreadValues$k(__spreadValues$k(__spreadValues$k({
1741
1744
  value: {
1742
1745
  type: "string",
1743
1746
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1768,7 +1771,7 @@ function registerInput(loader) {
1768
1771
  defaultValueHint: "text"
1769
1772
  }
1770
1773
  }, COMMON_ADVANCED_PROPS), COMMON_DECORATOR_PROPS), COMMON_EVENT_HANDLERS),
1771
- states: __spreadValues$j({}, COMMON_STATES)
1774
+ states: __spreadValues$k({}, COMMON_STATES)
1772
1775
  }, { trapsSelection: true }), {
1773
1776
  componentHelpers: COMMON_HELPERS_CONFIG,
1774
1777
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1781,7 +1784,7 @@ function registerTextArea(loader) {
1781
1784
  name: textAreaComponentName,
1782
1785
  parentComponentName: inputComponentName,
1783
1786
  displayName: "Text Area",
1784
- props: __spreadValues$j({
1787
+ props: __spreadValues$k({
1785
1788
  value: {
1786
1789
  type: "string",
1787
1790
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1802,7 +1805,7 @@ function registerTextArea(loader) {
1802
1805
  defaultValueHint: true
1803
1806
  }
1804
1807
  }, COMMON_EVENT_HANDLERS),
1805
- states: __spreadValues$j({}, COMMON_STATES),
1808
+ states: __spreadValues$k({}, COMMON_STATES),
1806
1809
  componentHelpers: COMMON_HELPERS_CONFIG,
1807
1810
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1808
1811
  importName: "AntdTextArea"
@@ -1814,7 +1817,7 @@ function registerPasswordInput(loader) {
1814
1817
  name: passwordComponentName,
1815
1818
  parentComponentName: inputComponentName,
1816
1819
  displayName: "Password Input",
1817
- props: __spreadValues$j({
1820
+ props: __spreadValues$k({
1818
1821
  value: {
1819
1822
  type: "string",
1820
1823
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1835,7 +1838,7 @@ function registerPasswordInput(loader) {
1835
1838
  defaultValueHint: true
1836
1839
  }
1837
1840
  }, COMMON_EVENT_HANDLERS),
1838
- states: __spreadValues$j({}, COMMON_STATES),
1841
+ states: __spreadValues$k({}, COMMON_STATES),
1839
1842
  componentHelpers: COMMON_HELPERS_CONFIG,
1840
1843
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
1841
1844
  importName: "AntdPassword"
@@ -1843,11 +1846,11 @@ function registerPasswordInput(loader) {
1843
1846
  }
1844
1847
  const inputNumberComponentName = "plasmic-antd5-input-number";
1845
1848
  function registerNumberInput(loader) {
1846
- registerComponentHelper(loader, AntdInputNumber, __spreadProps$d(__spreadValues$j({
1849
+ registerComponentHelper(loader, AntdInputNumber, __spreadProps$e(__spreadValues$k({
1847
1850
  name: inputNumberComponentName,
1848
1851
  parentComponentName: inputComponentName,
1849
1852
  displayName: "Number Input",
1850
- props: __spreadProps$d(__spreadValues$j(__spreadValues$j(__spreadValues$j({
1853
+ props: __spreadProps$e(__spreadValues$k(__spreadValues$k(__spreadValues$k({
1851
1854
  value: {
1852
1855
  type: "number",
1853
1856
  hidden: (ps) => !!ps.__plasmicFormField
@@ -1885,7 +1888,7 @@ function registerNumberInput(loader) {
1885
1888
  ]
1886
1889
  }
1887
1890
  }),
1888
- states: __spreadValues$j({}, COMMON_STATES)
1891
+ states: __spreadValues$k({}, COMMON_STATES)
1889
1892
  }, { trapsSelection: true }), {
1890
1893
  // don't need component helpers
1891
1894
  importPath: "@plasmicpkgs/antd5/skinny/registerInput",
@@ -1893,33 +1896,33 @@ function registerNumberInput(loader) {
1893
1896
  }));
1894
1897
  }
1895
1898
 
1896
- var __defProp$i = Object.defineProperty;
1897
- var __defProps$c = Object.defineProperties;
1898
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1899
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
1900
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
1901
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
1902
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1903
- var __spreadValues$i = (a, b) => {
1899
+ var __defProp$j = Object.defineProperty;
1900
+ var __defProps$d = Object.defineProperties;
1901
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1902
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
1903
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
1904
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
1905
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1906
+ var __spreadValues$j = (a, b) => {
1904
1907
  for (var prop in b || (b = {}))
1905
- if (__hasOwnProp$i.call(b, prop))
1906
- __defNormalProp$i(a, prop, b[prop]);
1907
- if (__getOwnPropSymbols$i)
1908
- for (var prop of __getOwnPropSymbols$i(b)) {
1909
- if (__propIsEnum$i.call(b, prop))
1910
- __defNormalProp$i(a, prop, b[prop]);
1908
+ if (__hasOwnProp$j.call(b, prop))
1909
+ __defNormalProp$j(a, prop, b[prop]);
1910
+ if (__getOwnPropSymbols$j)
1911
+ for (var prop of __getOwnPropSymbols$j(b)) {
1912
+ if (__propIsEnum$j.call(b, prop))
1913
+ __defNormalProp$j(a, prop, b[prop]);
1911
1914
  }
1912
1915
  return a;
1913
1916
  };
1914
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1915
- var __objRest$e = (source, exclude) => {
1917
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1918
+ var __objRest$f = (source, exclude) => {
1916
1919
  var target = {};
1917
1920
  for (var prop in source)
1918
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
1921
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
1919
1922
  target[prop] = source[prop];
1920
- if (source != null && __getOwnPropSymbols$i)
1921
- for (var prop of __getOwnPropSymbols$i(source)) {
1922
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
1923
+ if (source != null && __getOwnPropSymbols$j)
1924
+ for (var prop of __getOwnPropSymbols$j(source)) {
1925
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
1923
1926
  target[prop] = source[prop];
1924
1927
  }
1925
1928
  return target;
@@ -1928,7 +1931,7 @@ const RadioGroup = antd.Radio.Group;
1928
1931
  const AntdRadio = antd.Radio;
1929
1932
  const AntdRadioButton = antd.Radio.Button;
1930
1933
  function AntdRadioGroup(props) {
1931
- const _a = props, { onChange, useChildren } = _a, rest = __objRest$e(_a, ["onChange", "useChildren"]);
1934
+ const _a = props, { onChange, useChildren } = _a, rest = __objRest$f(_a, ["onChange", "useChildren"]);
1932
1935
  const wrappedOnChange = React__default.default.useMemo(() => {
1933
1936
  if (onChange) {
1934
1937
  return (event) => onChange(event.target.value);
@@ -1938,7 +1941,7 @@ function AntdRadioGroup(props) {
1938
1941
  }, [onChange]);
1939
1942
  return /* @__PURE__ */ React__default.default.createElement(
1940
1943
  RadioGroup,
1941
- __spreadProps$c(__spreadValues$i({}, rest), {
1944
+ __spreadProps$d(__spreadValues$j({}, rest), {
1942
1945
  onChange: wrappedOnChange,
1943
1946
  options: useChildren ? void 0 : rest.options
1944
1947
  })
@@ -1966,7 +1969,7 @@ function registerRadio(loader) {
1966
1969
  defaultValueHint: false,
1967
1970
  advanced: true
1968
1971
  },
1969
- children: __spreadValues$i({
1972
+ children: __spreadValues$j({
1970
1973
  type: "slot",
1971
1974
  defaultValue: [
1972
1975
  {
@@ -1998,7 +2001,7 @@ function registerRadio(loader) {
1998
2001
  defaultValueHint: false,
1999
2002
  advanced: true
2000
2003
  },
2001
- children: __spreadValues$i({
2004
+ children: __spreadValues$j({
2002
2005
  type: "slot",
2003
2006
  defaultValue: [
2004
2007
  {
@@ -2012,7 +2015,7 @@ function registerRadio(loader) {
2012
2015
  importName: "AntdRadioButton",
2013
2016
  parentComponentName: radioGroupComponentName
2014
2017
  });
2015
- registerComponentHelper(loader, AntdRadioGroup, __spreadValues$i({
2018
+ registerComponentHelper(loader, AntdRadioGroup, __spreadValues$j({
2016
2019
  name: radioGroupComponentName,
2017
2020
  displayName: "Radio Group",
2018
2021
  props: {
@@ -2135,33 +2138,33 @@ function registerRadio(loader) {
2135
2138
  }));
2136
2139
  }
2137
2140
 
2138
- var __defProp$h = Object.defineProperty;
2139
- var __defProps$b = Object.defineProperties;
2140
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2141
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2142
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2143
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2144
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2145
- var __spreadValues$h = (a, b) => {
2141
+ var __defProp$i = Object.defineProperty;
2142
+ var __defProps$c = Object.defineProperties;
2143
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2144
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2145
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2146
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2147
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2148
+ var __spreadValues$i = (a, b) => {
2146
2149
  for (var prop in b || (b = {}))
2147
- if (__hasOwnProp$h.call(b, prop))
2148
- __defNormalProp$h(a, prop, b[prop]);
2149
- if (__getOwnPropSymbols$h)
2150
- for (var prop of __getOwnPropSymbols$h(b)) {
2151
- if (__propIsEnum$h.call(b, prop))
2152
- __defNormalProp$h(a, prop, b[prop]);
2150
+ if (__hasOwnProp$i.call(b, prop))
2151
+ __defNormalProp$i(a, prop, b[prop]);
2152
+ if (__getOwnPropSymbols$i)
2153
+ for (var prop of __getOwnPropSymbols$i(b)) {
2154
+ if (__propIsEnum$i.call(b, prop))
2155
+ __defNormalProp$i(a, prop, b[prop]);
2153
2156
  }
2154
2157
  return a;
2155
2158
  };
2156
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2157
- var __objRest$d = (source, exclude) => {
2159
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2160
+ var __objRest$e = (source, exclude) => {
2158
2161
  var target = {};
2159
2162
  for (var prop in source)
2160
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
2163
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2161
2164
  target[prop] = source[prop];
2162
- if (source != null && __getOwnPropSymbols$h)
2163
- for (var prop of __getOwnPropSymbols$h(source)) {
2164
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
2165
+ if (source != null && __getOwnPropSymbols$i)
2166
+ for (var prop of __getOwnPropSymbols$i(source)) {
2167
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2165
2168
  target[prop] = source[prop];
2166
2169
  }
2167
2170
  return target;
@@ -2176,7 +2179,7 @@ function AntdSelect(props) {
2176
2179
  suffixIcon,
2177
2180
  mode,
2178
2181
  useChildren
2179
- } = _a, rest = __objRest$d(_a, [
2182
+ } = _a, rest = __objRest$e(_a, [
2180
2183
  "popupClassName",
2181
2184
  "popupScopeClassName",
2182
2185
  "defaultStylesClassName",
@@ -2184,13 +2187,13 @@ function AntdSelect(props) {
2184
2187
  "mode",
2185
2188
  "useChildren"
2186
2189
  ]);
2187
- const curated = __spreadValues$h({}, rest);
2190
+ const curated = __spreadValues$i({}, rest);
2188
2191
  if (useChildren) {
2189
2192
  curated.options = void 0;
2190
2193
  }
2191
2194
  return /* @__PURE__ */ React__default.default.createElement(
2192
2195
  antd.Select,
2193
- __spreadValues$h(__spreadProps$b(__spreadValues$h({}, curated), {
2196
+ __spreadValues$i(__spreadProps$c(__spreadValues$i({}, curated), {
2194
2197
  mode: !mode || mode === "single" ? void 0 : mode,
2195
2198
  popupClassName: `${defaultStylesClassName} ${popupScopeClassName} ${popupClassName}`,
2196
2199
  optionFilterProp: curated.options ? "label" : void 0,
@@ -2205,7 +2208,7 @@ const selectComponentName = "plasmic-antd5-select";
2205
2208
  const optionComponentName = "plasmic-antd5-option";
2206
2209
  const optionGroupComponentName = "plasmic-antd5-option-group";
2207
2210
  function registerSelect(loader) {
2208
- registerComponentHelper(loader, AntdSelect, __spreadProps$b(__spreadValues$h({
2211
+ registerComponentHelper(loader, AntdSelect, __spreadProps$c(__spreadValues$i({
2209
2212
  name: selectComponentName,
2210
2213
  displayName: "Select",
2211
2214
  props: {
@@ -2441,7 +2444,7 @@ function registerSelect(loader) {
2441
2444
  displayName: "Option",
2442
2445
  parentComponentName: selectComponentName,
2443
2446
  props: {
2444
- children: __spreadValues$h({
2447
+ children: __spreadValues$i({
2445
2448
  type: "slot",
2446
2449
  defaultValue: "Option"
2447
2450
  }, { mergeWithParent: true }),
@@ -2494,24 +2497,24 @@ function registerSelect(loader) {
2494
2497
  });
2495
2498
  }
2496
2499
 
2497
- var __defProp$g = Object.defineProperty;
2498
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2499
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2500
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2501
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2502
- var __spreadValues$g = (a, b) => {
2500
+ var __defProp$h = Object.defineProperty;
2501
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2502
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2503
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2504
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2505
+ var __spreadValues$h = (a, b) => {
2503
2506
  for (var prop in b || (b = {}))
2504
- if (__hasOwnProp$g.call(b, prop))
2505
- __defNormalProp$g(a, prop, b[prop]);
2506
- if (__getOwnPropSymbols$g)
2507
- for (var prop of __getOwnPropSymbols$g(b)) {
2508
- if (__propIsEnum$g.call(b, prop))
2509
- __defNormalProp$g(a, prop, b[prop]);
2507
+ if (__hasOwnProp$h.call(b, prop))
2508
+ __defNormalProp$h(a, prop, b[prop]);
2509
+ if (__getOwnPropSymbols$h)
2510
+ for (var prop of __getOwnPropSymbols$h(b)) {
2511
+ if (__propIsEnum$h.call(b, prop))
2512
+ __defNormalProp$h(a, prop, b[prop]);
2510
2513
  }
2511
2514
  return a;
2512
2515
  };
2513
2516
  function AntdSwitch(props) {
2514
- return /* @__PURE__ */ React__default.default.createElement(antd.Switch, __spreadValues$g({}, props));
2517
+ return /* @__PURE__ */ React__default.default.createElement(antd.Switch, __spreadValues$h({}, props));
2515
2518
  }
2516
2519
  AntdSwitch.__plasmicFormFieldMeta = { valueProp: "checked" };
2517
2520
  const switchComponentName = "plasmic-antd5-switch";
@@ -2557,33 +2560,33 @@ function registerSwitch(loader) {
2557
2560
  });
2558
2561
  }
2559
2562
 
2560
- var __defProp$f = Object.defineProperty;
2561
- var __defProps$a = Object.defineProperties;
2562
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2563
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2564
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2565
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2566
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2567
- var __spreadValues$f = (a, b) => {
2563
+ var __defProp$g = Object.defineProperty;
2564
+ var __defProps$b = Object.defineProperties;
2565
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2566
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2567
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2568
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2569
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2570
+ var __spreadValues$g = (a, b) => {
2568
2571
  for (var prop in b || (b = {}))
2569
- if (__hasOwnProp$f.call(b, prop))
2570
- __defNormalProp$f(a, prop, b[prop]);
2571
- if (__getOwnPropSymbols$f)
2572
- for (var prop of __getOwnPropSymbols$f(b)) {
2573
- if (__propIsEnum$f.call(b, prop))
2574
- __defNormalProp$f(a, prop, b[prop]);
2572
+ if (__hasOwnProp$g.call(b, prop))
2573
+ __defNormalProp$g(a, prop, b[prop]);
2574
+ if (__getOwnPropSymbols$g)
2575
+ for (var prop of __getOwnPropSymbols$g(b)) {
2576
+ if (__propIsEnum$g.call(b, prop))
2577
+ __defNormalProp$g(a, prop, b[prop]);
2575
2578
  }
2576
2579
  return a;
2577
2580
  };
2578
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2579
- var __objRest$c = (source, exclude) => {
2581
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
2582
+ var __objRest$d = (source, exclude) => {
2580
2583
  var target = {};
2581
2584
  for (var prop in source)
2582
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2585
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
2583
2586
  target[prop] = source[prop];
2584
- if (source != null && __getOwnPropSymbols$f)
2585
- for (var prop of __getOwnPropSymbols$f(source)) {
2586
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2587
+ if (source != null && __getOwnPropSymbols$g)
2588
+ for (var prop of __getOwnPropSymbols$g(source)) {
2589
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
2587
2590
  target[prop] = source[prop];
2588
2591
  }
2589
2592
  return target;
@@ -2592,10 +2595,10 @@ function AntdDatePicker(props) {
2592
2595
  const nativeInput = React__default.default.useRef(null);
2593
2596
  const [open, setOpen] = React.useState(false);
2594
2597
  const strValue = props.value && typeof props.value === "object" && "toISOString" in props.value ? props.value.toISOString() : props.value === null ? void 0 : props.value;
2595
- const _a = props, { picker, popupScopeClassName } = _a, rest = __objRest$c(_a, ["picker", "popupScopeClassName"]);
2598
+ const _a = props, { picker, popupScopeClassName } = _a, rest = __objRest$d(_a, ["picker", "popupScopeClassName"]);
2596
2599
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
2597
2600
  antd.DatePicker,
2598
- __spreadProps$a(__spreadValues$f({}, rest), {
2601
+ __spreadProps$b(__spreadValues$g({}, rest), {
2599
2602
  picker,
2600
2603
  value: props.value === void 0 ? void 0 : !props.value ? null : dayjs__default.default(props.value),
2601
2604
  defaultValue: props.defaultValue === void 0 ? void 0 : dayjs__default.default(props.defaultValue),
@@ -2761,33 +2764,33 @@ function registerDatePicker(loader) {
2761
2764
  });
2762
2765
  }
2763
2766
 
2764
- var __defProp$e = Object.defineProperty;
2765
- var __defProps$9 = Object.defineProperties;
2766
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2767
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2768
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2769
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
2770
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2771
- var __spreadValues$e = (a, b) => {
2767
+ var __defProp$f = Object.defineProperty;
2768
+ var __defProps$a = Object.defineProperties;
2769
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2770
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
2771
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
2772
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
2773
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2774
+ var __spreadValues$f = (a, b) => {
2772
2775
  for (var prop in b || (b = {}))
2773
- if (__hasOwnProp$e.call(b, prop))
2774
- __defNormalProp$e(a, prop, b[prop]);
2775
- if (__getOwnPropSymbols$e)
2776
- for (var prop of __getOwnPropSymbols$e(b)) {
2777
- if (__propIsEnum$e.call(b, prop))
2778
- __defNormalProp$e(a, prop, b[prop]);
2776
+ if (__hasOwnProp$f.call(b, prop))
2777
+ __defNormalProp$f(a, prop, b[prop]);
2778
+ if (__getOwnPropSymbols$f)
2779
+ for (var prop of __getOwnPropSymbols$f(b)) {
2780
+ if (__propIsEnum$f.call(b, prop))
2781
+ __defNormalProp$f(a, prop, b[prop]);
2779
2782
  }
2780
2783
  return a;
2781
2784
  };
2782
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2783
- var __objRest$b = (source, exclude) => {
2785
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2786
+ var __objRest$c = (source, exclude) => {
2784
2787
  var target = {};
2785
2788
  for (var prop in source)
2786
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
2789
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
2787
2790
  target[prop] = source[prop];
2788
- if (source != null && __getOwnPropSymbols$e)
2789
- for (var prop of __getOwnPropSymbols$e(source)) {
2790
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
2791
+ if (source != null && __getOwnPropSymbols$f)
2792
+ for (var prop of __getOwnPropSymbols$f(source)) {
2793
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
2791
2794
  target[prop] = source[prop];
2792
2795
  }
2793
2796
  return target;
@@ -2829,7 +2832,7 @@ const Internal = React__default.default.forwardRef(
2829
2832
  formLayout,
2830
2833
  internalFieldCtx,
2831
2834
  setInternalFieldCtx
2832
- } = _a, rest = __objRest$b(_a, [
2835
+ } = _a, rest = __objRest$c(_a, [
2833
2836
  "extendedOnValuesChange",
2834
2837
  "forceRemount",
2835
2838
  "formLayout",
@@ -2850,7 +2853,7 @@ const Internal = React__default.default.forwardRef(
2850
2853
  },
2851
2854
  /* @__PURE__ */ React__default.default.createElement(
2852
2855
  FormItemWrapper,
2853
- __spreadProps$9(__spreadValues$e({}, omit(formItem, "key")), {
2856
+ __spreadProps$a(__spreadValues$f({}, omit(formItem, "key")), {
2854
2857
  noLabel: formItem.inputType === "Checkbox" /* Checkbox */ || formItem.noLabel,
2855
2858
  valuePropName: (_c2 = formItem.valuePropName) != null ? _c2 : formItem.inputType === "Checkbox" /* Checkbox */ ? "checked" : void 0,
2856
2859
  style: { width: "100%" }
@@ -2941,7 +2944,7 @@ const Internal = React__default.default.forwardRef(
2941
2944
  },
2942
2945
  /* @__PURE__ */ React__default.default.createElement(FormLayoutContext.Provider, { value: formLayout }, /* @__PURE__ */ React__default.default.createElement(
2943
2946
  antd.Form,
2944
- __spreadProps$9(__spreadValues$e({}, rest), {
2947
+ __spreadProps$a(__spreadValues$f({}, rest), {
2945
2948
  key: props.initialValues ? JSON.stringify(props.initialValues) : void 0,
2946
2949
  onValuesChange: (...args) => {
2947
2950
  var _a2;
@@ -2980,7 +2983,7 @@ function deriveFormFieldConfigs(dataFormItems, schema, data) {
2980
2983
  schema,
2981
2984
  (field) => {
2982
2985
  var _a;
2983
- return __spreadValues$e({
2986
+ return __spreadValues$f({
2984
2987
  inputType: "Text" /* Text */
2985
2988
  }, field && {
2986
2989
  key: field.id,
@@ -3001,7 +3004,7 @@ function useFormItemDefinitions(rawData, props, formRef, commonFormCtxData) {
3001
3004
  const data = rawData && dataSources.normalizeData(rawData);
3002
3005
  const schema = data && (data == null ? void 0 : data.schema);
3003
3006
  if (mode !== "simplified" || !rawData || rawData.isLoading || rawData.error || !data || !schema || !data.data) {
3004
- setControlContextData == null ? void 0 : setControlContextData(__spreadValues$e({
3007
+ setControlContextData == null ? void 0 : setControlContextData(__spreadValues$f({
3005
3008
  formInstance
3006
3009
  }, commonFormCtxData));
3007
3010
  return void 0;
@@ -3012,7 +3015,7 @@ function useFormItemDefinitions(rawData, props, formRef, commonFormCtxData) {
3012
3015
  schema,
3013
3016
  row
3014
3017
  );
3015
- setControlContextData == null ? void 0 : setControlContextData(__spreadValues$e({
3018
+ setControlContextData == null ? void 0 : setControlContextData(__spreadValues$f({
3016
3019
  schema: data.schema,
3017
3020
  minimalFullLengthFields,
3018
3021
  mergedFields,
@@ -3053,7 +3056,7 @@ const FormWrapper = React__default.default.forwardRef(
3053
3056
  });
3054
3057
  React__default.default.useImperativeHandle(
3055
3058
  ref,
3056
- () => wrapperRef.current ? __spreadValues$e({}, wrapperRef.current) : {}
3059
+ () => wrapperRef.current ? __spreadValues$f({}, wrapperRef.current) : {}
3057
3060
  );
3058
3061
  const formLayout = React__default.default.useMemo(
3059
3062
  () => {
@@ -3090,7 +3093,7 @@ const FormWrapper = React__default.default.forwardRef(
3090
3093
  forceRemount();
3091
3094
  }
3092
3095
  }, [props.data]);
3093
- const _b = props, { dataFormItems, formItems, data } = _b, rest = __objRest$b(_b, ["dataFormItems", "formItems", "data"]);
3096
+ const _b = props, { dataFormItems, formItems, data } = _b, rest = __objRest$c(_b, ["dataFormItems", "formItems", "data"]);
3094
3097
  const actualFormItems = props.mode === "simplified" && formItemDefinitions ? formItemDefinitions : data ? dataFormItems : formItems;
3095
3098
  const previousFormItems = React__default.default.useRef([]);
3096
3099
  React__default.default.useEffect(() => {
@@ -3105,7 +3108,7 @@ const FormWrapper = React__default.default.forwardRef(
3105
3108
  const isLoadingData = rawData == null ? void 0 : rawData.isLoading;
3106
3109
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
3107
3110
  Internal,
3108
- __spreadProps$9(__spreadValues$e({
3111
+ __spreadProps$a(__spreadValues$f({
3109
3112
  key: remountKey
3110
3113
  }, rest), {
3111
3114
  forceRemount,
@@ -3302,7 +3305,7 @@ function registerForm(loader) {
3302
3305
  return true;
3303
3306
  }
3304
3307
  },
3305
- submitSlot: __spreadValues$e({
3308
+ submitSlot: __spreadValues$f({
3306
3309
  type: "slot",
3307
3310
  hidden: () => true,
3308
3311
  defaultValue: {
@@ -3424,12 +3427,12 @@ function registerForm(loader) {
3424
3427
  ]
3425
3428
  },
3426
3429
  validateTrigger: {
3427
- displayName: "Validate rules",
3430
+ displayName: "Validate when",
3428
3431
  type: "choice",
3429
3432
  options: [
3430
- { value: "onBlur", label: "When a field loses focus" },
3431
- { value: "onChange", label: "When a field changes" },
3432
- { value: "onSubmit", label: "When the form is submitted" }
3433
+ { value: "onBlur", label: "a field loses focus" },
3434
+ { value: "onChange", label: "a field changes" },
3435
+ { value: "onSubmit", label: "the form is submitted" }
3433
3436
  ],
3434
3437
  multiSelect: true,
3435
3438
  defaultValueHint: ["onChange"],
@@ -3594,7 +3597,7 @@ function FormItemWrapper(props) {
3594
3597
  customizeProps,
3595
3598
  setControlContextData,
3596
3599
  alignLabellessWithControls = true
3597
- } = _a, rest = __objRest$b(_a, [
3600
+ } = _a, rest = __objRest$c(_a, [
3598
3601
  "rules",
3599
3602
  "description",
3600
3603
  "noLabel",
@@ -3642,7 +3645,7 @@ function FormItemWrapper(props) {
3642
3645
  if (prevPropValues.current.name !== props.name) {
3643
3646
  forceRemount == null ? void 0 : forceRemount();
3644
3647
  }
3645
- if (!fullFormItemName || get(initialValues, fullFormItemName) != null) {
3648
+ if (!fullFormItemName || get(initialValues, fullFormItemName) != null || props.initialValue == null) {
3646
3649
  return;
3647
3650
  }
3648
3651
  form == null ? void 0 : form.setFieldValue(fullFormItemName, props.initialValue);
@@ -3651,7 +3654,7 @@ function FormItemWrapper(props) {
3651
3654
  }, [
3652
3655
  form,
3653
3656
  props.initialValue,
3654
- pathCtx.fullPath,
3657
+ JSON.stringify(pathCtx.fullPath),
3655
3658
  props.name,
3656
3659
  props.preserve
3657
3660
  ]);
@@ -3671,7 +3674,7 @@ function FormItemWrapper(props) {
3671
3674
  }, []);
3672
3675
  return /* @__PURE__ */ React__default.default.createElement(
3673
3676
  FormItem,
3674
- __spreadProps$9(__spreadValues$e({}, rest), {
3677
+ __spreadProps$a(__spreadValues$f({}, rest), {
3675
3678
  label: noLabel ? void 0 : props.label,
3676
3679
  name: relativeFormItemName,
3677
3680
  rules,
@@ -3736,7 +3739,7 @@ function deriveOnChangePropName(props) {
3736
3739
  return void 0;
3737
3740
  }
3738
3741
  function FormItemForwarder(_a) {
3739
- var _b = _a, { formItemProps } = _b, props = __objRest$b(_b, ["formItemProps"]);
3742
+ var _b = _a, { formItemProps } = _b, props = __objRest$c(_b, ["formItemProps"]);
3740
3743
  var _a2;
3741
3744
  const status = antd.Form.Item.useStatus();
3742
3745
  const internalFormCtx = React__default.default.useContext(InternalFormInstanceContext);
@@ -3749,7 +3752,7 @@ function FormItemForwarder(_a) {
3749
3752
  });
3750
3753
  return React__default.default.Children.map(formItemProps.children, (child, i) => {
3751
3754
  var _a3;
3752
- let newProps = __spreadProps$9(__spreadValues$e(__spreadValues$e({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3755
+ let newProps = __spreadProps$a(__spreadValues$f(__spreadValues$f({}, (_a3 = child.props) != null ? _a3 : {}), props), {
3753
3756
  __plasmicFormField: true
3754
3757
  });
3755
3758
  if (formItemProps.customizeProps) {
@@ -3936,9 +3939,15 @@ function commonFormItemProps(usage) {
3936
3939
  defaultValueHint: getDefaultValueHint("hidden")
3937
3940
  },
3938
3941
  validateTrigger: {
3942
+ displayName: "Validate when",
3939
3943
  type: "choice",
3940
- options: ["onSubmit", "onChange", "onBlur"],
3944
+ options: [
3945
+ { value: "onBlur", label: "a field loses focus" },
3946
+ { value: "onChange", label: "a field changes" },
3947
+ { value: "onSubmit", label: "the form is submitted" }
3948
+ ],
3941
3949
  multiSelect: true,
3950
+ defaultValueHint: ["onChange"],
3942
3951
  advanced: true
3943
3952
  },
3944
3953
  shouldUpdate: {
@@ -3990,7 +3999,7 @@ function commonFormItemProps(usage) {
3990
3999
  }
3991
4000
  const commonSimplifiedFormArrayItemType = (propName) => ({
3992
4001
  type: "object",
3993
- fields: __spreadValues$e({
4002
+ fields: __spreadValues$f({
3994
4003
  label: {
3995
4004
  type: "string",
3996
4005
  defaultValueHint: getDefaultValueHint("label")
@@ -4086,7 +4095,7 @@ const commonSimplifiedFormArrayItemType = (propName) => ({
4086
4095
  });
4087
4096
  const formItemComponentName = "plasmic-antd5-form-item";
4088
4097
  function registerFormItem(loader) {
4089
- registerComponentHelper(loader, FormItemWrapper, __spreadValues$e({
4098
+ registerComponentHelper(loader, FormItemWrapper, __spreadValues$f({
4090
4099
  name: formItemComponentName,
4091
4100
  displayName: "Form Field",
4092
4101
  parentComponentName: formComponentName,
@@ -4094,8 +4103,8 @@ function registerFormItem(loader) {
4094
4103
  marginBottom: "24px",
4095
4104
  width: "stretch"
4096
4105
  },
4097
- props: __spreadValues$e({
4098
- label: __spreadValues$e({
4106
+ props: __spreadValues$f({
4107
+ label: __spreadValues$f({
4099
4108
  type: "slot",
4100
4109
  defaultValue: {
4101
4110
  type: "text",
@@ -4103,7 +4112,7 @@ function registerFormItem(loader) {
4103
4112
  },
4104
4113
  hidden: (ps) => !!ps.noLabel
4105
4114
  }, { mergeWithParent: true }),
4106
- children: __spreadValues$e({
4115
+ children: __spreadValues$f({
4107
4116
  type: "slot",
4108
4117
  defaultValue: {
4109
4118
  type: "component",
@@ -4278,9 +4287,9 @@ const FormListWrapper = React__default.default.forwardRef(function FormListWrapp
4278
4287
  prevPropValues.current.initialValue = props.initialValue;
4279
4288
  fireOnValuesChange == null ? void 0 : fireOnValuesChange();
4280
4289
  }
4281
- }, [props.initialValue, fullFormItemName]);
4290
+ }, [JSON.stringify(props.initialValue), JSON.stringify(fullFormItemName)]);
4282
4291
  }
4283
- return /* @__PURE__ */ React__default.default.createElement(FormList, __spreadProps$9(__spreadValues$e({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
4292
+ return /* @__PURE__ */ React__default.default.createElement(FormList, __spreadProps$a(__spreadValues$f({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
4284
4293
  operationsRef.current = args;
4285
4294
  return args[0].map((field, index) => /* @__PURE__ */ React__default.default.createElement(
4286
4295
  PathContext.Provider,
@@ -4301,6 +4310,7 @@ function registerFormList(loader) {
4301
4310
  parentComponentName: formComponentName,
4302
4311
  displayName: "Form List",
4303
4312
  actions: COMMON_ACTIONS,
4313
+ providesData: true,
4304
4314
  props: {
4305
4315
  children: {
4306
4316
  type: "slot",
@@ -4407,33 +4417,33 @@ function registerFormList(loader) {
4407
4417
  });
4408
4418
  }
4409
4419
 
4410
- var __defProp$d = Object.defineProperty;
4411
- var __defProps$8 = Object.defineProperties;
4412
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4413
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4414
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4415
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4416
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4417
- var __spreadValues$d = (a, b) => {
4420
+ var __defProp$e = Object.defineProperty;
4421
+ var __defProps$9 = Object.defineProperties;
4422
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
4423
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
4424
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
4425
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
4426
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4427
+ var __spreadValues$e = (a, b) => {
4418
4428
  for (var prop in b || (b = {}))
4419
- if (__hasOwnProp$d.call(b, prop))
4420
- __defNormalProp$d(a, prop, b[prop]);
4421
- if (__getOwnPropSymbols$d)
4422
- for (var prop of __getOwnPropSymbols$d(b)) {
4423
- if (__propIsEnum$d.call(b, prop))
4424
- __defNormalProp$d(a, prop, b[prop]);
4429
+ if (__hasOwnProp$e.call(b, prop))
4430
+ __defNormalProp$e(a, prop, b[prop]);
4431
+ if (__getOwnPropSymbols$e)
4432
+ for (var prop of __getOwnPropSymbols$e(b)) {
4433
+ if (__propIsEnum$e.call(b, prop))
4434
+ __defNormalProp$e(a, prop, b[prop]);
4425
4435
  }
4426
4436
  return a;
4427
4437
  };
4428
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4429
- var __objRest$a = (source, exclude) => {
4438
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
4439
+ var __objRest$b = (source, exclude) => {
4430
4440
  var target = {};
4431
4441
  for (var prop in source)
4432
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
4442
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
4433
4443
  target[prop] = source[prop];
4434
- if (source != null && __getOwnPropSymbols$d)
4435
- for (var prop of __getOwnPropSymbols$d(source)) {
4436
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
4444
+ if (source != null && __getOwnPropSymbols$e)
4445
+ for (var prop of __getOwnPropSymbols$e(source)) {
4446
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
4437
4447
  target[prop] = source[prop];
4438
4448
  }
4439
4449
  return target;
@@ -4448,7 +4458,7 @@ function AntdModal(props) {
4448
4458
  hideFooter,
4449
4459
  modalScopeClassName,
4450
4460
  wrapClassName
4451
- } = _a, rest = __objRest$a(_a, [
4461
+ } = _a, rest = __objRest$b(_a, [
4452
4462
  "onOpenChange",
4453
4463
  "onOk",
4454
4464
  "onCancel",
@@ -4480,7 +4490,7 @@ function AntdModal(props) {
4480
4490
  }, [onOpenChange, onCancel]);
4481
4491
  return /* @__PURE__ */ React__default.default.createElement(
4482
4492
  antd.Modal,
4483
- __spreadProps$8(__spreadValues$d({}, rest), {
4493
+ __spreadProps$9(__spreadValues$e({}, rest), {
4484
4494
  onOk: memoOnOk,
4485
4495
  onCancel: memoOnCancel,
4486
4496
  open,
@@ -4610,30 +4620,30 @@ function registerModal(loader) {
4610
4620
  });
4611
4621
  }
4612
4622
 
4613
- var __defProp$c = Object.defineProperty;
4614
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4615
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4616
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4617
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4618
- var __spreadValues$c = (a, b) => {
4623
+ var __defProp$d = Object.defineProperty;
4624
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4625
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4626
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
4627
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4628
+ var __spreadValues$d = (a, b) => {
4619
4629
  for (var prop in b || (b = {}))
4620
- if (__hasOwnProp$c.call(b, prop))
4621
- __defNormalProp$c(a, prop, b[prop]);
4622
- if (__getOwnPropSymbols$c)
4623
- for (var prop of __getOwnPropSymbols$c(b)) {
4624
- if (__propIsEnum$c.call(b, prop))
4625
- __defNormalProp$c(a, prop, b[prop]);
4630
+ if (__hasOwnProp$d.call(b, prop))
4631
+ __defNormalProp$d(a, prop, b[prop]);
4632
+ if (__getOwnPropSymbols$d)
4633
+ for (var prop of __getOwnPropSymbols$d(b)) {
4634
+ if (__propIsEnum$d.call(b, prop))
4635
+ __defNormalProp$d(a, prop, b[prop]);
4626
4636
  }
4627
4637
  return a;
4628
4638
  };
4629
- var __objRest$9 = (source, exclude) => {
4639
+ var __objRest$a = (source, exclude) => {
4630
4640
  var target = {};
4631
4641
  for (var prop in source)
4632
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
4642
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
4633
4643
  target[prop] = source[prop];
4634
- if (source != null && __getOwnPropSymbols$c)
4635
- for (var prop of __getOwnPropSymbols$c(source)) {
4636
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
4644
+ if (source != null && __getOwnPropSymbols$d)
4645
+ for (var prop of __getOwnPropSymbols$d(source)) {
4646
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
4637
4647
  target[prop] = source[prop];
4638
4648
  }
4639
4649
  return target;
@@ -4648,7 +4658,7 @@ const AntdTable = React__default.default.forwardRef(function AntdTable2(props, r
4648
4658
  setControlContextData,
4649
4659
  selectedRowKeys,
4650
4660
  defaultSelectedRowKeys
4651
- } = _a, rest = __objRest$9(_a, [
4661
+ } = _a, rest = __objRest$a(_a, [
4652
4662
  "data",
4653
4663
  "onSelectedRowKeysChange",
4654
4664
  "onSelectedRowsChange",
@@ -4714,7 +4724,7 @@ const AntdTable = React__default.default.forwardRef(function AntdTable2(props, r
4714
4724
  );
4715
4725
  return /* @__PURE__ */ React__default.default.createElement(
4716
4726
  antd.Table,
4717
- __spreadValues$c({
4727
+ __spreadValues$d({
4718
4728
  loading: data == null ? void 0 : data.isLoading,
4719
4729
  dataSource: data == null ? void 0 : data.data,
4720
4730
  rowSelection: selection,
@@ -4823,7 +4833,7 @@ function registerTable(loader) {
4823
4833
  }
4824
4834
  }
4825
4835
  });
4826
- registerComponentHelper(loader, AntdColumn, __spreadValues$c({
4836
+ registerComponentHelper(loader, AntdColumn, __spreadValues$d({
4827
4837
  name: "plasmic-antd5-table-column",
4828
4838
  displayName: "Column",
4829
4839
  parentComponentName: "plasmic-antd5-table",
@@ -4860,7 +4870,7 @@ function registerTable(loader) {
4860
4870
  importPath: "@plasmicpkgs/antd5/skinny/registerTable",
4861
4871
  importName: "AntdColumn"
4862
4872
  }, { isRenderless: true }));
4863
- registerComponentHelper(loader, AntdColumnGroup, __spreadValues$c({
4873
+ registerComponentHelper(loader, AntdColumnGroup, __spreadValues$d({
4864
4874
  name: "plasmic-antd5-table-column-group",
4865
4875
  displayName: "Column Group",
4866
4876
  parentComponentName: "plasmic-antd5-table",
@@ -4879,39 +4889,39 @@ function registerTable(loader) {
4879
4889
  }, { isRenderless: true }));
4880
4890
  }
4881
4891
 
4882
- var __defProp$b = Object.defineProperty;
4883
- var __defProps$7 = Object.defineProperties;
4884
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4885
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
4886
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
4887
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
4888
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4889
- var __spreadValues$b = (a, b) => {
4892
+ var __defProp$c = Object.defineProperty;
4893
+ var __defProps$8 = Object.defineProperties;
4894
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
4895
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4896
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4897
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4898
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4899
+ var __spreadValues$c = (a, b) => {
4890
4900
  for (var prop in b || (b = {}))
4891
- if (__hasOwnProp$b.call(b, prop))
4892
- __defNormalProp$b(a, prop, b[prop]);
4893
- if (__getOwnPropSymbols$b)
4894
- for (var prop of __getOwnPropSymbols$b(b)) {
4895
- if (__propIsEnum$b.call(b, prop))
4896
- __defNormalProp$b(a, prop, b[prop]);
4901
+ if (__hasOwnProp$c.call(b, prop))
4902
+ __defNormalProp$c(a, prop, b[prop]);
4903
+ if (__getOwnPropSymbols$c)
4904
+ for (var prop of __getOwnPropSymbols$c(b)) {
4905
+ if (__propIsEnum$c.call(b, prop))
4906
+ __defNormalProp$c(a, prop, b[prop]);
4897
4907
  }
4898
4908
  return a;
4899
4909
  };
4900
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4901
- var __objRest$8 = (source, exclude) => {
4910
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4911
+ var __objRest$9 = (source, exclude) => {
4902
4912
  var target = {};
4903
4913
  for (var prop in source)
4904
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
4914
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
4905
4915
  target[prop] = source[prop];
4906
- if (source != null && __getOwnPropSymbols$b)
4907
- for (var prop of __getOwnPropSymbols$b(source)) {
4908
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
4916
+ if (source != null && __getOwnPropSymbols$c)
4917
+ for (var prop of __getOwnPropSymbols$c(source)) {
4918
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
4909
4919
  target[prop] = source[prop];
4910
4920
  }
4911
4921
  return target;
4912
4922
  };
4913
4923
  function UploadWrapper(props) {
4914
- const _a = props, { files, onFilesChange } = _a, rest = __objRest$8(_a, ["files", "onFilesChange"]);
4924
+ const _a = props, { files, onFilesChange } = _a, rest = __objRest$9(_a, ["files", "onFilesChange"]);
4915
4925
  const handleChange = (info) => {
4916
4926
  const { file } = info;
4917
4927
  if (file.status === "removed") {
@@ -4926,7 +4936,7 @@ function UploadWrapper(props) {
4926
4936
  };
4927
4937
  onFilesChange == null ? void 0 : onFilesChange([
4928
4938
  ...files,
4929
- __spreadProps$7(__spreadValues$b({}, metadata), {
4939
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4930
4940
  status: "uploading"
4931
4941
  })
4932
4942
  ]);
@@ -4934,7 +4944,7 @@ function UploadWrapper(props) {
4934
4944
  reader.onload = () => {
4935
4945
  onFilesChange == null ? void 0 : onFilesChange([
4936
4946
  ...files.filter((f) => f.uid !== file.uid),
4937
- __spreadProps$7(__spreadValues$b({}, metadata), {
4947
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4938
4948
  contents: reader.result.replace(
4939
4949
  /^data:[^;]+;base64,/,
4940
4950
  ""
@@ -4946,7 +4956,7 @@ function UploadWrapper(props) {
4946
4956
  reader.onerror = (error) => {
4947
4957
  onFilesChange == null ? void 0 : onFilesChange([
4948
4958
  ...files.filter((f) => f.uid !== file.uid),
4949
- __spreadProps$7(__spreadValues$b({}, metadata), {
4959
+ __spreadProps$8(__spreadValues$c({}, metadata), {
4950
4960
  status: "error"
4951
4961
  })
4952
4962
  ]);
@@ -4958,7 +4968,7 @@ function UploadWrapper(props) {
4958
4968
  };
4959
4969
  return /* @__PURE__ */ React__default.default.createElement(
4960
4970
  antd.Upload,
4961
- __spreadProps$7(__spreadValues$b({}, rest), {
4971
+ __spreadProps$8(__spreadValues$c({}, rest), {
4962
4972
  fileList: files,
4963
4973
  beforeUpload: () => {
4964
4974
  return false;
@@ -4977,7 +4987,7 @@ UploadWrapper.__plasmicFormFieldMeta = {
4977
4987
  onChangePropName: "onFilesChange"
4978
4988
  };
4979
4989
  function registerUpload(loader) {
4980
- registerComponentHelper(loader, UploadWrapper, __spreadProps$7(__spreadValues$b({
4990
+ registerComponentHelper(loader, UploadWrapper, __spreadProps$8(__spreadValues$c({
4981
4991
  name: "plasmic-antd5-upload",
4982
4992
  displayName: "Upload",
4983
4993
  props: {
@@ -5064,33 +5074,33 @@ function registerUpload(loader) {
5064
5074
  }));
5065
5075
  }
5066
5076
 
5067
- var __defProp$a = Object.defineProperty;
5068
- var __defProps$6 = Object.defineProperties;
5069
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5070
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
5071
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
5072
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
5073
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5074
- var __spreadValues$a = (a, b) => {
5077
+ var __defProp$b = Object.defineProperty;
5078
+ var __defProps$7 = Object.defineProperties;
5079
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
5080
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
5081
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
5082
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
5083
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5084
+ var __spreadValues$b = (a, b) => {
5075
5085
  for (var prop in b || (b = {}))
5076
- if (__hasOwnProp$a.call(b, prop))
5077
- __defNormalProp$a(a, prop, b[prop]);
5078
- if (__getOwnPropSymbols$a)
5079
- for (var prop of __getOwnPropSymbols$a(b)) {
5080
- if (__propIsEnum$a.call(b, prop))
5081
- __defNormalProp$a(a, prop, b[prop]);
5086
+ if (__hasOwnProp$b.call(b, prop))
5087
+ __defNormalProp$b(a, prop, b[prop]);
5088
+ if (__getOwnPropSymbols$b)
5089
+ for (var prop of __getOwnPropSymbols$b(b)) {
5090
+ if (__propIsEnum$b.call(b, prop))
5091
+ __defNormalProp$b(a, prop, b[prop]);
5082
5092
  }
5083
5093
  return a;
5084
5094
  };
5085
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5086
- var __objRest$7 = (source, exclude) => {
5095
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
5096
+ var __objRest$8 = (source, exclude) => {
5087
5097
  var target = {};
5088
5098
  for (var prop in source)
5089
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
5099
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
5090
5100
  target[prop] = source[prop];
5091
- if (source != null && __getOwnPropSymbols$a)
5092
- for (var prop of __getOwnPropSymbols$a(source)) {
5093
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
5101
+ if (source != null && __getOwnPropSymbols$b)
5102
+ for (var prop of __getOwnPropSymbols$b(source)) {
5103
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
5094
5104
  target[prop] = source[prop];
5095
5105
  }
5096
5106
  return target;
@@ -5100,17 +5110,17 @@ function AntdAvatar(_a) {
5100
5110
  letters,
5101
5111
  href,
5102
5112
  target
5103
- } = _b, props = __objRest$7(_b, [
5113
+ } = _b, props = __objRest$8(_b, [
5104
5114
  "letters",
5105
5115
  "href",
5106
5116
  "target"
5107
5117
  ]);
5108
- const avatar = /* @__PURE__ */ React__default.default.createElement(antd.Avatar, __spreadProps$6(__spreadValues$a({}, props), { children: props.children || letters }));
5118
+ const avatar = /* @__PURE__ */ React__default.default.createElement(antd.Avatar, __spreadProps$7(__spreadValues$b({}, props), { children: props.children || letters }));
5109
5119
  const PlasmicLink = host.usePlasmicLink();
5110
5120
  return href ? /* @__PURE__ */ React__default.default.createElement(PlasmicLink, { href, target: target ? "_blank" : void 0 }, avatar) : avatar;
5111
5121
  }
5112
5122
  function AntdAvatarGroup(props) {
5113
- return /* @__PURE__ */ React__default.default.createElement(antd.Avatar.Group, __spreadValues$a({}, props));
5123
+ return /* @__PURE__ */ React__default.default.createElement(antd.Avatar.Group, __spreadValues$b({}, props));
5114
5124
  }
5115
5125
  function registerAvatar(loader) {
5116
5126
  registerComponentHelper(loader, AntdAvatar, {
@@ -5198,27 +5208,27 @@ function registerAvatarGroup(loader) {
5198
5208
  });
5199
5209
  }
5200
5210
 
5201
- var __defProp$9 = Object.defineProperty;
5202
- var __defProps$5 = Object.defineProperties;
5203
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5204
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
5205
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
5206
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
5207
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5208
- var __spreadValues$9 = (a, b) => {
5211
+ var __defProp$a = Object.defineProperty;
5212
+ var __defProps$6 = Object.defineProperties;
5213
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5214
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
5215
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
5216
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
5217
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5218
+ var __spreadValues$a = (a, b) => {
5209
5219
  for (var prop in b || (b = {}))
5210
- if (__hasOwnProp$9.call(b, prop))
5211
- __defNormalProp$9(a, prop, b[prop]);
5212
- if (__getOwnPropSymbols$9)
5213
- for (var prop of __getOwnPropSymbols$9(b)) {
5214
- if (__propIsEnum$9.call(b, prop))
5215
- __defNormalProp$9(a, prop, b[prop]);
5220
+ if (__hasOwnProp$a.call(b, prop))
5221
+ __defNormalProp$a(a, prop, b[prop]);
5222
+ if (__getOwnPropSymbols$a)
5223
+ for (var prop of __getOwnPropSymbols$a(b)) {
5224
+ if (__propIsEnum$a.call(b, prop))
5225
+ __defNormalProp$a(a, prop, b[prop]);
5216
5226
  }
5217
5227
  return a;
5218
5228
  };
5219
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5229
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5220
5230
  function AntdTooltip(props) {
5221
- return /* @__PURE__ */ React__default.default.createElement(antd.Tooltip, __spreadProps$5(__spreadValues$9({}, props), { title: props.title || props.titleText }));
5231
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tooltip, __spreadProps$6(__spreadValues$a({}, props), { title: props.title || props.titleText }));
5222
5232
  }
5223
5233
  function registerTooltip(loader) {
5224
5234
  registerComponentHelper(loader, AntdTooltip, {
@@ -5278,33 +5288,33 @@ function registerTooltip(loader) {
5278
5288
  });
5279
5289
  }
5280
5290
 
5281
- var __defProp$8 = Object.defineProperty;
5282
- var __defProps$4 = Object.defineProperties;
5283
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5284
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5285
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5286
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5287
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5288
- var __spreadValues$8 = (a, b) => {
5291
+ var __defProp$9 = Object.defineProperty;
5292
+ var __defProps$5 = Object.defineProperties;
5293
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
5294
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
5295
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
5296
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
5297
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5298
+ var __spreadValues$9 = (a, b) => {
5289
5299
  for (var prop in b || (b = {}))
5290
- if (__hasOwnProp$8.call(b, prop))
5291
- __defNormalProp$8(a, prop, b[prop]);
5292
- if (__getOwnPropSymbols$8)
5293
- for (var prop of __getOwnPropSymbols$8(b)) {
5294
- if (__propIsEnum$8.call(b, prop))
5295
- __defNormalProp$8(a, prop, b[prop]);
5300
+ if (__hasOwnProp$9.call(b, prop))
5301
+ __defNormalProp$9(a, prop, b[prop]);
5302
+ if (__getOwnPropSymbols$9)
5303
+ for (var prop of __getOwnPropSymbols$9(b)) {
5304
+ if (__propIsEnum$9.call(b, prop))
5305
+ __defNormalProp$9(a, prop, b[prop]);
5296
5306
  }
5297
5307
  return a;
5298
5308
  };
5299
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5300
- var __objRest$6 = (source, exclude) => {
5309
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
5310
+ var __objRest$7 = (source, exclude) => {
5301
5311
  var target = {};
5302
5312
  for (var prop in source)
5303
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
5313
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
5304
5314
  target[prop] = source[prop];
5305
- if (source != null && __getOwnPropSymbols$8)
5306
- for (var prop of __getOwnPropSymbols$8(source)) {
5307
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
5315
+ if (source != null && __getOwnPropSymbols$9)
5316
+ for (var prop of __getOwnPropSymbols$9(source)) {
5317
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
5308
5318
  target[prop] = source[prop];
5309
5319
  }
5310
5320
  return target;
@@ -5313,13 +5323,13 @@ function AntdColorPicker(_a) {
5313
5323
  var _b = _a, {
5314
5324
  showTextSwitch,
5315
5325
  onChange
5316
- } = _b, props = __objRest$6(_b, [
5326
+ } = _b, props = __objRest$7(_b, [
5317
5327
  "showTextSwitch",
5318
5328
  "onChange"
5319
5329
  ]);
5320
5330
  return /* @__PURE__ */ React__default.default.createElement(
5321
5331
  antd.ColorPicker,
5322
- __spreadProps$4(__spreadValues$8({}, props), {
5332
+ __spreadProps$5(__spreadValues$9({}, props), {
5323
5333
  showText: props.showText || showTextSwitch,
5324
5334
  onChangeComplete: (value) => {
5325
5335
  onChange == null ? void 0 : onChange(typeof value === "string" ? value : value.toHexString());
@@ -5392,39 +5402,39 @@ function registerColorPicker(loader) {
5392
5402
  });
5393
5403
  }
5394
5404
 
5395
- var __defProp$7 = Object.defineProperty;
5396
- var __defProps$3 = Object.defineProperties;
5397
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5398
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5399
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5400
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5401
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5402
- var __spreadValues$7 = (a, b) => {
5405
+ var __defProp$8 = Object.defineProperty;
5406
+ var __defProps$4 = Object.defineProperties;
5407
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
5408
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5409
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5410
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5411
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5412
+ var __spreadValues$8 = (a, b) => {
5403
5413
  for (var prop in b || (b = {}))
5404
- if (__hasOwnProp$7.call(b, prop))
5405
- __defNormalProp$7(a, prop, b[prop]);
5406
- if (__getOwnPropSymbols$7)
5407
- for (var prop of __getOwnPropSymbols$7(b)) {
5408
- if (__propIsEnum$7.call(b, prop))
5409
- __defNormalProp$7(a, prop, b[prop]);
5414
+ if (__hasOwnProp$8.call(b, prop))
5415
+ __defNormalProp$8(a, prop, b[prop]);
5416
+ if (__getOwnPropSymbols$8)
5417
+ for (var prop of __getOwnPropSymbols$8(b)) {
5418
+ if (__propIsEnum$8.call(b, prop))
5419
+ __defNormalProp$8(a, prop, b[prop]);
5410
5420
  }
5411
5421
  return a;
5412
5422
  };
5413
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5414
- var __objRest$5 = (source, exclude) => {
5423
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
5424
+ var __objRest$6 = (source, exclude) => {
5415
5425
  var target = {};
5416
5426
  for (var prop in source)
5417
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
5427
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
5418
5428
  target[prop] = source[prop];
5419
- if (source != null && __getOwnPropSymbols$7)
5420
- for (var prop of __getOwnPropSymbols$7(source)) {
5421
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
5429
+ if (source != null && __getOwnPropSymbols$8)
5430
+ for (var prop of __getOwnPropSymbols$8(source)) {
5431
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
5422
5432
  target[prop] = source[prop];
5423
5433
  }
5424
5434
  return target;
5425
5435
  };
5426
5436
  function AntdDrawer(props) {
5427
- const _a = props, { onOpenChange, onClose, open, footer, drawerScopeClassName } = _a, rest = __objRest$5(_a, ["onOpenChange", "onClose", "open", "footer", "drawerScopeClassName"]);
5437
+ const _a = props, { onOpenChange, onClose, open, footer, drawerScopeClassName } = _a, rest = __objRest$6(_a, ["onOpenChange", "onClose", "open", "footer", "drawerScopeClassName"]);
5428
5438
  const memoOnClose = React__default.default.useMemo(() => {
5429
5439
  if (onOpenChange || onClose) {
5430
5440
  return (e) => {
@@ -5437,7 +5447,7 @@ function AntdDrawer(props) {
5437
5447
  }, [onOpenChange, onClose]);
5438
5448
  return /* @__PURE__ */ React__default.default.createElement(
5439
5449
  antd.Drawer,
5440
- __spreadProps$3(__spreadValues$7({}, rest), {
5450
+ __spreadProps$4(__spreadValues$8({}, rest), {
5441
5451
  onClose: memoOnClose,
5442
5452
  rootClassName: drawerScopeClassName,
5443
5453
  open,
@@ -5587,24 +5597,24 @@ function registerDrawer(loader) {
5587
5597
  });
5588
5598
  }
5589
5599
 
5590
- var __defProp$6 = Object.defineProperty;
5591
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5592
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5593
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5594
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5595
- var __spreadValues$6 = (a, b) => {
5600
+ var __defProp$7 = Object.defineProperty;
5601
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5602
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5603
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5604
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5605
+ var __spreadValues$7 = (a, b) => {
5596
5606
  for (var prop in b || (b = {}))
5597
- if (__hasOwnProp$6.call(b, prop))
5598
- __defNormalProp$6(a, prop, b[prop]);
5599
- if (__getOwnPropSymbols$6)
5600
- for (var prop of __getOwnPropSymbols$6(b)) {
5601
- if (__propIsEnum$6.call(b, prop))
5602
- __defNormalProp$6(a, prop, b[prop]);
5607
+ if (__hasOwnProp$7.call(b, prop))
5608
+ __defNormalProp$7(a, prop, b[prop]);
5609
+ if (__getOwnPropSymbols$7)
5610
+ for (var prop of __getOwnPropSymbols$7(b)) {
5611
+ if (__propIsEnum$7.call(b, prop))
5612
+ __defNormalProp$7(a, prop, b[prop]);
5603
5613
  }
5604
5614
  return a;
5605
5615
  };
5606
5616
  function AntdSteps(props) {
5607
- return /* @__PURE__ */ React__default.default.createElement(antd.Steps, __spreadValues$6({}, props));
5617
+ return /* @__PURE__ */ React__default.default.createElement(antd.Steps, __spreadValues$7({}, props));
5608
5618
  }
5609
5619
  function registerSteps(loader) {
5610
5620
  const statusOptions = ["wait", "process", "finish", "error"];
@@ -5711,30 +5721,30 @@ function registerSteps(loader) {
5711
5721
  });
5712
5722
  }
5713
5723
 
5714
- var __defProp$5 = Object.defineProperty;
5715
- var __defProps$2 = Object.defineProperties;
5716
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
5717
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
5718
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
5719
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
5720
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5721
- var __spreadValues$5 = (a, b) => {
5724
+ var __defProp$6 = Object.defineProperty;
5725
+ var __defProps$3 = Object.defineProperties;
5726
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5727
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5728
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5729
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5730
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5731
+ var __spreadValues$6 = (a, b) => {
5722
5732
  for (var prop in b || (b = {}))
5723
- if (__hasOwnProp$5.call(b, prop))
5724
- __defNormalProp$5(a, prop, b[prop]);
5725
- if (__getOwnPropSymbols$5)
5726
- for (var prop of __getOwnPropSymbols$5(b)) {
5727
- if (__propIsEnum$5.call(b, prop))
5728
- __defNormalProp$5(a, prop, b[prop]);
5733
+ if (__hasOwnProp$6.call(b, prop))
5734
+ __defNormalProp$6(a, prop, b[prop]);
5735
+ if (__getOwnPropSymbols$6)
5736
+ for (var prop of __getOwnPropSymbols$6(b)) {
5737
+ if (__propIsEnum$6.call(b, prop))
5738
+ __defNormalProp$6(a, prop, b[prop]);
5729
5739
  }
5730
5740
  return a;
5731
5741
  };
5732
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
5742
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5733
5743
  function useMunged(props) {
5734
5744
  const [autoExpandParent, setAutoExpandParent] = React.useState(
5735
5745
  props.autoExpandParent
5736
5746
  );
5737
- const munged = __spreadProps$2(__spreadValues$5({}, props), { autoExpandParent });
5747
+ const munged = __spreadProps$3(__spreadValues$6({}, props), { autoExpandParent });
5738
5748
  if (!props.expandedKeys) {
5739
5749
  delete munged["expandedKeys"];
5740
5750
  }
@@ -5747,11 +5757,11 @@ function useMunged(props) {
5747
5757
  }
5748
5758
  function AntdTree(props) {
5749
5759
  const munged = useMunged(props);
5750
- return /* @__PURE__ */ React__default.default.createElement(antd.Tree, __spreadValues$5({}, munged));
5760
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tree, __spreadValues$6({}, munged));
5751
5761
  }
5752
5762
  function AntdDirectoryTree(props) {
5753
5763
  const munged = useMunged(props);
5754
- return /* @__PURE__ */ React__default.default.createElement(antd.Tree.DirectoryTree, __spreadValues$5({}, munged));
5764
+ return /* @__PURE__ */ React__default.default.createElement(antd.Tree.DirectoryTree, __spreadValues$6({}, munged));
5755
5765
  }
5756
5766
  const treeHelpers_ = {
5757
5767
  states: {
@@ -5981,20 +5991,20 @@ function registerTreeHelper({
5981
5991
  }
5982
5992
  },
5983
5993
  states: {
5984
- checkedKeys: __spreadValues$5({
5994
+ checkedKeys: __spreadValues$6({
5985
5995
  type: "writable",
5986
5996
  valueProp: "checkedKeys",
5987
5997
  onChangeProp: "onCheck",
5988
5998
  variableType: "array",
5989
5999
  initVal: []
5990
6000
  }, treeHelpers_.states.checkedKeys),
5991
- checkedNodes: __spreadValues$5({
6001
+ checkedNodes: __spreadValues$6({
5992
6002
  type: "readonly",
5993
6003
  onChangeProp: "onCheck",
5994
6004
  variableType: "array",
5995
6005
  initVal: []
5996
6006
  }, treeHelpers_.states.checkedNodes),
5997
- checkedDetails: __spreadValues$5({
6007
+ checkedDetails: __spreadValues$6({
5998
6008
  type: "readonly",
5999
6009
  onChangeProp: "onCheck",
6000
6010
  variableType: "object",
@@ -6003,20 +6013,20 @@ function registerTreeHelper({
6003
6013
  halfCheckedKeys: []
6004
6014
  }
6005
6015
  }, treeHelpers_.states.checkedDetails),
6006
- selectedKeys: __spreadValues$5({
6016
+ selectedKeys: __spreadValues$6({
6007
6017
  type: "writable",
6008
6018
  valueProp: "selectedKeys",
6009
6019
  onChangeProp: "onSelect",
6010
6020
  variableType: "array",
6011
6021
  initVal: []
6012
6022
  }, treeHelpers_.states.selectedKeys),
6013
- selectedNodes: __spreadValues$5({
6023
+ selectedNodes: __spreadValues$6({
6014
6024
  type: "readonly",
6015
6025
  onChangeProp: "onSelect",
6016
6026
  variableType: "array",
6017
6027
  initVal: []
6018
6028
  }, treeHelpers_.states.selectedNodes),
6019
- expandedKeys: __spreadValues$5({
6029
+ expandedKeys: __spreadValues$6({
6020
6030
  type: "writable",
6021
6031
  valueProp: "expandedKeys",
6022
6032
  onChangeProp: "onExpand",
@@ -6056,33 +6066,33 @@ function registerDirectoryTree(loader) {
6056
6066
  });
6057
6067
  }
6058
6068
 
6059
- var __defProp$4 = Object.defineProperty;
6060
- var __defProps$1 = Object.defineProperties;
6061
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
6062
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
6063
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
6064
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
6065
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6066
- var __spreadValues$4 = (a, b) => {
6069
+ var __defProp$5 = Object.defineProperty;
6070
+ var __defProps$2 = Object.defineProperties;
6071
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
6072
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
6073
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
6074
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
6075
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6076
+ var __spreadValues$5 = (a, b) => {
6067
6077
  for (var prop in b || (b = {}))
6068
- if (__hasOwnProp$4.call(b, prop))
6069
- __defNormalProp$4(a, prop, b[prop]);
6070
- if (__getOwnPropSymbols$4)
6071
- for (var prop of __getOwnPropSymbols$4(b)) {
6072
- if (__propIsEnum$4.call(b, prop))
6073
- __defNormalProp$4(a, prop, b[prop]);
6078
+ if (__hasOwnProp$5.call(b, prop))
6079
+ __defNormalProp$5(a, prop, b[prop]);
6080
+ if (__getOwnPropSymbols$5)
6081
+ for (var prop of __getOwnPropSymbols$5(b)) {
6082
+ if (__propIsEnum$5.call(b, prop))
6083
+ __defNormalProp$5(a, prop, b[prop]);
6074
6084
  }
6075
6085
  return a;
6076
6086
  };
6077
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
6078
- var __objRest$4 = (source, exclude) => {
6087
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
6088
+ var __objRest$5 = (source, exclude) => {
6079
6089
  var target = {};
6080
6090
  for (var prop in source)
6081
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
6091
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
6082
6092
  target[prop] = source[prop];
6083
- if (source != null && __getOwnPropSymbols$4)
6084
- for (var prop of __getOwnPropSymbols$4(source)) {
6085
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
6093
+ if (source != null && __getOwnPropSymbols$5)
6094
+ for (var prop of __getOwnPropSymbols$5(source)) {
6095
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
6086
6096
  target[prop] = source[prop];
6087
6097
  }
6088
6098
  return target;
@@ -6102,7 +6112,7 @@ function AntdAccordion(props) {
6102
6112
  collapsible,
6103
6113
  disabled,
6104
6114
  rotateCustomExpandIcon
6105
- } = _a, rest = __objRest$4(_a, [
6115
+ } = _a, rest = __objRest$5(_a, [
6106
6116
  "items",
6107
6117
  "activeKey",
6108
6118
  "defaultActiveKey",
@@ -6115,7 +6125,7 @@ function AntdAccordion(props) {
6115
6125
  if (!React__default.default.isValidElement(itemsRaw))
6116
6126
  return [];
6117
6127
  return (Array.isArray(itemsRaw.props.children) ? itemsRaw.props.children : [itemsRaw.props.children]).map((currentItem) => {
6118
- const props2 = __spreadProps$1(__spreadValues$4({}, currentItem.props), {
6128
+ const props2 = __spreadProps$2(__spreadValues$5({}, currentItem.props), {
6119
6129
  id: currentItem.props.id,
6120
6130
  key: currentItem.props.id,
6121
6131
  children: React__default.default.cloneElement(/* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, currentItem.props.children))
@@ -6130,7 +6140,7 @@ function AntdAccordion(props) {
6130
6140
  }, [itemsRaw]);
6131
6141
  return /* @__PURE__ */ React__default.default.createElement(
6132
6142
  antd.Collapse,
6133
- __spreadValues$4({
6143
+ __spreadValues$5({
6134
6144
  accordion: true,
6135
6145
  items,
6136
6146
  defaultActiveKey,
@@ -6161,7 +6171,7 @@ function AntdSingleCollapse(props) {
6161
6171
  forceRender,
6162
6172
  children,
6163
6173
  headerClass
6164
- } = _a, rest = __objRest$4(_a, [
6174
+ } = _a, rest = __objRest$5(_a, [
6165
6175
  "open",
6166
6176
  "defaultOpen",
6167
6177
  "expandIcon",
@@ -6191,7 +6201,7 @@ function AntdSingleCollapse(props) {
6191
6201
  );
6192
6202
  return /* @__PURE__ */ React__default.default.createElement(
6193
6203
  antd.Collapse,
6194
- __spreadValues$4({
6204
+ __spreadValues$5({
6195
6205
  accordion: false,
6196
6206
  items: [item],
6197
6207
  defaultActiveKey: defaultOpen ? item.key : void 0,
@@ -6293,7 +6303,7 @@ const commonAccordionItemProps = {
6293
6303
  type: "class",
6294
6304
  displayName: "Header"
6295
6305
  },
6296
- children: __spreadProps$1(__spreadValues$4({
6306
+ children: __spreadProps$2(__spreadValues$5({
6297
6307
  type: "slot",
6298
6308
  hidePlaceholder: true
6299
6309
  }, { mergeWithParent: true }), {
@@ -6329,7 +6339,7 @@ function registerCollapse(loader) {
6329
6339
  defaultStyles: {
6330
6340
  width: "stretch"
6331
6341
  },
6332
- props: __spreadValues$4(__spreadValues$4(__spreadValues$4({
6342
+ props: __spreadValues$5(__spreadValues$5(__spreadValues$5({
6333
6343
  open: {
6334
6344
  editOnly: true,
6335
6345
  displayName: "Open",
@@ -6339,7 +6349,7 @@ function registerCollapse(loader) {
6339
6349
  }
6340
6350
  }, commonProps$1), commonAccordionItemProps), commonAccordionProps),
6341
6351
  states: {
6342
- open: __spreadValues$4({
6352
+ open: __spreadValues$5({
6343
6353
  type: "writable",
6344
6354
  valueProp: "open",
6345
6355
  onChangeProp: "onChange",
@@ -6360,7 +6370,7 @@ function registerCollapse(loader) {
6360
6370
  defaultStyles: {
6361
6371
  width: "stretch"
6362
6372
  },
6363
- props: __spreadValues$4(__spreadValues$4({
6373
+ props: __spreadValues$5(__spreadValues$5({
6364
6374
  activeKey: {
6365
6375
  editOnly: true,
6366
6376
  displayName: "Active panel ID",
@@ -6369,7 +6379,7 @@ function registerCollapse(loader) {
6369
6379
  description: `ID of Accordion item that is expanded by default.`,
6370
6380
  advanced: true
6371
6381
  },
6372
- items: __spreadProps$1(__spreadValues$4({
6382
+ items: __spreadProps$2(__spreadValues$5({
6373
6383
  type: "slot",
6374
6384
  hidePlaceholder: true,
6375
6385
  allowedComponents: [accordionItemComponentName]
@@ -6409,7 +6419,7 @@ function registerCollapse(loader) {
6409
6419
  })
6410
6420
  }, commonProps$1), commonAccordionProps),
6411
6421
  states: {
6412
- activePanelId: __spreadValues$4({
6422
+ activePanelId: __spreadValues$5({
6413
6423
  type: "writable",
6414
6424
  valueProp: "activeKey",
6415
6425
  onChangeProp: "onChange",
@@ -6427,7 +6437,7 @@ function registerCollapse(loader) {
6427
6437
  registerComponentHelper(loader, AntdAccordionItem, {
6428
6438
  name: accordionItemComponentName,
6429
6439
  displayName: "Accordion Item",
6430
- props: __spreadValues$4(__spreadValues$4({
6440
+ props: __spreadValues$5(__spreadValues$5({
6431
6441
  id: {
6432
6442
  type: "string",
6433
6443
  description: `Unique identifier for this item`,
@@ -6440,30 +6450,30 @@ function registerCollapse(loader) {
6440
6450
  });
6441
6451
  }
6442
6452
 
6443
- var __defProp$3 = Object.defineProperty;
6444
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
6445
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
6446
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
6447
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6448
- var __spreadValues$3 = (a, b) => {
6453
+ var __defProp$4 = Object.defineProperty;
6454
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
6455
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
6456
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
6457
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6458
+ var __spreadValues$4 = (a, b) => {
6449
6459
  for (var prop in b || (b = {}))
6450
- if (__hasOwnProp$3.call(b, prop))
6451
- __defNormalProp$3(a, prop, b[prop]);
6452
- if (__getOwnPropSymbols$3)
6453
- for (var prop of __getOwnPropSymbols$3(b)) {
6454
- if (__propIsEnum$3.call(b, prop))
6455
- __defNormalProp$3(a, prop, b[prop]);
6460
+ if (__hasOwnProp$4.call(b, prop))
6461
+ __defNormalProp$4(a, prop, b[prop]);
6462
+ if (__getOwnPropSymbols$4)
6463
+ for (var prop of __getOwnPropSymbols$4(b)) {
6464
+ if (__propIsEnum$4.call(b, prop))
6465
+ __defNormalProp$4(a, prop, b[prop]);
6456
6466
  }
6457
6467
  return a;
6458
6468
  };
6459
- var __objRest$3 = (source, exclude) => {
6469
+ var __objRest$4 = (source, exclude) => {
6460
6470
  var target = {};
6461
6471
  for (var prop in source)
6462
- if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
6472
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
6463
6473
  target[prop] = source[prop];
6464
- if (source != null && __getOwnPropSymbols$3)
6465
- for (var prop of __getOwnPropSymbols$3(source)) {
6466
- if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
6474
+ if (source != null && __getOwnPropSymbols$4)
6475
+ for (var prop of __getOwnPropSymbols$4(source)) {
6476
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
6467
6477
  target[prop] = source[prop];
6468
6478
  }
6469
6479
  return target;
@@ -6474,7 +6484,7 @@ function AntdPopover(props) {
6474
6484
  popoverScopeClassName,
6475
6485
  contentText,
6476
6486
  content
6477
- } = _a, rest = __objRest$3(_a, [
6487
+ } = _a, rest = __objRest$4(_a, [
6478
6488
  "overlayClassName",
6479
6489
  "popoverScopeClassName",
6480
6490
  "contentText",
@@ -6482,7 +6492,7 @@ function AntdPopover(props) {
6482
6492
  ]);
6483
6493
  return /* @__PURE__ */ React__default.default.createElement(
6484
6494
  antd.Popover,
6485
- __spreadValues$3({
6495
+ __spreadValues$4({
6486
6496
  content: content || contentText,
6487
6497
  overlayClassName: `${overlayClassName} ${popoverScopeClassName}`
6488
6498
  }, rest)
@@ -6614,33 +6624,33 @@ function registerPopover(loader) {
6614
6624
  });
6615
6625
  }
6616
6626
 
6617
- var __defProp$2 = Object.defineProperty;
6618
- var __defProps = Object.defineProperties;
6619
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6620
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
6621
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
6622
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
6623
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6624
- var __spreadValues$2 = (a, b) => {
6627
+ var __defProp$3 = Object.defineProperty;
6628
+ var __defProps$1 = Object.defineProperties;
6629
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
6630
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
6631
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
6632
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
6633
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6634
+ var __spreadValues$3 = (a, b) => {
6625
6635
  for (var prop in b || (b = {}))
6626
- if (__hasOwnProp$2.call(b, prop))
6627
- __defNormalProp$2(a, prop, b[prop]);
6628
- if (__getOwnPropSymbols$2)
6629
- for (var prop of __getOwnPropSymbols$2(b)) {
6630
- if (__propIsEnum$2.call(b, prop))
6631
- __defNormalProp$2(a, prop, b[prop]);
6636
+ if (__hasOwnProp$3.call(b, prop))
6637
+ __defNormalProp$3(a, prop, b[prop]);
6638
+ if (__getOwnPropSymbols$3)
6639
+ for (var prop of __getOwnPropSymbols$3(b)) {
6640
+ if (__propIsEnum$3.call(b, prop))
6641
+ __defNormalProp$3(a, prop, b[prop]);
6632
6642
  }
6633
6643
  return a;
6634
6644
  };
6635
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6636
- var __objRest$2 = (source, exclude) => {
6645
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
6646
+ var __objRest$3 = (source, exclude) => {
6637
6647
  var target = {};
6638
6648
  for (var prop in source)
6639
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
6649
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
6640
6650
  target[prop] = source[prop];
6641
- if (source != null && __getOwnPropSymbols$2)
6642
- for (var prop of __getOwnPropSymbols$2(source)) {
6643
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
6651
+ if (source != null && __getOwnPropSymbols$3)
6652
+ for (var prop of __getOwnPropSymbols$3(source)) {
6653
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
6644
6654
  target[prop] = source[prop];
6645
6655
  }
6646
6656
  return target;
@@ -6675,7 +6685,7 @@ function AntdTabs(props) {
6675
6685
  tabPosition,
6676
6686
  tabsScopeClassName,
6677
6687
  tabsDropdownScopeClassName
6678
- } = _a, rest = __objRest$2(_a, [
6688
+ } = _a, rest = __objRest$3(_a, [
6679
6689
  "items",
6680
6690
  "animated",
6681
6691
  "animateTabBar",
@@ -6705,7 +6715,7 @@ function AntdTabs(props) {
6705
6715
  if (!React__default.default.isValidElement(currentItem) || !React__default.default.isValidElement(currentItem.props.children)) {
6706
6716
  return null;
6707
6717
  }
6708
- return __spreadProps(__spreadValues$2({}, currentItem.props), {
6718
+ return __spreadProps$1(__spreadValues$3({}, currentItem.props), {
6709
6719
  key: currentItem.key,
6710
6720
  children: /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, currentItem.props.children)
6711
6721
  });
@@ -6713,7 +6723,7 @@ function AntdTabs(props) {
6713
6723
  }, [itemsRaw]);
6714
6724
  return /* @__PURE__ */ React__default.default.createElement(
6715
6725
  antd.Tabs,
6716
- __spreadValues$2({
6726
+ __spreadValues$3({
6717
6727
  className: `${className} ${tabsScopeClassName}`,
6718
6728
  popupClassName: tabsDropdownScopeClassName,
6719
6729
  tabBarExtraContent: {
@@ -6732,7 +6742,7 @@ function AntdTabs(props) {
6732
6742
  },
6733
6743
  /* @__PURE__ */ React__default.default.createElement(
6734
6744
  DefaultTabBar,
6735
- __spreadProps(__spreadValues$2({}, props2), {
6745
+ __spreadProps$1(__spreadValues$3({}, props2), {
6736
6746
  style: { backgroundColor: tabBarBackground }
6737
6747
  })
6738
6748
  )
@@ -6798,7 +6808,7 @@ function registerTabs(loader) {
6798
6808
  options: ["line", "card"],
6799
6809
  description: "Basic style of tabs"
6800
6810
  },
6801
- items: __spreadProps(__spreadValues$2({
6811
+ items: __spreadProps$1(__spreadValues$3({
6802
6812
  type: "slot",
6803
6813
  hidePlaceholder: true,
6804
6814
  allowedComponents: [tabItemComponentName]
@@ -7057,36 +7067,36 @@ function registerTabs(loader) {
7057
7067
  });
7058
7068
  }
7059
7069
 
7060
- var __defProp$1 = Object.defineProperty;
7061
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
7062
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
7063
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
7064
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7065
- var __spreadValues$1 = (a, b) => {
7070
+ var __defProp$2 = Object.defineProperty;
7071
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
7072
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
7073
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
7074
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7075
+ var __spreadValues$2 = (a, b) => {
7066
7076
  for (var prop in b || (b = {}))
7067
- if (__hasOwnProp$1.call(b, prop))
7068
- __defNormalProp$1(a, prop, b[prop]);
7069
- if (__getOwnPropSymbols$1)
7070
- for (var prop of __getOwnPropSymbols$1(b)) {
7071
- if (__propIsEnum$1.call(b, prop))
7072
- __defNormalProp$1(a, prop, b[prop]);
7077
+ if (__hasOwnProp$2.call(b, prop))
7078
+ __defNormalProp$2(a, prop, b[prop]);
7079
+ if (__getOwnPropSymbols$2)
7080
+ for (var prop of __getOwnPropSymbols$2(b)) {
7081
+ if (__propIsEnum$2.call(b, prop))
7082
+ __defNormalProp$2(a, prop, b[prop]);
7073
7083
  }
7074
7084
  return a;
7075
7085
  };
7076
- var __objRest$1 = (source, exclude) => {
7086
+ var __objRest$2 = (source, exclude) => {
7077
7087
  var target = {};
7078
7088
  for (var prop in source)
7079
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
7089
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
7080
7090
  target[prop] = source[prop];
7081
- if (source != null && __getOwnPropSymbols$1)
7082
- for (var prop of __getOwnPropSymbols$1(source)) {
7083
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
7091
+ if (source != null && __getOwnPropSymbols$2)
7092
+ for (var prop of __getOwnPropSymbols$2(source)) {
7093
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
7084
7094
  target[prop] = source[prop];
7085
7095
  }
7086
7096
  return target;
7087
7097
  };
7088
7098
  function AntdRate(props) {
7089
- const _a = props, { character, count, tooltips, multiCharacter, symbols } = _a, rest = __objRest$1(_a, ["character", "count", "tooltips", "multiCharacter", "symbols"]);
7099
+ const _a = props, { character, count, tooltips, multiCharacter, symbols } = _a, rest = __objRest$2(_a, ["character", "count", "tooltips", "multiCharacter", "symbols"]);
7090
7100
  const symbolsProp = React.useMemo(
7091
7101
  () => {
7092
7102
  var _a2, _b, _c;
@@ -7106,7 +7116,7 @@ function AntdRate(props) {
7106
7116
  }, [character, multiCharacter, symbolsProp]);
7107
7117
  return /* @__PURE__ */ React__default.default.createElement(
7108
7118
  antd.Rate,
7109
- __spreadValues$1({
7119
+ __spreadValues$2({
7110
7120
  tooltips: tooltips == null ? void 0 : tooltips.map((t) => t == null ? void 0 : t.label),
7111
7121
  count: countProp,
7112
7122
  character: characterProp
@@ -7240,30 +7250,30 @@ function registerRate(loader) {
7240
7250
  });
7241
7251
  }
7242
7252
 
7243
- var __defProp = Object.defineProperty;
7244
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7245
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7246
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7247
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7248
- var __spreadValues = (a, b) => {
7253
+ var __defProp$1 = Object.defineProperty;
7254
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
7255
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
7256
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
7257
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7258
+ var __spreadValues$1 = (a, b) => {
7249
7259
  for (var prop in b || (b = {}))
7250
- if (__hasOwnProp.call(b, prop))
7251
- __defNormalProp(a, prop, b[prop]);
7252
- if (__getOwnPropSymbols)
7253
- for (var prop of __getOwnPropSymbols(b)) {
7254
- if (__propIsEnum.call(b, prop))
7255
- __defNormalProp(a, prop, b[prop]);
7260
+ if (__hasOwnProp$1.call(b, prop))
7261
+ __defNormalProp$1(a, prop, b[prop]);
7262
+ if (__getOwnPropSymbols$1)
7263
+ for (var prop of __getOwnPropSymbols$1(b)) {
7264
+ if (__propIsEnum$1.call(b, prop))
7265
+ __defNormalProp$1(a, prop, b[prop]);
7256
7266
  }
7257
7267
  return a;
7258
7268
  };
7259
- var __objRest = (source, exclude) => {
7269
+ var __objRest$1 = (source, exclude) => {
7260
7270
  var target = {};
7261
7271
  for (var prop in source)
7262
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
7272
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
7263
7273
  target[prop] = source[prop];
7264
- if (source != null && __getOwnPropSymbols)
7265
- for (var prop of __getOwnPropSymbols(source)) {
7266
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
7274
+ if (source != null && __getOwnPropSymbols$1)
7275
+ for (var prop of __getOwnPropSymbols$1(source)) {
7276
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
7267
7277
  target[prop] = source[prop];
7268
7278
  }
7269
7279
  return target;
@@ -7319,7 +7329,7 @@ function AntdRangeSlider(props) {
7319
7329
  valueMax,
7320
7330
  defaultValueMin,
7321
7331
  defaultValueMax
7322
- } = _a, rest = __objRest(_a, [
7332
+ } = _a, rest = __objRest$1(_a, [
7323
7333
  "marks",
7324
7334
  "stylableMarks",
7325
7335
  "sliderScopeClassName",
@@ -7343,7 +7353,7 @@ function AntdRangeSlider(props) {
7343
7353
  });
7344
7354
  return /* @__PURE__ */ React__default.default.createElement(
7345
7355
  antd.Slider,
7346
- __spreadValues({
7356
+ __spreadValues$1({
7347
7357
  value: [valueMin || 0, valueMax || 0],
7348
7358
  defaultValue: [defaultValueMin || 0, defaultValueMax || 0],
7349
7359
  range: { draggableTrack },
@@ -7363,7 +7373,7 @@ function AntdSingleSlider(props) {
7363
7373
  tooltipPlacement,
7364
7374
  tooltipPrefix,
7365
7375
  tooltipSuffix
7366
- } = _a, rest = __objRest(_a, [
7376
+ } = _a, rest = __objRest$1(_a, [
7367
7377
  "marks",
7368
7378
  "stylableMarks",
7369
7379
  "sliderScopeClassName",
@@ -7382,7 +7392,7 @@ function AntdSingleSlider(props) {
7382
7392
  });
7383
7393
  return /* @__PURE__ */ React__default.default.createElement(
7384
7394
  antd.Slider,
7385
- __spreadValues({
7395
+ __spreadValues$1({
7386
7396
  className: `${sliderScopeClassName} ${className}`,
7387
7397
  tooltip: tooltipProp,
7388
7398
  marks: marksProp
@@ -7632,7 +7642,7 @@ function registerSlider(loader) {
7632
7642
  defaultStyles: {
7633
7643
  width: "300px"
7634
7644
  },
7635
- props: __spreadValues({
7645
+ props: __spreadValues$1({
7636
7646
  value: {
7637
7647
  type: "number",
7638
7648
  editOnly: true,
@@ -7667,7 +7677,7 @@ function registerSlider(loader) {
7667
7677
  defaultStyles: {
7668
7678
  width: "300px"
7669
7679
  },
7670
- props: __spreadValues({
7680
+ props: __spreadValues$1({
7671
7681
  draggableTrack: {
7672
7682
  type: "boolean",
7673
7683
  defaultValueHint: false,
@@ -7697,13 +7707,13 @@ function registerSlider(loader) {
7697
7707
  }
7698
7708
  }, commonProps),
7699
7709
  states: {
7700
- min: __spreadValues({
7710
+ min: __spreadValues$1({
7701
7711
  type: "writable",
7702
7712
  valueProp: "valueMin",
7703
7713
  onChangeProp: "onChange",
7704
7714
  variableType: "number"
7705
7715
  }, rangeSliderHelpers.states.min),
7706
- max: __spreadValues({
7716
+ max: __spreadValues$1({
7707
7717
  type: "writable",
7708
7718
  valueProp: "valueMax",
7709
7719
  onChangeProp: "onChange",
@@ -7737,6 +7747,404 @@ function registerSlider(loader) {
7737
7747
  });
7738
7748
  }
7739
7749
 
7750
+ var __defProp = Object.defineProperty;
7751
+ var __defProps = Object.defineProperties;
7752
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7753
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7754
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7755
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7756
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7757
+ var __spreadValues = (a, b) => {
7758
+ for (var prop in b || (b = {}))
7759
+ if (__hasOwnProp.call(b, prop))
7760
+ __defNormalProp(a, prop, b[prop]);
7761
+ if (__getOwnPropSymbols)
7762
+ for (var prop of __getOwnPropSymbols(b)) {
7763
+ if (__propIsEnum.call(b, prop))
7764
+ __defNormalProp(a, prop, b[prop]);
7765
+ }
7766
+ return a;
7767
+ };
7768
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7769
+ var __objRest = (source, exclude) => {
7770
+ var target = {};
7771
+ for (var prop in source)
7772
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
7773
+ target[prop] = source[prop];
7774
+ if (source != null && __getOwnPropSymbols)
7775
+ for (var prop of __getOwnPropSymbols(source)) {
7776
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
7777
+ target[prop] = source[prop];
7778
+ }
7779
+ return target;
7780
+ };
7781
+ const { RangePicker } = antd.DatePicker;
7782
+ function getDayjsRange(dateRange) {
7783
+ return Array.isArray(dateRange) ? [
7784
+ dateRange[0] ? dayjs__default.default(dateRange[0]) : null,
7785
+ dateRange[1] ? dayjs__default.default(dateRange[1]) : null
7786
+ ] : [null, null];
7787
+ }
7788
+ function getStrRange(dateRange) {
7789
+ return Array.isArray(dateRange) ? dateRange.map(
7790
+ (date) => date && !(typeof date === "string") && "toISOString" in date ? date.toISOString() : date === null ? void 0 : date
7791
+ ) : void 0;
7792
+ }
7793
+ function AntdDateRangePicker(props) {
7794
+ const _a = props, {
7795
+ defaultStartDate,
7796
+ defaultEndDate,
7797
+ startDate,
7798
+ endDate,
7799
+ allowEmpty,
7800
+ allowEmptyEndDate,
7801
+ allowEmptyStartDate,
7802
+ disabled,
7803
+ renderExtraFooter,
7804
+ disableStartDate,
7805
+ disableEndDate,
7806
+ presets,
7807
+ picker,
7808
+ placeholder,
7809
+ onChange,
7810
+ popupScopeClassName,
7811
+ className
7812
+ } = _a, rest = __objRest(_a, [
7813
+ "defaultStartDate",
7814
+ "defaultEndDate",
7815
+ "startDate",
7816
+ "endDate",
7817
+ "allowEmpty",
7818
+ "allowEmptyEndDate",
7819
+ "allowEmptyStartDate",
7820
+ "disabled",
7821
+ "renderExtraFooter",
7822
+ "disableStartDate",
7823
+ "disableEndDate",
7824
+ "presets",
7825
+ "picker",
7826
+ "placeholder",
7827
+ "onChange",
7828
+ "popupScopeClassName",
7829
+ "className"
7830
+ ]);
7831
+ const popupScopeClassNameSelector = popupScopeClassName ? `.${popupScopeClassName}` : "";
7832
+ const css = `
7833
+ @media(max-width: 900px) {
7834
+ .ant-picker-panels{
7835
+ flex-direction: column;
7836
+ }
7837
+ }
7838
+
7839
+ @media(max-width: 500px) {
7840
+ ${popupScopeClassNameSelector}.ant-picker-dropdown {
7841
+ top: 20px !important;
7842
+ left: 10px !important;
7843
+ right: 10px !important;
7844
+ max-height: 95vh;
7845
+ position: fixed;
7846
+ overflow-y: scroll;
7847
+ max-width: 100vw;
7848
+ }
7849
+
7850
+ ${popupScopeClassNameSelector} .ant-picker-panel-container {
7851
+ min-width: 300px;
7852
+ }
7853
+
7854
+ ${popupScopeClassNameSelector} .ant-picker-datetime-panel {
7855
+ flex-direction: column;
7856
+ }
7857
+
7858
+ .${className} .ant-picker-input > input {
7859
+ font-size: 16px !important;
7860
+ }
7861
+
7862
+ ${popupScopeClassNameSelector} .ant-picker-header-view {
7863
+ line-height: unset !important;
7864
+ }
7865
+
7866
+ ${popupScopeClassNameSelector} .ant-picker-content {
7867
+ height: unset !important;
7868
+ }
7869
+
7870
+ ${popupScopeClassNameSelector} .ant-picker-time-panel-column {
7871
+ height: 100px;
7872
+ }
7873
+
7874
+ ${popupScopeClassNameSelector} .ant-picker-range-arrow {
7875
+ display: none;
7876
+ }
7877
+ }
7878
+ `;
7879
+ const presetsDayjs = React.useMemo(
7880
+ () => presets == null ? void 0 : presets.map((p) => __spreadProps(__spreadValues({}, p), { value: getDayjsRange([p.startDate, p.endDate]) })).filter((p) => {
7881
+ var _a2, _b;
7882
+ return ((_a2 = p.value[0]) == null ? void 0 : _a2.isValid()) && ((_b = p.value[1]) == null ? void 0 : _b.isValid());
7883
+ }),
7884
+ [presets]
7885
+ );
7886
+ return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
7887
+ RangePicker,
7888
+ __spreadProps(__spreadValues({}, rest), {
7889
+ picker,
7890
+ presets: presetsDayjs,
7891
+ allowEmpty: allowEmpty ? [allowEmpty, allowEmpty] : [allowEmptyStartDate, allowEmptyEndDate],
7892
+ value: getDayjsRange([startDate, endDate]),
7893
+ defaultValue: getDayjsRange([defaultStartDate, defaultEndDate]),
7894
+ renderExtraFooter: renderExtraFooter ? () => renderExtraFooter : void 0,
7895
+ className,
7896
+ inputReadOnly: true,
7897
+ disabled: disabled ? disabled : [disableStartDate, disableEndDate],
7898
+ placeholder: placeholder == null ? void 0 : placeholder.split(/,\s*/).slice(0, 2),
7899
+ popupClassName: popupScopeClassName,
7900
+ onChange: (values, _dateStrings) => {
7901
+ onChange == null ? void 0 : onChange(getStrRange(values) || [null, null]);
7902
+ }
7903
+ })
7904
+ ), /* @__PURE__ */ React__default.default.createElement("style", { dangerouslySetInnerHTML: { __html: css } }));
7905
+ }
7906
+ const dateRangePickerComponentName = "plasmic-antd5-date-range-picker";
7907
+ const dateRangePickerHelpers = {
7908
+ states: {
7909
+ startDate: {
7910
+ onChangeArgsToValue: (value) => value[0]
7911
+ },
7912
+ endDate: {
7913
+ onChangeArgsToValue: (value) => value[1]
7914
+ }
7915
+ }
7916
+ };
7917
+ function registerDateRangePicker(loader) {
7918
+ registerComponentHelper(loader, AntdDateRangePicker, {
7919
+ name: dateRangePickerComponentName,
7920
+ displayName: "Date Range Picker",
7921
+ props: {
7922
+ startDate: {
7923
+ type: "dateString",
7924
+ editOnly: true,
7925
+ uncontrolledProp: "defaultStartDate",
7926
+ description: "The default start date as ISO strings",
7927
+ // TODO: Can there be a default validator attached to each prop type, so dynamic values can be checked?
7928
+ hidden: (ps) => !!ps.__plasmicFormField
7929
+ },
7930
+ endDate: {
7931
+ type: "dateString",
7932
+ editOnly: true,
7933
+ uncontrolledProp: "defaultEndDate",
7934
+ description: "The default end date as ISO strings",
7935
+ // TODO: Can there be a default validator attached to each prop type, so dynamic values can be checked?
7936
+ hidden: (ps) => !!ps.__plasmicFormField
7937
+ },
7938
+ allowClear: {
7939
+ type: "boolean",
7940
+ advanced: true,
7941
+ defaultValueHint: true,
7942
+ description: "Whether to show the clear button"
7943
+ },
7944
+ autoFocus: {
7945
+ type: "boolean",
7946
+ description: "Focus when component is rendered",
7947
+ defaultValueHint: false,
7948
+ advanced: true
7949
+ },
7950
+ bordered: {
7951
+ type: "boolean",
7952
+ advanced: true,
7953
+ defaultValueHint: true
7954
+ },
7955
+ changeOnBlur: {
7956
+ type: "boolean",
7957
+ advanced: true,
7958
+ description: "Trigger change when blur. e.g. datetime picker no need click confirm button",
7959
+ defaultValueHint: false,
7960
+ hidden: (ps) => !ps.showTime
7961
+ },
7962
+ disabled: {
7963
+ type: "boolean",
7964
+ description: "Disable date range inputs",
7965
+ defaultValueHint: false
7966
+ },
7967
+ disableStartDate: {
7968
+ type: "boolean",
7969
+ defaultValueHint: false,
7970
+ advanced: true,
7971
+ description: "Disable start date input only",
7972
+ hidden: (ps) => ps.disabled
7973
+ },
7974
+ disableEndDate: {
7975
+ type: "boolean",
7976
+ defaultValueHint: false,
7977
+ advanced: true,
7978
+ description: "Disable end date input only",
7979
+ hidden: (ps) => ps.disabled
7980
+ },
7981
+ picker: {
7982
+ type: "choice",
7983
+ options: ["date", "week", "month", "quarter", "year"].map((value) => ({
7984
+ value,
7985
+ label: capitalize(value)
7986
+ })),
7987
+ defaultValueHint: "date"
7988
+ },
7989
+ placeholder: {
7990
+ type: "string",
7991
+ advanced: true,
7992
+ defaultValueHint: "Start date, End date",
7993
+ description: "The placeholders of the start and end date inputs, separated by a comma"
7994
+ },
7995
+ placement: {
7996
+ type: "choice",
7997
+ options: ["bottomLeft", "bottomRight", "topLeft", "topRight"].map(
7998
+ (value) => ({
7999
+ value,
8000
+ label: kebabCase__default.default(value)
8001
+ })
8002
+ ),
8003
+ advanced: true,
8004
+ defaultValueHint: "bottom-left",
8005
+ description: "The position where the selection box pops up"
8006
+ },
8007
+ presets: {
8008
+ type: "array",
8009
+ advanced: true,
8010
+ description: "The preset ranges for quick selection",
8011
+ itemType: {
8012
+ type: "object",
8013
+ nameFunc: (item) => item.label,
8014
+ fields: {
8015
+ label: "string",
8016
+ startDate: {
8017
+ type: "dateString"
8018
+ },
8019
+ endDate: {
8020
+ type: "dateString"
8021
+ }
8022
+ }
8023
+ }
8024
+ },
8025
+ size: {
8026
+ type: "choice",
8027
+ advanced: true,
8028
+ options: ["small", "middle", "large"].map((value) => ({
8029
+ value,
8030
+ label: capitalize(value)
8031
+ })),
8032
+ defaultValueHint: "middle"
8033
+ },
8034
+ status: {
8035
+ type: "choice",
8036
+ advanced: true,
8037
+ options: ["error", "warning"].map((value) => ({
8038
+ value,
8039
+ label: capitalize(value)
8040
+ })),
8041
+ description: "Set validation status"
8042
+ },
8043
+ allowEmpty: {
8044
+ type: "boolean",
8045
+ advanced: true,
8046
+ description: "Allow leaving start or end input empty",
8047
+ defaultValueHint: false
8048
+ },
8049
+ allowEmptyStartDate: {
8050
+ type: "boolean",
8051
+ advanced: true,
8052
+ description: "Allow leaving start input empty",
8053
+ defaultValueHint: false,
8054
+ hidden: (ps) => ps.allowEmpty
8055
+ },
8056
+ allowEmptyEndDate: {
8057
+ type: "boolean",
8058
+ advanced: true,
8059
+ description: "Allow leaving end input empty",
8060
+ defaultValueHint: false,
8061
+ hidden: (ps) => ps.allowEmpty
8062
+ },
8063
+ renderExtraFooter: {
8064
+ type: "slot",
8065
+ displayName: "Extra footer",
8066
+ hidePlaceholder: true
8067
+ },
8068
+ showTime: {
8069
+ type: "boolean",
8070
+ description: "Enable time selection",
8071
+ defaultValueHint: false,
8072
+ hidden: (ps) => ps.picker !== void 0 && ps.picker !== "date"
8073
+ },
8074
+ popupScopeClassName: {
8075
+ type: "styleScopeClass",
8076
+ scopeName: "dateRangePickerPopup"
8077
+ },
8078
+ popupClassName: {
8079
+ type: "class",
8080
+ displayName: "Popup container",
8081
+ selectors: [
8082
+ {
8083
+ selector: ":dateRangePickerPopup .ant-picker-panel-container",
8084
+ label: "Base"
8085
+ }
8086
+ ]
8087
+ },
8088
+ popupHeaderClassName: {
8089
+ type: "class",
8090
+ displayName: "Popup header",
8091
+ selectors: [
8092
+ {
8093
+ selector: ":dateRangePickerPopup .ant-picker-header",
8094
+ label: "Base"
8095
+ }
8096
+ ]
8097
+ },
8098
+ popupBodyClassName: {
8099
+ type: "class",
8100
+ displayName: "Popup body",
8101
+ selectors: [
8102
+ {
8103
+ selector: ":dateRangePickerPopup .ant-picker-body",
8104
+ label: "Base"
8105
+ }
8106
+ ]
8107
+ },
8108
+ popupFooterClassName: {
8109
+ type: "class",
8110
+ displayName: "Popup footer",
8111
+ selectors: [
8112
+ {
8113
+ selector: ":dateRangePickerPopup .ant-picker-footer",
8114
+ label: "Base"
8115
+ }
8116
+ ]
8117
+ },
8118
+ onChange: {
8119
+ type: "eventHandler",
8120
+ advanced: true,
8121
+ argTypes: [{ name: "value", type: "object" }]
8122
+ }
8123
+ },
8124
+ states: {
8125
+ startDate: __spreadValues({
8126
+ type: "writable",
8127
+ valueProp: "startDate",
8128
+ onChangeProp: "onChange",
8129
+ variableType: "text"
8130
+ }, dateRangePickerHelpers.states.startDate),
8131
+ endDate: __spreadValues({
8132
+ type: "writable",
8133
+ valueProp: "endDate",
8134
+ onChangeProp: "onChange",
8135
+ variableType: "text"
8136
+ }, dateRangePickerHelpers.states.endDate)
8137
+ },
8138
+ componentHelpers: {
8139
+ helpers: dateRangePickerHelpers,
8140
+ importName: "dateRangePickerHelpers",
8141
+ importPath: "@plasmicpkgs/antd5/skinny/registerDateRangePicker"
8142
+ },
8143
+ importPath: "@plasmicpkgs/antd5/skinny/registerDateRangePicker",
8144
+ importName: "AntdDateRangePicker"
8145
+ });
8146
+ }
8147
+
7740
8148
  function registerAll(loader) {
7741
8149
  registerConfigProvider(loader);
7742
8150
  registerTokens(loader);
@@ -7758,6 +8166,7 @@ function registerAll(loader) {
7758
8166
  registerTextArea(loader);
7759
8167
  registerNumberInput(loader);
7760
8168
  registerDatePicker(loader);
8169
+ registerDateRangePicker(loader);
7761
8170
  registerUpload(loader);
7762
8171
  registerColorPicker(loader);
7763
8172
  registerDrawer(loader);