@fctc/sme-widget-ui 2.7.3 → 2.7.5
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.css +1 -1
- package/dist/index.js +176 -168
- package/dist/index.mjs +177 -169
- package/dist/widgets.css +1 -1
- package/dist/widgets.d.mts +1 -1
- package/dist/widgets.d.ts +1 -1
- package/dist/widgets.js +257 -249
- package/dist/widgets.mjs +249 -241
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15262,9 +15262,12 @@ var Button = React2.forwardRef(
|
|
|
15262
15262
|
return /* @__PURE__ */ jsx54(
|
|
15263
15263
|
"button",
|
|
15264
15264
|
{
|
|
15265
|
+
style: {
|
|
15266
|
+
background: "#008F3C"
|
|
15267
|
+
},
|
|
15265
15268
|
className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
15266
15269
|
transition-all duration-200 focus-visible:outline-none focus-visible:ring-1
|
|
15267
|
-
disabled:pointer-events-none disabled:opacity-50 px-8 py-3 border
|
|
15270
|
+
disabled:pointer-events-none disabled:opacity-50 px-8 py-3 border text-white
|
|
15268
15271
|
${isLoading ? "bg-opacity-50 cursor-not-allowed" : "hover:bg-opacity-75 active:scale-95 cursor-pointer"}`} ${className}`,
|
|
15269
15272
|
ref,
|
|
15270
15273
|
type,
|
|
@@ -15548,7 +15551,7 @@ var PopupFilter = ({
|
|
|
15548
15551
|
right: 0,
|
|
15549
15552
|
zIndex: 33
|
|
15550
15553
|
},
|
|
15551
|
-
className: "popup-filter w-full overflow-x-auto rounded-lg border
|
|
15554
|
+
className: "popup-filter w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl",
|
|
15552
15555
|
children: /* @__PURE__ */ jsxs38(
|
|
15553
15556
|
"div",
|
|
15554
15557
|
{
|
|
@@ -15651,38 +15654,123 @@ var PopupFilter = ({
|
|
|
15651
15654
|
};
|
|
15652
15655
|
|
|
15653
15656
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15654
|
-
import {
|
|
15657
|
+
import { useState as useState5, useEffect as useEffect7 } from "react";
|
|
15658
|
+
|
|
15659
|
+
// src/widgets/advanced/search/search-list/index.tsx
|
|
15660
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15661
|
+
var SearchList = ({
|
|
15662
|
+
handleAddTagSearch,
|
|
15663
|
+
handleMouseEnter,
|
|
15664
|
+
handleMouseLeave,
|
|
15665
|
+
searchBy,
|
|
15666
|
+
searchString,
|
|
15667
|
+
hoveredIndexSearchList
|
|
15668
|
+
}) => {
|
|
15669
|
+
const { t: t3 } = useI18n();
|
|
15670
|
+
return /* @__PURE__ */ jsx63(
|
|
15671
|
+
"div",
|
|
15672
|
+
{
|
|
15673
|
+
style: {
|
|
15674
|
+
position: "absolute",
|
|
15675
|
+
top: "calc(100% + 5px)",
|
|
15676
|
+
left: 0,
|
|
15677
|
+
right: 0,
|
|
15678
|
+
zIndex: 31
|
|
15679
|
+
},
|
|
15680
|
+
className: `${searchString === "" ? "hidden" : "block"} w-full overflow-x-auto rounded-[0.25rem] border-none bg-white shadow-lg`,
|
|
15681
|
+
children: searchBy?.map((searchItem, index4) => {
|
|
15682
|
+
if (searchItem?.type === "date" || searchItem?.type === "datetime") {
|
|
15683
|
+
if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
|
|
15684
|
+
return;
|
|
15685
|
+
}
|
|
15686
|
+
return /* @__PURE__ */ jsxs39(
|
|
15687
|
+
"button",
|
|
15688
|
+
{
|
|
15689
|
+
onClick: () => {
|
|
15690
|
+
typeof handleAddTagSearch === "function" && handleAddTagSearch({
|
|
15691
|
+
title: searchItem?.title,
|
|
15692
|
+
name: searchItem?.name,
|
|
15693
|
+
value: searchString,
|
|
15694
|
+
domain: searchItem?.filter_domain,
|
|
15695
|
+
operator: searchItem?.operator,
|
|
15696
|
+
type: SearchType.SEARCH,
|
|
15697
|
+
modelType: searchItem?.type,
|
|
15698
|
+
widget: searchItem?.widget,
|
|
15699
|
+
dataIndex: searchItem?.dataIndex
|
|
15700
|
+
});
|
|
15701
|
+
},
|
|
15702
|
+
onMouseEnter: () => typeof handleMouseEnter === "function" && handleMouseEnter(index4),
|
|
15703
|
+
onMouseLeave: () => typeof handleMouseLeave === "function" && handleMouseLeave(),
|
|
15704
|
+
style: {
|
|
15705
|
+
display: "block",
|
|
15706
|
+
width: "100%",
|
|
15707
|
+
cursor: "pointer",
|
|
15708
|
+
whiteSpace: "nowrap",
|
|
15709
|
+
padding: "2px 12px",
|
|
15710
|
+
paddingTop: "4px",
|
|
15711
|
+
paddingBottom: "4px",
|
|
15712
|
+
textAlign: "left",
|
|
15713
|
+
transitionDuration: "0ms",
|
|
15714
|
+
backgroundColor: hoveredIndexSearchList === index4 ? "rgba(0,0,0,0.08)" : "white",
|
|
15715
|
+
fontSize: "14px"
|
|
15716
|
+
},
|
|
15717
|
+
children: [
|
|
15718
|
+
t3("search"),
|
|
15719
|
+
" ",
|
|
15720
|
+
/* @__PURE__ */ jsx63("span", { className: "font-bold", children: searchItem?.title }),
|
|
15721
|
+
" ",
|
|
15722
|
+
t3("for"),
|
|
15723
|
+
":",
|
|
15724
|
+
" ",
|
|
15725
|
+
/* @__PURE__ */ jsx63("span", { className: "custom-input-result text-primary font-bold italic", children: searchString })
|
|
15726
|
+
]
|
|
15727
|
+
},
|
|
15728
|
+
"header-" + index4 + 1
|
|
15729
|
+
);
|
|
15730
|
+
})
|
|
15731
|
+
}
|
|
15732
|
+
);
|
|
15733
|
+
};
|
|
15655
15734
|
|
|
15656
15735
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
15657
15736
|
import { Fragment as Fragment8 } from "react";
|
|
15658
|
-
import { Fragment as Fragment9, jsx as
|
|
15737
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15659
15738
|
var TagSearch = ({
|
|
15660
15739
|
removeSearchItems,
|
|
15661
15740
|
selectedTags,
|
|
15662
15741
|
filterBy,
|
|
15663
|
-
setFilterBy
|
|
15664
|
-
setGroupBy
|
|
15742
|
+
setFilterBy
|
|
15665
15743
|
}) => {
|
|
15744
|
+
const { t: t3 } = useI18n();
|
|
15666
15745
|
return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
|
|
15667
15746
|
if (tag?.values?.length > 0) {
|
|
15668
15747
|
if (tag?.type !== "group_by") {
|
|
15669
|
-
return /* @__PURE__ */
|
|
15748
|
+
return /* @__PURE__ */ jsxs40(
|
|
15670
15749
|
"div",
|
|
15671
15750
|
{
|
|
15672
15751
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15673
15752
|
children: [
|
|
15674
|
-
/* @__PURE__ */
|
|
15675
|
-
/* @__PURE__ */
|
|
15676
|
-
|
|
15677
|
-
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15753
|
+
/* @__PURE__ */ jsx64("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__ */ jsx64(FilterIcon, {}) }),
|
|
15754
|
+
/* @__PURE__ */ jsx64(
|
|
15755
|
+
"div",
|
|
15756
|
+
{
|
|
15757
|
+
style: {
|
|
15758
|
+
paddingLeft: "8px"
|
|
15759
|
+
},
|
|
15760
|
+
className: "align-middle text-[#495057] text-[14px]",
|
|
15761
|
+
children: tag.values.map((value, idx) => {
|
|
15762
|
+
return /* @__PURE__ */ jsxs40(Fragment8, { children: [
|
|
15763
|
+
/* @__PURE__ */ jsx64("span", { children: value }),
|
|
15764
|
+
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs40("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15765
|
+
" ",
|
|
15766
|
+
t3("or"),
|
|
15767
|
+
" "
|
|
15768
|
+
] })
|
|
15769
|
+
] }, idx);
|
|
15770
|
+
})
|
|
15771
|
+
}
|
|
15772
|
+
),
|
|
15773
|
+
/* @__PURE__ */ jsx64(
|
|
15686
15774
|
"button",
|
|
15687
15775
|
{
|
|
15688
15776
|
className: "px-2 text-sm font-bold",
|
|
@@ -15699,7 +15787,7 @@ var TagSearch = ({
|
|
|
15699
15787
|
);
|
|
15700
15788
|
}
|
|
15701
15789
|
},
|
|
15702
|
-
children: /* @__PURE__ */
|
|
15790
|
+
children: /* @__PURE__ */ jsx64(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15703
15791
|
}
|
|
15704
15792
|
)
|
|
15705
15793
|
]
|
|
@@ -15707,41 +15795,35 @@ var TagSearch = ({
|
|
|
15707
15795
|
"selected-tag-" + index4
|
|
15708
15796
|
);
|
|
15709
15797
|
} else if (tag?.type === "group_by") {
|
|
15710
|
-
return /* @__PURE__ */
|
|
15798
|
+
return /* @__PURE__ */ jsx64(
|
|
15711
15799
|
"div",
|
|
15712
15800
|
{
|
|
15713
15801
|
className: "flex min-h-full overflow-hidden",
|
|
15714
|
-
children: /* @__PURE__ */
|
|
15715
|
-
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */
|
|
15802
|
+
children: /* @__PURE__ */ jsx64("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
|
|
15803
|
+
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs40(
|
|
15716
15804
|
"div",
|
|
15717
15805
|
{
|
|
15718
15806
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15719
15807
|
children: [
|
|
15720
|
-
/* @__PURE__ */
|
|
15721
|
-
value?.strings?.map((string, idx) => /* @__PURE__ */
|
|
15722
|
-
/* @__PURE__ */
|
|
15723
|
-
idx < value?.strings.length - 1 && /* @__PURE__ */
|
|
15808
|
+
/* @__PURE__ */ jsx64("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx64(GroupByIcon, {}) }),
|
|
15809
|
+
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs40(Fragment9, { children: [
|
|
15810
|
+
/* @__PURE__ */ jsx64("span", { children: string }),
|
|
15811
|
+
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs40("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15724
15812
|
" ",
|
|
15725
15813
|
"> ",
|
|
15726
15814
|
" "
|
|
15727
15815
|
] })
|
|
15728
15816
|
] })),
|
|
15729
|
-
/* @__PURE__ */
|
|
15817
|
+
/* @__PURE__ */ jsx64(
|
|
15730
15818
|
"button",
|
|
15731
15819
|
{
|
|
15732
15820
|
className: "pr-2 text-sm font-bold",
|
|
15733
15821
|
onClick: () => {
|
|
15734
15822
|
if (tag?.type === SearchType.GROUP) {
|
|
15735
15823
|
typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`);
|
|
15736
|
-
setGroupBy(
|
|
15737
|
-
(prev2) => prev2?.map((item) => ({
|
|
15738
|
-
...item,
|
|
15739
|
-
active: false
|
|
15740
|
-
}))
|
|
15741
|
-
);
|
|
15742
15824
|
}
|
|
15743
15825
|
},
|
|
15744
|
-
children: /* @__PURE__ */
|
|
15826
|
+
children: /* @__PURE__ */ jsx64(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15745
15827
|
}
|
|
15746
15828
|
)
|
|
15747
15829
|
]
|
|
@@ -15757,75 +15839,6 @@ var TagSearch = ({
|
|
|
15757
15839
|
});
|
|
15758
15840
|
};
|
|
15759
15841
|
|
|
15760
|
-
// src/widgets/advanced/search/search-list/index.tsx
|
|
15761
|
-
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15762
|
-
var SearchList = ({
|
|
15763
|
-
handleAddTagSearch,
|
|
15764
|
-
handleMouseEnter,
|
|
15765
|
-
handleMouseLeave,
|
|
15766
|
-
searchBy,
|
|
15767
|
-
searchString,
|
|
15768
|
-
hoveredIndexSearchList
|
|
15769
|
-
}) => {
|
|
15770
|
-
const { t: t3 } = useI18n();
|
|
15771
|
-
return /* @__PURE__ */ jsx64(
|
|
15772
|
-
"div",
|
|
15773
|
-
{
|
|
15774
|
-
style: {
|
|
15775
|
-
top: "calc(100% + 3px)"
|
|
15776
|
-
},
|
|
15777
|
-
className: `${searchString === "" ? "hidden" : "block"} absolute left-0 right-0 top-[calc(100%_+_3px)] z-[31] w-full overflow-x-auto rounded-[0.25rem] border-none bg-white shadow-lg`,
|
|
15778
|
-
children: searchBy?.map((searchItem, index4) => {
|
|
15779
|
-
if (searchItem?.type === "date" || searchItem?.type === "datetime") {
|
|
15780
|
-
if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
|
|
15781
|
-
return;
|
|
15782
|
-
}
|
|
15783
|
-
return /* @__PURE__ */ jsxs40(
|
|
15784
|
-
"button",
|
|
15785
|
-
{
|
|
15786
|
-
onClick: () => {
|
|
15787
|
-
typeof handleAddTagSearch === "function" && handleAddTagSearch({
|
|
15788
|
-
title: searchItem?.title,
|
|
15789
|
-
name: searchItem?.name,
|
|
15790
|
-
value: searchString,
|
|
15791
|
-
domain: searchItem?.filter_domain,
|
|
15792
|
-
operator: searchItem?.operator,
|
|
15793
|
-
type: SearchType.SEARCH,
|
|
15794
|
-
modelType: searchItem?.type,
|
|
15795
|
-
widget: searchItem?.widget,
|
|
15796
|
-
dataIndex: searchItem?.dataIndex
|
|
15797
|
-
});
|
|
15798
|
-
},
|
|
15799
|
-
onMouseEnter: () => typeof handleMouseEnter === "function" && handleMouseEnter(index4),
|
|
15800
|
-
onMouseLeave: () => typeof handleMouseLeave === "function" && handleMouseLeave(),
|
|
15801
|
-
className: `block w-full cursor-pointer whitespace-nowrap p-2 px-3 py-1 text-left !duration-0 hover:!bg-[rgba(0,0,0,0.08)] hover:text-inherit text-sm ${hoveredIndexSearchList === index4 ? "bg-[rgba(0,0,0,0.08)]" : "bg-white"}`,
|
|
15802
|
-
children: [
|
|
15803
|
-
t3("search"),
|
|
15804
|
-
" ",
|
|
15805
|
-
/* @__PURE__ */ jsx64("span", { className: "font-bold", children: searchItem?.title }),
|
|
15806
|
-
" ",
|
|
15807
|
-
t3("for"),
|
|
15808
|
-
":",
|
|
15809
|
-
" ",
|
|
15810
|
-
/* @__PURE__ */ jsx64(
|
|
15811
|
-
"span",
|
|
15812
|
-
{
|
|
15813
|
-
style: {
|
|
15814
|
-
color: "var(--color-primary)"
|
|
15815
|
-
},
|
|
15816
|
-
className: "custom-input-result text-primary font-bold italic",
|
|
15817
|
-
children: searchString
|
|
15818
|
-
}
|
|
15819
|
-
)
|
|
15820
|
-
]
|
|
15821
|
-
},
|
|
15822
|
-
"header-" + index4 + 1
|
|
15823
|
-
);
|
|
15824
|
-
})
|
|
15825
|
-
}
|
|
15826
|
-
);
|
|
15827
|
-
};
|
|
15828
|
-
|
|
15829
15842
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15830
15843
|
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15831
15844
|
var Search = ({
|
|
@@ -15850,7 +15863,11 @@ var Search = ({
|
|
|
15850
15863
|
selectedRowKeys,
|
|
15851
15864
|
domainSearch,
|
|
15852
15865
|
evalJSONContext,
|
|
15853
|
-
clearSearch
|
|
15866
|
+
clearSearch,
|
|
15867
|
+
onKeyDown,
|
|
15868
|
+
handleMouseEnter,
|
|
15869
|
+
handleMouseLeave,
|
|
15870
|
+
hoveredIndexSearchList
|
|
15854
15871
|
}) => {
|
|
15855
15872
|
const { t: t3 } = useI18n();
|
|
15856
15873
|
const [showPopupFilter, setShowPopupFilter] = useState5(false);
|
|
@@ -15887,9 +15904,8 @@ var Search = ({
|
|
|
15887
15904
|
const searchDefaults = Object.entries(context || {}).filter(
|
|
15888
15905
|
([key]) => key.startsWith("search_default_")
|
|
15889
15906
|
);
|
|
15890
|
-
const defaultGroupBy = context ? Object.entries(context).filter(([key]) => key.includes("group_by")) : [];
|
|
15891
15907
|
const hasGroupBy = viewData?.views?.search?.filters_by?.length > 0;
|
|
15892
|
-
if (searchDefaults.length === 0 && !hasGroupBy
|
|
15908
|
+
if (searchDefaults.length === 0 && !hasGroupBy) {
|
|
15893
15909
|
setIsReadyFormatDomain(true);
|
|
15894
15910
|
setDidInit(true);
|
|
15895
15911
|
return;
|
|
@@ -15910,23 +15926,7 @@ var Search = ({
|
|
|
15910
15926
|
}
|
|
15911
15927
|
return item;
|
|
15912
15928
|
});
|
|
15913
|
-
const updatedGroupBy = groupBy?.map((item) => {
|
|
15914
|
-
const defaultGroupByItem = defaultGroupBy.find(
|
|
15915
|
-
([_2, value]) => item?.context?.includes(value)
|
|
15916
|
-
);
|
|
15917
|
-
if (defaultGroupByItem && typeof handleAddTagSearch == "function") {
|
|
15918
|
-
handleAddTagSearch({
|
|
15919
|
-
name: item?.name,
|
|
15920
|
-
value: item?.string,
|
|
15921
|
-
type: SearchType.GROUP,
|
|
15922
|
-
context: JSON.parse(item?.context.replace(/'/g, '"'))
|
|
15923
|
-
});
|
|
15924
|
-
return { ...item, active: true };
|
|
15925
|
-
}
|
|
15926
|
-
return item;
|
|
15927
|
-
});
|
|
15928
15929
|
if (updatedFilter) setFilterBy(updatedFilter);
|
|
15929
|
-
if (updatedGroupBy) setGroupBy(updatedGroupBy);
|
|
15930
15930
|
if (hasGroupBy) {
|
|
15931
15931
|
viewData?.views?.search?.filters_by?.forEach((item, idx) => {
|
|
15932
15932
|
const groupCtx = evalJSONContext(item?.context);
|
|
@@ -15948,60 +15948,68 @@ var Search = ({
|
|
|
15948
15948
|
"div",
|
|
15949
15949
|
{
|
|
15950
15950
|
ref: popupFilterRef,
|
|
15951
|
-
className: `search
|
|
15951
|
+
className: `search ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} bg-white custom-search-input py-[8px] px-[16px] relative items-center w-full flex-1 xl:flex-1 rounded-[10px] bg-grey-100 shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[#F2F2F2]`,
|
|
15952
15952
|
children: [
|
|
15953
|
-
/* @__PURE__ */
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15953
|
+
/* @__PURE__ */ jsxs41(
|
|
15954
|
+
"div",
|
|
15955
|
+
{
|
|
15956
|
+
className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
|
|
15957
|
+
children: [
|
|
15958
|
+
/* @__PURE__ */ jsx65("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ jsx65(SearchIcon, {}) }),
|
|
15959
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
15960
|
+
/* @__PURE__ */ jsx65(
|
|
15961
|
+
TagSearch,
|
|
15962
|
+
{
|
|
15963
|
+
removeSearchItems,
|
|
15964
|
+
selectedTags,
|
|
15965
|
+
filterBy,
|
|
15966
|
+
setFilterBy
|
|
15967
|
+
}
|
|
15968
|
+
),
|
|
15969
|
+
/* @__PURE__ */ jsx65(
|
|
15970
|
+
"input",
|
|
15971
|
+
{
|
|
15972
|
+
value: searchString,
|
|
15973
|
+
className: "min-h-[25px] w-fit flex-1 border-none bg-transparent outline-none min-w-[50px] text-sm",
|
|
15974
|
+
placeholder: t3("search..."),
|
|
15975
|
+
onChange: (e3) => {
|
|
15976
|
+
onSearchString(e3.target.value);
|
|
15977
|
+
setShowPopupFilter(false);
|
|
15978
|
+
},
|
|
15979
|
+
onKeyDown,
|
|
15980
|
+
onKeyUp: (e3) => e3.preventDefault()
|
|
15981
|
+
}
|
|
15982
|
+
),
|
|
15983
|
+
/* @__PURE__ */ jsx65(
|
|
15984
|
+
SearchList,
|
|
15985
|
+
{
|
|
15986
|
+
handleAddTagSearch,
|
|
15987
|
+
searchBy,
|
|
15988
|
+
searchString,
|
|
15989
|
+
handleMouseEnter,
|
|
15990
|
+
handleMouseLeave,
|
|
15991
|
+
hoveredIndexSearchList
|
|
15992
|
+
}
|
|
15993
|
+
)
|
|
15994
|
+
] })
|
|
15995
|
+
]
|
|
15996
|
+
}
|
|
15997
|
+
),
|
|
15998
|
+
(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
|
|
15978
15999
|
/* @__PURE__ */ jsx65(
|
|
15979
|
-
SearchList,
|
|
15980
|
-
{
|
|
15981
|
-
handleAddTagSearch,
|
|
15982
|
-
searchBy,
|
|
15983
|
-
searchString
|
|
15984
|
-
}
|
|
15985
|
-
)
|
|
15986
|
-
] }),
|
|
15987
|
-
showFiltersGroups && /* @__PURE__ */ jsxs41(Fragment10, { children: [
|
|
15988
|
-
/* @__PURE__ */ jsxs41(
|
|
15989
16000
|
"div",
|
|
15990
16001
|
{
|
|
15991
|
-
className: `flex h-full
|
|
16002
|
+
className: `flex h-full cursor-pointer items-center justify-center px-[10px] max-w-fit`,
|
|
15992
16003
|
onClick: (e3) => {
|
|
15993
16004
|
e3.stopPropagation();
|
|
15994
16005
|
setShowPopupFilter((prev2) => !prev2);
|
|
15995
16006
|
},
|
|
15996
|
-
children:
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
}
|
|
16003
|
-
)
|
|
16004
|
-
]
|
|
16007
|
+
children: /* @__PURE__ */ jsx65("button", { className: "w-max cursor-pointer", children: /* @__PURE__ */ jsx65(
|
|
16008
|
+
ChevronBottomIcon,
|
|
16009
|
+
{
|
|
16010
|
+
className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
|
|
16011
|
+
}
|
|
16012
|
+
) })
|
|
16005
16013
|
}
|
|
16006
16014
|
),
|
|
16007
16015
|
showPopupFilter && /* @__PURE__ */ jsx65(
|
package/dist/widgets.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";
|
|
2
3
|
|
|
3
4
|
/* src/index.css */
|
|
4
5
|
@tailwind base;
|
|
5
6
|
@tailwind components;
|
|
6
7
|
@tailwind utilities;
|
|
7
|
-
@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap);
|
|
8
8
|
* {
|
|
9
9
|
font-family: "Inter", sans-serif;
|
|
10
10
|
}
|
package/dist/widgets.d.mts
CHANGED
|
@@ -136,7 +136,7 @@ declare const EmptyTable: () => JSX.Element;
|
|
|
136
136
|
|
|
137
137
|
declare const Login: React__default.FC<LoginProps>;
|
|
138
138
|
|
|
139
|
-
declare const Search: ({ removeSearchItems, selectedTags, filterBy, setFilterBy, searchString, onSearchString, handleAddTagSearch, searchBy, groupBy, showFiltersGroups, setGroupBy, setSelectedRowKeys, setDomainList, setPage, fieldsList, viewData, context, aid, selectedRowKeys, domainSearch, evalJSONContext, clearSearch, }: any) => JSX.Element;
|
|
139
|
+
declare const Search: ({ removeSearchItems, selectedTags, filterBy, setFilterBy, searchString, onSearchString, handleAddTagSearch, searchBy, groupBy, showFiltersGroups, setGroupBy, setSelectedRowKeys, setDomainList, setPage, fieldsList, viewData, context, aid, selectedRowKeys, domainSearch, evalJSONContext, clearSearch, onKeyDown, handleMouseEnter, handleMouseLeave, hoveredIndexSearchList, }: any) => JSX.Element;
|
|
140
140
|
|
|
141
141
|
interface IActiveBadgeProps extends IInputFieldProps {
|
|
142
142
|
type: any;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ declare const EmptyTable: () => JSX.Element;
|
|
|
136
136
|
|
|
137
137
|
declare const Login: React__default.FC<LoginProps>;
|
|
138
138
|
|
|
139
|
-
declare const Search: ({ removeSearchItems, selectedTags, filterBy, setFilterBy, searchString, onSearchString, handleAddTagSearch, searchBy, groupBy, showFiltersGroups, setGroupBy, setSelectedRowKeys, setDomainList, setPage, fieldsList, viewData, context, aid, selectedRowKeys, domainSearch, evalJSONContext, clearSearch, }: any) => JSX.Element;
|
|
139
|
+
declare const Search: ({ removeSearchItems, selectedTags, filterBy, setFilterBy, searchString, onSearchString, handleAddTagSearch, searchBy, groupBy, showFiltersGroups, setGroupBy, setSelectedRowKeys, setDomainList, setPage, fieldsList, viewData, context, aid, selectedRowKeys, domainSearch, evalJSONContext, clearSearch, onKeyDown, handleMouseEnter, handleMouseLeave, hoveredIndexSearchList, }: any) => JSX.Element;
|
|
140
140
|
|
|
141
141
|
interface IActiveBadgeProps extends IInputFieldProps {
|
|
142
142
|
type: any;
|