@superblocksteam/library 2.0.7 → 2.0.8-next.1
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/{allPaths-d63_pjlB.js → allPaths-Cm5ix1Jo.js} +2 -2
- package/dist/{allPaths-d63_pjlB.js.map → allPaths-Cm5ix1Jo.js.map} +1 -1
- package/dist/{allPaths-Boby_CDT.js → allPaths-D8-nUDU0.js} +2 -2
- package/dist/{allPaths-Boby_CDT.js.map → allPaths-D8-nUDU0.js.map} +1 -1
- package/dist/{allPathsLoader-CmUnKzK9.js → allPathsLoader-CjyQe-yl.js} +3 -3
- package/dist/{allPathsLoader-CmUnKzK9.js.map → allPathsLoader-CjyQe-yl.js.map} +1 -1
- package/dist/{allPathsLoader-DyTMsYjm.js → allPathsLoader-btoKYE5V.js} +3 -3
- package/dist/{allPathsLoader-DyTMsYjm.js.map → allPathsLoader-btoKYE5V.js.map} +1 -1
- package/dist/{devtools-consolidated-B3U5EpYG.js → devtools-consolidated-DEIGUjCl.js} +2 -2
- package/dist/{devtools-consolidated-B3U5EpYG.js.map → devtools-consolidated-DEIGUjCl.js.map} +1 -1
- package/dist/{index-NrZGBHks.js → index-BG-l_gfQ.js} +607 -561
- package/dist/{index-NrZGBHks.js.map → index-BG-l_gfQ.js.map} +1 -1
- package/dist/index.js +38 -38
- package/dist/{splitPathsBySizeLoader-B6CeEPjz.js → splitPathsBySizeLoader-D4Fa2Noh.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B6CeEPjz.js.map → splitPathsBySizeLoader-D4Fa2Noh.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-mTPqVWRR.js → splitPathsBySizeLoader-DWVXFLzy.js} +2 -2
- package/dist/{splitPathsBySizeLoader-mTPqVWRR.js.map → splitPathsBySizeLoader-DWVXFLzy.js.map} +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +1 -1
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +2 -2
- package/dist-types/edit-mode/interaction-layer.d.ts +1 -1
- package/dist-types/internal-testing/components/image.d.ts +1 -1
- package/dist-types/lib/index.d.ts +20 -20
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +3 -2
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +2 -2
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +2 -2
- package/dist-types/lib/internal-details/scope/scope.d.ts +2 -2
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +3 -3
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +8 -5
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +8 -3
- package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -2
- package/dist-types/lib/user-facing/components/button/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/button/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/container/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/custom/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +3 -3
- package/dist-types/lib/user-facing/components/icon/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +5 -5
- package/dist-types/lib/user-facing/components/input/props.d.ts +4 -4
- package/dist-types/lib/user-facing/components/modal/index.d.ts +3 -3
- package/dist-types/lib/user-facing/components/modal/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/page/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/page/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/page/register-page.d.ts +2 -2
- package/dist-types/lib/user-facing/components/section/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +3 -3
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/switch/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +7 -7
- package/dist-types/lib/user-facing/components/table/props.d.ts +6 -6
- package/dist-types/lib/user-facing/components/text/index.d.ts +1 -1
- package/dist-types/lib/user-facing/entities/api/index.d.ts +5 -5
- package/dist-types/lib/user-facing/entities/api/props.d.ts +2 -2
- package/dist-types/lib/user-facing/entities/timer/index.d.ts +3 -3
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +1 -1
- package/dist-types/lib/user-facing/{sb-event-flow.d.ts → event-flow.d.ts} +37 -28
- package/dist-types/lib/user-facing/internal-index.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +4 -4
- package/dist-types/lib/user-facing/state/computed.d.ts +2 -0
- package/dist-types/lib/user-facing/state/create-scope.d.ts +4 -4
- package/dist-types/lib/user-facing/state/types.d.ts +1 -1
- package/package.json +2 -2
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +0 -2
|
@@ -1887,7 +1887,7 @@ function createAutoAnnotation(options) {
|
|
|
1887
1887
|
function make_$5(adm, key2, descriptor, source2) {
|
|
1888
1888
|
var _this$options_3, _this$options_4;
|
|
1889
1889
|
if (descriptor.get) {
|
|
1890
|
-
return computed.make_(adm, key2, descriptor, source2);
|
|
1890
|
+
return computed$1.make_(adm, key2, descriptor, source2);
|
|
1891
1891
|
}
|
|
1892
1892
|
if (descriptor.set) {
|
|
1893
1893
|
var set5 = createAction(key2.toString(), descriptor.set);
|
|
@@ -1923,7 +1923,7 @@ function make_$5(adm, key2, descriptor, source2) {
|
|
|
1923
1923
|
function extend_$5(adm, key2, descriptor, proxyTrap) {
|
|
1924
1924
|
var _this$options_5, _this$options_6;
|
|
1925
1925
|
if (descriptor.get) {
|
|
1926
|
-
return computed.extend_(adm, key2, descriptor, proxyTrap);
|
|
1926
|
+
return computed$1.extend_(adm, key2, descriptor, proxyTrap);
|
|
1927
1927
|
}
|
|
1928
1928
|
if (descriptor.set) {
|
|
1929
1929
|
return adm.defineProperty_(key2, {
|
|
@@ -2040,7 +2040,7 @@ var computedAnnotation = /* @__PURE__ */ createComputedAnnotation(COMPUTED);
|
|
|
2040
2040
|
var computedStructAnnotation = /* @__PURE__ */ createComputedAnnotation(COMPUTED_STRUCT, {
|
|
2041
2041
|
equals: comparer.structural
|
|
2042
2042
|
});
|
|
2043
|
-
var computed = function computed2(arg1, arg2) {
|
|
2043
|
+
var computed$1 = function computed2(arg1, arg2) {
|
|
2044
2044
|
if (is20223Decorator(arg2)) {
|
|
2045
2045
|
return computedAnnotation.decorate_20223_(arg1, arg2);
|
|
2046
2046
|
}
|
|
@@ -2063,8 +2063,8 @@ var computed = function computed2(arg1, arg2) {
|
|
|
2063
2063
|
opts.name || (opts.name = arg1.name || "");
|
|
2064
2064
|
return new ComputedValue(opts);
|
|
2065
2065
|
};
|
|
2066
|
-
Object.assign(computed, computedAnnotation);
|
|
2067
|
-
computed.struct = /* @__PURE__ */ createDecoratorAnnotation(computedStructAnnotation);
|
|
2066
|
+
Object.assign(computed$1, computedAnnotation);
|
|
2067
|
+
computed$1.struct = /* @__PURE__ */ createDecoratorAnnotation(computedStructAnnotation);
|
|
2068
2068
|
var _getDescriptor$config, _getDescriptor;
|
|
2069
2069
|
var currentActionId = 0;
|
|
2070
2070
|
var nextActionId = 1;
|
|
@@ -43505,17 +43505,26 @@ const isNameEqual = (a3, b3) => {
|
|
|
43505
43505
|
const ResetComponentTrigger = {
|
|
43506
43506
|
type: TriggerStepType.RESET_COMPONENT,
|
|
43507
43507
|
async execute(context2, step) {
|
|
43508
|
+
var _a2, _b2;
|
|
43509
|
+
if (!((_a2 = step.widget) == null ? void 0 : _a2.name)) {
|
|
43510
|
+
return;
|
|
43511
|
+
}
|
|
43508
43512
|
context2.rootStore.entityManager.resetEntity({
|
|
43509
|
-
name: getName(step.widget.name),
|
|
43510
|
-
scopeId: context2.scopeId
|
|
43513
|
+
name: getName((_b2 = step.widget) == null ? void 0 : _b2.name),
|
|
43514
|
+
scopeId: context2.scopeId,
|
|
43515
|
+
key: step.propertyName,
|
|
43516
|
+
onlyMetaProps: true
|
|
43511
43517
|
});
|
|
43512
43518
|
},
|
|
43513
|
-
create(
|
|
43519
|
+
create(component, opts) {
|
|
43520
|
+
const meta = getBindingIdentifier(component);
|
|
43514
43521
|
return {
|
|
43515
43522
|
type: TriggerStepType.RESET_COMPONENT,
|
|
43516
|
-
widget
|
|
43517
|
-
|
|
43518
|
-
|
|
43523
|
+
widget: meta ? {
|
|
43524
|
+
name: meta.entityName
|
|
43525
|
+
} : void 0,
|
|
43526
|
+
propertyName: opts == null ? void 0 : opts.property
|
|
43527
|
+
// resetChildren,
|
|
43519
43528
|
};
|
|
43520
43529
|
}
|
|
43521
43530
|
};
|
|
@@ -43540,12 +43549,15 @@ const SetComponentPropertyTrigger = {
|
|
|
43540
43549
|
args: [value, step]
|
|
43541
43550
|
});
|
|
43542
43551
|
},
|
|
43543
|
-
create(
|
|
43552
|
+
create(component, opts) {
|
|
43553
|
+
const meta = getBindingIdentifier(component);
|
|
43544
43554
|
return {
|
|
43545
43555
|
type: TriggerStepType.SET_COMPONENT_PROPERTY,
|
|
43546
|
-
widget
|
|
43547
|
-
|
|
43548
|
-
|
|
43556
|
+
widget: meta ? {
|
|
43557
|
+
name: meta.entityName
|
|
43558
|
+
} : void 0,
|
|
43559
|
+
propertyName: opts.property,
|
|
43560
|
+
propertyValue: opts.value
|
|
43549
43561
|
};
|
|
43550
43562
|
}
|
|
43551
43563
|
};
|
|
@@ -46410,7 +46422,7 @@ function getTwoToneColor() {
|
|
|
46410
46422
|
}
|
|
46411
46423
|
var _excluded$u = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
46412
46424
|
setTwoToneColor(blue$1.primary);
|
|
46413
|
-
var Icon$
|
|
46425
|
+
var Icon$4 = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
46414
46426
|
var className = props2.className, icon = props2.icon, spin2 = props2.spin, rotate = props2.rotate, tabIndex = props2.tabIndex, onClick = props2.onClick, twoToneColor = props2.twoToneColor, restProps = _objectWithoutProperties(props2, _excluded$u);
|
|
46415
46427
|
var _React$useContext = React.useContext(IconContext), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
|
|
46416
46428
|
var classString = classNames(rootClassName, prefixCls, _defineProperty$3(_defineProperty$3({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin2 || icon.name === "loading"), className);
|
|
@@ -46438,12 +46450,12 @@ var Icon$3 = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
|
46438
46450
|
style: svgStyle
|
|
46439
46451
|
}));
|
|
46440
46452
|
});
|
|
46441
|
-
Icon$
|
|
46442
|
-
Icon$
|
|
46443
|
-
Icon$
|
|
46453
|
+
Icon$4.displayName = "AntdIcon";
|
|
46454
|
+
Icon$4.getTwoToneColor = getTwoToneColor;
|
|
46455
|
+
Icon$4.setTwoToneColor = setTwoToneColor;
|
|
46444
46456
|
var define_process_env_default$1t = {};
|
|
46445
46457
|
var CheckCircleFilled$3 = function CheckCircleFilled2(props2, ref2) {
|
|
46446
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
46458
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
46447
46459
|
ref: ref2,
|
|
46448
46460
|
icon: CheckCircleFilled$4
|
|
46449
46461
|
}));
|
|
@@ -46455,7 +46467,7 @@ if (define_process_env_default$1t.NODE_ENV !== "production") {
|
|
|
46455
46467
|
var CloseCircleFilled$4 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
46456
46468
|
var define_process_env_default$1s = {};
|
|
46457
46469
|
var CloseCircleFilled$3 = function CloseCircleFilled2(props2, ref2) {
|
|
46458
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
46470
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
46459
46471
|
ref: ref2,
|
|
46460
46472
|
icon: CloseCircleFilled$4
|
|
46461
46473
|
}));
|
|
@@ -46467,7 +46479,7 @@ if (define_process_env_default$1s.NODE_ENV !== "production") {
|
|
|
46467
46479
|
var ExclamationCircleFilled$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
46468
46480
|
var define_process_env_default$1r = {};
|
|
46469
46481
|
var ExclamationCircleFilled$3 = function ExclamationCircleFilled2(props2, ref2) {
|
|
46470
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
46482
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
46471
46483
|
ref: ref2,
|
|
46472
46484
|
icon: ExclamationCircleFilled$4
|
|
46473
46485
|
}));
|
|
@@ -46479,7 +46491,7 @@ if (define_process_env_default$1r.NODE_ENV !== "production") {
|
|
|
46479
46491
|
var InfoCircleFilled$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
|
|
46480
46492
|
var define_process_env_default$1q = {};
|
|
46481
46493
|
var InfoCircleFilled$3 = function InfoCircleFilled2(props2, ref2) {
|
|
46482
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
46494
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
46483
46495
|
ref: ref2,
|
|
46484
46496
|
icon: InfoCircleFilled$4
|
|
46485
46497
|
}));
|
|
@@ -46491,7 +46503,7 @@ if (define_process_env_default$1q.NODE_ENV !== "production") {
|
|
|
46491
46503
|
var LoadingOutlined$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
46492
46504
|
var define_process_env_default$1p = {};
|
|
46493
46505
|
var LoadingOutlined$3 = function LoadingOutlined2(props2, ref2) {
|
|
46494
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
46506
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
46495
46507
|
ref: ref2,
|
|
46496
46508
|
icon: LoadingOutlined$4
|
|
46497
46509
|
}));
|
|
@@ -48253,7 +48265,7 @@ api$1.useMessage = createUseMessage(getRCNotificationInstance, getRCNoticeProps$
|
|
|
48253
48265
|
var CheckCircleOutlined$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
|
|
48254
48266
|
var define_process_env_default$1k = {};
|
|
48255
48267
|
var CheckCircleOutlined$3 = function CheckCircleOutlined2(props2, ref2) {
|
|
48256
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
48268
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
48257
48269
|
ref: ref2,
|
|
48258
48270
|
icon: CheckCircleOutlined$4
|
|
48259
48271
|
}));
|
|
@@ -48265,7 +48277,7 @@ if (define_process_env_default$1k.NODE_ENV !== "production") {
|
|
|
48265
48277
|
var CloseCircleOutlined$4 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
|
48266
48278
|
var define_process_env_default$1j = {};
|
|
48267
48279
|
var CloseCircleOutlined$3 = function CloseCircleOutlined2(props2, ref2) {
|
|
48268
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
48280
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
48269
48281
|
ref: ref2,
|
|
48270
48282
|
icon: CloseCircleOutlined$4
|
|
48271
48283
|
}));
|
|
@@ -48277,7 +48289,7 @@ if (define_process_env_default$1j.NODE_ENV !== "production") {
|
|
|
48277
48289
|
var CloseOutlined$4 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
|
|
48278
48290
|
var define_process_env_default$1i = {};
|
|
48279
48291
|
var CloseOutlined$3 = function CloseOutlined2(props2, ref2) {
|
|
48280
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
48292
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
48281
48293
|
ref: ref2,
|
|
48282
48294
|
icon: CloseOutlined$4
|
|
48283
48295
|
}));
|
|
@@ -48289,7 +48301,7 @@ if (define_process_env_default$1i.NODE_ENV !== "production") {
|
|
|
48289
48301
|
var ExclamationCircleOutlined$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
|
48290
48302
|
var define_process_env_default$1h = {};
|
|
48291
48303
|
var ExclamationCircleOutlined$3 = function ExclamationCircleOutlined2(props2, ref2) {
|
|
48292
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
48304
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
48293
48305
|
ref: ref2,
|
|
48294
48306
|
icon: ExclamationCircleOutlined$4
|
|
48295
48307
|
}));
|
|
@@ -48301,7 +48313,7 @@ if (define_process_env_default$1h.NODE_ENV !== "production") {
|
|
|
48301
48313
|
var InfoCircleOutlined$4 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, "name": "info-circle", "theme": "outlined" };
|
|
48302
48314
|
var define_process_env_default$1g = {};
|
|
48303
48315
|
var InfoCircleOutlined$3 = function InfoCircleOutlined2(props2, ref2) {
|
|
48304
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
48316
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
48305
48317
|
ref: ref2,
|
|
48306
48318
|
icon: InfoCircleOutlined$4
|
|
48307
48319
|
}));
|
|
@@ -50919,7 +50931,7 @@ var TransBtn = function TransBtn2(_ref2) {
|
|
|
50919
50931
|
}))
|
|
50920
50932
|
}, children));
|
|
50921
50933
|
};
|
|
50922
|
-
var Input$
|
|
50934
|
+
var Input$4 = function Input(_ref2, ref2) {
|
|
50923
50935
|
var _inputNode2, _inputNode2$props;
|
|
50924
50936
|
var prefixCls = _ref2.prefixCls, id2 = _ref2.id, inputElement = _ref2.inputElement, disabled = _ref2.disabled, tabIndex = _ref2.tabIndex, autoFocus = _ref2.autoFocus, autoComplete = _ref2.autoComplete, editable = _ref2.editable, activeDescendantId = _ref2.activeDescendantId, value = _ref2.value, maxLength = _ref2.maxLength, _onKeyDown = _ref2.onKeyDown, _onMouseDown = _ref2.onMouseDown, _onChange = _ref2.onChange, onPaste = _ref2.onPaste, _onCompositionStart = _ref2.onCompositionStart, _onCompositionEnd = _ref2.onCompositionEnd, open = _ref2.open, attrs = _ref2.attrs;
|
|
50925
50937
|
var inputNode = inputElement || /* @__PURE__ */ React.createElement("input", null);
|
|
@@ -50986,7 +50998,7 @@ var Input$3 = function Input(_ref2, ref2) {
|
|
|
50986
50998
|
}));
|
|
50987
50999
|
return inputNode;
|
|
50988
51000
|
};
|
|
50989
|
-
var RefInput = /* @__PURE__ */ React.forwardRef(Input$
|
|
51001
|
+
var RefInput = /* @__PURE__ */ React.forwardRef(Input$4);
|
|
50990
51002
|
RefInput.displayName = "Input";
|
|
50991
51003
|
var define_process_env_default$1e = {};
|
|
50992
51004
|
function toArray$8(value) {
|
|
@@ -59486,7 +59498,7 @@ var getMergedStatus = function getMergedStatus2(contextStatus, customStatus) {
|
|
|
59486
59498
|
var CheckOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
|
59487
59499
|
var define_process_env_default$13 = {};
|
|
59488
59500
|
var CheckOutlined = function CheckOutlined2(props2, ref2) {
|
|
59489
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
59501
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
59490
59502
|
ref: ref2,
|
|
59491
59503
|
icon: CheckOutlined$1
|
|
59492
59504
|
}));
|
|
@@ -59498,7 +59510,7 @@ if (define_process_env_default$13.NODE_ENV !== "production") {
|
|
|
59498
59510
|
var DownOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
|
59499
59511
|
var define_process_env_default$12 = {};
|
|
59500
59512
|
var DownOutlined = function DownOutlined2(props2, ref2) {
|
|
59501
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
59513
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
59502
59514
|
ref: ref2,
|
|
59503
59515
|
icon: DownOutlined$1
|
|
59504
59516
|
}));
|
|
@@ -59510,7 +59522,7 @@ if (define_process_env_default$12.NODE_ENV !== "production") {
|
|
|
59510
59522
|
var SearchOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
|
59511
59523
|
var define_process_env_default$11 = {};
|
|
59512
59524
|
var SearchOutlined = function SearchOutlined2(props2, ref2) {
|
|
59513
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
59525
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
59514
59526
|
ref: ref2,
|
|
59515
59527
|
icon: SearchOutlined$1
|
|
59516
59528
|
}));
|
|
@@ -60493,7 +60505,7 @@ Badge.Ribbon = Ribbon;
|
|
|
60493
60505
|
var EllipsisOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "ellipsis", "theme": "outlined" };
|
|
60494
60506
|
var define_process_env_default$Z = {};
|
|
60495
60507
|
var EllipsisOutlined = function EllipsisOutlined2(props2, ref2) {
|
|
60496
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
60508
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
60497
60509
|
ref: ref2,
|
|
60498
60510
|
icon: EllipsisOutlined$1
|
|
60499
60511
|
}));
|
|
@@ -60941,7 +60953,7 @@ function useDirectionStyle(level) {
|
|
|
60941
60953
|
paddingLeft: len * inlineIndent
|
|
60942
60954
|
};
|
|
60943
60955
|
}
|
|
60944
|
-
function Icon$
|
|
60956
|
+
function Icon$3(_ref2) {
|
|
60945
60957
|
var icon = _ref2.icon, props2 = _ref2.props, children = _ref2.children;
|
|
60946
60958
|
var iconNode;
|
|
60947
60959
|
if (typeof icon === "function") {
|
|
@@ -61052,7 +61064,7 @@ var InternalMenuItem = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
|
61052
61064
|
onClick: onInternalClick,
|
|
61053
61065
|
onKeyDown: onInternalKeyDown,
|
|
61054
61066
|
onFocus: onInternalFocus
|
|
61055
|
-
}), children, /* @__PURE__ */ React.createElement(Icon$
|
|
61067
|
+
}), children, /* @__PURE__ */ React.createElement(Icon$3, {
|
|
61056
61068
|
props: _objectSpread2$1(_objectSpread2$1({}, props2), {}, {
|
|
61057
61069
|
isSelected: selected
|
|
61058
61070
|
}),
|
|
@@ -61408,7 +61420,7 @@ var InternalSubMenu = function InternalSubMenu2(props2) {
|
|
|
61408
61420
|
"aria-disabled": mergedDisabled,
|
|
61409
61421
|
onClick: onInternalTitleClick,
|
|
61410
61422
|
onFocus: onInternalFocus
|
|
61411
|
-
}, activeProps), title, /* @__PURE__ */ React.createElement(Icon$
|
|
61423
|
+
}, activeProps), title, /* @__PURE__ */ React.createElement(Icon$3, {
|
|
61412
61424
|
icon: mode !== "horizontal" ? mergedExpandIcon : null,
|
|
61413
61425
|
props: _objectSpread2$1(_objectSpread2$1({}, props2), {}, {
|
|
61414
61426
|
isOpen: open,
|
|
@@ -61824,7 +61836,7 @@ ExportMenu.Divider = Divider$1;
|
|
|
61824
61836
|
var BarsOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "bars", "theme": "outlined" };
|
|
61825
61837
|
var define_process_env_default$S = {};
|
|
61826
61838
|
var BarsOutlined = function BarsOutlined2(props2, ref2) {
|
|
61827
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
61839
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
61828
61840
|
ref: ref2,
|
|
61829
61841
|
icon: BarsOutlined$1
|
|
61830
61842
|
}));
|
|
@@ -61836,7 +61848,7 @@ if (define_process_env_default$S.NODE_ENV !== "production") {
|
|
|
61836
61848
|
var LeftOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
|
61837
61849
|
var define_process_env_default$R = {};
|
|
61838
61850
|
var LeftOutlined = function LeftOutlined2(props2, ref2) {
|
|
61839
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
61851
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
61840
61852
|
ref: ref2,
|
|
61841
61853
|
icon: LeftOutlined$1
|
|
61842
61854
|
}));
|
|
@@ -61848,7 +61860,7 @@ if (define_process_env_default$R.NODE_ENV !== "production") {
|
|
|
61848
61860
|
var RightOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
|
61849
61861
|
var define_process_env_default$Q = {};
|
|
61850
61862
|
var RightOutlined = function RightOutlined2(props2, ref2) {
|
|
61851
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
61863
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
61852
61864
|
ref: ref2,
|
|
61853
61865
|
icon: RightOutlined$1
|
|
61854
61866
|
}));
|
|
@@ -62523,7 +62535,7 @@ function useAccessibility(_ref2) {
|
|
|
62523
62535
|
}, [visible2]);
|
|
62524
62536
|
}
|
|
62525
62537
|
var _excluded$5 = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus"];
|
|
62526
|
-
function Dropdown$
|
|
62538
|
+
function Dropdown$3(props2, ref2) {
|
|
62527
62539
|
var _props$arrow = props2.arrow, arrow2 = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props2.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName2 = props2.transitionName, animation = props2.animation, align = props2.align, _props$placement = props2.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props2.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props2.getPopupContainer, showAction = props2.showAction, hideAction = props2.hideAction, overlayClassName = props2.overlayClassName, overlayStyle = props2.overlayStyle, visible2 = props2.visible, _props$trigger = props2.trigger, trigger2 = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props2.autoFocus, otherProps = _objectWithoutProperties(props2, _excluded$5);
|
|
62528
62540
|
var _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1];
|
|
62529
62541
|
var mergedVisible = "visible" in props2 ? visible2 : triggerVisible;
|
|
@@ -62623,7 +62635,7 @@ function Dropdown$2(props2, ref2) {
|
|
|
62623
62635
|
getPopupContainer
|
|
62624
62636
|
}), renderChildren());
|
|
62625
62637
|
}
|
|
62626
|
-
const Dropdown$
|
|
62638
|
+
const Dropdown$4 = /* @__PURE__ */ React.forwardRef(Dropdown$3);
|
|
62627
62639
|
var id$3 = 0;
|
|
62628
62640
|
var ids$1 = {};
|
|
62629
62641
|
function wrapperRaf(callback) {
|
|
@@ -63069,12 +63081,12 @@ var InternalButton = function InternalButton2(props2, ref2) {
|
|
|
63069
63081
|
disabled: !!innerLoading
|
|
63070
63082
|
}, buttonNode);
|
|
63071
63083
|
};
|
|
63072
|
-
var Button$
|
|
63084
|
+
var Button$6 = /* @__PURE__ */ React.forwardRef(InternalButton);
|
|
63073
63085
|
if (define_process_env_default$K.NODE_ENV !== "production") {
|
|
63074
|
-
Button$
|
|
63086
|
+
Button$6.displayName = "Button";
|
|
63075
63087
|
}
|
|
63076
|
-
Button$
|
|
63077
|
-
Button$
|
|
63088
|
+
Button$6.Group = ButtonGroup$1;
|
|
63089
|
+
Button$6.__ANT_BUTTON = true;
|
|
63078
63090
|
var canUseDocElement = function canUseDocElement2() {
|
|
63079
63091
|
return canUseDom$1() && window.document.documentElement;
|
|
63080
63092
|
};
|
|
@@ -63262,7 +63274,7 @@ var DropdownButton = function DropdownButton2(props2) {
|
|
|
63262
63274
|
} else {
|
|
63263
63275
|
dropdownProps.placement = direction === "rtl" ? "bottomLeft" : "bottomRight";
|
|
63264
63276
|
}
|
|
63265
|
-
var leftButton = /* @__PURE__ */ React.createElement(Button$
|
|
63277
|
+
var leftButton = /* @__PURE__ */ React.createElement(Button$6, {
|
|
63266
63278
|
type: type5,
|
|
63267
63279
|
danger,
|
|
63268
63280
|
disabled,
|
|
@@ -63272,7 +63284,7 @@ var DropdownButton = function DropdownButton2(props2) {
|
|
|
63272
63284
|
href: href2,
|
|
63273
63285
|
title
|
|
63274
63286
|
}, children);
|
|
63275
|
-
var rightButton = /* @__PURE__ */ React.createElement(Button$
|
|
63287
|
+
var rightButton = /* @__PURE__ */ React.createElement(Button$6, {
|
|
63276
63288
|
type: type5,
|
|
63277
63289
|
danger,
|
|
63278
63290
|
icon
|
|
@@ -63282,12 +63294,12 @@ var DropdownButton = function DropdownButton2(props2) {
|
|
|
63282
63294
|
className: classes,
|
|
63283
63295
|
size: compactSize,
|
|
63284
63296
|
block: true
|
|
63285
|
-
}, restProps), leftButtonToRender, /* @__PURE__ */ React.createElement(Dropdown$
|
|
63297
|
+
}, restProps), leftButtonToRender, /* @__PURE__ */ React.createElement(Dropdown$2, _extends$4({}, dropdownProps), rightButtonToRender));
|
|
63286
63298
|
};
|
|
63287
63299
|
DropdownButton.__ANT_BUTTON = true;
|
|
63288
63300
|
var define_process_env_default$J = {};
|
|
63289
63301
|
tuple$1("topLeft", "topCenter", "topRight", "bottomLeft", "bottomCenter", "bottomRight", "top", "bottom");
|
|
63290
|
-
var Dropdown$
|
|
63302
|
+
var Dropdown$2 = function Dropdown2(props2) {
|
|
63291
63303
|
var _React$useContext = React.useContext(ConfigContext), getContextPopupContainer = _React$useContext.getPopupContainer, getPrefixCls = _React$useContext.getPrefixCls, direction = _React$useContext.direction;
|
|
63292
63304
|
if (define_process_env_default$J.NODE_ENV !== "production") {
|
|
63293
63305
|
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach(function(_ref2) {
|
|
@@ -63377,7 +63389,7 @@ var Dropdown$1 = function Dropdown2(props2) {
|
|
|
63377
63389
|
}
|
|
63378
63390
|
}, /* @__PURE__ */ React.createElement(NoCompactStyle, null, overlayNode));
|
|
63379
63391
|
};
|
|
63380
|
-
return /* @__PURE__ */ React.createElement(Dropdown$
|
|
63392
|
+
return /* @__PURE__ */ React.createElement(Dropdown$4, _extends$4({
|
|
63381
63393
|
alignPoint: alignPoint2
|
|
63382
63394
|
}, props2, {
|
|
63383
63395
|
mouseEnterDelay,
|
|
@@ -63395,7 +63407,7 @@ var Dropdown$1 = function Dropdown2(props2) {
|
|
|
63395
63407
|
onVisibleChange: onInnerOpenChange
|
|
63396
63408
|
}), dropdownTrigger);
|
|
63397
63409
|
};
|
|
63398
|
-
Dropdown$
|
|
63410
|
+
Dropdown$2.Button = DropdownButton;
|
|
63399
63411
|
//! moment.js
|
|
63400
63412
|
//! version : 2.30.1
|
|
63401
63413
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -71188,7 +71200,7 @@ var SkeletonButton = function SkeletonButton2(props2) {
|
|
|
71188
71200
|
var DotChartOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "dot-chart", "theme": "outlined" };
|
|
71189
71201
|
var define_process_env_default$F = {};
|
|
71190
71202
|
var DotChartOutlined = function DotChartOutlined2(props2, ref2) {
|
|
71191
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
71203
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
71192
71204
|
ref: ref2,
|
|
71193
71205
|
icon: DotChartOutlined$1
|
|
71194
71206
|
}));
|
|
@@ -71933,7 +71945,7 @@ var Collapse = function Collapse2(props2) {
|
|
|
71933
71945
|
};
|
|
71934
71946
|
Collapse.Panel = CollapsePanel;
|
|
71935
71947
|
function PickerButton(props2) {
|
|
71936
|
-
return /* @__PURE__ */ React.createElement(Button$
|
|
71948
|
+
return /* @__PURE__ */ React.createElement(Button$6, _extends$4({
|
|
71937
71949
|
size: "small",
|
|
71938
71950
|
type: "primary"
|
|
71939
71951
|
}, props2));
|
|
@@ -72041,7 +72053,7 @@ function PickerTag(props2) {
|
|
|
72041
72053
|
var CalendarOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" } }] }, "name": "calendar", "theme": "outlined" };
|
|
72042
72054
|
var define_process_env_default$z = {};
|
|
72043
72055
|
var CalendarOutlined = function CalendarOutlined2(props2, ref2) {
|
|
72044
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
72056
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
72045
72057
|
ref: ref2,
|
|
72046
72058
|
icon: CalendarOutlined$1
|
|
72047
72059
|
}));
|
|
@@ -72053,7 +72065,7 @@ if (define_process_env_default$z.NODE_ENV !== "production") {
|
|
|
72053
72065
|
var ClockCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, "name": "clock-circle", "theme": "outlined" };
|
|
72054
72066
|
var define_process_env_default$y = {};
|
|
72055
72067
|
var ClockCircleOutlined = function ClockCircleOutlined2(props2, ref2) {
|
|
72056
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
72068
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
72057
72069
|
ref: ref2,
|
|
72058
72070
|
icon: ClockCircleOutlined$1
|
|
72059
72071
|
}));
|
|
@@ -72065,7 +72077,7 @@ if (define_process_env_default$y.NODE_ENV !== "production") {
|
|
|
72065
72077
|
var SwapRightOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" } }] }, "name": "swap-right", "theme": "outlined" };
|
|
72066
72078
|
var define_process_env_default$x = {};
|
|
72067
72079
|
var SwapRightOutlined = function SwapRightOutlined2(props2, ref2) {
|
|
72068
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
72080
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
72069
72081
|
ref: ref2,
|
|
72070
72082
|
icon: SwapRightOutlined$1
|
|
72071
72083
|
}));
|
|
@@ -72415,7 +72427,7 @@ function generatePicker(generateConfig2) {
|
|
|
72415
72427
|
MergedDatePicker.QuarterPicker = QuarterPicker;
|
|
72416
72428
|
return MergedDatePicker;
|
|
72417
72429
|
}
|
|
72418
|
-
var DatePicker = generatePicker(generateConfig);
|
|
72430
|
+
var DatePicker$1 = generatePicker(generateConfig);
|
|
72419
72431
|
var OrderContext = /* @__PURE__ */ React.createContext(null);
|
|
72420
72432
|
var define_process_env_default$u = {};
|
|
72421
72433
|
var EMPTY_LIST$1 = [];
|
|
@@ -72975,7 +72987,7 @@ function useItemRef() {
|
|
|
72975
72987
|
var QuestionCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, "name": "question-circle", "theme": "outlined" };
|
|
72976
72988
|
var define_process_env_default$r = {};
|
|
72977
72989
|
var QuestionCircleOutlined = function QuestionCircleOutlined2(props2, ref2) {
|
|
72978
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
72990
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
72979
72991
|
ref: ref2,
|
|
72980
72992
|
icon: QuestionCircleOutlined$1
|
|
72981
72993
|
}));
|
|
@@ -73448,7 +73460,7 @@ Form$1.create = function() {
|
|
|
73448
73460
|
var EyeOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
|
73449
73461
|
var define_process_env_default$n = {};
|
|
73450
73462
|
var EyeOutlined = function EyeOutlined2(props2, ref2) {
|
|
73451
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
73463
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
73452
73464
|
ref: ref2,
|
|
73453
73465
|
icon: EyeOutlined$1
|
|
73454
73466
|
}));
|
|
@@ -73971,7 +73983,7 @@ var BaseInput = function BaseInput2(props2) {
|
|
|
73971
73983
|
return element;
|
|
73972
73984
|
};
|
|
73973
73985
|
var _excluded$3 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"];
|
|
73974
|
-
var Input$
|
|
73986
|
+
var Input$3 = /* @__PURE__ */ forwardRef(function(props2, ref2) {
|
|
73975
73987
|
var autoComplete = props2.autoComplete, onChange2 = props2.onChange, onFocus = props2.onFocus, onBlur = props2.onBlur, onPressEnter = props2.onPressEnter, onKeyDown = props2.onKeyDown, _props$prefixCls = props2.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled = props2.disabled, htmlSize = props2.htmlSize, className = props2.className, maxLength = props2.maxLength, suffix = props2.suffix, showCount = props2.showCount, _props$type = props2.type, type5 = _props$type === void 0 ? "text" : _props$type, inputClassName = props2.inputClassName, rest = _objectWithoutProperties(props2, _excluded$3);
|
|
73976
73988
|
var _useMergedState = useMergedState(props2.defaultValue, {
|
|
73977
73989
|
value: props2.value
|
|
@@ -74192,7 +74204,7 @@ function triggerFocus(element, option) {
|
|
|
74192
74204
|
}
|
|
74193
74205
|
}
|
|
74194
74206
|
}
|
|
74195
|
-
var Input$
|
|
74207
|
+
var Input$2 = /* @__PURE__ */ forwardRef(function(props2, ref2) {
|
|
74196
74208
|
var customizePrefixCls = props2.prefixCls, _props$bordered = props2.bordered, bordered = _props$bordered === void 0 ? true : _props$bordered, customStatus = props2.status, customSize = props2.size, customDisabled = props2.disabled, onBlur = props2.onBlur, onFocus = props2.onFocus, suffix = props2.suffix, allowClear = props2.allowClear, addonAfter = props2.addonAfter, addonBefore = props2.addonBefore, className = props2.className, onChange2 = props2.onChange, rest = __rest$a(props2, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]);
|
|
74197
74209
|
var _React$useContext = React__default.useContext(ConfigContext), getPrefixCls = _React$useContext.getPrefixCls, direction = _React$useContext.direction, input = _React$useContext.input;
|
|
74198
74210
|
var prefixCls = getPrefixCls("input", customizePrefixCls);
|
|
@@ -74235,7 +74247,7 @@ var Input$1 = /* @__PURE__ */ forwardRef(function(props2, ref2) {
|
|
|
74235
74247
|
clearIcon: /* @__PURE__ */ React__default.createElement(RefIcon$n, null)
|
|
74236
74248
|
};
|
|
74237
74249
|
}
|
|
74238
|
-
return /* @__PURE__ */ React__default.createElement(Input$
|
|
74250
|
+
return /* @__PURE__ */ React__default.createElement(Input$3, _extends$4({
|
|
74239
74251
|
ref: composeRef(ref2, inputRef),
|
|
74240
74252
|
prefixCls,
|
|
74241
74253
|
autoComplete: input === null || input === void 0 ? void 0 : input.autoComplete
|
|
@@ -74264,7 +74276,7 @@ var Input$1 = /* @__PURE__ */ forwardRef(function(props2, ref2) {
|
|
|
74264
74276
|
var EyeInvisibleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
|
74265
74277
|
var define_process_env_default$j = {};
|
|
74266
74278
|
var EyeInvisibleOutlined = function EyeInvisibleOutlined2(props2, ref2) {
|
|
74267
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
74279
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
74268
74280
|
ref: ref2,
|
|
74269
74281
|
icon: EyeInvisibleOutlined$1
|
|
74270
74282
|
}));
|
|
@@ -74346,7 +74358,7 @@ var Password = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
|
74346
74358
|
if (size2) {
|
|
74347
74359
|
omittedProps.size = size2;
|
|
74348
74360
|
}
|
|
74349
|
-
return /* @__PURE__ */ React.createElement(Input$
|
|
74361
|
+
return /* @__PURE__ */ React.createElement(Input$2, _extends$4({
|
|
74350
74362
|
ref: composeRef(ref2, inputRef)
|
|
74351
74363
|
}, omittedProps));
|
|
74352
74364
|
};
|
|
@@ -74419,7 +74431,7 @@ var Search$1 = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
|
74419
74431
|
size: size2
|
|
74420
74432
|
} : {}));
|
|
74421
74433
|
} else {
|
|
74422
|
-
button2 = /* @__PURE__ */ React.createElement(Button$
|
|
74434
|
+
button2 = /* @__PURE__ */ React.createElement(Button$6, {
|
|
74423
74435
|
className: btnClassName,
|
|
74424
74436
|
type: enterButton ? "primary" : void 0,
|
|
74425
74437
|
size: size2,
|
|
@@ -74445,7 +74457,7 @@ var Search$1 = /* @__PURE__ */ React.forwardRef(function(props2, ref2) {
|
|
|
74445
74457
|
composedRef.current = false;
|
|
74446
74458
|
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e3);
|
|
74447
74459
|
};
|
|
74448
|
-
return /* @__PURE__ */ React.createElement(Input$
|
|
74460
|
+
return /* @__PURE__ */ React.createElement(Input$2, _extends$4({
|
|
74449
74461
|
ref: composeRef(inputRef, ref2),
|
|
74450
74462
|
onPressEnter
|
|
74451
74463
|
}, restProps, {
|
|
@@ -74950,15 +74962,15 @@ var TextArea = /* @__PURE__ */ React.forwardRef(function(_a2, ref2) {
|
|
|
74950
74962
|
}
|
|
74951
74963
|
return textareaNode;
|
|
74952
74964
|
});
|
|
74953
|
-
var
|
|
74954
|
-
|
|
74955
|
-
|
|
74956
|
-
|
|
74957
|
-
|
|
74965
|
+
var Input$1 = Input$2;
|
|
74966
|
+
Input$1.Group = Group;
|
|
74967
|
+
Input$1.Search = Search$1;
|
|
74968
|
+
Input$1.TextArea = TextArea;
|
|
74969
|
+
Input$1.Password = Password;
|
|
74958
74970
|
var UpOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
|
|
74959
74971
|
var define_process_env_default$f = {};
|
|
74960
74972
|
var UpOutlined = function UpOutlined2(props2, ref2) {
|
|
74961
|
-
return /* @__PURE__ */ React.createElement(Icon$
|
|
74973
|
+
return /* @__PURE__ */ React.createElement(Icon$4, _extends$4({}, props2, {
|
|
74962
74974
|
ref: ref2,
|
|
74963
74975
|
icon: UpOutlined$1
|
|
74964
74976
|
}));
|
|
@@ -76091,7 +76103,7 @@ var ActionButton = function ActionButton2(props2) {
|
|
|
76091
76103
|
handlePromiseOnOk(returnValueOfOnOk);
|
|
76092
76104
|
};
|
|
76093
76105
|
var type5 = props2.type, children = props2.children, prefixCls = props2.prefixCls, buttonProps = props2.buttonProps;
|
|
76094
|
-
return /* @__PURE__ */ React.createElement(Button$
|
|
76106
|
+
return /* @__PURE__ */ React.createElement(Button$6, _extends$4({}, convertLegacyProps(type5), {
|
|
76095
76107
|
onClick,
|
|
76096
76108
|
loading: loading2,
|
|
76097
76109
|
prefixCls
|
|
@@ -76121,7 +76133,7 @@ var getClickPosition = function getClickPosition2(e3) {
|
|
|
76121
76133
|
if (canUseDocElement()) {
|
|
76122
76134
|
document.documentElement.addEventListener("click", getClickPosition, true);
|
|
76123
76135
|
}
|
|
76124
|
-
var Modal$
|
|
76136
|
+
var Modal$2 = function Modal2(props2) {
|
|
76125
76137
|
var _a2;
|
|
76126
76138
|
var _React$useContext = React.useContext(ConfigContext), getContextPopupContainer = _React$useContext.getPopupContainer, getPrefixCls = _React$useContext.getPrefixCls, direction = _React$useContext.direction;
|
|
76127
76139
|
var handleCancel = function handleCancel2(e3) {
|
|
@@ -76141,9 +76153,9 @@ var Modal$1 = function Modal2(props2) {
|
|
|
76141
76153
|
defaultLocale: getConfirmLocale()
|
|
76142
76154
|
}, function(contextLocale) {
|
|
76143
76155
|
var okText = props2.okText, _props$okType = props2.okType, okType = _props$okType === void 0 ? "primary" : _props$okType, cancelText = props2.cancelText, _props$confirmLoading = props2.confirmLoading, confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading;
|
|
76144
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Button$
|
|
76156
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Button$6, _extends$4({
|
|
76145
76157
|
onClick: handleCancel
|
|
76146
|
-
}, props2.cancelButtonProps), cancelText || contextLocale.cancelText), /* @__PURE__ */ React.createElement(Button$
|
|
76158
|
+
}, props2.cancelButtonProps), cancelText || contextLocale.cancelText), /* @__PURE__ */ React.createElement(Button$6, _extends$4({}, convertLegacyProps(okType), {
|
|
76147
76159
|
loading: confirmLoading,
|
|
76148
76160
|
onClick: handleOk
|
|
76149
76161
|
}, props2.okButtonProps), okText !== null && okText !== void 0 ? okText : contextLocale.okText));
|
|
@@ -76200,7 +76212,7 @@ var ConfirmDialog = function ConfirmDialog2(props2) {
|
|
|
76200
76212
|
prefixCls: rootPrefixCls,
|
|
76201
76213
|
iconPrefixCls,
|
|
76202
76214
|
direction
|
|
76203
|
-
}, /* @__PURE__ */ React.createElement(Modal$
|
|
76215
|
+
}, /* @__PURE__ */ React.createElement(Modal$2, {
|
|
76204
76216
|
prefixCls,
|
|
76205
76217
|
className: classString,
|
|
76206
76218
|
wrapClassName: classNames(_defineProperty$3({}, "".concat(contentPrefixCls, "-centered"), !!props2.centered), wrapClassName),
|
|
@@ -76533,23 +76545,23 @@ function useModal() {
|
|
|
76533
76545
|
function modalWarn(props2) {
|
|
76534
76546
|
return confirm$1(withWarn(props2));
|
|
76535
76547
|
}
|
|
76536
|
-
var Modal = Modal$
|
|
76537
|
-
Modal.useModal = useModal;
|
|
76538
|
-
Modal.info = function infoFn(props2) {
|
|
76548
|
+
var Modal$1 = Modal$2;
|
|
76549
|
+
Modal$1.useModal = useModal;
|
|
76550
|
+
Modal$1.info = function infoFn(props2) {
|
|
76539
76551
|
return confirm$1(withInfo(props2));
|
|
76540
76552
|
};
|
|
76541
|
-
Modal.success = function successFn(props2) {
|
|
76553
|
+
Modal$1.success = function successFn(props2) {
|
|
76542
76554
|
return confirm$1(withSuccess(props2));
|
|
76543
76555
|
};
|
|
76544
|
-
Modal.error = function errorFn(props2) {
|
|
76556
|
+
Modal$1.error = function errorFn(props2) {
|
|
76545
76557
|
return confirm$1(withError(props2));
|
|
76546
76558
|
};
|
|
76547
|
-
Modal.warning = modalWarn;
|
|
76548
|
-
Modal.warn = modalWarn;
|
|
76549
|
-
Modal.confirm = function confirmFn(props2) {
|
|
76559
|
+
Modal$1.warning = modalWarn;
|
|
76560
|
+
Modal$1.warn = modalWarn;
|
|
76561
|
+
Modal$1.confirm = function confirmFn(props2) {
|
|
76550
76562
|
return confirm$1(withConfirm(props2));
|
|
76551
76563
|
};
|
|
76552
|
-
Modal.destroyAll = function destroyAllFn() {
|
|
76564
|
+
Modal$1.destroyAll = function destroyAllFn() {
|
|
76553
76565
|
while (destroyFns.length) {
|
|
76554
76566
|
var close2 = destroyFns.pop();
|
|
76555
76567
|
if (close2) {
|
|
@@ -76557,7 +76569,7 @@ Modal.destroyAll = function destroyAllFn() {
|
|
|
76557
76569
|
}
|
|
76558
76570
|
}
|
|
76559
76571
|
};
|
|
76560
|
-
Modal.config = modalGlobalConfig;
|
|
76572
|
+
Modal$1.config = modalGlobalConfig;
|
|
76561
76573
|
var toggleSelection;
|
|
76562
76574
|
var hasRequiredToggleSelection;
|
|
76563
76575
|
function requireToggleSelection() {
|
|
@@ -83061,9 +83073,9 @@ function getChildren(input, path2, entity, scopedState) {
|
|
|
83061
83073
|
);
|
|
83062
83074
|
}
|
|
83063
83075
|
let children;
|
|
83064
|
-
if (input instanceof Section) {
|
|
83076
|
+
if (input instanceof Section$1) {
|
|
83065
83077
|
children = getChildrenFromSection(input);
|
|
83066
|
-
} else if (Object.values(input).every((c3) => c3 instanceof Section)) {
|
|
83078
|
+
} else if (Object.values(input).every((c3) => c3 instanceof Section$1)) {
|
|
83067
83079
|
children = Object.values(input).reduce((acc, section) => {
|
|
83068
83080
|
return { ...acc, ...getChildrenFromSection(section) };
|
|
83069
83081
|
}, {});
|
|
@@ -83079,7 +83091,7 @@ function getChildren(input, path2, entity, scopedState) {
|
|
|
83079
83091
|
}
|
|
83080
83092
|
return children;
|
|
83081
83093
|
}
|
|
83082
|
-
class Section {
|
|
83094
|
+
let Section$1 = class Section {
|
|
83083
83095
|
constructor(category) {
|
|
83084
83096
|
__publicField(this, "props", {});
|
|
83085
83097
|
__publicField(this, "propertiesPanelConfig", {
|
|
@@ -83131,7 +83143,7 @@ class Section {
|
|
|
83131
83143
|
return "Uncategorized";
|
|
83132
83144
|
}
|
|
83133
83145
|
}
|
|
83134
|
-
}
|
|
83146
|
+
};
|
|
83135
83147
|
class Prop {
|
|
83136
83148
|
constructor(typeString, defaultValidator) {
|
|
83137
83149
|
__publicField(this, "prop");
|
|
@@ -83387,13 +83399,13 @@ class Prop {
|
|
|
83387
83399
|
const content = this.getProps();
|
|
83388
83400
|
const { type: type5, ...rest } = childrenDisplay;
|
|
83389
83401
|
let contentDef;
|
|
83390
|
-
if (content instanceof Section) {
|
|
83402
|
+
if (content instanceof Section$1) {
|
|
83391
83403
|
contentDef = { content };
|
|
83392
|
-
} else if (Object.values(content).every((c3) => c3 instanceof Section)) {
|
|
83404
|
+
} else if (Object.values(content).every((c3) => c3 instanceof Section$1)) {
|
|
83393
83405
|
contentDef = content;
|
|
83394
83406
|
} else {
|
|
83395
83407
|
contentDef = {
|
|
83396
|
-
content: Section.category(PropsPanelCategory.Content).propertiesPanel({
|
|
83408
|
+
content: Section$1.category(PropsPanelCategory.Content).propertiesPanel({
|
|
83397
83409
|
showHeader: false
|
|
83398
83410
|
}).children(content)
|
|
83399
83411
|
};
|
|
@@ -83574,7 +83586,12 @@ function buildPropLeafDefault(prop, name, parentDefault) {
|
|
|
83574
83586
|
return propDefault;
|
|
83575
83587
|
}
|
|
83576
83588
|
function traverseProps(sections, onProp, parentPath = "") {
|
|
83577
|
-
const processProps = (
|
|
83589
|
+
const processProps = ({
|
|
83590
|
+
sectionName,
|
|
83591
|
+
props: props2,
|
|
83592
|
+
parentPath: parentPath2,
|
|
83593
|
+
parentDefault
|
|
83594
|
+
}) => {
|
|
83578
83595
|
for (const [name, prop] of Object.entries(props2)) {
|
|
83579
83596
|
const fullPath = parentPath2 ? `${parentPath2}.${name}` : name;
|
|
83580
83597
|
if (prop instanceof CompositeProp) {
|
|
@@ -83583,32 +83600,59 @@ function traverseProps(sections, onProp, parentPath = "") {
|
|
|
83583
83600
|
name,
|
|
83584
83601
|
parentDefault
|
|
83585
83602
|
);
|
|
83586
|
-
processProps(
|
|
83603
|
+
processProps({
|
|
83604
|
+
sectionName,
|
|
83605
|
+
props: prop.nestedProps,
|
|
83606
|
+
parentPath: fullPath,
|
|
83607
|
+
parentDefault: compositeDefault
|
|
83608
|
+
});
|
|
83587
83609
|
} else if (prop instanceof RecordProp) {
|
|
83588
83610
|
const recordPath = `${fullPath}.${RECORD_PATH_IDENTIFIER}`;
|
|
83589
|
-
processProps(
|
|
83590
|
-
|
|
83591
|
-
|
|
83611
|
+
processProps({
|
|
83612
|
+
sectionName,
|
|
83613
|
+
props: prop.nestedProps,
|
|
83614
|
+
parentPath: recordPath,
|
|
83615
|
+
parentDefault: prop.build().default
|
|
83616
|
+
});
|
|
83617
|
+
} else if (prop instanceof Section$1) {
|
|
83618
|
+
processProps({
|
|
83619
|
+
sectionName,
|
|
83620
|
+
props: prop.props,
|
|
83621
|
+
parentPath: parentPath2
|
|
83622
|
+
});
|
|
83592
83623
|
} else if (prop instanceof UnionProp) {
|
|
83593
83624
|
const sharedKeys = Object.keys(prop.shared);
|
|
83594
|
-
processProps(
|
|
83625
|
+
processProps({
|
|
83626
|
+
sectionName,
|
|
83627
|
+
props: prop.shared,
|
|
83628
|
+
parentPath: fullPath
|
|
83629
|
+
});
|
|
83595
83630
|
for (const variant of prop.variants) {
|
|
83596
83631
|
const variantWithoutSharedKeys = Object.fromEntries(
|
|
83597
83632
|
Object.entries(variant).filter(
|
|
83598
83633
|
([key2]) => !sharedKeys.includes(key2)
|
|
83599
83634
|
)
|
|
83600
83635
|
);
|
|
83601
|
-
processProps(
|
|
83636
|
+
processProps({
|
|
83637
|
+
sectionName,
|
|
83638
|
+
props: variantWithoutSharedKeys,
|
|
83639
|
+
parentPath: fullPath
|
|
83640
|
+
});
|
|
83602
83641
|
}
|
|
83603
83642
|
} else if (prop instanceof Prop) {
|
|
83604
|
-
onProp(prop, fullPath, name, parentDefault);
|
|
83643
|
+
onProp(prop, fullPath, name, parentDefault, sectionName);
|
|
83605
83644
|
} else {
|
|
83606
83645
|
console.warn("Invalid prop type", { name, prop });
|
|
83607
83646
|
}
|
|
83608
83647
|
}
|
|
83609
83648
|
};
|
|
83610
|
-
for (const [, section] of Object.entries(sections)) {
|
|
83611
|
-
processProps(
|
|
83649
|
+
for (const [sectionName, section] of Object.entries(sections)) {
|
|
83650
|
+
processProps({
|
|
83651
|
+
sectionName,
|
|
83652
|
+
props: section.props,
|
|
83653
|
+
parentPath,
|
|
83654
|
+
parentDefault: void 0
|
|
83655
|
+
});
|
|
83612
83656
|
}
|
|
83613
83657
|
}
|
|
83614
83658
|
function createInternalPropsList(sections, parentPath = "") {
|
|
@@ -83632,7 +83676,7 @@ function createManagedPropsList(sections, parentPath = "") {
|
|
|
83632
83676
|
const managedPropsList = [];
|
|
83633
83677
|
traverseProps(
|
|
83634
83678
|
sections,
|
|
83635
|
-
(prop, fullPath, name, parentDefault) => {
|
|
83679
|
+
(prop, fullPath, name, parentDefault, sectionName) => {
|
|
83636
83680
|
let configuredProp = prop.setName(fullPath);
|
|
83637
83681
|
const propDefault = buildPropLeafDefault(prop, name, parentDefault);
|
|
83638
83682
|
if (propDefault !== void 0) {
|
|
@@ -83640,7 +83684,10 @@ function createManagedPropsList(sections, parentPath = "") {
|
|
|
83640
83684
|
}
|
|
83641
83685
|
const builtProp = configuredProp.build();
|
|
83642
83686
|
if (builtProp.dataType !== "internal") {
|
|
83643
|
-
managedPropsList.push({
|
|
83687
|
+
managedPropsList.push({
|
|
83688
|
+
...builtProp,
|
|
83689
|
+
...sectionName === "meta" ? { isMetaProp: true } : {}
|
|
83690
|
+
});
|
|
83644
83691
|
}
|
|
83645
83692
|
},
|
|
83646
83693
|
parentPath
|
|
@@ -83845,7 +83892,7 @@ function registerStores(stores) {
|
|
|
83845
83892
|
internalStores = { ...internalStores, ...stores };
|
|
83846
83893
|
if (SUPPORTED_MODES.includes("production")) {
|
|
83847
83894
|
if (Object.keys(internalStores).length === Object.keys(stores).length) {
|
|
83848
|
-
import("./devtools-consolidated-
|
|
83895
|
+
import("./devtools-consolidated-DEIGUjCl.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
|
|
83849
83896
|
setRegisteredStores(internalStores);
|
|
83850
83897
|
initializeCustomDevTools();
|
|
83851
83898
|
}).catch((error) => {
|
|
@@ -83858,7 +83905,7 @@ function registerStores(stores) {
|
|
|
83858
83905
|
}
|
|
83859
83906
|
}
|
|
83860
83907
|
const DevToolsInternal = React__default.lazy(() => {
|
|
83861
|
-
return import("./devtools-consolidated-
|
|
83908
|
+
return import("./devtools-consolidated-DEIGUjCl.js").then((module2) => ({
|
|
83862
83909
|
default: module2.CustomDevTools
|
|
83863
83910
|
}));
|
|
83864
83911
|
});
|
|
@@ -84133,7 +84180,7 @@ function createScopeProxy(scopes, useSuspense = false) {
|
|
|
84133
84180
|
);
|
|
84134
84181
|
return proxy;
|
|
84135
84182
|
}
|
|
84136
|
-
class
|
|
84183
|
+
class EventFlow {
|
|
84137
84184
|
constructor() {
|
|
84138
84185
|
__publicField(this, "steps", []);
|
|
84139
84186
|
}
|
|
@@ -84145,36 +84192,36 @@ class SbEventFlow {
|
|
|
84145
84192
|
return this;
|
|
84146
84193
|
}
|
|
84147
84194
|
static start() {
|
|
84148
|
-
return new
|
|
84195
|
+
return new EventFlow();
|
|
84149
84196
|
}
|
|
84150
84197
|
// TODO(code-mode): any is for userland code, we need to figure out how to type this
|
|
84151
84198
|
static runJS(handler) {
|
|
84152
|
-
return
|
|
84199
|
+
return EventFlow.start().runJS(handler);
|
|
84153
84200
|
}
|
|
84154
84201
|
// TODO(code-mode): any is for userland code, we need to figure out how to type this
|
|
84155
84202
|
runJS(handler) {
|
|
84156
84203
|
return this.addStep(EventRegistry.runJs.create(handler));
|
|
84157
84204
|
}
|
|
84158
84205
|
static navigateTo(props2) {
|
|
84159
|
-
return
|
|
84206
|
+
return EventFlow.start().navigateTo(props2);
|
|
84160
84207
|
}
|
|
84161
84208
|
navigateTo(props2) {
|
|
84162
84209
|
return this.addStep(EventRegistry.navigateTo.create(props2));
|
|
84163
84210
|
}
|
|
84164
84211
|
static navigateToApp(appId) {
|
|
84165
|
-
return
|
|
84212
|
+
return EventFlow.start().navigateToApp(appId);
|
|
84166
84213
|
}
|
|
84167
84214
|
navigateToApp(appId) {
|
|
84168
84215
|
return this.addStep(EventRegistry.navigateToApp.create(appId));
|
|
84169
84216
|
}
|
|
84170
84217
|
static navigateToRoute(route) {
|
|
84171
|
-
return
|
|
84218
|
+
return EventFlow.start().navigateToRoute(route);
|
|
84172
84219
|
}
|
|
84173
84220
|
navigateToRoute(route) {
|
|
84174
84221
|
return this.addStep(EventRegistry.navigateToRoute.create(route));
|
|
84175
84222
|
}
|
|
84176
84223
|
static setQueryParams(params, keepQueryParams = false) {
|
|
84177
|
-
return
|
|
84224
|
+
return EventFlow.start().setQueryParams(params, keepQueryParams);
|
|
84178
84225
|
}
|
|
84179
84226
|
setQueryParams(params, keepQueryParams = false) {
|
|
84180
84227
|
return this.addStep(
|
|
@@ -84182,25 +84229,25 @@ class SbEventFlow {
|
|
|
84182
84229
|
);
|
|
84183
84230
|
}
|
|
84184
84231
|
static controlSlideout(slideout, action2) {
|
|
84185
|
-
return
|
|
84232
|
+
return EventFlow.start().controlSlideout(slideout, action2);
|
|
84186
84233
|
}
|
|
84187
84234
|
controlSlideout(slideout, action2) {
|
|
84188
84235
|
return this.addStep(EventRegistry.controlSlideout.create(slideout, action2));
|
|
84189
84236
|
}
|
|
84190
84237
|
static controlModal(modal, action2) {
|
|
84191
|
-
return
|
|
84238
|
+
return EventFlow.start().controlModal(modal, action2);
|
|
84192
84239
|
}
|
|
84193
84240
|
controlModal(modal, action2) {
|
|
84194
84241
|
return this.addStep(EventRegistry.controlModal.create(modal, action2));
|
|
84195
84242
|
}
|
|
84196
84243
|
static controlTimer(stateTimer, action2) {
|
|
84197
|
-
return
|
|
84244
|
+
return EventFlow.start().controlTimer(stateTimer, action2);
|
|
84198
84245
|
}
|
|
84199
84246
|
controlTimer(stateTimer, action2) {
|
|
84200
84247
|
return this.addStep(EventRegistry.controlTimer.create(stateTimer, action2));
|
|
84201
84248
|
}
|
|
84202
84249
|
static runApis(apis, onSuccess, onError2) {
|
|
84203
|
-
return
|
|
84250
|
+
return EventFlow.start().runApis(apis, onSuccess, onError2);
|
|
84204
84251
|
}
|
|
84205
84252
|
runApis(apis, onSuccess, onError2) {
|
|
84206
84253
|
return this.addStep(
|
|
@@ -84212,51 +84259,41 @@ class SbEventFlow {
|
|
|
84212
84259
|
);
|
|
84213
84260
|
}
|
|
84214
84261
|
static cancelApis(apis, onCancel) {
|
|
84215
|
-
return
|
|
84262
|
+
return EventFlow.start().cancelApis(apis, onCancel);
|
|
84216
84263
|
}
|
|
84217
84264
|
cancelApis(apis, onCancel) {
|
|
84218
84265
|
return this.addStep(
|
|
84219
84266
|
EventRegistry.cancelApi.create(apis, onCancel)
|
|
84220
84267
|
);
|
|
84221
84268
|
}
|
|
84222
|
-
static resetComponent(
|
|
84223
|
-
return
|
|
84224
|
-
widget,
|
|
84225
|
-
propertyName,
|
|
84226
|
-
resetChildren
|
|
84227
|
-
);
|
|
84269
|
+
static resetComponent(component, opts) {
|
|
84270
|
+
return EventFlow.start().resetComponent(component, opts);
|
|
84228
84271
|
}
|
|
84229
|
-
resetComponent(
|
|
84230
|
-
return this.addStep(
|
|
84231
|
-
EventRegistry.resetComponent.create(widget, propertyName, resetChildren)
|
|
84232
|
-
);
|
|
84272
|
+
resetComponent(component, opts) {
|
|
84273
|
+
return this.addStep(EventRegistry.resetComponent.create(component, opts));
|
|
84233
84274
|
}
|
|
84234
84275
|
static resetStateVar(state) {
|
|
84235
|
-
return
|
|
84276
|
+
return EventFlow.start().resetStateVar(state);
|
|
84236
84277
|
}
|
|
84237
84278
|
resetStateVar(state) {
|
|
84238
84279
|
return this.addStep(EventRegistry.resetStateVar.create(state));
|
|
84239
84280
|
}
|
|
84240
84281
|
static setStateVar(stateVarName, value) {
|
|
84241
|
-
return
|
|
84282
|
+
return EventFlow.start().setStateVar(stateVarName, value);
|
|
84242
84283
|
}
|
|
84243
84284
|
setStateVar(stateVar, value) {
|
|
84244
84285
|
return this.addStep(EventRegistry.setStateVar.create(stateVar, value));
|
|
84245
84286
|
}
|
|
84246
|
-
static setComponentProperty(
|
|
84247
|
-
return
|
|
84248
|
-
widget,
|
|
84249
|
-
propertyName,
|
|
84250
|
-
value
|
|
84251
|
-
);
|
|
84287
|
+
static setComponentProperty(component, opts) {
|
|
84288
|
+
return EventFlow.start().setComponentProperty(component, opts);
|
|
84252
84289
|
}
|
|
84253
|
-
setComponentProperty(
|
|
84290
|
+
setComponentProperty(component, opts) {
|
|
84254
84291
|
return this.addStep(
|
|
84255
|
-
EventRegistry.setComponentProperty.create(
|
|
84292
|
+
EventRegistry.setComponentProperty.create(component, opts)
|
|
84256
84293
|
);
|
|
84257
84294
|
}
|
|
84258
84295
|
static showAlert(message2, alertType, alertDuration, alertPosition) {
|
|
84259
|
-
return
|
|
84296
|
+
return EventFlow.start().showAlert(
|
|
84260
84297
|
message2,
|
|
84261
84298
|
alertType,
|
|
84262
84299
|
alertDuration,
|
|
@@ -84274,7 +84311,7 @@ class SbEventFlow {
|
|
|
84274
84311
|
);
|
|
84275
84312
|
}
|
|
84276
84313
|
static setProfile(profileId, profileAction) {
|
|
84277
|
-
return
|
|
84314
|
+
return EventFlow.start().setProfile(profileId, profileAction);
|
|
84278
84315
|
}
|
|
84279
84316
|
setProfile(profileId, profileAction) {
|
|
84280
84317
|
return this.addStep(
|
|
@@ -84282,7 +84319,7 @@ class SbEventFlow {
|
|
|
84282
84319
|
);
|
|
84283
84320
|
}
|
|
84284
84321
|
static triggerEvent(eventName, eventData) {
|
|
84285
|
-
return
|
|
84322
|
+
return EventFlow.start().triggerEvent(eventName, eventData);
|
|
84286
84323
|
}
|
|
84287
84324
|
triggerEvent(eventName, eventData) {
|
|
84288
84325
|
return this.addStep(
|
|
@@ -84290,7 +84327,7 @@ class SbEventFlow {
|
|
|
84290
84327
|
);
|
|
84291
84328
|
}
|
|
84292
84329
|
static sequence(eventFlows) {
|
|
84293
|
-
return
|
|
84330
|
+
return EventFlow.start().sequence(eventFlows);
|
|
84294
84331
|
}
|
|
84295
84332
|
sequence(eventFlows) {
|
|
84296
84333
|
this.steps = [
|
|
@@ -84347,7 +84384,7 @@ const isDerivedProp = (value) => {
|
|
|
84347
84384
|
return isBindingString(value);
|
|
84348
84385
|
};
|
|
84349
84386
|
const isEventFlow = (value) => {
|
|
84350
|
-
return value instanceof
|
|
84387
|
+
return value instanceof EventFlow;
|
|
84351
84388
|
};
|
|
84352
84389
|
const isComputedProp = (value) => {
|
|
84353
84390
|
return isComputedProperty(value);
|
|
@@ -84517,8 +84554,8 @@ class EntityManager {
|
|
|
84517
84554
|
createScope: action,
|
|
84518
84555
|
deleteScope: action,
|
|
84519
84556
|
setValidationState: action,
|
|
84520
|
-
getFullState: computed,
|
|
84521
|
-
getValidationState: computed,
|
|
84557
|
+
getFullState: computed$1,
|
|
84558
|
+
getValidationState: computed$1,
|
|
84522
84559
|
createEntity: action,
|
|
84523
84560
|
updateEntity: action,
|
|
84524
84561
|
deleteEntity: action,
|
|
@@ -84760,7 +84797,7 @@ class EntityManager {
|
|
|
84760
84797
|
);
|
|
84761
84798
|
}
|
|
84762
84799
|
const managedProp = this.componentRegistry.getManagedProps(entityType).find((p) => p.path === finalProp);
|
|
84763
|
-
const getValue2 = computed(() => {
|
|
84800
|
+
const getValue2 = computed$1(() => {
|
|
84764
84801
|
let ret = null;
|
|
84765
84802
|
try {
|
|
84766
84803
|
const metaParent = getMetaParent();
|
|
@@ -84943,15 +84980,24 @@ class EntityManager {
|
|
|
84943
84980
|
}
|
|
84944
84981
|
}
|
|
84945
84982
|
resetEntity(params) {
|
|
84946
|
-
const { name, key: key2 } = params;
|
|
84983
|
+
const { name, key: key2, onlyMetaProps } = params;
|
|
84947
84984
|
const entityMeta = this.getScope(params.scopeId).getEntityMeta(name);
|
|
84948
84985
|
if (key2) {
|
|
84949
84986
|
if (key2 in entityMeta) {
|
|
84950
84987
|
delete entityMeta[key2];
|
|
84951
84988
|
}
|
|
84952
84989
|
} else {
|
|
84990
|
+
let metaPropsNames = [];
|
|
84991
|
+
if (onlyMetaProps) {
|
|
84992
|
+
const managedPropsForType = this.componentRegistry.getManagedProps(
|
|
84993
|
+
entityMeta.type
|
|
84994
|
+
);
|
|
84995
|
+
metaPropsNames = managedPropsForType.filter((p) => p.isMetaProp).map((p) => p.path);
|
|
84996
|
+
}
|
|
84953
84997
|
for (const prop of Object.keys(entityMeta)) {
|
|
84954
|
-
|
|
84998
|
+
if (!onlyMetaProps || onlyMetaProps && metaPropsNames.includes(prop)) {
|
|
84999
|
+
delete entityMeta[prop];
|
|
85000
|
+
}
|
|
84955
85001
|
}
|
|
84956
85002
|
}
|
|
84957
85003
|
}
|
|
@@ -86290,18 +86336,18 @@ const rootStore$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
86290
86336
|
default: rootStore
|
|
86291
86337
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
86292
86338
|
const WithLayoutContainerTypes = /* @__PURE__ */ new Set([
|
|
86293
|
-
"
|
|
86294
|
-
"
|
|
86295
|
-
"
|
|
86296
|
-
"
|
|
86339
|
+
"Container",
|
|
86340
|
+
"Column",
|
|
86341
|
+
"Modal",
|
|
86342
|
+
"Slideout"
|
|
86297
86343
|
]);
|
|
86298
|
-
const VStackLikeContainerTypes = /* @__PURE__ */ new Set(["
|
|
86299
|
-
const HStackLikeContainerTypes = /* @__PURE__ */ new Set(["
|
|
86344
|
+
const VStackLikeContainerTypes = /* @__PURE__ */ new Set(["Page"]);
|
|
86345
|
+
const HStackLikeContainerTypes = /* @__PURE__ */ new Set(["Section"]);
|
|
86300
86346
|
const StackLikeContainerTypes = /* @__PURE__ */ new Set([
|
|
86301
86347
|
...VStackLikeContainerTypes,
|
|
86302
86348
|
...HStackLikeContainerTypes
|
|
86303
86349
|
]);
|
|
86304
|
-
const detachedComponentTypeList = ["
|
|
86350
|
+
const detachedComponentTypeList = ["Modal", "Slideout"];
|
|
86305
86351
|
const DetachedComponentTypes = new Set(
|
|
86306
86352
|
detachedComponentTypeList
|
|
86307
86353
|
);
|
|
@@ -86323,25 +86369,25 @@ const restrictions = [
|
|
|
86323
86369
|
rule(
|
|
86324
86370
|
"Columns can only be dropped on sections",
|
|
86325
86371
|
({ draggedType, dropTargetType }) => {
|
|
86326
|
-
return draggedType === "
|
|
86372
|
+
return draggedType === "Column" && dropTargetType !== "Section";
|
|
86327
86373
|
}
|
|
86328
86374
|
),
|
|
86329
86375
|
rule(
|
|
86330
86376
|
"Sections can only be dropped on pages",
|
|
86331
86377
|
({ draggedType, dropTargetType }) => {
|
|
86332
|
-
return draggedType === "
|
|
86378
|
+
return draggedType === "Section" && dropTargetType !== "Page";
|
|
86333
86379
|
}
|
|
86334
86380
|
),
|
|
86335
86381
|
rule(
|
|
86336
86382
|
"Only sections can be dropped on non-empty pages",
|
|
86337
86383
|
({ draggedType, dropTargetType, dropTargetEmpty }) => {
|
|
86338
|
-
return draggedType !== "
|
|
86384
|
+
return draggedType !== "Section" && dropTargetType === "Page" && !dropTargetEmpty;
|
|
86339
86385
|
}
|
|
86340
86386
|
),
|
|
86341
86387
|
rule(
|
|
86342
86388
|
"Only columns can be dropped on non-empty sections",
|
|
86343
86389
|
({ draggedType, dropTargetType, dropTargetEmpty }) => {
|
|
86344
|
-
return draggedType !== "
|
|
86390
|
+
return draggedType !== "Column" && dropTargetType === "Section" && !dropTargetEmpty;
|
|
86345
86391
|
}
|
|
86346
86392
|
)
|
|
86347
86393
|
];
|
|
@@ -86351,7 +86397,7 @@ const isDragAndDropTypeValid = ({
|
|
|
86351
86397
|
dropTargetEmpty,
|
|
86352
86398
|
isDraggingNewComponent
|
|
86353
86399
|
}) => {
|
|
86354
|
-
const actualDraggedType = isDraggingNewComponent && (draggedType === "
|
|
86400
|
+
const actualDraggedType = isDraggingNewComponent && (draggedType === "Modal" || draggedType === "Slideout") ? "Button" : draggedType;
|
|
86355
86401
|
const triggeredRestriction = restrictions.find(
|
|
86356
86402
|
(restriction) => restriction.restriction({
|
|
86357
86403
|
draggedType: actualDraggedType,
|
|
@@ -86370,16 +86416,16 @@ const isTypeDroppable = (type5) => {
|
|
|
86370
86416
|
return false;
|
|
86371
86417
|
};
|
|
86372
86418
|
const isTypeDraggable = (type5) => {
|
|
86373
|
-
return type5 !== "
|
|
86419
|
+
return type5 !== "Page" && type5 !== "Slideout" && type5 !== "Modal";
|
|
86374
86420
|
};
|
|
86375
86421
|
const isContentDraggable = (type5) => {
|
|
86376
|
-
return isTypeDraggable(type5) && type5 !== "
|
|
86422
|
+
return isTypeDraggable(type5) && type5 !== "Column" && type5 !== "Section";
|
|
86377
86423
|
};
|
|
86378
86424
|
function shouldWrapInSectionAndColumn(type5, parentType) {
|
|
86379
86425
|
if (DetachedComponentTypes.has(type5)) {
|
|
86380
86426
|
return false;
|
|
86381
86427
|
}
|
|
86382
|
-
return parentType === "
|
|
86428
|
+
return parentType === "Page" && type5 !== "Section" || parentType === "Section" && type5 !== "Column";
|
|
86383
86429
|
}
|
|
86384
86430
|
const filterSafeStackDimensionProperties = (existingProps) => {
|
|
86385
86431
|
const { width, height, size: size2 } = existingProps;
|
|
@@ -86416,7 +86462,7 @@ const filterSafeGridDimensionProperties = (existingProps) => {
|
|
|
86416
86462
|
return safeDimensions;
|
|
86417
86463
|
};
|
|
86418
86464
|
const defaultSizeForComponent = (componentType, isFreeform, draggedDimensions) => {
|
|
86419
|
-
if (componentType === "
|
|
86465
|
+
if (componentType === "Icon") {
|
|
86420
86466
|
return {};
|
|
86421
86467
|
}
|
|
86422
86468
|
const height = Property.Dimension(Dim.fit());
|
|
@@ -86428,12 +86474,12 @@ const defaultSizeForComponent = (componentType, isFreeform, draggedDimensions) =
|
|
|
86428
86474
|
};
|
|
86429
86475
|
}
|
|
86430
86476
|
switch (componentType) {
|
|
86431
|
-
case "
|
|
86432
|
-
case "
|
|
86433
|
-
case "
|
|
86434
|
-
case "
|
|
86477
|
+
case "Text":
|
|
86478
|
+
case "Button":
|
|
86479
|
+
case "Checkbox":
|
|
86480
|
+
case "Switch":
|
|
86435
86481
|
return { height, width: Property.Dimension(Dim.fit()) };
|
|
86436
|
-
case "
|
|
86482
|
+
case "Image":
|
|
86437
86483
|
return {
|
|
86438
86484
|
height,
|
|
86439
86485
|
width: Property.Dimension(Dim.px((draggedDimensions == null ? void 0 : draggedDimensions.widthPx) ?? 288))
|
|
@@ -86510,8 +86556,8 @@ class InteractionLayerManager {
|
|
|
86510
86556
|
__runInitializers(_init3, 5, this);
|
|
86511
86557
|
/**
|
|
86512
86558
|
* The id of the root element that is currently being interacted with
|
|
86513
|
-
* the root can be
|
|
86514
|
-
* If set to undefined, the interaction layer will be the
|
|
86559
|
+
* the root can be Page, Modal or Slideout
|
|
86560
|
+
* If set to undefined, the interaction layer will be the Page
|
|
86515
86561
|
* if set to the detached component id, the inteactoin layer will be disabled on the page
|
|
86516
86562
|
*/
|
|
86517
86563
|
__publicField(this, "activeRootInstanceId");
|
|
@@ -87052,7 +87098,7 @@ class OperationManager {
|
|
|
87052
87098
|
params.sourceId
|
|
87053
87099
|
);
|
|
87054
87100
|
const oldName = ((_a2 = widgetMeta == null ? void 0 : widgetMeta.name) == null ? void 0 : _a2.value) ?? "";
|
|
87055
|
-
const kind = (widgetMeta == null ? void 0 : widgetMeta.type) === "
|
|
87101
|
+
const kind = (widgetMeta == null ? void 0 : widgetMeta.type) === "Page" ? "page" : "component";
|
|
87056
87102
|
const scopeName = (widgetMeta == null ? void 0 : widgetMeta.scopeId) ? rootStore.entityManager.getScopeName(widgetMeta.scopeId) : void 0;
|
|
87057
87103
|
if (!scopeName) {
|
|
87058
87104
|
console.error("No scope name found for widget", params.sourceId);
|
|
@@ -87079,18 +87125,18 @@ class OperationManager {
|
|
|
87079
87125
|
(id2) => editStore2.runtimeEntitiesManager.getAnyEditorWidgetMeta(id2)
|
|
87080
87126
|
);
|
|
87081
87127
|
if (!widgets.some(
|
|
87082
|
-
(widget) => (widget == null ? void 0 : widget.type) === "
|
|
87128
|
+
(widget) => (widget == null ? void 0 : widget.type) === "Section" || (widget == null ? void 0 : widget.type) === "Column"
|
|
87083
87129
|
)) {
|
|
87084
87130
|
return true;
|
|
87085
87131
|
}
|
|
87086
87132
|
const sectionsToDelete = widgets.filter(
|
|
87087
|
-
(widget) => (widget == null ? void 0 : widget.type) === "
|
|
87133
|
+
(widget) => (widget == null ? void 0 : widget.type) === "Section"
|
|
87088
87134
|
);
|
|
87089
87135
|
const sectionInstanceIds = new Set(
|
|
87090
87136
|
sectionsToDelete.filter((section) => section == null ? void 0 : section.instanceId).map((section) => section == null ? void 0 : section.instanceId)
|
|
87091
87137
|
);
|
|
87092
87138
|
const columnsToDelete = widgets.filter(
|
|
87093
|
-
(widget) => (widget == null ? void 0 : widget.type) === "
|
|
87139
|
+
(widget) => (widget == null ? void 0 : widget.type) === "Column"
|
|
87094
87140
|
);
|
|
87095
87141
|
const columnInstanceIds = new Set(
|
|
87096
87142
|
columnsToDelete.filter((column2) => column2 == null ? void 0 : column2.instanceId).map((column2) => column2 == null ? void 0 : column2.instanceId)
|
|
@@ -87321,7 +87367,7 @@ const makeMobxCachedGetter = (getter) => {
|
|
|
87321
87367
|
const getterFunc = (id2) => {
|
|
87322
87368
|
let fn3 = cachedGetters[id2];
|
|
87323
87369
|
if (!fn3) {
|
|
87324
|
-
fn3 = computed(() => getter(id2));
|
|
87370
|
+
fn3 = computed$1(() => getter(id2));
|
|
87325
87371
|
cachedGetters[id2] = fn3;
|
|
87326
87372
|
}
|
|
87327
87373
|
return fn3.get();
|
|
@@ -87377,14 +87423,14 @@ function getPropertyValue$1({
|
|
|
87377
87423
|
if (property.type === "EVENT" && scopeId && name) {
|
|
87378
87424
|
const eventFlows = property.value.map((step) => {
|
|
87379
87425
|
try {
|
|
87380
|
-
return
|
|
87426
|
+
return getEventFlow(step, scopeId);
|
|
87381
87427
|
} catch {
|
|
87382
87428
|
return void 0;
|
|
87383
87429
|
}
|
|
87384
87430
|
}).filter(
|
|
87385
87431
|
(eventFlow) => eventFlow !== void 0
|
|
87386
87432
|
);
|
|
87387
|
-
return
|
|
87433
|
+
return EventFlow.sequence(eventFlows);
|
|
87388
87434
|
}
|
|
87389
87435
|
if (property.type === "STATIC" && typeof property.value === "object" && property.value !== null) {
|
|
87390
87436
|
return Object.entries(property.value).reduce(
|
|
@@ -87405,7 +87451,7 @@ function getPropertyValue$1({
|
|
|
87405
87451
|
}
|
|
87406
87452
|
return property.value;
|
|
87407
87453
|
}
|
|
87408
|
-
function
|
|
87454
|
+
function getEventFlow(step, scopeId) {
|
|
87409
87455
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
87410
87456
|
if (!isValidStepDef(step)) {
|
|
87411
87457
|
return void 0;
|
|
@@ -87429,22 +87475,22 @@ function getSbEventFlow(step, scopeId) {
|
|
|
87429
87475
|
return entityNames.map(getEntity).filter((entity) => entity !== void 0);
|
|
87430
87476
|
};
|
|
87431
87477
|
const createNestedEventFlow = (steps) => {
|
|
87432
|
-
return Array.isArray(steps) && steps.length > 0 ?
|
|
87478
|
+
return Array.isArray(steps) && steps.length > 0 ? getEventFlow(steps, scopeId) : void 0;
|
|
87433
87479
|
};
|
|
87434
87480
|
switch (step.type) {
|
|
87435
87481
|
case "executeApi":
|
|
87436
|
-
return
|
|
87482
|
+
return EventFlow.runApis(
|
|
87437
87483
|
getEntities(step.apiNames),
|
|
87438
87484
|
createNestedEventFlow(step.onSuccess ?? []),
|
|
87439
87485
|
createNestedEventFlow(step.onError ?? [])
|
|
87440
87486
|
);
|
|
87441
87487
|
case "cancelApi":
|
|
87442
|
-
return
|
|
87488
|
+
return EventFlow.cancelApis(
|
|
87443
87489
|
getEntities(step.apiNames),
|
|
87444
87490
|
createNestedEventFlow(step.onCancel ?? [])
|
|
87445
87491
|
);
|
|
87446
87492
|
case "runJs":
|
|
87447
|
-
return
|
|
87493
|
+
return EventFlow.runJS(function(...args) {
|
|
87448
87494
|
if (step.code) {
|
|
87449
87495
|
try {
|
|
87450
87496
|
const cleanCode = step.code.trim().endsWith(";") ? step.code.slice(0, -1) : step.code;
|
|
@@ -87455,28 +87501,28 @@ function getSbEventFlow(step, scopeId) {
|
|
|
87455
87501
|
}
|
|
87456
87502
|
});
|
|
87457
87503
|
case "navigateTo":
|
|
87458
|
-
return
|
|
87504
|
+
return EventFlow.navigateTo({
|
|
87459
87505
|
url: step.url,
|
|
87460
87506
|
newWindow: step.newWindow
|
|
87461
87507
|
});
|
|
87462
87508
|
case "navigateToApp":
|
|
87463
|
-
return
|
|
87509
|
+
return EventFlow.navigateToApp(step.targetApp.id);
|
|
87464
87510
|
case "navigateToRoute":
|
|
87465
|
-
return
|
|
87511
|
+
return EventFlow.navigateToRoute(step.routeId);
|
|
87466
87512
|
case "setQueryParams":
|
|
87467
|
-
return
|
|
87513
|
+
return EventFlow.setQueryParams(
|
|
87468
87514
|
step.queryParams ? JSON.parse(step.queryParams) : {},
|
|
87469
87515
|
step.keepQueryParams
|
|
87470
87516
|
);
|
|
87471
87517
|
case "controlSlideout": {
|
|
87472
87518
|
const slideoutEntity = getEntity(step.name);
|
|
87473
87519
|
if (!slideoutEntity) return void 0;
|
|
87474
|
-
return
|
|
87520
|
+
return EventFlow.controlSlideout(slideoutEntity, step.action);
|
|
87475
87521
|
}
|
|
87476
87522
|
case "controlModal": {
|
|
87477
87523
|
const modalEntity = getEntity(step.name);
|
|
87478
87524
|
if (!modalEntity) return void 0;
|
|
87479
|
-
return
|
|
87525
|
+
return EventFlow.controlModal(modalEntity, step.action);
|
|
87480
87526
|
}
|
|
87481
87527
|
case "controlTimer": {
|
|
87482
87528
|
const timerStep = step;
|
|
@@ -87485,7 +87531,7 @@ function getSbEventFlow(step, scopeId) {
|
|
|
87485
87531
|
}
|
|
87486
87532
|
const timerEntity = getEntity(timerStep.timer.name);
|
|
87487
87533
|
if (!timerEntity) return void 0;
|
|
87488
|
-
return
|
|
87534
|
+
return EventFlow.controlTimer(timerEntity, step.action ?? "start");
|
|
87489
87535
|
}
|
|
87490
87536
|
case "setStateVar": {
|
|
87491
87537
|
const variableStep = step;
|
|
@@ -87496,43 +87542,43 @@ function getSbEventFlow(step, scopeId) {
|
|
|
87496
87542
|
scopeId,
|
|
87497
87543
|
name: getName((_c2 = variableStep.variable) == null ? void 0 : _c2.name)
|
|
87498
87544
|
}) : step.value;
|
|
87499
|
-
return
|
|
87545
|
+
return EventFlow.setStateVar(stateEntity, value);
|
|
87500
87546
|
}
|
|
87501
87547
|
case "resetStateVar": {
|
|
87502
87548
|
const variableStep = step;
|
|
87503
87549
|
const resetStateEntity = getEntity((_d2 = variableStep.variable) == null ? void 0 : _d2.name);
|
|
87504
87550
|
if (!resetStateEntity) return void 0;
|
|
87505
|
-
return
|
|
87551
|
+
return EventFlow.resetStateVar(resetStateEntity);
|
|
87506
87552
|
}
|
|
87507
87553
|
case "resetComponent": {
|
|
87508
|
-
const
|
|
87509
|
-
if (!
|
|
87510
|
-
return
|
|
87511
|
-
|
|
87512
|
-
step.propertyName
|
|
87513
|
-
|
|
87554
|
+
const component = getEntity(((_e2 = step.widget) == null ? void 0 : _e2.name) ?? "");
|
|
87555
|
+
if (!component) return void 0;
|
|
87556
|
+
return EventFlow.resetComponent(
|
|
87557
|
+
component,
|
|
87558
|
+
step.propertyName ? {
|
|
87559
|
+
property: step.propertyName
|
|
87560
|
+
} : void 0
|
|
87514
87561
|
);
|
|
87515
87562
|
}
|
|
87516
87563
|
case "setComponentProperty": {
|
|
87517
|
-
const
|
|
87518
|
-
if (!
|
|
87519
|
-
return
|
|
87520
|
-
step.
|
|
87521
|
-
step.
|
|
87522
|
-
|
|
87523
|
-
);
|
|
87564
|
+
const component = getEntity(((_f2 = step.widget) == null ? void 0 : _f2.name) ?? "");
|
|
87565
|
+
if (!component) return void 0;
|
|
87566
|
+
return EventFlow.setComponentProperty(component, {
|
|
87567
|
+
property: step.propertyName,
|
|
87568
|
+
value: step.propertyValue
|
|
87569
|
+
});
|
|
87524
87570
|
}
|
|
87525
87571
|
case "showAlert":
|
|
87526
|
-
return
|
|
87572
|
+
return EventFlow.showAlert(
|
|
87527
87573
|
step.message,
|
|
87528
87574
|
step.style,
|
|
87529
87575
|
step.alertDuration,
|
|
87530
87576
|
step.alertPosition
|
|
87531
87577
|
);
|
|
87532
87578
|
case "setProfile":
|
|
87533
|
-
return
|
|
87579
|
+
return EventFlow.setProfile(step.profileId, step.profileAction);
|
|
87534
87580
|
case "triggerEvent":
|
|
87535
|
-
return
|
|
87581
|
+
return EventFlow.triggerEvent((_g2 = step.event) == null ? void 0 : _g2.name, step.eventPayload);
|
|
87536
87582
|
default:
|
|
87537
87583
|
console.warn("Unhandled runtime step type", step.type);
|
|
87538
87584
|
return void 0;
|
|
@@ -87854,15 +87900,15 @@ class RuntimeEntitiesManager {
|
|
|
87854
87900
|
const { width, height, marginLeft, marginTop } = pendingResize;
|
|
87855
87901
|
merged.props = {
|
|
87856
87902
|
...merged.props || {},
|
|
87857
|
-
...width && merged.type !== "
|
|
87858
|
-
...height && merged.type !== "
|
|
87859
|
-
...width && merged.type === "
|
|
87903
|
+
...width && merged.type !== "Icon" && { width },
|
|
87904
|
+
...height && merged.type !== "Icon" && { height },
|
|
87905
|
+
...width && merged.type === "Icon" && { size: width },
|
|
87860
87906
|
...marginLeft && { marginLeft },
|
|
87861
87907
|
...marginTop && { marginTop }
|
|
87862
87908
|
};
|
|
87863
87909
|
}
|
|
87864
87910
|
const shouldResizePage = getEditStore().ui.dnd.shouldResizePage;
|
|
87865
|
-
if (shouldResizePage && merged.type === "
|
|
87911
|
+
if (shouldResizePage && merged.type === "Page") {
|
|
87866
87912
|
merged.props = {
|
|
87867
87913
|
...merged.props || {},
|
|
87868
87914
|
...{ width: "100%", height: "100%" }
|
|
@@ -89268,7 +89314,7 @@ class ResizingManager {
|
|
|
89268
89314
|
const heightMode = (_g2 = (_f2 = widget == null ? void 0 : widget.props) == null ? void 0 : _f2.height) == null ? void 0 : _g2.mode;
|
|
89269
89315
|
const deltaX = currentX - resizeState.dragStartX;
|
|
89270
89316
|
const deltaY = currentY - resizeState.dragStartY;
|
|
89271
|
-
if (type5 === "
|
|
89317
|
+
if (type5 === "Icon") {
|
|
89272
89318
|
widthMode = (_i = (_h2 = widget == null ? void 0 : widget.props) == null ? void 0 : _h2.size) == null ? void 0 : _i.mode;
|
|
89273
89319
|
if (!widthMode) {
|
|
89274
89320
|
const parentInstanceId = widget == null ? void 0 : widget.parentInstanceId;
|
|
@@ -89345,13 +89391,13 @@ class ResizingManager {
|
|
|
89345
89391
|
}
|
|
89346
89392
|
resizeState.isApplyingResize = true;
|
|
89347
89393
|
const properties2 = {
|
|
89348
|
-
...resizeState.heightToUpdate && type5 !== "
|
|
89394
|
+
...resizeState.heightToUpdate && type5 !== "Icon" && {
|
|
89349
89395
|
height: Property.Dimension(resizeState.heightToUpdate)
|
|
89350
89396
|
},
|
|
89351
|
-
...resizeState.widthToUpdate && type5 !== "
|
|
89397
|
+
...resizeState.widthToUpdate && type5 !== "Icon" && {
|
|
89352
89398
|
width: Property.Dimension(resizeState.widthToUpdate)
|
|
89353
89399
|
},
|
|
89354
|
-
...resizeState.widthToUpdate && type5 === "
|
|
89400
|
+
...resizeState.widthToUpdate && type5 === "Icon" && {
|
|
89355
89401
|
size: Property.Dimension(resizeState.widthToUpdate)
|
|
89356
89402
|
},
|
|
89357
89403
|
...resizeState.marginLeftToUpdate && {
|
|
@@ -89391,8 +89437,8 @@ class UIStore {
|
|
|
89391
89437
|
_selectedInstanceIds: observable,
|
|
89392
89438
|
_focusedSourceId: observable,
|
|
89393
89439
|
_focusedInstanceId: observable,
|
|
89394
|
-
focusedSourceId: computed,
|
|
89395
|
-
focusedInstanceId: computed,
|
|
89440
|
+
focusedSourceId: computed$1,
|
|
89441
|
+
focusedInstanceId: computed$1,
|
|
89396
89442
|
setSelectedSourceIds: action,
|
|
89397
89443
|
setSelectedInstanceIds: action,
|
|
89398
89444
|
setFocusedSourceId: action,
|
|
@@ -89635,7 +89681,7 @@ function setEditStore(instance) {
|
|
|
89635
89681
|
}
|
|
89636
89682
|
const useObserverMemo = (fn3, deps) => {
|
|
89637
89683
|
return useMemo$2(() => {
|
|
89638
|
-
return computed(fn3);
|
|
89684
|
+
return computed$1(fn3);
|
|
89639
89685
|
}, deps).get();
|
|
89640
89686
|
};
|
|
89641
89687
|
const useStandaloneObserverMemo = (fn3, deps) => {
|
|
@@ -91386,14 +91432,14 @@ function getLoaderFn$1(options) {
|
|
|
91386
91432
|
if (!(loader === "all")) return [3, 3];
|
|
91387
91433
|
return [4, import(
|
|
91388
91434
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
91389
|
-
"./allPathsLoader-
|
|
91435
|
+
"./allPathsLoader-btoKYE5V.js"
|
|
91390
91436
|
)];
|
|
91391
91437
|
case 2:
|
|
91392
91438
|
return [2, _b2.sent().allPathsLoader];
|
|
91393
91439
|
case 3:
|
|
91394
91440
|
return [4, import(
|
|
91395
91441
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
91396
|
-
"./splitPathsBySizeLoader-
|
|
91442
|
+
"./splitPathsBySizeLoader-D4Fa2Noh.js"
|
|
91397
91443
|
)];
|
|
91398
91444
|
case 4:
|
|
91399
91445
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -91713,7 +91759,7 @@ SmallTick$1.defaultProps = {
|
|
|
91713
91759
|
size: IconSize$2.STANDARD
|
|
91714
91760
|
};
|
|
91715
91761
|
SmallTick$1.displayName = "Blueprint5.Icon.SmallTick";
|
|
91716
|
-
var Icon$
|
|
91762
|
+
var Icon$2 = React.forwardRef(function(props2, ref2) {
|
|
91717
91763
|
var _a2, _b2;
|
|
91718
91764
|
var _c2 = props2.autoLoad, autoLoad = _c2 === void 0 ? true : _c2, className = props2.className, color = props2.color, icon = props2.icon, intent = props2.intent, _d2 = props2.tagName, tagName = _d2 === void 0 ? "span" : _d2, svgProps = props2.svgProps, title = props2.title, htmlTitle = props2.htmlTitle, htmlProps = __rest$2(props2, ["autoLoad", "className", "color", "icon", "intent", "tagName", "svgProps", "title", "htmlTitle"]);
|
|
91719
91765
|
var size2 = (_b2 = (_a2 = props2.iconSize) !== null && _a2 !== void 0 ? _a2 : props2.size) !== null && _b2 !== void 0 ? _b2 : IconSize$2.STANDARD;
|
|
@@ -91769,7 +91815,7 @@ var Icon$1 = React.forwardRef(function(props2, ref2) {
|
|
|
91769
91815
|
}, removeNonHTMLProps$1(htmlProps)));
|
|
91770
91816
|
}
|
|
91771
91817
|
});
|
|
91772
|
-
Icon$
|
|
91818
|
+
Icon$2.displayName = "".concat(DISPLAYNAME_PREFIX$1, ".Icon");
|
|
91773
91819
|
var SpinnerSize$1;
|
|
91774
91820
|
(function(SpinnerSize2) {
|
|
91775
91821
|
SpinnerSize2[SpinnerSize2["SMALL"] = 20] = "SMALL";
|
|
@@ -91822,7 +91868,7 @@ var getViewBox$1 = function(strokeWidth) {
|
|
|
91822
91868
|
return "".concat(viewBoxX, " ").concat(viewBoxX, " ").concat(viewBoxWidth, " ").concat(viewBoxWidth);
|
|
91823
91869
|
};
|
|
91824
91870
|
var useIsomorphicLayoutEffect$8 = hasDOMEnvironment$1() ? React.useLayoutEffect : React.useEffect;
|
|
91825
|
-
var Text$
|
|
91871
|
+
var Text$2 = React.forwardRef(function(_a2, forwardedRef) {
|
|
91826
91872
|
var _b2;
|
|
91827
91873
|
var children = _a2.children, _c2 = _a2.tagName, tagName = _c2 === void 0 ? "div" : _c2, title = _a2.title, className = _a2.className, _d2 = _a2.ellipsize, ellipsize = _d2 === void 0 ? false : _d2, htmlProps = __rest$2(_a2, ["children", "tagName", "title", "className", "ellipsize"]);
|
|
91828
91874
|
var contentMeasuringRef = React.useRef();
|
|
@@ -91840,12 +91886,12 @@ var Text$1 = React.forwardRef(function(_a2, forwardedRef) {
|
|
|
91840
91886
|
}, [contentMeasuringRef, children, ellipsize]);
|
|
91841
91887
|
return React.createElement(tagName, __assign$2(__assign$2({}, htmlProps), { className: classNames((_b2 = {}, _b2[TEXT_OVERFLOW_ELLIPSIS$1] = ellipsize, _b2), className), ref: textRef, title: title !== null && title !== void 0 ? title : isContentOverflowing ? textContent : void 0 }), children);
|
|
91842
91888
|
});
|
|
91843
|
-
Text$
|
|
91844
|
-
var Button$
|
|
91889
|
+
Text$2.displayName = "".concat(DISPLAYNAME_PREFIX$1, ".Text");
|
|
91890
|
+
var Button$5 = React.forwardRef(function(props2, ref2) {
|
|
91845
91891
|
var commonAttributes = useSharedButtonAttributes$1(props2, ref2);
|
|
91846
91892
|
return React.createElement("button", __assign$2({ type: "button" }, removeNonHTMLProps$1(props2), commonAttributes), renderButtonContents$1(props2));
|
|
91847
91893
|
});
|
|
91848
|
-
Button$
|
|
91894
|
+
Button$5.displayName = "".concat(DISPLAYNAME_PREFIX$1, ".Button");
|
|
91849
91895
|
var AnchorButton$1 = React.forwardRef(function(props2, ref2) {
|
|
91850
91896
|
var href2 = props2.href;
|
|
91851
91897
|
var commonProps = useSharedButtonAttributes$1(props2, ref2, {
|
|
@@ -91870,14 +91916,14 @@ function renderButtonContents$1(props2) {
|
|
|
91870
91916
|
React.Fragment,
|
|
91871
91917
|
null,
|
|
91872
91918
|
loading2 && React.createElement(Spinner$1, { key: "loading", className: BUTTON_SPINNER$1, size: SpinnerSize$1.SMALL }),
|
|
91873
|
-
React.createElement(Icon$
|
|
91919
|
+
React.createElement(Icon$2, { key: "leftIcon", icon }),
|
|
91874
91920
|
hasTextContent && React.createElement(
|
|
91875
|
-
Text$
|
|
91921
|
+
Text$2,
|
|
91876
91922
|
{ key: "text", className: classNames(BUTTON_TEXT$1, textClassName), ellipsize: ellipsizeText, tagName: "span" },
|
|
91877
91923
|
text,
|
|
91878
91924
|
children
|
|
91879
91925
|
),
|
|
91880
|
-
React.createElement(Icon$
|
|
91926
|
+
React.createElement(Icon$2, { key: "rightIcon", icon: rightIcon })
|
|
91881
91927
|
);
|
|
91882
91928
|
}
|
|
91883
91929
|
function _inheritsLoose(t3, o) {
|
|
@@ -96875,9 +96921,9 @@ var MenuItem$1 = React.forwardRef(function(props2, ref2) {
|
|
|
96875
96921
|
React.createElement(
|
|
96876
96922
|
"span",
|
|
96877
96923
|
{ className: MENU_ITEM_ICON$1 },
|
|
96878
|
-
React.createElement(Icon$
|
|
96924
|
+
React.createElement(Icon$2, { icon, "aria-hidden": true, tabIndex: -1 })
|
|
96879
96925
|
)
|
|
96880
|
-
) : void 0, React.createElement(Text$
|
|
96926
|
+
) : void 0, React.createElement(Text$2, { className: classNames(FILL$1, textClassName), ellipsize: !multiline, title: htmlTitle }, text), maybeLabel, hasSubmenu ? React.createElement(CaretRight$1, { className: MENU_SUBMENU_ICON$1, title: "Open sub menu" }) : void 0);
|
|
96881
96927
|
var liClasses = classNames((_b2 = {}, _b2[MENU_SUBMENU$1] = hasSubmenu, _b2));
|
|
96882
96928
|
return React.createElement("li", { className: liClasses, ref: ref2, role: liRole, "aria-selected": ariaSelected }, children == null ? target : React.createElement(Popover$1, __assign$2({ autoFocus: false, captureDismiss: false, disabled, enforceFocus: false, hoverCloseDelay: 0, interactionKind: "hover", modifiers: SUBMENU_POPOVER_MODIFIERS$1, targetProps: { role: targetRole, tabIndex: 0 }, placement: "right-start", usePortal: false }, popoverProps, { content: React.createElement(Menu$1, __assign$2({}, submenuProps), children), minimal: true, popoverClassName: classNames(MENU_SUBMENU$1, popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.popoverClassName) }), target));
|
|
96883
96929
|
});
|
|
@@ -97047,7 +97093,7 @@ var InputGroup$1 = (
|
|
|
97047
97093
|
if (leftElement != null) {
|
|
97048
97094
|
return React.createElement("span", { className: INPUT_LEFT_CONTAINER$1, ref: this.refHandlers.leftElement }, leftElement);
|
|
97049
97095
|
} else if (leftIcon != null) {
|
|
97050
|
-
return React.createElement(Icon$
|
|
97096
|
+
return React.createElement(Icon$2, { icon: leftIcon, "aria-hidden": true, tabIndex: -1 });
|
|
97051
97097
|
}
|
|
97052
97098
|
return void 0;
|
|
97053
97099
|
};
|
|
@@ -97425,8 +97471,8 @@ var NumericInput = (
|
|
|
97425
97471
|
return React.createElement(
|
|
97426
97472
|
ButtonGroup,
|
|
97427
97473
|
{ className: FIXED, key: "button-group", vertical: true },
|
|
97428
|
-
React.createElement(Button$
|
|
97429
|
-
React.createElement(Button$
|
|
97474
|
+
React.createElement(Button$5, __assign$2({ "aria-label": "increment", "aria-controls": this.numericInputId, disabled: disabled || isIncrementDisabled, icon: React.createElement(ChevronUp, null), intent }, this.incrementButtonHandlers)),
|
|
97475
|
+
React.createElement(Button$5, __assign$2({ "aria-label": "decrement", "aria-controls": this.numericInputId, disabled: disabled || isDecrementDisabled, icon: React.createElement(ChevronDown, null), intent }, this.decrementButtonHandlers))
|
|
97430
97476
|
);
|
|
97431
97477
|
};
|
|
97432
97478
|
NumericInput2.prototype.renderInput = function() {
|
|
@@ -97596,9 +97642,9 @@ var Tag = React.forwardRef(function(props2, ref2) {
|
|
|
97596
97642
|
return React.createElement(
|
|
97597
97643
|
"span",
|
|
97598
97644
|
__assign$2({}, removeNonHTMLProps$1(htmlProps), interactiveProps, { className: tagClasses }),
|
|
97599
|
-
React.createElement(Icon$
|
|
97600
|
-
!isReactNodeEmpty$1(children) && React.createElement(Text$
|
|
97601
|
-
React.createElement(Icon$
|
|
97645
|
+
React.createElement(Icon$2, { icon }),
|
|
97646
|
+
!isReactNodeEmpty$1(children) && React.createElement(Text$2, { className: FILL$1, ellipsize: !multiline, tagName: "span", title: htmlTitle }, children),
|
|
97647
|
+
React.createElement(Icon$2, { icon: rightIcon }),
|
|
97602
97648
|
isRemovable && React.createElement(TagRemoveButton, __assign$2({}, props2))
|
|
97603
97649
|
);
|
|
97604
97650
|
});
|
|
@@ -97755,7 +97801,7 @@ var TagInput = (
|
|
|
97755
97801
|
return React.createElement(
|
|
97756
97802
|
"div",
|
|
97757
97803
|
{ className: classes, onBlur: this.handleContainerBlur, onClick: this.handleContainerClick },
|
|
97758
|
-
React.createElement(Icon$
|
|
97804
|
+
React.createElement(Icon$2, { className: TAG_INPUT_ICON, icon: leftIcon, size: isLarge ? IconSize$2.LARGE : IconSize$2.STANDARD }),
|
|
97759
97805
|
React.createElement(
|
|
97760
97806
|
"div",
|
|
97761
97807
|
{ className: TAG_INPUT_VALUES },
|
|
@@ -100487,9 +100533,9 @@ const createBindableEntityProxy = (entityAccessor, identifier2) => {
|
|
|
100487
100533
|
};
|
|
100488
100534
|
const existingScopeIds = /* @__PURE__ */ new Set();
|
|
100489
100535
|
function internalCreateScope(getInitialEntities, options) {
|
|
100490
|
-
return
|
|
100536
|
+
return createScope(getInitialEntities, options);
|
|
100491
100537
|
}
|
|
100492
|
-
function
|
|
100538
|
+
function createScope(getInitialEntities, options) {
|
|
100493
100539
|
const { parentScopeId, name } = options;
|
|
100494
100540
|
if (!name) {
|
|
100495
100541
|
throw new Error("Scope name is required");
|
|
@@ -101114,7 +101160,7 @@ const useButtonContent = (props2, forceTextColorWhenDisabled) => {
|
|
|
101114
101160
|
styleForText
|
|
101115
101161
|
]);
|
|
101116
101162
|
};
|
|
101117
|
-
const Button$
|
|
101163
|
+
const Button$4 = (props2) => {
|
|
101118
101164
|
const {
|
|
101119
101165
|
buttonStyle,
|
|
101120
101166
|
border: border2,
|
|
@@ -111669,7 +111715,7 @@ const DuplicatedNamePopover = observer(({ name, children, showWarning, sourceId
|
|
|
111669
111715
|
] }),
|
|
111670
111716
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit: handleRename, className: FormWrapperClassName, children: [
|
|
111671
111717
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
111672
|
-
|
|
111718
|
+
Input$1,
|
|
111673
111719
|
{
|
|
111674
111720
|
value: newName,
|
|
111675
111721
|
onChange: (e3) => setNewName(e3.target.value)
|
|
@@ -112570,7 +112616,7 @@ const containerLayout = (sizeProps) => Prop.union({
|
|
|
112570
112616
|
props: {
|
|
112571
112617
|
marginTop: Property.Dimension(Dim.row(gridPosition.yGU)),
|
|
112572
112618
|
marginLeft: Property.Dimension(Dim.col(gridPosition.xGU)),
|
|
112573
|
-
...type5 === "
|
|
112619
|
+
...type5 === "Icon" ? {
|
|
112574
112620
|
size: Property.Dimension(Dim.col(gridPosition.widthGU))
|
|
112575
112621
|
} : {
|
|
112576
112622
|
width: Property.Dimension(
|
|
@@ -112602,7 +112648,7 @@ const containerLayout = (sizeProps) => Prop.union({
|
|
|
112602
112648
|
marginTop: Property.Static(""),
|
|
112603
112649
|
marginLeft: Property.Static(""),
|
|
112604
112650
|
constraintTop: Property.Static(""),
|
|
112605
|
-
...type5 === "
|
|
112651
|
+
...type5 === "Icon" ? {
|
|
112606
112652
|
size: Property.Dimension(Dim.px(elementRect.width))
|
|
112607
112653
|
} : {
|
|
112608
112654
|
width: Property.Dimension(Dim.px(elementRect.width)),
|
|
@@ -112679,7 +112725,7 @@ const containerLayout = (sizeProps) => Prop.union({
|
|
|
112679
112725
|
}
|
|
112680
112726
|
]
|
|
112681
112727
|
});
|
|
112682
|
-
const basicLayout = () => Section.category(PropsPanelCategory.Layout).add(size$2()).add(margin()).add(visible());
|
|
112728
|
+
const basicLayout = () => Section$1.category(PropsPanelCategory.Layout).add(size$2()).add(margin()).add(visible());
|
|
112683
112729
|
const InvisiblePattern = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='12'%20height='12'%20fill='transparent'%20/%3e%3cline%20x1='0'%20y1='12'%20x2='12'%20y2='0'%20stroke='%23C6CAD2'%20stroke-width='0.5'%20transform='rotate(-90%206%206)'%20/%3e%3c/svg%3e";
|
|
112684
112730
|
const canUseDOM$1 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
112685
112731
|
function isWindow(element) {
|
|
@@ -116913,7 +116959,7 @@ function getParentInfo(parent) {
|
|
|
116913
116959
|
function getModalChildren(modalName) {
|
|
116914
116960
|
return [
|
|
116915
116961
|
{
|
|
116916
|
-
tagName: "
|
|
116962
|
+
tagName: "Container",
|
|
116917
116963
|
properties: {
|
|
116918
116964
|
variant: Property.Static("none"),
|
|
116919
116965
|
width: Property.Dimension(Dim.fill()),
|
|
@@ -116922,7 +116968,7 @@ function getModalChildren(modalName) {
|
|
|
116922
116968
|
},
|
|
116923
116969
|
children: [
|
|
116924
116970
|
{
|
|
116925
|
-
tagName: "
|
|
116971
|
+
tagName: "Text",
|
|
116926
116972
|
properties: {
|
|
116927
116973
|
text: Property.Static("Modal Title"),
|
|
116928
116974
|
textStyle: Property.Static({
|
|
@@ -116934,7 +116980,7 @@ function getModalChildren(modalName) {
|
|
|
116934
116980
|
]
|
|
116935
116981
|
},
|
|
116936
116982
|
{
|
|
116937
|
-
tagName: "
|
|
116983
|
+
tagName: "Container",
|
|
116938
116984
|
properties: {
|
|
116939
116985
|
variant: Property.Static("none"),
|
|
116940
116986
|
width: Property.Dimension(Dim.fill()),
|
|
@@ -116943,7 +116989,7 @@ function getModalChildren(modalName) {
|
|
|
116943
116989
|
children: []
|
|
116944
116990
|
},
|
|
116945
116991
|
{
|
|
116946
|
-
tagName: "
|
|
116992
|
+
tagName: "Container",
|
|
116947
116993
|
properties: {
|
|
116948
116994
|
spacing: Property.Dimension(Dim.px(8)),
|
|
116949
116995
|
width: Property.Dimension(Dim.fill()),
|
|
@@ -116953,7 +116999,7 @@ function getModalChildren(modalName) {
|
|
|
116953
116999
|
},
|
|
116954
117000
|
children: [
|
|
116955
117001
|
{
|
|
116956
|
-
tagName: "
|
|
117002
|
+
tagName: "Button",
|
|
116957
117003
|
properties: {
|
|
116958
117004
|
label: Property.Static("Cancel"),
|
|
116959
117005
|
variant: Property.Static("secondary"),
|
|
@@ -116969,7 +117015,7 @@ function getModalChildren(modalName) {
|
|
|
116969
117015
|
children: []
|
|
116970
117016
|
},
|
|
116971
117017
|
{
|
|
116972
|
-
tagName: "
|
|
117018
|
+
tagName: "Button",
|
|
116973
117019
|
properties: {
|
|
116974
117020
|
label: Property.Static("Confirm")
|
|
116975
117021
|
},
|
|
@@ -116982,7 +117028,7 @@ function getModalChildren(modalName) {
|
|
|
116982
117028
|
function getSlideoutChildren() {
|
|
116983
117029
|
return [
|
|
116984
117030
|
{
|
|
116985
|
-
tagName: "
|
|
117031
|
+
tagName: "Container",
|
|
116986
117032
|
properties: {
|
|
116987
117033
|
variant: Property.Static("none"),
|
|
116988
117034
|
width: Property.Dimension(Dim.fill()),
|
|
@@ -116991,7 +117037,7 @@ function getSlideoutChildren() {
|
|
|
116991
117037
|
},
|
|
116992
117038
|
children: [
|
|
116993
117039
|
{
|
|
116994
|
-
tagName: "
|
|
117040
|
+
tagName: "Text",
|
|
116995
117041
|
properties: {
|
|
116996
117042
|
text: Property.Static("Slideout Title"),
|
|
116997
117043
|
textStyle: Property.Static({
|
|
@@ -117003,7 +117049,7 @@ function getSlideoutChildren() {
|
|
|
117003
117049
|
]
|
|
117004
117050
|
},
|
|
117005
117051
|
{
|
|
117006
|
-
tagName: "
|
|
117052
|
+
tagName: "Container",
|
|
117007
117053
|
properties: {
|
|
117008
117054
|
variant: Property.Static("none"),
|
|
117009
117055
|
width: Property.Dimension(Dim.fill()),
|
|
@@ -117018,7 +117064,7 @@ function getSlideoutChildren() {
|
|
|
117018
117064
|
function getSectionChildren() {
|
|
117019
117065
|
return [
|
|
117020
117066
|
{
|
|
117021
|
-
tagName: "
|
|
117067
|
+
tagName: "Column",
|
|
117022
117068
|
properties: {
|
|
117023
117069
|
width: Property.Dimension(Dim.fill()),
|
|
117024
117070
|
height: Property.Dimension(Dim.fill())
|
|
@@ -117033,10 +117079,10 @@ function getTriggerComponent({
|
|
|
117033
117079
|
primaryComponentName,
|
|
117034
117080
|
triggerComponentId
|
|
117035
117081
|
}) {
|
|
117036
|
-
if (componentType === "
|
|
117082
|
+
if (componentType === "Modal") {
|
|
117037
117083
|
return {
|
|
117038
117084
|
parentElement,
|
|
117039
|
-
tagName: "
|
|
117085
|
+
tagName: "Button",
|
|
117040
117086
|
id: triggerComponentId,
|
|
117041
117087
|
properties: {
|
|
117042
117088
|
label: Property.Static("Open Modal"),
|
|
@@ -117051,10 +117097,10 @@ function getTriggerComponent({
|
|
|
117051
117097
|
},
|
|
117052
117098
|
children: []
|
|
117053
117099
|
};
|
|
117054
|
-
} else if (componentType === "
|
|
117100
|
+
} else if (componentType === "Slideout") {
|
|
117055
117101
|
return {
|
|
117056
117102
|
parentElement,
|
|
117057
|
-
tagName: "
|
|
117103
|
+
tagName: "Button",
|
|
117058
117104
|
id: triggerComponentId,
|
|
117059
117105
|
properties: {
|
|
117060
117106
|
label: Property.Static("Open Slideout"),
|
|
@@ -117077,26 +117123,26 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117077
117123
|
const customComponents = rootStore.componentRegistry.customComponentList;
|
|
117078
117124
|
const properties2 = {};
|
|
117079
117125
|
let children = [];
|
|
117080
|
-
const shouldProvideAName = componentType === "
|
|
117081
|
-
componentType === "
|
|
117082
|
-
componentType === "
|
|
117126
|
+
const shouldProvideAName = componentType === "Input" || componentType === "Dropdown" || componentType === "DatePicker" || componentType === "Checkbox" || componentType === "Switch" || componentType === "Modal" || componentType === "Slideout" || componentType === "Table" || // Components not yet implemented
|
|
117127
|
+
componentType === "Form" || componentType === "Radio" || componentType === "RichText" || componentType === "FilePicker" || componentType === "CodeEditor" || componentType === "Chat" || // Components that can be implicitly created when dropping on a page or section
|
|
117128
|
+
componentType === "Section" || componentType === "Column" || // All components dropped in a grid
|
|
117083
117129
|
parentInfo.isGridLike || // All custom components
|
|
117084
117130
|
customComponents.includes(componentType);
|
|
117085
|
-
const isContainer = componentType === "
|
|
117086
|
-
if (isContainer && componentType !== "
|
|
117131
|
+
const isContainer = componentType === "Section" || componentType === "Column" || componentType === "Container" || componentType === "Modal" || componentType === "Slideout";
|
|
117132
|
+
if (isContainer && componentType !== "Modal" && componentType !== "Slideout") {
|
|
117087
117133
|
properties2.width = Property.Dimension(Dim.fill());
|
|
117088
117134
|
}
|
|
117089
117135
|
if (shouldProvideAName) {
|
|
117090
117136
|
properties2.name = Property.Static(getUniqueName(componentType));
|
|
117091
117137
|
}
|
|
117092
117138
|
switch (componentType) {
|
|
117093
|
-
case "
|
|
117139
|
+
case "Text":
|
|
117094
117140
|
properties2.text = Property.Static("Hello, world!");
|
|
117095
117141
|
break;
|
|
117096
|
-
case "
|
|
117142
|
+
case "Input":
|
|
117097
117143
|
properties2.label = Property.Static("Label");
|
|
117098
117144
|
break;
|
|
117099
|
-
case "
|
|
117145
|
+
case "Button":
|
|
117100
117146
|
properties2.label = Property.Static("Submit");
|
|
117101
117147
|
properties2.onClick = Property.Event([
|
|
117102
117148
|
{
|
|
@@ -117106,7 +117152,7 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117106
117152
|
}
|
|
117107
117153
|
]);
|
|
117108
117154
|
break;
|
|
117109
|
-
case "
|
|
117155
|
+
case "Image":
|
|
117110
117156
|
properties2.src = Property.Static(
|
|
117111
117157
|
"https://lowcode.s3.us-west-2.amazonaws.com/eilish-billie.jpeg"
|
|
117112
117158
|
);
|
|
@@ -117114,7 +117160,7 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117114
117160
|
properties2.width = parentInfo.isGridLike ? Property.Dimension(Dim.col(4)) : Property.Dimension(Dim.px(300));
|
|
117115
117161
|
properties2.height = Property.Dimension(Dim.fit());
|
|
117116
117162
|
break;
|
|
117117
|
-
case "
|
|
117163
|
+
case "KeyValue":
|
|
117118
117164
|
properties2.sourceData = Property.Static({
|
|
117119
117165
|
id: 123,
|
|
117120
117166
|
name: "John Smith",
|
|
@@ -117158,7 +117204,7 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117158
117204
|
}
|
|
117159
117205
|
});
|
|
117160
117206
|
break;
|
|
117161
|
-
case "
|
|
117207
|
+
case "Dropdown":
|
|
117162
117208
|
properties2.label = Property.Static("Label");
|
|
117163
117209
|
properties2.options = Property.Computed([
|
|
117164
117210
|
{ label: "All statuses", value: "all" },
|
|
@@ -117171,26 +117217,26 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117171
117217
|
{ label: "On hold", value: "on_hold" }
|
|
117172
117218
|
]);
|
|
117173
117219
|
break;
|
|
117174
|
-
case "
|
|
117220
|
+
case "Modal":
|
|
117175
117221
|
children = getModalChildren((_a2 = properties2.name) == null ? void 0 : _a2.value);
|
|
117176
117222
|
break;
|
|
117177
|
-
case "
|
|
117223
|
+
case "Slideout":
|
|
117178
117224
|
children = getSlideoutChildren();
|
|
117179
117225
|
break;
|
|
117180
|
-
case "
|
|
117226
|
+
case "Checkbox":
|
|
117181
117227
|
properties2.label = Property.Static("Label");
|
|
117182
117228
|
break;
|
|
117183
|
-
case "
|
|
117229
|
+
case "DatePicker":
|
|
117184
117230
|
properties2.label = Property.Static("Label");
|
|
117185
117231
|
properties2.defaultDate = Property.Static((/* @__PURE__ */ new Date()).toISOString());
|
|
117186
117232
|
break;
|
|
117187
|
-
case "
|
|
117233
|
+
case "Switch":
|
|
117188
117234
|
properties2.label = Property.Static("Label");
|
|
117189
117235
|
break;
|
|
117190
|
-
case "
|
|
117236
|
+
case "Section":
|
|
117191
117237
|
children = getSectionChildren();
|
|
117192
117238
|
break;
|
|
117193
|
-
case "
|
|
117239
|
+
case "Table":
|
|
117194
117240
|
properties2.tableData = Property.Static(DEFAULT_TABLE_DATA);
|
|
117195
117241
|
properties2.columns = Property.Static(DEFAULT_TABLE_COLUMNS);
|
|
117196
117242
|
properties2.header = Property.Static("Customers");
|
|
@@ -117215,7 +117261,7 @@ function getComponentBaseProperties(componentType, parentInfo) {
|
|
|
117215
117261
|
};
|
|
117216
117262
|
}
|
|
117217
117263
|
const getUniqueName = (componentType) => {
|
|
117218
|
-
const baseName = componentType
|
|
117264
|
+
const baseName = componentType;
|
|
117219
117265
|
let counter2 = 1;
|
|
117220
117266
|
let name = `${baseName}${counter2}`;
|
|
117221
117267
|
while (rootStore.nameManager.hasEntityWithName(name)) {
|
|
@@ -117225,10 +117271,10 @@ const getUniqueName = (componentType) => {
|
|
|
117225
117271
|
return name;
|
|
117226
117272
|
};
|
|
117227
117273
|
function checkComponentForParentTypeBeforeCreating(componentType, parentType) {
|
|
117228
|
-
if (componentType === "
|
|
117274
|
+
if (componentType === "Section" && parentType !== "Page") {
|
|
117229
117275
|
return false;
|
|
117230
117276
|
}
|
|
117231
|
-
if (componentType === "
|
|
117277
|
+
if (componentType === "Column" && parentType !== "Section" && parentType !== "Page") {
|
|
117232
117278
|
return false;
|
|
117233
117279
|
}
|
|
117234
117280
|
return true;
|
|
@@ -117252,7 +117298,7 @@ async function createComponent({
|
|
|
117252
117298
|
componentType,
|
|
117253
117299
|
parentInfo.type
|
|
117254
117300
|
);
|
|
117255
|
-
const isGridLike = willWrapInSectionAndColumn && componentType !== "
|
|
117301
|
+
const isGridLike = willWrapInSectionAndColumn && componentType !== "Column" ? true : parentInfo.isGridLike;
|
|
117256
117302
|
const tagName = componentType;
|
|
117257
117303
|
const {
|
|
117258
117304
|
properties: propertiesFromType,
|
|
@@ -117276,7 +117322,7 @@ async function createComponent({
|
|
|
117276
117322
|
);
|
|
117277
117323
|
const pageComponent = editStore2.runtimeEntitiesManager.getClosestAncestorByType(
|
|
117278
117324
|
parentInstanceId,
|
|
117279
|
-
"
|
|
117325
|
+
"Page"
|
|
117280
117326
|
);
|
|
117281
117327
|
const pageSource = {
|
|
117282
117328
|
source: {
|
|
@@ -117334,32 +117380,32 @@ async function createComponent({
|
|
|
117334
117380
|
}
|
|
117335
117381
|
function wrapInSectionColumnIfDroppingOnPage(primaryComponent, parentType) {
|
|
117336
117382
|
const { properties: sectionProperties } = getComponentBaseProperties(
|
|
117337
|
-
"
|
|
117383
|
+
"Section",
|
|
117338
117384
|
{
|
|
117339
117385
|
isGridLike: false
|
|
117340
117386
|
// parent is a page
|
|
117341
117387
|
}
|
|
117342
117388
|
);
|
|
117343
|
-
if (primaryComponent.tagName === "
|
|
117389
|
+
if (primaryComponent.tagName === "Column") {
|
|
117344
117390
|
return {
|
|
117345
117391
|
parentElement: primaryComponent.parentElement,
|
|
117346
|
-
tagName: "
|
|
117392
|
+
tagName: "Section",
|
|
117347
117393
|
id: getEditStore().operationManager.generateSourceId(),
|
|
117348
117394
|
properties: sectionProperties,
|
|
117349
117395
|
children: [primaryComponent]
|
|
117350
117396
|
};
|
|
117351
117397
|
}
|
|
117352
117398
|
const { properties: columnProperties } = getComponentBaseProperties(
|
|
117353
|
-
"
|
|
117399
|
+
"Column",
|
|
117354
117400
|
{
|
|
117355
117401
|
isGridLike: false
|
|
117356
117402
|
// parent is section
|
|
117357
117403
|
}
|
|
117358
117404
|
);
|
|
117359
|
-
if (parentType === "
|
|
117405
|
+
if (parentType === "Section") {
|
|
117360
117406
|
return {
|
|
117361
117407
|
parentElement: primaryComponent.parentElement,
|
|
117362
|
-
tagName: "
|
|
117408
|
+
tagName: "Column",
|
|
117363
117409
|
id: getEditStore().operationManager.generateSourceId(),
|
|
117364
117410
|
properties: columnProperties,
|
|
117365
117411
|
children: [primaryComponent]
|
|
@@ -117367,12 +117413,12 @@ function wrapInSectionColumnIfDroppingOnPage(primaryComponent, parentType) {
|
|
|
117367
117413
|
}
|
|
117368
117414
|
return {
|
|
117369
117415
|
parentElement: primaryComponent.parentElement,
|
|
117370
|
-
tagName: "
|
|
117416
|
+
tagName: "Section",
|
|
117371
117417
|
id: getEditStore().operationManager.generateSourceId(),
|
|
117372
117418
|
properties: sectionProperties,
|
|
117373
117419
|
children: [
|
|
117374
117420
|
{
|
|
117375
|
-
tagName: "
|
|
117421
|
+
tagName: "Column",
|
|
117376
117422
|
id: getEditStore().operationManager.generateSourceId(),
|
|
117377
117423
|
properties: {
|
|
117378
117424
|
...columnProperties,
|
|
@@ -117418,7 +117464,7 @@ const handleGridDropWithinCanvas = (params) => {
|
|
|
117418
117464
|
const propsToChange = droppedWidgetConstraints ? {
|
|
117419
117465
|
marginTop: Property.Dimension(Dim.row(droppedWidgetConstraints.top)),
|
|
117420
117466
|
marginLeft: Property.Dimension(Dim.col(droppedWidgetConstraints.left)),
|
|
117421
|
-
...draggedType === "
|
|
117467
|
+
...draggedType === "Icon" ? { size: size2 } : { width, height },
|
|
117422
117468
|
constraintTop: Property.Expression(
|
|
117423
117469
|
JSON.stringify(droppedWidgetConstraints.constraintTop)
|
|
117424
117470
|
)
|
|
@@ -117492,7 +117538,7 @@ const mergeDroppedDimensions = (draggedType, draggedProps, activeDragRect) => {
|
|
|
117492
117538
|
});
|
|
117493
117539
|
const width = safeExistingDimensions.width ?? ((activeDragRect == null ? void 0 : activeDragRect.width) ? Property.Dimension(Dim.px(activeDragRect.width)) : Property.Static(""));
|
|
117494
117540
|
const height = safeExistingDimensions.height ?? ((activeDragRect == null ? void 0 : activeDragRect.height) ? Property.Dimension(Dim.px(activeDragRect.height)) : Property.Static(""));
|
|
117495
|
-
if (draggedType === "
|
|
117541
|
+
if (draggedType === "Icon") {
|
|
117496
117542
|
const size2 = safeExistingDimensions.size ?? ((activeDragRect == null ? void 0 : activeDragRect.height) ? Property.Dimension(Dim.px(activeDragRect.height)) : Property.Static(""));
|
|
117497
117543
|
return { size: size2 };
|
|
117498
117544
|
}
|
|
@@ -117571,7 +117617,7 @@ const dropComponentInWrappingSectionOrColumn = async (params) => {
|
|
|
117571
117617
|
}
|
|
117572
117618
|
const scopeName = rootStore.entityManager.getScopeName(dropScopeId);
|
|
117573
117619
|
const newComponentSourceId = await createComponent({
|
|
117574
|
-
componentType: dropTargetType === "
|
|
117620
|
+
componentType: dropTargetType === "Page" ? "Section" : "Column",
|
|
117575
117621
|
parent: { index: dropInfo.insertionIndex, id: dropSourceId },
|
|
117576
117622
|
scopeName
|
|
117577
117623
|
});
|
|
@@ -118035,7 +118081,7 @@ const AddSectionButton = ({
|
|
|
118035
118081
|
const indexForNewSection = placement === "above" ? indexForBaseSection : indexForBaseSection + 1;
|
|
118036
118082
|
const createSection = useCallback(async () => {
|
|
118037
118083
|
const newSectionSourceId = await createComponent({
|
|
118038
|
-
componentType: "
|
|
118084
|
+
componentType: "Section",
|
|
118039
118085
|
parent: { id: sectionParentSourceId, index: indexForNewSection },
|
|
118040
118086
|
scopeName: sectionParentScopeName
|
|
118041
118087
|
});
|
|
@@ -118085,7 +118131,7 @@ const AddSectionButtons = ({
|
|
|
118085
118131
|
var _a2;
|
|
118086
118132
|
const editStore2 = getEditStore();
|
|
118087
118133
|
const currentSection = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(sectionInstanceId);
|
|
118088
|
-
if (!currentSection || currentSection.type !== "
|
|
118134
|
+
if (!currentSection || currentSection.type !== "Section") {
|
|
118089
118135
|
console.error("currentSection not found");
|
|
118090
118136
|
return null;
|
|
118091
118137
|
}
|
|
@@ -118137,7 +118183,7 @@ const canResizeHeight = (heightMode) => {
|
|
|
118137
118183
|
const useResizeCapabilities = (instanceId) => {
|
|
118138
118184
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
118139
118185
|
const widget = (_a2 = rootStore.editStore) == null ? void 0 : _a2.runtimeEntitiesManager.getEditorWidgetMeta(instanceId);
|
|
118140
|
-
if ((widget == null ? void 0 : widget.type) === "
|
|
118186
|
+
if ((widget == null ? void 0 : widget.type) === "Icon") {
|
|
118141
118187
|
const sizeMode = (_c2 = (_b2 = widget.props) == null ? void 0 : _b2.size) == null ? void 0 : _c2.mode;
|
|
118142
118188
|
return {
|
|
118143
118189
|
canResizeWidth: sizeMode != null && sizeMode !== "fit",
|
|
@@ -118316,7 +118362,7 @@ const InteractionRectHandles = (props2) => {
|
|
|
118316
118362
|
}
|
|
118317
118363
|
}
|
|
118318
118364
|
},
|
|
118319
|
-
content: /* @__PURE__ */ jsxRuntimeExports.jsx(NotifierTooltipBody, { children: pos2 === "left" || pos2 === "right" ? "Width cannot be resized. Change width to pixel to enable manual resizing." : pos2 === "top" || pos2 === "bottom" ? type5 === "
|
|
118365
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsx(NotifierTooltipBody, { children: pos2 === "left" || pos2 === "right" ? "Width cannot be resized. Change width to pixel to enable manual resizing." : pos2 === "top" || pos2 === "bottom" ? type5 === "Icon" ? "Icons can be resized by changing its width." : "Height cannot be resized. Change height to pixel to enable manual resizing." : "" }),
|
|
118320
118366
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" } })
|
|
118321
118367
|
}
|
|
118322
118368
|
)
|
|
@@ -118398,7 +118444,7 @@ const NamePillDiv = (params) => {
|
|
|
118398
118444
|
},
|
|
118399
118445
|
children: [
|
|
118400
118446
|
type5 === "ERROR" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
118401
|
-
Icon$
|
|
118447
|
+
Icon$2,
|
|
118402
118448
|
{
|
|
118403
118449
|
icon: "error",
|
|
118404
118450
|
color: colors.WHITE,
|
|
@@ -118562,7 +118608,7 @@ const InteractionRect = (props2) => {
|
|
|
118562
118608
|
}
|
|
118563
118609
|
}
|
|
118564
118610
|
),
|
|
118565
|
-
type5 === "
|
|
118611
|
+
type5 === "Column" && /* @__PURE__ */ jsxRuntimeExports.jsx(AddSectionButtons, { sectionInstanceId: parentInstanceId })
|
|
118566
118612
|
] }),
|
|
118567
118613
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
118568
118614
|
"div",
|
|
@@ -118608,7 +118654,7 @@ const InteractionRect = (props2) => {
|
|
|
118608
118654
|
selectionType
|
|
118609
118655
|
}
|
|
118610
118656
|
),
|
|
118611
|
-
type5 === "
|
|
118657
|
+
type5 === "Section" && /* @__PURE__ */ jsxRuntimeExports.jsx(AddSectionButtons, { sectionInstanceId: instanceId }),
|
|
118612
118658
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
118613
118659
|
NamePill,
|
|
118614
118660
|
{
|
|
@@ -118712,7 +118758,7 @@ function getFocusedWidget(event, rootType, rootElement, editStore2, isExtended)
|
|
|
118712
118758
|
function useWidgetHover(rootType) {
|
|
118713
118759
|
useEffect(() => {
|
|
118714
118760
|
const rootElement = document.getElementById(
|
|
118715
|
-
rootType === "
|
|
118761
|
+
rootType === "Page" ? CANVAS_ROOT_ID : PORTAL_ROOT_ID
|
|
118716
118762
|
);
|
|
118717
118763
|
const editStore2 = getEditStore();
|
|
118718
118764
|
const handleMouseMove = (event) => {
|
|
@@ -118746,15 +118792,15 @@ function useWidgetHover(rootType) {
|
|
|
118746
118792
|
}, [rootType]);
|
|
118747
118793
|
}
|
|
118748
118794
|
const DETACHED_COMPONENT_TYPES = [
|
|
118749
|
-
"
|
|
118750
|
-
"
|
|
118795
|
+
"Modal",
|
|
118796
|
+
"Slideout"
|
|
118751
118797
|
];
|
|
118752
118798
|
const InteractionLayer = observer(
|
|
118753
118799
|
(props2) => {
|
|
118754
118800
|
useWidgetHover(props2.rootType);
|
|
118755
118801
|
const { scopeId } = useScope();
|
|
118756
118802
|
const editStore2 = getEditStore();
|
|
118757
|
-
const isActive2 = editStore2.interactionLayerManager.activeRootInstanceId === props2.rootInstanceId || editStore2.interactionLayerManager.activeRootInstanceId === void 0 && props2.rootType === "
|
|
118803
|
+
const isActive2 = editStore2.interactionLayerManager.activeRootInstanceId === props2.rootInstanceId || editStore2.interactionLayerManager.activeRootInstanceId === void 0 && props2.rootType === "Page";
|
|
118758
118804
|
const selectedElements = useSelectionElements({
|
|
118759
118805
|
focusedSourceId: editStore2.ui.getFocusedSourceId(),
|
|
118760
118806
|
selectedSourceIds: editStore2.ui.getSelectedSourceIds(),
|
|
@@ -119108,13 +119154,13 @@ const EditWrapper = observer(function EditWrapper2(props2) {
|
|
|
119108
119154
|
}, [props2]);
|
|
119109
119155
|
useStableEffect(
|
|
119110
119156
|
() => {
|
|
119111
|
-
if (customProperties.length === 0 || props2.type !== "
|
|
119157
|
+
if (customProperties.length === 0 || props2.type !== "CustomComponent") {
|
|
119112
119158
|
return;
|
|
119113
119159
|
}
|
|
119114
|
-
const customProps = Section.category(PropsPanelCategory.Content).children(
|
|
119160
|
+
const customProps = Section$1.category(PropsPanelCategory.Content).children(
|
|
119115
119161
|
Object.fromEntries(
|
|
119116
119162
|
customProperties.filter((property) => {
|
|
119117
|
-
return !(props2.widgetProps[property] instanceof
|
|
119163
|
+
return !(props2.widgetProps[property] instanceof EventFlow);
|
|
119118
119164
|
}).map((property) => {
|
|
119119
119165
|
var _a2;
|
|
119120
119166
|
const widgetProps = props2.widgetProps;
|
|
@@ -119162,12 +119208,12 @@ const EditWrapper = observer(function EditWrapper2(props2) {
|
|
|
119162
119208
|
})
|
|
119163
119209
|
)
|
|
119164
119210
|
);
|
|
119165
|
-
const events2 = Section.category(
|
|
119211
|
+
const events2 = Section$1.category(
|
|
119166
119212
|
PropsPanelCategory.EventHandlers
|
|
119167
119213
|
).children(
|
|
119168
119214
|
Object.fromEntries(
|
|
119169
119215
|
customProperties.filter((property) => {
|
|
119170
|
-
return props2.widgetProps[property] instanceof
|
|
119216
|
+
return props2.widgetProps[property] instanceof EventFlow;
|
|
119171
119217
|
}).map((property) => {
|
|
119172
119218
|
var _a2;
|
|
119173
119219
|
const widgetProps = props2.widgetProps;
|
|
@@ -119198,7 +119244,7 @@ const EditWrapper = observer(function EditWrapper2(props2) {
|
|
|
119198
119244
|
type: props2.type
|
|
119199
119245
|
}
|
|
119200
119246
|
);
|
|
119201
|
-
if (props2.type === "
|
|
119247
|
+
if (props2.type === "Page") {
|
|
119202
119248
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
119203
119249
|
content,
|
|
119204
119250
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -119293,9 +119339,9 @@ function useTrackRuntimeWidget(instanceId, params) {
|
|
|
119293
119339
|
stableEffectOptions
|
|
119294
119340
|
);
|
|
119295
119341
|
}
|
|
119296
|
-
const
|
|
119342
|
+
const registerComponent$1 = (type5, config2, Component3) => {
|
|
119297
119343
|
if (typeof window === "undefined") {
|
|
119298
|
-
console.log("[] ssr registering
|
|
119344
|
+
console.log("[] ssr registering component", type5);
|
|
119299
119345
|
return (props2) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props2 });
|
|
119300
119346
|
}
|
|
119301
119347
|
const managedProps = createManagedPropsList(config2.propertiesDefinition);
|
|
@@ -119408,7 +119454,7 @@ const registerSbComponent = (type5, config2, Component3) => {
|
|
|
119408
119454
|
rootStore.componentRegistry.addManagedProps(type5, managedProps ?? []);
|
|
119409
119455
|
return SbComponent;
|
|
119410
119456
|
};
|
|
119411
|
-
function
|
|
119457
|
+
function registerEntity(name, config2, Entity) {
|
|
119412
119458
|
const managedProps = createManagedPropsList(config2.propertiesDefinition);
|
|
119413
119459
|
const internalProps = createInternalPropsList(config2.propertiesDefinition);
|
|
119414
119460
|
rootStore.componentRegistry.addManagedProps(name, managedProps ?? []);
|
|
@@ -119938,7 +119984,7 @@ const textStyle$1 = textStyleProp({
|
|
|
119938
119984
|
};
|
|
119939
119985
|
});
|
|
119940
119986
|
const propertiesDefinition$i = {
|
|
119941
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
119987
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
119942
119988
|
label: Prop.string().readAndWrite().validate(VALIDATORS.TEXT_ALLOW_UNDEFINED).propertiesPanel({
|
|
119943
119989
|
label: "Label",
|
|
119944
119990
|
placeholder: "Enter label text",
|
|
@@ -119947,8 +119993,8 @@ const propertiesDefinition$i = {
|
|
|
119947
119993
|
defaultOnAdd: "Submit"
|
|
119948
119994
|
})
|
|
119949
119995
|
}),
|
|
119950
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: BUTTON_PADDING, default: BUTTON_PADDING })).add(size$2()).add(margin()).add(visible()),
|
|
119951
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
119996
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(padding({ themeValue: BUTTON_PADDING, default: BUTTON_PADDING })).add(size$2()).add(margin()).add(visible()),
|
|
119997
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
119952
119998
|
variant: Prop.string().readAndWrite().default("primary").propertiesPanel({
|
|
119953
119999
|
label: "Variant",
|
|
119954
120000
|
controlType: "DROP_DOWN",
|
|
@@ -120023,19 +120069,19 @@ const propertiesDefinition$i = {
|
|
|
120023
120069
|
}),
|
|
120024
120070
|
loading: loading()
|
|
120025
120071
|
}),
|
|
120026
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
120072
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
120027
120073
|
isDisabled: Prop.boolean().readAndWrite().default(false).propertiesPanel({
|
|
120028
120074
|
label: "Disabled"
|
|
120029
120075
|
})
|
|
120030
120076
|
}),
|
|
120031
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
120077
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
120032
120078
|
onClick: Prop.event().propertiesPanel({
|
|
120033
120079
|
label: "onClick"
|
|
120034
120080
|
})
|
|
120035
120081
|
})
|
|
120036
120082
|
};
|
|
120037
|
-
const
|
|
120038
|
-
"
|
|
120083
|
+
const Button$3 = registerComponent$1(
|
|
120084
|
+
"Button",
|
|
120039
120085
|
{
|
|
120040
120086
|
propertiesDefinition: propertiesDefinition$i,
|
|
120041
120087
|
hasExtendedClickArea: true
|
|
@@ -120079,7 +120125,7 @@ const SbButton = registerSbComponent(
|
|
|
120079
120125
|
return props2.icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicSVG, { size: iconSize, iconName: props2.icon }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
120080
120126
|
}, [iconSize, props2.icon]);
|
|
120081
120127
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
120082
|
-
Button$
|
|
120128
|
+
Button$4,
|
|
120083
120129
|
{
|
|
120084
120130
|
width: "100%",
|
|
120085
120131
|
height: "100%",
|
|
@@ -120200,7 +120246,7 @@ const commonLayoutProps = {
|
|
|
120200
120246
|
...shouldScrollContents(true),
|
|
120201
120247
|
...visible()
|
|
120202
120248
|
};
|
|
120203
|
-
Section.category(PropsPanelCategory.Appearance).children({
|
|
120249
|
+
Section$1.category(PropsPanelCategory.Appearance).children({
|
|
120204
120250
|
backgroundColor: colorProp({
|
|
120205
120251
|
label: "Background",
|
|
120206
120252
|
helpText: "Changes the color of the background"
|
|
@@ -120210,7 +120256,7 @@ Section.category(PropsPanelCategory.Appearance).children({
|
|
|
120210
120256
|
loading: loading()
|
|
120211
120257
|
});
|
|
120212
120258
|
({
|
|
120213
|
-
layout: Section.category(PropsPanelCategory.Layout).add({
|
|
120259
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add({
|
|
120214
120260
|
verticalAlign: Prop.string().readAndWrite().default("top").propertiesPanel({
|
|
120215
120261
|
label: "Vertical align",
|
|
120216
120262
|
controlType: "RADIO_BUTTON_GROUP",
|
|
@@ -120275,7 +120321,7 @@ Section.category(PropsPanelCategory.Appearance).children({
|
|
|
120275
120321
|
})
|
|
120276
120322
|
});
|
|
120277
120323
|
({
|
|
120278
|
-
layout: Section.category(PropsPanelCategory.Layout).add({
|
|
120324
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add({
|
|
120279
120325
|
verticalAlign: Prop.string().readAndWrite().default("top").propertiesPanel({
|
|
120280
120326
|
label: "Vertical align",
|
|
120281
120327
|
controlType: "RADIO_BUTTON_GROUP",
|
|
@@ -120352,18 +120398,17 @@ const getStackChildStyle = ({
|
|
|
120352
120398
|
// if parent height is fit-content, child height 100% will cause unexpected height if child is empty container
|
|
120353
120399
|
childCount === 1 && (height == null ? void 0 : height.mode) === "fill" && (parentHeight == null ? void 0 : parentHeight.mode) !== "fit" ? { height: "100%" } : dimToCSS(height, "height", primary === "height")
|
|
120354
120400
|
);
|
|
120355
|
-
const width = (childProps == null ? void 0 : childProps.width) ?? (["
|
|
120356
|
-
(childProps == null ? void 0 : childProps.type) ?? ""
|
|
120357
|
-
) ? Dim.fit() : Dim.fill());
|
|
120401
|
+
const width = (childProps == null ? void 0 : childProps.width) ?? (["Text", "Button", "Checkbox", "Switch"].includes((childProps == null ? void 0 : childProps.type) ?? "") ? Dim.fit() : Dim.fill());
|
|
120358
120402
|
let widthCss = childCount === 1 && (width == null ? void 0 : width.mode) === "fill" && (parentWidth == null ? void 0 : parentWidth.mode) !== "fit" ? { width: "100%" } : dimToCSS(width, "width", primary === "width");
|
|
120359
|
-
|
|
120403
|
+
const canShrinkBelowContentWidth = (childProps == null ? void 0 : childProps.minWidth) === void 0 && (childProps == null ? void 0 : childProps.type) === "Column";
|
|
120404
|
+
if ((childProps == null ? void 0 : childProps.type) === "Icon") {
|
|
120360
120405
|
heightCss = dimToCSS(Dim.fit(), "height", false);
|
|
120361
120406
|
widthCss = dimToCSS(Dim.fit(), "width", false);
|
|
120362
120407
|
}
|
|
120363
120408
|
const widthInPx = (width == null ? void 0 : width.mode) === "px";
|
|
120364
120409
|
const heightInPx = (height == null ? void 0 : height.mode) === "px";
|
|
120365
120410
|
const shouldNotShrink = widthInPx && primary === "width" || heightInPx && primary === "height";
|
|
120366
|
-
const minWidthCss = widthInPx ? {} : getMinMaxCss(childProps == null ? void 0 : childProps.minWidth, "minWidth");
|
|
120411
|
+
const minWidthCss = widthInPx ? {} : canShrinkBelowContentWidth ? { minWidth: "0px" } : getMinMaxCss(childProps == null ? void 0 : childProps.minWidth, "minWidth");
|
|
120367
120412
|
const maxWidthCss = widthInPx ? {} : getMinMaxCss(childProps == null ? void 0 : childProps.maxWidth, "maxWidth");
|
|
120368
120413
|
const minHeightCss = heightInPx ? {} : getMinMaxCss(childProps == null ? void 0 : childProps.minHeight, "minHeight");
|
|
120369
120414
|
const maxHeightCss = heightInPx ? {} : getMinMaxCss(childProps == null ? void 0 : childProps.maxHeight, "maxHeight");
|
|
@@ -120386,7 +120431,7 @@ const getStackChildStyle = ({
|
|
|
120386
120431
|
...marginCss,
|
|
120387
120432
|
...stickyCss
|
|
120388
120433
|
};
|
|
120389
|
-
if ((childProps == null ? void 0 : childProps.type) === "
|
|
120434
|
+
if ((childProps == null ? void 0 : childProps.type) === "Modal" || (childProps == null ? void 0 : childProps.type) === "Slideout") {
|
|
120390
120435
|
style2.display = "none";
|
|
120391
120436
|
}
|
|
120392
120437
|
return style2;
|
|
@@ -120514,14 +120559,14 @@ const DEFAULT_SECTION_PADDING = {
|
|
|
120514
120559
|
bottom: Dim.px(0)
|
|
120515
120560
|
};
|
|
120516
120561
|
const propertiesDefinition$h = {
|
|
120517
|
-
contents: Section.category(PropsPanelCategory.Content).children({
|
|
120562
|
+
contents: Section$1.category(PropsPanelCategory.Content).children({
|
|
120518
120563
|
columns: Prop.array().readAndWrite().propertiesPanel({
|
|
120519
120564
|
label: "Columns",
|
|
120520
120565
|
controlType: "COLUMN_LIST",
|
|
120521
120566
|
headerControlType: "ADD_SECTION_COLUMN"
|
|
120522
120567
|
})
|
|
120523
120568
|
}),
|
|
120524
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
120569
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
120525
120570
|
padding({
|
|
120526
120571
|
themeValue: DEFAULT_SECTION_PADDING,
|
|
120527
120572
|
default: DEFAULT_SECTION_PADDING,
|
|
@@ -120543,7 +120588,7 @@ const propertiesDefinition$h = {
|
|
|
120543
120588
|
helpText: "Controls whether the section is sticky to the top of the Page. When enabled, sections below this one will scroll under the section."
|
|
120544
120589
|
}).default(false)
|
|
120545
120590
|
}).add(visible()),
|
|
120546
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
120591
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
120547
120592
|
backgroundColor: colorProp({
|
|
120548
120593
|
label: "Background",
|
|
120549
120594
|
helpText: "Changes the color of the background",
|
|
@@ -120555,8 +120600,8 @@ const propertiesDefinition$h = {
|
|
|
120555
120600
|
loading: loading()
|
|
120556
120601
|
})
|
|
120557
120602
|
};
|
|
120558
|
-
const
|
|
120559
|
-
"
|
|
120603
|
+
const Section2 = registerComponent$1(
|
|
120604
|
+
"Section",
|
|
120560
120605
|
{
|
|
120561
120606
|
container: true,
|
|
120562
120607
|
propertiesDefinition: propertiesDefinition$h
|
|
@@ -120578,6 +120623,7 @@ const SbSection = registerSbComponent(
|
|
|
120578
120623
|
padding: props2.padding,
|
|
120579
120624
|
border: props2.border,
|
|
120580
120625
|
backgroundColor: props2.backgroundColor,
|
|
120626
|
+
shouldScrollContents: true,
|
|
120581
120627
|
children: props2.children
|
|
120582
120628
|
}
|
|
120583
120629
|
);
|
|
@@ -120686,7 +120732,7 @@ const useHeightObserver = () => {
|
|
|
120686
120732
|
return { ref: ref2, height };
|
|
120687
120733
|
};
|
|
120688
120734
|
({
|
|
120689
|
-
general: Section.category(PropsPanelCategory.Layout).children({
|
|
120735
|
+
general: Section$1.category(PropsPanelCategory.Layout).children({
|
|
120690
120736
|
columns: Prop.number().readAndWrite().propertiesPanel({
|
|
120691
120737
|
label: "Columns",
|
|
120692
120738
|
placeholder: "Enter columns"
|
|
@@ -120724,7 +120770,7 @@ const GridChild = observer(
|
|
|
120724
120770
|
const left2 = gridPositions[childProps.name].left;
|
|
120725
120771
|
const rows = gridPositions[childProps.name].height;
|
|
120726
120772
|
const columns = gridPositions[childProps.name].width;
|
|
120727
|
-
const Component3 = heightMode === "fit" || childProps.sbType === "
|
|
120773
|
+
const Component3 = heightMode === "fit" || childProps.sbType === "Icon" ? MeasuredComponent : StaticComponent;
|
|
120728
120774
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
120729
120775
|
"div",
|
|
120730
120776
|
{
|
|
@@ -120738,7 +120784,7 @@ const GridChild = observer(
|
|
|
120738
120784
|
Component3,
|
|
120739
120785
|
{
|
|
120740
120786
|
staticHeight: (((_b2 = childProps.height) == null ? void 0 : _b2.value) ?? 0) * rowHeight,
|
|
120741
|
-
style: childProps.sbType === "
|
|
120787
|
+
style: childProps.sbType === "Icon" ? {
|
|
120742
120788
|
aspectRatio: "1"
|
|
120743
120789
|
} : void 0,
|
|
120744
120790
|
onHeightChanged: (height) => {
|
|
@@ -120775,7 +120821,7 @@ const InternalGrid = observer(
|
|
|
120775
120821
|
const marginTop = (entity == null ? void 0 : entity.marginTop) ?? (isDimension(child.props.marginTop) ? child.props.marginTop : void 0);
|
|
120776
120822
|
const marginLeft = (entity == null ? void 0 : entity.marginLeft) ?? (isDimension(child.props.marginLeft) ? child.props.marginLeft : void 0);
|
|
120777
120823
|
let width = (entity == null ? void 0 : entity.width) ?? (isDimension(child.props.width) ? child.props.width : void 0);
|
|
120778
|
-
if (sbType === "
|
|
120824
|
+
if (sbType === "Icon") {
|
|
120779
120825
|
width = (entity == null ? void 0 : entity.size) ?? (isDimension(child.props.size) ? child.props.size : void 0);
|
|
120780
120826
|
}
|
|
120781
120827
|
const height = (entity == null ? void 0 : entity.height) ?? (isDimension(child.props.height) ? child.props.height : void 0);
|
|
@@ -120812,7 +120858,7 @@ const InternalGrid = observer(
|
|
|
120812
120858
|
const positions = childrenArray.reduce(
|
|
120813
120859
|
(acc, child) => {
|
|
120814
120860
|
var _a3, _b2, _c2;
|
|
120815
|
-
let width = ((_a3 = child.width) == null ? void 0 : _a3.value) ?? (child.sbType === "
|
|
120861
|
+
let width = ((_a3 = child.width) == null ? void 0 : _a3.value) ?? (child.sbType === "Table" || child.sbType === "Container" ? 6 : 2);
|
|
120816
120862
|
if (((_b2 = child.width) == null ? void 0 : _b2.mode) === "fill") {
|
|
120817
120863
|
width = columns;
|
|
120818
120864
|
}
|
|
@@ -120893,7 +120939,7 @@ const StaticComponent = ({
|
|
|
120893
120939
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ...style2, width: "100%", height: "100%" }, children });
|
|
120894
120940
|
};
|
|
120895
120941
|
const propertiesDefinition$g = {
|
|
120896
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
120942
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
120897
120943
|
containerLayout({
|
|
120898
120944
|
...spacing(),
|
|
120899
120945
|
...padding({
|
|
@@ -120917,7 +120963,7 @@ const propertiesDefinition$g = {
|
|
|
120917
120963
|
})
|
|
120918
120964
|
})
|
|
120919
120965
|
).add(shouldScrollContents(true)).add(visible()),
|
|
120920
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
120966
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
120921
120967
|
variant: Prop.string().readAndWrite().default("none").propertiesPanel({
|
|
120922
120968
|
label: "Variant",
|
|
120923
120969
|
controlType: "RADIO_BUTTON_GROUP",
|
|
@@ -121047,8 +121093,8 @@ const InternalContainer = (props2) => {
|
|
|
121047
121093
|
}
|
|
121048
121094
|
);
|
|
121049
121095
|
};
|
|
121050
|
-
const
|
|
121051
|
-
"
|
|
121096
|
+
const Container = registerComponent$1(
|
|
121097
|
+
"Container",
|
|
121052
121098
|
{
|
|
121053
121099
|
container: true,
|
|
121054
121100
|
propertiesDefinition: propertiesDefinition$g
|
|
@@ -121056,7 +121102,7 @@ const SbContainer = registerSbComponent(
|
|
|
121056
121102
|
InternalContainer
|
|
121057
121103
|
);
|
|
121058
121104
|
const propertiesDefinition$f = {
|
|
121059
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
121105
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
121060
121106
|
containerLayout({
|
|
121061
121107
|
...spacing(),
|
|
121062
121108
|
...padding(),
|
|
@@ -121071,7 +121117,7 @@ const propertiesDefinition$f = {
|
|
|
121071
121117
|
})
|
|
121072
121118
|
})
|
|
121073
121119
|
).add(shouldScrollContents(true)).add(visible()),
|
|
121074
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
121120
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
121075
121121
|
backgroundColor: colorProp({
|
|
121076
121122
|
label: "Background",
|
|
121077
121123
|
helpText: "Changes the color of the background",
|
|
@@ -121085,8 +121131,8 @@ const propertiesDefinition$f = {
|
|
|
121085
121131
|
};
|
|
121086
121132
|
const CONTAINER_MIN_WIDTH = Dim.px(0);
|
|
121087
121133
|
const CONTAINER_FILL_DIM = Dim.fill();
|
|
121088
|
-
const
|
|
121089
|
-
"
|
|
121134
|
+
const Column = registerComponent$1(
|
|
121135
|
+
"Column",
|
|
121090
121136
|
{
|
|
121091
121137
|
container: true,
|
|
121092
121138
|
propertiesDefinition: propertiesDefinition$f
|
|
@@ -127853,7 +127899,7 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
127853
127899
|
__publicField(this, "passwordIconComponent", () => {
|
|
127854
127900
|
const iconSize = this.props.iconSize ?? DEFAULT_ICON_SIZE;
|
|
127855
127901
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
127856
|
-
Button$
|
|
127902
|
+
Button$5,
|
|
127857
127903
|
{
|
|
127858
127904
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
127859
127905
|
DynamicSVG,
|
|
@@ -128390,7 +128436,7 @@ const textLengthProps = {
|
|
|
128390
128436
|
})
|
|
128391
128437
|
};
|
|
128392
128438
|
const propertiesDefinition$e = {
|
|
128393
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
128439
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
128394
128440
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
128395
128441
|
label: "Label",
|
|
128396
128442
|
placeholder: "Enter label text",
|
|
@@ -128490,7 +128536,7 @@ const propertiesDefinition$e = {
|
|
|
128490
128536
|
isRemovable: true
|
|
128491
128537
|
})
|
|
128492
128538
|
}),
|
|
128493
|
-
appearance: Section.category(PropsPanelCategory.Appearance).add({
|
|
128539
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).add({
|
|
128494
128540
|
labelPosition: labelPosition(),
|
|
128495
128541
|
labelStyle: labelTextStyle(),
|
|
128496
128542
|
placeholderText: Prop.string().readAndWrite().default("Enter text").propertiesPanel({
|
|
@@ -128533,11 +128579,11 @@ const propertiesDefinition$e = {
|
|
|
128533
128579
|
).add({
|
|
128534
128580
|
loading: loading()
|
|
128535
128581
|
}),
|
|
128536
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: INPUT_PADDING, default: INPUT_PADDING })).add({
|
|
128582
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(padding({ themeValue: INPUT_PADDING, default: INPUT_PADDING })).add({
|
|
128537
128583
|
...size$2(),
|
|
128538
128584
|
...widthWithoutFit()
|
|
128539
128585
|
}).add(margin()).add({ labelWidth }).add(visible()),
|
|
128540
|
-
interaction: Section.category(PropsPanelCategory.Interaction).add(
|
|
128586
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).add(
|
|
128541
128587
|
Prop.union({
|
|
128542
128588
|
shared: {
|
|
128543
128589
|
inputType: Prop.string()
|
|
@@ -128589,7 +128635,7 @@ const propertiesDefinition$e = {
|
|
|
128589
128635
|
}),
|
|
128590
128636
|
...getCustomValidationProperties()
|
|
128591
128637
|
}),
|
|
128592
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
128638
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
128593
128639
|
onTextChanged: Prop.event().propertiesPanel({
|
|
128594
128640
|
label: "onTextChanged",
|
|
128595
128641
|
helpText: "Triggers an action when the text is changed",
|
|
@@ -128611,11 +128657,11 @@ const propertiesDefinition$e = {
|
|
|
128611
128657
|
controlType: "EVENT_TRIGGER"
|
|
128612
128658
|
})
|
|
128613
128659
|
}),
|
|
128614
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
128660
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
128615
128661
|
text: Prop.any().readable().validate(VALIDATORS.TEXT_ALLOW_UNDEFINED),
|
|
128616
128662
|
isTouched: Prop.boolean().readable().default(false)
|
|
128617
128663
|
}),
|
|
128618
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
128664
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
128619
128665
|
value: Prop.any().readable().default(getValue$1),
|
|
128620
128666
|
// should be string | number but input-component typecheck fails
|
|
128621
128667
|
validationErrors: Prop.any().readable().default(function() {
|
|
@@ -128625,8 +128671,8 @@ const propertiesDefinition$e = {
|
|
|
128625
128671
|
showError: Prop.boolean().readable().default(getShowError)
|
|
128626
128672
|
})
|
|
128627
128673
|
};
|
|
128628
|
-
const
|
|
128629
|
-
"
|
|
128674
|
+
const Input2 = registerComponent$1(
|
|
128675
|
+
"Input",
|
|
128630
128676
|
{
|
|
128631
128677
|
propertiesDefinition: propertiesDefinition$e
|
|
128632
128678
|
},
|
|
@@ -128787,14 +128833,14 @@ const SbInput = registerSbComponent(
|
|
|
128787
128833
|
}
|
|
128788
128834
|
);
|
|
128789
128835
|
const propertiesDefinition$d = {
|
|
128790
|
-
contents: Section.category(PropsPanelCategory.Content).children({
|
|
128836
|
+
contents: Section$1.category(PropsPanelCategory.Content).children({
|
|
128791
128837
|
columns: Prop.array().readAndWrite().propertiesPanel({
|
|
128792
128838
|
label: "Sections",
|
|
128793
128839
|
controlType: "SECTION_LIST",
|
|
128794
128840
|
headerControlType: "ADD_SECTION"
|
|
128795
128841
|
})
|
|
128796
128842
|
}),
|
|
128797
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
128843
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
128798
128844
|
size$2({
|
|
128799
128845
|
defaults: {
|
|
128800
128846
|
width: Dim.fill(),
|
|
@@ -128807,17 +128853,17 @@ const propertiesDefinition$d = {
|
|
|
128807
128853
|
hasMaxHeight: false
|
|
128808
128854
|
})
|
|
128809
128855
|
),
|
|
128810
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
128856
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
128811
128857
|
loading: loading()
|
|
128812
128858
|
}),
|
|
128813
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
128859
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
128814
128860
|
onLoad: Prop.event().propertiesPanel({
|
|
128815
128861
|
label: "onPageLoad"
|
|
128816
128862
|
})
|
|
128817
128863
|
})
|
|
128818
128864
|
};
|
|
128819
|
-
const
|
|
128820
|
-
"
|
|
128865
|
+
const Page = registerComponent$1(
|
|
128866
|
+
"Page",
|
|
128821
128867
|
{
|
|
128822
128868
|
container: true,
|
|
128823
128869
|
propertiesDefinition: propertiesDefinition$d
|
|
@@ -135491,7 +135537,7 @@ const textStyle = textStyleProp().default(function() {
|
|
|
135491
135537
|
};
|
|
135492
135538
|
});
|
|
135493
135539
|
const propertiesDefinition$c = {
|
|
135494
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
135540
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
135495
135541
|
text: Prop.string().readAndWrite().propertiesPanel({
|
|
135496
135542
|
label: "Text",
|
|
135497
135543
|
placeholder: "Enter text"
|
|
@@ -135508,7 +135554,7 @@ const propertiesDefinition$c = {
|
|
|
135508
135554
|
]
|
|
135509
135555
|
})
|
|
135510
135556
|
}),
|
|
135511
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
135557
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
135512
135558
|
textStyle,
|
|
135513
135559
|
horizontalAlign: Prop.string().readAndWrite().default("left").propertiesPanel({
|
|
135514
135560
|
label: "Horizontal align",
|
|
@@ -135768,8 +135814,8 @@ const useIconContainerStyles = ({
|
|
|
135768
135814
|
};
|
|
135769
135815
|
}, [iconGap, horizontalAlign]);
|
|
135770
135816
|
};
|
|
135771
|
-
const
|
|
135772
|
-
"
|
|
135817
|
+
const Text$1 = registerComponent$1(
|
|
135818
|
+
"Text",
|
|
135773
135819
|
{
|
|
135774
135820
|
propertiesDefinition: propertiesDefinition$c
|
|
135775
135821
|
},
|
|
@@ -135951,7 +135997,7 @@ const ModalScrollBackground = $e$1`
|
|
|
135951
135997
|
const getParent$1 = () => {
|
|
135952
135998
|
return document.getElementById(PORTAL_ROOT_ID) || document.body;
|
|
135953
135999
|
};
|
|
135954
|
-
const CloseButtonStyled$1 = qe$1(Button$
|
|
136000
|
+
const CloseButtonStyled$1 = qe$1(Button$6)`
|
|
135955
136001
|
position: absolute;
|
|
135956
136002
|
z-index: ${Layers$1.closeButton};
|
|
135957
136003
|
padding: 0;
|
|
@@ -136030,7 +136076,7 @@ const ModalComponent = (props2) => {
|
|
|
136030
136076
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
136031
136077
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ModalScrollBackground, {}),
|
|
136032
136078
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
136033
|
-
Modal,
|
|
136079
|
+
Modal$1,
|
|
136034
136080
|
{
|
|
136035
136081
|
width: modalWidthCss,
|
|
136036
136082
|
open: props2.isOpen,
|
|
@@ -136066,7 +136112,7 @@ const ModalComponent = (props2) => {
|
|
|
136066
136112
|
footer: props2.isEditing && props2.isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
136067
136113
|
InteractionLayer,
|
|
136068
136114
|
{
|
|
136069
|
-
rootType: "
|
|
136115
|
+
rootType: "Modal",
|
|
136070
136116
|
rootInstanceId: props2.instanceId,
|
|
136071
136117
|
rootName: props2.name
|
|
136072
136118
|
}
|
|
@@ -136085,11 +136131,11 @@ const ModalComponent = (props2) => {
|
|
|
136085
136131
|
"div",
|
|
136086
136132
|
{
|
|
136087
136133
|
ref: props2.dropTargetRef,
|
|
136088
|
-
id: getEditWrapperIdWithType(props2.instanceId, "
|
|
136134
|
+
id: getEditWrapperIdWithType(props2.instanceId, "Modal"),
|
|
136089
136135
|
style: {
|
|
136090
136136
|
anchorName: getWidgetDropAreaAnchorName(
|
|
136091
136137
|
props2.instanceId,
|
|
136092
|
-
"
|
|
136138
|
+
"Modal"
|
|
136093
136139
|
)
|
|
136094
136140
|
},
|
|
136095
136141
|
children: modalInternalContainer
|
|
@@ -136101,13 +136147,13 @@ const ModalComponent = (props2) => {
|
|
|
136101
136147
|
] });
|
|
136102
136148
|
};
|
|
136103
136149
|
const propertiesDefinition$b = {
|
|
136104
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
136150
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
136105
136151
|
containerLayout({
|
|
136106
136152
|
...spacing(),
|
|
136107
136153
|
...padding()
|
|
136108
136154
|
})
|
|
136109
136155
|
),
|
|
136110
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
136156
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
136111
136157
|
backgroundColor: colorProp({
|
|
136112
136158
|
label: "Background color",
|
|
136113
136159
|
helpText: "The background color of the component"
|
|
@@ -136156,14 +136202,14 @@ const propertiesDefinition$b = {
|
|
|
136156
136202
|
}),
|
|
136157
136203
|
loading: loading()
|
|
136158
136204
|
}),
|
|
136159
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
136205
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
136160
136206
|
closeOnClickOutside: Prop.boolean().readAndWrite().default(true).propertiesPanel({
|
|
136161
136207
|
label: "Quick dismiss",
|
|
136162
136208
|
helpText: "Allows dismissing the modal when a user presses the escape key or clicks the backdrop",
|
|
136163
136209
|
controlType: "SWITCH"
|
|
136164
136210
|
})
|
|
136165
136211
|
}),
|
|
136166
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
136212
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
136167
136213
|
onOpen: Prop.event().propertiesPanel({
|
|
136168
136214
|
label: "onOpen"
|
|
136169
136215
|
}),
|
|
@@ -136172,12 +136218,12 @@ const propertiesDefinition$b = {
|
|
|
136172
136218
|
})
|
|
136173
136219
|
}),
|
|
136174
136220
|
// non-configurable properties
|
|
136175
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
136221
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
136176
136222
|
isOpen: Prop.boolean().readable().default(false)
|
|
136177
136223
|
})
|
|
136178
136224
|
};
|
|
136179
|
-
const
|
|
136180
|
-
"
|
|
136225
|
+
const Modal = registerComponent$1(
|
|
136226
|
+
"Modal",
|
|
136181
136227
|
{
|
|
136182
136228
|
propertiesDefinition: propertiesDefinition$b,
|
|
136183
136229
|
container: true
|
|
@@ -136276,13 +136322,13 @@ const SLIDEOUT_WIDTH_PRESETS = {
|
|
|
136276
136322
|
[SlideoutSize.fullscreen]: Dim.percent(100)
|
|
136277
136323
|
};
|
|
136278
136324
|
const propertiesDefinition$a = {
|
|
136279
|
-
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
136325
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(
|
|
136280
136326
|
containerLayout({
|
|
136281
136327
|
...spacing(),
|
|
136282
136328
|
...padding()
|
|
136283
136329
|
})
|
|
136284
136330
|
),
|
|
136285
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
136331
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
136286
136332
|
backgroundColor: colorProp({
|
|
136287
136333
|
label: "Background color",
|
|
136288
136334
|
helpText: "The background color of the component"
|
|
@@ -136335,14 +136381,14 @@ const propertiesDefinition$a = {
|
|
|
136335
136381
|
}),
|
|
136336
136382
|
loading: loading()
|
|
136337
136383
|
}),
|
|
136338
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
136384
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
136339
136385
|
closeOnClickOutside: Prop.boolean().readAndWrite().default(true).propertiesPanel({
|
|
136340
136386
|
label: "Quick dismiss",
|
|
136341
136387
|
helpText: "Allows dismissing the slideout when a user presses the escape key or clicks the backdrop",
|
|
136342
136388
|
controlType: "SWITCH"
|
|
136343
136389
|
})
|
|
136344
136390
|
}),
|
|
136345
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
136391
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
136346
136392
|
onOpen: Prop.event().propertiesPanel({
|
|
136347
136393
|
label: "onOpen"
|
|
136348
136394
|
}),
|
|
@@ -136351,7 +136397,7 @@ const propertiesDefinition$a = {
|
|
|
136351
136397
|
})
|
|
136352
136398
|
}),
|
|
136353
136399
|
// non-configurable properties
|
|
136354
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
136400
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
136355
136401
|
isOpen: Prop.boolean().readable().default(false)
|
|
136356
136402
|
})
|
|
136357
136403
|
};
|
|
@@ -136437,7 +136483,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
136437
136483
|
}
|
|
136438
136484
|
return [Provider, useContext2];
|
|
136439
136485
|
}
|
|
136440
|
-
const
|
|
136486
|
+
const createScope2 = () => {
|
|
136441
136487
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
136442
136488
|
return React.createContext(defaultContext);
|
|
136443
136489
|
});
|
|
@@ -136449,16 +136495,16 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
136449
136495
|
);
|
|
136450
136496
|
};
|
|
136451
136497
|
};
|
|
136452
|
-
|
|
136453
|
-
return [createContext3, composeContextScopes(
|
|
136498
|
+
createScope2.scopeName = scopeName;
|
|
136499
|
+
return [createContext3, composeContextScopes(createScope2, ...createContextScopeDeps)];
|
|
136454
136500
|
}
|
|
136455
136501
|
function composeContextScopes(...scopes) {
|
|
136456
136502
|
const baseScope = scopes[0];
|
|
136457
136503
|
if (scopes.length === 1) return baseScope;
|
|
136458
|
-
const
|
|
136459
|
-
const scopeHooks = scopes.map((
|
|
136460
|
-
useScope:
|
|
136461
|
-
scopeName:
|
|
136504
|
+
const createScope2 = () => {
|
|
136505
|
+
const scopeHooks = scopes.map((createScope22) => ({
|
|
136506
|
+
useScope: createScope22(),
|
|
136507
|
+
scopeName: createScope22.scopeName
|
|
136462
136508
|
}));
|
|
136463
136509
|
return function useComposedScopes(overrideScopes) {
|
|
136464
136510
|
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope: useScope2, scopeName }) => {
|
|
@@ -136469,8 +136515,8 @@ function composeContextScopes(...scopes) {
|
|
|
136469
136515
|
return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
136470
136516
|
};
|
|
136471
136517
|
};
|
|
136472
|
-
|
|
136473
|
-
return
|
|
136518
|
+
createScope2.scopeName = baseScope.scopeName;
|
|
136519
|
+
return createScope2;
|
|
136474
136520
|
}
|
|
136475
136521
|
var useLayoutEffect22 = Boolean(globalThis == null ? void 0 : globalThis.document) ? React.useLayoutEffect : () => {
|
|
136476
136522
|
};
|
|
@@ -137389,7 +137435,7 @@ var RemoveScroll = React.forwardRef(function(props2, parentRef) {
|
|
|
137389
137435
|
onWheelCapture: nothing,
|
|
137390
137436
|
onTouchMoveCapture: nothing
|
|
137391
137437
|
}), callbacks2 = _a2[0], setCallbacks = _a2[1];
|
|
137392
|
-
var forwardProps = props2.forwardProps, children = props2.children, className = props2.className, removeScrollBar = props2.removeScrollBar, enabled = props2.enabled, shards = props2.shards, sideCar = props2.sideCar, noRelative = props2.noRelative, noIsolation = props2.noIsolation, inert = props2.inert, allowPinchZoom = props2.allowPinchZoom, _b2 = props2.as,
|
|
137438
|
+
var forwardProps = props2.forwardProps, children = props2.children, className = props2.className, removeScrollBar = props2.removeScrollBar, enabled = props2.enabled, shards = props2.shards, sideCar = props2.sideCar, noRelative = props2.noRelative, noIsolation = props2.noIsolation, inert = props2.inert, allowPinchZoom = props2.allowPinchZoom, _b2 = props2.as, Container2 = _b2 === void 0 ? "div" : _b2, gapMode = props2.gapMode, rest = __rest$1(props2, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
137393
137439
|
var SideCar2 = sideCar;
|
|
137394
137440
|
var containerRef = useMergeRefs([ref2, parentRef]);
|
|
137395
137441
|
var containerProps = __assign$1(__assign$1({}, rest), callbacks2);
|
|
@@ -137397,7 +137443,7 @@ var RemoveScroll = React.forwardRef(function(props2, parentRef) {
|
|
|
137397
137443
|
React.Fragment,
|
|
137398
137444
|
null,
|
|
137399
137445
|
enabled && React.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref2, gapMode }),
|
|
137400
|
-
forwardProps ? React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef })) : React.createElement(
|
|
137446
|
+
forwardProps ? React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef })) : React.createElement(Container2, __assign$1({}, containerProps, { className, ref: containerRef }), children)
|
|
137401
137447
|
);
|
|
137402
137448
|
});
|
|
137403
137449
|
RemoveScroll.defaultProps = {
|
|
@@ -138348,7 +138394,7 @@ const StyledDialogContent = qe$1(Content)`
|
|
|
138348
138394
|
const getParent2 = () => {
|
|
138349
138395
|
return document.getElementById(PORTAL_ROOT_ID) || document.body;
|
|
138350
138396
|
};
|
|
138351
|
-
const CloseButtonStyled = qe$1(Button$
|
|
138397
|
+
const CloseButtonStyled = qe$1(Button$6)`
|
|
138352
138398
|
position: absolute;
|
|
138353
138399
|
z-index: ${Layers$1.closeButton};
|
|
138354
138400
|
padding: 0;
|
|
@@ -138508,11 +138554,11 @@ const SlideoutComponent = (props2) => {
|
|
|
138508
138554
|
"div",
|
|
138509
138555
|
{
|
|
138510
138556
|
ref: props2.dropTargetRef,
|
|
138511
|
-
id: getEditWrapperIdWithType(props2.instanceId, "
|
|
138557
|
+
id: getEditWrapperIdWithType(props2.instanceId, "Slideout"),
|
|
138512
138558
|
style: {
|
|
138513
138559
|
anchorName: getWidgetDropAreaAnchorName(
|
|
138514
138560
|
props2.instanceId,
|
|
138515
|
-
"
|
|
138561
|
+
"Slideout"
|
|
138516
138562
|
),
|
|
138517
138563
|
height: "100%",
|
|
138518
138564
|
width: "100%"
|
|
@@ -138523,7 +138569,7 @@ const SlideoutComponent = (props2) => {
|
|
|
138523
138569
|
props2.isEditing && props2.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
138524
138570
|
InteractionLayer,
|
|
138525
138571
|
{
|
|
138526
|
-
rootType: "
|
|
138572
|
+
rootType: "Slideout",
|
|
138527
138573
|
rootInstanceId: props2.instanceId,
|
|
138528
138574
|
rootName: props2.name
|
|
138529
138575
|
}
|
|
@@ -138535,8 +138581,8 @@ const SlideoutComponent = (props2) => {
|
|
|
138535
138581
|
}
|
|
138536
138582
|
);
|
|
138537
138583
|
};
|
|
138538
|
-
const
|
|
138539
|
-
"
|
|
138584
|
+
const Slideout = registerComponent$1(
|
|
138585
|
+
"Slideout",
|
|
138540
138586
|
{
|
|
138541
138587
|
propertiesDefinition: propertiesDefinition$a,
|
|
138542
138588
|
container: true
|
|
@@ -139251,7 +139297,7 @@ const tagsColumnProperties = {
|
|
|
139251
139297
|
}
|
|
139252
139298
|
};
|
|
139253
139299
|
const columnPanelConfig = {
|
|
139254
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
139300
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
139255
139301
|
label: Prop.string().readAndWrite().propertiesPanel({
|
|
139256
139302
|
label: "Column header"
|
|
139257
139303
|
})
|
|
@@ -139342,7 +139388,7 @@ const columnPanelConfig = {
|
|
|
139342
139388
|
controlType: "SWITCH"
|
|
139343
139389
|
}).default(true)
|
|
139344
139390
|
}),
|
|
139345
|
-
presentation: Section.category(PropsPanelCategory.Appearance).children({
|
|
139391
|
+
presentation: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
139346
139392
|
headerIcon: Prop.string().readAndWrite().propertiesPanel({
|
|
139347
139393
|
label: "Header icon",
|
|
139348
139394
|
controlType: "ICON_SELECTOR",
|
|
@@ -139433,7 +139479,7 @@ const columnPanelConfig = {
|
|
|
139433
139479
|
controlType: "SWITCH"
|
|
139434
139480
|
})
|
|
139435
139481
|
}),
|
|
139436
|
-
interaction: Section.category(PropsPanelCategory.Interaction).add(
|
|
139482
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).add(
|
|
139437
139483
|
Prop.union({
|
|
139438
139484
|
shared: {
|
|
139439
139485
|
columnType: Prop.string()
|
|
@@ -145835,7 +145881,7 @@ function CaptionLabel(props2) {
|
|
|
145835
145881
|
function IconDropdown(props2) {
|
|
145836
145882
|
return jsxRuntimeExports.jsx("svg", __assign({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, props2, { children: jsxRuntimeExports.jsx("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
145837
145883
|
}
|
|
145838
|
-
function Dropdown(props2) {
|
|
145884
|
+
function Dropdown$1(props2) {
|
|
145839
145885
|
var _a2, _b2;
|
|
145840
145886
|
var onChange2 = props2.onChange, value = props2.value, children = props2.children, caption = props2.caption, className = props2.className, style2 = props2.style;
|
|
145841
145887
|
var dayPicker = useDayPicker();
|
|
@@ -145866,7 +145912,7 @@ function MonthsDropdown(props2) {
|
|
|
145866
145912
|
var newMonth = setMonth2(startOfMonth(props2.displayMonth), selectedMonth);
|
|
145867
145913
|
props2.onChange(newMonth);
|
|
145868
145914
|
};
|
|
145869
|
-
var DropdownComponent = (_a2 = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a2 !== void 0 ? _a2 : Dropdown;
|
|
145915
|
+
var DropdownComponent = (_a2 = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a2 !== void 0 ? _a2 : Dropdown$1;
|
|
145870
145916
|
return jsxRuntimeExports.jsx(DropdownComponent, { name: "months", "aria-label": labelMonthDropdown2(), className: classNames2.dropdown_month, style: styles.dropdown_month, onChange: handleChange, value: props2.displayMonth.getMonth(), caption: formatMonthCaption2(props2.displayMonth, { locale: locale2 }), children: dropdownMonths.map(function(m4) {
|
|
145871
145917
|
return jsxRuntimeExports.jsx("option", { value: m4.getMonth(), children: formatMonthCaption2(m4, { locale: locale2 }) }, m4.getMonth());
|
|
145872
145918
|
}) });
|
|
@@ -145889,7 +145935,7 @@ function YearsDropdown(props2) {
|
|
|
145889
145935
|
var newMonth = setYear2(startOfMonth(displayMonth), Number(e3.target.value));
|
|
145890
145936
|
props2.onChange(newMonth);
|
|
145891
145937
|
};
|
|
145892
|
-
var DropdownComponent = (_a2 = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a2 !== void 0 ? _a2 : Dropdown;
|
|
145938
|
+
var DropdownComponent = (_a2 = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a2 !== void 0 ? _a2 : Dropdown$1;
|
|
145893
145939
|
return jsxRuntimeExports.jsx(DropdownComponent, { name: "years", "aria-label": labelYearDropdown2(), className: classNames2.dropdown_year, style: styles.dropdown_year, onChange: handleChange, value: displayMonth.getFullYear(), caption: formatYearCaption2(displayMonth, { locale: locale2 }), children: years2.map(function(year2) {
|
|
145894
145940
|
return jsxRuntimeExports.jsx("option", { value: year2.getFullYear(), children: formatYearCaption2(year2, { locale: locale2 }) }, year2.getFullYear());
|
|
145895
145941
|
}) });
|
|
@@ -146974,7 +147020,7 @@ function getMonthWeeks(month, options) {
|
|
|
146974
147020
|
}
|
|
146975
147021
|
return weeksInMonth;
|
|
146976
147022
|
}
|
|
146977
|
-
function Table$
|
|
147023
|
+
function Table$3(props2) {
|
|
146978
147024
|
var _a2, _b2, _c2;
|
|
146979
147025
|
var _d2 = useDayPicker(), locale2 = _d2.locale, classNames2 = _d2.classNames, styles = _d2.styles, hideHead = _d2.hideHead, fixedWeeks = _d2.fixedWeeks, components = _d2.components, weekStartsOn = _d2.weekStartsOn, firstWeekContainsDate = _d2.firstWeekContainsDate, ISOWeek = _d2.ISOWeek;
|
|
146980
147026
|
var weeks2 = getMonthWeeks(props2.displayMonth, {
|
|
@@ -147045,7 +147091,7 @@ function Month(props2) {
|
|
|
147045
147091
|
style2 = __assign(__assign({}, style2), styles.caption_between);
|
|
147046
147092
|
}
|
|
147047
147093
|
var CaptionComponent = (_b2 = components === null || components === void 0 ? void 0 : components.Caption) !== null && _b2 !== void 0 ? _b2 : Caption;
|
|
147048
|
-
return jsxRuntimeExports.jsxs("div", { className: className.join(" "), style: style2, children: [jsxRuntimeExports.jsx(CaptionComponent, { id: captionId, displayMonth: props2.displayMonth, displayIndex: props2.displayIndex }), jsxRuntimeExports.jsx(Table$
|
|
147094
|
+
return jsxRuntimeExports.jsxs("div", { className: className.join(" "), style: style2, children: [jsxRuntimeExports.jsx(CaptionComponent, { id: captionId, displayMonth: props2.displayMonth, displayIndex: props2.displayIndex }), jsxRuntimeExports.jsx(Table$3, { id: tableId, "aria-labelledby": captionId, displayMonth: props2.displayMonth })] }, props2.displayIndex);
|
|
147049
147095
|
}
|
|
147050
147096
|
function Months$1(props2) {
|
|
147051
147097
|
var _a2 = useDayPicker(), classNames2 = _a2.classNames, styles = _a2.styles;
|
|
@@ -148482,14 +148528,14 @@ function getLoaderFn(options) {
|
|
|
148482
148528
|
if (!(loader === "all")) return [3, 3];
|
|
148483
148529
|
return [4, import(
|
|
148484
148530
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
148485
|
-
"./allPathsLoader-
|
|
148531
|
+
"./allPathsLoader-CjyQe-yl.js"
|
|
148486
148532
|
)];
|
|
148487
148533
|
case 2:
|
|
148488
148534
|
return [2, _b2.sent().allPathsLoader];
|
|
148489
148535
|
case 3:
|
|
148490
148536
|
return [4, import(
|
|
148491
148537
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
148492
|
-
"./splitPathsBySizeLoader-
|
|
148538
|
+
"./splitPathsBySizeLoader-DWVXFLzy.js"
|
|
148493
148539
|
)];
|
|
148494
148540
|
case 4:
|
|
148495
148541
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -148749,7 +148795,7 @@ SmallTick.defaultProps = {
|
|
|
148749
148795
|
size: IconSize.STANDARD
|
|
148750
148796
|
};
|
|
148751
148797
|
SmallTick.displayName = "Blueprint5.Icon.SmallTick";
|
|
148752
|
-
var Icon = React.forwardRef(function(props2, ref2) {
|
|
148798
|
+
var Icon$1 = React.forwardRef(function(props2, ref2) {
|
|
148753
148799
|
var _a2, _b2;
|
|
148754
148800
|
var _c2 = props2.autoLoad, autoLoad = _c2 === void 0 ? true : _c2, className = props2.className, color = props2.color, icon = props2.icon, intent = props2.intent, _d2 = props2.tagName, tagName = _d2 === void 0 ? "span" : _d2, svgProps = props2.svgProps, title = props2.title, htmlTitle = props2.htmlTitle, htmlProps = __rest$2(props2, ["autoLoad", "className", "color", "icon", "intent", "tagName", "svgProps", "title", "htmlTitle"]);
|
|
148755
148801
|
var size2 = (_b2 = (_a2 = props2.iconSize) !== null && _a2 !== void 0 ? _a2 : props2.size) !== null && _b2 !== void 0 ? _b2 : IconSize.STANDARD;
|
|
@@ -148805,7 +148851,7 @@ var Icon = React.forwardRef(function(props2, ref2) {
|
|
|
148805
148851
|
}, removeNonHTMLProps(htmlProps)));
|
|
148806
148852
|
}
|
|
148807
148853
|
});
|
|
148808
|
-
Icon.displayName = "".concat(DISPLAYNAME_PREFIX, ".Icon");
|
|
148854
|
+
Icon$1.displayName = "".concat(DISPLAYNAME_PREFIX, ".Icon");
|
|
148809
148855
|
var SpinnerSize;
|
|
148810
148856
|
(function(SpinnerSize2) {
|
|
148811
148857
|
SpinnerSize2[SpinnerSize2["SMALL"] = 20] = "SMALL";
|
|
@@ -148906,14 +148952,14 @@ function renderButtonContents(props2) {
|
|
|
148906
148952
|
React.Fragment,
|
|
148907
148953
|
null,
|
|
148908
148954
|
loading2 && React.createElement(Spinner, { className: BUTTON_SPINNER, size: SpinnerSize.SMALL }),
|
|
148909
|
-
React.createElement(Icon, { icon }),
|
|
148955
|
+
React.createElement(Icon$1, { icon }),
|
|
148910
148956
|
hasTextContent && React.createElement(
|
|
148911
148957
|
Text,
|
|
148912
148958
|
{ className: classNames(BUTTON_TEXT, textClassName), ellipsize: ellipsizeText, tagName: "span" },
|
|
148913
148959
|
text,
|
|
148914
148960
|
children
|
|
148915
148961
|
),
|
|
148916
|
-
React.createElement(Icon, { icon: endIcon !== null && endIcon !== void 0 ? endIcon : rightIcon })
|
|
148962
|
+
React.createElement(Icon$1, { icon: endIcon !== null && endIcon !== void 0 ? endIcon : rightIcon })
|
|
148917
148963
|
);
|
|
148918
148964
|
}
|
|
148919
148965
|
var OverlaysContext = React.createContext({
|
|
@@ -150329,7 +150375,7 @@ var MenuItem = React.forwardRef(function(props2, ref2) {
|
|
|
150329
150375
|
React.createElement(
|
|
150330
150376
|
"span",
|
|
150331
150377
|
{ className: MENU_ITEM_ICON },
|
|
150332
|
-
React.createElement(Icon, { icon, "aria-hidden": true, tabIndex: -1 })
|
|
150378
|
+
React.createElement(Icon$1, { icon, "aria-hidden": true, tabIndex: -1 })
|
|
150333
150379
|
)
|
|
150334
150380
|
) : void 0, React.createElement(Text, { className: classNames(FILL, textClassName), ellipsize: !multiline, title: htmlTitle }, text), maybeLabel, hasSubmenu ? React.createElement(CaretRight, { className: MENU_SUBMENU_ICON, title: "Open sub menu" }) : void 0);
|
|
150335
150381
|
var liClasses = classNames((_b2 = {}, _b2[MENU_SUBMENU] = hasSubmenu, _b2));
|
|
@@ -150481,7 +150527,7 @@ var InputGroup = (
|
|
|
150481
150527
|
if (leftElement != null) {
|
|
150482
150528
|
return React.createElement("span", { className: INPUT_LEFT_CONTAINER, ref: this.refHandlers.leftElement }, leftElement);
|
|
150483
150529
|
} else if (leftIcon != null) {
|
|
150484
|
-
return React.createElement(Icon, { icon: leftIcon, "aria-hidden": true, tabIndex: -1 });
|
|
150530
|
+
return React.createElement(Icon$1, { icon: leftIcon, "aria-hidden": true, tabIndex: -1 });
|
|
150485
150531
|
}
|
|
150486
150532
|
return void 0;
|
|
150487
150533
|
};
|
|
@@ -154463,7 +154509,7 @@ var TimePicker = (
|
|
|
154463
154509
|
return React.createElement(
|
|
154464
154510
|
"span",
|
|
154465
154511
|
{ "aria-controls": this.timeInputIds[timeUnit], "aria-label": label, tabIndex: -1, className: classes, onClick },
|
|
154466
|
-
React.createElement(Icon, { icon: isDirectionUp ? "chevron-up" : "chevron-down", title: label })
|
|
154512
|
+
React.createElement(Icon$1, { icon: isDirectionUp ? "chevron-up" : "chevron-down", title: label })
|
|
154467
154513
|
);
|
|
154468
154514
|
};
|
|
154469
154515
|
TimePicker2.prototype.renderDivider = function(text) {
|
|
@@ -155766,8 +155812,8 @@ var DatePicker3 = (
|
|
|
155766
155812
|
React.createElement(
|
|
155767
155813
|
"div",
|
|
155768
155814
|
{ className: Classes.DATEPICKER_FOOTER, key: "footer" },
|
|
155769
|
-
React.createElement(Button$
|
|
155770
|
-
React.createElement(Button$
|
|
155815
|
+
React.createElement(Button$5, { minimal: true, disabled: !todayEnabled, onClick: this.handleTodayClick, text: todayButtonText }),
|
|
155816
|
+
React.createElement(Button$5, { disabled: !canClearSelection, minimal: true, onClick: this.handleClearClick, text: clearButtonText })
|
|
155771
155817
|
)
|
|
155772
155818
|
];
|
|
155773
155819
|
};
|
|
@@ -156347,7 +156393,7 @@ const DatePickerActionsWrapper = qe$1.div`
|
|
|
156347
156393
|
bottom: -80px;
|
|
156348
156394
|
}
|
|
156349
156395
|
`;
|
|
156350
|
-
const DatePickerActionButton = qe$1(Button$
|
|
156396
|
+
const DatePickerActionButton = qe$1(Button$5)`
|
|
156351
156397
|
height: 32px;
|
|
156352
156398
|
width: auto;
|
|
156353
156399
|
|
|
@@ -163767,7 +163813,7 @@ const TableButton = (props2) => {
|
|
|
163767
163813
|
};
|
|
163768
163814
|
}, [props2.buttonVariant, props2.backgroundColor, props2.theme]);
|
|
163769
163815
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": `action-button`, style: wrapperStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
163770
|
-
Button$
|
|
163816
|
+
Button$4,
|
|
163771
163817
|
{
|
|
163772
163818
|
theme: props2.theme,
|
|
163773
163819
|
textColor: ((_a2 = textProps.style) == null ? void 0 : _a2.color) ?? defaultTextColor,
|
|
@@ -164575,7 +164621,7 @@ const rowEventArgs = (entity) => {
|
|
|
164575
164621
|
];
|
|
164576
164622
|
};
|
|
164577
164623
|
const propertiesDefinition$9 = {
|
|
164578
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
164624
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
164579
164625
|
header: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
164580
164626
|
label: "Header",
|
|
164581
164627
|
placeholder: "Table name",
|
|
@@ -164658,7 +164704,7 @@ const propertiesDefinition$9 = {
|
|
|
164658
164704
|
})
|
|
164659
164705
|
}),
|
|
164660
164706
|
layout: basicLayout(),
|
|
164661
|
-
interaction: Section.category(PropsPanelCategory.Interaction).add({
|
|
164707
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).add({
|
|
164662
164708
|
isFilterable: Prop.boolean().readAndWrite().default(true).propertiesPanel({
|
|
164663
164709
|
label: "Filtering",
|
|
164664
164710
|
helpText: "Enable per column filtering"
|
|
@@ -164767,7 +164813,7 @@ const propertiesDefinition$9 = {
|
|
|
164767
164813
|
helpText: "Sets the search placeholder text"
|
|
164768
164814
|
})
|
|
164769
164815
|
}),
|
|
164770
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
164816
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
164771
164817
|
defaultSelectedRow: Prop.number().readAndWrite().propertiesPanel({
|
|
164772
164818
|
label: "Default selected row",
|
|
164773
164819
|
helpText: "Sets the default selected row"
|
|
@@ -164878,7 +164924,7 @@ const propertiesDefinition$9 = {
|
|
|
164878
164924
|
helpText: "Sets the border radius of the search"
|
|
164879
164925
|
})
|
|
164880
164926
|
}),
|
|
164881
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
164927
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
164882
164928
|
onRowClick: Prop.event().propertiesPanel({
|
|
164883
164929
|
label: "onRowClick",
|
|
164884
164930
|
computedArgs: rowEventArgs
|
|
@@ -164927,7 +164973,7 @@ const propertiesDefinition$9 = {
|
|
|
164927
164973
|
]
|
|
164928
164974
|
})
|
|
164929
164975
|
}),
|
|
164930
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
164976
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
164931
164977
|
// leaving tableDataWithInserts in because filteredTableData depends on them
|
|
164932
164978
|
// because we won't have editing, tableDataWithInserts will be the same as tableData
|
|
164933
164979
|
tableDataWithInserts: Prop.any().readable().default(function() {
|
|
@@ -164952,7 +164998,7 @@ const propertiesDefinition$9 = {
|
|
|
164952
164998
|
// validationErrors: Prop.any().readable().default(getAllValidationErrors),
|
|
164953
164999
|
// editedRowIndices: Prop.any().readable().default(getEditedRowIndices),
|
|
164954
165000
|
}),
|
|
164955
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
165001
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
164956
165002
|
selectedRowIndex: Prop.number().readable().default(function() {
|
|
164957
165003
|
return this.defaultSelectedRow;
|
|
164958
165004
|
}),
|
|
@@ -174522,7 +174568,7 @@ const TableRoot = /* @__PURE__ */ React__default.memo(function TableVirtuosoRoot
|
|
|
174522
174568
|
)));
|
|
174523
174569
|
});
|
|
174524
174570
|
const {
|
|
174525
|
-
Component: Table$
|
|
174571
|
+
Component: Table$2,
|
|
174526
174572
|
usePublisher,
|
|
174527
174573
|
useEmitterValue,
|
|
174528
174574
|
useEmitter
|
|
@@ -174584,7 +174630,7 @@ const {
|
|
|
174584
174630
|
);
|
|
174585
174631
|
const Scroller = /* @__PURE__ */ buildScroller({ usePublisher, useEmitterValue, useEmitter });
|
|
174586
174632
|
const WindowScroller = /* @__PURE__ */ buildWindowScroller({ usePublisher, useEmitterValue, useEmitter });
|
|
174587
|
-
const TableVirtuoso = Table$
|
|
174633
|
+
const TableVirtuoso = Table$2;
|
|
174588
174634
|
const isUserOnMac = () => window.navigator.platform.toLowerCase().indexOf("mac") >= 0;
|
|
174589
174635
|
const TableActionIcon = ({
|
|
174590
174636
|
children,
|
|
@@ -174981,14 +175027,14 @@ const Right$2 = qe$1.div`
|
|
|
174981
175027
|
align-items: center;
|
|
174982
175028
|
}
|
|
174983
175029
|
`;
|
|
174984
|
-
const AddButton = qe$1(Button$
|
|
175030
|
+
const AddButton = qe$1(Button$6)`
|
|
174985
175031
|
padding: 5px;
|
|
174986
175032
|
svg {
|
|
174987
175033
|
height: 20px;
|
|
174988
175034
|
width: 20px;
|
|
174989
175035
|
}
|
|
174990
175036
|
`;
|
|
174991
|
-
const DeleteButton = qe$1(Button$
|
|
175037
|
+
const DeleteButton = qe$1(Button$6)`
|
|
174992
175038
|
padding: 7px;
|
|
174993
175039
|
svg {
|
|
174994
175040
|
height: 16px;
|
|
@@ -175121,7 +175167,7 @@ const TableFooter = ({
|
|
|
175121
175167
|
if (numEdits > 0) {
|
|
175122
175168
|
buttons.push(
|
|
175123
175169
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175124
|
-
Button$
|
|
175170
|
+
Button$6,
|
|
175125
175171
|
{
|
|
175126
175172
|
type: "ghost",
|
|
175127
175173
|
onClick: handleEditCancel,
|
|
@@ -175149,7 +175195,7 @@ const TableFooter = ({
|
|
|
175149
175195
|
}
|
|
175150
175196
|
buttons.push(
|
|
175151
175197
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$2, { placement: "bottom", title: tooltipMessage, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175152
|
-
Button$
|
|
175198
|
+
Button$6,
|
|
175153
175199
|
{
|
|
175154
175200
|
type: "primary",
|
|
175155
175201
|
onClick: handleEditSave,
|
|
@@ -175432,7 +175478,7 @@ const ColumnsSetting = (props2) => {
|
|
|
175432
175478
|
);
|
|
175433
175479
|
}) }),
|
|
175434
175480
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Right$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175435
|
-
Button$
|
|
175481
|
+
Button$6,
|
|
175436
175482
|
{
|
|
175437
175483
|
type: "primary",
|
|
175438
175484
|
size: "small",
|
|
@@ -175748,7 +175794,7 @@ const uiOfparamsType = {
|
|
|
175748
175794
|
rules: [{ required: true, message: "Enter a value" }],
|
|
175749
175795
|
initialValue: formParams.text1,
|
|
175750
175796
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175751
|
-
|
|
175797
|
+
Input$1,
|
|
175752
175798
|
{
|
|
175753
175799
|
placeholder: "Value",
|
|
175754
175800
|
"data-test": "filter-condition-param",
|
|
@@ -175852,7 +175898,7 @@ const uiOfparamsType = {
|
|
|
175852
175898
|
rules: [{ required: true, message: "Enter a value" }],
|
|
175853
175899
|
initialValue: formParams.date1,
|
|
175854
175900
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175855
|
-
DatePicker,
|
|
175901
|
+
DatePicker$1,
|
|
175856
175902
|
{
|
|
175857
175903
|
placeholder: "Value",
|
|
175858
175904
|
"data-test": "filter-condition-param",
|
|
@@ -175890,7 +175936,7 @@ const uiOfparamsType = {
|
|
|
175890
175936
|
],
|
|
175891
175937
|
initialValue: [formParams.date1 ?? null, formParams.date2 ?? null],
|
|
175892
175938
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
175893
|
-
DatePicker.RangePicker,
|
|
175939
|
+
DatePicker$1.RangePicker,
|
|
175894
175940
|
{
|
|
175895
175941
|
style: { width: "100%" },
|
|
175896
175942
|
format: backwardsCompatibleMomentFormatter(
|
|
@@ -176330,7 +176376,7 @@ const FilterPopoverContent = ({
|
|
|
176330
176376
|
children: [
|
|
176331
176377
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ValuesSelectAllNoneWrapper, { children: [
|
|
176332
176378
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
176333
|
-
Button$
|
|
176379
|
+
Button$6,
|
|
176334
176380
|
{
|
|
176335
176381
|
type: "link",
|
|
176336
176382
|
style: { padding: 0 },
|
|
@@ -176341,7 +176387,7 @@ const FilterPopoverContent = ({
|
|
|
176341
176387
|
}
|
|
176342
176388
|
),
|
|
176343
176389
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
176344
|
-
Button$
|
|
176390
|
+
Button$6,
|
|
176345
176391
|
{
|
|
176346
176392
|
type: "link",
|
|
176347
176393
|
style: { padding: 0 },
|
|
@@ -176390,7 +176436,7 @@ const FilterPopoverContent = ({
|
|
|
176390
176436
|
),
|
|
176391
176437
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ActionButtonsWrapper, { children: [
|
|
176392
176438
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Form$1.Item, { style: { marginRight: "auto" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
176393
|
-
Button$
|
|
176439
|
+
Button$6,
|
|
176394
176440
|
{
|
|
176395
176441
|
type: "link",
|
|
176396
176442
|
onClick: handleClearClick,
|
|
@@ -176401,7 +176447,7 @@ const FilterPopoverContent = ({
|
|
|
176401
176447
|
}
|
|
176402
176448
|
) }),
|
|
176403
176449
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Form$1.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
176404
|
-
Button$
|
|
176450
|
+
Button$6,
|
|
176405
176451
|
{
|
|
176406
176452
|
onClick: onClose2,
|
|
176407
176453
|
className: CLASS_NAMES.SECONDARY_NEUTRAL_BUTTON,
|
|
@@ -176409,7 +176455,7 @@ const FilterPopoverContent = ({
|
|
|
176409
176455
|
}
|
|
176410
176456
|
) }),
|
|
176411
176457
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Form$1.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
176412
|
-
Button$
|
|
176458
|
+
Button$6,
|
|
176413
176459
|
{
|
|
176414
176460
|
type: "primary",
|
|
176415
176461
|
htmlType: "submit",
|
|
@@ -177138,7 +177184,7 @@ const Wrapper$1 = qe$1.div`
|
|
|
177138
177184
|
display: flex;
|
|
177139
177185
|
align-items: center;
|
|
177140
177186
|
`;
|
|
177141
|
-
const MenuButton = qe$1(Button$
|
|
177187
|
+
const MenuButton = qe$1(Button$6)`
|
|
177142
177188
|
height: ${(props2) => props2.$tableSizes.ROW_HEIGHT - 2 * MENU_PADDING}px;
|
|
177143
177189
|
width: ${(props2) => props2.$tableSizes.ROW_HEIGHT - 2 * MENU_PADDING}px;
|
|
177144
177190
|
min-height: 20px;
|
|
@@ -177170,7 +177216,7 @@ const TableRowContextMenu = (props2) => {
|
|
|
177170
177216
|
};
|
|
177171
177217
|
}, []);
|
|
177172
177218
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
177173
|
-
Dropdown$
|
|
177219
|
+
Dropdown$2,
|
|
177174
177220
|
{
|
|
177175
177221
|
trigger: ["click"],
|
|
177176
177222
|
placement: "bottom",
|
|
@@ -177504,7 +177550,7 @@ const isRowEqual = (row1, row2) => {
|
|
|
177504
177550
|
});
|
|
177505
177551
|
return isRowEqual2;
|
|
177506
177552
|
};
|
|
177507
|
-
const Table = (props2) => {
|
|
177553
|
+
const Table$1 = (props2) => {
|
|
177508
177554
|
var _a2, _b2;
|
|
177509
177555
|
const tableSizes = TABLE_SIZES[getRowDensity(props2.rowDensity)];
|
|
177510
177556
|
const {
|
|
@@ -179771,7 +179817,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
179771
179817
|
}, 0) + Object.keys(this.props.deletedRowIndices ?? {}).length + Object.keys(((_a2 = this.props.inserts) == null ? void 0 : _a2.insertedRowsById) ?? {}).length;
|
|
179772
179818
|
const numEditErrors = ((_b2 = this.props.validationErrors) == null ? void 0 : _b2.length) ?? 0;
|
|
179773
179819
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(TableManagerContext.Provider, { value: this.tableManager, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, {}), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
179774
|
-
Table,
|
|
179820
|
+
Table$1,
|
|
179775
179821
|
{
|
|
179776
179822
|
theme: this.props.theme,
|
|
179777
179823
|
appMode: "EDIT",
|
|
@@ -179933,8 +179979,8 @@ const EMPTY_ARRAY = [];
|
|
|
179933
179979
|
const EMPTY_OBJ = {};
|
|
179934
179980
|
const noop = () => {
|
|
179935
179981
|
};
|
|
179936
|
-
const
|
|
179937
|
-
"
|
|
179982
|
+
const Table = registerComponent$1(
|
|
179983
|
+
"Table",
|
|
179938
179984
|
{
|
|
179939
179985
|
propertiesDefinition: propertiesDefinition$9
|
|
179940
179986
|
},
|
|
@@ -180692,7 +180738,7 @@ var MultiSelect = (
|
|
|
180692
180738
|
var maybeClearButton = onClear !== void 0 && selectedItems.length > 0 ? (
|
|
180693
180739
|
// use both aria-label and title a11y attributes here, for screen readers
|
|
180694
180740
|
// and mouseover interactions respectively
|
|
180695
|
-
React.createElement(Button$
|
|
180741
|
+
React.createElement(Button$5, { "aria-label": "Clear selected items", disabled, icon: React.createElement(Cross$1, null), minimal: true, onClick: _this.handleClearButtonClick, title: "Clear selected items" })
|
|
180696
180742
|
) : void 0;
|
|
180697
180743
|
var inputProps = __assign$2(__assign$2({}, tagInputProps.inputProps), { className: classNames((_a3 = tagInputProps.inputProps) === null || _a3 === void 0 ? void 0 : _a3.className, MULTISELECT_TAG_INPUT_INPUT) });
|
|
180698
180744
|
return React.createElement(TagInput, __assign$2({ placeholder, rightElement: maybeClearButton }, tagInputProps, { className: classNames(className, MULTISELECT, tagInputProps.className), disabled, fill, inputRef: _this.refHandlers.input, inputProps, inputValue: listProps.query, onAdd: _this.getTagInputAddHandler(listProps), onInputChange: listProps.handleQueryChange, onRemove: _this.handleTagRemove, values: selectedItems.map(_this.props.tagRenderer) }));
|
|
@@ -183818,7 +183864,7 @@ const normalizeFunction = (val, transformationValue) => {
|
|
|
183818
183864
|
return String(val);
|
|
183819
183865
|
};
|
|
183820
183866
|
const propertiesDefinition$8 = {
|
|
183821
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
183867
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
183822
183868
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
183823
183869
|
label: "Label",
|
|
183824
183870
|
helpText: "Text to be shown above the dropdown",
|
|
@@ -183856,7 +183902,7 @@ const propertiesDefinition$8 = {
|
|
|
183856
183902
|
}
|
|
183857
183903
|
})
|
|
183858
183904
|
}),
|
|
183859
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
183905
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
183860
183906
|
labelPosition: labelPosition(),
|
|
183861
183907
|
labelStyle: labelTextStyle(),
|
|
183862
183908
|
icon: Prop.string().propertiesPanel({
|
|
@@ -183874,11 +183920,11 @@ const propertiesDefinition$8 = {
|
|
|
183874
183920
|
textStyle: inputTextStyle(),
|
|
183875
183921
|
loading: loading()
|
|
183876
183922
|
}),
|
|
183877
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add({
|
|
183923
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add({
|
|
183878
183924
|
...size$2(),
|
|
183879
183925
|
...widthWithoutFit()
|
|
183880
183926
|
}).add(margin()).add(visible()),
|
|
183881
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
183927
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
183882
183928
|
multiselect: Prop.boolean().readAndWrite().default(false).propertiesPanel({
|
|
183883
183929
|
label: "Multi-select",
|
|
183884
183930
|
helpText: "Allows users to select either a single option or multiple options"
|
|
@@ -183910,7 +183956,7 @@ const propertiesDefinition$8 = {
|
|
|
183910
183956
|
errorMessagePlacement,
|
|
183911
183957
|
...customValidationProperties
|
|
183912
183958
|
}),
|
|
183913
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
183959
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
183914
183960
|
onOptionChange: Prop.event().propertiesPanel({
|
|
183915
183961
|
label: "onOptionChange"
|
|
183916
183962
|
}),
|
|
@@ -183921,7 +183967,7 @@ const propertiesDefinition$8 = {
|
|
|
183921
183967
|
label: "onClear"
|
|
183922
183968
|
})
|
|
183923
183969
|
}),
|
|
183924
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
183970
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
183925
183971
|
metaSelectedOptionValue: Prop.any().default(function() {
|
|
183926
183972
|
return this.defaultOptionValue;
|
|
183927
183973
|
}),
|
|
@@ -183931,7 +183977,7 @@ const propertiesDefinition$8 = {
|
|
|
183931
183977
|
isTouched: Prop.boolean().default(false),
|
|
183932
183978
|
searchText: Prop.string()
|
|
183933
183979
|
}),
|
|
183934
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
183980
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
183935
183981
|
value: Prop.any().readable().default(function() {
|
|
183936
183982
|
return this.multiselect ? this.selectedOptionArr : this.selectedOptionValue;
|
|
183937
183983
|
}),
|
|
@@ -184118,8 +184164,8 @@ const DropdownStyleOverrides = qe$1.div`
|
|
|
184118
184164
|
${(props2) => props2.$vertical ? labelStyle.vertical : labelStyle.horizontal}
|
|
184119
184165
|
}
|
|
184120
184166
|
`;
|
|
184121
|
-
const
|
|
184122
|
-
"
|
|
184167
|
+
const Dropdown = registerComponent$1(
|
|
184168
|
+
"Dropdown",
|
|
184123
184169
|
{
|
|
184124
184170
|
container: false,
|
|
184125
184171
|
propertiesDefinition: propertiesDefinition$8
|
|
@@ -184360,8 +184406,8 @@ const SbDropdown = registerSbComponent(
|
|
|
184360
184406
|
) }) });
|
|
184361
184407
|
}
|
|
184362
184408
|
);
|
|
184363
|
-
const
|
|
184364
|
-
"
|
|
184409
|
+
const CustomComponent = registerComponent$1(
|
|
184410
|
+
"CustomComponent",
|
|
184365
184411
|
{
|
|
184366
184412
|
propertiesDefinition: {}
|
|
184367
184413
|
},
|
|
@@ -184379,20 +184425,20 @@ const SbCustom = registerSbComponent(
|
|
|
184379
184425
|
}
|
|
184380
184426
|
);
|
|
184381
184427
|
const defaultSections = {
|
|
184382
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
184428
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
184383
184429
|
loading: loading()
|
|
184384
184430
|
}),
|
|
184385
184431
|
layout: basicLayout()
|
|
184386
184432
|
};
|
|
184387
184433
|
function registerComponent(name, propertiesDefinition2, component) {
|
|
184388
|
-
const contentSection = Section.category(PropsPanelCategory.Content).children(
|
|
184434
|
+
const contentSection = Section$1.category(PropsPanelCategory.Content).children(
|
|
184389
184435
|
Object.fromEntries(
|
|
184390
184436
|
Object.entries(propertiesDefinition2).filter(
|
|
184391
184437
|
([_15, prop]) => prop.type !== "event"
|
|
184392
184438
|
)
|
|
184393
184439
|
)
|
|
184394
184440
|
);
|
|
184395
|
-
const eventSection = Section.category(
|
|
184441
|
+
const eventSection = Section$1.category(
|
|
184396
184442
|
PropsPanelCategory.EventHandlers
|
|
184397
184443
|
).children(
|
|
184398
184444
|
Object.fromEntries(
|
|
@@ -184401,7 +184447,7 @@ function registerComponent(name, propertiesDefinition2, component) {
|
|
|
184401
184447
|
)
|
|
184402
184448
|
)
|
|
184403
184449
|
);
|
|
184404
|
-
return
|
|
184450
|
+
return registerComponent$1(
|
|
184405
184451
|
name,
|
|
184406
184452
|
{
|
|
184407
184453
|
propertiesDefinition: {
|
|
@@ -184516,7 +184562,7 @@ class CheckboxComponent extends React__default.PureComponent {
|
|
|
184516
184562
|
}
|
|
184517
184563
|
}
|
|
184518
184564
|
const propertiesDefinition$7 = {
|
|
184519
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
184565
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
184520
184566
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
184521
184567
|
label: "Label",
|
|
184522
184568
|
helpText: "Displays a label next to the component",
|
|
@@ -184531,12 +184577,12 @@ const propertiesDefinition$7 = {
|
|
|
184531
184577
|
controlType: "SWITCH"
|
|
184532
184578
|
})
|
|
184533
184579
|
}),
|
|
184534
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
184580
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
184535
184581
|
labelStyle: labelTextStyle(),
|
|
184536
184582
|
loading: loading()
|
|
184537
184583
|
}),
|
|
184538
184584
|
layout: basicLayout(),
|
|
184539
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
184585
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
184540
184586
|
isRequired: Prop.boolean().readAndWrite().propertiesPanel({
|
|
184541
184587
|
label: "Required",
|
|
184542
184588
|
helpText: "Makes checking this component mandatory",
|
|
@@ -184549,19 +184595,19 @@ const propertiesDefinition$7 = {
|
|
|
184549
184595
|
errorMessagePlacement,
|
|
184550
184596
|
...customValidationProperties
|
|
184551
184597
|
}),
|
|
184552
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
184598
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
184553
184599
|
onCheckChange: Prop.event().propertiesPanel({
|
|
184554
184600
|
label: "onCheckChange"
|
|
184555
184601
|
})
|
|
184556
184602
|
}),
|
|
184557
184603
|
// non-configurable properties
|
|
184558
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
184604
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
184559
184605
|
isTouched: Prop.boolean().default(false),
|
|
184560
184606
|
isChecked: Prop.boolean().readable().default(function() {
|
|
184561
184607
|
return this.defaultChecked;
|
|
184562
184608
|
})
|
|
184563
184609
|
}),
|
|
184564
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
184610
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
184565
184611
|
value: Prop.boolean().readable().default(function() {
|
|
184566
184612
|
return this.isChecked;
|
|
184567
184613
|
}),
|
|
@@ -184589,8 +184635,8 @@ const CheckboxContainer = qe$1.div`
|
|
|
184589
184635
|
flex-direction: column;
|
|
184590
184636
|
align-items: flex-start;
|
|
184591
184637
|
`;
|
|
184592
|
-
const
|
|
184593
|
-
"
|
|
184638
|
+
const Checkbox = registerComponent$1(
|
|
184639
|
+
"Checkbox",
|
|
184594
184640
|
{
|
|
184595
184641
|
propertiesDefinition: propertiesDefinition$7
|
|
184596
184642
|
},
|
|
@@ -184745,7 +184791,7 @@ const adjustMinMaxDateSideEffect = (params) => {
|
|
|
184745
184791
|
return {};
|
|
184746
184792
|
};
|
|
184747
184793
|
const propertiesDefinition$6 = {
|
|
184748
|
-
general: Section.category(PropsPanelCategory.Content).add({
|
|
184794
|
+
general: Section$1.category(PropsPanelCategory.Content).add({
|
|
184749
184795
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
184750
184796
|
label: "Label",
|
|
184751
184797
|
helpText: "Sets a label text for the Datepicker",
|
|
@@ -184816,11 +184862,11 @@ const propertiesDefinition$6 = {
|
|
|
184816
184862
|
controlType: "SWITCH"
|
|
184817
184863
|
})
|
|
184818
184864
|
}),
|
|
184819
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add({
|
|
184865
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add({
|
|
184820
184866
|
...size$2(),
|
|
184821
184867
|
...widthWithoutFit()
|
|
184822
184868
|
}).add(margin()).add(visible()),
|
|
184823
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
184869
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
184824
184870
|
labelPosition: labelPosition(),
|
|
184825
184871
|
labelStyle: labelTextStyle(),
|
|
184826
184872
|
icon: Prop.string().readAndWrite().default("calendar_today").propertiesPanel({
|
|
@@ -184837,7 +184883,7 @@ const propertiesDefinition$6 = {
|
|
|
184837
184883
|
textStyle: inputTextStyle(),
|
|
184838
184884
|
loading: loading()
|
|
184839
184885
|
}),
|
|
184840
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
184886
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
184841
184887
|
isRequired: Prop.boolean().readAndWrite().default(false).propertiesPanel({
|
|
184842
184888
|
label: "Required",
|
|
184843
184889
|
helpText: "Makes date picker mandatory",
|
|
@@ -184864,7 +184910,7 @@ const propertiesDefinition$6 = {
|
|
|
184864
184910
|
errorMessagePlacement,
|
|
184865
184911
|
...customValidationProperties
|
|
184866
184912
|
}),
|
|
184867
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
184913
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
184868
184914
|
onDateSelected: Prop.event().propertiesPanel({
|
|
184869
184915
|
label: "onDateSelected"
|
|
184870
184916
|
})
|
|
@@ -184875,13 +184921,13 @@ const propertiesDefinition$6 = {
|
|
|
184875
184921
|
* Also handles defaults from our old system
|
|
184876
184922
|
* Also handles meta properties like isTouched & selectedDate
|
|
184877
184923
|
*/
|
|
184878
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
184924
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
184879
184925
|
selectedDate: Prop.string().readable().default(function() {
|
|
184880
184926
|
return this.defaultDate;
|
|
184881
184927
|
}),
|
|
184882
184928
|
isTouched: Prop.boolean().default(false)
|
|
184883
184929
|
}),
|
|
184884
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
184930
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
184885
184931
|
value: Prop.string().readable().default(function() {
|
|
184886
184932
|
return this.selectedDate ? this.selectedDate : void 0;
|
|
184887
184933
|
}),
|
|
@@ -184935,8 +184981,8 @@ const DatePickerContainer = qe$1.div`
|
|
|
184935
184981
|
align-items: flex-start;
|
|
184936
184982
|
width: 100%;
|
|
184937
184983
|
`;
|
|
184938
|
-
const
|
|
184939
|
-
"
|
|
184984
|
+
const DatePicker = registerComponent$1(
|
|
184985
|
+
"DatePicker",
|
|
184940
184986
|
{
|
|
184941
184987
|
// If we want to allow nesting other child widgets inside date picker,
|
|
184942
184988
|
// set container: true. Usually date pickers won't container other widgets.
|
|
@@ -185017,7 +185063,7 @@ const SbDatePicker = registerSbComponent(
|
|
|
185017
185063
|
}
|
|
185018
185064
|
);
|
|
185019
185065
|
const propertiesDefinition$5 = {
|
|
185020
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
185066
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
185021
185067
|
label: Prop.string().readAndWrite().default("").propertiesPanel({
|
|
185022
185068
|
label: "Label",
|
|
185023
185069
|
helpText: "The label to be displayed beside the switch",
|
|
@@ -185032,7 +185078,7 @@ const propertiesDefinition$5 = {
|
|
|
185032
185078
|
controlType: "SWITCH"
|
|
185033
185079
|
})
|
|
185034
185080
|
}),
|
|
185035
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
185081
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
185036
185082
|
labelPosition: Prop.string().readAndWrite().default("right").propertiesPanel({
|
|
185037
185083
|
label: "Label position",
|
|
185038
185084
|
controlType: "RADIO_BUTTON_GROUP",
|
|
@@ -185056,7 +185102,7 @@ const propertiesDefinition$5 = {
|
|
|
185056
185102
|
})
|
|
185057
185103
|
}),
|
|
185058
185104
|
layout: basicLayout(),
|
|
185059
|
-
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
185105
|
+
interaction: Section$1.category(PropsPanelCategory.Interaction).children({
|
|
185060
185106
|
isRequired: Prop.boolean().readAndWrite().propertiesPanel({
|
|
185061
185107
|
label: "Required",
|
|
185062
185108
|
helpText: "Makes checking this component mandatory",
|
|
@@ -185069,19 +185115,19 @@ const propertiesDefinition$5 = {
|
|
|
185069
185115
|
errorMessagePlacement,
|
|
185070
185116
|
...customValidationProperties
|
|
185071
185117
|
}),
|
|
185072
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
185118
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
185073
185119
|
onSwitchChange: Prop.event().propertiesPanel({
|
|
185074
185120
|
label: "onSwitchChange"
|
|
185075
185121
|
})
|
|
185076
185122
|
}),
|
|
185077
185123
|
// non-configurable properties
|
|
185078
|
-
meta: Section.category(PropsPanelCategory.Meta).children({
|
|
185124
|
+
meta: Section$1.category(PropsPanelCategory.Meta).children({
|
|
185079
185125
|
isTouched: Prop.boolean().default(false),
|
|
185080
185126
|
isChecked: Prop.boolean().readable().default(function() {
|
|
185081
185127
|
return this.defaultChecked;
|
|
185082
185128
|
})
|
|
185083
185129
|
}),
|
|
185084
|
-
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
185130
|
+
derived: Section$1.category(PropsPanelCategory.Derived).children({
|
|
185085
185131
|
isToggledOn: Prop.boolean().readable().default(function() {
|
|
185086
185132
|
return this.isChecked;
|
|
185087
185133
|
}),
|
|
@@ -185247,8 +185293,8 @@ const SwitchContainer = qe$1.div`
|
|
|
185247
185293
|
flex-direction: column;
|
|
185248
185294
|
align-items: flex-start;
|
|
185249
185295
|
`;
|
|
185250
|
-
const
|
|
185251
|
-
"
|
|
185296
|
+
const Switch = registerComponent$1(
|
|
185297
|
+
"Switch",
|
|
185252
185298
|
{
|
|
185253
185299
|
propertiesDefinition: propertiesDefinition$5
|
|
185254
185300
|
},
|
|
@@ -185303,7 +185349,7 @@ const SbSwitch = registerSbComponent(
|
|
|
185303
185349
|
}
|
|
185304
185350
|
);
|
|
185305
185351
|
const propertiesDefinition$4 = {
|
|
185306
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
185352
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
185307
185353
|
icon: Prop.string().readAndWrite().default("info").propertiesPanel({
|
|
185308
185354
|
label: "Icon",
|
|
185309
185355
|
helpText: "Select an icon",
|
|
@@ -185311,20 +185357,20 @@ const propertiesDefinition$4 = {
|
|
|
185311
185357
|
})
|
|
185312
185358
|
}),
|
|
185313
185359
|
// layout: basicLayout(),
|
|
185314
|
-
layout: Section.category(PropsPanelCategory.Layout).children({
|
|
185360
|
+
layout: Section$1.category(PropsPanelCategory.Layout).children({
|
|
185315
185361
|
size: Prop.dimension().readAndWrite().propertiesPanel({
|
|
185316
185362
|
label: "Size",
|
|
185317
185363
|
controlType: "WIDTH_DROPDOWN"
|
|
185318
185364
|
}).default(Dim.fit())
|
|
185319
185365
|
}).add(margin()).add(visible()),
|
|
185320
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
185366
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
185321
185367
|
color: colorProp({
|
|
185322
185368
|
label: "Color",
|
|
185323
185369
|
helpText: "Changes the color of the icon"
|
|
185324
185370
|
}),
|
|
185325
185371
|
loading: loading()
|
|
185326
185372
|
}),
|
|
185327
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
185373
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
185328
185374
|
onClick: Prop.event().propertiesPanel({
|
|
185329
185375
|
label: "onClick",
|
|
185330
185376
|
helpText: "Triggers an action when a user clicks the icon"
|
|
@@ -185334,8 +185380,8 @@ const propertiesDefinition$4 = {
|
|
|
185334
185380
|
const StyledContainer = qe$1.div`
|
|
185335
185381
|
overflow: hidden;
|
|
185336
185382
|
`;
|
|
185337
|
-
const
|
|
185338
|
-
"
|
|
185383
|
+
const Icon = registerComponent$1(
|
|
185384
|
+
"Icon",
|
|
185339
185385
|
{
|
|
185340
185386
|
propertiesDefinition: propertiesDefinition$4
|
|
185341
185387
|
},
|
|
@@ -185533,7 +185579,7 @@ class ImageComponent extends React.Component {
|
|
|
185533
185579
|
}
|
|
185534
185580
|
}
|
|
185535
185581
|
const propertiesDefinition$3 = {
|
|
185536
|
-
general: Section.category(PropsPanelCategory.Content).children({
|
|
185582
|
+
general: Section$1.category(PropsPanelCategory.Content).children({
|
|
185537
185583
|
src: Prop.string().readAndWrite().propertiesPanel({
|
|
185538
185584
|
label: "Image",
|
|
185539
185585
|
helpText: "Renders the image from the URL or Data URL in the component.",
|
|
@@ -185541,7 +185587,7 @@ const propertiesDefinition$3 = {
|
|
|
185541
185587
|
controlType: "INPUT_TEXT"
|
|
185542
185588
|
})
|
|
185543
185589
|
}),
|
|
185544
|
-
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
185590
|
+
appearance: Section$1.category(PropsPanelCategory.Appearance).children({
|
|
185545
185591
|
backgroundColor: colorProp({
|
|
185546
185592
|
label: "Background",
|
|
185547
185593
|
helpText: "Changes the color of the background"
|
|
@@ -185572,8 +185618,8 @@ const propertiesDefinition$3 = {
|
|
|
185572
185618
|
}),
|
|
185573
185619
|
loading: loading()
|
|
185574
185620
|
}),
|
|
185575
|
-
layout: Section.category(PropsPanelCategory.Layout).add(size$2()).add(margin()).add(visible()),
|
|
185576
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
185621
|
+
layout: Section$1.category(PropsPanelCategory.Layout).add(size$2()).add(margin()).add(visible()),
|
|
185622
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
185577
185623
|
onClick: Prop.event().propertiesPanel({
|
|
185578
185624
|
label: "onClick",
|
|
185579
185625
|
helpText: "Triggers an action when a user clicks the image"
|
|
@@ -185586,8 +185632,8 @@ const ImageContainer = qe$1.div`
|
|
|
185586
185632
|
align-items: flex-start;
|
|
185587
185633
|
overflow-y: hidden;
|
|
185588
185634
|
`;
|
|
185589
|
-
const
|
|
185590
|
-
"
|
|
185635
|
+
const Image = registerComponent$1(
|
|
185636
|
+
"Image",
|
|
185591
185637
|
{
|
|
185592
185638
|
propertiesDefinition: propertiesDefinition$3
|
|
185593
185639
|
},
|
|
@@ -185625,7 +185671,7 @@ const SbImage = registerSbComponent(
|
|
|
185625
185671
|
}
|
|
185626
185672
|
);
|
|
185627
185673
|
const propertiesDefinition$2 = {
|
|
185628
|
-
general: Section.category(PropsPanelCategory.Uncategorized).propertiesPanel({ showHeader: false }).children({
|
|
185674
|
+
general: Section$1.category(PropsPanelCategory.Uncategorized).propertiesPanel({ showHeader: false }).children({
|
|
185629
185675
|
defaultValue: Prop.any().readAndWrite().propertiesPanel({
|
|
185630
185676
|
label: "Default value",
|
|
185631
185677
|
helpText: "Sets the default value of the state variable",
|
|
@@ -185651,7 +185697,7 @@ const propertiesDefinition$2 = {
|
|
|
185651
185697
|
]
|
|
185652
185698
|
})
|
|
185653
185699
|
}),
|
|
185654
|
-
functions: Section.category(PropsPanelCategory.Functions).children({
|
|
185700
|
+
functions: Section$1.category(PropsPanelCategory.Functions).children({
|
|
185655
185701
|
set: Prop.function(function(_s2, value) {
|
|
185656
185702
|
const widget = this;
|
|
185657
185703
|
widget.value = value;
|
|
@@ -185662,7 +185708,7 @@ const propertiesDefinition$2 = {
|
|
|
185662
185708
|
})
|
|
185663
185709
|
})
|
|
185664
185710
|
};
|
|
185665
|
-
const SbVariable =
|
|
185711
|
+
const SbVariable = registerEntity(
|
|
185666
185712
|
SbEntityType.VARIABLE,
|
|
185667
185713
|
{
|
|
185668
185714
|
propertiesDefinition: propertiesDefinition$2
|
|
@@ -185678,7 +185724,7 @@ const SbVariable = registerSbEntity(
|
|
|
185678
185724
|
}
|
|
185679
185725
|
);
|
|
185680
185726
|
const propertiesDefinition$1 = {
|
|
185681
|
-
general: Section.category(PropsPanelCategory.Uncategorized).propertiesPanel({ showHeader: false }).children({
|
|
185727
|
+
general: Section$1.category(PropsPanelCategory.Uncategorized).propertiesPanel({ showHeader: false }).children({
|
|
185682
185728
|
intervalMs: Prop.number().default(300).readAndWrite().propertiesPanel({
|
|
185683
185729
|
label: "Interval",
|
|
185684
185730
|
helpText: "Sets the interval of the timer",
|
|
@@ -185692,16 +185738,16 @@ const propertiesDefinition$1 = {
|
|
|
185692
185738
|
controlType: "SWITCH"
|
|
185693
185739
|
})
|
|
185694
185740
|
}),
|
|
185695
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
185741
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
185696
185742
|
onFire: Prop.event().propertiesPanel({ label: "onFire" })
|
|
185697
185743
|
}),
|
|
185698
|
-
metadata: Section.category(PropsPanelCategory.Meta).children({
|
|
185744
|
+
metadata: Section$1.category(PropsPanelCategory.Meta).children({
|
|
185699
185745
|
timerId: Prop.string().validate(VALIDATORS.TEXT_ALLOW_UNDEFINED),
|
|
185700
185746
|
isRunning: Prop.boolean().default(function() {
|
|
185701
185747
|
return this.timerId !== void 0;
|
|
185702
185748
|
})
|
|
185703
185749
|
}),
|
|
185704
|
-
functions: Section.category(PropsPanelCategory.Functions).children({
|
|
185750
|
+
functions: Section$1.category(PropsPanelCategory.Functions).children({
|
|
185705
185751
|
start: Prop.function(function(_s2) {
|
|
185706
185752
|
const timer = this;
|
|
185707
185753
|
if (timer.timerId) clearInterval(timer.timerId);
|
|
@@ -185725,7 +185771,7 @@ const propertiesDefinition$1 = {
|
|
|
185725
185771
|
})
|
|
185726
185772
|
})
|
|
185727
185773
|
};
|
|
185728
|
-
const SbTimer =
|
|
185774
|
+
const SbTimer = registerEntity(
|
|
185729
185775
|
SbEntityType.TIMER,
|
|
185730
185776
|
{
|
|
185731
185777
|
propertiesDefinition: propertiesDefinition$1
|
|
@@ -185794,7 +185840,7 @@ class SuspensibleAPI {
|
|
|
185794
185840
|
}
|
|
185795
185841
|
}
|
|
185796
185842
|
const propertiesDefinition = {
|
|
185797
|
-
events: Section.category(PropsPanelCategory.EventHandlers).children({
|
|
185843
|
+
events: Section$1.category(PropsPanelCategory.EventHandlers).children({
|
|
185798
185844
|
onSuccess: Prop.event().propertiesPanel({ label: "onSuccess" }),
|
|
185799
185845
|
onError: Prop.event().propertiesPanel({ label: "onError" })
|
|
185800
185846
|
}).propertiesPanel({
|
|
@@ -185803,7 +185849,7 @@ const propertiesDefinition = {
|
|
|
185803
185849
|
headerType: "Large",
|
|
185804
185850
|
subHeader: "Configure frontend event handlers to run in response to the API"
|
|
185805
185851
|
}),
|
|
185806
|
-
metadata: Section.category(PropsPanelCategory.Meta).children({
|
|
185852
|
+
metadata: Section$1.category(PropsPanelCategory.Meta).children({
|
|
185807
185853
|
response: Prop.any().computed(function() {
|
|
185808
185854
|
return this._suspensibleApi.response;
|
|
185809
185855
|
}).readable(),
|
|
@@ -185814,7 +185860,7 @@ const propertiesDefinition = {
|
|
|
185814
185860
|
return this._suspensibleApi.isLoading;
|
|
185815
185861
|
}).readable()
|
|
185816
185862
|
}),
|
|
185817
|
-
functions: Section.category("Derived").children({
|
|
185863
|
+
functions: Section$1.category("Derived").children({
|
|
185818
185864
|
run: Prop.function(async function(_s2) {
|
|
185819
185865
|
var _a2, _b2;
|
|
185820
185866
|
const api2 = this;
|
|
@@ -185832,7 +185878,7 @@ const propertiesDefinition = {
|
|
|
185832
185878
|
await api2._suspensibleApi.cancel();
|
|
185833
185879
|
})
|
|
185834
185880
|
}),
|
|
185835
|
-
internal: Section.category(PropsPanelCategory.Internal).children({
|
|
185881
|
+
internal: Section$1.category(PropsPanelCategory.Internal).children({
|
|
185836
185882
|
/**
|
|
185837
185883
|
* Internal SuspensibleAPI instance that manages loading states and React Suspense integration.
|
|
185838
185884
|
* This property is hidden from the public interface but accessible to other properties.
|
|
@@ -185859,7 +185905,7 @@ const propertiesDefinition = {
|
|
|
185859
185905
|
})
|
|
185860
185906
|
})
|
|
185861
185907
|
};
|
|
185862
|
-
const SbApi =
|
|
185908
|
+
const SbApi = registerEntity(
|
|
185863
185909
|
SbEntityType.API,
|
|
185864
185910
|
{
|
|
185865
185911
|
propertiesDefinition
|
|
@@ -197942,7 +197988,7 @@ const EmbedWrapper = (props2) => {
|
|
|
197942
197988
|
throw new Error(`API ${apiName} not found`);
|
|
197943
197989
|
}
|
|
197944
197990
|
runEventHandlers({
|
|
197945
|
-
flow:
|
|
197991
|
+
flow: EventFlow.runApis([api2]),
|
|
197946
197992
|
name: getName(apiName),
|
|
197947
197993
|
scopeId,
|
|
197948
197994
|
additionalContext: {
|
|
@@ -200114,8 +200160,8 @@ function useUpdateProperties() {
|
|
|
200114
200160
|
);
|
|
200115
200161
|
}
|
|
200116
200162
|
const useTheme = useTheme$1;
|
|
200117
|
-
function
|
|
200118
|
-
const computedValue = computed(() => {
|
|
200163
|
+
function computed(fn3) {
|
|
200164
|
+
const computedValue = computed$1(() => {
|
|
200119
200165
|
try {
|
|
200120
200166
|
return fn3;
|
|
200121
200167
|
} catch (error) {
|
|
@@ -200166,29 +200212,29 @@ var clientExports = requireClient();
|
|
|
200166
200212
|
export {
|
|
200167
200213
|
Outlet as $,
|
|
200168
200214
|
AppStateVarPersistence6 as A,
|
|
200169
|
-
|
|
200170
|
-
|
|
200171
|
-
|
|
200172
|
-
|
|
200173
|
-
|
|
200174
|
-
|
|
200175
|
-
|
|
200215
|
+
Button$3 as B,
|
|
200216
|
+
Column as C,
|
|
200217
|
+
Dropdown as D,
|
|
200218
|
+
EventFlow as E,
|
|
200219
|
+
showAlert as F,
|
|
200220
|
+
logoutIntegrations as G,
|
|
200221
|
+
registerScope as H,
|
|
200176
200222
|
IconSize$2 as I,
|
|
200177
|
-
|
|
200178
|
-
|
|
200179
|
-
|
|
200180
|
-
|
|
200181
|
-
|
|
200182
|
-
|
|
200183
|
-
|
|
200223
|
+
registerPage as J,
|
|
200224
|
+
createScope as K,
|
|
200225
|
+
Global as L,
|
|
200226
|
+
Modal as M,
|
|
200227
|
+
Theme as N,
|
|
200228
|
+
Embed as O,
|
|
200229
|
+
Page as P,
|
|
200184
200230
|
Env as Q,
|
|
200185
200231
|
SbEvent as R,
|
|
200186
|
-
|
|
200187
|
-
|
|
200232
|
+
Section2 as S,
|
|
200233
|
+
Text$1 as T,
|
|
200188
200234
|
useUpdateProperties as U,
|
|
200189
200235
|
useTheme as V,
|
|
200190
200236
|
Prop as W,
|
|
200191
|
-
|
|
200237
|
+
computed as X,
|
|
200192
200238
|
Dim as Y,
|
|
200193
200239
|
SB as Z,
|
|
200194
200240
|
__awaiter as _,
|
|
@@ -200308,29 +200354,29 @@ export {
|
|
|
200308
200354
|
useLocation as bx,
|
|
200309
200355
|
useMatch as by,
|
|
200310
200356
|
useMatches as bz,
|
|
200311
|
-
|
|
200312
|
-
|
|
200313
|
-
|
|
200314
|
-
|
|
200315
|
-
|
|
200316
|
-
|
|
200317
|
-
|
|
200357
|
+
Container as c,
|
|
200358
|
+
Input2 as d,
|
|
200359
|
+
Slideout as e,
|
|
200360
|
+
Table as f,
|
|
200361
|
+
CustomComponent as g,
|
|
200362
|
+
Checkbox as h,
|
|
200363
|
+
DatePicker as i,
|
|
200318
200364
|
jsxRuntimeExports as j,
|
|
200319
|
-
|
|
200320
|
-
|
|
200365
|
+
Switch as k,
|
|
200366
|
+
Icon as l,
|
|
200321
200367
|
makeAutoObservable as m,
|
|
200322
|
-
|
|
200368
|
+
Image as n,
|
|
200323
200369
|
observer as o,
|
|
200324
200370
|
pascalCase as p,
|
|
200325
|
-
|
|
200371
|
+
SbVariable as q,
|
|
200326
200372
|
registerComponent as r,
|
|
200327
|
-
|
|
200373
|
+
SbTimer as s,
|
|
200328
200374
|
toJS as t,
|
|
200329
|
-
|
|
200330
|
-
|
|
200331
|
-
|
|
200332
|
-
|
|
200333
|
-
|
|
200334
|
-
|
|
200335
|
-
};
|
|
200336
|
-
//# sourceMappingURL=index-
|
|
200375
|
+
SbApi as u,
|
|
200376
|
+
SbProvider as v,
|
|
200377
|
+
copyToClipboard as w,
|
|
200378
|
+
navigateTo as x,
|
|
200379
|
+
setQueryParams as y,
|
|
200380
|
+
download as z
|
|
200381
|
+
};
|
|
200382
|
+
//# sourceMappingURL=index-BG-l_gfQ.js.map
|