@superblocksteam/library 2.0.3-next.172 → 2.0.3-next.174
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-Bpd3E6xy.js → allPaths-CCZMME3l.js} +2 -2
- package/dist/{allPaths-Bpd3E6xy.js.map → allPaths-CCZMME3l.js.map} +1 -1
- package/dist/{allPaths-BERwnhRf.js → allPaths-CHXNxDVP.js} +2 -2
- package/dist/{allPaths-BERwnhRf.js.map → allPaths-CHXNxDVP.js.map} +1 -1
- package/dist/{allPathsLoader-BSzGdn_4.js → allPathsLoader-DTWFaGcd.js} +3 -3
- package/dist/{allPathsLoader-BSzGdn_4.js.map → allPathsLoader-DTWFaGcd.js.map} +1 -1
- package/dist/{allPathsLoader-C-JCfIgR.js → allPathsLoader-Fr8EhLGp.js} +3 -3
- package/dist/{allPathsLoader-C-JCfIgR.js.map → allPathsLoader-Fr8EhLGp.js.map} +1 -1
- package/dist/{index-CUoqQjDK.js → index-U0oPeutu.js} +33 -275
- package/dist/{index-CUoqQjDK.js.map → index-U0oPeutu.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-bO9xGUBi.js → splitPathsBySizeLoader-DHk6oFvg.js} +2 -2
- package/dist/{splitPathsBySizeLoader-bO9xGUBi.js.map → splitPathsBySizeLoader-DHk6oFvg.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-Bu3ysO2_.js → splitPathsBySizeLoader-PcZVWYaJ.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Bu3ysO2_.js.map → splitPathsBySizeLoader-PcZVWYaJ.js.map} +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +3 -6
- package/dist-types/lib/user-facing/components/input/props.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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-U0oPeutu.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-CCZMME3l.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-CCZMME3l.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,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-U0oPeutu.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-CHXNxDVP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-CHXNxDVP.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,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-U0oPeutu.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-CCZMME3l.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-DTWFaGcd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-DTWFaGcd.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-U0oPeutu.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-CHXNxDVP.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-Fr8EhLGp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-Fr8EhLGp.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]}
|
|
@@ -1096,8 +1096,6 @@ var INPUT_GROUP$1 = "".concat(INPUT$1, "-group");
|
|
|
1096
1096
|
var INPUT_LEFT_CONTAINER$1 = "".concat(INPUT$1, "-left-container");
|
|
1097
1097
|
var INPUT_ACTION$1 = "".concat(INPUT$1, "-action");
|
|
1098
1098
|
var RESIZABLE_INPUT_SPAN = "".concat(NS$6, "-resizable-input-span");
|
|
1099
|
-
var TEXT_AREA = "".concat(NS$6, "-text-area");
|
|
1100
|
-
var TEXT_AREA_AUTO_RESIZE = "".concat(TEXT_AREA, "-auto-resize");
|
|
1101
1099
|
var LABEL = "".concat(NS$6, "-label");
|
|
1102
1100
|
var MENU$1 = "".concat(NS$6, "-menu");
|
|
1103
1101
|
var MENU_ITEM$1 = "".concat(MENU$1, "-item");
|
|
@@ -2692,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2692
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2693
2691
|
return [4, import(
|
|
2694
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2695
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-DTWFaGcd.js"
|
|
2696
2694
|
)];
|
|
2697
2695
|
case 2:
|
|
2698
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2699
2697
|
case 3:
|
|
2700
2698
|
return [4, import(
|
|
2701
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2702
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-PcZVWYaJ.js"
|
|
2703
2701
|
)];
|
|
2704
2702
|
case 4:
|
|
2705
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -9167,151 +9165,6 @@ var NumericInput = (
|
|
|
9167
9165
|
return NumericInput2;
|
|
9168
9166
|
}(AbstractPureComponent$1)
|
|
9169
9167
|
);
|
|
9170
|
-
var ASYNC_CONTROLLABLE_VALUE_COMPOSITION_END_DELAY = 10;
|
|
9171
|
-
function useAsyncControllableValue(props) {
|
|
9172
|
-
var onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, propValue = props.value, onChange2 = props.onChange;
|
|
9173
|
-
var _a2 = React.useState(propValue), value = _a2[0], setValue = _a2[1];
|
|
9174
|
-
var _b2 = React.useState(propValue), nextValue = _b2[0], setNextValue = _b2[1];
|
|
9175
|
-
var _c2 = React.useState(false), isComposing = _c2[0], setIsComposing = _c2[1];
|
|
9176
|
-
var _d2 = React.useState(false), hasPendingUpdate = _d2[0], setHasPendingUpdate = _d2[1];
|
|
9177
|
-
var cancelPendingCompositionEnd = React.useRef();
|
|
9178
|
-
var handleCompositionStart = React.useCallback(function(event) {
|
|
9179
|
-
var _a3;
|
|
9180
|
-
(_a3 = cancelPendingCompositionEnd.current) === null || _a3 === void 0 ? void 0 : _a3.call(cancelPendingCompositionEnd);
|
|
9181
|
-
setIsComposing(true);
|
|
9182
|
-
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(event);
|
|
9183
|
-
}, [onCompositionStart]);
|
|
9184
|
-
var createOnCancelPendingCompositionEnd = React.useCallback(function() {
|
|
9185
|
-
var timeoutId = window.setTimeout(function() {
|
|
9186
|
-
return setIsComposing(false);
|
|
9187
|
-
}, ASYNC_CONTROLLABLE_VALUE_COMPOSITION_END_DELAY);
|
|
9188
|
-
return function() {
|
|
9189
|
-
return window.clearTimeout(timeoutId);
|
|
9190
|
-
};
|
|
9191
|
-
}, []);
|
|
9192
|
-
var handleCompositionEnd = React.useCallback(function(event) {
|
|
9193
|
-
cancelPendingCompositionEnd.current = createOnCancelPendingCompositionEnd();
|
|
9194
|
-
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(event);
|
|
9195
|
-
}, [createOnCancelPendingCompositionEnd, onCompositionEnd]);
|
|
9196
|
-
var handleChange = React.useCallback(function(event) {
|
|
9197
|
-
var targetValue = event.target.value;
|
|
9198
|
-
setNextValue(targetValue);
|
|
9199
|
-
onChange2 === null || onChange2 === void 0 ? void 0 : onChange2(event);
|
|
9200
|
-
}, [onChange2]);
|
|
9201
|
-
var shouldDeriveFromProps = !(isComposing || propValue === void 0);
|
|
9202
|
-
if (shouldDeriveFromProps) {
|
|
9203
|
-
var userTriggeredUpdate = nextValue !== value;
|
|
9204
|
-
if (userTriggeredUpdate && propValue === nextValue) {
|
|
9205
|
-
setValue(propValue);
|
|
9206
|
-
setHasPendingUpdate(false);
|
|
9207
|
-
} else if (userTriggeredUpdate && propValue === value) {
|
|
9208
|
-
if (!hasPendingUpdate) {
|
|
9209
|
-
setHasPendingUpdate(true);
|
|
9210
|
-
}
|
|
9211
|
-
} else if (userTriggeredUpdate && propValue !== value) {
|
|
9212
|
-
setValue(propValue);
|
|
9213
|
-
setNextValue(propValue);
|
|
9214
|
-
setHasPendingUpdate(false);
|
|
9215
|
-
} else if (!userTriggeredUpdate) {
|
|
9216
|
-
if (value !== propValue || hasPendingUpdate) {
|
|
9217
|
-
setValue(propValue);
|
|
9218
|
-
setNextValue(propValue);
|
|
9219
|
-
setHasPendingUpdate(false);
|
|
9220
|
-
}
|
|
9221
|
-
}
|
|
9222
|
-
}
|
|
9223
|
-
return {
|
|
9224
|
-
onChange: handleChange,
|
|
9225
|
-
onCompositionEnd: handleCompositionEnd,
|
|
9226
|
-
onCompositionStart: handleCompositionStart,
|
|
9227
|
-
// render the pending value even if it is not confirmed by a parent's async controlled update
|
|
9228
|
-
// so that the cursor does not jump to the end of input as reported in
|
|
9229
|
-
// https://github.com/palantir/blueprint/issues/4298
|
|
9230
|
-
value: isComposing || hasPendingUpdate ? nextValue : value
|
|
9231
|
-
};
|
|
9232
|
-
}
|
|
9233
|
-
var AsyncControllableTextArea = React.forwardRef(function _AsyncControllableTextArea(props, ref2) {
|
|
9234
|
-
var parentValue = props.value, parentOnChange = props.onChange, parentOnCompositionStart = props.onCompositionStart, parentOnCompositionEnd = props.onCompositionEnd, restProps = __rest$B(props, ["value", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
|
9235
|
-
var _a2 = useAsyncControllableValue({
|
|
9236
|
-
onChange: parentOnChange,
|
|
9237
|
-
onCompositionEnd: parentOnCompositionEnd,
|
|
9238
|
-
onCompositionStart: parentOnCompositionStart,
|
|
9239
|
-
value: parentValue
|
|
9240
|
-
}), value = _a2.value, onChange2 = _a2.onChange, onCompositionStart = _a2.onCompositionStart, onCompositionEnd = _a2.onCompositionEnd;
|
|
9241
|
-
return React.createElement("textarea", __assign$2({}, restProps, { value, onChange: onChange2, onCompositionStart, onCompositionEnd, ref: ref2 }));
|
|
9242
|
-
});
|
|
9243
|
-
AsyncControllableTextArea.displayName = "".concat(DISPLAYNAME_PREFIX$1, ".AsyncControllableTextArea");
|
|
9244
|
-
var TextArea$2 = (
|
|
9245
|
-
/** @class */
|
|
9246
|
-
function(_super) {
|
|
9247
|
-
__extends(TextArea2, _super);
|
|
9248
|
-
function TextArea2() {
|
|
9249
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9250
|
-
_this.state = {};
|
|
9251
|
-
_this.textareaElement = null;
|
|
9252
|
-
_this.handleRef = refHandler$1(_this, "textareaElement", _this.props.inputRef);
|
|
9253
|
-
_this.maybeSyncHeightToScrollHeight = function() {
|
|
9254
|
-
var _a2 = _this.props, autoResize = _a2.autoResize, growVertically = _a2.growVertically;
|
|
9255
|
-
if (_this.textareaElement != null) {
|
|
9256
|
-
var scrollHeight = _this.textareaElement.scrollHeight;
|
|
9257
|
-
if (autoResize) {
|
|
9258
|
-
_this.textareaElement.style.height = "0px";
|
|
9259
|
-
_this.textareaElement.style.height = scrollHeight.toString() + "px";
|
|
9260
|
-
_this.setState({ height: scrollHeight });
|
|
9261
|
-
} else if (growVertically && scrollHeight > 0) {
|
|
9262
|
-
_this.setState({ height: scrollHeight });
|
|
9263
|
-
}
|
|
9264
|
-
}
|
|
9265
|
-
if (_this.props.autoResize && _this.textareaElement != null) {
|
|
9266
|
-
_this.textareaElement.style.height = "0px";
|
|
9267
|
-
var scrollHeight = _this.textareaElement.scrollHeight;
|
|
9268
|
-
_this.textareaElement.style.height = scrollHeight.toString() + "px";
|
|
9269
|
-
_this.setState({ height: scrollHeight });
|
|
9270
|
-
}
|
|
9271
|
-
};
|
|
9272
|
-
_this.handleChange = function(e3) {
|
|
9273
|
-
var _a2, _b2;
|
|
9274
|
-
_this.maybeSyncHeightToScrollHeight();
|
|
9275
|
-
(_b2 = (_a2 = _this.props).onChange) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, e3);
|
|
9276
|
-
};
|
|
9277
|
-
return _this;
|
|
9278
|
-
}
|
|
9279
|
-
TextArea2.prototype.componentDidMount = function() {
|
|
9280
|
-
this.maybeSyncHeightToScrollHeight();
|
|
9281
|
-
};
|
|
9282
|
-
TextArea2.prototype.componentDidUpdate = function(prevProps) {
|
|
9283
|
-
if (prevProps.inputRef !== this.props.inputRef) {
|
|
9284
|
-
setRef$2(prevProps.inputRef, null);
|
|
9285
|
-
this.handleRef = refHandler$1(this, "textareaElement", this.props.inputRef);
|
|
9286
|
-
setRef$2(this.props.inputRef, this.textareaElement);
|
|
9287
|
-
}
|
|
9288
|
-
if (prevProps.value !== this.props.value || prevProps.style !== this.props.style) {
|
|
9289
|
-
this.maybeSyncHeightToScrollHeight();
|
|
9290
|
-
}
|
|
9291
|
-
};
|
|
9292
|
-
TextArea2.prototype.render = function() {
|
|
9293
|
-
var _a2;
|
|
9294
|
-
var _b2 = this.props, asyncControl = _b2.asyncControl, autoResize = _b2.autoResize, className = _b2.className, fill = _b2.fill, growVertically = _b2.growVertically;
|
|
9295
|
-
_b2.inputRef;
|
|
9296
|
-
var intent = _b2.intent, large = _b2.large, small = _b2.small, htmlProps = __rest$B(_b2, ["asyncControl", "autoResize", "className", "fill", "growVertically", "inputRef", "intent", "large", "small"]);
|
|
9297
|
-
var rootClasses = classNames(INPUT$1, TEXT_AREA, intentClass$1(intent), (_a2 = {}, _a2[FILL$1] = fill, _a2[LARGE$1] = large, _a2[SMALL$1] = small, _a2[TEXT_AREA_AUTO_RESIZE] = autoResize, _a2), className);
|
|
9298
|
-
var _c2 = htmlProps.style, style2 = _c2 === void 0 ? {} : _c2;
|
|
9299
|
-
if ((autoResize || growVertically) && this.state.height != null) {
|
|
9300
|
-
style2 = __assign$2(__assign$2({}, style2), { height: "".concat(this.state.height, "px") });
|
|
9301
|
-
}
|
|
9302
|
-
var TextAreaComponent = asyncControl ? AsyncControllableTextArea : "textarea";
|
|
9303
|
-
return React.createElement(TextAreaComponent, __assign$2({}, htmlProps, { className: rootClasses, onChange: this.handleChange, style: style2, ref: this.handleRef }));
|
|
9304
|
-
};
|
|
9305
|
-
TextArea2.defaultProps = {
|
|
9306
|
-
autoResize: false,
|
|
9307
|
-
fill: false,
|
|
9308
|
-
large: false,
|
|
9309
|
-
small: false
|
|
9310
|
-
};
|
|
9311
|
-
TextArea2.displayName = "".concat(DISPLAYNAME_PREFIX$1, ".TextArea");
|
|
9312
|
-
return TextArea2;
|
|
9313
|
-
}(AbstractPureComponent$1)
|
|
9314
|
-
);
|
|
9315
9168
|
var HTMLSelect$1 = React.forwardRef(function(props, ref2) {
|
|
9316
9169
|
var _a2;
|
|
9317
9170
|
var className = props.className, children = props.children, disabled = props.disabled, fill = props.fill, _b2 = props.iconName, iconName = _b2 === void 0 ? "double-caret-vertical" : _b2, iconProps = props.iconProps, large = props.large, minimal = props.minimal, _c2 = props.options, options = _c2 === void 0 ? [] : _c2, value = props.value, htmlProps = __rest$B(props, ["className", "children", "disabled", "fill", "iconName", "iconProps", "large", "minimal", "options", "value"]);
|
|
@@ -63115,10 +62968,12 @@ class EntityManager {
|
|
|
63115
62968
|
if (eov.type === "external-function") {
|
|
63116
62969
|
const finalFunction = async (...args) => this.dirComputeEngine.compute({
|
|
63117
62970
|
snapshot: snapshot(scopeId),
|
|
63118
|
-
entityName: name,
|
|
63119
62971
|
func: eov.value,
|
|
63120
62972
|
path: prop,
|
|
63121
|
-
args
|
|
62973
|
+
args,
|
|
62974
|
+
get entityName() {
|
|
62975
|
+
return getName(entity.name);
|
|
62976
|
+
}
|
|
63122
62977
|
});
|
|
63123
62978
|
entity[prop] = finalFunction;
|
|
63124
62979
|
return;
|
|
@@ -63126,9 +62981,11 @@ class EntityManager {
|
|
|
63126
62981
|
const finalFunction = async (...args) => {
|
|
63127
62982
|
await runEventHandlers({
|
|
63128
62983
|
flow: eov.value,
|
|
63129
|
-
name,
|
|
63130
62984
|
scopeId,
|
|
63131
|
-
additionalContext: args[0]
|
|
62985
|
+
additionalContext: args[0],
|
|
62986
|
+
get name() {
|
|
62987
|
+
return getName(entity.name);
|
|
62988
|
+
}
|
|
63132
62989
|
});
|
|
63133
62990
|
};
|
|
63134
62991
|
if (isNested) {
|
|
@@ -124882,36 +124739,17 @@ const sanitizeNumericInputValue = (value, isPercentInput) => {
|
|
|
124882
124739
|
const useIconTop = ({
|
|
124883
124740
|
border: border2,
|
|
124884
124741
|
padding: padding2,
|
|
124885
|
-
textStyle: textStyle2,
|
|
124886
|
-
multiline,
|
|
124887
|
-
backgroundColor,
|
|
124888
124742
|
iconHeight,
|
|
124889
124743
|
inputHeight
|
|
124890
124744
|
}) => {
|
|
124891
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2
|
|
124745
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
124892
124746
|
const { theme } = useTheme();
|
|
124893
|
-
const inputTypographyProps = useInputTypographyProps({
|
|
124894
|
-
textStyle: textStyle2,
|
|
124895
|
-
backgroundColor
|
|
124896
|
-
});
|
|
124897
|
-
const inputStyleOverride = inputTypographyProps.style;
|
|
124898
124747
|
const borderTop = ((_b2 = (_a2 = border2 == null ? void 0 : border2.top) == null ? void 0 : _a2.width) == null ? void 0 : _b2.value) ?? ((_c2 = defaultInputBorderObject(theme).top.width) == null ? void 0 : _c2.value) ?? 0;
|
|
124899
124748
|
const borderBottom = ((_e2 = (_d2 = border2 == null ? void 0 : border2.bottom) == null ? void 0 : _d2.width) == null ? void 0 : _e2.value) ?? ((_f2 = defaultInputBorderObject(theme).bottom.width) == null ? void 0 : _f2.value) ?? 0;
|
|
124900
|
-
const
|
|
124901
|
-
const
|
|
124902
|
-
const fontSize = getFontSizeInPxFromTextStyle({
|
|
124903
|
-
nestedProps: textStyle2,
|
|
124904
|
-
typographies: generatedInputTypographiesTheme ?? DEFAULT_TYPOGRAPHIES_NEW,
|
|
124905
|
-
textStyleVariant: textStyle2 == null ? void 0 : textStyle2.variant,
|
|
124906
|
-
defaultTextStyleVariant: DEFAULT_INPUT_TEXT_STYLE_VARIANT
|
|
124907
|
-
});
|
|
124908
|
-
const paddingTop = ((_h2 = padding2 == null ? void 0 : padding2.top) == null ? void 0 : _h2.value) ?? INPUT_PADDING.top.value ?? 0;
|
|
124909
|
-
const paddingBottom = ((_i = padding2 == null ? void 0 : padding2.bottom) == null ? void 0 : _i.value) ?? INPUT_PADDING.bottom.value ?? 0;
|
|
124749
|
+
const paddingTop = ((_g2 = padding2 == null ? void 0 : padding2.top) == null ? void 0 : _g2.value) ?? INPUT_PADDING.top.value ?? 0;
|
|
124750
|
+
const paddingBottom = ((_h2 = padding2 == null ? void 0 : padding2.bottom) == null ? void 0 : _h2.value) ?? INPUT_PADDING.bottom.value ?? 0;
|
|
124910
124751
|
const inputContentHeight = inputHeight - (paddingTop + paddingBottom + borderTop + borderBottom);
|
|
124911
|
-
|
|
124912
|
-
return paddingTop + borderTop + (inputContentHeight - iconHeight) / 2;
|
|
124913
|
-
}
|
|
124914
|
-
return paddingTop + borderTop + (lineHeight * fontSize - iconHeight) / 2;
|
|
124752
|
+
return paddingTop + borderTop + (inputContentHeight - iconHeight) / 2;
|
|
124915
124753
|
};
|
|
124916
124754
|
const useInputIconSize = ({
|
|
124917
124755
|
textStyle: textStyle2
|
|
@@ -124990,7 +124828,6 @@ const hasIconSupport = (inputType) => {
|
|
|
124990
124828
|
const _InputComponent = class _InputComponent extends React__default.Component {
|
|
124991
124829
|
constructor(props) {
|
|
124992
124830
|
super(props);
|
|
124993
|
-
__publicField(this, "textareaRef");
|
|
124994
124831
|
__publicField(this, "numericInputRef");
|
|
124995
124832
|
__publicField(this, "inputRef");
|
|
124996
124833
|
__publicField(this, "groupWrapperRef");
|
|
@@ -124999,33 +124836,21 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
124999
124836
|
this.props.disableDebounce ? 0 : 300
|
|
125000
124837
|
));
|
|
125001
124838
|
__publicField(this, "getInputDomElement", () => {
|
|
125002
|
-
var _a2
|
|
124839
|
+
var _a2;
|
|
125003
124840
|
if (isNumericInput(this.props.inputType)) {
|
|
125004
124841
|
return (_a2 = this.numericInputRef.current) == null ? void 0 : _a2.inputElement;
|
|
125005
|
-
} else if (!this.props.multiline) {
|
|
125006
|
-
return this.inputRef.current;
|
|
125007
124842
|
} else {
|
|
125008
|
-
return
|
|
124843
|
+
return this.inputRef.current;
|
|
125009
124844
|
}
|
|
125010
124845
|
});
|
|
125011
124846
|
__publicField(this, "ensureFocus", () => {
|
|
125012
|
-
var _a2
|
|
124847
|
+
var _a2;
|
|
125013
124848
|
if (!this.props.autoFocus || this.state.inputFocused) return;
|
|
125014
124849
|
let inputElement = null;
|
|
125015
124850
|
if (isNumericInput(this.props.inputType)) {
|
|
125016
124851
|
inputElement = (_a2 = this.numericInputRef.current) == null ? void 0 : _a2.inputElement;
|
|
125017
|
-
} else if (!this.props.multiline) {
|
|
125018
|
-
inputElement = this.inputRef.current;
|
|
125019
124852
|
} else {
|
|
125020
|
-
|
|
125021
|
-
if (this.state.inputFocused && document.activeElement === element) {
|
|
125022
|
-
return;
|
|
125023
|
-
}
|
|
125024
|
-
if (element && typeof element.setSelectionRange === "function") {
|
|
125025
|
-
const endPos = (_c2 = element.value) == null ? void 0 : _c2.length;
|
|
125026
|
-
element.focus({ preventScroll: true });
|
|
125027
|
-
element.setSelectionRange(endPos, endPos);
|
|
125028
|
-
}
|
|
124853
|
+
inputElement = this.inputRef.current;
|
|
125029
124854
|
}
|
|
125030
124855
|
if (!inputElement) return;
|
|
125031
124856
|
if (this.state.inputFocused && document.activeElement !== inputElement) {
|
|
@@ -125102,19 +124927,6 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125102
124927
|
const numberString = this.props.inputType === InputTypes.PERCENTAGE && valueWithPrecisionAsString ? String(new Decimal(valueWithPrecisionAsString).div(100)) : valueWithPrecisionAsString;
|
|
125103
124928
|
this.onDebouncedValueChange(numberString);
|
|
125104
124929
|
});
|
|
125105
|
-
__publicField(this, "onKeyDownTextArea", (e3) => {
|
|
125106
|
-
const isEnterKey = e3.key === "Enter" || e3.keyCode === 13;
|
|
125107
|
-
const { disableNewLineOnPressEnterKey } = this.props;
|
|
125108
|
-
if (isEnterKey && disableNewLineOnPressEnterKey && !e3.shiftKey) {
|
|
125109
|
-
e3.preventDefault();
|
|
125110
|
-
}
|
|
125111
|
-
if (isEnterKey) {
|
|
125112
|
-
this.onDebouncedValueChange.flush();
|
|
125113
|
-
}
|
|
125114
|
-
if (typeof this.props.onKeyDown === "function") {
|
|
125115
|
-
this.props.onKeyDown(e3);
|
|
125116
|
-
}
|
|
125117
|
-
});
|
|
125118
124930
|
__publicField(this, "onKeyDown", (e3) => {
|
|
125119
124931
|
const isEnterKey = e3.key === "Enter" || e3.keyCode === 13;
|
|
125120
124932
|
if (isEnterKey) {
|
|
@@ -125253,39 +125065,6 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125253
125065
|
}
|
|
125254
125066
|
);
|
|
125255
125067
|
});
|
|
125256
|
-
__publicField(this, "textAreaInputComponent", () => {
|
|
125257
|
-
var _a2;
|
|
125258
|
-
const padding2 = ((_a2 = this.props.inputGroupStylingProps) == null ? void 0 : _a2.padding) ?? INPUT_PADDING;
|
|
125259
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
125260
|
-
PaddingOverlayWrapper,
|
|
125261
|
-
{
|
|
125262
|
-
sourceId: this.props.sourceId,
|
|
125263
|
-
padding: padding2,
|
|
125264
|
-
vertical: this.props.vertical,
|
|
125265
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
125266
|
-
TextArea$2,
|
|
125267
|
-
{
|
|
125268
|
-
value: this.state.localValue,
|
|
125269
|
-
placeholder: this.props.placeholder,
|
|
125270
|
-
disabled: this.props.isDisabled,
|
|
125271
|
-
minLength: this.props.minLength,
|
|
125272
|
-
maxLength: this.props.maxLength,
|
|
125273
|
-
intent: this.props.intent,
|
|
125274
|
-
onChange: this.onTextChange,
|
|
125275
|
-
className: this.getClassNames(),
|
|
125276
|
-
growVertically: this.props.growVertically,
|
|
125277
|
-
onFocus: this.onFocus,
|
|
125278
|
-
onBlur: this.onBlur,
|
|
125279
|
-
onKeyDown: this.onKeyDownTextArea,
|
|
125280
|
-
rows: this.props.numLines,
|
|
125281
|
-
ref: this.textareaRef,
|
|
125282
|
-
style: this.getStyleObject().inputElement,
|
|
125283
|
-
"data-invalid": this.props.isInvalid
|
|
125284
|
-
}
|
|
125285
|
-
)
|
|
125286
|
-
}
|
|
125287
|
-
);
|
|
125288
|
-
});
|
|
125289
125068
|
__publicField(this, "passwordIconComponent", () => {
|
|
125290
125069
|
const iconSize = this.props.iconSize ?? DEFAULT_ICON_SIZE$1;
|
|
125291
125070
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -125308,9 +125087,9 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125308
125087
|
}
|
|
125309
125088
|
);
|
|
125310
125089
|
});
|
|
125311
|
-
__publicField(this, "textInputComponent", (
|
|
125090
|
+
__publicField(this, "textInputComponent", () => {
|
|
125312
125091
|
var _a2;
|
|
125313
|
-
return
|
|
125092
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
125314
125093
|
PaddingOverlayWrapper,
|
|
125315
125094
|
{
|
|
125316
125095
|
sourceId: this.props.sourceId,
|
|
@@ -125342,7 +125121,7 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125342
125121
|
}
|
|
125343
125122
|
);
|
|
125344
125123
|
});
|
|
125345
|
-
__publicField(this, "renderInputComponent", (inputType
|
|
125124
|
+
__publicField(this, "renderInputComponent", (inputType) => isNumericInput(inputType) ? this.numericInputComponent() : this.textInputComponent());
|
|
125346
125125
|
__publicField(this, "renderIcon", () => {
|
|
125347
125126
|
const iconSize = this.props.iconSize ?? DEFAULT_ICON_SIZE$1;
|
|
125348
125127
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -125369,7 +125148,6 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125369
125148
|
showPassword: false,
|
|
125370
125149
|
inputFocused: false
|
|
125371
125150
|
};
|
|
125372
|
-
this.textareaRef = React__default.createRef();
|
|
125373
125151
|
this.numericInputRef = React__default.createRef();
|
|
125374
125152
|
this.inputRef = React__default.createRef();
|
|
125375
125153
|
this.groupWrapperRef = React__default.createRef();
|
|
@@ -125474,7 +125252,6 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125474
125252
|
className: `${ControlGroupClassName} ${SupportNestedStyledBorders} ${SupportNestedStyledPadding}`,
|
|
125475
125253
|
"data-has-prefix": this.props.inputType === InputTypes.CURRENCY,
|
|
125476
125254
|
"data-show-stepper": this.props.showStepper,
|
|
125477
|
-
"data-multiline": this.props.multiline,
|
|
125478
125255
|
"data-vertical": this.props.vertical,
|
|
125479
125256
|
vertical: this.props.vertical,
|
|
125480
125257
|
fill: true,
|
|
@@ -125511,20 +125288,14 @@ const _InputComponent = class _InputComponent extends React__default.Component {
|
|
|
125511
125288
|
style: {
|
|
125512
125289
|
...FormInputWithHeightGrowStyle,
|
|
125513
125290
|
position: "relative",
|
|
125514
|
-
overflow:
|
|
125291
|
+
overflow: "unset"
|
|
125515
125292
|
},
|
|
125516
125293
|
children: [
|
|
125517
125294
|
this.renderIcon(),
|
|
125518
|
-
this.renderInputComponent(
|
|
125519
|
-
this.props.inputType,
|
|
125520
|
-
this.props.multiline
|
|
125521
|
-
)
|
|
125295
|
+
this.renderInputComponent(this.props.inputType)
|
|
125522
125296
|
]
|
|
125523
125297
|
}
|
|
125524
|
-
) : this.renderInputComponent(
|
|
125525
|
-
this.props.inputType,
|
|
125526
|
-
this.props.multiline
|
|
125527
|
-
) }),
|
|
125298
|
+
) : this.renderInputComponent(this.props.inputType) }),
|
|
125528
125299
|
inlineError
|
|
125529
125300
|
]
|
|
125530
125301
|
}
|
|
@@ -125980,16 +125751,7 @@ const propertiesDefinition$d = {
|
|
|
125980
125751
|
shared: {
|
|
125981
125752
|
inputType: Prop.string()
|
|
125982
125753
|
},
|
|
125983
|
-
variants: [
|
|
125984
|
-
{
|
|
125985
|
-
inputType: Prop.literal(InputTypes.TEXT),
|
|
125986
|
-
multiline: Prop.boolean().default(false).propertiesPanel({
|
|
125987
|
-
label: "Multiline",
|
|
125988
|
-
helpText: "Enables multiline input",
|
|
125989
|
-
controlType: "SWITCH"
|
|
125990
|
-
})
|
|
125991
|
-
}
|
|
125992
|
-
]
|
|
125754
|
+
variants: [{ inputType: Prop.literal(InputTypes.TEXT) }]
|
|
125993
125755
|
})
|
|
125994
125756
|
).add({
|
|
125995
125757
|
loadingAnimation: Prop.boolean().default(true).propertiesPanel({
|
|
@@ -126112,7 +125874,6 @@ const SbInput = registerSbComponent(
|
|
|
126112
125874
|
isInvalid,
|
|
126113
125875
|
isLoading,
|
|
126114
125876
|
inputType,
|
|
126115
|
-
multiline,
|
|
126116
125877
|
backgroundColor,
|
|
126117
125878
|
textStyle: textStyle2,
|
|
126118
125879
|
labelWidth: labelWidth2,
|
|
@@ -126166,9 +125927,6 @@ const SbInput = registerSbComponent(
|
|
|
126166
125927
|
const iconTop = useIconTop({
|
|
126167
125928
|
border: border2,
|
|
126168
125929
|
padding: padding2,
|
|
126169
|
-
textStyle: textStyle2,
|
|
126170
|
-
multiline,
|
|
126171
|
-
backgroundColor,
|
|
126172
125930
|
iconHeight: iconSize,
|
|
126173
125931
|
inputHeight
|
|
126174
125932
|
});
|
|
@@ -126231,7 +125989,6 @@ const SbInput = registerSbComponent(
|
|
|
126231
125989
|
inputClassName: inputClassNames,
|
|
126232
125990
|
inputStyleOverride: inputProps.style,
|
|
126233
125991
|
labelClassName,
|
|
126234
|
-
multiline,
|
|
126235
125992
|
labelStyleOverride: labelProps.style,
|
|
126236
125993
|
labelWidth: labelWidth2,
|
|
126237
125994
|
inputGroupStylingProps,
|
|
@@ -143572,14 +143329,14 @@ function getLoaderFn(options) {
|
|
|
143572
143329
|
if (!(loader === "all")) return [3, 3];
|
|
143573
143330
|
return [4, import(
|
|
143574
143331
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
143575
|
-
"./allPathsLoader-
|
|
143332
|
+
"./allPathsLoader-Fr8EhLGp.js"
|
|
143576
143333
|
)];
|
|
143577
143334
|
case 2:
|
|
143578
143335
|
return [2, _b2.sent().allPathsLoader];
|
|
143579
143336
|
case 3:
|
|
143580
143337
|
return [4, import(
|
|
143581
143338
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
143582
|
-
"./splitPathsBySizeLoader-
|
|
143339
|
+
"./splitPathsBySizeLoader-DHk6oFvg.js"
|
|
143583
143340
|
)];
|
|
143584
143341
|
case 4:
|
|
143585
143342
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -154665,6 +154422,7 @@ function getPageSize(props) {
|
|
|
154665
154422
|
return Math.max(pageSize, 1);
|
|
154666
154423
|
}
|
|
154667
154424
|
function getFilteredTableData(props) {
|
|
154425
|
+
var _a2;
|
|
154668
154426
|
if (!props.tableData) {
|
|
154669
154427
|
return [];
|
|
154670
154428
|
}
|
|
@@ -154714,10 +154472,10 @@ function getFilteredTableData(props) {
|
|
|
154714
154472
|
}
|
|
154715
154473
|
const sortedColumnWrapper = props.sortedColumn;
|
|
154716
154474
|
let sortedTableData;
|
|
154717
|
-
if (sortedColumnWrapper
|
|
154475
|
+
if (sortedColumnWrapper) {
|
|
154718
154476
|
const sortOrder = sortedColumnWrapper.asc;
|
|
154719
154477
|
const sortedColumn = sortedColumnWrapper.column;
|
|
154720
|
-
const column2 = props.columns[sortedColumn];
|
|
154478
|
+
const column2 = ((_a2 = props.columns) == null ? void 0 : _a2[sortedColumn]) ?? {};
|
|
154721
154479
|
const columnType = column2 && column2.columnType ? column2.columnType : "text";
|
|
154722
154480
|
const dateInputFormat = column2.inputFormat;
|
|
154723
154481
|
const isEmptyOrNil = (value) => {
|
|
@@ -154866,11 +154624,11 @@ function getFilteredTableData(props) {
|
|
|
154866
154624
|
return "";
|
|
154867
154625
|
};
|
|
154868
154626
|
const finalTableData = sortedTableData.filter((item) => {
|
|
154869
|
-
var
|
|
154627
|
+
var _a3;
|
|
154870
154628
|
const searchFound = getSearchKey() ? Object.values(item).join(", ").toLowerCase().includes(getSearchKey()) : true;
|
|
154871
154629
|
if (!searchFound) return false;
|
|
154872
154630
|
for (const [columnName, { byValue, condition }] of Object.entries(
|
|
154873
|
-
((
|
|
154631
|
+
((_a3 = props.filters) == null ? void 0 : _a3.byColumn) ?? {}
|
|
154874
154632
|
)) {
|
|
154875
154633
|
const column2 = props.columns[columnName];
|
|
154876
154634
|
const value = item[columnName];
|
|
@@ -190128,4 +189886,4 @@ export {
|
|
|
190128
189886
|
copyToClipboard as y,
|
|
190129
189887
|
navigateTo as z
|
|
190130
189888
|
};
|
|
190131
|
-
//# sourceMappingURL=index-
|
|
189889
|
+
//# sourceMappingURL=index-U0oPeutu.js.map
|