@pdg/react-form 1.2.12 → 1.2.14
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.
|
@@ -4,7 +4,7 @@ declare function PFormAutocomplete<T extends PFormAutocompleteSingleValue, Multi
|
|
|
4
4
|
/********************************************************************************************************************/
|
|
5
5
|
variant: initVariant, size: initSize, color: initColor, focused: initFocused, labelShrink: initLabelShrink, fullWidth: initFullWidth,
|
|
6
6
|
/********************************************************************************************************************/
|
|
7
|
-
name, labelIcon, label, loading: initLoading, items: initItems, value: initValue, data: initData, error: initError, helperText, disabled: initDisabled, readOnly, required, exceptValue, width, placeholder, multiple, formValueSeparator, formValueSort, disablePortal, noOptionsText, loadingText, limitTags, getLimitTagsText, openOnFocus, disableClearable, async, autoFocus, hidden: initHidden, onLoadItems, onAsyncLoadValueItem, onRenderItem, onRenderTag, onRenderValue, onAddItem, getOptionDisabled,
|
|
7
|
+
name, labelIcon, label, loading: initLoading, items: initItems, value: initValue, data: initData, error: initError, helperText, disabled: initDisabled, readOnly, required, exceptValue, width, placeholder, multiple, formValueSeparator, formValueSort, disablePortal, noOptionsText, loadingText, limitTags, getLimitTagsText, openOnFocus, disableClearable, async, autoFocus, hidden: initHidden, onLoadItems, onAsyncLoadValueItem, onRenderItem, onRenderTag, onRenderValue, onGetDisplayValue, onAddItem, getOptionDisabled,
|
|
8
8
|
/********************************************************************************************************************/
|
|
9
9
|
onChange, onValue, onValidate, onFocus, onBlur,
|
|
10
10
|
/********************************************************************************************************************/
|
|
@@ -34,6 +34,7 @@ export interface PFormAutocompleteProps<T extends PFormAutocompleteSingleValue,
|
|
|
34
34
|
onRenderItem?: (item: Item) => ReactNode;
|
|
35
35
|
onRenderTag?: (item: Item) => ReactNode;
|
|
36
36
|
onRenderValue?: (item: Item) => ReactNode;
|
|
37
|
+
onGetDisplayValue?: (value: ComponentValue) => ComponentValue;
|
|
37
38
|
onValue?: (value: Value | undefined) => Value | undefined;
|
|
38
39
|
onAddItem?: (item: Item) => boolean | Promise<boolean>;
|
|
39
40
|
getOptionDisabled?: (item: Item) => boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -11174,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
|
|
|
11174
11174
|
function _temp$m() {
|
|
11175
11175
|
return "PFormTextEditor";
|
|
11176
11176
|
}function PFormAutocomplete(t0) {
|
|
11177
|
-
var $ = c(
|
|
11177
|
+
var $ = c(254);
|
|
11178
11178
|
var ref = t0.ref,
|
|
11179
11179
|
initVariant = t0.variant,
|
|
11180
11180
|
initSize = t0.size,
|
|
@@ -11215,6 +11215,7 @@ function _temp$m() {
|
|
|
11215
11215
|
onRenderItem = t0.onRenderItem,
|
|
11216
11216
|
onRenderTag = t0.onRenderTag,
|
|
11217
11217
|
onRenderValue = t0.onRenderValue,
|
|
11218
|
+
onGetDisplayValue = t0.onGetDisplayValue,
|
|
11218
11219
|
onAddItem = t0.onAddItem,
|
|
11219
11220
|
getOptionDisabled = t0.getOptionDisabled,
|
|
11220
11221
|
onChange = t0.onChange,
|
|
@@ -12275,68 +12276,79 @@ function _temp$m() {
|
|
|
12275
12276
|
t66 = $[187];
|
|
12276
12277
|
}
|
|
12277
12278
|
var handleGetOptionDisabled = t66;
|
|
12278
|
-
var
|
|
12279
|
+
var _style;
|
|
12279
12280
|
if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
|
|
12280
|
-
|
|
12281
|
+
_style = _objectSpread2({
|
|
12281
12282
|
minWidth: 120
|
|
12282
12283
|
}, initStyle);
|
|
12283
12284
|
if (hidden) {
|
|
12284
|
-
|
|
12285
|
+
_style.display = "none";
|
|
12285
12286
|
}
|
|
12286
12287
|
if (width != null) {
|
|
12287
|
-
|
|
12288
|
+
_style.width = width;
|
|
12288
12289
|
}
|
|
12289
12290
|
$[188] = hidden;
|
|
12290
12291
|
$[189] = initStyle;
|
|
12291
12292
|
$[190] = width;
|
|
12292
|
-
$[191] =
|
|
12293
|
+
$[191] = _style;
|
|
12293
12294
|
} else {
|
|
12294
|
-
|
|
12295
|
+
_style = $[191];
|
|
12295
12296
|
}
|
|
12297
|
+
var style = _style;
|
|
12296
12298
|
var t67;
|
|
12297
|
-
if ($[192] !==
|
|
12298
|
-
t67 =
|
|
12299
|
-
$[192] =
|
|
12300
|
-
$[193] =
|
|
12299
|
+
if ($[192] !== componentValue || $[193] !== onGetDisplayValue) {
|
|
12300
|
+
t67 = onGetDisplayValue ? onGetDisplayValue(componentValue) : componentValue;
|
|
12301
|
+
$[192] = componentValue;
|
|
12302
|
+
$[193] = onGetDisplayValue;
|
|
12303
|
+
$[194] = t67;
|
|
12301
12304
|
} else {
|
|
12302
|
-
t67 = $[
|
|
12305
|
+
t67 = $[194];
|
|
12303
12306
|
}
|
|
12307
|
+
var displayValue = t67;
|
|
12304
12308
|
var t68;
|
|
12305
|
-
if ($[
|
|
12306
|
-
t68 =
|
|
12307
|
-
$[
|
|
12308
|
-
$[
|
|
12309
|
+
if ($[195] !== items) {
|
|
12310
|
+
t68 = items || [];
|
|
12311
|
+
$[195] = items;
|
|
12312
|
+
$[196] = t68;
|
|
12309
12313
|
} else {
|
|
12310
|
-
t68 = $[
|
|
12314
|
+
t68 = $[196];
|
|
12311
12315
|
}
|
|
12312
|
-
var t69
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12316
|
+
var t69;
|
|
12317
|
+
if ($[197] !== className) {
|
|
12318
|
+
t69 = classNames(className, "PFormValueItem", "PFormAutocomplete");
|
|
12319
|
+
$[197] = className;
|
|
12320
|
+
$[198] = t69;
|
|
12321
|
+
} else {
|
|
12322
|
+
t69 = $[198];
|
|
12323
|
+
}
|
|
12324
|
+
var t70 = !width && fullWidth;
|
|
12325
|
+
var t71 = displayValue;
|
|
12326
|
+
var t72 = loading || isOnGetItemLoading;
|
|
12327
|
+
var t73;
|
|
12328
|
+
if ($[199] !== handleChange) {
|
|
12329
|
+
t73 = function t73(e, value_4, reason_0, details_0) {
|
|
12318
12330
|
return handleChange(value_4, reason_0, details_0);
|
|
12319
12331
|
};
|
|
12320
|
-
$[
|
|
12321
|
-
$[
|
|
12332
|
+
$[199] = handleChange;
|
|
12333
|
+
$[200] = t73;
|
|
12322
12334
|
} else {
|
|
12323
|
-
|
|
12335
|
+
t73 = $[200];
|
|
12324
12336
|
}
|
|
12325
|
-
var
|
|
12326
|
-
if ($[
|
|
12327
|
-
|
|
12337
|
+
var t74;
|
|
12338
|
+
if ($[201] !== onRenderItem) {
|
|
12339
|
+
t74 = function t74(props, option_1) {
|
|
12328
12340
|
return /*#__PURE__*/React.createElement("li", _extends({}, props, {
|
|
12329
12341
|
key: "".concat(option_1.value)
|
|
12330
12342
|
}), onRenderItem ? onRenderItem(option_1) : option_1.label);
|
|
12331
12343
|
};
|
|
12332
|
-
$[
|
|
12333
|
-
$[
|
|
12344
|
+
$[201] = onRenderItem;
|
|
12345
|
+
$[202] = t74;
|
|
12334
12346
|
} else {
|
|
12335
|
-
|
|
12347
|
+
t74 = $[202];
|
|
12336
12348
|
}
|
|
12337
|
-
var
|
|
12338
|
-
if ($[
|
|
12339
|
-
|
|
12349
|
+
var t75;
|
|
12350
|
+
if ($[203] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
12351
|
+
t75 = function t75(event, newInputValue, reason_1) {
|
|
12340
12352
|
if (reason_1 === "input") {
|
|
12341
12353
|
setInputValue(newInputValue);
|
|
12342
12354
|
} else {
|
|
@@ -12345,13 +12357,13 @@ function _temp$m() {
|
|
|
12345
12357
|
}
|
|
12346
12358
|
}
|
|
12347
12359
|
};
|
|
12348
|
-
$[
|
|
12360
|
+
$[203] = t75;
|
|
12349
12361
|
} else {
|
|
12350
|
-
|
|
12362
|
+
t75 = $[203];
|
|
12351
12363
|
}
|
|
12352
|
-
var
|
|
12353
|
-
if ($[
|
|
12354
|
-
|
|
12364
|
+
var t76;
|
|
12365
|
+
if ($[204] !== multiple || $[205] !== onRenderTag || $[206] !== onRenderValue || $[207] !== size || $[208] !== variant) {
|
|
12366
|
+
t76 = multiple ? function (value_5, getItemProps) {
|
|
12355
12367
|
if (Array.isArray(value_5)) {
|
|
12356
12368
|
return value_5.map(function (option_2, index) {
|
|
12357
12369
|
return /*#__PURE__*/React.createElement(Chip, _extends({
|
|
@@ -12385,18 +12397,18 @@ function _temp$m() {
|
|
|
12385
12397
|
index: 0
|
|
12386
12398
|
})), onRenderValue(value_6));
|
|
12387
12399
|
} : undefined;
|
|
12388
|
-
$[
|
|
12389
|
-
$[
|
|
12390
|
-
$[
|
|
12391
|
-
$[
|
|
12392
|
-
$[
|
|
12393
|
-
$[
|
|
12400
|
+
$[204] = multiple;
|
|
12401
|
+
$[205] = onRenderTag;
|
|
12402
|
+
$[206] = onRenderValue;
|
|
12403
|
+
$[207] = size;
|
|
12404
|
+
$[208] = variant;
|
|
12405
|
+
$[209] = t76;
|
|
12394
12406
|
} else {
|
|
12395
|
-
|
|
12407
|
+
t76 = $[209];
|
|
12396
12408
|
}
|
|
12397
|
-
var
|
|
12398
|
-
if ($[
|
|
12399
|
-
|
|
12409
|
+
var t77;
|
|
12410
|
+
if ($[210] !== autoFocus || $[211] !== color || $[212] !== disabled || $[213] !== error || $[214] !== errorHelperText || $[215] !== focused || $[216] !== helperText || $[217] !== isOnGetItemLoading || $[218] !== label || $[219] !== labelIcon || $[220] !== labelShrink || $[221] !== loading || $[222] !== name || $[223] !== onBlurRef || $[224] !== onFocusRef || $[225] !== placeholder || $[226] !== readOnly || $[227] !== required || $[228] !== size || $[229] !== variant) {
|
|
12411
|
+
t77 = function t77(params) {
|
|
12400
12412
|
var _params$inputProps;
|
|
12401
12413
|
var slotProps = {
|
|
12402
12414
|
input: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
|
|
@@ -12447,85 +12459,85 @@ function _temp$m() {
|
|
|
12447
12459
|
noFormValueItem: true
|
|
12448
12460
|
}));
|
|
12449
12461
|
};
|
|
12450
|
-
$[
|
|
12451
|
-
$[
|
|
12452
|
-
$[
|
|
12453
|
-
$[
|
|
12454
|
-
$[
|
|
12455
|
-
$[
|
|
12456
|
-
$[
|
|
12457
|
-
$[
|
|
12458
|
-
$[
|
|
12459
|
-
$[
|
|
12460
|
-
$[
|
|
12461
|
-
$[
|
|
12462
|
-
$[
|
|
12463
|
-
$[
|
|
12464
|
-
$[
|
|
12465
|
-
$[
|
|
12466
|
-
$[
|
|
12467
|
-
$[
|
|
12468
|
-
$[
|
|
12469
|
-
$[
|
|
12470
|
-
$[
|
|
12471
|
-
} else {
|
|
12472
|
-
|
|
12462
|
+
$[210] = autoFocus;
|
|
12463
|
+
$[211] = color;
|
|
12464
|
+
$[212] = disabled;
|
|
12465
|
+
$[213] = error;
|
|
12466
|
+
$[214] = errorHelperText;
|
|
12467
|
+
$[215] = focused;
|
|
12468
|
+
$[216] = helperText;
|
|
12469
|
+
$[217] = isOnGetItemLoading;
|
|
12470
|
+
$[218] = label;
|
|
12471
|
+
$[219] = labelIcon;
|
|
12472
|
+
$[220] = labelShrink;
|
|
12473
|
+
$[221] = loading;
|
|
12474
|
+
$[222] = name;
|
|
12475
|
+
$[223] = onBlurRef;
|
|
12476
|
+
$[224] = onFocusRef;
|
|
12477
|
+
$[225] = placeholder;
|
|
12478
|
+
$[226] = readOnly;
|
|
12479
|
+
$[227] = required;
|
|
12480
|
+
$[228] = size;
|
|
12481
|
+
$[229] = variant;
|
|
12482
|
+
$[230] = t77;
|
|
12483
|
+
} else {
|
|
12484
|
+
t77 = $[230];
|
|
12473
12485
|
}
|
|
12474
|
-
var
|
|
12475
|
-
if ($[
|
|
12476
|
-
|
|
12477
|
-
options:
|
|
12478
|
-
className:
|
|
12486
|
+
var t78;
|
|
12487
|
+
if ($[231] !== disableClearable || $[232] !== disablePortal || $[233] !== disabled || $[234] !== getLimitTagsText || $[235] !== handleGetOptionDisabled || $[236] !== limitTags || $[237] !== loadingText || $[238] !== multiple || $[239] !== noOptionsText || $[240] !== openOnFocus || $[241] !== readOnly || $[242] !== style || $[243] !== sx || $[244] !== t68 || $[245] !== t69 || $[246] !== t70 || $[247] !== t71 || $[248] !== t72 || $[249] !== t73 || $[250] !== t74 || $[251] !== t76 || $[252] !== t77) {
|
|
12488
|
+
t78 = /*#__PURE__*/React.createElement(Autocomplete, {
|
|
12489
|
+
options: t68,
|
|
12490
|
+
className: t69,
|
|
12479
12491
|
sx: sx,
|
|
12480
12492
|
multiple: multiple,
|
|
12481
|
-
fullWidth:
|
|
12493
|
+
fullWidth: t70,
|
|
12482
12494
|
openOnFocus: openOnFocus,
|
|
12483
12495
|
disableClearable: disableClearable,
|
|
12484
12496
|
disablePortal: disablePortal,
|
|
12485
12497
|
noOptionsText: noOptionsText,
|
|
12486
|
-
value:
|
|
12498
|
+
value: t71,
|
|
12487
12499
|
style: style,
|
|
12488
12500
|
isOptionEqualToValue: _temp6,
|
|
12489
12501
|
getOptionDisabled: handleGetOptionDisabled,
|
|
12490
12502
|
disabled: disabled,
|
|
12491
12503
|
readOnly: readOnly,
|
|
12492
|
-
loading:
|
|
12504
|
+
loading: t72,
|
|
12493
12505
|
loadingText: loadingText,
|
|
12494
12506
|
limitTags: limitTags,
|
|
12495
12507
|
getLimitTagsText: getLimitTagsText,
|
|
12496
|
-
onChange:
|
|
12497
|
-
renderOption:
|
|
12498
|
-
onInputChange:
|
|
12499
|
-
renderValue:
|
|
12500
|
-
renderInput:
|
|
12508
|
+
onChange: t73,
|
|
12509
|
+
renderOption: t74,
|
|
12510
|
+
onInputChange: t75,
|
|
12511
|
+
renderValue: t76,
|
|
12512
|
+
renderInput: t77
|
|
12501
12513
|
});
|
|
12502
|
-
$[
|
|
12503
|
-
$[
|
|
12504
|
-
$[
|
|
12505
|
-
$[
|
|
12506
|
-
$[
|
|
12507
|
-
$[
|
|
12508
|
-
$[
|
|
12509
|
-
$[
|
|
12510
|
-
$[
|
|
12511
|
-
$[
|
|
12512
|
-
$[
|
|
12513
|
-
$[
|
|
12514
|
-
$[
|
|
12515
|
-
$[
|
|
12516
|
-
$[
|
|
12517
|
-
$[
|
|
12518
|
-
$[
|
|
12519
|
-
$[
|
|
12520
|
-
$[
|
|
12521
|
-
$[
|
|
12522
|
-
$[
|
|
12523
|
-
$[
|
|
12524
|
-
$[
|
|
12525
|
-
} else {
|
|
12526
|
-
|
|
12514
|
+
$[231] = disableClearable;
|
|
12515
|
+
$[232] = disablePortal;
|
|
12516
|
+
$[233] = disabled;
|
|
12517
|
+
$[234] = getLimitTagsText;
|
|
12518
|
+
$[235] = handleGetOptionDisabled;
|
|
12519
|
+
$[236] = limitTags;
|
|
12520
|
+
$[237] = loadingText;
|
|
12521
|
+
$[238] = multiple;
|
|
12522
|
+
$[239] = noOptionsText;
|
|
12523
|
+
$[240] = openOnFocus;
|
|
12524
|
+
$[241] = readOnly;
|
|
12525
|
+
$[242] = style;
|
|
12526
|
+
$[243] = sx;
|
|
12527
|
+
$[244] = t68;
|
|
12528
|
+
$[245] = t69;
|
|
12529
|
+
$[246] = t70;
|
|
12530
|
+
$[247] = t71;
|
|
12531
|
+
$[248] = t72;
|
|
12532
|
+
$[249] = t73;
|
|
12533
|
+
$[250] = t74;
|
|
12534
|
+
$[251] = t76;
|
|
12535
|
+
$[252] = t77;
|
|
12536
|
+
$[253] = t78;
|
|
12537
|
+
} else {
|
|
12538
|
+
t78 = $[253];
|
|
12527
12539
|
}
|
|
12528
|
-
return
|
|
12540
|
+
return t78;
|
|
12529
12541
|
}
|
|
12530
12542
|
function _temp6(option_0, value_3) {
|
|
12531
12543
|
return option_0.value === value_3.value;
|
package/dist/index.js
CHANGED
|
@@ -11174,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
|
|
|
11174
11174
|
function _temp$m() {
|
|
11175
11175
|
return "PFormTextEditor";
|
|
11176
11176
|
}function PFormAutocomplete(t0) {
|
|
11177
|
-
var $ = compilerRuntime.c(
|
|
11177
|
+
var $ = compilerRuntime.c(254);
|
|
11178
11178
|
var ref = t0.ref,
|
|
11179
11179
|
initVariant = t0.variant,
|
|
11180
11180
|
initSize = t0.size,
|
|
@@ -11215,6 +11215,7 @@ function _temp$m() {
|
|
|
11215
11215
|
onRenderItem = t0.onRenderItem,
|
|
11216
11216
|
onRenderTag = t0.onRenderTag,
|
|
11217
11217
|
onRenderValue = t0.onRenderValue,
|
|
11218
|
+
onGetDisplayValue = t0.onGetDisplayValue,
|
|
11218
11219
|
onAddItem = t0.onAddItem,
|
|
11219
11220
|
getOptionDisabled = t0.getOptionDisabled,
|
|
11220
11221
|
onChange = t0.onChange,
|
|
@@ -12275,68 +12276,79 @@ function _temp$m() {
|
|
|
12275
12276
|
t66 = $[187];
|
|
12276
12277
|
}
|
|
12277
12278
|
var handleGetOptionDisabled = t66;
|
|
12278
|
-
var
|
|
12279
|
+
var _style;
|
|
12279
12280
|
if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
|
|
12280
|
-
|
|
12281
|
+
_style = _objectSpread2({
|
|
12281
12282
|
minWidth: 120
|
|
12282
12283
|
}, initStyle);
|
|
12283
12284
|
if (hidden) {
|
|
12284
|
-
|
|
12285
|
+
_style.display = "none";
|
|
12285
12286
|
}
|
|
12286
12287
|
if (width != null) {
|
|
12287
|
-
|
|
12288
|
+
_style.width = width;
|
|
12288
12289
|
}
|
|
12289
12290
|
$[188] = hidden;
|
|
12290
12291
|
$[189] = initStyle;
|
|
12291
12292
|
$[190] = width;
|
|
12292
|
-
$[191] =
|
|
12293
|
+
$[191] = _style;
|
|
12293
12294
|
} else {
|
|
12294
|
-
|
|
12295
|
+
_style = $[191];
|
|
12295
12296
|
}
|
|
12297
|
+
var style = _style;
|
|
12296
12298
|
var t67;
|
|
12297
|
-
if ($[192] !==
|
|
12298
|
-
t67 =
|
|
12299
|
-
$[192] =
|
|
12300
|
-
$[193] =
|
|
12299
|
+
if ($[192] !== componentValue || $[193] !== onGetDisplayValue) {
|
|
12300
|
+
t67 = onGetDisplayValue ? onGetDisplayValue(componentValue) : componentValue;
|
|
12301
|
+
$[192] = componentValue;
|
|
12302
|
+
$[193] = onGetDisplayValue;
|
|
12303
|
+
$[194] = t67;
|
|
12301
12304
|
} else {
|
|
12302
|
-
t67 = $[
|
|
12305
|
+
t67 = $[194];
|
|
12303
12306
|
}
|
|
12307
|
+
var displayValue = t67;
|
|
12304
12308
|
var t68;
|
|
12305
|
-
if ($[
|
|
12306
|
-
t68 =
|
|
12307
|
-
$[
|
|
12308
|
-
$[
|
|
12309
|
+
if ($[195] !== items) {
|
|
12310
|
+
t68 = items || [];
|
|
12311
|
+
$[195] = items;
|
|
12312
|
+
$[196] = t68;
|
|
12309
12313
|
} else {
|
|
12310
|
-
t68 = $[
|
|
12314
|
+
t68 = $[196];
|
|
12311
12315
|
}
|
|
12312
|
-
var t69
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12316
|
+
var t69;
|
|
12317
|
+
if ($[197] !== className) {
|
|
12318
|
+
t69 = classNames(className, "PFormValueItem", "PFormAutocomplete");
|
|
12319
|
+
$[197] = className;
|
|
12320
|
+
$[198] = t69;
|
|
12321
|
+
} else {
|
|
12322
|
+
t69 = $[198];
|
|
12323
|
+
}
|
|
12324
|
+
var t70 = !width && fullWidth;
|
|
12325
|
+
var t71 = displayValue;
|
|
12326
|
+
var t72 = loading || isOnGetItemLoading;
|
|
12327
|
+
var t73;
|
|
12328
|
+
if ($[199] !== handleChange) {
|
|
12329
|
+
t73 = function t73(e, value_4, reason_0, details_0) {
|
|
12318
12330
|
return handleChange(value_4, reason_0, details_0);
|
|
12319
12331
|
};
|
|
12320
|
-
$[
|
|
12321
|
-
$[
|
|
12332
|
+
$[199] = handleChange;
|
|
12333
|
+
$[200] = t73;
|
|
12322
12334
|
} else {
|
|
12323
|
-
|
|
12335
|
+
t73 = $[200];
|
|
12324
12336
|
}
|
|
12325
|
-
var
|
|
12326
|
-
if ($[
|
|
12327
|
-
|
|
12337
|
+
var t74;
|
|
12338
|
+
if ($[201] !== onRenderItem) {
|
|
12339
|
+
t74 = function t74(props, option_1) {
|
|
12328
12340
|
return /*#__PURE__*/React.createElement("li", _extends({}, props, {
|
|
12329
12341
|
key: "".concat(option_1.value)
|
|
12330
12342
|
}), onRenderItem ? onRenderItem(option_1) : option_1.label);
|
|
12331
12343
|
};
|
|
12332
|
-
$[
|
|
12333
|
-
$[
|
|
12344
|
+
$[201] = onRenderItem;
|
|
12345
|
+
$[202] = t74;
|
|
12334
12346
|
} else {
|
|
12335
|
-
|
|
12347
|
+
t74 = $[202];
|
|
12336
12348
|
}
|
|
12337
|
-
var
|
|
12338
|
-
if ($[
|
|
12339
|
-
|
|
12349
|
+
var t75;
|
|
12350
|
+
if ($[203] === Symbol["for"]("react.memo_cache_sentinel")) {
|
|
12351
|
+
t75 = function t75(event, newInputValue, reason_1) {
|
|
12340
12352
|
if (reason_1 === "input") {
|
|
12341
12353
|
setInputValue(newInputValue);
|
|
12342
12354
|
} else {
|
|
@@ -12345,13 +12357,13 @@ function _temp$m() {
|
|
|
12345
12357
|
}
|
|
12346
12358
|
}
|
|
12347
12359
|
};
|
|
12348
|
-
$[
|
|
12360
|
+
$[203] = t75;
|
|
12349
12361
|
} else {
|
|
12350
|
-
|
|
12362
|
+
t75 = $[203];
|
|
12351
12363
|
}
|
|
12352
|
-
var
|
|
12353
|
-
if ($[
|
|
12354
|
-
|
|
12364
|
+
var t76;
|
|
12365
|
+
if ($[204] !== multiple || $[205] !== onRenderTag || $[206] !== onRenderValue || $[207] !== size || $[208] !== variant) {
|
|
12366
|
+
t76 = multiple ? function (value_5, getItemProps) {
|
|
12355
12367
|
if (Array.isArray(value_5)) {
|
|
12356
12368
|
return value_5.map(function (option_2, index) {
|
|
12357
12369
|
return /*#__PURE__*/React.createElement(material.Chip, _extends({
|
|
@@ -12385,18 +12397,18 @@ function _temp$m() {
|
|
|
12385
12397
|
index: 0
|
|
12386
12398
|
})), onRenderValue(value_6));
|
|
12387
12399
|
} : undefined;
|
|
12388
|
-
$[
|
|
12389
|
-
$[
|
|
12390
|
-
$[
|
|
12391
|
-
$[
|
|
12392
|
-
$[
|
|
12393
|
-
$[
|
|
12400
|
+
$[204] = multiple;
|
|
12401
|
+
$[205] = onRenderTag;
|
|
12402
|
+
$[206] = onRenderValue;
|
|
12403
|
+
$[207] = size;
|
|
12404
|
+
$[208] = variant;
|
|
12405
|
+
$[209] = t76;
|
|
12394
12406
|
} else {
|
|
12395
|
-
|
|
12407
|
+
t76 = $[209];
|
|
12396
12408
|
}
|
|
12397
|
-
var
|
|
12398
|
-
if ($[
|
|
12399
|
-
|
|
12409
|
+
var t77;
|
|
12410
|
+
if ($[210] !== autoFocus || $[211] !== color || $[212] !== disabled || $[213] !== error || $[214] !== errorHelperText || $[215] !== focused || $[216] !== helperText || $[217] !== isOnGetItemLoading || $[218] !== label || $[219] !== labelIcon || $[220] !== labelShrink || $[221] !== loading || $[222] !== name || $[223] !== onBlurRef || $[224] !== onFocusRef || $[225] !== placeholder || $[226] !== readOnly || $[227] !== required || $[228] !== size || $[229] !== variant) {
|
|
12411
|
+
t77 = function t77(params) {
|
|
12400
12412
|
var _params$inputProps;
|
|
12401
12413
|
var slotProps = {
|
|
12402
12414
|
input: _objectSpread2(_objectSpread2({}, params.InputProps), {}, {
|
|
@@ -12447,85 +12459,85 @@ function _temp$m() {
|
|
|
12447
12459
|
noFormValueItem: true
|
|
12448
12460
|
}));
|
|
12449
12461
|
};
|
|
12450
|
-
$[
|
|
12451
|
-
$[
|
|
12452
|
-
$[
|
|
12453
|
-
$[
|
|
12454
|
-
$[
|
|
12455
|
-
$[
|
|
12456
|
-
$[
|
|
12457
|
-
$[
|
|
12458
|
-
$[
|
|
12459
|
-
$[
|
|
12460
|
-
$[
|
|
12461
|
-
$[
|
|
12462
|
-
$[
|
|
12463
|
-
$[
|
|
12464
|
-
$[
|
|
12465
|
-
$[
|
|
12466
|
-
$[
|
|
12467
|
-
$[
|
|
12468
|
-
$[
|
|
12469
|
-
$[
|
|
12470
|
-
$[
|
|
12471
|
-
} else {
|
|
12472
|
-
|
|
12462
|
+
$[210] = autoFocus;
|
|
12463
|
+
$[211] = color;
|
|
12464
|
+
$[212] = disabled;
|
|
12465
|
+
$[213] = error;
|
|
12466
|
+
$[214] = errorHelperText;
|
|
12467
|
+
$[215] = focused;
|
|
12468
|
+
$[216] = helperText;
|
|
12469
|
+
$[217] = isOnGetItemLoading;
|
|
12470
|
+
$[218] = label;
|
|
12471
|
+
$[219] = labelIcon;
|
|
12472
|
+
$[220] = labelShrink;
|
|
12473
|
+
$[221] = loading;
|
|
12474
|
+
$[222] = name;
|
|
12475
|
+
$[223] = onBlurRef;
|
|
12476
|
+
$[224] = onFocusRef;
|
|
12477
|
+
$[225] = placeholder;
|
|
12478
|
+
$[226] = readOnly;
|
|
12479
|
+
$[227] = required;
|
|
12480
|
+
$[228] = size;
|
|
12481
|
+
$[229] = variant;
|
|
12482
|
+
$[230] = t77;
|
|
12483
|
+
} else {
|
|
12484
|
+
t77 = $[230];
|
|
12473
12485
|
}
|
|
12474
|
-
var
|
|
12475
|
-
if ($[
|
|
12476
|
-
|
|
12477
|
-
options:
|
|
12478
|
-
className:
|
|
12486
|
+
var t78;
|
|
12487
|
+
if ($[231] !== disableClearable || $[232] !== disablePortal || $[233] !== disabled || $[234] !== getLimitTagsText || $[235] !== handleGetOptionDisabled || $[236] !== limitTags || $[237] !== loadingText || $[238] !== multiple || $[239] !== noOptionsText || $[240] !== openOnFocus || $[241] !== readOnly || $[242] !== style || $[243] !== sx || $[244] !== t68 || $[245] !== t69 || $[246] !== t70 || $[247] !== t71 || $[248] !== t72 || $[249] !== t73 || $[250] !== t74 || $[251] !== t76 || $[252] !== t77) {
|
|
12488
|
+
t78 = /*#__PURE__*/React.createElement(material.Autocomplete, {
|
|
12489
|
+
options: t68,
|
|
12490
|
+
className: t69,
|
|
12479
12491
|
sx: sx,
|
|
12480
12492
|
multiple: multiple,
|
|
12481
|
-
fullWidth:
|
|
12493
|
+
fullWidth: t70,
|
|
12482
12494
|
openOnFocus: openOnFocus,
|
|
12483
12495
|
disableClearable: disableClearable,
|
|
12484
12496
|
disablePortal: disablePortal,
|
|
12485
12497
|
noOptionsText: noOptionsText,
|
|
12486
|
-
value:
|
|
12498
|
+
value: t71,
|
|
12487
12499
|
style: style,
|
|
12488
12500
|
isOptionEqualToValue: _temp6,
|
|
12489
12501
|
getOptionDisabled: handleGetOptionDisabled,
|
|
12490
12502
|
disabled: disabled,
|
|
12491
12503
|
readOnly: readOnly,
|
|
12492
|
-
loading:
|
|
12504
|
+
loading: t72,
|
|
12493
12505
|
loadingText: loadingText,
|
|
12494
12506
|
limitTags: limitTags,
|
|
12495
12507
|
getLimitTagsText: getLimitTagsText,
|
|
12496
|
-
onChange:
|
|
12497
|
-
renderOption:
|
|
12498
|
-
onInputChange:
|
|
12499
|
-
renderValue:
|
|
12500
|
-
renderInput:
|
|
12508
|
+
onChange: t73,
|
|
12509
|
+
renderOption: t74,
|
|
12510
|
+
onInputChange: t75,
|
|
12511
|
+
renderValue: t76,
|
|
12512
|
+
renderInput: t77
|
|
12501
12513
|
});
|
|
12502
|
-
$[
|
|
12503
|
-
$[
|
|
12504
|
-
$[
|
|
12505
|
-
$[
|
|
12506
|
-
$[
|
|
12507
|
-
$[
|
|
12508
|
-
$[
|
|
12509
|
-
$[
|
|
12510
|
-
$[
|
|
12511
|
-
$[
|
|
12512
|
-
$[
|
|
12513
|
-
$[
|
|
12514
|
-
$[
|
|
12515
|
-
$[
|
|
12516
|
-
$[
|
|
12517
|
-
$[
|
|
12518
|
-
$[
|
|
12519
|
-
$[
|
|
12520
|
-
$[
|
|
12521
|
-
$[
|
|
12522
|
-
$[
|
|
12523
|
-
$[
|
|
12524
|
-
$[
|
|
12525
|
-
} else {
|
|
12526
|
-
|
|
12514
|
+
$[231] = disableClearable;
|
|
12515
|
+
$[232] = disablePortal;
|
|
12516
|
+
$[233] = disabled;
|
|
12517
|
+
$[234] = getLimitTagsText;
|
|
12518
|
+
$[235] = handleGetOptionDisabled;
|
|
12519
|
+
$[236] = limitTags;
|
|
12520
|
+
$[237] = loadingText;
|
|
12521
|
+
$[238] = multiple;
|
|
12522
|
+
$[239] = noOptionsText;
|
|
12523
|
+
$[240] = openOnFocus;
|
|
12524
|
+
$[241] = readOnly;
|
|
12525
|
+
$[242] = style;
|
|
12526
|
+
$[243] = sx;
|
|
12527
|
+
$[244] = t68;
|
|
12528
|
+
$[245] = t69;
|
|
12529
|
+
$[246] = t70;
|
|
12530
|
+
$[247] = t71;
|
|
12531
|
+
$[248] = t72;
|
|
12532
|
+
$[249] = t73;
|
|
12533
|
+
$[250] = t74;
|
|
12534
|
+
$[251] = t76;
|
|
12535
|
+
$[252] = t77;
|
|
12536
|
+
$[253] = t78;
|
|
12537
|
+
} else {
|
|
12538
|
+
t78 = $[253];
|
|
12527
12539
|
}
|
|
12528
|
-
return
|
|
12540
|
+
return t78;
|
|
12529
12541
|
}
|
|
12530
12542
|
function _temp6(option_0, value_3) {
|
|
12531
12543
|
return option_0.value === value_3.value;
|
package/package.json
CHANGED