@servicetitan/table 27.0.0 → 27.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/column-hiding/table.js +2 -2
- package/dist/demo/column-hiding/table.js.map +1 -1
- package/dist/demo/column-hiding/table.store.js.map +1 -1
- package/dist/demo/filters/async-select-filter.js +1 -1
- package/dist/demo/filters/async-select-filter.js.map +1 -1
- package/dist/demo/filters/multiselect-filter.js +1 -1
- package/dist/demo/filters/multiselect-filter.js.map +1 -1
- package/dist/demo/filters/range-filter.js +3 -3
- package/dist/demo/filters/range-filter.js.map +1 -1
- package/dist/demo/filters/select-filter.js +2 -2
- package/dist/demo/filters/select-filter.js.map +1 -1
- package/dist/demo/filters/single-select-filter.js +3 -3
- package/dist/demo/filters/single-select-filter.js.map +1 -1
- package/dist/demo/filters/table.store.js.map +1 -1
- package/dist/demo/footer-page-size/table.js +2 -2
- package/dist/demo/footer-page-size/table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.js +1 -1
- package/dist/demo/master-detail/detail-table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.store.js +4 -4
- package/dist/demo/master-detail/detail-table.store.js.map +1 -1
- package/dist/demo/master-detail/master-table.store.js +3 -3
- package/dist/demo/master-detail/master-table.store.js.map +1 -1
- package/dist/demo/master-detail/table-master-detail.js +2 -2
- package/dist/demo/master-detail/table-master-detail.js.map +1 -1
- package/dist/demo/overview/actions-cell.js +2 -2
- package/dist/demo/overview/actions-cell.js.map +1 -1
- package/dist/demo/overview/table.js +3 -3
- package/dist/demo/overview/table.js.map +1 -1
- package/dist/demo/overview/table.store.js.map +1 -1
- package/dist/demo/row-details/row-details-table.js +2 -2
- package/dist/demo/row-details/row-details-table.js.map +1 -1
- package/dist/demo/row-details/row-details-table.store.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.js +1 -1
- package/dist/demo/state-caching/state-caching-table.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.store.js.map +1 -1
- package/dist/details/expand-column.js +1 -1
- package/dist/details/expand-column.js.map +1 -1
- package/dist/editable-cell/boolean-editable-cell.js +1 -1
- package/dist/editable-cell/boolean-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-action-cell.js.map +1 -1
- package/dist/editable-cell/get-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-select-editable-cell.js +1 -1
- package/dist/editable-cell/get-select-editable-cell.js.map +1 -1
- package/dist/editable-cell/text-editable-cell.js +1 -1
- package/dist/editable-cell/text-editable-cell.js.map +1 -1
- package/dist/export/export.js +1 -1
- package/dist/export/export.js.map +1 -1
- package/dist/filters/async-select/async-select-filter.d.ts +1 -1
- package/dist/filters/async-select/async-select-filter.d.ts.map +1 -1
- package/dist/filters/async-select/async-select-filter.js +2 -2
- package/dist/filters/async-select/async-select-filter.js.map +1 -1
- package/dist/filters/column-menu-filters.d.ts +1 -1
- package/dist/filters/column-menu-filters.d.ts.map +1 -1
- package/dist/filters/column-menu-filters.js +1 -1
- package/dist/filters/column-menu-filters.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.js.map +1 -1
- package/dist/filters/field-values-filter.js +23 -23
- package/dist/filters/field-values-filter.js.map +1 -1
- package/dist/filters/multiselect-filter/multiselect-filter.js +1 -1
- package/dist/filters/multiselect-filter/multiselect-filter.js.map +1 -1
- package/dist/filters/range-filter/range-filter.js +1 -1
- package/dist/filters/range-filter/range-filter.js.map +1 -1
- package/dist/filters/select-filter/object-search.js.map +1 -1
- package/dist/filters/select-filter/operators.d.ts +1 -1
- package/dist/filters/select-filter/operators.d.ts.map +1 -1
- package/dist/filters/select-filter/select-filter.d.ts +1 -1
- package/dist/filters/select-filter/select-filter.d.ts.map +1 -1
- package/dist/filters/select-filter/select-filter.js +3 -3
- package/dist/filters/select-filter/select-filter.js.map +1 -1
- package/dist/filters/select-filter/value-getter.js.map +1 -1
- package/dist/filters/single-select/single-select-filter.js +1 -1
- package/dist/filters/single-select/single-select-filter.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +3 -3
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js.map +1 -1
- package/dist/filters/time-filter/time-filter.js.map +1 -1
- package/dist/select-cell/select-cell.d.ts +1 -1
- package/dist/select-cell/select-cell.d.ts.map +1 -1
- package/dist/select-cell/select-cell.js +2 -2
- package/dist/select-cell/select-cell.js.map +1 -1
- package/dist/table-state.d.ts +6 -6
- package/dist/table-state.d.ts.map +1 -1
- package/dist/table-state.js +67 -67
- package/dist/table-state.js.map +1 -1
- package/dist/table.d.ts +2 -2
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +2 -2
- package/dist/table.js.map +1 -1
- package/dist/use-observing-table-state/demo/components/use-observing-table-state-demo.js +1 -1
- package/dist/use-observing-table-state/demo/components/use-observing-table-state-demo.js.map +1 -1
- package/dist/use-observing-table-state/demo/stores/use-observing-table-state-demo.store.js.map +1 -1
- package/dist/use-observing-table-state/use-observing-table-state.d.ts.map +1 -1
- package/dist/use-observing-table-state/use-observing-table-state.js.map +1 -1
- package/dist/utils/filters.js.map +1 -1
- package/package.json +9 -9
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-caching-table.store.js","sourceRoot":"","sources":["../../../src/demo/state-caching/state-caching-table.store.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"state-caching-table.store.js","sourceR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UAAU;IADtB,UAAU,EAAE;GACA,UAAU,CAgCtB"}
|
@@ -13,7 +13,7 @@ export const RowExpandCell = ({ dataItem, dataIndex, expanded, tableState, class
|
|
13
13
|
target: e.target,
|
14
14
|
});
|
15
15
|
}, [dataItem, dataIndex, expanded, tableState]);
|
16
|
-
return (_jsx("td",
|
16
|
+
return (_jsx("td", { className: className, colSpan: colSpan, children: _jsx(Button, { iconName: expanded ? 'expand_less' : 'expand_more', "aria-label": "expand row", size: "xsmall", fill: "subtle", onClick: onCLick }) }));
|
17
17
|
};
|
18
18
|
export const getRowExpandColumn = () => (_jsx(TableColumn, { field: "expanded", title: " ", editable: false, sortable: false, resizable: false, cell: RowExpandCell, width: "50px" }));
|
19
19
|
export const useRowExpandColumn = () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"expand-column.js","sourceRoot":"","sources":["../../src/details/expand-column.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAsB,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAuB,CAAC,EAC9C,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,GACV,EAAE,EAAE;IACD,MAAM,OAAO,GAAG,WAAW,CACvB,CAAC,CAAiB,EAAE,EAAE;QAClB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,kBAAkB,CAAC;YAC3B,QAAQ;YACR,SAAS;YACT,KAAK,EAAE,CAAC,QAAQ;YAChB,cAAc,EAAE,CAAC;YACjB,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,MAAM,EAAE,CAAC,CAAC,MAAe;SAC5B,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAC9C,C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AE,KAAK,EAChB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAC,MAAM,GACd,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
@@ -6,7 +6,7 @@ const Editor = observer(({ fieldState: { value, onChange }, className }) => {
|
|
6
6
|
const handleChange = (_0, checked) => {
|
7
7
|
onChange(checked);
|
8
8
|
};
|
9
|
-
return (_jsx("td",
|
9
|
+
return (_jsx("td", { className: className, children: _jsx(Checkbox, { checked: value, onChange: handleChange, style: { marginRight: 0 } }) }));
|
10
10
|
});
|
11
11
|
export const BooleanEditableCell = getEditableCell({
|
12
12
|
editor: Editor,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boolean-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/boolean-editable-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAe,MAAM,qBAAqB,CAAC;AAEnE,MAAM,MAAM,GAAG,QAAQ,CACnB,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/C,MAAM,YAAY,GAAG,CAAC,EAAS,EAAE,OAAgB,EAAE,EAAE;QACjD,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACH,
|
1
|
+
{"version":3,"file":"boolean-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/boolean-editable-cell.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAe,MAAM,qBAAqB,CAAC;AAEnE,MAAM,MAAM,GAAG,QAAQ,CACnB,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/C,MAAM,YAAY,GAAG,CAAC,EAAS,EAAE,OAAgB,EAAE,EAAE;QACjD,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACH,aAAI,SAAS,EAAE,SAAS,YACpB,KAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,GAAI,GAC9E,CACR,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAC/C,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-action-cell.js","sourceRoot":"","sources":["../../src/editable-cell/get-action-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAcxD,MAAM,UAAU,aAAa,CAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAA0B;IAC3F,OAAO,CAAC,KAAwB,EAAE,EAAE;;QAChC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QAEhD,IAAI,OAAO,KAAK,MAAM,EAAE;
|
1
|
+
{"version":3,"file":"get-action-cell.js","sourceRoot":"","sources":["../../src/editable-cell/get-action-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAcxD,MAAM,UAAU,aAAa,CAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAA0B;IAC3F,OAAO,CAAC,KAAwB,EAAE,EAAE;;QAChC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QAEhD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO,KAAC,SAAS,oBAAK,KAAK,EAAI,CAAC;QACpC,CAAC;QAED,MAAM,WAAW,GACb,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,0CAAE,UAAU;YAClC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEtE,IAAI,WAAW,EAAE,CAAC;YACd,OAAO,KAAC,UAAU,oBAAK,KAAK,IAAE,SAAS,EAAE,WAAW,CAAC,IAAI,IAAI,CAAC;QAClE,CAAC;QAED,OAAO,KAAC,UAAU,oBAAK,KAAK,EAAI,CAAC;IACrC,CAAC,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/get-editable-cell.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAYxD,MAAM,UAAU,eAAe,CAAI,EAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,MAAM,GACS;IACvB,OAAO,CAAC,KAA0B,EAAE,EAAE;;QAClC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QAEvD,IAAI,OAAO,KAAK,MAAM,EAAE;
|
1
|
+
{"version":3,"file":"get-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/get-editable-cell.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAYxD,MAAM,UAAU,eAAe,CAAI,EAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,MAAM,GACS;IACvB,OAAO,CAAC,KAA0B,EAAE,EAAE;;QAClC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QAEvD,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO,KAAC,SAAS,oBAAK,KAAK,EAAI,CAAC;QACpC,CAAC;QAED,MAAM,WAAW,GACb,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,0CAAE,UAAU;YAClC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEtE,IAAI,KAAK,IAAI,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,IAAI,WAAW,CAAC,KAAK,KAAK,KAAK,CAAC,EAAE,CAAC;YAC9E,OAAO,KAAC,MAAM,oBAAK,KAAK,IAAE,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QACxE,CAAC;QAED,OAAO,KAAC,MAAM,oBAAK,KAAK,EAAI,CAAC;IACjC,CAAC,CAAC;AACN,CAAC"}
|
@@ -9,7 +9,7 @@ export function getSelectEditableCell({ options, viewer }) {
|
|
9
9
|
const handleChange = (event) => {
|
10
10
|
onChange(event.target.value.value);
|
11
11
|
};
|
12
|
-
return (_jsx("td",
|
12
|
+
return (_jsx("td", { className: classNames('of-visible', className), children: _jsx(DropDownList, { data: options, value: selected, onChange: handleChange, dataItemKey: "value", textField: "text", valid: !hasError, validationMessage: error, className: "w-100" }) }));
|
13
13
|
});
|
14
14
|
return getEditableCell({
|
15
15
|
viewer,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-select-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/get-select-editable-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CA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K,CAAC,CAAC;QAEhE,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE;YACpD,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC;QAEF,OAAO,CACH,aAAI,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC,YAC9C,KAAC,YAAY,IACT,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAC,OAAO,EACnB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,CAAC,QAAQ,EAChB,iBAAiB,EAAE,KAAK,EACxB,SAAS,EAAC,OAAO,GACnB,GACD,CACR,CAAC;IACN,CAAC,CACJ,CAAC;IAEF,OAAO,eAAe,CAAC;QACnB,MAAM;QACN,MAAM,EAAE,MAAM;KACjB,CAAC,CAAC;AACP,CAAC"}
|
@@ -10,7 +10,7 @@ export function getTextEditableCell({ placeholder, isDisabled, } = {}) {
|
|
10
10
|
onChange(event.target.value);
|
11
11
|
}
|
12
12
|
};
|
13
|
-
return (_jsxs("td",
|
13
|
+
return (_jsxs("td", { className: className, children: [_jsx(Input, { value: value, onChange: handleChange, valid: !hasError, placeholder: placeholder, disabled: isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(dataItem) }), hasError && _jsx(Label, { label: "", hasError: true, error: error })] }));
|
14
14
|
});
|
15
15
|
return getEditableCell({
|
16
16
|
editor: Editor,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-editable-cell.js","sourceRoot":"","sources":["../../src/editable-cell/text-editable-cell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAe,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,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CAAC,QAAQ,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAG,QAAQ,CAAC,GAClC,EACD,QAAQ,IAAI,KAAC,KAAK,IAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,QAAC,KAAK,EAAE,KAAK,GAAI,IACrD,CACR,CAAC;IACN,CAAC,CACJ,CAAC;IAEF,OAAO,eAAe,CAAC;QACnB,MAAM,EAAE,MAAM;KACjB,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC"}
|
package/dist/export/export.js
CHANGED
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Dropdown, Icon } from '@servicetitan/design-system';
|
3
3
|
import { formatNumber } from 'accounting';
|
4
4
|
import * as Styles from './export.module.css';
|
5
|
-
export const Export = ({ className, totalCount, exportPdf, exportExcel }) => (_jsx("div",
|
5
|
+
export const Export = ({ className, totalCount, exportPdf, exportExcel }) => (_jsx("div", { className: className, children: _jsx(Dropdown, { trigger: _jsxs(Button, { className: "qa-export-dropdown", iconName: "expand_more", iconPosition: "right", children: [_jsx(Icon, { name: "file_download" }), _jsxs("span", { children: ["Download", !!totalCount && ` (${formatNumber(totalCount, 0)})`] })] }), icon: null, children: _jsxs(Dropdown.Menu, { className: Styles.dropdown, children: [exportPdf && (_jsx(Dropdown.Item, { className: "qa-export-pdf", text: ".PDF", onClick: exportPdf })), exportExcel && (_jsx(Dropdown.Item, { className: "qa-export-excel", text: ".XLSX", onClick: exportExcel }))] }) }) }));
|
6
6
|
//# sourceMappingURL=export.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/export/export.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACrE,O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IACW,GACT,GACT,CACT,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { IdType } from '@servicetitan/data-query';
|
3
3
|
import { CustomColumnMenuFilterSingleOpts } from '../column-menu-filters';
|
4
|
-
export
|
4
|
+
export type AsyncSelectFilterDataFetcher<TV extends IdType = IdType, TO extends AsyncSelectItem<TV> = AsyncSelectItem<TV>> = (opts: {
|
5
5
|
search?: string;
|
6
6
|
}) => Promise<{
|
7
7
|
data: TO[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"async-select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/async-select/async-select-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAA+B,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACH,gCAAgC,EAEnC,MAAM,wBAAwB,CAAC;AAIhC,
|
1
|
+
{"version":3,"file":"async-select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/async-select/async-select-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAA+B,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACH,gCAAgC,EAEnC,MAAM,wBAAwB,CAAC;AAIhC,MAAM,MAAM,4BAA4B,CACpC,EAAE,SAAS,MAAM,GAAG,MAAM,EAC1B,EAAE,SAAS,eAAe,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC,IACpD,CAAC,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC;IAAE,IAAI,EAAE,EAAE,EAAE,CAAA;CAAE,CAAC,CAAC;AAE3D,MAAM,WAAW,eAAe,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM;IACvD,KAAK,EAAE,EAAE,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;CAChB;AAwJD,MAAM,WAAW,wBAAwB,CAAC,GAAG,SAAS,MAAM,EAAE,EAAE,SAAS,eAAe,CAAC,GAAG,CAAC,CACzF,SAAQ,gCAAgC;IACxC,WAAW,EAAE,4BAA4B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,SAAS,CAAC;CACxC;AAMD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,SAAS,MAAM,EAAE,EAAE,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,EAC7F,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,EACV,GAAG,IAAI,EACV,EAAE,wBAAwB,CAAC,GAAG,EAAE,EAAE,CAAC,kHA2DnC"}
|
@@ -114,9 +114,9 @@ let SelectorAsync = class SelectorAsync extends Component {
|
|
114
114
|
const selectedOptions = this.props.selected;
|
115
115
|
const selected = new Set(selectedOptions.map(opt => opt.value));
|
116
116
|
const ItemComponent = this.props.itemComponent;
|
117
|
-
return (_jsxs(Fragment, { children: [_jsx(Input, { className: "m-x-half m-t-half m-b-2", placeholder: this.props.placeholder, onChange: this.handleSearch, onKeyDown: this.handleKeyDown, size: "xsmall", value: this.search }), _jsxs("div",
|
117
|
+
return (_jsxs(Fragment, { children: [_jsx(Input, { className: "m-x-half m-t-half m-b-2", placeholder: this.props.placeholder, onChange: this.handleSearch, onKeyDown: this.handleKeyDown, size: "xsmall", value: this.search }), _jsxs("div", { className: "p-x-half position-relative", onKeyDown: this.handleKeyDown, children: [!!selectedOptions.length && (_jsx("div", { className: "border-bottom m-y-half", children: selectedOptions.map(option => (_jsx(ItemComponent, { option: option, checked: true, renderer: this.props.renderer, onChange: this.props.onChange }, option.value))) })), this.error ? (_jsx(BodyText, { className: "c-red-500", children: "Unable to load options" })) : this.shownOptions.length ? (this.shownOptions
|
118
118
|
.filter(opt => !selected.has(opt.value))
|
119
|
-
.map(option => (_jsx(ItemComponent, { option: option, checked: false, renderer: this.props.renderer, onChange: this.props.onChange }, option.value)))) : this.loading ? (_jsx(BodyText, { children: "\u00A0" })) : (_jsx(BodyText, { children: "No options found" })), this.loading && (_jsx("div",
|
119
|
+
.map(option => (_jsx(ItemComponent, { option: option, checked: false, renderer: this.props.renderer, onChange: this.props.onChange }, option.value)))) : this.loading ? (_jsx(BodyText, { children: "\u00A0" })) : (_jsx(BodyText, { children: "No options found" })), this.loading && (_jsx("div", { className: "position-absolute top-0 bottom-0 left-0 right-0 opacity-disabled bg-white d-f justify-content-center", children: _jsx(Spinner, { size: "tiny" }) }))] })] }));
|
120
120
|
}
|
121
121
|
};
|
122
122
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"async-select-filter.js","sourceRoot":"","sources":["../../../src/filters/async-select/async-select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA6B,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAE1F,OAAO,EACH,QAAQ,EAER,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"async-select-filter.js","sourceRoot":"","sources":["../../../src/filters/async-select/async-select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA6B,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAE1F,OAAO,EACH,QAAQ,EAER,KAAK,EACL,KAAK,EACL,OAAO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AE,KAAK;iBACxB,CAAC,CAAC;YACP,CAAC,CAAC;YAEF,OAAO,CACH,KAAC,aAAa,IACV,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAC9B,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,kBAAkB,EACjC,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,UAAU,EACpB,WAAW,EAAE,WAAW,GAC1B,CACL,CAAC;QACN,CAAC,CAAC;IAER,OAAO,4BAA4B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC"}
|
@@ -9,6 +9,6 @@ export interface CustomColumnMenuFilterDoubleOpts {
|
|
9
9
|
double?: boolean;
|
10
10
|
doubleContentClassName?: string;
|
11
11
|
}
|
12
|
-
export
|
12
|
+
export type CustomColumnMenuFilterOpts = CustomColumnMenuFilterSingleOpts & CustomColumnMenuFilterDoubleOpts;
|
13
13
|
export declare function renderCustomColumnMenuFilter(FilterCell: ComponentType<TableFilterCellProps>, doubleOrOptions?: boolean | CustomColumnMenuFilterOpts): (props: TableColumnMenuProps) => import("react/jsx-runtime").JSX.Element;
|
14
14
|
//# sourceMappingURL=column-menu-filters.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"column-menu-filters.d.ts","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAqB,MAAM,OAAO,CAAC;AACzD,OAAO,EAEH,oBAAoB,EACpB,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,wBAAwB,UAAW,oBAAoB,4CAEnE,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,gCAAgC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,
|
1
|
+
{"version":3,"file":"column-menu-filters.d.ts","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAqB,MAAM,OAAO,CAAC;AACzD,OAAO,EAEH,oBAAoB,EACpB,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,wBAAwB,UAAW,oBAAoB,4CAEnE,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,gCAAgC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,MAAM,0BAA0B,GAAG,gCAAgC,GACrE,gCAAgC,CAAC;AAErC,wBAAgB,4BAA4B,CACxC,UAAU,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAC/C,eAAe,CAAC,EAAE,OAAO,GAAG,0BAA0B,WAqCvC,oBAAoB,6CAGtC"}
|
@@ -10,7 +10,7 @@ export function renderCustomColumnMenuFilter(FilterCell, doubleOrOptions) {
|
|
10
10
|
contentStyles.maxHeight = opts.contentMaxHeight;
|
11
11
|
contentStyles.overflowY = 'auto';
|
12
12
|
}
|
13
|
-
return (_jsxs("div",
|
13
|
+
return (_jsxs("div", { className: opts.contentClassName, style: contentStyles, children: [_jsx(FilterCell, Object.assign({}, firstFilterProps)), !!opts.double && (_jsxs("div", { className: opts.doubleContentClassName, children: [_jsx(DropDownList, { data: logicData, value: logicValue, onChange: onLogicChange, className: "k-filter-and m-b-1", textField: "text" }), _jsx(FilterCell, Object.assign({}, secondFilterProps))] }))] }));
|
14
14
|
};
|
15
15
|
return (props) => (_jsx(TableColumnMenuFilter, Object.assign({}, props, { filterUI: FilterUI, expanded: true })));
|
16
16
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"column-menu-filters.js","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":";AACA,OAAO,EACH,qBAAqB,GAGxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CACrE,KAAC,qBAAqB,oBAAK,KAAK,IAAE,QAAQ,UAAG,CAChD,CAAC;AAcF,MAAM,UAAU,4BAA4B,CACxC,UAA+C,EAC/C,eAAsD;IAEtD,MAAM,IAAI,GACN,OAAO,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,CAAC;IAC/F,MAAM,QAAQ,GAAqC,CAAC,EAChD,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,aAAa,GAChB,EAAE,EAAE;QACD,MAAM,aAAa,GAAkB,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,gBAAgB,EAAE;
|
1
|
+
{"version":3,"file":"column-menu-filters.js","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":";AACA,OAAO,EACH,qBAAqB,GAGxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CACrE,KAAC,qBAAqB,oBAAK,KAAK,IAAE,QAAQ,UAAG,CAChD,CAAC;AAcF,MAAM,UAAU,4BAA4B,CACxC,UAA+C,EAC/C,eAAsD;IAEtD,MAAM,IAAI,GACN,OAAO,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,CAAC;IAC/F,MAAM,QAAQ,GAAqC,CAAC,EAChD,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,aAAa,GAChB,EAAE,EAAE;QACD,MAAM,aAAa,GAAkB,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACxB,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC;YAChD,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC;QACrC,CAAC;QAED,OAAO,CACH,eAAK,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,EAAE,aAAa,aACvD,KAAC,UAAU,oBAAK,gBAAgB,EAAI,EACnC,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,CACd,eAAK,SAAS,EAAE,IAAI,CAAC,sBAAsB,aACvC,KAAC,YAAY,IACT,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAC,oBAAoB,EAC9B,SAAS,EAAC,MAAM,GAClB,EACF,KAAC,UAAU,oBAAK,iBAAiB,EAAI,IACnC,CACT,IACC,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CAAC,KAA2B,EAAE,EAAE,CAAC,CACpC,KAAC,qBAAqB,oBAAK,KAAK,IAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,UAAG,CACpE,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datetime-filter.js","sourceRoot":"","sources":["../../../src/filters/datetime-filter/datetime-filter.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc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;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,4BAA4B,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC"}
|
@@ -28,6 +28,28 @@ export function operator(item, value) {
|
|
28
28
|
}
|
29
29
|
export function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem) {
|
30
30
|
let FieldValuesFilterCell = class FieldValuesFilterCell extends Component {
|
31
|
+
get processedData() {
|
32
|
+
const searchQuery = this.searchQuery.toLowerCase();
|
33
|
+
const filteredData = !searchQuery
|
34
|
+
? this.data
|
35
|
+
: this.data.filter(v => v.text.toLowerCase().includes(searchQuery));
|
36
|
+
return filteredData.slice().sort((a, b) => {
|
37
|
+
if (a.text === b.text) {
|
38
|
+
return 0;
|
39
|
+
}
|
40
|
+
return a.text < b.text ? -1 : 1;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
get field() {
|
44
|
+
const field = this.props.field;
|
45
|
+
if (field === undefined) {
|
46
|
+
throw 'missing field';
|
47
|
+
}
|
48
|
+
return field;
|
49
|
+
}
|
50
|
+
get value() {
|
51
|
+
return this.props.value || [];
|
52
|
+
}
|
31
53
|
constructor(props) {
|
32
54
|
super(props);
|
33
55
|
Object.defineProperty(this, "data", {
|
@@ -70,33 +92,11 @@ export function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRend
|
|
70
92
|
});
|
71
93
|
makeObservable(this);
|
72
94
|
}
|
73
|
-
get processedData() {
|
74
|
-
const searchQuery = this.searchQuery.toLowerCase();
|
75
|
-
const filteredData = !searchQuery
|
76
|
-
? this.data
|
77
|
-
: this.data.filter(v => v.text.toLowerCase().includes(searchQuery));
|
78
|
-
return filteredData.slice().sort((a, b) => {
|
79
|
-
if (a.text === b.text) {
|
80
|
-
return 0;
|
81
|
-
}
|
82
|
-
return a.text < b.text ? -1 : 1;
|
83
|
-
});
|
84
|
-
}
|
85
|
-
get field() {
|
86
|
-
const field = this.props.field;
|
87
|
-
if (field === undefined) {
|
88
|
-
throw 'missing field';
|
89
|
-
}
|
90
|
-
return field;
|
91
|
-
}
|
92
|
-
get value() {
|
93
|
-
return this.props.value || [];
|
94
|
-
}
|
95
95
|
componentDidMount() {
|
96
96
|
this.fetchData(tableState.dataSource);
|
97
97
|
}
|
98
98
|
render() {
|
99
|
-
return (_jsxs(Fragment, { children: [_jsx(Input, { value: this.searchQuery, onChange: this.handleSearchQueryChange, placeholder: "Search", className: "m-b-1" }), this.processedData.map(item => (_jsx("span",
|
99
|
+
return (_jsxs(Fragment, { children: [_jsx(Input, { value: this.searchQuery, onChange: this.handleSearchQueryChange, placeholder: "Search", className: "m-b-1" }), this.processedData.map(item => (_jsx("span", { className: "k-widget d-b m-b-1", children: _jsx(Checkbox, { label: item.text, checked: this.value.includes(item.value), onChange: this.handleChange, value: item }) }, JSON.stringify(item))))] }));
|
100
100
|
}
|
101
101
|
fetchData(dataSource) {
|
102
102
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field-values-filter.js","sourceRoot":"","sources":["../../src/filters/field-values-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAwB,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAEjF,OAAO,EAAE,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AAIvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,MAAM,UAAU,QAAQ,CAAI,IAAO,EAAE,KAAU;IAC3C,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,2BAA2B,CACvC,UAA8B,EAC9B,aAA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,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;gBAE5E,WAAW,CAAC,GAAG,EAAE;oBACb,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;gBAClF,CAAC,CAAC,CAAC;YACP,CAAC;SAAA;KACJ,CAAA;IAvGe;QAAX,UAAU;;uDAAmB;IAElB;QAAX,UAAU;;8DAAkB;IAE7B;QAAC,QAAQ;;;8DAcR;IAsBD;QADC,MAAM;;0EAKL;IA7CA,qBAAqB;QAD1B,QAAQ;;OACH,qBAAqB,CAwG1B;IAED,OAAO,4BAA4B,CAAC,qBAAqB,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,iBAAiB,CAAC,CAAM;IAC7B,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACd,CAAC;IAED,4BAA4B;IAC5B,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC"}
|
@@ -22,7 +22,7 @@ class Selector extends Component {
|
|
22
22
|
const { options, value, renderer } = this.props;
|
23
23
|
return options.map((option, index) => (
|
24
24
|
// eslint-disable-next-line react/no-array-index-key
|
25
|
-
_jsx("span",
|
25
|
+
_jsx("span", { className: "k-widget m-b-1-i d-b", children: _jsx(Checkbox, { value: option, label: renderer ? renderer(option) : option, checked: (value !== null && value !== void 0 ? value : []).includes(option), onChange: this.handleChange }) }, index)));
|
26
26
|
}
|
27
27
|
}
|
28
28
|
export function multiSelectColumnMenuFilter(data, renderItem, opts) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiselect-filter.js","sourceRoot":"","sources":["../../../src/filters/multiselect-filter/multiselect-filter.tsx"],"names":[],"mappings":";AA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AAK,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EACvC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,QAAQ,EAAE,UAAU,GACtB,CACL,CAAC;QACN,CAAC;KACJ;IAED,OAAO,4BAA4B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC"}
|
@@ -78,7 +78,7 @@ class RangeFilterCellBase extends Component {
|
|
78
78
|
render() {
|
79
79
|
const filterValue = this.props.value;
|
80
80
|
const Control = this.controlClass;
|
81
|
-
return (_jsxs(Fragment, { children: [_jsx("span",
|
81
|
+
return (_jsxs(Fragment, { children: [_jsx("span", { className: "k-widget m-b-1 d-b", children: "From:" }), _jsx("span", { children: _jsx(NoSSR, { children: _jsx(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.min, ref: this.setMinValueRef, onChange: this.onChange })) }) }), _jsx("span", { className: "k-widget m-t-1 m-b-1 d-b", children: "To:" }), _jsx("span", { children: _jsx(NoSSR, { children: _jsx(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.max, ref: this.setMaxValueRef, onChange: this.onChange })) }) })] }));
|
82
82
|
}
|
83
83
|
}
|
84
84
|
class NumericRangeFilterCell extends RangeFilterCellBase {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range-filter.js","sourceRoot":"","sources":["../../../src/filters/range-filter/range-filter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAuB,MAAM,8BAA8B,CAAC;AACnF,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAw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C,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,OAAa,EAAE,MAAmB;QACtC,OAAO,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,CACpD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,EACrD,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,EACrD,SAAS,EACT,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,4BAA4B,CAAC,sBAAsB,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG,4BAA4B,CAAC,uBAAuB,CAAC,CAAC;AACnG,MAAM,CAAC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC,mBAAmB,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,4BAA4B,CAAC,mBAAmB,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"object-search.js","sourceRoot":"","sources":["../../../src/filters/select-filter/object-search.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,EAAE;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAEtC,OAAO,CAAC,IAAS,EAAW,EAAE;QAC1B,IAAI,CAAC,CAAC,EAAE;
|
1
|
+
{"version":3,"file":"object-search.js","sourceRoot":"","sources":["../../../src/filters/select-filter/object-search.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,EAAE;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAEtC,OAAO,CAAC,IAAS,EAAW,EAAE;QAC1B,IAAI,CAAC,CAAC,EAAE,CAAC;YACL,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAChB,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC3B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CACpC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CACtE,CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC;AACN,CAAC,CAAC"}
|
@@ -4,7 +4,7 @@ interface OperatorOpts<TO> {
|
|
4
4
|
rowValueSelector?: (item: any) => IdType | undefined;
|
5
5
|
}
|
6
6
|
export declare const selectColumnMenuFilterOperators: {
|
7
|
-
getContains: <TO>(opts?: OperatorOpts<TO>
|
7
|
+
getContains: <TO>(opts?: OperatorOpts<TO>) => (value: any, options?: TO[]) => boolean | undefined;
|
8
8
|
getEquals: <TO_1>(opts?: OperatorOpts<TO_1> | undefined) => (value: any, option?: TO_1 | undefined) => boolean;
|
9
9
|
};
|
10
10
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/operators.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,UAAU,YAAY,CAAC,EAAE;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;CACxD;AAED,eAAO,MAAM,+BAA+B;
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/operators.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,UAAU,YAAY,CAAC,EAAE;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;CACxD;AAED,eAAO,MAAM,+BAA+B;6BACf,aAAa,EAAE,CAAC,aAGtB,GAAG,YAAY,EAAE,EAAE;wEAMnB,GAAG;CAGzB,CAAC"}
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
2
2
|
import { IdType } from '@servicetitan/data-query';
|
3
3
|
import { CustomColumnMenuFilterSingleOpts } from '../column-menu-filters';
|
4
4
|
import { selectColumnMenuFilterOperators } from './operators';
|
5
|
-
export
|
5
|
+
export type SelectFilterDataFetcher<TO> = (opts: {
|
6
6
|
search?: string;
|
7
7
|
}) => Promise<{
|
8
8
|
data: TO[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAA+B,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACH,gCAAgC,EAEnC,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAE9D,
|
1
|
+
{"version":3,"file":"select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":"AAA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AC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAAC;IACjD,0BAA0B;IAC1B,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,SAAS,CAAC;CACpC;AAMD,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,EACvC,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAA8B,EAC9B,gBAAiC,EACjC,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,mBAAmB,CAAC,EAAE,CAAC,kHAiFzB;AAED,OAAO,EAAE,+BAA+B,EAAE,CAAC"}
|
@@ -126,13 +126,13 @@ let SelectorAsync = class SelectorAsync extends Component {
|
|
126
126
|
const selectedOptions = this.props.selected;
|
127
127
|
const selected = new Set(selectedOptions.map(opt => this.props.valueSelector(opt)));
|
128
128
|
const ItemComponent = this.props.itemComponent;
|
129
|
-
return (_jsxs(Fragment, { children: [!!this.props.search && (_jsx(Input, { className: "m-x-half m-t-half m-b-2", placeholder: (_a = this.props.search) === null || _a === void 0 ? void 0 : _a.placeholder, onChange: this.handleSearch, onKeyDown: this.handleKeyDown, size: "xsmall", value: this.search })), _jsxs("div",
|
129
|
+
return (_jsxs(Fragment, { children: [!!this.props.search && (_jsx(Input, { className: "m-x-half m-t-half m-b-2", placeholder: (_a = this.props.search) === null || _a === void 0 ? void 0 : _a.placeholder, onChange: this.handleSearch, onKeyDown: this.handleKeyDown, size: "xsmall", value: this.search })), _jsxs("div", { className: "p-x-half position-relative", onKeyDown: this.handleKeyDown, children: [!!selectedOptions.length && (_jsx("div", { className: "border-bottom m-y-half", children: selectedOptions.map((option, index) => (_jsx(ItemComponent, { option: option, checked: true, renderer: this.props.renderItem, onChange: this.props.onChange }, this.getItemKey(option, index)))) })), this.error ? (_jsx(BodyText, { className: "c-red-500", children: "Unable to load options" })) : this.shownOptions.length ? (this.shownOptions
|
130
130
|
.filter(opt => !selected.has(this.props.valueSelector(opt)))
|
131
|
-
.map((option, index) => (_jsx(ItemComponent, { option: option, checked: false, renderer: this.props.renderItem, onChange: this.props.onChange }, this.getItemKey(option, index))))) : this.loading ? (_jsx(BodyText, { children: "\u00A0" })) : (_jsx(BodyText,
|
131
|
+
.map((option, index) => (_jsx(ItemComponent, { option: option, checked: false, renderer: this.props.renderItem, onChange: this.props.onChange }, this.getItemKey(option, index))))) : this.loading ? (_jsx(BodyText, { children: "\u00A0" })) : (_jsx(BodyText, { subdued: true, children: "No options match search criteria" })), this.loading && (_jsx("div", { className: "position-absolute top-0 bottom-0 left-0 right-0 opacity-disabled bg-white d-f justify-content-center", children: _jsx(Spinner, { size: "tiny" }) }))] })] }));
|
132
132
|
}
|
133
133
|
getData() {
|
134
|
-
var _a, _b;
|
135
134
|
return __awaiter(this, void 0, void 0, function* () {
|
135
|
+
var _a, _b;
|
136
136
|
if (this.props.dataFetcher) {
|
137
137
|
const { data } = yield this.props.dataFetcher({
|
138
138
|
search: this.search,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-filter.js","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA6B,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAE1F,OAAO,EACH,QAAQ,EAER,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;
|
1
|
+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AI,IAAI,KAAK,IAAI,EAAE;
|
1
|
+
{"version":3,"file":"value-getter.js","sourceRoot":"","sources":["../../../src/filters/select-filter/value-getter.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAS,EAAU,EAAE;IAChD,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,CAAC;QACzD,OAAO,GAAG,IAAI,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC"}
|
@@ -20,7 +20,7 @@ class SelectorRadio extends Component {
|
|
20
20
|
const optionValue = this.props.valueSelector(option);
|
21
21
|
return (
|
22
22
|
// eslint-disable-next-line react/no-array-index-key
|
23
|
-
_jsx("span",
|
23
|
+
_jsx("span", { className: "k-widget m-b-1-i d-b", children: _jsx(Radio, { label: renderer ? renderer(option) : `${option}`, checked: value === optionValue, onChange: (_, event) => this.props.onChange(optionValue, event) }) }, index));
|
24
24
|
});
|
25
25
|
}
|
26
26
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"single-select-filter.js","sourceRoot":"","sources":["../../../src/filters/single-select/single-select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAwB,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAUhC,MAAM,aAAsB,SAAQ,SAAgC;IAChE,MAAM;QACF,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACjC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YACrD,OAAO;YACH,oDAAoD;YACpD,
|
1
|
+
{"version":3,"file":"single-select-filter.js","sourceRoot":"","sources":["../../../src/filters/single-select/single-select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAwB,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAUhC,MAAM,aAAsB,SAAQ,SAAgC;IAChE,MAAM;QACF,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACjC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YACrD,OAAO;YACH,oDAAoD;YACpD,eAAkB,SAAS,EAAC,sBAAsB,YAC9C,KAAC,KAAK,IACF,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,EAChD,OAAO,EAAE,KAAK,KAAK,WAAW,EAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,GACjE,IALK,KAAK,CAMT,CACV,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAUD,MAAM,UAAU,4BAA4B,CAA6B,EAMjC;QANiC,EACrE,OAAO,EACP,aAAa,EACb,UAAU,EACV,cAAc,OAEsB,EADjC,IAAI,cAL8D,4DAMxE,CADU;IAEP,MAAM,UAAU,GAA6B,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;QACjE,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,KAAuC,EAAE,EAAE;YACpF,MAAM,MAAM,GACR,KAAK,KAAK,SAAS;gBACf,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;gBAC7B,CAAC,CAAC;oBACI,KAAK;oBACL,QAAQ,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,QAAQ;iBACvC,CAAC;YAEZ,QAAQ,iCACD,MAAM,KACT,cAAc,EAAE,KAAK,IACvB,CAAC;QACP,CAAC,CAAC;QAEF,OAAO,CACH,KAAC,aAAa,IACV,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EACvC,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,UAAU,EACpB,aAAa,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,GACpD,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,4BAA4B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC"}
|
@@ -62,7 +62,7 @@ export const FilterCellExt = observer(props => {
|
|
62
62
|
const newValue = e.value.map((v) => { var _a; return (_a = v.value) !== null && _a !== void 0 ? _a : (props.handleCustomValuesAsNumber ? +v.text : v.text); });
|
63
63
|
onChange({
|
64
64
|
operator,
|
65
|
-
value: newValue.length ? newValue : '',
|
65
|
+
value: newValue.length ? newValue : '', // for Kendo to handle empty array as an empty value TODO: check if there is another way
|
66
66
|
syntheticEvent: e.syntheticEvent,
|
67
67
|
});
|
68
68
|
};
|
@@ -78,9 +78,9 @@ export const FilterCellExt = observer(props => {
|
|
78
78
|
(!props.handleCustomValuesAsNumber || !isNaN(+store.searchQuery))) ||
|
79
79
|
false;
|
80
80
|
return (_jsxs("div", { children: [_jsx(DropDownList, { value: store.operatorValue, onChange: handleOperatorChange, data: store.operators, className: "m-b-1", textField: "text" }), (typeof operator !== 'string' || !IsUnaryFilter(operator)) &&
|
81
|
-
(isMultiselectOperator(operator) ? (_jsx(MultiSelect, { value: store.multiselectValue, onChange: handleMultiselectChange, filterable: true, onFilterChange: store.filterChange, allowCustom: allowCustomAdd, data: store.filteredVisibleValues, textField: "text", dataItemKey: "value", className: classNames('m-b-1', Styles.multiSelect), header: allowCustomAdd && _jsx("div", { className: Styles.customItemAddMarker }), footer: allowCustomAdd ? (_jsxs("div",
|
81
|
+
(isMultiselectOperator(operator) ? (_jsx(MultiSelect, { value: store.multiselectValue, onChange: handleMultiselectChange, filterable: true, onFilterChange: store.filterChange, allowCustom: allowCustomAdd, data: store.filteredVisibleValues, textField: "text", dataItemKey: "value", className: classNames('m-b-1', Styles.multiSelect), header: allowCustomAdd && _jsx("div", { className: Styles.customItemAddMarker }), footer: allowCustomAdd ? (_jsxs("div", { className: Styles.returnToUse, children: [_jsx(Icon, { name: "keyboard_return" }), "to create filter"] })) : (store.onlyFirstValues && (_jsxs("div", { className: Styles.returnToUse, children: ["First ", store.onlyFirstValues, " values are shown. ", _jsx("br", {}), "Type to search for other values."] }))), itemRender: multiselectItemRender, tagRender: multiselectTagRender !== null && multiselectTagRender !== void 0 ? multiselectTagRender : defaultMultiselectTagRender, listNoDataRender: multiselectListNoDataRender })) : (_jsx("input", { className: "k-input k-input-md k-rounded-md k-input-solid m-b-1", value: props.value, onChange: handleInputChange })))] }));
|
82
82
|
});
|
83
83
|
const defaultMultiselectTagRender = (tagData, li) => {
|
84
|
-
return (_jsx(Tooltip,
|
84
|
+
return (_jsx(Tooltip, { portal: true, text: tagData.text, className: Styles.multiSelectTagTooltipWrapper, popperClassName: Styles.multiSelectTagTooltip, children: li }));
|
85
85
|
};
|
86
86
|
//# sourceMappingURL=filter-cell-ext.js.map
|