@fctc/sme-widget-ui 2.1.8 → 2.2.0
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/icons.d.mts +3 -1
- package/dist/icons.d.ts +3 -1
- package/dist/icons.js +24 -0
- package/dist/icons.mjs +23 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +662 -691
- package/dist/index.mjs +534 -564
- package/dist/widgets.js +646 -677
- package/dist/widgets.mjs +521 -552
- package/package.json +1 -1
package/dist/widgets.mjs
CHANGED
|
@@ -9642,8 +9642,30 @@ var DefaultFileIcon = () => {
|
|
|
9642
9642
|
// src/icons/video-icon.tsx
|
|
9643
9643
|
import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
9644
9644
|
|
|
9645
|
+
// src/icons/filter-columns-icon.tsx
|
|
9646
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
9647
|
+
var FilterColumnIcon = () => {
|
|
9648
|
+
return /* @__PURE__ */ jsx45(
|
|
9649
|
+
"svg",
|
|
9650
|
+
{
|
|
9651
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9652
|
+
width: "24",
|
|
9653
|
+
height: "24",
|
|
9654
|
+
viewBox: "0 0 24 24",
|
|
9655
|
+
fill: "none",
|
|
9656
|
+
children: /* @__PURE__ */ jsx45(
|
|
9657
|
+
"path",
|
|
9658
|
+
{
|
|
9659
|
+
d: "M10.2004 17.4016H13.8004V15.6016H10.2004V17.4016ZM3.90039 6.60156V8.40156H20.1004V6.60156H3.90039ZM6.60039 12.9016H17.4004V11.1016H6.60039V12.9016Z",
|
|
9660
|
+
fill: "#060606"
|
|
9661
|
+
}
|
|
9662
|
+
)
|
|
9663
|
+
}
|
|
9664
|
+
);
|
|
9665
|
+
};
|
|
9666
|
+
|
|
9645
9667
|
// src/widgets/advanced/table/table-group.tsx
|
|
9646
|
-
import { Fragment as Fragment2, jsx as
|
|
9668
|
+
import { Fragment as Fragment2, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
9647
9669
|
var TableGroup = (props) => {
|
|
9648
9670
|
const { t: t3 } = useI18n();
|
|
9649
9671
|
const {
|
|
@@ -9701,7 +9723,7 @@ var TableGroup = (props) => {
|
|
|
9701
9723
|
className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
|
|
9702
9724
|
onClick: onExpandChildGroup,
|
|
9703
9725
|
children: [
|
|
9704
|
-
/* @__PURE__ */
|
|
9726
|
+
/* @__PURE__ */ jsx46(
|
|
9705
9727
|
"td",
|
|
9706
9728
|
{
|
|
9707
9729
|
colSpan: colEmptyGroup.fromStart ?? 1,
|
|
@@ -9714,7 +9736,7 @@ var TableGroup = (props) => {
|
|
|
9714
9736
|
className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
|
|
9715
9737
|
children: [
|
|
9716
9738
|
/* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
|
|
9717
|
-
/* @__PURE__ */
|
|
9739
|
+
/* @__PURE__ */ jsx46(
|
|
9718
9740
|
TriangleIcon,
|
|
9719
9741
|
{
|
|
9720
9742
|
style: {
|
|
@@ -9723,15 +9745,15 @@ var TableGroup = (props) => {
|
|
|
9723
9745
|
className: `w-2 h-2 text-button_primary `
|
|
9724
9746
|
}
|
|
9725
9747
|
),
|
|
9726
|
-
/* @__PURE__ */
|
|
9748
|
+
/* @__PURE__ */ jsx46("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
|
|
9727
9749
|
] }),
|
|
9728
|
-
/* @__PURE__ */
|
|
9750
|
+
/* @__PURE__ */ jsx46(
|
|
9729
9751
|
"div",
|
|
9730
9752
|
{
|
|
9731
9753
|
onClick: (e3) => {
|
|
9732
9754
|
e3.stopPropagation();
|
|
9733
9755
|
},
|
|
9734
|
-
children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */
|
|
9756
|
+
children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx46(
|
|
9735
9757
|
PaginationView,
|
|
9736
9758
|
{
|
|
9737
9759
|
className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
|
|
@@ -9752,7 +9774,7 @@ var TableGroup = (props) => {
|
|
|
9752
9774
|
columns?.map((col) => {
|
|
9753
9775
|
if (col?.optional === "hide") return;
|
|
9754
9776
|
if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
|
|
9755
|
-
return /* @__PURE__ */
|
|
9777
|
+
return /* @__PURE__ */ jsx46(
|
|
9756
9778
|
"td",
|
|
9757
9779
|
{
|
|
9758
9780
|
className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
|
|
@@ -9770,7 +9792,7 @@ var TableGroup = (props) => {
|
|
|
9770
9792
|
]
|
|
9771
9793
|
}
|
|
9772
9794
|
),
|
|
9773
|
-
isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */
|
|
9795
|
+
isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx46(
|
|
9774
9796
|
TableBodyRow,
|
|
9775
9797
|
{
|
|
9776
9798
|
columns: columnsGroup,
|
|
@@ -9800,7 +9822,7 @@ var TableGroup = (props) => {
|
|
|
9800
9822
|
|
|
9801
9823
|
// src/widgets/advanced/table/table-row.tsx
|
|
9802
9824
|
import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
|
|
9803
|
-
import { Fragment as Fragment3, jsx as
|
|
9825
|
+
import { Fragment as Fragment3, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
9804
9826
|
var Row = (props) => {
|
|
9805
9827
|
const {
|
|
9806
9828
|
row,
|
|
@@ -9866,17 +9888,17 @@ var Row = (props) => {
|
|
|
9866
9888
|
setIsAutoSelect(false);
|
|
9867
9889
|
}
|
|
9868
9890
|
}, [checkedAll]);
|
|
9869
|
-
return /* @__PURE__ */
|
|
9891
|
+
return /* @__PURE__ */ jsx47(
|
|
9870
9892
|
"tr",
|
|
9871
9893
|
{
|
|
9872
9894
|
"data-row-id": row?.id,
|
|
9873
9895
|
className: `border-b border-[#e8e8e8] cursor-pointer`,
|
|
9874
9896
|
children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
|
|
9875
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
9897
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx47(
|
|
9876
9898
|
"td",
|
|
9877
9899
|
{
|
|
9878
9900
|
className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
|
|
9879
|
-
children: /* @__PURE__ */
|
|
9901
|
+
children: /* @__PURE__ */ jsx47(
|
|
9880
9902
|
"input",
|
|
9881
9903
|
{
|
|
9882
9904
|
type: "checkbox",
|
|
@@ -9889,9 +9911,9 @@ var Row = (props) => {
|
|
|
9889
9911
|
),
|
|
9890
9912
|
columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
|
|
9891
9913
|
if (row?.display_type === "line_section" && col.key !== "display_name") {
|
|
9892
|
-
return /* @__PURE__ */
|
|
9914
|
+
return /* @__PURE__ */ jsx47("td", {});
|
|
9893
9915
|
}
|
|
9894
|
-
return /* @__PURE__ */
|
|
9916
|
+
return /* @__PURE__ */ jsx47(
|
|
9895
9917
|
"td",
|
|
9896
9918
|
{
|
|
9897
9919
|
colSpan: 1,
|
|
@@ -9910,7 +9932,7 @@ var Row = (props) => {
|
|
|
9910
9932
|
`${col.name}____${index4}`
|
|
9911
9933
|
);
|
|
9912
9934
|
}),
|
|
9913
|
-
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */
|
|
9935
|
+
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx47("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx47("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx47(
|
|
9914
9936
|
"button",
|
|
9915
9937
|
{
|
|
9916
9938
|
type: "button",
|
|
@@ -9918,7 +9940,7 @@ var Row = (props) => {
|
|
|
9918
9940
|
onClick: () => {
|
|
9919
9941
|
onRemoveRow(indexRow);
|
|
9920
9942
|
},
|
|
9921
|
-
children: /* @__PURE__ */
|
|
9943
|
+
children: /* @__PURE__ */ jsx47(DeleteIcon, {})
|
|
9922
9944
|
}
|
|
9923
9945
|
) }) })
|
|
9924
9946
|
] })
|
|
@@ -9928,7 +9950,7 @@ var Row = (props) => {
|
|
|
9928
9950
|
};
|
|
9929
9951
|
|
|
9930
9952
|
// src/widgets/advanced/table/table-body.tsx
|
|
9931
|
-
import { jsx as
|
|
9953
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
9932
9954
|
var TableBodyRow = (props) => {
|
|
9933
9955
|
const {
|
|
9934
9956
|
rows,
|
|
@@ -9958,7 +9980,7 @@ var TableBodyRow = (props) => {
|
|
|
9958
9980
|
isEditTable
|
|
9959
9981
|
} = props;
|
|
9960
9982
|
return rows && rows?.length > 0 && rows?.map((row, index4) => {
|
|
9961
|
-
return typeTable === "group" ? /* @__PURE__ */
|
|
9983
|
+
return typeTable === "group" ? /* @__PURE__ */ jsx48(
|
|
9962
9984
|
TableGroup,
|
|
9963
9985
|
{
|
|
9964
9986
|
columns,
|
|
@@ -9983,7 +10005,7 @@ var TableBodyRow = (props) => {
|
|
|
9983
10005
|
onClickRow
|
|
9984
10006
|
},
|
|
9985
10007
|
`record-group-${index4}`
|
|
9986
|
-
) : /* @__PURE__ */
|
|
10008
|
+
) : /* @__PURE__ */ jsx48(
|
|
9987
10009
|
Row,
|
|
9988
10010
|
{
|
|
9989
10011
|
row,
|
|
@@ -10011,7 +10033,7 @@ var TableBodyRow = (props) => {
|
|
|
10011
10033
|
};
|
|
10012
10034
|
var TableBody = (props) => {
|
|
10013
10035
|
const [isAutoSelect, setIsAutoSelect] = useState2(false);
|
|
10014
|
-
return /* @__PURE__ */
|
|
10036
|
+
return /* @__PURE__ */ jsx48("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx48(
|
|
10015
10037
|
TableBodyRow,
|
|
10016
10038
|
{
|
|
10017
10039
|
...props,
|
|
@@ -10272,7 +10294,7 @@ function useFileInfo(source, options2) {
|
|
|
10272
10294
|
}
|
|
10273
10295
|
|
|
10274
10296
|
// src/widgets/advanced/table/table-filter.tsx
|
|
10275
|
-
import { jsx as
|
|
10297
|
+
import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
10276
10298
|
var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
10277
10299
|
const [openTableFilter, setOpenTableFilter] = useState4();
|
|
10278
10300
|
const [filterPosition, setFilterPosition] = useState4(null);
|
|
@@ -10313,72 +10335,19 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10313
10335
|
},
|
|
10314
10336
|
className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
|
|
10315
10337
|
children: [
|
|
10316
|
-
/* @__PURE__ */
|
|
10338
|
+
/* @__PURE__ */ jsx49(
|
|
10317
10339
|
"button",
|
|
10318
10340
|
{
|
|
10319
10341
|
type: "button",
|
|
10320
|
-
className: "bg-white size-8 p-
|
|
10342
|
+
className: "bg-white size-8 p-1 rounded-lg cursor-pointer flex items-center justify-center",
|
|
10321
10343
|
onClick: () => {
|
|
10322
10344
|
setOpenTableFilter(!openTableFilter);
|
|
10323
10345
|
},
|
|
10324
|
-
children: /* @__PURE__ */
|
|
10325
|
-
"svg",
|
|
10326
|
-
{
|
|
10327
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10328
|
-
width: "16",
|
|
10329
|
-
height: "16",
|
|
10330
|
-
viewBox: "0 0 16 16",
|
|
10331
|
-
fill: "none",
|
|
10332
|
-
children: [
|
|
10333
|
-
/* @__PURE__ */ jsx48(
|
|
10334
|
-
"path",
|
|
10335
|
-
{
|
|
10336
|
-
d: "M14.6665 4.83301H10.6665C10.3932 4.83301 10.1665 4.60634 10.1665 4.33301C10.1665 4.05967 10.3932 3.83301 10.6665 3.83301H14.6665C14.9398 3.83301 15.1665 4.05967 15.1665 4.33301C15.1665 4.60634 14.9398 4.83301 14.6665 4.83301Z",
|
|
10337
|
-
fill: "#1F1F1F"
|
|
10338
|
-
}
|
|
10339
|
-
),
|
|
10340
|
-
/* @__PURE__ */ jsx48(
|
|
10341
|
-
"path",
|
|
10342
|
-
{
|
|
10343
|
-
d: "M4.00016 4.83301H1.3335C1.06016 4.83301 0.833496 4.60634 0.833496 4.33301C0.833496 4.05967 1.06016 3.83301 1.3335 3.83301H4.00016C4.2735 3.83301 4.50016 4.05967 4.50016 4.33301C4.50016 4.60634 4.2735 4.83301 4.00016 4.83301Z",
|
|
10344
|
-
fill: "#1F1F1F"
|
|
10345
|
-
}
|
|
10346
|
-
),
|
|
10347
|
-
/* @__PURE__ */ jsx48(
|
|
10348
|
-
"path",
|
|
10349
|
-
{
|
|
10350
|
-
d: "M6.66683 7.16667C5.10683 7.16667 3.8335 5.89333 3.8335 4.33333C3.8335 2.77333 5.10683 1.5 6.66683 1.5C8.22683 1.5 9.50016 2.77333 9.50016 4.33333C9.50016 5.89333 8.22683 7.16667 6.66683 7.16667ZM6.66683 2.5C5.6535 2.5 4.8335 3.32 4.8335 4.33333C4.8335 5.34667 5.6535 6.16667 6.66683 6.16667C7.68016 6.16667 8.50016 5.34667 8.50016 4.33333C8.50016 3.32 7.68016 2.5 6.66683 2.5Z",
|
|
10351
|
-
fill: "#1F1F1F"
|
|
10352
|
-
}
|
|
10353
|
-
),
|
|
10354
|
-
/* @__PURE__ */ jsx48(
|
|
10355
|
-
"path",
|
|
10356
|
-
{
|
|
10357
|
-
d: "M14.6667 12.167H12C11.7267 12.167 11.5 11.9403 11.5 11.667C11.5 11.3937 11.7267 11.167 12 11.167H14.6667C14.94 11.167 15.1667 11.3937 15.1667 11.667C15.1667 11.9403 14.94 12.167 14.6667 12.167Z",
|
|
10358
|
-
fill: "black"
|
|
10359
|
-
}
|
|
10360
|
-
),
|
|
10361
|
-
/* @__PURE__ */ jsx48(
|
|
10362
|
-
"path",
|
|
10363
|
-
{
|
|
10364
|
-
d: "M5.3335 12.167H1.3335C1.06016 12.167 0.833496 11.9403 0.833496 11.667C0.833496 11.3937 1.06016 11.167 1.3335 11.167H5.3335C5.60683 11.167 5.8335 11.3937 5.8335 11.667C5.8335 11.9403 5.60683 12.167 5.3335 12.167Z",
|
|
10365
|
-
fill: "black"
|
|
10366
|
-
}
|
|
10367
|
-
),
|
|
10368
|
-
/* @__PURE__ */ jsx48(
|
|
10369
|
-
"path",
|
|
10370
|
-
{
|
|
10371
|
-
d: "M9.33333 14.4997C7.77333 14.4997 6.5 13.2263 6.5 11.6663C6.5 10.1063 7.77333 8.83301 9.33333 8.83301C10.8933 8.83301 12.1667 10.1063 12.1667 11.6663C12.1667 13.2263 10.8933 14.4997 9.33333 14.4997ZM9.33333 9.83301C8.32 9.83301 7.5 10.653 7.5 11.6663C7.5 12.6797 8.32 13.4997 9.33333 13.4997C10.3467 13.4997 11.1667 12.6797 11.1667 11.6663C11.1667 10.653 10.3467 9.83301 9.33333 9.83301Z",
|
|
10372
|
-
fill: "black"
|
|
10373
|
-
}
|
|
10374
|
-
)
|
|
10375
|
-
]
|
|
10376
|
-
}
|
|
10377
|
-
)
|
|
10346
|
+
children: /* @__PURE__ */ jsx49(FilterColumnIcon, {})
|
|
10378
10347
|
}
|
|
10379
10348
|
),
|
|
10380
10349
|
filterPosition && openTableFilter && createPortal(
|
|
10381
|
-
/* @__PURE__ */
|
|
10350
|
+
/* @__PURE__ */ jsx49(
|
|
10382
10351
|
"div",
|
|
10383
10352
|
{
|
|
10384
10353
|
ref: filterPopupRef,
|
|
@@ -10390,7 +10359,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10390
10359
|
className: "absolute z-[9999] flex w-[250px] h-auto max-h-[800%] overflow-auto flex-col gap-[16px] rounded-[8px] bg-[#fff] px-[24px] py-[16px] shadow-md",
|
|
10391
10360
|
children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
|
|
10392
10361
|
return /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
10393
|
-
/* @__PURE__ */
|
|
10362
|
+
/* @__PURE__ */ jsx49(
|
|
10394
10363
|
"input",
|
|
10395
10364
|
{
|
|
10396
10365
|
type: "checkbox",
|
|
@@ -10400,7 +10369,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10400
10369
|
className: "cursor-pointer"
|
|
10401
10370
|
}
|
|
10402
10371
|
),
|
|
10403
|
-
/* @__PURE__ */
|
|
10372
|
+
/* @__PURE__ */ jsx49(
|
|
10404
10373
|
"label",
|
|
10405
10374
|
{
|
|
10406
10375
|
htmlFor: `${item.name}`,
|
|
@@ -10420,10 +10389,10 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10420
10389
|
};
|
|
10421
10390
|
|
|
10422
10391
|
// src/widgets/advanced/table/table-footer.tsx
|
|
10423
|
-
import { jsx as
|
|
10392
|
+
import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
10424
10393
|
var TableFooter = ({ onAddRow, rows }) => {
|
|
10425
10394
|
const emptyData = rows?.length <= 0;
|
|
10426
|
-
return /* @__PURE__ */
|
|
10395
|
+
return /* @__PURE__ */ jsx50("tfoot", { children: /* @__PURE__ */ jsx50("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx50(
|
|
10427
10396
|
"td",
|
|
10428
10397
|
{
|
|
10429
10398
|
className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
|
|
@@ -10450,14 +10419,14 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
10450
10419
|
viewBox: "0 0 20 20",
|
|
10451
10420
|
fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
10452
10421
|
children: [
|
|
10453
|
-
/* @__PURE__ */
|
|
10422
|
+
/* @__PURE__ */ jsx50(
|
|
10454
10423
|
"path",
|
|
10455
10424
|
{
|
|
10456
10425
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
10457
10426
|
d: "M15 10.625H5C4.65833 10.625 4.375 10.3417 4.375 10C4.375 9.65833 4.65833 9.375 5 9.375H15C15.3417 9.375 15.625 9.65833 15.625 10C15.625 10.3417 15.3417 10.625 15 10.625Z"
|
|
10458
10427
|
}
|
|
10459
10428
|
),
|
|
10460
|
-
/* @__PURE__ */
|
|
10429
|
+
/* @__PURE__ */ jsx50(
|
|
10461
10430
|
"path",
|
|
10462
10431
|
{
|
|
10463
10432
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
@@ -12278,7 +12247,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
12278
12247
|
|
|
12279
12248
|
// src/widgets/advanced/table/table-head.tsx
|
|
12280
12249
|
import { createPortal as createPortal2 } from "react-dom";
|
|
12281
|
-
import { Fragment as Fragment4, jsx as
|
|
12250
|
+
import { Fragment as Fragment4, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12282
12251
|
var TableHead = (props) => {
|
|
12283
12252
|
const {
|
|
12284
12253
|
handleCheckBoxAll,
|
|
@@ -12288,7 +12257,7 @@ var TableHead = (props) => {
|
|
|
12288
12257
|
onRemoveRow,
|
|
12289
12258
|
onToggleColumnOptional
|
|
12290
12259
|
} = props;
|
|
12291
|
-
return /* @__PURE__ */
|
|
12260
|
+
return /* @__PURE__ */ jsx51("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
|
|
12292
12261
|
"tr",
|
|
12293
12262
|
{
|
|
12294
12263
|
style: {
|
|
@@ -12300,11 +12269,11 @@ var TableHead = (props) => {
|
|
|
12300
12269
|
},
|
|
12301
12270
|
className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
|
|
12302
12271
|
children: [
|
|
12303
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
12272
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx51(
|
|
12304
12273
|
"th",
|
|
12305
12274
|
{
|
|
12306
12275
|
className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
|
|
12307
|
-
children: /* @__PURE__ */
|
|
12276
|
+
children: /* @__PURE__ */ jsx51(
|
|
12308
12277
|
"input",
|
|
12309
12278
|
{
|
|
12310
12279
|
type: "checkbox",
|
|
@@ -12316,17 +12285,17 @@ var TableHead = (props) => {
|
|
|
12316
12285
|
}
|
|
12317
12286
|
),
|
|
12318
12287
|
columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
|
|
12319
|
-
return /* @__PURE__ */
|
|
12288
|
+
return /* @__PURE__ */ jsx51(
|
|
12320
12289
|
"th",
|
|
12321
12290
|
{
|
|
12322
12291
|
"data-type-co": col?.field?.type_co,
|
|
12323
12292
|
"data-rtc-resizable": col?.name,
|
|
12324
12293
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12325
12294
|
children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full group relative", children: [
|
|
12326
|
-
/* @__PURE__ */
|
|
12295
|
+
/* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
12327
12296
|
col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
|
|
12328
12297
|
createPortal2(
|
|
12329
|
-
/* @__PURE__ */
|
|
12298
|
+
/* @__PURE__ */ jsx51(
|
|
12330
12299
|
M,
|
|
12331
12300
|
{
|
|
12332
12301
|
style: {
|
|
@@ -12346,7 +12315,7 @@ var TableHead = (props) => {
|
|
|
12346
12315
|
),
|
|
12347
12316
|
document.body
|
|
12348
12317
|
),
|
|
12349
|
-
/* @__PURE__ */
|
|
12318
|
+
/* @__PURE__ */ jsx51(
|
|
12350
12319
|
"span",
|
|
12351
12320
|
{
|
|
12352
12321
|
style: {
|
|
@@ -12357,7 +12326,7 @@ var TableHead = (props) => {
|
|
|
12357
12326
|
fontSize: "8px"
|
|
12358
12327
|
},
|
|
12359
12328
|
"data-tooltip-id": `field-help-${col?.field?.name}`,
|
|
12360
|
-
children: /* @__PURE__ */
|
|
12329
|
+
children: /* @__PURE__ */ jsx51(
|
|
12361
12330
|
"svg",
|
|
12362
12331
|
{
|
|
12363
12332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12365,7 +12334,7 @@ var TableHead = (props) => {
|
|
|
12365
12334
|
height: "13",
|
|
12366
12335
|
viewBox: "0 0 13 13",
|
|
12367
12336
|
fill: "none",
|
|
12368
|
-
children: /* @__PURE__ */
|
|
12337
|
+
children: /* @__PURE__ */ jsx51(
|
|
12369
12338
|
"path",
|
|
12370
12339
|
{
|
|
12371
12340
|
fillRule: "evenodd",
|
|
@@ -12384,8 +12353,8 @@ var TableHead = (props) => {
|
|
|
12384
12353
|
"table-head-" + index4
|
|
12385
12354
|
);
|
|
12386
12355
|
}),
|
|
12387
|
-
typeof onRemoveRow === "function" && /* @__PURE__ */
|
|
12388
|
-
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */
|
|
12356
|
+
typeof onRemoveRow === "function" && /* @__PURE__ */ jsx51("th", { className: "relative p-2 w-[35px]" }),
|
|
12357
|
+
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx51(
|
|
12389
12358
|
"th",
|
|
12390
12359
|
{
|
|
12391
12360
|
style: {
|
|
@@ -12394,7 +12363,7 @@ var TableHead = (props) => {
|
|
|
12394
12363
|
right: 0
|
|
12395
12364
|
},
|
|
12396
12365
|
className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
|
|
12397
|
-
children: /* @__PURE__ */
|
|
12366
|
+
children: /* @__PURE__ */ jsx51(
|
|
12398
12367
|
TableFilter,
|
|
12399
12368
|
{
|
|
12400
12369
|
columns,
|
|
@@ -12409,7 +12378,7 @@ var TableHead = (props) => {
|
|
|
12409
12378
|
};
|
|
12410
12379
|
|
|
12411
12380
|
// src/icons/empty-table-icon.tsx
|
|
12412
|
-
import { jsx as
|
|
12381
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
12413
12382
|
var IcEmptyTable = () => {
|
|
12414
12383
|
return /* @__PURE__ */ jsxs30(
|
|
12415
12384
|
"svg",
|
|
@@ -12421,8 +12390,8 @@ var IcEmptyTable = () => {
|
|
|
12421
12390
|
fill: "none",
|
|
12422
12391
|
children: [
|
|
12423
12392
|
/* @__PURE__ */ jsxs30("g", { clipPath: "url(#clip0_2454_28950)", children: [
|
|
12424
|
-
/* @__PURE__ */
|
|
12425
|
-
/* @__PURE__ */
|
|
12393
|
+
/* @__PURE__ */ jsx52("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
|
|
12394
|
+
/* @__PURE__ */ jsx52(
|
|
12426
12395
|
"path",
|
|
12427
12396
|
{
|
|
12428
12397
|
d: "M64.5 0V140",
|
|
@@ -12432,7 +12401,7 @@ var IcEmptyTable = () => {
|
|
|
12432
12401
|
strokeDasharray: "3 3"
|
|
12433
12402
|
}
|
|
12434
12403
|
),
|
|
12435
|
-
/* @__PURE__ */
|
|
12404
|
+
/* @__PURE__ */ jsx52(
|
|
12436
12405
|
"path",
|
|
12437
12406
|
{
|
|
12438
12407
|
d: "M151.5 0V140",
|
|
@@ -12442,7 +12411,7 @@ var IcEmptyTable = () => {
|
|
|
12442
12411
|
strokeDasharray: "3 3"
|
|
12443
12412
|
}
|
|
12444
12413
|
),
|
|
12445
|
-
/* @__PURE__ */
|
|
12414
|
+
/* @__PURE__ */ jsx52(
|
|
12446
12415
|
"path",
|
|
12447
12416
|
{
|
|
12448
12417
|
d: "M215.5 24H0.5",
|
|
@@ -12452,7 +12421,7 @@ var IcEmptyTable = () => {
|
|
|
12452
12421
|
strokeDasharray: "3 3"
|
|
12453
12422
|
}
|
|
12454
12423
|
),
|
|
12455
|
-
/* @__PURE__ */
|
|
12424
|
+
/* @__PURE__ */ jsx52(
|
|
12456
12425
|
"path",
|
|
12457
12426
|
{
|
|
12458
12427
|
d: "M215.5 50H0.5",
|
|
@@ -12462,7 +12431,7 @@ var IcEmptyTable = () => {
|
|
|
12462
12431
|
strokeDasharray: "3 3"
|
|
12463
12432
|
}
|
|
12464
12433
|
),
|
|
12465
|
-
/* @__PURE__ */
|
|
12434
|
+
/* @__PURE__ */ jsx52(
|
|
12466
12435
|
"path",
|
|
12467
12436
|
{
|
|
12468
12437
|
d: "M215.5 88H0.5",
|
|
@@ -12472,7 +12441,7 @@ var IcEmptyTable = () => {
|
|
|
12472
12441
|
strokeDasharray: "3 3"
|
|
12473
12442
|
}
|
|
12474
12443
|
),
|
|
12475
|
-
/* @__PURE__ */
|
|
12444
|
+
/* @__PURE__ */ jsx52(
|
|
12476
12445
|
"path",
|
|
12477
12446
|
{
|
|
12478
12447
|
d: "M215.5 114H0.5",
|
|
@@ -12482,7 +12451,7 @@ var IcEmptyTable = () => {
|
|
|
12482
12451
|
strokeDasharray: "3 3"
|
|
12483
12452
|
}
|
|
12484
12453
|
),
|
|
12485
|
-
/* @__PURE__ */
|
|
12454
|
+
/* @__PURE__ */ jsx52(
|
|
12486
12455
|
"path",
|
|
12487
12456
|
{
|
|
12488
12457
|
d: "M199.5 0V140",
|
|
@@ -12491,7 +12460,7 @@ var IcEmptyTable = () => {
|
|
|
12491
12460
|
strokeMiterlimit: "10"
|
|
12492
12461
|
}
|
|
12493
12462
|
),
|
|
12494
|
-
/* @__PURE__ */
|
|
12463
|
+
/* @__PURE__ */ jsx52(
|
|
12495
12464
|
"path",
|
|
12496
12465
|
{
|
|
12497
12466
|
d: "M16.5 0V140",
|
|
@@ -12500,7 +12469,7 @@ var IcEmptyTable = () => {
|
|
|
12500
12469
|
strokeMiterlimit: "10"
|
|
12501
12470
|
}
|
|
12502
12471
|
),
|
|
12503
|
-
/* @__PURE__ */
|
|
12472
|
+
/* @__PURE__ */ jsx52(
|
|
12504
12473
|
"path",
|
|
12505
12474
|
{
|
|
12506
12475
|
d: "M0.5 16H215.5",
|
|
@@ -12509,7 +12478,7 @@ var IcEmptyTable = () => {
|
|
|
12509
12478
|
strokeMiterlimit: "10"
|
|
12510
12479
|
}
|
|
12511
12480
|
),
|
|
12512
|
-
/* @__PURE__ */
|
|
12481
|
+
/* @__PURE__ */ jsx52(
|
|
12513
12482
|
"path",
|
|
12514
12483
|
{
|
|
12515
12484
|
d: "M0.5 124H215.5",
|
|
@@ -12518,7 +12487,7 @@ var IcEmptyTable = () => {
|
|
|
12518
12487
|
strokeMiterlimit: "10"
|
|
12519
12488
|
}
|
|
12520
12489
|
),
|
|
12521
|
-
/* @__PURE__ */
|
|
12490
|
+
/* @__PURE__ */ jsx52(
|
|
12522
12491
|
"path",
|
|
12523
12492
|
{
|
|
12524
12493
|
opacity: "0.6",
|
|
@@ -12529,7 +12498,7 @@ var IcEmptyTable = () => {
|
|
|
12529
12498
|
strokeLinejoin: "round"
|
|
12530
12499
|
}
|
|
12531
12500
|
),
|
|
12532
|
-
/* @__PURE__ */
|
|
12501
|
+
/* @__PURE__ */ jsx52(
|
|
12533
12502
|
"path",
|
|
12534
12503
|
{
|
|
12535
12504
|
opacity: "0.6",
|
|
@@ -12540,7 +12509,7 @@ var IcEmptyTable = () => {
|
|
|
12540
12509
|
strokeLinejoin: "round"
|
|
12541
12510
|
}
|
|
12542
12511
|
),
|
|
12543
|
-
/* @__PURE__ */
|
|
12512
|
+
/* @__PURE__ */ jsx52(
|
|
12544
12513
|
"path",
|
|
12545
12514
|
{
|
|
12546
12515
|
opacity: "0.6",
|
|
@@ -12551,7 +12520,7 @@ var IcEmptyTable = () => {
|
|
|
12551
12520
|
strokeLinejoin: "round"
|
|
12552
12521
|
}
|
|
12553
12522
|
),
|
|
12554
|
-
/* @__PURE__ */
|
|
12523
|
+
/* @__PURE__ */ jsx52(
|
|
12555
12524
|
"path",
|
|
12556
12525
|
{
|
|
12557
12526
|
opacity: "0.6",
|
|
@@ -12562,7 +12531,7 @@ var IcEmptyTable = () => {
|
|
|
12562
12531
|
strokeLinejoin: "round"
|
|
12563
12532
|
}
|
|
12564
12533
|
),
|
|
12565
|
-
/* @__PURE__ */
|
|
12534
|
+
/* @__PURE__ */ jsx52(
|
|
12566
12535
|
"path",
|
|
12567
12536
|
{
|
|
12568
12537
|
opacity: "0.6",
|
|
@@ -12573,14 +12542,14 @@ var IcEmptyTable = () => {
|
|
|
12573
12542
|
strokeLinejoin: "round"
|
|
12574
12543
|
}
|
|
12575
12544
|
),
|
|
12576
|
-
/* @__PURE__ */
|
|
12545
|
+
/* @__PURE__ */ jsx52(
|
|
12577
12546
|
"path",
|
|
12578
12547
|
{
|
|
12579
12548
|
d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
|
|
12580
12549
|
fill: "white"
|
|
12581
12550
|
}
|
|
12582
12551
|
),
|
|
12583
|
-
/* @__PURE__ */
|
|
12552
|
+
/* @__PURE__ */ jsx52(
|
|
12584
12553
|
"path",
|
|
12585
12554
|
{
|
|
12586
12555
|
d: "M85 50.5007L87.7503 52.132M132.081 26.7061C131.991 26.6565 131.887 26.6302 131.773 26.6289C131.503 26.6259 131.15 26.8298 130.444 27.2376L87.7502 52.0455L87.7503 114.001",
|
|
@@ -12590,7 +12559,7 @@ var IcEmptyTable = () => {
|
|
|
12590
12559
|
strokeLinejoin: "round"
|
|
12591
12560
|
}
|
|
12592
12561
|
),
|
|
12593
|
-
/* @__PURE__ */
|
|
12562
|
+
/* @__PURE__ */ jsx52(
|
|
12594
12563
|
"path",
|
|
12595
12564
|
{
|
|
12596
12565
|
d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
|
|
@@ -12599,7 +12568,7 @@ var IcEmptyTable = () => {
|
|
|
12599
12568
|
strokeLinejoin: "round"
|
|
12600
12569
|
}
|
|
12601
12570
|
),
|
|
12602
|
-
/* @__PURE__ */
|
|
12571
|
+
/* @__PURE__ */ jsx52(
|
|
12603
12572
|
"path",
|
|
12604
12573
|
{
|
|
12605
12574
|
opacity: "0.6",
|
|
@@ -12610,7 +12579,7 @@ var IcEmptyTable = () => {
|
|
|
12610
12579
|
strokeLinejoin: "round"
|
|
12611
12580
|
}
|
|
12612
12581
|
),
|
|
12613
|
-
/* @__PURE__ */
|
|
12582
|
+
/* @__PURE__ */ jsx52(
|
|
12614
12583
|
"path",
|
|
12615
12584
|
{
|
|
12616
12585
|
opacity: "0.6",
|
|
@@ -12621,7 +12590,7 @@ var IcEmptyTable = () => {
|
|
|
12621
12590
|
strokeLinejoin: "round"
|
|
12622
12591
|
}
|
|
12623
12592
|
),
|
|
12624
|
-
/* @__PURE__ */
|
|
12593
|
+
/* @__PURE__ */ jsx52(
|
|
12625
12594
|
"path",
|
|
12626
12595
|
{
|
|
12627
12596
|
opacity: "0.6",
|
|
@@ -12632,7 +12601,7 @@ var IcEmptyTable = () => {
|
|
|
12632
12601
|
strokeLinejoin: "round"
|
|
12633
12602
|
}
|
|
12634
12603
|
),
|
|
12635
|
-
/* @__PURE__ */
|
|
12604
|
+
/* @__PURE__ */ jsx52(
|
|
12636
12605
|
"path",
|
|
12637
12606
|
{
|
|
12638
12607
|
opacity: "0.6",
|
|
@@ -12643,7 +12612,7 @@ var IcEmptyTable = () => {
|
|
|
12643
12612
|
strokeLinejoin: "round"
|
|
12644
12613
|
}
|
|
12645
12614
|
),
|
|
12646
|
-
/* @__PURE__ */
|
|
12615
|
+
/* @__PURE__ */ jsx52(
|
|
12647
12616
|
"path",
|
|
12648
12617
|
{
|
|
12649
12618
|
opacity: "0.6",
|
|
@@ -12654,7 +12623,7 @@ var IcEmptyTable = () => {
|
|
|
12654
12623
|
strokeLinejoin: "round"
|
|
12655
12624
|
}
|
|
12656
12625
|
),
|
|
12657
|
-
/* @__PURE__ */
|
|
12626
|
+
/* @__PURE__ */ jsx52(
|
|
12658
12627
|
"path",
|
|
12659
12628
|
{
|
|
12660
12629
|
opacity: "0.6",
|
|
@@ -12665,7 +12634,7 @@ var IcEmptyTable = () => {
|
|
|
12665
12634
|
strokeLinejoin: "round"
|
|
12666
12635
|
}
|
|
12667
12636
|
),
|
|
12668
|
-
/* @__PURE__ */
|
|
12637
|
+
/* @__PURE__ */ jsx52(
|
|
12669
12638
|
"path",
|
|
12670
12639
|
{
|
|
12671
12640
|
opacity: "0.6",
|
|
@@ -12676,7 +12645,7 @@ var IcEmptyTable = () => {
|
|
|
12676
12645
|
strokeLinejoin: "round"
|
|
12677
12646
|
}
|
|
12678
12647
|
),
|
|
12679
|
-
/* @__PURE__ */
|
|
12648
|
+
/* @__PURE__ */ jsx52(
|
|
12680
12649
|
"path",
|
|
12681
12650
|
{
|
|
12682
12651
|
opacity: "0.6",
|
|
@@ -12687,7 +12656,7 @@ var IcEmptyTable = () => {
|
|
|
12687
12656
|
strokeLinejoin: "round"
|
|
12688
12657
|
}
|
|
12689
12658
|
),
|
|
12690
|
-
/* @__PURE__ */
|
|
12659
|
+
/* @__PURE__ */ jsx52(
|
|
12691
12660
|
"path",
|
|
12692
12661
|
{
|
|
12693
12662
|
opacity: "0.6",
|
|
@@ -12698,14 +12667,14 @@ var IcEmptyTable = () => {
|
|
|
12698
12667
|
strokeLinejoin: "round"
|
|
12699
12668
|
}
|
|
12700
12669
|
),
|
|
12701
|
-
/* @__PURE__ */
|
|
12670
|
+
/* @__PURE__ */ jsx52(
|
|
12702
12671
|
"path",
|
|
12703
12672
|
{
|
|
12704
12673
|
d: "M114.191 31.968C113.467 32.3862 112.814 32.4107 112.354 32.1116C111.929 31.8356 111.669 31.2839 111.669 30.5118C111.669 29.4663 111.287 28.7441 110.676 28.433C110.112 28.1458 109.352 28.209 108.516 28.6915C106.775 29.6968 105.363 32.1417 105.363 34.1523C105.363 35.7608 104.234 37.7167 102.841 38.5209L99.6884 40.3412C97.5989 41.5475 95.905 44.4814 95.905 46.8941C95.905 47.0871 95.9701 47.225 96.0762 47.294L96.1036 47.3098C96.0942 47.3051 96.0851 47.2998 96.0762 47.294L93.5814 45.8536C93.4591 45.7914 93.3828 45.647 93.3828 45.4379C93.3828 43.0252 95.0767 40.0913 97.1661 38.885L100.319 37.0647C101.712 36.2605 102.841 34.3046 102.841 32.6961C102.841 30.6855 104.253 28.2406 105.994 27.2353C106.83 26.7528 107.59 26.6896 108.154 26.9768L110.676 28.433C111.287 28.7441 111.669 29.4663 111.669 30.5118L114.822 28.6915C115.825 28.1125 116.736 28.0367 117.413 28.3813L119.936 29.8374C119.259 29.4928 118.347 29.5687 117.344 30.1477L114.191 31.968Z",
|
|
12705
12674
|
fill: "white"
|
|
12706
12675
|
}
|
|
12707
12676
|
),
|
|
12708
|
-
/* @__PURE__ */
|
|
12677
|
+
/* @__PURE__ */ jsx52(
|
|
12709
12678
|
"path",
|
|
12710
12679
|
{
|
|
12711
12680
|
"fill-rule": "evenodd",
|
|
@@ -12714,7 +12683,7 @@ var IcEmptyTable = () => {
|
|
|
12714
12683
|
fill: "white"
|
|
12715
12684
|
}
|
|
12716
12685
|
),
|
|
12717
|
-
/* @__PURE__ */
|
|
12686
|
+
/* @__PURE__ */ jsx52(
|
|
12718
12687
|
"path",
|
|
12719
12688
|
{
|
|
12720
12689
|
d: "M112.328 31.8616C112.788 32.1606 113.441 32.1362 114.165 31.718M114.165 31.718L117.318 29.8977M114.165 31.718C112.772 32.5222 111.643 31.8702 111.643 30.2617M117.318 29.8977C118.321 29.3186 119.233 29.2429 119.91 29.5874L117.387 28.1312C116.71 27.7867 115.799 27.8624 114.796 28.4415L111.643 30.2617M117.318 29.8977C119.407 28.6913 121.101 29.6693 121.101 32.082C121.101 32.4841 120.819 32.9731 120.471 33.1741L96.5097 47.0081C96.1614 47.2091 95.8791 47.0462 95.8791 46.644M111.643 30.2617C111.643 28.2512 110.231 27.4362 108.49 28.4415M95.8791 46.644C95.8791 46.8532 95.9554 46.9976 96.0777 47.0598L93.5555 45.6036C93.4332 45.5414 93.3569 45.397 93.3569 45.1878C93.3569 42.7751 95.0507 39.8413 97.1402 38.6349L100.293 36.8147C101.686 36.0104 102.815 34.0545 102.815 32.4461C102.815 30.4355 104.227 27.9906 105.968 26.9853C106.804 26.5027 107.563 26.4396 108.128 26.7267L110.65 28.183C110.086 27.8958 109.326 27.959 108.49 28.4415M95.8791 46.644C95.8791 44.2313 97.573 41.2975 99.6624 40.0911L102.815 38.2709C104.208 37.4666 105.337 35.5107 105.337 33.9023C105.337 31.8917 106.749 29.4468 108.49 28.4415M109.751 31.3539C109.751 32.1581 109.186 33.1361 108.49 33.5382C107.794 33.9403 107.229 33.6143 107.229 32.8101C107.229 32.0059 107.794 31.0279 108.49 30.6258C109.186 30.2237 109.751 30.5497 109.751 31.3539Z",
|
|
@@ -12725,7 +12694,7 @@ var IcEmptyTable = () => {
|
|
|
12725
12694
|
}
|
|
12726
12695
|
)
|
|
12727
12696
|
] }),
|
|
12728
|
-
/* @__PURE__ */
|
|
12697
|
+
/* @__PURE__ */ jsx52("defs", { children: /* @__PURE__ */ jsx52("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx52(
|
|
12729
12698
|
"rect",
|
|
12730
12699
|
{
|
|
12731
12700
|
width: "215",
|
|
@@ -12740,14 +12709,14 @@ var IcEmptyTable = () => {
|
|
|
12740
12709
|
};
|
|
12741
12710
|
|
|
12742
12711
|
// src/widgets/advanced/table/empty-table.tsx
|
|
12743
|
-
import { jsx as
|
|
12712
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
12744
12713
|
var EmptyTable = () => {
|
|
12745
12714
|
const { t: t3 } = useI18n();
|
|
12746
12715
|
return /* @__PURE__ */ jsxs31("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
|
|
12747
|
-
/* @__PURE__ */
|
|
12716
|
+
/* @__PURE__ */ jsx53(IcEmptyTable, {}),
|
|
12748
12717
|
/* @__PURE__ */ jsxs31("div", { children: [
|
|
12749
|
-
/* @__PURE__ */
|
|
12750
|
-
/* @__PURE__ */
|
|
12718
|
+
/* @__PURE__ */ jsx53("p", {}),
|
|
12719
|
+
/* @__PURE__ */ jsx53("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
|
|
12751
12720
|
] })
|
|
12752
12721
|
] });
|
|
12753
12722
|
};
|
|
@@ -14566,10 +14535,10 @@ function s3(o3, s4, t3) {
|
|
|
14566
14535
|
|
|
14567
14536
|
// src/widgets/advanced/login/shared/button.tsx
|
|
14568
14537
|
import * as React2 from "react";
|
|
14569
|
-
import { jsx as
|
|
14538
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
14570
14539
|
var Button = React2.forwardRef(
|
|
14571
14540
|
({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
|
|
14572
|
-
return /* @__PURE__ */
|
|
14541
|
+
return /* @__PURE__ */ jsx54(
|
|
14573
14542
|
"button",
|
|
14574
14543
|
{
|
|
14575
14544
|
className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
@@ -14579,7 +14548,7 @@ var Button = React2.forwardRef(
|
|
|
14579
14548
|
ref,
|
|
14580
14549
|
type,
|
|
14581
14550
|
...props,
|
|
14582
|
-
children: isLoading ? /* @__PURE__ */
|
|
14551
|
+
children: isLoading ? /* @__PURE__ */ jsx54(LoadingIcon, { width: 20, height: 20 }) : children
|
|
14583
14552
|
}
|
|
14584
14553
|
);
|
|
14585
14554
|
}
|
|
@@ -14588,7 +14557,7 @@ Button.displayName = "Button";
|
|
|
14588
14557
|
|
|
14589
14558
|
// src/widgets/advanced/login/shared/text-input.tsx
|
|
14590
14559
|
import { useState as useState5 } from "react";
|
|
14591
|
-
import { jsx as
|
|
14560
|
+
import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
14592
14561
|
function TextInput(props) {
|
|
14593
14562
|
const {
|
|
14594
14563
|
className,
|
|
@@ -14605,14 +14574,14 @@ function TextInput(props) {
|
|
|
14605
14574
|
return /* @__PURE__ */ jsxs32("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
|
|
14606
14575
|
label && /* @__PURE__ */ jsxs32("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
|
|
14607
14576
|
label,
|
|
14608
|
-
required ? /* @__PURE__ */
|
|
14577
|
+
required ? /* @__PURE__ */ jsx55("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
|
|
14609
14578
|
] }),
|
|
14610
14579
|
/* @__PURE__ */ jsxs32(
|
|
14611
14580
|
"div",
|
|
14612
14581
|
{
|
|
14613
14582
|
className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
|
|
14614
14583
|
children: [
|
|
14615
|
-
/* @__PURE__ */
|
|
14584
|
+
/* @__PURE__ */ jsx55(
|
|
14616
14585
|
"input",
|
|
14617
14586
|
{
|
|
14618
14587
|
className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
|
|
@@ -14621,18 +14590,18 @@ function TextInput(props) {
|
|
|
14621
14590
|
...register(name2)
|
|
14622
14591
|
}
|
|
14623
14592
|
),
|
|
14624
|
-
type === "password" && /* @__PURE__ */
|
|
14593
|
+
type === "password" && /* @__PURE__ */ jsx55(
|
|
14625
14594
|
"span",
|
|
14626
14595
|
{
|
|
14627
14596
|
onClick: () => setShowPassword(!showPassword),
|
|
14628
14597
|
className: "focus:outline-none",
|
|
14629
|
-
children: showPassword ? /* @__PURE__ */
|
|
14598
|
+
children: showPassword ? /* @__PURE__ */ jsx55(EyeClosedIcon, {}) : /* @__PURE__ */ jsx55(EyeIcon, {})
|
|
14630
14599
|
}
|
|
14631
14600
|
)
|
|
14632
14601
|
]
|
|
14633
14602
|
}
|
|
14634
14603
|
),
|
|
14635
|
-
errors?.[name2]?.message && /* @__PURE__ */
|
|
14604
|
+
errors?.[name2]?.message && /* @__PURE__ */ jsx55(
|
|
14636
14605
|
"p",
|
|
14637
14606
|
{
|
|
14638
14607
|
className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
|
|
@@ -14644,7 +14613,7 @@ function TextInput(props) {
|
|
|
14644
14613
|
|
|
14645
14614
|
// src/widgets/advanced/login/provider/credential/form-options/index.tsx
|
|
14646
14615
|
import { useEffect as useEffect7 } from "react";
|
|
14647
|
-
import { jsx as
|
|
14616
|
+
import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
14648
14617
|
var STAY_LOGIN_IN = "stayLoginIn";
|
|
14649
14618
|
function FormOptions({
|
|
14650
14619
|
forgotPasswordUrl,
|
|
@@ -14672,7 +14641,7 @@ function FormOptions({
|
|
|
14672
14641
|
}, []);
|
|
14673
14642
|
return /* @__PURE__ */ jsxs33("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
|
|
14674
14643
|
/* @__PURE__ */ jsxs33("label", { className: "flex gap-3", children: [
|
|
14675
|
-
/* @__PURE__ */
|
|
14644
|
+
/* @__PURE__ */ jsx56(
|
|
14676
14645
|
"input",
|
|
14677
14646
|
{
|
|
14678
14647
|
checked: stayLoginIn,
|
|
@@ -14681,9 +14650,9 @@ function FormOptions({
|
|
|
14681
14650
|
onChange: handleCheckboxChange
|
|
14682
14651
|
}
|
|
14683
14652
|
),
|
|
14684
|
-
/* @__PURE__ */
|
|
14653
|
+
/* @__PURE__ */ jsx56("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
|
|
14685
14654
|
] }),
|
|
14686
|
-
!hideForgotPassword && /* @__PURE__ */
|
|
14655
|
+
!hideForgotPassword && /* @__PURE__ */ jsx56("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
14687
14656
|
] });
|
|
14688
14657
|
}
|
|
14689
14658
|
|
|
@@ -14699,7 +14668,7 @@ var loginSchema = z2.object({
|
|
|
14699
14668
|
});
|
|
14700
14669
|
|
|
14701
14670
|
// src/widgets/advanced/login/provider/credential/index.tsx
|
|
14702
|
-
import { Fragment as Fragment5, jsx as
|
|
14671
|
+
import { Fragment as Fragment5, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
14703
14672
|
var CredentialLogin = (props) => {
|
|
14704
14673
|
const {
|
|
14705
14674
|
shouldRenderDivider,
|
|
@@ -14728,7 +14697,7 @@ var CredentialLogin = (props) => {
|
|
|
14728
14697
|
className: `flex w-full h-fit flex-col gap-10`,
|
|
14729
14698
|
children: [
|
|
14730
14699
|
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
|
|
14731
|
-
/* @__PURE__ */
|
|
14700
|
+
/* @__PURE__ */ jsx57(
|
|
14732
14701
|
TextInput,
|
|
14733
14702
|
{
|
|
14734
14703
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14741,7 +14710,7 @@ var CredentialLogin = (props) => {
|
|
|
14741
14710
|
errors
|
|
14742
14711
|
}
|
|
14743
14712
|
),
|
|
14744
|
-
/* @__PURE__ */
|
|
14713
|
+
/* @__PURE__ */ jsx57(
|
|
14745
14714
|
TextInput,
|
|
14746
14715
|
{
|
|
14747
14716
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14754,7 +14723,7 @@ var CredentialLogin = (props) => {
|
|
|
14754
14723
|
errors
|
|
14755
14724
|
}
|
|
14756
14725
|
),
|
|
14757
|
-
/* @__PURE__ */
|
|
14726
|
+
/* @__PURE__ */ jsx57(
|
|
14758
14727
|
FormOptions,
|
|
14759
14728
|
{
|
|
14760
14729
|
forgotPasswordUrl,
|
|
@@ -14764,7 +14733,7 @@ var CredentialLogin = (props) => {
|
|
|
14764
14733
|
}
|
|
14765
14734
|
)
|
|
14766
14735
|
] }),
|
|
14767
|
-
/* @__PURE__ */
|
|
14736
|
+
/* @__PURE__ */ jsx57("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx57(
|
|
14768
14737
|
Button,
|
|
14769
14738
|
{
|
|
14770
14739
|
type: "submit",
|
|
@@ -14777,14 +14746,14 @@ var CredentialLogin = (props) => {
|
|
|
14777
14746
|
}
|
|
14778
14747
|
),
|
|
14779
14748
|
shouldRenderDivider && /* @__PURE__ */ jsxs34("div", { className: "flex justify-center relative", children: [
|
|
14780
|
-
/* @__PURE__ */
|
|
14781
|
-
/* @__PURE__ */
|
|
14749
|
+
/* @__PURE__ */ jsx57("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
|
|
14750
|
+
/* @__PURE__ */ jsx57("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
|
|
14782
14751
|
] })
|
|
14783
14752
|
] });
|
|
14784
14753
|
};
|
|
14785
14754
|
|
|
14786
14755
|
// src/widgets/advanced/login/provider/google/google-btn/index.tsx
|
|
14787
|
-
import { jsx as
|
|
14756
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
14788
14757
|
function GoogleButton(props) {
|
|
14789
14758
|
const { onLoginGoogle, db } = props;
|
|
14790
14759
|
return /* @__PURE__ */ jsxs35(
|
|
@@ -14793,39 +14762,39 @@ function GoogleButton(props) {
|
|
|
14793
14762
|
className: "google-wrapper w-full active:scale-[0.97] cursor-pointer hover:bg-gray-100 scale-100 transition-all gap-2 p-4 border border-[#e5e7eb] rounded-[10px] flex items-center justify-center bg-white",
|
|
14794
14763
|
onClick: () => onLoginGoogle?.(db),
|
|
14795
14764
|
children: [
|
|
14796
|
-
/* @__PURE__ */
|
|
14797
|
-
/* @__PURE__ */
|
|
14765
|
+
/* @__PURE__ */ jsx58(GoogleIcon, { className: "google-icon" }),
|
|
14766
|
+
/* @__PURE__ */ jsx58("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
|
|
14798
14767
|
]
|
|
14799
14768
|
}
|
|
14800
14769
|
);
|
|
14801
14770
|
}
|
|
14802
14771
|
|
|
14803
14772
|
// src/widgets/advanced/login/provider/google/redirect/index.tsx
|
|
14804
|
-
import { Fragment as Fragment6, jsx as
|
|
14773
|
+
import { Fragment as Fragment6, jsx as jsx59 } from "react/jsx-runtime";
|
|
14805
14774
|
function SocialRedirect(props) {
|
|
14806
14775
|
const { db, onLoginSocial } = props;
|
|
14807
14776
|
onLoginSocial && onLoginSocial(String(db));
|
|
14808
|
-
return /* @__PURE__ */
|
|
14777
|
+
return /* @__PURE__ */ jsx59(Fragment6, {});
|
|
14809
14778
|
}
|
|
14810
14779
|
|
|
14811
14780
|
// src/widgets/advanced/login/provider/google/index.tsx
|
|
14812
|
-
import { Fragment as Fragment7, jsx as
|
|
14781
|
+
import { Fragment as Fragment7, jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14813
14782
|
var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
|
|
14814
14783
|
return /* @__PURE__ */ jsxs36(Fragment7, { children: [
|
|
14815
|
-
/* @__PURE__ */
|
|
14816
|
-
/* @__PURE__ */
|
|
14784
|
+
/* @__PURE__ */ jsx60(GoogleButton, { db, onLoginGoogle }),
|
|
14785
|
+
/* @__PURE__ */ jsx60(SocialRedirect, { db, onLoginSocial })
|
|
14817
14786
|
] });
|
|
14818
14787
|
};
|
|
14819
14788
|
|
|
14820
14789
|
// src/widgets/advanced/login/index.tsx
|
|
14821
|
-
import { jsx as
|
|
14790
|
+
import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14822
14791
|
var LoginProviderMapping = {
|
|
14823
14792
|
google: GoogleLogin
|
|
14824
14793
|
};
|
|
14825
14794
|
var Login = (props) => {
|
|
14826
14795
|
const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
|
|
14827
14796
|
return /* @__PURE__ */ jsxs37("div", { className: "w-full space-y-8", children: [
|
|
14828
|
-
/* @__PURE__ */
|
|
14797
|
+
/* @__PURE__ */ jsx61(
|
|
14829
14798
|
CredentialLogin,
|
|
14830
14799
|
{
|
|
14831
14800
|
...props,
|
|
@@ -14835,7 +14804,7 @@ var Login = (props) => {
|
|
|
14835
14804
|
),
|
|
14836
14805
|
providers.map((provider, index4) => {
|
|
14837
14806
|
const ProviderComp = LoginProviderMapping[provider];
|
|
14838
|
-
return /* @__PURE__ */
|
|
14807
|
+
return /* @__PURE__ */ jsx61(
|
|
14839
14808
|
ProviderComp,
|
|
14840
14809
|
{
|
|
14841
14810
|
db,
|
|
@@ -14849,7 +14818,7 @@ var Login = (props) => {
|
|
|
14849
14818
|
};
|
|
14850
14819
|
|
|
14851
14820
|
// src/widgets/advanced/search/popup-filter/index.tsx
|
|
14852
|
-
import { jsx as
|
|
14821
|
+
import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
14853
14822
|
var PopupFilter = ({
|
|
14854
14823
|
handleAddTagSearch,
|
|
14855
14824
|
removeSearchItems,
|
|
@@ -14860,7 +14829,7 @@ var PopupFilter = ({
|
|
|
14860
14829
|
fields
|
|
14861
14830
|
}) => {
|
|
14862
14831
|
const { t: t3 } = useI18n();
|
|
14863
|
-
return /* @__PURE__ */
|
|
14832
|
+
return /* @__PURE__ */ jsx62(
|
|
14864
14833
|
"div",
|
|
14865
14834
|
{
|
|
14866
14835
|
style: {
|
|
@@ -14877,15 +14846,15 @@ var PopupFilter = ({
|
|
|
14877
14846
|
children: [
|
|
14878
14847
|
filterBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "filter-by w-full px-3", children: [
|
|
14879
14848
|
/* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14880
|
-
/* @__PURE__ */
|
|
14881
|
-
/* @__PURE__ */
|
|
14849
|
+
/* @__PURE__ */ jsx62(FilterIcon, { className: "filter-by-icon text-primary" }),
|
|
14850
|
+
/* @__PURE__ */ jsx62("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
|
|
14882
14851
|
] }),
|
|
14883
14852
|
filterBy?.reduce((acc, item, index4, array) => {
|
|
14884
14853
|
const prevItem = array[index4 - 1];
|
|
14885
14854
|
const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
|
|
14886
14855
|
const isExist = item?.active;
|
|
14887
14856
|
if (isDifferentGroup) {
|
|
14888
|
-
acc.push(/* @__PURE__ */
|
|
14857
|
+
acc.push(/* @__PURE__ */ jsx62("hr", { className: "my-2" }, "separator-" + index4));
|
|
14889
14858
|
}
|
|
14890
14859
|
acc.push(
|
|
14891
14860
|
/* @__PURE__ */ jsxs38(
|
|
@@ -14913,8 +14882,8 @@ var PopupFilter = ({
|
|
|
14913
14882
|
});
|
|
14914
14883
|
},
|
|
14915
14884
|
children: [
|
|
14916
|
-
isExist && /* @__PURE__ */
|
|
14917
|
-
/* @__PURE__ */
|
|
14885
|
+
isExist && /* @__PURE__ */ jsx62(CheckIcon, {}),
|
|
14886
|
+
/* @__PURE__ */ jsx62("span", { className: "text-sm", children: item?.string ?? item?.help })
|
|
14918
14887
|
]
|
|
14919
14888
|
},
|
|
14920
14889
|
"filter-" + index4
|
|
@@ -14923,11 +14892,11 @@ var PopupFilter = ({
|
|
|
14923
14892
|
return acc;
|
|
14924
14893
|
}, [])
|
|
14925
14894
|
] }),
|
|
14926
|
-
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */
|
|
14895
|
+
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx62("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
|
|
14927
14896
|
groupBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "group-by w-full px-3", children: [
|
|
14928
14897
|
/* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14929
|
-
/* @__PURE__ */
|
|
14930
|
-
/* @__PURE__ */
|
|
14898
|
+
/* @__PURE__ */ jsx62(GroupByIcon, { className: "group-by-icon text-primary" }),
|
|
14899
|
+
/* @__PURE__ */ jsx62("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
|
|
14931
14900
|
] }),
|
|
14932
14901
|
groupBy?.map((item, index4) => {
|
|
14933
14902
|
const isExist = item?.active;
|
|
@@ -14956,8 +14925,8 @@ var PopupFilter = ({
|
|
|
14956
14925
|
},
|
|
14957
14926
|
className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
|
|
14958
14927
|
children: [
|
|
14959
|
-
isExist && /* @__PURE__ */
|
|
14960
|
-
/* @__PURE__ */
|
|
14928
|
+
isExist && /* @__PURE__ */ jsx62(CheckIcon, {}),
|
|
14929
|
+
/* @__PURE__ */ jsx62("span", { className: "text-sm", children: item?.string })
|
|
14961
14930
|
]
|
|
14962
14931
|
},
|
|
14963
14932
|
"groupby-" + index4 + 1
|
|
@@ -14976,7 +14945,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
|
14976
14945
|
|
|
14977
14946
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
14978
14947
|
import { Fragment as Fragment8 } from "react";
|
|
14979
|
-
import { Fragment as Fragment9, jsx as
|
|
14948
|
+
import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
14980
14949
|
var TagSearch = ({
|
|
14981
14950
|
removeSearchItems,
|
|
14982
14951
|
selectedTags,
|
|
@@ -14992,10 +14961,10 @@ var TagSearch = ({
|
|
|
14992
14961
|
{
|
|
14993
14962
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
14994
14963
|
children: [
|
|
14995
|
-
/* @__PURE__ */
|
|
14996
|
-
/* @__PURE__ */
|
|
14964
|
+
/* @__PURE__ */ jsx63("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx63(FilterIcon, {}) }),
|
|
14965
|
+
/* @__PURE__ */ jsx63("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
|
|
14997
14966
|
return /* @__PURE__ */ jsxs39(Fragment8, { children: [
|
|
14998
|
-
/* @__PURE__ */
|
|
14967
|
+
/* @__PURE__ */ jsx63("span", { children: value }),
|
|
14999
14968
|
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15000
14969
|
" ",
|
|
15001
14970
|
instance.t("or"),
|
|
@@ -15003,7 +14972,7 @@ var TagSearch = ({
|
|
|
15003
14972
|
] })
|
|
15004
14973
|
] }, idx);
|
|
15005
14974
|
}) }),
|
|
15006
|
-
/* @__PURE__ */
|
|
14975
|
+
/* @__PURE__ */ jsx63(
|
|
15007
14976
|
"button",
|
|
15008
14977
|
{
|
|
15009
14978
|
className: "px-2 text-sm font-bold",
|
|
@@ -15020,7 +14989,7 @@ var TagSearch = ({
|
|
|
15020
14989
|
);
|
|
15021
14990
|
}
|
|
15022
14991
|
},
|
|
15023
|
-
children: /* @__PURE__ */
|
|
14992
|
+
children: /* @__PURE__ */ jsx63(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15024
14993
|
}
|
|
15025
14994
|
)
|
|
15026
14995
|
]
|
|
@@ -15028,26 +14997,26 @@ var TagSearch = ({
|
|
|
15028
14997
|
"selected-tag-" + index4
|
|
15029
14998
|
);
|
|
15030
14999
|
} else if (tag?.type === "group_by") {
|
|
15031
|
-
return /* @__PURE__ */
|
|
15000
|
+
return /* @__PURE__ */ jsx63(
|
|
15032
15001
|
"div",
|
|
15033
15002
|
{
|
|
15034
15003
|
className: "flex min-h-full overflow-hidden",
|
|
15035
|
-
children: /* @__PURE__ */
|
|
15004
|
+
children: /* @__PURE__ */ jsx63("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
|
|
15036
15005
|
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs39(
|
|
15037
15006
|
"div",
|
|
15038
15007
|
{
|
|
15039
15008
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15040
15009
|
children: [
|
|
15041
|
-
/* @__PURE__ */
|
|
15010
|
+
/* @__PURE__ */ jsx63("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx63(GroupByIcon, {}) }),
|
|
15042
15011
|
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs39(Fragment9, { children: [
|
|
15043
|
-
/* @__PURE__ */
|
|
15012
|
+
/* @__PURE__ */ jsx63("span", { children: string }),
|
|
15044
15013
|
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15045
15014
|
" ",
|
|
15046
15015
|
"> ",
|
|
15047
15016
|
" "
|
|
15048
15017
|
] })
|
|
15049
15018
|
] })),
|
|
15050
|
-
/* @__PURE__ */
|
|
15019
|
+
/* @__PURE__ */ jsx63(
|
|
15051
15020
|
"button",
|
|
15052
15021
|
{
|
|
15053
15022
|
className: "pr-2 text-sm font-bold",
|
|
@@ -15062,7 +15031,7 @@ var TagSearch = ({
|
|
|
15062
15031
|
);
|
|
15063
15032
|
}
|
|
15064
15033
|
},
|
|
15065
|
-
children: /* @__PURE__ */
|
|
15034
|
+
children: /* @__PURE__ */ jsx63(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15066
15035
|
}
|
|
15067
15036
|
)
|
|
15068
15037
|
]
|
|
@@ -15079,7 +15048,7 @@ var TagSearch = ({
|
|
|
15079
15048
|
};
|
|
15080
15049
|
|
|
15081
15050
|
// src/widgets/advanced/search/search-list/index.tsx
|
|
15082
|
-
import { jsx as
|
|
15051
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15083
15052
|
var SearchList = ({
|
|
15084
15053
|
handleAddTagSearch,
|
|
15085
15054
|
handleMouseEnter,
|
|
@@ -15089,7 +15058,7 @@ var SearchList = ({
|
|
|
15089
15058
|
hoveredIndexSearchList
|
|
15090
15059
|
}) => {
|
|
15091
15060
|
const { t: t3 } = useI18n();
|
|
15092
|
-
return /* @__PURE__ */
|
|
15061
|
+
return /* @__PURE__ */ jsx64(
|
|
15093
15062
|
"div",
|
|
15094
15063
|
{
|
|
15095
15064
|
style: {
|
|
@@ -15123,12 +15092,12 @@ var SearchList = ({
|
|
|
15123
15092
|
children: [
|
|
15124
15093
|
t3("search"),
|
|
15125
15094
|
" ",
|
|
15126
|
-
/* @__PURE__ */
|
|
15095
|
+
/* @__PURE__ */ jsx64("span", { className: "font-bold", children: searchItem?.title }),
|
|
15127
15096
|
" ",
|
|
15128
15097
|
t3("for"),
|
|
15129
15098
|
":",
|
|
15130
15099
|
" ",
|
|
15131
|
-
/* @__PURE__ */
|
|
15100
|
+
/* @__PURE__ */ jsx64(
|
|
15132
15101
|
"span",
|
|
15133
15102
|
{
|
|
15134
15103
|
style: {
|
|
@@ -15148,7 +15117,7 @@ var SearchList = ({
|
|
|
15148
15117
|
};
|
|
15149
15118
|
|
|
15150
15119
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15151
|
-
import { Fragment as Fragment10, jsx as
|
|
15120
|
+
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15152
15121
|
var Search = ({
|
|
15153
15122
|
removeSearchItems,
|
|
15154
15123
|
selectedTags,
|
|
@@ -15271,9 +15240,9 @@ var Search = ({
|
|
|
15271
15240
|
ref: popupFilterRef,
|
|
15272
15241
|
className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
|
|
15273
15242
|
children: [
|
|
15274
|
-
/* @__PURE__ */
|
|
15243
|
+
/* @__PURE__ */ jsx65("div", { className: "size-5", children: /* @__PURE__ */ jsx65(SearchIcon, {}) }),
|
|
15275
15244
|
/* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
15276
|
-
/* @__PURE__ */
|
|
15245
|
+
/* @__PURE__ */ jsx65(
|
|
15277
15246
|
TagSearch,
|
|
15278
15247
|
{
|
|
15279
15248
|
removeSearchItems,
|
|
@@ -15283,7 +15252,7 @@ var Search = ({
|
|
|
15283
15252
|
setGroupBy
|
|
15284
15253
|
}
|
|
15285
15254
|
),
|
|
15286
|
-
/* @__PURE__ */
|
|
15255
|
+
/* @__PURE__ */ jsx65(
|
|
15287
15256
|
"input",
|
|
15288
15257
|
{
|
|
15289
15258
|
value: searchString,
|
|
@@ -15296,7 +15265,7 @@ var Search = ({
|
|
|
15296
15265
|
onKeyUp: (e3) => e3.preventDefault()
|
|
15297
15266
|
}
|
|
15298
15267
|
),
|
|
15299
|
-
/* @__PURE__ */
|
|
15268
|
+
/* @__PURE__ */ jsx65(
|
|
15300
15269
|
SearchList,
|
|
15301
15270
|
{
|
|
15302
15271
|
handleAddTagSearch,
|
|
@@ -15315,8 +15284,8 @@ var Search = ({
|
|
|
15315
15284
|
setShowPopupFilter((prev2) => !prev2);
|
|
15316
15285
|
},
|
|
15317
15286
|
children: [
|
|
15318
|
-
/* @__PURE__ */
|
|
15319
|
-
/* @__PURE__ */
|
|
15287
|
+
/* @__PURE__ */ jsx65("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
|
|
15288
|
+
/* @__PURE__ */ jsx65(
|
|
15320
15289
|
ChevronBottomIcon,
|
|
15321
15290
|
{
|
|
15322
15291
|
className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
|
|
@@ -15325,7 +15294,7 @@ var Search = ({
|
|
|
15325
15294
|
]
|
|
15326
15295
|
}
|
|
15327
15296
|
),
|
|
15328
|
-
showPopupFilter && /* @__PURE__ */
|
|
15297
|
+
showPopupFilter && /* @__PURE__ */ jsx65(
|
|
15329
15298
|
PopupFilter,
|
|
15330
15299
|
{
|
|
15331
15300
|
handleAddTagSearch,
|
|
@@ -15344,30 +15313,30 @@ var Search = ({
|
|
|
15344
15313
|
};
|
|
15345
15314
|
|
|
15346
15315
|
// src/widgets/basic/active-badge-field/active-badge.tsx
|
|
15347
|
-
import { Fragment as Fragment11, jsx as
|
|
15316
|
+
import { Fragment as Fragment11, jsx as jsx66 } from "react/jsx-runtime";
|
|
15348
15317
|
var ActiveBadgeField = (props) => {
|
|
15349
15318
|
const { t: t3 } = useI18n();
|
|
15350
15319
|
const {
|
|
15351
15320
|
type,
|
|
15352
15321
|
className
|
|
15353
15322
|
} = props;
|
|
15354
|
-
if (type === void 0) return /* @__PURE__ */
|
|
15323
|
+
if (type === void 0) return /* @__PURE__ */ jsx66(Fragment11, {});
|
|
15355
15324
|
const typeStyle = type ? "text-green-500" : "text-red-500";
|
|
15356
15325
|
const text = type ? t3("active") : t3("in_active");
|
|
15357
|
-
return /* @__PURE__ */
|
|
15326
|
+
return /* @__PURE__ */ jsx66("div", { className: `${typeStyle} ${className}`, children: text });
|
|
15358
15327
|
};
|
|
15359
15328
|
|
|
15360
15329
|
// src/widgets/common/modal-layer.tsx
|
|
15361
15330
|
import { Fragment as Fragment12 } from "react";
|
|
15362
15331
|
import { Dialog, DialogPanel, Transition } from "@headlessui/react";
|
|
15363
|
-
import { jsx as
|
|
15332
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
15364
15333
|
var ModalLayer = ({
|
|
15365
15334
|
isOpen,
|
|
15366
15335
|
onClose,
|
|
15367
15336
|
title,
|
|
15368
15337
|
children
|
|
15369
15338
|
}) => {
|
|
15370
|
-
return /* @__PURE__ */
|
|
15339
|
+
return /* @__PURE__ */ jsx67(
|
|
15371
15340
|
Transition,
|
|
15372
15341
|
{
|
|
15373
15342
|
show: isOpen,
|
|
@@ -15378,22 +15347,22 @@ var ModalLayer = ({
|
|
|
15378
15347
|
leaveFrom: "transform scale-100 opacity-100",
|
|
15379
15348
|
leaveTo: "transform scale-95 opacity-0",
|
|
15380
15349
|
as: Fragment12,
|
|
15381
|
-
children: /* @__PURE__ */
|
|
15382
|
-
/* @__PURE__ */
|
|
15383
|
-
/* @__PURE__ */
|
|
15350
|
+
children: /* @__PURE__ */ jsx67(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx67(DialogPanel, { children: /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
|
|
15351
|
+
/* @__PURE__ */ jsx67("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15352
|
+
/* @__PURE__ */ jsx67("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs42("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
|
|
15384
15353
|
/* @__PURE__ */ jsxs42(
|
|
15385
15354
|
"div",
|
|
15386
15355
|
{
|
|
15387
15356
|
className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
|
|
15388
15357
|
children: [
|
|
15389
|
-
title && /* @__PURE__ */
|
|
15390
|
-
/* @__PURE__ */
|
|
15358
|
+
title && /* @__PURE__ */ jsx67("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
|
|
15359
|
+
/* @__PURE__ */ jsx67(
|
|
15391
15360
|
"button",
|
|
15392
15361
|
{
|
|
15393
15362
|
onClick: onClose,
|
|
15394
15363
|
"aria-label": "Close",
|
|
15395
15364
|
className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
|
|
15396
|
-
children: /* @__PURE__ */
|
|
15365
|
+
children: /* @__PURE__ */ jsx67(CloseIcon, {})
|
|
15397
15366
|
}
|
|
15398
15367
|
)
|
|
15399
15368
|
]
|
|
@@ -15407,7 +15376,7 @@ var ModalLayer = ({
|
|
|
15407
15376
|
};
|
|
15408
15377
|
|
|
15409
15378
|
// src/widgets/common/modal-confirm.tsx
|
|
15410
|
-
import { jsx as
|
|
15379
|
+
import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
15411
15380
|
var ModalConfirm = ({
|
|
15412
15381
|
name: name2,
|
|
15413
15382
|
isShowModal,
|
|
@@ -15429,8 +15398,8 @@ var ModalConfirm = ({
|
|
|
15429
15398
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
15430
15399
|
disabled: isLoading,
|
|
15431
15400
|
children: [
|
|
15432
|
-
isLoading && /* @__PURE__ */
|
|
15433
|
-
/* @__PURE__ */
|
|
15401
|
+
isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
|
|
15402
|
+
/* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
|
|
15434
15403
|
]
|
|
15435
15404
|
}
|
|
15436
15405
|
);
|
|
@@ -15443,8 +15412,8 @@ var ModalConfirm = ({
|
|
|
15443
15412
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
15444
15413
|
disabled: isLoading,
|
|
15445
15414
|
children: [
|
|
15446
|
-
isLoading && /* @__PURE__ */
|
|
15447
|
-
/* @__PURE__ */
|
|
15415
|
+
isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
|
|
15416
|
+
/* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "archiving" : "save_archive") })
|
|
15448
15417
|
]
|
|
15449
15418
|
}
|
|
15450
15419
|
);
|
|
@@ -15457,8 +15426,8 @@ var ModalConfirm = ({
|
|
|
15457
15426
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
15458
15427
|
disabled: isLoading,
|
|
15459
15428
|
children: [
|
|
15460
|
-
isLoading && /* @__PURE__ */
|
|
15461
|
-
/* @__PURE__ */
|
|
15429
|
+
isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
|
|
15430
|
+
/* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
|
|
15462
15431
|
]
|
|
15463
15432
|
}
|
|
15464
15433
|
);
|
|
@@ -15471,8 +15440,8 @@ var ModalConfirm = ({
|
|
|
15471
15440
|
className: "button-primary flex-1 flex items-center justify-center gap-2",
|
|
15472
15441
|
disabled: isLoading,
|
|
15473
15442
|
children: [
|
|
15474
|
-
isLoading && /* @__PURE__ */
|
|
15475
|
-
/* @__PURE__ */
|
|
15443
|
+
isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
|
|
15444
|
+
/* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "deleting" : "delete_button") })
|
|
15476
15445
|
]
|
|
15477
15446
|
}
|
|
15478
15447
|
);
|
|
@@ -15480,13 +15449,13 @@ var ModalConfirm = ({
|
|
|
15480
15449
|
break;
|
|
15481
15450
|
}
|
|
15482
15451
|
};
|
|
15483
|
-
return /* @__PURE__ */
|
|
15452
|
+
return /* @__PURE__ */ jsx68(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs43("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
|
|
15484
15453
|
/* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-[4px] items-center", children: [
|
|
15485
|
-
/* @__PURE__ */
|
|
15486
|
-
/* @__PURE__ */
|
|
15454
|
+
/* @__PURE__ */ jsx68("div", { className: "text-[18px] font-bold", children: title }),
|
|
15455
|
+
/* @__PURE__ */ jsx68("p", { className: "text-[16px]", children: content })
|
|
15487
15456
|
] }),
|
|
15488
15457
|
/* @__PURE__ */ jsxs43("div", { className: "flex justify-center items-center gap-2 w-full", children: [
|
|
15489
|
-
/* @__PURE__ */
|
|
15458
|
+
/* @__PURE__ */ jsx68(
|
|
15490
15459
|
"button",
|
|
15491
15460
|
{
|
|
15492
15461
|
type: "button",
|
|
@@ -15503,7 +15472,7 @@ var ModalConfirm = ({
|
|
|
15503
15472
|
// src/widgets/common/modal-detail.tsx
|
|
15504
15473
|
import { useState as useState7 } from "react";
|
|
15505
15474
|
import { createPortal as createPortal3 } from "react-dom";
|
|
15506
|
-
import { Fragment as Fragment13, jsx as
|
|
15475
|
+
import { Fragment as Fragment13, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
15507
15476
|
var ModalDetail = ({
|
|
15508
15477
|
idToolTip,
|
|
15509
15478
|
title,
|
|
@@ -15526,9 +15495,9 @@ var ModalDetail = ({
|
|
|
15526
15495
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
15527
15496
|
};
|
|
15528
15497
|
return createPortal3(
|
|
15529
|
-
/* @__PURE__ */
|
|
15530
|
-
/* @__PURE__ */
|
|
15531
|
-
/* @__PURE__ */
|
|
15498
|
+
/* @__PURE__ */ jsx69(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs44("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
15499
|
+
/* @__PURE__ */ jsx69("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15500
|
+
/* @__PURE__ */ jsx69("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs44("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: [
|
|
15532
15501
|
/* @__PURE__ */ jsxs44("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
15533
15502
|
/* @__PURE__ */ jsxs44(
|
|
15534
15503
|
"div",
|
|
@@ -15537,7 +15506,7 @@ var ModalDetail = ({
|
|
|
15537
15506
|
className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
|
|
15538
15507
|
children: [
|
|
15539
15508
|
t3("detail_button"),
|
|
15540
|
-
/* @__PURE__ */
|
|
15509
|
+
/* @__PURE__ */ jsx69(
|
|
15541
15510
|
"button",
|
|
15542
15511
|
{
|
|
15543
15512
|
onClick: handleNavigateDetail,
|
|
@@ -15548,9 +15517,9 @@ var ModalDetail = ({
|
|
|
15548
15517
|
]
|
|
15549
15518
|
}
|
|
15550
15519
|
),
|
|
15551
|
-
/* @__PURE__ */
|
|
15520
|
+
/* @__PURE__ */ jsx69("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx69(CloseIcon, { className: "h-5 w-5" }) })
|
|
15552
15521
|
] }),
|
|
15553
|
-
/* @__PURE__ */
|
|
15522
|
+
/* @__PURE__ */ jsx69("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
|
|
15554
15523
|
id: idForm,
|
|
15555
15524
|
aid,
|
|
15556
15525
|
model,
|
|
@@ -15565,7 +15534,7 @@ var ModalDetail = ({
|
|
|
15565
15534
|
|
|
15566
15535
|
// src/widgets/common/loading-normal.tsx
|
|
15567
15536
|
import { useEffect as useEffect9, useState as useState8 } from "react";
|
|
15568
|
-
import { jsx as
|
|
15537
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
15569
15538
|
var LayerLoading = () => {
|
|
15570
15539
|
const { t: t3 } = useI18n();
|
|
15571
15540
|
const [activeIndex, setActiveIndex] = useState8(0);
|
|
@@ -15575,21 +15544,21 @@ var LayerLoading = () => {
|
|
|
15575
15544
|
}, 200);
|
|
15576
15545
|
return () => clearInterval(interval);
|
|
15577
15546
|
}, []);
|
|
15578
|
-
return /* @__PURE__ */
|
|
15579
|
-
/* @__PURE__ */
|
|
15547
|
+
return /* @__PURE__ */ jsx70("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex justify-center flex-col items-center gap-12", children: [
|
|
15548
|
+
/* @__PURE__ */ jsx70("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx70(
|
|
15580
15549
|
"div",
|
|
15581
15550
|
{
|
|
15582
15551
|
className: `loading-item ${index4 === activeIndex ? "active" : ""}`
|
|
15583
15552
|
},
|
|
15584
15553
|
index4
|
|
15585
15554
|
)) }),
|
|
15586
|
-
/* @__PURE__ */
|
|
15555
|
+
/* @__PURE__ */ jsx70("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
|
|
15587
15556
|
] }) }) });
|
|
15588
15557
|
};
|
|
15589
15558
|
|
|
15590
15559
|
// src/widgets/common/loading-small.tsx
|
|
15591
15560
|
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
15592
|
-
import { jsx as
|
|
15561
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
15593
15562
|
var LoadingSmall = () => {
|
|
15594
15563
|
const [activeIndex, setActiveIndex] = useState9(0);
|
|
15595
15564
|
useEffect10(() => {
|
|
@@ -15598,7 +15567,7 @@ var LoadingSmall = () => {
|
|
|
15598
15567
|
}, 200);
|
|
15599
15568
|
return () => clearInterval(interval);
|
|
15600
15569
|
}, []);
|
|
15601
|
-
return /* @__PURE__ */
|
|
15570
|
+
return /* @__PURE__ */ jsx71("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx71("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx71("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx71("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx71(
|
|
15602
15571
|
"div",
|
|
15603
15572
|
{
|
|
15604
15573
|
className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
|
|
@@ -15793,7 +15762,7 @@ var po = $2(K("zoom"));
|
|
|
15793
15762
|
var uo = $2(K("flip"));
|
|
15794
15763
|
|
|
15795
15764
|
// src/widgets/common/select-files.tsx
|
|
15796
|
-
import { Fragment as Fragment14, jsx as
|
|
15765
|
+
import { Fragment as Fragment14, jsx as jsx72, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
15797
15766
|
var ButtonSelectFiles = ({
|
|
15798
15767
|
fileInputRef,
|
|
15799
15768
|
selectedFiles,
|
|
@@ -15899,7 +15868,7 @@ var ButtonSelectFiles = ({
|
|
|
15899
15868
|
}
|
|
15900
15869
|
};
|
|
15901
15870
|
return /* @__PURE__ */ jsxs46(Fragment14, { children: [
|
|
15902
|
-
isPending ? /* @__PURE__ */
|
|
15871
|
+
isPending ? /* @__PURE__ */ jsx72(Fragment14, { children: /* @__PURE__ */ jsx72("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
|
|
15903
15872
|
"button",
|
|
15904
15873
|
{
|
|
15905
15874
|
type: "button",
|
|
@@ -15907,12 +15876,12 @@ var ButtonSelectFiles = ({
|
|
|
15907
15876
|
className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
15908
15877
|
onClick: () => fileInputRef.current.click(),
|
|
15909
15878
|
children: [
|
|
15910
|
-
/* @__PURE__ */
|
|
15911
|
-
isText && /* @__PURE__ */
|
|
15879
|
+
/* @__PURE__ */ jsx72(AttachIcon, {}),
|
|
15880
|
+
isText && /* @__PURE__ */ jsx72("span", { children: t3("upload_file_placeholder") })
|
|
15912
15881
|
]
|
|
15913
15882
|
}
|
|
15914
15883
|
),
|
|
15915
|
-
/* @__PURE__ */
|
|
15884
|
+
/* @__PURE__ */ jsx72(
|
|
15916
15885
|
"input",
|
|
15917
15886
|
{
|
|
15918
15887
|
type: "file",
|
|
@@ -15928,7 +15897,7 @@ var ButtonSelectFiles = ({
|
|
|
15928
15897
|
|
|
15929
15898
|
// src/widgets/common/video-player.tsx
|
|
15930
15899
|
import { useRef as useRef6, useState as useState10 } from "react";
|
|
15931
|
-
import { jsx as
|
|
15900
|
+
import { jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15932
15901
|
var VideoPlayer = ({ src }) => {
|
|
15933
15902
|
const [isPlaying, setIsPlaying] = useState10(false);
|
|
15934
15903
|
const videoRef = useRef6(null);
|
|
@@ -15956,7 +15925,7 @@ var VideoPlayer = ({ src }) => {
|
|
|
15956
15925
|
}
|
|
15957
15926
|
};
|
|
15958
15927
|
return /* @__PURE__ */ jsxs47("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
|
|
15959
|
-
/* @__PURE__ */
|
|
15928
|
+
/* @__PURE__ */ jsx73(
|
|
15960
15929
|
"video",
|
|
15961
15930
|
{
|
|
15962
15931
|
ref: videoRef,
|
|
@@ -15968,13 +15937,13 @@ var VideoPlayer = ({ src }) => {
|
|
|
15968
15937
|
children: "Your browser does not support the video tag."
|
|
15969
15938
|
}
|
|
15970
15939
|
),
|
|
15971
|
-
/* @__PURE__ */
|
|
15972
|
-
/* @__PURE__ */
|
|
15940
|
+
/* @__PURE__ */ jsx73("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
|
|
15941
|
+
/* @__PURE__ */ jsx73("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx73("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx73(PlayIcon, {}) }) })
|
|
15973
15942
|
] });
|
|
15974
15943
|
};
|
|
15975
15944
|
|
|
15976
15945
|
// src/widgets/basic/avatar-field/avatar.tsx
|
|
15977
|
-
import { Fragment as Fragment15, jsx as
|
|
15946
|
+
import { Fragment as Fragment15, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
15978
15947
|
var AvatarField = (props) => {
|
|
15979
15948
|
const {
|
|
15980
15949
|
isForm = false,
|
|
@@ -15999,7 +15968,7 @@ var AvatarField = (props) => {
|
|
|
15999
15968
|
fontSize: `${size4 / 2.5}px`
|
|
16000
15969
|
};
|
|
16001
15970
|
return /* @__PURE__ */ jsxs48(Fragment15, { children: [
|
|
16002
|
-
isForm && allowShowDetail && /* @__PURE__ */
|
|
15971
|
+
isForm && allowShowDetail && /* @__PURE__ */ jsx74(
|
|
16003
15972
|
ModalDetail,
|
|
16004
15973
|
{
|
|
16005
15974
|
idToolTip: `avatar-widget-id-${id}`,
|
|
@@ -16010,7 +15979,7 @@ var AvatarField = (props) => {
|
|
|
16010
15979
|
place: "top-start"
|
|
16011
15980
|
}
|
|
16012
15981
|
),
|
|
16013
|
-
allowShowDetail && /* @__PURE__ */
|
|
15982
|
+
allowShowDetail && /* @__PURE__ */ jsx74(
|
|
16014
15983
|
M,
|
|
16015
15984
|
{
|
|
16016
15985
|
id: `avatar-widget-id-${id}`,
|
|
@@ -16019,7 +15988,7 @@ var AvatarField = (props) => {
|
|
|
16019
15988
|
className: "z-20"
|
|
16020
15989
|
}
|
|
16021
15990
|
),
|
|
16022
|
-
avatarSrc ? /* @__PURE__ */
|
|
15991
|
+
avatarSrc ? /* @__PURE__ */ jsx74(
|
|
16023
15992
|
"img",
|
|
16024
15993
|
{
|
|
16025
15994
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -16027,7 +15996,7 @@ var AvatarField = (props) => {
|
|
|
16027
15996
|
className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
|
|
16028
15997
|
alt: "Avatar"
|
|
16029
15998
|
}
|
|
16030
|
-
) : /* @__PURE__ */
|
|
15999
|
+
) : /* @__PURE__ */ jsx74("div", { children: /* @__PURE__ */ jsx74(
|
|
16031
16000
|
"div",
|
|
16032
16001
|
{
|
|
16033
16002
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -16041,7 +16010,7 @@ var AvatarField = (props) => {
|
|
|
16041
16010
|
|
|
16042
16011
|
// src/widgets/basic/binary-field/binary.tsx
|
|
16043
16012
|
import { useEffect as useEffect11, useState as useState11 } from "react";
|
|
16044
|
-
import { Fragment as Fragment16, jsx as
|
|
16013
|
+
import { Fragment as Fragment16, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
16045
16014
|
var BinaryField = (props) => {
|
|
16046
16015
|
const {
|
|
16047
16016
|
name: name2,
|
|
@@ -16131,10 +16100,10 @@ var BinaryField = (props) => {
|
|
|
16131
16100
|
handleFileChange(e3, onChange2);
|
|
16132
16101
|
};
|
|
16133
16102
|
const renderPreview = (file) => {
|
|
16134
|
-
if (!file) return /* @__PURE__ */
|
|
16103
|
+
if (!file) return /* @__PURE__ */ jsx75(PlaceHolderIcon, {});
|
|
16135
16104
|
const { name: name3, type, url, size: size4 } = file;
|
|
16136
16105
|
if (type?.startsWith("image/") || checkIsImageLink2(url))
|
|
16137
|
-
return /* @__PURE__ */
|
|
16106
|
+
return /* @__PURE__ */ jsx75(
|
|
16138
16107
|
"img",
|
|
16139
16108
|
{
|
|
16140
16109
|
src: url,
|
|
@@ -16147,7 +16116,7 @@ var BinaryField = (props) => {
|
|
|
16147
16116
|
}
|
|
16148
16117
|
);
|
|
16149
16118
|
if (type?.startsWith("video/"))
|
|
16150
|
-
return /* @__PURE__ */
|
|
16119
|
+
return /* @__PURE__ */ jsx75(
|
|
16151
16120
|
"video",
|
|
16152
16121
|
{
|
|
16153
16122
|
src: url,
|
|
@@ -16160,18 +16129,18 @@ var BinaryField = (props) => {
|
|
|
16160
16129
|
}
|
|
16161
16130
|
);
|
|
16162
16131
|
const getFileIcon = () => {
|
|
16163
|
-
if (type === "application/pdf") return /* @__PURE__ */
|
|
16132
|
+
if (type === "application/pdf") return /* @__PURE__ */ jsx75(PdfIcon, {});
|
|
16164
16133
|
if (type?.includes("excel") || type?.includes("spreadsheet"))
|
|
16165
|
-
return /* @__PURE__ */
|
|
16166
|
-
if (type?.includes("zip")) return /* @__PURE__ */
|
|
16167
|
-
if (type === "application/json") return /* @__PURE__ */
|
|
16168
|
-
return /* @__PURE__ */
|
|
16134
|
+
return /* @__PURE__ */ jsx75(ExcelIcon, {});
|
|
16135
|
+
if (type?.includes("zip")) return /* @__PURE__ */ jsx75(ZipIcon, {});
|
|
16136
|
+
if (type === "application/json") return /* @__PURE__ */ jsx75(JSONFileIcon, {});
|
|
16137
|
+
return /* @__PURE__ */ jsx75(DefaultFileIcon, {});
|
|
16169
16138
|
};
|
|
16170
16139
|
const isShowSize = !isNaN(size4);
|
|
16171
16140
|
return /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-2", children: [
|
|
16172
16141
|
getFileIcon(),
|
|
16173
16142
|
/* @__PURE__ */ jsxs49("div", { children: [
|
|
16174
|
-
/* @__PURE__ */
|
|
16143
|
+
/* @__PURE__ */ jsx75(
|
|
16175
16144
|
"p",
|
|
16176
16145
|
{
|
|
16177
16146
|
style: {
|
|
@@ -16181,27 +16150,27 @@ var BinaryField = (props) => {
|
|
|
16181
16150
|
children: name3
|
|
16182
16151
|
}
|
|
16183
16152
|
),
|
|
16184
|
-
isShowSize && /* @__PURE__ */
|
|
16153
|
+
isShowSize && /* @__PURE__ */ jsx75("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
|
|
16185
16154
|
] })
|
|
16186
16155
|
] });
|
|
16187
16156
|
};
|
|
16188
|
-
return /* @__PURE__ */
|
|
16157
|
+
return /* @__PURE__ */ jsx75(
|
|
16189
16158
|
Controller,
|
|
16190
16159
|
{
|
|
16191
16160
|
name: name2 ?? "",
|
|
16192
|
-
control: methods
|
|
16161
|
+
control: methods?.control,
|
|
16193
16162
|
rules: {
|
|
16194
16163
|
required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false
|
|
16195
16164
|
},
|
|
16196
16165
|
render: ({ field, fieldState: { error: error2 } }) => {
|
|
16197
16166
|
const hasFile = !!fileInfo;
|
|
16198
16167
|
return /* @__PURE__ */ jsxs49(Fragment16, { children: [
|
|
16199
|
-
/* @__PURE__ */
|
|
16168
|
+
/* @__PURE__ */ jsx75(
|
|
16200
16169
|
"div",
|
|
16201
16170
|
{
|
|
16202
16171
|
ref: binaryRef,
|
|
16203
16172
|
className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
|
|
16204
|
-
children: hasFile ? /* @__PURE__ */
|
|
16173
|
+
children: hasFile ? /* @__PURE__ */ jsx75(
|
|
16205
16174
|
"div",
|
|
16206
16175
|
{
|
|
16207
16176
|
className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
|
|
@@ -16227,7 +16196,7 @@ var BinaryField = (props) => {
|
|
|
16227
16196
|
right: onlyImage ? "0" : "none"
|
|
16228
16197
|
},
|
|
16229
16198
|
children: [
|
|
16230
|
-
/* @__PURE__ */
|
|
16199
|
+
/* @__PURE__ */ jsx75(
|
|
16231
16200
|
"span",
|
|
16232
16201
|
{
|
|
16233
16202
|
className: "cursor-pointer",
|
|
@@ -16235,10 +16204,10 @@ var BinaryField = (props) => {
|
|
|
16235
16204
|
fileInfo?.url || fileInfo?.data,
|
|
16236
16205
|
fileInfo?.name || fileInfo?.display_name
|
|
16237
16206
|
),
|
|
16238
|
-
children: /* @__PURE__ */
|
|
16207
|
+
children: /* @__PURE__ */ jsx75(DownloadIcon, {})
|
|
16239
16208
|
}
|
|
16240
16209
|
),
|
|
16241
|
-
!readonly && /* @__PURE__ */
|
|
16210
|
+
!readonly && /* @__PURE__ */ jsx75(
|
|
16242
16211
|
"span",
|
|
16243
16212
|
{
|
|
16244
16213
|
className: "cursor-pointer",
|
|
@@ -16246,7 +16215,7 @@ var BinaryField = (props) => {
|
|
|
16246
16215
|
setFileInfo(null);
|
|
16247
16216
|
handleRemoveFile(field.onChange);
|
|
16248
16217
|
},
|
|
16249
|
-
children: /* @__PURE__ */
|
|
16218
|
+
children: /* @__PURE__ */ jsx75(DeleteIconDanger, {})
|
|
16250
16219
|
}
|
|
16251
16220
|
)
|
|
16252
16221
|
]
|
|
@@ -16262,7 +16231,7 @@ var BinaryField = (props) => {
|
|
|
16262
16231
|
htmlFor: inputId,
|
|
16263
16232
|
className: `relative p-2 flex cursor-pointer items-center justify-center rounded-lg transition-colors duration-300 ${readonly && "pointer-events-none"} ${onlyImage ? "h-32 w-32 border border-gray-300 hover:border-primary bg-white" : "w-fit h-fit "}`,
|
|
16264
16233
|
children: [
|
|
16265
|
-
/* @__PURE__ */
|
|
16234
|
+
/* @__PURE__ */ jsx75(
|
|
16266
16235
|
"input",
|
|
16267
16236
|
{
|
|
16268
16237
|
id: inputId,
|
|
@@ -16275,7 +16244,7 @@ var BinaryField = (props) => {
|
|
|
16275
16244
|
accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
|
|
16276
16245
|
}
|
|
16277
16246
|
),
|
|
16278
|
-
onlyImage && /* @__PURE__ */
|
|
16247
|
+
onlyImage && /* @__PURE__ */ jsx75(
|
|
16279
16248
|
"img",
|
|
16280
16249
|
{
|
|
16281
16250
|
src: placeHolderImage,
|
|
@@ -16283,7 +16252,7 @@ var BinaryField = (props) => {
|
|
|
16283
16252
|
className: "z-0 relative"
|
|
16284
16253
|
}
|
|
16285
16254
|
),
|
|
16286
|
-
/* @__PURE__ */
|
|
16255
|
+
/* @__PURE__ */ jsx75(
|
|
16287
16256
|
"div",
|
|
16288
16257
|
{
|
|
16289
16258
|
className: " size-8 bg-white rounded-lg flex justify-center items-center z-20",
|
|
@@ -16297,7 +16266,7 @@ var BinaryField = (props) => {
|
|
|
16297
16266
|
border: onlyImage ? "1px solid transparent" : "1px solid var(--color-primary)",
|
|
16298
16267
|
borderRadius: onlyImage ? "100%" : "8px"
|
|
16299
16268
|
},
|
|
16300
|
-
children: /* @__PURE__ */
|
|
16269
|
+
children: /* @__PURE__ */ jsx75(
|
|
16301
16270
|
"svg",
|
|
16302
16271
|
{
|
|
16303
16272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -16305,7 +16274,7 @@ var BinaryField = (props) => {
|
|
|
16305
16274
|
height: "14",
|
|
16306
16275
|
viewBox: "0 0 14 14",
|
|
16307
16276
|
fill: "none",
|
|
16308
|
-
children: /* @__PURE__ */
|
|
16277
|
+
children: /* @__PURE__ */ jsx75(
|
|
16309
16278
|
"path",
|
|
16310
16279
|
{
|
|
16311
16280
|
"fill-rule": "evenodd",
|
|
@@ -16323,7 +16292,7 @@ var BinaryField = (props) => {
|
|
|
16323
16292
|
)
|
|
16324
16293
|
}
|
|
16325
16294
|
),
|
|
16326
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
16295
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
16327
16296
|
] });
|
|
16328
16297
|
}
|
|
16329
16298
|
}
|
|
@@ -16331,7 +16300,7 @@ var BinaryField = (props) => {
|
|
|
16331
16300
|
};
|
|
16332
16301
|
|
|
16333
16302
|
// src/widgets/basic/button-badge-field/button-badge.tsx
|
|
16334
|
-
import { jsx as
|
|
16303
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
16335
16304
|
var typeStyles = {
|
|
16336
16305
|
primary: {
|
|
16337
16306
|
backgroundColor: "#3b82f6",
|
|
@@ -16406,11 +16375,11 @@ var ButtonBadgeField = (props) => {
|
|
|
16406
16375
|
return item && type === "selection" && Array.isArray(item) ? item[1] : item;
|
|
16407
16376
|
};
|
|
16408
16377
|
const label = getLabel(defaultValue ?? value);
|
|
16409
|
-
return label ? /* @__PURE__ */
|
|
16378
|
+
return label ? /* @__PURE__ */ jsx76("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
|
|
16410
16379
|
};
|
|
16411
16380
|
|
|
16412
16381
|
// src/widgets/basic/button-field/button.tsx
|
|
16413
|
-
import { Fragment as Fragment17, jsx as
|
|
16382
|
+
import { Fragment as Fragment17, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
16414
16383
|
var ButtonField = (props) => {
|
|
16415
16384
|
const {
|
|
16416
16385
|
func,
|
|
@@ -16421,7 +16390,7 @@ var ButtonField = (props) => {
|
|
|
16421
16390
|
type = "submit"
|
|
16422
16391
|
} = props;
|
|
16423
16392
|
const { t: t3 } = useI18n();
|
|
16424
|
-
return /* @__PURE__ */
|
|
16393
|
+
return /* @__PURE__ */ jsx77(Fragment17, { children: !loading ? /* @__PURE__ */ jsx77(
|
|
16425
16394
|
"button",
|
|
16426
16395
|
{
|
|
16427
16396
|
type,
|
|
@@ -16439,7 +16408,7 @@ var ButtonField = (props) => {
|
|
|
16439
16408
|
children: [
|
|
16440
16409
|
t3("loading"),
|
|
16441
16410
|
" ",
|
|
16442
|
-
/* @__PURE__ */
|
|
16411
|
+
/* @__PURE__ */ jsx77(LoadingIcon, {})
|
|
16443
16412
|
]
|
|
16444
16413
|
}
|
|
16445
16414
|
) });
|
|
@@ -16447,7 +16416,7 @@ var ButtonField = (props) => {
|
|
|
16447
16416
|
|
|
16448
16417
|
// src/widgets/basic/char-field/char.tsx
|
|
16449
16418
|
import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
|
|
16450
|
-
import { Fragment as Fragment18, jsx as
|
|
16419
|
+
import { Fragment as Fragment18, jsx as jsx78, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
16451
16420
|
var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
|
|
16452
16421
|
var CharField = (props) => {
|
|
16453
16422
|
const {
|
|
@@ -16475,10 +16444,10 @@ var CharField = (props) => {
|
|
|
16475
16444
|
} = props;
|
|
16476
16445
|
if (!isForm && !isEditTable) {
|
|
16477
16446
|
const propValue = value || defaultValue;
|
|
16478
|
-
return /* @__PURE__ */
|
|
16447
|
+
return /* @__PURE__ */ jsx78("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
16479
16448
|
}
|
|
16480
16449
|
const { t: t3 } = useI18n();
|
|
16481
|
-
return /* @__PURE__ */
|
|
16450
|
+
return /* @__PURE__ */ jsx78(
|
|
16482
16451
|
Controller,
|
|
16483
16452
|
{
|
|
16484
16453
|
name: name2 ?? "",
|
|
@@ -16533,7 +16502,7 @@ var CharField = (props) => {
|
|
|
16533
16502
|
return "";
|
|
16534
16503
|
}, [widget, formValues]);
|
|
16535
16504
|
return /* @__PURE__ */ jsxs51(Fragment18, { children: [
|
|
16536
|
-
/* @__PURE__ */
|
|
16505
|
+
/* @__PURE__ */ jsx78(
|
|
16537
16506
|
"input",
|
|
16538
16507
|
{
|
|
16539
16508
|
value: displayValue ?? "",
|
|
@@ -16594,7 +16563,7 @@ var CharField = (props) => {
|
|
|
16594
16563
|
`
|
|
16595
16564
|
}
|
|
16596
16565
|
),
|
|
16597
|
-
isEditTable ? /* @__PURE__ */
|
|
16566
|
+
isEditTable ? /* @__PURE__ */ jsx78(Fragment18, {}) : /* @__PURE__ */ jsx78(Fragment18, { children: error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
|
|
16598
16567
|
] });
|
|
16599
16568
|
}
|
|
16600
16569
|
}
|
|
@@ -16602,7 +16571,7 @@ var CharField = (props) => {
|
|
|
16602
16571
|
};
|
|
16603
16572
|
|
|
16604
16573
|
// src/widgets/basic/checkbox-field/checkbox.tsx
|
|
16605
|
-
import { jsx as
|
|
16574
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
16606
16575
|
var CheckboxField = (props) => {
|
|
16607
16576
|
const {
|
|
16608
16577
|
name: name2,
|
|
@@ -16617,9 +16586,9 @@ var CheckboxField = (props) => {
|
|
|
16617
16586
|
} = props;
|
|
16618
16587
|
if (!isForm) {
|
|
16619
16588
|
if (name2 === "is_active" || name2 === "active") {
|
|
16620
|
-
return /* @__PURE__ */
|
|
16589
|
+
return /* @__PURE__ */ jsx79(ActiveBadgeField, { type: value });
|
|
16621
16590
|
} else {
|
|
16622
|
-
return /* @__PURE__ */
|
|
16591
|
+
return /* @__PURE__ */ jsx79(
|
|
16623
16592
|
"input",
|
|
16624
16593
|
{
|
|
16625
16594
|
type: "checkbox",
|
|
@@ -16630,12 +16599,12 @@ var CheckboxField = (props) => {
|
|
|
16630
16599
|
);
|
|
16631
16600
|
}
|
|
16632
16601
|
}
|
|
16633
|
-
return /* @__PURE__ */
|
|
16602
|
+
return /* @__PURE__ */ jsx79(
|
|
16634
16603
|
Controller,
|
|
16635
16604
|
{
|
|
16636
16605
|
name: name2 ?? "",
|
|
16637
16606
|
control: methods?.control,
|
|
16638
|
-
render: ({ field }) => /* @__PURE__ */
|
|
16607
|
+
render: ({ field }) => /* @__PURE__ */ jsx79(
|
|
16639
16608
|
"div",
|
|
16640
16609
|
{
|
|
16641
16610
|
className: "flex items-center gap-2",
|
|
@@ -16648,7 +16617,7 @@ var CheckboxField = (props) => {
|
|
|
16648
16617
|
onChange2(name2 ?? "", checked);
|
|
16649
16618
|
}
|
|
16650
16619
|
},
|
|
16651
|
-
children: /* @__PURE__ */
|
|
16620
|
+
children: /* @__PURE__ */ jsx79(
|
|
16652
16621
|
"input",
|
|
16653
16622
|
{
|
|
16654
16623
|
...field,
|
|
@@ -16676,7 +16645,7 @@ var CheckboxField = (props) => {
|
|
|
16676
16645
|
|
|
16677
16646
|
// src/widgets/basic/color-field/color-wrapper.tsx
|
|
16678
16647
|
import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
|
|
16679
|
-
import { Fragment as Fragment19, jsx as
|
|
16648
|
+
import { Fragment as Fragment19, jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
16680
16649
|
var ColorWrapper = (props) => {
|
|
16681
16650
|
const { colors: colors2, defaultColor, savePickColor } = props;
|
|
16682
16651
|
const { t: t3 } = useI18n();
|
|
@@ -16700,8 +16669,8 @@ var ColorWrapper = (props) => {
|
|
|
16700
16669
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
16701
16670
|
};
|
|
16702
16671
|
}, []);
|
|
16703
|
-
return /* @__PURE__ */
|
|
16704
|
-
/* @__PURE__ */
|
|
16672
|
+
return /* @__PURE__ */ jsx80("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx80("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
|
|
16673
|
+
/* @__PURE__ */ jsx80(
|
|
16705
16674
|
"button",
|
|
16706
16675
|
{
|
|
16707
16676
|
"data-tooltip-id": `${color?.color}${color?.id}`,
|
|
@@ -16715,7 +16684,7 @@ var ColorWrapper = (props) => {
|
|
|
16715
16684
|
}
|
|
16716
16685
|
}
|
|
16717
16686
|
),
|
|
16718
|
-
/* @__PURE__ */
|
|
16687
|
+
/* @__PURE__ */ jsx80(
|
|
16719
16688
|
M,
|
|
16720
16689
|
{
|
|
16721
16690
|
className: "",
|
|
@@ -16725,7 +16694,7 @@ var ColorWrapper = (props) => {
|
|
|
16725
16694
|
}
|
|
16726
16695
|
)
|
|
16727
16696
|
] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
|
|
16728
|
-
/* @__PURE__ */
|
|
16697
|
+
/* @__PURE__ */ jsx80(
|
|
16729
16698
|
"button",
|
|
16730
16699
|
{
|
|
16731
16700
|
"data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
|
|
@@ -16738,7 +16707,7 @@ var ColorWrapper = (props) => {
|
|
|
16738
16707
|
style: { backgroundColor: selectedColor?.color }
|
|
16739
16708
|
}
|
|
16740
16709
|
),
|
|
16741
|
-
/* @__PURE__ */
|
|
16710
|
+
/* @__PURE__ */ jsx80(
|
|
16742
16711
|
M,
|
|
16743
16712
|
{
|
|
16744
16713
|
place: "top",
|
|
@@ -16750,13 +16719,13 @@ var ColorWrapper = (props) => {
|
|
|
16750
16719
|
};
|
|
16751
16720
|
|
|
16752
16721
|
// src/widgets/basic/color-field/color.tsx
|
|
16753
|
-
import { jsx as
|
|
16722
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
16754
16723
|
var ColorField = (props) => {
|
|
16755
16724
|
const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
|
|
16756
16725
|
if (!isForm) {
|
|
16757
|
-
return /* @__PURE__ */
|
|
16726
|
+
return /* @__PURE__ */ jsx81(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
|
|
16758
16727
|
}
|
|
16759
|
-
return /* @__PURE__ */
|
|
16728
|
+
return /* @__PURE__ */ jsx81(
|
|
16760
16729
|
Controller,
|
|
16761
16730
|
{
|
|
16762
16731
|
name: name2 ?? "",
|
|
@@ -16766,7 +16735,7 @@ var ColorField = (props) => {
|
|
|
16766
16735
|
field.onChange(color?.id);
|
|
16767
16736
|
onChange2 && onChange2(name2 ?? "", color?.id);
|
|
16768
16737
|
};
|
|
16769
|
-
return /* @__PURE__ */
|
|
16738
|
+
return /* @__PURE__ */ jsx81(
|
|
16770
16739
|
ColorWrapper,
|
|
16771
16740
|
{
|
|
16772
16741
|
savePickColor: handlePickColorChange,
|
|
@@ -16781,7 +16750,7 @@ var ColorField = (props) => {
|
|
|
16781
16750
|
|
|
16782
16751
|
// src/widgets/basic/copy-link-buttton/copy-link.tsx
|
|
16783
16752
|
import { useEffect as useEffect14 } from "react";
|
|
16784
|
-
import { jsx as
|
|
16753
|
+
import { jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16785
16754
|
var CopyLinkButtonField = (props) => {
|
|
16786
16755
|
const {
|
|
16787
16756
|
isForm,
|
|
@@ -16800,9 +16769,9 @@ var CopyLinkButtonField = (props) => {
|
|
|
16800
16769
|
} = props;
|
|
16801
16770
|
const { t: t3 } = useI18n();
|
|
16802
16771
|
if (!isForm) {
|
|
16803
|
-
return /* @__PURE__ */
|
|
16772
|
+
return /* @__PURE__ */ jsx82("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
16804
16773
|
}
|
|
16805
|
-
return /* @__PURE__ */
|
|
16774
|
+
return /* @__PURE__ */ jsx82(
|
|
16806
16775
|
Controller,
|
|
16807
16776
|
{
|
|
16808
16777
|
name: name2 ?? "",
|
|
@@ -16830,7 +16799,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
16830
16799
|
${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
|
|
16831
16800
|
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
|
|
16832
16801
|
children: [
|
|
16833
|
-
/* @__PURE__ */
|
|
16802
|
+
/* @__PURE__ */ jsx82(
|
|
16834
16803
|
"input",
|
|
16835
16804
|
{
|
|
16836
16805
|
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
@@ -16871,19 +16840,19 @@ var CopyLinkButtonField = (props) => {
|
|
|
16871
16840
|
`
|
|
16872
16841
|
}
|
|
16873
16842
|
),
|
|
16874
|
-
readonly && value && /* @__PURE__ */
|
|
16843
|
+
readonly && value && /* @__PURE__ */ jsx82(
|
|
16875
16844
|
"button",
|
|
16876
16845
|
{
|
|
16877
16846
|
className: "cursor-pointer",
|
|
16878
16847
|
type: "button",
|
|
16879
16848
|
onClick: () => handleCopyToClipboard(propValue),
|
|
16880
|
-
children: isCopied ? /* @__PURE__ */
|
|
16849
|
+
children: isCopied ? /* @__PURE__ */ jsx82(CheckIcon, {}) : /* @__PURE__ */ jsx82(CopyIcon, {})
|
|
16881
16850
|
}
|
|
16882
16851
|
)
|
|
16883
16852
|
]
|
|
16884
16853
|
}
|
|
16885
16854
|
),
|
|
16886
|
-
error2 && /* @__PURE__ */
|
|
16855
|
+
error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
16887
16856
|
] });
|
|
16888
16857
|
}
|
|
16889
16858
|
}
|
|
@@ -20824,7 +20793,7 @@ function useEffectEvent(callback) {
|
|
|
20824
20793
|
}
|
|
20825
20794
|
|
|
20826
20795
|
// node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
|
|
20827
|
-
import { jsx as
|
|
20796
|
+
import { jsx as jsx83, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
|
|
20828
20797
|
import * as ReactDOM2 from "react-dom";
|
|
20829
20798
|
|
|
20830
20799
|
// node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
@@ -21238,18 +21207,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
|
|
|
21238
21207
|
transform: [rotation, transform].filter((t3) => !!t3).join(" "),
|
|
21239
21208
|
...restStyle
|
|
21240
21209
|
},
|
|
21241
|
-
children: [computedStrokeWidth > 0 && /* @__PURE__ */
|
|
21210
|
+
children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx83("path", {
|
|
21242
21211
|
clipPath: "url(#" + clipPathId + ")",
|
|
21243
21212
|
fill: "none",
|
|
21244
21213
|
stroke,
|
|
21245
21214
|
strokeWidth: computedStrokeWidth + (d ? 0 : 1),
|
|
21246
21215
|
d: dValue
|
|
21247
|
-
}), /* @__PURE__ */
|
|
21216
|
+
}), /* @__PURE__ */ jsx83("path", {
|
|
21248
21217
|
stroke: computedStrokeWidth && !d ? rest.fill : "none",
|
|
21249
21218
|
d: dValue
|
|
21250
|
-
}), /* @__PURE__ */
|
|
21219
|
+
}), /* @__PURE__ */ jsx83("clipPath", {
|
|
21251
21220
|
id: clipPathId,
|
|
21252
|
-
children: /* @__PURE__ */
|
|
21221
|
+
children: /* @__PURE__ */ jsx83("rect", {
|
|
21253
21222
|
x: -halfStrokeWidth,
|
|
21254
21223
|
y: halfStrokeWidth * (isCustomShape ? -1 : 1),
|
|
21255
21224
|
width: width + computedStrokeWidth,
|
|
@@ -27182,7 +27151,7 @@ var Emotion$1 = Emotion;
|
|
|
27182
27151
|
import * as React12 from "react";
|
|
27183
27152
|
var import_extends2 = __toESM(require_extends());
|
|
27184
27153
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
27185
|
-
var
|
|
27154
|
+
var jsx84 = function jsx85(type, props) {
|
|
27186
27155
|
var args = arguments;
|
|
27187
27156
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
27188
27157
|
return React12.createElement.apply(void 0, args);
|
|
@@ -27200,7 +27169,7 @@ var jsx83 = function jsx84(type, props) {
|
|
|
27200
27169
|
var JSX;
|
|
27201
27170
|
/* @__PURE__ */ (function(_JSX) {
|
|
27202
27171
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
27203
|
-
})(
|
|
27172
|
+
})(jsx84 || (jsx84 = {}));
|
|
27204
27173
|
function css() {
|
|
27205
27174
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
27206
27175
|
args[_key] = arguments[_key];
|
|
@@ -27608,7 +27577,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
27608
27577
|
};
|
|
27609
27578
|
var Menu = function Menu2(props) {
|
|
27610
27579
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
27611
|
-
return
|
|
27580
|
+
return jsx84("div", _extends({}, getStyleProps(props, "menu", {
|
|
27612
27581
|
menu: true
|
|
27613
27582
|
}), {
|
|
27614
27583
|
ref: innerRef
|
|
@@ -27630,7 +27599,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
27630
27599
|
};
|
|
27631
27600
|
var MenuList = function MenuList2(props) {
|
|
27632
27601
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
27633
|
-
return
|
|
27602
|
+
return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
|
|
27634
27603
|
"menu-list": true,
|
|
27635
27604
|
"menu-list--is-multi": isMulti
|
|
27636
27605
|
}), {
|
|
@@ -27650,7 +27619,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
27650
27619
|
var loadingMessageCSS = noticeCSS;
|
|
27651
27620
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
27652
27621
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
27653
|
-
return
|
|
27622
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
27654
27623
|
children,
|
|
27655
27624
|
innerProps
|
|
27656
27625
|
}), "noOptionsMessage", {
|
|
@@ -27660,7 +27629,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
27660
27629
|
};
|
|
27661
27630
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
27662
27631
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
27663
|
-
return
|
|
27632
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
27664
27633
|
children,
|
|
27665
27634
|
innerProps
|
|
27666
27635
|
}), "loadingMessage", {
|
|
@@ -27723,7 +27692,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
27723
27692
|
runAutoUpdate();
|
|
27724
27693
|
}, [runAutoUpdate]);
|
|
27725
27694
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
27726
|
-
var menuWrapper =
|
|
27695
|
+
var menuWrapper = jsx84("div", _extends({
|
|
27727
27696
|
ref: setMenuPortalElement
|
|
27728
27697
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
27729
27698
|
offset: computedPosition.offset,
|
|
@@ -27732,7 +27701,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
27732
27701
|
}), "menuPortal", {
|
|
27733
27702
|
"menu-portal": true
|
|
27734
27703
|
}), innerProps), children);
|
|
27735
|
-
return
|
|
27704
|
+
return jsx84(PortalPlacementContext.Provider, {
|
|
27736
27705
|
value: portalPlacementContext
|
|
27737
27706
|
}, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
|
|
27738
27707
|
};
|
|
@@ -27748,7 +27717,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
27748
27717
|
};
|
|
27749
27718
|
var SelectContainer = function SelectContainer2(props) {
|
|
27750
27719
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
27751
|
-
return
|
|
27720
|
+
return jsx84("div", _extends({}, getStyleProps(props, "container", {
|
|
27752
27721
|
"--is-disabled": isDisabled,
|
|
27753
27722
|
"--is-rtl": isRtl
|
|
27754
27723
|
}), innerProps), children);
|
|
@@ -27769,7 +27738,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
27769
27738
|
};
|
|
27770
27739
|
var ValueContainer = function ValueContainer2(props) {
|
|
27771
27740
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
27772
|
-
return
|
|
27741
|
+
return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
27773
27742
|
"value-container": true,
|
|
27774
27743
|
"value-container--is-multi": isMulti,
|
|
27775
27744
|
"value-container--has-value": hasValue
|
|
@@ -27785,7 +27754,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
27785
27754
|
};
|
|
27786
27755
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
27787
27756
|
var children = props.children, innerProps = props.innerProps;
|
|
27788
|
-
return
|
|
27757
|
+
return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
27789
27758
|
indicators: true
|
|
27790
27759
|
}), innerProps), children);
|
|
27791
27760
|
};
|
|
@@ -27806,7 +27775,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
27806
27775
|
};
|
|
27807
27776
|
var Svg = function Svg2(_ref3) {
|
|
27808
27777
|
var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
27809
|
-
return
|
|
27778
|
+
return jsx84("svg", _extends({
|
|
27810
27779
|
height: size4,
|
|
27811
27780
|
width: size4,
|
|
27812
27781
|
viewBox: "0 0 20 20",
|
|
@@ -27816,16 +27785,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
27816
27785
|
}, props));
|
|
27817
27786
|
};
|
|
27818
27787
|
var CrossIcon = function CrossIcon2(props) {
|
|
27819
|
-
return
|
|
27788
|
+
return jsx84(Svg, _extends({
|
|
27820
27789
|
size: 20
|
|
27821
|
-
}, props),
|
|
27790
|
+
}, props), jsx84("path", {
|
|
27822
27791
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
27823
27792
|
}));
|
|
27824
27793
|
};
|
|
27825
27794
|
var DownChevron = function DownChevron2(props) {
|
|
27826
|
-
return
|
|
27795
|
+
return jsx84(Svg, _extends({
|
|
27827
27796
|
size: 20
|
|
27828
|
-
}, props),
|
|
27797
|
+
}, props), jsx84("path", {
|
|
27829
27798
|
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"
|
|
27830
27799
|
}));
|
|
27831
27800
|
};
|
|
@@ -27846,18 +27815,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
27846
27815
|
var dropdownIndicatorCSS = baseCSS;
|
|
27847
27816
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
27848
27817
|
var children = props.children, innerProps = props.innerProps;
|
|
27849
|
-
return
|
|
27818
|
+
return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
27850
27819
|
indicator: true,
|
|
27851
27820
|
"dropdown-indicator": true
|
|
27852
|
-
}), innerProps), children ||
|
|
27821
|
+
}), innerProps), children || jsx84(DownChevron, null));
|
|
27853
27822
|
};
|
|
27854
27823
|
var clearIndicatorCSS = baseCSS;
|
|
27855
27824
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
27856
27825
|
var children = props.children, innerProps = props.innerProps;
|
|
27857
|
-
return
|
|
27826
|
+
return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
27858
27827
|
indicator: true,
|
|
27859
27828
|
"clear-indicator": true
|
|
27860
|
-
}), innerProps), children ||
|
|
27829
|
+
}), innerProps), children || jsx84(CrossIcon, null));
|
|
27861
27830
|
};
|
|
27862
27831
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
27863
27832
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -27873,7 +27842,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
27873
27842
|
};
|
|
27874
27843
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
27875
27844
|
var innerProps = props.innerProps;
|
|
27876
|
-
return
|
|
27845
|
+
return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
27877
27846
|
"indicator-separator": true
|
|
27878
27847
|
})));
|
|
27879
27848
|
};
|
|
@@ -27897,7 +27866,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
27897
27866
|
};
|
|
27898
27867
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
27899
27868
|
var delay = _ref6.delay, offset4 = _ref6.offset;
|
|
27900
|
-
return
|
|
27869
|
+
return jsx84("span", {
|
|
27901
27870
|
css: /* @__PURE__ */ css({
|
|
27902
27871
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
27903
27872
|
backgroundColor: "currentColor",
|
|
@@ -27912,20 +27881,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
27912
27881
|
};
|
|
27913
27882
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
27914
27883
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
27915
|
-
return
|
|
27884
|
+
return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
27916
27885
|
innerProps,
|
|
27917
27886
|
isRtl,
|
|
27918
27887
|
size: size4
|
|
27919
27888
|
}), "loadingIndicator", {
|
|
27920
27889
|
indicator: true,
|
|
27921
27890
|
"loading-indicator": true
|
|
27922
|
-
}), innerProps),
|
|
27891
|
+
}), innerProps), jsx84(LoadingDot, {
|
|
27923
27892
|
delay: 0,
|
|
27924
27893
|
offset: isRtl
|
|
27925
|
-
}),
|
|
27894
|
+
}), jsx84(LoadingDot, {
|
|
27926
27895
|
delay: 160,
|
|
27927
27896
|
offset: true
|
|
27928
|
-
}),
|
|
27897
|
+
}), jsx84(LoadingDot, {
|
|
27929
27898
|
delay: 320,
|
|
27930
27899
|
offset: !isRtl
|
|
27931
27900
|
}));
|
|
@@ -27957,7 +27926,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
27957
27926
|
};
|
|
27958
27927
|
var Control = function Control2(props) {
|
|
27959
27928
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
27960
|
-
return
|
|
27929
|
+
return jsx84("div", _extends({
|
|
27961
27930
|
ref: innerRef
|
|
27962
27931
|
}, getStyleProps(props, "control", {
|
|
27963
27932
|
control: true,
|
|
@@ -27979,15 +27948,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
27979
27948
|
};
|
|
27980
27949
|
var Group = function Group2(props) {
|
|
27981
27950
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
27982
|
-
return
|
|
27951
|
+
return jsx84("div", _extends({}, getStyleProps(props, "group", {
|
|
27983
27952
|
group: true
|
|
27984
|
-
}), innerProps),
|
|
27953
|
+
}), innerProps), jsx84(Heading, _extends({}, headingProps, {
|
|
27985
27954
|
selectProps,
|
|
27986
27955
|
theme,
|
|
27987
27956
|
getStyles,
|
|
27988
27957
|
getClassNames,
|
|
27989
27958
|
cx
|
|
27990
|
-
}), label),
|
|
27959
|
+
}), label), jsx84("div", null, children));
|
|
27991
27960
|
};
|
|
27992
27961
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
27993
27962
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -28009,7 +27978,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
28009
27978
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
28010
27979
|
_cleanCommonProps.data;
|
|
28011
27980
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
28012
|
-
return
|
|
27981
|
+
return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
28013
27982
|
"group-heading": true
|
|
28014
27983
|
}), innerProps));
|
|
28015
27984
|
};
|
|
@@ -28061,11 +28030,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
28061
28030
|
var Input = function Input2(props) {
|
|
28062
28031
|
var cx = props.cx, value = props.value;
|
|
28063
28032
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
28064
|
-
return
|
|
28033
|
+
return jsx84("div", _extends({}, getStyleProps(props, "input", {
|
|
28065
28034
|
"input-container": true
|
|
28066
28035
|
}), {
|
|
28067
28036
|
"data-value": value || ""
|
|
28068
|
-
}),
|
|
28037
|
+
}), jsx84("input", _extends({
|
|
28069
28038
|
className: cx({
|
|
28070
28039
|
input: true
|
|
28071
28040
|
}, inputClassName),
|
|
@@ -28119,35 +28088,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
28119
28088
|
};
|
|
28120
28089
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
28121
28090
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
28122
|
-
return
|
|
28091
|
+
return jsx84("div", innerProps, children);
|
|
28123
28092
|
};
|
|
28124
28093
|
var MultiValueContainer = MultiValueGeneric;
|
|
28125
28094
|
var MultiValueLabel = MultiValueGeneric;
|
|
28126
28095
|
function MultiValueRemove(_ref5) {
|
|
28127
28096
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
28128
|
-
return
|
|
28097
|
+
return jsx84("div", _extends({
|
|
28129
28098
|
role: "button"
|
|
28130
|
-
}, innerProps), children ||
|
|
28099
|
+
}, innerProps), children || jsx84(CrossIcon, {
|
|
28131
28100
|
size: 14
|
|
28132
28101
|
}));
|
|
28133
28102
|
}
|
|
28134
28103
|
var MultiValue = function MultiValue2(props) {
|
|
28135
28104
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
28136
28105
|
var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
|
|
28137
|
-
return
|
|
28106
|
+
return jsx84(Container, {
|
|
28138
28107
|
data,
|
|
28139
28108
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
28140
28109
|
"multi-value": true,
|
|
28141
28110
|
"multi-value--is-disabled": isDisabled
|
|
28142
28111
|
})), innerProps),
|
|
28143
28112
|
selectProps
|
|
28144
|
-
},
|
|
28113
|
+
}, jsx84(Label, {
|
|
28145
28114
|
data,
|
|
28146
28115
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
28147
28116
|
"multi-value__label": true
|
|
28148
28117
|
})),
|
|
28149
28118
|
selectProps
|
|
28150
|
-
}, children),
|
|
28119
|
+
}, children), jsx84(Remove, {
|
|
28151
28120
|
data,
|
|
28152
28121
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
28153
28122
|
"multi-value__remove": true
|
|
@@ -28180,7 +28149,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
28180
28149
|
};
|
|
28181
28150
|
var Option = function Option2(props) {
|
|
28182
28151
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
28183
|
-
return
|
|
28152
|
+
return jsx84("div", _extends({}, getStyleProps(props, "option", {
|
|
28184
28153
|
option: true,
|
|
28185
28154
|
"option--is-disabled": isDisabled,
|
|
28186
28155
|
"option--is-focused": isFocused,
|
|
@@ -28204,7 +28173,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
28204
28173
|
};
|
|
28205
28174
|
var Placeholder = function Placeholder2(props) {
|
|
28206
28175
|
var children = props.children, innerProps = props.innerProps;
|
|
28207
|
-
return
|
|
28176
|
+
return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
28208
28177
|
placeholder: true
|
|
28209
28178
|
}), innerProps), children);
|
|
28210
28179
|
};
|
|
@@ -28226,7 +28195,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
28226
28195
|
};
|
|
28227
28196
|
var SingleValue = function SingleValue2(props) {
|
|
28228
28197
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
28229
|
-
return
|
|
28198
|
+
return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
28230
28199
|
"single-value": true,
|
|
28231
28200
|
"single-value--is-disabled": isDisabled
|
|
28232
28201
|
}), innerProps), children);
|
|
@@ -28328,7 +28297,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
28328
28297
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
28329
28298
|
};
|
|
28330
28299
|
var A11yText = function A11yText2(props) {
|
|
28331
|
-
return
|
|
28300
|
+
return jsx84("span", _extends({
|
|
28332
28301
|
css: _ref
|
|
28333
28302
|
}, props));
|
|
28334
28303
|
};
|
|
@@ -28463,18 +28432,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
28463
28432
|
}
|
|
28464
28433
|
return guidanceMsg;
|
|
28465
28434
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
28466
|
-
var ScreenReaderText =
|
|
28435
|
+
var ScreenReaderText = jsx84(Fragment23, null, jsx84("span", {
|
|
28467
28436
|
id: "aria-selection"
|
|
28468
|
-
}, ariaSelected),
|
|
28437
|
+
}, ariaSelected), jsx84("span", {
|
|
28469
28438
|
id: "aria-focused"
|
|
28470
|
-
}, ariaFocused),
|
|
28439
|
+
}, ariaFocused), jsx84("span", {
|
|
28471
28440
|
id: "aria-results"
|
|
28472
|
-
}, ariaResults),
|
|
28441
|
+
}, ariaResults), jsx84("span", {
|
|
28473
28442
|
id: "aria-guidance"
|
|
28474
28443
|
}, ariaGuidance));
|
|
28475
|
-
return
|
|
28444
|
+
return jsx84(Fragment23, null, jsx84(A11yText$1, {
|
|
28476
28445
|
id
|
|
28477
|
-
}, isInitialFocus && ScreenReaderText),
|
|
28446
|
+
}, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
|
|
28478
28447
|
"aria-live": ariaLive,
|
|
28479
28448
|
"aria-atomic": "false",
|
|
28480
28449
|
"aria-relevant": "additions text",
|
|
@@ -28787,7 +28756,7 @@ var _excluded4 = ["innerRef"];
|
|
|
28787
28756
|
function DummyInput(_ref3) {
|
|
28788
28757
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
28789
28758
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
28790
|
-
return
|
|
28759
|
+
return jsx84("input", _extends({
|
|
28791
28760
|
ref: innerRef
|
|
28792
28761
|
}, filteredProps, {
|
|
28793
28762
|
css: /* @__PURE__ */ css({
|
|
@@ -29029,7 +28998,7 @@ function ScrollManager(_ref3) {
|
|
|
29029
28998
|
setScrollCaptureTarget(element);
|
|
29030
28999
|
setScrollLockTarget(element);
|
|
29031
29000
|
};
|
|
29032
|
-
return
|
|
29001
|
+
return jsx84(Fragment23, null, lockEnabled && jsx84("div", {
|
|
29033
29002
|
onClick: blurSelectInput,
|
|
29034
29003
|
css: _ref2$1
|
|
29035
29004
|
}), children(targetRef));
|
|
@@ -29048,7 +29017,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
29048
29017
|
};
|
|
29049
29018
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
29050
29019
|
var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
29051
|
-
return
|
|
29020
|
+
return jsx84("input", {
|
|
29052
29021
|
required: true,
|
|
29053
29022
|
name: name2,
|
|
29054
29023
|
tabIndex: -1,
|
|
@@ -30638,7 +30607,7 @@ var StateManagedSelect$1 = StateManagedSelect;
|
|
|
30638
30607
|
|
|
30639
30608
|
// src/widgets/basic/date-field/date.tsx
|
|
30640
30609
|
var import_moment2 = __toESM(require_moment());
|
|
30641
|
-
import { Fragment as Fragment24, jsx as
|
|
30610
|
+
import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
30642
30611
|
var DateField = (props) => {
|
|
30643
30612
|
const {
|
|
30644
30613
|
name: name2,
|
|
@@ -30667,7 +30636,7 @@ var DateField = (props) => {
|
|
|
30667
30636
|
const { t: t3 } = useI18n();
|
|
30668
30637
|
const InputDateCustom = forwardRef6(
|
|
30669
30638
|
({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
|
|
30670
|
-
/* @__PURE__ */
|
|
30639
|
+
/* @__PURE__ */ jsx86(
|
|
30671
30640
|
"input",
|
|
30672
30641
|
{
|
|
30673
30642
|
className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
|
|
@@ -30681,13 +30650,13 @@ var DateField = (props) => {
|
|
|
30681
30650
|
value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
|
|
30682
30651
|
}
|
|
30683
30652
|
),
|
|
30684
|
-
isForm2 && /* @__PURE__ */
|
|
30653
|
+
isForm2 && /* @__PURE__ */ jsx86(CalendarIcon, {})
|
|
30685
30654
|
] })
|
|
30686
30655
|
);
|
|
30687
30656
|
if (!isForm && !isEditTable) {
|
|
30688
|
-
return /* @__PURE__ */
|
|
30657
|
+
return /* @__PURE__ */ jsx86("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
|
|
30689
30658
|
} else {
|
|
30690
|
-
return /* @__PURE__ */
|
|
30659
|
+
return /* @__PURE__ */ jsx86(
|
|
30691
30660
|
Controller,
|
|
30692
30661
|
{
|
|
30693
30662
|
name: name2 || "",
|
|
@@ -30710,7 +30679,7 @@ var DateField = (props) => {
|
|
|
30710
30679
|
}, [value, clearErrors, name2]);
|
|
30711
30680
|
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;
|
|
30712
30681
|
return /* @__PURE__ */ jsxs55(Fragment24, { children: [
|
|
30713
|
-
/* @__PURE__ */
|
|
30682
|
+
/* @__PURE__ */ jsx86(
|
|
30714
30683
|
DatePicker,
|
|
30715
30684
|
{
|
|
30716
30685
|
selected: selectedDate,
|
|
@@ -30758,7 +30727,7 @@ var DateField = (props) => {
|
|
|
30758
30727
|
minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
|
|
30759
30728
|
maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
|
|
30760
30729
|
showTimeInput: showTime,
|
|
30761
|
-
customInput: /* @__PURE__ */
|
|
30730
|
+
customInput: /* @__PURE__ */ jsx86(
|
|
30762
30731
|
InputDateCustom,
|
|
30763
30732
|
{
|
|
30764
30733
|
isForm,
|
|
@@ -30785,7 +30754,7 @@ var DateField = (props) => {
|
|
|
30785
30754
|
justifyContent: "center"
|
|
30786
30755
|
},
|
|
30787
30756
|
children: [
|
|
30788
|
-
/* @__PURE__ */
|
|
30757
|
+
/* @__PURE__ */ jsx86(
|
|
30789
30758
|
"button",
|
|
30790
30759
|
{
|
|
30791
30760
|
onClick: decreaseMonth,
|
|
@@ -30793,7 +30762,7 @@ var DateField = (props) => {
|
|
|
30793
30762
|
children: "<"
|
|
30794
30763
|
}
|
|
30795
30764
|
),
|
|
30796
|
-
/* @__PURE__ */
|
|
30765
|
+
/* @__PURE__ */ jsx86(
|
|
30797
30766
|
StateManagedSelect$1,
|
|
30798
30767
|
{
|
|
30799
30768
|
classNames: {
|
|
@@ -30819,7 +30788,7 @@ var DateField = (props) => {
|
|
|
30819
30788
|
autoFocus: true
|
|
30820
30789
|
}
|
|
30821
30790
|
),
|
|
30822
|
-
/* @__PURE__ */
|
|
30791
|
+
/* @__PURE__ */ jsx86(
|
|
30823
30792
|
StateManagedSelect$1,
|
|
30824
30793
|
{
|
|
30825
30794
|
classNames: {
|
|
@@ -30847,7 +30816,7 @@ var DateField = (props) => {
|
|
|
30847
30816
|
}))
|
|
30848
30817
|
}
|
|
30849
30818
|
),
|
|
30850
|
-
/* @__PURE__ */
|
|
30819
|
+
/* @__PURE__ */ jsx86(
|
|
30851
30820
|
"button",
|
|
30852
30821
|
{
|
|
30853
30822
|
onClick: increaseMonth,
|
|
@@ -30860,7 +30829,7 @@ var DateField = (props) => {
|
|
|
30860
30829
|
)
|
|
30861
30830
|
}
|
|
30862
30831
|
),
|
|
30863
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
30832
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx86("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
30864
30833
|
] });
|
|
30865
30834
|
}
|
|
30866
30835
|
}
|
|
@@ -30869,7 +30838,7 @@ var DateField = (props) => {
|
|
|
30869
30838
|
};
|
|
30870
30839
|
|
|
30871
30840
|
// src/widgets/basic/download-binary-field/download-binary.tsx
|
|
30872
|
-
import { jsx as
|
|
30841
|
+
import { jsx as jsx87, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
30873
30842
|
var DownLoadBinaryField = (props) => {
|
|
30874
30843
|
const { handleFileDownload } = props;
|
|
30875
30844
|
const { t: t3 } = useI18n();
|
|
@@ -30880,15 +30849,15 @@ var DownLoadBinaryField = (props) => {
|
|
|
30880
30849
|
onClick: handleFileDownload,
|
|
30881
30850
|
className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
|
|
30882
30851
|
children: [
|
|
30883
|
-
/* @__PURE__ */
|
|
30884
|
-
/* @__PURE__ */
|
|
30852
|
+
/* @__PURE__ */ jsx87(DownloadIcon, {}),
|
|
30853
|
+
/* @__PURE__ */ jsx87("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
|
|
30885
30854
|
]
|
|
30886
30855
|
}
|
|
30887
30856
|
);
|
|
30888
30857
|
};
|
|
30889
30858
|
|
|
30890
30859
|
// src/widgets/basic/download-file-field/download-file.tsx
|
|
30891
|
-
import { jsx as
|
|
30860
|
+
import { jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
30892
30861
|
var DownloadFileField = (props) => {
|
|
30893
30862
|
const {
|
|
30894
30863
|
readonly,
|
|
@@ -30907,8 +30876,8 @@ var DownloadFileField = (props) => {
|
|
|
30907
30876
|
htmlFor: inputId,
|
|
30908
30877
|
className: "flex cursor-pointer items-center justify-center rounded-lg border-2 border-gray-300 bg-white px-3 py-2 transition-colors duration-300 hover:bg-gray-200",
|
|
30909
30878
|
children: [
|
|
30910
|
-
file ? /* @__PURE__ */
|
|
30911
|
-
/* @__PURE__ */
|
|
30879
|
+
file ? /* @__PURE__ */ jsx88("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
|
|
30880
|
+
/* @__PURE__ */ jsx88(
|
|
30912
30881
|
"input",
|
|
30913
30882
|
{
|
|
30914
30883
|
id: inputId,
|
|
@@ -30922,7 +30891,7 @@ var DownloadFileField = (props) => {
|
|
|
30922
30891
|
]
|
|
30923
30892
|
}
|
|
30924
30893
|
),
|
|
30925
|
-
file && /* @__PURE__ */
|
|
30894
|
+
file && /* @__PURE__ */ jsx88(
|
|
30926
30895
|
"button",
|
|
30927
30896
|
{
|
|
30928
30897
|
onClick: handleFileDownload,
|
|
@@ -30936,7 +30905,7 @@ var DownloadFileField = (props) => {
|
|
|
30936
30905
|
|
|
30937
30906
|
// src/widgets/basic/dropdown-field/dropdown.tsx
|
|
30938
30907
|
import { useState as useState17 } from "react";
|
|
30939
|
-
import { jsx as
|
|
30908
|
+
import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
30940
30909
|
var DropdownField = (props) => {
|
|
30941
30910
|
const {
|
|
30942
30911
|
options: options2,
|
|
@@ -30963,17 +30932,17 @@ var DropdownField = (props) => {
|
|
|
30963
30932
|
className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
|
|
30964
30933
|
children: [
|
|
30965
30934
|
selectedValue?.icon,
|
|
30966
|
-
/* @__PURE__ */
|
|
30967
|
-
/* @__PURE__ */
|
|
30935
|
+
/* @__PURE__ */ jsx89("span", { children: selectedValue?.label }),
|
|
30936
|
+
/* @__PURE__ */ jsx89(ChevronBottomIcon, { className: "h-4 w-4" })
|
|
30968
30937
|
]
|
|
30969
30938
|
}
|
|
30970
30939
|
),
|
|
30971
|
-
open && /* @__PURE__ */
|
|
30940
|
+
open && /* @__PURE__ */ jsx89(
|
|
30972
30941
|
"div",
|
|
30973
30942
|
{
|
|
30974
30943
|
className: `absolute left-0 top-[calc(100%_+_4px)] z-50 bg-white overflow-hidden rounded-lg border border-[#dbe0e6] shadow-md text-sub-600 h-auto !min-h-fit text-xs !leading-5 !font-bold ${dropdownClassName}`,
|
|
30975
30944
|
onClick: (e3) => e3.stopPropagation(),
|
|
30976
|
-
children: options2.map((option, index4) => /* @__PURE__ */
|
|
30945
|
+
children: options2.map((option, index4) => /* @__PURE__ */ jsx89(
|
|
30977
30946
|
"div",
|
|
30978
30947
|
{
|
|
30979
30948
|
onClick: () => {
|
|
@@ -30993,7 +30962,7 @@ var DropdownField = (props) => {
|
|
|
30993
30962
|
};
|
|
30994
30963
|
|
|
30995
30964
|
// src/widgets/basic/fee-field/fee.tsx
|
|
30996
|
-
import { Fragment as Fragment25, jsx as
|
|
30965
|
+
import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
30997
30966
|
var FeeField = (props) => {
|
|
30998
30967
|
const { value, formValues } = props;
|
|
30999
30968
|
const { t: t3 } = useI18n();
|
|
@@ -31013,7 +30982,7 @@ var FeeField = (props) => {
|
|
|
31013
30982
|
sub?.name,
|
|
31014
30983
|
":"
|
|
31015
30984
|
] }),
|
|
31016
|
-
/* @__PURE__ */
|
|
30985
|
+
/* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
|
|
31017
30986
|
] }),
|
|
31018
30987
|
sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
|
|
31019
30988
|
"div",
|
|
@@ -31024,7 +30993,7 @@ var FeeField = (props) => {
|
|
|
31024
30993
|
group?.group_name,
|
|
31025
30994
|
":"
|
|
31026
30995
|
] }),
|
|
31027
|
-
/* @__PURE__ */
|
|
30996
|
+
/* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
|
|
31028
30997
|
]
|
|
31029
30998
|
},
|
|
31030
30999
|
`tax_groups_${group?.id}`
|
|
@@ -31037,28 +31006,28 @@ var FeeField = (props) => {
|
|
|
31037
31006
|
t3("total"),
|
|
31038
31007
|
":"
|
|
31039
31008
|
] }),
|
|
31040
|
-
/* @__PURE__ */
|
|
31009
|
+
/* @__PURE__ */ jsx90("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
|
|
31041
31010
|
] }),
|
|
31042
31011
|
/* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
|
|
31043
31012
|
/* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31044
31013
|
t3("paid_amount"),
|
|
31045
31014
|
":"
|
|
31046
31015
|
] }),
|
|
31047
|
-
/* @__PURE__ */
|
|
31016
|
+
/* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
|
|
31048
31017
|
] }),
|
|
31049
31018
|
/* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
|
|
31050
31019
|
/* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31051
31020
|
t3("remanining_amount"),
|
|
31052
31021
|
":"
|
|
31053
31022
|
] }),
|
|
31054
|
-
/* @__PURE__ */
|
|
31023
|
+
/* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
|
|
31055
31024
|
] })
|
|
31056
31025
|
] });
|
|
31057
31026
|
};
|
|
31058
31027
|
|
|
31059
31028
|
// src/widgets/basic/file-upload-field/file-upload.tsx
|
|
31060
31029
|
import { useEffect as useEffect19, useRef as useRef15, useState as useState18 } from "react";
|
|
31061
|
-
import { jsx as
|
|
31030
|
+
import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
31062
31031
|
var RenderFile = ({
|
|
31063
31032
|
file,
|
|
31064
31033
|
onDelete,
|
|
@@ -31068,16 +31037,16 @@ var RenderFile = ({
|
|
|
31068
31037
|
readAs: "all"
|
|
31069
31038
|
});
|
|
31070
31039
|
const fileTypeIcon = {
|
|
31071
|
-
"application/pdf": /* @__PURE__ */
|
|
31072
|
-
"application/zip": /* @__PURE__ */
|
|
31073
|
-
"application/x-zip-compressed": /* @__PURE__ */
|
|
31074
|
-
"application/vnd.ms-excel": /* @__PURE__ */
|
|
31075
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */
|
|
31040
|
+
"application/pdf": /* @__PURE__ */ jsx91(PdfIcon, {}),
|
|
31041
|
+
"application/zip": /* @__PURE__ */ jsx91(ZipIcon, {}),
|
|
31042
|
+
"application/x-zip-compressed": /* @__PURE__ */ jsx91(ZipIcon, {}),
|
|
31043
|
+
"application/vnd.ms-excel": /* @__PURE__ */ jsx91(ExcelIcon, {}),
|
|
31044
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx91(ExcelIcon, {})
|
|
31076
31045
|
};
|
|
31077
31046
|
return /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
|
|
31078
|
-
/* @__PURE__ */
|
|
31047
|
+
/* @__PURE__ */ jsx91("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
|
|
31079
31048
|
/* @__PURE__ */ jsxs60("div", { children: [
|
|
31080
|
-
/* @__PURE__ */
|
|
31049
|
+
/* @__PURE__ */ jsx91(
|
|
31081
31050
|
"div",
|
|
31082
31051
|
{
|
|
31083
31052
|
style: {
|
|
@@ -31087,20 +31056,20 @@ var RenderFile = ({
|
|
|
31087
31056
|
children: file?.name || file?.display_name || info?.name
|
|
31088
31057
|
}
|
|
31089
31058
|
),
|
|
31090
|
-
/* @__PURE__ */
|
|
31059
|
+
/* @__PURE__ */ jsx91("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
|
|
31091
31060
|
] }),
|
|
31092
31061
|
/* @__PURE__ */ jsxs60("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
|
|
31093
|
-
/* @__PURE__ */
|
|
31062
|
+
/* @__PURE__ */ jsx91(
|
|
31094
31063
|
"span",
|
|
31095
31064
|
{
|
|
31096
31065
|
onClick: () => onDownload && onDownload(
|
|
31097
31066
|
file?.data,
|
|
31098
31067
|
file?.name || file?.display_name || info?.name
|
|
31099
31068
|
),
|
|
31100
|
-
children: /* @__PURE__ */
|
|
31069
|
+
children: /* @__PURE__ */ jsx91(DownloadIcon, {})
|
|
31101
31070
|
}
|
|
31102
31071
|
),
|
|
31103
|
-
/* @__PURE__ */
|
|
31072
|
+
/* @__PURE__ */ jsx91("span", { onClick: onDelete, children: /* @__PURE__ */ jsx91(DeleteIconDanger, {}) })
|
|
31104
31073
|
] })
|
|
31105
31074
|
] });
|
|
31106
31075
|
};
|
|
@@ -31134,7 +31103,7 @@ var FileUploadField = (props) => {
|
|
|
31134
31103
|
]);
|
|
31135
31104
|
}
|
|
31136
31105
|
}, [value]);
|
|
31137
|
-
return /* @__PURE__ */
|
|
31106
|
+
return /* @__PURE__ */ jsx91(
|
|
31138
31107
|
Controller,
|
|
31139
31108
|
{
|
|
31140
31109
|
name: name2 || "",
|
|
@@ -31160,7 +31129,7 @@ var FileUploadField = (props) => {
|
|
|
31160
31129
|
}
|
|
31161
31130
|
}, [selectedFiles]);
|
|
31162
31131
|
return /* @__PURE__ */ jsxs60("div", { children: [
|
|
31163
|
-
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */
|
|
31132
|
+
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx91(
|
|
31164
31133
|
RenderFile,
|
|
31165
31134
|
{
|
|
31166
31135
|
file: fileItem,
|
|
@@ -31175,8 +31144,8 @@ var FileUploadField = (props) => {
|
|
|
31175
31144
|
}
|
|
31176
31145
|
}
|
|
31177
31146
|
)),
|
|
31178
|
-
uploadError && /* @__PURE__ */
|
|
31179
|
-
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */
|
|
31147
|
+
uploadError && /* @__PURE__ */ jsx91("div", { className: "text-[#de4747]", children: uploadError }),
|
|
31148
|
+
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx91(
|
|
31180
31149
|
ButtonSelectFiles,
|
|
31181
31150
|
{
|
|
31182
31151
|
fileInputRef,
|
|
@@ -31191,7 +31160,7 @@ var FileUploadField = (props) => {
|
|
|
31191
31160
|
useUploadFile
|
|
31192
31161
|
}
|
|
31193
31162
|
),
|
|
31194
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
31163
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
31195
31164
|
] });
|
|
31196
31165
|
}
|
|
31197
31166
|
}
|
|
@@ -31200,7 +31169,7 @@ var FileUploadField = (props) => {
|
|
|
31200
31169
|
|
|
31201
31170
|
// src/widgets/basic/float-field/float.tsx
|
|
31202
31171
|
import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
|
|
31203
|
-
import { Fragment as Fragment26, jsx as
|
|
31172
|
+
import { Fragment as Fragment26, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
31204
31173
|
var FloatField = (props) => {
|
|
31205
31174
|
const {
|
|
31206
31175
|
name: name2,
|
|
@@ -31218,9 +31187,9 @@ var FloatField = (props) => {
|
|
|
31218
31187
|
} = props;
|
|
31219
31188
|
const { t: t3 } = useI18n();
|
|
31220
31189
|
if (!isForm && !isEditTable) {
|
|
31221
|
-
return /* @__PURE__ */
|
|
31190
|
+
return /* @__PURE__ */ jsx92("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
31222
31191
|
}
|
|
31223
|
-
return /* @__PURE__ */
|
|
31192
|
+
return /* @__PURE__ */ jsx92(
|
|
31224
31193
|
Controller,
|
|
31225
31194
|
{
|
|
31226
31195
|
name: name2 ?? "",
|
|
@@ -31328,7 +31297,7 @@ var FloatField = (props) => {
|
|
|
31328
31297
|
isDirtyRef.current = false;
|
|
31329
31298
|
};
|
|
31330
31299
|
return /* @__PURE__ */ jsxs61(Fragment26, { children: [
|
|
31331
|
-
/* @__PURE__ */
|
|
31300
|
+
/* @__PURE__ */ jsx92(
|
|
31332
31301
|
"input",
|
|
31333
31302
|
{
|
|
31334
31303
|
ref: inputRef,
|
|
@@ -31348,7 +31317,7 @@ var FloatField = (props) => {
|
|
|
31348
31317
|
`
|
|
31349
31318
|
}
|
|
31350
31319
|
),
|
|
31351
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
31320
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx92("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
31352
31321
|
] });
|
|
31353
31322
|
}
|
|
31354
31323
|
}
|
|
@@ -31357,7 +31326,7 @@ var FloatField = (props) => {
|
|
|
31357
31326
|
|
|
31358
31327
|
// src/widgets/basic/float-time-field/float-time.tsx
|
|
31359
31328
|
import { useState as useState20 } from "react";
|
|
31360
|
-
import { Fragment as Fragment27, jsx as
|
|
31329
|
+
import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
31361
31330
|
var FloatTimeField = (props) => {
|
|
31362
31331
|
const {
|
|
31363
31332
|
name: name2,
|
|
@@ -31373,9 +31342,9 @@ var FloatTimeField = (props) => {
|
|
|
31373
31342
|
const { t: t3 } = useI18n();
|
|
31374
31343
|
if (!isForm) {
|
|
31375
31344
|
const formatValue = value ?? 0;
|
|
31376
|
-
return /* @__PURE__ */
|
|
31345
|
+
return /* @__PURE__ */ jsx93("span", { children: convertFloatToTime(formatValue) });
|
|
31377
31346
|
}
|
|
31378
|
-
return /* @__PURE__ */
|
|
31347
|
+
return /* @__PURE__ */ jsx93(
|
|
31379
31348
|
Controller,
|
|
31380
31349
|
{
|
|
31381
31350
|
name: name2 ?? "",
|
|
@@ -31438,7 +31407,7 @@ var FloatTimeField = (props) => {
|
|
|
31438
31407
|
onBlur();
|
|
31439
31408
|
};
|
|
31440
31409
|
return /* @__PURE__ */ jsxs62(Fragment27, { children: [
|
|
31441
|
-
/* @__PURE__ */
|
|
31410
|
+
/* @__PURE__ */ jsx93(
|
|
31442
31411
|
"input",
|
|
31443
31412
|
{
|
|
31444
31413
|
type: "text",
|
|
@@ -31470,7 +31439,7 @@ var FloatTimeField = (props) => {
|
|
|
31470
31439
|
readOnly: readonly
|
|
31471
31440
|
}
|
|
31472
31441
|
),
|
|
31473
|
-
(error2 || errors) && /* @__PURE__ */
|
|
31442
|
+
(error2 || errors) && /* @__PURE__ */ jsx93("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
|
|
31474
31443
|
] });
|
|
31475
31444
|
}
|
|
31476
31445
|
}
|
|
@@ -31479,7 +31448,7 @@ var FloatTimeField = (props) => {
|
|
|
31479
31448
|
|
|
31480
31449
|
// src/widgets/basic/html-field/html.tsx
|
|
31481
31450
|
import { useEffect as useEffect21, useRef as useRef17 } from "react";
|
|
31482
|
-
import { jsx as
|
|
31451
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
31483
31452
|
var HtmlField = (props) => {
|
|
31484
31453
|
const {
|
|
31485
31454
|
name: name2,
|
|
@@ -31493,9 +31462,9 @@ var HtmlField = (props) => {
|
|
|
31493
31462
|
} = props;
|
|
31494
31463
|
const divRef = useRef17(null);
|
|
31495
31464
|
if (!isForm && !isEditTable) {
|
|
31496
|
-
return /* @__PURE__ */
|
|
31465
|
+
return /* @__PURE__ */ jsx94("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
|
|
31497
31466
|
}
|
|
31498
|
-
return /* @__PURE__ */
|
|
31467
|
+
return /* @__PURE__ */ jsx94(
|
|
31499
31468
|
Controller,
|
|
31500
31469
|
{
|
|
31501
31470
|
name: name2 ?? "",
|
|
@@ -31514,7 +31483,7 @@ var HtmlField = (props) => {
|
|
|
31514
31483
|
onChange2(newValue, "");
|
|
31515
31484
|
}
|
|
31516
31485
|
};
|
|
31517
|
-
return /* @__PURE__ */
|
|
31486
|
+
return /* @__PURE__ */ jsx94(
|
|
31518
31487
|
"div",
|
|
31519
31488
|
{
|
|
31520
31489
|
ref: divRef,
|
|
@@ -31533,28 +31502,28 @@ var HtmlField = (props) => {
|
|
|
31533
31502
|
};
|
|
31534
31503
|
|
|
31535
31504
|
// src/widgets/basic/image-field/image.tsx
|
|
31536
|
-
import { jsx as
|
|
31505
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
31537
31506
|
var ImageField = (props) => {
|
|
31538
31507
|
const { value, type, name: name2, baseURL } = props;
|
|
31539
31508
|
if (!value) return null;
|
|
31540
31509
|
if (type === "url") {
|
|
31541
|
-
return /* @__PURE__ */
|
|
31510
|
+
return /* @__PURE__ */ jsx95("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
|
|
31542
31511
|
}
|
|
31543
|
-
return /* @__PURE__ */
|
|
31512
|
+
return /* @__PURE__ */ jsx95("div", { id: "qr-code", children: /* @__PURE__ */ jsx95("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
|
|
31544
31513
|
};
|
|
31545
31514
|
|
|
31546
31515
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
31547
31516
|
import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
|
|
31548
31517
|
|
|
31549
31518
|
// src/widgets/basic/information-field/information.tsx
|
|
31550
|
-
import { Fragment as Fragment28, jsx as
|
|
31519
|
+
import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
31551
31520
|
var InfomationField = (props) => {
|
|
31552
31521
|
const { value, isForm = false, showName = true, stringToColor } = props;
|
|
31553
31522
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
31554
|
-
return /* @__PURE__ */
|
|
31523
|
+
return /* @__PURE__ */ jsx96(Fragment28, {});
|
|
31555
31524
|
}
|
|
31556
31525
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
31557
|
-
return /* @__PURE__ */
|
|
31526
|
+
return /* @__PURE__ */ jsx96("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx96(
|
|
31558
31527
|
AvatarField,
|
|
31559
31528
|
{
|
|
31560
31529
|
id: item.id,
|
|
@@ -31564,7 +31533,7 @@ var InfomationField = (props) => {
|
|
|
31564
31533
|
},
|
|
31565
31534
|
item.id
|
|
31566
31535
|
)) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
|
|
31567
|
-
/* @__PURE__ */
|
|
31536
|
+
/* @__PURE__ */ jsx96(
|
|
31568
31537
|
AvatarField,
|
|
31569
31538
|
{
|
|
31570
31539
|
avatarSrc: inforValues[0].image_256,
|
|
@@ -31574,12 +31543,12 @@ var InfomationField = (props) => {
|
|
|
31574
31543
|
stringToColor
|
|
31575
31544
|
}
|
|
31576
31545
|
),
|
|
31577
|
-
showName && /* @__PURE__ */
|
|
31546
|
+
showName && /* @__PURE__ */ jsx96("span", { className: "capitalize", children: inforValues[0].display_name })
|
|
31578
31547
|
] }) });
|
|
31579
31548
|
};
|
|
31580
31549
|
|
|
31581
31550
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
31582
|
-
import { jsx as
|
|
31551
|
+
import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
31583
31552
|
var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
31584
31553
|
const { selectProps, data, menuList } = props;
|
|
31585
31554
|
const { relation } = selectProps;
|
|
@@ -31589,7 +31558,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
31589
31558
|
)
|
|
31590
31559
|
)?.[0]?.action?.id;
|
|
31591
31560
|
return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
|
|
31592
|
-
/* @__PURE__ */
|
|
31561
|
+
/* @__PURE__ */ jsx97(
|
|
31593
31562
|
AvatarField,
|
|
31594
31563
|
{
|
|
31595
31564
|
id: data?.id,
|
|
@@ -31601,8 +31570,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
31601
31570
|
stringToColor
|
|
31602
31571
|
}
|
|
31603
31572
|
),
|
|
31604
|
-
/* @__PURE__ */
|
|
31605
|
-
/* @__PURE__ */
|
|
31573
|
+
/* @__PURE__ */ jsx97("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
|
|
31574
|
+
/* @__PURE__ */ jsx97(
|
|
31606
31575
|
"span",
|
|
31607
31576
|
{
|
|
31608
31577
|
className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
|
|
@@ -31610,7 +31579,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
31610
31579
|
e3.stopPropagation();
|
|
31611
31580
|
props.removeProps.onClick();
|
|
31612
31581
|
},
|
|
31613
|
-
children: /* @__PURE__ */
|
|
31582
|
+
children: /* @__PURE__ */ jsx97(CloseIcon, {})
|
|
31614
31583
|
}
|
|
31615
31584
|
)
|
|
31616
31585
|
] });
|
|
@@ -31667,7 +31636,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31667
31636
|
value: item.id,
|
|
31668
31637
|
label: item.name ?? item.display_name
|
|
31669
31638
|
})) : [];
|
|
31670
|
-
return /* @__PURE__ */
|
|
31639
|
+
return /* @__PURE__ */ jsx97(
|
|
31671
31640
|
InfomationField,
|
|
31672
31641
|
{
|
|
31673
31642
|
value: optionValue || null,
|
|
@@ -31676,7 +31645,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31676
31645
|
}
|
|
31677
31646
|
);
|
|
31678
31647
|
}
|
|
31679
|
-
return /* @__PURE__ */
|
|
31648
|
+
return /* @__PURE__ */ jsx97(
|
|
31680
31649
|
Controller,
|
|
31681
31650
|
{
|
|
31682
31651
|
name: name2 ?? "",
|
|
@@ -31713,7 +31682,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31713
31682
|
clearErrors(name2);
|
|
31714
31683
|
};
|
|
31715
31684
|
return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
|
|
31716
|
-
/* @__PURE__ */
|
|
31685
|
+
/* @__PURE__ */ jsx97(
|
|
31717
31686
|
StateManagedSelect$1,
|
|
31718
31687
|
{
|
|
31719
31688
|
options: options2,
|
|
@@ -31791,7 +31760,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31791
31760
|
})
|
|
31792
31761
|
},
|
|
31793
31762
|
components: isUser ? {
|
|
31794
|
-
MultiValue: (multiValueProps) => /* @__PURE__ */
|
|
31763
|
+
MultiValue: (multiValueProps) => /* @__PURE__ */ jsx97(
|
|
31795
31764
|
CustomMultiValue,
|
|
31796
31765
|
{
|
|
31797
31766
|
...multiValueProps,
|
|
@@ -31800,7 +31769,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31800
31769
|
),
|
|
31801
31770
|
IndicatorSeparator: () => null
|
|
31802
31771
|
} : {
|
|
31803
|
-
MenuList: (menuListProps) => /* @__PURE__ */
|
|
31772
|
+
MenuList: (menuListProps) => /* @__PURE__ */ jsx97(
|
|
31804
31773
|
CustomMenuList,
|
|
31805
31774
|
{
|
|
31806
31775
|
...menuListProps,
|
|
@@ -31811,13 +31780,13 @@ var Many2ManyTagField = (props) => {
|
|
|
31811
31780
|
}
|
|
31812
31781
|
),
|
|
31813
31782
|
IndicatorSeparator: () => null,
|
|
31814
|
-
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */
|
|
31815
|
-
ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */
|
|
31783
|
+
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.DropdownIndicator, { ...props2 }),
|
|
31784
|
+
ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.ClearIndicator, { ...props2 })
|
|
31816
31785
|
},
|
|
31817
31786
|
required: !invisible && required
|
|
31818
31787
|
}
|
|
31819
31788
|
),
|
|
31820
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
31789
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
31821
31790
|
] });
|
|
31822
31791
|
}
|
|
31823
31792
|
}
|
|
@@ -31826,7 +31795,7 @@ var Many2ManyTagField = (props) => {
|
|
|
31826
31795
|
|
|
31827
31796
|
// src/widgets/basic/monetary-field/monetary.tsx
|
|
31828
31797
|
import { useEffect as useEffect23 } from "react";
|
|
31829
|
-
import { Fragment as Fragment29, jsx as
|
|
31798
|
+
import { Fragment as Fragment29, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
31830
31799
|
var MonetaryField = (props) => {
|
|
31831
31800
|
const { t: t3 } = useI18n();
|
|
31832
31801
|
const {
|
|
@@ -31851,21 +31820,21 @@ var MonetaryField = (props) => {
|
|
|
31851
31820
|
string,
|
|
31852
31821
|
":"
|
|
31853
31822
|
] }),
|
|
31854
|
-
/* @__PURE__ */
|
|
31823
|
+
/* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
|
|
31855
31824
|
] });
|
|
31856
31825
|
}
|
|
31857
31826
|
if (!isForm) {
|
|
31858
31827
|
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
|
|
31859
31828
|
if (widget === "monetary" && !formValues?.currency_id) {
|
|
31860
|
-
return /* @__PURE__ */
|
|
31829
|
+
return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
|
|
31861
31830
|
parseFloat(String(value ?? defaultValue))
|
|
31862
31831
|
)} VND` });
|
|
31863
31832
|
}
|
|
31864
|
-
return /* @__PURE__ */
|
|
31833
|
+
return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
|
|
31865
31834
|
parseFloat(value ?? defaultValue)
|
|
31866
31835
|
)} ${currencySymbol}` });
|
|
31867
31836
|
}
|
|
31868
|
-
return /* @__PURE__ */
|
|
31837
|
+
return /* @__PURE__ */ jsx98(
|
|
31869
31838
|
Controller,
|
|
31870
31839
|
{
|
|
31871
31840
|
name: name2 ?? "",
|
|
@@ -31885,7 +31854,7 @@ var MonetaryField = (props) => {
|
|
|
31885
31854
|
}
|
|
31886
31855
|
}, [value2]);
|
|
31887
31856
|
return /* @__PURE__ */ jsxs65(Fragment29, { children: [
|
|
31888
|
-
/* @__PURE__ */
|
|
31857
|
+
/* @__PURE__ */ jsx98(
|
|
31889
31858
|
"input",
|
|
31890
31859
|
{
|
|
31891
31860
|
value: formatNumberOnly(value2),
|
|
@@ -31923,7 +31892,7 @@ var MonetaryField = (props) => {
|
|
|
31923
31892
|
`
|
|
31924
31893
|
}
|
|
31925
31894
|
),
|
|
31926
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
31895
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx98("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
31927
31896
|
] });
|
|
31928
31897
|
}
|
|
31929
31898
|
}
|
|
@@ -31931,14 +31900,14 @@ var MonetaryField = (props) => {
|
|
|
31931
31900
|
};
|
|
31932
31901
|
|
|
31933
31902
|
// src/widgets/basic/paid-badged-field/paid-badged.tsx
|
|
31934
|
-
import { jsx as
|
|
31903
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
31935
31904
|
var PaidBadgedField = () => {
|
|
31936
|
-
return /* @__PURE__ */
|
|
31905
|
+
return /* @__PURE__ */ jsx99("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx99(PaidIcon, {}) });
|
|
31937
31906
|
};
|
|
31938
31907
|
|
|
31939
31908
|
// src/widgets/basic/priority-field/rating-star.tsx
|
|
31940
31909
|
import React17, { useEffect as useEffect24, useState as useState21 } from "react";
|
|
31941
|
-
import { jsx as
|
|
31910
|
+
import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
31942
31911
|
var RatingStarField = (props) => {
|
|
31943
31912
|
const {
|
|
31944
31913
|
label,
|
|
@@ -31973,7 +31942,7 @@ var RatingStarField = (props) => {
|
|
|
31973
31942
|
setHover(0);
|
|
31974
31943
|
setRating(0);
|
|
31975
31944
|
};
|
|
31976
|
-
return /* @__PURE__ */
|
|
31945
|
+
return /* @__PURE__ */ jsx100(
|
|
31977
31946
|
"div",
|
|
31978
31947
|
{
|
|
31979
31948
|
className: "flex gap-1 cursor-pointer w-fit",
|
|
@@ -31984,16 +31953,16 @@ var RatingStarField = (props) => {
|
|
|
31984
31953
|
const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
|
|
31985
31954
|
const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
|
|
31986
31955
|
return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
|
|
31987
|
-
/* @__PURE__ */
|
|
31956
|
+
/* @__PURE__ */ jsx100(
|
|
31988
31957
|
"div",
|
|
31989
31958
|
{
|
|
31990
31959
|
onMouseEnter: () => handleHover(starValue),
|
|
31991
31960
|
onClick: () => handleClick(starValue),
|
|
31992
31961
|
"data-tooltip-id": `${id}-${starValue}`,
|
|
31993
|
-
children: /* @__PURE__ */
|
|
31962
|
+
children: /* @__PURE__ */ jsx100(StarIcon, { fill: fillColor, stroke: strokeColor })
|
|
31994
31963
|
}
|
|
31995
31964
|
),
|
|
31996
|
-
/* @__PURE__ */
|
|
31965
|
+
/* @__PURE__ */ jsx100(
|
|
31997
31966
|
M,
|
|
31998
31967
|
{
|
|
31999
31968
|
className: "z-50",
|
|
@@ -32009,7 +31978,7 @@ var RatingStarField = (props) => {
|
|
|
32009
31978
|
};
|
|
32010
31979
|
|
|
32011
31980
|
// src/widgets/basic/priority-field/priority.tsx
|
|
32012
|
-
import { jsx as
|
|
31981
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
32013
31982
|
var PriorityField = (props) => {
|
|
32014
31983
|
const {
|
|
32015
31984
|
isForm,
|
|
@@ -32025,7 +31994,7 @@ var PriorityField = (props) => {
|
|
|
32025
31994
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
32026
31995
|
const defaultPriority = parseInt(value) + 1;
|
|
32027
31996
|
if (!isForm) {
|
|
32028
|
-
return /* @__PURE__ */
|
|
31997
|
+
return /* @__PURE__ */ jsx101(
|
|
32029
31998
|
RatingStarField,
|
|
32030
31999
|
{
|
|
32031
32000
|
label,
|
|
@@ -32036,7 +32005,7 @@ var PriorityField = (props) => {
|
|
|
32036
32005
|
}
|
|
32037
32006
|
);
|
|
32038
32007
|
}
|
|
32039
|
-
return /* @__PURE__ */
|
|
32008
|
+
return /* @__PURE__ */ jsx101(
|
|
32040
32009
|
Controller,
|
|
32041
32010
|
{
|
|
32042
32011
|
name: name ?? "",
|
|
@@ -32046,7 +32015,7 @@ var PriorityField = (props) => {
|
|
|
32046
32015
|
field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
32047
32016
|
onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
32048
32017
|
};
|
|
32049
|
-
return /* @__PURE__ */
|
|
32018
|
+
return /* @__PURE__ */ jsx101(
|
|
32050
32019
|
RatingStarField,
|
|
32051
32020
|
{
|
|
32052
32021
|
label,
|
|
@@ -32063,7 +32032,7 @@ var PriorityField = (props) => {
|
|
|
32063
32032
|
|
|
32064
32033
|
// src/widgets/basic/radio-group-field/radio-group.tsx
|
|
32065
32034
|
import { useEffect as useEffect25 } from "react";
|
|
32066
|
-
import { jsx as
|
|
32035
|
+
import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
32067
32036
|
var RadioGroupField = (props) => {
|
|
32068
32037
|
const {
|
|
32069
32038
|
name: name2,
|
|
@@ -32082,13 +32051,13 @@ var RadioGroupField = (props) => {
|
|
|
32082
32051
|
}
|
|
32083
32052
|
}, [selection, name2, setValue]);
|
|
32084
32053
|
if (!methods) return null;
|
|
32085
|
-
return /* @__PURE__ */
|
|
32054
|
+
return /* @__PURE__ */ jsx102(
|
|
32086
32055
|
Controller,
|
|
32087
32056
|
{
|
|
32088
32057
|
name: name2 ?? "",
|
|
32089
32058
|
control: methods.control,
|
|
32090
|
-
render: ({ field }) => /* @__PURE__ */
|
|
32091
|
-
/* @__PURE__ */
|
|
32059
|
+
render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
|
|
32060
|
+
/* @__PURE__ */ jsx102(
|
|
32092
32061
|
"input",
|
|
32093
32062
|
{
|
|
32094
32063
|
type: "radio",
|
|
@@ -32107,7 +32076,7 @@ var RadioGroupField = (props) => {
|
|
|
32107
32076
|
className: "custom-radio"
|
|
32108
32077
|
}
|
|
32109
32078
|
),
|
|
32110
|
-
/* @__PURE__ */
|
|
32079
|
+
/* @__PURE__ */ jsx102("label", { htmlFor: String(select[0]), children: select[1] })
|
|
32111
32080
|
] }, select[0])) })
|
|
32112
32081
|
}
|
|
32113
32082
|
);
|
|
@@ -32115,7 +32084,7 @@ var RadioGroupField = (props) => {
|
|
|
32115
32084
|
|
|
32116
32085
|
// src/widgets/basic/remaining-days-field/remaining-days.tsx
|
|
32117
32086
|
var import_moment3 = __toESM(require_moment());
|
|
32118
|
-
import { jsx as
|
|
32087
|
+
import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
32119
32088
|
var RemainingDaysField = (props) => {
|
|
32120
32089
|
const {
|
|
32121
32090
|
value,
|
|
@@ -32127,13 +32096,13 @@ var RemainingDaysField = (props) => {
|
|
|
32127
32096
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32128
32097
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
32129
32098
|
return /* @__PURE__ */ jsxs68("div", { className: isForm ? "mb-4" : "", children: [
|
|
32130
|
-
/* @__PURE__ */
|
|
32131
|
-
/* @__PURE__ */
|
|
32099
|
+
/* @__PURE__ */ jsx103(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
32100
|
+
/* @__PURE__ */ jsx103(
|
|
32132
32101
|
"div",
|
|
32133
32102
|
{
|
|
32134
32103
|
"data-tooltip-id": `remainingDays_${value}`,
|
|
32135
32104
|
className: "flex items-center w-fit cursor-context-menu",
|
|
32136
|
-
children: /* @__PURE__ */
|
|
32105
|
+
children: /* @__PURE__ */ jsx103(
|
|
32137
32106
|
"div",
|
|
32138
32107
|
{
|
|
32139
32108
|
className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
|
|
@@ -32146,7 +32115,7 @@ var RemainingDaysField = (props) => {
|
|
|
32146
32115
|
};
|
|
32147
32116
|
|
|
32148
32117
|
// src/widgets/basic/select-dropdown-field/select-dropdown.tsx
|
|
32149
|
-
import { Fragment as Fragment30, jsx as
|
|
32118
|
+
import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
32150
32119
|
var SelectDropdownField = (props) => {
|
|
32151
32120
|
const { t: t3 } = useI18n();
|
|
32152
32121
|
const {
|
|
@@ -32168,9 +32137,9 @@ var SelectDropdownField = (props) => {
|
|
|
32168
32137
|
label: val[1]
|
|
32169
32138
|
})) : [];
|
|
32170
32139
|
if (!isForm && !isEditTable) {
|
|
32171
|
-
return /* @__PURE__ */
|
|
32140
|
+
return /* @__PURE__ */ jsx104("span", { children: options2?.find((item) => item?.value === value)?.label });
|
|
32172
32141
|
} else {
|
|
32173
|
-
return /* @__PURE__ */
|
|
32142
|
+
return /* @__PURE__ */ jsx104(
|
|
32174
32143
|
Controller,
|
|
32175
32144
|
{
|
|
32176
32145
|
name: name2 || "",
|
|
@@ -32198,7 +32167,7 @@ var SelectDropdownField = (props) => {
|
|
|
32198
32167
|
required: !invisible && required
|
|
32199
32168
|
};
|
|
32200
32169
|
return /* @__PURE__ */ jsxs69(Fragment30, { children: [
|
|
32201
|
-
/* @__PURE__ */
|
|
32170
|
+
/* @__PURE__ */ jsx104("div", { className: "group", children: /* @__PURE__ */ jsx104(
|
|
32202
32171
|
StateManagedSelect$1,
|
|
32203
32172
|
{
|
|
32204
32173
|
...commonProps,
|
|
@@ -32253,12 +32222,12 @@ var SelectDropdownField = (props) => {
|
|
|
32253
32222
|
menuPortalTarget: typeof window !== "undefined" ? document.body : null,
|
|
32254
32223
|
components: {
|
|
32255
32224
|
IndicatorSeparator: () => null,
|
|
32256
|
-
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */
|
|
32225
|
+
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx104(components.DropdownIndicator, { ...props2 })
|
|
32257
32226
|
},
|
|
32258
32227
|
noOptionsMessage: () => t3("no-available")
|
|
32259
32228
|
}
|
|
32260
32229
|
) }),
|
|
32261
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
32230
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32262
32231
|
] });
|
|
32263
32232
|
}
|
|
32264
32233
|
}
|
|
@@ -32267,7 +32236,7 @@ var SelectDropdownField = (props) => {
|
|
|
32267
32236
|
};
|
|
32268
32237
|
|
|
32269
32238
|
// src/widgets/basic/textarea-field/textarea.tsx
|
|
32270
|
-
import { jsx as
|
|
32239
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
32271
32240
|
var TextAreaField = (props) => {
|
|
32272
32241
|
const {
|
|
32273
32242
|
methods,
|
|
@@ -32291,9 +32260,9 @@ var TextAreaField = (props) => {
|
|
|
32291
32260
|
}
|
|
32292
32261
|
}) : {};
|
|
32293
32262
|
if (!isForm) {
|
|
32294
|
-
return /* @__PURE__ */
|
|
32263
|
+
return /* @__PURE__ */ jsx105("span", { children: value && typeof value === "object" ? value.display_name : value });
|
|
32295
32264
|
}
|
|
32296
|
-
return /* @__PURE__ */
|
|
32265
|
+
return /* @__PURE__ */ jsx105(
|
|
32297
32266
|
"textarea",
|
|
32298
32267
|
{
|
|
32299
32268
|
...formProps,
|
|
@@ -32309,7 +32278,7 @@ var TextAreaField = (props) => {
|
|
|
32309
32278
|
};
|
|
32310
32279
|
|
|
32311
32280
|
// src/widgets/basic/toggle-button-field/toggle-button.tsx
|
|
32312
|
-
import { jsx as
|
|
32281
|
+
import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
32313
32282
|
var ToggleButtonField = (props) => {
|
|
32314
32283
|
const {
|
|
32315
32284
|
name: name2,
|
|
@@ -32319,13 +32288,13 @@ var ToggleButtonField = (props) => {
|
|
|
32319
32288
|
onChange: onChange2,
|
|
32320
32289
|
methods
|
|
32321
32290
|
} = props;
|
|
32322
|
-
return /* @__PURE__ */
|
|
32291
|
+
return /* @__PURE__ */ jsx106(
|
|
32323
32292
|
Controller,
|
|
32324
32293
|
{
|
|
32325
32294
|
name: name2 ?? "",
|
|
32326
32295
|
control: methods?.control,
|
|
32327
|
-
render: ({ field }) => /* @__PURE__ */
|
|
32328
|
-
/* @__PURE__ */
|
|
32296
|
+
render: ({ field }) => /* @__PURE__ */ jsx106("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
|
|
32297
|
+
/* @__PURE__ */ jsx106(
|
|
32329
32298
|
"input",
|
|
32330
32299
|
{
|
|
32331
32300
|
...field,
|
|
@@ -32344,7 +32313,7 @@ var ToggleButtonField = (props) => {
|
|
|
32344
32313
|
checked: field.value ?? false
|
|
32345
32314
|
}
|
|
32346
32315
|
),
|
|
32347
|
-
/* @__PURE__ */
|
|
32316
|
+
/* @__PURE__ */ jsx106(
|
|
32348
32317
|
"span",
|
|
32349
32318
|
{
|
|
32350
32319
|
style: {
|
|
@@ -32354,7 +32323,7 @@ var ToggleButtonField = (props) => {
|
|
|
32354
32323
|
},
|
|
32355
32324
|
className: `rounded-full transition duration-300
|
|
32356
32325
|
`,
|
|
32357
|
-
children: /* @__PURE__ */
|
|
32326
|
+
children: /* @__PURE__ */ jsx106(
|
|
32358
32327
|
"span",
|
|
32359
32328
|
{
|
|
32360
32329
|
style: {
|
|
@@ -32379,7 +32348,7 @@ var ToggleButtonField = (props) => {
|
|
|
32379
32348
|
|
|
32380
32349
|
// src/widgets/basic/integer-field/integer.tsx
|
|
32381
32350
|
import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
|
|
32382
|
-
import { Fragment as Fragment31, jsx as
|
|
32351
|
+
import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
32383
32352
|
var IntegerField = (props) => {
|
|
32384
32353
|
const {
|
|
32385
32354
|
name: name2,
|
|
@@ -32398,9 +32367,9 @@ var IntegerField = (props) => {
|
|
|
32398
32367
|
const { t: t3 } = useI18n();
|
|
32399
32368
|
if (!isForm && !isEditTable) {
|
|
32400
32369
|
const displayValue = value ?? defaultValue;
|
|
32401
|
-
return /* @__PURE__ */
|
|
32370
|
+
return /* @__PURE__ */ jsx107("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
|
|
32402
32371
|
}
|
|
32403
|
-
return /* @__PURE__ */
|
|
32372
|
+
return /* @__PURE__ */ jsx107(
|
|
32404
32373
|
Controller,
|
|
32405
32374
|
{
|
|
32406
32375
|
name: name2 || "",
|
|
@@ -32479,7 +32448,7 @@ var IntegerField = (props) => {
|
|
|
32479
32448
|
clearErrors(name2);
|
|
32480
32449
|
};
|
|
32481
32450
|
return /* @__PURE__ */ jsxs71(Fragment31, { children: [
|
|
32482
|
-
/* @__PURE__ */
|
|
32451
|
+
/* @__PURE__ */ jsx107(
|
|
32483
32452
|
"input",
|
|
32484
32453
|
{
|
|
32485
32454
|
ref: inputRef,
|
|
@@ -32514,7 +32483,7 @@ var IntegerField = (props) => {
|
|
|
32514
32483
|
`
|
|
32515
32484
|
}
|
|
32516
32485
|
),
|
|
32517
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
32486
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32518
32487
|
] });
|
|
32519
32488
|
}
|
|
32520
32489
|
}
|
|
@@ -32522,7 +32491,7 @@ var IntegerField = (props) => {
|
|
|
32522
32491
|
};
|
|
32523
32492
|
|
|
32524
32493
|
// src/widgets/basic/status-dropdown-field/status-dropdown.tsx
|
|
32525
|
-
import { jsx as
|
|
32494
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
32526
32495
|
var StatusDropdownField = (props) => {
|
|
32527
32496
|
const {
|
|
32528
32497
|
buttonRef,
|
|
@@ -32540,7 +32509,7 @@ var StatusDropdownField = (props) => {
|
|
|
32540
32509
|
ref: buttonRef,
|
|
32541
32510
|
className: isForm ? "absolute top-7 right-6 z-10" : void 0,
|
|
32542
32511
|
children: [
|
|
32543
|
-
/* @__PURE__ */
|
|
32512
|
+
/* @__PURE__ */ jsx108(
|
|
32544
32513
|
"button",
|
|
32545
32514
|
{
|
|
32546
32515
|
type: "button",
|
|
@@ -32548,7 +32517,7 @@ var StatusDropdownField = (props) => {
|
|
|
32548
32517
|
className: `transition-all rounded-full size-5 cursor-pointer shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] focus:!shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-[#dbe0e6] ${state == "normal" ? "bg-[#e9ecef]" : state == "done" ? "bg-primary" : "bg-red-500"}`
|
|
32549
32518
|
}
|
|
32550
32519
|
),
|
|
32551
|
-
isOpen && /* @__PURE__ */
|
|
32520
|
+
isOpen && /* @__PURE__ */ jsx108("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
|
|
32552
32521
|
const isActive = item[0] == state;
|
|
32553
32522
|
return /* @__PURE__ */ jsxs72(
|
|
32554
32523
|
"div",
|
|
@@ -32556,15 +32525,15 @@ var StatusDropdownField = (props) => {
|
|
|
32556
32525
|
className: `cursor-pointer relative hover:bg-gray-200 pl-[12px] pr-[20px] py-[5px] flex items-center justify-start gap-2 ${isActive ? "bg-gray-100" : ""}`,
|
|
32557
32526
|
onClick: () => handleClick(item[0]),
|
|
32558
32527
|
children: [
|
|
32559
|
-
/* @__PURE__ */
|
|
32528
|
+
/* @__PURE__ */ jsx108("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx108(CheckIcon, {}) }),
|
|
32560
32529
|
/* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2", children: [
|
|
32561
|
-
/* @__PURE__ */
|
|
32530
|
+
/* @__PURE__ */ jsx108(
|
|
32562
32531
|
"div",
|
|
32563
32532
|
{
|
|
32564
32533
|
className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
|
|
32565
32534
|
}
|
|
32566
32535
|
),
|
|
32567
|
-
/* @__PURE__ */
|
|
32536
|
+
/* @__PURE__ */ jsx108("span", { className: "text-sm", children: item[1] })
|
|
32568
32537
|
] })
|
|
32569
32538
|
]
|
|
32570
32539
|
},
|
|
@@ -32579,7 +32548,7 @@ var StatusDropdownField = (props) => {
|
|
|
32579
32548
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
32580
32549
|
import { createPortal as createPortal6 } from "react-dom";
|
|
32581
32550
|
import { useEffect as useEffect27 } from "react";
|
|
32582
|
-
import { jsx as
|
|
32551
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
32583
32552
|
var Many2ManyField = (props) => {
|
|
32584
32553
|
const { t: t3 } = useI18n();
|
|
32585
32554
|
const {
|
|
@@ -32661,8 +32630,8 @@ var Many2ManyField = (props) => {
|
|
|
32661
32630
|
},
|
|
32662
32631
|
className: "fixed bottom-0 left-0 right-0 top-0",
|
|
32663
32632
|
children: [
|
|
32664
|
-
/* @__PURE__ */
|
|
32665
|
-
/* @__PURE__ */
|
|
32633
|
+
/* @__PURE__ */ jsx109("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
32634
|
+
/* @__PURE__ */ jsx109("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
|
|
32666
32635
|
"div",
|
|
32667
32636
|
{
|
|
32668
32637
|
style: {
|
|
@@ -32671,11 +32640,11 @@ var Many2ManyField = (props) => {
|
|
|
32671
32640
|
className: "relative p-4 flex flex-col gap-2 max-w-full lg:max-w-[1000px] lg:min-w-[1000px] transform rounded-3xl bg-[#FFF] min-h-[90%] max-h-[90%] h-fit",
|
|
32672
32641
|
children: [
|
|
32673
32642
|
/* @__PURE__ */ jsxs73("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
32674
|
-
/* @__PURE__ */
|
|
32675
|
-
/* @__PURE__ */
|
|
32643
|
+
/* @__PURE__ */ jsx109("div", { className: "text-[20px] font-semibold", children: title }),
|
|
32644
|
+
/* @__PURE__ */ jsx109("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx109(CloseIcon, {}) })
|
|
32676
32645
|
] }),
|
|
32677
32646
|
/* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
|
|
32678
|
-
/* @__PURE__ */
|
|
32647
|
+
/* @__PURE__ */ jsx109("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx109(
|
|
32679
32648
|
Search,
|
|
32680
32649
|
{
|
|
32681
32650
|
removeSearchItems,
|
|
@@ -32709,7 +32678,7 @@ var Many2ManyField = (props) => {
|
|
|
32709
32678
|
groupByList
|
|
32710
32679
|
}
|
|
32711
32680
|
) }),
|
|
32712
|
-
/* @__PURE__ */
|
|
32681
|
+
/* @__PURE__ */ jsx109(
|
|
32713
32682
|
PaginationView,
|
|
32714
32683
|
{
|
|
32715
32684
|
className: "pagination-bar col-span-1 justify-end flex-1",
|
|
@@ -32726,20 +32695,20 @@ var Many2ManyField = (props) => {
|
|
|
32726
32695
|
}
|
|
32727
32696
|
)
|
|
32728
32697
|
] }),
|
|
32729
|
-
!isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */
|
|
32698
|
+
!isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx109("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx109("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx109(
|
|
32730
32699
|
"div",
|
|
32731
32700
|
{
|
|
32732
32701
|
className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
|
|
32733
|
-
children: /* @__PURE__ */
|
|
32702
|
+
children: /* @__PURE__ */ jsx109("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx109("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx109(
|
|
32734
32703
|
"div",
|
|
32735
32704
|
{
|
|
32736
32705
|
className: `flex w-full items-center h-full overflow-auto `,
|
|
32737
|
-
children: /* @__PURE__ */
|
|
32706
|
+
children: /* @__PURE__ */ jsx109("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
|
|
32738
32707
|
"table",
|
|
32739
32708
|
{
|
|
32740
32709
|
className: `relative w-full bg-white custom-dropdown `,
|
|
32741
32710
|
children: [
|
|
32742
|
-
/* @__PURE__ */
|
|
32711
|
+
/* @__PURE__ */ jsx109(
|
|
32743
32712
|
TableHead,
|
|
32744
32713
|
{
|
|
32745
32714
|
columns,
|
|
@@ -32749,7 +32718,7 @@ var Many2ManyField = (props) => {
|
|
|
32749
32718
|
handleCheckBoxAll
|
|
32750
32719
|
}
|
|
32751
32720
|
),
|
|
32752
|
-
rows?.length > 0 ? /* @__PURE__ */
|
|
32721
|
+
rows?.length > 0 ? /* @__PURE__ */ jsx109(
|
|
32753
32722
|
TableBody,
|
|
32754
32723
|
{
|
|
32755
32724
|
tableGroupController,
|
|
@@ -32789,16 +32758,16 @@ var Many2ManyField = (props) => {
|
|
|
32789
32758
|
checkedAll,
|
|
32790
32759
|
context
|
|
32791
32760
|
}
|
|
32792
|
-
) : /* @__PURE__ */
|
|
32761
|
+
) : /* @__PURE__ */ jsx109("tr", { children: /* @__PURE__ */ jsx109(
|
|
32793
32762
|
"td",
|
|
32794
32763
|
{
|
|
32795
32764
|
className: "w-full",
|
|
32796
32765
|
colSpan: columns?.length + 2,
|
|
32797
|
-
children: /* @__PURE__ */
|
|
32766
|
+
children: /* @__PURE__ */ jsx109(
|
|
32798
32767
|
"div",
|
|
32799
32768
|
{
|
|
32800
32769
|
className: `flex flex-col items-center justify-center gap-3 py-6`,
|
|
32801
|
-
children: /* @__PURE__ */
|
|
32770
|
+
children: /* @__PURE__ */ jsx109(EmptyTable, {})
|
|
32802
32771
|
}
|
|
32803
32772
|
)
|
|
32804
32773
|
}
|
|
@@ -32809,9 +32778,9 @@ var Many2ManyField = (props) => {
|
|
|
32809
32778
|
}
|
|
32810
32779
|
) }) })
|
|
32811
32780
|
}
|
|
32812
|
-
) }) }) : /* @__PURE__ */
|
|
32781
|
+
) }) }) : /* @__PURE__ */ jsx109(LayerLoading, {}),
|
|
32813
32782
|
/* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
|
|
32814
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
32783
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx109(
|
|
32815
32784
|
"button",
|
|
32816
32785
|
{
|
|
32817
32786
|
disabled: selectedRowKeys?.length === 0,
|
|
@@ -32821,7 +32790,7 @@ var Many2ManyField = (props) => {
|
|
|
32821
32790
|
children: t3("choose")
|
|
32822
32791
|
}
|
|
32823
32792
|
),
|
|
32824
|
-
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */
|
|
32793
|
+
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx109(
|
|
32825
32794
|
"button",
|
|
32826
32795
|
{
|
|
32827
32796
|
type: "button",
|
|
@@ -32837,7 +32806,7 @@ var Many2ManyField = (props) => {
|
|
|
32837
32806
|
children: t3("new")
|
|
32838
32807
|
}
|
|
32839
32808
|
),
|
|
32840
|
-
/* @__PURE__ */
|
|
32809
|
+
/* @__PURE__ */ jsx109(
|
|
32841
32810
|
"button",
|
|
32842
32811
|
{
|
|
32843
32812
|
type: "button",
|
|
@@ -32859,7 +32828,7 @@ var Many2ManyField = (props) => {
|
|
|
32859
32828
|
|
|
32860
32829
|
// src/widgets/basic/many2one-field/many2one.tsx
|
|
32861
32830
|
import React18, { useEffect as useEffect28 } from "react";
|
|
32862
|
-
import { Fragment as Fragment32, jsx as
|
|
32831
|
+
import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
32863
32832
|
var CustomMenuList2 = (props) => {
|
|
32864
32833
|
const { t: t3 } = useI18n();
|
|
32865
32834
|
const { options: options2, children, selectProps } = props;
|
|
@@ -32917,7 +32886,7 @@ var Many2OneField = (props) => {
|
|
|
32917
32886
|
context: contextObject,
|
|
32918
32887
|
idForm: id
|
|
32919
32888
|
}),
|
|
32920
|
-
/* @__PURE__ */
|
|
32889
|
+
/* @__PURE__ */ jsx110(
|
|
32921
32890
|
"span",
|
|
32922
32891
|
{
|
|
32923
32892
|
className: "cursor-pointer",
|
|
@@ -32935,13 +32904,13 @@ var Many2OneField = (props) => {
|
|
|
32935
32904
|
context: contextObject,
|
|
32936
32905
|
idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
|
|
32937
32906
|
}),
|
|
32938
|
-
/* @__PURE__ */
|
|
32907
|
+
/* @__PURE__ */ jsx110(
|
|
32939
32908
|
"div",
|
|
32940
32909
|
{
|
|
32941
32910
|
id: name2,
|
|
32942
32911
|
"data-tooltip-id": name2,
|
|
32943
32912
|
className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
|
|
32944
|
-
children: /* @__PURE__ */
|
|
32913
|
+
children: /* @__PURE__ */ jsx110(
|
|
32945
32914
|
Controller,
|
|
32946
32915
|
{
|
|
32947
32916
|
name: name2 ?? "",
|
|
@@ -32967,7 +32936,7 @@ var Many2OneField = (props) => {
|
|
|
32967
32936
|
}
|
|
32968
32937
|
}, [selectedOption]);
|
|
32969
32938
|
return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
|
|
32970
|
-
/* @__PURE__ */
|
|
32939
|
+
/* @__PURE__ */ jsx110(
|
|
32971
32940
|
StateManagedSelect$1,
|
|
32972
32941
|
{
|
|
32973
32942
|
menuShouldScrollIntoView: false,
|
|
@@ -33043,7 +33012,7 @@ var Many2OneField = (props) => {
|
|
|
33043
33012
|
})
|
|
33044
33013
|
},
|
|
33045
33014
|
components: {
|
|
33046
|
-
MenuList: (menuListProps) => /* @__PURE__ */
|
|
33015
|
+
MenuList: (menuListProps) => /* @__PURE__ */ jsx110(
|
|
33047
33016
|
CustomMenuList2,
|
|
33048
33017
|
{
|
|
33049
33018
|
...menuListProps,
|
|
@@ -33054,13 +33023,13 @@ var Many2OneField = (props) => {
|
|
|
33054
33023
|
}
|
|
33055
33024
|
),
|
|
33056
33025
|
IndicatorSeparator: () => null,
|
|
33057
|
-
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */
|
|
33026
|
+
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx110(components.DropdownIndicator, { ...props2 })
|
|
33058
33027
|
},
|
|
33059
33028
|
isDisabled: readonly,
|
|
33060
33029
|
noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
|
|
33061
33030
|
}
|
|
33062
33031
|
),
|
|
33063
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
33032
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx110("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33064
33033
|
] });
|
|
33065
33034
|
}
|
|
33066
33035
|
}
|
|
@@ -33071,7 +33040,7 @@ var Many2OneField = (props) => {
|
|
|
33071
33040
|
};
|
|
33072
33041
|
|
|
33073
33042
|
// src/widgets/basic/status-bar-field/duration/duration.tsx
|
|
33074
|
-
import { jsx as
|
|
33043
|
+
import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
33075
33044
|
var StatusbarDurationField = (props) => {
|
|
33076
33045
|
const {
|
|
33077
33046
|
disabled,
|
|
@@ -33081,12 +33050,12 @@ var StatusbarDurationField = (props) => {
|
|
|
33081
33050
|
defaultValue,
|
|
33082
33051
|
setModalStatus
|
|
33083
33052
|
} = props;
|
|
33084
|
-
return /* @__PURE__ */
|
|
33053
|
+
return /* @__PURE__ */ jsx111(
|
|
33085
33054
|
"div",
|
|
33086
33055
|
{
|
|
33087
33056
|
className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
|
|
33088
33057
|
children: /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-[24px]", children: [
|
|
33089
|
-
/* @__PURE__ */
|
|
33058
|
+
/* @__PURE__ */ jsx111("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
|
|
33090
33059
|
const value = option?.id === defaultValue;
|
|
33091
33060
|
return /* @__PURE__ */ jsxs75(
|
|
33092
33061
|
"label",
|
|
@@ -33098,7 +33067,7 @@ var StatusbarDurationField = (props) => {
|
|
|
33098
33067
|
${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
|
|
33099
33068
|
`,
|
|
33100
33069
|
children: [
|
|
33101
|
-
/* @__PURE__ */
|
|
33070
|
+
/* @__PURE__ */ jsx111(
|
|
33102
33071
|
"input",
|
|
33103
33072
|
{
|
|
33104
33073
|
type: "radio",
|
|
@@ -33108,7 +33077,7 @@ var StatusbarDurationField = (props) => {
|
|
|
33108
33077
|
}
|
|
33109
33078
|
),
|
|
33110
33079
|
option?.name,
|
|
33111
|
-
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */
|
|
33080
|
+
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx111(
|
|
33112
33081
|
"div",
|
|
33113
33082
|
{
|
|
33114
33083
|
className: `absolute top-[5px] bg-[#dee2e6] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45 group-hover:bg-[#ced4da]
|
|
@@ -33129,8 +33098,8 @@ var StatusbarDurationField = (props) => {
|
|
|
33129
33098
|
onClick: () => setModalStatus(!modelStatus),
|
|
33130
33099
|
className: "w-[24px] h-[24px] cursor-pointer relative",
|
|
33131
33100
|
children: [
|
|
33132
|
-
/* @__PURE__ */
|
|
33133
|
-
modelStatus && /* @__PURE__ */
|
|
33101
|
+
/* @__PURE__ */ jsx111(MoreIcon, {}),
|
|
33102
|
+
modelStatus && /* @__PURE__ */ jsx111(
|
|
33134
33103
|
"div",
|
|
33135
33104
|
{
|
|
33136
33105
|
onClick: (e3) => e3.stopPropagation(),
|
|
@@ -33139,7 +33108,7 @@ var StatusbarDurationField = (props) => {
|
|
|
33139
33108
|
(item) => item?.fold && item.id !== defaultValue
|
|
33140
33109
|
)?.map((option) => {
|
|
33141
33110
|
const value = option?.id === defaultValue;
|
|
33142
|
-
return /* @__PURE__ */
|
|
33111
|
+
return /* @__PURE__ */ jsx111(
|
|
33143
33112
|
"div",
|
|
33144
33113
|
{
|
|
33145
33114
|
className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
|
|
@@ -33161,14 +33130,14 @@ var StatusbarDurationField = (props) => {
|
|
|
33161
33130
|
|
|
33162
33131
|
// src/widgets/basic/status-bar-field/option/option.tsx
|
|
33163
33132
|
import { useMemo as useMemo11 } from "react";
|
|
33164
|
-
import { Fragment as Fragment33, jsx as
|
|
33133
|
+
import { Fragment as Fragment33, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
33165
33134
|
var StatusBarOptionField = (props) => {
|
|
33166
33135
|
const { selection, defaultValue } = props;
|
|
33167
33136
|
const memoizedStatusOptions = useMemo11(() => selection, [selection]);
|
|
33168
33137
|
const indexInProgress = memoizedStatusOptions?.findIndex(
|
|
33169
33138
|
(option) => option?.[0] === defaultValue
|
|
33170
33139
|
);
|
|
33171
|
-
return /* @__PURE__ */
|
|
33140
|
+
return /* @__PURE__ */ jsx112(
|
|
33172
33141
|
"div",
|
|
33173
33142
|
{
|
|
33174
33143
|
style: {
|
|
@@ -33196,7 +33165,7 @@ var StatusBarOptionField = (props) => {
|
|
|
33196
33165
|
boxShadow: index4 === indexInProgress ? "0 1px 2px 0 rgba(51, 51, 51, 0.04), 0 2px 4px 0 rgba(51, 51, 51, 0.04), 0 4px 8px -2px rgba(51, 51, 51, 0.06), 0 0 0 1px rgba(51, 51, 51, 0.04), 0 -1px 1px -0.5px rgba(51, 51, 51, 0.06) inset" : ""
|
|
33197
33166
|
},
|
|
33198
33167
|
children: [
|
|
33199
|
-
/* @__PURE__ */
|
|
33168
|
+
/* @__PURE__ */ jsx112(
|
|
33200
33169
|
"span",
|
|
33201
33170
|
{
|
|
33202
33171
|
style: {
|
|
@@ -33208,10 +33177,10 @@ var StatusBarOptionField = (props) => {
|
|
|
33208
33177
|
alignItems: "center",
|
|
33209
33178
|
borderRadius: "100%"
|
|
33210
33179
|
},
|
|
33211
|
-
children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */
|
|
33180
|
+
children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx112(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx112(ICCircle, {}) : /* @__PURE__ */ jsx112(ICMinus, {})
|
|
33212
33181
|
}
|
|
33213
33182
|
),
|
|
33214
|
-
/* @__PURE__ */
|
|
33183
|
+
/* @__PURE__ */ jsx112(
|
|
33215
33184
|
"span",
|
|
33216
33185
|
{
|
|
33217
33186
|
style: {
|
|
@@ -33224,7 +33193,7 @@ var StatusBarOptionField = (props) => {
|
|
|
33224
33193
|
},
|
|
33225
33194
|
option?.[0]
|
|
33226
33195
|
),
|
|
33227
|
-
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */
|
|
33196
|
+
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx112(
|
|
33228
33197
|
"div",
|
|
33229
33198
|
{
|
|
33230
33199
|
style: {
|
|
@@ -33240,7 +33209,7 @@ var StatusBarOptionField = (props) => {
|
|
|
33240
33209
|
);
|
|
33241
33210
|
};
|
|
33242
33211
|
var ICMinus = () => {
|
|
33243
|
-
return /* @__PURE__ */
|
|
33212
|
+
return /* @__PURE__ */ jsx112(
|
|
33244
33213
|
"svg",
|
|
33245
33214
|
{
|
|
33246
33215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -33248,7 +33217,7 @@ var ICMinus = () => {
|
|
|
33248
33217
|
height: "16",
|
|
33249
33218
|
viewBox: "0 0 16 16",
|
|
33250
33219
|
fill: "none",
|
|
33251
|
-
children: /* @__PURE__ */
|
|
33220
|
+
children: /* @__PURE__ */ jsx112(
|
|
33252
33221
|
"path",
|
|
33253
33222
|
{
|
|
33254
33223
|
d: "M4 8H12",
|
|
@@ -33262,7 +33231,7 @@ var ICMinus = () => {
|
|
|
33262
33231
|
);
|
|
33263
33232
|
};
|
|
33264
33233
|
var ICCircle = () => {
|
|
33265
|
-
return /* @__PURE__ */
|
|
33234
|
+
return /* @__PURE__ */ jsx112(
|
|
33266
33235
|
"svg",
|
|
33267
33236
|
{
|
|
33268
33237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -33270,12 +33239,12 @@ var ICCircle = () => {
|
|
|
33270
33239
|
height: "8",
|
|
33271
33240
|
viewBox: "0 0 8 8",
|
|
33272
33241
|
fill: "none",
|
|
33273
|
-
children: /* @__PURE__ */
|
|
33242
|
+
children: /* @__PURE__ */ jsx112("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
|
|
33274
33243
|
}
|
|
33275
33244
|
);
|
|
33276
33245
|
};
|
|
33277
33246
|
var ICCheck = () => {
|
|
33278
|
-
return /* @__PURE__ */
|
|
33247
|
+
return /* @__PURE__ */ jsx112(
|
|
33279
33248
|
"svg",
|
|
33280
33249
|
{
|
|
33281
33250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -33283,7 +33252,7 @@ var ICCheck = () => {
|
|
|
33283
33252
|
height: "16",
|
|
33284
33253
|
viewBox: "0 0 16 16",
|
|
33285
33254
|
fill: "none",
|
|
33286
|
-
children: /* @__PURE__ */
|
|
33255
|
+
children: /* @__PURE__ */ jsx112(
|
|
33287
33256
|
"path",
|
|
33288
33257
|
{
|
|
33289
33258
|
d: "M13.3408 5.23535L13.252 5.32324L6.88867 11.6875L6.7998 11.7764L6.71191 11.6875L2.89258 7.86914L2.80469 7.78125L2.89258 7.69238L3.74121 6.84375L3.83008 6.75586L6.7998 9.72559L12.2266 4.29785L12.3154 4.20996L13.3408 5.23535Z",
|
|
@@ -33297,7 +33266,7 @@ var ICCheck = () => {
|
|
|
33297
33266
|
};
|
|
33298
33267
|
|
|
33299
33268
|
// src/widgets/basic/date-option-field/date-option.tsx
|
|
33300
|
-
import { jsx as
|
|
33269
|
+
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
33301
33270
|
var DateOptionField = (props) => {
|
|
33302
33271
|
const {
|
|
33303
33272
|
name: name2,
|
|
@@ -33308,7 +33277,7 @@ var DateOptionField = (props) => {
|
|
|
33308
33277
|
string,
|
|
33309
33278
|
onChange: onChange2
|
|
33310
33279
|
} = props;
|
|
33311
|
-
return /* @__PURE__ */
|
|
33280
|
+
return /* @__PURE__ */ jsx113(
|
|
33312
33281
|
Controller,
|
|
33313
33282
|
{
|
|
33314
33283
|
name: name2 ?? "",
|
|
@@ -33320,7 +33289,7 @@ var DateOptionField = (props) => {
|
|
|
33320
33289
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
33321
33290
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
33322
33291
|
children: [
|
|
33323
|
-
/* @__PURE__ */
|
|
33292
|
+
/* @__PURE__ */ jsx113(
|
|
33324
33293
|
"input",
|
|
33325
33294
|
{
|
|
33326
33295
|
type: "checkbox",
|