@fctc/sme-widget-ui 1.9.2 → 1.9.3
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 +32 -27
- package/dist/index.mjs +29 -24
- package/dist/widgets.js +32 -27
- package/dist/widgets.mjs +29 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13227,6 +13227,7 @@ var M = import_react16.default.forwardRef(({ id: t3, anchorId: l2, anchorSelect:
|
|
|
13227
13227
|
});
|
|
13228
13228
|
|
|
13229
13229
|
// src/widgets/advanced/table/table-head.tsx
|
|
13230
|
+
var import_react_dom2 = require("react-dom");
|
|
13230
13231
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
13231
13232
|
var TableHead = (props) => {
|
|
13232
13233
|
const {
|
|
@@ -13268,27 +13269,31 @@ var TableHead = (props) => {
|
|
|
13268
13269
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
13269
13270
|
"th",
|
|
13270
13271
|
{
|
|
13272
|
+
"data-rtc-resizable": col?.name,
|
|
13271
13273
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
13272
13274
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
13273
13275
|
col.title,
|
|
13274
13276
|
col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13277
|
+
(0, import_react_dom2.createPortal)(
|
|
13278
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
13279
|
+
M,
|
|
13280
|
+
{
|
|
13281
|
+
style: {
|
|
13282
|
+
padding: "6px 12px",
|
|
13283
|
+
fontSize: "12px",
|
|
13284
|
+
borderRadius: "4px",
|
|
13285
|
+
maxWidth: "200px",
|
|
13286
|
+
whiteSpace: "wrap",
|
|
13287
|
+
fontWeight: 400,
|
|
13288
|
+
textTransform: "none",
|
|
13289
|
+
zIndex: "9999"
|
|
13290
|
+
},
|
|
13291
|
+
id: `field-help-${col?.field?.name}`,
|
|
13292
|
+
content: col?.field?.help,
|
|
13293
|
+
place: "top"
|
|
13294
|
+
}
|
|
13295
|
+
),
|
|
13296
|
+
document.body
|
|
13292
13297
|
),
|
|
13293
13298
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
13294
13299
|
"span",
|
|
@@ -16415,7 +16420,7 @@ var ModalConfirm = ({
|
|
|
16415
16420
|
|
|
16416
16421
|
// src/widgets/common/modal-detail.tsx
|
|
16417
16422
|
var import_react24 = require("react");
|
|
16418
|
-
var
|
|
16423
|
+
var import_react_dom3 = require("react-dom");
|
|
16419
16424
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
16420
16425
|
var ModalDetail = ({
|
|
16421
16426
|
idToolTip,
|
|
@@ -16438,7 +16443,7 @@ var ModalDetail = ({
|
|
|
16438
16443
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
16439
16444
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
16440
16445
|
};
|
|
16441
|
-
return (0,
|
|
16446
|
+
return (0, import_react_dom3.createPortal)(
|
|
16442
16447
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
16443
16448
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16444
16449
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
|
|
@@ -22379,7 +22384,7 @@ function useFloating2(options2) {
|
|
|
22379
22384
|
}
|
|
22380
22385
|
|
|
22381
22386
|
// node_modules/react-datepicker/dist/index.es.js
|
|
22382
|
-
var
|
|
22387
|
+
var import_react_dom6 = __toESM(require("react-dom"));
|
|
22383
22388
|
var _extendStatics = function extendStatics(d, b2) {
|
|
22384
22389
|
_extendStatics = Object.setPrototypeOf || {
|
|
22385
22390
|
__proto__: []
|
|
@@ -25622,7 +25627,7 @@ var Portal = (
|
|
|
25622
25627
|
}
|
|
25623
25628
|
};
|
|
25624
25629
|
Portal2.prototype.render = function() {
|
|
25625
|
-
return
|
|
25630
|
+
return import_react_dom6.default.createPortal(this.props.children, this.el);
|
|
25626
25631
|
};
|
|
25627
25632
|
return Portal2;
|
|
25628
25633
|
}(import_react44.Component)
|
|
@@ -28190,7 +28195,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
28190
28195
|
|
|
28191
28196
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
28192
28197
|
var import_react50 = require("react");
|
|
28193
|
-
var
|
|
28198
|
+
var import_react_dom7 = require("react-dom");
|
|
28194
28199
|
|
|
28195
28200
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
28196
28201
|
var import_react48 = require("react");
|
|
@@ -28693,7 +28698,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28693
28698
|
}), innerProps), children);
|
|
28694
28699
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28695
28700
|
value: portalPlacementContext
|
|
28696
|
-
}, appendTo ? /* @__PURE__ */ (0,
|
|
28701
|
+
}, appendTo ? /* @__PURE__ */ (0, import_react_dom7.createPortal)(menuWrapper, appendTo) : menuWrapper);
|
|
28697
28702
|
};
|
|
28698
28703
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28699
28704
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -31586,7 +31591,7 @@ var import_toConsumableArray2 = __toESM(require_toConsumableArray());
|
|
|
31586
31591
|
var import_typeof5 = __toESM(require_typeof());
|
|
31587
31592
|
var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
|
|
31588
31593
|
var import_defineProperty3 = __toESM(require_defineProperty());
|
|
31589
|
-
var
|
|
31594
|
+
var import_react_dom8 = require("react-dom");
|
|
31590
31595
|
var StateManagedSelect = /* @__PURE__ */ (0, import_react53.forwardRef)(function(props, ref) {
|
|
31591
31596
|
var baseSelectProps = useStateManager(props);
|
|
31592
31597
|
return /* @__PURE__ */ React14.createElement(Select, _extends({
|
|
@@ -32118,7 +32123,7 @@ var FileUploadField = (props) => {
|
|
|
32118
32123
|
);
|
|
32119
32124
|
}
|
|
32120
32125
|
}, [selectedFiles]);
|
|
32121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", {
|
|
32126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { children: [
|
|
32122
32127
|
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
32123
32128
|
RenderFile,
|
|
32124
32129
|
{
|
|
@@ -33533,7 +33538,7 @@ var StatusDropdownField = (props) => {
|
|
|
33533
33538
|
};
|
|
33534
33539
|
|
|
33535
33540
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
33536
|
-
var
|
|
33541
|
+
var import_react_dom9 = require("react-dom");
|
|
33537
33542
|
var import_react65 = require("react");
|
|
33538
33543
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
33539
33544
|
var Many2ManyField = (props) => {
|
|
@@ -33608,7 +33613,7 @@ var Many2ManyField = (props) => {
|
|
|
33608
33613
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
33609
33614
|
};
|
|
33610
33615
|
}, [selectedTags]);
|
|
33611
|
-
return (0,
|
|
33616
|
+
return (0, import_react_dom9.createPortal)(
|
|
33612
33617
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
33613
33618
|
"div",
|
|
33614
33619
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -13104,6 +13104,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
13104
13104
|
});
|
|
13105
13105
|
|
|
13106
13106
|
// src/widgets/advanced/table/table-head.tsx
|
|
13107
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
13107
13108
|
import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
13108
13109
|
var TableHead = (props) => {
|
|
13109
13110
|
const {
|
|
@@ -13145,27 +13146,31 @@ var TableHead = (props) => {
|
|
|
13145
13146
|
return /* @__PURE__ */ jsx47(
|
|
13146
13147
|
"th",
|
|
13147
13148
|
{
|
|
13149
|
+
"data-rtc-resizable": col?.name,
|
|
13148
13150
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
13149
13151
|
children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
13150
13152
|
col.title,
|
|
13151
13153
|
col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
|
|
13152
|
-
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13154
|
+
createPortal2(
|
|
13155
|
+
/* @__PURE__ */ jsx47(
|
|
13156
|
+
M,
|
|
13157
|
+
{
|
|
13158
|
+
style: {
|
|
13159
|
+
padding: "6px 12px",
|
|
13160
|
+
fontSize: "12px",
|
|
13161
|
+
borderRadius: "4px",
|
|
13162
|
+
maxWidth: "200px",
|
|
13163
|
+
whiteSpace: "wrap",
|
|
13164
|
+
fontWeight: 400,
|
|
13165
|
+
textTransform: "none",
|
|
13166
|
+
zIndex: "9999"
|
|
13167
|
+
},
|
|
13168
|
+
id: `field-help-${col?.field?.name}`,
|
|
13169
|
+
content: col?.field?.help,
|
|
13170
|
+
place: "top"
|
|
13171
|
+
}
|
|
13172
|
+
),
|
|
13173
|
+
document.body
|
|
13169
13174
|
),
|
|
13170
13175
|
/* @__PURE__ */ jsx47(
|
|
13171
13176
|
"span",
|
|
@@ -16292,7 +16297,7 @@ var ModalConfirm = ({
|
|
|
16292
16297
|
|
|
16293
16298
|
// src/widgets/common/modal-detail.tsx
|
|
16294
16299
|
import { useState as useState7 } from "react";
|
|
16295
|
-
import { createPortal as
|
|
16300
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
16296
16301
|
import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
16297
16302
|
var ModalDetail = ({
|
|
16298
16303
|
idToolTip,
|
|
@@ -16315,7 +16320,7 @@ var ModalDetail = ({
|
|
|
16315
16320
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
16316
16321
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
16317
16322
|
};
|
|
16318
|
-
return
|
|
16323
|
+
return createPortal3(
|
|
16319
16324
|
/* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
16320
16325
|
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16321
16326
|
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
|
|
@@ -28067,7 +28072,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
28067
28072
|
|
|
28068
28073
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
28069
28074
|
import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
|
|
28070
|
-
import { createPortal as
|
|
28075
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
28071
28076
|
|
|
28072
28077
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
28073
28078
|
import { useLayoutEffect as useLayoutEffect4 } from "react";
|
|
@@ -28570,7 +28575,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28570
28575
|
}), innerProps), children);
|
|
28571
28576
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28572
28577
|
value: portalPlacementContext
|
|
28573
|
-
}, appendTo ? /* @__PURE__ */
|
|
28578
|
+
}, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
|
|
28574
28579
|
};
|
|
28575
28580
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28576
28581
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -31995,7 +32000,7 @@ var FileUploadField = (props) => {
|
|
|
31995
32000
|
);
|
|
31996
32001
|
}
|
|
31997
32002
|
}, [selectedFiles]);
|
|
31998
|
-
return /* @__PURE__ */ jsxs58("div", {
|
|
32003
|
+
return /* @__PURE__ */ jsxs58("div", { children: [
|
|
31999
32004
|
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
|
|
32000
32005
|
RenderFile,
|
|
32001
32006
|
{
|
|
@@ -33410,7 +33415,7 @@ var StatusDropdownField = (props) => {
|
|
|
33410
33415
|
};
|
|
33411
33416
|
|
|
33412
33417
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
33413
|
-
import { createPortal as
|
|
33418
|
+
import { createPortal as createPortal6 } from "react-dom";
|
|
33414
33419
|
import { useEffect as useEffect26 } from "react";
|
|
33415
33420
|
import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
33416
33421
|
var Many2ManyField = (props) => {
|
|
@@ -33485,7 +33490,7 @@ var Many2ManyField = (props) => {
|
|
|
33485
33490
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
33486
33491
|
};
|
|
33487
33492
|
}, [selectedTags]);
|
|
33488
|
-
return
|
|
33493
|
+
return createPortal6(
|
|
33489
33494
|
/* @__PURE__ */ jsxs71(
|
|
33490
33495
|
"div",
|
|
33491
33496
|
{
|
package/dist/widgets.js
CHANGED
|
@@ -12621,6 +12621,7 @@ var M = import_react16.default.forwardRef(({ id: t3, anchorId: l2, anchorSelect:
|
|
|
12621
12621
|
});
|
|
12622
12622
|
|
|
12623
12623
|
// src/widgets/advanced/table/table-head.tsx
|
|
12624
|
+
var import_react_dom2 = require("react-dom");
|
|
12624
12625
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
12625
12626
|
var TableHead = (props) => {
|
|
12626
12627
|
const {
|
|
@@ -12662,27 +12663,31 @@ var TableHead = (props) => {
|
|
|
12662
12663
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
12663
12664
|
"th",
|
|
12664
12665
|
{
|
|
12666
|
+
"data-rtc-resizable": col?.name,
|
|
12665
12667
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12666
12668
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
12667
12669
|
col.title,
|
|
12668
12670
|
col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12671
|
+
(0, import_react_dom2.createPortal)(
|
|
12672
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
12673
|
+
M,
|
|
12674
|
+
{
|
|
12675
|
+
style: {
|
|
12676
|
+
padding: "6px 12px",
|
|
12677
|
+
fontSize: "12px",
|
|
12678
|
+
borderRadius: "4px",
|
|
12679
|
+
maxWidth: "200px",
|
|
12680
|
+
whiteSpace: "wrap",
|
|
12681
|
+
fontWeight: 400,
|
|
12682
|
+
textTransform: "none",
|
|
12683
|
+
zIndex: "9999"
|
|
12684
|
+
},
|
|
12685
|
+
id: `field-help-${col?.field?.name}`,
|
|
12686
|
+
content: col?.field?.help,
|
|
12687
|
+
place: "top"
|
|
12688
|
+
}
|
|
12689
|
+
),
|
|
12690
|
+
document.body
|
|
12686
12691
|
),
|
|
12687
12692
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
12688
12693
|
"span",
|
|
@@ -15820,7 +15825,7 @@ var ModalConfirm = ({
|
|
|
15820
15825
|
|
|
15821
15826
|
// src/widgets/common/modal-detail.tsx
|
|
15822
15827
|
var import_react24 = require("react");
|
|
15823
|
-
var
|
|
15828
|
+
var import_react_dom3 = require("react-dom");
|
|
15824
15829
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
15825
15830
|
var ModalDetail = ({
|
|
15826
15831
|
idToolTip,
|
|
@@ -15843,7 +15848,7 @@ var ModalDetail = ({
|
|
|
15843
15848
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
15844
15849
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
15845
15850
|
};
|
|
15846
|
-
return (0,
|
|
15851
|
+
return (0, import_react_dom3.createPortal)(
|
|
15847
15852
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
15848
15853
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15849
15854
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
|
|
@@ -21784,7 +21789,7 @@ function useFloating2(options2) {
|
|
|
21784
21789
|
}
|
|
21785
21790
|
|
|
21786
21791
|
// node_modules/react-datepicker/dist/index.es.js
|
|
21787
|
-
var
|
|
21792
|
+
var import_react_dom6 = __toESM(require("react-dom"));
|
|
21788
21793
|
var _extendStatics = function extendStatics(d, b2) {
|
|
21789
21794
|
_extendStatics = Object.setPrototypeOf || {
|
|
21790
21795
|
__proto__: []
|
|
@@ -25027,7 +25032,7 @@ var Portal = (
|
|
|
25027
25032
|
}
|
|
25028
25033
|
};
|
|
25029
25034
|
Portal2.prototype.render = function() {
|
|
25030
|
-
return
|
|
25035
|
+
return import_react_dom6.default.createPortal(this.props.children, this.el);
|
|
25031
25036
|
};
|
|
25032
25037
|
return Portal2;
|
|
25033
25038
|
}(import_react44.Component)
|
|
@@ -27595,7 +27600,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
27595
27600
|
|
|
27596
27601
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
27597
27602
|
var import_react50 = require("react");
|
|
27598
|
-
var
|
|
27603
|
+
var import_react_dom7 = require("react-dom");
|
|
27599
27604
|
|
|
27600
27605
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
27601
27606
|
var import_react48 = require("react");
|
|
@@ -28098,7 +28103,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28098
28103
|
}), innerProps), children);
|
|
28099
28104
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28100
28105
|
value: portalPlacementContext
|
|
28101
|
-
}, appendTo ? /* @__PURE__ */ (0,
|
|
28106
|
+
}, appendTo ? /* @__PURE__ */ (0, import_react_dom7.createPortal)(menuWrapper, appendTo) : menuWrapper);
|
|
28102
28107
|
};
|
|
28103
28108
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28104
28109
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -30991,7 +30996,7 @@ var import_toConsumableArray2 = __toESM(require_toConsumableArray());
|
|
|
30991
30996
|
var import_typeof5 = __toESM(require_typeof());
|
|
30992
30997
|
var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
|
|
30993
30998
|
var import_defineProperty3 = __toESM(require_defineProperty());
|
|
30994
|
-
var
|
|
30999
|
+
var import_react_dom8 = require("react-dom");
|
|
30995
31000
|
var StateManagedSelect = /* @__PURE__ */ (0, import_react53.forwardRef)(function(props, ref) {
|
|
30996
31001
|
var baseSelectProps = useStateManager(props);
|
|
30997
31002
|
return /* @__PURE__ */ React14.createElement(Select, _extends({
|
|
@@ -31523,7 +31528,7 @@ var FileUploadField = (props) => {
|
|
|
31523
31528
|
);
|
|
31524
31529
|
}
|
|
31525
31530
|
}, [selectedFiles]);
|
|
31526
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", {
|
|
31531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { children: [
|
|
31527
31532
|
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
31528
31533
|
RenderFile,
|
|
31529
31534
|
{
|
|
@@ -32938,7 +32943,7 @@ var StatusDropdownField = (props) => {
|
|
|
32938
32943
|
};
|
|
32939
32944
|
|
|
32940
32945
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
32941
|
-
var
|
|
32946
|
+
var import_react_dom9 = require("react-dom");
|
|
32942
32947
|
var import_react65 = require("react");
|
|
32943
32948
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
32944
32949
|
var Many2ManyField = (props) => {
|
|
@@ -33013,7 +33018,7 @@ var Many2ManyField = (props) => {
|
|
|
33013
33018
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
33014
33019
|
};
|
|
33015
33020
|
}, [selectedTags]);
|
|
33016
|
-
return (0,
|
|
33021
|
+
return (0, import_react_dom9.createPortal)(
|
|
33017
33022
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
33018
33023
|
"div",
|
|
33019
33024
|
{
|
package/dist/widgets.mjs
CHANGED
|
@@ -12558,6 +12558,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
12558
12558
|
});
|
|
12559
12559
|
|
|
12560
12560
|
// src/widgets/advanced/table/table-head.tsx
|
|
12561
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
12561
12562
|
import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12562
12563
|
var TableHead = (props) => {
|
|
12563
12564
|
const {
|
|
@@ -12599,27 +12600,31 @@ var TableHead = (props) => {
|
|
|
12599
12600
|
return /* @__PURE__ */ jsx47(
|
|
12600
12601
|
"th",
|
|
12601
12602
|
{
|
|
12603
|
+
"data-rtc-resizable": col?.name,
|
|
12602
12604
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12603
12605
|
children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
12604
12606
|
col.title,
|
|
12605
12607
|
col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12608
|
+
createPortal2(
|
|
12609
|
+
/* @__PURE__ */ jsx47(
|
|
12610
|
+
M,
|
|
12611
|
+
{
|
|
12612
|
+
style: {
|
|
12613
|
+
padding: "6px 12px",
|
|
12614
|
+
fontSize: "12px",
|
|
12615
|
+
borderRadius: "4px",
|
|
12616
|
+
maxWidth: "200px",
|
|
12617
|
+
whiteSpace: "wrap",
|
|
12618
|
+
fontWeight: 400,
|
|
12619
|
+
textTransform: "none",
|
|
12620
|
+
zIndex: "9999"
|
|
12621
|
+
},
|
|
12622
|
+
id: `field-help-${col?.field?.name}`,
|
|
12623
|
+
content: col?.field?.help,
|
|
12624
|
+
place: "top"
|
|
12625
|
+
}
|
|
12626
|
+
),
|
|
12627
|
+
document.body
|
|
12623
12628
|
),
|
|
12624
12629
|
/* @__PURE__ */ jsx47(
|
|
12625
12630
|
"span",
|
|
@@ -15757,7 +15762,7 @@ var ModalConfirm = ({
|
|
|
15757
15762
|
|
|
15758
15763
|
// src/widgets/common/modal-detail.tsx
|
|
15759
15764
|
import { useState as useState7 } from "react";
|
|
15760
|
-
import { createPortal as
|
|
15765
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
15761
15766
|
import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15762
15767
|
var ModalDetail = ({
|
|
15763
15768
|
idToolTip,
|
|
@@ -15780,7 +15785,7 @@ var ModalDetail = ({
|
|
|
15780
15785
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
15781
15786
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
15782
15787
|
};
|
|
15783
|
-
return
|
|
15788
|
+
return createPortal3(
|
|
15784
15789
|
/* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
15785
15790
|
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15786
15791
|
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
|
|
@@ -27532,7 +27537,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
27532
27537
|
|
|
27533
27538
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
27534
27539
|
import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
|
|
27535
|
-
import { createPortal as
|
|
27540
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
27536
27541
|
|
|
27537
27542
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
27538
27543
|
import { useLayoutEffect as useLayoutEffect4 } from "react";
|
|
@@ -28035,7 +28040,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28035
28040
|
}), innerProps), children);
|
|
28036
28041
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28037
28042
|
value: portalPlacementContext
|
|
28038
|
-
}, appendTo ? /* @__PURE__ */
|
|
28043
|
+
}, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
|
|
28039
28044
|
};
|
|
28040
28045
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28041
28046
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -31460,7 +31465,7 @@ var FileUploadField = (props) => {
|
|
|
31460
31465
|
);
|
|
31461
31466
|
}
|
|
31462
31467
|
}, [selectedFiles]);
|
|
31463
|
-
return /* @__PURE__ */ jsxs58("div", {
|
|
31468
|
+
return /* @__PURE__ */ jsxs58("div", { children: [
|
|
31464
31469
|
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
|
|
31465
31470
|
RenderFile,
|
|
31466
31471
|
{
|
|
@@ -32875,7 +32880,7 @@ var StatusDropdownField = (props) => {
|
|
|
32875
32880
|
};
|
|
32876
32881
|
|
|
32877
32882
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
32878
|
-
import { createPortal as
|
|
32883
|
+
import { createPortal as createPortal6 } from "react-dom";
|
|
32879
32884
|
import { useEffect as useEffect26 } from "react";
|
|
32880
32885
|
import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
32881
32886
|
var Many2ManyField = (props) => {
|
|
@@ -32950,7 +32955,7 @@ var Many2ManyField = (props) => {
|
|
|
32950
32955
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
32951
32956
|
};
|
|
32952
32957
|
}, [selectedTags]);
|
|
32953
|
-
return
|
|
32958
|
+
return createPortal6(
|
|
32954
32959
|
/* @__PURE__ */ jsxs71(
|
|
32955
32960
|
"div",
|
|
32956
32961
|
{
|