@oliasoft-open-source/react-ui-library 3.9.1 → 3.9.2-beta-2

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/index.js CHANGED
@@ -27509,6 +27509,9 @@ const Select = (props) => {
27509
27509
  closeOnOptionActionClick,
27510
27510
  testId
27511
27511
  } = props;
27512
+ console.group("PROPS");
27513
+ console.log(props);
27514
+ console.groupEnd();
27512
27515
  const enableAutoScroll = !native && autoScroll2 === true;
27513
27516
  const {
27514
27517
  multi,
@@ -27523,6 +27526,14 @@ const Select = (props) => {
27523
27526
  enableAutoScroll,
27524
27527
  checkNonExistentValues
27525
27528
  );
27529
+ console.group("standardizeInputs");
27530
+ console.log(multi);
27531
+ console.log(simpleInputs);
27532
+ console.log(options);
27533
+ console.log(selectedOptions);
27534
+ console.log(firstSelectedOptionIndex);
27535
+ console.log(hasNonExistentValue);
27536
+ console.groupEnd();
27526
27537
  const canUseNative = !multi;
27527
27538
  const useNative = native && canUseNative;
27528
27539
  if (native && !canUseNative) {
@@ -27550,20 +27561,31 @@ const Select = (props) => {
27550
27561
  ]
27551
27562
  }) : error2;
27552
27563
  const onChangeSelectedValue = (evt, selectedOptions2) => {
27564
+ console.group("ON CHANGE");
27565
+ console.group("ON CHANGE PROPS");
27566
+ console.log(evt);
27567
+ console.log(selectedOptions2);
27568
+ console.groupEnd();
27553
27569
  if (deprecatedEventHandler) {
27570
+ console.log("DEPRECATED");
27554
27571
  const newSelectedOptions = multi ? selectedOptions2.map((o) => simpleInputs ? o.value : o) : simpleInputs ? selectedOptions2.value : selectedOptions2;
27555
27572
  onChange(newSelectedOptions);
27556
27573
  } else {
27574
+ console.log("DEPRECATED ELSE");
27557
27575
  const isSyntheticEvent = !(evt instanceof Event);
27558
27576
  const value = multi ? selectedOptions2 : selectedOptions2.value;
27577
+ console.log("VALUE", value);
27559
27578
  if (isSyntheticEvent) {
27579
+ console.log("SYNTHETIC");
27560
27580
  evt.target.name = name2;
27561
27581
  evt.target.value = value;
27562
27582
  if (!multi) {
27583
+ console.log("NO MULTI");
27563
27584
  evt.target.label = selectedOptions2.label;
27564
27585
  }
27565
27586
  onChange(evt);
27566
27587
  } else {
27588
+ console.log("SYNTHETIC ELSE");
27567
27589
  onChange({
27568
27590
  ...evt,
27569
27591
  target: {
@@ -27575,6 +27597,7 @@ const Select = (props) => {
27575
27597
  });
27576
27598
  }
27577
27599
  }
27600
+ console.groupEnd();
27578
27601
  };
27579
27602
  return useNative ? /* @__PURE__ */ jsx(NativeSelect, {
27580
27603
  ...props,