@pdg/react-form 1.2.9 → 1.2.11

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, 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, onRednerValue, onAddItem, getOptionDisabled,
8
8
  /********************************************************************************************************************/
9
9
  onChange, onValue, onValidate, onFocus, onBlur,
10
10
  /********************************************************************************************************************/
@@ -33,6 +33,7 @@ export interface PFormAutocompleteProps<T extends PFormAutocompleteSingleValue,
33
33
  onAsyncLoadValueItem?: (value: Value) => Promise<ComponentValue>;
34
34
  onRenderItem?: (item: Item) => ReactNode;
35
35
  onRenderTag?: (item: Item) => ReactNode;
36
+ onRednerValue?: (item: Item) => ReactNode;
36
37
  onValue?: (value: Value | undefined) => Value | undefined;
37
38
  onAddItem?: (item: Item) => boolean | Promise<boolean>;
38
39
  getOptionDisabled?: (item: Item) => boolean;
package/dist/index.esm.js CHANGED
@@ -423,9 +423,11 @@ var appendFormValueData = function appendFormValueData(data, itemCommands) {
423
423
  }
424
424
  });
425
425
  if (isAllValid) {
426
- onSubmitRef.current && onSubmitRef.current(data);
426
+ var _onSubmitRef$current;
427
+ (_onSubmitRef$current = onSubmitRef.current) === null || _onSubmitRef$current === void 0 || _onSubmitRef$current.call(onSubmitRef, data);
427
428
  } else {
428
- onInvalidRef.current && onInvalidRef.current(invalidItems);
429
+ var _onInvalidRef$current;
430
+ (_onInvalidRef$current = onInvalidRef.current) === null || _onInvalidRef$current === void 0 || _onInvalidRef$current.call(onInvalidRef, invalidItems);
429
431
  setTimeout(function () {
430
432
  var _valueItems$current$f;
431
433
  (_valueItems$current$f = valueItems.current[firstInvalidItemId]) === null || _valueItems$current$f === void 0 || _valueItems$current$f.focusValidate();
@@ -1186,7 +1188,7 @@ var PFormDivider = function PFormDivider(t0) {
1186
1188
  if ($[4] !== collapse || $[5] !== collapseIn || $[6] !== onCollapseChange) {
1187
1189
  t4 = function t4() {
1188
1190
  if (collapse) {
1189
- onCollapseChange && onCollapseChange(!collapseIn);
1191
+ onCollapseChange === null || onCollapseChange === void 0 || onCollapseChange(!collapseIn);
1190
1192
  }
1191
1193
  };
1192
1194
  $[4] = collapse;
@@ -11172,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
11172
11174
  function _temp$m() {
11173
11175
  return "PFormTextEditor";
11174
11176
  }function PFormAutocomplete(t0) {
11175
- var $ = c(250);
11177
+ var $ = c(251);
11176
11178
  var ref = t0.ref,
11177
11179
  initVariant = t0.variant,
11178
11180
  initSize = t0.size,
@@ -11212,6 +11214,7 @@ function _temp$m() {
11212
11214
  onAsyncLoadValueItem = t0.onAsyncLoadValueItem,
11213
11215
  onRenderItem = t0.onRenderItem,
11214
11216
  onRenderTag = t0.onRenderTag,
11217
+ onRednerValue = t0.onRednerValue,
11215
11218
  onAddItem = t0.onAddItem,
11216
11219
  getOptionDisabled = t0.getOptionDisabled,
11217
11220
  onChange = t0.onChange,
@@ -11669,7 +11672,8 @@ function _temp$m() {
11669
11672
  finalValue_1.forEach(function (v_0) {
11670
11673
  var key = v_0.toString();
11671
11674
  if (itemsInfos[key]) {
11672
- computedComponentValue && computedComponentValue.push(itemsInfos[key]);
11675
+ var _computedComponentVal;
11676
+ (_computedComponentVal = computedComponentValue) === null || _computedComponentVal === void 0 || _computedComponentVal.push(itemsInfos[key]);
11673
11677
  }
11674
11678
  });
11675
11679
  } else {
@@ -12346,7 +12350,7 @@ function _temp$m() {
12346
12350
  t74 = $[200];
12347
12351
  }
12348
12352
  var t75;
12349
- if ($[201] !== multiple || $[202] !== onRenderTag || $[203] !== size || $[204] !== variant) {
12353
+ if ($[201] !== multiple || $[202] !== onRednerValue || $[203] !== onRenderTag || $[204] !== size || $[205] !== variant) {
12350
12354
  t75 = multiple ? function (value_5, getItemProps) {
12351
12355
  if (Array.isArray(value_5)) {
12352
12356
  return value_5.map(function (option_2, index) {
@@ -12374,17 +12378,24 @@ function _temp$m() {
12374
12378
  index: 0
12375
12379
  })));
12376
12380
  }
12381
+ } : onRednerValue ? function (value_6, getItemProps_0) {
12382
+ return Array.isArray(value_6) ? null : /*#__PURE__*/React.createElement(Box, _extends({
12383
+ lineHeight: 0
12384
+ }, getItemProps_0({
12385
+ index: 0
12386
+ })), onRednerValue(value_6));
12377
12387
  } : undefined;
12378
12388
  $[201] = multiple;
12379
- $[202] = onRenderTag;
12380
- $[203] = size;
12381
- $[204] = variant;
12382
- $[205] = t75;
12389
+ $[202] = onRednerValue;
12390
+ $[203] = onRenderTag;
12391
+ $[204] = size;
12392
+ $[205] = variant;
12393
+ $[206] = t75;
12383
12394
  } else {
12384
- t75 = $[205];
12395
+ t75 = $[206];
12385
12396
  }
12386
12397
  var t76;
12387
- if ($[206] !== autoFocus || $[207] !== color || $[208] !== disabled || $[209] !== error || $[210] !== errorHelperText || $[211] !== focused || $[212] !== helperText || $[213] !== isOnGetItemLoading || $[214] !== label || $[215] !== labelIcon || $[216] !== labelShrink || $[217] !== loading || $[218] !== name || $[219] !== onBlurRef || $[220] !== onFocusRef || $[221] !== placeholder || $[222] !== readOnly || $[223] !== required || $[224] !== size || $[225] !== variant) {
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) {
12388
12399
  t76 = function t76(params) {
12389
12400
  var _params$inputProps;
12390
12401
  var slotProps = {
@@ -12436,32 +12447,32 @@ function _temp$m() {
12436
12447
  noFormValueItem: true
12437
12448
  }));
12438
12449
  };
12439
- $[206] = autoFocus;
12440
- $[207] = color;
12441
- $[208] = disabled;
12442
- $[209] = error;
12443
- $[210] = errorHelperText;
12444
- $[211] = focused;
12445
- $[212] = helperText;
12446
- $[213] = isOnGetItemLoading;
12447
- $[214] = label;
12448
- $[215] = labelIcon;
12449
- $[216] = labelShrink;
12450
- $[217] = loading;
12451
- $[218] = name;
12452
- $[219] = onBlurRef;
12453
- $[220] = onFocusRef;
12454
- $[221] = placeholder;
12455
- $[222] = readOnly;
12456
- $[223] = required;
12457
- $[224] = size;
12458
- $[225] = variant;
12459
- $[226] = t76;
12460
- } else {
12461
- t76 = $[226];
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
12473
  }
12463
12474
  var t77;
12464
- if ($[227] !== disableClearable || $[228] !== disablePortal || $[229] !== disabled || $[230] !== getLimitTagsText || $[231] !== handleGetOptionDisabled || $[232] !== limitTags || $[233] !== loadingText || $[234] !== multiple || $[235] !== noOptionsText || $[236] !== openOnFocus || $[237] !== readOnly || $[238] !== style || $[239] !== sx || $[240] !== t67 || $[241] !== t68 || $[242] !== t69 || $[243] !== t70 || $[244] !== t71 || $[245] !== t72 || $[246] !== t73 || $[247] !== t75 || $[248] !== t76) {
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) {
12465
12476
  t77 = /*#__PURE__*/React.createElement(Autocomplete, {
12466
12477
  options: t67,
12467
12478
  className: t68,
@@ -12488,31 +12499,31 @@ function _temp$m() {
12488
12499
  renderValue: t75,
12489
12500
  renderInput: t76
12490
12501
  });
12491
- $[227] = disableClearable;
12492
- $[228] = disablePortal;
12493
- $[229] = disabled;
12494
- $[230] = getLimitTagsText;
12495
- $[231] = handleGetOptionDisabled;
12496
- $[232] = limitTags;
12497
- $[233] = loadingText;
12498
- $[234] = multiple;
12499
- $[235] = noOptionsText;
12500
- $[236] = openOnFocus;
12501
- $[237] = readOnly;
12502
- $[238] = style;
12503
- $[239] = sx;
12504
- $[240] = t67;
12505
- $[241] = t68;
12506
- $[242] = t69;
12507
- $[243] = t70;
12508
- $[244] = t71;
12509
- $[245] = t72;
12510
- $[246] = t73;
12511
- $[247] = t75;
12512
- $[248] = t76;
12513
- $[249] = t77;
12514
- } else {
12515
- t77 = $[249];
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];
12516
12527
  }
12517
12528
  return t77;
12518
12529
  }
@@ -13031,7 +13042,8 @@ var PrivateYearSelect = function PrivateYearSelect(t0) {
13031
13042
  var t3;
13032
13043
  if ($[3] !== onSelectRef) {
13033
13044
  t3 = function t3(e) {
13034
- onSelectRef.current && onSelectRef.current(Number(e.target.getAttribute("data-id")));
13045
+ var _onSelectRef$current;
13046
+ (_onSelectRef$current = onSelectRef.current) === null || _onSelectRef$current === void 0 || _onSelectRef$current.call(onSelectRef, Number(e.target.getAttribute("data-id")));
13035
13047
  };
13036
13048
  $[3] = onSelectRef;
13037
13049
  $[4] = t3;
@@ -13379,7 +13391,8 @@ var PrivateTimeSelect = function PrivateTimeSelect(t0) {
13379
13391
  var t6;
13380
13392
  if ($[5] !== onSelectRef) {
13381
13393
  t6 = function t6(e) {
13382
- onSelectRef.current && onSelectRef.current(Number(e.target.getAttribute("data-id")));
13394
+ var _onSelectRef$current;
13395
+ (_onSelectRef$current = onSelectRef.current) === null || _onSelectRef$current === void 0 || _onSelectRef$current.call(onSelectRef, Number(e.target.getAttribute("data-id")));
13383
13396
  };
13384
13397
  $[5] = onSelectRef;
13385
13398
  $[6] = t6;
@@ -17472,7 +17485,8 @@ function _temp$h() {
17472
17485
  var t2;
17473
17486
  if ($[0] !== onCloseRef) {
17474
17487
  t2 = function t2() {
17475
- onCloseRef.current && onCloseRef.current();
17488
+ var _onCloseRef$current;
17489
+ (_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 || _onCloseRef$current.call(onCloseRef);
17476
17490
  };
17477
17491
  $[0] = onCloseRef;
17478
17492
  $[1] = t2;
@@ -22917,8 +22931,8 @@ function _temp2() {
22917
22931
  t3 = function t3() {
22918
22932
  var _inputRef$current;
22919
22933
  if ((_inputRef$current = inputRef.current) !== null && _inputRef$current !== void 0 && _inputRef$current.validate()) {
22920
- onConfirm && onConfirm(value);
22921
- onClose && onClose();
22934
+ onConfirm === null || onConfirm === void 0 || onConfirm(value);
22935
+ onClose === null || onClose === void 0 || onClose();
22922
22936
  } else {
22923
22937
  var _inputRef$current2;
22924
22938
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
@@ -22935,8 +22949,8 @@ function _temp2() {
22935
22949
  var t4;
22936
22950
  if ($[7] !== onCancel || $[8] !== onClose) {
22937
22951
  t4 = function t4() {
22938
- onCancel && onCancel();
22939
- onClose && onClose();
22952
+ onCancel === null || onCancel === void 0 || onCancel();
22953
+ onClose === null || onClose === void 0 || onClose();
22940
22954
  };
22941
22955
  $[7] = onCancel;
22942
22956
  $[8] = onClose;
@@ -22951,7 +22965,7 @@ function _temp2() {
22951
22965
  t6 = function t6(e, reason) {
22952
22966
  if (reason === "backdropClick") {
22953
22967
  if (empty(value)) {
22954
- onClose && onClose();
22968
+ onClose === null || onClose === void 0 || onClose();
22955
22969
  }
22956
22970
  }
22957
22971
  };
package/dist/index.js CHANGED
@@ -423,9 +423,11 @@ var appendFormValueData = function appendFormValueData(data, itemCommands) {
423
423
  }
424
424
  });
425
425
  if (isAllValid) {
426
- onSubmitRef.current && onSubmitRef.current(data);
426
+ var _onSubmitRef$current;
427
+ (_onSubmitRef$current = onSubmitRef.current) === null || _onSubmitRef$current === void 0 || _onSubmitRef$current.call(onSubmitRef, data);
427
428
  } else {
428
- onInvalidRef.current && onInvalidRef.current(invalidItems);
429
+ var _onInvalidRef$current;
430
+ (_onInvalidRef$current = onInvalidRef.current) === null || _onInvalidRef$current === void 0 || _onInvalidRef$current.call(onInvalidRef, invalidItems);
429
431
  setTimeout(function () {
430
432
  var _valueItems$current$f;
431
433
  (_valueItems$current$f = valueItems.current[firstInvalidItemId]) === null || _valueItems$current$f === void 0 || _valueItems$current$f.focusValidate();
@@ -1186,7 +1188,7 @@ var PFormDivider = function PFormDivider(t0) {
1186
1188
  if ($[4] !== collapse || $[5] !== collapseIn || $[6] !== onCollapseChange) {
1187
1189
  t4 = function t4() {
1188
1190
  if (collapse) {
1189
- onCollapseChange && onCollapseChange(!collapseIn);
1191
+ onCollapseChange === null || onCollapseChange === void 0 || onCollapseChange(!collapseIn);
1190
1192
  }
1191
1193
  };
1192
1194
  $[4] = collapse;
@@ -11172,7 +11174,7 @@ _PFormTextEditor.apiKey = '';
11172
11174
  function _temp$m() {
11173
11175
  return "PFormTextEditor";
11174
11176
  }function PFormAutocomplete(t0) {
11175
- var $ = compilerRuntime.c(250);
11177
+ var $ = compilerRuntime.c(251);
11176
11178
  var ref = t0.ref,
11177
11179
  initVariant = t0.variant,
11178
11180
  initSize = t0.size,
@@ -11212,6 +11214,7 @@ function _temp$m() {
11212
11214
  onAsyncLoadValueItem = t0.onAsyncLoadValueItem,
11213
11215
  onRenderItem = t0.onRenderItem,
11214
11216
  onRenderTag = t0.onRenderTag,
11217
+ onRednerValue = t0.onRednerValue,
11215
11218
  onAddItem = t0.onAddItem,
11216
11219
  getOptionDisabled = t0.getOptionDisabled,
11217
11220
  onChange = t0.onChange,
@@ -11669,7 +11672,8 @@ function _temp$m() {
11669
11672
  finalValue_1.forEach(function (v_0) {
11670
11673
  var key = v_0.toString();
11671
11674
  if (itemsInfos[key]) {
11672
- computedComponentValue && computedComponentValue.push(itemsInfos[key]);
11675
+ var _computedComponentVal;
11676
+ (_computedComponentVal = computedComponentValue) === null || _computedComponentVal === void 0 || _computedComponentVal.push(itemsInfos[key]);
11673
11677
  }
11674
11678
  });
11675
11679
  } else {
@@ -12346,7 +12350,7 @@ function _temp$m() {
12346
12350
  t74 = $[200];
12347
12351
  }
12348
12352
  var t75;
12349
- if ($[201] !== multiple || $[202] !== onRenderTag || $[203] !== size || $[204] !== variant) {
12353
+ if ($[201] !== multiple || $[202] !== onRednerValue || $[203] !== onRenderTag || $[204] !== size || $[205] !== variant) {
12350
12354
  t75 = multiple ? function (value_5, getItemProps) {
12351
12355
  if (Array.isArray(value_5)) {
12352
12356
  return value_5.map(function (option_2, index) {
@@ -12374,17 +12378,24 @@ function _temp$m() {
12374
12378
  index: 0
12375
12379
  })));
12376
12380
  }
12381
+ } : onRednerValue ? function (value_6, getItemProps_0) {
12382
+ return Array.isArray(value_6) ? null : /*#__PURE__*/React.createElement(material.Box, _extends({
12383
+ lineHeight: 0
12384
+ }, getItemProps_0({
12385
+ index: 0
12386
+ })), onRednerValue(value_6));
12377
12387
  } : undefined;
12378
12388
  $[201] = multiple;
12379
- $[202] = onRenderTag;
12380
- $[203] = size;
12381
- $[204] = variant;
12382
- $[205] = t75;
12389
+ $[202] = onRednerValue;
12390
+ $[203] = onRenderTag;
12391
+ $[204] = size;
12392
+ $[205] = variant;
12393
+ $[206] = t75;
12383
12394
  } else {
12384
- t75 = $[205];
12395
+ t75 = $[206];
12385
12396
  }
12386
12397
  var t76;
12387
- if ($[206] !== autoFocus || $[207] !== color || $[208] !== disabled || $[209] !== error || $[210] !== errorHelperText || $[211] !== focused || $[212] !== helperText || $[213] !== isOnGetItemLoading || $[214] !== label || $[215] !== labelIcon || $[216] !== labelShrink || $[217] !== loading || $[218] !== name || $[219] !== onBlurRef || $[220] !== onFocusRef || $[221] !== placeholder || $[222] !== readOnly || $[223] !== required || $[224] !== size || $[225] !== variant) {
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) {
12388
12399
  t76 = function t76(params) {
12389
12400
  var _params$inputProps;
12390
12401
  var slotProps = {
@@ -12436,32 +12447,32 @@ function _temp$m() {
12436
12447
  noFormValueItem: true
12437
12448
  }));
12438
12449
  };
12439
- $[206] = autoFocus;
12440
- $[207] = color;
12441
- $[208] = disabled;
12442
- $[209] = error;
12443
- $[210] = errorHelperText;
12444
- $[211] = focused;
12445
- $[212] = helperText;
12446
- $[213] = isOnGetItemLoading;
12447
- $[214] = label;
12448
- $[215] = labelIcon;
12449
- $[216] = labelShrink;
12450
- $[217] = loading;
12451
- $[218] = name;
12452
- $[219] = onBlurRef;
12453
- $[220] = onFocusRef;
12454
- $[221] = placeholder;
12455
- $[222] = readOnly;
12456
- $[223] = required;
12457
- $[224] = size;
12458
- $[225] = variant;
12459
- $[226] = t76;
12460
- } else {
12461
- t76 = $[226];
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
12473
  }
12463
12474
  var t77;
12464
- if ($[227] !== disableClearable || $[228] !== disablePortal || $[229] !== disabled || $[230] !== getLimitTagsText || $[231] !== handleGetOptionDisabled || $[232] !== limitTags || $[233] !== loadingText || $[234] !== multiple || $[235] !== noOptionsText || $[236] !== openOnFocus || $[237] !== readOnly || $[238] !== style || $[239] !== sx || $[240] !== t67 || $[241] !== t68 || $[242] !== t69 || $[243] !== t70 || $[244] !== t71 || $[245] !== t72 || $[246] !== t73 || $[247] !== t75 || $[248] !== t76) {
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) {
12465
12476
  t77 = /*#__PURE__*/React.createElement(material.Autocomplete, {
12466
12477
  options: t67,
12467
12478
  className: t68,
@@ -12488,31 +12499,31 @@ function _temp$m() {
12488
12499
  renderValue: t75,
12489
12500
  renderInput: t76
12490
12501
  });
12491
- $[227] = disableClearable;
12492
- $[228] = disablePortal;
12493
- $[229] = disabled;
12494
- $[230] = getLimitTagsText;
12495
- $[231] = handleGetOptionDisabled;
12496
- $[232] = limitTags;
12497
- $[233] = loadingText;
12498
- $[234] = multiple;
12499
- $[235] = noOptionsText;
12500
- $[236] = openOnFocus;
12501
- $[237] = readOnly;
12502
- $[238] = style;
12503
- $[239] = sx;
12504
- $[240] = t67;
12505
- $[241] = t68;
12506
- $[242] = t69;
12507
- $[243] = t70;
12508
- $[244] = t71;
12509
- $[245] = t72;
12510
- $[246] = t73;
12511
- $[247] = t75;
12512
- $[248] = t76;
12513
- $[249] = t77;
12514
- } else {
12515
- t77 = $[249];
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];
12516
12527
  }
12517
12528
  return t77;
12518
12529
  }
@@ -13031,7 +13042,8 @@ var PrivateYearSelect = function PrivateYearSelect(t0) {
13031
13042
  var t3;
13032
13043
  if ($[3] !== onSelectRef) {
13033
13044
  t3 = function t3(e) {
13034
- onSelectRef.current && onSelectRef.current(Number(e.target.getAttribute("data-id")));
13045
+ var _onSelectRef$current;
13046
+ (_onSelectRef$current = onSelectRef.current) === null || _onSelectRef$current === void 0 || _onSelectRef$current.call(onSelectRef, Number(e.target.getAttribute("data-id")));
13035
13047
  };
13036
13048
  $[3] = onSelectRef;
13037
13049
  $[4] = t3;
@@ -13379,7 +13391,8 @@ var PrivateTimeSelect = function PrivateTimeSelect(t0) {
13379
13391
  var t6;
13380
13392
  if ($[5] !== onSelectRef) {
13381
13393
  t6 = function t6(e) {
13382
- onSelectRef.current && onSelectRef.current(Number(e.target.getAttribute("data-id")));
13394
+ var _onSelectRef$current;
13395
+ (_onSelectRef$current = onSelectRef.current) === null || _onSelectRef$current === void 0 || _onSelectRef$current.call(onSelectRef, Number(e.target.getAttribute("data-id")));
13383
13396
  };
13384
13397
  $[5] = onSelectRef;
13385
13398
  $[6] = t6;
@@ -17472,7 +17485,8 @@ function _temp$h() {
17472
17485
  var t2;
17473
17486
  if ($[0] !== onCloseRef) {
17474
17487
  t2 = function t2() {
17475
- onCloseRef.current && onCloseRef.current();
17488
+ var _onCloseRef$current;
17489
+ (_onCloseRef$current = onCloseRef.current) === null || _onCloseRef$current === void 0 || _onCloseRef$current.call(onCloseRef);
17476
17490
  };
17477
17491
  $[0] = onCloseRef;
17478
17492
  $[1] = t2;
@@ -22917,8 +22931,8 @@ function _temp2() {
22917
22931
  t3 = function t3() {
22918
22932
  var _inputRef$current;
22919
22933
  if ((_inputRef$current = inputRef.current) !== null && _inputRef$current !== void 0 && _inputRef$current.validate()) {
22920
- onConfirm && onConfirm(value);
22921
- onClose && onClose();
22934
+ onConfirm === null || onConfirm === void 0 || onConfirm(value);
22935
+ onClose === null || onClose === void 0 || onClose();
22922
22936
  } else {
22923
22937
  var _inputRef$current2;
22924
22938
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
@@ -22935,8 +22949,8 @@ function _temp2() {
22935
22949
  var t4;
22936
22950
  if ($[7] !== onCancel || $[8] !== onClose) {
22937
22951
  t4 = function t4() {
22938
- onCancel && onCancel();
22939
- onClose && onClose();
22952
+ onCancel === null || onCancel === void 0 || onCancel();
22953
+ onClose === null || onClose === void 0 || onClose();
22940
22954
  };
22941
22955
  $[7] = onCancel;
22942
22956
  $[8] = onClose;
@@ -22951,7 +22965,7 @@ function _temp2() {
22951
22965
  t6 = function t6(e, reason) {
22952
22966
  if (reason === "backdropClick") {
22953
22967
  if (compare.empty(value)) {
22954
- onClose && onClose();
22968
+ onClose === null || onClose === void 0 || onClose();
22955
22969
  }
22956
22970
  }
22957
22971
  };
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.9",
5
+ "version": "1.2.11",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.esm.js",