pixel-react 1.13.65 → 1.13.67

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.
Files changed (37) hide show
  1. package/lib/_virtual/index11.js +2 -2
  2. package/lib/_virtual/index9.js +2 -2
  3. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
  4. package/lib/components/Excel/ExcelFile/ExcelFile.js +5 -2
  5. package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
  6. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +1 -1
  7. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  8. package/lib/components/MenuOption/MenuOption.js +2 -1
  9. package/lib/components/MenuOption/MenuOption.js.map +1 -1
  10. package/lib/components/Select/Select.js +15 -11
  11. package/lib/components/Select/Select.js.map +1 -1
  12. package/lib/components/StepsLandingTable/StepLandingTable.js +5 -1
  13. package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
  14. package/lib/components/Toastify/Toastify.js +1 -2
  15. package/lib/components/Toastify/Toastify.js.map +1 -1
  16. package/lib/index.cjs +63 -18
  17. package/lib/index.cjs.map +1 -1
  18. package/lib/index.d.ts +9 -1
  19. package/lib/index.js +2 -1
  20. package/lib/index.js.map +1 -1
  21. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  22. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  23. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  24. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  25. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  26. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  27. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  28. package/lib/styles.css +1 -1
  29. package/lib/styles.css.map +1 -1
  30. package/lib/tsconfig.tsbuildinfo +1 -1
  31. package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.d.ts +5 -0
  32. package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.js +35 -0
  33. package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.js.map +1 -0
  34. package/lib/validations/regex.d.ts +2 -1
  35. package/lib/validations/regex.js +3 -1
  36. package/lib/validations/regex.js.map +1 -1
  37. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -2536,6 +2536,8 @@ const ALPHA_NUM_EXTENDED_REGEX = /^[a-zA-Z0-9 _\-()]+$/;
2536
2536
  const ALPHANUMERIC_WITH_DOT_REGEX = /^[A-Za-z0-9.]+$/;
2537
2537
  // Alphanumeric string allowing only dot(.) as special character
2538
2538
  const EXCEL_SPACING_REGEX = /[\n\t"]/;
2539
+ //Alphabet validation along with spaces
2540
+ const ALPHABET_WITH_SPACES_ONLY_REGEX = /^[a-zA-Z ]*$/;
2539
2541
 
2540
2542
  const Dropdown$2 = /*#__PURE__*/React.forwardRef(({
2541
2543
  options,
@@ -4331,27 +4333,31 @@ const Select$1 = ({
4331
4333
  if (!element) return null;
4332
4334
  let parent = element.parentElement;
4333
4335
  while (parent) {
4334
- const overflowY = window.getComputedStyle(parent).overflowY;
4335
- if (overflowY === 'auto' || overflowY === 'scroll') {
4336
+ const tagName = parent.tagName.toLowerCase();
4337
+ // Skip tbody and similar non-scrollable semantic containers
4338
+ if (tagName === 'tbody') {
4339
+ parent = parent.parentElement;
4340
+ continue;
4341
+ }
4342
+ const style = window.getComputedStyle(parent);
4343
+ const overflowY = style.overflowY;
4344
+ const isScrollable = (overflowY === 'auto' || overflowY === 'scroll') && parent.scrollHeight > parent.clientHeight;
4345
+ if (isScrollable) {
4336
4346
  return parent;
4337
4347
  }
4338
4348
  parent = parent.parentElement;
4339
4349
  }
4340
4350
  return document.body;
4341
4351
  };
4342
- const hideShowScrollbar = () => {
4343
- if (disabled) return;
4344
- if (showDropdownOptions && optionsRequired) {
4345
- onSelectToggleScroll(!showDropdownOptions);
4352
+ React.useEffect(() => {
4353
+ if (!showDropdownOptions || disabled) return;
4354
+ if (optionsRequired) {
4355
+ onSelectToggleScroll(false);
4346
4356
  }
4347
4357
  onSelectUpdatePosition();
4348
4358
  const scrollableParent = getScrollParent(inputRef.current);
4349
4359
  window.addEventListener('resize', handleResizeOrScroll);
4350
4360
  scrollableParent?.addEventListener('scroll', onSelectBlur);
4351
- };
4352
- React.useEffect(() => {
4353
- hideShowScrollbar();
4354
- const scrollableParent = getScrollParent(inputRef.current);
4355
4361
  return () => {
4356
4362
  onSelectToggleScroll(true);
4357
4363
  window.removeEventListener('resize', handleResizeOrScroll);
@@ -4443,7 +4449,7 @@ const Select$1 = ({
4443
4449
  'ff-select-labels__active': searchedText
4444
4450
  }),
4445
4451
  fontSize: searchedText || showDropdownOptions ? 10 : 12,
4446
- lineHeight: searchedText || showDropdownOptions && '12px',
4452
+ lineHeight: searchedText || showDropdownOptions ? '10px' : '12px',
4447
4453
  required: required,
4448
4454
  style: {
4449
4455
  maxWidth: `calc(${selectWidth} - 40px)`
@@ -4935,7 +4941,7 @@ const MenuOption = ({
4935
4941
  children: labelName
4936
4942
  })]
4937
4943
  })
4938
- }), isClicked && displayCard && jsxRuntime.jsx(OptionCard, {
4944
+ }), isClicked && displayCard && !checkEmpty(options) && jsxRuntime.jsx(OptionCard, {
4939
4945
  options: options,
4940
4946
  onClick: handleOptionClick,
4941
4947
  menuPosition: menuPosition,
@@ -17484,7 +17490,6 @@ const Toastify = () => {
17484
17490
  title = formatMessage(arg1);
17485
17491
  message = '';
17486
17492
  }
17487
- const formattedTitle = title.charAt(0).toUpperCase() + title.slice(1);
17488
17493
  // Close the existing toast if open, and then immediately show the new one
17489
17494
  setToastProps(prev => ({
17490
17495
  ...prev,
@@ -17497,7 +17502,7 @@ const Toastify = () => {
17497
17502
  setToastProps({
17498
17503
  isOpen: true,
17499
17504
  variant,
17500
- toastTitle: formattedTitle,
17505
+ toastTitle: title,
17501
17506
  toastMessage: message
17502
17507
  });
17503
17508
  timeoutRef.current = setTimeout(() => {
@@ -40187,7 +40192,7 @@ const ActiveCell = props => {
40187
40192
  },
40188
40193
  value: cell?.value,
40189
40194
  disabled: false
40190
- }), jsxRuntime.jsx("div", {
40195
+ }), !['file', 'dropDown'].includes(cell?.inputType?.type ?? '') && jsxRuntime.jsx("div", {
40191
40196
  onMouseDown: handleMouseDown,
40192
40197
  className: "select_dot"
40193
40198
  })]
@@ -41262,6 +41267,7 @@ const ExcelFile = ({
41262
41267
  scroller = false,
41263
41268
  columnContextEnable = true,
41264
41269
  rowContextEnable = true,
41270
+ sheetBarContextEnable = true,
41265
41271
  minimumColumnWidth = 100,
41266
41272
  disableDeleteOption = false
41267
41273
  }) => {
@@ -41694,7 +41700,7 @@ const ExcelFile = ({
41694
41700
  })
41695
41701
  }), sheetBar === 'show' && jsxRuntime.jsxs("div", {
41696
41702
  className: "ff-excel-sheet-bar",
41697
- children: [jsxRuntime.jsx("div", {
41703
+ children: [sheetBarContextEnable && jsxRuntime.jsx("div", {
41698
41704
  className: "ff-excel-add-sheet-set",
41699
41705
  children: jsxRuntime.jsx(Tooltip, {
41700
41706
  title: "Add Sheet",
@@ -41716,7 +41722,9 @@ const ExcelFile = ({
41716
41722
  children: jsxRuntime.jsx("div", {
41717
41723
  onContextMenu: event => {
41718
41724
  handleSheetChange(name, index);
41719
- contextClick(event, name, index);
41725
+ if (sheetBarContextEnable) {
41726
+ contextClick(event, name, index);
41727
+ }
41720
41728
  },
41721
41729
  className: classNames('ff-excel-tab-list', {
41722
41730
  active: name === selectedSheet.name
@@ -74506,7 +74514,11 @@ const StepLandingTable = /*#__PURE__*/React.forwardRef(({
74506
74514
  return Object.values(rows).some(set => set.size > 0);
74507
74515
  };
74508
74516
  if (hasSelectedIds(selectedRows)) {
74509
- onSelectClick?.(selectedRows);
74517
+ const updatedSelection = {
74518
+ ...selectedRows,
74519
+ partialSelected: stepPartialSelect
74520
+ };
74521
+ onSelectClick?.(updatedSelection);
74510
74522
  } else {
74511
74523
  onSelectClick?.(null);
74512
74524
  }
@@ -103848,6 +103860,37 @@ const getNavigateToKey = (currentNode, treeData, action) => {
103848
103860
  };
103849
103861
  };
103850
103862
 
103863
+ const checkMicrophoneAccess = async (handleMicToggle, {
103864
+ requestDeniedMsg,
103865
+ notSupportedMsg,
103866
+ micAccessDeniedMsg
103867
+ }) => {
103868
+ try {
103869
+ const permissionStatus = await navigator?.permissions.query({
103870
+ name: 'microphone'
103871
+ });
103872
+ if (permissionStatus?.state === 'granted') {
103873
+ handleMicToggle();
103874
+ } else if (permissionStatus?.state === 'prompt') {
103875
+ try {
103876
+ const stream = await navigator?.mediaDevices?.getUserMedia({
103877
+ audio: true
103878
+ });
103879
+ stream?.getTracks()?.forEach(track => track?.stop());
103880
+ handleMicToggle();
103881
+ } catch (err) {
103882
+ toast.error(requestDeniedMsg);
103883
+ console.error('getUserMedia error:', err);
103884
+ }
103885
+ } else if (permissionStatus?.state === 'denied') {
103886
+ toast.error(micAccessDeniedMsg);
103887
+ }
103888
+ } catch (err) {
103889
+ toast.error(notSupportedMsg);
103890
+ console.error('Permission query error:', err);
103891
+ }
103892
+ };
103893
+
103851
103894
  /*
103852
103895
  The MIT License (MIT)
103853
103896
 
@@ -110153,6 +110196,7 @@ const ScriptGenerationLoader = ({
110153
110196
 
110154
110197
  exports.AADHAAR_REGEX = AADHAAR_REGEX;
110155
110198
  exports.ALPHABET_ONLY_REGEX = ALPHABET_ONLY_REGEX;
110199
+ exports.ALPHABET_WITH_SPACES_ONLY_REGEX = ALPHABET_WITH_SPACES_ONLY_REGEX;
110156
110200
  exports.ALPHANUMERIC_PARENTHESIS_REGEX = ALPHANUMERIC_PARENTHESIS_REGEX;
110157
110201
  exports.ALPHANUMERIC_REGEX = ALPHANUMERIC_REGEX;
110158
110202
  exports.ALPHANUMERIC_WITH_DOT_REGEX = ALPHANUMERIC_WITH_DOT_REGEX;
@@ -110351,6 +110395,7 @@ exports.addStepGroup = addStepGroup;
110351
110395
  exports.autoScrollToTableLastRow = autoScrollToTableLastRow;
110352
110396
  exports.capitalize = capitalize;
110353
110397
  exports.checkEmpty = checkEmpty;
110398
+ exports.checkMicrophoneAccess = checkMicrophoneAccess;
110354
110399
  exports.clearStore = clearStore;
110355
110400
  exports.compareArrays = compareArrays;
110356
110401
  exports.compareObjects = compareObjects;