@uniformdev/mesh-sdk-react 20.71.2-alpha.14 → 20.71.2-alpha.19
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.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +72 -7
- package/dist/index.js +63 -4
- package/dist/index.mjs +72 -7
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1720,9 +1720,11 @@ type FilterItemProps = {
|
|
|
1720
1720
|
initialCriteriaTitle?: string;
|
|
1721
1721
|
/** How multiple criteria are joined together */
|
|
1722
1722
|
criteriaGroupOperator?: 'and' | 'or';
|
|
1723
|
+
/** When provided, renders an interactive dropdown on the second row to switch between and/or */
|
|
1724
|
+
onCriteriaGroupOperatorChange?: (op: 'and' | 'or') => void;
|
|
1723
1725
|
};
|
|
1724
1726
|
/** A filter item component used to display filter options */
|
|
1725
|
-
declare const FilterItem: ({ index, operatorOptions, valueOptions, onFilterOptionChange, onFilterDynamicChange, onOperatorChange, onValueChange, initialCriteriaTitle, criteriaGroupOperator, }: FilterItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare const FilterItem: ({ index, operatorOptions, valueOptions, onFilterOptionChange, onFilterDynamicChange, onOperatorChange, onValueChange, initialCriteriaTitle, criteriaGroupOperator, onCriteriaGroupOperatorChange, }: FilterItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1726
1728
|
|
|
1727
1729
|
type FilterMapper = Record<string, ComponentType<any> | null>;
|
|
1728
1730
|
type SearchAndFilterProviderProps = {
|
|
@@ -1869,9 +1871,9 @@ type FilterItemsProps = {
|
|
|
1869
1871
|
additionalFiltersContainer: SearchAndFilterProps['additionalFiltersContainer'];
|
|
1870
1872
|
filterTitle?: string;
|
|
1871
1873
|
resetButtonText?: string;
|
|
1872
|
-
} & Pick<FilterItemProps, 'initialCriteriaTitle' | 'criteriaGroupOperator'>;
|
|
1874
|
+
} & Pick<FilterItemProps, 'initialCriteriaTitle' | 'criteriaGroupOperator' | 'onCriteriaGroupOperatorChange'>;
|
|
1873
1875
|
/** A filter items component used to display filter options */
|
|
1874
|
-
declare const FilterItems: ({ addButtonText, additionalFiltersContainer, filterTitle, resetButtonText, initialCriteriaTitle, criteriaGroupOperator, }: FilterItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1876
|
+
declare const FilterItems: ({ addButtonText, additionalFiltersContainer, filterTitle, resetButtonText, initialCriteriaTitle, criteriaGroupOperator, onCriteriaGroupOperatorChange, }: FilterItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1875
1877
|
|
|
1876
1878
|
type SearchAndFilterOptionsContainerProps = {
|
|
1877
1879
|
/** The button row to be displayed at the bottom of the container */
|
package/dist/index.d.ts
CHANGED
|
@@ -1720,9 +1720,11 @@ type FilterItemProps = {
|
|
|
1720
1720
|
initialCriteriaTitle?: string;
|
|
1721
1721
|
/** How multiple criteria are joined together */
|
|
1722
1722
|
criteriaGroupOperator?: 'and' | 'or';
|
|
1723
|
+
/** When provided, renders an interactive dropdown on the second row to switch between and/or */
|
|
1724
|
+
onCriteriaGroupOperatorChange?: (op: 'and' | 'or') => void;
|
|
1723
1725
|
};
|
|
1724
1726
|
/** A filter item component used to display filter options */
|
|
1725
|
-
declare const FilterItem: ({ index, operatorOptions, valueOptions, onFilterOptionChange, onFilterDynamicChange, onOperatorChange, onValueChange, initialCriteriaTitle, criteriaGroupOperator, }: FilterItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare const FilterItem: ({ index, operatorOptions, valueOptions, onFilterOptionChange, onFilterDynamicChange, onOperatorChange, onValueChange, initialCriteriaTitle, criteriaGroupOperator, onCriteriaGroupOperatorChange, }: FilterItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1726
1728
|
|
|
1727
1729
|
type FilterMapper = Record<string, ComponentType<any> | null>;
|
|
1728
1730
|
type SearchAndFilterProviderProps = {
|
|
@@ -1869,9 +1871,9 @@ type FilterItemsProps = {
|
|
|
1869
1871
|
additionalFiltersContainer: SearchAndFilterProps['additionalFiltersContainer'];
|
|
1870
1872
|
filterTitle?: string;
|
|
1871
1873
|
resetButtonText?: string;
|
|
1872
|
-
} & Pick<FilterItemProps, 'initialCriteriaTitle' | 'criteriaGroupOperator'>;
|
|
1874
|
+
} & Pick<FilterItemProps, 'initialCriteriaTitle' | 'criteriaGroupOperator' | 'onCriteriaGroupOperatorChange'>;
|
|
1873
1875
|
/** A filter items component used to display filter options */
|
|
1874
|
-
declare const FilterItems: ({ addButtonText, additionalFiltersContainer, filterTitle, resetButtonText, initialCriteriaTitle, criteriaGroupOperator, }: FilterItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1876
|
+
declare const FilterItems: ({ addButtonText, additionalFiltersContainer, filterTitle, resetButtonText, initialCriteriaTitle, criteriaGroupOperator, onCriteriaGroupOperatorChange, }: FilterItemsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1875
1877
|
|
|
1876
1878
|
type SearchAndFilterOptionsContainerProps = {
|
|
1877
1879
|
/** The button row to be displayed at the bottom of the container */
|
package/dist/index.esm.js
CHANGED
|
@@ -6283,6 +6283,25 @@ var ResetConditionsBtn = css21`
|
|
|
6283
6283
|
color: var(--gray-400);
|
|
6284
6284
|
}
|
|
6285
6285
|
`;
|
|
6286
|
+
var CriteriaGroupOperatorTrigger = css21`
|
|
6287
|
+
&& {
|
|
6288
|
+
padding: 0;
|
|
6289
|
+
border-radius: var(--rounded-sm);
|
|
6290
|
+
font-size: inherit;
|
|
6291
|
+
line-height: inherit;
|
|
6292
|
+
color: inherit;
|
|
6293
|
+
|
|
6294
|
+
> div {
|
|
6295
|
+
gap: 2px;
|
|
6296
|
+
}
|
|
6297
|
+
|
|
6298
|
+
svg {
|
|
6299
|
+
width: 10px;
|
|
6300
|
+
height: 10px;
|
|
6301
|
+
color: var(--gray-400);
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
`;
|
|
6286
6305
|
var IconBtn = css21`
|
|
6287
6306
|
align-self: center;
|
|
6288
6307
|
background: transparent;
|
|
@@ -6671,7 +6690,13 @@ var FilterControls = ({
|
|
|
6671
6690
|
|
|
6672
6691
|
// src/components/SearchAndFilter/FilterItem.tsx
|
|
6673
6692
|
import { CgTrash as CgTrash2 } from "@react-icons/all-files/cg/CgTrash";
|
|
6674
|
-
import {
|
|
6693
|
+
import {
|
|
6694
|
+
DropdownStyleMenuTrigger,
|
|
6695
|
+
Icon as Icon4,
|
|
6696
|
+
InputComboBox as InputComboBox5,
|
|
6697
|
+
Menu as Menu3,
|
|
6698
|
+
SelectableMenuItem
|
|
6699
|
+
} from "@uniformdev/design-system";
|
|
6675
6700
|
import { useMemo as useMemo21 } from "react";
|
|
6676
6701
|
|
|
6677
6702
|
// src/components/SearchAndFilter/util/isFilterBindable.ts
|
|
@@ -6691,7 +6716,8 @@ var FilterItem = ({
|
|
|
6691
6716
|
onOperatorChange,
|
|
6692
6717
|
onValueChange,
|
|
6693
6718
|
initialCriteriaTitle = "Where",
|
|
6694
|
-
criteriaGroupOperator = "and"
|
|
6719
|
+
criteriaGroupOperator = "and",
|
|
6720
|
+
onCriteriaGroupOperatorChange
|
|
6695
6721
|
}) => {
|
|
6696
6722
|
var _a, _b;
|
|
6697
6723
|
const { filters, handleDeleteFilter, filterOptions } = useSearchAndFilter();
|
|
@@ -6729,8 +6755,45 @@ var FilterItem = ({
|
|
|
6729
6755
|
} : {};
|
|
6730
6756
|
const CustomLeftHandComponent = selectedFieldValue == null ? void 0 : selectedFieldValue.leftHandSideComponentWhenSelected;
|
|
6731
6757
|
const isEmptyOperator = metaDataPossibleOptions === "empty";
|
|
6758
|
+
const joinLabel = index === 0 ? initialCriteriaTitle : index === 1 && onCriteriaGroupOperatorChange ? /* @__PURE__ */ jsxs34(
|
|
6759
|
+
Menu3,
|
|
6760
|
+
{
|
|
6761
|
+
menuTrigger: /* @__PURE__ */ jsx75(
|
|
6762
|
+
DropdownStyleMenuTrigger,
|
|
6763
|
+
{
|
|
6764
|
+
bgColor: "transparent",
|
|
6765
|
+
css: CriteriaGroupOperatorTrigger,
|
|
6766
|
+
"data-testid": "criteria-group-operator",
|
|
6767
|
+
"aria-label": "criteria group operator",
|
|
6768
|
+
children: criteriaGroupOperator
|
|
6769
|
+
}
|
|
6770
|
+
),
|
|
6771
|
+
size: "small",
|
|
6772
|
+
placement: "bottom-start",
|
|
6773
|
+
children: [
|
|
6774
|
+
/* @__PURE__ */ jsx75(
|
|
6775
|
+
SelectableMenuItem,
|
|
6776
|
+
{
|
|
6777
|
+
selected: criteriaGroupOperator === "and",
|
|
6778
|
+
onClick: () => onCriteriaGroupOperatorChange("and"),
|
|
6779
|
+
"data-testid": "criteria-group-operator-and",
|
|
6780
|
+
children: "and"
|
|
6781
|
+
}
|
|
6782
|
+
),
|
|
6783
|
+
/* @__PURE__ */ jsx75(
|
|
6784
|
+
SelectableMenuItem,
|
|
6785
|
+
{
|
|
6786
|
+
selected: criteriaGroupOperator === "or",
|
|
6787
|
+
onClick: () => onCriteriaGroupOperatorChange("or"),
|
|
6788
|
+
"data-testid": "criteria-group-operator-or",
|
|
6789
|
+
children: "or"
|
|
6790
|
+
}
|
|
6791
|
+
)
|
|
6792
|
+
]
|
|
6793
|
+
}
|
|
6794
|
+
) : criteriaGroupOperator;
|
|
6732
6795
|
return /* @__PURE__ */ jsxs34("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
|
|
6733
|
-
/* @__PURE__ */ jsx75("span", { children:
|
|
6796
|
+
/* @__PURE__ */ jsx75("span", { children: joinLabel }),
|
|
6734
6797
|
/* @__PURE__ */ jsxs34("div", { css: [ConditionalInputRow, isEmptyOperator ? ConditionalInputRowEmpty : null], children: [
|
|
6735
6798
|
CustomLeftHandComponent ? /* @__PURE__ */ jsx75(
|
|
6736
6799
|
CustomLeftHandComponent,
|
|
@@ -6995,7 +7058,8 @@ var FilterItems = ({
|
|
|
6995
7058
|
filterTitle,
|
|
6996
7059
|
resetButtonText,
|
|
6997
7060
|
initialCriteriaTitle,
|
|
6998
|
-
criteriaGroupOperator
|
|
7061
|
+
criteriaGroupOperator,
|
|
7062
|
+
onCriteriaGroupOperatorChange
|
|
6999
7063
|
}) => {
|
|
7000
7064
|
const { filterOptions, filters, setFilters, handleAddFilter } = useSearchAndFilter();
|
|
7001
7065
|
const handleUpdateFilter = (index, prop, value) => {
|
|
@@ -7065,7 +7129,8 @@ var FilterItems = ({
|
|
|
7065
7129
|
onFilterDynamicChange: (e) => handleUpdateFilter(i, "dynamicField", e),
|
|
7066
7130
|
valueOptions: possibleValueOptions,
|
|
7067
7131
|
initialCriteriaTitle,
|
|
7068
|
-
criteriaGroupOperator
|
|
7132
|
+
criteriaGroupOperator,
|
|
7133
|
+
onCriteriaGroupOperatorChange
|
|
7069
7134
|
},
|
|
7070
7135
|
i
|
|
7071
7136
|
);
|
|
@@ -7657,7 +7722,7 @@ import {
|
|
|
7657
7722
|
Label,
|
|
7658
7723
|
LoadingIndicator as LoadingIndicator4,
|
|
7659
7724
|
LoadingOverlay,
|
|
7660
|
-
Menu as
|
|
7725
|
+
Menu as Menu4,
|
|
7661
7726
|
MenuItem as MenuItem2,
|
|
7662
7727
|
ParameterGroup,
|
|
7663
7728
|
ParameterImage,
|
|
@@ -7724,7 +7789,7 @@ export {
|
|
|
7724
7789
|
LoadingIndicator4 as LoadingIndicator,
|
|
7725
7790
|
LoadingOverlay,
|
|
7726
7791
|
MULTI_SELECT_OPERATORS,
|
|
7727
|
-
|
|
7792
|
+
Menu4 as Menu,
|
|
7728
7793
|
MenuItem2 as MenuItem,
|
|
7729
7794
|
MeshApp,
|
|
7730
7795
|
NUMBER_OPERATORS,
|
package/dist/index.js
CHANGED
|
@@ -6352,6 +6352,25 @@ var ResetConditionsBtn = import_react63.css`
|
|
|
6352
6352
|
color: var(--gray-400);
|
|
6353
6353
|
}
|
|
6354
6354
|
`;
|
|
6355
|
+
var CriteriaGroupOperatorTrigger = import_react63.css`
|
|
6356
|
+
&& {
|
|
6357
|
+
padding: 0;
|
|
6358
|
+
border-radius: var(--rounded-sm);
|
|
6359
|
+
font-size: inherit;
|
|
6360
|
+
line-height: inherit;
|
|
6361
|
+
color: inherit;
|
|
6362
|
+
|
|
6363
|
+
> div {
|
|
6364
|
+
gap: 2px;
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6367
|
+
svg {
|
|
6368
|
+
width: 10px;
|
|
6369
|
+
height: 10px;
|
|
6370
|
+
color: var(--gray-400);
|
|
6371
|
+
}
|
|
6372
|
+
}
|
|
6373
|
+
`;
|
|
6355
6374
|
var IconBtn = import_react63.css`
|
|
6356
6375
|
align-self: center;
|
|
6357
6376
|
background: transparent;
|
|
@@ -6752,7 +6771,8 @@ var FilterItem = ({
|
|
|
6752
6771
|
onOperatorChange,
|
|
6753
6772
|
onValueChange,
|
|
6754
6773
|
initialCriteriaTitle = "Where",
|
|
6755
|
-
criteriaGroupOperator = "and"
|
|
6774
|
+
criteriaGroupOperator = "and",
|
|
6775
|
+
onCriteriaGroupOperatorChange
|
|
6756
6776
|
}) => {
|
|
6757
6777
|
var _a, _b;
|
|
6758
6778
|
const { filters, handleDeleteFilter, filterOptions } = useSearchAndFilter();
|
|
@@ -6790,8 +6810,45 @@ var FilterItem = ({
|
|
|
6790
6810
|
} : {};
|
|
6791
6811
|
const CustomLeftHandComponent = selectedFieldValue == null ? void 0 : selectedFieldValue.leftHandSideComponentWhenSelected;
|
|
6792
6812
|
const isEmptyOperator = metaDataPossibleOptions === "empty";
|
|
6813
|
+
const joinLabel = index === 0 ? initialCriteriaTitle : index === 1 && onCriteriaGroupOperatorChange ? /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
6814
|
+
import_design_system45.Menu,
|
|
6815
|
+
{
|
|
6816
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6817
|
+
import_design_system45.DropdownStyleMenuTrigger,
|
|
6818
|
+
{
|
|
6819
|
+
bgColor: "transparent",
|
|
6820
|
+
css: CriteriaGroupOperatorTrigger,
|
|
6821
|
+
"data-testid": "criteria-group-operator",
|
|
6822
|
+
"aria-label": "criteria group operator",
|
|
6823
|
+
children: criteriaGroupOperator
|
|
6824
|
+
}
|
|
6825
|
+
),
|
|
6826
|
+
size: "small",
|
|
6827
|
+
placement: "bottom-start",
|
|
6828
|
+
children: [
|
|
6829
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6830
|
+
import_design_system45.SelectableMenuItem,
|
|
6831
|
+
{
|
|
6832
|
+
selected: criteriaGroupOperator === "and",
|
|
6833
|
+
onClick: () => onCriteriaGroupOperatorChange("and"),
|
|
6834
|
+
"data-testid": "criteria-group-operator-and",
|
|
6835
|
+
children: "and"
|
|
6836
|
+
}
|
|
6837
|
+
),
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6839
|
+
import_design_system45.SelectableMenuItem,
|
|
6840
|
+
{
|
|
6841
|
+
selected: criteriaGroupOperator === "or",
|
|
6842
|
+
onClick: () => onCriteriaGroupOperatorChange("or"),
|
|
6843
|
+
"data-testid": "criteria-group-operator-or",
|
|
6844
|
+
children: "or"
|
|
6845
|
+
}
|
|
6846
|
+
)
|
|
6847
|
+
]
|
|
6848
|
+
}
|
|
6849
|
+
) : criteriaGroupOperator;
|
|
6793
6850
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
|
|
6794
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children:
|
|
6851
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: joinLabel }),
|
|
6795
6852
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { css: [ConditionalInputRow, isEmptyOperator ? ConditionalInputRowEmpty : null], children: [
|
|
6796
6853
|
CustomLeftHandComponent ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6797
6854
|
CustomLeftHandComponent,
|
|
@@ -7056,7 +7113,8 @@ var FilterItems = ({
|
|
|
7056
7113
|
filterTitle,
|
|
7057
7114
|
resetButtonText,
|
|
7058
7115
|
initialCriteriaTitle,
|
|
7059
|
-
criteriaGroupOperator
|
|
7116
|
+
criteriaGroupOperator,
|
|
7117
|
+
onCriteriaGroupOperatorChange
|
|
7060
7118
|
}) => {
|
|
7061
7119
|
const { filterOptions, filters, setFilters, handleAddFilter } = useSearchAndFilter();
|
|
7062
7120
|
const handleUpdateFilter = (index, prop, value) => {
|
|
@@ -7126,7 +7184,8 @@ var FilterItems = ({
|
|
|
7126
7184
|
onFilterDynamicChange: (e) => handleUpdateFilter(i, "dynamicField", e),
|
|
7127
7185
|
valueOptions: possibleValueOptions,
|
|
7128
7186
|
initialCriteriaTitle,
|
|
7129
|
-
criteriaGroupOperator
|
|
7187
|
+
criteriaGroupOperator,
|
|
7188
|
+
onCriteriaGroupOperatorChange
|
|
7130
7189
|
},
|
|
7131
7190
|
i
|
|
7132
7191
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -6283,6 +6283,25 @@ var ResetConditionsBtn = css21`
|
|
|
6283
6283
|
color: var(--gray-400);
|
|
6284
6284
|
}
|
|
6285
6285
|
`;
|
|
6286
|
+
var CriteriaGroupOperatorTrigger = css21`
|
|
6287
|
+
&& {
|
|
6288
|
+
padding: 0;
|
|
6289
|
+
border-radius: var(--rounded-sm);
|
|
6290
|
+
font-size: inherit;
|
|
6291
|
+
line-height: inherit;
|
|
6292
|
+
color: inherit;
|
|
6293
|
+
|
|
6294
|
+
> div {
|
|
6295
|
+
gap: 2px;
|
|
6296
|
+
}
|
|
6297
|
+
|
|
6298
|
+
svg {
|
|
6299
|
+
width: 10px;
|
|
6300
|
+
height: 10px;
|
|
6301
|
+
color: var(--gray-400);
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
`;
|
|
6286
6305
|
var IconBtn = css21`
|
|
6287
6306
|
align-self: center;
|
|
6288
6307
|
background: transparent;
|
|
@@ -6671,7 +6690,13 @@ var FilterControls = ({
|
|
|
6671
6690
|
|
|
6672
6691
|
// src/components/SearchAndFilter/FilterItem.tsx
|
|
6673
6692
|
import { CgTrash as CgTrash2 } from "@react-icons/all-files/cg/CgTrash";
|
|
6674
|
-
import {
|
|
6693
|
+
import {
|
|
6694
|
+
DropdownStyleMenuTrigger,
|
|
6695
|
+
Icon as Icon4,
|
|
6696
|
+
InputComboBox as InputComboBox5,
|
|
6697
|
+
Menu as Menu3,
|
|
6698
|
+
SelectableMenuItem
|
|
6699
|
+
} from "@uniformdev/design-system";
|
|
6675
6700
|
import { useMemo as useMemo21 } from "react";
|
|
6676
6701
|
|
|
6677
6702
|
// src/components/SearchAndFilter/util/isFilterBindable.ts
|
|
@@ -6691,7 +6716,8 @@ var FilterItem = ({
|
|
|
6691
6716
|
onOperatorChange,
|
|
6692
6717
|
onValueChange,
|
|
6693
6718
|
initialCriteriaTitle = "Where",
|
|
6694
|
-
criteriaGroupOperator = "and"
|
|
6719
|
+
criteriaGroupOperator = "and",
|
|
6720
|
+
onCriteriaGroupOperatorChange
|
|
6695
6721
|
}) => {
|
|
6696
6722
|
var _a, _b;
|
|
6697
6723
|
const { filters, handleDeleteFilter, filterOptions } = useSearchAndFilter();
|
|
@@ -6729,8 +6755,45 @@ var FilterItem = ({
|
|
|
6729
6755
|
} : {};
|
|
6730
6756
|
const CustomLeftHandComponent = selectedFieldValue == null ? void 0 : selectedFieldValue.leftHandSideComponentWhenSelected;
|
|
6731
6757
|
const isEmptyOperator = metaDataPossibleOptions === "empty";
|
|
6758
|
+
const joinLabel = index === 0 ? initialCriteriaTitle : index === 1 && onCriteriaGroupOperatorChange ? /* @__PURE__ */ jsxs34(
|
|
6759
|
+
Menu3,
|
|
6760
|
+
{
|
|
6761
|
+
menuTrigger: /* @__PURE__ */ jsx75(
|
|
6762
|
+
DropdownStyleMenuTrigger,
|
|
6763
|
+
{
|
|
6764
|
+
bgColor: "transparent",
|
|
6765
|
+
css: CriteriaGroupOperatorTrigger,
|
|
6766
|
+
"data-testid": "criteria-group-operator",
|
|
6767
|
+
"aria-label": "criteria group operator",
|
|
6768
|
+
children: criteriaGroupOperator
|
|
6769
|
+
}
|
|
6770
|
+
),
|
|
6771
|
+
size: "small",
|
|
6772
|
+
placement: "bottom-start",
|
|
6773
|
+
children: [
|
|
6774
|
+
/* @__PURE__ */ jsx75(
|
|
6775
|
+
SelectableMenuItem,
|
|
6776
|
+
{
|
|
6777
|
+
selected: criteriaGroupOperator === "and",
|
|
6778
|
+
onClick: () => onCriteriaGroupOperatorChange("and"),
|
|
6779
|
+
"data-testid": "criteria-group-operator-and",
|
|
6780
|
+
children: "and"
|
|
6781
|
+
}
|
|
6782
|
+
),
|
|
6783
|
+
/* @__PURE__ */ jsx75(
|
|
6784
|
+
SelectableMenuItem,
|
|
6785
|
+
{
|
|
6786
|
+
selected: criteriaGroupOperator === "or",
|
|
6787
|
+
onClick: () => onCriteriaGroupOperatorChange("or"),
|
|
6788
|
+
"data-testid": "criteria-group-operator-or",
|
|
6789
|
+
children: "or"
|
|
6790
|
+
}
|
|
6791
|
+
)
|
|
6792
|
+
]
|
|
6793
|
+
}
|
|
6794
|
+
) : criteriaGroupOperator;
|
|
6732
6795
|
return /* @__PURE__ */ jsxs34("div", { css: ConditionalFilterRow, "data-testid": "filter-item", children: [
|
|
6733
|
-
/* @__PURE__ */ jsx75("span", { children:
|
|
6796
|
+
/* @__PURE__ */ jsx75("span", { children: joinLabel }),
|
|
6734
6797
|
/* @__PURE__ */ jsxs34("div", { css: [ConditionalInputRow, isEmptyOperator ? ConditionalInputRowEmpty : null], children: [
|
|
6735
6798
|
CustomLeftHandComponent ? /* @__PURE__ */ jsx75(
|
|
6736
6799
|
CustomLeftHandComponent,
|
|
@@ -6995,7 +7058,8 @@ var FilterItems = ({
|
|
|
6995
7058
|
filterTitle,
|
|
6996
7059
|
resetButtonText,
|
|
6997
7060
|
initialCriteriaTitle,
|
|
6998
|
-
criteriaGroupOperator
|
|
7061
|
+
criteriaGroupOperator,
|
|
7062
|
+
onCriteriaGroupOperatorChange
|
|
6999
7063
|
}) => {
|
|
7000
7064
|
const { filterOptions, filters, setFilters, handleAddFilter } = useSearchAndFilter();
|
|
7001
7065
|
const handleUpdateFilter = (index, prop, value) => {
|
|
@@ -7065,7 +7129,8 @@ var FilterItems = ({
|
|
|
7065
7129
|
onFilterDynamicChange: (e) => handleUpdateFilter(i, "dynamicField", e),
|
|
7066
7130
|
valueOptions: possibleValueOptions,
|
|
7067
7131
|
initialCriteriaTitle,
|
|
7068
|
-
criteriaGroupOperator
|
|
7132
|
+
criteriaGroupOperator,
|
|
7133
|
+
onCriteriaGroupOperatorChange
|
|
7069
7134
|
},
|
|
7070
7135
|
i
|
|
7071
7136
|
);
|
|
@@ -7657,7 +7722,7 @@ import {
|
|
|
7657
7722
|
Label,
|
|
7658
7723
|
LoadingIndicator as LoadingIndicator4,
|
|
7659
7724
|
LoadingOverlay,
|
|
7660
|
-
Menu as
|
|
7725
|
+
Menu as Menu4,
|
|
7661
7726
|
MenuItem as MenuItem2,
|
|
7662
7727
|
ParameterGroup,
|
|
7663
7728
|
ParameterImage,
|
|
@@ -7724,7 +7789,7 @@ export {
|
|
|
7724
7789
|
LoadingIndicator4 as LoadingIndicator,
|
|
7725
7790
|
LoadingOverlay,
|
|
7726
7791
|
MULTI_SELECT_OPERATORS,
|
|
7727
|
-
|
|
7792
|
+
Menu4 as Menu,
|
|
7728
7793
|
MenuItem2 as MenuItem,
|
|
7729
7794
|
MeshApp,
|
|
7730
7795
|
NUMBER_OPERATORS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "20.71.2-alpha.
|
|
3
|
+
"version": "20.71.2-alpha.19+29ab6d7f60",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@lexical/selection": "0.45.0",
|
|
51
51
|
"@lexical/utils": "0.45.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
53
|
-
"@uniformdev/canvas": "20.71.2-alpha.
|
|
54
|
-
"@uniformdev/design-system": "20.71.2-alpha.
|
|
55
|
-
"@uniformdev/mesh-sdk": "20.71.2-alpha.
|
|
56
|
-
"@uniformdev/richtext": "20.71.2-alpha.
|
|
53
|
+
"@uniformdev/canvas": "20.71.2-alpha.19+29ab6d7f60",
|
|
54
|
+
"@uniformdev/design-system": "20.71.2-alpha.19+29ab6d7f60",
|
|
55
|
+
"@uniformdev/mesh-sdk": "20.71.2-alpha.19+29ab6d7f60",
|
|
56
|
+
"@uniformdev/richtext": "20.71.2-alpha.19+29ab6d7f60",
|
|
57
57
|
"dequal": "^2.0.3",
|
|
58
58
|
"lexical": "0.45.0",
|
|
59
59
|
"mitt": "3.0.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "29ab6d7f60af8eee4244b495f391611999326075"
|
|
89
89
|
}
|