hplx-react-elements-dev 1.0.50 → 1.0.52
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/esm/index.js +26 -6
- package/dist/esm/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4320,11 +4320,17 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4320
4320
|
_k = _a.disabled,
|
|
4321
4321
|
disabled = _k === void 0 ? false : _k,
|
|
4322
4322
|
handleCollapsibleDisplay = _a.handleCollapsibleDisplay,
|
|
4323
|
-
headerRightChildren = _a.headerRightChildren
|
|
4323
|
+
headerRightChildren = _a.headerRightChildren,
|
|
4324
|
+
_l = _a.expanded,
|
|
4325
|
+
expanded = _l === void 0 ? false : _l;
|
|
4324
4326
|
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4327
|
+
useEffect(function () {
|
|
4328
|
+
setActive(expanded);
|
|
4329
|
+
}, [expanded]);
|
|
4330
|
+
|
|
4331
|
+
var _m = useState(false),
|
|
4332
|
+
active = _m[0],
|
|
4333
|
+
setActive = _m[1];
|
|
4328
4334
|
|
|
4329
4335
|
var OnButtonClick = function OnButtonClick() {
|
|
4330
4336
|
setActive(function (prevValue) {
|
|
@@ -5360,7 +5366,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5360
5366
|
setShowDropdown(true);
|
|
5361
5367
|
|
|
5362
5368
|
if (options && options.length > 0) {
|
|
5363
|
-
sug = options.filter(function (options) {
|
|
5369
|
+
sug = options === null || options === void 0 ? void 0 : options.filter(function (options) {
|
|
5364
5370
|
return options.label.toLowerCase().includes(e.target.value.split(",").pop().toLowerCase());
|
|
5365
5371
|
} // last keyboad input after ,
|
|
5366
5372
|
);
|
|
@@ -5374,6 +5380,17 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5374
5380
|
}
|
|
5375
5381
|
};
|
|
5376
5382
|
|
|
5383
|
+
useEffect(function () {
|
|
5384
|
+
var sug = [];
|
|
5385
|
+
|
|
5386
|
+
if (options && options.length > 0) {
|
|
5387
|
+
sug = options.filter(function (options) {
|
|
5388
|
+
return options.label.toLowerCase();
|
|
5389
|
+
});
|
|
5390
|
+
setSuggestionArr(sug);
|
|
5391
|
+
}
|
|
5392
|
+
}, []);
|
|
5393
|
+
|
|
5377
5394
|
var handleClickOutside = function handleClickOutside(e) {
|
|
5378
5395
|
if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
|
|
5379
5396
|
setShowDropdown(false);
|
|
@@ -5449,7 +5466,10 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5449
5466
|
suffixClassName: suffixClassName,
|
|
5450
5467
|
inputProps: __assign(__assign({}, inputFieldInputProps), {
|
|
5451
5468
|
onChange: changeHandler,
|
|
5452
|
-
value: sugVal
|
|
5469
|
+
value: sugVal,
|
|
5470
|
+
onFocus: function onFocus() {
|
|
5471
|
+
return setShowDropdown(true);
|
|
5472
|
+
}
|
|
5453
5473
|
})
|
|
5454
5474
|
}) : jsxRuntime.exports.jsx(TextAreaField, {
|
|
5455
5475
|
label: label,
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -256,6 +256,7 @@ export interface CollapsibleCardProps {
|
|
|
256
256
|
disabled?: boolean;
|
|
257
257
|
handleCollapsibleDisplay?: Function;
|
|
258
258
|
headerRightChildren?: ReactNode;
|
|
259
|
+
expanded?: boolean;
|
|
259
260
|
}
|
|
260
261
|
export type RadioBtnSizeType = "sm" | "md";
|
|
261
262
|
export type RadioBtnType = "checkmark" | "dot";
|