react-table-edit 1.4.18 → 1.4.20

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
@@ -1130,7 +1130,7 @@ if (process.env.NODE_ENV !== 'production') {
1130
1130
 
1131
1131
  var PropTypes = propTypes$1.exports;
1132
1132
 
1133
- var classnames$2 = {exports: {}};
1133
+ var classnames$1 = {exports: {}};
1134
1134
 
1135
1135
  /*!
1136
1136
  Copyright (c) 2018 Jed Watson.
@@ -1205,9 +1205,9 @@ var classnames$2 = {exports: {}};
1205
1205
  window.classNames = classNames;
1206
1206
  }
1207
1207
  }());
1208
- }(classnames$2));
1208
+ }(classnames$1));
1209
1209
 
1210
- var classNames$1 = classnames$2.exports;
1210
+ var classNames$2 = classnames$1.exports;
1211
1211
 
1212
1212
  var ManagerReferenceNodeContext = React$5.createContext();
1213
1213
  var ManagerReferenceNodeSetterContext = React$5.createContext();
@@ -4559,7 +4559,7 @@ const Row = props => {
4559
4559
  const isXs = !i;
4560
4560
  colClasses.push(isXs ? `row-cols-${colSize}` : `row-cols-${colWidth}-${colSize}`);
4561
4561
  });
4562
- const classes = mapToCssModules(classNames$1(className, noGutters ? 'gx-0' : null, form ? 'form-row' : 'row', colClasses), cssModule);
4562
+ const classes = mapToCssModules(classNames$2(className, noGutters ? 'gx-0' : null, form ? 'form-row' : 'row', colClasses), cssModule);
4563
4563
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
4564
4564
  className: classes
4565
4565
  }));
@@ -4619,7 +4619,7 @@ const getColumnClasses = (attributes, cssModule, widths = colWidths$1) => {
4619
4619
  if (isObject$1(columnProp)) {
4620
4620
  const colSizeInterfix = isXs ? '-' : `-${colWidth}-`;
4621
4621
  const colClass = getColumnSizeClass$1(isXs, colWidth, columnProp.size);
4622
- colClasses.push(mapToCssModules(classNames$1({
4622
+ colClasses.push(mapToCssModules(classNames$2({
4623
4623
  [colClass]: columnProp.size || columnProp.size === '',
4624
4624
  [`order${colSizeInterfix}${columnProp.order}`]: columnProp.order || columnProp.order === 0,
4625
4625
  [`offset${colSizeInterfix}${columnProp.offset}`]: columnProp.offset || columnProp.offset === 0
@@ -4653,7 +4653,7 @@ const Col = props => {
4653
4653
  colClasses.push('col');
4654
4654
  }
4655
4655
 
4656
- const classes = mapToCssModules(classNames$1(className, colClasses), cssModule);
4656
+ const classes = mapToCssModules(classNames$2(className, colClasses), cssModule);
4657
4657
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, modifiedAttributes, {
4658
4658
  className: classes
4659
4659
  }));
@@ -4761,7 +4761,7 @@ class NavLink extends React__default.Component {
4761
4761
  } = _this$props,
4762
4762
  attributes = _objectWithoutProperties$1(_this$props, _excluded$15);
4763
4763
 
4764
- const classes = mapToCssModules(classNames$1(className, 'nav-link', {
4764
+ const classes = mapToCssModules(classNames$2(className, 'nav-link', {
4765
4765
  disabled: attributes.disabled,
4766
4766
  active: active
4767
4767
  }), cssModule);
@@ -4849,7 +4849,7 @@ class Button extends React__default.Component {
4849
4849
  attributes = _objectWithoutProperties$1(_this$props, _excluded$12);
4850
4850
 
4851
4851
  const btnOutlineColor = `btn${outline ? '-outline' : ''}-${color}`;
4852
- const classes = mapToCssModules(classNames$1(className, close && 'btn-close', close || 'btn', close || btnOutlineColor, size ? `btn-${size}` : false, block ? 'd-block w-100' : false, {
4852
+ const classes = mapToCssModules(classNames$2(className, close && 'btn-close', close || 'btn', close || btnOutlineColor, size ? `btn-${size}` : false, block ? 'd-block w-100' : false, {
4853
4853
  active,
4854
4854
  disabled: this.props.disabled
4855
4855
  }), cssModule);
@@ -4937,7 +4937,7 @@ class ButtonToggle extends React__default.Component {
4937
4937
  } = _this$props,
4938
4938
  attributes = _objectWithoutProperties$1(_this$props, _excluded$11);
4939
4939
 
4940
- const classes = mapToCssModules(classNames$1(className, {
4940
+ const classes = mapToCssModules(classNames$2(className, {
4941
4941
  focus: this.state.focus
4942
4942
  }), this.props.cssModule);
4943
4943
  return /*#__PURE__*/React__default.createElement(Button$1, _extends$5({
@@ -5211,7 +5211,7 @@ class Dropdown extends React__default.Component {
5211
5211
  });
5212
5212
  }
5213
5213
 
5214
- const classes = mapToCssModules(classNames$1(className, nav && active ? 'active' : false, setActiveFromChild && subItemIsActive ? 'active' : false, {
5214
+ const classes = mapToCssModules(classNames$2(className, nav && active ? 'active' : false, setActiveFromChild && subItemIsActive ? 'active' : false, {
5215
5215
  'btn-group': group,
5216
5216
  [`btn-group-${size}`]: !!size,
5217
5217
  dropdown: !group,
@@ -5352,7 +5352,7 @@ class DropdownItem extends React__default.Component {
5352
5352
  } = _omit,
5353
5353
  props = _objectWithoutProperties$1(_omit, _excluded$Z);
5354
5354
 
5355
- const classes = mapToCssModules(classNames$1(className, {
5355
+ const classes = mapToCssModules(classNames$2(className, {
5356
5356
  disabled: props.disabled,
5357
5357
  'dropdown-item': !divider && !header && !text,
5358
5358
  active: active,
@@ -5445,7 +5445,7 @@ class DropdownMenu extends React__default.Component {
5445
5445
  } = _this$props,
5446
5446
  attrs = _objectWithoutProperties$1(_this$props, _excluded$Y);
5447
5447
 
5448
- const classes = mapToCssModules(classNames$1(className, 'dropdown-menu', {
5448
+ const classes = mapToCssModules(classNames$2(className, 'dropdown-menu', {
5449
5449
  'dropdown-menu-dark': dark,
5450
5450
  'dropdown-menu-end': end || right,
5451
5451
  show: this.context.isOpen
@@ -5578,7 +5578,7 @@ class DropdownToggle extends React__default.Component {
5578
5578
  props = _objectWithoutProperties$1(_this$props, _excluded$X);
5579
5579
 
5580
5580
  const ariaLabel = props['aria-label'] || 'Toggle Dropdown';
5581
- const classes = mapToCssModules(classNames$1(className, {
5581
+ const classes = mapToCssModules(classNames$2(className, {
5582
5582
  'dropdown-toggle': caret || split,
5583
5583
  'dropdown-toggle-split': split,
5584
5584
  'nav-link': nav
@@ -5669,7 +5669,7 @@ function Fade(props) {
5669
5669
  const childProps = omit(otherProps, TransitionPropTypeKeys);
5670
5670
  return /*#__PURE__*/React__default.createElement(Transition$1, transitionProps, status => {
5671
5671
  const isActive = status === 'entered';
5672
- const classes = mapToCssModules(classNames$1(className, baseClass, isActive && baseClassActive), cssModule);
5672
+ const classes = mapToCssModules(classNames$2(className, baseClass, isActive && baseClassActive), cssModule);
5673
5673
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({
5674
5674
  className: classes
5675
5675
  }, childProps, {
@@ -5841,7 +5841,7 @@ class Collapse extends Component {
5841
5841
  onExited: this.onExited
5842
5842
  }), status => {
5843
5843
  let collapseClass = getTransitionClass(status);
5844
- const classes = mapToCssModules(classNames$1(className, horizontal && 'collapse-horizontal', collapseClass, navbar && 'navbar-collapse'), cssModule);
5844
+ const classes = mapToCssModules(classNames$2(className, horizontal && 'collapse-horizontal', collapseClass, navbar && 'navbar-collapse'), cssModule);
5845
5845
  const style = dimension === null ? null : {
5846
5846
  [horizontal ? 'width' : 'height']: dimension
5847
5847
  };
@@ -5894,7 +5894,7 @@ const Badge = props => {
5894
5894
  } = props,
5895
5895
  attributes = _objectWithoutProperties$1(props, _excluded$P);
5896
5896
 
5897
- const classes = mapToCssModules(classNames$1(className, 'badge', 'bg-' + color, pill ? 'rounded-pill' : false), cssModule);
5897
+ const classes = mapToCssModules(classNames$2(className, 'badge', 'bg-' + color, pill ? 'rounded-pill' : false), cssModule);
5898
5898
 
5899
5899
  if (attributes.href && Tag === 'span') {
5900
5900
  Tag = 'a';
@@ -6049,7 +6049,7 @@ class CarouselItem extends React__default.Component {
6049
6049
  const isActive = status === TransitionStatuses.ENTERED || status === TransitionStatuses.EXITING;
6050
6050
  const directionClassName = (status === TransitionStatuses.ENTERING || status === TransitionStatuses.EXITING) && this.state.startAnimation && (direction === 'end' ? 'carousel-item-start' : 'carousel-item-end');
6051
6051
  const orderClassName = status === TransitionStatuses.ENTERING && (direction === 'end' ? 'carousel-item-next' : 'carousel-item-prev');
6052
- const itemClasses = mapToCssModules(classNames$1(className, 'carousel-item', isActive && 'active', directionClassName, orderClassName), cssModule);
6052
+ const itemClasses = mapToCssModules(classNames$2(className, 'carousel-item', isActive && 'active', directionClassName, orderClassName), cssModule);
6053
6053
  return /*#__PURE__*/React__default.createElement(Tag, {
6054
6054
  className: itemClasses
6055
6055
  }, children);
@@ -6263,8 +6263,8 @@ class Carousel extends React__default.Component {
6263
6263
  dark,
6264
6264
  fade
6265
6265
  } = this.props;
6266
- const outerClasses = mapToCssModules(classNames$1(className, 'carousel', fade, slide && 'slide', dark && 'carousel-dark'), cssModule);
6267
- const innerClasses = mapToCssModules(classNames$1('carousel-inner'), cssModule); // filter out booleans, null, or undefined
6266
+ const outerClasses = mapToCssModules(classNames$2(className, 'carousel', fade, slide && 'slide', dark && 'carousel-dark'), cssModule);
6267
+ const innerClasses = mapToCssModules(classNames$2('carousel-inner'), cssModule); // filter out booleans, null, or undefined
6268
6268
 
6269
6269
  const children = this.props.children.filter(child => child !== null && child !== undefined && typeof child !== 'boolean');
6270
6270
  const slidesOnly = children.every(child => child.type === CarouselItem$1); // Rendering only slides
@@ -6377,9 +6377,9 @@ const CarouselControl = props => {
6377
6377
  directionText,
6378
6378
  className
6379
6379
  } = props;
6380
- const anchorClasses = mapToCssModules(classNames$1(className, `carousel-control-${direction}`), cssModule);
6381
- const iconClasses = mapToCssModules(classNames$1(`carousel-control-${direction}-icon`), cssModule);
6382
- const screenReaderClasses = mapToCssModules(classNames$1('visually-hidden'), cssModule);
6380
+ const anchorClasses = mapToCssModules(classNames$2(className, `carousel-control-${direction}`), cssModule);
6381
+ const iconClasses = mapToCssModules(classNames$2(`carousel-control-${direction}-icon`), cssModule);
6382
+ const screenReaderClasses = mapToCssModules(classNames$2('visually-hidden'), cssModule);
6383
6383
  return (
6384
6384
  /*#__PURE__*/
6385
6385
  // We need to disable this linting rule to use an `<a>` instead of
@@ -6423,9 +6423,9 @@ const CarouselIndicators = props => {
6423
6423
  onClickHandler,
6424
6424
  className
6425
6425
  } = props;
6426
- const listClasses = mapToCssModules(classNames$1(className, 'carousel-indicators'), cssModule);
6426
+ const listClasses = mapToCssModules(classNames$2(className, 'carousel-indicators'), cssModule);
6427
6427
  const indicators = items.map((item, idx) => {
6428
- const indicatorClasses = mapToCssModules(classNames$1({
6428
+ const indicatorClasses = mapToCssModules(classNames$2({
6429
6429
  active: activeIndex === idx
6430
6430
  }), cssModule);
6431
6431
  return /*#__PURE__*/React__default.createElement("button", {
@@ -6460,7 +6460,7 @@ const CarouselCaption = props => {
6460
6460
  cssModule,
6461
6461
  className
6462
6462
  } = props;
6463
- const classes = mapToCssModules(classNames$1(className, 'carousel-caption', 'd-none', 'd-md-block'), cssModule);
6463
+ const classes = mapToCssModules(classNames$2(className, 'carousel-caption', 'd-none', 'd-md-block'), cssModule);
6464
6464
  return /*#__PURE__*/React__default.createElement("div", {
6465
6465
  className: classes
6466
6466
  }, /*#__PURE__*/React__default.createElement("h3", null, captionHeader), /*#__PURE__*/React__default.createElement("p", null, captionText));
@@ -6721,8 +6721,8 @@ class PopperContent extends React__default.Component {
6721
6721
  } = _this$props,
6722
6722
  attrs = _objectWithoutProperties$1(_this$props, _excluded$z);
6723
6723
 
6724
- const arrowClassName = mapToCssModules(classNames$1('arrow', _arrowClassName), cssModule);
6725
- const popperClassName = mapToCssModules(classNames$1(_popperClassName, placementPrefix ? `${placementPrefix}-auto` : ''), this.props.cssModule);
6724
+ const arrowClassName = mapToCssModules(classNames$2('arrow', _arrowClassName), cssModule);
6725
+ const popperClassName = mapToCssModules(classNames$2(_popperClassName, placementPrefix ? `${placementPrefix}-auto` : ''), this.props.cssModule);
6726
6726
  const modifierNames = modifiers.map(m => m.name);
6727
6727
  const baseModifiers = [{
6728
6728
  name: 'offset',
@@ -7186,8 +7186,8 @@ const defaultProps$D = {
7186
7186
  };
7187
7187
 
7188
7188
  const Popover = props => {
7189
- const popperClasses = classNames$1('popover', 'show', props.popperClassName);
7190
- const classes = classNames$1('popover-inner', props.innerClassName);
7189
+ const popperClasses = classNames$2('popover', 'show', props.popperClassName);
7190
+ const classes = classNames$2('popover-inner', props.innerClassName);
7191
7191
  return /*#__PURE__*/React__default.createElement(TooltipPopoverWrapper$1, _extends$5({}, props, {
7192
7192
  arrowClassName: "popover-arrow",
7193
7193
  popperClassName: popperClasses,
@@ -7612,7 +7612,7 @@ class Modal extends React__default.Component {
7612
7612
  conditionallyUpdateScrollbar();
7613
7613
 
7614
7614
  if (Modal.openCount === 0) {
7615
- document.body.className = classNames$1(document.body.className, mapToCssModules('modal-open', this.props.cssModule));
7615
+ document.body.className = classNames$2(document.body.className, mapToCssModules('modal-open', this.props.cssModule));
7616
7616
  }
7617
7617
 
7618
7618
  this.modalIndex = Modal.openCount;
@@ -7656,7 +7656,7 @@ class Modal extends React__default.Component {
7656
7656
  const attributes = omit(this.props, propsToOmit$1);
7657
7657
  const dialogBaseClass = 'modal-dialog';
7658
7658
  return /*#__PURE__*/React__default.createElement("div", _extends$5({}, attributes, {
7659
- className: mapToCssModules(classNames$1(dialogBaseClass, this.props.className, {
7659
+ className: mapToCssModules(classNames$2(dialogBaseClass, this.props.className, {
7660
7660
  [`modal-${this.props.size}`]: this.props.size,
7661
7661
  [`${dialogBaseClass}-centered`]: this.props.centered,
7662
7662
  [`${dialogBaseClass}-scrollable`]: this.props.scrollable,
@@ -7668,7 +7668,7 @@ class Modal extends React__default.Component {
7668
7668
  this._dialog = c;
7669
7669
  }
7670
7670
  }), /*#__PURE__*/React__default.createElement("div", {
7671
- className: mapToCssModules(classNames$1('modal-content', this.props.contentClassName), this.props.cssModule)
7671
+ className: mapToCssModules(classNames$2('modal-content', this.props.contentClassName), this.props.cssModule)
7672
7672
  }, this.props.children));
7673
7673
  }
7674
7674
 
@@ -7719,9 +7719,9 @@ class Modal extends React__default.Component {
7719
7719
  const Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default.createElement(Fade, _extends$5({}, backdropTransition, {
7720
7720
  in: isOpen && !!backdrop,
7721
7721
  cssModule: cssModule,
7722
- className: mapToCssModules(classNames$1('modal-backdrop', backdropClassName), cssModule)
7722
+ className: mapToCssModules(classNames$2('modal-backdrop', backdropClassName), cssModule)
7723
7723
  })) : /*#__PURE__*/React__default.createElement("div", {
7724
- className: mapToCssModules(classNames$1('modal-backdrop', 'show', backdropClassName), cssModule)
7724
+ className: mapToCssModules(classNames$2('modal-backdrop', 'show', backdropClassName), cssModule)
7725
7725
  }));
7726
7726
  return /*#__PURE__*/React__default.createElement(Portal$1$1, {
7727
7727
  node: this._element
@@ -7732,7 +7732,7 @@ class Modal extends React__default.Component {
7732
7732
  onEntered: this.onOpened,
7733
7733
  onExited: this.onClosed,
7734
7734
  cssModule: cssModule,
7735
- className: mapToCssModules(classNames$1('modal', modalClassName, this.state.showStaticBackdropAnimation && 'modal-static'), cssModule),
7735
+ className: mapToCssModules(classNames$2('modal', modalClassName, this.state.showStaticBackdropAnimation && 'modal-static'), cssModule),
7736
7736
  innerRef: innerRef
7737
7737
  }), external, this.renderModalDialog()), Backdrop));
7738
7738
  }
@@ -7781,7 +7781,7 @@ const ModalBody = props => {
7781
7781
  } = props,
7782
7782
  attributes = _objectWithoutProperties$1(props, _excluded$u);
7783
7783
 
7784
- const classes = mapToCssModules(classNames$1(className, 'modal-body'), cssModule);
7784
+ const classes = mapToCssModules(classNames$2(className, 'modal-body'), cssModule);
7785
7785
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
7786
7786
  className: classes
7787
7787
  }));
@@ -7804,8 +7804,8 @@ const defaultProps$v = {
7804
7804
  };
7805
7805
 
7806
7806
  const Tooltip = props => {
7807
- const popperClasses = classNames$1('tooltip', 'show', props.popperClassName);
7808
- const classes = classNames$1('tooltip-inner', props.innerClassName);
7807
+ const popperClasses = classNames$2('tooltip', 'show', props.popperClassName);
7808
+ const classes = classNames$2('tooltip-inner', props.innerClassName);
7809
7809
  return /*#__PURE__*/React__default.createElement(TooltipPopoverWrapper$1, _extends$5({}, props, {
7810
7810
  arrowClassName: "tooltip-arrow",
7811
7811
  popperClassName: popperClasses,
@@ -7884,7 +7884,7 @@ class Form extends Component {
7884
7884
  } = _this$props,
7885
7885
  attributes = _objectWithoutProperties$1(_this$props, _excluded$q);
7886
7886
 
7887
- const classes = mapToCssModules(classNames$1(className, inline ? 'form-inline' : false), cssModule);
7887
+ const classes = mapToCssModules(classNames$2(className, inline ? 'form-inline' : false), cssModule);
7888
7888
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
7889
7889
  ref: innerRef,
7890
7890
  className: classes
@@ -7921,7 +7921,7 @@ const FormFeedback = props => {
7921
7921
  attributes = _objectWithoutProperties$1(props, _excluded$p);
7922
7922
 
7923
7923
  const validMode = tooltip ? 'tooltip' : 'feedback';
7924
- const classes = mapToCssModules(classNames$1(className, valid ? `valid-${validMode}` : `invalid-${validMode}`), cssModule);
7924
+ const classes = mapToCssModules(classNames$2(className, valid ? `valid-${validMode}` : `invalid-${validMode}`), cssModule);
7925
7925
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
7926
7926
  className: classes
7927
7927
  }));
@@ -8036,7 +8036,7 @@ class Input extends React__default.Component {
8036
8036
  delete attributes.size;
8037
8037
  }
8038
8038
 
8039
- const classes = mapToCssModules(classNames$1(className, invalid && 'is-invalid', valid && 'is-valid', bsSize ? selectInput ? `form-select-${bsSize}` : `form-control-${bsSize}` : false, formControlClass), cssModule);
8039
+ const classes = mapToCssModules(classNames$2(className, invalid && 'is-invalid', valid && 'is-valid', bsSize ? selectInput ? `form-select-${bsSize}` : `form-control-${bsSize}` : false, formControlClass), cssModule);
8040
8040
 
8041
8041
  if (Tag === 'input' || tag && typeof tag === 'function') {
8042
8042
  attributes.type = type === 'switch' ? 'checkbox' : type;
@@ -8140,7 +8140,7 @@ const Label = props => {
8140
8140
  if (isObject$1(columnProp)) {
8141
8141
  const colSizeInterfix = isXs ? '-' : `-${colWidth}-`;
8142
8142
  colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
8143
- colClasses.push(mapToCssModules(classNames$1({
8143
+ colClasses.push(mapToCssModules(classNames$2({
8144
8144
  [colClass]: columnProp.size || columnProp.size === '',
8145
8145
  [`order${colSizeInterfix}${columnProp.order}`]: columnProp.order || columnProp.order === 0,
8146
8146
  [`offset${colSizeInterfix}${columnProp.offset}`]: columnProp.offset || columnProp.offset === 0
@@ -8150,7 +8150,7 @@ const Label = props => {
8150
8150
  colClasses.push(colClass);
8151
8151
  }
8152
8152
  });
8153
- const classes = mapToCssModules(classNames$1(className, hidden ? 'visually-hidden' : false, check ? 'form-check-label' : false, size ? `col-form-label-${size}` : false, colClasses, colClasses.length ? 'col-form-label' : 'form-label'), cssModule);
8153
+ const classes = mapToCssModules(classNames$2(className, hidden ? 'visually-hidden' : false, check ? 'form-check-label' : false, size ? `col-form-label-${size}` : false, colClasses, colClasses.length ? 'col-form-label' : 'form-label'), cssModule);
8154
8154
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({
8155
8155
  htmlFor: htmlFor
8156
8156
  }, attributes, {
@@ -8549,11 +8549,11 @@ class Offcanvas extends React__default.Component {
8549
8549
  this._backdrop = c;
8550
8550
  },
8551
8551
  cssModule: cssModule,
8552
- className: mapToCssModules(classNames$1('offcanvas-backdrop', backdropClassName), cssModule),
8552
+ className: mapToCssModules(classNames$2('offcanvas-backdrop', backdropClassName), cssModule),
8553
8553
  onClick: this.handleBackdropClick,
8554
8554
  onMouseDown: this.handleBackdropMouseDown
8555
8555
  })) : /*#__PURE__*/React__default.createElement("div", {
8556
- className: mapToCssModules(classNames$1('offcanvas-backdrop', 'show', backdropClassName), cssModule),
8556
+ className: mapToCssModules(classNames$2('offcanvas-backdrop', 'show', backdropClassName), cssModule),
8557
8557
  onClick: this.handleBackdropClick,
8558
8558
  onMouseDown: this.handleBackdropMouseDown
8559
8559
  }));
@@ -8565,7 +8565,7 @@ class Offcanvas extends React__default.Component {
8565
8565
  onEntered: this.onOpened,
8566
8566
  onExited: this.onClosed,
8567
8567
  cssModule: cssModule,
8568
- className: mapToCssModules(classNames$1('offcanvas', className, `offcanvas-${direction}`), cssModule),
8568
+ className: mapToCssModules(classNames$2('offcanvas', className, `offcanvas-${direction}`), cssModule),
8569
8569
  innerRef: c => {
8570
8570
  this._dialog = c;
8571
8571
  },
@@ -8679,7 +8679,7 @@ class TabContent extends Component {
8679
8679
  tag: Tag
8680
8680
  } = this.props;
8681
8681
  const attributes = omit(this.props, Object.keys(propTypes$e));
8682
- const classes = mapToCssModules(classNames$1('tab-content', className), cssModule);
8682
+ const classes = mapToCssModules(classNames$2('tab-content', className), cssModule);
8683
8683
  return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
8684
8684
  value: {
8685
8685
  activeTabId: this.state.activeTab
@@ -8797,7 +8797,7 @@ const List = forwardRef((props, ref) => {
8797
8797
  } = props,
8798
8798
  attributes = _objectWithoutProperties$1(props, _excluded$4);
8799
8799
 
8800
- const classes = mapToCssModules(classNames$1(className, type ? `list-${type}` : false), cssModule);
8800
+ const classes = mapToCssModules(classNames$2(className, type ? `list-${type}` : false), cssModule);
8801
8801
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
8802
8802
  className: classes,
8803
8803
  ref: ref
@@ -8824,7 +8824,7 @@ const ListInlineItem = forwardRef((props, ref) => {
8824
8824
  } = props,
8825
8825
  attributes = _objectWithoutProperties$1(props, _excluded$3);
8826
8826
 
8827
- const classes = mapToCssModules(classNames$1(className, 'list-inline-item'), cssModule);
8827
+ const classes = mapToCssModules(classNames$2(className, 'list-inline-item'), cssModule);
8828
8828
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({}, attributes, {
8829
8829
  className: classes,
8830
8830
  ref: ref
@@ -9007,7 +9007,7 @@ const Spinner = props => {
9007
9007
  } = props,
9008
9008
  attributes = _objectWithoutProperties$1(props, _excluded$2);
9009
9009
 
9010
- const classes = mapToCssModules(classNames$1(className, size ? `spinner-${type}-${size}` : false, `spinner-${type}`, color ? `text-${color}` : false), cssModule);
9010
+ const classes = mapToCssModules(classNames$2(className, size ? `spinner-${type}-${size}` : false, `spinner-${type}`, color ? `text-${color}` : false), cssModule);
9011
9011
  return /*#__PURE__*/React__default.createElement(Tag, _extends$5({
9012
9012
  role: "status"
9013
9013
  }, attributes, {
@@ -9061,7 +9061,7 @@ _objectSpread2(_objectSpread2({}, Col$1.propTypes), {}, {
9061
9061
  Object.values = values;
9062
9062
  })();
9063
9063
 
9064
- var classnames$1 = {exports: {}};
9064
+ var classnames = {exports: {}};
9065
9065
 
9066
9066
  /*!
9067
9067
  Copyright (c) 2018 Jed Watson.
@@ -9117,9 +9117,9 @@ var classnames$1 = {exports: {}};
9117
9117
  window.classNames = classNames;
9118
9118
  }
9119
9119
  }());
9120
- }(classnames$1));
9120
+ }(classnames));
9121
9121
 
9122
- var classnames = classnames$1.exports;
9122
+ var classNames$1 = classnames.exports;
9123
9123
 
9124
9124
  /******************************************************************************
9125
9125
  Copyright (c) Microsoft Corporation.
@@ -14257,7 +14257,7 @@ const ReactInput = (props) => {
14257
14257
  //{...props}
14258
14258
  , {
14259
14259
  //{...props}
14260
- style: style, placeholder: placeholder, onKeyPress: onKeyPress, className: classnames('input__value', {
14260
+ style: style, placeholder: placeholder, onKeyPress: onKeyPress, className: classNames$1('input__value', {
14261
14261
  'is-clearable': value
14262
14262
  }), value: value, onChange: (val) => setValue(val.target.value) }), value ? jsx(SvgX, { className: 'input__clear-icon', onClick: handelClear, strokeWidth: 3, fontSize: 16 }) : ''] }));
14263
14263
  };
@@ -21390,11 +21390,11 @@ const TextInput = (props) => {
21390
21390
  }
21391
21391
  }, 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 })] }));
21392
21392
  };
21393
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(' align', {
21393
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(' align', {
21394
21394
  [labelSize ? labelSize : '']: labelSize,
21395
21395
  [classes ? classes : '']: classes,
21396
21396
  'form-row-inline-error': errors
21397
- }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
21397
+ }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
21398
21398
  };
21399
21399
 
21400
21400
  /**
@@ -22633,7 +22633,7 @@ const NumberInput = (props) => {
22633
22633
  decimalScale: fractionCurrency ?? 0,
22634
22634
  fixedDecimalScale
22635
22635
  };
22636
- return (jsx(NumericFormat, { id: id, ...numericFormatProps, className: classnames('form-control text-right', {
22636
+ return (jsx(NumericFormat, { id: id, ...numericFormatProps, className: classNames$1('form-control text-right', {
22637
22637
  'is-invalid': errors
22638
22638
  }), onValueChange: (values) => {
22639
22639
  floatValue = values?.floatValue;
@@ -22658,11 +22658,11 @@ const NumberInput = (props) => {
22658
22658
  }, placeholder: placeholder, disabled: disabled }));
22659
22659
  } }), errors && jsx(FormFeedback$1, { children: errors?.message })] }));
22660
22660
  };
22661
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(' align', {
22661
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(' align', {
22662
22662
  [labelSize ? labelSize : '']: labelSize,
22663
22663
  [classes ? classes : '']: classes,
22664
22664
  'form-row-inline-error': errors
22665
- }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { style: { width: width ? width : undefined }, className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
22665
+ }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { style: { width: width ? width : undefined }, className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
22666
22666
  };
22667
22667
 
22668
22668
  const defaultMaxHeight$1 = 250;
@@ -22889,7 +22889,7 @@ const SelectTable = forwardRef((props, ref) => {
22889
22889
  }, 100);
22890
22890
  };
22891
22891
  const renderHeaderCol = (col, indexCol) => {
22892
- return (jsx(Fragment, { children: col.visible !== false && jsx("th", { className: classnames(`r-select-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
22892
+ return (jsx(Fragment, { children: col.visible !== false && jsx("th", { className: classNames$1(`r-select-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
22893
22893
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.width,
22894
22894
  minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.minWidth,
22895
22895
  top: `${0 * 35}px`,
@@ -22933,7 +22933,7 @@ const SelectTable = forwardRef((props, ref) => {
22933
22933
  };
22934
22934
  const RenderElement = React__default.memo((props) => {
22935
22935
  const { indexRow, row, isSelected, level = 0 } = props;
22936
- return (jsxs("tr", { id: `row-select-table-${indexRow}`, style: { paddingLeft: 10 * level }, className: classnames('r-select-row', { 'last-row': indexRow === (optionsLoad ? optionsLoad : options).length - 1 }, { 'fisrt-row': indexRow === 0 }), children: [isMulti && jsx("td", { className: classnames(`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) => {
22936
+ return (jsxs("tr", { id: `row-select-table-${indexRow}`, style: { paddingLeft: 10 * level }, className: classNames$1('r-select-row', { 'last-row': indexRow === (optionsLoad ? optionsLoad : options).length - 1 }, { 'fisrt-row': indexRow === 0 }), children: [isMulti && jsx("td", { className: classNames$1(`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) => {
22937
22937
  if (isMulti) {
22938
22938
  const index = value?.findIndex((x) => x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']);
22939
22939
  if (index > -1) {
@@ -22964,7 +22964,7 @@ const SelectTable = forwardRef((props, ref) => {
22964
22964
  }
22965
22965
  return (jsxs(Fragment, { children: [col.visible !== false && jsx("td", { id: `select-${id}-${indexRow}-${indexCol}`,
22966
22966
  // ref={refRow}
22967
- className: classnames(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && value[fieldValue ?? 'value'] === row[fieldValue ?? 'value'] }), style: {
22967
+ className: classNames$1(`r-select-rowcell`, { 'r-select-move': indexFocus === indexRow, 'r-select-active': !isMulti && value && value[fieldValue ?? 'value'] === row[fieldValue ?? 'value'] }), style: {
22968
22968
  minWidth: col.minWidth,
22969
22969
  width: col.width,
22970
22970
  maxWidth: col.maxWidth,
@@ -23003,7 +23003,7 @@ const SelectTable = forwardRef((props, ref) => {
23003
23003
  });
23004
23004
  const RenderTable = (props) => {
23005
23005
  return (jsxs(Fragment$1, { children: [jsxs("table", { style: { width: '100%' }, children: [!(noHeader || (columns?.length ?? 0) === 0) &&
23006
- jsx("thead", { className: 'r-select-gridheader', children: jsxs("tr", { className: "r-select-row", role: "row", children: [isMulti && jsx("th", { className: classnames(`r-select-headercell`), style: { width: 40, top: `0px` }, children: jsx("div", { style: { justifyContent: 'center' }, className: classnames('r-select-headercell-div'), children: jsx(Input$1, { checked: isSelectedAll, type: "checkbox", onClick: (e) => {
23006
+ jsx("thead", { className: 'r-select-gridheader', children: jsxs("tr", { className: "r-select-row", role: "row", children: [isMulti && jsx("th", { className: classNames$1(`r-select-headercell`), style: { width: 40, top: `0px` }, children: jsx("div", { style: { justifyContent: 'center' }, className: classNames$1('r-select-headercell-div'), children: jsx(Input$1, { checked: isSelectedAll, type: "checkbox", onClick: (e) => {
23007
23007
  if (isMulti) {
23008
23008
  if (isSelectedAll) {
23009
23009
  handChange([]);
@@ -23013,22 +23013,22 @@ const SelectTable = forwardRef((props, ref) => {
23013
23013
  }
23014
23014
  e.stopPropagation();
23015
23015
  }
23016
- }, readOnly: true, className: classnames('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: 'center', marginTop: 6 } }) }) }), (columns ? columns : defaultColumns).map((col, index) => {
23016
+ }, readOnly: true, className: classNames$1('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: 'center', marginTop: 6 } }) }) }), (columns ? columns : defaultColumns).map((col, index) => {
23017
23017
  return (renderHeaderCol(col, index));
23018
23018
  })] }) }), ((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) => {
23019
23019
  const isSelected = isMulti && value?.some((x) => x[fieldValue ?? 'value'] === row[fieldValue ?? 'value']);
23020
23020
  return (jsx(RenderElement, { isSelected: isSelected ?? false, indexRow: indexRow + (haveCreateNew ? 1 : 0), row: row }, `select-table-${indexRow}`));
23021
23021
  })] }) })] }), ((((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...')] })] }));
23022
23022
  };
23023
- return (jsx("div", { className: classnames('react-select-table', { 'is-invalid': invalid }), ref: ref, id: id, children: jsx("div", { ref: selectTableRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, onMouseDown: (e) => e.preventDefault(), children: [jsxs(DropdownToggle$1, { onClick: (e) => {
23023
+ return (jsx("div", { className: classNames$1('react-select-table', { 'is-invalid': invalid }), ref: ref, id: id, children: jsx("div", { ref: selectTableRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, onMouseDown: (e) => e.preventDefault(), children: [jsxs(DropdownToggle$1, { onClick: (e) => {
23024
23024
  if (!isDisabled) {
23025
23025
  inputRef?.current.focus();
23026
23026
  handleOpenClose();
23027
23027
  }
23028
23028
  e.preventDefault();
23029
- }, tag: 'div', style: { width: width ? width : (selectTableRef?.current?.clientWidth ? selectTableRef?.current?.clientWidth : 'auto') }, className: classnames('select-table-control', { 'r-select-is-disabled': isDisabled }, { 'r-select-is-open': dropdownOpen }, { 'r-select-is-focus': isFocus }, { 'r-select-is-invalid': invalid }), children: [jsxs("div", { className: "select-table-container", children: [isMulti ? jsx(Fragment$1, { children: jsx("div", { className: classnames('select-value is-mutil', { 'd-none': searchTerm }), children: value?.map((ele, index) => {
23029
+ }, tag: 'div', style: { width: width ? width : (selectTableRef?.current?.clientWidth ? selectTableRef?.current?.clientWidth : 'auto') }, className: classNames$1('select-table-control', { 'r-select-is-disabled': isDisabled }, { 'r-select-is-open': dropdownOpen }, { 'r-select-is-focus': isFocus }, { 'r-select-is-invalid': invalid }), children: [jsxs("div", { className: "select-table-container", children: [isMulti ? jsx(Fragment$1, { children: jsx("div", { className: classNames$1('select-value is-mutil', { 'd-none': searchTerm }), children: value?.map((ele, index) => {
23030
23030
  return (jsxs("span", { children: [index === 0 ? '' : ', ', formatOptionLabel ? formatOptionLabel(ele) : ele[fieldLabel ?? 'label']] }, index));
23031
- }) }) }) : jsx(Fragment$1, { children: jsxs("div", { className: classnames('select-value', { 'd-none': searchTerm }), children: [value ? (formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? 'label']) : '', " "] }) }), !((isMulti ? value?.length > 0 : value) || isDisabled || searchTerm) && jsx("div", { className: classnames('select-placeholder'), children: placeholder }), jsx("div", { className: 'input-container', children: jsx("input", { style: { textAlign: textAlign ?? 'left' }, ref: inputRef, className: classnames('select-input'), readOnly: isDisabled, value: searchTerm, onPaste: (e) => (onPaste && !dropdownOpen) && onPaste(e), onChange: (val) => {
23031
+ }) }) }) : jsx(Fragment$1, { children: jsxs("div", { className: classNames$1('select-value', { 'd-none': searchTerm }), children: [value ? (formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? 'label']) : '', " "] }) }), !((isMulti ? value?.length > 0 : value) || isDisabled || searchTerm) && jsx("div", { className: classNames$1('select-placeholder'), children: placeholder }), jsx("div", { className: 'input-container', children: jsx("input", { style: { textAlign: textAlign ?? 'left' }, ref: inputRef, className: classNames$1('select-input'), readOnly: isDisabled, value: searchTerm, onPaste: (e) => (onPaste && !dropdownOpen) && onPaste(e), onChange: (val) => {
23032
23032
  if (val.target.value) {
23033
23033
  if (loadOptions && val.target.value) {
23034
23034
  setIsLoading(true);
@@ -23042,7 +23042,7 @@ const SelectTable = forwardRef((props, ref) => {
23042
23042
  }
23043
23043
  }
23044
23044
  setSearchTerm(val.target.value);
23045
- }, onKeyDown: (e) => handleOnKeyDown(e) }) })] }), isLoading && jsxs("div", { className: classnames('select-table-indicator d-flex align-items-center'), children: [jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }), jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }), jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" })] }), (isClearable && value && !isDisabled) && jsx("div", { className: classnames('cursor-pointer icon-clear'), onClick: (e) => {
23045
+ }, onKeyDown: (e) => handleOnKeyDown(e) }) })] }), isLoading && jsxs("div", { className: classNames$1('select-table-indicator d-flex align-items-center'), children: [jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }), jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" }), jsx(Spinner$1, { style: { width: 4, height: 4, marginRight: 3 }, type: "grow" })] }), (isClearable && value && !isDisabled) && jsx("div", { className: classNames$1('cursor-pointer icon-clear'), onClick: (e) => {
23046
23046
  handChange(isMulti ? [] : undefined);
23047
23047
  e.stopPropagation();
23048
23048
  }, children: "\u00D7" }), !isDisabled && jsx("div", { className: "select-table-indicator", onMouseDown: (e) => e.preventDefault(), children: jsx("svg", { height: "20", width: "20", viewBox: "0 0 20 20", children: jsx("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }) }) })] }), jsx(DropdownMenu$1, { container: component, className: 'formula-dropdown icon-dropdown p-0', style: {
@@ -23051,12 +23051,12 @@ const SelectTable = forwardRef((props, ref) => {
23051
23051
  position: 'fixed',
23052
23052
  borderRadius: 4,
23053
23053
  zIndex: 9999
23054
- }, children: jsx(DropdownItem$1, { className: classnames('p-0 menu-select-table'), tag: 'div', header: true, children: dropdownOpen && jsx("div", { style: { backgroundColor: 'none' }, onMouseDown: (e) => {
23054
+ }, children: jsx(DropdownItem$1, { className: classNames$1('p-0 menu-select-table'), tag: 'div', header: true, children: dropdownOpen && jsx("div", { style: { backgroundColor: 'none' }, onMouseDown: (e) => {
23055
23055
  if (!isDisabled) {
23056
23056
  inputRef?.current.focus();
23057
23057
  e.preventDefault();
23058
23058
  }
23059
- }, children: jsxs("div", { className: 'r-select-grid', children: [jsx("div", { className: classnames('r-select-gridtable', { 'no-header': noHeader || (columns?.length ?? 0) === 0 }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight$1 }, children: jsx(RenderTable, {}) }), jsxs("div", { className: classnames('r-select-footer', { 'd-none': !(showFooter === true || handleAdd) }), children: [jsxs(Button$1, { outline: true, color: "primary", onClick: () => handleAdd?.(), className: classnames('r-btn d-flex align-items-center', { 'd-none': !handleAdd }), children: [jsx(SvgPlus, { className: "me-50", fontSize: 16 }), t('AddNew'), " (F9)"] }), footerComponent ? footerComponent() : null] })] }) }) }) })] }) }) }));
23059
+ }, children: jsxs("div", { className: 'r-select-grid', children: [jsx("div", { className: classNames$1('r-select-gridtable', { 'no-header': noHeader || (columns?.length ?? 0) === 0 }), ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight$1 }, children: jsx(RenderTable, {}) }), jsxs("div", { className: classNames$1('r-select-footer', { 'd-none': !(showFooter === true || handleAdd) }), children: [jsxs(Button$1, { outline: true, color: "primary", onClick: () => handleAdd?.(), className: classNames$1('r-btn d-flex align-items-center', { 'd-none': !handleAdd }), children: [jsx(SvgPlus, { className: "me-50", fontSize: 16 }), t('AddNew'), " (F9)"] }), footerComponent ? footerComponent() : null] })] }) }) }) })] }) }) }));
23060
23060
  });
23061
23061
 
23062
23062
  const SelectTableBox$1 = (props) => {
@@ -23072,10 +23072,10 @@ const SelectTableBox$1 = (props) => {
23072
23072
  const { isLabel, desciptionLabel, id, classLabel, name, label, required } = props;
23073
23073
  return (jsxs(Fragment, { children: [isLabel === false ? '' : jsxs(Label$1, { id: `label-${id}`, className: classLabel, for: name, children: [t(label ? label : ''), " ", required ? jsx("span", { className: "text-danger", children: "*" }) : ''] }), (!isNullOrUndefined$1(desciptionLabel) && desciptionLabel !== '') ?? jsx(Fragment$1, { children: jsx(UncontrolledTooltip, { target: `label-${id}`, children: t(desciptionLabel ?? '') }) })] }));
23074
23074
  };
23075
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(inLine === false ? 'form-group ' : 'form-row-inline d-flex', 'align', {
23075
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(inLine === false ? 'form-group ' : 'form-row-inline d-flex', 'align', {
23076
23076
  [labelSize ? labelSize : '']: labelSize,
23077
23077
  'form-row-inline-error': errors
23078
- }), children: [renderLabel({ isLabel, desciptionLabel, classLabel, name, label, required, id: id ?? '' }), jsxs("div", { className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => {
23078
+ }), children: [renderLabel({ isLabel, desciptionLabel, classLabel, name, label, required, id: id ?? '' }), jsxs("div", { className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => {
23079
23079
  return (jsx(SelectTable, { ...rest, id: id, value: (isMulti ? value?.length > 0 : value) ? (!isMulti ? (options.find((val) => val[fieldValue ?? 'value'] === value) ?? (defaultValue ?? '')) : value) : (isMulti ? [] : undefined),
23080
23080
  // Giá trị của SelectTable, nếu isMulti là true và value có độ dài lớn hơn 0, hoặc nếu isMulti là false và value có giá trị,
23081
23081
  // thì tìm giá trị tương ứng trong options hoặc sử dụng defaultValue. Nếu không, sử dụng giá trị mặc định tùy thuộc vào isMulti.
@@ -23277,7 +23277,7 @@ const EditForm = forwardRef((props, ref) => {
23277
23277
  });
23278
23278
  }
23279
23279
  }, [inputRef]);
23280
- return (jsx("div", { className: "form-edit", ref: ref, id: id, children: jsx("div", { ref: editFormRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, children: [jsx(DropdownToggle$1, { tag: 'div', children: jsxs("div", { className: classnames('display-value', { 'r-is-focus': isFocus || dropdownOpen }, { 'is-invalid': invalid }), onClick: handleOnClick, children: [template?.(rowData, indexRow) ?? displayValue, jsx(Input$1, { style: {
23280
+ return (jsx("div", { className: "form-edit", ref: ref, id: id, children: jsx("div", { ref: editFormRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, children: [jsx(DropdownToggle$1, { tag: 'div', children: jsxs("div", { className: classNames$1('display-value', { 'r-is-focus': isFocus || dropdownOpen }, { 'is-invalid': invalid }), onClick: handleOnClick, children: [template?.(rowData, indexRow) ?? displayValue, jsx(Input$1, { style: {
23281
23281
  width: template ? 0 : '100%',
23282
23282
  height: template ? 0 : 28,
23283
23283
  lineHeight: template ? 0 : 19,
@@ -23337,7 +23337,7 @@ const ModalHeader = (props) => {
23337
23337
  return jsx(SvgPlus, { fontSize: 17, className: 'me-1' });
23338
23338
  }
23339
23339
  };
23340
- return (jsxs("div", { className: 'modal-header d-flex align-items-center justify-content-between mb-1', children: [jsxs("div", { className: "d-flex align-items-center justify-content-start", children: [jsxs("h5", { className: 'modal-title', children: [handleModalIcon(), " ", t(title)] }), component ? component() : jsx(Fragment$1, {})] }), jsx("div", { className: 'todo-item-action d-flex align-items-center', children: jsx(SvgX, { className: classnames('fw-normal mt-25 cursor-pointer', { 'd-none': !handleModal }), fontSize: 20, onClick: handleModal }) })] }));
23340
+ return (jsxs("div", { className: 'modal-header d-flex align-items-center justify-content-between mb-1', children: [jsxs("div", { className: "d-flex align-items-center justify-content-start", children: [jsxs("h5", { className: 'modal-title', children: [handleModalIcon(), " ", t(title)] }), component ? component() : jsx(Fragment$1, {})] }), jsx("div", { className: 'todo-item-action d-flex align-items-center', children: jsx(SvgX, { className: classNames$1('fw-normal mt-25 cursor-pointer', { 'd-none': !handleModal }), fontSize: 20, onClick: handleModal }) })] }));
23341
23341
  };
23342
23342
 
23343
23343
  const Sidebar = (props) => {
@@ -23363,16 +23363,16 @@ const Sidebar = (props) => {
23363
23363
  toggleSidebar();
23364
23364
  }, 400);
23365
23365
  };
23366
- return (jsxs("div", { tabIndex: 0, className: classnames({ 'd-none': !open }), onKeyDown: (e) => {
23366
+ return (jsxs("div", { tabIndex: 0, className: classNames$1({ 'd-none': !open }), onKeyDown: (e) => {
23367
23367
  if ((!keyboard) && e.code === 'Escape' && flag) {
23368
23368
  handClose();
23369
23369
  e.stopPropagation();
23370
23370
  e.preventDefault();
23371
23371
  }
23372
- }, children: [jsx("div", { className: classnames('offcanvas-backdrop fade', {
23372
+ }, children: [jsx("div", { className: classNames$1('offcanvas-backdrop fade', {
23373
23373
  'd-none': !flag || hiddenBackground,
23374
23374
  show: flag
23375
- }), style: { zIndex: 1056 }, onClick: handClose }), jsxs("div", { className: classnames('r-sidebar', `customizer-${width ?? 600}`, {
23375
+ }), style: { zIndex: 1056 }, onClick: handClose }), jsxs("div", { className: classNames$1('r-sidebar', `customizer-${width ?? 600}`, {
23376
23376
  open: flag,
23377
23377
  fullscreen: isFullScreen
23378
23378
  }), style: { zIndex: 1057 }, children: [jsxs("div", { style: {
@@ -23388,7 +23388,7 @@ const Sidebar = (props) => {
23388
23388
  cursor: 'pointer',
23389
23389
  zIndex: 9,
23390
23390
  marginLeft: 7
23391
- }, className: classnames({ 'd-none': hiddenFullScreenButton }), onClick: () => {
23391
+ }, className: classNames$1({ 'd-none': hiddenFullScreenButton }), onClick: () => {
23392
23392
  setIsFullScreen(!isFullScreen);
23393
23393
  }, children: [jsx(SvgChevronLeft, { className: `${isFullScreen ? 'd-none' : ''}`, fontSize: 16 }), jsx(SvgChevronRight, { className: `${!isFullScreen ? 'd-none' : ''}`, fontSize: 15 })] }), children] })] }));
23394
23394
  };
@@ -23497,7 +23497,7 @@ const SidebarSetColumn = (props) => {
23497
23497
  }
23498
23498
  ];
23499
23499
  const renderHeaderCol = (col, indexCol) => {
23500
- return (jsx(Fragment, { children: col.visible !== false && jsx("th", { className: classnames(`r-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
23500
+ return (jsx(Fragment, { children: col.visible !== false && jsx("th", { className: classNames$1(`r-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
23501
23501
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.width,
23502
23502
  minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.minWidth,
23503
23503
  top: `${0 * 42}px`,
@@ -23510,12 +23510,12 @@ const SidebarSetColumn = (props) => {
23510
23510
  return (jsxs(Sidebar, { open: openSidebar, toggleSidebar: handleCancel, width: 700, children: [jsx(ModalHeader, { typeModal: 'Edit', handleModal: handleCancel, title: 'Column setup' }), jsx("div", { className: "ms-2 react-table-edit", children: jsx("div", { className: 'r-grid', children: jsx("div", { className: "r-gridtable", style: { height: windowSize.innerHeight - 120 }, children: jsxs("table", { style: { width: '100%' }, children: [jsx("thead", { className: 'r-gridheader', children: jsx("tr", { className: "r-row", role: "row", children: columns.map((col, index) => {
23511
23511
  return (renderHeaderCol(col, index));
23512
23512
  }) }) }), jsx("tbody", { className: 'r-gridcontent', children: dataSource?.map((row, indexRow) => {
23513
- return (jsx("tr", { className: classnames('r-row', { 'last-row': indexRow === dataSource.length - 1 }, { 'fisrt-row': indexRow === 0 }), children: columns.map((col, indexCol) => {
23513
+ return (jsx("tr", { className: classNames$1('r-row', { 'last-row': indexRow === dataSource.length - 1 }, { 'fisrt-row': indexRow === 0 }), children: columns.map((col, indexCol) => {
23514
23514
  let value = row[col.field];
23515
23515
  if (col.editType === 'numeric' || (col.editTypeCondition && col.editTypeCondition(row) === 'numeric')) {
23516
23516
  value = formartNumberic(row[col.field], ',', '.', col.numericSettings?.fraction, true) ?? 0;
23517
23517
  }
23518
- return (jsx(Fragment, { children: col.visible !== false && jsx("td", { className: classnames(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'r-active': indexFocus === indexRow }), style: {
23518
+ return (jsx(Fragment, { children: col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'r-active': indexFocus === indexRow }), style: {
23519
23519
  padding: 0,
23520
23520
  textAlign: col.textAlign ? col.textAlign : 'left'
23521
23521
  }, onFocus: (e) => {
@@ -23530,9 +23530,9 @@ const SidebarSetColumn = (props) => {
23530
23530
  }
23531
23531
  e.stopPropagation();
23532
23532
  }
23533
- }, children: jsx("div", { className: classnames('r-rowcell-div'), style: {
23533
+ }, children: jsx("div", { className: classNames$1('r-rowcell-div'), style: {
23534
23534
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : 'auto'
23535
- }, children: jsx("div", { className: classnames('r-rowcell-content'), style: {
23535
+ }, children: jsx("div", { className: classNames$1('r-rowcell-content'), style: {
23536
23536
  margin: '7px 9px'
23537
23537
  }, children: jsx("div", { className: "r-cell-text", children: col.template ? col.template(row, indexRow) : value }) }) }) }, `col-${indexRow}-${indexCol}`) }, indexCol));
23538
23538
  }) }, `row-${indexRow}`));
@@ -23555,7 +23555,7 @@ const CommandElement = (props) => {
23555
23555
  const { commandItems, rowData, indexRow, handleCommandClick, indexFocus, setIndexFocus } = props;
23556
23556
  const { t } = useTranslation();
23557
23557
  return (jsx(Fragment, { children: jsx("div", { className: 'd-flex align-items-center', style: { columnGap: 10 }, children: commandItems.map((item, index) => {
23558
- return (jsxs(Button$1, { id: `command-item-${indexRow}-${index}`, tabIndex: -1, style: { padding: '5px', minWidth: 45, height: '100%' }, className: classnames('command-item', {
23558
+ return (jsxs(Button$1, { id: `command-item-${indexRow}-${index}`, tabIndex: -1, style: { padding: '5px', minWidth: 45, height: '100%' }, className: classNames$1('command-item', {
23559
23559
  'btn-icon': item.tooltip === ''
23560
23560
  }), color: item.color ? item.color : '#000', onClick: (e) => {
23561
23561
  handleCommandClick(item.id, rowData, indexRow);
@@ -41779,7 +41779,7 @@ function styleInject(css, ref) {
41779
41779
  var css_248z$1 = ".react-resizable {\n position: relative;\n}\n.react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}";
41780
41780
  styleInject(css_248z$1);
41781
41781
 
41782
- const HeaderTableCol = (props) => {
41782
+ const HeaderTableCol$1 = (props) => {
41783
41783
  const { selectEnable, dataSource, setSelectedRows, col, indexCol, indexParent, objWidthFixLeft, objWidthFixRight, totalCount, selectedRows, column, setColumn, fisrtObjWidthFixRight, lastObjWidthFixLeft, isMulti } = props;
41784
41784
  const { t } = useTranslation();
41785
41785
  const handleResize = (e, { size }) => {
@@ -41797,14 +41797,14 @@ const HeaderTableCol = (props) => {
41797
41797
  setColumn(newColumns);
41798
41798
  }
41799
41799
  };
41800
- return (jsx(Fragment, { children: col.visible !== false && (jsx(Resizable, { className: "r-resize", width: typeof col.width === 'number' ? col.width : Number((col.width ?? "").replaceAll(new RegExp(`[^0-9]`, "g"), '')), height: 0, onResize: handleResize, draggableOpts: { enableUserSelectHack: false }, children: jsx("th", { rowSpan: col.rowspan !== 1 ? col.rowspan : undefined, colSpan: col.columns?.filter(x => x.visible !== false)?.length ?? 1, className: classnames(`r-headercell fix-${col.fixedType}`, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'cell-fixed': col.fixedType }), style: {
41800
+ return (jsx(Fragment, { children: col.visible !== false && (jsx(Resizable, { className: "r-resize", width: typeof col.width === 'number' ? col.width : Number((col.width ?? "").replaceAll(new RegExp(`[^0-9]`, "g"), '')), height: 0, onResize: handleResize, draggableOpts: { enableUserSelectHack: false }, children: jsx("th", { rowSpan: col.rowspan !== 1 ? col.rowspan : undefined, colSpan: col.columns?.filter(x => x.visible !== false)?.length ?? 1, className: classNames$1(`r-headercell fix-${col.fixedType}`, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'cell-fixed': col.fixedType }), style: {
41801
41801
  top: `${indexParent * 42}px`,
41802
41802
  left: col.fixedType === 'left' ? objWidthFixLeft[col.index ?? 0] : undefined,
41803
41803
  right: col.fixedType === 'right' ? objWidthFixRight[col.index ?? 0] : undefined,
41804
41804
  width: col.width ? typeof col.width === 'number' ? col.width : col.width?.includes('px') || col.width?.includes('%') ? col.width : `${col.width}px` : 'auto',
41805
41805
  minWidth: col.fixedType ? col.width : col.minWidth ? typeof col.minWidth === 'number' ? col.minWidth : col.minWidth?.includes('px') || col.minWidth?.includes('%') ? col.minWidth : `${col.minWidth}px` : 'auto',
41806
41806
  maxWidth: col.fixedType ? col.width : col.maxWidth ? typeof col.maxWidth === 'number' ? col.maxWidth : col.maxWidth?.includes('px') || col.maxWidth?.includes('%') ? col.maxWidth : `${col.maxWidth}px` : 'auto'
41807
- }, children: jsxs("div", { style: { justifyContent: col.textAlign ?? 'left' }, className: classnames('r-headercell-div'), children: [col.field === 'checkbox' && (jsx(Input$1, { checked: !!(totalCount > 0 && selectedRows?.length >= totalCount), type: "checkbox", className: classnames('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: col.textAlign ?? 'left', marginTop: 6 }, onChange: (e) => {
41807
+ }, children: jsxs("div", { style: { justifyContent: col.textAlign ?? 'left' }, className: classNames$1('r-headercell-div'), children: [col.field === 'checkbox' && (jsx(Input$1, { checked: !!(totalCount > 0 && selectedRows?.length >= totalCount), type: "checkbox", className: classNames$1('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: col.textAlign ?? 'left', marginTop: 6 }, onChange: (e) => {
41808
41808
  if (selectEnable) {
41809
41809
  if (e.target.checked) {
41810
41810
  setSelectedRows(dataSource.map((item) => { return item; }));
@@ -41931,7 +41931,7 @@ const SelectTableTree = forwardRef((props, ref) => {
41931
41931
  };
41932
41932
  // Hàm để render header của cột
41933
41933
  const renderHeaderCol = (col, indexCol) => {
41934
- return (jsx(Fragment, { children: col.visible !== false && (jsx("th", { className: classnames(`r-select-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
41934
+ return (jsx(Fragment, { children: col.visible !== false && (jsx("th", { className: classNames$1(`r-select-headercell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
41935
41935
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.width,
41936
41936
  minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.minWidth,
41937
41937
  maxWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : (col.width ? col.width : (col.minWidth ?? 'auto'))) : col.minWidth,
@@ -41982,7 +41982,7 @@ const SelectTableTree = forwardRef((props, ref) => {
41982
41982
  const RenderElement = React__default.memo((props) => {
41983
41983
  const { indexRow, row, isSelected, level = 0 } = props;
41984
41984
  const [expanded, setExpanded] = useState(row.expanded);
41985
- return (jsxs(Fragment$1, { children: [jsxs("tr", { id: `row-select-table-${indexRow}`, className: classnames('r-select-row', { 'fisrt-row': indexRow === 0 && level === 0 }), children: [isMulti && jsxs("td", { className: classnames(`r-select-rowcell`, { 'r-select-active': !isMulti && value && isSelected }), style: {
41985
+ return (jsxs(Fragment$1, { children: [jsxs("tr", { id: `row-select-table-${indexRow}`, className: classNames$1('r-select-row', { 'fisrt-row': indexRow === 0 && level === 0 }), children: [isMulti && jsxs("td", { className: classNames$1(`r-select-rowcell`, { 'r-select-active': !isMulti && value && isSelected }), style: {
41986
41986
  textAlign: 'center',
41987
41987
  paddingLeft: (level * 15) + (row[fieldChildren ?? 'children']?.length > 0 ? 0 : 10)
41988
41988
  }, onClick: (e) => {
@@ -42029,7 +42029,7 @@ const SelectTableTree = forwardRef((props, ref) => {
42029
42029
  setExpanded(true);
42030
42030
  }
42031
42031
  e.stopPropagation();
42032
- }, fontSize: 18, className: classnames('me-50 pb-0 r-icon-expand', { 'is-open': expanded }) }), jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", onChange: () => { } })] }), (columns ? columns : defaultColumns).map((col, indexCol) => {
42032
+ }, fontSize: 18, className: classNames$1('me-50 pb-0 r-icon-expand', { 'is-open': expanded }) }), jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", onChange: () => { } })] }), (columns ? columns : defaultColumns).map((col, indexCol) => {
42033
42033
  let valueDisplay = row[col.field];
42034
42034
  if (col.type === 'numeric' || (col.typeCondition && col.typeCondition(row) === 'numeric')) {
42035
42035
  valueDisplay = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? '.', formatSetting?.thousandSeparator ?? ',', col.fraction ?? 0, true) ?? 0;
@@ -42040,7 +42040,7 @@ const SelectTableTree = forwardRef((props, ref) => {
42040
42040
  else if (col.type === 'datetime') {
42041
42041
  valueDisplay = valueDisplay ? formatDateTime(valueDisplay, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
42042
42042
  }
42043
- return (jsxs(Fragment, { children: [col.visible !== false && jsxs("td", { id: `select-${id}-${indexRow}-${indexCol}`, className: classnames(`r-select-rowcell`, { 'r-select-active': !isMulti && value && isSelected }), style: {
42043
+ return (jsxs(Fragment, { children: [col.visible !== false && jsxs("td", { id: `select-${id}-${indexRow}-${indexCol}`, className: classNames$1(`r-select-rowcell`, { 'r-select-active': !isMulti && value && isSelected }), style: {
42044
42044
  paddingLeft: 9 + (indexCol === 0 && !isMulti ? (level * 10) + (row[fieldChildren ?? 'children']?.length > 0 || level === 0 ? 0 : 15) : 0),
42045
42045
  textAlign: col.textAlign ? col.textAlign : 'left'
42046
42046
  }, onClick: (e) => {
@@ -42094,7 +42094,7 @@ const SelectTableTree = forwardRef((props, ref) => {
42094
42094
  setExpanded(true);
42095
42095
  }
42096
42096
  e.stopPropagation();
42097
- }, fontSize: 18, className: classnames('me-50 r-icon-expand', { 'is-open': expanded }) }), col.template ? col.template(row, indexRow) : (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : valueDisplay)] }, `col-${indexRow}-${indexCol}`), checkOverflow(indexRow, indexCol) && jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `select-${id}-${indexRow}-${indexCol}`, children: col.template ? col.template(row, indexRow) : (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : valueDisplay) })] }, indexCol));
42097
+ }, fontSize: 18, className: classNames$1('me-50 r-icon-expand', { 'is-open': expanded }) }), col.template ? col.template(row, indexRow) : (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : valueDisplay)] }, `col-${indexRow}-${indexCol}`), checkOverflow(indexRow, indexCol) && jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `select-${id}-${indexRow}-${indexCol}`, children: col.template ? col.template(row, indexRow) : (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : valueDisplay) })] }, indexCol));
42098
42098
  })] }, `row-${indexRow}`), row[fieldChildren ?? 'children'] && row.expanded && row[fieldChildren ?? 'children'].map((child, indexChild) => {
42099
42099
  if (checkSearch(searchTerm, child, (columns ? columns : defaultColumns))) {
42100
42100
  const isSelectedChild = value && (isMulti ? value?.some((x) => x === child[fieldValue ?? 'value']) : value[fieldValue ?? 'value'] === child[fieldValue ?? 'value']);
@@ -42105,7 +42105,7 @@ const SelectTableTree = forwardRef((props, ref) => {
42105
42105
  const RenderTable = (props) => {
42106
42106
  let countDisplay = 0;
42107
42107
  return (jsxs(Fragment$1, { children: [jsxs("table", { style: { width: '100%' }, children: [!(noHeader && (columns?.length ?? 0) > 0) &&
42108
- jsx("thead", { className: 'r-select-gridheader', children: jsxs("tr", { className: "r-select-row", role: "row", children: [isMulti && jsx("th", { className: classnames(`r-select-headercell checkbox-column`), style: { width: 40, minWidth: 40, maxWidth: 100, top: `0px` }, children: jsx("div", { style: { justifyContent: 'center' }, className: classnames('r-select-headercell-div'), children: jsx(Input$1, { checked: isSelectedAll, type: "checkbox", onClick: (e) => {
42108
+ jsx("thead", { className: 'r-select-gridheader', children: jsxs("tr", { className: "r-select-row", role: "row", children: [isMulti && jsx("th", { className: classNames$1(`r-select-headercell checkbox-column`), style: { width: 40, minWidth: 40, maxWidth: 100, top: `0px` }, children: jsx("div", { style: { justifyContent: 'center' }, className: classNames$1('r-select-headercell-div'), children: jsx(Input$1, { checked: isSelectedAll, type: "checkbox", onClick: (e) => {
42109
42109
  if (isMulti) {
42110
42110
  if (isSelectedAll) {
42111
42111
  onChange([]);
@@ -42115,7 +42115,7 @@ const SelectTableTree = forwardRef((props, ref) => {
42115
42115
  }
42116
42116
  e.stopPropagation();
42117
42117
  }
42118
- }, readOnly: true, className: classnames('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: 'center', marginTop: 6 } }) }) }), (columns ? columns : defaultColumns).map((col, index) => {
42118
+ }, readOnly: true, className: classNames$1('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: 'center', marginTop: 6 } }) }) }), (columns ? columns : defaultColumns).map((col, index) => {
42119
42119
  return (renderHeaderCol(col, index));
42120
42120
  })] }) }), (options.length > 0) && jsx(Fragment$1, { children: jsx("tbody", { className: 'r-select-gridcontent', children: options?.map((row, indexRow) => {
42121
42121
  if (checkSearch(searchTerm, row, (columns ? columns : defaultColumns))) {
@@ -42141,17 +42141,17 @@ const SelectTableTree = forwardRef((props, ref) => {
42141
42141
  traverse(tree);
42142
42142
  return records;
42143
42143
  };
42144
- return (jsx("div", { className: classnames('react-select-table', { 'is-invalid': invalid }), ref: ref, id: id, children: jsx("div", { ref: selectTableRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, onMouseDown: (e) => e.preventDefault(), children: [jsxs(DropdownToggle$1, { onClick: (e) => {
42144
+ return (jsx("div", { className: classNames$1('react-select-table', { 'is-invalid': invalid }), ref: ref, id: id, children: jsx("div", { ref: selectTableRef, children: jsxs(Dropdown$1, { isOpen: dropdownOpen, toggle: () => { }, onMouseDown: (e) => e.preventDefault(), children: [jsxs(DropdownToggle$1, { onClick: (e) => {
42145
42145
  if (!isDisabled) {
42146
42146
  inputRef?.current.focus();
42147
42147
  handleOpenClose();
42148
42148
  }
42149
42149
  e.preventDefault();
42150
- }, tag: 'div', style: { width: '100%' }, className: classnames('select-table-control', { 'r-select-is-disabled': isDisabled }, { 'r-select-is-open': dropdownOpen }, { 'r-select-is-focus': isFocus }, { 'r-select-is-invalid': invalid }), children: [jsxs("div", { className: "select-table-container", children: [isMulti ? jsx(Fragment$1, { children: jsx("div", { className: classnames('select-value is-mutil', { 'd-none': searchTerm }), children: getSelectedRecords(options, value).map((ele, index) => {
42150
+ }, tag: 'div', style: { width: '100%' }, className: classNames$1('select-table-control', { 'r-select-is-disabled': isDisabled }, { 'r-select-is-open': dropdownOpen }, { 'r-select-is-focus': isFocus }, { 'r-select-is-invalid': invalid }), children: [jsxs("div", { className: "select-table-container", children: [isMulti ? jsx(Fragment$1, { children: jsx("div", { className: classNames$1('select-value is-mutil', { 'd-none': searchTerm }), children: getSelectedRecords(options, value).map((ele, index) => {
42151
42151
  return (jsxs("span", { children: [index === 0 ? '' : ', ', ele[fieldLabel ?? 'label']] }, index));
42152
- }) }) }) : jsx(Fragment$1, { children: jsxs("div", { className: classnames('select-value', { 'd-none': searchTerm }), children: [value ? (formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? 'label']) : '', " "] }) }), !((isMulti ? value?.length > 0 : value) || isDisabled || searchTerm) && jsx("div", { className: classnames('select-placeholder'), children: placeholder }), jsx("div", { className: 'input-container', children: jsx("input", { style: { textAlign: textAlign ?? 'left' }, ref: inputRef, className: classnames('select-input'), readOnly: isDisabled, value: searchTerm, onPaste: (e) => (onPaste && !dropdownOpen) && onPaste(e), onChange: (val) => {
42152
+ }) }) }) : jsx(Fragment$1, { children: jsxs("div", { className: classNames$1('select-value', { 'd-none': searchTerm }), children: [value ? (formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? 'label']) : '', " "] }) }), !((isMulti ? value?.length > 0 : value) || isDisabled || searchTerm) && jsx("div", { className: classNames$1('select-placeholder'), children: placeholder }), jsx("div", { className: 'input-container', children: jsx("input", { style: { textAlign: textAlign ?? 'left' }, ref: inputRef, className: classNames$1('select-input'), readOnly: isDisabled, value: searchTerm, onPaste: (e) => (onPaste && !dropdownOpen) && onPaste(e), onChange: (val) => {
42153
42153
  setSearchTerm(val.target.value);
42154
- }, onKeyDown: (e) => handleOnKeyDown(e) }) })] }), (isClearable && value && !isDisabled) && jsx("div", { className: classnames('cursor-pointer icon-clear'), onClick: (e) => {
42154
+ }, onKeyDown: (e) => handleOnKeyDown(e) }) })] }), (isClearable && value && !isDisabled) && jsx("div", { className: classNames$1('cursor-pointer icon-clear'), onClick: (e) => {
42155
42155
  onChange(isMulti ? [] : undefined);
42156
42156
  e.stopPropagation();
42157
42157
  }, children: "\u00D7" }), !isDisabled && jsx("div", { className: "select-table-indicator", onMouseDown: (e) => e.preventDefault(), children: jsx("svg", { height: "20", width: "20", viewBox: "0 0 20 20", children: jsx("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }) }) })] }), jsx(DropdownMenu$1, { container: component, className: 'formula-dropdown icon-dropdown p-0', style: {
@@ -42159,12 +42159,12 @@ const SelectTableTree = forwardRef((props, ref) => {
42159
42159
  position: 'fixed',
42160
42160
  borderRadius: 4,
42161
42161
  zIndex: 9999
42162
- }, children: jsx(DropdownItem$1, { className: classnames('p-0 menu-select-table'), style: { borderRadius: '6px' }, tag: 'div', header: true, children: dropdownOpen && jsx("div", { onMouseDown: (e) => {
42162
+ }, children: jsx(DropdownItem$1, { className: classNames$1('p-0 menu-select-table'), style: { borderRadius: '6px' }, tag: 'div', header: true, children: dropdownOpen && jsx("div", { onMouseDown: (e) => {
42163
42163
  if (!isDisabled) {
42164
42164
  inputRef?.current.focus();
42165
42165
  e.preventDefault();
42166
42166
  }
42167
- }, children: jsxs("div", { className: 'r-select-grid r-select-tree-grid', children: [jsx("div", { className: "r-select-gridtable ", ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: jsx(RenderTable, {}) }), jsxs("div", { className: classnames('r-select-footer', { 'd-none': !(showFooter === true || handleAdd || isMulti) }), children: [jsxs(Button$1, { outline: true, color: "primary", onClick: handleAdd, className: classnames('r-btn d-flex align-items-center', { 'd-none': !handleAdd }), children: [jsx(SvgPlus, { className: "me-50", fontSize: 16 }), t('AddNew'), " (F9)"] }), isMulti && jsx("div", { className: "ms-50 text-primary h-100 d-flex align-items-center", onClick: handleAdd, children: t('countSelected', { item: value?.length ?? 0 }) }), footerComponent ? footerComponent() : null] })] }) }) }) })] }) }) }));
42167
+ }, children: jsxs("div", { className: 'r-select-grid r-select-tree-grid', children: [jsx("div", { className: "r-select-gridtable ", ref: selectMenuTableRef, style: { width: menuWidth, minWidth: selectTableRef?.current?.clientWidth, maxHeight: maxHeight ?? defaultMaxHeight }, children: jsx(RenderTable, {}) }), jsxs("div", { className: classNames$1('r-select-footer', { 'd-none': !(showFooter === true || handleAdd || isMulti) }), children: [jsxs(Button$1, { outline: true, color: "primary", onClick: handleAdd, className: classNames$1('r-btn d-flex align-items-center', { 'd-none': !handleAdd }), children: [jsx(SvgPlus, { className: "me-50", fontSize: 16 }), t('AddNew'), " (F9)"] }), isMulti && jsx("div", { className: "ms-50 text-primary h-100 d-flex align-items-center", onClick: handleAdd, children: t('countSelected', { item: value?.length ?? 0 }) }), footerComponent ? footerComponent() : null] })] }) }) }) })] }) }) }));
42168
42168
  });
42169
42169
 
42170
42170
  const PagingComponent = ({ totalItem, pageSize, currentPage, onChangePage, pageOptions, onChangePageSize }) => {
@@ -42180,14 +42180,14 @@ const PagingComponent = ({ totalItem, pageSize, currentPage, onChangePage, pageO
42180
42180
  const renderPageNumber = (number) => {
42181
42181
  const arr = [];
42182
42182
  for (let index = ((number - 1) * 5) + 1; index <= number * 5 && index <= Math.floor(totalItem / pageSize) + (Math.floor(totalItem / pageSize) === totalItem / pageSize ? 0 : 1); index++) {
42183
- arr.push(jsx("div", { className: classnames('r-number', { 'r-active': index === currentPage }), onClick: () => { onChangePage({ totalItem, pageSize, currentPage: index, old: currentPage }); }, children: index }, `page-${index}`));
42183
+ arr.push(jsx("div", { className: classNames$1('r-number', { 'r-active': index === currentPage }), onClick: () => { onChangePage({ totalItem, pageSize, currentPage: index, old: currentPage }); }, children: index }, `page-${index}`));
42184
42184
  }
42185
42185
  return (arr);
42186
42186
  };
42187
- return (jsx(Fragment, { children: jsxs("div", { className: "r-pager", children: [jsxs("div", { className: "r-pagercontainer", children: [jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || currentPage === 1, onClick: () => onChangePage({ totalItem, pageSize, currentPage: 1, old: currentPage }), children: jsx(SvgChevronsLeft, { fontSize: 16 }) }), jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || currentPage === 1, onClick: () => onChangePage({ totalItem, pageSize, currentPage: currentPage - 1, old: currentPage }), children: jsx(SvgChevronLeft, { fontSize: 16 }) }), jsx("button", { className: classnames('r-button', { 'd-none': currentPageNumber === 1 }), type: "button", onClick: () => {
42187
+ return (jsx(Fragment, { children: jsxs("div", { className: "r-pager", children: [jsxs("div", { className: "r-pagercontainer", children: [jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || currentPage === 1, onClick: () => onChangePage({ totalItem, pageSize, currentPage: 1, old: currentPage }), children: jsx(SvgChevronsLeft, { fontSize: 16 }) }), jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || currentPage === 1, onClick: () => onChangePage({ totalItem, pageSize, currentPage: currentPage - 1, old: currentPage }), children: jsx(SvgChevronLeft, { fontSize: 16 }) }), jsx("button", { className: classNames$1('r-button', { 'd-none': currentPageNumber === 1 }), type: "button", onClick: () => {
42188
42188
  setCurrentPageNumber(currentPageNumber - 1);
42189
42189
  onChangePage({ totalItem, pageSize, currentPage: ((currentPageNumber - 2) * 5) + 1, old: currentPage });
42190
- }, children: "..." }), renderPageNumber(currentPageNumber), jsx("button", { className: classnames('r-button', { 'd-none': currentPageNumber * 5 >= countPage }), type: "button", onClick: () => {
42190
+ }, children: "..." }), renderPageNumber(currentPageNumber), jsx("button", { className: classNames$1('r-button', { 'd-none': currentPageNumber * 5 >= countPage }), type: "button", onClick: () => {
42191
42191
  setCurrentPageNumber(currentPageNumber + 1);
42192
42192
  onChangePage({ totalItem, pageSize, currentPage: (currentPageNumber * 5) + 1, old: currentPage });
42193
42193
  }, children: "..." }), jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || countPage === currentPage, onClick: () => onChangePage({ totalItem, pageSize, currentPage: currentPage + 1, old: currentPage }), children: jsx(SvgChevronRight, { fontSize: 16 }) }), jsx("button", { className: "r-button", type: "button", disabled: countPage <= 1 || countPage === currentPage, onClick: () => onChangePage({ totalItem, pageSize, currentPage: Math.floor(totalItem / pageSize) + (Math.floor(totalItem / pageSize) === totalItem / pageSize ? 0 : 1), old: currentPage }), children: jsx(SvgChevronsRight, { fontSize: 16 }) }), jsx("div", { className: "r-pagesize", children: jsx(SelectTable, { value: { value: pageSize, label: pageSize }, noHeader: true, options: pageOptions.map((item) => ({ value: item, label: item })), onChange: (val) => {
@@ -42302,13 +42302,13 @@ editDisable, addDisable, toolbarSetting, buttonSetting) => {
42302
42302
  };
42303
42303
 
42304
42304
  const ToolbarBottom = ({ handleAdd, handleDuplicate, handleInsertBefore, handleInsertAfter, handleDeleteAll, setOpenPopupSetupColumn, indexFocus, editDisable, addDisable, buttonSetting, toolbarSetting, headerColumns, t }) => {
42305
- return (jsx("div", { id: "table_custom_bottom_toolbar", className: "r-toolbar r-toolbar-bottom", role: "toolbar", "aria-disabled": "false", "aria-haspopup": "false", "aria-orientation": "horizontal", children: jsxs("div", { className: "r-toolbar-items", children: [jsxs("div", { className: "r-toolbar-left", children: [jsxs("div", { className: classnames('r-toolbar-item d-flex', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: [jsx(Button$1, { color: 'success', outline: true, onClick: () => handleAdd(1), className: 'd-flex', children: t('Add item') }), jsxs(UncontrolledDropdown, { className: 'nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', className: 'me-0 d-flex', children: jsx(Button$1, { type: 'button', color: 'success', outline: true, style: { marginLeft: -1 }, className: 'px-25', children: jsx("svg", { fill: '#28c76f', height: "15", width: "20", viewBox: "0 0 20 20", children: jsx("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }) }) }) }), jsxs(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown p-0', style: { width: 60 }, children: [jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(10), children: "Th\u00EAm 10 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(20), children: "Th\u00EAm 20 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(30), children: "Th\u00EAm 30 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(40), children: "Th\u00EAm 40 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(50), children: "Th\u00EAm 50 h\u00E0ng" })] })] })] }), (indexFocus ?? -1) > -1 ? jsxs(Fragment$1, { children: [jsx("div", { className: classnames('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.duplicateDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: () => { handleDuplicate(); }, className: 'd-flex', children: t('Duplicate') }) }), jsx("div", { className: classnames('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.insertBeforeDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: handleInsertBefore, className: 'd-flex', children: t('Insert item before') }) }), jsx("div", { className: classnames('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.insertAfterDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: handleInsertAfter, className: 'd-flex', children: t('Insert item after') }) })] }) : jsx(Fragment$1, { children: " " }), jsx("div", { className: classnames('r-toolbar-item', { 'd-none': editDisable || buttonSetting?.deleteAllDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'primary', outline: true, onClick: handleDeleteAll, className: 'd-flex', children: t('Delete all item') }) }), toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
42305
+ return (jsx("div", { id: "table_custom_bottom_toolbar", className: "r-toolbar r-toolbar-bottom", role: "toolbar", "aria-disabled": "false", "aria-haspopup": "false", "aria-orientation": "horizontal", children: jsxs("div", { className: "r-toolbar-items", children: [jsxs("div", { className: "r-toolbar-left", children: [jsxs("div", { className: classNames$1('r-toolbar-item d-flex', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: [jsx(Button$1, { color: 'success', outline: true, onClick: () => handleAdd(1), className: 'd-flex', children: t('Add item') }), jsxs(UncontrolledDropdown, { className: 'nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', className: 'me-0 d-flex', children: jsx(Button$1, { type: 'button', color: 'success', outline: true, style: { marginLeft: -1 }, className: 'px-25', children: jsx("svg", { fill: '#28c76f', height: "15", width: "20", viewBox: "0 0 20 20", children: jsx("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" }) }) }) }), jsxs(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown p-0', style: { width: 60 }, children: [jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(10), children: "Th\u00EAm 10 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(20), children: "Th\u00EAm 20 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(30), children: "Th\u00EAm 30 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(40), children: "Th\u00EAm 40 h\u00E0ng" }), jsx(DropdownItem$1, { className: 'py-25', tag: 'div', onClick: () => handleAdd(50), children: "Th\u00EAm 50 h\u00E0ng" })] })] })] }), (indexFocus ?? -1) > -1 ? jsxs(Fragment$1, { children: [jsx("div", { className: classNames$1('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.duplicateDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: () => { handleDuplicate(); }, className: 'd-flex', children: t('Duplicate') }) }), jsx("div", { className: classNames$1('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.insertBeforeDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: handleInsertBefore, className: 'd-flex', children: t('Insert item before') }) }), jsx("div", { className: classNames$1('r-toolbar-item', { 'd-none': editDisable || addDisable || buttonSetting?.insertAfterDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'success', outline: true, onClick: handleInsertAfter, className: 'd-flex', children: t('Insert item after') }) })] }) : jsx(Fragment$1, { children: " " }), jsx("div", { className: classNames$1('r-toolbar-item', { 'd-none': editDisable || buttonSetting?.deleteAllDisable }), "aria-disabled": "false", children: jsx(Button$1, { color: 'primary', outline: true, onClick: handleDeleteAll, className: 'd-flex', children: t('Delete all item') }) }), toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
42306
42306
  return ((item.align === 'left') ? jsx("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-left-${index}`) : '');
42307
42307
  })] }), jsx("div", { className: "r-toolbar-center", children: toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
42308
42308
  return ((item.align === 'center') ? jsx("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-center-${index}`) : '');
42309
42309
  }) }), jsxs("div", { className: "r-toolbar-right", children: [toolbarSetting?.toolbarBottomOptions?.map((item, index) => {
42310
42310
  return ((item.align === 'right') ? jsx("div", { className: "r-toolbar-item", "aria-disabled": "false", children: item.template() }, `toolbar-bottom-right-${index}`) : '');
42311
- }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': headerColumns.length > 1 }), "aria-disabled": "false", children: jsx(SvgSettings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }), jsx("div", { className: classnames('r-toolbar-item me-25', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: jsxs(UncontrolledDropdown, { className: 'dropdown-user nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', color: "primary", onClick: (e) => e.preventDefault(), children: jsx(SvgInfo, { className: "cursor-pointer text-primary" }) }), jsx(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown', children: jsxs("ul", { className: "mb-0 pe-50", children: [jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\u00E2n b\u1EA3n" }), jsx("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \u00F4 v\u00E0 Ctrl + V \u0111\u1EC3 d\u00E1n th\u00F4ng tin t\u1EEB excel" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\u00E9p h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\u00E1n h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl ho\u1EB7c Alt + Shift + \u2193 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng d\u01B0\u1EDBi" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl ho\u1EB7c Alt + Shift + \u2191 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng tr\u00EAn" })] }) })] }) })] })] }) }));
42311
+ }), jsx("div", { className: classNames$1('r-toolbar-item me-25', { 'd-none': headerColumns.length > 1 }), "aria-disabled": "false", children: jsx(SvgSettings, { className: "text-primary cursor-pointer", onClick: () => setOpenPopupSetupColumn(true) }) }), jsx("div", { className: classNames$1('r-toolbar-item me-25', { 'd-none': editDisable || addDisable }), "aria-disabled": "false", children: jsxs(UncontrolledDropdown, { className: 'dropdown-user nav-item', children: [jsx(DropdownToggle$1, { tag: 'div', color: "primary", onClick: (e) => e.preventDefault(), children: jsx(SvgInfo, { className: "cursor-pointer text-primary" }) }), jsx(DropdownMenu$1, { className: 'formula-dropdown icon-dropdown', children: jsxs("ul", { className: "mb-0 pe-50", children: [jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + D \u0111\u1EC3 nh\u00E2n b\u1EA3n" }), jsx("li", { style: { fontSize: 13 }, children: "Ch\u1ECDn \u00F4 v\u00E0 Ctrl + V \u0111\u1EC3 d\u00E1n th\u00F4ng tin t\u1EEB excel" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + C \u0111\u1EC3 sao ch\u00E9p h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n v\u00E0o c\u1ED9t STT \u0111\u1EC3 ch\u1ECDn h\u00E0ng v\u00E0 nh\u1EA5n Ctrl + V \u0111\u1EC3 d\u00E1n h\u00E0ng" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl ho\u1EB7c Alt + Shift + \u2193 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng d\u01B0\u1EDBi" }), jsx("li", { style: { fontSize: 13 }, children: "Nh\u1EA5n Ctrl ho\u1EB7c Alt + Shift + \u2191 \u0111\u1EC3 sao ch\u00E9p d\u1EEF li\u1EC7u \u00F4 cho c\u00E1c d\u00F2ng tr\u00EAn" })] }) })] }) })] })] }) }));
42312
42312
  };
42313
42313
 
42314
42314
  const handleArrowRight = (e, params) => {
@@ -42473,10 +42473,10 @@ const SelectTableBox = (props) => {
42473
42473
  const { isLabel, desciptionLabel, id, classLabel, name, label, required } = props;
42474
42474
  return (jsxs(Fragment, { children: [isLabel === false ? '' : jsxs(Label$1, { id: `label-${id}`, className: classLabel, for: name, children: [t(label ? label : ''), " ", required ? jsx("span", { className: "text-danger", children: "*" }) : ''] }), (!isNullOrUndefined$1(desciptionLabel) && desciptionLabel !== '') ?? jsx(Fragment$1, { children: jsx(UncontrolledTooltip, { target: `label-${id}`, children: t(desciptionLabel ?? '') }) })] }));
42475
42475
  };
42476
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(inLine === false ? 'form-group ' : 'form-row-inline d-flex', 'align', {
42476
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(inLine === false ? 'form-group ' : 'form-row-inline d-flex', 'align', {
42477
42477
  [labelSize ? labelSize : '']: labelSize,
42478
42478
  'form-row-inline-error': errors
42479
- }), children: [renderLabel({ isLabel, desciptionLabel, classLabel, name, label, required, id: id ?? '' }), jsxs("div", { className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => {
42479
+ }), children: [renderLabel({ isLabel, desciptionLabel, classLabel, name, label, required, id: id ?? '' }), jsxs("div", { className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: [jsx(Controller, { name: name, control: control, render: ({ field: { value, onChange } }) => {
42480
42480
  return (jsx(SelectTable, { ...rest, id: id, value: (isMulti ? value?.length > 0 : value) ? (!isMulti ? (options.find((val) => val[fieldValue ?? 'value'] === value) ?? (defaultValue ?? '')) : value) : (isMulti ? [] : undefined),
42481
42481
  // Giá trị của SelectTable, nếu isMulti là true và value có độ dài lớn hơn 0, hoặc nếu isMulti là false và value có giá trị,
42482
42482
  // thì tìm giá trị tương ứng trong options hoặc sử dụng defaultValue. Nếu không, sử dụng giá trị mặc định tùy thuộc vào isMulti.
@@ -42753,7 +42753,7 @@ const TableEdit = forwardRef((props, ref) => {
42753
42753
  /*eslint-disable */
42754
42754
  switch (col?.editTypeCondition ? col?.editTypeCondition(row) : col.editType) {
42755
42755
  case 'date':
42756
- return (jsx(DateInput, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, className: classnames('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), value: row[col.field], onChange: (date) => {
42756
+ return (jsx(DateInput, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, className: classNames$1('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), value: row[col.field], onChange: (date) => {
42757
42757
  row[col.field] = date ? new Date(date.getTime() + 7 * 60 * 60 * 1000) : undefined;
42758
42758
  if (col.callback) {
42759
42759
  col.callback(row[col.field], indexRow, row);
@@ -42765,7 +42765,7 @@ const TableEdit = forwardRef((props, ref) => {
42765
42765
  }
42766
42766
  } }));
42767
42767
  case 'datetime':
42768
- return (jsx(DateInput, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, className: classnames('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), value: row[col.field], onChange: (date) => {
42768
+ return (jsx(DateInput, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, className: classNames$1('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), value: row[col.field], onChange: (date) => {
42769
42769
  row[col.field] = date;
42770
42770
  if (col.callback) {
42771
42771
  col.callback(row[col.field], indexRow, row);
@@ -42900,7 +42900,7 @@ const TableEdit = forwardRef((props, ref) => {
42900
42900
  decimalScale: col.numericSettings?.fraction ?? 0
42901
42901
  };
42902
42902
  let floatValue = parseFloat(row[col.field] ?? '0');
42903
- return (jsx(NumericFormat, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, style: { textAlign: col.textAlign, height: 29 }, ...numericFormatProps, defaultValue: formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction), className: classnames('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), onValueChange: (values) => {
42903
+ return (jsx(NumericFormat, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, style: { textAlign: col.textAlign, height: 29 }, ...numericFormatProps, defaultValue: formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction), className: classNames$1('form-control border-0 rounded-0 input-numeric', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), onValueChange: (values) => {
42904
42904
  floatValue = values?.floatValue;
42905
42905
  }, onFocus: (e) => {
42906
42906
  e.target.setSelectionRange(0, e.target.innerText.length - 1);
@@ -42966,7 +42966,7 @@ const TableEdit = forwardRef((props, ref) => {
42966
42966
  }
42967
42967
  } }));
42968
42968
  default:
42969
- return (jsx(Input$1, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, style: { textAlign: col.textAlign, height: 29 }, value: isNullOrUndefined$1(row[col.field]) ? '' : row[col.field], className: classnames('border-0 rounded-0 input-element', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), onChange: (val) => {
42969
+ return (jsx(Input$1, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, style: { textAlign: col.textAlign, height: 29 }, value: isNullOrUndefined$1(row[col.field]) ? '' : row[col.field], className: classNames$1('border-0 rounded-0 input-element', { 'is-invalid': col.validate && col.validate(row[col.field], row) }), onChange: (val) => {
42970
42970
  if (row[col.field] != val.target?.value) {
42971
42971
  row[col.field] = val.target?.value;
42972
42972
  if (col.callback) {
@@ -43309,14 +43309,14 @@ const TableEdit = forwardRef((props, ref) => {
43309
43309
  }, [selectedItem]);
43310
43310
  const renderContentCol = (col, row, indexRow, indexCol, isSelected) => {
43311
43311
  if (col.field === 'command') {
43312
- return (col.visible !== false && jsx("td", { className: classnames(`r-rowcell p-0 fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43312
+ return (col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell p-0 fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43313
43313
  left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
43314
43314
  right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
43315
43315
  textAlign: col.textAlign ? col.textAlign : 'left',
43316
43316
  }, children: jsx("div", { className: "r-rowcell-div command", children: jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row, setIndexFocus: setIndexFocus, indexFocus: indexFocus }) }) }, `col-${indexRow}-${indexCol}`));
43317
43317
  }
43318
43318
  else if (col.field === '#') {
43319
- return (col.visible !== false && jsx("td", { className: classnames(`r-rowcell p-0 cursor-pointer fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), tabIndex: Number(`${indexRow}${indexCol}`), style: {
43319
+ return (col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell p-0 cursor-pointer fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), tabIndex: Number(`${indexRow}${indexCol}`), style: {
43320
43320
  left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
43321
43321
  right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
43322
43322
  textAlign: 'center',
@@ -43354,7 +43354,7 @@ const TableEdit = forwardRef((props, ref) => {
43354
43354
  }, children: jsx("div", { className: "r-rowcell-div", children: indexRow + 1 }) }, `col-${indexRow}-${indexCol}`));
43355
43355
  }
43356
43356
  else if (col.field === 'checkbox') {
43357
- return (jsx("td", { className: classnames(`r-rowcell p-0 fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43357
+ return (jsx("td", { className: classNames$1(`r-rowcell p-0 fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43358
43358
  left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
43359
43359
  right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
43360
43360
  }, children: jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
@@ -43394,7 +43394,7 @@ const TableEdit = forwardRef((props, ref) => {
43394
43394
  }
43395
43395
  const typeDis = !editDisable && (indexFocus === indexRow || col.editType === 'checkbox') && (!col.disabledCondition || !col.disabledCondition(row)) ? (col.editEnable ? 1 : (col.template ? 2 : 3)) : (col.template ? 2 : 3);
43396
43396
  const errorMessage = typeDis === 1 || col.field === '' || !col.validate ? '' : col.validate(row[col.field], row);
43397
- return (jsx(Fragment, { children: col.visible !== false && jsx("td", { className: classnames(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43397
+ return (jsx(Fragment, { children: col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': (isSelected && editDisable) || indexFocus === indexRow }), style: {
43398
43398
  left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
43399
43399
  right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
43400
43400
  }, onClick: (e) => {
@@ -43425,9 +43425,9 @@ const TableEdit = forwardRef((props, ref) => {
43425
43425
  }
43426
43426
  e.stopPropagation();
43427
43427
  }
43428
- }, children: jsx("div", { className: classnames('r-rowcell-div'), children: jsxs("div", { id: indexFocus === indexRow && typeDis !== 1 ? `${idTable}-col${indexCol + 1}-row${indexRow + 1}` : '', className: classnames('r-rowcell-content', { 'r-is-invalid': errorMessage }), style: {
43428
+ }, children: jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxs("div", { id: indexFocus === indexRow && typeDis !== 1 ? `${idTable}-col${indexCol + 1}-row${indexRow + 1}` : '', className: classNames$1('r-rowcell-content', { 'r-is-invalid': errorMessage }), style: {
43429
43429
  textAlign: col.textAlign ? col.textAlign : 'left'
43430
- }, children: [typeDis === 1 && !refreshRow && jsx(Fragment$1, { children: RenderEditCell(row, col, indexCol, indexRow) }), (typeDis !== 1 || refreshRow) && RenderContentCell(row, col, indexCol, indexRow, typeDis, value), jsx("span", { id: `error-${indexRow}-${indexCol}`, className: classnames('cursor-pointer text-primary icon-table', { 'd-none': !errorMessage }), children: jsx(SvgAlertCircle, { fontSize: 15.5 }) }), jsx(UncontrolledTooltip, { target: `error-${indexRow}-${indexCol}`, className: "r-tooltip tooltip-error", children: errorMessage?.toString() ?? '' })] }) }) }, `col-${indexRow}-${indexCol}`) }, indexCol));
43430
+ }, children: [typeDis === 1 && !refreshRow && jsx(Fragment$1, { children: RenderEditCell(row, col, indexCol, indexRow) }), (typeDis !== 1 || refreshRow) && RenderContentCell(row, col, indexCol, indexRow, typeDis, value), jsx("span", { id: `error-${indexRow}-${indexCol}`, className: classNames$1('cursor-pointer text-primary icon-table', { 'd-none': !errorMessage }), children: jsx(SvgAlertCircle, { fontSize: 15.5 }) }), jsx(UncontrolledTooltip, { target: `error-${indexRow}-${indexCol}`, className: "r-tooltip tooltip-error", children: errorMessage?.toString() ?? '' })] }) }) }, `col-${indexRow}-${indexCol}`) }, indexCol));
43431
43431
  }
43432
43432
  };
43433
43433
  const RenderContentCell = (row, col, indexCol, indexRow, typeDis, value) => {
@@ -43444,7 +43444,7 @@ const TableEdit = forwardRef((props, ref) => {
43444
43444
  };
43445
43445
  const renderFooterCol = (col, indexCol) => {
43446
43446
  const sumValue = (col.haveSum === true && col.editType === "numeric") ? dataSource.reduce(function (accumulator, currentValue) { return (Number(accumulator ?? 0) + Number(currentValue[col.field] ?? 0)); }, 0) : 0;
43447
- return (jsx(Fragment, { children: (col.visible !== false) && jsx("td", { className: classnames(`p-0 px-50 r-footer fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
43447
+ return (jsx(Fragment, { children: (col.visible !== false) && jsx("td", { className: classNames$1(`p-0 px-50 r-footer fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
43448
43448
  left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
43449
43449
  right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
43450
43450
  textAlign: col.textAlign ? col.textAlign : 'left'
@@ -43468,7 +43468,7 @@ const TableEdit = forwardRef((props, ref) => {
43468
43468
  const flagSearch = !searchClient || checkSearch(searchSetting?.searchTerm !== undefined ? searchSetting?.searchTerm : searchTerm, row, searchSetting?.keyField ?? []);
43469
43469
  if (flagSearch) {
43470
43470
  const flagDisplay = !pagingClient || ((indexRow + 1) > ((pagingSetting.pageSize ?? 0) * ((pagingSetting.currentPage ?? 0) - 1)) && (indexRow + 1) <= ((pagingSetting.pageSize ?? 0) * ((pagingSetting.currentPage ?? 0))));
43471
- return (flagDisplay && jsx(Fragment$1, { children: jsx("tr", { className: classnames('r-row'), children: contentColumns.map((col, indexCol) => renderContentCol(col, row, indexRow, indexCol, isSelected)) }, `row-${indexRow}`) }));
43471
+ return (flagDisplay && jsx(Fragment$1, { children: jsx("tr", { className: classNames$1('r-row'), children: contentColumns.map((col, indexCol) => renderContentCol(col, row, indexRow, indexCol, isSelected)) }, `row-${indexRow}`) }));
43472
43472
  }
43473
43473
  }));
43474
43474
  };
@@ -43479,7 +43479,7 @@ const TableEdit = forwardRef((props, ref) => {
43479
43479
  }, [searchTerm, searchSetting?.searchTerm]);
43480
43480
  return (jsxs(Fragment, { children: [jsxs("div", { className: "react-table-edit", children: [jsxs("div", { className: 'r-grid', ref: gridRef, children: [toolbarSetting?.showTopToolbar && jsx(RenderToolbarTop, { toolbarTopOption: toolbarTopOption }), jsx("div", { ref: tableElement, className: "r-gridtable", style: { height: `${height ? `${height}px` : 'auto'}`, minHeight: `${minHeight ? `${minHeight}px` : ''}`, maxHeight: `${maxHeight ? `${maxHeight}px` : '400px'}` }, children: jsxs("table", { style: { width: '100%' }, children: [jsx("thead", { className: 'r-gridheader', children: headerColumns.map((element, indexParent) => {
43481
43481
  return (jsx("tr", { className: "r-row", role: "row", children: element?.map((col, index) => {
43482
- return (jsx(HeaderTableCol, { col: col, dataSource: dataSource, indexCol: index, indexParent: indexParent, isMulti: isMulti ?? false, objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, column: contentColumns, setColumn: setContentColumns, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, totalCount: totalCount }, `header-${indexParent}-${index}`));
43482
+ return (jsx(HeaderTableCol$1, { col: col, dataSource: dataSource, indexCol: index, indexParent: indexParent, isMulti: isMulti ?? false, objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, column: contentColumns, setColumn: setContentColumns, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, totalCount: totalCount }, `header-${indexParent}-${index}`));
43483
43483
  }) }, `header-${-indexParent}`));
43484
43484
  }) }), jsx("tbody", { className: 'r-gridcontent', children: renderData() }), jsx("tfoot", { className: "r-gridfoot", children: haveSum == true ? jsx("tr", { className: 'r-row', children: contentColumns.map((col, index) => {
43485
43485
  return (renderFooterCol(col, index));
@@ -43587,7 +43587,7 @@ const TabsMenuComponent = ({ buttonWidth, tabParent, tabChild, resourceCodeParen
43587
43587
  const handleModal = (name) => {
43588
43588
  setOpenModal((old) => ({ ...old, [name]: !(openModal[name] ?? false) }));
43589
43589
  };
43590
- return (jsxs(Fragment, { children: [renderModal ? renderModal({ handleModal, windowSize, openModal, setDataItem, dataItem }) : '', jsxs("div", { className: classnames('tab-custom', { 'tab-parent': tabParent }, { 'tab-child': tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [jsx("div", { onClick: () => handleScroll(-200), className: classnames('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) => {
43590
+ return (jsxs(Fragment, { children: [renderModal ? renderModal({ handleModal, windowSize, openModal, setDataItem, dataItem }) : '', jsxs("div", { className: classNames$1('tab-custom', { 'tab-parent': tabParent }, { 'tab-child': tabChild }), style: { width: `calc(100% - ${buttonWidth ?? 100}px` }, children: [jsx("div", { onClick: () => handleScroll(-200), className: classNames$1('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) => {
43591
43591
  if (item?.resAttributes?.IS_MENU === '1') {
43592
43592
  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: () => {
43593
43593
  if (x.resAttributes.MODAL_VALUE) {
@@ -43599,9 +43599,9 @@ const TabsMenuComponent = ({ buttonWidth, tabParent, tabChild, resourceCodeParen
43599
43599
  }, children: x.name }, x.code)) })] }, item.code));
43600
43600
  }
43601
43601
  else {
43602
- return (jsx(Link, { draggable: false, to: item.url, className: classnames('tab-custom-item', { active: item.url === url || (tabParent && url?.split('/').length > 3 && item.url.startsWith(url.substring(0, url.lastIndexOf('/')))) }), children: item.name }, item.code));
43602
+ return (jsx(Link, { draggable: false, to: item.url, className: classNames$1('tab-custom-item', { active: item.url === url || (tabParent && url?.split('/').length > 3 && item.url.startsWith(url.substring(0, url.lastIndexOf('/')))) }), children: item.name }, item.code));
43603
43603
  }
43604
- }) }) }), jsx("div", { onClick: () => handleScroll(200), className: classnames('btn-scroll', { 'd-none': componentWidth >= contentWidth - 20 }), children: jsx(SvgChevronRight, {}) })] })] }));
43604
+ }) }) }), jsx("div", { onClick: () => handleScroll(200), className: classNames$1('btn-scroll', { 'd-none': componentWidth >= contentWidth - 20 }), children: jsx(SvgChevronRight, {}) })] })] }));
43605
43605
  };
43606
43606
 
43607
43607
  const OptionFont = [
@@ -44484,23 +44484,23 @@ const InputStyleComponent = (props) => {
44484
44484
  backgroundColor: value.backgroundColor ?? '#ffffff',
44485
44485
  color: value.color ?? '#000000'
44486
44486
  }, children: props.label }));
44487
- } }), jsx("div", { className: classnames('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) => {
44487
+ } }), jsx("div", { className: classNames$1('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) => {
44488
44488
  onChange({ ...value, fontSize: val.value });
44489
- } }) }), jsx("div", { className: classnames('btn-input-style', { 'active-custom': value.bold }, { 'd-none': disabledBold }), onClick: () => {
44489
+ } }) }), jsx("div", { className: classNames$1('btn-input-style', { 'active-custom': value.bold }, { 'd-none': disabledBold }), onClick: () => {
44490
44490
  if (!disabled) {
44491
44491
  onChange({ ...value, bold: !value.bold });
44492
44492
  }
44493
- }, children: jsx(SvgBold, { fontSize: 18 }) }), jsx("div", { className: classnames('btn-input-style', { 'active-custom': value.italic }, { 'd-none': disabledItalic }), onClick: () => {
44493
+ }, children: jsx(SvgBold, { fontSize: 18 }) }), jsx("div", { className: classNames$1('btn-input-style', { 'active-custom': value.italic }, { 'd-none': disabledItalic }), onClick: () => {
44494
44494
  if (!disabled) {
44495
44495
  onChange({ ...value, italic: !value.italic });
44496
44496
  }
44497
- }, children: jsx(SvgItalic, { fontSize: 18 }) }), jsx("div", { className: classnames('btn-input-style', { 'active-custom': value.underline }, { 'd-none': disabledUnderline }), onClick: () => {
44497
+ }, children: jsx(SvgItalic, { fontSize: 18 }) }), jsx("div", { className: classNames$1('btn-input-style', { 'active-custom': value.underline }, { 'd-none': disabledUnderline }), onClick: () => {
44498
44498
  if (!disabled) {
44499
44499
  onChange({ ...value, underline: !value.underline });
44500
44500
  }
44501
- }, children: jsx(SvgUnderline, { fontSize: 18 }) }), jsxs(Button$1, { tag: 'label', color: 'none', className: classnames('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) => {
44501
+ }, children: jsx(SvgUnderline, { fontSize: 18 }) }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$1('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) => {
44502
44502
  onChange({ ...value, color: e.target.value });
44503
- } })] }), jsxs(Button$1, { tag: 'label', color: 'none', className: classnames('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) => {
44503
+ } })] }), jsxs(Button$1, { tag: 'label', color: 'none', className: classNames$1('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) => {
44504
44504
  onChange({ ...value, backgroundColor: e.target.value });
44505
44505
  } })] })] }) }));
44506
44506
  };
@@ -45962,10 +45962,10 @@ const CheckboxInput = (props) => {
45962
45962
  }
45963
45963
  } })) }) }));
45964
45964
  };
45965
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(inLine === false ? 'form-group ' : 'form-row-inline d-flex', {
45965
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(inLine === false ? 'form-group ' : 'form-row-inline d-flex', {
45966
45966
  [labelSize ? labelSize : '']: labelSize,
45967
45967
  reverse
45968
- }), children: [renderLabel({ isLabel, name, label: label ?? '' }), jsxs("div", { className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: [renderInput(), renderText()] })] }) }));
45968
+ }), children: [renderLabel({ isLabel, name, label: label ?? '' }), jsxs("div", { className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: [renderInput(), renderText()] })] }) }));
45969
45969
  };
45970
45970
 
45971
45971
  const defaultStyleExportSetting = {
@@ -46053,11 +46053,11 @@ const StyleInput = (props) => {
46053
46053
  return (jsx(InputStyleComponent, { disabledBackgroundColor: disabledBackgroundColor, disabledFontFamily: disabledFontFamily, disabledFontSize: disabledFontSize, disabledBold: disabledBold, disabledItalic: disabledItalic, disabledUnderline: disabledUnderline, disabled: disabled, value: value, onChange: onChange }));
46054
46054
  } }), errors && jsx(FormFeedback$1, { children: errors?.message })] }));
46055
46055
  };
46056
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(' align', {
46056
+ return (jsx(Fragment, { children: jsxs("div", { className: classNames$1(' align', {
46057
46057
  [labelSize ? labelSize : '']: labelSize,
46058
46058
  [classes ? classes : '']: classes,
46059
46059
  'form-row-inline-error': errors
46060
- }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { style: { height: `${height}px` }, className: classnames('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
46060
+ }, inLine === false ? 'form-group ' : 'form-row-inline d-flex'), children: [renderLabel({ isLabel, name, label, required }), jsx("div", { style: { height: `${height}px` }, className: classNames$1('form-input-content', { 'hidden-label': isLabel === false }), children: renderInput() })] }) }));
46061
46061
  };
46062
46062
 
46063
46063
  const ExportExcelComponent = ({ openModal, typeModal, handleModal, windowSize, dataItem, columns, columnGroups }) => {
@@ -65326,7 +65326,7 @@ const Wizard = forwardRef((props, ref) => {
65326
65326
  // ** Renders Wizard Header
65327
65327
  const renderHeader = () => {
65328
65328
  return steps.map((step, index) => {
65329
- return (jsxs(Fragment, { children: [index !== 0 && index !== steps.length ? jsx("div", { className: 'line', children: separator }) : null, jsx("div", { className: classnames('step', {
65329
+ return (jsxs(Fragment, { children: [index !== 0 && index !== steps.length ? jsx("div", { className: 'line', children: separator }) : null, jsx("div", { className: classNames$1('step', {
65330
65330
  crossed: (step.done !== undefined ? step.done : activeStep > (index + 1)),
65331
65331
  disable: step.disable,
65332
65332
  active: (index + 1) === activeStep
@@ -65336,18 +65336,18 @@ const Wizard = forwardRef((props, ref) => {
65336
65336
  // ** Renders Wizard Content
65337
65337
  const renderContent = () => {
65338
65338
  return steps.map((step, index) => {
65339
- return (jsx("div", { className: classnames('content', {
65339
+ return (jsx("div", { className: classNames$1('content', {
65340
65340
  [contentClassName]: contentClassName,
65341
65341
  'active dstepper-block': activeStep === (index + 1)
65342
65342
  }), id: step.id, children: step.content }, step.id));
65343
65343
  });
65344
65344
  };
65345
- return (jsxs("div", { ref: ref, className: classnames('bs-stepper', {
65345
+ return (jsxs("div", { ref: ref, className: classNames$1('bs-stepper', {
65346
65346
  [className]: className,
65347
65347
  vertical: type === 'vertical',
65348
65348
  'vertical wizard-modern': type === 'modern-vertical',
65349
65349
  'wizard-modern': type === 'modern-horizontal'
65350
- }), children: [jsx("div", { className: classnames('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { style: { height: heightContent, width: widthContent }, className: classnames('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
65350
+ }), children: [jsx("div", { className: classNames$1('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { style: { height: heightContent, width: widthContent }, className: classNames$1('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
65351
65351
  });
65352
65352
 
65353
65353
  const ImportExcelComponent = (props) => {
@@ -65378,5 +65378,322 @@ const ImportExcelComponent = (props) => {
65378
65378
  ] }) }));
65379
65379
  };
65380
65380
 
65381
- export { ExportExcelComponent, FindNodeByPath, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TabsMenuComponent, Wizard, calculateTableStructure, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined$1 as isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, roundNumber, useOnClickOutside };
65381
+ const HeaderTableCol = (props) => {
65382
+ const { selectEnable, dataSource, setSelectedRows, col, indexCol, indexParent, objWidthFixLeft, objWidthFixRight, totalCount, selectedRows, columns, setColumns, orderBy, changeFilter, filterBy, changeOrder, allowFilter, allowOrder, container, fisrtObjWidthFixRight, lastObjWidthFixLeft, formatSetting, isMulti } = props;
65383
+ const { t } = useTranslation();
65384
+ const order = orderBy.find((item) => item.key === col.field);
65385
+ const [openFilter, setOpenFilter] = useState(false);
65386
+ const filter = filterBy.find((item) => item.key === col.field);
65387
+ const handleResize = (e, { size }) => {
65388
+ // Update the column width here
65389
+ // You might need to update the state or call a callback to update the width
65390
+ if (size.width > 50) {
65391
+ const newColumns = [...columns];
65392
+ newColumns[indexCol].width = size.width;
65393
+ if ((columns[indexCol]?.maxWidth ?? 0) < size.width) {
65394
+ newColumns[indexCol].maxWidth = size.width;
65395
+ }
65396
+ if ((columns[indexCol]?.minWidth ?? 0) > size.width) {
65397
+ newColumns[indexCol].minWidth = size.width;
65398
+ }
65399
+ if (setColumns) {
65400
+ setColumns(newColumns);
65401
+ }
65402
+ }
65403
+ };
65404
+ return (jsx(Fragment, { children: col.visible !== false && (jsx(Resizable, { className: "r-resize", width: typeof col.width === 'number' ? col.width : Number((col.width ?? "").replaceAll(new RegExp(`[^0-9]`, "g"), '')), height: 0, onResize: handleResize, draggableOpts: { enableUserSelectHack: false }, children: jsx("th", { rowSpan: col.rowspan !== 1 ? col.rowspan : 1, colSpan: col.columns?.filter(x => x.visible !== false)?.length ?? 1, className: classNames$1(`r-headercell fix-${col.fixedType}`, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'cell-fixed': col.fixedType }), style: {
65405
+ top: `${indexParent * 42}px`,
65406
+ left: col.fixedType === 'left' ? objWidthFixLeft[indexCol ?? 0] : undefined,
65407
+ right: col.fixedType === 'right' ? objWidthFixRight[indexCol ?? 0] : undefined
65408
+ }, children: jsxs("div", { style: { justifyContent: 'space-between' }, onClick: () => {
65409
+ if (order) {
65410
+ if (order.direction === 'asc') {
65411
+ order.direction = 'desc';
65412
+ changeOrder(orderBy);
65413
+ }
65414
+ else {
65415
+ changeOrder(orderBy.filter((x) => x.key !== col.field));
65416
+ }
65417
+ }
65418
+ else {
65419
+ orderBy.push({ direction: 'asc', key: col.field });
65420
+ changeOrder(orderBy);
65421
+ }
65422
+ }, className: classNames$1('r-headercell-div', { 'cursor-pointer': allowOrder }), children: [col.type === 'checkbox' && (jsx(Input$1, { checked: !!(totalCount > 0 && selectedRows?.length >= totalCount), type: "checkbox", className: classNames$1('cursor-pointer', { 'd-none': !isMulti }), style: { textAlign: col.textAlign ?? 'left', marginTop: 6 }, onChange: (e) => {
65423
+ if (selectEnable) {
65424
+ if (e.target.checked) {
65425
+ setSelectedRows(dataSource.map((item) => { return item; }));
65426
+ }
65427
+ else {
65428
+ setSelectedRows([]);
65429
+ }
65430
+ }
65431
+ } })), col.type !== 'checkbox' && jsxs(Fragment$1, { children: [jsx("span", { className: 'header-content d-flex', style: { justifyContent: col.textAlign ?? 'left', flex: 1 }, children: t(col.headerText ?? '') }), col.type !== '#' && col.type !== 'command' && jsxs("div", { className: 'd-flex', children: [allowOrder && order?.direction === 'asc' && jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: 'ms-25', width: "10", height: "10", viewBox: "0 0 16 18", fill: "none", children: [jsx("g", { "clip-path": "url(#clip0_520_6)", children: jsx("path", { d: "M8.70711 0.292893C8.31658 -0.0976311 7.68342 -0.0976311 7.29289 0.292893L0.928932 6.65685C0.538408 7.04738 0.538408 7.68054 0.928932 8.07107C1.31946 8.46159 1.95262 8.46159 2.34315 8.07107L8 2.41421L13.6569 8.07107C14.0474 8.46159 14.6805 8.46159 15.0711 8.07107C15.4616 7.68054 15.4616 7.04738 15.0711 6.65685L8.70711 0.292893ZM8 18H9L9 1H8H7L7 18H8Z", fill: "black" }) }), jsx("defs", { children: jsx("clipPath", { id: "clip0_520_6", children: jsx("rect", { width: "16", height: "18", fill: "white" }) }) })] }), allowOrder && order?.direction === 'desc' && jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: 'ms-25', width: "10", height: "10", viewBox: "0 0 16 18", fill: "none", children: [jsx("g", { "clip-path": "url(#clip0_520_2)", children: jsx("path", { d: "M7.29289 17.7071C7.68342 18.0976 8.31658 18.0976 8.70711 17.7071L15.0711 11.3431C15.4616 10.9526 15.4616 10.3195 15.0711 9.92893C14.6805 9.53841 14.0474 9.53841 13.6569 9.92893L8 15.5858L2.34315 9.92893C1.95262 9.53841 1.31946 9.53841 0.928932 9.92893C0.538408 10.3195 0.538408 10.9526 0.928932 11.3431L7.29289 17.7071ZM8 0L7 0L7 17H8H9L9 0L8 0Z", fill: "black" }) }), jsx("defs", { children: jsx("clipPath", { id: "clip0_520_2", children: jsx("rect", { width: "16", height: "18", fill: "white" }) }) })] }), allowFilter && jsxs(Dropdown$1, { isOpen: openFilter, toggle: (e) => {
65432
+ setOpenFilter(!openFilter);
65433
+ e.stopPropagation();
65434
+ }, onClick: (e) => {
65435
+ e.stopPropagation();
65436
+ }, children: [jsx(DropdownToggle$1, { tag: 'div', className: 'p-0 r-filter', children: jsxs("svg", { className: classNames$1('ms-25', { 'active': filter }), width: "10", height: "10", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "stroke-width": "1.5", "font-size": "12", children: [jsx("path", { d: "M14.7 11.998v10.506c.052.4-.08.826-.381 1.106a1.306 1.306 0 0 1-.925.39 1.289 1.289 0 0 1-.926-.39l-2.637-2.68a1.323 1.323 0 0 1-.38-1.106v-7.826h-.04L1.85 2.16A1.348 1.348 0 0 1 2.076.293C2.325.107 2.6 0 2.888 0h18.373c.289 0 .564.107.814.293a1.348 1.348 0 0 1 .223 1.866L14.738 12H14.7Z", fill: "currentColor" }), " "] }) }), jsx(DropdownMenu$1, { container: container, className: 'formula-dropdown icon-dropdown p-0', style: {
65437
+ borderRadius: 8,
65438
+ zIndex: 1056
65439
+ }, children: jsx(DropdownItem$1, { className: 'p-1', style: { borderRadius: '6px' }, tag: 'div', header: true, children: jsx(RenderFilterElement, { setOpenFilter: setOpenFilter, filter: filter, filterBy: filterBy, formatSetting: formatSetting, changeFilter: changeFilter, column: col }) }) })] })] })] })] }) }) })) }, `header-${indexCol}`));
65440
+ };
65441
+ const RenderFilterElement = ({ filter, formatSetting, filterBy, setOpenFilter, changeFilter, column }) => {
65442
+ const { t } = useTranslation();
65443
+ const [operator, setOperator] = useState(filter?.ope ?? 'contains');
65444
+ const [valueFilter, setValueFilter] = useState(filter?.value ?? '');
65445
+ const RenderStringFilter = () => {
65446
+ const options = [
65447
+ { label: 'Bắt đầu bởi', value: 'startswith' },
65448
+ { label: 'Kết thúc bởi', value: 'endswith' },
65449
+ { label: 'Chứa', value: 'contains' },
65450
+ { label: 'Bằng', value: 'equal' },
65451
+ { label: 'Không bằng', value: 'notequal' }
65452
+ ];
65453
+ return (jsxs(Fragment$1, { children: [jsx(SelectTable, { value: options.find((x) => x.value === (operator)), options: options, onChange: (val) => {
65454
+ setOperator(val.value);
65455
+ }, placeholder: 'Select' }), jsx(Input$1, { className: 'my-1', value: valueFilter, onChange: (val) => {
65456
+ setValueFilter(val.target.value);
65457
+ } })] }));
65458
+ };
65459
+ const RenderNumberFilter = () => {
65460
+ const options = [
65461
+ { label: 'Lớn hơn', value: 'greaterthan' },
65462
+ { label: 'Lớn hơn hoặc bằng', value: 'greaterthanorequal' },
65463
+ { label: 'Bằng', value: 'equal' },
65464
+ { label: 'Bé hơn', value: 'lessthan' },
65465
+ { label: 'Bé hơn hoặc bằng', value: 'lessthanorequal' }
65466
+ ];
65467
+ const numericFormatProps = {
65468
+ value: !isNullOrUndefined$1(valueFilter) ? valueFilter.toString() : '',
65469
+ thousandSeparator: checkThousandSeparator(formatSetting?.thousandSeparator, formatSetting?.decimalSeparator),
65470
+ decimalSeparator: checkDecimalSeparator(formatSetting?.thousandSeparator, formatSetting?.decimalSeparator),
65471
+ allowNegative: column.numericSettings?.allowNegative ?? false,
65472
+ decimalScale: column.numericSettings?.fraction ?? 0
65473
+ };
65474
+ let floatValue = parseFloat(valueFilter ?? '0');
65475
+ return (jsxs(Fragment$1, { children: [jsx(SelectTable, { value: options.find((x) => x.value === (operator)), options: options, onChange: (val) => {
65476
+ setOperator(val.value);
65477
+ }, placeholder: 'Select' }), jsx(Input$1, { className: 'my-1', value: valueFilter, onChange: (val) => {
65478
+ setValueFilter(val.target.value);
65479
+ } }), jsx(NumericFormat, { style: { textAlign: column.textAlign, height: 29 }, ...numericFormatProps, defaultValue: formartNumberic(valueFilter, formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', column.numericSettings?.fraction), className: classNames$1('form-control my-1 input-numeric'), onValueChange: (values) => {
65480
+ floatValue = values?.floatValue;
65481
+ }, onFocus: (e) => {
65482
+ e.target.setSelectionRange(0, e.target.innerText.length - 1);
65483
+ }, onBlur: () => {
65484
+ if (floatValue !== valueFilter) {
65485
+ setValueFilter(!isNaN(floatValue) ? floatValue : 0);
65486
+ }
65487
+ } })] }));
65488
+ };
65489
+ const RenderSelectFilter = () => {
65490
+ return (jsx(Fragment$1, { children: jsx(SelectTable, { value: column.settingFilter?.options.find((x) => x.value === (operator)), options: column.settingFilter?.options ?? [], isClearable: true, onChange: (val) => {
65491
+ setOperator(val.value);
65492
+ }, placeholder: 'Select' }) }));
65493
+ };
65494
+ return (jsxs("div", { className: 'r-filter-popup', children: [((!column.settingFilter?.filterType && column.type === 'numeric') || column.settingFilter?.filterType === 'numeric') ? jsxs(Fragment$1, { children: [RenderNumberFilter(), " "] }) : (column.settingFilter?.filterType === 'select' ? jsxs(Fragment$1, { children: [RenderSelectFilter(), " "] }) : RenderStringFilter()), jsxs("div", { className: 'd-flex justify-content-end', children: [jsx(Button$1, { outline: true, color: 'primary', style: { borderRadius: 3 }, className: 'me-50 py-25 px-50', onClick: () => {
65495
+ if (filter) {
65496
+ filter.ope = operator;
65497
+ filter.value = valueFilter;
65498
+ }
65499
+ else {
65500
+ filterBy.push({ key: column.field, ope: operator, value: valueFilter });
65501
+ }
65502
+ changeFilter([...filterBy]);
65503
+ setOpenFilter(false);
65504
+ }, children: t('Filter') }), jsx(Button$1, { className: 'py-25 px-50', outline: true, style: { borderRadius: 3 }, onClick: () => {
65505
+ if (filterBy) {
65506
+ changeFilter(filterBy.filter((x) => x.key !== column.field));
65507
+ }
65508
+ setOpenFilter(false);
65509
+ }, children: t('Clear') })] })] }));
65510
+ };
65511
+
65512
+ const RenderContentCol = (props) => {
65513
+ const { col, indexCol, indexRow, isSelected, row, formatSetting, idTable, fisrtObjWidthFixRight, lastObjWidthFixLeft, objWidthFixLeft, objWidthFixRight, selectedRows, selectEnable, setSelectedRows, handleCommandClick, fieldKey, isMulti } = props;
65514
+ const RenderElement = () => {
65515
+ if (col.type === 'command') {
65516
+ return jsx("div", { className: "r-rowcell-div command", children: jsx(CommandElement, { commandItems: col.commandItems ?? [], handleCommandClick: handleCommandClick, indexRow: indexRow, rowData: row }) });
65517
+ }
65518
+ else if (col.type === '#') {
65519
+ jsx("div", { className: "r-rowcell-div", children: indexRow + 1 });
65520
+ }
65521
+ else if (col.type === 'checkbox') {
65522
+ return (jsx("div", { className: "r-rowcell-div cursor-pointer", style: { alignItems: 'center' }, onClick: (e) => {
65523
+ if (selectEnable) {
65524
+ const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65525
+ if (index > -1) {
65526
+ if (isMulti) {
65527
+ selectedRows?.splice(index, 1);
65528
+ setSelectedRows([...selectedRows]);
65529
+ }
65530
+ else {
65531
+ setSelectedRows([]);
65532
+ }
65533
+ }
65534
+ else {
65535
+ if (isMulti) {
65536
+ setSelectedRows([...selectedRows, row]);
65537
+ }
65538
+ else {
65539
+ setSelectedRows([row]);
65540
+ }
65541
+ }
65542
+ e.stopPropagation();
65543
+ }
65544
+ }, children: jsx(Input$1, { checked: isSelected, type: "checkbox", className: "cursor-pointer", style: { textAlign: col.textAlign ?? 'center' } }) }));
65545
+ }
65546
+ else {
65547
+ let value = row[col.field];
65548
+ if (col.type === 'numeric') {
65549
+ value = formartNumberic(row[col.field], formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) ?? 0;
65550
+ }
65551
+ else if (col.type === 'date') {
65552
+ value = value ? formatDateTime(value, formatSetting?.dateFormat) : '';
65553
+ }
65554
+ else if (col.type === 'datetime') {
65555
+ value = value ? formatDateTime(value, formatSetting?.dateFormat ?? 'DD/MM/yyyy HH:mm') : '';
65556
+ }
65557
+ return (jsx("div", { className: classNames$1('r-rowcell-div'), children: jsxs("div", { className: classNames$1('r-rowcell-content'), style: {
65558
+ textAlign: col.textAlign ? col.textAlign : 'left'
65559
+ }, children: [jsx("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) }), col.haveToolTip && jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: (col.type === 'numeric' && Number(row[col.field]) < 0 ? jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${value}${formatSetting?.suffixNegative ?? ''}`] }) : value) })] }) }));
65560
+ }
65561
+ };
65562
+ return (col.visible !== false && jsx("td", { className: classNames$1(`r-rowcell fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }, { 'fixed-last': (col.fixedType === 'left' && indexCol === lastObjWidthFixLeft) || (col.fixedType === 'right' && indexCol === fisrtObjWidthFixRight) }, { 'r-active': isSelected }), style: {
65563
+ left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
65564
+ right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined
65565
+ }, onClick: (e) => {
65566
+ if (e.target.nodeName === 'DIV' || e.target.nodeName === 'TD') {
65567
+ if (selectEnable) {
65568
+ const index = selectedRows?.findIndex((x) => x[fieldKey] === row[fieldKey]);
65569
+ if (index > -1) {
65570
+ if (isMulti) {
65571
+ selectedRows?.splice(index, 1);
65572
+ setSelectedRows([...selectedRows]);
65573
+ }
65574
+ else {
65575
+ setSelectedRows([]);
65576
+ }
65577
+ }
65578
+ else {
65579
+ if (isMulti) {
65580
+ setSelectedRows([...selectedRows, row]);
65581
+ }
65582
+ else {
65583
+ setSelectedRows([row]);
65584
+ }
65585
+ }
65586
+ }
65587
+ e.stopPropagation();
65588
+ }
65589
+ }, children: RenderElement() }, `col-${indexRow}-${indexCol}`));
65590
+ };
65591
+
65592
+ const RenderColGroup = ({ contentColumns }) => (jsx("colgroup", { children: contentColumns.map((col, index) => (jsx("col", { style: {
65593
+ width: typeof col.width === 'number' ? `${col.width}px` : col.width || undefined,
65594
+ minWidth: typeof col.minWidth === 'number' ? `${col.minWidth}px` : col.minWidth || undefined,
65595
+ maxWidth: typeof col.maxWidth === 'number' ? `${col.maxWidth}px` : col.maxWidth || undefined
65596
+ } }, index))) }));
65597
+
65598
+ const SkeletonRow = ({ columns, rowHeight }) => (jsx("tr", { style: { height: rowHeight }, className: "animate-pulse", children: Array.from({ length: columns }).map((_, colIndex) => (jsx("td", { style: { padding: '8px' }, children: jsx("div", { style: { height: 12, background: '#e0e0e0', borderRadius: 4 } }) }, colIndex))) }));
65599
+
65600
+ const VirtualTable = ({ idTable, dataSource, rowHeight = 28, height = 400, columns, isMutil, isLoading, selectEnable, formatSetting, commandClick, allowFilter, allowOrder, setColumns, pagingSetting, changeFilter, changeOrder, searchSetting, columnsAggregate, toolbarSetting }) => {
65601
+ const gridRef = useRef(null);
65602
+ const [startIndex, setStartIndex] = useState(0);
65603
+ const [selectedRows, setSelectedRows] = useState([]);
65604
+ const [orderBy, setOrderBy] = useState([]);
65605
+ const [filterBy, setFilterBy] = useState([]);
65606
+ const [searchTerm, setSearchTerm] = useState('');
65607
+ const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? 'id';
65608
+ const visibleRowCount = Math.ceil(height / rowHeight) + 5;
65609
+ const countLoading = 10;
65610
+ const { t } = useTranslation();
65611
+ const { levels: headerColumns, flat: contentColumns, flatVisble, objWidthFixLeft, objWidthFixRight, lastObjWidthFixLeft, fisrtObjWidthFixRight } = useMemo(() => calculateTableStructure(columns), [columns]);
65612
+ const handleScroll = () => {
65613
+ if (gridRef.current) {
65614
+ const scrollTop = gridRef.current.scrollTop;
65615
+ const newStartIndex = Math.floor(scrollTop / rowHeight);
65616
+ if (newStartIndex !== startIndex) {
65617
+ setStartIndex(newStartIndex);
65618
+ }
65619
+ }
65620
+ };
65621
+ const visibleData = dataSource.slice(startIndex, Math.min(startIndex + visibleRowCount, dataSource.length));
65622
+ const handleCommandClick = (id, rowData, index) => {
65623
+ if (commandClick) {
65624
+ commandClick({ id, rowData, index });
65625
+ }
65626
+ };
65627
+ const handleKeyPress = (e) => {
65628
+ if ((e.code === 'Enter' || e.code === 'NumpadEnter')) {
65629
+ if (searchSetting?.setSearchTerm) {
65630
+ searchSetting?.setSearchTerm(e.target.value);
65631
+ }
65632
+ else {
65633
+ setSearchTerm(e.target.value);
65634
+ }
65635
+ e.stopPropagation();
65636
+ e.preventDefault();
65637
+ }
65638
+ };
65639
+ const searchTemplate = () => {
65640
+ return (jsx("div", { className: "me-50 r-search", children: jsx(ReactInput, { style: { width: '230px' }, value: searchSetting?.searchTerm !== undefined ? searchSetting?.searchTerm : searchTerm, setSearchTerm: searchSetting?.setSearchTerm ? searchSetting?.setSearchTerm : setSearchTerm, placeholder: t('Search'), onKeyPress: handleKeyPress }) }));
65641
+ };
65642
+ const defaultToolbarOption = searchSetting?.searchEnable ? [{ template: searchTemplate, align: 'left' }] : [];
65643
+ let toolbarTopOption = [];
65644
+ if (toolbarSetting?.toolbarOptions) {
65645
+ toolbarTopOption = [...defaultToolbarOption, ...toolbarSetting?.toolbarOptions];
65646
+ }
65647
+ else {
65648
+ toolbarTopOption = [...defaultToolbarOption];
65649
+ }
65650
+ const onChangePage = (args) => {
65651
+ if (pagingSetting?.setCurrentPage) {
65652
+ if (args.currentPage === args.oldPage) {
65653
+ return;
65654
+ }
65655
+ pagingSetting.setCurrentPage(args.currentPage);
65656
+ }
65657
+ };
65658
+ const onChangePageSize = (args) => {
65659
+ if (pagingSetting?.allowPaging) {
65660
+ if (pagingSetting?.pageSize !== args.pageSize) {
65661
+ if (pagingSetting?.setPageSize) {
65662
+ pagingSetting.setPageSize(args.pageSize);
65663
+ }
65664
+ if (pagingSetting?.setCurrentPage) {
65665
+ pagingSetting.setCurrentPage(1);
65666
+ }
65667
+ }
65668
+ }
65669
+ };
65670
+ return (jsxs("div", { className: "react-table-edit", children: [jsxs("div", { className: 'r-grid', children: [toolbarSetting?.showTopToolbar && jsx(RenderToolbarTop, { toolbarTopOption: toolbarTopOption }), jsx("div", { ref: gridRef, className: "r-gridtable", onScroll: handleScroll, style: { height: `${height ? `${height}px` : 'auto'}` }, children: jsxs("table", { style: { width: '100%' }, children: [jsx(RenderColGroup, { contentColumns: flatVisble }), jsx("thead", { className: 'r-gridheader', children: headerColumns.map((rowColumn, indexParent) => (jsx("tr", { className: "r-row", role: "row", children: rowColumn.map((column, indexColumn) => (jsx(HeaderTableCol, { col: column, dataSource: dataSource, indexCol: indexColumn, indexParent: indexParent, isMulti: isMutil ?? false, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, columns: contentColumns, setColumns: setColumns, objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, orderBy: orderBy, allowFilter: allowFilter, allowOrder: allowOrder, filterBy: filterBy, changeFilter: (val) => {
65671
+ setFilterBy([...val]);
65672
+ if (changeFilter) {
65673
+ changeFilter(val);
65674
+ }
65675
+ }, changeOrder: (val) => {
65676
+ setOrderBy([...val]);
65677
+ if (changeOrder) {
65678
+ changeOrder(val);
65679
+ }
65680
+ }, container: gridRef, totalCount: dataSource.length }, `header-${indexParent}-${indexColumn}`))) }, indexParent))) }), (((dataSource.length ?? 0) === 0) && !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...')] }), jsxs("tbody", { className: 'r-gridcontent', children: [jsx("tr", { style: { height: (startIndex < countLoading ? startIndex : startIndex - countLoading) * rowHeight }, children: jsx("td", { style: { padding: 0 }, colSpan: flatVisble.length }) }), startIndex > countLoading && Array.from({ length: countLoading }).map((_, index) => (jsx(SkeletonRow, { columns: flatVisble.length, rowHeight: rowHeight }, `top-${index}`))), visibleData.map((row, index) => {
65681
+ const indexRow = index + startIndex;
65682
+ const isSelected = selectedRows?.some((x) => x[fieldKey] === row[fieldKey]);
65683
+ return (jsx("tr", { className: classNames$1('r-row'), children: contentColumns.map((column, indexCol) => (jsx(RenderContentCol, { idTable: idTable, col: column, fieldKey: 'field', objWidthFixLeft: objWidthFixLeft, objWidthFixRight: objWidthFixRight, fisrtObjWidthFixRight: fisrtObjWidthFixRight, lastObjWidthFixLeft: lastObjWidthFixLeft, isMulti: isMutil ?? false, selectEnable: selectEnable ?? false, selectedRows: selectedRows, setSelectedRows: setSelectedRows, formatSetting: formatSetting, handleCommandClick: handleCommandClick, indexCol: indexCol, indexRow: indexRow, isSelected: isSelected, row: row }, indexCol))) }, `row-${indexRow}`));
65684
+ }), jsx("tr", { style: { height: (dataSource.length - (startIndex + visibleData.length)) * rowHeight }, children: jsx("td", { style: { padding: 0 }, colSpan: flatVisble.length }) })] }), jsx("tfoot", { className: "r-gridfoot", children: (columnsAggregate?.length ?? 0) > 0 ? jsx("tr", { className: 'r-row', children: contentColumns.map((col, indexCol) => {
65685
+ const item = columnsAggregate?.find((x) => x.field === col.field);
65686
+ let sumValue = item?.value;
65687
+ if (!item && col.haveSum === true && col.type === "numeric") {
65688
+ sumValue = dataSource.reduce(function (accumulator, currentValue) { return (Number(accumulator ?? 0) + Number(currentValue[col.field] ?? 0)); }, 0);
65689
+ }
65690
+ return col.visible !== false && jsx("td", { className: classNames$1(`p-0 px-50 r-footer fix-${col.fixedType}`, { 'cell-fixed': col.fixedType }), style: {
65691
+ left: col.fixedType === 'left' ? objWidthFixLeft[indexCol] : undefined,
65692
+ right: col.fixedType === 'right' ? objWidthFixRight[indexCol] : undefined,
65693
+ textAlign: col.textAlign ? col.textAlign : 'left'
65694
+ }, children: jsxs("div", { className: "r-footer-div", children: [(item || (col.haveSum === true && col.type === "numeric")) && col.type === "numeric" && (Number(sumValue) >= 0) && jsx(Fragment$1, { children: formartNumberic(sumValue, formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false) }), (item || (col.haveSum === true && col.type === "numeric")) && col.type === "numeric" && (Number(sumValue) < 0) && jsxs("div", { style: { color: formatSetting?.colorNegative ?? 'red' }, children: [" ", `${formatSetting?.prefixNegative ?? '-'}${formartNumberic(sumValue, formatSetting?.decimalSeparator ?? ',', formatSetting?.thousandSeparator ?? '.', col.numericSettings?.fraction, true, false)}${formatSetting?.suffixNegative ?? ''}`] })] }) }, `summarycell-${indexCol}`);
65695
+ }) }) : jsx(Fragment$1, {}) })] }) })] }), pagingSetting?.allowPaging ? jsx(PagingComponent, { onChangePage: onChangePage, pageSize: pagingSetting?.pageSize ?? 0, currentPage: pagingSetting?.currentPage ?? 0, pageOptions: pagingSetting?.pageOptions ?? [20, 30, 50, 100], totalItem: (pagingSetting?.totalItem ?? 0), onChangePageSize: onChangePageSize }) : jsx(Fragment$1, {})] }));
65696
+ };
65697
+
65698
+ export { ExportExcelComponent, FindNodeByPath, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TabsMenuComponent, VirtualTable, Wizard, calculateTableStructure, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined$1 as isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, roundNumber, useOnClickOutside };
65382
65699
  //# sourceMappingURL=index.mjs.map