@fctc/sme-widget-ui 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14839,103 +14839,115 @@ var PopupFilter = ({
14839
14839
  setGroupBy,
14840
14840
  fields
14841
14841
  }) => {
14842
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14842
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
14843
14843
  "div",
14844
14844
  {
14845
- className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14846
- children: [
14847
- filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "filter-by w-full px-3", children: [
14848
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14849
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
14850
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14851
- ] }),
14852
- filterBy?.reduce((acc, item, index4, array) => {
14853
- const prevItem = array[index4 - 1];
14854
- const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14855
- const isExist = item?.active;
14856
- if (isDifferentGroup) {
14857
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("hr", { className: "my-2" }, "separator-" + index4));
14858
- }
14859
- acc.push(
14860
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14861
- "button",
14862
- {
14863
- 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)]"}`,
14864
- onClick: () => {
14865
- const newFilterBy = filterBy?.map(
14866
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14867
- );
14868
- setFilterBy(newFilterBy);
14869
- if (isExist) {
14870
- typeof removeSearchItems === "function" && removeSearchItems(
14871
- `${SearchType.FILTER}_${item.group_index}`,
14872
- item
14845
+ style: {
14846
+ position: "absolute",
14847
+ top: "calc(100% + 3px)",
14848
+ right: 0,
14849
+ zIndex: 33
14850
+ },
14851
+ className: "popup-filter w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl",
14852
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14853
+ "div",
14854
+ {
14855
+ className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14856
+ children: [
14857
+ filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "filter-by w-full px-3", children: [
14858
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14859
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
14860
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14861
+ ] }),
14862
+ filterBy?.reduce((acc, item, index4, array) => {
14863
+ const prevItem = array[index4 - 1];
14864
+ const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14865
+ const isExist = item?.active;
14866
+ if (isDifferentGroup) {
14867
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("hr", { className: "my-2" }, "separator-" + index4));
14868
+ }
14869
+ acc.push(
14870
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14871
+ "button",
14872
+ {
14873
+ 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)]"}`,
14874
+ onClick: () => {
14875
+ const newFilterBy = filterBy?.map(
14876
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14877
+ );
14878
+ setFilterBy(newFilterBy);
14879
+ if (isExist) {
14880
+ typeof removeSearchItems === "function" && removeSearchItems(
14881
+ `${SearchType.FILTER}_${item.group_index}`,
14882
+ item
14883
+ );
14884
+ return;
14885
+ }
14886
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14887
+ name: item?.name,
14888
+ value: item?.string ?? item?.help,
14889
+ domain: item?.domain,
14890
+ groupIndex: item?.group_index,
14891
+ type: SearchType.FILTER
14892
+ });
14893
+ },
14894
+ children: [
14895
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14896
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
14897
+ ]
14898
+ },
14899
+ "filter-" + index4
14900
+ )
14901
+ );
14902
+ return acc;
14903
+ }, [])
14904
+ ] }),
14905
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14906
+ groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "group-by w-full px-3", children: [
14907
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14908
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
14909
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14910
+ ] }),
14911
+ groupBy?.map((item, index4) => {
14912
+ const isExist = item?.active;
14913
+ if (!item.string) return;
14914
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14915
+ "button",
14916
+ {
14917
+ onClick: () => {
14918
+ const formatArray = groupBy.map(
14919
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14873
14920
  );
14874
- return;
14875
- }
14876
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14877
- name: item?.name,
14878
- value: item?.string ?? item?.help,
14879
- domain: item?.domain,
14880
- groupIndex: item?.group_index,
14881
- type: SearchType.FILTER
14882
- });
14921
+ setGroupBy(formatArray);
14922
+ if (isExist) {
14923
+ typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14924
+ return;
14925
+ }
14926
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14927
+ name: item?.name,
14928
+ value: item?.string,
14929
+ type: SearchType.GROUP,
14930
+ context: JSON.parse(item?.context.replace(/'/g, '"')),
14931
+ active: !isExist,
14932
+ dataIndex: index4,
14933
+ fieldsGroup: fields
14934
+ });
14935
+ },
14936
+ className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14937
+ children: [
14938
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14939
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string })
14940
+ ]
14883
14941
  },
14884
- children: [
14885
- isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14886
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
14887
- ]
14888
- },
14889
- "filter-" + index4
14890
- )
14891
- );
14892
- return acc;
14893
- }, [])
14894
- ] }),
14895
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14896
- groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "group-by w-full px-3", children: [
14897
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14898
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
14899
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14900
- ] }),
14901
- groupBy?.map((item, index4) => {
14902
- const isExist = item?.active;
14903
- if (!item.string) return;
14904
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14905
- "button",
14906
- {
14907
- onClick: () => {
14908
- const formatArray = groupBy.map(
14909
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14910
- );
14911
- setGroupBy(formatArray);
14912
- if (isExist) {
14913
- typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14914
- return;
14915
- }
14916
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14917
- name: item?.name,
14918
- value: item?.string,
14919
- type: SearchType.GROUP,
14920
- context: JSON.parse(item?.context.replace(/'/g, '"')),
14921
- active: !isExist,
14922
- dataIndex: index4,
14923
- fieldsGroup: fields
14924
- });
14925
- },
14926
- className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14927
- children: [
14928
- isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14929
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string })
14930
- ]
14931
- },
14932
- "groupby-" + index4 + 1
14933
- );
14934
- })
14935
- ] })
14936
- ]
14942
+ "groupby-" + index4 + 1
14943
+ );
14944
+ })
14945
+ ] })
14946
+ ]
14947
+ }
14948
+ )
14937
14949
  }
14938
- ) });
14950
+ );
14939
14951
  };
14940
14952
 
14941
14953
  // src/widgets/advanced/search/search-item/index.tsx
@@ -32233,7 +32245,7 @@ var DateField = (props) => {
32233
32245
  isForm2 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CalandarIcon, {})
32234
32246
  ] })
32235
32247
  );
32236
- if (!isForm) {
32248
+ if (!isForm && !isEditTable) {
32237
32249
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
32238
32250
  } else {
32239
32251
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
package/dist/index.mjs CHANGED
@@ -14720,103 +14720,115 @@ var PopupFilter = ({
14720
14720
  setGroupBy,
14721
14721
  fields
14722
14722
  }) => {
14723
- return /* @__PURE__ */ jsx54("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ jsxs35(
14723
+ return /* @__PURE__ */ jsx54(
14724
14724
  "div",
14725
14725
  {
14726
- className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14727
- children: [
14728
- filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
14729
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14730
- /* @__PURE__ */ jsx54(FilterIcon, { className: "filter-by-icon text-primary" }),
14731
- /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14732
- ] }),
14733
- filterBy?.reduce((acc, item, index4, array) => {
14734
- const prevItem = array[index4 - 1];
14735
- const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14736
- const isExist = item?.active;
14737
- if (isDifferentGroup) {
14738
- acc.push(/* @__PURE__ */ jsx54("hr", { className: "my-2" }, "separator-" + index4));
14739
- }
14740
- acc.push(
14741
- /* @__PURE__ */ jsxs35(
14742
- "button",
14743
- {
14744
- 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)]"}`,
14745
- onClick: () => {
14746
- const newFilterBy = filterBy?.map(
14747
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14748
- );
14749
- setFilterBy(newFilterBy);
14750
- if (isExist) {
14751
- typeof removeSearchItems === "function" && removeSearchItems(
14752
- `${SearchType.FILTER}_${item.group_index}`,
14753
- item
14726
+ style: {
14727
+ position: "absolute",
14728
+ top: "calc(100% + 3px)",
14729
+ right: 0,
14730
+ zIndex: 33
14731
+ },
14732
+ className: "popup-filter w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl",
14733
+ children: /* @__PURE__ */ jsxs35(
14734
+ "div",
14735
+ {
14736
+ className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14737
+ children: [
14738
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
14739
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14740
+ /* @__PURE__ */ jsx54(FilterIcon, { className: "filter-by-icon text-primary" }),
14741
+ /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14742
+ ] }),
14743
+ filterBy?.reduce((acc, item, index4, array) => {
14744
+ const prevItem = array[index4 - 1];
14745
+ const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14746
+ const isExist = item?.active;
14747
+ if (isDifferentGroup) {
14748
+ acc.push(/* @__PURE__ */ jsx54("hr", { className: "my-2" }, "separator-" + index4));
14749
+ }
14750
+ acc.push(
14751
+ /* @__PURE__ */ jsxs35(
14752
+ "button",
14753
+ {
14754
+ 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)]"}`,
14755
+ onClick: () => {
14756
+ const newFilterBy = filterBy?.map(
14757
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14758
+ );
14759
+ setFilterBy(newFilterBy);
14760
+ if (isExist) {
14761
+ typeof removeSearchItems === "function" && removeSearchItems(
14762
+ `${SearchType.FILTER}_${item.group_index}`,
14763
+ item
14764
+ );
14765
+ return;
14766
+ }
14767
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14768
+ name: item?.name,
14769
+ value: item?.string ?? item?.help,
14770
+ domain: item?.domain,
14771
+ groupIndex: item?.group_index,
14772
+ type: SearchType.FILTER
14773
+ });
14774
+ },
14775
+ children: [
14776
+ isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14777
+ /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string ?? item?.help })
14778
+ ]
14779
+ },
14780
+ "filter-" + index4
14781
+ )
14782
+ );
14783
+ return acc;
14784
+ }, [])
14785
+ ] }),
14786
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx54("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14787
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
14788
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14789
+ /* @__PURE__ */ jsx54(GroupByIcon, { className: "group-by-icon text-primary" }),
14790
+ /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14791
+ ] }),
14792
+ groupBy?.map((item, index4) => {
14793
+ const isExist = item?.active;
14794
+ if (!item.string) return;
14795
+ return /* @__PURE__ */ jsxs35(
14796
+ "button",
14797
+ {
14798
+ onClick: () => {
14799
+ const formatArray = groupBy.map(
14800
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14754
14801
  );
14755
- return;
14756
- }
14757
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14758
- name: item?.name,
14759
- value: item?.string ?? item?.help,
14760
- domain: item?.domain,
14761
- groupIndex: item?.group_index,
14762
- type: SearchType.FILTER
14763
- });
14802
+ setGroupBy(formatArray);
14803
+ if (isExist) {
14804
+ typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14805
+ return;
14806
+ }
14807
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14808
+ name: item?.name,
14809
+ value: item?.string,
14810
+ type: SearchType.GROUP,
14811
+ context: JSON.parse(item?.context.replace(/'/g, '"')),
14812
+ active: !isExist,
14813
+ dataIndex: index4,
14814
+ fieldsGroup: fields
14815
+ });
14816
+ },
14817
+ className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14818
+ children: [
14819
+ isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14820
+ /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string })
14821
+ ]
14764
14822
  },
14765
- children: [
14766
- isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14767
- /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string ?? item?.help })
14768
- ]
14769
- },
14770
- "filter-" + index4
14771
- )
14772
- );
14773
- return acc;
14774
- }, [])
14775
- ] }),
14776
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx54("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14777
- groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
14778
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14779
- /* @__PURE__ */ jsx54(GroupByIcon, { className: "group-by-icon text-primary" }),
14780
- /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14781
- ] }),
14782
- groupBy?.map((item, index4) => {
14783
- const isExist = item?.active;
14784
- if (!item.string) return;
14785
- return /* @__PURE__ */ jsxs35(
14786
- "button",
14787
- {
14788
- onClick: () => {
14789
- const formatArray = groupBy.map(
14790
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14791
- );
14792
- setGroupBy(formatArray);
14793
- if (isExist) {
14794
- typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14795
- return;
14796
- }
14797
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14798
- name: item?.name,
14799
- value: item?.string,
14800
- type: SearchType.GROUP,
14801
- context: JSON.parse(item?.context.replace(/'/g, '"')),
14802
- active: !isExist,
14803
- dataIndex: index4,
14804
- fieldsGroup: fields
14805
- });
14806
- },
14807
- className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14808
- children: [
14809
- isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14810
- /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string })
14811
- ]
14812
- },
14813
- "groupby-" + index4 + 1
14814
- );
14815
- })
14816
- ] })
14817
- ]
14823
+ "groupby-" + index4 + 1
14824
+ );
14825
+ })
14826
+ ] })
14827
+ ]
14828
+ }
14829
+ )
14818
14830
  }
14819
- ) });
14831
+ );
14820
14832
  };
14821
14833
 
14822
14834
  // src/widgets/advanced/search/search-item/index.tsx
@@ -32114,7 +32126,7 @@ var DateField = (props) => {
32114
32126
  isForm2 && /* @__PURE__ */ jsx79(CalandarIcon, {})
32115
32127
  ] })
32116
32128
  );
32117
- if (!isForm) {
32129
+ if (!isForm && !isEditTable) {
32118
32130
  return /* @__PURE__ */ jsx79("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
32119
32131
  } else {
32120
32132
  return /* @__PURE__ */ jsx79(
package/dist/widgets.js CHANGED
@@ -14484,103 +14484,115 @@ var PopupFilter = ({
14484
14484
  setGroupBy,
14485
14485
  fields
14486
14486
  }) => {
14487
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14487
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
14488
14488
  "div",
14489
14489
  {
14490
- className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14491
- children: [
14492
- filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "filter-by w-full px-3", children: [
14493
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14494
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
14495
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14496
- ] }),
14497
- filterBy?.reduce((acc, item, index4, array) => {
14498
- const prevItem = array[index4 - 1];
14499
- const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14500
- const isExist = item?.active;
14501
- if (isDifferentGroup) {
14502
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("hr", { className: "my-2" }, "separator-" + index4));
14503
- }
14504
- acc.push(
14505
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14506
- "button",
14507
- {
14508
- 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)]"}`,
14509
- onClick: () => {
14510
- const newFilterBy = filterBy?.map(
14511
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14512
- );
14513
- setFilterBy(newFilterBy);
14514
- if (isExist) {
14515
- typeof removeSearchItems === "function" && removeSearchItems(
14516
- `${SearchType.FILTER}_${item.group_index}`,
14517
- item
14490
+ style: {
14491
+ position: "absolute",
14492
+ top: "calc(100% + 3px)",
14493
+ right: 0,
14494
+ zIndex: 33
14495
+ },
14496
+ className: "popup-filter w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl",
14497
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14498
+ "div",
14499
+ {
14500
+ className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14501
+ children: [
14502
+ filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "filter-by w-full px-3", children: [
14503
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14504
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
14505
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14506
+ ] }),
14507
+ filterBy?.reduce((acc, item, index4, array) => {
14508
+ const prevItem = array[index4 - 1];
14509
+ const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14510
+ const isExist = item?.active;
14511
+ if (isDifferentGroup) {
14512
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("hr", { className: "my-2" }, "separator-" + index4));
14513
+ }
14514
+ acc.push(
14515
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14516
+ "button",
14517
+ {
14518
+ 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)]"}`,
14519
+ onClick: () => {
14520
+ const newFilterBy = filterBy?.map(
14521
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14522
+ );
14523
+ setFilterBy(newFilterBy);
14524
+ if (isExist) {
14525
+ typeof removeSearchItems === "function" && removeSearchItems(
14526
+ `${SearchType.FILTER}_${item.group_index}`,
14527
+ item
14528
+ );
14529
+ return;
14530
+ }
14531
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14532
+ name: item?.name,
14533
+ value: item?.string ?? item?.help,
14534
+ domain: item?.domain,
14535
+ groupIndex: item?.group_index,
14536
+ type: SearchType.FILTER
14537
+ });
14538
+ },
14539
+ children: [
14540
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14541
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
14542
+ ]
14543
+ },
14544
+ "filter-" + index4
14545
+ )
14546
+ );
14547
+ return acc;
14548
+ }, [])
14549
+ ] }),
14550
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14551
+ groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "group-by w-full px-3", children: [
14552
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14553
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
14554
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14555
+ ] }),
14556
+ groupBy?.map((item, index4) => {
14557
+ const isExist = item?.active;
14558
+ if (!item.string) return;
14559
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14560
+ "button",
14561
+ {
14562
+ onClick: () => {
14563
+ const formatArray = groupBy.map(
14564
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14518
14565
  );
14519
- return;
14520
- }
14521
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14522
- name: item?.name,
14523
- value: item?.string ?? item?.help,
14524
- domain: item?.domain,
14525
- groupIndex: item?.group_index,
14526
- type: SearchType.FILTER
14527
- });
14566
+ setGroupBy(formatArray);
14567
+ if (isExist) {
14568
+ typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14569
+ return;
14570
+ }
14571
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14572
+ name: item?.name,
14573
+ value: item?.string,
14574
+ type: SearchType.GROUP,
14575
+ context: JSON.parse(item?.context.replace(/'/g, '"')),
14576
+ active: !isExist,
14577
+ dataIndex: index4,
14578
+ fieldsGroup: fields
14579
+ });
14580
+ },
14581
+ className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14582
+ children: [
14583
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14584
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string })
14585
+ ]
14528
14586
  },
14529
- children: [
14530
- isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14531
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
14532
- ]
14533
- },
14534
- "filter-" + index4
14535
- )
14536
- );
14537
- return acc;
14538
- }, [])
14539
- ] }),
14540
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14541
- groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "group-by w-full px-3", children: [
14542
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14543
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
14544
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14545
- ] }),
14546
- groupBy?.map((item, index4) => {
14547
- const isExist = item?.active;
14548
- if (!item.string) return;
14549
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14550
- "button",
14551
- {
14552
- onClick: () => {
14553
- const formatArray = groupBy.map(
14554
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14555
- );
14556
- setGroupBy(formatArray);
14557
- if (isExist) {
14558
- typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14559
- return;
14560
- }
14561
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14562
- name: item?.name,
14563
- value: item?.string,
14564
- type: SearchType.GROUP,
14565
- context: JSON.parse(item?.context.replace(/'/g, '"')),
14566
- active: !isExist,
14567
- dataIndex: index4,
14568
- fieldsGroup: fields
14569
- });
14570
- },
14571
- className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14572
- children: [
14573
- isExist && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CheckIcon, {}),
14574
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm", children: item?.string })
14575
- ]
14576
- },
14577
- "groupby-" + index4 + 1
14578
- );
14579
- })
14580
- ] })
14581
- ]
14587
+ "groupby-" + index4 + 1
14588
+ );
14589
+ })
14590
+ ] })
14591
+ ]
14592
+ }
14593
+ )
14582
14594
  }
14583
- ) });
14595
+ );
14584
14596
  };
14585
14597
 
14586
14598
  // src/widgets/advanced/search/search-item/index.tsx
@@ -31878,7 +31890,7 @@ var DateField = (props) => {
31878
31890
  isForm2 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CalandarIcon, {})
31879
31891
  ] })
31880
31892
  );
31881
- if (!isForm) {
31893
+ if (!isForm && !isEditTable) {
31882
31894
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31883
31895
  } else {
31884
31896
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
package/dist/widgets.mjs CHANGED
@@ -14422,103 +14422,115 @@ var PopupFilter = ({
14422
14422
  setGroupBy,
14423
14423
  fields
14424
14424
  }) => {
14425
- return /* @__PURE__ */ jsx54("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ jsxs35(
14425
+ return /* @__PURE__ */ jsx54(
14426
14426
  "div",
14427
14427
  {
14428
- className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14429
- children: [
14430
- filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
14431
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14432
- /* @__PURE__ */ jsx54(FilterIcon, { className: "filter-by-icon text-primary" }),
14433
- /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14434
- ] }),
14435
- filterBy?.reduce((acc, item, index4, array) => {
14436
- const prevItem = array[index4 - 1];
14437
- const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14438
- const isExist = item?.active;
14439
- if (isDifferentGroup) {
14440
- acc.push(/* @__PURE__ */ jsx54("hr", { className: "my-2" }, "separator-" + index4));
14441
- }
14442
- acc.push(
14443
- /* @__PURE__ */ jsxs35(
14444
- "button",
14445
- {
14446
- 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)]"}`,
14447
- onClick: () => {
14448
- const newFilterBy = filterBy?.map(
14449
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14450
- );
14451
- setFilterBy(newFilterBy);
14452
- if (isExist) {
14453
- typeof removeSearchItems === "function" && removeSearchItems(
14454
- `${SearchType.FILTER}_${item.group_index}`,
14455
- item
14428
+ style: {
14429
+ position: "absolute",
14430
+ top: "calc(100% + 3px)",
14431
+ right: 0,
14432
+ zIndex: 33
14433
+ },
14434
+ className: "popup-filter w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl",
14435
+ children: /* @__PURE__ */ jsxs35(
14436
+ "div",
14437
+ {
14438
+ className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14439
+ children: [
14440
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
14441
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14442
+ /* @__PURE__ */ jsx54(FilterIcon, { className: "filter-by-icon text-primary" }),
14443
+ /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14444
+ ] }),
14445
+ filterBy?.reduce((acc, item, index4, array) => {
14446
+ const prevItem = array[index4 - 1];
14447
+ const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14448
+ const isExist = item?.active;
14449
+ if (isDifferentGroup) {
14450
+ acc.push(/* @__PURE__ */ jsx54("hr", { className: "my-2" }, "separator-" + index4));
14451
+ }
14452
+ acc.push(
14453
+ /* @__PURE__ */ jsxs35(
14454
+ "button",
14455
+ {
14456
+ 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)]"}`,
14457
+ onClick: () => {
14458
+ const newFilterBy = filterBy?.map(
14459
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14460
+ );
14461
+ setFilterBy(newFilterBy);
14462
+ if (isExist) {
14463
+ typeof removeSearchItems === "function" && removeSearchItems(
14464
+ `${SearchType.FILTER}_${item.group_index}`,
14465
+ item
14466
+ );
14467
+ return;
14468
+ }
14469
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14470
+ name: item?.name,
14471
+ value: item?.string ?? item?.help,
14472
+ domain: item?.domain,
14473
+ groupIndex: item?.group_index,
14474
+ type: SearchType.FILTER
14475
+ });
14476
+ },
14477
+ children: [
14478
+ isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14479
+ /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string ?? item?.help })
14480
+ ]
14481
+ },
14482
+ "filter-" + index4
14483
+ )
14484
+ );
14485
+ return acc;
14486
+ }, [])
14487
+ ] }),
14488
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx54("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14489
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
14490
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14491
+ /* @__PURE__ */ jsx54(GroupByIcon, { className: "group-by-icon text-primary" }),
14492
+ /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14493
+ ] }),
14494
+ groupBy?.map((item, index4) => {
14495
+ const isExist = item?.active;
14496
+ if (!item.string) return;
14497
+ return /* @__PURE__ */ jsxs35(
14498
+ "button",
14499
+ {
14500
+ onClick: () => {
14501
+ const formatArray = groupBy.map(
14502
+ (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14456
14503
  );
14457
- return;
14458
- }
14459
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14460
- name: item?.name,
14461
- value: item?.string ?? item?.help,
14462
- domain: item?.domain,
14463
- groupIndex: item?.group_index,
14464
- type: SearchType.FILTER
14465
- });
14504
+ setGroupBy(formatArray);
14505
+ if (isExist) {
14506
+ typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14507
+ return;
14508
+ }
14509
+ typeof handleAddTagSearch === "function" && handleAddTagSearch({
14510
+ name: item?.name,
14511
+ value: item?.string,
14512
+ type: SearchType.GROUP,
14513
+ context: JSON.parse(item?.context.replace(/'/g, '"')),
14514
+ active: !isExist,
14515
+ dataIndex: index4,
14516
+ fieldsGroup: fields
14517
+ });
14518
+ },
14519
+ className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14520
+ children: [
14521
+ isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14522
+ /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string })
14523
+ ]
14466
14524
  },
14467
- children: [
14468
- isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14469
- /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string ?? item?.help })
14470
- ]
14471
- },
14472
- "filter-" + index4
14473
- )
14474
- );
14475
- return acc;
14476
- }, [])
14477
- ] }),
14478
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx54("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14479
- groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
14480
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14481
- /* @__PURE__ */ jsx54(GroupByIcon, { className: "group-by-icon text-primary" }),
14482
- /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14483
- ] }),
14484
- groupBy?.map((item, index4) => {
14485
- const isExist = item?.active;
14486
- if (!item.string) return;
14487
- return /* @__PURE__ */ jsxs35(
14488
- "button",
14489
- {
14490
- onClick: () => {
14491
- const formatArray = groupBy.map(
14492
- (tag) => tag?.name === item?.name ? { ...tag, active: !tag?.active } : tag
14493
- );
14494
- setGroupBy(formatArray);
14495
- if (isExist) {
14496
- typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`, item);
14497
- return;
14498
- }
14499
- typeof handleAddTagSearch === "function" && handleAddTagSearch({
14500
- name: item?.name,
14501
- value: item?.string,
14502
- type: SearchType.GROUP,
14503
- context: JSON.parse(item?.context.replace(/'/g, '"')),
14504
- active: !isExist,
14505
- dataIndex: index4,
14506
- fieldsGroup: fields
14507
- });
14508
- },
14509
- className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
14510
- children: [
14511
- isExist && /* @__PURE__ */ jsx54(CheckIcon, {}),
14512
- /* @__PURE__ */ jsx54("span", { className: "text-sm", children: item?.string })
14513
- ]
14514
- },
14515
- "groupby-" + index4 + 1
14516
- );
14517
- })
14518
- ] })
14519
- ]
14525
+ "groupby-" + index4 + 1
14526
+ );
14527
+ })
14528
+ ] })
14529
+ ]
14530
+ }
14531
+ )
14520
14532
  }
14521
- ) });
14533
+ );
14522
14534
  };
14523
14535
 
14524
14536
  // src/widgets/advanced/search/search-item/index.tsx
@@ -31816,7 +31828,7 @@ var DateField = (props) => {
31816
31828
  isForm2 && /* @__PURE__ */ jsx79(CalandarIcon, {})
31817
31829
  ] })
31818
31830
  );
31819
- if (!isForm) {
31831
+ if (!isForm && !isEditTable) {
31820
31832
  return /* @__PURE__ */ jsx79("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31821
31833
  } else {
31822
31834
  return /* @__PURE__ */ jsx79(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -64,7 +64,7 @@
64
64
  "react-select": "^5.10.1",
65
65
  "react-toastify": "^11.0.5",
66
66
  "react-tooltip": "^5.28.0",
67
- "tailwindcss": "3.4.3",
67
+ "tailwindcss": "^3",
68
68
  "tsup": "^8.0.0",
69
69
  "typescript": "^5.8.2"
70
70
  }
package/dist/.babelrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env",
4
- "@babel/preset-react",
5
- "@babel/preset-typescript"
6
- ]
7
- }
@@ -1,10 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- end_of_line = lf
5
- insert_final_newline = true
6
-
7
- [*.{js,json,yml}]
8
- charset = utf-8
9
- indent_style = space
10
- indent_size = 2
@@ -1,6 +0,0 @@
1
- dist
2
- .cache
3
- package-lock.json
4
- public
5
- node_modules
6
- yarn.lock
@@ -1,66 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:prettier/recommended',
8
- ],
9
- ignorePatterns: ['dist', '.eslintrc.cjs', 'commitlint.config.cjs'],
10
- parser: '@typescript-eslint/parser',
11
- overrides: [
12
- {
13
- files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs'],
14
- plugins: [
15
- '@typescript-eslint',
16
- 'unused-imports',
17
- 'simple-import-sort',
18
- 'react-refresh',
19
- ],
20
- rules: {
21
- 'react-refresh/only-export-components': [
22
- 'warn',
23
- { allowConstantExport: true },
24
- ],
25
- 'import/prefer-default-export': 'off',
26
- 'simple-import-sort/imports': [
27
- 'error',
28
- {
29
- groups: [
30
- // Packages `react` related packages come first.
31
- ['^react', '^@?\\w'],
32
- // Internal packages.
33
- ['^(@|components)(/.*|$)'],
34
- // Side effect imports.
35
- ['^\\u0000'],
36
- // Parent imports. Put `..` last.
37
- ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
38
- // Other relative imports. Put same-folder imports and `.` last.
39
- ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
40
- // Style imports.
41
- ['^.+\\.?(css)$'],
42
- ],
43
- },
44
- ],
45
- 'prettier/prettier': [
46
- 'error',
47
- {
48
- endOfLine: 'auto',
49
- },
50
- ],
51
- 'react/react-in-jsx-scope': 'off',
52
- 'no-param-reassign': 'off',
53
- 'simple-import-sort/exports': 'error',
54
- '@typescript-eslint/no-unused-vars': 'off',
55
- '@typescript-eslint/no-non-null-assertion': 'off',
56
- '@typescript-eslint/no-explicit-any': 'off',
57
- '@typescript-eslint/ban-ts-comment': 'off',
58
- '@typescript-eslint/ban-types': 'off',
59
- 'unused-imports/no-unused-imports': 'error',
60
- 'unused-imports/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
61
- 'no-plusplus': 'off',
62
- 'no-case-declarations': 'off',
63
- },
64
- },
65
- ],
66
- }
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated
package/dist/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "semi": false
4
- }