@fctc/sme-widget-ui 1.9.7 → 1.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.js +176 -30
- package/dist/icons.mjs +219 -73
- package/dist/index.js +212 -60
- package/dist/index.mjs +443 -291
- package/dist/utils.js +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/widgets.js +150 -54
- package/dist/widgets.mjs +370 -274
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5527,31 +5527,76 @@ var DownloadIcon = () => {
|
|
|
5527
5527
|
};
|
|
5528
5528
|
|
|
5529
5529
|
// src/icons/excel-icon.tsx
|
|
5530
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
5530
|
+
import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
5531
5531
|
var ExcelIcon = () => {
|
|
5532
|
-
return /* @__PURE__ */
|
|
5532
|
+
return /* @__PURE__ */ jsxs4(
|
|
5533
5533
|
"svg",
|
|
5534
5534
|
{
|
|
5535
5535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5536
|
-
width: "
|
|
5537
|
-
height: "
|
|
5538
|
-
viewBox: "0 0
|
|
5536
|
+
width: "24",
|
|
5537
|
+
height: "24",
|
|
5538
|
+
viewBox: "0 0 24 24",
|
|
5539
5539
|
fill: "none",
|
|
5540
|
-
children:
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5540
|
+
children: [
|
|
5541
|
+
/* @__PURE__ */ jsx14(
|
|
5542
|
+
"path",
|
|
5543
|
+
{
|
|
5544
|
+
d: "M6 0C5.175 0 4.5 0.675 4.5 1.5V22.5C4.5 23.325 5.175 24 6 24H21C21.825 24 22.5 23.325 22.5 22.5V6L16.5 0H6Z",
|
|
5545
|
+
fill: "#ECECEC"
|
|
5546
|
+
}
|
|
5547
|
+
),
|
|
5548
|
+
/* @__PURE__ */ jsx14(
|
|
5549
|
+
"path",
|
|
5550
|
+
{
|
|
5551
|
+
d: "M18 6H22.5L16.5 0V4.5C16.5 5.325 17.175 6 18 6Z",
|
|
5552
|
+
fill: "#C6C6C6"
|
|
5553
|
+
}
|
|
5554
|
+
),
|
|
5555
|
+
/* @__PURE__ */ jsx14("path", { d: "M22.5 10.5L18 6H22.5V10.5Z", fill: "#DCDCDC" }),
|
|
5556
|
+
/* @__PURE__ */ jsx14(
|
|
5557
|
+
"path",
|
|
5558
|
+
{
|
|
5559
|
+
d: "M19.5 19.5C19.5 19.9125 19.1625 20.25 18.75 20.25H2.25C1.8375 20.25 1.5 19.9125 1.5 19.5V12C1.5 11.5875 1.8375 11.25 2.25 11.25H18.75C19.1625 11.25 19.5 11.5875 19.5 12V19.5Z",
|
|
5560
|
+
fill: "#47A800"
|
|
5561
|
+
}
|
|
5562
|
+
),
|
|
5563
|
+
/* @__PURE__ */ jsx14(
|
|
5564
|
+
"path",
|
|
5565
|
+
{
|
|
5566
|
+
d: "M6.76622 15.2898L7.80947 13.9826C8.12147 13.5746 8.72747 14.0958 8.38547 14.4859C8.02622 14.9118 7.64822 15.3738 7.28822 15.8471L8.51147 17.3703C8.84147 17.8204 8.18222 18.2516 7.85822 17.8076L6.75422 16.3923L5.66897 17.8384C5.36297 18.2756 4.68497 17.7844 5.02697 17.3764L6.23222 15.8471C5.85422 15.3731 5.48822 14.9118 5.12297 14.4859C4.74572 14.0359 5.44697 13.5746 5.72297 13.9953L6.76622 15.2898Z",
|
|
5567
|
+
fill: "white"
|
|
5568
|
+
}
|
|
5569
|
+
),
|
|
5570
|
+
/* @__PURE__ */ jsx14(
|
|
5571
|
+
"path",
|
|
5572
|
+
{
|
|
5573
|
+
d: "M9.2517 14.2098C9.2517 14.0118 9.4197 13.8438 9.6297 13.8438C9.8217 13.8438 9.9837 14.0126 9.9837 14.2098V17.2143H11.6149C12.2022 17.2143 12.2149 17.9996 11.6149 17.9996H9.63045C9.42045 17.9996 9.25245 17.8503 9.25245 17.6343L9.2517 14.2098Z",
|
|
5574
|
+
fill: "white"
|
|
5575
|
+
}
|
|
5576
|
+
),
|
|
5577
|
+
/* @__PURE__ */ jsx14(
|
|
5578
|
+
"path",
|
|
5579
|
+
{
|
|
5580
|
+
d: "M12.752 14.7498C12.89 13.5858 14.6465 13.3766 15.4745 14.0126C15.8825 14.3418 15.4505 14.8638 15.0905 14.5998C14.6465 14.3186 13.6392 14.1866 13.5132 14.8091C13.3512 15.7931 15.9597 15.2298 15.9177 16.8251C15.8757 18.3483 13.6692 18.3836 12.8412 17.7003C12.6425 17.5383 12.6492 17.2751 12.7572 17.1123C12.9132 16.9571 13.0865 16.9031 13.2912 17.0711C13.7825 17.4063 15.0485 17.6583 15.1377 16.8063C15.0605 15.9198 12.566 16.4531 12.752 14.7498Z",
|
|
5581
|
+
fill: "white"
|
|
5582
|
+
}
|
|
5583
|
+
),
|
|
5584
|
+
/* @__PURE__ */ jsx14(
|
|
5585
|
+
"path",
|
|
5586
|
+
{
|
|
5587
|
+
d: "M18.75 20.25H4.5V21H18.75C19.1625 21 19.5 20.6625 19.5 20.25V19.5C19.5 19.9125 19.1625 20.25 18.75 20.25Z",
|
|
5588
|
+
fill: "#DCDCDC"
|
|
5589
|
+
}
|
|
5590
|
+
)
|
|
5591
|
+
]
|
|
5547
5592
|
}
|
|
5548
5593
|
);
|
|
5549
5594
|
};
|
|
5550
5595
|
|
|
5551
5596
|
// src/icons/export-icon.tsx
|
|
5552
|
-
import { jsx as jsx15, jsxs as
|
|
5597
|
+
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
5553
5598
|
var ExportIcon = () => {
|
|
5554
|
-
return /* @__PURE__ */
|
|
5599
|
+
return /* @__PURE__ */ jsxs5(
|
|
5555
5600
|
"svg",
|
|
5556
5601
|
{
|
|
5557
5602
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5587,8 +5632,8 @@ var ExportIcon = () => {
|
|
|
5587
5632
|
};
|
|
5588
5633
|
|
|
5589
5634
|
// src/icons/eye-icon.tsx
|
|
5590
|
-
import { jsx as jsx16, jsxs as
|
|
5591
|
-
var EyeIcon = () => /* @__PURE__ */
|
|
5635
|
+
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
5636
|
+
var EyeIcon = () => /* @__PURE__ */ jsxs6(
|
|
5592
5637
|
"svg",
|
|
5593
5638
|
{
|
|
5594
5639
|
width: "20",
|
|
@@ -5639,9 +5684,9 @@ var FilterIcon = ({ className }) => {
|
|
|
5639
5684
|
};
|
|
5640
5685
|
|
|
5641
5686
|
// src/icons/groupby-icon.tsx
|
|
5642
|
-
import { jsx as jsx18, jsxs as
|
|
5687
|
+
import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
5643
5688
|
var GroupByIcon = ({ className }) => {
|
|
5644
|
-
return /* @__PURE__ */
|
|
5689
|
+
return /* @__PURE__ */ jsxs7(
|
|
5645
5690
|
"svg",
|
|
5646
5691
|
{
|
|
5647
5692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5664,9 +5709,9 @@ var GroupByIcon = ({ className }) => {
|
|
|
5664
5709
|
};
|
|
5665
5710
|
|
|
5666
5711
|
// src/icons/kanban-icon.tsx
|
|
5667
|
-
import { jsx as jsx19, jsxs as
|
|
5712
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
5668
5713
|
var KanbanIcon = () => {
|
|
5669
|
-
return /* @__PURE__ */
|
|
5714
|
+
return /* @__PURE__ */ jsxs8(
|
|
5670
5715
|
"svg",
|
|
5671
5716
|
{
|
|
5672
5717
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5695,9 +5740,9 @@ var KanbanIcon = () => {
|
|
|
5695
5740
|
};
|
|
5696
5741
|
|
|
5697
5742
|
// src/icons/list-icon.tsx
|
|
5698
|
-
import { jsx as jsx20, jsxs as
|
|
5743
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
5699
5744
|
var ListIcon = () => {
|
|
5700
|
-
return /* @__PURE__ */
|
|
5745
|
+
return /* @__PURE__ */ jsxs9(
|
|
5701
5746
|
"svg",
|
|
5702
5747
|
{
|
|
5703
5748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5740,9 +5785,9 @@ var ListIcon = () => {
|
|
|
5740
5785
|
};
|
|
5741
5786
|
|
|
5742
5787
|
// src/icons/more-icon.tsx
|
|
5743
|
-
import { jsx as jsx21, jsxs as
|
|
5788
|
+
import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
5744
5789
|
var MoreIcon = () => {
|
|
5745
|
-
return /* @__PURE__ */
|
|
5790
|
+
return /* @__PURE__ */ jsxs10(
|
|
5746
5791
|
"svg",
|
|
5747
5792
|
{
|
|
5748
5793
|
width: "24px",
|
|
@@ -5787,23 +5832,68 @@ var MoreIcon = () => {
|
|
|
5787
5832
|
};
|
|
5788
5833
|
|
|
5789
5834
|
// src/icons/pdf-icon.tsx
|
|
5790
|
-
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
5835
|
+
import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5791
5836
|
var PdfIcon = () => {
|
|
5792
|
-
return /* @__PURE__ */
|
|
5837
|
+
return /* @__PURE__ */ jsxs11(
|
|
5793
5838
|
"svg",
|
|
5794
5839
|
{
|
|
5795
5840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5796
|
-
width: "
|
|
5797
|
-
height: "
|
|
5798
|
-
viewBox: "0 0
|
|
5841
|
+
width: "25",
|
|
5842
|
+
height: "24",
|
|
5843
|
+
viewBox: "0 0 25 24",
|
|
5799
5844
|
fill: "none",
|
|
5800
|
-
children:
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5845
|
+
children: [
|
|
5846
|
+
/* @__PURE__ */ jsx22(
|
|
5847
|
+
"path",
|
|
5848
|
+
{
|
|
5849
|
+
d: "M6.19922 0C5.37422 0 4.69922 0.675 4.69922 1.5V22.5C4.69922 23.325 5.37422 24 6.19922 24H21.1992C22.0242 24 22.6992 23.325 22.6992 22.5V6L16.6992 0H6.19922Z",
|
|
5850
|
+
fill: "#ECECEC"
|
|
5851
|
+
}
|
|
5852
|
+
),
|
|
5853
|
+
/* @__PURE__ */ jsx22(
|
|
5854
|
+
"path",
|
|
5855
|
+
{
|
|
5856
|
+
d: "M18.1992 6H22.6992L16.6992 0V4.5C16.6992 5.325 17.3742 6 18.1992 6Z",
|
|
5857
|
+
fill: "#C6C6C6"
|
|
5858
|
+
}
|
|
5859
|
+
),
|
|
5860
|
+
/* @__PURE__ */ jsx22("path", { d: "M22.6992 10.5L18.1992 6H22.6992V10.5Z", fill: "#DCDCDC" }),
|
|
5861
|
+
/* @__PURE__ */ jsx22(
|
|
5862
|
+
"path",
|
|
5863
|
+
{
|
|
5864
|
+
d: "M19.6992 19.5C19.6992 19.9125 19.3617 20.25 18.9492 20.25H2.44922C2.03672 20.25 1.69922 19.9125 1.69922 19.5V12C1.69922 11.5875 2.03672 11.25 2.44922 11.25H18.9492C19.3617 11.25 19.6992 11.5875 19.6992 12V19.5Z",
|
|
5865
|
+
fill: "#FF4B34"
|
|
5866
|
+
}
|
|
5867
|
+
),
|
|
5868
|
+
/* @__PURE__ */ jsx22(
|
|
5869
|
+
"path",
|
|
5870
|
+
{
|
|
5871
|
+
d: "M4.96855 14.2096C4.96855 14.0116 5.12455 13.7956 5.3758 13.7956H6.76105C7.54105 13.7956 8.24305 14.3176 8.24305 15.3181C8.24305 16.2661 7.54105 16.7941 6.76105 16.7941H5.7598V17.5861C5.7598 17.8501 5.5918 17.9994 5.3758 17.9994C5.1778 17.9994 4.96855 17.8501 4.96855 17.5861V14.2096ZM5.7598 14.5509V16.0449H6.76105C7.16305 16.0449 7.48105 15.6901 7.48105 15.3181C7.48105 14.8989 7.16305 14.5509 6.76105 14.5509H5.7598Z",
|
|
5872
|
+
fill: "white"
|
|
5873
|
+
}
|
|
5874
|
+
),
|
|
5875
|
+
/* @__PURE__ */ jsx22(
|
|
5876
|
+
"path",
|
|
5877
|
+
{
|
|
5878
|
+
d: "M9.41755 17.9994C9.21955 17.9994 9.00355 17.8914 9.00355 17.6281V14.2216C9.00355 14.0064 9.21955 13.8496 9.41755 13.8496H10.7908C13.5313 13.8496 13.4713 17.9994 10.8448 17.9994H9.41755ZM9.79555 14.5816V17.2681H10.7908C12.4101 17.2681 12.4821 14.5816 10.7908 14.5816H9.79555Z",
|
|
5879
|
+
fill: "white"
|
|
5880
|
+
}
|
|
5881
|
+
),
|
|
5882
|
+
/* @__PURE__ */ jsx22(
|
|
5883
|
+
"path",
|
|
5884
|
+
{
|
|
5885
|
+
d: "M14.4433 14.6296V15.5829H15.9726C16.1886 15.5829 16.4046 15.7989 16.4046 16.0081C16.4046 16.2061 16.1886 16.3681 15.9726 16.3681H14.4433V17.6274C14.4433 17.8374 14.2941 17.9986 14.0841 17.9986C13.8201 17.9986 13.6588 17.8374 13.6588 17.6274V14.2209C13.6588 14.0056 13.8208 13.8489 14.0841 13.8489H16.1893C16.4533 13.8489 16.6093 14.0056 16.6093 14.2209C16.6093 14.4129 16.4533 14.6289 16.1893 14.6289L14.4433 14.6296Z",
|
|
5886
|
+
fill: "white"
|
|
5887
|
+
}
|
|
5888
|
+
),
|
|
5889
|
+
/* @__PURE__ */ jsx22(
|
|
5890
|
+
"path",
|
|
5891
|
+
{
|
|
5892
|
+
d: "M18.9492 20.25H4.69922V21H18.9492C19.3617 21 19.6992 20.6625 19.6992 20.25V19.5C19.6992 19.9125 19.3617 20.25 18.9492 20.25Z",
|
|
5893
|
+
fill: "#DCDCDC"
|
|
5894
|
+
}
|
|
5895
|
+
)
|
|
5896
|
+
]
|
|
5807
5897
|
}
|
|
5808
5898
|
);
|
|
5809
5899
|
};
|
|
@@ -5831,9 +5921,9 @@ var PlayIcon = () => {
|
|
|
5831
5921
|
};
|
|
5832
5922
|
|
|
5833
5923
|
// src/icons/reset-icon.tsx
|
|
5834
|
-
import { jsx as jsx24, jsxs as
|
|
5924
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
5835
5925
|
var ResetIcon = () => {
|
|
5836
|
-
return /* @__PURE__ */
|
|
5926
|
+
return /* @__PURE__ */ jsxs12(
|
|
5837
5927
|
"svg",
|
|
5838
5928
|
{
|
|
5839
5929
|
width: "16",
|
|
@@ -5891,9 +5981,9 @@ var SearchIcon = () => {
|
|
|
5891
5981
|
};
|
|
5892
5982
|
|
|
5893
5983
|
// src/icons/setting-icon.tsx
|
|
5894
|
-
import { jsx as jsx26, jsxs as
|
|
5984
|
+
import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
5895
5985
|
var SettingIcon = ({ className = "" }) => {
|
|
5896
|
-
return /* @__PURE__ */
|
|
5986
|
+
return /* @__PURE__ */ jsxs13(
|
|
5897
5987
|
"svg",
|
|
5898
5988
|
{
|
|
5899
5989
|
width: "16",
|
|
@@ -5985,9 +6075,9 @@ var UnArchiveIcon = () => {
|
|
|
5985
6075
|
};
|
|
5986
6076
|
|
|
5987
6077
|
// src/icons/vector-icon.tsx
|
|
5988
|
-
import { jsx as jsx30, jsxs as
|
|
6078
|
+
import { jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
5989
6079
|
var VectorIcon = () => {
|
|
5990
|
-
return /* @__PURE__ */
|
|
6080
|
+
return /* @__PURE__ */ jsxs14(
|
|
5991
6081
|
"svg",
|
|
5992
6082
|
{
|
|
5993
6083
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6016,19 +6106,19 @@ var VectorIcon = () => {
|
|
|
6016
6106
|
};
|
|
6017
6107
|
|
|
6018
6108
|
// src/icons/zip-icon.tsx
|
|
6019
|
-
import { jsx as jsx31, jsxs as
|
|
6109
|
+
import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
6020
6110
|
var ZipIcon = () => {
|
|
6021
|
-
return /* @__PURE__ */
|
|
6111
|
+
return /* @__PURE__ */ jsxs15(
|
|
6022
6112
|
"svg",
|
|
6023
6113
|
{
|
|
6024
|
-
width: "
|
|
6025
|
-
height: "
|
|
6114
|
+
width: "30",
|
|
6115
|
+
height: "30",
|
|
6026
6116
|
viewBox: "0 0 40 40",
|
|
6027
6117
|
fill: "none",
|
|
6028
6118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6029
6119
|
children: [
|
|
6030
|
-
/* @__PURE__ */
|
|
6031
|
-
/* @__PURE__ */
|
|
6120
|
+
/* @__PURE__ */ jsxs15("g", { clipPath: "url(#clip0_3042_66427)", children: [
|
|
6121
|
+
/* @__PURE__ */ jsxs15("g", { filter: "url(#filter0_di_3042_66427)", children: [
|
|
6032
6122
|
/* @__PURE__ */ jsx31(
|
|
6033
6123
|
"path",
|
|
6034
6124
|
{
|
|
@@ -6053,7 +6143,7 @@ var ZipIcon = () => {
|
|
|
6053
6143
|
strokeWidth: "1.5"
|
|
6054
6144
|
}
|
|
6055
6145
|
),
|
|
6056
|
-
/* @__PURE__ */
|
|
6146
|
+
/* @__PURE__ */ jsxs15("g", { filter: "url(#filter1_i_3042_66427)", children: [
|
|
6057
6147
|
/* @__PURE__ */ jsx31("mask", { id: "path-4-inside-1_3042_66427", fill: "white", children: /* @__PURE__ */ jsx31("path", { d: "M0 22C0 19.7909 1.79086 18 4 18H20C22.2091 18 24 19.7909 24 22V30C24 32.2091 22.2091 34 20 34H4C1.79086 34 0 32.2091 0 30V22Z" }) }),
|
|
6058
6148
|
/* @__PURE__ */ jsx31(
|
|
6059
6149
|
"path",
|
|
@@ -6080,8 +6170,8 @@ var ZipIcon = () => {
|
|
|
6080
6170
|
)
|
|
6081
6171
|
] })
|
|
6082
6172
|
] }),
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
6173
|
+
/* @__PURE__ */ jsxs15("defs", { children: [
|
|
6174
|
+
/* @__PURE__ */ jsxs15(
|
|
6085
6175
|
"filter",
|
|
6086
6176
|
{
|
|
6087
6177
|
id: "filter0_di_3042_66427",
|
|
@@ -6159,7 +6249,7 @@ var ZipIcon = () => {
|
|
|
6159
6249
|
]
|
|
6160
6250
|
}
|
|
6161
6251
|
),
|
|
6162
|
-
/* @__PURE__ */
|
|
6252
|
+
/* @__PURE__ */ jsxs15(
|
|
6163
6253
|
"filter",
|
|
6164
6254
|
{
|
|
6165
6255
|
id: "filter1_i_3042_66427",
|
|
@@ -6218,7 +6308,7 @@ var ZipIcon = () => {
|
|
|
6218
6308
|
};
|
|
6219
6309
|
|
|
6220
6310
|
// src/icons/loading-icon.tsx
|
|
6221
|
-
import { jsx as jsx32, jsxs as
|
|
6311
|
+
import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6222
6312
|
var LoadingIcon = ({
|
|
6223
6313
|
width = 15,
|
|
6224
6314
|
height = 15,
|
|
@@ -6239,7 +6329,7 @@ var LoadingIcon = ({
|
|
|
6239
6329
|
background: "transparent"
|
|
6240
6330
|
},
|
|
6241
6331
|
...props,
|
|
6242
|
-
children: /* @__PURE__ */
|
|
6332
|
+
children: /* @__PURE__ */ jsxs16("g", { children: [
|
|
6243
6333
|
/* @__PURE__ */ jsx32(
|
|
6244
6334
|
"circle",
|
|
6245
6335
|
{
|
|
@@ -6270,8 +6360,8 @@ var LoadingIcon = ({
|
|
|
6270
6360
|
};
|
|
6271
6361
|
|
|
6272
6362
|
// src/icons/paid-icon.tsx
|
|
6273
|
-
import { jsx as jsx33, jsxs as
|
|
6274
|
-
var PaidIcon = () => /* @__PURE__ */
|
|
6363
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6364
|
+
var PaidIcon = () => /* @__PURE__ */ jsxs17(
|
|
6275
6365
|
"svg",
|
|
6276
6366
|
{
|
|
6277
6367
|
width: "208",
|
|
@@ -6280,7 +6370,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs15(
|
|
|
6280
6370
|
fill: "none",
|
|
6281
6371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6282
6372
|
children: [
|
|
6283
|
-
/* @__PURE__ */
|
|
6373
|
+
/* @__PURE__ */ jsxs17("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
|
|
6284
6374
|
/* @__PURE__ */ jsx33(
|
|
6285
6375
|
"path",
|
|
6286
6376
|
{
|
|
@@ -6356,8 +6446,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs15(
|
|
|
6356
6446
|
}
|
|
6357
6447
|
)
|
|
6358
6448
|
] }),
|
|
6359
|
-
/* @__PURE__ */
|
|
6360
|
-
/* @__PURE__ */
|
|
6449
|
+
/* @__PURE__ */ jsxs17("defs", { children: [
|
|
6450
|
+
/* @__PURE__ */ jsxs17(
|
|
6361
6451
|
"filter",
|
|
6362
6452
|
{
|
|
6363
6453
|
id: "filter0_d_615_26793",
|
|
@@ -6454,13 +6544,13 @@ var PlaceHolderIcon = () => {
|
|
|
6454
6544
|
};
|
|
6455
6545
|
|
|
6456
6546
|
// src/icons/google-icon.tsx
|
|
6457
|
-
import { jsx as jsx35, jsxs as
|
|
6547
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
6458
6548
|
var GoogleIcon = ({
|
|
6459
6549
|
width = 20,
|
|
6460
6550
|
height = 20,
|
|
6461
6551
|
...props
|
|
6462
6552
|
}) => {
|
|
6463
|
-
return /* @__PURE__ */
|
|
6553
|
+
return /* @__PURE__ */ jsxs18(
|
|
6464
6554
|
"svg",
|
|
6465
6555
|
{
|
|
6466
6556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6505,9 +6595,9 @@ var GoogleIcon = ({
|
|
|
6505
6595
|
};
|
|
6506
6596
|
|
|
6507
6597
|
// src/icons/eye-closed-icon.tsx
|
|
6508
|
-
import { jsx as jsx36, jsxs as
|
|
6598
|
+
import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
6509
6599
|
var EyeClosedIcon = () => {
|
|
6510
|
-
return /* @__PURE__ */
|
|
6600
|
+
return /* @__PURE__ */ jsxs19(
|
|
6511
6601
|
"svg",
|
|
6512
6602
|
{
|
|
6513
6603
|
width: "20",
|
|
@@ -6572,9 +6662,9 @@ var DeleteIconDanger = () => {
|
|
|
6572
6662
|
};
|
|
6573
6663
|
|
|
6574
6664
|
// src/icons/image-icon.tsx
|
|
6575
|
-
import { jsx as jsx38, jsxs as
|
|
6665
|
+
import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
6576
6666
|
var ImageIcon = () => {
|
|
6577
|
-
return /* @__PURE__ */
|
|
6667
|
+
return /* @__PURE__ */ jsxs20(
|
|
6578
6668
|
"svg",
|
|
6579
6669
|
{
|
|
6580
6670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6617,35 +6707,91 @@ var ImageIcon = () => {
|
|
|
6617
6707
|
};
|
|
6618
6708
|
|
|
6619
6709
|
// src/icons/video-icon.tsx
|
|
6620
|
-
import { jsx as jsx39, jsxs as
|
|
6710
|
+
import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6621
6711
|
var VideoIcon = () => {
|
|
6622
|
-
return /* @__PURE__ */
|
|
6712
|
+
return /* @__PURE__ */ jsxs21(
|
|
6623
6713
|
"svg",
|
|
6624
6714
|
{
|
|
6625
6715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6626
|
-
width: "
|
|
6627
|
-
height: "
|
|
6628
|
-
viewBox: "0 0
|
|
6716
|
+
width: "24",
|
|
6717
|
+
height: "24",
|
|
6718
|
+
viewBox: "0 0 24 24",
|
|
6629
6719
|
fill: "none",
|
|
6630
6720
|
children: [
|
|
6631
6721
|
/* @__PURE__ */ jsx39(
|
|
6632
6722
|
"path",
|
|
6633
6723
|
{
|
|
6634
|
-
d: "M22.
|
|
6724
|
+
d: "M22.9996 3.60859L22.9995 20.3914C22.9995 21.2798 22.2794 22 21.391 22H2.61004C1.72164 22 1.00145 21.2798 1.00145 20.3914V3.60859C1.00145 2.72019 1.72164 2 2.61004 2H21.391C22.2794 2 22.9996 2.72019 22.9996 3.60859Z",
|
|
6635
6725
|
fill: "#435E88"
|
|
6636
6726
|
}
|
|
6637
6727
|
),
|
|
6638
6728
|
/* @__PURE__ */ jsx39(
|
|
6639
6729
|
"path",
|
|
6640
6730
|
{
|
|
6641
|
-
d: "
|
|
6731
|
+
d: "M22.9974 3.60553L22.9981 20.3918C22.9981 21.2786 22.2797 22.0004 21.3895 22.0004H2.60863C1.72185 22.0004 1 21.2786 1 20.3918L21.3888 2.00039C22.2791 2.00039 22.9974 2.71871 22.9974 3.60553Z",
|
|
6642
6732
|
fill: "#33527D"
|
|
6643
6733
|
}
|
|
6644
6734
|
),
|
|
6645
6735
|
/* @__PURE__ */ jsx39(
|
|
6646
6736
|
"path",
|
|
6647
6737
|
{
|
|
6648
|
-
d: "
|
|
6738
|
+
d: "M4.96732 16.3783C5.15049 16.3785 5.29935 16.5271 5.29935 16.7103V18.6234C5.29935 18.8067 5.15049 18.9552 4.96732 18.9555H3.05326C2.8699 18.9555 2.72123 18.8068 2.72123 18.6234V16.7103C2.72123 16.527 2.8699 16.3783 3.05326 16.3783H4.96732Z",
|
|
6739
|
+
fill: "white"
|
|
6740
|
+
}
|
|
6741
|
+
),
|
|
6742
|
+
/* @__PURE__ */ jsx39(
|
|
6743
|
+
"path",
|
|
6744
|
+
{
|
|
6745
|
+
d: "M20.9478 16.3783C21.1311 16.3783 21.2798 16.527 21.2798 16.7103V18.6234C21.2798 18.8068 21.1311 18.9555 20.9478 18.9555H19.0347C18.8513 18.9555 18.7027 18.8068 18.7027 18.6234V16.7103C18.7027 16.527 18.8513 16.3783 19.0347 16.3783H20.9478Z",
|
|
6746
|
+
fill: "white"
|
|
6747
|
+
}
|
|
6748
|
+
),
|
|
6749
|
+
/* @__PURE__ */ jsx39(
|
|
6750
|
+
"path",
|
|
6751
|
+
{
|
|
6752
|
+
d: "M9.5933 9.05605C9.59356 8.59569 10.1065 8.32141 10.4898 8.57656L15.147 11.6762C15.49 11.9045 15.49 12.4088 15.147 12.6371L10.4898 15.7367C10.1065 15.9919 9.5935 15.7176 9.5933 15.2572V9.05605Z",
|
|
6753
|
+
fill: "white"
|
|
6754
|
+
}
|
|
6755
|
+
),
|
|
6756
|
+
/* @__PURE__ */ jsx39(
|
|
6757
|
+
"path",
|
|
6758
|
+
{
|
|
6759
|
+
d: "M4.96732 12.1596C5.15033 12.1598 5.29909 12.3076 5.29935 12.4906V14.4047C5.29935 14.5879 5.15049 14.7365 4.96732 14.7367H3.05326C2.8699 14.7367 2.72123 14.588 2.72123 14.4047V12.4906C2.72149 12.3075 2.87006 12.1596 3.05326 12.1596H4.96732Z",
|
|
6760
|
+
fill: "white"
|
|
6761
|
+
}
|
|
6762
|
+
),
|
|
6763
|
+
/* @__PURE__ */ jsx39(
|
|
6764
|
+
"path",
|
|
6765
|
+
{
|
|
6766
|
+
d: "M20.9478 12.1596C21.131 12.1596 21.2796 12.3075 21.2798 12.4906V14.4047C21.2798 14.588 21.1311 14.7367 20.9478 14.7367H19.0347C18.8513 14.7367 18.7027 14.588 18.7027 14.4047V12.4906C18.7029 12.3075 18.8515 12.1596 19.0347 12.1596H20.9478Z",
|
|
6767
|
+
fill: "white"
|
|
6768
|
+
}
|
|
6769
|
+
),
|
|
6770
|
+
/* @__PURE__ */ jsx39(
|
|
6771
|
+
"path",
|
|
6772
|
+
{
|
|
6773
|
+
d: "M4.96732 7.93789C5.15034 7.93811 5.29912 8.0869 5.29935 8.26992V10.184C5.29935 10.3672 5.15049 10.5158 4.96732 10.516H3.05326C2.8699 10.516 2.72123 10.3673 2.72123 10.184V8.26992C2.72146 8.08676 2.87005 7.93789 3.05326 7.93789H4.96732Z",
|
|
6774
|
+
fill: "white"
|
|
6775
|
+
}
|
|
6776
|
+
),
|
|
6777
|
+
/* @__PURE__ */ jsx39(
|
|
6778
|
+
"path",
|
|
6779
|
+
{
|
|
6780
|
+
d: "M20.9478 7.93789C21.131 7.93789 21.2796 8.08676 21.2798 8.26992V10.184C21.2798 10.3673 21.1311 10.516 20.9478 10.516H19.0347C18.8513 10.516 18.7027 10.3673 18.7027 10.184V8.26992C18.7029 8.08676 18.8515 7.93789 19.0347 7.93789H20.9478Z",
|
|
6781
|
+
fill: "white"
|
|
6782
|
+
}
|
|
6783
|
+
),
|
|
6784
|
+
/* @__PURE__ */ jsx39(
|
|
6785
|
+
"path",
|
|
6786
|
+
{
|
|
6787
|
+
d: "M4.96732 3.71914C5.15038 3.71936 5.29918 3.8681 5.29935 4.05117V5.96523C5.29935 6.14845 5.15049 6.29703 4.96732 6.29726H3.05326C2.8699 6.29726 2.72123 6.14859 2.72123 5.96523V4.05117C2.72141 3.86796 2.87001 3.71914 3.05326 3.71914H4.96732Z",
|
|
6788
|
+
fill: "white"
|
|
6789
|
+
}
|
|
6790
|
+
),
|
|
6791
|
+
/* @__PURE__ */ jsx39(
|
|
6792
|
+
"path",
|
|
6793
|
+
{
|
|
6794
|
+
d: "M20.9478 3.71914C21.131 3.71914 21.2796 3.86796 21.2798 4.05117V5.96523C21.2798 6.14859 21.1311 6.29726 20.9478 6.29726H19.0347C18.8513 6.29726 18.7027 6.14859 18.7027 5.96523V4.05117C18.7029 3.86796 18.8515 3.71914 19.0347 3.71914H20.9478Z",
|
|
6649
6795
|
fill: "white"
|
|
6650
6796
|
}
|
|
6651
6797
|
)
|
|
@@ -9680,8 +9826,8 @@ var en_default = {
|
|
|
9680
9826
|
download_file: "Download this file",
|
|
9681
9827
|
upload_success: "Upload file success",
|
|
9682
9828
|
upload_failure: "Upload file failure",
|
|
9683
|
-
file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
|
|
9684
|
-
file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
|
|
9829
|
+
file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
|
|
9830
|
+
file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
|
|
9685
9831
|
must_required: "is required",
|
|
9686
9832
|
invalid_number: "Invalid number",
|
|
9687
9833
|
active: "Active",
|
|
@@ -10304,7 +10450,7 @@ import { jsx as jsx41 } from "react/jsx-runtime";
|
|
|
10304
10450
|
var IcArrow = () => /* @__PURE__ */ jsx41("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx41("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
|
|
10305
10451
|
|
|
10306
10452
|
// src/widgets/advanced/pagination/pagination-view.tsx
|
|
10307
|
-
import { jsx as jsx42, jsxs as
|
|
10453
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10308
10454
|
var PaginationView = (props) => {
|
|
10309
10455
|
const {
|
|
10310
10456
|
displayPageNumberDots,
|
|
@@ -10337,8 +10483,8 @@ var PaginationView = (props) => {
|
|
|
10337
10483
|
let lastPage = paginationRange[paginationRange.length - 1];
|
|
10338
10484
|
const startPage = currentPage * pageSize + 1;
|
|
10339
10485
|
const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
|
|
10340
|
-
return /* @__PURE__ */
|
|
10341
|
-
!displayPageNumberDots && /* @__PURE__ */
|
|
10486
|
+
return /* @__PURE__ */ jsxs22("ul", { className: `pagination-container rounded-lg ${className}`, children: [
|
|
10487
|
+
!displayPageNumberDots && /* @__PURE__ */ jsxs22("li", { className: "pagination-item px-0", children: [
|
|
10342
10488
|
startPage,
|
|
10343
10489
|
" - ",
|
|
10344
10490
|
endPage,
|
|
@@ -10389,7 +10535,7 @@ var PaginationView = (props) => {
|
|
|
10389
10535
|
import { useState as useState3 } from "react";
|
|
10390
10536
|
|
|
10391
10537
|
// src/widgets/advanced/table/table-group.tsx
|
|
10392
|
-
import { Fragment as Fragment2, jsx as jsx43, jsxs as
|
|
10538
|
+
import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
10393
10539
|
var TableGroup = (props) => {
|
|
10394
10540
|
const { t: t3 } = useI18n();
|
|
10395
10541
|
const {
|
|
@@ -10439,8 +10585,8 @@ var TableGroup = (props) => {
|
|
|
10439
10585
|
setSelectedRowKeys
|
|
10440
10586
|
});
|
|
10441
10587
|
const leftPadding = level > 1 ? level * 8 + "px" : "0px";
|
|
10442
|
-
return /* @__PURE__ */
|
|
10443
|
-
/* @__PURE__ */
|
|
10588
|
+
return /* @__PURE__ */ jsxs23(Fragment2, { children: [
|
|
10589
|
+
/* @__PURE__ */ jsxs23(
|
|
10444
10590
|
"tr",
|
|
10445
10591
|
{
|
|
10446
10592
|
draggable: true,
|
|
@@ -10453,13 +10599,13 @@ var TableGroup = (props) => {
|
|
|
10453
10599
|
colSpan: colEmptyGroup.fromStart ?? 1,
|
|
10454
10600
|
style: { display: "table-cell" },
|
|
10455
10601
|
className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
|
|
10456
|
-
children: /* @__PURE__ */
|
|
10602
|
+
children: /* @__PURE__ */ jsxs23(
|
|
10457
10603
|
"div",
|
|
10458
10604
|
{
|
|
10459
10605
|
style: { paddingLeft: leftPadding },
|
|
10460
10606
|
className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
|
|
10461
10607
|
children: [
|
|
10462
|
-
/* @__PURE__ */
|
|
10608
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
|
|
10463
10609
|
/* @__PURE__ */ jsx43(
|
|
10464
10610
|
TriangleIcon,
|
|
10465
10611
|
{
|
|
@@ -10546,7 +10692,7 @@ var TableGroup = (props) => {
|
|
|
10546
10692
|
|
|
10547
10693
|
// src/widgets/advanced/table/table-row.tsx
|
|
10548
10694
|
import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
|
|
10549
|
-
import { Fragment as Fragment3, jsx as jsx44, jsxs as
|
|
10695
|
+
import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10550
10696
|
var Row = (props) => {
|
|
10551
10697
|
const {
|
|
10552
10698
|
row,
|
|
@@ -10617,7 +10763,7 @@ var Row = (props) => {
|
|
|
10617
10763
|
{
|
|
10618
10764
|
"data-row-id": row?.id,
|
|
10619
10765
|
className: `border-b border-[#e8e8e8] cursor-pointer`,
|
|
10620
|
-
children: /* @__PURE__ */
|
|
10766
|
+
children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
10621
10767
|
isDisplayCheckbox && /* @__PURE__ */ jsx44(
|
|
10622
10768
|
"td",
|
|
10623
10769
|
{
|
|
@@ -10770,7 +10916,7 @@ var TableBody = (props) => {
|
|
|
10770
10916
|
// src/widgets/advanced/table/table-filter.tsx
|
|
10771
10917
|
import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
|
|
10772
10918
|
import { createPortal } from "react-dom";
|
|
10773
|
-
import { jsx as jsx46, jsxs as
|
|
10919
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
10774
10920
|
var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
10775
10921
|
const [openTableFilter, setOpenTableFilter] = useState4();
|
|
10776
10922
|
const [filterPosition, setFilterPosition] = useState4(null);
|
|
@@ -10802,7 +10948,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10802
10948
|
window.removeEventListener("resize", updatePosition);
|
|
10803
10949
|
};
|
|
10804
10950
|
}, [filterRef, openTableFilter]);
|
|
10805
|
-
return /* @__PURE__ */
|
|
10951
|
+
return /* @__PURE__ */ jsxs25(
|
|
10806
10952
|
"div",
|
|
10807
10953
|
{
|
|
10808
10954
|
ref: filterRef,
|
|
@@ -10819,7 +10965,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10819
10965
|
onClick: () => {
|
|
10820
10966
|
setOpenTableFilter(!openTableFilter);
|
|
10821
10967
|
},
|
|
10822
|
-
children: /* @__PURE__ */
|
|
10968
|
+
children: /* @__PURE__ */ jsxs25(
|
|
10823
10969
|
"svg",
|
|
10824
10970
|
{
|
|
10825
10971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10887,7 +11033,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10887
11033
|
},
|
|
10888
11034
|
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",
|
|
10889
11035
|
children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
|
|
10890
|
-
return /* @__PURE__ */
|
|
11036
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
|
|
10891
11037
|
/* @__PURE__ */ jsx46(
|
|
10892
11038
|
"input",
|
|
10893
11039
|
{
|
|
@@ -10918,14 +11064,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
10918
11064
|
};
|
|
10919
11065
|
|
|
10920
11066
|
// src/widgets/advanced/table/table-footer.tsx
|
|
10921
|
-
import { jsx as jsx47, jsxs as
|
|
11067
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
10922
11068
|
var TableFooter = ({ onAddRow, rows }) => {
|
|
10923
11069
|
const emptyData = rows?.length <= 0;
|
|
10924
11070
|
return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
|
|
10925
11071
|
"td",
|
|
10926
11072
|
{
|
|
10927
11073
|
className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
|
|
10928
|
-
children: /* @__PURE__ */
|
|
11074
|
+
children: /* @__PURE__ */ jsxs26(
|
|
10929
11075
|
"button",
|
|
10930
11076
|
{
|
|
10931
11077
|
type: "button",
|
|
@@ -10935,7 +11081,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
10935
11081
|
},
|
|
10936
11082
|
className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
|
|
10937
11083
|
children: [
|
|
10938
|
-
/* @__PURE__ */
|
|
11084
|
+
/* @__PURE__ */ jsxs26(
|
|
10939
11085
|
"svg",
|
|
10940
11086
|
{
|
|
10941
11087
|
style: {
|
|
@@ -12775,7 +12921,8 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
12775
12921
|
});
|
|
12776
12922
|
|
|
12777
12923
|
// src/widgets/advanced/table/table-head.tsx
|
|
12778
|
-
import {
|
|
12924
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
12925
|
+
import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12779
12926
|
var TableHead = (props) => {
|
|
12780
12927
|
const {
|
|
12781
12928
|
handleCheckBoxAll,
|
|
@@ -12785,7 +12932,7 @@ var TableHead = (props) => {
|
|
|
12785
12932
|
onRemoveRow,
|
|
12786
12933
|
onToggleColumnOptional
|
|
12787
12934
|
} = props;
|
|
12788
|
-
return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */
|
|
12935
|
+
return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
|
|
12789
12936
|
"tr",
|
|
12790
12937
|
{
|
|
12791
12938
|
style: {
|
|
@@ -12816,27 +12963,31 @@ var TableHead = (props) => {
|
|
|
12816
12963
|
return /* @__PURE__ */ jsx48(
|
|
12817
12964
|
"th",
|
|
12818
12965
|
{
|
|
12966
|
+
"data-rtc-resizable": col?.name,
|
|
12819
12967
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12820
|
-
children: /* @__PURE__ */
|
|
12968
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
12821
12969
|
col.title,
|
|
12822
|
-
col?.field?.help && /* @__PURE__ */
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12970
|
+
col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
|
|
12971
|
+
createPortal2(
|
|
12972
|
+
/* @__PURE__ */ jsx48(
|
|
12973
|
+
M,
|
|
12974
|
+
{
|
|
12975
|
+
style: {
|
|
12976
|
+
padding: "6px 12px",
|
|
12977
|
+
fontSize: "12px",
|
|
12978
|
+
borderRadius: "4px",
|
|
12979
|
+
maxWidth: "200px",
|
|
12980
|
+
whiteSpace: "wrap",
|
|
12981
|
+
fontWeight: 400,
|
|
12982
|
+
textTransform: "none",
|
|
12983
|
+
zIndex: "9999"
|
|
12984
|
+
},
|
|
12985
|
+
id: `field-help-${col?.field?.name}`,
|
|
12986
|
+
content: col?.field?.help,
|
|
12987
|
+
place: "top"
|
|
12988
|
+
}
|
|
12989
|
+
),
|
|
12990
|
+
document.body
|
|
12840
12991
|
),
|
|
12841
12992
|
/* @__PURE__ */ jsx48(
|
|
12842
12993
|
"span",
|
|
@@ -12881,9 +13032,9 @@ var TableHead = (props) => {
|
|
|
12881
13032
|
};
|
|
12882
13033
|
|
|
12883
13034
|
// src/icons/empty-table-icon.tsx
|
|
12884
|
-
import { jsx as jsx49, jsxs as
|
|
13035
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12885
13036
|
var IcEmptyTable = () => {
|
|
12886
|
-
return /* @__PURE__ */
|
|
13037
|
+
return /* @__PURE__ */ jsxs28(
|
|
12887
13038
|
"svg",
|
|
12888
13039
|
{
|
|
12889
13040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12892,7 +13043,7 @@ var IcEmptyTable = () => {
|
|
|
12892
13043
|
viewBox: "0 0 216 140",
|
|
12893
13044
|
fill: "none",
|
|
12894
13045
|
children: [
|
|
12895
|
-
/* @__PURE__ */
|
|
13046
|
+
/* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
|
|
12896
13047
|
/* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
|
|
12897
13048
|
/* @__PURE__ */ jsx49(
|
|
12898
13049
|
"path",
|
|
@@ -13212,12 +13363,12 @@ var IcEmptyTable = () => {
|
|
|
13212
13363
|
};
|
|
13213
13364
|
|
|
13214
13365
|
// src/widgets/advanced/table/empty-table.tsx
|
|
13215
|
-
import { jsx as jsx50, jsxs as
|
|
13366
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
13216
13367
|
var EmptyTable = () => {
|
|
13217
13368
|
const { t: t3 } = useI18n();
|
|
13218
|
-
return /* @__PURE__ */
|
|
13369
|
+
return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
|
|
13219
13370
|
/* @__PURE__ */ jsx50(IcEmptyTable, {}),
|
|
13220
|
-
/* @__PURE__ */
|
|
13371
|
+
/* @__PURE__ */ jsxs29("div", { children: [
|
|
13221
13372
|
/* @__PURE__ */ jsx50("p", {}),
|
|
13222
13373
|
/* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
|
|
13223
13374
|
] })
|
|
@@ -15060,7 +15211,7 @@ Button.displayName = "Button";
|
|
|
15060
15211
|
|
|
15061
15212
|
// src/widgets/advanced/login/shared/text-input.tsx
|
|
15062
15213
|
import { useState as useState5 } from "react";
|
|
15063
|
-
import { jsx as jsx52, jsxs as
|
|
15214
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
15064
15215
|
function TextInput(props) {
|
|
15065
15216
|
const {
|
|
15066
15217
|
className,
|
|
@@ -15074,12 +15225,12 @@ function TextInput(props) {
|
|
|
15074
15225
|
required
|
|
15075
15226
|
} = props;
|
|
15076
15227
|
const [showPassword, setShowPassword] = useState5(false);
|
|
15077
|
-
return /* @__PURE__ */
|
|
15078
|
-
label && /* @__PURE__ */
|
|
15228
|
+
return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
|
|
15229
|
+
label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
|
|
15079
15230
|
label,
|
|
15080
15231
|
required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
|
|
15081
15232
|
] }),
|
|
15082
|
-
/* @__PURE__ */
|
|
15233
|
+
/* @__PURE__ */ jsxs30(
|
|
15083
15234
|
"div",
|
|
15084
15235
|
{
|
|
15085
15236
|
className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
|
|
@@ -15116,7 +15267,7 @@ function TextInput(props) {
|
|
|
15116
15267
|
|
|
15117
15268
|
// src/widgets/advanced/login/provider/credential/form-options/index.tsx
|
|
15118
15269
|
import { useEffect as useEffect7 } from "react";
|
|
15119
|
-
import { jsx as jsx53, jsxs as
|
|
15270
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
15120
15271
|
var STAY_LOGIN_IN = "stayLoginIn";
|
|
15121
15272
|
function FormOptions({
|
|
15122
15273
|
forgotPasswordUrl,
|
|
@@ -15142,8 +15293,8 @@ function FormOptions({
|
|
|
15142
15293
|
useEffect7(() => {
|
|
15143
15294
|
localStorage.setItem(STAY_LOGIN_IN, "false");
|
|
15144
15295
|
}, []);
|
|
15145
|
-
return /* @__PURE__ */
|
|
15146
|
-
/* @__PURE__ */
|
|
15296
|
+
return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
|
|
15297
|
+
/* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
|
|
15147
15298
|
/* @__PURE__ */ jsx53(
|
|
15148
15299
|
"input",
|
|
15149
15300
|
{
|
|
@@ -15160,7 +15311,7 @@ function FormOptions({
|
|
|
15160
15311
|
}
|
|
15161
15312
|
|
|
15162
15313
|
// src/widgets/advanced/login/provider/credential/index.tsx
|
|
15163
|
-
import { Fragment as Fragment5, jsx as jsx54, jsxs as
|
|
15314
|
+
import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
15164
15315
|
var CredentialLogin = (props) => {
|
|
15165
15316
|
const {
|
|
15166
15317
|
shouldRenderDivider,
|
|
@@ -15180,15 +15331,15 @@ var CredentialLogin = (props) => {
|
|
|
15180
15331
|
mode: "onChange",
|
|
15181
15332
|
resolver: s3(loginSchema)
|
|
15182
15333
|
});
|
|
15183
|
-
return /* @__PURE__ */
|
|
15184
|
-
/* @__PURE__ */
|
|
15334
|
+
return /* @__PURE__ */ jsxs32(Fragment5, { children: [
|
|
15335
|
+
/* @__PURE__ */ jsxs32(
|
|
15185
15336
|
"form",
|
|
15186
15337
|
{
|
|
15187
15338
|
onSubmit: handleSubmit(onSubmit ?? (() => {
|
|
15188
15339
|
})),
|
|
15189
15340
|
className: `flex w-full h-fit flex-col gap-10`,
|
|
15190
15341
|
children: [
|
|
15191
|
-
/* @__PURE__ */
|
|
15342
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
|
|
15192
15343
|
/* @__PURE__ */ jsx54(
|
|
15193
15344
|
TextInput,
|
|
15194
15345
|
{
|
|
@@ -15237,7 +15388,7 @@ var CredentialLogin = (props) => {
|
|
|
15237
15388
|
]
|
|
15238
15389
|
}
|
|
15239
15390
|
),
|
|
15240
|
-
shouldRenderDivider && /* @__PURE__ */
|
|
15391
|
+
shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
|
|
15241
15392
|
/* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
|
|
15242
15393
|
/* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
|
|
15243
15394
|
] })
|
|
@@ -15245,10 +15396,10 @@ var CredentialLogin = (props) => {
|
|
|
15245
15396
|
};
|
|
15246
15397
|
|
|
15247
15398
|
// src/widgets/advanced/login/provider/google/google-btn/index.tsx
|
|
15248
|
-
import { jsx as jsx55, jsxs as
|
|
15399
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
15249
15400
|
function GoogleButton(props) {
|
|
15250
15401
|
const { onLoginGoogle, db } = props;
|
|
15251
|
-
return /* @__PURE__ */
|
|
15402
|
+
return /* @__PURE__ */ jsxs33(
|
|
15252
15403
|
"button",
|
|
15253
15404
|
{
|
|
15254
15405
|
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",
|
|
@@ -15270,22 +15421,22 @@ function SocialRedirect(props) {
|
|
|
15270
15421
|
}
|
|
15271
15422
|
|
|
15272
15423
|
// src/widgets/advanced/login/provider/google/index.tsx
|
|
15273
|
-
import { Fragment as Fragment7, jsx as jsx57, jsxs as
|
|
15424
|
+
import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
15274
15425
|
var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
|
|
15275
|
-
return /* @__PURE__ */
|
|
15426
|
+
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
15276
15427
|
/* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
|
|
15277
15428
|
/* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
|
|
15278
15429
|
] });
|
|
15279
15430
|
};
|
|
15280
15431
|
|
|
15281
15432
|
// src/widgets/advanced/login/index.tsx
|
|
15282
|
-
import { jsx as jsx58, jsxs as
|
|
15433
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
15283
15434
|
var LoginProviderMapping = {
|
|
15284
15435
|
google: GoogleLogin
|
|
15285
15436
|
};
|
|
15286
15437
|
var Login = (props) => {
|
|
15287
15438
|
const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
|
|
15288
|
-
return /* @__PURE__ */
|
|
15439
|
+
return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
|
|
15289
15440
|
/* @__PURE__ */ jsx58(
|
|
15290
15441
|
CredentialLogin,
|
|
15291
15442
|
{
|
|
@@ -15310,7 +15461,7 @@ var Login = (props) => {
|
|
|
15310
15461
|
};
|
|
15311
15462
|
|
|
15312
15463
|
// src/widgets/advanced/search/popup-filter/index.tsx
|
|
15313
|
-
import { jsx as jsx59, jsxs as
|
|
15464
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
15314
15465
|
var PopupFilter = ({
|
|
15315
15466
|
handleAddTagSearch,
|
|
15316
15467
|
removeSearchItems,
|
|
@@ -15331,13 +15482,13 @@ var PopupFilter = ({
|
|
|
15331
15482
|
zIndex: 33
|
|
15332
15483
|
},
|
|
15333
15484
|
className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
|
|
15334
|
-
children: /* @__PURE__ */
|
|
15485
|
+
children: /* @__PURE__ */ jsxs36(
|
|
15335
15486
|
"div",
|
|
15336
15487
|
{
|
|
15337
15488
|
className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
|
|
15338
15489
|
children: [
|
|
15339
|
-
filterBy?.length > 0 && /* @__PURE__ */
|
|
15340
|
-
/* @__PURE__ */
|
|
15490
|
+
filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
|
|
15491
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
15341
15492
|
/* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
|
|
15342
15493
|
/* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
|
|
15343
15494
|
] }),
|
|
@@ -15349,7 +15500,7 @@ var PopupFilter = ({
|
|
|
15349
15500
|
acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
|
|
15350
15501
|
}
|
|
15351
15502
|
acc.push(
|
|
15352
|
-
/* @__PURE__ */
|
|
15503
|
+
/* @__PURE__ */ jsxs36(
|
|
15353
15504
|
"button",
|
|
15354
15505
|
{
|
|
15355
15506
|
className: `filter-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "filter-by-checked font-semibold " : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
|
|
@@ -15385,15 +15536,15 @@ var PopupFilter = ({
|
|
|
15385
15536
|
}, [])
|
|
15386
15537
|
] }),
|
|
15387
15538
|
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
|
|
15388
|
-
groupBy?.length > 0 && /* @__PURE__ */
|
|
15389
|
-
/* @__PURE__ */
|
|
15539
|
+
groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
|
|
15540
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
15390
15541
|
/* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
|
|
15391
15542
|
/* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
|
|
15392
15543
|
] }),
|
|
15393
15544
|
groupBy?.map((item, index4) => {
|
|
15394
15545
|
const isExist = item?.active;
|
|
15395
15546
|
if (!item.string) return;
|
|
15396
|
-
return /* @__PURE__ */
|
|
15547
|
+
return /* @__PURE__ */ jsxs36(
|
|
15397
15548
|
"button",
|
|
15398
15549
|
{
|
|
15399
15550
|
onClick: () => {
|
|
@@ -15437,7 +15588,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
|
15437
15588
|
|
|
15438
15589
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
15439
15590
|
import { Fragment as Fragment8 } from "react";
|
|
15440
|
-
import { Fragment as Fragment9, jsx as jsx60, jsxs as
|
|
15591
|
+
import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
15441
15592
|
var TagSearch = ({
|
|
15442
15593
|
removeSearchItems,
|
|
15443
15594
|
selectedTags,
|
|
@@ -15448,16 +15599,16 @@ var TagSearch = ({
|
|
|
15448
15599
|
return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
|
|
15449
15600
|
if (tag?.values?.length > 0) {
|
|
15450
15601
|
if (tag?.type !== "group_by") {
|
|
15451
|
-
return /* @__PURE__ */
|
|
15602
|
+
return /* @__PURE__ */ jsxs37(
|
|
15452
15603
|
"div",
|
|
15453
15604
|
{
|
|
15454
15605
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15455
15606
|
children: [
|
|
15456
15607
|
/* @__PURE__ */ jsx60("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__ */ jsx60(FilterIcon, {}) }),
|
|
15457
15608
|
/* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
|
|
15458
|
-
return /* @__PURE__ */
|
|
15609
|
+
return /* @__PURE__ */ jsxs37(Fragment8, { children: [
|
|
15459
15610
|
/* @__PURE__ */ jsx60("span", { children: value }),
|
|
15460
|
-
idx < tag.values.length - 1 && /* @__PURE__ */
|
|
15611
|
+
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15461
15612
|
" ",
|
|
15462
15613
|
instance.t("or"),
|
|
15463
15614
|
" "
|
|
@@ -15494,15 +15645,15 @@ var TagSearch = ({
|
|
|
15494
15645
|
{
|
|
15495
15646
|
className: "flex min-h-full overflow-hidden",
|
|
15496
15647
|
children: /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
|
|
15497
|
-
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */
|
|
15648
|
+
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
|
|
15498
15649
|
"div",
|
|
15499
15650
|
{
|
|
15500
15651
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15501
15652
|
children: [
|
|
15502
15653
|
/* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx60(GroupByIcon, {}) }),
|
|
15503
|
-
value?.strings?.map((string, idx) => /* @__PURE__ */
|
|
15654
|
+
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
|
|
15504
15655
|
/* @__PURE__ */ jsx60("span", { children: string }),
|
|
15505
|
-
idx < value?.strings.length - 1 && /* @__PURE__ */
|
|
15656
|
+
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15506
15657
|
" ",
|
|
15507
15658
|
"> ",
|
|
15508
15659
|
" "
|
|
@@ -15540,7 +15691,7 @@ var TagSearch = ({
|
|
|
15540
15691
|
};
|
|
15541
15692
|
|
|
15542
15693
|
// src/widgets/advanced/search/search-list/index.tsx
|
|
15543
|
-
import { jsx as jsx61, jsxs as
|
|
15694
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
15544
15695
|
var SearchList = ({
|
|
15545
15696
|
handleAddTagSearch,
|
|
15546
15697
|
handleMouseEnter,
|
|
@@ -15562,7 +15713,7 @@ var SearchList = ({
|
|
|
15562
15713
|
if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
|
|
15563
15714
|
return;
|
|
15564
15715
|
}
|
|
15565
|
-
return /* @__PURE__ */
|
|
15716
|
+
return /* @__PURE__ */ jsxs38(
|
|
15566
15717
|
"button",
|
|
15567
15718
|
{
|
|
15568
15719
|
onClick: () => {
|
|
@@ -15609,7 +15760,7 @@ var SearchList = ({
|
|
|
15609
15760
|
};
|
|
15610
15761
|
|
|
15611
15762
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15612
|
-
import { Fragment as Fragment10, jsx as jsx62, jsxs as
|
|
15763
|
+
import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15613
15764
|
var Search = ({
|
|
15614
15765
|
removeSearchItems,
|
|
15615
15766
|
selectedTags,
|
|
@@ -15726,14 +15877,14 @@ var Search = ({
|
|
|
15726
15877
|
setDidInit(true);
|
|
15727
15878
|
setIsReadyFormatDomain(true);
|
|
15728
15879
|
}, [aid, filterBy, fieldsList]);
|
|
15729
|
-
return /* @__PURE__ */
|
|
15880
|
+
return /* @__PURE__ */ jsxs39(
|
|
15730
15881
|
"div",
|
|
15731
15882
|
{
|
|
15732
15883
|
ref: popupFilterRef,
|
|
15733
15884
|
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)]`,
|
|
15734
15885
|
children: [
|
|
15735
15886
|
/* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
|
|
15736
|
-
/* @__PURE__ */
|
|
15887
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
15737
15888
|
/* @__PURE__ */ jsx62(
|
|
15738
15889
|
TagSearch,
|
|
15739
15890
|
{
|
|
@@ -15766,8 +15917,8 @@ var Search = ({
|
|
|
15766
15917
|
}
|
|
15767
15918
|
)
|
|
15768
15919
|
] }),
|
|
15769
|
-
(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */
|
|
15770
|
-
/* @__PURE__ */
|
|
15920
|
+
(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
15921
|
+
/* @__PURE__ */ jsxs39(
|
|
15771
15922
|
"div",
|
|
15772
15923
|
{
|
|
15773
15924
|
className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
|
|
@@ -15821,7 +15972,7 @@ var ActiveBadgeField = (props) => {
|
|
|
15821
15972
|
// src/widgets/common/modal-layer.tsx
|
|
15822
15973
|
import { Fragment as Fragment12 } from "react";
|
|
15823
15974
|
import { Dialog, DialogPanel, Transition } from "@headlessui/react";
|
|
15824
|
-
import { jsx as jsx64, jsxs as
|
|
15975
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15825
15976
|
var ModalLayer = ({
|
|
15826
15977
|
isOpen,
|
|
15827
15978
|
onClose,
|
|
@@ -15839,10 +15990,10 @@ var ModalLayer = ({
|
|
|
15839
15990
|
leaveFrom: "transform scale-100 opacity-100",
|
|
15840
15991
|
leaveTo: "transform scale-95 opacity-0",
|
|
15841
15992
|
as: Fragment12,
|
|
15842
|
-
children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */
|
|
15993
|
+
children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
|
|
15843
15994
|
/* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15844
|
-
/* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */
|
|
15845
|
-
/* @__PURE__ */
|
|
15995
|
+
/* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs40("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: [
|
|
15996
|
+
/* @__PURE__ */ jsxs40(
|
|
15846
15997
|
"div",
|
|
15847
15998
|
{
|
|
15848
15999
|
className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
|
|
@@ -15868,7 +16019,7 @@ var ModalLayer = ({
|
|
|
15868
16019
|
};
|
|
15869
16020
|
|
|
15870
16021
|
// src/widgets/common/modal-confirm.tsx
|
|
15871
|
-
import { jsx as jsx65, jsxs as
|
|
16022
|
+
import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15872
16023
|
var ModalConfirm = ({
|
|
15873
16024
|
name: name2,
|
|
15874
16025
|
isShowModal,
|
|
@@ -15882,7 +16033,7 @@ var ModalConfirm = ({
|
|
|
15882
16033
|
const renderButtonAction = (name3) => {
|
|
15883
16034
|
switch (name3) {
|
|
15884
16035
|
case "duplicate":
|
|
15885
|
-
return /* @__PURE__ */
|
|
16036
|
+
return /* @__PURE__ */ jsxs41(
|
|
15886
16037
|
"button",
|
|
15887
16038
|
{
|
|
15888
16039
|
type: "button",
|
|
@@ -15896,7 +16047,7 @@ var ModalConfirm = ({
|
|
|
15896
16047
|
}
|
|
15897
16048
|
);
|
|
15898
16049
|
case "archive":
|
|
15899
|
-
return /* @__PURE__ */
|
|
16050
|
+
return /* @__PURE__ */ jsxs41(
|
|
15900
16051
|
"button",
|
|
15901
16052
|
{
|
|
15902
16053
|
type: "button",
|
|
@@ -15910,7 +16061,7 @@ var ModalConfirm = ({
|
|
|
15910
16061
|
}
|
|
15911
16062
|
);
|
|
15912
16063
|
case "unarchive":
|
|
15913
|
-
return /* @__PURE__ */
|
|
16064
|
+
return /* @__PURE__ */ jsxs41(
|
|
15914
16065
|
"button",
|
|
15915
16066
|
{
|
|
15916
16067
|
type: "button",
|
|
@@ -15924,7 +16075,7 @@ var ModalConfirm = ({
|
|
|
15924
16075
|
}
|
|
15925
16076
|
);
|
|
15926
16077
|
case "delete":
|
|
15927
|
-
return /* @__PURE__ */
|
|
16078
|
+
return /* @__PURE__ */ jsxs41(
|
|
15928
16079
|
"button",
|
|
15929
16080
|
{
|
|
15930
16081
|
type: "button",
|
|
@@ -15941,12 +16092,12 @@ var ModalConfirm = ({
|
|
|
15941
16092
|
break;
|
|
15942
16093
|
}
|
|
15943
16094
|
};
|
|
15944
|
-
return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */
|
|
15945
|
-
/* @__PURE__ */
|
|
16095
|
+
return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
|
|
16096
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
|
|
15946
16097
|
/* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
|
|
15947
16098
|
/* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
|
|
15948
16099
|
] }),
|
|
15949
|
-
/* @__PURE__ */
|
|
16100
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
|
|
15950
16101
|
/* @__PURE__ */ jsx65(
|
|
15951
16102
|
"button",
|
|
15952
16103
|
{
|
|
@@ -15963,8 +16114,8 @@ var ModalConfirm = ({
|
|
|
15963
16114
|
|
|
15964
16115
|
// src/widgets/common/modal-detail.tsx
|
|
15965
16116
|
import { useState as useState7 } from "react";
|
|
15966
|
-
import { createPortal as
|
|
15967
|
-
import { Fragment as Fragment13, jsx as jsx66, jsxs as
|
|
16117
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
16118
|
+
import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
15968
16119
|
var ModalDetail = ({
|
|
15969
16120
|
idToolTip,
|
|
15970
16121
|
title,
|
|
@@ -15986,12 +16137,12 @@ var ModalDetail = ({
|
|
|
15986
16137
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
15987
16138
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
15988
16139
|
};
|
|
15989
|
-
return
|
|
15990
|
-
/* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */
|
|
16140
|
+
return createPortal3(
|
|
16141
|
+
/* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
15991
16142
|
/* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
15992
|
-
/* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */
|
|
15993
|
-
/* @__PURE__ */
|
|
15994
|
-
/* @__PURE__ */
|
|
16143
|
+
/* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs42("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: [
|
|
16144
|
+
/* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
16145
|
+
/* @__PURE__ */ jsxs42(
|
|
15995
16146
|
"div",
|
|
15996
16147
|
{
|
|
15997
16148
|
id: "modal-detail",
|
|
@@ -16026,7 +16177,7 @@ var ModalDetail = ({
|
|
|
16026
16177
|
|
|
16027
16178
|
// src/widgets/common/loading-normal.tsx
|
|
16028
16179
|
import { useEffect as useEffect9, useState as useState8 } from "react";
|
|
16029
|
-
import { jsx as jsx67, jsxs as
|
|
16180
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
16030
16181
|
var LayerLoading = () => {
|
|
16031
16182
|
const { t: t3 } = useI18n();
|
|
16032
16183
|
const [activeIndex, setActiveIndex] = useState8(0);
|
|
@@ -16036,7 +16187,7 @@ var LayerLoading = () => {
|
|
|
16036
16187
|
}, 200);
|
|
16037
16188
|
return () => clearInterval(interval);
|
|
16038
16189
|
}, []);
|
|
16039
|
-
return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */
|
|
16190
|
+
return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
|
|
16040
16191
|
/* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
|
|
16041
16192
|
"div",
|
|
16042
16193
|
{
|
|
@@ -16254,7 +16405,7 @@ var po = $2(K("zoom"));
|
|
|
16254
16405
|
var uo = $2(K("flip"));
|
|
16255
16406
|
|
|
16256
16407
|
// src/widgets/common/select-files.tsx
|
|
16257
|
-
import { Fragment as Fragment14, jsx as jsx69, jsxs as
|
|
16408
|
+
import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
16258
16409
|
var ButtonSelectFiles = ({
|
|
16259
16410
|
fileInputRef,
|
|
16260
16411
|
selectedFiles,
|
|
@@ -16279,7 +16430,8 @@ var ButtonSelectFiles = ({
|
|
|
16279
16430
|
"application/zip",
|
|
16280
16431
|
"application/x-zip-compressed",
|
|
16281
16432
|
"application/vnd.ms-excel",
|
|
16282
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
16433
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
16434
|
+
"application/json"
|
|
16283
16435
|
];
|
|
16284
16436
|
const MAX_FILE_SIZE = 10 * 1024 * 1024;
|
|
16285
16437
|
const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
|
|
@@ -16358,8 +16510,8 @@ var ButtonSelectFiles = ({
|
|
|
16358
16510
|
await handleUpload(formData, serivce, xNode);
|
|
16359
16511
|
}
|
|
16360
16512
|
};
|
|
16361
|
-
return /* @__PURE__ */
|
|
16362
|
-
isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */
|
|
16513
|
+
return /* @__PURE__ */ jsxs44(Fragment14, { children: [
|
|
16514
|
+
isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
|
|
16363
16515
|
"button",
|
|
16364
16516
|
{
|
|
16365
16517
|
type: "button",
|
|
@@ -16380,7 +16532,7 @@ var ButtonSelectFiles = ({
|
|
|
16380
16532
|
style: { display: "none" },
|
|
16381
16533
|
onChange: handleOnChange,
|
|
16382
16534
|
multiple: true,
|
|
16383
|
-
accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
16535
|
+
accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
16384
16536
|
}
|
|
16385
16537
|
)
|
|
16386
16538
|
] });
|
|
@@ -16388,7 +16540,7 @@ var ButtonSelectFiles = ({
|
|
|
16388
16540
|
|
|
16389
16541
|
// src/widgets/common/video-player.tsx
|
|
16390
16542
|
import { useRef as useRef6, useState as useState10 } from "react";
|
|
16391
|
-
import { jsx as jsx70, jsxs as
|
|
16543
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
16392
16544
|
var VideoPlayer = ({ src }) => {
|
|
16393
16545
|
const [isPlaying, setIsPlaying] = useState10(false);
|
|
16394
16546
|
const videoRef = useRef6(null);
|
|
@@ -16415,7 +16567,7 @@ var VideoPlayer = ({ src }) => {
|
|
|
16415
16567
|
}
|
|
16416
16568
|
}
|
|
16417
16569
|
};
|
|
16418
|
-
return /* @__PURE__ */
|
|
16570
|
+
return /* @__PURE__ */ jsxs45("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: [
|
|
16419
16571
|
/* @__PURE__ */ jsx70(
|
|
16420
16572
|
"video",
|
|
16421
16573
|
{
|
|
@@ -16434,7 +16586,7 @@ var VideoPlayer = ({ src }) => {
|
|
|
16434
16586
|
};
|
|
16435
16587
|
|
|
16436
16588
|
// src/widgets/basic/avatar-field/avatar.tsx
|
|
16437
|
-
import { Fragment as Fragment15, jsx as jsx71, jsxs as
|
|
16589
|
+
import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
16438
16590
|
var AvatarField = (props) => {
|
|
16439
16591
|
const {
|
|
16440
16592
|
isForm = false,
|
|
@@ -16458,7 +16610,7 @@ var AvatarField = (props) => {
|
|
|
16458
16610
|
color: textColor,
|
|
16459
16611
|
fontSize: `${size4 / 2.5}px`
|
|
16460
16612
|
};
|
|
16461
|
-
return /* @__PURE__ */
|
|
16613
|
+
return /* @__PURE__ */ jsxs46(Fragment15, { children: [
|
|
16462
16614
|
isForm && allowShowDetail && /* @__PURE__ */ jsx71(
|
|
16463
16615
|
ModalDetail,
|
|
16464
16616
|
{
|
|
@@ -16500,7 +16652,7 @@ var AvatarField = (props) => {
|
|
|
16500
16652
|
};
|
|
16501
16653
|
|
|
16502
16654
|
// src/widgets/basic/binary-field/binary.tsx
|
|
16503
|
-
import { jsx as jsx72, jsxs as
|
|
16655
|
+
import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
16504
16656
|
var BinaryField = (props) => {
|
|
16505
16657
|
const {
|
|
16506
16658
|
name: name2,
|
|
@@ -16538,7 +16690,7 @@ var BinaryField = (props) => {
|
|
|
16538
16690
|
{
|
|
16539
16691
|
ref: binaryRef,
|
|
16540
16692
|
className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
|
|
16541
|
-
children: renderImage ? /* @__PURE__ */
|
|
16693
|
+
children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
|
|
16542
16694
|
renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
|
|
16543
16695
|
"img",
|
|
16544
16696
|
{
|
|
@@ -16571,7 +16723,7 @@ var BinaryField = (props) => {
|
|
|
16571
16723
|
children: /* @__PURE__ */ jsx72(DeleteIcon, {})
|
|
16572
16724
|
}
|
|
16573
16725
|
)
|
|
16574
|
-
] }) : /* @__PURE__ */
|
|
16726
|
+
] }) : /* @__PURE__ */ jsxs47(
|
|
16575
16727
|
"label",
|
|
16576
16728
|
{
|
|
16577
16729
|
htmlFor: inputId,
|
|
@@ -16714,7 +16866,7 @@ var ButtonBadgeField = (props) => {
|
|
|
16714
16866
|
};
|
|
16715
16867
|
|
|
16716
16868
|
// src/widgets/basic/button-field/button.tsx
|
|
16717
|
-
import { Fragment as Fragment16, jsx as jsx74, jsxs as
|
|
16869
|
+
import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
16718
16870
|
var ButtonField = (props) => {
|
|
16719
16871
|
const {
|
|
16720
16872
|
func,
|
|
@@ -16734,7 +16886,7 @@ var ButtonField = (props) => {
|
|
|
16734
16886
|
onClick: func,
|
|
16735
16887
|
children: t3(content)
|
|
16736
16888
|
}
|
|
16737
|
-
) : /* @__PURE__ */
|
|
16889
|
+
) : /* @__PURE__ */ jsxs48(
|
|
16738
16890
|
"button",
|
|
16739
16891
|
{
|
|
16740
16892
|
type,
|
|
@@ -16751,7 +16903,7 @@ var ButtonField = (props) => {
|
|
|
16751
16903
|
|
|
16752
16904
|
// src/widgets/basic/char-field/char.tsx
|
|
16753
16905
|
import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
|
|
16754
|
-
import { Fragment as Fragment17, jsx as jsx75, jsxs as
|
|
16906
|
+
import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
16755
16907
|
var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
|
|
16756
16908
|
var CharField = (props) => {
|
|
16757
16909
|
const {
|
|
@@ -16835,7 +16987,7 @@ var CharField = (props) => {
|
|
|
16835
16987
|
}
|
|
16836
16988
|
return "";
|
|
16837
16989
|
}, [widget, formValues]);
|
|
16838
|
-
return /* @__PURE__ */
|
|
16990
|
+
return /* @__PURE__ */ jsxs49(Fragment17, { children: [
|
|
16839
16991
|
/* @__PURE__ */ jsx75(
|
|
16840
16992
|
"input",
|
|
16841
16993
|
{
|
|
@@ -16979,7 +17131,7 @@ var CheckboxField = (props) => {
|
|
|
16979
17131
|
|
|
16980
17132
|
// src/widgets/basic/color-field/color-wrapper.tsx
|
|
16981
17133
|
import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
|
|
16982
|
-
import { Fragment as Fragment18, jsx as jsx77, jsxs as
|
|
17134
|
+
import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
16983
17135
|
var ColorWrapper = (props) => {
|
|
16984
17136
|
const {
|
|
16985
17137
|
colors: colors2,
|
|
@@ -17006,7 +17158,7 @@ var ColorWrapper = (props) => {
|
|
|
17006
17158
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
17007
17159
|
};
|
|
17008
17160
|
}, []);
|
|
17009
|
-
return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */
|
|
17161
|
+
return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
|
|
17010
17162
|
/* @__PURE__ */ jsx77(
|
|
17011
17163
|
"button",
|
|
17012
17164
|
{
|
|
@@ -17030,7 +17182,7 @@ var ColorWrapper = (props) => {
|
|
|
17030
17182
|
content: i18n_default.t(color?.name)
|
|
17031
17183
|
}
|
|
17032
17184
|
)
|
|
17033
|
-
] }, color?.id)) }) : /* @__PURE__ */
|
|
17185
|
+
] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
|
|
17034
17186
|
/* @__PURE__ */ jsx77(
|
|
17035
17187
|
"button",
|
|
17036
17188
|
{
|
|
@@ -17087,7 +17239,7 @@ var ColorField = (props) => {
|
|
|
17087
17239
|
|
|
17088
17240
|
// src/widgets/basic/copy-link-buttton/copy-link.tsx
|
|
17089
17241
|
import { useEffect as useEffect13 } from "react";
|
|
17090
|
-
import { jsx as jsx79, jsxs as
|
|
17242
|
+
import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
17091
17243
|
var CopyLinkButtonField = (props) => {
|
|
17092
17244
|
const {
|
|
17093
17245
|
isForm,
|
|
@@ -17126,8 +17278,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17126
17278
|
clearErrors(name2);
|
|
17127
17279
|
}
|
|
17128
17280
|
}, [value]);
|
|
17129
|
-
return /* @__PURE__ */
|
|
17130
|
-
/* @__PURE__ */
|
|
17281
|
+
return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
|
|
17282
|
+
/* @__PURE__ */ jsxs51(
|
|
17131
17283
|
"div",
|
|
17132
17284
|
{
|
|
17133
17285
|
"aria-disabled": readonly,
|
|
@@ -21130,7 +21282,7 @@ function useEffectEvent(callback) {
|
|
|
21130
21282
|
}
|
|
21131
21283
|
|
|
21132
21284
|
// node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
|
|
21133
|
-
import { jsx as jsx80, jsxs as
|
|
21285
|
+
import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
|
|
21134
21286
|
import * as ReactDOM2 from "react-dom";
|
|
21135
21287
|
|
|
21136
21288
|
// node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
@@ -21528,7 +21680,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
|
|
|
21528
21680
|
bottom: isCustomShape ? "" : "rotate(180deg)",
|
|
21529
21681
|
right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
|
|
21530
21682
|
}[side];
|
|
21531
|
-
return /* @__PURE__ */
|
|
21683
|
+
return /* @__PURE__ */ jsxs52("svg", {
|
|
21532
21684
|
...rest,
|
|
21533
21685
|
"aria-hidden": true,
|
|
21534
21686
|
ref,
|
|
@@ -27537,7 +27689,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
27537
27689
|
|
|
27538
27690
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
27539
27691
|
import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
|
|
27540
|
-
import { createPortal as
|
|
27692
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
27541
27693
|
|
|
27542
27694
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
27543
27695
|
import { useLayoutEffect as useLayoutEffect4 } from "react";
|
|
@@ -28040,7 +28192,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28040
28192
|
}), innerProps), children);
|
|
28041
28193
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28042
28194
|
value: portalPlacementContext
|
|
28043
|
-
}, appendTo ? /* @__PURE__ */
|
|
28195
|
+
}, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
|
|
28044
28196
|
};
|
|
28045
28197
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28046
28198
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -30944,7 +31096,7 @@ var StateManagedSelect$1 = StateManagedSelect;
|
|
|
30944
31096
|
|
|
30945
31097
|
// src/widgets/basic/date-field/date.tsx
|
|
30946
31098
|
var import_moment2 = __toESM(require_moment());
|
|
30947
|
-
import { Fragment as Fragment23, jsx as jsx83, jsxs as
|
|
31099
|
+
import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
30948
31100
|
var DateField = (props) => {
|
|
30949
31101
|
const {
|
|
30950
31102
|
name: name2,
|
|
@@ -30972,7 +31124,7 @@ var DateField = (props) => {
|
|
|
30972
31124
|
} = props;
|
|
30973
31125
|
const { t: t3 } = useI18n();
|
|
30974
31126
|
const InputDateCustom = forwardRef6(
|
|
30975
|
-
({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */
|
|
31127
|
+
({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
|
|
30976
31128
|
/* @__PURE__ */ jsx83(
|
|
30977
31129
|
"input",
|
|
30978
31130
|
{
|
|
@@ -31015,7 +31167,7 @@ var DateField = (props) => {
|
|
|
31015
31167
|
}
|
|
31016
31168
|
}, [value, clearErrors, name2]);
|
|
31017
31169
|
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;
|
|
31018
|
-
return /* @__PURE__ */
|
|
31170
|
+
return /* @__PURE__ */ jsxs53(Fragment23, { children: [
|
|
31019
31171
|
/* @__PURE__ */ jsx83(
|
|
31020
31172
|
DatePicker,
|
|
31021
31173
|
{
|
|
@@ -31082,7 +31234,7 @@ var DateField = (props) => {
|
|
|
31082
31234
|
increaseMonth,
|
|
31083
31235
|
prevMonthButtonDisabled,
|
|
31084
31236
|
nextMonthButtonDisabled
|
|
31085
|
-
}) => /* @__PURE__ */
|
|
31237
|
+
}) => /* @__PURE__ */ jsxs53(
|
|
31086
31238
|
"div",
|
|
31087
31239
|
{
|
|
31088
31240
|
style: {
|
|
@@ -31175,11 +31327,11 @@ var DateField = (props) => {
|
|
|
31175
31327
|
};
|
|
31176
31328
|
|
|
31177
31329
|
// src/widgets/basic/download-binary-field/download-binary.tsx
|
|
31178
|
-
import { jsx as jsx84, jsxs as
|
|
31330
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
31179
31331
|
var DownLoadBinaryField = (props) => {
|
|
31180
31332
|
const { handleFileDownload } = props;
|
|
31181
31333
|
const { t: t3 } = useI18n();
|
|
31182
|
-
return /* @__PURE__ */
|
|
31334
|
+
return /* @__PURE__ */ jsxs54(
|
|
31183
31335
|
"button",
|
|
31184
31336
|
{
|
|
31185
31337
|
type: "button",
|
|
@@ -31194,7 +31346,7 @@ var DownLoadBinaryField = (props) => {
|
|
|
31194
31346
|
};
|
|
31195
31347
|
|
|
31196
31348
|
// src/widgets/basic/download-file-field/download-file.tsx
|
|
31197
|
-
import { jsx as jsx85, jsxs as
|
|
31349
|
+
import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
31198
31350
|
var DownloadFileField = (props) => {
|
|
31199
31351
|
const {
|
|
31200
31352
|
readonly,
|
|
@@ -31206,8 +31358,8 @@ var DownloadFileField = (props) => {
|
|
|
31206
31358
|
handleFileChange,
|
|
31207
31359
|
handleFileDownload
|
|
31208
31360
|
} = props;
|
|
31209
|
-
return /* @__PURE__ */
|
|
31210
|
-
/* @__PURE__ */
|
|
31361
|
+
return /* @__PURE__ */ jsxs55("div", { className: "", children: [
|
|
31362
|
+
/* @__PURE__ */ jsxs55(
|
|
31211
31363
|
"label",
|
|
31212
31364
|
{
|
|
31213
31365
|
htmlFor: inputId,
|
|
@@ -31242,7 +31394,7 @@ var DownloadFileField = (props) => {
|
|
|
31242
31394
|
|
|
31243
31395
|
// src/widgets/basic/dropdown-field/dropdown.tsx
|
|
31244
31396
|
import { useState as useState16 } from "react";
|
|
31245
|
-
import { jsx as jsx86, jsxs as
|
|
31397
|
+
import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
31246
31398
|
var DropdownField = (props) => {
|
|
31247
31399
|
const {
|
|
31248
31400
|
options: options2,
|
|
@@ -31256,14 +31408,14 @@ var DropdownField = (props) => {
|
|
|
31256
31408
|
} = props;
|
|
31257
31409
|
const [open, setOpen] = useState16(false);
|
|
31258
31410
|
const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
|
|
31259
|
-
return /* @__PURE__ */
|
|
31411
|
+
return /* @__PURE__ */ jsxs56(
|
|
31260
31412
|
"div",
|
|
31261
31413
|
{
|
|
31262
31414
|
ref: dropdownRef,
|
|
31263
31415
|
className: `relative ${className}`,
|
|
31264
31416
|
onClick: () => setOpen(!open),
|
|
31265
31417
|
children: [
|
|
31266
|
-
/* @__PURE__ */
|
|
31418
|
+
/* @__PURE__ */ jsxs56(
|
|
31267
31419
|
"div",
|
|
31268
31420
|
{
|
|
31269
31421
|
className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
|
|
@@ -31299,7 +31451,7 @@ var DropdownField = (props) => {
|
|
|
31299
31451
|
};
|
|
31300
31452
|
|
|
31301
31453
|
// src/widgets/basic/fee-field/fee.tsx
|
|
31302
|
-
import { Fragment as Fragment24, jsx as jsx87, jsxs as
|
|
31454
|
+
import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
31303
31455
|
var FeeField = (props) => {
|
|
31304
31456
|
const { value, formValues } = props;
|
|
31305
31457
|
const { t: t3 } = useI18n();
|
|
@@ -31310,23 +31462,23 @@ var FeeField = (props) => {
|
|
|
31310
31462
|
)
|
|
31311
31463
|
) + " VND";
|
|
31312
31464
|
const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
|
|
31313
|
-
return /* @__PURE__ */
|
|
31465
|
+
return /* @__PURE__ */ jsxs57(Fragment24, { children: [
|
|
31314
31466
|
value?.subtotals?.map((sub) => {
|
|
31315
31467
|
if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
|
|
31316
|
-
return /* @__PURE__ */
|
|
31317
|
-
/* @__PURE__ */
|
|
31318
|
-
/* @__PURE__ */
|
|
31468
|
+
return /* @__PURE__ */ jsxs57(Fragment24, { children: [
|
|
31469
|
+
/* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
|
|
31470
|
+
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31319
31471
|
sub?.name,
|
|
31320
31472
|
":"
|
|
31321
31473
|
] }),
|
|
31322
31474
|
/* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
|
|
31323
31475
|
] }),
|
|
31324
|
-
sub?.tax_groups.map((group) => /* @__PURE__ */
|
|
31476
|
+
sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
|
|
31325
31477
|
"div",
|
|
31326
31478
|
{
|
|
31327
31479
|
className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
|
|
31328
31480
|
children: [
|
|
31329
|
-
/* @__PURE__ */
|
|
31481
|
+
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31330
31482
|
group?.group_name,
|
|
31331
31483
|
":"
|
|
31332
31484
|
] }),
|
|
@@ -31338,22 +31490,22 @@ var FeeField = (props) => {
|
|
|
31338
31490
|
] });
|
|
31339
31491
|
}
|
|
31340
31492
|
}),
|
|
31341
|
-
/* @__PURE__ */
|
|
31342
|
-
/* @__PURE__ */
|
|
31493
|
+
/* @__PURE__ */ jsxs57("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", children: [
|
|
31494
|
+
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31343
31495
|
t3("total"),
|
|
31344
31496
|
":"
|
|
31345
31497
|
] }),
|
|
31346
31498
|
/* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
|
|
31347
31499
|
] }),
|
|
31348
|
-
/* @__PURE__ */
|
|
31349
|
-
/* @__PURE__ */
|
|
31500
|
+
/* @__PURE__ */ jsxs57("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: [
|
|
31501
|
+
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31350
31502
|
t3("paid_amount"),
|
|
31351
31503
|
":"
|
|
31352
31504
|
] }),
|
|
31353
31505
|
/* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
|
|
31354
31506
|
] }),
|
|
31355
|
-
/* @__PURE__ */
|
|
31356
|
-
/* @__PURE__ */
|
|
31507
|
+
/* @__PURE__ */ jsxs57("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: [
|
|
31508
|
+
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
31357
31509
|
t3("remanining_amount"),
|
|
31358
31510
|
":"
|
|
31359
31511
|
] }),
|
|
@@ -31364,7 +31516,7 @@ var FeeField = (props) => {
|
|
|
31364
31516
|
|
|
31365
31517
|
// src/widgets/basic/file-upload-field/file-upload.tsx
|
|
31366
31518
|
import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
|
|
31367
|
-
import { jsx as jsx88, jsxs as
|
|
31519
|
+
import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
31368
31520
|
var RenderFile = ({
|
|
31369
31521
|
file,
|
|
31370
31522
|
onDelete,
|
|
@@ -31380,9 +31532,9 @@ var RenderFile = ({
|
|
|
31380
31532
|
"application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
|
|
31381
31533
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
|
|
31382
31534
|
};
|
|
31383
|
-
return /* @__PURE__ */
|
|
31535
|
+
return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
|
|
31384
31536
|
/* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
|
|
31385
|
-
/* @__PURE__ */
|
|
31537
|
+
/* @__PURE__ */ jsxs58("div", { children: [
|
|
31386
31538
|
/* @__PURE__ */ jsx88(
|
|
31387
31539
|
"div",
|
|
31388
31540
|
{
|
|
@@ -31395,7 +31547,7 @@ var RenderFile = ({
|
|
|
31395
31547
|
),
|
|
31396
31548
|
/* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
|
|
31397
31549
|
] }),
|
|
31398
|
-
/* @__PURE__ */
|
|
31550
|
+
/* @__PURE__ */ jsxs58("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: [
|
|
31399
31551
|
/* @__PURE__ */ jsx88(
|
|
31400
31552
|
"span",
|
|
31401
31553
|
{
|
|
@@ -31465,7 +31617,7 @@ var FileUploadField = (props) => {
|
|
|
31465
31617
|
);
|
|
31466
31618
|
}
|
|
31467
31619
|
}, [selectedFiles]);
|
|
31468
|
-
return /* @__PURE__ */
|
|
31620
|
+
return /* @__PURE__ */ jsxs58("div", { children: [
|
|
31469
31621
|
selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
|
|
31470
31622
|
RenderFile,
|
|
31471
31623
|
{
|
|
@@ -31506,7 +31658,7 @@ var FileUploadField = (props) => {
|
|
|
31506
31658
|
|
|
31507
31659
|
// src/widgets/basic/float-field/float.tsx
|
|
31508
31660
|
import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
|
|
31509
|
-
import { Fragment as Fragment25, jsx as jsx89, jsxs as
|
|
31661
|
+
import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
31510
31662
|
var FloatField = (props) => {
|
|
31511
31663
|
const {
|
|
31512
31664
|
name: name2,
|
|
@@ -31631,7 +31783,7 @@ var FloatField = (props) => {
|
|
|
31631
31783
|
}
|
|
31632
31784
|
isDirtyRef.current = false;
|
|
31633
31785
|
};
|
|
31634
|
-
return /* @__PURE__ */
|
|
31786
|
+
return /* @__PURE__ */ jsxs59(Fragment25, { children: [
|
|
31635
31787
|
/* @__PURE__ */ jsx89(
|
|
31636
31788
|
"input",
|
|
31637
31789
|
{
|
|
@@ -31661,7 +31813,7 @@ var FloatField = (props) => {
|
|
|
31661
31813
|
|
|
31662
31814
|
// src/widgets/basic/float-time-field/float-time.tsx
|
|
31663
31815
|
import { useState as useState19 } from "react";
|
|
31664
|
-
import { Fragment as Fragment26, jsx as jsx90, jsxs as
|
|
31816
|
+
import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
31665
31817
|
var FloatTimeField = (props) => {
|
|
31666
31818
|
const {
|
|
31667
31819
|
name: name2,
|
|
@@ -31741,7 +31893,7 @@ var FloatTimeField = (props) => {
|
|
|
31741
31893
|
}
|
|
31742
31894
|
onBlur();
|
|
31743
31895
|
};
|
|
31744
|
-
return /* @__PURE__ */
|
|
31896
|
+
return /* @__PURE__ */ jsxs60(Fragment26, { children: [
|
|
31745
31897
|
/* @__PURE__ */ jsx90(
|
|
31746
31898
|
"input",
|
|
31747
31899
|
{
|
|
@@ -31851,7 +32003,7 @@ var ImageField = (props) => {
|
|
|
31851
32003
|
import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
|
|
31852
32004
|
|
|
31853
32005
|
// src/widgets/basic/information-field/information.tsx
|
|
31854
|
-
import { Fragment as Fragment27, jsx as jsx93, jsxs as
|
|
32006
|
+
import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
31855
32007
|
var InfomationField = (props) => {
|
|
31856
32008
|
const { value, isForm = false, showName = true, stringToColor } = props;
|
|
31857
32009
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
@@ -31867,7 +32019,7 @@ var InfomationField = (props) => {
|
|
|
31867
32019
|
stringToColor
|
|
31868
32020
|
},
|
|
31869
32021
|
item.id
|
|
31870
|
-
)) : /* @__PURE__ */
|
|
32022
|
+
)) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
|
|
31871
32023
|
/* @__PURE__ */ jsx93(
|
|
31872
32024
|
AvatarField,
|
|
31873
32025
|
{
|
|
@@ -31883,7 +32035,7 @@ var InfomationField = (props) => {
|
|
|
31883
32035
|
};
|
|
31884
32036
|
|
|
31885
32037
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
31886
|
-
import { jsx as jsx94, jsxs as
|
|
32038
|
+
import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
31887
32039
|
var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
31888
32040
|
const { selectProps, data, menuList } = props;
|
|
31889
32041
|
const { relation } = selectProps;
|
|
@@ -31892,7 +32044,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
31892
32044
|
(childItem) => childItem?.is_display && childItem?.action?.res_model === relation
|
|
31893
32045
|
)
|
|
31894
32046
|
)?.[0]?.action?.id;
|
|
31895
|
-
return /* @__PURE__ */
|
|
32047
|
+
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
|
|
31896
32048
|
/* @__PURE__ */ jsx94(
|
|
31897
32049
|
AvatarField,
|
|
31898
32050
|
{
|
|
@@ -31924,9 +32076,9 @@ var CustomMenuList = (props) => {
|
|
|
31924
32076
|
const { setIsShowModalMany2Many, searchable } = selectProps;
|
|
31925
32077
|
const { t: t3 } = useI18n();
|
|
31926
32078
|
const limitedChildren = React16.Children.toArray(children).slice(0, 10);
|
|
31927
|
-
return /* @__PURE__ */
|
|
32079
|
+
return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
|
|
31928
32080
|
limitedChildren,
|
|
31929
|
-
options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */
|
|
32081
|
+
options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
|
|
31930
32082
|
"button",
|
|
31931
32083
|
{
|
|
31932
32084
|
type: "button",
|
|
@@ -32016,7 +32168,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32016
32168
|
onChange2?.(name2 ?? "", newValue);
|
|
32017
32169
|
clearErrors(name2);
|
|
32018
32170
|
};
|
|
32019
|
-
return /* @__PURE__ */
|
|
32171
|
+
return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
|
|
32020
32172
|
/* @__PURE__ */ jsx94(
|
|
32021
32173
|
StateManagedSelect$1,
|
|
32022
32174
|
{
|
|
@@ -32130,7 +32282,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32130
32282
|
|
|
32131
32283
|
// src/widgets/basic/monetary-field/monetary.tsx
|
|
32132
32284
|
import { useEffect as useEffect22 } from "react";
|
|
32133
|
-
import { Fragment as Fragment28, jsx as jsx95, jsxs as
|
|
32285
|
+
import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
32134
32286
|
var MonetaryField = (props) => {
|
|
32135
32287
|
const { t: t3 } = useI18n();
|
|
32136
32288
|
const {
|
|
@@ -32150,8 +32302,8 @@ var MonetaryField = (props) => {
|
|
|
32150
32302
|
isEditTable
|
|
32151
32303
|
} = props;
|
|
32152
32304
|
if (isForm && name2 === "amount_residual") {
|
|
32153
|
-
return /* @__PURE__ */
|
|
32154
|
-
/* @__PURE__ */
|
|
32305
|
+
return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
|
|
32306
|
+
/* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
|
|
32155
32307
|
string,
|
|
32156
32308
|
":"
|
|
32157
32309
|
] }),
|
|
@@ -32188,7 +32340,7 @@ var MonetaryField = (props) => {
|
|
|
32188
32340
|
clearErrors(name2);
|
|
32189
32341
|
}
|
|
32190
32342
|
}, [value2]);
|
|
32191
|
-
return /* @__PURE__ */
|
|
32343
|
+
return /* @__PURE__ */ jsxs63(Fragment28, { children: [
|
|
32192
32344
|
/* @__PURE__ */ jsx95(
|
|
32193
32345
|
"input",
|
|
32194
32346
|
{
|
|
@@ -32242,7 +32394,7 @@ var PaidBadgedField = () => {
|
|
|
32242
32394
|
|
|
32243
32395
|
// src/widgets/basic/priority-field/rating-star.tsx
|
|
32244
32396
|
import React17, { useEffect as useEffect23, useState as useState20 } from "react";
|
|
32245
|
-
import { jsx as jsx97, jsxs as
|
|
32397
|
+
import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
32246
32398
|
var RatingStarField = (props) => {
|
|
32247
32399
|
const {
|
|
32248
32400
|
label,
|
|
@@ -32287,7 +32439,7 @@ var RatingStarField = (props) => {
|
|
|
32287
32439
|
const starValue = index4 + 1;
|
|
32288
32440
|
const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
|
|
32289
32441
|
const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
|
|
32290
|
-
return /* @__PURE__ */
|
|
32442
|
+
return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
|
|
32291
32443
|
/* @__PURE__ */ jsx97(
|
|
32292
32444
|
"div",
|
|
32293
32445
|
{
|
|
@@ -32367,7 +32519,7 @@ var PriorityField = (props) => {
|
|
|
32367
32519
|
|
|
32368
32520
|
// src/widgets/basic/radio-group-field/radio-group.tsx
|
|
32369
32521
|
import { useEffect as useEffect24 } from "react";
|
|
32370
|
-
import { jsx as jsx99, jsxs as
|
|
32522
|
+
import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
32371
32523
|
var RadioGroupField = (props) => {
|
|
32372
32524
|
const {
|
|
32373
32525
|
name: name2,
|
|
@@ -32391,7 +32543,7 @@ var RadioGroupField = (props) => {
|
|
|
32391
32543
|
{
|
|
32392
32544
|
name: name2 ?? "",
|
|
32393
32545
|
control: methods.control,
|
|
32394
|
-
render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */
|
|
32546
|
+
render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
|
|
32395
32547
|
/* @__PURE__ */ jsx99(
|
|
32396
32548
|
"input",
|
|
32397
32549
|
{
|
|
@@ -32419,7 +32571,7 @@ var RadioGroupField = (props) => {
|
|
|
32419
32571
|
|
|
32420
32572
|
// src/widgets/basic/remaining-days-field/remaining-days.tsx
|
|
32421
32573
|
var import_moment3 = __toESM(require_moment());
|
|
32422
|
-
import { jsx as jsx100, jsxs as
|
|
32574
|
+
import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
32423
32575
|
var RemainingDaysField = (props) => {
|
|
32424
32576
|
const {
|
|
32425
32577
|
value,
|
|
@@ -32430,7 +32582,7 @@ var RemainingDaysField = (props) => {
|
|
|
32430
32582
|
if (!value) return null;
|
|
32431
32583
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
32432
32584
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
32433
|
-
return /* @__PURE__ */
|
|
32585
|
+
return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
|
|
32434
32586
|
/* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
32435
32587
|
/* @__PURE__ */ jsx100(
|
|
32436
32588
|
"div",
|
|
@@ -32450,7 +32602,7 @@ var RemainingDaysField = (props) => {
|
|
|
32450
32602
|
};
|
|
32451
32603
|
|
|
32452
32604
|
// src/widgets/basic/select-dropdown-field/select-dropdown.tsx
|
|
32453
|
-
import { Fragment as Fragment29, jsx as jsx101, jsxs as
|
|
32605
|
+
import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
32454
32606
|
var SelectDropdownField = (props) => {
|
|
32455
32607
|
const { t: t3 } = useI18n();
|
|
32456
32608
|
const {
|
|
@@ -32501,7 +32653,7 @@ var SelectDropdownField = (props) => {
|
|
|
32501
32653
|
value: defaultValue || null,
|
|
32502
32654
|
required: !invisible && required
|
|
32503
32655
|
};
|
|
32504
|
-
return /* @__PURE__ */
|
|
32656
|
+
return /* @__PURE__ */ jsxs67(Fragment29, { children: [
|
|
32505
32657
|
/* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
|
|
32506
32658
|
StateManagedSelect$1,
|
|
32507
32659
|
{
|
|
@@ -32613,7 +32765,7 @@ var TextAreaField = (props) => {
|
|
|
32613
32765
|
};
|
|
32614
32766
|
|
|
32615
32767
|
// src/widgets/basic/toggle-button-field/toggle-button.tsx
|
|
32616
|
-
import { jsx as jsx103, jsxs as
|
|
32768
|
+
import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
32617
32769
|
var ToggleButtonField = (props) => {
|
|
32618
32770
|
const {
|
|
32619
32771
|
name: name2,
|
|
@@ -32628,7 +32780,7 @@ var ToggleButtonField = (props) => {
|
|
|
32628
32780
|
{
|
|
32629
32781
|
name: name2 ?? "",
|
|
32630
32782
|
control: methods?.control,
|
|
32631
|
-
render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */
|
|
32783
|
+
render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
|
|
32632
32784
|
/* @__PURE__ */ jsx103(
|
|
32633
32785
|
"input",
|
|
32634
32786
|
{
|
|
@@ -32682,7 +32834,7 @@ var ToggleButtonField = (props) => {
|
|
|
32682
32834
|
|
|
32683
32835
|
// src/widgets/basic/integer-field/integer.tsx
|
|
32684
32836
|
import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
|
|
32685
|
-
import { Fragment as Fragment30, jsx as jsx104, jsxs as
|
|
32837
|
+
import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
32686
32838
|
var IntegerField = (props) => {
|
|
32687
32839
|
const {
|
|
32688
32840
|
name: name2,
|
|
@@ -32781,7 +32933,7 @@ var IntegerField = (props) => {
|
|
|
32781
32933
|
inputRef.current?.blur();
|
|
32782
32934
|
clearErrors(name2);
|
|
32783
32935
|
};
|
|
32784
|
-
return /* @__PURE__ */
|
|
32936
|
+
return /* @__PURE__ */ jsxs69(Fragment30, { children: [
|
|
32785
32937
|
/* @__PURE__ */ jsx104(
|
|
32786
32938
|
"input",
|
|
32787
32939
|
{
|
|
@@ -32825,7 +32977,7 @@ var IntegerField = (props) => {
|
|
|
32825
32977
|
};
|
|
32826
32978
|
|
|
32827
32979
|
// src/widgets/basic/status-dropdown-field/status-dropdown.tsx
|
|
32828
|
-
import { jsx as jsx105, jsxs as
|
|
32980
|
+
import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
32829
32981
|
var StatusDropdownField = (props) => {
|
|
32830
32982
|
const {
|
|
32831
32983
|
buttonRef,
|
|
@@ -32837,7 +32989,7 @@ var StatusDropdownField = (props) => {
|
|
|
32837
32989
|
handleClick,
|
|
32838
32990
|
colors: colors2
|
|
32839
32991
|
} = props;
|
|
32840
|
-
return /* @__PURE__ */
|
|
32992
|
+
return /* @__PURE__ */ jsxs70(
|
|
32841
32993
|
"div",
|
|
32842
32994
|
{
|
|
32843
32995
|
ref: buttonRef,
|
|
@@ -32853,14 +33005,14 @@ var StatusDropdownField = (props) => {
|
|
|
32853
33005
|
),
|
|
32854
33006
|
isOpen && /* @__PURE__ */ jsx105("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) => {
|
|
32855
33007
|
const isActive = item[0] == state;
|
|
32856
|
-
return /* @__PURE__ */
|
|
33008
|
+
return /* @__PURE__ */ jsxs70(
|
|
32857
33009
|
"div",
|
|
32858
33010
|
{
|
|
32859
33011
|
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" : ""}`,
|
|
32860
33012
|
onClick: () => handleClick(item[0]),
|
|
32861
33013
|
children: [
|
|
32862
33014
|
/* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
|
|
32863
|
-
/* @__PURE__ */
|
|
33015
|
+
/* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
|
|
32864
33016
|
/* @__PURE__ */ jsx105(
|
|
32865
33017
|
"div",
|
|
32866
33018
|
{
|
|
@@ -32880,9 +33032,9 @@ var StatusDropdownField = (props) => {
|
|
|
32880
33032
|
};
|
|
32881
33033
|
|
|
32882
33034
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
32883
|
-
import { createPortal as
|
|
33035
|
+
import { createPortal as createPortal6 } from "react-dom";
|
|
32884
33036
|
import { useEffect as useEffect26 } from "react";
|
|
32885
|
-
import { jsx as jsx106, jsxs as
|
|
33037
|
+
import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
32886
33038
|
var Many2ManyField = (props) => {
|
|
32887
33039
|
const { t: t3 } = useI18n();
|
|
32888
33040
|
const {
|
|
@@ -32955,8 +33107,8 @@ var Many2ManyField = (props) => {
|
|
|
32955
33107
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
32956
33108
|
};
|
|
32957
33109
|
}, [selectedTags]);
|
|
32958
|
-
return
|
|
32959
|
-
/* @__PURE__ */
|
|
33110
|
+
return createPortal6(
|
|
33111
|
+
/* @__PURE__ */ jsxs71(
|
|
32960
33112
|
"div",
|
|
32961
33113
|
{
|
|
32962
33114
|
style: {
|
|
@@ -32965,7 +33117,7 @@ var Many2ManyField = (props) => {
|
|
|
32965
33117
|
className: "fixed bottom-0 left-0 right-0 top-0",
|
|
32966
33118
|
children: [
|
|
32967
33119
|
/* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
32968
|
-
/* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */
|
|
33120
|
+
/* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
|
|
32969
33121
|
"div",
|
|
32970
33122
|
{
|
|
32971
33123
|
style: {
|
|
@@ -32973,11 +33125,11 @@ var Many2ManyField = (props) => {
|
|
|
32973
33125
|
},
|
|
32974
33126
|
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",
|
|
32975
33127
|
children: [
|
|
32976
|
-
/* @__PURE__ */
|
|
33128
|
+
/* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
32977
33129
|
/* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
|
|
32978
33130
|
/* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
|
|
32979
33131
|
] }),
|
|
32980
|
-
/* @__PURE__ */
|
|
33132
|
+
/* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
|
|
32981
33133
|
/* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
|
|
32982
33134
|
Search,
|
|
32983
33135
|
{
|
|
@@ -33037,7 +33189,7 @@ var Many2ManyField = (props) => {
|
|
|
33037
33189
|
"div",
|
|
33038
33190
|
{
|
|
33039
33191
|
className: `flex w-full items-center h-full overflow-auto `,
|
|
33040
|
-
children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */
|
|
33192
|
+
children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
|
|
33041
33193
|
"table",
|
|
33042
33194
|
{
|
|
33043
33195
|
className: `relative w-full bg-white custom-dropdown `,
|
|
@@ -33113,7 +33265,7 @@ var Many2ManyField = (props) => {
|
|
|
33113
33265
|
) }) })
|
|
33114
33266
|
}
|
|
33115
33267
|
) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
|
|
33116
|
-
/* @__PURE__ */
|
|
33268
|
+
/* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
|
|
33117
33269
|
isDisplayCheckbox && /* @__PURE__ */ jsx106(
|
|
33118
33270
|
"button",
|
|
33119
33271
|
{
|
|
@@ -33162,15 +33314,15 @@ var Many2ManyField = (props) => {
|
|
|
33162
33314
|
|
|
33163
33315
|
// src/widgets/basic/many2one-field/many2one.tsx
|
|
33164
33316
|
import React18, { useEffect as useEffect27 } from "react";
|
|
33165
|
-
import { Fragment as Fragment31, jsx as jsx107, jsxs as
|
|
33317
|
+
import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
33166
33318
|
var CustomMenuList2 = (props) => {
|
|
33167
33319
|
const { t: t3 } = useI18n();
|
|
33168
33320
|
const { options: options2, children, selectProps } = props;
|
|
33169
33321
|
const { setIsShowModalMany2Many, searchable } = selectProps;
|
|
33170
33322
|
const limitedChildren = React18.Children.toArray(children).slice(0, 10);
|
|
33171
|
-
return /* @__PURE__ */
|
|
33323
|
+
return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
|
|
33172
33324
|
limitedChildren,
|
|
33173
|
-
options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */
|
|
33325
|
+
options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
|
|
33174
33326
|
"button",
|
|
33175
33327
|
{
|
|
33176
33328
|
type: "button",
|
|
@@ -33213,7 +33365,7 @@ var Many2OneField = (props) => {
|
|
|
33213
33365
|
const { t: t3 } = useI18n();
|
|
33214
33366
|
if (!isForm && !isEditTable) {
|
|
33215
33367
|
const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
|
|
33216
|
-
return /* @__PURE__ */
|
|
33368
|
+
return /* @__PURE__ */ jsxs72(Fragment31, { children: [
|
|
33217
33369
|
allowShowDetail && renderDetail({
|
|
33218
33370
|
idToolTip: String(name2) + Number(index4),
|
|
33219
33371
|
model: options2?.model ?? relation,
|
|
@@ -33231,7 +33383,7 @@ var Many2OneField = (props) => {
|
|
|
33231
33383
|
)
|
|
33232
33384
|
] });
|
|
33233
33385
|
}
|
|
33234
|
-
return /* @__PURE__ */
|
|
33386
|
+
return /* @__PURE__ */ jsxs72(Fragment31, { children: [
|
|
33235
33387
|
allowShowDetail && renderDetail({
|
|
33236
33388
|
idToolTip: String(name2),
|
|
33237
33389
|
model: options2?.model ?? relation,
|
|
@@ -33269,7 +33421,7 @@ var Many2OneField = (props) => {
|
|
|
33269
33421
|
methods?.clearErrors(name2);
|
|
33270
33422
|
}
|
|
33271
33423
|
}, [selectedOption]);
|
|
33272
|
-
return /* @__PURE__ */
|
|
33424
|
+
return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
|
|
33273
33425
|
/* @__PURE__ */ jsx107(
|
|
33274
33426
|
StateManagedSelect$1,
|
|
33275
33427
|
{
|
|
@@ -33374,7 +33526,7 @@ var Many2OneField = (props) => {
|
|
|
33374
33526
|
};
|
|
33375
33527
|
|
|
33376
33528
|
// src/widgets/basic/status-bar-field/duration/duration.tsx
|
|
33377
|
-
import { jsx as jsx108, jsxs as
|
|
33529
|
+
import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
33378
33530
|
var StatusbarDurationField = (props) => {
|
|
33379
33531
|
const {
|
|
33380
33532
|
disabled,
|
|
@@ -33388,10 +33540,10 @@ var StatusbarDurationField = (props) => {
|
|
|
33388
33540
|
"div",
|
|
33389
33541
|
{
|
|
33390
33542
|
className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
|
|
33391
|
-
children: /* @__PURE__ */
|
|
33543
|
+
children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
|
|
33392
33544
|
/* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
|
|
33393
33545
|
const value = option?.id === defaultValue;
|
|
33394
|
-
return /* @__PURE__ */
|
|
33546
|
+
return /* @__PURE__ */ jsxs73(
|
|
33395
33547
|
"label",
|
|
33396
33548
|
{
|
|
33397
33549
|
onClick: () => !disabled && handleClick(option.id),
|
|
@@ -33426,7 +33578,7 @@ var StatusbarDurationField = (props) => {
|
|
|
33426
33578
|
}) }),
|
|
33427
33579
|
dataResponse?.records?.some(
|
|
33428
33580
|
(item) => item?.fold && item.id !== defaultValue
|
|
33429
|
-
) && /* @__PURE__ */
|
|
33581
|
+
) && /* @__PURE__ */ jsxs73(
|
|
33430
33582
|
"div",
|
|
33431
33583
|
{
|
|
33432
33584
|
onClick: () => setModalStatus(!modelStatus),
|
|
@@ -33464,7 +33616,7 @@ var StatusbarDurationField = (props) => {
|
|
|
33464
33616
|
|
|
33465
33617
|
// src/widgets/basic/status-bar-field/option/option.tsx
|
|
33466
33618
|
import { useMemo as useMemo11 } from "react";
|
|
33467
|
-
import { Fragment as Fragment32, jsx as jsx109, jsxs as
|
|
33619
|
+
import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
33468
33620
|
var StatusBarOptionField = (props) => {
|
|
33469
33621
|
const { selection, defaultValue } = props;
|
|
33470
33622
|
const memoizedStatusOptions = useMemo11(() => selection, [selection]);
|
|
@@ -33480,8 +33632,8 @@ var StatusBarOptionField = (props) => {
|
|
|
33480
33632
|
flexWrap: "wrap"
|
|
33481
33633
|
},
|
|
33482
33634
|
children: memoizedStatusOptions?.map((option, index4) => {
|
|
33483
|
-
return /* @__PURE__ */
|
|
33484
|
-
/* @__PURE__ */
|
|
33635
|
+
return /* @__PURE__ */ jsxs74(Fragment32, { children: [
|
|
33636
|
+
/* @__PURE__ */ jsxs74(
|
|
33485
33637
|
"div",
|
|
33486
33638
|
{
|
|
33487
33639
|
style: {
|
|
@@ -33600,7 +33752,7 @@ var ICCheck = () => {
|
|
|
33600
33752
|
};
|
|
33601
33753
|
|
|
33602
33754
|
// src/widgets/basic/date-option-field/date-option.tsx
|
|
33603
|
-
import { jsx as jsx110, jsxs as
|
|
33755
|
+
import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
33604
33756
|
var DateOptionField = (props) => {
|
|
33605
33757
|
const {
|
|
33606
33758
|
name: name2,
|
|
@@ -33616,7 +33768,7 @@ var DateOptionField = (props) => {
|
|
|
33616
33768
|
{
|
|
33617
33769
|
name: name2 ?? "",
|
|
33618
33770
|
control: methods?.control,
|
|
33619
|
-
render: ({ field }) => /* @__PURE__ */
|
|
33771
|
+
render: ({ field }) => /* @__PURE__ */ jsxs75(
|
|
33620
33772
|
"label",
|
|
33621
33773
|
{
|
|
33622
33774
|
className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
|