beesoft-components 0.2.16 → 0.2.17

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.
@@ -6915,15 +6915,16 @@ function getElementByCssStylesRecursive(element, styles, matchAllStyles) {
6915
6915
  }
6916
6916
  return element.parentElement ? getElementByCssStylesRecursive(element.parentElement, styles) : element;
6917
6917
  }
6918
- function getAllElementStyleValuesRecursive(element, style, action, currentValues) {
6919
- if (currentValues === void 0) { currentValues = []; }
6920
- var elementStyles = getComputedStyle(element);
6921
- if (elementStyles[style] && action(elementStyles[style])) {
6922
- currentValues.push(elementStyles[style]);
6918
+ function getAllElementStyleValues(style, action) {
6919
+ var allElements = Array.from(document.querySelectorAll('body *'));
6920
+ var foundStyles = [];
6921
+ for (var i = 0, length_3 = allElements.length; i < length_3; i++) {
6922
+ var elementStyles = getComputedStyle(allElements[i]);
6923
+ if (elementStyles[style] && action(elementStyles[style])) {
6924
+ foundStyles.push(elementStyles[style]);
6925
+ }
6923
6926
  }
6924
- return element.parentElement
6925
- ? getAllElementStyleValuesRecursive(element.parentElement, style, action, currentValues)
6926
- : currentValues;
6927
+ return foundStyles;
6927
6928
  }
6928
6929
 
6929
6930
  function TemplateOutlet(_a) {
@@ -24906,7 +24907,7 @@ function OverlayPanel(_a) {
24906
24907
  });
24907
24908
  }
24908
24909
  if (shouldCheckZIndex) {
24909
- var parentZIndex = getAllElementStyleValuesRecursive(finalTarget, 'zIndex', function (styleValue) {
24910
+ var parentZIndex = getAllElementStyleValues('zIndex', function (styleValue) {
24910
24911
  var elementZIndex = parseInt(styleValue);
24911
24912
  return elementZIndex >= 100;
24912
24913
  }).map(function (item) { return parseInt(item); });
@@ -26516,7 +26517,7 @@ function DateTime(_a) {
26516
26517
  _b), "dark:bsc-bg-black " + (colors === null || colors === void 0 ? void 0 : colors.inputBorderColor) + " bc-dt-input", className);
26517
26518
  return (jsxRuntime.jsx(DateTimeContext.Provider, __assign({ value: contextProps }, { children: jsxRuntime.jsxs("div", __assign({ className: "bc-date-time" }, { children: [jsxRuntime.jsxs(TemplateOutlet, __assign({ props: inputTemplateProps, template: template }, { children: [label && jsxRuntime.jsx("label", __assign({ className: "dark:bsc-text-white bc-dt-label" }, { children: label }), void 0),
26518
26519
  jsxRuntime.jsx(ContentEditableInput$1, __assign({ value: getValue(), readOnly: readOnly, className: inputStyles, onFocus: onFocus, onInput: onInput, onElementCreate: onInputElementCreated }, inputProps), void 0)] }), void 0),
26519
- jsxRuntime.jsx(OverlayPanel, __assign({ visible: selectorOpen, target: dropDownTarget, shouldTargetCloseOverlay: false, shouldScrollCloseOverlay: true, hidden: onDateTimeHidden, unmountWhenHidden: true }, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [state.currentSelector === DateTimeActionType.DaySelector &&
26520
+ jsxRuntime.jsx(OverlayPanel, __assign({ visible: selectorOpen, target: dropDownTarget, shouldTargetCloseOverlay: false, shouldScrollCloseOverlay: true, shouldCheckZIndex: true, hidden: onDateTimeHidden, unmountWhenHidden: true }, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [state.currentSelector === DateTimeActionType.DaySelector &&
26520
26521
  canShowDateSelectors &&
26521
26522
  state.dateInitialized &&
26522
26523
  loadedLocale.current && (jsxRuntime.jsx(DateTimeDaySelector, { selectedDate: state.selectedDate, viewDate: state.currentViewDate, locale: loadedLocale.current, showTimeSelector: dateSelection === DateSelectionType.DateTime, selectableDate: selectableDate, isValidDate: isValidDate, dispatcher: dispatcher }, void 0)),
package/build/index.js CHANGED
@@ -6886,15 +6886,16 @@ function getElementByCssStylesRecursive(element, styles, matchAllStyles) {
6886
6886
  }
6887
6887
  return element.parentElement ? getElementByCssStylesRecursive(element.parentElement, styles) : element;
6888
6888
  }
6889
- function getAllElementStyleValuesRecursive(element, style, action, currentValues) {
6890
- if (currentValues === void 0) { currentValues = []; }
6891
- var elementStyles = getComputedStyle(element);
6892
- if (elementStyles[style] && action(elementStyles[style])) {
6893
- currentValues.push(elementStyles[style]);
6889
+ function getAllElementStyleValues(style, action) {
6890
+ var allElements = Array.from(document.querySelectorAll('body *'));
6891
+ var foundStyles = [];
6892
+ for (var i = 0, length_3 = allElements.length; i < length_3; i++) {
6893
+ var elementStyles = getComputedStyle(allElements[i]);
6894
+ if (elementStyles[style] && action(elementStyles[style])) {
6895
+ foundStyles.push(elementStyles[style]);
6896
+ }
6894
6897
  }
6895
- return element.parentElement
6896
- ? getAllElementStyleValuesRecursive(element.parentElement, style, action, currentValues)
6897
- : currentValues;
6898
+ return foundStyles;
6898
6899
  }
6899
6900
 
6900
6901
  function TemplateOutlet(_a) {
@@ -24877,7 +24878,7 @@ function OverlayPanel(_a) {
24877
24878
  });
24878
24879
  }
24879
24880
  if (shouldCheckZIndex) {
24880
- var parentZIndex = getAllElementStyleValuesRecursive(finalTarget, 'zIndex', function (styleValue) {
24881
+ var parentZIndex = getAllElementStyleValues('zIndex', function (styleValue) {
24881
24882
  var elementZIndex = parseInt(styleValue);
24882
24883
  return elementZIndex >= 100;
24883
24884
  }).map(function (item) { return parseInt(item); });
@@ -26487,7 +26488,7 @@ function DateTime(_a) {
26487
26488
  _b), "dark:bsc-bg-black " + (colors === null || colors === void 0 ? void 0 : colors.inputBorderColor) + " bc-dt-input", className);
26488
26489
  return (jsx(DateTimeContext.Provider, __assign({ value: contextProps }, { children: jsxs("div", __assign({ className: "bc-date-time" }, { children: [jsxs(TemplateOutlet, __assign({ props: inputTemplateProps, template: template }, { children: [label && jsx("label", __assign({ className: "dark:bsc-text-white bc-dt-label" }, { children: label }), void 0),
26489
26490
  jsx(ContentEditableInput$1, __assign({ value: getValue(), readOnly: readOnly, className: inputStyles, onFocus: onFocus, onInput: onInput, onElementCreate: onInputElementCreated }, inputProps), void 0)] }), void 0),
26490
- jsx(OverlayPanel, __assign({ visible: selectorOpen, target: dropDownTarget, shouldTargetCloseOverlay: false, shouldScrollCloseOverlay: true, hidden: onDateTimeHidden, unmountWhenHidden: true }, { children: jsxs(Fragment$1, { children: [state.currentSelector === DateTimeActionType.DaySelector &&
26491
+ jsx(OverlayPanel, __assign({ visible: selectorOpen, target: dropDownTarget, shouldTargetCloseOverlay: false, shouldScrollCloseOverlay: true, shouldCheckZIndex: true, hidden: onDateTimeHidden, unmountWhenHidden: true }, { children: jsxs(Fragment$1, { children: [state.currentSelector === DateTimeActionType.DaySelector &&
26491
26492
  canShowDateSelectors &&
26492
26493
  state.dateInitialized &&
26493
26494
  loadedLocale.current && (jsx(DateTimeDaySelector, { selectedDate: state.selectedDate, viewDate: state.currentViewDate, locale: loadedLocale.current, showTimeSelector: dateSelection === DateSelectionType.DateTime, selectableDate: selectableDate, isValidDate: isValidDate, dispatcher: dispatcher }, void 0)),