react-table-edit 1.4.34 → 1.4.36

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.mjs CHANGED
@@ -4,8 +4,8 @@ import React__default, { useRef, useState, useEffect, useMemo, useLayoutEffect,
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import * as ReactDOM from 'react-dom';
6
6
  import ReactDOM__default from 'react-dom';
7
- import { createRoot } from 'react-dom/client';
8
7
  import toast from 'react-hot-toast';
8
+ import { createRoot } from 'react-dom/client';
9
9
  import { useNavigate, Link } from 'react-router-dom';
10
10
 
11
11
  /******************************************************************************
@@ -17741,39 +17741,6 @@ const renderLabel = (props) => {
17741
17741
  return (jsx(Fragment, { children: isLabel === false ? '' : jsxs(Label$1, { for: name, children: [t(label ? label : ''), " ", required ? jsx("span", { className: "text-danger", children: "*" }) : '', " "] }) }));
17742
17742
  };
17743
17743
 
17744
- const TextInput = (props) => {
17745
- const { control, id, name, min, max, type, label, labelSize, required, errors, height, disabled, row, isLabel, placeholder, autoFocus, inLine, callback, readOnly, classes, ...rest } = props;
17746
- const renderInput = () => {
17747
- return (jsxs(Fragment, { children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => (jsx(Input$1, { id: id, value: !isNullOrUndefined(value) ? value : '', onChange: (val) => {
17748
- if (min || max) {
17749
- if (min && Number(val.target.value) >= min) {
17750
- onChange(val.target.value);
17751
- if (callback) {
17752
- callback(val);
17753
- }
17754
- }
17755
- if (max && Number(val.target.value) <= max) {
17756
- onChange(val.target.value);
17757
- if (callback) {
17758
- callback(val);
17759
- }
17760
- }
17761
- }
17762
- else {
17763
- onChange(val.target.value);
17764
- if (callback) {
17765
- callback(val);
17766
- }
17767
- }
17768
- }, style: { height: `${height}px` }, autoFocus: autoFocus, disabled: disabled, placeholder: placeholder, type: type ? type : 'text', invalid: errors && true, className: "h-100", rows: row, min: min, max: max, readOnly: readOnly, ...rest })) }), errors && jsx(FormFeedback$1, { children: errors?.message })] }));
17769
- };
17770
- return (jsx(Fragment, { children: jsxs("div", { className: classNames$2(' align', {
17771
- [labelSize ? labelSize : '']: labelSize,
17772
- [classes ? classes : '']: classes,
17773
- 'form-row-inline-error': errors
17774
- }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { className: classNames$2('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
17775
- };
17776
-
17777
17744
  const NumberInput = (props) => {
17778
17745
  const { id, control, fractionCurrency, name, min, max, label, labelSize, required, errors, disabled, isLabel, fixedDecimalScale, placeholder, inLine, callback, decimalSeparator = ',', thousandSeparator = '.', classes, width, allowNegative } = props;
17779
17746
  const renderInput = () => {
@@ -17819,9 +17786,42 @@ const NumberInput = (props) => {
17819
17786
  }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { style: { width: width ? width : undefined }, className: classNames$2('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
17820
17787
  };
17821
17788
 
17789
+ const TextInput = (props) => {
17790
+ const { control, id, name, min, max, type, label, labelSize, required, errors, height, disabled, row, isLabel, placeholder, autoFocus, inLine, callback, readOnly, classes, ...rest } = props;
17791
+ const renderInput = () => {
17792
+ return (jsxs(Fragment, { children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => (jsx(Input$1, { id: id, value: !isNullOrUndefined(value) ? value : '', onChange: (val) => {
17793
+ if (min || max) {
17794
+ if (min && Number(val.target.value) >= min) {
17795
+ onChange(val.target.value);
17796
+ if (callback) {
17797
+ callback(val);
17798
+ }
17799
+ }
17800
+ if (max && Number(val.target.value) <= max) {
17801
+ onChange(val.target.value);
17802
+ if (callback) {
17803
+ callback(val);
17804
+ }
17805
+ }
17806
+ }
17807
+ else {
17808
+ onChange(val.target.value);
17809
+ if (callback) {
17810
+ callback(val);
17811
+ }
17812
+ }
17813
+ }, style: { height: `${height}px` }, autoFocus: autoFocus, disabled: disabled, placeholder: placeholder, type: type ? type : 'text', invalid: errors && true, className: "h-100", rows: row, min: min, max: max, readOnly: readOnly, ...rest })) }), errors && jsx(FormFeedback$1, { children: errors?.message })] }));
17814
+ };
17815
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$2(' align', {
17816
+ [labelSize ? labelSize : '']: labelSize,
17817
+ [classes ? classes : '']: classes,
17818
+ 'form-row-inline-error': errors
17819
+ }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { className: classNames$2('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
17820
+ };
17821
+
17822
17822
  const defaultMaxHeight$1 = 250;
17823
17823
  const SelectTable = forwardRef((props, ref) => {
17824
- const { id, menuWidth, width, invalid, placeholder, textAlign, options, columns, value, fieldValue, fieldLabel, maxHeight, isClearable, component, isMulti, noHeader, isDisabled, showFooter, formatSetting, allowCreate, onPaste, onChange, handleAdd, onKeyDown, onOpenMenu, loadOptions, onCloseMenu, footerComponent, formatOptionLabel } = props;
17824
+ const { id, menuWidth, width, invalid, placeholder, textAlign, options, columns, value, fieldValue, fieldLabel, maxHeight, isClearable, component, isMulti, noHeader, isDisabled, showFooter, formatSetting, allowCreate, onPaste, onChange, handleAdd, onKeyDown, onOpenMenu, loadOptions, onCloseMenu, footerComponent, formatOptionLabel, compareFunction } = props;
17825
17825
  const selectTableRef = useRef(null);
17826
17826
  const selectMenuTableRef = useRef(null);
17827
17827
  const inputRef = useRef(null);
@@ -17860,7 +17860,7 @@ const SelectTable = forwardRef((props, ref) => {
17860
17860
  };
17861
17861
  useEffect(() => {
17862
17862
  if (dropdownOpen && value && !isMulti && selectMenuTableRef) {
17863
- const index = (optionsLoad ? optionsLoad : options)?.findIndex((e) => e[fieldValue ?? 'value'] === value[fieldValue ?? 'value']);
17863
+ const index = (optionsLoad ? optionsLoad : options)?.findIndex((row) => (compareFunction ? compareFunction(row) : row[fieldValue ?? 'value'] === value[fieldValue ?? 'value']));
17864
17864
  if (index >= 0) {
17865
17865
  selectMenuTableRef.current.scrollTo({ top: (index - 1) * 30 });
17866
17866
  }
@@ -17967,7 +17967,7 @@ const SelectTable = forwardRef((props, ref) => {
17967
17967
  newIndex = indexFocus + 1;
17968
17968
  }
17969
17969
  else if (value) {
17970
- newIndex = (optionsLoad ? optionsLoad : options)?.findIndex((e) => e[fieldValue ?? 'value'] === value[fieldValue ?? 'value']) + 1;
17970
+ newIndex = (optionsLoad ? optionsLoad : options)?.findIndex((row) => (compareFunction ? compareFunction(row) : row[fieldValue ?? 'value'] === value[fieldValue ?? 'value'])) + 1;
17971
17971
  }
17972
17972
  if (newIndex < (optionsLoad ? optionsLoad : options).length) {
17973
17973
  setIndexFocus(newIndex);
@@ -17991,7 +17991,7 @@ const SelectTable = forwardRef((props, ref) => {
17991
17991
  newIndex = indexFocus - 1;
17992
17992
  }
17993
17993
  else if (value) {
17994
- newIndex = (optionsLoad ? optionsLoad : options)?.findIndex((e) => e[fieldValue ?? 'value'] === value[fieldValue ?? 'value']) - 1;
17994
+ newIndex = (optionsLoad ? optionsLoad : options)?.findIndex((row) => (compareFunction ? compareFunction(row) : row[fieldValue ?? 'value'] === value[fieldValue ?? 'value'])) - 1;
17995
17995
  }
17996
17996
  if (newIndex >= 0) {
17997
17997
  setIndexFocus(newIndex);
@@ -18087,9 +18087,9 @@ const SelectTable = forwardRef((props, ref) => {
18087
18087
  };
18088
18088
  const RenderElement = React__default.memo((props) => {
18089
18089
  const { indexRow, row, isSelected, level = 0 } = props;
18090
- return (jsxs("tr", { id: `row-select-table-${indexRow}`, style: { paddingLeft: 10 * level }, className: classNames$2('r-select-row', { 'last-row': indexRow === (optionsLoad ? optionsLoad : options).length - 1 }, { 'fisrt-row': indexRow === 0 }), children: [isMulti && jsx("td", { className: classNames$2(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && value[fieldValue ?? 'value'] === row[fieldValue ?? 'value'] }), style: { width: 40, textAlign: 'center', padding: 0, paddingBottom: 6 }, onClick: (e) => {
18090
+ return (jsxs("tr", { id: `row-select-table-${indexRow}`, style: { paddingLeft: 10 * level }, className: classNames$2('r-select-row', { 'last-row': indexRow === (optionsLoad ? optionsLoad : options).length - 1 }, { 'fisrt-row': indexRow === 0 }), children: [isMulti && jsx("td", { className: classNames$2(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && (compareFunction ? compareFunction(row) : value[fieldValue ?? 'value'] === row[fieldValue ?? 'value']) }), style: { width: 40, textAlign: 'center', padding: 0, paddingBottom: 6 }, onClick: (e) => {
18091
18091
  if (isMulti) {
18092
- const index = value?.findIndex((x) => x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']);
18092
+ const index = value?.findIndex((x) => (compareFunction ? compareFunction(row) : x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']));
18093
18093
  if (index > -1) {
18094
18094
  value?.splice(index, 1);
18095
18095
  handChange([...value]);
@@ -18118,14 +18118,14 @@ const SelectTable = forwardRef((props, ref) => {
18118
18118
  }
18119
18119
  return (jsxs(Fragment, { children: [col.visible !== false && jsx("td", { id: `select-${id}-${indexRow}-${indexCol}`,
18120
18120
  // ref={refRow}
18121
- className: classNames$2(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && value[fieldValue ?? 'value'] === row[fieldValue ?? 'value'] }), style: {
18121
+ className: classNames$2(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && (compareFunction ? compareFunction(row) : value[fieldValue ?? 'value'] === row[fieldValue ?? 'value']) }), style: {
18122
18122
  minWidth: col.minWidth,
18123
18123
  width: col.width,
18124
18124
  maxWidth: col.maxWidth,
18125
18125
  textAlign: col.textAlign ? col.textAlign : 'left'
18126
18126
  }, onClick: (e) => {
18127
18127
  if (isMulti) {
18128
- const index = value?.findIndex((x) => x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']);
18128
+ const index = value?.findIndex((x) => (compareFunction ? compareFunction(row) : x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']));
18129
18129
  if (index > -1) {
18130
18130
  value?.splice(index, 1);
18131
18131
  handChange([...value]);
@@ -18170,7 +18170,7 @@ const SelectTable = forwardRef((props, ref) => {
18170
18170
  }, readOnly: true, className: classNames$2('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: 'center', marginTop: 6 } }) }) }), (columns ? columns : defaultColumns).map((col, index) => {
18171
18171
  return (renderHeaderCol(col, index));
18172
18172
  })] }) }), ((optionsLoad ? optionsLoad : options) && !isLoading) && jsx(Fragment$1, { children: jsxs("tbody", { className: 'r-select-gridcontent', children: [haveCreateNew && jsx(RenderElement, { isSelected: false, indexRow: 0, row: { valueCreate: searchTerm, [fieldValue ?? "value"]: searchTerm, [fieldLabel ?? "label"]: `${t('Create')} '${searchTerm}'`, isCreated: true } }), (optionsLoad ? optionsLoad : options)?.map((row, indexRow) => {
18173
- const isSelected = isMulti && value?.some((x) => x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']);
18173
+ const isSelected = isMulti && value?.some((x) => (compareFunction ? compareFunction(row) : x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']));
18174
18174
  return (jsx(RenderElement, { isSelected: isSelected ?? false, indexRow: indexRow + (haveCreateNew ? 1 : 0), row: row }, `select-table-${indexRow}`));
18175
18175
  })] }) })] }), ((((optionsLoad ? optionsLoad : options)?.length ?? 0) === 0) && !haveCreateNew && !isLoading) && jsxs("div", { className: "r-no-data", children: [jsx("svg", { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg", children: jsxs("g", { transform: "translate(0 1)", fill: "none", fillRule: "evenodd", children: [jsx("ellipse", { fill: "#f5f5f5", cx: "32", cy: "33", rx: "32", ry: "7" }), jsxs("g", { fillRule: "nonzero", stroke: "#d9d9d9", children: [jsx("path", { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }), jsx("path", { d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z", fill: "#fafafa" })] })] }) }), t('No data available.')] }), isLoading && jsxs("div", { className: "r-no-data", children: [jsx(Spinner$1, { className: "me-1", children: " " }), t('Loading...')] })] }));
18176
18176
  };
@@ -18436,7 +18436,7 @@ const EditForm = forwardRef((props, ref) => {
18436
18436
  height: template ? 0 : 28,
18437
18437
  lineHeight: template ? 0 : 19,
18438
18438
  padding: template ? 0 : 'auto',
18439
- backgroundColor: '#FFF',
18439
+ backgroundColor: '$white',
18440
18440
  textAlign: textAlign ?? 'left'
18441
18441
  }, placeholder: placeholder, innerRef: inputRef, onKeyDown: (e) => handleOnKeyDown(e), onPaste: (e) => onPaste && onPaste(e), readOnly: true })] }) }), jsx(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown p-0', style: {
18442
18442
  minWidth: minWidth ? minWidth : defaultWidth,
@@ -39725,7 +39725,7 @@ const messageHtmlBoxConfirm = (t, message, handle, data, title = 'Important', bt
39725
39725
  MySwal.fire({
39726
39726
  title: t(title),
39727
39727
  html: message.map((item, index) => {
39728
- return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid #e0e0e0${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
39728
+ return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid $border-color${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
39729
39729
  }).join(''),
39730
39730
  allowOutsideClick: false,
39731
39731
  showCancelButton: true,
@@ -39746,7 +39746,7 @@ const messageHtmlBoxError = (t, message, title = 'Important', btnCancel = 'Ok')
39746
39746
  MySwal.fire({
39747
39747
  title: t(title),
39748
39748
  html: message.map((item, index) => {
39749
- return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid #e0e0e0${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
39749
+ return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid $border-color${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
39750
39750
  }).join(''),
39751
39751
  allowOutsideClick: false,
39752
39752
  showCancelButton: true,
@@ -40308,7 +40308,7 @@ const Sidebar = (props) => {
40308
40308
  position: 'fixed',
40309
40309
  top: '50%',
40310
40310
  transform: 'translate(-50%, -50%)',
40311
- background: '#FFF',
40311
+ background: '$white',
40312
40312
  filter: 'drop-shadow(0.9px 0.9px 1.5px)',
40313
40313
  height: 50,
40314
40314
  display: 'flex',
@@ -42622,7 +42622,7 @@ const CommandElement = (props) => {
42622
42622
  return (jsx(Fragment, { children: jsx("div", { className: 'd-flex align-items-center', style: { columnGap: 10 }, children: commandItems.map((item, index) => {
42623
42623
  return (jsxs(Button$1, { id: `command-item-${indexRow}-${index}`, tabIndex: -1, style: { padding: '5px', minWidth: 45, height: '100%' }, className: classNames$2('command-item', {
42624
42624
  'btn-icon': item.tooltip === ''
42625
- }), color: item.color ? item.color : '#000', onClick: (e) => {
42625
+ }), color: item.color ? item.color : '$black', onClick: (e) => {
42626
42626
  handleCommandClick(item.id, rowData, indexRow);
42627
42627
  if (indexRow === indexFocus) {
42628
42628
  if (setIndexFocus) {
@@ -42912,10 +42912,10 @@ const TableEdit = forwardRef((props, ref) => {
42912
42912
  optionsSelect = col.selectSettings?.options ? (col.selectSettings?.validateOption ? col.selectSettings?.options.filter((item) => col.selectSettings?.validateOption(item, row)) : col.selectSettings?.options) : [];
42913
42913
  }
42914
42914
  if (col.selectSettings?.isMulti) {
42915
- valueSelect = optionsSelect.filter((x) => row[col.field].some((y) => x[col.selectSettings?.fieldValue ?? 'value'] === y));
42915
+ valueSelect = optionsSelect.filter((x) => row[col.field].some((y) => col.selectSettings?.compareFunction ? col.selectSettings.compareFunction(x, row) : x[col.selectSettings?.fieldValue ?? 'value'] === y));
42916
42916
  }
42917
42917
  else {
42918
- valueSelect = (!isNullOrUndefined(row[col.field]) && row[col.field] !== '') ? optionsSelect?.find((val) => val[col.selectSettings?.fieldValue ?? 'value'] === row[col.field]) : '';
42918
+ valueSelect = (!isNullOrUndefined(row[col.field]) && row[col.field] !== '') ? optionsSelect?.find((val) => col.selectSettings?.compareFunction ? col.selectSettings.compareFunction(val, row) : val[col.selectSettings?.fieldValue ?? 'value'] === row[col.field]) : '';
42919
42919
  if (!valueSelect && col.selectSettings?.defaultValue) {
42920
42920
  valueSelect = col.selectSettings?.defaultValue(row);
42921
42921
  }
@@ -42945,7 +42945,7 @@ const TableEdit = forwardRef((props, ref) => {
42945
42945
  col.callback(val, indexRow, row);
42946
42946
  }
42947
42947
  handleDataChange(row, col, indexRow);
42948
- }, fieldValue: col.selectSettings?.fieldValue, fieldLabel: col.selectSettings?.fieldLabel, component: gridRef, columns: col.selectSettings?.columns, isClearable: col.selectSettings?.isClearable ?? false, formatSetting: formatSetting, placeholder: t('Select'), loadOptions: col.selectSettings?.loadOptions, handleAdd: col.selectSettings?.handAddNew ? (e) => col.selectSettings?.handAddNew(e, indexRow, row) : undefined, isMulti: col.selectSettings?.isMulti, noHeader: col.selectSettings?.noHeader, showFooter: col.selectSettings?.showFooter, formatOptionLabel: col.selectSettings?.formatOptionLabel, footerComponent: col.selectSettings?.footerComponent, invalid: (col.validate && !isNullOrUndefined(col.validate(row[col.field], row))), maxHeight: col.selectSettings?.heightPopup ? Number(col.selectSettings?.heightPopup) : undefined, menuWidth: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : undefined, textAlign: col.textAlign ?? 'left', allowCreate: col.selectSettings?.allowCreate, onKeyDown: (e) => {
42948
+ }, fieldValue: col.selectSettings?.fieldValue, fieldLabel: col.selectSettings?.fieldLabel, component: gridRef, columns: col.selectSettings?.columns, isClearable: col.selectSettings?.isClearable ?? false, formatSetting: formatSetting, placeholder: t('Select'), loadOptions: col.selectSettings?.loadOptions, handleAdd: col.selectSettings?.handAddNew ? (e) => col.selectSettings?.handAddNew(e, indexRow, row) : undefined, isMulti: col.selectSettings?.isMulti, noHeader: col.selectSettings?.noHeader, showFooter: col.selectSettings?.showFooter, formatOptionLabel: col.selectSettings?.formatOptionLabel, footerComponent: col.selectSettings?.footerComponent, invalid: (col.validate && !isNullOrUndefined(col.validate(row[col.field], row))), maxHeight: col.selectSettings?.heightPopup ? Number(col.selectSettings?.heightPopup) : undefined, menuWidth: col.selectSettings?.widthPopup ? Number(col.selectSettings?.widthPopup) : undefined, textAlign: col.textAlign ?? 'left', allowCreate: col.selectSettings?.allowCreate, compareFunction: (e) => col.selectSettings?.compareFunction?.(e, row), onKeyDown: (e) => {
42949
42949
  return checkKeyDown(e, row, col, indexRow + 1, indexCol + 1);
42950
42950
  }, onOpenMenu: () => {
42951
42951
  if (col.selectSettings?.onOpenMenu) {
@@ -43761,7 +43761,7 @@ const TabsMenuComponent = ({ buttonWidth, tabParent, tabChild, resourceCodeParen
43761
43761
  };
43762
43762
  return (jsxs(Fragment, { children: [renderModal ? renderModal({ handleModal, windowSize, openModal, setDataItem, dataItem }) : '', jsxs("div", { className: classNames$2('tab-custom', { 'tab-parent': tabParent }, { 'tab-child': tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [jsx("div", { onClick: () => handleScroll(-200), className: classNames$2('btn-scroll', { 'd-none': componentWidth >= contentWidth - 20 }), children: jsx(SvgChevronLeft, {}) }), jsx("div", { ref: tabComponentRef, className: "tab-component", onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, children: jsx("div", { ref: contentComponentRef, children: dataMenu.map((item) => {
43763
43763
  if (item?.resAttributes?.IS_MENU === '1') {
43764
- return (jsxs(UncontrolledDropdown, { draggable: false, className: "tab-custom-item", isOpen: openMenu, toggle: toggleMenu, direction: 'down', style: { backgroundColor: openMenu ? '#e0e0e0' : '' }, children: [jsx(DropdownToggle$1, { color: "#00000", style: { border: 'none', boxShadow: 'none', margin: 0, padding: 0 }, className: "background-none", children: jsx("div", { children: item.name }) }), jsx(DropdownMenu$1, { container: document.body, end: true, style: { width: 300 }, children: item?.children?.map((x) => jsx(DropdownItem$1, { style: { borderRadius: '5px', margin: "0 0.5rem", width: "95%" }, onClick: () => {
43764
+ return (jsxs(UncontrolledDropdown, { draggable: false, className: "tab-custom-item", isOpen: openMenu, toggle: toggleMenu, direction: 'down', style: { backgroundColor: openMenu ? '$border-color' : '' }, children: [jsx(DropdownToggle$1, { color: "$black00", style: { border: 'none', boxShadow: 'none', margin: 0, padding: 0 }, className: "background-none", children: jsx("div", { children: item.name }) }), jsx(DropdownMenu$1, { container: document.body, end: true, style: { width: 300 }, children: item?.children?.map((x) => jsx(DropdownItem$1, { style: { borderRadius: '5px', margin: "0 0.5rem", width: "95%" }, onClick: () => {
43765
43765
  if (x.resAttributes.MODAL_VALUE) {
43766
43766
  handleModal(x.resAttributes.MODAL_VALUE);
43767
43767
  }
@@ -44653,8 +44653,8 @@ const InputStyleComponent = (props) => {
44653
44653
  fontWeight: value.bold ? "bold" : 'normal',
44654
44654
  fontStyle: value.italic ? "italic" : 'normal',
44655
44655
  textDecoration: value.underline ? "underline" : 'normal',
44656
- backgroundColor: value.backgroundColor ?? '#ffffff',
44657
- color: value.color ?? '#000000'
44656
+ backgroundColor: value.backgroundColor ?? '$white',
44657
+ color: value.color ?? '$black'
44658
44658
  }, children: props.label }));
44659
44659
  } }), jsx("div", { className: classNames$2('ms-25', { 'd-none': disabledFontSize }), style: { width: 60 }, children: jsx(SelectTable, { options: Array.from({ length: 100 }, (_, i) => ({ value: i + 1, label: i + 1 })), noHeader: true, isDisabled: disabled, value: value.fontSize ? { value: value.fontSize, label: value.fontSize } : null, onChange: (val) => {
44660
44660
  onChange({ ...value, fontSize: val.value });
@@ -44670,9 +44670,9 @@ const InputStyleComponent = (props) => {
44670
44670
  if (!disabled) {
44671
44671
  onChange({ ...value, underline: !value.underline });
44672
44672
  }
44673
- }, children: jsx(SvgUnderline, { fontSize: 18 }) }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$2('btn-input-style', { 'd-none': disabledColor }), children: [jsx(SvgType, { stroke: value.color ?? '#000000', fontSize: 18 }), jsx("input", { type: "color", id: "color", disabled: disabled, value: value.color, style: { color: '#FFF', border: 'none', height: 0, width: 0, outline: 'none', padding: 0 }, onChange: (e) => {
44673
+ }, children: jsx(SvgUnderline, { fontSize: 18 }) }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$2('btn-input-style', { 'd-none': disabledColor }), children: [jsx(SvgType, { stroke: value.color ?? '$black', fontSize: 18 }), jsx("input", { type: "color", id: "color", disabled: disabled, value: value.color, style: { color: '$white', border: 'none', height: 0, width: 0, outline: 'none', padding: 0 }, onChange: (e) => {
44674
44674
  onChange({ ...value, color: e.target.value });
44675
- } })] }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$2('btn-input-style', { 'd-none': disabledBackgroundColor }), children: [jsx(SvgDroplet, { fill: value.backgroundColor ?? '#ffffff', fontSize: 18 }), jsx(Input$1, { id: "backgroundColor", type: "color", disabled: disabled, style: { color: '#FFF', border: 'none', height: 0, width: 0, outline: 'none', padding: 0 }, value: value.backgroundColor, onChange: (e) => {
44675
+ } })] }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$2('btn-input-style', { 'd-none': disabledBackgroundColor }), children: [jsx(SvgDroplet, { fill: value.backgroundColor ?? '$white', fontSize: 18 }), jsx(Input$1, { id: "backgroundColor", type: "color", disabled: disabled, style: { color: '$white', border: 'none', height: 0, width: 0, outline: 'none', padding: 0 }, value: value.backgroundColor, onChange: (e) => {
44676
44676
  onChange({ ...value, backgroundColor: e.target.value });
44677
44677
  } })] })] }) }));
44678
44678
  };
@@ -46142,8 +46142,8 @@ const CheckboxInput = (props) => {
46142
46142
 
46143
46143
  const defaultStyleExportSetting = {
46144
46144
  title: {
46145
- color: '#000000',
46146
- backgroundColor: '#ffffff',
46145
+ color: '$black',
46146
+ backgroundColor: '$white',
46147
46147
  fontFamily: 'Times New Roman',
46148
46148
  fontSize: 18,
46149
46149
  row: 2,
@@ -46152,8 +46152,8 @@ const defaultStyleExportSetting = {
46152
46152
  underline: false
46153
46153
  },
46154
46154
  subtitle: {
46155
- color: '#000000',
46156
- backgroundColor: '#ffffff',
46155
+ color: '$black',
46156
+ backgroundColor: '$white',
46157
46157
  fontFamily: 'Times New Roman',
46158
46158
  fontSize: 12,
46159
46159
  row: 3,
@@ -46162,7 +46162,7 @@ const defaultStyleExportSetting = {
46162
46162
  underline: false
46163
46163
  },
46164
46164
  header: {
46165
- color: "#000000",
46165
+ color: "$black",
46166
46166
  backgroundColor: "#ffe0cc",
46167
46167
  fontFamily: 'Times New Roman',
46168
46168
  fontSize: 14,
@@ -46172,7 +46172,7 @@ const defaultStyleExportSetting = {
46172
46172
  underline: false
46173
46173
  },
46174
46174
  group1: {
46175
- color: "#000000",
46175
+ color: "$black",
46176
46176
  backgroundColor: "#bfbfbf",
46177
46177
  fontFamily: 'Times New Roman',
46178
46178
  fontSize: 12,
@@ -46181,7 +46181,7 @@ const defaultStyleExportSetting = {
46181
46181
  underline: false
46182
46182
  },
46183
46183
  group2: {
46184
- color: "#000000",
46184
+ color: "$black",
46185
46185
  backgroundColor: "#d9d9d9",
46186
46186
  fontFamily: 'Times New Roman',
46187
46187
  fontSize: 12,
@@ -46190,7 +46190,7 @@ const defaultStyleExportSetting = {
46190
46190
  underline: false
46191
46191
  },
46192
46192
  group3: {
46193
- color: "#000000",
46193
+ color: "$black",
46194
46194
  backgroundColor: "#f2f2f2",
46195
46195
  fontFamily: 'Times New Roman',
46196
46196
  fontSize: 12,
@@ -46199,8 +46199,8 @@ const defaultStyleExportSetting = {
46199
46199
  underline: false
46200
46200
  },
46201
46201
  content: {
46202
- color: "#000000",
46203
- backgroundColor: '#ffffff',
46202
+ color: "$black",
46203
+ backgroundColor: '$white',
46204
46204
  fontFamily: 'Times New Roman',
46205
46205
  fontSize: 11,
46206
46206
  bold: false,
@@ -46208,7 +46208,7 @@ const defaultStyleExportSetting = {
46208
46208
  underline: false
46209
46209
  },
46210
46210
  summary: {
46211
- color: "#000000",
46211
+ color: "$black",
46212
46212
  backgroundColor: '#ffe0cc',
46213
46213
  fontFamily: 'Times New Roman',
46214
46214
  fontSize: 12,