@superblocksteam/library 2.0.4 → 2.0.6-next.0
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-B2t0JFsE.js → allPaths-BtaGk7Hl.js} +2 -2
- package/dist/{allPaths-B2t0JFsE.js.map → allPaths-BtaGk7Hl.js.map} +1 -1
- package/dist/{allPaths-Ds8PViwH.js → allPaths-COzTzraD.js} +2 -2
- package/dist/{allPaths-Ds8PViwH.js.map → allPaths-COzTzraD.js.map} +1 -1
- package/dist/{allPathsLoader-BwDYmyS1.js → allPathsLoader-CkqgEhyC.js} +3 -3
- package/dist/{allPathsLoader-BwDYmyS1.js.map → allPathsLoader-CkqgEhyC.js.map} +1 -1
- package/dist/{allPathsLoader-l2CC2ZRN.js → allPathsLoader-CoNAJZeJ.js} +3 -3
- package/dist/{allPathsLoader-l2CC2ZRN.js.map → allPathsLoader-CoNAJZeJ.js.map} +1 -1
- package/dist/devtools-consolidated-CziXG7En.js +590 -0
- package/dist/devtools-consolidated-CziXG7En.js.map +1 -0
- package/dist/{index-DV7VPZc1.js → index-C4PHemM8.js} +1169 -473
- package/dist/{index-DV7VPZc1.js.map → index-C4PHemM8.js.map} +1 -1
- package/dist/index.css +172 -1
- package/dist/index.js +149 -149
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js → splitPathsBySizeLoader-BkYpVgsW.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js.map → splitPathsBySizeLoader-BkYpVgsW.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js → splitPathsBySizeLoader-DzWbuSYz.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js.map → splitPathsBySizeLoader-DzWbuSYz.js.map} +1 -1
- package/dist-types/edit-mode/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +12 -1
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +23 -23
- package/dist-types/edit-mode/properties.d.ts +1 -1
- package/dist-types/edit-mode/vite.d.ts +5 -0
- package/dist-types/internal-testing/components/modal.d.ts +3 -1
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +3 -1
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +2 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +57 -0
- package/dist-types/lib/sb-trigger.d.ts +0 -4
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +4 -3
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/registry.d.ts +6 -14
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +2 -1
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/props.d.ts +12 -9
- package/dist-types/lib/user-facing/components/text/utils.d.ts +2 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -2
- package/dist-types/lib/user-facing/themes/constants.d.ts +7 -2
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/package.json +3 -4
- package/dist-types/lib/internal-details/lib/devtools.d.ts +0 -1
|
@@ -48,7 +48,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
48
48
|
var __privateMethod = (obj, member, method4) => (__accessCheck(obj, member, "access private method"), method4);
|
|
49
49
|
var _removeSourceIdElement_dec, _setSourceIdElement_dec, _setActiveRootInstanceId_dec, _init, _cancelApi_dec, _runApi_dec, _init2, _renameWidget_dec, _setWidgetProperty_dec, _setWidgetProperties_dec, _writeRuntimeProperties_dec, _deleteComponents_dec, _dropComponent_dec, _createComponent_dec, _batchUpdate_dec, _clearPendingTransactions_dec, _addPendingTransaction_dec, _executeOrAddToBatch_dec, _init3, _addOptimisticCreateWidget_dec, _processRootWidget_dec, _init4, _refreshPositionsAndGetDropConstraints_dec, _init5, _updateChildPositions_dec, _setWidgetPosition_dec, _setActiveTargetRect_dec, _setActiveDragRect_dec, _setDropTargetId_dec, _setInvalidDropTarget_dec, _setValidRootIds_dec, _cancelNewComponentDrag_dec, _startNewComponentDrag_dec, _setIsDragging_dec, _setWidgetFeatures_dec, _init6;
|
|
50
50
|
import * as React from "react";
|
|
51
|
-
import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Children, memo, useReducer, PureComponent, useSyncExternalStore,
|
|
51
|
+
import React__default, { isValidElement as isValidElement$1, version as version$2, createContext, useContext, useEffect, useRef, useLayoutEffect as useLayoutEffect$2, Component, useState, useMemo as useMemo$2, useCallback, forwardRef, useImperativeHandle, cloneElement as cloneElement$1, createElement, Suspense, Children, memo, useReducer, PureComponent, useSyncExternalStore, createRef } from "react";
|
|
52
52
|
import { S as SvgClose, a as SvgSystemDanger, b as SvgSystemInfo, c as SvgSystemError, d as SvgSystemSuccess, e as SvgPlus, f as SvgHide, g as SvgChevronDown, h as SvgEmptyCheckbox, i as SvgMinus, j as SvgCheckmark, k as SvgCopy, l as SvgExternalLink, m as SvgPlay, n as SvgDownload, o as SvgTrash, p as SvgFilter, q as SvgFreeze, r as SvgSort, s as SvgEllipsis, t as SvgCrossXs, u as SvgClark } from "./icons-NrNO8p_u.js";
|
|
53
53
|
import * as ReactDOM from "react-dom";
|
|
54
54
|
import ReactDOM__default, { unstable_batchedUpdates, flushSync, createPortal } from "react-dom";
|
|
@@ -5917,18 +5917,11 @@ if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === "object") {
|
|
|
5917
5917
|
$mobx
|
|
5918
5918
|
});
|
|
5919
5919
|
}
|
|
5920
|
-
let internalStores = {};
|
|
5921
|
-
function registerStores(stores) {
|
|
5922
|
-
internalStores = { ...internalStores, ...stores };
|
|
5923
|
-
}
|
|
5924
5920
|
class ConnectionManager {
|
|
5925
5921
|
// The status of the connection to the remote dev server
|
|
5926
5922
|
constructor() {
|
|
5927
5923
|
__publicField(this, "connectionStatus", "pre-init");
|
|
5928
5924
|
makeAutoObservable(this);
|
|
5929
|
-
registerStores({
|
|
5930
|
-
ConnectionManager: this
|
|
5931
|
-
});
|
|
5932
5925
|
}
|
|
5933
5926
|
initializeSocket() {
|
|
5934
5927
|
this.connectionStatus = "connecting";
|
|
@@ -6038,7 +6031,7 @@ const isDimension = (value) => {
|
|
|
6038
6031
|
var Dim;
|
|
6039
6032
|
(function(Dim2) {
|
|
6040
6033
|
function isEqual2(a3, b3) {
|
|
6041
|
-
return a3.mode
|
|
6034
|
+
return Object.is(a3.mode, b3.mode) && Object.is(a3.value, b3.value);
|
|
6042
6035
|
}
|
|
6043
6036
|
Dim2.isEqual = isEqual2;
|
|
6044
6037
|
function build(value, mode) {
|
|
@@ -43048,9 +43041,6 @@ class InteractionLayerManager {
|
|
|
43048
43041
|
__publicField(this, "activeRootInstanceId");
|
|
43049
43042
|
__publicField(this, "sourceIdElements", /* @__PURE__ */ new Map());
|
|
43050
43043
|
makeAutoObservable(this);
|
|
43051
|
-
registerStores({
|
|
43052
|
-
InteractionLayerManager: this
|
|
43053
|
-
});
|
|
43054
43044
|
}
|
|
43055
43045
|
setActiveRootInstanceId(rootInstanceId) {
|
|
43056
43046
|
this.activeRootInstanceId = rootInstanceId;
|
|
@@ -43116,6 +43106,9 @@ const ThemeMode = {
|
|
|
43116
43106
|
AUTO: "AUTO"
|
|
43117
43107
|
};
|
|
43118
43108
|
const CUSTOM_THEME_TYPOGRAPHY_KEY = "custom";
|
|
43109
|
+
const VitePostMessageKind = {
|
|
43110
|
+
UPDATE_CUSTOM_COMPONENT: "update-custom-component"
|
|
43111
|
+
};
|
|
43119
43112
|
const CancelApisTrigger = {
|
|
43120
43113
|
type: TriggerStepType.CANCEL_APIS,
|
|
43121
43114
|
async execute(_context, step) {
|
|
@@ -43171,10 +43164,14 @@ const RunApisTrigger = {
|
|
|
43171
43164
|
const ControlModalTrigger = {
|
|
43172
43165
|
type: TriggerStepType.CONTROL_MODAL,
|
|
43173
43166
|
async execute(context2, step) {
|
|
43167
|
+
if (step.name === void 0) {
|
|
43168
|
+
return;
|
|
43169
|
+
}
|
|
43174
43170
|
context2.rootStore.entityManager.runCode({
|
|
43175
43171
|
scopeId: context2.scopeId,
|
|
43176
43172
|
name: context2.name,
|
|
43177
43173
|
func: (state, step2) => {
|
|
43174
|
+
if (!state || !step2.name) return;
|
|
43178
43175
|
if (step2.direction === "open") {
|
|
43179
43176
|
state[step2.name].isOpen = true;
|
|
43180
43177
|
} else {
|
|
@@ -43184,10 +43181,11 @@ const ControlModalTrigger = {
|
|
|
43184
43181
|
args: [step]
|
|
43185
43182
|
});
|
|
43186
43183
|
},
|
|
43187
|
-
create(
|
|
43184
|
+
create(modal, direction) {
|
|
43185
|
+
const meta = getBindingIdentifier(modal);
|
|
43188
43186
|
return {
|
|
43189
43187
|
type: TriggerStepType.CONTROL_MODAL,
|
|
43190
|
-
name,
|
|
43188
|
+
name: meta == null ? void 0 : meta.entityName,
|
|
43191
43189
|
direction
|
|
43192
43190
|
};
|
|
43193
43191
|
}
|
|
@@ -43661,8 +43659,8 @@ function findDOMNode(node2) {
|
|
|
43661
43659
|
}
|
|
43662
43660
|
return null;
|
|
43663
43661
|
}
|
|
43664
|
-
var reactIs$
|
|
43665
|
-
var reactIs_production_min$
|
|
43662
|
+
var reactIs$2 = { exports: {} };
|
|
43663
|
+
var reactIs_production_min$2 = {};
|
|
43666
43664
|
/**
|
|
43667
43665
|
* @license React
|
|
43668
43666
|
* react-is.production.min.js
|
|
@@ -43672,10 +43670,10 @@ var reactIs_production_min$1 = {};
|
|
|
43672
43670
|
* This source code is licensed under the MIT license found in the
|
|
43673
43671
|
* LICENSE file in the root directory of this source tree.
|
|
43674
43672
|
*/
|
|
43675
|
-
var hasRequiredReactIs_production_min$
|
|
43676
|
-
function requireReactIs_production_min$
|
|
43677
|
-
if (hasRequiredReactIs_production_min$
|
|
43678
|
-
hasRequiredReactIs_production_min$
|
|
43673
|
+
var hasRequiredReactIs_production_min$2;
|
|
43674
|
+
function requireReactIs_production_min$2() {
|
|
43675
|
+
if (hasRequiredReactIs_production_min$2) return reactIs_production_min$2;
|
|
43676
|
+
hasRequiredReactIs_production_min$2 = 1;
|
|
43679
43677
|
var b3 = Symbol.for("react.element"), c3 = Symbol.for("react.portal"), d3 = Symbol.for("react.fragment"), e3 = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m4 = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q3 = Symbol.for("react.lazy"), t3 = Symbol.for("react.offscreen"), u2;
|
|
43680
43678
|
u2 = Symbol.for("react.module.reference");
|
|
43681
43679
|
function v2(a3) {
|
|
@@ -43708,71 +43706,71 @@ function requireReactIs_production_min$1() {
|
|
|
43708
43706
|
}
|
|
43709
43707
|
}
|
|
43710
43708
|
}
|
|
43711
|
-
reactIs_production_min$
|
|
43712
|
-
reactIs_production_min$
|
|
43713
|
-
reactIs_production_min$
|
|
43714
|
-
reactIs_production_min$
|
|
43715
|
-
reactIs_production_min$
|
|
43716
|
-
reactIs_production_min$
|
|
43717
|
-
reactIs_production_min$
|
|
43718
|
-
reactIs_production_min$
|
|
43719
|
-
reactIs_production_min$
|
|
43720
|
-
reactIs_production_min$
|
|
43721
|
-
reactIs_production_min$
|
|
43722
|
-
reactIs_production_min$
|
|
43723
|
-
reactIs_production_min$
|
|
43709
|
+
reactIs_production_min$2.ContextConsumer = h3;
|
|
43710
|
+
reactIs_production_min$2.ContextProvider = g2;
|
|
43711
|
+
reactIs_production_min$2.Element = b3;
|
|
43712
|
+
reactIs_production_min$2.ForwardRef = l;
|
|
43713
|
+
reactIs_production_min$2.Fragment = d3;
|
|
43714
|
+
reactIs_production_min$2.Lazy = q3;
|
|
43715
|
+
reactIs_production_min$2.Memo = p;
|
|
43716
|
+
reactIs_production_min$2.Portal = c3;
|
|
43717
|
+
reactIs_production_min$2.Profiler = f;
|
|
43718
|
+
reactIs_production_min$2.StrictMode = e3;
|
|
43719
|
+
reactIs_production_min$2.Suspense = m4;
|
|
43720
|
+
reactIs_production_min$2.SuspenseList = n2;
|
|
43721
|
+
reactIs_production_min$2.isAsyncMode = function() {
|
|
43724
43722
|
return false;
|
|
43725
43723
|
};
|
|
43726
|
-
reactIs_production_min$
|
|
43724
|
+
reactIs_production_min$2.isConcurrentMode = function() {
|
|
43727
43725
|
return false;
|
|
43728
43726
|
};
|
|
43729
|
-
reactIs_production_min$
|
|
43727
|
+
reactIs_production_min$2.isContextConsumer = function(a3) {
|
|
43730
43728
|
return v2(a3) === h3;
|
|
43731
43729
|
};
|
|
43732
|
-
reactIs_production_min$
|
|
43730
|
+
reactIs_production_min$2.isContextProvider = function(a3) {
|
|
43733
43731
|
return v2(a3) === g2;
|
|
43734
43732
|
};
|
|
43735
|
-
reactIs_production_min$
|
|
43733
|
+
reactIs_production_min$2.isElement = function(a3) {
|
|
43736
43734
|
return "object" === typeof a3 && null !== a3 && a3.$$typeof === b3;
|
|
43737
43735
|
};
|
|
43738
|
-
reactIs_production_min$
|
|
43736
|
+
reactIs_production_min$2.isForwardRef = function(a3) {
|
|
43739
43737
|
return v2(a3) === l;
|
|
43740
43738
|
};
|
|
43741
|
-
reactIs_production_min$
|
|
43739
|
+
reactIs_production_min$2.isFragment = function(a3) {
|
|
43742
43740
|
return v2(a3) === d3;
|
|
43743
43741
|
};
|
|
43744
|
-
reactIs_production_min$
|
|
43742
|
+
reactIs_production_min$2.isLazy = function(a3) {
|
|
43745
43743
|
return v2(a3) === q3;
|
|
43746
43744
|
};
|
|
43747
|
-
reactIs_production_min$
|
|
43745
|
+
reactIs_production_min$2.isMemo = function(a3) {
|
|
43748
43746
|
return v2(a3) === p;
|
|
43749
43747
|
};
|
|
43750
|
-
reactIs_production_min$
|
|
43748
|
+
reactIs_production_min$2.isPortal = function(a3) {
|
|
43751
43749
|
return v2(a3) === c3;
|
|
43752
43750
|
};
|
|
43753
|
-
reactIs_production_min$
|
|
43751
|
+
reactIs_production_min$2.isProfiler = function(a3) {
|
|
43754
43752
|
return v2(a3) === f;
|
|
43755
43753
|
};
|
|
43756
|
-
reactIs_production_min$
|
|
43754
|
+
reactIs_production_min$2.isStrictMode = function(a3) {
|
|
43757
43755
|
return v2(a3) === e3;
|
|
43758
43756
|
};
|
|
43759
|
-
reactIs_production_min$
|
|
43757
|
+
reactIs_production_min$2.isSuspense = function(a3) {
|
|
43760
43758
|
return v2(a3) === m4;
|
|
43761
43759
|
};
|
|
43762
|
-
reactIs_production_min$
|
|
43760
|
+
reactIs_production_min$2.isSuspenseList = function(a3) {
|
|
43763
43761
|
return v2(a3) === n2;
|
|
43764
43762
|
};
|
|
43765
|
-
reactIs_production_min$
|
|
43763
|
+
reactIs_production_min$2.isValidElementType = function(a3) {
|
|
43766
43764
|
return "string" === typeof a3 || "function" === typeof a3 || a3 === d3 || a3 === f || a3 === e3 || a3 === m4 || a3 === n2 || a3 === t3 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q3 || a3.$$typeof === p || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
|
|
43767
43765
|
};
|
|
43768
|
-
reactIs_production_min$
|
|
43769
|
-
return reactIs_production_min$
|
|
43766
|
+
reactIs_production_min$2.typeOf = v2;
|
|
43767
|
+
return reactIs_production_min$2;
|
|
43770
43768
|
}
|
|
43771
|
-
var reactIs_development$
|
|
43772
|
-
var hasRequiredReactIs_development$
|
|
43773
|
-
function requireReactIs_development$
|
|
43774
|
-
if (hasRequiredReactIs_development$
|
|
43775
|
-
hasRequiredReactIs_development$
|
|
43769
|
+
var reactIs_development$2 = {};
|
|
43770
|
+
var hasRequiredReactIs_development$2;
|
|
43771
|
+
function requireReactIs_development$2() {
|
|
43772
|
+
if (hasRequiredReactIs_development$2) return reactIs_development$2;
|
|
43773
|
+
hasRequiredReactIs_development$2 = 1;
|
|
43776
43774
|
var define_process_env_default2 = {};
|
|
43777
43775
|
/**
|
|
43778
43776
|
* @license React
|
|
@@ -43927,51 +43925,51 @@ function requireReactIs_development$1() {
|
|
|
43927
43925
|
function isSuspenseList(object4) {
|
|
43928
43926
|
return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
|
|
43929
43927
|
}
|
|
43930
|
-
reactIs_development$
|
|
43931
|
-
reactIs_development$
|
|
43932
|
-
reactIs_development$
|
|
43933
|
-
reactIs_development$
|
|
43934
|
-
reactIs_development$
|
|
43935
|
-
reactIs_development$
|
|
43936
|
-
reactIs_development$
|
|
43937
|
-
reactIs_development$
|
|
43938
|
-
reactIs_development$
|
|
43939
|
-
reactIs_development$
|
|
43940
|
-
reactIs_development$
|
|
43941
|
-
reactIs_development$
|
|
43942
|
-
reactIs_development$
|
|
43943
|
-
reactIs_development$
|
|
43944
|
-
reactIs_development$
|
|
43945
|
-
reactIs_development$
|
|
43946
|
-
reactIs_development$
|
|
43947
|
-
reactIs_development$
|
|
43948
|
-
reactIs_development$
|
|
43949
|
-
reactIs_development$
|
|
43950
|
-
reactIs_development$
|
|
43951
|
-
reactIs_development$
|
|
43952
|
-
reactIs_development$
|
|
43953
|
-
reactIs_development$
|
|
43954
|
-
reactIs_development$
|
|
43955
|
-
reactIs_development$
|
|
43956
|
-
reactIs_development$
|
|
43957
|
-
reactIs_development$
|
|
43928
|
+
reactIs_development$2.ContextConsumer = ContextConsumer;
|
|
43929
|
+
reactIs_development$2.ContextProvider = ContextProvider;
|
|
43930
|
+
reactIs_development$2.Element = Element3;
|
|
43931
|
+
reactIs_development$2.ForwardRef = ForwardRef;
|
|
43932
|
+
reactIs_development$2.Fragment = Fragment;
|
|
43933
|
+
reactIs_development$2.Lazy = Lazy;
|
|
43934
|
+
reactIs_development$2.Memo = Memo;
|
|
43935
|
+
reactIs_development$2.Portal = Portal2;
|
|
43936
|
+
reactIs_development$2.Profiler = Profiler;
|
|
43937
|
+
reactIs_development$2.StrictMode = StrictMode;
|
|
43938
|
+
reactIs_development$2.Suspense = Suspense2;
|
|
43939
|
+
reactIs_development$2.SuspenseList = SuspenseList;
|
|
43940
|
+
reactIs_development$2.isAsyncMode = isAsyncMode;
|
|
43941
|
+
reactIs_development$2.isConcurrentMode = isConcurrentMode;
|
|
43942
|
+
reactIs_development$2.isContextConsumer = isContextConsumer;
|
|
43943
|
+
reactIs_development$2.isContextProvider = isContextProvider;
|
|
43944
|
+
reactIs_development$2.isElement = isElement2;
|
|
43945
|
+
reactIs_development$2.isForwardRef = isForwardRef;
|
|
43946
|
+
reactIs_development$2.isFragment = isFragment2;
|
|
43947
|
+
reactIs_development$2.isLazy = isLazy;
|
|
43948
|
+
reactIs_development$2.isMemo = isMemo;
|
|
43949
|
+
reactIs_development$2.isPortal = isPortal;
|
|
43950
|
+
reactIs_development$2.isProfiler = isProfiler;
|
|
43951
|
+
reactIs_development$2.isStrictMode = isStrictMode;
|
|
43952
|
+
reactIs_development$2.isSuspense = isSuspense;
|
|
43953
|
+
reactIs_development$2.isSuspenseList = isSuspenseList;
|
|
43954
|
+
reactIs_development$2.isValidElementType = isValidElementType;
|
|
43955
|
+
reactIs_development$2.typeOf = typeOf;
|
|
43958
43956
|
})();
|
|
43959
43957
|
}
|
|
43960
|
-
return reactIs_development$
|
|
43958
|
+
return reactIs_development$2;
|
|
43961
43959
|
}
|
|
43962
|
-
var hasRequiredReactIs$
|
|
43963
|
-
function requireReactIs$
|
|
43964
|
-
if (hasRequiredReactIs$
|
|
43965
|
-
hasRequiredReactIs$
|
|
43960
|
+
var hasRequiredReactIs$2;
|
|
43961
|
+
function requireReactIs$2() {
|
|
43962
|
+
if (hasRequiredReactIs$2) return reactIs$2.exports;
|
|
43963
|
+
hasRequiredReactIs$2 = 1;
|
|
43966
43964
|
var define_process_env_default2 = {};
|
|
43967
43965
|
if (define_process_env_default2.NODE_ENV === "production") {
|
|
43968
|
-
reactIs$
|
|
43966
|
+
reactIs$2.exports = requireReactIs_production_min$2();
|
|
43969
43967
|
} else {
|
|
43970
|
-
reactIs$
|
|
43968
|
+
reactIs$2.exports = requireReactIs_development$2();
|
|
43971
43969
|
}
|
|
43972
|
-
return reactIs$
|
|
43970
|
+
return reactIs$2.exports;
|
|
43973
43971
|
}
|
|
43974
|
-
var reactIsExports = requireReactIs$
|
|
43972
|
+
var reactIsExports$1 = requireReactIs$2();
|
|
43975
43973
|
function useMemo$1(getValue2, condition, shouldUpdate) {
|
|
43976
43974
|
var cacheRef = React.useRef({});
|
|
43977
43975
|
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
@@ -44022,11 +44020,11 @@ var supportRef = function supportRef2(nodeOrComponent) {
|
|
|
44022
44020
|
if (isReactElement$2(nodeOrComponent) && ReactMajorVersion >= 19) {
|
|
44023
44021
|
return true;
|
|
44024
44022
|
}
|
|
44025
|
-
var type5 = reactIsExports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
44026
|
-
if (typeof type5 === "function" && !((_type$prototype = type5.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type5.$$typeof !== reactIsExports.ForwardRef) {
|
|
44023
|
+
var type5 = reactIsExports$1.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
44024
|
+
if (typeof type5 === "function" && !((_type$prototype = type5.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type5.$$typeof !== reactIsExports$1.ForwardRef) {
|
|
44027
44025
|
return false;
|
|
44028
44026
|
}
|
|
44029
|
-
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports.ForwardRef) {
|
|
44027
|
+
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports$1.ForwardRef) {
|
|
44030
44028
|
return false;
|
|
44031
44029
|
}
|
|
44032
44030
|
return true;
|
|
@@ -76413,6 +76411,317 @@ function requireCopyToClipboard() {
|
|
|
76413
76411
|
}
|
|
76414
76412
|
var copyToClipboardExports = requireCopyToClipboard();
|
|
76415
76413
|
const copy$1 = /* @__PURE__ */ getDefaultExportFromCjs(copyToClipboardExports);
|
|
76414
|
+
var reactIs$1 = { exports: {} };
|
|
76415
|
+
var reactIs_production_min$1 = {};
|
|
76416
|
+
/**
|
|
76417
|
+
* @license React
|
|
76418
|
+
* react-is.production.min.js
|
|
76419
|
+
*
|
|
76420
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76421
|
+
*
|
|
76422
|
+
* This source code is licensed under the MIT license found in the
|
|
76423
|
+
* LICENSE file in the root directory of this source tree.
|
|
76424
|
+
*/
|
|
76425
|
+
var hasRequiredReactIs_production_min$1;
|
|
76426
|
+
function requireReactIs_production_min$1() {
|
|
76427
|
+
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
76428
|
+
hasRequiredReactIs_production_min$1 = 1;
|
|
76429
|
+
var b3 = Symbol.for("react.element"), c3 = Symbol.for("react.portal"), d3 = Symbol.for("react.fragment"), e3 = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m4 = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q3 = Symbol.for("react.lazy"), t3 = Symbol.for("react.offscreen"), u2;
|
|
76430
|
+
u2 = Symbol.for("react.module.reference");
|
|
76431
|
+
function v2(a3) {
|
|
76432
|
+
if ("object" === typeof a3 && null !== a3) {
|
|
76433
|
+
var r2 = a3.$$typeof;
|
|
76434
|
+
switch (r2) {
|
|
76435
|
+
case b3:
|
|
76436
|
+
switch (a3 = a3.type, a3) {
|
|
76437
|
+
case d3:
|
|
76438
|
+
case f:
|
|
76439
|
+
case e3:
|
|
76440
|
+
case m4:
|
|
76441
|
+
case n2:
|
|
76442
|
+
return a3;
|
|
76443
|
+
default:
|
|
76444
|
+
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
76445
|
+
case k2:
|
|
76446
|
+
case h3:
|
|
76447
|
+
case l:
|
|
76448
|
+
case q3:
|
|
76449
|
+
case p:
|
|
76450
|
+
case g2:
|
|
76451
|
+
return a3;
|
|
76452
|
+
default:
|
|
76453
|
+
return r2;
|
|
76454
|
+
}
|
|
76455
|
+
}
|
|
76456
|
+
case c3:
|
|
76457
|
+
return r2;
|
|
76458
|
+
}
|
|
76459
|
+
}
|
|
76460
|
+
}
|
|
76461
|
+
reactIs_production_min$1.ContextConsumer = h3;
|
|
76462
|
+
reactIs_production_min$1.ContextProvider = g2;
|
|
76463
|
+
reactIs_production_min$1.Element = b3;
|
|
76464
|
+
reactIs_production_min$1.ForwardRef = l;
|
|
76465
|
+
reactIs_production_min$1.Fragment = d3;
|
|
76466
|
+
reactIs_production_min$1.Lazy = q3;
|
|
76467
|
+
reactIs_production_min$1.Memo = p;
|
|
76468
|
+
reactIs_production_min$1.Portal = c3;
|
|
76469
|
+
reactIs_production_min$1.Profiler = f;
|
|
76470
|
+
reactIs_production_min$1.StrictMode = e3;
|
|
76471
|
+
reactIs_production_min$1.Suspense = m4;
|
|
76472
|
+
reactIs_production_min$1.SuspenseList = n2;
|
|
76473
|
+
reactIs_production_min$1.isAsyncMode = function() {
|
|
76474
|
+
return false;
|
|
76475
|
+
};
|
|
76476
|
+
reactIs_production_min$1.isConcurrentMode = function() {
|
|
76477
|
+
return false;
|
|
76478
|
+
};
|
|
76479
|
+
reactIs_production_min$1.isContextConsumer = function(a3) {
|
|
76480
|
+
return v2(a3) === h3;
|
|
76481
|
+
};
|
|
76482
|
+
reactIs_production_min$1.isContextProvider = function(a3) {
|
|
76483
|
+
return v2(a3) === g2;
|
|
76484
|
+
};
|
|
76485
|
+
reactIs_production_min$1.isElement = function(a3) {
|
|
76486
|
+
return "object" === typeof a3 && null !== a3 && a3.$$typeof === b3;
|
|
76487
|
+
};
|
|
76488
|
+
reactIs_production_min$1.isForwardRef = function(a3) {
|
|
76489
|
+
return v2(a3) === l;
|
|
76490
|
+
};
|
|
76491
|
+
reactIs_production_min$1.isFragment = function(a3) {
|
|
76492
|
+
return v2(a3) === d3;
|
|
76493
|
+
};
|
|
76494
|
+
reactIs_production_min$1.isLazy = function(a3) {
|
|
76495
|
+
return v2(a3) === q3;
|
|
76496
|
+
};
|
|
76497
|
+
reactIs_production_min$1.isMemo = function(a3) {
|
|
76498
|
+
return v2(a3) === p;
|
|
76499
|
+
};
|
|
76500
|
+
reactIs_production_min$1.isPortal = function(a3) {
|
|
76501
|
+
return v2(a3) === c3;
|
|
76502
|
+
};
|
|
76503
|
+
reactIs_production_min$1.isProfiler = function(a3) {
|
|
76504
|
+
return v2(a3) === f;
|
|
76505
|
+
};
|
|
76506
|
+
reactIs_production_min$1.isStrictMode = function(a3) {
|
|
76507
|
+
return v2(a3) === e3;
|
|
76508
|
+
};
|
|
76509
|
+
reactIs_production_min$1.isSuspense = function(a3) {
|
|
76510
|
+
return v2(a3) === m4;
|
|
76511
|
+
};
|
|
76512
|
+
reactIs_production_min$1.isSuspenseList = function(a3) {
|
|
76513
|
+
return v2(a3) === n2;
|
|
76514
|
+
};
|
|
76515
|
+
reactIs_production_min$1.isValidElementType = function(a3) {
|
|
76516
|
+
return "string" === typeof a3 || "function" === typeof a3 || a3 === d3 || a3 === f || a3 === e3 || a3 === m4 || a3 === n2 || a3 === t3 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q3 || a3.$$typeof === p || a3.$$typeof === g2 || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || void 0 !== a3.getModuleId) ? true : false;
|
|
76517
|
+
};
|
|
76518
|
+
reactIs_production_min$1.typeOf = v2;
|
|
76519
|
+
return reactIs_production_min$1;
|
|
76520
|
+
}
|
|
76521
|
+
var reactIs_development$1 = {};
|
|
76522
|
+
var hasRequiredReactIs_development$1;
|
|
76523
|
+
function requireReactIs_development$1() {
|
|
76524
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
76525
|
+
hasRequiredReactIs_development$1 = 1;
|
|
76526
|
+
var define_process_env_default2 = {};
|
|
76527
|
+
/**
|
|
76528
|
+
* @license React
|
|
76529
|
+
* react-is.development.js
|
|
76530
|
+
*
|
|
76531
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76532
|
+
*
|
|
76533
|
+
* This source code is licensed under the MIT license found in the
|
|
76534
|
+
* LICENSE file in the root directory of this source tree.
|
|
76535
|
+
*/
|
|
76536
|
+
if (define_process_env_default2.NODE_ENV !== "production") {
|
|
76537
|
+
(function() {
|
|
76538
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
76539
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
76540
|
+
var REACT_FRAGMENT_TYPE2 = Symbol.for("react.fragment");
|
|
76541
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
76542
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
76543
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
76544
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
76545
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
76546
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
76547
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
76548
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
76549
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
76550
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
76551
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
76552
|
+
var enableScopeAPI = false;
|
|
76553
|
+
var enableCacheElement = false;
|
|
76554
|
+
var enableTransitionTracing = false;
|
|
76555
|
+
var enableLegacyHidden = false;
|
|
76556
|
+
var enableDebugTracing = false;
|
|
76557
|
+
var REACT_MODULE_REFERENCE;
|
|
76558
|
+
{
|
|
76559
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
76560
|
+
}
|
|
76561
|
+
function isValidElementType(type5) {
|
|
76562
|
+
if (typeof type5 === "string" || typeof type5 === "function") {
|
|
76563
|
+
return true;
|
|
76564
|
+
}
|
|
76565
|
+
if (type5 === REACT_FRAGMENT_TYPE2 || type5 === REACT_PROFILER_TYPE || enableDebugTracing || type5 === REACT_STRICT_MODE_TYPE || type5 === REACT_SUSPENSE_TYPE || type5 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type5 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
76566
|
+
return true;
|
|
76567
|
+
}
|
|
76568
|
+
if (typeof type5 === "object" && type5 !== null) {
|
|
76569
|
+
if (type5.$$typeof === REACT_LAZY_TYPE || type5.$$typeof === REACT_MEMO_TYPE || type5.$$typeof === REACT_PROVIDER_TYPE || type5.$$typeof === REACT_CONTEXT_TYPE || type5.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
76570
|
+
// types supported by any Flight configuration anywhere since
|
|
76571
|
+
// we don't know which Flight build this will end up being used
|
|
76572
|
+
// with.
|
|
76573
|
+
type5.$$typeof === REACT_MODULE_REFERENCE || type5.getModuleId !== void 0) {
|
|
76574
|
+
return true;
|
|
76575
|
+
}
|
|
76576
|
+
}
|
|
76577
|
+
return false;
|
|
76578
|
+
}
|
|
76579
|
+
function typeOf(object4) {
|
|
76580
|
+
if (typeof object4 === "object" && object4 !== null) {
|
|
76581
|
+
var $$typeof = object4.$$typeof;
|
|
76582
|
+
switch ($$typeof) {
|
|
76583
|
+
case REACT_ELEMENT_TYPE:
|
|
76584
|
+
var type5 = object4.type;
|
|
76585
|
+
switch (type5) {
|
|
76586
|
+
case REACT_FRAGMENT_TYPE2:
|
|
76587
|
+
case REACT_PROFILER_TYPE:
|
|
76588
|
+
case REACT_STRICT_MODE_TYPE:
|
|
76589
|
+
case REACT_SUSPENSE_TYPE:
|
|
76590
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
76591
|
+
return type5;
|
|
76592
|
+
default:
|
|
76593
|
+
var $$typeofType = type5 && type5.$$typeof;
|
|
76594
|
+
switch ($$typeofType) {
|
|
76595
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
76596
|
+
case REACT_CONTEXT_TYPE:
|
|
76597
|
+
case REACT_FORWARD_REF_TYPE:
|
|
76598
|
+
case REACT_LAZY_TYPE:
|
|
76599
|
+
case REACT_MEMO_TYPE:
|
|
76600
|
+
case REACT_PROVIDER_TYPE:
|
|
76601
|
+
return $$typeofType;
|
|
76602
|
+
default:
|
|
76603
|
+
return $$typeof;
|
|
76604
|
+
}
|
|
76605
|
+
}
|
|
76606
|
+
case REACT_PORTAL_TYPE:
|
|
76607
|
+
return $$typeof;
|
|
76608
|
+
}
|
|
76609
|
+
}
|
|
76610
|
+
return void 0;
|
|
76611
|
+
}
|
|
76612
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
76613
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
76614
|
+
var Element3 = REACT_ELEMENT_TYPE;
|
|
76615
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
76616
|
+
var Fragment = REACT_FRAGMENT_TYPE2;
|
|
76617
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
76618
|
+
var Memo = REACT_MEMO_TYPE;
|
|
76619
|
+
var Portal2 = REACT_PORTAL_TYPE;
|
|
76620
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
76621
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
76622
|
+
var Suspense2 = REACT_SUSPENSE_TYPE;
|
|
76623
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
76624
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
76625
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
76626
|
+
function isAsyncMode(object4) {
|
|
76627
|
+
{
|
|
76628
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
76629
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
76630
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
76631
|
+
}
|
|
76632
|
+
}
|
|
76633
|
+
return false;
|
|
76634
|
+
}
|
|
76635
|
+
function isConcurrentMode(object4) {
|
|
76636
|
+
{
|
|
76637
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
76638
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
76639
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
76640
|
+
}
|
|
76641
|
+
}
|
|
76642
|
+
return false;
|
|
76643
|
+
}
|
|
76644
|
+
function isContextConsumer(object4) {
|
|
76645
|
+
return typeOf(object4) === REACT_CONTEXT_TYPE;
|
|
76646
|
+
}
|
|
76647
|
+
function isContextProvider(object4) {
|
|
76648
|
+
return typeOf(object4) === REACT_PROVIDER_TYPE;
|
|
76649
|
+
}
|
|
76650
|
+
function isElement2(object4) {
|
|
76651
|
+
return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE;
|
|
76652
|
+
}
|
|
76653
|
+
function isForwardRef(object4) {
|
|
76654
|
+
return typeOf(object4) === REACT_FORWARD_REF_TYPE;
|
|
76655
|
+
}
|
|
76656
|
+
function isFragment2(object4) {
|
|
76657
|
+
return typeOf(object4) === REACT_FRAGMENT_TYPE2;
|
|
76658
|
+
}
|
|
76659
|
+
function isLazy(object4) {
|
|
76660
|
+
return typeOf(object4) === REACT_LAZY_TYPE;
|
|
76661
|
+
}
|
|
76662
|
+
function isMemo(object4) {
|
|
76663
|
+
return typeOf(object4) === REACT_MEMO_TYPE;
|
|
76664
|
+
}
|
|
76665
|
+
function isPortal(object4) {
|
|
76666
|
+
return typeOf(object4) === REACT_PORTAL_TYPE;
|
|
76667
|
+
}
|
|
76668
|
+
function isProfiler(object4) {
|
|
76669
|
+
return typeOf(object4) === REACT_PROFILER_TYPE;
|
|
76670
|
+
}
|
|
76671
|
+
function isStrictMode(object4) {
|
|
76672
|
+
return typeOf(object4) === REACT_STRICT_MODE_TYPE;
|
|
76673
|
+
}
|
|
76674
|
+
function isSuspense(object4) {
|
|
76675
|
+
return typeOf(object4) === REACT_SUSPENSE_TYPE;
|
|
76676
|
+
}
|
|
76677
|
+
function isSuspenseList(object4) {
|
|
76678
|
+
return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
|
|
76679
|
+
}
|
|
76680
|
+
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
76681
|
+
reactIs_development$1.ContextProvider = ContextProvider;
|
|
76682
|
+
reactIs_development$1.Element = Element3;
|
|
76683
|
+
reactIs_development$1.ForwardRef = ForwardRef;
|
|
76684
|
+
reactIs_development$1.Fragment = Fragment;
|
|
76685
|
+
reactIs_development$1.Lazy = Lazy;
|
|
76686
|
+
reactIs_development$1.Memo = Memo;
|
|
76687
|
+
reactIs_development$1.Portal = Portal2;
|
|
76688
|
+
reactIs_development$1.Profiler = Profiler;
|
|
76689
|
+
reactIs_development$1.StrictMode = StrictMode;
|
|
76690
|
+
reactIs_development$1.Suspense = Suspense2;
|
|
76691
|
+
reactIs_development$1.SuspenseList = SuspenseList;
|
|
76692
|
+
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
76693
|
+
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
76694
|
+
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
76695
|
+
reactIs_development$1.isContextProvider = isContextProvider;
|
|
76696
|
+
reactIs_development$1.isElement = isElement2;
|
|
76697
|
+
reactIs_development$1.isForwardRef = isForwardRef;
|
|
76698
|
+
reactIs_development$1.isFragment = isFragment2;
|
|
76699
|
+
reactIs_development$1.isLazy = isLazy;
|
|
76700
|
+
reactIs_development$1.isMemo = isMemo;
|
|
76701
|
+
reactIs_development$1.isPortal = isPortal;
|
|
76702
|
+
reactIs_development$1.isProfiler = isProfiler;
|
|
76703
|
+
reactIs_development$1.isStrictMode = isStrictMode;
|
|
76704
|
+
reactIs_development$1.isSuspense = isSuspense;
|
|
76705
|
+
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
76706
|
+
reactIs_development$1.isValidElementType = isValidElementType;
|
|
76707
|
+
reactIs_development$1.typeOf = typeOf;
|
|
76708
|
+
})();
|
|
76709
|
+
}
|
|
76710
|
+
return reactIs_development$1;
|
|
76711
|
+
}
|
|
76712
|
+
var hasRequiredReactIs$1;
|
|
76713
|
+
function requireReactIs$1() {
|
|
76714
|
+
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
76715
|
+
hasRequiredReactIs$1 = 1;
|
|
76716
|
+
var define_process_env_default2 = {};
|
|
76717
|
+
if (define_process_env_default2.NODE_ENV === "production") {
|
|
76718
|
+
reactIs$1.exports = requireReactIs_production_min$1();
|
|
76719
|
+
} else {
|
|
76720
|
+
reactIs$1.exports = requireReactIs_development$1();
|
|
76721
|
+
}
|
|
76722
|
+
return reactIs$1.exports;
|
|
76723
|
+
}
|
|
76724
|
+
var reactIsExports = requireReactIs$1();
|
|
76416
76725
|
function stylis_min(W2) {
|
|
76417
76726
|
function M4(d3, c3, e3, h3, a3) {
|
|
76418
76727
|
for (var m4 = 0, b3 = 0, v2 = 0, n2 = 0, q3, g2, x3 = 0, K3 = 0, k2, u2 = k2 = q3 = 0, l = 0, r2 = 0, I3 = 0, t3 = 0, B4 = e3.length, J2 = B4 - 1, y4, f = "", p = "", F3 = "", G4 = "", C2; l < B4; ) {
|
|
@@ -78108,38 +78417,33 @@ const ShowAlertTrigger = {
|
|
|
78108
78417
|
};
|
|
78109
78418
|
const ResetStateVarTrigger = {
|
|
78110
78419
|
type: TriggerStepType.RESET_STATE_VAR,
|
|
78111
|
-
async execute(context2,
|
|
78112
|
-
if (
|
|
78420
|
+
async execute(context2, step) {
|
|
78421
|
+
if (step.state === void 0) {
|
|
78113
78422
|
return;
|
|
78114
78423
|
}
|
|
78115
|
-
const step = _step;
|
|
78116
78424
|
context2.rootStore.entityManager.runCode({
|
|
78117
78425
|
scopeId: context2.scopeId,
|
|
78118
78426
|
name: context2.name,
|
|
78119
|
-
func: (
|
|
78120
|
-
|
|
78427
|
+
func: () => {
|
|
78428
|
+
var _a2;
|
|
78429
|
+
return (_a2 = step.state) == null ? void 0 : _a2.set(step.state.defaultValue);
|
|
78430
|
+
},
|
|
78431
|
+
args: []
|
|
78121
78432
|
});
|
|
78122
78433
|
},
|
|
78123
78434
|
create(stateVar) {
|
|
78124
|
-
const meta = getBindingIdentifier(stateVar);
|
|
78125
|
-
const state = meta ? {
|
|
78126
|
-
name: meta.entityName,
|
|
78127
|
-
scopeId: stateVar == null ? void 0 : stateVar.scopeId,
|
|
78128
|
-
scope: stateVar == null ? void 0 : stateVar.scope
|
|
78129
|
-
} : void 0;
|
|
78130
78435
|
return {
|
|
78131
78436
|
type: TriggerStepType.RESET_STATE_VAR,
|
|
78132
|
-
state
|
|
78437
|
+
state: stateVar
|
|
78133
78438
|
};
|
|
78134
78439
|
}
|
|
78135
78440
|
};
|
|
78136
78441
|
const SetStateVarTrigger = {
|
|
78137
78442
|
type: TriggerStepType.SET_STATE_VAR,
|
|
78138
|
-
async execute(context2,
|
|
78139
|
-
if (
|
|
78443
|
+
async execute(context2, step) {
|
|
78444
|
+
if (step.state === void 0) {
|
|
78140
78445
|
return;
|
|
78141
78446
|
}
|
|
78142
|
-
const step = _step;
|
|
78143
78447
|
const value = context2.rootStore.entityManager.computeValue({
|
|
78144
78448
|
scopeId: context2.scopeId,
|
|
78145
78449
|
name: context2.name,
|
|
@@ -78148,22 +78452,18 @@ const SetStateVarTrigger = {
|
|
|
78148
78452
|
context2.rootStore.entityManager.runCode({
|
|
78149
78453
|
scopeId: context2.scopeId,
|
|
78150
78454
|
name: context2.name,
|
|
78151
|
-
func: (state, value2
|
|
78455
|
+
func: (state, value2) => {
|
|
78456
|
+
var _a2;
|
|
78152
78457
|
if (!state) return;
|
|
78153
|
-
|
|
78458
|
+
(_a2 = step.state) == null ? void 0 : _a2.set(value2);
|
|
78154
78459
|
},
|
|
78155
|
-
args: [value
|
|
78460
|
+
args: [value]
|
|
78156
78461
|
});
|
|
78157
78462
|
},
|
|
78158
78463
|
create(stateVar, value) {
|
|
78159
|
-
const meta = getBindingIdentifier(stateVar);
|
|
78160
78464
|
return {
|
|
78161
78465
|
type: TriggerStepType.SET_STATE_VAR,
|
|
78162
|
-
state:
|
|
78163
|
-
name: meta.entityName,
|
|
78164
|
-
scopeId: stateVar == null ? void 0 : stateVar.scopeId,
|
|
78165
|
-
scope: stateVar == null ? void 0 : stateVar.scope
|
|
78166
|
-
} : void 0,
|
|
78466
|
+
state: stateVar,
|
|
78167
78467
|
value
|
|
78168
78468
|
};
|
|
78169
78469
|
}
|
|
@@ -82444,6 +82744,18 @@ const VALIDATORS = {
|
|
|
82444
82744
|
}
|
|
82445
82745
|
}
|
|
82446
82746
|
};
|
|
82747
|
+
function mergeRelations(existingRelations, relations) {
|
|
82748
|
+
if (!existingRelations || existingRelations.length === 0) {
|
|
82749
|
+
return relations;
|
|
82750
|
+
}
|
|
82751
|
+
if (!relations || relations.length === 0) {
|
|
82752
|
+
return existingRelations;
|
|
82753
|
+
}
|
|
82754
|
+
const mergedRelations = existingRelations && existingRelations.length > 0 ? existingRelations.flatMap(
|
|
82755
|
+
(existing) => relations.map((relation) => [...existing, ...relation])
|
|
82756
|
+
) : relations;
|
|
82757
|
+
return mergedRelations;
|
|
82758
|
+
}
|
|
82447
82759
|
function getChildren(input, path2, entity, scopedState) {
|
|
82448
82760
|
function getChildrenFromSection(section) {
|
|
82449
82761
|
return Object.keys(section.props).reduce(
|
|
@@ -82880,6 +83192,16 @@ class UnionProp extends Prop {
|
|
|
82880
83192
|
getProps() {
|
|
82881
83193
|
const sharedKeys = Object.keys(this.shared);
|
|
82882
83194
|
const variants = this.variants;
|
|
83195
|
+
const preMergeRelationsMap = variants.reduce(
|
|
83196
|
+
(acc, v2) => {
|
|
83197
|
+
Object.entries(v2).forEach(([key2, prop]) => {
|
|
83198
|
+
if (acc[key2]) return;
|
|
83199
|
+
acc[key2] = prop.getRelations() ?? [];
|
|
83200
|
+
});
|
|
83201
|
+
return acc;
|
|
83202
|
+
},
|
|
83203
|
+
{}
|
|
83204
|
+
);
|
|
82883
83205
|
const mergedVariants = variants.reduce(
|
|
82884
83206
|
(acc, v2) => {
|
|
82885
83207
|
const variantConstants = Object.entries(v2).filter(
|
|
@@ -82893,9 +83215,18 @@ class UnionProp extends Prop {
|
|
|
82893
83215
|
});
|
|
82894
83216
|
const filteredVariant = Object.fromEntries(
|
|
82895
83217
|
Object.entries(v2).filter(([key2]) => !sharedKeys.includes(key2)).map(([key2, prop]) => {
|
|
82896
|
-
|
|
82897
|
-
const
|
|
82898
|
-
|
|
83218
|
+
const existingRelations = (prop == null ? void 0 : prop.getRelations()) ?? [];
|
|
83219
|
+
const preMergeRelations = preMergeRelationsMap[key2];
|
|
83220
|
+
const existingNonPreMergeRelations = existingRelations.filter(
|
|
83221
|
+
(r2) => !preMergeRelations.some((p) => p === r2)
|
|
83222
|
+
);
|
|
83223
|
+
return [
|
|
83224
|
+
key2,
|
|
83225
|
+
prop.dependsOn([
|
|
83226
|
+
...existingNonPreMergeRelations,
|
|
83227
|
+
...mergeRelations(preMergeRelations, [relations])
|
|
83228
|
+
])
|
|
83229
|
+
];
|
|
82899
83230
|
})
|
|
82900
83231
|
);
|
|
82901
83232
|
return { ...acc, ...filteredVariant };
|
|
@@ -83167,6 +83498,35 @@ function requireRfdc() {
|
|
|
83167
83498
|
var rfdcExports = requireRfdc();
|
|
83168
83499
|
const clone$3 = /* @__PURE__ */ getDefaultExportFromCjs(rfdcExports);
|
|
83169
83500
|
const fastClone$1 = clone$3({});
|
|
83501
|
+
let internalStores = {};
|
|
83502
|
+
const SUPPORTED_MODES = ["local-dev"];
|
|
83503
|
+
function registerStores(stores) {
|
|
83504
|
+
internalStores = { ...internalStores, ...stores };
|
|
83505
|
+
if (SUPPORTED_MODES.includes("production")) {
|
|
83506
|
+
if (Object.keys(internalStores).length === Object.keys(stores).length) {
|
|
83507
|
+
import("./devtools-consolidated-CziXG7En.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
|
|
83508
|
+
setRegisteredStores(internalStores);
|
|
83509
|
+
initializeCustomDevTools();
|
|
83510
|
+
}).catch((error) => {
|
|
83511
|
+
console.warn(
|
|
83512
|
+
"[DevTools] Failed to initialize custom devtools:",
|
|
83513
|
+
error
|
|
83514
|
+
);
|
|
83515
|
+
});
|
|
83516
|
+
}
|
|
83517
|
+
}
|
|
83518
|
+
}
|
|
83519
|
+
const DevToolsInternal = React__default.lazy(() => {
|
|
83520
|
+
return import("./devtools-consolidated-CziXG7En.js").then((module2) => ({
|
|
83521
|
+
default: module2.CustomDevTools
|
|
83522
|
+
}));
|
|
83523
|
+
});
|
|
83524
|
+
const DevTools = () => {
|
|
83525
|
+
if (!SUPPORTED_MODES.includes("production")) {
|
|
83526
|
+
return null;
|
|
83527
|
+
}
|
|
83528
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DevToolsInternal, {}) });
|
|
83529
|
+
};
|
|
83170
83530
|
const ARGS_VAR_NAME = "$SB_args";
|
|
83171
83531
|
const USER_JS_CODE_VAR_NAME = "$SB_userJSCode";
|
|
83172
83532
|
const SNAPSHOT_VAR_NAME = "$SB_snapshot";
|
|
@@ -83508,11 +83868,11 @@ class SbEventFlow {
|
|
|
83508
83868
|
EventRegistry.controlSlideout.create(slideoutId, action2)
|
|
83509
83869
|
);
|
|
83510
83870
|
}
|
|
83511
|
-
static controlModal(
|
|
83512
|
-
return SbEventFlow.start().controlModal(
|
|
83871
|
+
static controlModal(modal, action2) {
|
|
83872
|
+
return SbEventFlow.start().controlModal(modal, action2);
|
|
83513
83873
|
}
|
|
83514
|
-
controlModal(
|
|
83515
|
-
return this.addStep(EventRegistry.controlModal.create(
|
|
83874
|
+
controlModal(modal, action2) {
|
|
83875
|
+
return this.addStep(EventRegistry.controlModal.create(modal, action2));
|
|
83516
83876
|
}
|
|
83517
83877
|
static controlTimer(timerId, action2) {
|
|
83518
83878
|
return SbEventFlow.start().controlTimer(timerId, action2);
|
|
@@ -83610,6 +83970,16 @@ class SbEventFlow {
|
|
|
83610
83970
|
EventRegistry.triggerEvent.create(eventName, eventData)
|
|
83611
83971
|
);
|
|
83612
83972
|
}
|
|
83973
|
+
static sequence(eventFlows) {
|
|
83974
|
+
return SbEventFlow.start().sequence(eventFlows);
|
|
83975
|
+
}
|
|
83976
|
+
sequence(eventFlows) {
|
|
83977
|
+
this.steps = [
|
|
83978
|
+
...this.steps,
|
|
83979
|
+
...eventFlows.flatMap((eventFlow) => eventFlow.build())
|
|
83980
|
+
];
|
|
83981
|
+
return this;
|
|
83982
|
+
}
|
|
83613
83983
|
build() {
|
|
83614
83984
|
return this.steps;
|
|
83615
83985
|
}
|
|
@@ -83859,9 +84229,11 @@ class EntityManager {
|
|
|
83859
84229
|
for (const name of Object.keys(scope.entities)) {
|
|
83860
84230
|
const entity = this.getEntity(scope.id, getName(name));
|
|
83861
84231
|
const id2 = entity[WIDGET_SOURCE_ID_ATTRIBUTE];
|
|
83862
|
-
const isNameBasedEntity = entity.type === SbEntityType.VARIABLE || entity.type === SbEntityType.API || entity.type === SbEntityType.TIMER || entity.type === "theme";
|
|
84232
|
+
const isNameBasedEntity = entity.type === SbEntityType.VARIABLE || entity.type === SbEntityType.API || entity.type === SbEntityType.TIMER || entity.type === "global" || entity.type === "theme";
|
|
83863
84233
|
if (!id2 && !isNameBasedEntity)
|
|
83864
|
-
console.warn(
|
|
84234
|
+
console.warn(
|
|
84235
|
+
`Entity has no source id for ${name}, type: ${entity == null ? void 0 : entity.type}`
|
|
84236
|
+
);
|
|
83865
84237
|
if (isNameBasedEntity) {
|
|
83866
84238
|
entities[name] = entity;
|
|
83867
84239
|
} else {
|
|
@@ -85951,9 +86323,6 @@ class OperationManager {
|
|
|
85951
86323
|
__publicField(this, "batchOperationTransactionId");
|
|
85952
86324
|
__publicField(this, "visibleSourceIds", []);
|
|
85953
86325
|
makeAutoObservable(this);
|
|
85954
|
-
registerStores({
|
|
85955
|
-
OperationManager: this
|
|
85956
|
-
});
|
|
85957
86326
|
}
|
|
85958
86327
|
get allPendingTransactions() {
|
|
85959
86328
|
return this.pendingTransactions;
|
|
@@ -86319,20 +86688,37 @@ __decorateElement(_init3, 1, "setWidgetProperties", _setWidgetProperties_dec, Op
|
|
|
86319
86688
|
__decorateElement(_init3, 1, "setWidgetProperty", _setWidgetProperty_dec, OperationManager);
|
|
86320
86689
|
__decorateElement(_init3, 1, "renameWidget", _renameWidget_dec, OperationManager);
|
|
86321
86690
|
__decoratorMetadata(_init3, OperationManager);
|
|
86691
|
+
function onVitePostMessage(kind, callback) {
|
|
86692
|
+
const controller = new AbortController();
|
|
86693
|
+
window.addEventListener(
|
|
86694
|
+
"message",
|
|
86695
|
+
(event) => {
|
|
86696
|
+
if (event.data.kind === kind) {
|
|
86697
|
+
callback(event.data);
|
|
86698
|
+
}
|
|
86699
|
+
},
|
|
86700
|
+
{
|
|
86701
|
+
signal: controller.signal
|
|
86702
|
+
}
|
|
86703
|
+
);
|
|
86704
|
+
return () => {
|
|
86705
|
+
controller.abort();
|
|
86706
|
+
};
|
|
86707
|
+
}
|
|
86322
86708
|
class PropertiesPanelManager {
|
|
86323
|
-
constructor(runtimeEntitiesManager, entityManager) {
|
|
86709
|
+
constructor(runtimeEntitiesManager, entityManager, componentsManager) {
|
|
86324
86710
|
__publicField(this, "propertiesDefinitions", /* @__PURE__ */ new Map());
|
|
86325
86711
|
__publicField(this, "propertiesPanelTrackerDisposer", null);
|
|
86326
86712
|
__publicField(this, "nonDynamicPropertyPanels", /* @__PURE__ */ new Map());
|
|
86327
86713
|
__publicField(this, "_propertyLookupCache", /* @__PURE__ */ new Map());
|
|
86714
|
+
__publicField(this, "removeHotReloadListener", null);
|
|
86328
86715
|
this.runtimeEntitiesManager = runtimeEntitiesManager;
|
|
86329
86716
|
this.entityManager = entityManager;
|
|
86717
|
+
this.componentsManager = componentsManager;
|
|
86330
86718
|
makeAutoObservable(this, {
|
|
86331
86719
|
_propertyLookupCache: false
|
|
86332
86720
|
});
|
|
86333
|
-
|
|
86334
|
-
PropertiesPanelManager: this
|
|
86335
|
-
});
|
|
86721
|
+
this.attachHotReloadListener();
|
|
86336
86722
|
}
|
|
86337
86723
|
getPropertiesPanel(scopeId, instanceId) {
|
|
86338
86724
|
const props2 = this.entityManager.getEntityById(scopeId, instanceId);
|
|
@@ -86367,6 +86753,17 @@ class PropertiesPanelManager {
|
|
|
86367
86753
|
);
|
|
86368
86754
|
}
|
|
86369
86755
|
}
|
|
86756
|
+
updatePropertiesDefinitionForType(type5) {
|
|
86757
|
+
const latestComponent = this.componentsManager.getComponent(type5);
|
|
86758
|
+
if (!latestComponent) {
|
|
86759
|
+
return;
|
|
86760
|
+
}
|
|
86761
|
+
const latestPropertiesDefinition = latestComponent.propertiesDefinition;
|
|
86762
|
+
if (!latestPropertiesDefinition) {
|
|
86763
|
+
return;
|
|
86764
|
+
}
|
|
86765
|
+
this.propertiesDefinitions.set(type5, latestPropertiesDefinition);
|
|
86766
|
+
}
|
|
86370
86767
|
getNonDynamicPropertiesPanels() {
|
|
86371
86768
|
return Object.fromEntries(this.nonDynamicPropertyPanels.entries());
|
|
86372
86769
|
}
|
|
@@ -86451,6 +86848,22 @@ class PropertiesPanelManager {
|
|
|
86451
86848
|
}
|
|
86452
86849
|
return lookup[path2];
|
|
86453
86850
|
}
|
|
86851
|
+
/**
|
|
86852
|
+
* When a custom component's source code is updated, we want to update the properties definition for that component.
|
|
86853
|
+
* In order to do that, we need to listen to vite's hot reload events. We can't put import.meta.hot calls in the library
|
|
86854
|
+
* because Vite just compiled all of those out in library builds, so we inject a listener from the plugin instead.
|
|
86855
|
+
* https://github.com/vitejs/vite/blob/v6.2/packages/vite/src/node/plugins/define.ts#L37
|
|
86856
|
+
*/
|
|
86857
|
+
attachHotReloadListener() {
|
|
86858
|
+
var _a2;
|
|
86859
|
+
(_a2 = this.removeHotReloadListener) == null ? void 0 : _a2.call(this);
|
|
86860
|
+
this.removeHotReloadListener = onVitePostMessage(
|
|
86861
|
+
VitePostMessageKind.UPDATE_CUSTOM_COMPONENT,
|
|
86862
|
+
(message2) => {
|
|
86863
|
+
this.updatePropertiesDefinitionForType(message2.component);
|
|
86864
|
+
}
|
|
86865
|
+
);
|
|
86866
|
+
}
|
|
86454
86867
|
}
|
|
86455
86868
|
const makeMobxCachedGetter = (getter) => {
|
|
86456
86869
|
const cachedGetters = {};
|
|
@@ -86507,6 +86920,18 @@ function getPropertyValue$1({
|
|
|
86507
86920
|
}
|
|
86508
86921
|
return parsed;
|
|
86509
86922
|
}
|
|
86923
|
+
if (property.type === "EVENT" && scopeId && name) {
|
|
86924
|
+
const eventFlows = property.value.map((step) => {
|
|
86925
|
+
try {
|
|
86926
|
+
return getSbEventFlow(step, scopeId);
|
|
86927
|
+
} catch {
|
|
86928
|
+
return void 0;
|
|
86929
|
+
}
|
|
86930
|
+
}).filter(
|
|
86931
|
+
(eventFlow) => eventFlow !== void 0
|
|
86932
|
+
);
|
|
86933
|
+
return SbEventFlow.sequence(eventFlows);
|
|
86934
|
+
}
|
|
86510
86935
|
if (property.type === "STATIC" && typeof property.value === "object" && property.value !== null) {
|
|
86511
86936
|
return Object.entries(property.value).reduce(
|
|
86512
86937
|
(acc, [key2, value]) => {
|
|
@@ -86526,6 +86951,133 @@ function getPropertyValue$1({
|
|
|
86526
86951
|
}
|
|
86527
86952
|
return property.value;
|
|
86528
86953
|
}
|
|
86954
|
+
function getSbEventFlow(step, scopeId) {
|
|
86955
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
86956
|
+
if (!isValidStepDef(step)) {
|
|
86957
|
+
return void 0;
|
|
86958
|
+
}
|
|
86959
|
+
const getEntity = (entityName) => {
|
|
86960
|
+
try {
|
|
86961
|
+
const entity = rootStore.entityManager.getEntity(
|
|
86962
|
+
scopeId,
|
|
86963
|
+
getName(entityName)
|
|
86964
|
+
);
|
|
86965
|
+
if (entity)
|
|
86966
|
+
return withBindingIdentifier(entity, {
|
|
86967
|
+
entityName,
|
|
86968
|
+
scopeId
|
|
86969
|
+
});
|
|
86970
|
+
} catch {
|
|
86971
|
+
return void 0;
|
|
86972
|
+
}
|
|
86973
|
+
};
|
|
86974
|
+
const getEntities = (entityNames) => {
|
|
86975
|
+
return entityNames.map(getEntity).filter((entity) => entity !== void 0);
|
|
86976
|
+
};
|
|
86977
|
+
const createNestedEventFlow = (steps) => {
|
|
86978
|
+
return Array.isArray(steps) && steps.length > 0 ? getSbEventFlow(steps, scopeId) : void 0;
|
|
86979
|
+
};
|
|
86980
|
+
switch (step.type) {
|
|
86981
|
+
case "executeApi":
|
|
86982
|
+
return SbEventFlow.runApis(
|
|
86983
|
+
getEntities(step.apiNames),
|
|
86984
|
+
createNestedEventFlow(step.onSuccess ?? []),
|
|
86985
|
+
createNestedEventFlow(step.onError ?? [])
|
|
86986
|
+
);
|
|
86987
|
+
case "cancelApi":
|
|
86988
|
+
return SbEventFlow.cancelApis(
|
|
86989
|
+
getEntities(step.apiNames),
|
|
86990
|
+
createNestedEventFlow(step.onCancel ?? [])
|
|
86991
|
+
);
|
|
86992
|
+
case "runJs":
|
|
86993
|
+
return SbEventFlow.runJS(function(...args) {
|
|
86994
|
+
if (step.code) {
|
|
86995
|
+
try {
|
|
86996
|
+
const cleanCode = step.code.trim().endsWith(";") ? step.code.slice(0, -1) : step.code;
|
|
86997
|
+
new Function(`return (${cleanCode})()`).call(this, ...args);
|
|
86998
|
+
} catch (e3) {
|
|
86999
|
+
console.error("Error executing JS code:", e3);
|
|
87000
|
+
}
|
|
87001
|
+
}
|
|
87002
|
+
});
|
|
87003
|
+
case "navigateTo":
|
|
87004
|
+
return SbEventFlow.navigateTo({
|
|
87005
|
+
url: step.url,
|
|
87006
|
+
newWindow: step.newWindow
|
|
87007
|
+
});
|
|
87008
|
+
case "navigateToApp":
|
|
87009
|
+
return SbEventFlow.navigateToApp(step.targetApp.id);
|
|
87010
|
+
case "navigateToRoute":
|
|
87011
|
+
return SbEventFlow.navigateToRoute(step.routeId);
|
|
87012
|
+
case "setQueryParams":
|
|
87013
|
+
return SbEventFlow.setQueryParams(
|
|
87014
|
+
step.queryParams ? JSON.parse(step.queryParams) : {},
|
|
87015
|
+
step.keepQueryParams
|
|
87016
|
+
);
|
|
87017
|
+
case "controlSlideout": {
|
|
87018
|
+
const slideoutEntity = getEntity(step.name);
|
|
87019
|
+
if (!slideoutEntity) return void 0;
|
|
87020
|
+
return SbEventFlow.controlSlideout(step.name, step.direction);
|
|
87021
|
+
}
|
|
87022
|
+
case "controlModal": {
|
|
87023
|
+
const modalEntity = getEntity(step.name);
|
|
87024
|
+
if (!modalEntity) return void 0;
|
|
87025
|
+
return SbEventFlow.controlModal(modalEntity, step.direction);
|
|
87026
|
+
}
|
|
87027
|
+
case "controlTimer": {
|
|
87028
|
+
const timerEntity = getEntity(step.name);
|
|
87029
|
+
if (!timerEntity) return void 0;
|
|
87030
|
+
return SbEventFlow.controlTimer(step.name, step.command);
|
|
87031
|
+
}
|
|
87032
|
+
case "setStateVar": {
|
|
87033
|
+
const stateEntity = getEntity((_a2 = step.state) == null ? void 0 : _a2.name);
|
|
87034
|
+
if (!stateEntity) return void 0;
|
|
87035
|
+
const value = isPropertyInfo(step.value) ? getPropertyValue$1({
|
|
87036
|
+
property: step.value,
|
|
87037
|
+
scopeId,
|
|
87038
|
+
name: getName((_b2 = step.state) == null ? void 0 : _b2.name)
|
|
87039
|
+
}) : step.value;
|
|
87040
|
+
return SbEventFlow.setStateVar(stateEntity, value);
|
|
87041
|
+
}
|
|
87042
|
+
case "resetStateVar": {
|
|
87043
|
+
const resetStateEntity = getEntity((_c2 = step.state) == null ? void 0 : _c2.name);
|
|
87044
|
+
if (!resetStateEntity) return void 0;
|
|
87045
|
+
return SbEventFlow.resetStateVar(resetStateEntity);
|
|
87046
|
+
}
|
|
87047
|
+
case "resetComponent": {
|
|
87048
|
+
const resetWidgetEntity = getEntity((_d2 = step.widget) == null ? void 0 : _d2.name);
|
|
87049
|
+
if (!resetWidgetEntity) return void 0;
|
|
87050
|
+
return SbEventFlow.resetComponent(
|
|
87051
|
+
step.widget,
|
|
87052
|
+
step.propertyName,
|
|
87053
|
+
step.resetChildren
|
|
87054
|
+
);
|
|
87055
|
+
}
|
|
87056
|
+
case "setComponentProperty": {
|
|
87057
|
+
const setWidgetEntity = getEntity((_e2 = step.widget) == null ? void 0 : _e2.name);
|
|
87058
|
+
if (!setWidgetEntity) return void 0;
|
|
87059
|
+
return SbEventFlow.setComponentProperty(
|
|
87060
|
+
step.widget,
|
|
87061
|
+
step.propertyName,
|
|
87062
|
+
step.propertyValue
|
|
87063
|
+
);
|
|
87064
|
+
}
|
|
87065
|
+
case "showAlert":
|
|
87066
|
+
return SbEventFlow.showAlert(
|
|
87067
|
+
step.message,
|
|
87068
|
+
step.style,
|
|
87069
|
+
step.alertDuration,
|
|
87070
|
+
step.alertPosition
|
|
87071
|
+
);
|
|
87072
|
+
case "setProfile":
|
|
87073
|
+
return SbEventFlow.setProfile(step.profileId, step.profileAction);
|
|
87074
|
+
case "triggerEvent":
|
|
87075
|
+
return SbEventFlow.triggerEvent((_f2 = step.event) == null ? void 0 : _f2.name, step.eventPayload);
|
|
87076
|
+
default:
|
|
87077
|
+
console.warn("Unhandled runtime step type", step.type);
|
|
87078
|
+
return void 0;
|
|
87079
|
+
}
|
|
87080
|
+
}
|
|
86529
87081
|
const getNormalizedIdInfo = (params) => {
|
|
86530
87082
|
var _a2, _b2;
|
|
86531
87083
|
const name = (_a2 = params.bind) == null ? void 0 : _a2.entityName;
|
|
@@ -86540,6 +87092,21 @@ function isSbComponent(child) {
|
|
|
86540
87092
|
var _a2;
|
|
86541
87093
|
return typeof child === "object" && ((_a2 = child.type) == null ? void 0 : _a2.isSb) === superblocksComponentSymbol;
|
|
86542
87094
|
}
|
|
87095
|
+
function getValidChildrenNodes(children) {
|
|
87096
|
+
if (Array.isArray(children)) {
|
|
87097
|
+
return children.filter(isValidReactNode);
|
|
87098
|
+
}
|
|
87099
|
+
if (isValidReactNode(children)) {
|
|
87100
|
+
return [children];
|
|
87101
|
+
}
|
|
87102
|
+
return [];
|
|
87103
|
+
}
|
|
87104
|
+
function isValidReactNode(element) {
|
|
87105
|
+
if (Array.isArray(element)) {
|
|
87106
|
+
return element.every(isValidReactNode);
|
|
87107
|
+
}
|
|
87108
|
+
return React__default.isValidElement(element) || typeof element !== "object" || element === null;
|
|
87109
|
+
}
|
|
86543
87110
|
class RuntimeWidgetsManager {
|
|
86544
87111
|
constructor(nameManager) {
|
|
86545
87112
|
__publicField(this, "widgets", {});
|
|
@@ -86553,9 +87120,6 @@ class RuntimeWidgetsManager {
|
|
|
86553
87120
|
addWidgetFromPayload: action,
|
|
86554
87121
|
sourceToInstanceIdSample: observable
|
|
86555
87122
|
});
|
|
86556
|
-
registerStores({
|
|
86557
|
-
RuntimeManager: this
|
|
86558
|
-
});
|
|
86559
87123
|
}
|
|
86560
87124
|
setWidgetMeta(instanceId, meta) {
|
|
86561
87125
|
const existingMeta = this.widgets[instanceId];
|
|
@@ -86580,14 +87144,13 @@ class RuntimeWidgetsManager {
|
|
|
86580
87144
|
isInCustomComponent
|
|
86581
87145
|
} = params;
|
|
86582
87146
|
const traverse = (params2) => {
|
|
86583
|
-
var _a2;
|
|
86584
87147
|
const { props: props2, type: type5, parentInstanceId, node: node2, isSbComponent: isSbComponent$1, identifier: identifier2 } = params2;
|
|
86585
|
-
const childrenArr = typeof props2.children === "function" ? [props2.children] : React__default.Children.toArray(props2.children);
|
|
87148
|
+
const childrenArr = typeof props2.children === "function" ? [props2.children] : React__default.Children.toArray(getValidChildrenNodes(props2.children));
|
|
86586
87149
|
const metaChildren = [];
|
|
86587
87150
|
for (const child of childrenArr) {
|
|
86588
87151
|
let childElement;
|
|
86589
87152
|
if (React__default.isValidElement(child) && child.props[WIDGET_SOURCE_ID_ATTRIBUTE]) {
|
|
86590
|
-
const childType = (
|
|
87153
|
+
const childType = getChildType(child);
|
|
86591
87154
|
const childSourceId = child.props[WIDGET_SOURCE_ID_ATTRIBUTE];
|
|
86592
87155
|
const { name: childName, scopeId: childScopeId } = getNormalizedIdInfo({
|
|
86593
87156
|
bind: getBindingIdentifier(child.props.bind),
|
|
@@ -86744,6 +87307,14 @@ class RuntimeWidgetsManager {
|
|
|
86744
87307
|
return this.getClosestAncestorByType(currentWidget.parentInstanceId, type5);
|
|
86745
87308
|
}
|
|
86746
87309
|
}
|
|
87310
|
+
function getChildType(child) {
|
|
87311
|
+
var _a2;
|
|
87312
|
+
try {
|
|
87313
|
+
return ((_a2 = child.type) == null ? void 0 : _a2.sbType) ?? String(child.type ?? "unknown");
|
|
87314
|
+
} catch {
|
|
87315
|
+
return "unknown";
|
|
87316
|
+
}
|
|
87317
|
+
}
|
|
86747
87318
|
_processRootWidget_dec = [action], _addOptimisticCreateWidget_dec = [action];
|
|
86748
87319
|
class RuntimeEntitiesManager {
|
|
86749
87320
|
constructor(nameManager, entityManager) {
|
|
@@ -86756,7 +87327,7 @@ class RuntimeEntitiesManager {
|
|
|
86756
87327
|
if (!meta) {
|
|
86757
87328
|
return void 0;
|
|
86758
87329
|
}
|
|
86759
|
-
if (!this.hasEditOperationsPending) {
|
|
87330
|
+
if (!this.hasEditOperationsPending()) {
|
|
86760
87331
|
return meta;
|
|
86761
87332
|
}
|
|
86762
87333
|
const sourceId = meta.sourceId;
|
|
@@ -86903,9 +87474,8 @@ class RuntimeEntitiesManager {
|
|
|
86903
87474
|
this.nameManager = nameManager;
|
|
86904
87475
|
this.entityManager = entityManager;
|
|
86905
87476
|
this.widgets = new RuntimeWidgetsManager(nameManager);
|
|
86906
|
-
makeAutoObservable(this
|
|
86907
|
-
|
|
86908
|
-
DeployedRuntimeManager: this
|
|
87477
|
+
makeAutoObservable(this, {
|
|
87478
|
+
widgets: false
|
|
86909
87479
|
});
|
|
86910
87480
|
}
|
|
86911
87481
|
processRootWidget(params) {
|
|
@@ -87063,13 +87633,13 @@ class RuntimeEntitiesManager {
|
|
|
87063
87633
|
}
|
|
87064
87634
|
// TODO will need to include all other operations like
|
|
87065
87635
|
// widget creation/deletion, etc.
|
|
87066
|
-
|
|
87636
|
+
hasEditOperationsPending() {
|
|
87067
87637
|
const hasPendingOperations = getEditStore().operationManager.hasPendingOperations;
|
|
87068
87638
|
const hasPendingResize = getEditStore().ui.resizing.hasAnyPendingResize;
|
|
87069
87639
|
const shouldRezisePage = getEditStore().ui.dnd.shouldResizePage;
|
|
87070
87640
|
return hasPendingOperations || hasPendingResize || shouldRezisePage;
|
|
87071
87641
|
}
|
|
87072
|
-
|
|
87642
|
+
getPendingOperations() {
|
|
87073
87643
|
const pendingResizes = getEditStore().ui.resizing.pendingResizes;
|
|
87074
87644
|
return [
|
|
87075
87645
|
...getEditStore().operationManager.allPendingTransactions,
|
|
@@ -87332,9 +87902,6 @@ class GridManager {
|
|
|
87332
87902
|
this.root = root2;
|
|
87333
87903
|
this.dnd = dnd;
|
|
87334
87904
|
makeAutoObservable(this);
|
|
87335
|
-
registerStores({
|
|
87336
|
-
GridManager: this
|
|
87337
|
-
});
|
|
87338
87905
|
}
|
|
87339
87906
|
get draggedInstanceId() {
|
|
87340
87907
|
var _a2;
|
|
@@ -87855,9 +88422,6 @@ class StackManager {
|
|
|
87855
88422
|
this.root = root2;
|
|
87856
88423
|
this.dnd = dnd;
|
|
87857
88424
|
makeAutoObservable(this);
|
|
87858
|
-
registerStores({
|
|
87859
|
-
StackManager: this
|
|
87860
|
-
});
|
|
87861
88425
|
}
|
|
87862
88426
|
refreshPositionsAndGetDropIndex() {
|
|
87863
88427
|
if (this.dnd.dropTargetId) {
|
|
@@ -87927,9 +88491,6 @@ class DragAndDropManager {
|
|
|
87927
88491
|
this.stack = new StackManager(root2, this);
|
|
87928
88492
|
this.grid = new GridManager(root2, this);
|
|
87929
88493
|
makeAutoObservable(this);
|
|
87930
|
-
registerStores({
|
|
87931
|
-
DragAndDropManager: this
|
|
87932
|
-
});
|
|
87933
88494
|
startEditorSync({
|
|
87934
88495
|
store: this,
|
|
87935
88496
|
storeId: "dnd",
|
|
@@ -88170,9 +88731,6 @@ class ResizingManager {
|
|
|
88170
88731
|
__publicField(this, "_activeResizes", /* @__PURE__ */ new Map());
|
|
88171
88732
|
this.root = root2;
|
|
88172
88733
|
makeAutoObservable(this);
|
|
88173
|
-
registerStores({
|
|
88174
|
-
ResizingManager: this
|
|
88175
|
-
});
|
|
88176
88734
|
startEditorSync({
|
|
88177
88735
|
store: this,
|
|
88178
88736
|
storeId: "resizing",
|
|
@@ -88507,9 +89065,6 @@ class UIStore {
|
|
|
88507
89065
|
setFocusedInstanceId: action,
|
|
88508
89066
|
selectWidget: action
|
|
88509
89067
|
});
|
|
88510
|
-
registerStores({
|
|
88511
|
-
UIManager: this
|
|
88512
|
-
});
|
|
88513
89068
|
}
|
|
88514
89069
|
// TODO (Alex): For these getters, we should differentiate between source and instance selection
|
|
88515
89070
|
isSourceSelected(sourceId) {
|
|
@@ -88702,7 +89257,8 @@ class EditStore {
|
|
|
88702
89257
|
);
|
|
88703
89258
|
this.propertiesPanelManager = new PropertiesPanelManager(
|
|
88704
89259
|
this.runtimeEntitiesManager,
|
|
88705
|
-
rootStore2.entityManager
|
|
89260
|
+
rootStore2.entityManager,
|
|
89261
|
+
rootStore2.componentRegistry
|
|
88706
89262
|
);
|
|
88707
89263
|
this.interactionLayerManager = new InteractionLayerManager();
|
|
88708
89264
|
this.connectionManager = new ConnectionManager();
|
|
@@ -90483,14 +91039,14 @@ function getLoaderFn$1(options) {
|
|
|
90483
91039
|
if (!(loader === "all")) return [3, 3];
|
|
90484
91040
|
return [4, import(
|
|
90485
91041
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
90486
|
-
"./allPathsLoader-
|
|
91042
|
+
"./allPathsLoader-CkqgEhyC.js"
|
|
90487
91043
|
)];
|
|
90488
91044
|
case 2:
|
|
90489
91045
|
return [2, _b2.sent().allPathsLoader];
|
|
90490
91046
|
case 3:
|
|
90491
91047
|
return [4, import(
|
|
90492
91048
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
90493
|
-
"./splitPathsBySizeLoader-
|
|
91049
|
+
"./splitPathsBySizeLoader-DzWbuSYz.js"
|
|
90494
91050
|
)];
|
|
90495
91051
|
case 4:
|
|
90496
91052
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -99048,7 +99604,7 @@ const DEFAULT_TYPOGRAPHIES_NEW = {
|
|
|
99048
99604
|
},
|
|
99049
99605
|
buttonLabel: {
|
|
99050
99606
|
...DEFAULT_TYPOGRAPHIES_LEGACY.buttonLabel,
|
|
99051
|
-
lineHeight: 1.
|
|
99607
|
+
lineHeight: 1.2
|
|
99052
99608
|
},
|
|
99053
99609
|
code: {
|
|
99054
99610
|
...DEFAULT_TYPOGRAPHIES_LEGACY.code,
|
|
@@ -99109,7 +99665,7 @@ const onePixelTransparentBorderObject = () => ({
|
|
|
99109
99665
|
});
|
|
99110
99666
|
const BASE_THEME_V5 = {
|
|
99111
99667
|
typeFace: "Roboto",
|
|
99112
|
-
borderRadius: Dim.px(
|
|
99668
|
+
borderRadius: Dim.px(8),
|
|
99113
99669
|
mode: ThemeMode.LIGHT,
|
|
99114
99670
|
primaryColor: colors.ACCENT_BLUE_500,
|
|
99115
99671
|
padding: PADDING_PRESETS_BY_THEME_VERSION[5].medium.value,
|
|
@@ -99211,12 +99767,6 @@ const BOX_SHADOWS = {
|
|
|
99211
99767
|
dark: "0 3px 6px -4px rgba(160, 160, 160, 0.03), 0 6px 16px 0 rgba(160, 160, 160, 0.01)"
|
|
99212
99768
|
}
|
|
99213
99769
|
};
|
|
99214
|
-
const BUTTON_PADDING = {
|
|
99215
|
-
left: { mode: "px", value: 10 },
|
|
99216
|
-
right: { mode: "px", value: 10 },
|
|
99217
|
-
top: { mode: "px", value: 9 },
|
|
99218
|
-
bottom: { mode: "px", value: 9 }
|
|
99219
|
-
};
|
|
99220
99770
|
const INPUT_PADDING = {
|
|
99221
99771
|
left: Dim.px(10),
|
|
99222
99772
|
right: Dim.px(10),
|
|
@@ -99224,6 +99774,7 @@ const INPUT_PADDING = {
|
|
|
99224
99774
|
bottom: Dim.px(8)
|
|
99225
99775
|
};
|
|
99226
99776
|
const DROPDOWN_PADDING = INPUT_PADDING;
|
|
99777
|
+
const BUTTON_PADDING = INPUT_PADDING;
|
|
99227
99778
|
const KEY_VALUE_PADDING = {
|
|
99228
99779
|
left: Dim.px(20),
|
|
99229
99780
|
right: Dim.px(20),
|
|
@@ -99652,7 +100203,7 @@ const useStableEffect = (effect2, obj, options = {}) => {
|
|
|
99652
100203
|
return isEqual2(val, old);
|
|
99653
100204
|
}
|
|
99654
100205
|
}
|
|
99655
|
-
return val
|
|
100206
|
+
return Object.is(val, old);
|
|
99656
100207
|
});
|
|
99657
100208
|
const propRemoved = Object.keys(ref2.current).some((key2) => !(key2 in obj));
|
|
99658
100209
|
if (propsChanged || propRemoved) {
|
|
@@ -100913,8 +101464,8 @@ const shineAnimation = We$1`
|
|
|
100913
101464
|
}
|
|
100914
101465
|
`;
|
|
100915
101466
|
const Skeleton2 = qe$1.div`
|
|
100916
|
-
|
|
100917
|
-
|
|
101467
|
+
height: var(--height);
|
|
101468
|
+
width: var(--width);
|
|
100918
101469
|
border-radius: 50%;
|
|
100919
101470
|
background: linear-gradient(110deg, #ececec 10%, #f5f5f5 30%, #ececec 60%);
|
|
100920
101471
|
background-size: 200% 100%;
|
|
@@ -111094,14 +111645,8 @@ const useStyleWithSize = (props2) => {
|
|
|
111094
111645
|
{
|
|
111095
111646
|
cold: true,
|
|
111096
111647
|
customEqualChecks: [
|
|
111097
|
-
[
|
|
111098
|
-
|
|
111099
|
-
(a3, b3) => a3.mode === b3.mode && a3.value === b3.value
|
|
111100
|
-
],
|
|
111101
|
-
[
|
|
111102
|
-
lodashExports.isObject,
|
|
111103
|
-
(a3, b3) => lodashExports.isEqual(a3, b3)
|
|
111104
|
-
]
|
|
111648
|
+
[isDimension, Dim.isEqual],
|
|
111649
|
+
[lodashExports.isObject, (a3, b3) => lodashExports.isEqual(a3, b3)]
|
|
111105
111650
|
]
|
|
111106
111651
|
}
|
|
111107
111652
|
);
|
|
@@ -111146,7 +111691,7 @@ const ReactiveComponent = observer(function Component2({
|
|
|
111146
111691
|
return stylePropWithSize;
|
|
111147
111692
|
}, [reactiveProps.isVisible, stylePropWithSize]);
|
|
111148
111693
|
const { setStyle, getFallbackStyle } = useComponentSuspenseStyle();
|
|
111149
|
-
|
|
111694
|
+
useEffect(() => {
|
|
111150
111695
|
setStyle(styleProp);
|
|
111151
111696
|
}, [styleProp, setStyle]);
|
|
111152
111697
|
const instanceIdProps = { [WIDGET_INSTANCE_ID_ATTRIBUTE]: instanceId };
|
|
@@ -116893,6 +117438,18 @@ const DropLayer = observer(() => {
|
|
|
116893
117438
|
) })
|
|
116894
117439
|
] });
|
|
116895
117440
|
});
|
|
117441
|
+
const EXTENDED_CLICKABLE_AREA_DELTA = 6;
|
|
117442
|
+
const EXTENDED_CLICKABLE_ANCHOR_CSS = {
|
|
117443
|
+
top: `calc(anchor(top) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
|
|
117444
|
+
left: `calc(anchor(left) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
|
|
117445
|
+
right: `calc(anchor(right) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`,
|
|
117446
|
+
bottom: `calc(anchor(bottom) - ${EXTENDED_CLICKABLE_AREA_DELTA}px)`
|
|
117447
|
+
};
|
|
117448
|
+
const EXTENDED_CLICKABLE_ANCHOR_CLIP_PATH = `polygon(
|
|
117449
|
+
0% 0%, 0% 100%, 100% 100%, 100% 0%,
|
|
117450
|
+
0% 0%, ${EXTENDED_CLICKABLE_AREA_DELTA}px ${EXTENDED_CLICKABLE_AREA_DELTA}px, calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px) ${EXTENDED_CLICKABLE_AREA_DELTA}px,
|
|
117451
|
+
calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px) calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px), ${EXTENDED_CLICKABLE_AREA_DELTA}px calc(100% - ${EXTENDED_CLICKABLE_AREA_DELTA}px), ${EXTENDED_CLICKABLE_AREA_DELTA}px ${EXTENDED_CLICKABLE_AREA_DELTA}px
|
|
117452
|
+
)`;
|
|
116896
117453
|
const Wrapper$2 = qe$1.div`
|
|
116897
117454
|
z-index: ${Layers$1.addSectionButton};
|
|
116898
117455
|
position: absolute;
|
|
@@ -117280,22 +117837,6 @@ const DraggableWrapper = (props2) => {
|
|
|
117280
117837
|
}
|
|
117281
117838
|
);
|
|
117282
117839
|
};
|
|
117283
|
-
const getRepositionNamePill = (instanceId) => {
|
|
117284
|
-
var _a2, _b2, _c2, _d2;
|
|
117285
|
-
const parentInstanceId = (_a2 = getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
|
|
117286
|
-
instanceId
|
|
117287
|
-
)) == null ? void 0 : _a2.parentInstanceId;
|
|
117288
|
-
const parentWidget = parentInstanceId ? getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
|
|
117289
|
-
parentInstanceId
|
|
117290
|
-
) : void 0;
|
|
117291
|
-
if ((parentWidget == null ? void 0 : parentWidget.type) === "SbPage") {
|
|
117292
|
-
return ((_b2 = parentWidget == null ? void 0 : parentWidget.children) == null ? void 0 : _b2.length) === 1;
|
|
117293
|
-
} else if ((parentWidget == null ? void 0 : parentWidget.type) === "SbSection") {
|
|
117294
|
-
return ((_d2 = (_c2 = parentWidget == null ? void 0 : parentWidget.props) == null ? void 0 : _c2.height) == null ? void 0 : _d2.mode) === "fill";
|
|
117295
|
-
} else {
|
|
117296
|
-
return false;
|
|
117297
|
-
}
|
|
117298
|
-
};
|
|
117299
117840
|
const NamePillDiv = (params) => {
|
|
117300
117841
|
const {
|
|
117301
117842
|
attributes: attributes2 = {},
|
|
@@ -117307,7 +117848,6 @@ const NamePillDiv = (params) => {
|
|
|
117307
117848
|
isVisible: isVisible2
|
|
117308
117849
|
} = params;
|
|
117309
117850
|
const { canResizeWidth: canResizeWidth2, canResizeHeight: canResizeHeight2 } = useResizeCapabilities(instanceId);
|
|
117310
|
-
const repositionNamePill = getRepositionNamePill(instanceId);
|
|
117311
117851
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
117312
117852
|
"div",
|
|
117313
117853
|
{
|
|
@@ -117331,13 +117871,7 @@ const NamePillDiv = (params) => {
|
|
|
117331
117871
|
zIndex: Layers$1.namePill,
|
|
117332
117872
|
display: "flex",
|
|
117333
117873
|
alignItems: "center",
|
|
117334
|
-
gap: "4px"
|
|
117335
|
-
...repositionNamePill ? {
|
|
117336
|
-
top: "anchor(top)",
|
|
117337
|
-
bottom: void 0,
|
|
117338
|
-
marginTop: "3px",
|
|
117339
|
-
marginRight: "3px"
|
|
117340
|
-
} : {}
|
|
117874
|
+
gap: "4px"
|
|
117341
117875
|
},
|
|
117342
117876
|
"data-sb-pill-id": instanceId,
|
|
117343
117877
|
onClick: (ev) => {
|
|
@@ -117482,11 +118016,12 @@ const useSelectionElements = (params) => {
|
|
|
117482
118016
|
return selectionRects;
|
|
117483
118017
|
};
|
|
117484
118018
|
const InteractionRect = (props2) => {
|
|
117485
|
-
var _a2;
|
|
118019
|
+
var _a2, _b2;
|
|
117486
118020
|
const { instanceId, isDragging, selectionType, isVisible: isVisible2, type: type5 } = props2;
|
|
117487
118021
|
const parentInstanceId = (_a2 = getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
|
|
117488
118022
|
instanceId
|
|
117489
118023
|
)) == null ? void 0 : _a2.parentInstanceId;
|
|
118024
|
+
const showExtendedClickArea = ((_b2 = rootStore.componentRegistry.getComponent(type5 ?? "")) == null ? void 0 : _b2.hasExtendedClickArea) && selectionType === "FOCUSED";
|
|
117490
118025
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
117491
118026
|
parentInstanceId && selectionType === "SELECTED" && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
117492
118027
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -117520,6 +118055,7 @@ const InteractionRect = (props2) => {
|
|
|
117520
118055
|
left: "anchor(left)",
|
|
117521
118056
|
right: "anchor(right)",
|
|
117522
118057
|
bottom: "anchor(bottom)",
|
|
118058
|
+
...showExtendedClickArea ? EXTENDED_CLICKABLE_ANCHOR_CSS : {},
|
|
117523
118059
|
visibility: isDragging ? "hidden" : "visible",
|
|
117524
118060
|
anchorName: getWidgetRectAnchorName(instanceId),
|
|
117525
118061
|
positionAnchor: getWidgetAnchorName(instanceId),
|
|
@@ -117528,6 +118064,23 @@ const InteractionRect = (props2) => {
|
|
|
117528
118064
|
}
|
|
117529
118065
|
}
|
|
117530
118066
|
),
|
|
118067
|
+
showExtendedClickArea && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
118068
|
+
"div",
|
|
118069
|
+
{
|
|
118070
|
+
onClick: (ev) => {
|
|
118071
|
+
getEditStore().ui.selectWidget(instanceId);
|
|
118072
|
+
ev.stopPropagation();
|
|
118073
|
+
},
|
|
118074
|
+
style: {
|
|
118075
|
+
position: "absolute",
|
|
118076
|
+
...EXTENDED_CLICKABLE_ANCHOR_CSS,
|
|
118077
|
+
zIndex: 0,
|
|
118078
|
+
pointerEvents: "auto",
|
|
118079
|
+
positionAnchor: getWidgetAnchorName(instanceId),
|
|
118080
|
+
clipPath: EXTENDED_CLICKABLE_ANCHOR_CLIP_PATH
|
|
118081
|
+
}
|
|
118082
|
+
}
|
|
118083
|
+
),
|
|
117531
118084
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
117532
118085
|
InteractionRectHandles,
|
|
117533
118086
|
{
|
|
@@ -117567,7 +118120,27 @@ const selectDisplayNameAndVisibility = (instanceId) => {
|
|
|
117567
118120
|
};
|
|
117568
118121
|
};
|
|
117569
118122
|
const calculateWidgetsAtCursor = (params) => {
|
|
117570
|
-
|
|
118123
|
+
let elements = document.elementsFromPoint(params.x, params.y);
|
|
118124
|
+
if (params.delta) {
|
|
118125
|
+
elements = [
|
|
118126
|
+
...document.elementsFromPoint(
|
|
118127
|
+
params.x - params.delta.x,
|
|
118128
|
+
params.y - params.delta.y
|
|
118129
|
+
),
|
|
118130
|
+
...document.elementsFromPoint(
|
|
118131
|
+
params.x + params.delta.x,
|
|
118132
|
+
params.y + params.delta.y
|
|
118133
|
+
),
|
|
118134
|
+
...document.elementsFromPoint(
|
|
118135
|
+
params.x - params.delta.x,
|
|
118136
|
+
params.y + params.delta.y
|
|
118137
|
+
),
|
|
118138
|
+
...document.elementsFromPoint(
|
|
118139
|
+
params.x + params.delta.x,
|
|
118140
|
+
params.y - params.delta.y
|
|
118141
|
+
)
|
|
118142
|
+
];
|
|
118143
|
+
}
|
|
117571
118144
|
const hoveredPills = [];
|
|
117572
118145
|
const hoveredActual = [];
|
|
117573
118146
|
elements.forEach((element) => {
|
|
@@ -117589,6 +118162,34 @@ const calculateWidgetsAtCursor = (params) => {
|
|
|
117589
118162
|
hoveredActual
|
|
117590
118163
|
};
|
|
117591
118164
|
};
|
|
118165
|
+
function getFocusedWidget(event, rootType, rootElement, editStore2, isExtended) {
|
|
118166
|
+
if (!rootElement) {
|
|
118167
|
+
return null;
|
|
118168
|
+
}
|
|
118169
|
+
const { hoveredPills, hoveredActual } = calculateWidgetsAtCursor({
|
|
118170
|
+
x: event.clientX,
|
|
118171
|
+
y: event.clientY,
|
|
118172
|
+
rootType,
|
|
118173
|
+
rootElement,
|
|
118174
|
+
delta: isExtended ? { x: EXTENDED_CLICKABLE_AREA_DELTA, y: EXTENDED_CLICKABLE_AREA_DELTA } : void 0
|
|
118175
|
+
});
|
|
118176
|
+
const instanceIds = [...hoveredPills, ...hoveredActual];
|
|
118177
|
+
const focusedWidget = instanceIds.find((id2) => {
|
|
118178
|
+
var _a2;
|
|
118179
|
+
const widgetMeta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(id2);
|
|
118180
|
+
const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
|
|
118181
|
+
(widgetMeta == null ? void 0 : widgetMeta.sourceId) ?? ""
|
|
118182
|
+
).length;
|
|
118183
|
+
const hasExtendedClickArea = (_a2 = rootStore.componentRegistry.getComponent(
|
|
118184
|
+
(widgetMeta == null ? void 0 : widgetMeta.type) ?? ""
|
|
118185
|
+
)) == null ? void 0 : _a2.hasExtendedClickArea;
|
|
118186
|
+
return (isExtended === false || hasExtendedClickArea) && (widgetMeta == null ? void 0 : widgetMeta.isSbComponent) && !(widgetMeta == null ? void 0 : widgetMeta.isInCustomComponent) && sourceIdInstanceCount <= 1;
|
|
118187
|
+
}) ?? null;
|
|
118188
|
+
if (focusedWidget) {
|
|
118189
|
+
return focusedWidget;
|
|
118190
|
+
}
|
|
118191
|
+
return null;
|
|
118192
|
+
}
|
|
117592
118193
|
function useWidgetHover(rootType) {
|
|
117593
118194
|
useEffect(() => {
|
|
117594
118195
|
const rootElement = document.getElementById(
|
|
@@ -117596,22 +118197,26 @@ function useWidgetHover(rootType) {
|
|
|
117596
118197
|
);
|
|
117597
118198
|
const editStore2 = getEditStore();
|
|
117598
118199
|
const handleMouseMove = (event) => {
|
|
117599
|
-
const
|
|
117600
|
-
|
|
117601
|
-
y: event.clientY,
|
|
118200
|
+
const focusedWidgetExtended = getFocusedWidget(
|
|
118201
|
+
event,
|
|
117602
118202
|
rootType,
|
|
117603
|
-
rootElement
|
|
117604
|
-
|
|
117605
|
-
|
|
117606
|
-
|
|
117607
|
-
|
|
117608
|
-
|
|
117609
|
-
|
|
117610
|
-
|
|
117611
|
-
|
|
117612
|
-
|
|
117613
|
-
|
|
117614
|
-
|
|
118203
|
+
rootElement,
|
|
118204
|
+
editStore2,
|
|
118205
|
+
true
|
|
118206
|
+
);
|
|
118207
|
+
if (focusedWidgetExtended) {
|
|
118208
|
+
editStore2.ui.setFocusedInstanceId(focusedWidgetExtended);
|
|
118209
|
+
} else {
|
|
118210
|
+
const focusedWidget = getFocusedWidget(
|
|
118211
|
+
event,
|
|
118212
|
+
rootType,
|
|
118213
|
+
rootElement,
|
|
118214
|
+
editStore2,
|
|
118215
|
+
false
|
|
118216
|
+
);
|
|
118217
|
+
if (focusedWidget) {
|
|
118218
|
+
editStore2.ui.setFocusedInstanceId(focusedWidget);
|
|
118219
|
+
}
|
|
117615
118220
|
}
|
|
117616
118221
|
};
|
|
117617
118222
|
const throttledHandleMouseMove = throttle(handleMouseMove, 25);
|
|
@@ -117719,7 +118324,7 @@ const stableEffectOptions$1 = {
|
|
|
117719
118324
|
/* isType, isEqual */
|
|
117720
118325
|
[(a3) => isBindingString(a3), isBindingEqual],
|
|
117721
118326
|
[(a3) => isName(a3), isNameEqual],
|
|
117722
|
-
[(a3) => isDimension(a3),
|
|
118327
|
+
[(a3) => isDimension(a3), Dim.isEqual],
|
|
117723
118328
|
[(a3) => typeof a3 === "function", (a3, b3) => a3.toString() === b3.toString()],
|
|
117724
118329
|
[(a3) => typeof a3 === "string", (a3, b3) => a3 === b3],
|
|
117725
118330
|
[(a3) => typeof a3 === "object" && a3 !== null, (a3, b3) => _$2.isEqual(a3, b3)]
|
|
@@ -117852,6 +118457,21 @@ const EditWrapper = observer(function EditWrapper2(props2) {
|
|
|
117852
118457
|
const scopeName = rootStore.entityManager.getScopeName(
|
|
117853
118458
|
props2.identifier.scopeId
|
|
117854
118459
|
);
|
|
118460
|
+
const handleClick = (ev) => {
|
|
118461
|
+
const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
|
|
118462
|
+
props2.identifier.sourceId
|
|
118463
|
+
).length;
|
|
118464
|
+
if (sourceIdInstanceCount > 1) {
|
|
118465
|
+
return;
|
|
118466
|
+
}
|
|
118467
|
+
if (isInCustomComponent && customComponentInstanceId) {
|
|
118468
|
+
editStore2.ui.selectWidget(customComponentInstanceId);
|
|
118469
|
+
ev.stopPropagation();
|
|
118470
|
+
return;
|
|
118471
|
+
}
|
|
118472
|
+
editStore2.ui.selectWidget(props2.identifier.instanceId);
|
|
118473
|
+
ev.stopPropagation();
|
|
118474
|
+
};
|
|
117855
118475
|
const node2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
117856
118476
|
"div",
|
|
117857
118477
|
{
|
|
@@ -117863,22 +118483,8 @@ const EditWrapper = observer(function EditWrapper2(props2) {
|
|
|
117863
118483
|
"data-can-drop": props2.isDroppable,
|
|
117864
118484
|
"data-selected": isSelected,
|
|
117865
118485
|
"data-has-local-binding": hasLocalBinding,
|
|
118486
|
+
onClick: handleClick,
|
|
117866
118487
|
id: getEditWrapperId(props2.identifier.instanceId),
|
|
117867
|
-
onClick: (ev) => {
|
|
117868
|
-
const sourceIdInstanceCount = editStore2.interactionLayerManager.getSourceIdElements(
|
|
117869
|
-
props2.identifier.sourceId
|
|
117870
|
-
).length;
|
|
117871
|
-
if (sourceIdInstanceCount > 1) {
|
|
117872
|
-
return;
|
|
117873
|
-
}
|
|
117874
|
-
if (isInCustomComponent && customComponentInstanceId) {
|
|
117875
|
-
editStore2.ui.selectWidget(customComponentInstanceId);
|
|
117876
|
-
ev.stopPropagation();
|
|
117877
|
-
return;
|
|
117878
|
-
}
|
|
117879
|
-
editStore2.ui.selectWidget(props2.identifier.instanceId);
|
|
117880
|
-
ev.stopPropagation();
|
|
117881
|
-
},
|
|
117882
118488
|
ref: registerSourceElement,
|
|
117883
118489
|
children: [
|
|
117884
118490
|
showVisibilityBackground && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -118082,7 +118688,8 @@ const stableEffectOptions = {
|
|
|
118082
118688
|
/* isType, isEqual */
|
|
118083
118689
|
[(a3) => isBindingString(a3), isBindingEqual],
|
|
118084
118690
|
[(a3) => isName(a3), isNameEqual],
|
|
118085
|
-
[(a3) => isDimension(a3),
|
|
118691
|
+
[(a3) => isDimension(a3), Dim.isEqual],
|
|
118692
|
+
[(a3) => isObservable(a3), (a3, b3) => lodashExports.isEqual(a3, b3)],
|
|
118086
118693
|
[(a3) => typeof a3 === "function", (a3, b3) => a3.toString() === b3.toString()],
|
|
118087
118694
|
[(a3) => typeof a3 === "string", (a3, b3) => a3 === b3],
|
|
118088
118695
|
[(a3) => typeof a3 === "object" && a3 !== null, (a3, b3) => lodashExports.isEqual(a3, b3)]
|
|
@@ -118125,7 +118732,7 @@ function useTrackRuntimeWidget(instanceId, params) {
|
|
|
118125
118732
|
};
|
|
118126
118733
|
}
|
|
118127
118734
|
const editStore2 = getEditStore();
|
|
118128
|
-
if (isEditing && editStore2.runtimeEntitiesManager.hasEditOperationsPending) {
|
|
118735
|
+
if (isEditing && editStore2.runtimeEntitiesManager.hasEditOperationsPending()) {
|
|
118129
118736
|
const meta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(instanceId);
|
|
118130
118737
|
if (meta == null ? void 0 : meta.props) {
|
|
118131
118738
|
const {
|
|
@@ -118261,6 +118868,8 @@ const registerSbComponent = (type5, config2, Component3) => {
|
|
|
118261
118868
|
SbComponent.displayName = type5;
|
|
118262
118869
|
SbComponent.isCustomComponent = config2.customComponent ?? false;
|
|
118263
118870
|
SbComponent.isDroppable = config2.container ?? false;
|
|
118871
|
+
SbComponent.hasExtendedClickArea = !!config2.hasExtendedClickArea;
|
|
118872
|
+
SbComponent.propertiesDefinition = config2.propertiesDefinition;
|
|
118264
118873
|
if (config2.customComponent) {
|
|
118265
118874
|
rootStore.componentRegistry.addCustomComponent(type5, SbComponent);
|
|
118266
118875
|
} else {
|
|
@@ -118887,7 +119496,8 @@ const propertiesDefinition$h = {
|
|
|
118887
119496
|
const SbButton = registerSbComponent(
|
|
118888
119497
|
"SbButton",
|
|
118889
119498
|
{
|
|
118890
|
-
propertiesDefinition: propertiesDefinition$h
|
|
119499
|
+
propertiesDefinition: propertiesDefinition$h,
|
|
119500
|
+
hasExtendedClickArea: true
|
|
118891
119501
|
},
|
|
118892
119502
|
(props2) => {
|
|
118893
119503
|
var _a2;
|
|
@@ -119327,7 +119937,8 @@ const InternalStack = ({
|
|
|
119327
119937
|
style2
|
|
119328
119938
|
]
|
|
119329
119939
|
);
|
|
119330
|
-
const {
|
|
119940
|
+
const { height, width, ...rest } = props2;
|
|
119941
|
+
const safeProps = usePassthroughProps(rest);
|
|
119331
119942
|
const childCount = React__default.Children.count(children);
|
|
119332
119943
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: stackStyle, ...safeProps, children: React__default.Children.map(children, (child) => {
|
|
119333
119944
|
if (!React__default.isValidElement(child) || !isSbComponent(child)) {
|
|
@@ -119440,7 +120051,8 @@ const generateClassName = (seed2) => {
|
|
|
119440
120051
|
};
|
|
119441
120052
|
const getCanvasClassName = () => "canvas";
|
|
119442
120053
|
const getChildName = (child) => {
|
|
119443
|
-
|
|
120054
|
+
var _a2;
|
|
120055
|
+
return ((_a2 = getBindingIdentifier(child.props.bind)) == null ? void 0 : _a2.entityName) ?? child.props[WIDGET_SOURCE_ID_ATTRIBUTE];
|
|
119444
120056
|
};
|
|
119445
120057
|
const calculateRowPositions = (orderedNames, childrenArray, rowHeight, pxHeights) => {
|
|
119446
120058
|
return orderedNames.reduce(
|
|
@@ -127602,6 +128214,13 @@ const SbInput = registerSbComponent(
|
|
|
127602
128214
|
}
|
|
127603
128215
|
);
|
|
127604
128216
|
const propertiesDefinition$c = {
|
|
128217
|
+
contents: Section.category(PropsPanelCategory.Content).children({
|
|
128218
|
+
columns: Prop.array().readAndWrite().propertiesPanel({
|
|
128219
|
+
label: "Sections",
|
|
128220
|
+
controlType: "SECTION_LIST",
|
|
128221
|
+
headerControlType: "ADD_SECTION"
|
|
128222
|
+
})
|
|
128223
|
+
}),
|
|
127605
128224
|
layout: Section.category(PropsPanelCategory.Layout).add(
|
|
127606
128225
|
size$2({
|
|
127607
128226
|
defaults: {
|
|
@@ -133545,7 +134164,7 @@ function requireRef() {
|
|
|
133545
134164
|
ref.useComposeRef = ref.supportRef = ref.supportNodeRef = ref.getNodeRef = ref.fillRef = ref.composeRef = void 0;
|
|
133546
134165
|
var _typeof2 = _interopRequireDefault(require_typeof());
|
|
133547
134166
|
var _react = React__default;
|
|
133548
|
-
var _reactIs = requireReactIs$
|
|
134167
|
+
var _reactIs = requireReactIs$2();
|
|
133549
134168
|
var _useMemo = _interopRequireDefault(requireUseMemo());
|
|
133550
134169
|
var _isFragment = _interopRequireDefault(requireIsFragment());
|
|
133551
134170
|
var ReactMajorVersion2 = Number(_react.version.split(".")[0]);
|
|
@@ -134642,7 +135261,6 @@ const SbText = registerSbComponent(
|
|
|
134642
135261
|
"data-align": verticalAlign,
|
|
134643
135262
|
style: { ...containerStyles, ...typographyStyles },
|
|
134644
135263
|
"data-test": `text-component-${name}`,
|
|
134645
|
-
...containerStyles,
|
|
134646
135264
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "icon-text-container", style: iconContainerStyles, children: [
|
|
134647
135265
|
iconPosition === "left" && icon && /* @__PURE__ */ jsxRuntimeExports.jsx(DynamicSVG, { iconName: icon, size: iconSize }),
|
|
134648
135266
|
typeof formattedText !== "string" || typeof formattedText === "string" && formattedText.length <= 1e5 || isLongTextVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(AutolinkedText, { text: formattedText, wrapText }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -135336,20 +135954,31 @@ const textStyleProps = {
|
|
|
135336
135954
|
})),
|
|
135337
135955
|
cellBackground: cellBackgroundProp
|
|
135338
135956
|
};
|
|
135957
|
+
const computedValueUnion = Prop.union({
|
|
135958
|
+
shared: {
|
|
135959
|
+
isDerived: Prop.boolean().default(false)
|
|
135960
|
+
},
|
|
135961
|
+
variants: [
|
|
135962
|
+
{
|
|
135963
|
+
isDerived: Prop.literal(false)
|
|
135964
|
+
},
|
|
135965
|
+
{
|
|
135966
|
+
isDerived: Prop.literal(true),
|
|
135967
|
+
computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135968
|
+
label: "Computed value"
|
|
135969
|
+
// todo: add special control that can use currentRow
|
|
135970
|
+
})
|
|
135971
|
+
}
|
|
135972
|
+
]
|
|
135973
|
+
}).getProps();
|
|
135339
135974
|
const textColumnProperties = {
|
|
135340
135975
|
general: {
|
|
135341
|
-
// TODO: bring this back when we are ready
|
|
135342
|
-
// computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135343
|
-
// label: "Computed value",
|
|
135344
|
-
// controlType: "COMPUTE_TABLE_VALUE",
|
|
135345
|
-
// }),
|
|
135346
135976
|
displayedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135347
135977
|
label: "Displayed value",
|
|
135348
135978
|
controlType: "COMPUTE_TABLE_VALUE"
|
|
135349
135979
|
})
|
|
135350
135980
|
},
|
|
135351
135981
|
presentation: {
|
|
135352
|
-
...cellIconProps,
|
|
135353
135982
|
textWrap: Prop.boolean().readAndWrite().propertiesPanel({
|
|
135354
135983
|
label: "Wrap text",
|
|
135355
135984
|
controlType: "SWITCH"
|
|
@@ -135439,11 +136068,6 @@ const buttonColumnProperties = {
|
|
|
135439
136068
|
};
|
|
135440
136069
|
const numberColumnProperties = {
|
|
135441
136070
|
general: {
|
|
135442
|
-
// TODO: bring this back when we are ready
|
|
135443
|
-
// computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135444
|
-
// label: "Computed value",
|
|
135445
|
-
// controlType: "COMPUTE_TABLE_VALUE",
|
|
135446
|
-
// }),
|
|
135447
136071
|
notation: Prop.string().readAndWrite().propertiesPanel({
|
|
135448
136072
|
label: "Number format",
|
|
135449
136073
|
controlType: "DROP_DOWN",
|
|
@@ -135547,6 +136171,32 @@ const imageColumnProperties = {
|
|
|
135547
136171
|
cellBackground: cellBackgroundProp
|
|
135548
136172
|
}
|
|
135549
136173
|
};
|
|
136174
|
+
const manageTimezoneUnion = Prop.union({
|
|
136175
|
+
shared: {
|
|
136176
|
+
manageTimezone: Prop.boolean().default(false).readAndWrite().propertiesPanel({
|
|
136177
|
+
label: "Manage timezone",
|
|
136178
|
+
controlType: "SWITCH"
|
|
136179
|
+
})
|
|
136180
|
+
},
|
|
136181
|
+
variants: [
|
|
136182
|
+
{
|
|
136183
|
+
manageTimezone: Prop.literal(false)
|
|
136184
|
+
},
|
|
136185
|
+
{
|
|
136186
|
+
manageTimezone: Prop.literal(true),
|
|
136187
|
+
valueTimezone: Prop.string().readAndWrite().propertiesPanel({
|
|
136188
|
+
label: "Value timezone",
|
|
136189
|
+
controlType: "DROP_DOWN",
|
|
136190
|
+
options: TIMEZONE_OPTIONS
|
|
136191
|
+
}),
|
|
136192
|
+
displayTimezone: Prop.string().readAndWrite().propertiesPanel({
|
|
136193
|
+
label: "Display timezone",
|
|
136194
|
+
controlType: "DROP_DOWN",
|
|
136195
|
+
options: TIMEZONE_OPTIONS
|
|
136196
|
+
})
|
|
136197
|
+
}
|
|
136198
|
+
]
|
|
136199
|
+
}).getProps();
|
|
135550
136200
|
const dateColumnProperties = {
|
|
135551
136201
|
general: {
|
|
135552
136202
|
inputFormat: Prop.string().readAndWrite().propertiesPanel({
|
|
@@ -135559,21 +136209,7 @@ const dateColumnProperties = {
|
|
|
135559
136209
|
controlType: "DROP_DOWN",
|
|
135560
136210
|
options: DATE_OUTPUT_FORMATS
|
|
135561
136211
|
}),
|
|
135562
|
-
|
|
135563
|
-
manageTimezone: Prop.boolean().readAndWrite().propertiesPanel({
|
|
135564
|
-
label: "Manage timezone",
|
|
135565
|
-
controlType: "SWITCH"
|
|
135566
|
-
}),
|
|
135567
|
-
valueTimezone: Prop.string().readAndWrite().propertiesPanel({
|
|
135568
|
-
label: "Value timezone",
|
|
135569
|
-
controlType: "DROP_DOWN",
|
|
135570
|
-
options: TIMEZONE_OPTIONS
|
|
135571
|
-
}),
|
|
135572
|
-
displayTimezone: Prop.string().readAndWrite().propertiesPanel({
|
|
135573
|
-
label: "Display timezone",
|
|
135574
|
-
controlType: "DROP_DOWN",
|
|
135575
|
-
options: TIMEZONE_OPTIONS
|
|
135576
|
-
})
|
|
136212
|
+
...manageTimezoneUnion
|
|
135577
136213
|
},
|
|
135578
136214
|
presentation: {
|
|
135579
136215
|
...cellIconProps,
|
|
@@ -135585,13 +136221,7 @@ const dateColumnProperties = {
|
|
|
135585
136221
|
}
|
|
135586
136222
|
};
|
|
135587
136223
|
const booleanColumnProperties = {
|
|
135588
|
-
general: {
|
|
135589
|
-
// TODO: bring this back when we are ready
|
|
135590
|
-
// computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135591
|
-
// label: "Computed value",
|
|
135592
|
-
// controlType: "COMPUTE_TABLE_VALUE",
|
|
135593
|
-
// }),
|
|
135594
|
-
},
|
|
136224
|
+
general: {},
|
|
135595
136225
|
presentation: {
|
|
135596
136226
|
horizontalAlign: horizontalAlignProp(),
|
|
135597
136227
|
verticalAlign: verticalAlignProp(),
|
|
@@ -135627,26 +136257,14 @@ const booleanColumnProperties = {
|
|
|
135627
136257
|
}
|
|
135628
136258
|
};
|
|
135629
136259
|
const videoColumnProperties = {
|
|
135630
|
-
general: {
|
|
135631
|
-
// TODO: bring this back when we are ready
|
|
135632
|
-
// computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135633
|
-
// label: "Computed value",
|
|
135634
|
-
// controlType: "COMPUTE_TABLE_VALUE",
|
|
135635
|
-
// }),
|
|
135636
|
-
},
|
|
136260
|
+
general: {},
|
|
135637
136261
|
presentation: {
|
|
135638
136262
|
horizontalAlign: horizontalAlignProp(),
|
|
135639
136263
|
cellBackground: cellBackgroundProp
|
|
135640
136264
|
}
|
|
135641
136265
|
};
|
|
135642
136266
|
const tagsColumnProperties = {
|
|
135643
|
-
general: {
|
|
135644
|
-
// TODO: bring this back when we are ready
|
|
135645
|
-
// computedValue: Prop.string().readAndWrite().propertiesPanel({
|
|
135646
|
-
// label: "Computed value",
|
|
135647
|
-
// controlType: "COMPUTE_TABLE_VALUE",
|
|
135648
|
-
// }),
|
|
135649
|
-
},
|
|
136267
|
+
general: {},
|
|
135650
136268
|
presentation: {
|
|
135651
136269
|
horizontalAlign: horizontalAlignProp(),
|
|
135652
136270
|
verticalAlign: verticalAlignProp(),
|
|
@@ -135683,54 +136301,67 @@ const columnPanelConfig = {
|
|
|
135683
136301
|
variants: [
|
|
135684
136302
|
{
|
|
135685
136303
|
columnType: Prop.unset(),
|
|
136304
|
+
...computedValueUnion,
|
|
135686
136305
|
...textColumnProperties.general
|
|
135687
136306
|
},
|
|
135688
136307
|
{
|
|
135689
136308
|
columnType: Prop.literal(ColumnType.TEXT),
|
|
136309
|
+
...computedValueUnion,
|
|
135690
136310
|
...textColumnProperties.general
|
|
135691
136311
|
},
|
|
135692
136312
|
{
|
|
135693
136313
|
columnType: Prop.literal(ColumnType.NUMBER),
|
|
136314
|
+
...computedValueUnion,
|
|
135694
136315
|
...numberColumnProperties.general
|
|
135695
136316
|
},
|
|
135696
136317
|
{
|
|
135697
136318
|
columnType: Prop.literal(ColumnType.CURRENCY),
|
|
136319
|
+
...computedValueUnion,
|
|
135698
136320
|
...currencyColumnProperties.general
|
|
135699
136321
|
},
|
|
135700
136322
|
{
|
|
135701
136323
|
columnType: Prop.literal(ColumnType.PERCENTAGE),
|
|
136324
|
+
...computedValueUnion,
|
|
135702
136325
|
...percentageColumnProperties.general
|
|
135703
136326
|
},
|
|
135704
136327
|
{
|
|
135705
136328
|
columnType: Prop.literal(ColumnType.IMAGE),
|
|
136329
|
+
...computedValueUnion,
|
|
135706
136330
|
...imageColumnProperties.general
|
|
135707
136331
|
},
|
|
135708
136332
|
{
|
|
135709
136333
|
columnType: Prop.literal(ColumnType.VIDEO),
|
|
136334
|
+
...computedValueUnion,
|
|
135710
136335
|
...videoColumnProperties.general
|
|
135711
136336
|
},
|
|
135712
136337
|
{
|
|
135713
136338
|
columnType: Prop.literal(ColumnType.DATE),
|
|
136339
|
+
...computedValueUnion,
|
|
135714
136340
|
...dateColumnProperties.general
|
|
135715
136341
|
},
|
|
135716
136342
|
{
|
|
135717
136343
|
columnType: Prop.literal(ColumnType.BUTTON),
|
|
136344
|
+
// no computedValue (just buttonLabel)
|
|
135718
136345
|
...buttonColumnProperties.general
|
|
135719
136346
|
},
|
|
135720
136347
|
{
|
|
135721
136348
|
columnType: Prop.literal(ColumnType.LINK),
|
|
136349
|
+
// no computedValue (just linkUrl/linkLabel)
|
|
135722
136350
|
...linkColumnProperties.general
|
|
135723
136351
|
},
|
|
135724
136352
|
{
|
|
135725
136353
|
columnType: Prop.literal(ColumnType.BOOLEAN),
|
|
136354
|
+
...computedValueUnion,
|
|
135726
136355
|
...booleanColumnProperties.general
|
|
135727
136356
|
},
|
|
135728
136357
|
{
|
|
135729
136358
|
columnType: Prop.literal(ColumnType.TAGS),
|
|
136359
|
+
...computedValueUnion,
|
|
135730
136360
|
...tagsColumnProperties.general
|
|
135731
136361
|
},
|
|
135732
136362
|
{
|
|
135733
136363
|
columnType: Prop.literal(ColumnType.EMAIL),
|
|
136364
|
+
...computedValueUnion,
|
|
135734
136365
|
...emailColumnProperties.general
|
|
135735
136366
|
}
|
|
135736
136367
|
]
|
|
@@ -144877,14 +145508,14 @@ function getLoaderFn(options) {
|
|
|
144877
145508
|
if (!(loader === "all")) return [3, 3];
|
|
144878
145509
|
return [4, import(
|
|
144879
145510
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144880
|
-
"./allPathsLoader-
|
|
145511
|
+
"./allPathsLoader-CoNAJZeJ.js"
|
|
144881
145512
|
)];
|
|
144882
145513
|
case 2:
|
|
144883
145514
|
return [2, _b2.sent().allPathsLoader];
|
|
144884
145515
|
case 3:
|
|
144885
145516
|
return [4, import(
|
|
144886
145517
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144887
|
-
"./splitPathsBySizeLoader-
|
|
145518
|
+
"./splitPathsBySizeLoader-BkYpVgsW.js"
|
|
144888
145519
|
)];
|
|
144889
145520
|
case 4:
|
|
144890
145521
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -152840,7 +153471,10 @@ const isValidDate = (date4) => {
|
|
|
152840
153471
|
return date4 !== "Invalid date" && moment(date4).isValid();
|
|
152841
153472
|
};
|
|
152842
153473
|
const StyledControlGroup$1 = qe$1(ControlGroup)`
|
|
153474
|
+
width: 100%;
|
|
152843
153475
|
height: 100%;
|
|
153476
|
+
overflow-y: hidden;
|
|
153477
|
+
|
|
152844
153478
|
&&& {
|
|
152845
153479
|
.${INPUT$1} {
|
|
152846
153480
|
width: 100%;
|
|
@@ -152876,7 +153510,8 @@ const StyledControlGroup$1 = qe$1(ControlGroup)`
|
|
|
152876
153510
|
}
|
|
152877
153511
|
}
|
|
152878
153512
|
|
|
152879
|
-
.${INPUT_LEFT_CONTAINER$1},
|
|
153513
|
+
.${INPUT_LEFT_CONTAINER$1},
|
|
153514
|
+
.${INPUT_ACTION$1} {
|
|
152880
153515
|
display: flex;
|
|
152881
153516
|
align-items: center;
|
|
152882
153517
|
height: 100%;
|
|
@@ -152924,7 +153559,7 @@ class DatePickerComponent extends React__default.Component {
|
|
|
152924
153559
|
const dateFormat = this.normalizedDateFormat;
|
|
152925
153560
|
const showTime = formatIncludesTime(dateFormat);
|
|
152926
153561
|
const timePrecision = getTimePrecision(dateFormat);
|
|
152927
|
-
return showTime && this.props.
|
|
153562
|
+
return showTime && this.props.use24HourTime && timePrecision === TimePrecision.MINUTE;
|
|
152928
153563
|
});
|
|
152929
153564
|
__publicField(this, "handleInteraction", (openState) => {
|
|
152930
153565
|
this.setState({
|
|
@@ -153197,7 +153832,7 @@ class DatePickerComponent extends React__default.Component {
|
|
|
153197
153832
|
},
|
|
153198
153833
|
timePickerProps: !showTime ? void 0 : {
|
|
153199
153834
|
precision: timePrecision,
|
|
153200
|
-
useAmPm: !this.props.
|
|
153835
|
+
useAmPm: !this.props.use24HourTime,
|
|
153201
153836
|
onChange: this.onTimeChanged
|
|
153202
153837
|
},
|
|
153203
153838
|
value: currentValue,
|
|
@@ -153212,24 +153847,32 @@ class DatePickerComponent extends React__default.Component {
|
|
|
153212
153847
|
minHeight: this.props.inputLineHeightPx ? `${this.props.inputLineHeightPx + INPUT_ADDITIONAL_MIN_HEIGHT$1}px` : void 0
|
|
153213
153848
|
},
|
|
153214
153849
|
onClick: this.props.onInputClick,
|
|
153215
|
-
|
|
153216
|
-
|
|
153217
|
-
|
|
153218
|
-
|
|
153219
|
-
|
|
153220
|
-
|
|
153221
|
-
|
|
153222
|
-
|
|
153223
|
-
|
|
153224
|
-
|
|
153225
|
-
|
|
153226
|
-
|
|
153227
|
-
|
|
153850
|
+
leftIcon: this.props.icon ? (
|
|
153851
|
+
/**
|
|
153852
|
+
* Use `leftIcon` (with Blueprint's `INPUT_LEFT_CONTAINER` CSS class) instead of `leftElement`.
|
|
153853
|
+
* Blueprint measures `leftElement` width after render to set input padding.
|
|
153854
|
+
* If the element isn't present (e.g., Suspense, modals), it measures 0 and sets `padding-left: 0`, causing overlap.
|
|
153855
|
+
* Setting the style to `paddingLeft` is overridden by Blueprint.
|
|
153856
|
+
*/
|
|
153857
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
153858
|
+
"div",
|
|
153859
|
+
{
|
|
153860
|
+
className: `IconWrapper ${CLASS_NAMES.ICON} ${INPUT_LEFT_CONTAINER$1} ${isInputFocused ? CLASS_NAMES.ACTIVE_MODIFIER : ""} ${this.props.isDisabled || this.props.selectedDate === "" || this.props.selectedDate == null ? CLASS_NAMES.DISABLED_MODIFIER : ""} ${!this.props.isValid ? CLASS_NAMES.ERROR_MODIFIER : ""}`,
|
|
153861
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
153862
|
+
DynamicSVG,
|
|
153863
|
+
{
|
|
153864
|
+
iconName: this.props.icon,
|
|
153865
|
+
size: this.props.iconSize ?? DEFAULT_ICON_SIZE$1
|
|
153866
|
+
}
|
|
153867
|
+
)
|
|
153868
|
+
}
|
|
153869
|
+
)
|
|
153870
|
+
) : null,
|
|
153871
|
+
rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
|
|
153872
|
+
onChange: this.onInputChanged,
|
|
153228
153873
|
// @ts-expect-error extra props
|
|
153229
153874
|
"data-invalid": !this.props.isValid && !this.state.isOpen,
|
|
153230
|
-
"data-active": this.state.isOpen
|
|
153231
|
-
rightElement: !formatIncludesTimezone(displayFormat) && this.props.showTimezone ? /* @__PURE__ */ jsxRuntimeExports.jsx(Timezone, { timezone: this.displayTimezone }) : void 0,
|
|
153232
|
-
onChange: this.onInputChanged
|
|
153875
|
+
"data-active": this.state.isOpen
|
|
153233
153876
|
},
|
|
153234
153877
|
popoverProps: {
|
|
153235
153878
|
...this.props.forceOpen ? { isOpen: this.state.isOpen } : {},
|
|
@@ -153492,7 +154135,7 @@ const EditDateCell = (props2) => {
|
|
|
153492
154135
|
selectedDate: date4,
|
|
153493
154136
|
forceOpen: true,
|
|
153494
154137
|
onDatePickerClosed: handleDatepickerClose,
|
|
153495
|
-
|
|
154138
|
+
use24HourTime: editTwentyFourHourTime ?? true,
|
|
153496
154139
|
minDate: formattedMinDate,
|
|
153497
154140
|
maxDate: formattedMaxDate,
|
|
153498
154141
|
timezone: manageTimezone ? timezone : void 0,
|
|
@@ -161688,6 +162331,17 @@ function getSelectedRows(props2) {
|
|
|
161688
162331
|
const selectedRows = selectedRowIndices.map((ind) => filteredTableData[ind]).filter(Boolean);
|
|
161689
162332
|
return selectedRows;
|
|
161690
162333
|
}
|
|
162334
|
+
const isDerivedColumn = (tableData, columnId) => {
|
|
162335
|
+
if (!tableData || tableData.length === 0) {
|
|
162336
|
+
return true;
|
|
162337
|
+
}
|
|
162338
|
+
const firstRow = tableData[0];
|
|
162339
|
+
if (!firstRow) {
|
|
162340
|
+
return true;
|
|
162341
|
+
}
|
|
162342
|
+
const isInRow = columnId in firstRow;
|
|
162343
|
+
return !isInRow;
|
|
162344
|
+
};
|
|
161691
162345
|
function getFilteredTableData(props2) {
|
|
161692
162346
|
var _a2;
|
|
161693
162347
|
if (!props2.tableData) {
|
|
@@ -161719,7 +162373,8 @@ function getFilteredTableData(props2) {
|
|
|
161719
162373
|
return;
|
|
161720
162374
|
}
|
|
161721
162375
|
let computedValues = [];
|
|
161722
|
-
if (column2 && column2.computedValue)
|
|
162376
|
+
if (column2 && column2.computedValue && // ignore computed values for non-derived columns (they can only use displayed values)
|
|
162377
|
+
isDerivedColumn(derivedTableData, columnId)) {
|
|
161723
162378
|
if (lodashExports.isString(column2.computedValue)) {
|
|
161724
162379
|
try {
|
|
161725
162380
|
computedValues = JSON.parse(column2.computedValue);
|
|
@@ -181254,6 +181909,7 @@ const propertiesDefinition$8 = {
|
|
|
181254
181909
|
}),
|
|
181255
181910
|
validationErrors: Prop.any().readable().default(function() {
|
|
181256
181911
|
const errors2 = {};
|
|
181912
|
+
if (!this.isTouched) return errors2;
|
|
181257
181913
|
if (this.isRequired) {
|
|
181258
181914
|
if (this.multiselect && this.selectedIndexArr && this.selectedIndexArr.length === 0) {
|
|
181259
181915
|
errors2.isRequired = "Required";
|
|
@@ -181828,6 +182484,7 @@ const propertiesDefinition$7 = {
|
|
|
181828
182484
|
return this.isChecked;
|
|
181829
182485
|
}),
|
|
181830
182486
|
validationErrors: Prop.any().readable().default(function() {
|
|
182487
|
+
if (!this.isTouched) return {};
|
|
181831
182488
|
const errors2 = {};
|
|
181832
182489
|
if (this.isRequired && !this.isChecked) {
|
|
181833
182490
|
errors2.isRequired = "Required";
|
|
@@ -181916,6 +182573,8 @@ const adjustDateFormatSideEffect = (params) => {
|
|
|
181916
182573
|
const newDateFormat = newWidget.dateFormat || ISO_DATE_FORMAT;
|
|
181917
182574
|
const timezone = newWidget.timezone;
|
|
181918
182575
|
const defaultDateIsDynamic = isBindingString(newWidget.defaultDate);
|
|
182576
|
+
const minDateIsDynamic = isBindingString(newWidget.minDate);
|
|
182577
|
+
const maxDateIsDynamic = isBindingString(newWidget.maxDate);
|
|
181919
182578
|
const propUpdates = {};
|
|
181920
182579
|
const metaUpdates = {};
|
|
181921
182580
|
if (!defaultDateIsDynamic && newWidget.defaultDate) {
|
|
@@ -181940,6 +182599,32 @@ const adjustDateFormatSideEffect = (params) => {
|
|
|
181940
182599
|
metaUpdates.selectedDate = metaDate.format(newDateFormat);
|
|
181941
182600
|
}
|
|
181942
182601
|
}
|
|
182602
|
+
if (!minDateIsDynamic && newWidget.minDate) {
|
|
182603
|
+
let minDate = moment(newWidget.minDate);
|
|
182604
|
+
if (minDate.isValid()) {
|
|
182605
|
+
if (timezone) {
|
|
182606
|
+
minDate = moment.tz(
|
|
182607
|
+
newWidget.minDate,
|
|
182608
|
+
[previousDateFormat, DEFAULT_DATE_FORMAT],
|
|
182609
|
+
timezone
|
|
182610
|
+
);
|
|
182611
|
+
}
|
|
182612
|
+
propUpdates.minDate = Property.Static(minDate.format(newDateFormat));
|
|
182613
|
+
}
|
|
182614
|
+
}
|
|
182615
|
+
if (!maxDateIsDynamic && newWidget.maxDate) {
|
|
182616
|
+
let maxDate = moment(newWidget.maxDate);
|
|
182617
|
+
if (maxDate.isValid()) {
|
|
182618
|
+
if (timezone) {
|
|
182619
|
+
maxDate = moment.tz(
|
|
182620
|
+
newWidget.maxDate,
|
|
182621
|
+
[previousDateFormat, DEFAULT_DATE_FORMAT],
|
|
182622
|
+
timezone
|
|
182623
|
+
);
|
|
182624
|
+
}
|
|
182625
|
+
propUpdates.maxDate = Property.Static(maxDate.format(newDateFormat));
|
|
182626
|
+
}
|
|
182627
|
+
}
|
|
181943
182628
|
return {
|
|
181944
182629
|
[widgetMeta.sourceId]: {
|
|
181945
182630
|
props: propUpdates,
|
|
@@ -181961,12 +182646,12 @@ const adjustMinMaxDateSideEffect = (params) => {
|
|
|
181961
182646
|
const propUpdates = {};
|
|
181962
182647
|
if (updates.minDate && !isBindingString(updates.minDate.value) && defaultDate.isBefore(moment(updates.minDate.value, dateFormat))) {
|
|
181963
182648
|
propUpdates.defaultDate = Property.Static(
|
|
181964
|
-
updates.minDate.value
|
|
182649
|
+
moment(updates.minDate.value, dateFormat).format(dateFormat)
|
|
181965
182650
|
);
|
|
181966
182651
|
}
|
|
181967
182652
|
if (updates.maxDate && !isBindingString(updates.maxDate.value) && defaultDate.isAfter(moment(updates.maxDate.value, dateFormat))) {
|
|
181968
182653
|
propUpdates.defaultDate = Property.Static(
|
|
181969
|
-
updates.maxDate.value
|
|
182654
|
+
moment(updates.maxDate.value, dateFormat).format(dateFormat)
|
|
181970
182655
|
);
|
|
181971
182656
|
}
|
|
181972
182657
|
return {
|
|
@@ -182043,7 +182728,7 @@ const propertiesDefinition$6 = {
|
|
|
182043
182728
|
]
|
|
182044
182729
|
})
|
|
182045
182730
|
).add({
|
|
182046
|
-
|
|
182731
|
+
use24HourTime: Prop.boolean().readAndWrite().default(false).propertiesPanel({
|
|
182047
182732
|
label: "24 hour time",
|
|
182048
182733
|
helpText: "Whether to use 24-hour time format",
|
|
182049
182734
|
controlType: "SWITCH"
|
|
@@ -182119,6 +182804,7 @@ const propertiesDefinition$6 = {
|
|
|
182119
182804
|
return this.selectedDate ? this.selectedDate : void 0;
|
|
182120
182805
|
}),
|
|
182121
182806
|
validationErrors: Prop.any().readable().default(function() {
|
|
182807
|
+
if (!this.isTouched) return {};
|
|
182122
182808
|
const errors2 = {};
|
|
182123
182809
|
if (this.isRequired && !this.selectedDate) {
|
|
182124
182810
|
errors2.isRequired = "Required";
|
|
@@ -182211,6 +182897,7 @@ const SbDatePicker = registerSbComponent(
|
|
|
182211
182897
|
backgroundColor: props2.backgroundColor,
|
|
182212
182898
|
textStyle: props2.textStyle
|
|
182213
182899
|
});
|
|
182900
|
+
const iconSize = useInputIconSize({ textStyle: props2.textStyle });
|
|
182214
182901
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(DatePickerContainer, { ...passThroughProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
182215
182902
|
DatePickerComponent,
|
|
182216
182903
|
{
|
|
@@ -182227,11 +182914,12 @@ const SbDatePicker = registerSbComponent(
|
|
|
182227
182914
|
isValid: !isInvalid,
|
|
182228
182915
|
isTouched: props2.isTouched,
|
|
182229
182916
|
isRequired: props2.isRequired,
|
|
182230
|
-
|
|
182917
|
+
use24HourTime: props2.use24HourTime,
|
|
182231
182918
|
displayTimezone: props2.manageTimezone ? props2.displayTimezone : void 0,
|
|
182232
182919
|
timezone: props2.manageTimezone ? props2.valueTimezone : void 0,
|
|
182233
182920
|
showTimezone: !!props2.manageTimezone,
|
|
182234
182921
|
icon: props2.icon,
|
|
182922
|
+
iconSize,
|
|
182235
182923
|
onDatePickerClosed: handleDatePickerClosed,
|
|
182236
182924
|
placeholder: props2.placeholder,
|
|
182237
182925
|
labelStyleOverride: labelProps == null ? void 0 : labelProps.style,
|
|
@@ -182316,6 +183004,7 @@ const propertiesDefinition$5 = {
|
|
|
182316
183004
|
return this.isChecked;
|
|
182317
183005
|
}),
|
|
182318
183006
|
validationErrors: Prop.any().readable().default(function() {
|
|
183007
|
+
if (!this.isTouched) return {};
|
|
182319
183008
|
const errors2 = {};
|
|
182320
183009
|
if (this.isRequired && !this.isChecked) {
|
|
182321
183010
|
errors2.isRequired = "Required";
|
|
@@ -185799,7 +186488,7 @@ const SbProvider = function SbProvider2({
|
|
|
185799
186488
|
},
|
|
185800
186489
|
id: "sb-provider-root",
|
|
185801
186490
|
children: [
|
|
185802
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.
|
|
186491
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary2, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
185803
186492
|
"div",
|
|
185804
186493
|
{
|
|
185805
186494
|
id: CANVAS_ROOT_ID,
|
|
@@ -185812,7 +186501,10 @@ const SbProvider = function SbProvider2({
|
|
|
185812
186501
|
overflow: "hidden",
|
|
185813
186502
|
position: "relative"
|
|
185814
186503
|
},
|
|
185815
|
-
children:
|
|
186504
|
+
children: [
|
|
186505
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme: userAccessibleTheme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalScope, { children: isEmbedded ? /* @__PURE__ */ jsxRuntimeExports.jsx(EmbedWrapper, { children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Auth0Wrapper, { children }) }) }),
|
|
186506
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(DevTools, {})
|
|
186507
|
+
]
|
|
185816
186508
|
}
|
|
185817
186509
|
) }),
|
|
185818
186510
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: MODAL_TARGET_ROOT_ID, "data-superblocks": MODAL_TARGET_ROOT_ID })
|
|
@@ -197225,145 +197917,149 @@ function requireClient() {
|
|
|
197225
197917
|
}
|
|
197226
197918
|
var clientExports = requireClient();
|
|
197227
197919
|
export {
|
|
197228
|
-
|
|
197920
|
+
clientExports as $,
|
|
197229
197921
|
AppStateVarPersistence6 as A,
|
|
197230
|
-
|
|
197231
|
-
|
|
197232
|
-
|
|
197233
|
-
|
|
197234
|
-
|
|
197235
|
-
|
|
197236
|
-
|
|
197922
|
+
SbProvider as B,
|
|
197923
|
+
SbEventFlow as C,
|
|
197924
|
+
copyToClipboard as D,
|
|
197925
|
+
navigateTo as E,
|
|
197926
|
+
setQueryParams as F,
|
|
197927
|
+
download as G,
|
|
197928
|
+
showAlert as H,
|
|
197237
197929
|
IconSize$2 as I,
|
|
197238
|
-
|
|
197239
|
-
|
|
197240
|
-
|
|
197241
|
-
|
|
197242
|
-
|
|
197243
|
-
|
|
197244
|
-
|
|
197245
|
-
|
|
197246
|
-
|
|
197930
|
+
logoutIntegrations as J,
|
|
197931
|
+
registerScope as K,
|
|
197932
|
+
registerPage as L,
|
|
197933
|
+
createSbScope as M,
|
|
197934
|
+
Global as N,
|
|
197935
|
+
Embed as O,
|
|
197936
|
+
Env as P,
|
|
197937
|
+
SbEvent as Q,
|
|
197938
|
+
useUpdateProperties as R,
|
|
197247
197939
|
SbButton as S,
|
|
197248
197940
|
Theme as T,
|
|
197249
|
-
|
|
197250
|
-
|
|
197251
|
-
|
|
197252
|
-
|
|
197253
|
-
|
|
197254
|
-
|
|
197941
|
+
useTheme as U,
|
|
197942
|
+
Prop as V,
|
|
197943
|
+
sbComputed as W,
|
|
197944
|
+
Dim as X,
|
|
197945
|
+
SB as Y,
|
|
197946
|
+
Outlet as Z,
|
|
197255
197947
|
__awaiter as _,
|
|
197256
197948
|
__generator as a,
|
|
197257
|
-
|
|
197258
|
-
|
|
197259
|
-
|
|
197260
|
-
|
|
197261
|
-
|
|
197262
|
-
|
|
197263
|
-
|
|
197264
|
-
|
|
197265
|
-
|
|
197266
|
-
|
|
197267
|
-
|
|
197268
|
-
|
|
197269
|
-
|
|
197270
|
-
|
|
197271
|
-
|
|
197272
|
-
|
|
197273
|
-
|
|
197274
|
-
|
|
197275
|
-
|
|
197276
|
-
|
|
197277
|
-
|
|
197278
|
-
|
|
197279
|
-
|
|
197280
|
-
|
|
197281
|
-
|
|
197282
|
-
|
|
197283
|
-
|
|
197284
|
-
|
|
197285
|
-
|
|
197286
|
-
|
|
197287
|
-
|
|
197288
|
-
|
|
197289
|
-
|
|
197290
|
-
|
|
197291
|
-
|
|
197292
|
-
|
|
197293
|
-
|
|
197294
|
-
|
|
197295
|
-
|
|
197296
|
-
|
|
197297
|
-
|
|
197298
|
-
|
|
197299
|
-
|
|
197300
|
-
|
|
197301
|
-
|
|
197302
|
-
|
|
197303
|
-
|
|
197304
|
-
|
|
197305
|
-
|
|
197306
|
-
|
|
197307
|
-
|
|
197308
|
-
|
|
197309
|
-
|
|
197310
|
-
|
|
197311
|
-
|
|
197312
|
-
|
|
197313
|
-
|
|
197314
|
-
|
|
197315
|
-
|
|
197316
|
-
|
|
197317
|
-
|
|
197318
|
-
|
|
197319
|
-
|
|
197320
|
-
|
|
197949
|
+
createStaticHandler2 as a$,
|
|
197950
|
+
Await as a0,
|
|
197951
|
+
BrowserRouter as a1,
|
|
197952
|
+
Form2 as a2,
|
|
197953
|
+
HashRouter as a3,
|
|
197954
|
+
IDLE_BLOCKER as a4,
|
|
197955
|
+
IDLE_FETCHER as a5,
|
|
197956
|
+
IDLE_NAVIGATION as a6,
|
|
197957
|
+
Link as a7,
|
|
197958
|
+
Links as a8,
|
|
197959
|
+
MemoryRouter as a9,
|
|
197960
|
+
createBrowserHistory as aA,
|
|
197961
|
+
createClientRoutes as aB,
|
|
197962
|
+
createClientRoutesWithHMRRevalidationOptOut as aC,
|
|
197963
|
+
createRouter as aD,
|
|
197964
|
+
decodeViaTurboStream as aE,
|
|
197965
|
+
deserializeErrors2 as aF,
|
|
197966
|
+
getPatchRoutesOnNavigationFunction as aG,
|
|
197967
|
+
getSingleFetchDataStrategy as aH,
|
|
197968
|
+
invariant as aI,
|
|
197969
|
+
mapRouteProperties as aJ,
|
|
197970
|
+
shouldHydrateRouteLoader as aK,
|
|
197971
|
+
useFogOFWarDiscovery as aL,
|
|
197972
|
+
useScrollRestoration as aM,
|
|
197973
|
+
createBrowserRouter as aN,
|
|
197974
|
+
createCookie as aO,
|
|
197975
|
+
createCookieSessionStorage as aP,
|
|
197976
|
+
createHashRouter as aQ,
|
|
197977
|
+
createMemoryRouter as aR,
|
|
197978
|
+
createMemorySessionStorage as aS,
|
|
197979
|
+
createPath as aT,
|
|
197980
|
+
createRequestHandler as aU,
|
|
197981
|
+
createRoutesFromChildren as aV,
|
|
197982
|
+
createRoutesFromElements as aW,
|
|
197983
|
+
createRoutesStub as aX,
|
|
197984
|
+
createSearchParams as aY,
|
|
197985
|
+
createSession as aZ,
|
|
197986
|
+
createSessionStorage as a_,
|
|
197987
|
+
Meta as aa,
|
|
197988
|
+
NavLink as ab,
|
|
197989
|
+
Navigate as ac,
|
|
197990
|
+
Action as ad,
|
|
197991
|
+
PrefetchPageLinks as ae,
|
|
197992
|
+
Route as af,
|
|
197993
|
+
Router as ag,
|
|
197994
|
+
RouterProvider as ah,
|
|
197995
|
+
Routes as ai,
|
|
197996
|
+
Scripts as aj,
|
|
197997
|
+
ScrollRestoration as ak,
|
|
197998
|
+
ServerRouter as al,
|
|
197999
|
+
StaticRouter as am,
|
|
198000
|
+
StaticRouterProvider as an,
|
|
198001
|
+
DataRouterContext as ao,
|
|
198002
|
+
DataRouterStateContext as ap,
|
|
198003
|
+
ErrorResponseImpl as aq,
|
|
198004
|
+
FetchersContext as ar,
|
|
198005
|
+
FrameworkContext as as,
|
|
198006
|
+
LocationContext as at,
|
|
198007
|
+
NavigationContext as au,
|
|
198008
|
+
RemixErrorBoundary as av,
|
|
198009
|
+
RouteContext as aw,
|
|
198010
|
+
ServerMode as ax,
|
|
198011
|
+
SingleFetchRedirectSymbol as ay,
|
|
198012
|
+
ViewTransitionContext as az,
|
|
197321
198013
|
IconSize as b,
|
|
197322
|
-
|
|
197323
|
-
|
|
197324
|
-
|
|
197325
|
-
|
|
197326
|
-
|
|
197327
|
-
|
|
197328
|
-
|
|
197329
|
-
|
|
197330
|
-
|
|
197331
|
-
|
|
197332
|
-
|
|
197333
|
-
|
|
197334
|
-
|
|
197335
|
-
|
|
197336
|
-
|
|
197337
|
-
|
|
197338
|
-
|
|
197339
|
-
|
|
197340
|
-
|
|
197341
|
-
|
|
197342
|
-
|
|
197343
|
-
|
|
197344
|
-
|
|
197345
|
-
|
|
197346
|
-
|
|
197347
|
-
|
|
197348
|
-
|
|
197349
|
-
|
|
197350
|
-
|
|
197351
|
-
|
|
197352
|
-
|
|
197353
|
-
|
|
197354
|
-
|
|
197355
|
-
|
|
197356
|
-
|
|
197357
|
-
|
|
197358
|
-
|
|
197359
|
-
|
|
197360
|
-
|
|
197361
|
-
|
|
197362
|
-
|
|
197363
|
-
|
|
197364
|
-
|
|
197365
|
-
|
|
197366
|
-
|
|
198014
|
+
createStaticRouter as b0,
|
|
198015
|
+
data as b1,
|
|
198016
|
+
generatePath as b2,
|
|
198017
|
+
href as b3,
|
|
198018
|
+
isCookie as b4,
|
|
198019
|
+
isRouteErrorResponse as b5,
|
|
198020
|
+
isSession as b6,
|
|
198021
|
+
matchPath as b7,
|
|
198022
|
+
matchRoutes as b8,
|
|
198023
|
+
parsePath as b9,
|
|
198024
|
+
useNavigation as bA,
|
|
198025
|
+
useNavigationType as bB,
|
|
198026
|
+
useOutlet as bC,
|
|
198027
|
+
useOutletContext as bD,
|
|
198028
|
+
useParams as bE,
|
|
198029
|
+
useResolvedPath as bF,
|
|
198030
|
+
useRevalidator as bG,
|
|
198031
|
+
useRouteError as bH,
|
|
198032
|
+
useRouteLoaderData as bI,
|
|
198033
|
+
useRoutes as bJ,
|
|
198034
|
+
useSearchParams as bK,
|
|
198035
|
+
useSubmit as bL,
|
|
198036
|
+
useViewTransitionState as bM,
|
|
198037
|
+
redirect as ba,
|
|
198038
|
+
redirectDocument as bb,
|
|
198039
|
+
renderMatches as bc,
|
|
198040
|
+
replace2 as bd,
|
|
198041
|
+
resolvePath as be,
|
|
198042
|
+
HistoryRouter as bf,
|
|
198043
|
+
unstable_RouterContextProvider as bg,
|
|
198044
|
+
unstable_createContext as bh,
|
|
198045
|
+
setDevServerHooks as bi,
|
|
198046
|
+
usePrompt as bj,
|
|
198047
|
+
useActionData as bk,
|
|
198048
|
+
useAsyncError as bl,
|
|
198049
|
+
useAsyncValue as bm,
|
|
198050
|
+
useBeforeUnload as bn,
|
|
198051
|
+
useBlocker as bo,
|
|
198052
|
+
useFetcher as bp,
|
|
198053
|
+
useFetchers as bq,
|
|
198054
|
+
useFormAction as br,
|
|
198055
|
+
useHref as bs,
|
|
198056
|
+
useInRouterContext as bt,
|
|
198057
|
+
useLinkClickHandler as bu,
|
|
198058
|
+
useLoaderData as bv,
|
|
198059
|
+
useLocation as bw,
|
|
198060
|
+
useMatch as bx,
|
|
198061
|
+
useMatches as by,
|
|
198062
|
+
useNavigate as bz,
|
|
197367
198063
|
SbSection as c,
|
|
197368
198064
|
SbColumn as d,
|
|
197369
198065
|
SbContainer as e,
|
|
@@ -197371,22 +198067,22 @@ export {
|
|
|
197371
198067
|
SbPage as g,
|
|
197372
198068
|
SbText as h,
|
|
197373
198069
|
SbModal as i,
|
|
197374
|
-
|
|
197375
|
-
|
|
197376
|
-
|
|
197377
|
-
|
|
197378
|
-
|
|
197379
|
-
|
|
198070
|
+
jsxRuntimeExports as j,
|
|
198071
|
+
SbTable as k,
|
|
198072
|
+
SbDropdown as l,
|
|
198073
|
+
makeAutoObservable as m,
|
|
198074
|
+
SbCustom as n,
|
|
198075
|
+
observer as o,
|
|
197380
198076
|
pascalCase as p,
|
|
197381
|
-
|
|
198077
|
+
SbCheckbox as q,
|
|
197382
198078
|
registerComponent as r,
|
|
197383
|
-
|
|
197384
|
-
|
|
197385
|
-
|
|
197386
|
-
|
|
197387
|
-
|
|
197388
|
-
|
|
197389
|
-
|
|
197390
|
-
|
|
197391
|
-
};
|
|
197392
|
-
//# sourceMappingURL=index-
|
|
198079
|
+
SbDatePicker as s,
|
|
198080
|
+
toJS as t,
|
|
198081
|
+
SbSwitch as u,
|
|
198082
|
+
SbIcon as v,
|
|
198083
|
+
SbImage as w,
|
|
198084
|
+
SbVariable as x,
|
|
198085
|
+
SbTimer as y,
|
|
198086
|
+
SbApi as z
|
|
198087
|
+
};
|
|
198088
|
+
//# sourceMappingURL=index-C4PHemM8.js.map
|