@superblocksteam/library 2.0.0-next.63 → 2.0.0-next.69
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-BZfM3FHu.js → allPaths-C6OJ6mru.js} +2 -2
- package/dist/{allPaths-BZfM3FHu.js.map → allPaths-C6OJ6mru.js.map} +1 -1
- package/dist/{allPaths-BcLZR8dk.js → allPaths-gAit3yMA.js} +2 -2
- package/dist/{allPaths-BcLZR8dk.js.map → allPaths-gAit3yMA.js.map} +1 -1
- package/dist/{allPathsLoader-CfTtW5Pk.js → allPathsLoader-BJfnsyfx.js} +3 -3
- package/dist/{allPathsLoader-DiAtjU88.js.map → allPathsLoader-BJfnsyfx.js.map} +1 -1
- package/dist/{allPathsLoader-DiAtjU88.js → allPathsLoader-Bjuqgh93.js} +3 -3
- package/dist/{allPathsLoader-CfTtW5Pk.js.map → allPathsLoader-Bjuqgh93.js.map} +1 -1
- package/dist/{index-CbiXEaxq.js → index-B2rMu95r.js} +103 -58
- package/dist/{index-CbiXEaxq.js.map → index-B2rMu95r.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-K5Uoo3UV.js → splitPathsBySizeLoader-DJBHYgBR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-K5Uoo3UV.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-DjrBp-Rx.js → splitPathsBySizeLoader-bQPBH87C.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DjrBp-Rx.js.map → splitPathsBySizeLoader-bQPBH87C.js.map} +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +2 -13
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -2
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
- 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/dropdown/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/input/props.d.ts +5 -4
- package/dist-types/lib/user-facing/components/text/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/text/props.d.ts +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +2 -2
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +3 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-BxzKdlqH.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-DIn-fanT.js";
|
|
3
|
-
import { p as pascalCase, b as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, b as IconSize } from "./index-B2rMu95r.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-C6OJ6mru.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-C6OJ6mru.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-DIJYif9G.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-LHtbj0-V.js";
|
|
3
|
-
import { p as pascalCase, I as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, I as IconSize } from "./index-B2rMu95r.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-gAit3yMA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-gAit3yMA.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-B2rMu95r.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-gAit3yMA.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-BJfnsyfx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-BJfnsyfx.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-B2rMu95r.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-C6OJ6mru.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-Bjuqgh93.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-Bjuqgh93.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-BJfnsyfx.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-DJBHYgBR.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -93206,6 +93206,14 @@ class Prop {
|
|
|
93206
93206
|
...this.prop.propertiesPanelDisplay,
|
|
93207
93207
|
...evaluatedProperties
|
|
93208
93208
|
};
|
|
93209
|
+
if ("treatDefaultAsNull" in propertiesPanelDisplay) {
|
|
93210
|
+
if (propertiesPanelDisplay.treatDefaultAsNull) {
|
|
93211
|
+
if (propertiesPanelDisplay.defaultOnAdd === void 0) {
|
|
93212
|
+
propertiesPanelDisplay.defaultOnAdd = propertiesPanelDisplay.defaultValue;
|
|
93213
|
+
}
|
|
93214
|
+
propertiesPanelDisplay.defaultValue = void 0;
|
|
93215
|
+
}
|
|
93216
|
+
}
|
|
93209
93217
|
let panelConfig;
|
|
93210
93218
|
const childrenDisplay = propertiesPanelDisplay == null ? void 0 : propertiesPanelDisplay.childrenDisplayMode;
|
|
93211
93219
|
const isPopover = (childrenDisplay == null ? void 0 : childrenDisplay.type) === "popover";
|
|
@@ -99539,6 +99547,9 @@ const isTypeDroppable = (type5) => {
|
|
|
99539
99547
|
const isTypeDraggable = (type5) => {
|
|
99540
99548
|
return type5 !== "SbPage" && type5 !== "SbSlideout" && type5 !== "SbModal";
|
|
99541
99549
|
};
|
|
99550
|
+
const isContentDragDisabled = (type5) => {
|
|
99551
|
+
return isTypeDraggable(type5) && type5 !== "SbColumn" && type5 !== "SbSection";
|
|
99552
|
+
};
|
|
99542
99553
|
function shouldWrapInSectionAndColumn(type5, parentType) {
|
|
99543
99554
|
return parentType === "SbPage" && type5 !== "SbSection" || parentType === "SbSection" && type5 !== "SbColumn";
|
|
99544
99555
|
}
|
|
@@ -99569,6 +99580,9 @@ const filterSafeGridDimensionProperties = (existingProps) => {
|
|
|
99569
99580
|
return safeDimensions;
|
|
99570
99581
|
};
|
|
99571
99582
|
const defaultSizeForComponent = (componentType, isFreeform, draggedDimensions) => {
|
|
99583
|
+
if (componentType === "SbIcon") {
|
|
99584
|
+
return {};
|
|
99585
|
+
}
|
|
99572
99586
|
const height = Property.Dimension(Dim.fit());
|
|
99573
99587
|
if (isFreeform) {
|
|
99574
99588
|
const guWidth = (draggedDimensions == null ? void 0 : draggedDimensions.widthGU) ?? 4;
|
|
@@ -110879,6 +110893,14 @@ const size$2 = ({
|
|
|
110879
110893
|
};
|
|
110880
110894
|
return sizeProps;
|
|
110881
110895
|
};
|
|
110896
|
+
const widthWithoutFit = () => {
|
|
110897
|
+
return {
|
|
110898
|
+
width: Prop.dimension().readAndWrite().propertiesPanel({
|
|
110899
|
+
label: "Width",
|
|
110900
|
+
controlType: "WIDTH_DROPDOWN"
|
|
110901
|
+
})
|
|
110902
|
+
};
|
|
110903
|
+
};
|
|
110882
110904
|
const shouldScrollContents = (defaultValue2 = false) => ({
|
|
110883
110905
|
shouldScrollContents: Prop.boolean().readAndWrite().propertiesPanel({
|
|
110884
110906
|
label: "Scroll contents",
|
|
@@ -114787,7 +114809,7 @@ const useWidgetNodeRef = (instanceId) => {
|
|
|
114787
114809
|
};
|
|
114788
114810
|
const DraggableWidget = observer(function DraggableWidget2(props) {
|
|
114789
114811
|
const editStore2 = getEditStore();
|
|
114790
|
-
const disableDrag = !editStore2.ui.dnd.canDragWidget(props.instanceId) || editStore2.ui.dnd.isDraggingNewComponent;
|
|
114812
|
+
const disableDrag = props.disableDrag || !editStore2.ui.dnd.canDragWidget(props.instanceId) || editStore2.ui.dnd.isDraggingNewComponent;
|
|
114791
114813
|
const {
|
|
114792
114814
|
setNodeRef: setDraggableNodeRef,
|
|
114793
114815
|
isDragging,
|
|
@@ -116693,6 +116715,22 @@ const DraggableWrapper = (props) => {
|
|
|
116693
116715
|
}
|
|
116694
116716
|
);
|
|
116695
116717
|
};
|
|
116718
|
+
const getRepositionNamePill = (instanceId) => {
|
|
116719
|
+
var _a2, _b2, _c2, _d2;
|
|
116720
|
+
const parentInstanceId = (_a2 = getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
|
|
116721
|
+
instanceId
|
|
116722
|
+
)) == null ? void 0 : _a2.parentInstanceId;
|
|
116723
|
+
const parentWidget = parentInstanceId ? getEditStore().runtimeEntitiesManager.getEditorWidgetMeta(
|
|
116724
|
+
parentInstanceId
|
|
116725
|
+
) : void 0;
|
|
116726
|
+
if ((parentWidget == null ? void 0 : parentWidget.type) === "SbPage") {
|
|
116727
|
+
return ((_b2 = parentWidget == null ? void 0 : parentWidget.children) == null ? void 0 : _b2.length) === 1;
|
|
116728
|
+
} else if ((parentWidget == null ? void 0 : parentWidget.type) === "SbSection") {
|
|
116729
|
+
return ((_d2 = (_c2 = parentWidget == null ? void 0 : parentWidget.props) == null ? void 0 : _c2.height) == null ? void 0 : _d2.mode) === "fill";
|
|
116730
|
+
} else {
|
|
116731
|
+
return false;
|
|
116732
|
+
}
|
|
116733
|
+
};
|
|
116696
116734
|
const NamePillDiv = (params) => {
|
|
116697
116735
|
const {
|
|
116698
116736
|
attributes: attributes2 = {},
|
|
@@ -116704,6 +116742,7 @@ const NamePillDiv = (params) => {
|
|
|
116704
116742
|
isVisible: isVisible2
|
|
116705
116743
|
} = params;
|
|
116706
116744
|
const { canResizeWidth: canResizeWidth2, canResizeHeight: canResizeHeight2 } = useResizeCapabilities(instanceId);
|
|
116745
|
+
const repositionNamePill = getRepositionNamePill(instanceId);
|
|
116707
116746
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
116708
116747
|
"div",
|
|
116709
116748
|
{
|
|
@@ -116727,7 +116766,13 @@ const NamePillDiv = (params) => {
|
|
|
116727
116766
|
zIndex: Layers$1.namePill,
|
|
116728
116767
|
display: "flex",
|
|
116729
116768
|
alignItems: "center",
|
|
116730
|
-
gap: "4px"
|
|
116769
|
+
gap: "4px",
|
|
116770
|
+
...repositionNamePill ? {
|
|
116771
|
+
top: "anchor(top)",
|
|
116772
|
+
bottom: void 0,
|
|
116773
|
+
marginTop: "3px",
|
|
116774
|
+
marginRight: "3px"
|
|
116775
|
+
} : {}
|
|
116731
116776
|
},
|
|
116732
116777
|
"data-sb-pill-id": instanceId,
|
|
116733
116778
|
onClick: (ev) => {
|
|
@@ -117217,7 +117262,6 @@ const EditWrapper = observer(function EditWrapper2(props) {
|
|
|
117217
117262
|
}
|
|
117218
117263
|
const editStore2 = getEditStore();
|
|
117219
117264
|
const isSelected = editStore2.ui.isSourceSelected(identifier2.sourceId);
|
|
117220
|
-
const isDraggingNewComponent = editStore2.ui.dnd.isDraggingNewComponent;
|
|
117221
117265
|
const meta = editStore2.runtimeEntitiesManager.getEditorWidgetMeta(
|
|
117222
117266
|
identifier2.instanceId
|
|
117223
117267
|
);
|
|
@@ -117313,7 +117357,7 @@ const EditWrapper = observer(function EditWrapper2(props) {
|
|
|
117313
117357
|
DraggableWidget,
|
|
117314
117358
|
{
|
|
117315
117359
|
instanceId: props.identifier.instanceId,
|
|
117316
|
-
disableDrag:
|
|
117360
|
+
disableDrag: !isContentDragDisabled(props.type),
|
|
117317
117361
|
children: content
|
|
117318
117362
|
}
|
|
117319
117363
|
);
|
|
@@ -118123,23 +118167,21 @@ const borderRadius = (propertiesPanelConfig = {}) => {
|
|
|
118123
118167
|
});
|
|
118124
118168
|
};
|
|
118125
118169
|
function getDefaultBorderRadius() {
|
|
118126
|
-
|
|
118127
|
-
|
|
118128
|
-
|
|
118129
|
-
|
|
118130
|
-
|
|
118131
|
-
|
|
118132
|
-
|
|
118133
|
-
|
|
118134
|
-
|
|
118135
|
-
|
|
118136
|
-
|
|
118137
|
-
|
|
118138
|
-
|
|
118139
|
-
|
|
118140
|
-
|
|
118141
|
-
return createBorderRadiusObject(borderRadius2);
|
|
118142
|
-
};
|
|
118170
|
+
let borderRadius2;
|
|
118171
|
+
switch (this.variant) {
|
|
118172
|
+
case "PRIMARY_BUTTON":
|
|
118173
|
+
borderRadius2 = Theme.buttons.primary.borderRadius;
|
|
118174
|
+
break;
|
|
118175
|
+
case "SECONDARY_BUTTON":
|
|
118176
|
+
borderRadius2 = Theme.buttons.secondary.borderRadius;
|
|
118177
|
+
break;
|
|
118178
|
+
case "TERTIARY_BUTTON":
|
|
118179
|
+
borderRadius2 = Theme.buttons.tertiary.borderRadius;
|
|
118180
|
+
break;
|
|
118181
|
+
default:
|
|
118182
|
+
borderRadius2 = Theme.buttons.primary.borderRadius;
|
|
118183
|
+
}
|
|
118184
|
+
return createBorderRadiusObject(borderRadius2);
|
|
118143
118185
|
}
|
|
118144
118186
|
const textStyle$3 = textStyleProp().default(function() {
|
|
118145
118187
|
return {
|
|
@@ -118200,18 +118242,19 @@ const propertiesDefinition$h = {
|
|
|
118200
118242
|
label: "Background color",
|
|
118201
118243
|
visibility: "SHOW_NAME",
|
|
118202
118244
|
isRemovable: true,
|
|
118203
|
-
|
|
118204
|
-
return
|
|
118205
|
-
}
|
|
118245
|
+
treatDefaultAsNull: function() {
|
|
118246
|
+
return this.variant === "secondary" || this.variant === "tertiary";
|
|
118247
|
+
},
|
|
118248
|
+
defaultOnAdd: () => Property.Computed("Theme.colors.neutral")
|
|
118249
|
+
// Looks great as a default on every variant, on both dark / light mode
|
|
118206
118250
|
}).default(function() {
|
|
118207
|
-
|
|
118208
|
-
Theme,
|
|
118209
|
-
this.variant
|
|
118210
|
-
);
|
|
118211
|
-
return defaultThemeBackground === "transparent" ? void 0 : defaultThemeBackground;
|
|
118251
|
+
return getButtonThemeDefaultBackgroundColor(Theme, this.variant);
|
|
118212
118252
|
}),
|
|
118213
118253
|
border: border({
|
|
118214
|
-
defaultOnAdd: SECONDARY_BUTTON_BORDER_OBJECT
|
|
118254
|
+
defaultOnAdd: SECONDARY_BUTTON_BORDER_OBJECT,
|
|
118255
|
+
treatDefaultAsNull: function() {
|
|
118256
|
+
return this.variant === "primary" || this.variant === "tertiary";
|
|
118257
|
+
}
|
|
118215
118258
|
}).default(getDefaultBorderObject),
|
|
118216
118259
|
borderRadius: borderRadius().default(getDefaultBorderRadius),
|
|
118217
118260
|
labelAlignment: Prop.string().readAndWrite().default("center").propertiesPanel({
|
|
@@ -126367,14 +126410,7 @@ const PaddingOverlayWrapper = (props) => {
|
|
|
126367
126410
|
);
|
|
126368
126411
|
};
|
|
126369
126412
|
const getInputValidationErrors = (props) => {
|
|
126370
|
-
const errors2 = {
|
|
126371
|
-
required: void 0,
|
|
126372
|
-
minMax: void 0,
|
|
126373
|
-
customRule: void 0,
|
|
126374
|
-
email: void 0,
|
|
126375
|
-
number: void 0,
|
|
126376
|
-
url: void 0
|
|
126377
|
-
};
|
|
126413
|
+
const errors2 = {};
|
|
126378
126414
|
const text = props.text ?? "";
|
|
126379
126415
|
if (props.isRequired && (!text || !text.length)) {
|
|
126380
126416
|
errors2.required = "Required";
|
|
@@ -126422,6 +126458,8 @@ const getInputValidationErrors = (props) => {
|
|
|
126422
126458
|
}
|
|
126423
126459
|
return errors2;
|
|
126424
126460
|
};
|
|
126461
|
+
const getErrorMessages = (errors2) => Object.values(errors2).filter(Boolean);
|
|
126462
|
+
const hasErrors = (errors2) => getErrorMessages(errors2).length > 0;
|
|
126425
126463
|
const ANIMATE_LOADING_PROPERTY_CONTROL_HELP_TEXT = "Display a loading animation if dependent data is loading";
|
|
126426
126464
|
const errorMessagePlacement = Prop.string().readAndWrite().default("tooltip").propertiesPanel({
|
|
126427
126465
|
label: "Error display",
|
|
@@ -126560,21 +126598,23 @@ const getCustomValidationProperties = ({
|
|
|
126560
126598
|
const getFractionDigitsProperties = ({
|
|
126561
126599
|
schema
|
|
126562
126600
|
} = {}) => ({
|
|
126563
|
-
minimumFractionDigits: Prop.number().readAndWrite().
|
|
126601
|
+
minimumFractionDigits: Prop.number().readAndWrite().propertiesPanel({
|
|
126564
126602
|
label: "Min decimals",
|
|
126565
126603
|
helpText: "The minimum number of digits after the decimal separator",
|
|
126566
126604
|
controlType: "INPUT_TEXT",
|
|
126567
126605
|
placeholder: "# between 0-20",
|
|
126568
126606
|
isRemovable: true,
|
|
126569
|
-
visibility: "SHOW_NAME"
|
|
126607
|
+
visibility: "SHOW_NAME",
|
|
126608
|
+
defaultOnAdd: () => 1
|
|
126570
126609
|
}),
|
|
126571
|
-
maximumFractionDigits: Prop.number().readAndWrite().
|
|
126610
|
+
maximumFractionDigits: Prop.number().readAndWrite().propertiesPanel({
|
|
126572
126611
|
label: "Max decimals",
|
|
126573
126612
|
helpText: "The maximum number of digits after the decimal separator",
|
|
126574
126613
|
controlType: "INPUT_TEXT",
|
|
126575
126614
|
placeholder: "# between 0-20",
|
|
126576
126615
|
isRemovable: true,
|
|
126577
126616
|
visibility: "SHOW_NAME",
|
|
126617
|
+
defaultOnAdd: () => 2,
|
|
126578
126618
|
...schema
|
|
126579
126619
|
})
|
|
126580
126620
|
});
|
|
@@ -126602,7 +126642,7 @@ function getShowError() {
|
|
|
126602
126642
|
return !this.isValid && this.isTouched;
|
|
126603
126643
|
}
|
|
126604
126644
|
function getIsValid() {
|
|
126605
|
-
return
|
|
126645
|
+
return !hasErrors(this.validationErrors);
|
|
126606
126646
|
}
|
|
126607
126647
|
const stepProps = {
|
|
126608
126648
|
stepper: Prop.boolean().default(false).propertiesPanel({
|
|
@@ -126754,7 +126794,10 @@ const propertiesDefinition$d = {
|
|
|
126754
126794
|
controlType: "SWITCH"
|
|
126755
126795
|
})
|
|
126756
126796
|
}),
|
|
126757
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: INPUT_PADDING, default: INPUT_PADDING })).add(
|
|
126797
|
+
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: INPUT_PADDING, default: INPUT_PADDING })).add({
|
|
126798
|
+
...size$2(),
|
|
126799
|
+
...widthWithoutFit()
|
|
126800
|
+
}).add(margin()).add({ labelWidth }).add(visible()),
|
|
126758
126801
|
interaction: Section.category(PropsPanelCategory.Interaction).add(
|
|
126759
126802
|
Prop.union({
|
|
126760
126803
|
shared: {
|
|
@@ -126834,7 +126877,8 @@ const propertiesDefinition$d = {
|
|
|
126834
126877
|
isTouched: Prop.boolean().readable().default(false)
|
|
126835
126878
|
}),
|
|
126836
126879
|
derived: Section.category(PropsPanelCategory.Derived).children({
|
|
126837
|
-
value: Prop.
|
|
126880
|
+
value: Prop.any().readable().default(getValue$1),
|
|
126881
|
+
// should be string | number but input-component typecheck fails
|
|
126838
126882
|
validationErrors: Prop.any().readable().default(function() {
|
|
126839
126883
|
return getInputValidationErrors(this);
|
|
126840
126884
|
}),
|
|
@@ -144348,14 +144392,14 @@ function getLoaderFn(options) {
|
|
|
144348
144392
|
if (!(loader === "all")) return [3, 3];
|
|
144349
144393
|
return [4, import(
|
|
144350
144394
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144351
|
-
"./allPathsLoader-
|
|
144395
|
+
"./allPathsLoader-Bjuqgh93.js"
|
|
144352
144396
|
)];
|
|
144353
144397
|
case 2:
|
|
144354
144398
|
return [2, _b2.sent().allPathsLoader];
|
|
144355
144399
|
case 3:
|
|
144356
144400
|
return [4, import(
|
|
144357
144401
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144358
|
-
"./splitPathsBySizeLoader-
|
|
144402
|
+
"./splitPathsBySizeLoader-bQPBH87C.js"
|
|
144359
144403
|
)];
|
|
144360
144404
|
case 4:
|
|
144361
144405
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -153020,9 +153064,7 @@ const EditInputCell = (props) => {
|
|
|
153020
153064
|
minLength: editMinLength,
|
|
153021
153065
|
isRequired: editIsRequired ?? false
|
|
153022
153066
|
});
|
|
153023
|
-
const validationErrors2 =
|
|
153024
|
-
Boolean
|
|
153025
|
-
);
|
|
153067
|
+
const validationErrors2 = getErrorMessages(errors2);
|
|
153026
153068
|
setValidationErrors(validationErrors2);
|
|
153027
153069
|
return validationErrors2;
|
|
153028
153070
|
},
|
|
@@ -170253,7 +170295,6 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
170253
170295
|
const errors2 = getInputValidationErrors({
|
|
170254
170296
|
inputType: this.props.columns[columnId].editInputType ?? "INPUT",
|
|
170255
170297
|
text: clipboardText ?? "",
|
|
170256
|
-
emailRegex: new RegExp(`^${EmailRegexString}$`),
|
|
170257
170298
|
customValidationRule: String(
|
|
170258
170299
|
columnProperties.editCustomValidationRule
|
|
170259
170300
|
),
|
|
@@ -170264,9 +170305,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
170264
170305
|
isInserted ? columnProperties.isRequiredOnInsertion : columnProperties.editIsRequired
|
|
170265
170306
|
)
|
|
170266
170307
|
});
|
|
170267
|
-
const validationErrors =
|
|
170268
|
-
Boolean
|
|
170269
|
-
);
|
|
170308
|
+
const validationErrors = getErrorMessages(errors2);
|
|
170270
170309
|
this.handleEditStop({
|
|
170271
170310
|
shouldSave: true,
|
|
170272
170311
|
value: this.props.currentEditValue,
|
|
@@ -174795,7 +174834,10 @@ const propertiesDefinition$8 = {
|
|
|
174795
174834
|
helpText: "Display a loading animation if dependent data is loading"
|
|
174796
174835
|
})
|
|
174797
174836
|
}),
|
|
174798
|
-
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add(
|
|
174837
|
+
layout: Section.category(PropsPanelCategory.Layout).add(padding({ themeValue: DROPDOWN_PADDING, default: DROPDOWN_PADDING })).add({
|
|
174838
|
+
...size$2(),
|
|
174839
|
+
...widthWithoutFit()
|
|
174840
|
+
}).add(margin()).add(visible()),
|
|
174799
174841
|
interaction: Section.category(PropsPanelCategory.Interaction).children({
|
|
174800
174842
|
multiselect: Prop.boolean().readAndWrite().default(false).propertiesPanel({
|
|
174801
174843
|
label: "Multi-select",
|
|
@@ -175696,7 +175738,10 @@ const propertiesDefinition$6 = {
|
|
|
175696
175738
|
controlType: "SWITCH"
|
|
175697
175739
|
})
|
|
175698
175740
|
}),
|
|
175699
|
-
layout:
|
|
175741
|
+
layout: Section.category(PropsPanelCategory.Layout).add({
|
|
175742
|
+
...size$2(),
|
|
175743
|
+
...widthWithoutFit()
|
|
175744
|
+
}).add(margin()).add(visible()),
|
|
175700
175745
|
appearance: Section.category(PropsPanelCategory.Appearance).children({
|
|
175701
175746
|
labelPosition: labelPosition(),
|
|
175702
175747
|
labelStyle: labelTextStyle(),
|
|
@@ -190841,4 +190886,4 @@ export {
|
|
|
190841
190886
|
copyToClipboard as y,
|
|
190842
190887
|
navigateTo as z
|
|
190843
190888
|
};
|
|
190844
|
-
//# sourceMappingURL=index-
|
|
190889
|
+
//# sourceMappingURL=index-B2rMu95r.js.map
|