@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(251);
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 style;
12279
+ var _style;
12279
12280
  if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
12280
- style = _objectSpread2({
12281
+ _style = _objectSpread2({
12281
12282
  minWidth: 120
12282
12283
  }, initStyle);
12283
12284
  if (hidden) {
12284
- style.display = "none";
12285
+ _style.display = "none";
12285
12286
  }
12286
12287
  if (width != null) {
12287
- style.width = width;
12288
+ _style.width = width;
12288
12289
  }
12289
12290
  $[188] = hidden;
12290
12291
  $[189] = initStyle;
12291
12292
  $[190] = width;
12292
- $[191] = style;
12293
+ $[191] = _style;
12293
12294
  } else {
12294
- style = $[191];
12295
+ _style = $[191];
12295
12296
  }
12297
+ var style = _style;
12296
12298
  var t67;
12297
- if ($[192] !== items) {
12298
- t67 = items || [];
12299
- $[192] = items;
12300
- $[193] = t67;
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 = $[193];
12305
+ t67 = $[194];
12303
12306
  }
12307
+ var displayValue = t67;
12304
12308
  var t68;
12305
- if ($[194] !== className) {
12306
- t68 = classNames(className, "PFormValueItem", "PFormAutocomplete");
12307
- $[194] = className;
12308
- $[195] = t68;
12309
+ if ($[195] !== items) {
12310
+ t68 = items || [];
12311
+ $[195] = items;
12312
+ $[196] = t68;
12309
12313
  } else {
12310
- t68 = $[195];
12314
+ t68 = $[196];
12311
12315
  }
12312
- var t69 = !width && fullWidth;
12313
- var t70 = componentValue;
12314
- var t71 = loading || isOnGetItemLoading;
12315
- var t72;
12316
- if ($[196] !== handleChange) {
12317
- t72 = function t72(e, value_4, reason_0, details_0) {
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
- $[196] = handleChange;
12321
- $[197] = t72;
12332
+ $[199] = handleChange;
12333
+ $[200] = t73;
12322
12334
  } else {
12323
- t72 = $[197];
12335
+ t73 = $[200];
12324
12336
  }
12325
- var t73;
12326
- if ($[198] !== onRenderItem) {
12327
- t73 = function t73(props, option_1) {
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
- $[198] = onRenderItem;
12333
- $[199] = t73;
12344
+ $[201] = onRenderItem;
12345
+ $[202] = t74;
12334
12346
  } else {
12335
- t73 = $[199];
12347
+ t74 = $[202];
12336
12348
  }
12337
- var t74;
12338
- if ($[200] === Symbol["for"]("react.memo_cache_sentinel")) {
12339
- t74 = function t74(event, newInputValue, reason_1) {
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
- $[200] = t74;
12360
+ $[203] = t75;
12349
12361
  } else {
12350
- t74 = $[200];
12362
+ t75 = $[203];
12351
12363
  }
12352
- var t75;
12353
- if ($[201] !== multiple || $[202] !== onRenderTag || $[203] !== onRenderValue || $[204] !== size || $[205] !== variant) {
12354
- t75 = multiple ? function (value_5, getItemProps) {
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
- $[201] = multiple;
12389
- $[202] = onRenderTag;
12390
- $[203] = onRenderValue;
12391
- $[204] = size;
12392
- $[205] = variant;
12393
- $[206] = t75;
12400
+ $[204] = multiple;
12401
+ $[205] = onRenderTag;
12402
+ $[206] = onRenderValue;
12403
+ $[207] = size;
12404
+ $[208] = variant;
12405
+ $[209] = t76;
12394
12406
  } else {
12395
- t75 = $[206];
12407
+ t76 = $[209];
12396
12408
  }
12397
- var t76;
12398
- if ($[207] !== autoFocus || $[208] !== color || $[209] !== disabled || $[210] !== error || $[211] !== errorHelperText || $[212] !== focused || $[213] !== helperText || $[214] !== isOnGetItemLoading || $[215] !== label || $[216] !== labelIcon || $[217] !== labelShrink || $[218] !== loading || $[219] !== name || $[220] !== onBlurRef || $[221] !== onFocusRef || $[222] !== placeholder || $[223] !== readOnly || $[224] !== required || $[225] !== size || $[226] !== variant) {
12399
- t76 = function t76(params) {
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
- $[207] = autoFocus;
12451
- $[208] = color;
12452
- $[209] = disabled;
12453
- $[210] = error;
12454
- $[211] = errorHelperText;
12455
- $[212] = focused;
12456
- $[213] = helperText;
12457
- $[214] = isOnGetItemLoading;
12458
- $[215] = label;
12459
- $[216] = labelIcon;
12460
- $[217] = labelShrink;
12461
- $[218] = loading;
12462
- $[219] = name;
12463
- $[220] = onBlurRef;
12464
- $[221] = onFocusRef;
12465
- $[222] = placeholder;
12466
- $[223] = readOnly;
12467
- $[224] = required;
12468
- $[225] = size;
12469
- $[226] = variant;
12470
- $[227] = t76;
12471
- } else {
12472
- t76 = $[227];
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 t77;
12475
- if ($[228] !== disableClearable || $[229] !== disablePortal || $[230] !== disabled || $[231] !== getLimitTagsText || $[232] !== handleGetOptionDisabled || $[233] !== limitTags || $[234] !== loadingText || $[235] !== multiple || $[236] !== noOptionsText || $[237] !== openOnFocus || $[238] !== readOnly || $[239] !== style || $[240] !== sx || $[241] !== t67 || $[242] !== t68 || $[243] !== t69 || $[244] !== t70 || $[245] !== t71 || $[246] !== t72 || $[247] !== t73 || $[248] !== t75 || $[249] !== t76) {
12476
- t77 = /*#__PURE__*/React.createElement(Autocomplete, {
12477
- options: t67,
12478
- className: t68,
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: t69,
12493
+ fullWidth: t70,
12482
12494
  openOnFocus: openOnFocus,
12483
12495
  disableClearable: disableClearable,
12484
12496
  disablePortal: disablePortal,
12485
12497
  noOptionsText: noOptionsText,
12486
- value: t70,
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: t71,
12504
+ loading: t72,
12493
12505
  loadingText: loadingText,
12494
12506
  limitTags: limitTags,
12495
12507
  getLimitTagsText: getLimitTagsText,
12496
- onChange: t72,
12497
- renderOption: t73,
12498
- onInputChange: t74,
12499
- renderValue: t75,
12500
- renderInput: t76
12508
+ onChange: t73,
12509
+ renderOption: t74,
12510
+ onInputChange: t75,
12511
+ renderValue: t76,
12512
+ renderInput: t77
12501
12513
  });
12502
- $[228] = disableClearable;
12503
- $[229] = disablePortal;
12504
- $[230] = disabled;
12505
- $[231] = getLimitTagsText;
12506
- $[232] = handleGetOptionDisabled;
12507
- $[233] = limitTags;
12508
- $[234] = loadingText;
12509
- $[235] = multiple;
12510
- $[236] = noOptionsText;
12511
- $[237] = openOnFocus;
12512
- $[238] = readOnly;
12513
- $[239] = style;
12514
- $[240] = sx;
12515
- $[241] = t67;
12516
- $[242] = t68;
12517
- $[243] = t69;
12518
- $[244] = t70;
12519
- $[245] = t71;
12520
- $[246] = t72;
12521
- $[247] = t73;
12522
- $[248] = t75;
12523
- $[249] = t76;
12524
- $[250] = t77;
12525
- } else {
12526
- t77 = $[250];
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 t77;
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(251);
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 style;
12279
+ var _style;
12279
12280
  if ($[188] !== hidden || $[189] !== initStyle || $[190] !== width) {
12280
- style = _objectSpread2({
12281
+ _style = _objectSpread2({
12281
12282
  minWidth: 120
12282
12283
  }, initStyle);
12283
12284
  if (hidden) {
12284
- style.display = "none";
12285
+ _style.display = "none";
12285
12286
  }
12286
12287
  if (width != null) {
12287
- style.width = width;
12288
+ _style.width = width;
12288
12289
  }
12289
12290
  $[188] = hidden;
12290
12291
  $[189] = initStyle;
12291
12292
  $[190] = width;
12292
- $[191] = style;
12293
+ $[191] = _style;
12293
12294
  } else {
12294
- style = $[191];
12295
+ _style = $[191];
12295
12296
  }
12297
+ var style = _style;
12296
12298
  var t67;
12297
- if ($[192] !== items) {
12298
- t67 = items || [];
12299
- $[192] = items;
12300
- $[193] = t67;
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 = $[193];
12305
+ t67 = $[194];
12303
12306
  }
12307
+ var displayValue = t67;
12304
12308
  var t68;
12305
- if ($[194] !== className) {
12306
- t68 = classNames(className, "PFormValueItem", "PFormAutocomplete");
12307
- $[194] = className;
12308
- $[195] = t68;
12309
+ if ($[195] !== items) {
12310
+ t68 = items || [];
12311
+ $[195] = items;
12312
+ $[196] = t68;
12309
12313
  } else {
12310
- t68 = $[195];
12314
+ t68 = $[196];
12311
12315
  }
12312
- var t69 = !width && fullWidth;
12313
- var t70 = componentValue;
12314
- var t71 = loading || isOnGetItemLoading;
12315
- var t72;
12316
- if ($[196] !== handleChange) {
12317
- t72 = function t72(e, value_4, reason_0, details_0) {
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
- $[196] = handleChange;
12321
- $[197] = t72;
12332
+ $[199] = handleChange;
12333
+ $[200] = t73;
12322
12334
  } else {
12323
- t72 = $[197];
12335
+ t73 = $[200];
12324
12336
  }
12325
- var t73;
12326
- if ($[198] !== onRenderItem) {
12327
- t73 = function t73(props, option_1) {
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
- $[198] = onRenderItem;
12333
- $[199] = t73;
12344
+ $[201] = onRenderItem;
12345
+ $[202] = t74;
12334
12346
  } else {
12335
- t73 = $[199];
12347
+ t74 = $[202];
12336
12348
  }
12337
- var t74;
12338
- if ($[200] === Symbol["for"]("react.memo_cache_sentinel")) {
12339
- t74 = function t74(event, newInputValue, reason_1) {
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
- $[200] = t74;
12360
+ $[203] = t75;
12349
12361
  } else {
12350
- t74 = $[200];
12362
+ t75 = $[203];
12351
12363
  }
12352
- var t75;
12353
- if ($[201] !== multiple || $[202] !== onRenderTag || $[203] !== onRenderValue || $[204] !== size || $[205] !== variant) {
12354
- t75 = multiple ? function (value_5, getItemProps) {
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
- $[201] = multiple;
12389
- $[202] = onRenderTag;
12390
- $[203] = onRenderValue;
12391
- $[204] = size;
12392
- $[205] = variant;
12393
- $[206] = t75;
12400
+ $[204] = multiple;
12401
+ $[205] = onRenderTag;
12402
+ $[206] = onRenderValue;
12403
+ $[207] = size;
12404
+ $[208] = variant;
12405
+ $[209] = t76;
12394
12406
  } else {
12395
- t75 = $[206];
12407
+ t76 = $[209];
12396
12408
  }
12397
- var t76;
12398
- if ($[207] !== autoFocus || $[208] !== color || $[209] !== disabled || $[210] !== error || $[211] !== errorHelperText || $[212] !== focused || $[213] !== helperText || $[214] !== isOnGetItemLoading || $[215] !== label || $[216] !== labelIcon || $[217] !== labelShrink || $[218] !== loading || $[219] !== name || $[220] !== onBlurRef || $[221] !== onFocusRef || $[222] !== placeholder || $[223] !== readOnly || $[224] !== required || $[225] !== size || $[226] !== variant) {
12399
- t76 = function t76(params) {
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
- $[207] = autoFocus;
12451
- $[208] = color;
12452
- $[209] = disabled;
12453
- $[210] = error;
12454
- $[211] = errorHelperText;
12455
- $[212] = focused;
12456
- $[213] = helperText;
12457
- $[214] = isOnGetItemLoading;
12458
- $[215] = label;
12459
- $[216] = labelIcon;
12460
- $[217] = labelShrink;
12461
- $[218] = loading;
12462
- $[219] = name;
12463
- $[220] = onBlurRef;
12464
- $[221] = onFocusRef;
12465
- $[222] = placeholder;
12466
- $[223] = readOnly;
12467
- $[224] = required;
12468
- $[225] = size;
12469
- $[226] = variant;
12470
- $[227] = t76;
12471
- } else {
12472
- t76 = $[227];
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 t77;
12475
- if ($[228] !== disableClearable || $[229] !== disablePortal || $[230] !== disabled || $[231] !== getLimitTagsText || $[232] !== handleGetOptionDisabled || $[233] !== limitTags || $[234] !== loadingText || $[235] !== multiple || $[236] !== noOptionsText || $[237] !== openOnFocus || $[238] !== readOnly || $[239] !== style || $[240] !== sx || $[241] !== t67 || $[242] !== t68 || $[243] !== t69 || $[244] !== t70 || $[245] !== t71 || $[246] !== t72 || $[247] !== t73 || $[248] !== t75 || $[249] !== t76) {
12476
- t77 = /*#__PURE__*/React.createElement(material.Autocomplete, {
12477
- options: t67,
12478
- className: t68,
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: t69,
12493
+ fullWidth: t70,
12482
12494
  openOnFocus: openOnFocus,
12483
12495
  disableClearable: disableClearable,
12484
12496
  disablePortal: disablePortal,
12485
12497
  noOptionsText: noOptionsText,
12486
- value: t70,
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: t71,
12504
+ loading: t72,
12493
12505
  loadingText: loadingText,
12494
12506
  limitTags: limitTags,
12495
12507
  getLimitTagsText: getLimitTagsText,
12496
- onChange: t72,
12497
- renderOption: t73,
12498
- onInputChange: t74,
12499
- renderValue: t75,
12500
- renderInput: t76
12508
+ onChange: t73,
12509
+ renderOption: t74,
12510
+ onInputChange: t75,
12511
+ renderValue: t76,
12512
+ renderInput: t77
12501
12513
  });
12502
- $[228] = disableClearable;
12503
- $[229] = disablePortal;
12504
- $[230] = disabled;
12505
- $[231] = getLimitTagsText;
12506
- $[232] = handleGetOptionDisabled;
12507
- $[233] = limitTags;
12508
- $[234] = loadingText;
12509
- $[235] = multiple;
12510
- $[236] = noOptionsText;
12511
- $[237] = openOnFocus;
12512
- $[238] = readOnly;
12513
- $[239] = style;
12514
- $[240] = sx;
12515
- $[241] = t67;
12516
- $[242] = t68;
12517
- $[243] = t69;
12518
- $[244] = t70;
12519
- $[245] = t71;
12520
- $[246] = t72;
12521
- $[247] = t73;
12522
- $[248] = t75;
12523
- $[249] = t76;
12524
- $[250] = t77;
12525
- } else {
12526
- t77 = $[250];
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 t77;
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
@@ -2,7 +2,7 @@
2
2
  "name": "@pdg/react-form",
3
3
  "title": "Typescript React Form Module",
4
4
  "description": "Typescript React Form Module",
5
- "version": "1.2.12",
5
+ "version": "1.2.14",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.esm.js",