@fctc/sme-widget-ui 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports2.ContextProvider = ContextProvider;
4357
4357
  exports2.Element = Element2;
4358
4358
  exports2.ForwardRef = ForwardRef;
4359
- exports2.Fragment = Fragment33;
4359
+ exports2.Fragment = Fragment34;
4360
4360
  exports2.Lazy = Lazy;
4361
4361
  exports2.Memo = Memo;
4362
4362
  exports2.Portal = Portal2;
@@ -16762,7 +16762,6 @@ var VideoPlayer = ({ src }) => {
16762
16762
  };
16763
16763
 
16764
16764
  // src/widgets/basic/avatar-field/avatar.tsx
16765
- var import_react_dom4 = require("react-dom");
16766
16765
  var import_jsx_runtime73 = require("react/jsx-runtime");
16767
16766
  var AvatarField = (props) => {
16768
16767
  const {
@@ -16787,7 +16786,7 @@ var AvatarField = (props) => {
16787
16786
  color: textColor,
16788
16787
  fontSize: `${size4 / 2.5}px`
16789
16788
  };
16790
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative", children: [
16789
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
16791
16790
  isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16792
16791
  ModalDetail,
16793
16792
  {
@@ -16799,17 +16798,14 @@ var AvatarField = (props) => {
16799
16798
  place: "top-start"
16800
16799
  }
16801
16800
  ),
16802
- allowShowDetail && (0, import_react_dom4.createPortal)(
16803
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16804
- M,
16805
- {
16806
- id: `avatar-widget-id-${id}`,
16807
- place: isForm ? "bottom" : "top",
16808
- content: fullName,
16809
- className: "z-20"
16810
- }
16811
- ),
16812
- document.body
16801
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16802
+ M,
16803
+ {
16804
+ id: `avatar-widget-id-${id}`,
16805
+ place: isForm ? "bottom" : "top",
16806
+ content: fullName,
16807
+ className: "z-20"
16808
+ }
16813
16809
  ),
16814
16810
  avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16815
16811
  "img",
@@ -22186,7 +22182,7 @@ function useFloating2(options2) {
22186
22182
  }
22187
22183
 
22188
22184
  // node_modules/react-datepicker/dist/index.es.js
22189
- var import_react_dom7 = __toESM(require("react-dom"));
22185
+ var import_react_dom6 = __toESM(require("react-dom"));
22190
22186
  var _extendStatics = function extendStatics(d, b2) {
22191
22187
  _extendStatics = Object.setPrototypeOf || {
22192
22188
  __proto__: []
@@ -25429,7 +25425,7 @@ var Portal = (
25429
25425
  }
25430
25426
  };
25431
25427
  Portal2.prototype.render = function() {
25432
- return import_react_dom7.default.createPortal(this.props.children, this.el);
25428
+ return import_react_dom6.default.createPortal(this.props.children, this.el);
25433
25429
  };
25434
25430
  return Portal2;
25435
25431
  }(import_react45.Component)
@@ -27997,7 +27993,7 @@ function _taggedTemplateLiteral(e3, t3) {
27997
27993
 
27998
27994
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27999
27995
  var import_react51 = require("react");
28000
- var import_react_dom8 = require("react-dom");
27996
+ var import_react_dom7 = require("react-dom");
28001
27997
 
28002
27998
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
28003
27999
  var import_react49 = require("react");
@@ -28500,7 +28496,7 @@ var MenuPortal = function MenuPortal2(props) {
28500
28496
  }), innerProps), children);
28501
28497
  return jsx83(PortalPlacementContext.Provider, {
28502
28498
  value: portalPlacementContext
28503
- }, appendTo ? /* @__PURE__ */ (0, import_react_dom8.createPortal)(menuWrapper, appendTo) : menuWrapper);
28499
+ }, appendTo ? /* @__PURE__ */ (0, import_react_dom7.createPortal)(menuWrapper, appendTo) : menuWrapper);
28504
28500
  };
28505
28501
  var containerCSS = function containerCSS2(_ref3) {
28506
28502
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -31393,7 +31389,7 @@ var import_toConsumableArray2 = __toESM(require_toConsumableArray());
31393
31389
  var import_typeof5 = __toESM(require_typeof());
31394
31390
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
31395
31391
  var import_defineProperty3 = __toESM(require_defineProperty());
31396
- var import_react_dom9 = require("react-dom");
31392
+ var import_react_dom8 = require("react-dom");
31397
31393
  var StateManagedSelect = /* @__PURE__ */ (0, import_react54.forwardRef)(function(props, ref) {
31398
31394
  var baseSelectProps = useStateManager(props);
31399
31395
  return /* @__PURE__ */ React14.createElement(Select, _extends({
@@ -33343,7 +33339,7 @@ var StatusDropdownField = (props) => {
33343
33339
  };
33344
33340
 
33345
33341
  // src/widgets/basic/many2many-field/many2many.tsx
33346
- var import_react_dom10 = require("react-dom");
33342
+ var import_react_dom9 = require("react-dom");
33347
33343
  var import_react66 = require("react");
33348
33344
  var import_jsx_runtime106 = require("react/jsx-runtime");
33349
33345
  var Many2ManyField = (props) => {
@@ -33418,7 +33414,7 @@ var Many2ManyField = (props) => {
33418
33414
  typeof setGroupByList === "function" && setGroupByList(null);
33419
33415
  };
33420
33416
  }, [selectedTags]);
33421
- return (0, import_react_dom10.createPortal)(
33417
+ return (0, import_react_dom9.createPortal)(
33422
33418
  /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33423
33419
  "div",
33424
33420
  {
package/dist/index.mjs CHANGED
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports.ContextProvider = ContextProvider;
4357
4357
  exports.Element = Element2;
4358
4358
  exports.ForwardRef = ForwardRef;
4359
- exports.Fragment = Fragment33;
4359
+ exports.Fragment = Fragment34;
4360
4360
  exports.Lazy = Lazy;
4361
4361
  exports.Memo = Memo;
4362
4362
  exports.Portal = Portal2;
@@ -16637,8 +16637,7 @@ var VideoPlayer = ({ src }) => {
16637
16637
  };
16638
16638
 
16639
16639
  // src/widgets/basic/avatar-field/avatar.tsx
16640
- import { createPortal as createPortal4 } from "react-dom";
16641
- import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16640
+ import { Fragment as Fragment15, jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16642
16641
  var AvatarField = (props) => {
16643
16642
  const {
16644
16643
  isForm = false,
@@ -16662,7 +16661,7 @@ var AvatarField = (props) => {
16662
16661
  color: textColor,
16663
16662
  fontSize: `${size4 / 2.5}px`
16664
16663
  };
16665
- return /* @__PURE__ */ jsxs48("div", { className: "relative", children: [
16664
+ return /* @__PURE__ */ jsxs48(Fragment15, { children: [
16666
16665
  isForm && allowShowDetail && /* @__PURE__ */ jsx73(
16667
16666
  ModalDetail,
16668
16667
  {
@@ -16674,17 +16673,14 @@ var AvatarField = (props) => {
16674
16673
  place: "top-start"
16675
16674
  }
16676
16675
  ),
16677
- allowShowDetail && createPortal4(
16678
- /* @__PURE__ */ jsx73(
16679
- M,
16680
- {
16681
- id: `avatar-widget-id-${id}`,
16682
- place: isForm ? "bottom" : "top",
16683
- content: fullName,
16684
- className: "z-20"
16685
- }
16686
- ),
16687
- document.body
16676
+ allowShowDetail && /* @__PURE__ */ jsx73(
16677
+ M,
16678
+ {
16679
+ id: `avatar-widget-id-${id}`,
16680
+ place: isForm ? "bottom" : "top",
16681
+ content: fullName,
16682
+ className: "z-20"
16683
+ }
16688
16684
  ),
16689
16685
  avatarSrc ? /* @__PURE__ */ jsx73(
16690
16686
  "img",
@@ -16708,7 +16704,7 @@ var AvatarField = (props) => {
16708
16704
 
16709
16705
  // src/widgets/basic/binary-field/binary.tsx
16710
16706
  import { useEffect as useEffect11, useState as useState11 } from "react";
16711
- import { Fragment as Fragment15, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16707
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16712
16708
  var BinaryField = (props) => {
16713
16709
  const {
16714
16710
  name: name2,
@@ -16834,7 +16830,7 @@ var BinaryField = (props) => {
16834
16830
  },
16835
16831
  render: ({ field, fieldState: { error: error2 } }) => {
16836
16832
  const hasFile = !!fileInfo;
16837
- return /* @__PURE__ */ jsxs49(Fragment15, { children: [
16833
+ return /* @__PURE__ */ jsxs49(Fragment16, { children: [
16838
16834
  /* @__PURE__ */ jsx74(
16839
16835
  "div",
16840
16836
  {
@@ -17049,7 +17045,7 @@ var ButtonBadgeField = (props) => {
17049
17045
  };
17050
17046
 
17051
17047
  // src/widgets/basic/button-field/button.tsx
17052
- import { Fragment as Fragment16, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
17048
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
17053
17049
  var ButtonField = (props) => {
17054
17050
  const {
17055
17051
  func,
@@ -17060,7 +17056,7 @@ var ButtonField = (props) => {
17060
17056
  type = "submit"
17061
17057
  } = props;
17062
17058
  const { t: t3 } = useI18n();
17063
- return /* @__PURE__ */ jsx76(Fragment16, { children: !loading ? /* @__PURE__ */ jsx76(
17059
+ return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
17064
17060
  "button",
17065
17061
  {
17066
17062
  type,
@@ -17086,7 +17082,7 @@ var ButtonField = (props) => {
17086
17082
 
17087
17083
  // src/widgets/basic/char-field/char.tsx
17088
17084
  import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
17089
- import { Fragment as Fragment17, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
17085
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
17090
17086
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17091
17087
  var CharField = (props) => {
17092
17088
  const {
@@ -17170,7 +17166,7 @@ var CharField = (props) => {
17170
17166
  }
17171
17167
  return "";
17172
17168
  }, [widget, formValues]);
17173
- return /* @__PURE__ */ jsxs51(Fragment17, { children: [
17169
+ return /* @__PURE__ */ jsxs51(Fragment18, { children: [
17174
17170
  /* @__PURE__ */ jsx77(
17175
17171
  "input",
17176
17172
  {
@@ -17232,7 +17228,7 @@ var CharField = (props) => {
17232
17228
  `
17233
17229
  }
17234
17230
  ),
17235
- isEditTable ? /* @__PURE__ */ jsx77(Fragment17, {}) : /* @__PURE__ */ jsx77(Fragment17, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17231
+ isEditTable ? /* @__PURE__ */ jsx77(Fragment18, {}) : /* @__PURE__ */ jsx77(Fragment18, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17236
17232
  ] });
17237
17233
  }
17238
17234
  }
@@ -17314,7 +17310,7 @@ var CheckboxField = (props) => {
17314
17310
 
17315
17311
  // src/widgets/basic/color-field/color-wrapper.tsx
17316
17312
  import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
17317
- import { Fragment as Fragment18, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
17313
+ import { Fragment as Fragment19, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
17318
17314
  var ColorWrapper = (props) => {
17319
17315
  const {
17320
17316
  colors: colors2,
@@ -17365,7 +17361,7 @@ var ColorWrapper = (props) => {
17365
17361
  content: i18n_default.t(color?.name)
17366
17362
  }
17367
17363
  )
17368
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment18, { children: [
17364
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
17369
17365
  /* @__PURE__ */ jsx79(
17370
17366
  "button",
17371
17367
  {
@@ -21465,7 +21461,7 @@ function useEffectEvent(callback) {
21465
21461
  }
21466
21462
 
21467
21463
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21468
- import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment19 } from "react/jsx-runtime";
21464
+ import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
21469
21465
  import * as ReactDOM2 from "react-dom";
21470
21466
 
21471
21467
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -26539,7 +26535,7 @@ function _toConsumableArray(r4) {
26539
26535
 
26540
26536
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26541
26537
  import * as React13 from "react";
26542
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
26538
+ import { useMemo as useMemo8, Fragment as Fragment23, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
26543
26539
 
26544
26540
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26545
26541
  import * as React11 from "react";
@@ -27872,7 +27868,7 @@ function _taggedTemplateLiteral(e3, t3) {
27872
27868
 
27873
27869
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27874
27870
  import { useContext as useContext9, useRef as useRef13, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27875
- import { createPortal as createPortal6 } from "react-dom";
27871
+ import { createPortal as createPortal5 } from "react-dom";
27876
27872
 
27877
27873
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27878
27874
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -28375,7 +28371,7 @@ var MenuPortal = function MenuPortal2(props) {
28375
28371
  }), innerProps), children);
28376
28372
  return jsx83(PortalPlacementContext.Provider, {
28377
28373
  value: portalPlacementContext
28378
- }, appendTo ? /* @__PURE__ */ createPortal6(menuWrapper, appendTo) : menuWrapper);
28374
+ }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28379
28375
  };
28380
28376
  var containerCSS = function containerCSS2(_ref3) {
28381
28377
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -29104,7 +29100,7 @@ var LiveRegion = function LiveRegion2(props) {
29104
29100
  }
29105
29101
  return guidanceMsg;
29106
29102
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29107
- var ScreenReaderText = jsx83(Fragment22, null, jsx83("span", {
29103
+ var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
29108
29104
  id: "aria-selection"
29109
29105
  }, ariaSelected), jsx83("span", {
29110
29106
  id: "aria-focused"
@@ -29113,7 +29109,7 @@ var LiveRegion = function LiveRegion2(props) {
29113
29109
  }, ariaResults), jsx83("span", {
29114
29110
  id: "aria-guidance"
29115
29111
  }, ariaGuidance));
29116
- return jsx83(Fragment22, null, jsx83(A11yText$1, {
29112
+ return jsx83(Fragment23, null, jsx83(A11yText$1, {
29117
29113
  id
29118
29114
  }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
29119
29115
  "aria-live": ariaLive,
@@ -29670,7 +29666,7 @@ function ScrollManager(_ref3) {
29670
29666
  setScrollCaptureTarget(element);
29671
29667
  setScrollLockTarget(element);
29672
29668
  };
29673
- return jsx83(Fragment22, null, lockEnabled && jsx83("div", {
29669
+ return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
29674
29670
  onClick: blurSelectInput,
29675
29671
  css: _ref2$1
29676
29672
  }), children(targetRef));
@@ -31279,7 +31275,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31279
31275
 
31280
31276
  // src/widgets/basic/date-field/date.tsx
31281
31277
  var import_moment2 = __toESM(require_moment());
31282
- import { Fragment as Fragment23, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31278
+ import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31283
31279
  var DateField = (props) => {
31284
31280
  const {
31285
31281
  name: name2,
@@ -31350,7 +31346,7 @@ var DateField = (props) => {
31350
31346
  }
31351
31347
  }, [value, clearErrors, name2]);
31352
31348
  const selectedDate = !methods ? value && (0, import_moment2.default)(value, formatDateParse).isValid() ? (0, import_moment2.default)(value, formatDateParse).add(7, "hours").toDate() : null : field?.value && (0, import_moment2.default)(field.value, formatDateParse).isValid() ? (0, import_moment2.default)(field.value, formatDateParse).add(7, "hours").toDate() : null;
31353
- return /* @__PURE__ */ jsxs55(Fragment23, { children: [
31349
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
31354
31350
  /* @__PURE__ */ jsx85(
31355
31351
  DatePicker,
31356
31352
  {
@@ -31634,7 +31630,7 @@ var DropdownField = (props) => {
31634
31630
  };
31635
31631
 
31636
31632
  // src/widgets/basic/fee-field/fee.tsx
31637
- import { Fragment as Fragment24, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31633
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31638
31634
  var FeeField = (props) => {
31639
31635
  const { value, formValues } = props;
31640
31636
  const { t: t3 } = useI18n();
@@ -31645,10 +31641,10 @@ var FeeField = (props) => {
31645
31641
  )
31646
31642
  ) + " VND";
31647
31643
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31648
- return /* @__PURE__ */ jsxs59(Fragment24, { children: [
31644
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31649
31645
  value?.subtotals?.map((sub) => {
31650
31646
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31651
- return /* @__PURE__ */ jsxs59(Fragment24, { children: [
31647
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31652
31648
  /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31653
31649
  /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31654
31650
  sub?.name,
@@ -31841,7 +31837,7 @@ var FileUploadField = (props) => {
31841
31837
 
31842
31838
  // src/widgets/basic/float-field/float.tsx
31843
31839
  import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
31844
- import { Fragment as Fragment25, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31840
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31845
31841
  var FloatField = (props) => {
31846
31842
  const {
31847
31843
  name: name2,
@@ -31968,7 +31964,7 @@ var FloatField = (props) => {
31968
31964
  }
31969
31965
  isDirtyRef.current = false;
31970
31966
  };
31971
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31967
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31972
31968
  /* @__PURE__ */ jsx91(
31973
31969
  "input",
31974
31970
  {
@@ -31998,7 +31994,7 @@ var FloatField = (props) => {
31998
31994
 
31999
31995
  // src/widgets/basic/float-time-field/float-time.tsx
32000
31996
  import { useState as useState20 } from "react";
32001
- import { Fragment as Fragment26, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
31997
+ import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
32002
31998
  var FloatTimeField = (props) => {
32003
31999
  const {
32004
32000
  name: name2,
@@ -32078,7 +32074,7 @@ var FloatTimeField = (props) => {
32078
32074
  }
32079
32075
  onBlur();
32080
32076
  };
32081
- return /* @__PURE__ */ jsxs62(Fragment26, { children: [
32077
+ return /* @__PURE__ */ jsxs62(Fragment27, { children: [
32082
32078
  /* @__PURE__ */ jsx92(
32083
32079
  "input",
32084
32080
  {
@@ -32188,11 +32184,11 @@ var ImageField = (props) => {
32188
32184
  import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
32189
32185
 
32190
32186
  // src/widgets/basic/information-field/information.tsx
32191
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32187
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32192
32188
  var InfomationField = (props) => {
32193
32189
  const { value, isForm = false, showName = true, stringToColor } = props;
32194
32190
  if (!value || Array.isArray(value) && value.length === 0) {
32195
- return /* @__PURE__ */ jsx95(Fragment27, {});
32191
+ return /* @__PURE__ */ jsx95(Fragment28, {});
32196
32192
  }
32197
32193
  const inforValues = Array.isArray(value) ? value : [value];
32198
32194
  return /* @__PURE__ */ jsx95("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx95(
@@ -32467,7 +32463,7 @@ var Many2ManyTagField = (props) => {
32467
32463
 
32468
32464
  // src/widgets/basic/monetary-field/monetary.tsx
32469
32465
  import { useEffect as useEffect23 } from "react";
32470
- import { Fragment as Fragment28, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
32466
+ import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
32471
32467
  var MonetaryField = (props) => {
32472
32468
  const { t: t3 } = useI18n();
32473
32469
  const {
@@ -32525,7 +32521,7 @@ var MonetaryField = (props) => {
32525
32521
  clearErrors(name2);
32526
32522
  }
32527
32523
  }, [value2]);
32528
- return /* @__PURE__ */ jsxs65(Fragment28, { children: [
32524
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
32529
32525
  /* @__PURE__ */ jsx97(
32530
32526
  "input",
32531
32527
  {
@@ -32787,7 +32783,7 @@ var RemainingDaysField = (props) => {
32787
32783
  };
32788
32784
 
32789
32785
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32790
- import { Fragment as Fragment29, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32786
+ import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32791
32787
  var SelectDropdownField = (props) => {
32792
32788
  const { t: t3 } = useI18n();
32793
32789
  const {
@@ -32838,7 +32834,7 @@ var SelectDropdownField = (props) => {
32838
32834
  value: defaultValue || null,
32839
32835
  required: !invisible && required
32840
32836
  };
32841
- return /* @__PURE__ */ jsxs69(Fragment29, { children: [
32837
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32842
32838
  /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
32843
32839
  StateManagedSelect$1,
32844
32840
  {
@@ -33020,7 +33016,7 @@ var ToggleButtonField = (props) => {
33020
33016
 
33021
33017
  // src/widgets/basic/integer-field/integer.tsx
33022
33018
  import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
33023
- import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33019
+ import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33024
33020
  var IntegerField = (props) => {
33025
33021
  const {
33026
33022
  name: name2,
@@ -33119,7 +33115,7 @@ var IntegerField = (props) => {
33119
33115
  inputRef.current?.blur();
33120
33116
  clearErrors(name2);
33121
33117
  };
33122
- return /* @__PURE__ */ jsxs71(Fragment30, { children: [
33118
+ return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33123
33119
  /* @__PURE__ */ jsx106(
33124
33120
  "input",
33125
33121
  {
@@ -33218,7 +33214,7 @@ var StatusDropdownField = (props) => {
33218
33214
  };
33219
33215
 
33220
33216
  // src/widgets/basic/many2many-field/many2many.tsx
33221
- import { createPortal as createPortal7 } from "react-dom";
33217
+ import { createPortal as createPortal6 } from "react-dom";
33222
33218
  import { useEffect as useEffect27 } from "react";
33223
33219
  import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33224
33220
  var Many2ManyField = (props) => {
@@ -33293,7 +33289,7 @@ var Many2ManyField = (props) => {
33293
33289
  typeof setGroupByList === "function" && setGroupByList(null);
33294
33290
  };
33295
33291
  }, [selectedTags]);
33296
- return createPortal7(
33292
+ return createPortal6(
33297
33293
  /* @__PURE__ */ jsxs73(
33298
33294
  "div",
33299
33295
  {
@@ -33500,7 +33496,7 @@ var Many2ManyField = (props) => {
33500
33496
 
33501
33497
  // src/widgets/basic/many2one-field/many2one.tsx
33502
33498
  import React18, { useEffect as useEffect28 } from "react";
33503
- import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33499
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33504
33500
  var CustomMenuList2 = (props) => {
33505
33501
  const { t: t3 } = useI18n();
33506
33502
  const { options: options2, children, selectProps } = props;
@@ -33551,7 +33547,7 @@ var Many2OneField = (props) => {
33551
33547
  const { t: t3 } = useI18n();
33552
33548
  if (!isForm && !isEditTable) {
33553
33549
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33554
- return /* @__PURE__ */ jsxs74(Fragment31, { children: [
33550
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33555
33551
  allowShowDetail && renderDetail({
33556
33552
  idToolTip: String(name2) + Number(index4),
33557
33553
  model: options2?.model ?? relation,
@@ -33569,7 +33565,7 @@ var Many2OneField = (props) => {
33569
33565
  )
33570
33566
  ] });
33571
33567
  }
33572
- return /* @__PURE__ */ jsxs74(Fragment31, { children: [
33568
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33573
33569
  allowShowDetail && renderDetail({
33574
33570
  idToolTip: String(name2),
33575
33571
  model: options2?.model ?? relation,
@@ -33802,7 +33798,7 @@ var StatusbarDurationField = (props) => {
33802
33798
 
33803
33799
  // src/widgets/basic/status-bar-field/option/option.tsx
33804
33800
  import { useMemo as useMemo11 } from "react";
33805
- import { Fragment as Fragment32, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33801
+ import { Fragment as Fragment33, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33806
33802
  var StatusBarOptionField = (props) => {
33807
33803
  const { selection, defaultValue } = props;
33808
33804
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
@@ -33818,7 +33814,7 @@ var StatusBarOptionField = (props) => {
33818
33814
  flexWrap: "wrap"
33819
33815
  },
33820
33816
  children: memoizedStatusOptions?.map((option, index4) => {
33821
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33817
+ return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33822
33818
  /* @__PURE__ */ jsxs76(
33823
33819
  "div",
33824
33820
  {
package/dist/widgets.js CHANGED
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports2.ContextProvider = ContextProvider;
4357
4357
  exports2.Element = Element2;
4358
4358
  exports2.ForwardRef = ForwardRef;
4359
- exports2.Fragment = Fragment33;
4359
+ exports2.Fragment = Fragment34;
4360
4360
  exports2.Lazy = Lazy;
4361
4361
  exports2.Memo = Memo;
4362
4362
  exports2.Portal = Portal2;
@@ -16015,7 +16015,6 @@ var VideoPlayer = ({ src }) => {
16015
16015
  };
16016
16016
 
16017
16017
  // src/widgets/basic/avatar-field/avatar.tsx
16018
- var import_react_dom4 = require("react-dom");
16019
16018
  var import_jsx_runtime73 = require("react/jsx-runtime");
16020
16019
  var AvatarField = (props) => {
16021
16020
  const {
@@ -16040,7 +16039,7 @@ var AvatarField = (props) => {
16040
16039
  color: textColor,
16041
16040
  fontSize: `${size4 / 2.5}px`
16042
16041
  };
16043
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative", children: [
16042
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
16044
16043
  isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16045
16044
  ModalDetail,
16046
16045
  {
@@ -16052,17 +16051,14 @@ var AvatarField = (props) => {
16052
16051
  place: "top-start"
16053
16052
  }
16054
16053
  ),
16055
- allowShowDetail && (0, import_react_dom4.createPortal)(
16056
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16057
- M,
16058
- {
16059
- id: `avatar-widget-id-${id}`,
16060
- place: isForm ? "bottom" : "top",
16061
- content: fullName,
16062
- className: "z-20"
16063
- }
16064
- ),
16065
- document.body
16054
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16055
+ M,
16056
+ {
16057
+ id: `avatar-widget-id-${id}`,
16058
+ place: isForm ? "bottom" : "top",
16059
+ content: fullName,
16060
+ className: "z-20"
16061
+ }
16066
16062
  ),
16067
16063
  avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16068
16064
  "img",
@@ -21439,7 +21435,7 @@ function useFloating2(options2) {
21439
21435
  }
21440
21436
 
21441
21437
  // node_modules/react-datepicker/dist/index.es.js
21442
- var import_react_dom7 = __toESM(require("react-dom"));
21438
+ var import_react_dom6 = __toESM(require("react-dom"));
21443
21439
  var _extendStatics = function extendStatics(d, b2) {
21444
21440
  _extendStatics = Object.setPrototypeOf || {
21445
21441
  __proto__: []
@@ -24682,7 +24678,7 @@ var Portal = (
24682
24678
  }
24683
24679
  };
24684
24680
  Portal2.prototype.render = function() {
24685
- return import_react_dom7.default.createPortal(this.props.children, this.el);
24681
+ return import_react_dom6.default.createPortal(this.props.children, this.el);
24686
24682
  };
24687
24683
  return Portal2;
24688
24684
  }(import_react45.Component)
@@ -27250,7 +27246,7 @@ function _taggedTemplateLiteral(e3, t3) {
27250
27246
 
27251
27247
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27252
27248
  var import_react51 = require("react");
27253
- var import_react_dom8 = require("react-dom");
27249
+ var import_react_dom7 = require("react-dom");
27254
27250
 
27255
27251
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27256
27252
  var import_react49 = require("react");
@@ -27753,7 +27749,7 @@ var MenuPortal = function MenuPortal2(props) {
27753
27749
  }), innerProps), children);
27754
27750
  return jsx83(PortalPlacementContext.Provider, {
27755
27751
  value: portalPlacementContext
27756
- }, appendTo ? /* @__PURE__ */ (0, import_react_dom8.createPortal)(menuWrapper, appendTo) : menuWrapper);
27752
+ }, appendTo ? /* @__PURE__ */ (0, import_react_dom7.createPortal)(menuWrapper, appendTo) : menuWrapper);
27757
27753
  };
27758
27754
  var containerCSS = function containerCSS2(_ref3) {
27759
27755
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -30646,7 +30642,7 @@ var import_toConsumableArray2 = __toESM(require_toConsumableArray());
30646
30642
  var import_typeof5 = __toESM(require_typeof());
30647
30643
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
30648
30644
  var import_defineProperty3 = __toESM(require_defineProperty());
30649
- var import_react_dom9 = require("react-dom");
30645
+ var import_react_dom8 = require("react-dom");
30650
30646
  var StateManagedSelect = /* @__PURE__ */ (0, import_react54.forwardRef)(function(props, ref) {
30651
30647
  var baseSelectProps = useStateManager(props);
30652
30648
  return /* @__PURE__ */ React14.createElement(Select, _extends({
@@ -32596,7 +32592,7 @@ var StatusDropdownField = (props) => {
32596
32592
  };
32597
32593
 
32598
32594
  // src/widgets/basic/many2many-field/many2many.tsx
32599
- var import_react_dom10 = require("react-dom");
32595
+ var import_react_dom9 = require("react-dom");
32600
32596
  var import_react66 = require("react");
32601
32597
  var import_jsx_runtime106 = require("react/jsx-runtime");
32602
32598
  var Many2ManyField = (props) => {
@@ -32671,7 +32667,7 @@ var Many2ManyField = (props) => {
32671
32667
  typeof setGroupByList === "function" && setGroupByList(null);
32672
32668
  };
32673
32669
  }, [selectedTags]);
32674
- return (0, import_react_dom10.createPortal)(
32670
+ return (0, import_react_dom9.createPortal)(
32675
32671
  /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
32676
32672
  "div",
32677
32673
  {
package/dist/widgets.mjs CHANGED
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports.ContextProvider = ContextProvider;
4357
4357
  exports.Element = Element2;
4358
4358
  exports.ForwardRef = ForwardRef;
4359
- exports.Fragment = Fragment33;
4359
+ exports.Fragment = Fragment34;
4360
4360
  exports.Lazy = Lazy;
4361
4361
  exports.Memo = Memo;
4362
4362
  exports.Portal = Portal2;
@@ -15953,8 +15953,7 @@ var VideoPlayer = ({ src }) => {
15953
15953
  };
15954
15954
 
15955
15955
  // src/widgets/basic/avatar-field/avatar.tsx
15956
- import { createPortal as createPortal4 } from "react-dom";
15957
- import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
15956
+ import { Fragment as Fragment15, jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
15958
15957
  var AvatarField = (props) => {
15959
15958
  const {
15960
15959
  isForm = false,
@@ -15978,7 +15977,7 @@ var AvatarField = (props) => {
15978
15977
  color: textColor,
15979
15978
  fontSize: `${size4 / 2.5}px`
15980
15979
  };
15981
- return /* @__PURE__ */ jsxs48("div", { className: "relative", children: [
15980
+ return /* @__PURE__ */ jsxs48(Fragment15, { children: [
15982
15981
  isForm && allowShowDetail && /* @__PURE__ */ jsx73(
15983
15982
  ModalDetail,
15984
15983
  {
@@ -15990,17 +15989,14 @@ var AvatarField = (props) => {
15990
15989
  place: "top-start"
15991
15990
  }
15992
15991
  ),
15993
- allowShowDetail && createPortal4(
15994
- /* @__PURE__ */ jsx73(
15995
- M,
15996
- {
15997
- id: `avatar-widget-id-${id}`,
15998
- place: isForm ? "bottom" : "top",
15999
- content: fullName,
16000
- className: "z-20"
16001
- }
16002
- ),
16003
- document.body
15992
+ allowShowDetail && /* @__PURE__ */ jsx73(
15993
+ M,
15994
+ {
15995
+ id: `avatar-widget-id-${id}`,
15996
+ place: isForm ? "bottom" : "top",
15997
+ content: fullName,
15998
+ className: "z-20"
15999
+ }
16004
16000
  ),
16005
16001
  avatarSrc ? /* @__PURE__ */ jsx73(
16006
16002
  "img",
@@ -16024,7 +16020,7 @@ var AvatarField = (props) => {
16024
16020
 
16025
16021
  // src/widgets/basic/binary-field/binary.tsx
16026
16022
  import { useEffect as useEffect11, useState as useState11 } from "react";
16027
- import { Fragment as Fragment15, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16023
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16028
16024
  var BinaryField = (props) => {
16029
16025
  const {
16030
16026
  name: name2,
@@ -16150,7 +16146,7 @@ var BinaryField = (props) => {
16150
16146
  },
16151
16147
  render: ({ field, fieldState: { error: error2 } }) => {
16152
16148
  const hasFile = !!fileInfo;
16153
- return /* @__PURE__ */ jsxs49(Fragment15, { children: [
16149
+ return /* @__PURE__ */ jsxs49(Fragment16, { children: [
16154
16150
  /* @__PURE__ */ jsx74(
16155
16151
  "div",
16156
16152
  {
@@ -16365,7 +16361,7 @@ var ButtonBadgeField = (props) => {
16365
16361
  };
16366
16362
 
16367
16363
  // src/widgets/basic/button-field/button.tsx
16368
- import { Fragment as Fragment16, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16364
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16369
16365
  var ButtonField = (props) => {
16370
16366
  const {
16371
16367
  func,
@@ -16376,7 +16372,7 @@ var ButtonField = (props) => {
16376
16372
  type = "submit"
16377
16373
  } = props;
16378
16374
  const { t: t3 } = useI18n();
16379
- return /* @__PURE__ */ jsx76(Fragment16, { children: !loading ? /* @__PURE__ */ jsx76(
16375
+ return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
16380
16376
  "button",
16381
16377
  {
16382
16378
  type,
@@ -16402,7 +16398,7 @@ var ButtonField = (props) => {
16402
16398
 
16403
16399
  // src/widgets/basic/char-field/char.tsx
16404
16400
  import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
16405
- import { Fragment as Fragment17, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
16401
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
16406
16402
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16407
16403
  var CharField = (props) => {
16408
16404
  const {
@@ -16486,7 +16482,7 @@ var CharField = (props) => {
16486
16482
  }
16487
16483
  return "";
16488
16484
  }, [widget, formValues]);
16489
- return /* @__PURE__ */ jsxs51(Fragment17, { children: [
16485
+ return /* @__PURE__ */ jsxs51(Fragment18, { children: [
16490
16486
  /* @__PURE__ */ jsx77(
16491
16487
  "input",
16492
16488
  {
@@ -16548,7 +16544,7 @@ var CharField = (props) => {
16548
16544
  `
16549
16545
  }
16550
16546
  ),
16551
- isEditTable ? /* @__PURE__ */ jsx77(Fragment17, {}) : /* @__PURE__ */ jsx77(Fragment17, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16547
+ isEditTable ? /* @__PURE__ */ jsx77(Fragment18, {}) : /* @__PURE__ */ jsx77(Fragment18, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16552
16548
  ] });
16553
16549
  }
16554
16550
  }
@@ -16630,7 +16626,7 @@ var CheckboxField = (props) => {
16630
16626
 
16631
16627
  // src/widgets/basic/color-field/color-wrapper.tsx
16632
16628
  import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
16633
- import { Fragment as Fragment18, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16629
+ import { Fragment as Fragment19, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16634
16630
  var ColorWrapper = (props) => {
16635
16631
  const {
16636
16632
  colors: colors2,
@@ -16681,7 +16677,7 @@ var ColorWrapper = (props) => {
16681
16677
  content: i18n_default.t(color?.name)
16682
16678
  }
16683
16679
  )
16684
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment18, { children: [
16680
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
16685
16681
  /* @__PURE__ */ jsx79(
16686
16682
  "button",
16687
16683
  {
@@ -20781,7 +20777,7 @@ function useEffectEvent(callback) {
20781
20777
  }
20782
20778
 
20783
20779
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
20784
- import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment19 } from "react/jsx-runtime";
20780
+ import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
20785
20781
  import * as ReactDOM2 from "react-dom";
20786
20782
 
20787
20783
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -25855,7 +25851,7 @@ function _toConsumableArray(r4) {
25855
25851
 
25856
25852
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
25857
25853
  import * as React13 from "react";
25858
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
25854
+ import { useMemo as useMemo8, Fragment as Fragment23, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
25859
25855
 
25860
25856
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
25861
25857
  import * as React11 from "react";
@@ -27188,7 +27184,7 @@ function _taggedTemplateLiteral(e3, t3) {
27188
27184
 
27189
27185
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27190
27186
  import { useContext as useContext9, useRef as useRef13, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27191
- import { createPortal as createPortal6 } from "react-dom";
27187
+ import { createPortal as createPortal5 } from "react-dom";
27192
27188
 
27193
27189
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27194
27190
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -27691,7 +27687,7 @@ var MenuPortal = function MenuPortal2(props) {
27691
27687
  }), innerProps), children);
27692
27688
  return jsx83(PortalPlacementContext.Provider, {
27693
27689
  value: portalPlacementContext
27694
- }, appendTo ? /* @__PURE__ */ createPortal6(menuWrapper, appendTo) : menuWrapper);
27690
+ }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
27695
27691
  };
27696
27692
  var containerCSS = function containerCSS2(_ref3) {
27697
27693
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28420,7 +28416,7 @@ var LiveRegion = function LiveRegion2(props) {
28420
28416
  }
28421
28417
  return guidanceMsg;
28422
28418
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28423
- var ScreenReaderText = jsx83(Fragment22, null, jsx83("span", {
28419
+ var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
28424
28420
  id: "aria-selection"
28425
28421
  }, ariaSelected), jsx83("span", {
28426
28422
  id: "aria-focused"
@@ -28429,7 +28425,7 @@ var LiveRegion = function LiveRegion2(props) {
28429
28425
  }, ariaResults), jsx83("span", {
28430
28426
  id: "aria-guidance"
28431
28427
  }, ariaGuidance));
28432
- return jsx83(Fragment22, null, jsx83(A11yText$1, {
28428
+ return jsx83(Fragment23, null, jsx83(A11yText$1, {
28433
28429
  id
28434
28430
  }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
28435
28431
  "aria-live": ariaLive,
@@ -28986,7 +28982,7 @@ function ScrollManager(_ref3) {
28986
28982
  setScrollCaptureTarget(element);
28987
28983
  setScrollLockTarget(element);
28988
28984
  };
28989
- return jsx83(Fragment22, null, lockEnabled && jsx83("div", {
28985
+ return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
28990
28986
  onClick: blurSelectInput,
28991
28987
  css: _ref2$1
28992
28988
  }), children(targetRef));
@@ -30595,7 +30591,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30595
30591
 
30596
30592
  // src/widgets/basic/date-field/date.tsx
30597
30593
  var import_moment2 = __toESM(require_moment());
30598
- import { Fragment as Fragment23, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
30594
+ import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
30599
30595
  var DateField = (props) => {
30600
30596
  const {
30601
30597
  name: name2,
@@ -30666,7 +30662,7 @@ var DateField = (props) => {
30666
30662
  }
30667
30663
  }, [value, clearErrors, name2]);
30668
30664
  const selectedDate = !methods ? value && (0, import_moment2.default)(value, formatDateParse).isValid() ? (0, import_moment2.default)(value, formatDateParse).add(7, "hours").toDate() : null : field?.value && (0, import_moment2.default)(field.value, formatDateParse).isValid() ? (0, import_moment2.default)(field.value, formatDateParse).add(7, "hours").toDate() : null;
30669
- return /* @__PURE__ */ jsxs55(Fragment23, { children: [
30665
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
30670
30666
  /* @__PURE__ */ jsx85(
30671
30667
  DatePicker,
30672
30668
  {
@@ -30950,7 +30946,7 @@ var DropdownField = (props) => {
30950
30946
  };
30951
30947
 
30952
30948
  // src/widgets/basic/fee-field/fee.tsx
30953
- import { Fragment as Fragment24, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
30949
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
30954
30950
  var FeeField = (props) => {
30955
30951
  const { value, formValues } = props;
30956
30952
  const { t: t3 } = useI18n();
@@ -30961,10 +30957,10 @@ var FeeField = (props) => {
30961
30957
  )
30962
30958
  ) + " VND";
30963
30959
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
30964
- return /* @__PURE__ */ jsxs59(Fragment24, { children: [
30960
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
30965
30961
  value?.subtotals?.map((sub) => {
30966
30962
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
30967
- return /* @__PURE__ */ jsxs59(Fragment24, { children: [
30963
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
30968
30964
  /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
30969
30965
  /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30970
30966
  sub?.name,
@@ -31157,7 +31153,7 @@ var FileUploadField = (props) => {
31157
31153
 
31158
31154
  // src/widgets/basic/float-field/float.tsx
31159
31155
  import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
31160
- import { Fragment as Fragment25, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31156
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31161
31157
  var FloatField = (props) => {
31162
31158
  const {
31163
31159
  name: name2,
@@ -31284,7 +31280,7 @@ var FloatField = (props) => {
31284
31280
  }
31285
31281
  isDirtyRef.current = false;
31286
31282
  };
31287
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31283
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31288
31284
  /* @__PURE__ */ jsx91(
31289
31285
  "input",
31290
31286
  {
@@ -31314,7 +31310,7 @@ var FloatField = (props) => {
31314
31310
 
31315
31311
  // src/widgets/basic/float-time-field/float-time.tsx
31316
31312
  import { useState as useState20 } from "react";
31317
- import { Fragment as Fragment26, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
31313
+ import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
31318
31314
  var FloatTimeField = (props) => {
31319
31315
  const {
31320
31316
  name: name2,
@@ -31394,7 +31390,7 @@ var FloatTimeField = (props) => {
31394
31390
  }
31395
31391
  onBlur();
31396
31392
  };
31397
- return /* @__PURE__ */ jsxs62(Fragment26, { children: [
31393
+ return /* @__PURE__ */ jsxs62(Fragment27, { children: [
31398
31394
  /* @__PURE__ */ jsx92(
31399
31395
  "input",
31400
31396
  {
@@ -31504,11 +31500,11 @@ var ImageField = (props) => {
31504
31500
  import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31505
31501
 
31506
31502
  // src/widgets/basic/information-field/information.tsx
31507
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31503
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31508
31504
  var InfomationField = (props) => {
31509
31505
  const { value, isForm = false, showName = true, stringToColor } = props;
31510
31506
  if (!value || Array.isArray(value) && value.length === 0) {
31511
- return /* @__PURE__ */ jsx95(Fragment27, {});
31507
+ return /* @__PURE__ */ jsx95(Fragment28, {});
31512
31508
  }
31513
31509
  const inforValues = Array.isArray(value) ? value : [value];
31514
31510
  return /* @__PURE__ */ jsx95("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx95(
@@ -31783,7 +31779,7 @@ var Many2ManyTagField = (props) => {
31783
31779
 
31784
31780
  // src/widgets/basic/monetary-field/monetary.tsx
31785
31781
  import { useEffect as useEffect23 } from "react";
31786
- import { Fragment as Fragment28, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
31782
+ import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
31787
31783
  var MonetaryField = (props) => {
31788
31784
  const { t: t3 } = useI18n();
31789
31785
  const {
@@ -31841,7 +31837,7 @@ var MonetaryField = (props) => {
31841
31837
  clearErrors(name2);
31842
31838
  }
31843
31839
  }, [value2]);
31844
- return /* @__PURE__ */ jsxs65(Fragment28, { children: [
31840
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
31845
31841
  /* @__PURE__ */ jsx97(
31846
31842
  "input",
31847
31843
  {
@@ -32103,7 +32099,7 @@ var RemainingDaysField = (props) => {
32103
32099
  };
32104
32100
 
32105
32101
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32106
- import { Fragment as Fragment29, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32102
+ import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32107
32103
  var SelectDropdownField = (props) => {
32108
32104
  const { t: t3 } = useI18n();
32109
32105
  const {
@@ -32154,7 +32150,7 @@ var SelectDropdownField = (props) => {
32154
32150
  value: defaultValue || null,
32155
32151
  required: !invisible && required
32156
32152
  };
32157
- return /* @__PURE__ */ jsxs69(Fragment29, { children: [
32153
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32158
32154
  /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
32159
32155
  StateManagedSelect$1,
32160
32156
  {
@@ -32336,7 +32332,7 @@ var ToggleButtonField = (props) => {
32336
32332
 
32337
32333
  // src/widgets/basic/integer-field/integer.tsx
32338
32334
  import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
32339
- import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32335
+ import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32340
32336
  var IntegerField = (props) => {
32341
32337
  const {
32342
32338
  name: name2,
@@ -32435,7 +32431,7 @@ var IntegerField = (props) => {
32435
32431
  inputRef.current?.blur();
32436
32432
  clearErrors(name2);
32437
32433
  };
32438
- return /* @__PURE__ */ jsxs71(Fragment30, { children: [
32434
+ return /* @__PURE__ */ jsxs71(Fragment31, { children: [
32439
32435
  /* @__PURE__ */ jsx106(
32440
32436
  "input",
32441
32437
  {
@@ -32534,7 +32530,7 @@ var StatusDropdownField = (props) => {
32534
32530
  };
32535
32531
 
32536
32532
  // src/widgets/basic/many2many-field/many2many.tsx
32537
- import { createPortal as createPortal7 } from "react-dom";
32533
+ import { createPortal as createPortal6 } from "react-dom";
32538
32534
  import { useEffect as useEffect27 } from "react";
32539
32535
  import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
32540
32536
  var Many2ManyField = (props) => {
@@ -32609,7 +32605,7 @@ var Many2ManyField = (props) => {
32609
32605
  typeof setGroupByList === "function" && setGroupByList(null);
32610
32606
  };
32611
32607
  }, [selectedTags]);
32612
- return createPortal7(
32608
+ return createPortal6(
32613
32609
  /* @__PURE__ */ jsxs73(
32614
32610
  "div",
32615
32611
  {
@@ -32816,7 +32812,7 @@ var Many2ManyField = (props) => {
32816
32812
 
32817
32813
  // src/widgets/basic/many2one-field/many2one.tsx
32818
32814
  import React18, { useEffect as useEffect28 } from "react";
32819
- import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
32815
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
32820
32816
  var CustomMenuList2 = (props) => {
32821
32817
  const { t: t3 } = useI18n();
32822
32818
  const { options: options2, children, selectProps } = props;
@@ -32867,7 +32863,7 @@ var Many2OneField = (props) => {
32867
32863
  const { t: t3 } = useI18n();
32868
32864
  if (!isForm && !isEditTable) {
32869
32865
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
32870
- return /* @__PURE__ */ jsxs74(Fragment31, { children: [
32866
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
32871
32867
  allowShowDetail && renderDetail({
32872
32868
  idToolTip: String(name2) + Number(index4),
32873
32869
  model: options2?.model ?? relation,
@@ -32885,7 +32881,7 @@ var Many2OneField = (props) => {
32885
32881
  )
32886
32882
  ] });
32887
32883
  }
32888
- return /* @__PURE__ */ jsxs74(Fragment31, { children: [
32884
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
32889
32885
  allowShowDetail && renderDetail({
32890
32886
  idToolTip: String(name2),
32891
32887
  model: options2?.model ?? relation,
@@ -33118,7 +33114,7 @@ var StatusbarDurationField = (props) => {
33118
33114
 
33119
33115
  // src/widgets/basic/status-bar-field/option/option.tsx
33120
33116
  import { useMemo as useMemo11 } from "react";
33121
- import { Fragment as Fragment32, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33117
+ import { Fragment as Fragment33, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33122
33118
  var StatusBarOptionField = (props) => {
33123
33119
  const { selection, defaultValue } = props;
33124
33120
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
@@ -33134,7 +33130,7 @@ var StatusBarOptionField = (props) => {
33134
33130
  flexWrap: "wrap"
33135
33131
  },
33136
33132
  children: memoizedStatusOptions?.map((option, index4) => {
33137
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33133
+ return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33138
33134
  /* @__PURE__ */ jsxs76(
33139
33135
  "div",
33140
33136
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",