@elliemae/ds-data-table-filters 3.36.0-rc.0 → 3.36.1-next.7

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.
Files changed (57) hide show
  1. package/dist/cjs/parts/DateRangeFilter/DateRangeFilter.js +2 -4
  2. package/dist/cjs/parts/DateRangeFilter/DateRangeFilter.js.map +1 -1
  3. package/dist/cjs/parts/DateRangeFilter/DateRangePill.js.map +1 -1
  4. package/dist/cjs/parts/DateRangeFilter/dateRangeFilterFn.js +4 -8
  5. package/dist/cjs/parts/DateRangeFilter/dateRangeFilterFn.js.map +1 -1
  6. package/dist/cjs/parts/DateRangeFilter/index.js +0 -1
  7. package/dist/cjs/parts/DateRangeFilter/index.js.map +1 -1
  8. package/dist/cjs/parts/FilterPopover/FilterPopover.js +1 -2
  9. package/dist/cjs/parts/FilterPopover/FilterPopover.js.map +1 -1
  10. package/dist/cjs/parts/FilterPopover/index.js +0 -1
  11. package/dist/cjs/parts/FilterPopover/index.js.map +1 -1
  12. package/dist/cjs/parts/MultiSelectFilter/index.js +0 -1
  13. package/dist/cjs/parts/MultiSelectFilter/index.js.map +1 -1
  14. package/dist/cjs/parts/MultiSelectFilter/multiSelectFilterFn.js +2 -4
  15. package/dist/cjs/parts/MultiSelectFilter/multiSelectFilterFn.js.map +1 -1
  16. package/dist/cjs/parts/NumberRangeFilter/NumberRangeFilter.js +2 -4
  17. package/dist/cjs/parts/NumberRangeFilter/NumberRangeFilter.js.map +1 -1
  18. package/dist/cjs/parts/NumberRangeFilter/NumberRangePill.js.map +1 -1
  19. package/dist/cjs/parts/NumberRangeFilter/index.js +0 -1
  20. package/dist/cjs/parts/NumberRangeFilter/index.js.map +1 -1
  21. package/dist/cjs/parts/NumberRangeFilter/numberRangeFilterFn.js +2 -4
  22. package/dist/cjs/parts/NumberRangeFilter/numberRangeFilterFn.js.map +1 -1
  23. package/dist/cjs/parts/SingleDateFilter/SingleDateFilter.js +1 -2
  24. package/dist/cjs/parts/SingleDateFilter/SingleDateFilter.js.map +1 -1
  25. package/dist/cjs/parts/SingleDateFilter/index.js +0 -1
  26. package/dist/cjs/parts/SingleDateFilter/index.js.map +1 -1
  27. package/dist/cjs/parts/SingleSelectFilter/index.js +0 -1
  28. package/dist/cjs/parts/SingleSelectFilter/index.js.map +1 -1
  29. package/dist/esm/parts/DateRangeFilter/DateRangeFilter.js +2 -4
  30. package/dist/esm/parts/DateRangeFilter/DateRangeFilter.js.map +1 -1
  31. package/dist/esm/parts/DateRangeFilter/DateRangePill.js.map +1 -1
  32. package/dist/esm/parts/DateRangeFilter/dateRangeFilterFn.js +4 -8
  33. package/dist/esm/parts/DateRangeFilter/dateRangeFilterFn.js.map +1 -1
  34. package/dist/esm/parts/DateRangeFilter/index.js +0 -1
  35. package/dist/esm/parts/DateRangeFilter/index.js.map +1 -1
  36. package/dist/esm/parts/FilterPopover/FilterPopover.js +1 -2
  37. package/dist/esm/parts/FilterPopover/FilterPopover.js.map +1 -1
  38. package/dist/esm/parts/FilterPopover/index.js +0 -1
  39. package/dist/esm/parts/FilterPopover/index.js.map +1 -1
  40. package/dist/esm/parts/MultiSelectFilter/index.js +0 -1
  41. package/dist/esm/parts/MultiSelectFilter/index.js.map +1 -1
  42. package/dist/esm/parts/MultiSelectFilter/multiSelectFilterFn.js +2 -4
  43. package/dist/esm/parts/MultiSelectFilter/multiSelectFilterFn.js.map +1 -1
  44. package/dist/esm/parts/NumberRangeFilter/NumberRangeFilter.js +2 -4
  45. package/dist/esm/parts/NumberRangeFilter/NumberRangeFilter.js.map +1 -1
  46. package/dist/esm/parts/NumberRangeFilter/NumberRangePill.js.map +1 -1
  47. package/dist/esm/parts/NumberRangeFilter/index.js +0 -1
  48. package/dist/esm/parts/NumberRangeFilter/index.js.map +1 -1
  49. package/dist/esm/parts/NumberRangeFilter/numberRangeFilterFn.js +2 -4
  50. package/dist/esm/parts/NumberRangeFilter/numberRangeFilterFn.js.map +1 -1
  51. package/dist/esm/parts/SingleDateFilter/SingleDateFilter.js +1 -2
  52. package/dist/esm/parts/SingleDateFilter/SingleDateFilter.js.map +1 -1
  53. package/dist/esm/parts/SingleDateFilter/index.js +0 -1
  54. package/dist/esm/parts/SingleDateFilter/index.js.map +1 -1
  55. package/dist/esm/parts/SingleSelectFilter/index.js +0 -1
  56. package/dist/esm/parts/SingleSelectFilter/index.js.map +1 -1
  57. package/package.json +17 -17
@@ -65,16 +65,14 @@ const DateRangeFilter = (props) => {
65
65
  const [endDate, setEndDate] = (0, import_react.useState)(filterValue?.endDate || "");
66
66
  const handleOnStartDateChange = (0, import_react.useCallback)(
67
67
  (date) => {
68
- if (!date.includes("_") && !endDate.includes("_"))
69
- onValueChange({ startDate: date, endDate });
68
+ if (!date.includes("_") && !endDate.includes("_")) onValueChange({ startDate: date, endDate });
70
69
  setStartDate(date);
71
70
  },
72
71
  [endDate, onValueChange]
73
72
  );
74
73
  const handleOnEndDateChange = (0, import_react.useCallback)(
75
74
  (date) => {
76
- if (!startDate.includes("_") && !date.includes("_"))
77
- onValueChange({ startDate, endDate: date });
75
+ if (!startDate.includes("_") && !date.includes("_")) onValueChange({ startDate, endDate: date });
78
76
  setEndDate(date);
79
77
  },
80
78
  [onValueChange, startDate]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/DateRangeFilter/DateRangeFilter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useState, useCallback } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledDateRangePicker } from '@elliemae/ds-form-date-range-picker';\nimport { type DateRangeFilterT, DateRangeFilterPropTypesSchema } from './react-desc-prop-types.js';\nimport { DATE_RANGE_FILTER_SLOTS, DateRangeFilterName } from './constants/index.js';\n\nconst StyledFilterWrapper = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.ROOT,\n})`\n width: 260px;\n`;\n\nconst StyledDateRangeFrom = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.DATE_RANGE_FROM_DATE,\n})`\n width: 100%;\n`;\n\nconst StyledDateRangeTo = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.DATE_RANGE_TO_DATE,\n})`\n width: 100%;\n`;\nconst DateRangeFilter: React.ComponentType<DateRangeFilterT.Props> = (props) => {\n const { filterValue, onValueChange } = props;\n\n const [startDate, setStartDate] = useState(filterValue?.startDate || '');\n const [endDate, setEndDate] = useState(filterValue?.endDate || '');\n\n const handleOnStartDateChange = useCallback(\n (date: string) => {\n if (!date.includes('_') && !endDate.includes('_')) onValueChange({ startDate: date, endDate });\n setStartDate(date);\n },\n [endDate, onValueChange],\n );\n\n const handleOnEndDateChange = useCallback(\n (date: string) => {\n if (!startDate.includes('_') && !date.includes('_')) onValueChange({ startDate, endDate: date });\n setEndDate(date);\n },\n [onValueChange, startDate],\n );\n return (\n <StyledFilterWrapper>\n <StyledDateRangeFrom p=\"xxs\">\n <DSControlledDateRangePicker\n autoFocus\n fromDate={startDate}\n onFromDateChange={handleOnStartDateChange}\n toDate={endDate}\n onToDateChange={handleOnEndDateChange}\n type=\"date-range-inputs\"\n />\n </StyledDateRangeFrom>\n <StyledDateRangeTo>\n <DSControlledDateRangePicker\n fromDate={startDate}\n onFromDateChange={handleOnStartDateChange}\n toDate={endDate}\n onToDateChange={handleOnEndDateChange}\n type=\"date-range-picker-controller-only\"\n />\n </StyledDateRangeTo>\n </StyledFilterWrapper>\n );\n};\n\nDateRangeFilter.displayName = 'DateRangeFilter';\nconst DateRangeFilterWithSchema = describe(DateRangeFilter);\nDateRangeFilterWithSchema.propTypes = DateRangeFilterPropTypesSchema;\n\nexport { DateRangeFilter, DateRangeFilterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;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AC7F,mBAAa,IAAI;AAAA,IACnB;AAAA,IACA,CAAC,SAAS,aAAa;AAAA,EACzB;AAEA,QAAM,4BAAwB;AAAA,IAC5B,CAAC,SAAiB;AAChB,UAAI,CAAC,UAAU,SAAS,GAAG,KAAK,CAAC,KAAK,SAAS,GAAG,EAAG,eAAc,EAAE,WAAW,SAAS,KAAK,CAAC;AAC/F,iBAAW,IAAI;AAAA,IACjB;AAAA,IACA,CAAC,eAAe,SAAS;AAAA,EAC3B;AACA,SACE,6CAAC,uBACC;AAAA,gDAAC,uBAAoB,GAAE,OACrB;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,QAAQ;AAAA,QACR,gBAAgB;AAAA,QAChB,MAAK;AAAA;AAAA,IACP,GACF;AAAA,IACA,4CAAC,qBACC;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,QAAQ;AAAA,QACR,gBAAgB;AAAA,QAChB,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,kCAAS,eAAe;AAC1D,0BAA0B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/DateRangeFilter/DateRangePill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useCallback } from 'react';\nimport { DSPillGroupV2, DSPillV2 } from '@elliemae/ds-pills-v2';\nimport { type DateRangeFilterT } from './react-desc-prop-types.js';\n\nconst format = (date: string) => date.replace(/-/g, '/');\n\nexport const DateRangePill: React.ComponentType<DateRangeFilterT.DateRangePillProps> = ({\n columnHeader,\n value,\n onRemove,\n innerRef,\n}) => {\n const handleOnRemove = useCallback(\n (e: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => {\n onRemove(e, {\n columnHeader,\n value,\n });\n },\n [onRemove, value, columnHeader],\n );\n return value?.startDate && value?.endDate ? (\n <DSPillGroupV2>\n <DSPillV2 type=\"label\" label={columnHeader} />\n <DSPillV2\n type=\"removable\"\n label={`${format(value.startDate)} - ${format(value.endDate)}`}\n onRemove={handleOnRemove}\n innerRef={innerRef}\n />\n </DSPillGroupV2>\n ) : null;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBnB;AAtBJ,mBAAmC;AACnC,yBAAwC;AAGxC,MAAM,SAAS,CAAC,SAAiB,KAAK,QAAQ,MAAM,GAAG;AAEhD,MAAM,gBAA0E,CAAC;AAAA,EACtF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,qBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AACA,SAAO,OAAO,aAAa,OAAO,UAChC,6CAAC,oCACC;AAAA,gDAAC,+BAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAO,GAAG,OAAO,MAAM,SAAS,OAAO,OAAO,MAAM,OAAO;AAAA,QAC3D,UAAU;AAAA,QACV;AAAA;AAAA,IACF;AAAA,KACF,IACE;AACN;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBnB;AAtBJ,mBAAmC;AACnC,yBAAwC;AAGxC,MAAM,SAAS,CAAC,SAAiB,KAAK,QAAQ,MAAM,GAAG;AAEhD,MAAM,gBAA0E,CAAC;AAAA,EACtF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,qBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AACA,SAAO,OAAO,aAAa,OAAO,UAChC,6CAAC,oCACC;AAAA,gDAAC,+BAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAO,GAAG,OAAO,MAAM,SAAS,CAAC,MAAM,OAAO,MAAM,OAAO,CAAC;AAAA,QAC5D,UAAU;AAAA,QACV;AAAA;AAAA,IACF;AAAA,KACF,IACE;AACN;",
6
6
  "names": []
7
7
  }
@@ -33,24 +33,20 @@ __export(dateRangeFilterFn_exports, {
33
33
  module.exports = __toCommonJS(dateRangeFilterFn_exports);
34
34
  var React = __toESM(require("react"));
35
35
  const isSameOrBefore = (date1, date2) => {
36
- if (!date1)
37
- return true;
36
+ if (!date1) return true;
38
37
  const d1 = new Date(date1);
39
38
  const d2 = new Date(date2);
40
39
  return d1.getTime() <= d2.getTime();
41
40
  };
42
41
  const isSameOrAfter = (date1, date2) => {
43
- if (!date1)
44
- return true;
42
+ if (!date1) return true;
45
43
  const d1 = new Date(date1);
46
44
  const d2 = new Date(date2);
47
45
  return d1.getTime() >= d2.getTime();
48
46
  };
49
47
  const dateRangeFilterFn = (datum, filterValue, filterKey) => {
50
- if (filterValue === null)
51
- return true;
52
- if (filterValue.startDate === "" || filterValue.endDate === "")
53
- return true;
48
+ if (filterValue === null) return true;
49
+ if (filterValue.startDate === "" || filterValue.endDate === "") return true;
54
50
  return isSameOrBefore(filterValue.startDate, datum[filterKey]) && isSameOrAfter(filterValue.endDate, datum[filterKey]);
55
51
  };
56
52
  //# sourceMappingURL=dateRangeFilterFn.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/DateRangeFilter/dateRangeFilterFn.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["const isSameOrBefore = (date1: string, date2: string) => {\n if (!date1) return true;\n const d1 = new Date(date1);\n const d2 = new Date(date2);\n return d1.getTime() <= d2.getTime();\n};\n\nconst isSameOrAfter = (date1: string, date2: string) => {\n if (!date1) return true;\n const d1 = new Date(date1);\n const d2 = new Date(date2);\n return d1.getTime() >= d2.getTime();\n};\n\nexport const dateRangeFilterFn = (\n datum: Record<string, unknown>,\n filterValue: { startDate: string; endDate: string } | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.startDate === '' || filterValue.endDate === '') return true;\n return (\n isSameOrBefore(filterValue.startDate, datum[filterKey] as string) &&\n isSameOrAfter(filterValue.endDate, datum[filterKey] as string)\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,iBAAiB,CAAC,OAAe,UAAkB;AACvD,MAAI,CAAC;AAAO,WAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEA,MAAM,gBAAgB,CAAC,OAAe,UAAkB;AACtD,MAAI,CAAC;AAAO,WAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEO,MAAM,oBAAoB,CAC/B,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,cAAc,MAAM,YAAY,YAAY;AAAI,WAAO;AACvE,SACE,eAAe,YAAY,WAAW,MAAM,SAAS,CAAW,KAChE,cAAc,YAAY,SAAS,MAAM,SAAS,CAAW;AAEjE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,iBAAiB,CAAC,OAAe,UAAkB;AACvD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEA,MAAM,gBAAgB,CAAC,OAAe,UAAkB;AACtD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEO,MAAM,oBAAoB,CAC/B,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,cAAc,MAAM,YAAY,YAAY,GAAI,QAAO;AACvE,SACE,eAAe,YAAY,WAAW,MAAM,SAAS,CAAW,KAChE,cAAc,YAAY,SAAS,MAAM,SAAS,CAAW;AAEjE;",
6
6
  "names": []
7
7
  }
@@ -39,7 +39,6 @@ module.exports = __toCommonJS(DateRangeFilter_exports);
39
39
  var React = __toESM(require("react"));
40
40
  var import_DateRangeFilter = require("./DateRangeFilter.js");
41
41
  var import_DateRangePill = require("./DateRangePill.js");
42
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
43
42
  var import_dateRangeFilterFn = require("./dateRangeFilterFn.js");
44
43
  var import_constants = require("./constants/index.js");
45
44
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/DateRangeFilter/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { DateRangeFilter, DateRangeFilterWithSchema } from './DateRangeFilter.js';\nexport { DateRangePill } from './DateRangePill.js';\nexport { type DateRangeFilterT } from './react-desc-prop-types.js';\nexport { dateRangeFilterFn } from './dateRangeFilterFn.js';\nexport { DATE_RANGE_FILTER_SLOTS, DATE_RANGE_FILTER_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAA2D;AAC3D,2BAA8B;AAC9B,mCAAsC;AACtC,+BAAkC;AAClC,uBAAuE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,6BAA2D;AAC3D,2BAA8B;AAE9B,+BAAkC;AAClC,uBAAuE;",
6
6
  "names": []
7
7
  }
@@ -73,8 +73,7 @@ const FilterPopover = (props) => {
73
73
  []
74
74
  );
75
75
  const handleParentOnBlur = (0, import_ds_utilities.useOnBlurOut)(config);
76
- if (!shouldShowFilter && !showPopover)
77
- return null;
76
+ if (!shouldShowFilter && !showPopover) return null;
78
77
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledWrapper, { onBlur: handleParentOnBlur, tabIndex: -1, children: [
79
78
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
79
  StyledButton,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/FilterPopover/FilterPopover.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useCallback, useMemo } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { useOnBlurOut, type DSHooksUseOBlurOutT } from '@elliemae/ds-utilities';\nimport { DSPopperJS } from '@elliemae/ds-popperjs';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { SearchXsmall } from '@elliemae/ds-icons';\nimport { styled } from '@elliemae/ds-system';\nimport { type FilterPopoverT, FilterPopoverPropTypesSchema } from './react-desc-prop-types.js';\nimport { FILTER_POPOVER_SLOTS, FilterPopoverName } from './constants/index.js';\n\ninterface ConfigT {\n onBlur: DSHooksUseOBlurOutT.OnBlurCb;\n}\n\nconst StyledWrapper = styled(Grid, { name: FilterPopoverName, slot: FILTER_POPOVER_SLOTS.ROOT })`\n cursor: initial;\n`;\nconst StyledButton = styled(DSButtonV2, { name: FilterPopoverName, slot: FILTER_POPOVER_SLOTS.FILTER_ICON_BUTTON })``;\n\nconst FilterPopover: React.ComponentType<FilterPopoverT.Props> = (props) => {\n const { referenceElement, filterMinWidth, shouldShowFilter, children, FilterIcon } = props;\n const ref = React.useRef<HTMLButtonElement>(null);\n const [showPopover, setShowPopover] = React.useState(false);\n\n const closeContextMenu = useCallback(() => {\n setShowPopover(false);\n }, []);\n\n const handleOnKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (e.key === 'Escape') {\n setShowPopover(false);\n ref.current?.focus();\n }\n },\n [ref],\n );\n\n const config: ConfigT = useMemo(\n () => ({\n onBlur: () => {\n setShowPopover(false);\n },\n }),\n [],\n );\n const handleParentOnBlur = useOnBlurOut(config);\n\n if (!shouldShowFilter && !showPopover) return null;\n\n return (\n <StyledWrapper onBlur={handleParentOnBlur} tabIndex={-1}>\n <StyledButton\n buttonType=\"icon\"\n innerRef={ref}\n aria-label=\"filter\"\n size=\"s\"\n onClick={() => setShowPopover(!showPopover)}\n >\n {FilterIcon ? <FilterIcon /> : <SearchXsmall size=\"s\" />}\n </StyledButton>\n {referenceElement && (\n <DSPopperJS\n referenceElement={referenceElement}\n showPopover={showPopover}\n withoutAnimation\n withoutArrow\n withoutPortal\n closeContextMenu={closeContextMenu}\n backgroundColor=\"#FFF\"\n onKeyDown={handleOnKeyDown}\n startPlacementPreference=\"bottom-end\"\n extraPopperStyles={{\n minWidth: filterMinWidth ?? referenceElement.offsetWidth ?? '0px',\n }}\n placementOrderPreference={['bottom-end', 'top-end']}\n >\n {children}\n </DSPopperJS>\n )}\n </StyledWrapper>\n );\n};\n\nFilterPopover.displayName = 'FilterPopover';\nconst FilterPopoverWithSchema = describe(FilterPopover);\nFilterPopoverWithSchema.propTypes = FilterPopoverPropTypesSchema;\n\nexport { FilterPopover, FilterPopoverWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoDnB;AApDJ,mBAA4C;AAC5C,qBAAqB;AACrB,8BAAyB;AACzB,0BAAuD;AACvD,yBAA2B;AAC3B,0BAA2B;AAC3B,sBAA6B;AAC7B,uBAAuB;AACvB,mCAAkE;AAClE,uBAAwD;AAMxD,MAAM,oBAAgB,yBAAO,qBAAM,EAAE,MAAM,oCAAmB,MAAM,sCAAqB,KAAK,CAAC;AAAA;AAAA;AAG/F,MAAM,mBAAe,yBAAO,gCAAY,EAAE,MAAM,oCAAmB,MAAM,sCAAqB,mBAAmB,CAAC;AAElH,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,gBAAgB,kBAAkB,UAAU,WAAW,IAAI;AACrF,QAAM,MAAM,aAAAA,QAAM,OAA0B,IAAI;AAChD,QAAM,CAAC,aAAa,cAAc,IAAI,aAAAA,QAAM,SAAS,KAAK;AAE1D,QAAM,uBAAmB,0BAAY,MAAM;AACzC,mBAAe,KAAK;AAAA,EACtB,GAAG,CAAC,CAAC;AAEL,QAAM,sBAAkB;AAAA,IACtB,CAAC,MAA8C;AAC7C,UAAI,EAAE,QAAQ,UAAU;AACtB,uBAAe,KAAK;AACpB,YAAI,SAAS,MAAM;AAAA,MACrB;AAAA,IACF;AAAA,IACA,CAAC,GAAG;AAAA,EACN;AAEA,QAAM,aAAkB;AAAA,IACtB,OAAO;AAAA,MACL,QAAQ,MAAM;AACZ,uBAAe,KAAK;AAAA,MACtB;AAAA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AS;AAAA,QAEjD;AAAA;AAAA,IACH;AAAA,KAEJ;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -36,6 +36,5 @@ __export(FilterPopover_exports, {
36
36
  module.exports = __toCommonJS(FilterPopover_exports);
37
37
  var React = __toESM(require("react"));
38
38
  var import_FilterPopover = require("./FilterPopover.js");
39
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
40
39
  var import_constants = require("./constants/index.js");
41
40
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/FilterPopover/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { FilterPopover, FilterPopoverWithSchema } from './FilterPopover.js';\nexport { type FilterPopoverT } from './react-desc-prop-types.js';\nexport { FILTER_POPOVER_SLOTS, FILTER_POPOVER_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAuD;AACvD,mCAAoC;AACpC,uBAAiE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAuD;AAEvD,uBAAiE;",
6
6
  "names": []
7
7
  }
@@ -37,6 +37,5 @@ module.exports = __toCommonJS(MultiSelectFilter_exports);
37
37
  var React = __toESM(require("react"));
38
38
  var import_MultiSelectFilter = require("./MultiSelectFilter.js");
39
39
  var import_MultiSelectPill = require("./MultiSelectPill.js");
40
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
40
  var import_multiSelectFilterFn = require("./multiSelectFilterFn.js");
42
41
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/MultiSelectFilter/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { MultiSelectFilter, MultiSelectFilterWithSchema } from './MultiSelectFilter.js';\nexport { MultiSelectPill } from './MultiSelectPill.js';\nexport { type MultiSelectFilterT } from './react-desc-prop-types.js';\nexport { multiSelectFilterFn } from './multiSelectFilterFn.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAA+D;AAC/D,6BAAgC;AAChC,mCAAwC;AACxC,iCAAoC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAA+D;AAC/D,6BAAgC;AAEhC,iCAAoC;",
6
6
  "names": []
7
7
  }
@@ -33,10 +33,8 @@ __export(multiSelectFilterFn_exports, {
33
33
  module.exports = __toCommonJS(multiSelectFilterFn_exports);
34
34
  var React = __toESM(require("react"));
35
35
  const multiSelectFilterFn = (datum, filterValue, filterKey) => {
36
- if (filterValue === null)
37
- return true;
38
- if (filterValue.length === 0)
39
- return true;
36
+ if (filterValue === null) return true;
37
+ if (filterValue.length === 0) return true;
40
38
  return filterValue.some((position) => position.label === datum[filterKey]);
41
39
  };
42
40
  //# sourceMappingURL=multiSelectFilterFn.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/MultiSelectFilter/multiSelectFilterFn.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { type DSComboboxT } from '@elliemae/ds-form-combobox';\n\nexport const multiSelectFilterFn = (\n datum: Record<string, unknown>,\n filterValue: DSComboboxT.ItemOption[] | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.length === 0) return true;\n return filterValue.some((position) => position.label === datum[filterKey]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,WAAW;AAAG,WAAO;AACrC,SAAO,YAAY,KAAK,CAAC,aAAa,SAAS,UAAU,MAAM,SAAS,CAAC;AAC3E;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,WAAW,EAAG,QAAO;AACrC,SAAO,YAAY,KAAK,CAAC,aAAa,SAAS,UAAU,MAAM,SAAS,CAAC;AAC3E;",
6
6
  "names": []
7
7
  }
@@ -53,8 +53,7 @@ const NumberRangeFilter = import_react.default.memo((props) => {
53
53
  };
54
54
  const handleFromOnChange = (0, import_react.useCallback)(
55
55
  (e) => {
56
- if (filterValue === null)
57
- return;
56
+ if (filterValue === null) return;
58
57
  const from = e.target.value !== "" ? parseInt(e.target.value, 10) : null;
59
58
  onValueChange({ from, to: filterValue.to });
60
59
  },
@@ -62,8 +61,7 @@ const NumberRangeFilter = import_react.default.memo((props) => {
62
61
  );
63
62
  const handleToOnChange = (0, import_react.useCallback)(
64
63
  (e) => {
65
- if (filterValue === null)
66
- return;
64
+ if (filterValue === null) return;
67
65
  const to = e.target.value !== "" ? parseInt(e.target.value, 10) : null;
68
66
  onValueChange({ from: filterValue.from, to });
69
67
  },
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/NumberRangeFilter/NumberRangeFilter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSInputText } from '@elliemae/ds-controlled-form';\nimport { DSFormLayoutBlockItem } from '@elliemae/ds-form-layout-blocks';\nimport { getNumberMaskedValue } from '@elliemae/ds-form-helpers-mask-hooks';\nimport { type NumberRangeFilterT, NumberRangeFilterPropTypesSchema } from './react-desc-prop-types.js';\n\nconst NumberRangeFilter: React.ComponentType<NumberRangeFilterT.Props> = React.memo((props) => {\n const { filterValue, onValueChange } = props;\n const opts = {\n includeThousandsSeparator: false,\n decimalPlaces: 0,\n };\n const conform = (value: number | string | null) => {\n const valueAsString = value?.toString() ?? '';\n return getNumberMaskedValue(valueAsString, opts);\n };\n\n const handleFromOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (filterValue === null) return;\n const from = e.target.value !== '' ? parseInt(e.target.value, 10) : null;\n onValueChange({ from, to: filterValue.to });\n },\n [filterValue, onValueChange],\n );\n\n const handleToOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (filterValue === null) return;\n const to = e.target.value !== '' ? parseInt(e.target.value, 10) : null;\n onValueChange({ from: filterValue.from, to });\n },\n [filterValue, onValueChange],\n );\n if (!filterValue) {\n return null;\n }\n return (\n <Grid gutter=\"xxxs\" padding=\"xxs\" cols={['auto', 'auto']}>\n <DSFormLayoutBlockItem label=\"Low\" inputID={`low`}>\n <DSInputText\n autoFocus\n value={conform(filterValue.from)}\n onChange={handleFromOnChange}\n id={'low'}\n style={{ textAlign: 'right' }}\n placeholder=\"0\"\n />\n </DSFormLayoutBlockItem>\n <DSFormLayoutBlockItem label=\"High\" inputID={`high`}>\n <DSInputText\n value={conform(filterValue.to)}\n onChange={handleToOnChange}\n id={`high`}\n style={{ textAlign: 'right' }}\n placeholder=\"0\"\n />\n </DSFormLayoutBlockItem>\n </Grid>\n );\n});\nNumberRangeFilter.displayName = 'NumberRangeFilter';\nconst NumberRangeFilterWithSchema = describe(NumberRangeFilter);\nNumberRangeFilterWithSchema.propTypes = NumberRangeFilterPropTypesSchema;\n\nexport { NumberRangeFilter, NumberRangeFilterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwCnB;AAxCJ,mBAAmC;AACnC,8BAAyB;AACzB,qBAAqB;AACrB,gCAA4B;AAC5B,mCAAsC;AACtC,wCAAqC;AACrC,mCAA0E;AAE1E,MAAM,oBAAmE,aAAAA,QAAM,KAAK,CAAC,UAAU;AAC7F,QAAM,EAAE,aAAa,cAAc,IAAI;AACvC,QAAM,OAAO;AAAA,IACX,2BAA2B;AAAA,IAC3B,eAAe;AAAA,EACjB;AACA,QAAM,UAAU,CAAC,UAAkC;AACjD,UAAM,gBAAgB,OAAO,SAAS,KAAK;AAC3C,eAAO,wDAAqB,eAAe,IAAI;AAAA,EACjD;AAEA,QAAM,yBAAqB;AAAA,IACzB,CAAC,MAA2C;AAC1C,UAAI,gBAAgB;AAAM;AAC1B,YAAM,OAAO,EAAE,OAAO,UAAU,KAAK,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI;AACpE,oBAAc,EAAE,MAAM,IAAI,YAAY,GAAG,CAAC;AAAA,IAC5C;AAAA,IACA,CAAC,aAAa,aAAa;AAAA,EAC7B;AAEA,QAAM,uBAAmB;AAAA,IACvB,CAAC,MAA2C;AAC1C,UAAI,gBAAgB;AAAM;AAC1B,YAAM,KAAK,EAAE,OAAO,UAAU,KAAK,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI;AAClE,oBAAc,EAAE,MAAM,YAAY,MAAM,GAAG,CAAC;AAAA,IAC9C;AAAA,IACA,CAAC,aAAa,aAAa;AAAA,EAC7B;AACA,MAAI,CAAC,aAAa;AAChB,WAAO;AAAA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U,KAAK,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI;AACpE,oBAAc,EAAE,MAAM,IAAI,YAAY,GAAG,CAAC;AAAA,IAC5C;AAAA,IACA,CAAC,aAAa,aAAa;AAAA,EAC7B;AAEA,QAAM,uBAAmB;AAAA,IACvB,CAAC,MAA2C;AAC1C,UAAI,gBAAgB,KAAM;AAC1B,YAAM,KAAK,EAAE,OAAO,UAAU,KAAK,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI;AAClE,oBAAc,EAAE,MAAM,YAAY,MAAM,GAAG,CAAC;AAAA,IAC9C;AAAA,IACA,CAAC,aAAa,aAAa;AAAA,EAC7B;AACA,MAAI,CAAC,aAAa;AAChB,WAAO;AAAA,EACT;AACA,SACE,6CAAC,uBAAK,QAAO,QAAO,SAAQ,OAAM,MAAM,CAAC,QAAQ,MAAM,GACrD;AAAA,gDAAC,sDAAsB,OAAM,OAAM,SAAS,OAC1C;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,OAAO,QAAQ,YAAY,IAAI;AAAA,QAC/B,UAAU;AAAA,QACV,IAAI;AAAA,QACJ,OAAO,EAAE,WAAW,QAAQ;AAAA,QAC5B,aAAY;AAAA;AAAA,IACd,GACF;AAAA,IACA,4CAAC,sDAAsB,OAAM,QAAO,SAAS,QAC3C;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,QAAQ,YAAY,EAAE;AAAA,QAC7B,UAAU;AAAA,QACV,IAAI;AAAA,QACJ,OAAO,EAAE,WAAW,QAAQ;AAAA,QAC5B,aAAY;AAAA;AAAA,IACd,GACF;AAAA,KACF;AAEJ,CAAC;AACD,kBAAkB,cAAc;AAChC,MAAM,kCAA8B,kCAAS,iBAAiB;AAC9D,4BAA4B,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/NumberRangeFilter/NumberRangePill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useCallback } from 'react';\nimport { DSPillGroupV2, DSPillV2 } from '@elliemae/ds-pills-v2';\nimport { type NumberRangeFilterT } from './react-desc-prop-types.js';\nexport const NumberRangePill: React.ComponentType<NumberRangeFilterT.NumberRangePillProps> = ({\n columnHeader,\n value,\n onRemove,\n innerRef,\n}) => {\n const handleOnRemove = useCallback(\n (e: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => {\n onRemove(e, {\n columnHeader,\n value,\n });\n },\n [onRemove, value, columnHeader],\n );\n\n return value.to !== null && value.from !== null ? (\n <DSPillGroupV2>\n <DSPillV2 type=\"label\" label={columnHeader} />\n <DSPillV2 type=\"removable\" label={`${value.from}-${value.to}`} onRemove={handleOnRemove} innerRef={innerRef} />\n </DSPillGroupV2>\n ) : null;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBnB;AApBJ,mBAAmC;AACnC,yBAAwC;AAEjC,MAAM,kBAAgF,CAAC;AAAA,EAC5F;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,qBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AAEA,SAAO,MAAM,OAAO,QAAQ,MAAM,SAAS,OACzC,6CAAC,oCACC;AAAA,gDAAC,+BAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C,4CAAC,+BAAS,MAAK,aAAY,OAAO,GAAG,MAAM,QAAQ,MAAM,MAAM,UAAU,gBAAgB,UAAoB;AAAA,KAC/G,IACE;AACN;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBnB;AApBJ,mBAAmC;AACnC,yBAAwC;AAEjC,MAAM,kBAAgF,CAAC;AAAA,EAC5F;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,qBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AAEA,SAAO,MAAM,OAAO,QAAQ,MAAM,SAAS,OACzC,6CAAC,oCACC;AAAA,gDAAC,+BAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C,4CAAC,+BAAS,MAAK,aAAY,OAAO,GAAG,MAAM,IAAI,IAAI,MAAM,EAAE,IAAI,UAAU,gBAAgB,UAAoB;AAAA,KAC/G,IACE;AACN;",
6
6
  "names": []
7
7
  }
@@ -37,6 +37,5 @@ module.exports = __toCommonJS(NumberRangeFilter_exports);
37
37
  var React = __toESM(require("react"));
38
38
  var import_NumberRangeFilter = require("./NumberRangeFilter.js");
39
39
  var import_NumberRangePill = require("./NumberRangePill.js");
40
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
40
  var import_numberRangeFilterFn = require("./numberRangeFilterFn.js");
42
41
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/NumberRangeFilter/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { NumberRangeFilter, NumberRangeFilterWithSchema } from './NumberRangeFilter.js';\nexport { NumberRangePill } from './NumberRangePill.js';\nexport { type NumberRangeFilterT } from './react-desc-prop-types.js';\nexport { numberRangeFilterFn } from './numberRangeFilterFn.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAA+D;AAC/D,6BAAgC;AAChC,mCAAwC;AACxC,iCAAoC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAA+D;AAC/D,6BAAgC;AAEhC,iCAAoC;",
6
6
  "names": []
7
7
  }
@@ -33,10 +33,8 @@ __export(numberRangeFilterFn_exports, {
33
33
  module.exports = __toCommonJS(numberRangeFilterFn_exports);
34
34
  var React = __toESM(require("react"));
35
35
  const numberRangeFilterFn = (datum, filterValue, filterKey) => {
36
- if (filterValue === null)
37
- return true;
38
- if (filterValue.from === null || filterValue.to === null)
39
- return true;
36
+ if (filterValue === null) return true;
37
+ if (filterValue.from === null || filterValue.to === null) return true;
40
38
  return parseInt(datum[filterKey], 10) >= filterValue.from && parseInt(datum[filterKey], 10) <= filterValue.to;
41
39
  };
42
40
  //# sourceMappingURL=numberRangeFilterFn.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/NumberRangeFilter/numberRangeFilterFn.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const numberRangeFilterFn = (\n datum: Record<string, unknown>,\n filterValue: { from: number | null; to: number | null } | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.from === null || filterValue.to === null) return true;\n return (\n parseInt(datum[filterKey] as string, 10) >= filterValue.from &&\n parseInt(datum[filterKey] as string, 10) <= filterValue.to\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,SAAS,QAAQ,YAAY,OAAO;AAAM,WAAO;AACjE,SACE,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY,QACxD,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY;AAE5D;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,SAAS,QAAQ,YAAY,OAAO,KAAM,QAAO;AACjE,SACE,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY,QACxD,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY;AAE5D;",
6
6
  "names": []
7
7
  }
@@ -44,8 +44,7 @@ const SingleDateFilter = (props) => {
44
44
  const [internalDate, setInternalDate] = (0, import_react.useState)(filterValue || "");
45
45
  const handleOnSingleDateChange = (0, import_react.useCallback)(
46
46
  (date) => {
47
- if (!date.includes("_"))
48
- onValueChange(date);
47
+ if (!date.includes("_")) onValueChange(date);
49
48
  setInternalDate(date);
50
49
  },
51
50
  [onValueChange]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/SingleDateFilter/SingleDateFilter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { useState, useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledDateTimePicker } from '@elliemae/ds-form-date-time-picker';\nimport { type SingleDateFilterT, SingleDateFilterPropTypesSchema } from './react-desc-prop-types.js';\n\nconst SingleDateFilter: React.ComponentType<SingleDateFilterT.Props> = (props) => {\n const { filterValue, onValueChange } = props;\n\n const [internalDate, setInternalDate] = useState(filterValue || '');\n\n const handleOnSingleDateChange = useCallback(\n (date: string) => {\n if (!date.includes('_')) onValueChange(date);\n setInternalDate(date);\n },\n [onValueChange],\n );\n return (\n <Grid width=\"260px\">\n <Grid p=\"xxs\" style={{ background: 'white' }}>\n <DSControlledDateTimePicker\n autoFocus\n date={internalDate}\n onDateChange={handleOnSingleDateChange}\n type=\"date-inputs\"\n isClearable\n />\n </Grid>\n <Grid>\n <DSControlledDateTimePicker\n date={internalDate}\n onDateChange={handleOnSingleDateChange}\n type=\"date-picker-controller-only\"\n />\n </Grid>\n </Grid>\n );\n};\n\nSingleDateFilter.displayName = 'SingleDateFilter';\nconst SingleDateFilterWithSchema = describe(SingleDateFilter);\nSingleDateFilterWithSchema.propTypes = SingleDateFilterPropTypesSchema;\n\nexport { SingleDateFilter, SingleDateFilterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmBnB;AAnBJ,mBAA6C;AAC7C,8BAAyB;AACzB,qBAAqB;AACrB,sCAA2C;AAC3C,mCAAwE;AAExE,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,aAAa,cAAc,IAAI;AAEvC,QAAM,CAAC,cAAc,eAAe,QAAI,uBAAS,eAAe,EAAE;AAElE,QAAM,+BAA2B;AAAA,IAC/B,CAAC,SAAiB;AAChB,UAAI,CAAC,KAAK,SAAS,GAAG;AAAG,sBAAc,IAAI;AAC3C,sBAAgB,IAAI;AAAA,IACtB;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AACA,SACE,6CAAC,uBAAK,OAAM,SACV;AAAA,gDAAC,uBAAK,GAAE,OAAM,OAAO,EAAE,YAAY,QAAQ,GACzC;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA,QACL,aAAW;AAAA;AAAA,IACb,GACF;AAAA,IACA,4CAAC,uBACC;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,kCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmBnB;AAnBJ,mBAA6C;AAC7C,8BAAyB;AACzB,qBAAqB;AACrB,sCAA2C;AAC3C,mCAAwE;AAExE,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,aAAa,cAAc,IAAI;AAEvC,QAAM,CAAC,cAAc,eAAe,QAAI,uBAAS,eAAe,EAAE;AAElE,QAAM,+BAA2B;AAAA,IAC/B,CAAC,SAAiB;AAChB,UAAI,CAAC,KAAK,SAAS,GAAG,EAAG,eAAc,IAAI;AAC3C,sBAAgB,IAAI;AAAA,IACtB;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AACA,SACE,6CAAC,uBAAK,OAAM,SACV;AAAA,gDAAC,uBAAK,GAAE,OAAM,OAAO,EAAE,YAAY,QAAQ,GACzC;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA,QACL,aAAW;AAAA;AAAA,IACb,GACF;AAAA,IACA,4CAAC,uBACC;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,kCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -37,6 +37,5 @@ module.exports = __toCommonJS(SingleDateFilter_exports);
37
37
  var React = __toESM(require("react"));
38
38
  var import_SingleDateFilter = require("./SingleDateFilter.js");
39
39
  var import_SingleDatePill = require("./SingleDatePill.js");
40
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
40
  var import_singleDateFilterFn = require("./singleDateFilterFn.js");
42
41
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/SingleDateFilter/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { SingleDateFilter, SingleDateFilterWithSchema } from './SingleDateFilter.js';\nexport { SingleDatePill } from './SingleDatePill.js';\nexport { type SingleDateFilterT } from './react-desc-prop-types.js';\nexport { singleDateFilterFn } from './singleDateFilterFn.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6D;AAC7D,4BAA+B;AAC/B,mCAAuC;AACvC,gCAAmC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6D;AAC7D,4BAA+B;AAE/B,gCAAmC;",
6
6
  "names": []
7
7
  }
@@ -37,6 +37,5 @@ module.exports = __toCommonJS(SingleSelectFilter_exports);
37
37
  var React = __toESM(require("react"));
38
38
  var import_SingleSelectFilter = require("./SingleSelectFilter.js");
39
39
  var import_SingleSelectPill = require("./SingleSelectPill.js");
40
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
40
  var import_singleSelectFilterFn = require("./singleSelectFilterFn.js");
42
41
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/parts/SingleSelectFilter/index.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export { SingleSelectFilter, SingleSelectFilterWithSchema } from './SingleSelectFilter.js';\nexport { SingleSelectPill } from './SingleSelectPill.js';\nexport { type SingleSelectFilterT } from './react-desc-prop-types.js';\nexport { singleSelectFilterFn } from './singleSelectFilterFn.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,gCAAiE;AACjE,8BAAiC;AACjC,mCAAyC;AACzC,kCAAqC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,gCAAiE;AACjE,8BAAiC;AAEjC,kCAAqC;",
6
6
  "names": []
7
7
  }
@@ -31,16 +31,14 @@ const DateRangeFilter = (props) => {
31
31
  const [endDate, setEndDate] = useState(filterValue?.endDate || "");
32
32
  const handleOnStartDateChange = useCallback(
33
33
  (date) => {
34
- if (!date.includes("_") && !endDate.includes("_"))
35
- onValueChange({ startDate: date, endDate });
34
+ if (!date.includes("_") && !endDate.includes("_")) onValueChange({ startDate: date, endDate });
36
35
  setStartDate(date);
37
36
  },
38
37
  [endDate, onValueChange]
39
38
  );
40
39
  const handleOnEndDateChange = useCallback(
41
40
  (date) => {
42
- if (!startDate.includes("_") && !date.includes("_"))
43
- onValueChange({ startDate, endDate: date });
41
+ if (!startDate.includes("_") && !date.includes("_")) onValueChange({ startDate, endDate: date });
44
42
  setEndDate(date);
45
43
  },
46
44
  [onValueChange, startDate]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateRangeFilter/DateRangeFilter.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useState, useCallback } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledDateRangePicker } from '@elliemae/ds-form-date-range-picker';\nimport { type DateRangeFilterT, DateRangeFilterPropTypesSchema } from './react-desc-prop-types.js';\nimport { DATE_RANGE_FILTER_SLOTS, DateRangeFilterName } from './constants/index.js';\n\nconst StyledFilterWrapper = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.ROOT,\n})`\n width: 260px;\n`;\n\nconst StyledDateRangeFrom = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.DATE_RANGE_FROM_DATE,\n})`\n width: 100%;\n`;\n\nconst StyledDateRangeTo = styled(Grid, {\n name: DateRangeFilterName,\n slot: DATE_RANGE_FILTER_SLOTS.DATE_RANGE_TO_DATE,\n})`\n width: 100%;\n`;\nconst DateRangeFilter: React.ComponentType<DateRangeFilterT.Props> = (props) => {\n const { filterValue, onValueChange } = props;\n\n const [startDate, setStartDate] = useState(filterValue?.startDate || '');\n const [endDate, setEndDate] = useState(filterValue?.endDate || '');\n\n const handleOnStartDateChange = useCallback(\n (date: string) => {\n if (!date.includes('_') && !endDate.includes('_')) onValueChange({ startDate: date, endDate });\n setStartDate(date);\n },\n [endDate, onValueChange],\n );\n\n const handleOnEndDateChange = useCallback(\n (date: string) => {\n if (!startDate.includes('_') && !date.includes('_')) onValueChange({ startDate, endDate: date });\n setEndDate(date);\n },\n [onValueChange, startDate],\n );\n return (\n <StyledFilterWrapper>\n <StyledDateRangeFrom p=\"xxs\">\n <DSControlledDateRangePicker\n autoFocus\n fromDate={startDate}\n onFromDateChange={handleOnStartDateChange}\n toDate={endDate}\n onToDateChange={handleOnEndDateChange}\n type=\"date-range-inputs\"\n />\n </StyledDateRangeFrom>\n <StyledDateRangeTo>\n <DSControlledDateRangePicker\n fromDate={startDate}\n onFromDateChange={handleOnStartDateChange}\n toDate={endDate}\n onToDateChange={handleOnEndDateChange}\n type=\"date-range-picker-controller-only\"\n />\n </StyledDateRangeTo>\n </StyledFilterWrapper>\n );\n};\n\nDateRangeFilter.displayName = 'DateRangeFilter';\nconst DateRangeFilterWithSchema = describe(DateRangeFilter);\nDateRangeFilterWithSchema.propTypes = DateRangeFilterPropTypesS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C,QAAQ,SAAS,GAAG,EAAG,eAAc,EAAE,WAAW,MAAM,QAAQ,CAAC;AAC7F,mBAAa,IAAI;AAAA,IACnB;AAAA,IACA,CAAC,SAAS,aAAa;AAAA,EACzB;AAEA,QAAM,wBAAwB;AAAA,IAC5B,CAAC,SAAiB;AAChB,UAAI,CAAC,UAAU,SAAS,GAAG,KAAK,CAAC,KAAK,SAAS,GAAG,EAAG,eAAc,EAAE,WAAW,SAAS,KAAK,CAAC;AAC/F,iBAAW,IAAI;AAAA,IACjB;AAAA,IACA,CAAC,eAAe,SAAS;AAAA,EAC3B;AACA,SACE,qBAAC,uBACC;AAAA,wBAAC,uBAAoB,GAAE,OACrB;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,QAAQ;AAAA,QACR,gBAAgB;AAAA,QAChB,MAAK;AAAA;AAAA,IACP,GACF;AAAA,IACA,oBAAC,qBACC;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,QAAQ;AAAA,QACR,gBAAgB;AAAA,QAChB,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,SAAS,eAAe;AAC1D,0BAA0B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateRangeFilter/DateRangePill.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { DSPillGroupV2, DSPillV2 } from '@elliemae/ds-pills-v2';\nimport { type DateRangeFilterT } from './react-desc-prop-types.js';\n\nconst format = (date: string) => date.replace(/-/g, '/');\n\nexport const DateRangePill: React.ComponentType<DateRangeFilterT.DateRangePillProps> = ({\n columnHeader,\n value,\n onRemove,\n innerRef,\n}) => {\n const handleOnRemove = useCallback(\n (e: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => {\n onRemove(e, {\n columnHeader,\n value,\n });\n },\n [onRemove, value, columnHeader],\n );\n return value?.startDate && value?.endDate ? (\n <DSPillGroupV2>\n <DSPillV2 type=\"label\" label={columnHeader} />\n <DSPillV2\n type=\"removable\"\n label={`${format(value.startDate)} - ${format(value.endDate)}`}\n onRemove={handleOnRemove}\n innerRef={innerRef}\n />\n </DSPillGroupV2>\n ) : null;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACsBnB,SACE,KADF;AAtBJ,SAAgB,mBAAmB;AACnC,SAAS,eAAe,gBAAgB;AAGxC,MAAM,SAAS,CAAC,SAAiB,KAAK,QAAQ,MAAM,GAAG;AAEhD,MAAM,gBAA0E,CAAC;AAAA,EACtF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,iBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AACA,SAAO,OAAO,aAAa,OAAO,UAChC,qBAAC,iBACC;AAAA,wBAAC,YAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAO,GAAG,OAAO,MAAM,SAAS,OAAO,OAAO,MAAM,OAAO;AAAA,QAC3D,UAAU;AAAA,QACV;AAAA;AAAA,IACF;AAAA,KACF,IACE;AACN;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACsBnB,SACE,KADF;AAtBJ,SAAgB,mBAAmB;AACnC,SAAS,eAAe,gBAAgB;AAGxC,MAAM,SAAS,CAAC,SAAiB,KAAK,QAAQ,MAAM,GAAG;AAEhD,MAAM,gBAA0E,CAAC;AAAA,EACtF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,iBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AACA,SAAO,OAAO,aAAa,OAAO,UAChC,qBAAC,iBACC;AAAA,wBAAC,YAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAO,GAAG,OAAO,MAAM,SAAS,CAAC,MAAM,OAAO,MAAM,OAAO,CAAC;AAAA,QAC5D,UAAU;AAAA,QACV;AAAA;AAAA,IACF;AAAA,KACF,IACE;AACN;",
6
6
  "names": []
7
7
  }
@@ -1,23 +1,19 @@
1
1
  import * as React from "react";
2
2
  const isSameOrBefore = (date1, date2) => {
3
- if (!date1)
4
- return true;
3
+ if (!date1) return true;
5
4
  const d1 = new Date(date1);
6
5
  const d2 = new Date(date2);
7
6
  return d1.getTime() <= d2.getTime();
8
7
  };
9
8
  const isSameOrAfter = (date1, date2) => {
10
- if (!date1)
11
- return true;
9
+ if (!date1) return true;
12
10
  const d1 = new Date(date1);
13
11
  const d2 = new Date(date2);
14
12
  return d1.getTime() >= d2.getTime();
15
13
  };
16
14
  const dateRangeFilterFn = (datum, filterValue, filterKey) => {
17
- if (filterValue === null)
18
- return true;
19
- if (filterValue.startDate === "" || filterValue.endDate === "")
20
- return true;
15
+ if (filterValue === null) return true;
16
+ if (filterValue.startDate === "" || filterValue.endDate === "") return true;
21
17
  return isSameOrBefore(filterValue.startDate, datum[filterKey]) && isSameOrAfter(filterValue.endDate, datum[filterKey]);
22
18
  };
23
19
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateRangeFilter/dateRangeFilterFn.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "const isSameOrBefore = (date1: string, date2: string) => {\n if (!date1) return true;\n const d1 = new Date(date1);\n const d2 = new Date(date2);\n return d1.getTime() <= d2.getTime();\n};\n\nconst isSameOrAfter = (date1: string, date2: string) => {\n if (!date1) return true;\n const d1 = new Date(date1);\n const d2 = new Date(date2);\n return d1.getTime() >= d2.getTime();\n};\n\nexport const dateRangeFilterFn = (\n datum: Record<string, unknown>,\n filterValue: { startDate: string; endDate: string } | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.startDate === '' || filterValue.endDate === '') return true;\n return (\n isSameOrBefore(filterValue.startDate, datum[filterKey] as string) &&\n isSameOrAfter(filterValue.endDate, datum[filterKey] as string)\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,MAAM,iBAAiB,CAAC,OAAe,UAAkB;AACvD,MAAI,CAAC;AAAO,WAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEA,MAAM,gBAAgB,CAAC,OAAe,UAAkB;AACtD,MAAI,CAAC;AAAO,WAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEO,MAAM,oBAAoB,CAC/B,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,cAAc,MAAM,YAAY,YAAY;AAAI,WAAO;AACvE,SACE,eAAe,YAAY,WAAW,MAAM,SAAS,CAAW,KAChE,cAAc,YAAY,SAAS,MAAM,SAAS,CAAW;AAEjE;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,MAAM,iBAAiB,CAAC,OAAe,UAAkB;AACvD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEA,MAAM,gBAAgB,CAAC,OAAe,UAAkB;AACtD,MAAI,CAAC,MAAO,QAAO;AACnB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,QAAM,KAAK,IAAI,KAAK,KAAK;AACzB,SAAO,GAAG,QAAQ,KAAK,GAAG,QAAQ;AACpC;AAEO,MAAM,oBAAoB,CAC/B,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,cAAc,MAAM,YAAY,YAAY,GAAI,QAAO;AACvE,SACE,eAAe,YAAY,WAAW,MAAM,SAAS,CAAW,KAChE,cAAc,YAAY,SAAS,MAAM,SAAS,CAAW;AAEjE;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { DateRangeFilter, DateRangeFilterWithSchema } from "./DateRangeFilter.js";
3
3
  import { DateRangePill } from "./DateRangePill.js";
4
- import {} from "./react-desc-prop-types.js";
5
4
  import { dateRangeFilterFn } from "./dateRangeFilterFn.js";
6
5
  import { DATE_RANGE_FILTER_SLOTS, DATE_RANGE_FILTER_DATA_TESTID } from "./constants/index.js";
7
6
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateRangeFilter/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DateRangeFilter, DateRangeFilterWithSchema } from './DateRangeFilter.js';\nexport { DateRangePill } from './DateRangePill.js';\nexport { type DateRangeFilterT } from './react-desc-prop-types.js';\nexport { dateRangeFilterFn } from './dateRangeFilterFn.js';\nexport { DATE_RANGE_FILTER_SLOTS, DATE_RANGE_FILTER_DATA_TESTID } from './constants/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB,iCAAiC;AAC3D,SAAS,qBAAqB;AAC9B,eAAsC;AACtC,SAAS,yBAAyB;AAClC,SAAS,yBAAyB,qCAAqC;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB,iCAAiC;AAC3D,SAAS,qBAAqB;AAE9B,SAAS,yBAAyB;AAClC,SAAS,yBAAyB,qCAAqC;",
6
6
  "names": []
7
7
  }
@@ -39,8 +39,7 @@ const FilterPopover = (props) => {
39
39
  []
40
40
  );
41
41
  const handleParentOnBlur = useOnBlurOut(config);
42
- if (!shouldShowFilter && !showPopover)
43
- return null;
42
+ if (!shouldShowFilter && !showPopover) return null;
44
43
  return /* @__PURE__ */ jsxs(StyledWrapper, { onBlur: handleParentOnBlur, tabIndex: -1, children: [
45
44
  /* @__PURE__ */ jsx(
46
45
  StyledButton,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/FilterPopover/FilterPopover.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useMemo } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { useOnBlurOut, type DSHooksUseOBlurOutT } from '@elliemae/ds-utilities';\nimport { DSPopperJS } from '@elliemae/ds-popperjs';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { SearchXsmall } from '@elliemae/ds-icons';\nimport { styled } from '@elliemae/ds-system';\nimport { type FilterPopoverT, FilterPopoverPropTypesSchema } from './react-desc-prop-types.js';\nimport { FILTER_POPOVER_SLOTS, FilterPopoverName } from './constants/index.js';\n\ninterface ConfigT {\n onBlur: DSHooksUseOBlurOutT.OnBlurCb;\n}\n\nconst StyledWrapper = styled(Grid, { name: FilterPopoverName, slot: FILTER_POPOVER_SLOTS.ROOT })`\n cursor: initial;\n`;\nconst StyledButton = styled(DSButtonV2, { name: FilterPopoverName, slot: FILTER_POPOVER_SLOTS.FILTER_ICON_BUTTON })``;\n\nconst FilterPopover: React.ComponentType<FilterPopoverT.Props> = (props) => {\n const { referenceElement, filterMinWidth, shouldShowFilter, children, FilterIcon } = props;\n const ref = React.useRef<HTMLButtonElement>(null);\n const [showPopover, setShowPopover] = React.useState(false);\n\n const closeContextMenu = useCallback(() => {\n setShowPopover(false);\n }, []);\n\n const handleOnKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (e.key === 'Escape') {\n setShowPopover(false);\n ref.current?.focus();\n }\n },\n [ref],\n );\n\n const config: ConfigT = useMemo(\n () => ({\n onBlur: () => {\n setShowPopover(false);\n },\n }),\n [],\n );\n const handleParentOnBlur = useOnBlurOut(config);\n\n if (!shouldShowFilter && !showPopover) return null;\n\n return (\n <StyledWrapper onBlur={handleParentOnBlur} tabIndex={-1}>\n <StyledButton\n buttonType=\"icon\"\n innerRef={ref}\n aria-label=\"filter\"\n size=\"s\"\n onClick={() => setShowPopover(!showPopover)}\n >\n {FilterIcon ? <FilterIcon /> : <SearchXsmall size=\"s\" />}\n </StyledButton>\n {referenceElement && (\n <DSPopperJS\n referenceElement={referenceElement}\n showPopover={showPopover}\n withoutAnimation\n withoutArrow\n withoutPortal\n closeContextMenu={closeContextMenu}\n backgroundColor=\"#FFF\"\n onKeyDown={handleOnKeyDown}\n startPlacementPreference=\"bottom-end\"\n extraPopperStyles={{\n minWidth: filterMinWidth ?? referenceElement.offsetWidth ?? '0px',\n }}\n placementOrderPreference={['bottom-end', 'top-end']}\n >\n {children}\n </DSPopperJS>\n )}\n </StyledWrapper>\n );\n};\n\nFilterPopover.displayName = 'FilterPopover';\nconst FilterPopoverWithSchema = describe(FilterPopover);\nFilterPopoverWithSchema.propTypes = FilterPopoverPropTypesSchema;\n\nexport { FilterPopover, FilterPopoverWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACoDnB,SAQkB,KARlB;AApDJ,OAAOA,UAAS,aAAa,eAAe;AAC5C,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAC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,UAAU;AACtB,uBAAe,KAAK;AACpB,YAAI,SAAS,MAAM;AAAA,MACrB;AAAA,IACF;AAAA,IACA,CAAC,GAAG;AAAA,EACN;AAEA,QAAM,SAAkB;AAAA,IACtB,OAAO;AAAA,MACL,QAAQ,MAAM;AACZ,uBAAe,KAAK;AAAA,MACtB;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,QAAM,qBAAqB,aAAa,MAAM;AAE9C,MAAI,CAAC,oBAAoB,CAAC,YAAa,QAAO;AAE9C,SACE,qBAAC,iBAAc,QAAQ,oBAAoB,UAAU,IACnD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,YAAW;AAAA,QACX,UAAU;AAAA,QACV,cAAW;AAAA,QACX,MAAK;AAAA,QACL,SAAS,MAAM,eAAe,CAAC,WAAW;AAAA,QAEzC,uBAAa,oBAAC,cAAW,IAAK,oBAAC,gBAAa,MAAK,KAAI;AAAA;AAAA,IACxD;AAAA,IACC,oBACC;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA,kBAAgB;AAAA,QAChB,cAAY;AAAA,QACZ,eAAa;AAAA,QACb;AAAA,QACA,iBAAgB;AAAA,QAChB,WAAW;AAAA,QACX,0BAAyB;AAAA,QACzB,mBAAmB;AAAA,UACjB,UAAU,kBAAkB,iBAAiB,eAAe;AAAA,QAC9D;AAAA,QACA,0BAA0B,CAAC,cAAc,SAAS;AAAA,QAEjD;AAAA;AAAA,IACH;AAAA,KAEJ;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { FilterPopover, FilterPopoverWithSchema } from "./FilterPopover.js";
3
- import {} from "./react-desc-prop-types.js";
4
3
  import { FILTER_POPOVER_SLOTS, FILTER_POPOVER_DATA_TESTID } from "./constants/index.js";
5
4
  export {
6
5
  FILTER_POPOVER_DATA_TESTID,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/FilterPopover/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { FilterPopover, FilterPopoverWithSchema } from './FilterPopover.js';\nexport { type FilterPopoverT } from './react-desc-prop-types.js';\nexport { FILTER_POPOVER_SLOTS, FILTER_POPOVER_DATA_TESTID } from './constants/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe,+BAA+B;AACvD,eAAoC;AACpC,SAAS,sBAAsB,kCAAkC;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe,+BAA+B;AAEvD,SAAS,sBAAsB,kCAAkC;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { MultiSelectFilter, MultiSelectFilterWithSchema } from "./MultiSelectFilter.js";
3
3
  import { MultiSelectPill } from "./MultiSelectPill.js";
4
- import {} from "./react-desc-prop-types.js";
5
4
  import { multiSelectFilterFn } from "./multiSelectFilterFn.js";
6
5
  export {
7
6
  MultiSelectFilter,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/MultiSelectFilter/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { MultiSelectFilter, MultiSelectFilterWithSchema } from './MultiSelectFilter.js';\nexport { MultiSelectPill } from './MultiSelectPill.js';\nexport { type MultiSelectFilterT } from './react-desc-prop-types.js';\nexport { multiSelectFilterFn } from './multiSelectFilterFn.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,uBAAuB;AAChC,eAAwC;AACxC,SAAS,2BAA2B;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,uBAAuB;AAEhC,SAAS,2BAA2B;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,7 @@
1
1
  import * as React from "react";
2
2
  const multiSelectFilterFn = (datum, filterValue, filterKey) => {
3
- if (filterValue === null)
4
- return true;
5
- if (filterValue.length === 0)
6
- return true;
3
+ if (filterValue === null) return true;
4
+ if (filterValue.length === 0) return true;
7
5
  return filterValue.some((position) => position.label === datum[filterKey]);
8
6
  };
9
7
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/MultiSelectFilter/multiSelectFilterFn.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { type DSComboboxT } from '@elliemae/ds-form-combobox';\n\nexport const multiSelectFilterFn = (\n datum: Record<string, unknown>,\n filterValue: DSComboboxT.ItemOption[] | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.length === 0) return true;\n return filterValue.some((position) => position.label === datum[filterKey]);\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,WAAW;AAAG,WAAO;AACrC,SAAO,YAAY,KAAK,CAAC,aAAa,SAAS,UAAU,MAAM,SAAS,CAAC;AAC3E;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACEhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,WAAW,EAAG,QAAO;AACrC,SAAO,YAAY,KAAK,CAAC,aAAa,SAAS,UAAU,MAAM,SAAS,CAAC;AAC3E;",
6
6
  "names": []
7
7
  }
@@ -19,8 +19,7 @@ const NumberRangeFilter = React2.memo((props) => {
19
19
  };
20
20
  const handleFromOnChange = useCallback(
21
21
  (e) => {
22
- if (filterValue === null)
23
- return;
22
+ if (filterValue === null) return;
24
23
  const from = e.target.value !== "" ? parseInt(e.target.value, 10) : null;
25
24
  onValueChange({ from, to: filterValue.to });
26
25
  },
@@ -28,8 +27,7 @@ const NumberRangeFilter = React2.memo((props) => {
28
27
  );
29
28
  const handleToOnChange = useCallback(
30
29
  (e) => {
31
- if (filterValue === null)
32
- return;
30
+ if (filterValue === null) return;
33
31
  const to = e.target.value !== "" ? parseInt(e.target.value, 10) : null;
34
32
  onValueChange({ from: filterValue.from, to });
35
33
  },
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/NumberRangeFilter/NumberRangeFilter.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSInputText } from '@elliemae/ds-controlled-form';\nimport { DSFormLayoutBlockItem } from '@elliemae/ds-form-layout-blocks';\nimport { getNumberMaskedValue } from '@elliemae/ds-form-helpers-mask-hooks';\nimport { type NumberRangeFilterT, NumberRangeFilterPropTypesSchema } from './react-desc-prop-types.js';\n\nconst NumberRangeFilter: React.ComponentType<NumberRangeFilterT.Props> = React.memo((props) => {\n const { filterValue, onValueChange } = props;\n const opts = {\n includeThousandsSeparator: false,\n decimalPlaces: 0,\n };\n const conform = (value: number | string | null) => {\n const valueAsString = value?.toString() ?? '';\n return getNumberMaskedValue(valueAsString, opts);\n };\n\n const handleFromOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (filterValue === null) return;\n const from = e.target.value !== '' ? parseInt(e.target.value, 10) : null;\n onValueChange({ from, to: filterValue.to });\n },\n [filterValue, onValueChange],\n );\n\n const handleToOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (filterValue === null) return;\n const to = e.target.value !== '' ? parseInt(e.target.value, 10) : null;\n onValueChange({ from: filterValue.from, to });\n },\n [filterValue, onValueChange],\n );\n if (!filterValue) {\n return null;\n }\n return (\n <Grid gutter=\"xxxs\" padding=\"xxs\" cols={['auto', 'auto']}>\n <DSFormLayoutBlockItem label=\"Low\" inputID={`low`}>\n <DSInputText\n autoFocus\n value={conform(filterValue.from)}\n onChange={handleFromOnChange}\n id={'low'}\n style={{ textAlign: 'right' }}\n placeholder=\"0\"\n />\n </DSFormLayoutBlockItem>\n <DSFormLayoutBlockItem label=\"High\" inputID={`high`}>\n <DSInputText\n value={conform(filterValue.to)}\n onChange={handleToOnChange}\n id={`high`}\n style={{ textAlign: 'right' }}\n placeholder=\"0\"\n />\n </DSFormLayoutBlockItem>\n </Grid>\n );\n});\nNumberRangeFilter.displayName = 'NumberRangeFilter';\nconst NumberRangeFilterWithSchema = describe(NumberRangeFilter);\nNumberRangeFilterWithSchema.propTypes = NumberRangeFilterPropTypesSchema;\n\nexport { NumberRangeFilter, NumberRangeFilterWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACwCnB,SAEI,KAFJ;AAxCJ,OAAOA,UAAS,mBAAmB;AACnC,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAkC,wCAAwC;AAE1E,MAAM,oBAAmEA,OAAM,KAAK,CAAC,UAAU;AAC7F,QAAM,EAAE,aAAa,cAAc,IAAI;AACvC,QAAM,OAAO;AAAA,IACX,2BAA2B;AAAA,IAC3B,eAAe;AAAA,EACjB;AACA,QAAM,UAAU,CAAC,UAAkC;AACjD,UAAM,gBAAgB,OAAO,SAAS,KAAK;AAC3C,WAAO,qBAAqB,eAAe,IAAI;AAAA,EACjD;AAEA,QAAM,qBAAqB;AAAA,IACzB,CAAC,MAA2C;AAC1C,UAAI,gBAAgB;AAAM;AAC1B,YAAM,OAAO,EAAE,OAAO,UAAU,KAAK,SAAS,EAAE,OAAO,OAAO,EAAE,IAAI;AACpE,oBAAc,EAAE,M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,EAAE;AAAA,QAC7B,UAAU;AAAA,QACV,IAAI;AAAA,QACJ,OAAO,EAAE,WAAW,QAAQ;AAAA,QAC5B,aAAY;AAAA;AAAA,IACd,GACF;AAAA,KACF;AAEJ,CAAC;AACD,kBAAkB,cAAc;AAChC,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/NumberRangeFilter/NumberRangePill.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { DSPillGroupV2, DSPillV2 } from '@elliemae/ds-pills-v2';\nimport { type NumberRangeFilterT } from './react-desc-prop-types.js';\nexport const NumberRangePill: React.ComponentType<NumberRangeFilterT.NumberRangePillProps> = ({\n columnHeader,\n value,\n onRemove,\n innerRef,\n}) => {\n const handleOnRemove = useCallback(\n (e: React.KeyboardEvent<Element> | React.MouseEvent<Element, MouseEvent>) => {\n onRemove(e, {\n columnHeader,\n value,\n });\n },\n [onRemove, value, columnHeader],\n );\n\n return value.to !== null && value.from !== null ? (\n <DSPillGroupV2>\n <DSPillV2 type=\"label\" label={columnHeader} />\n <DSPillV2 type=\"removable\" label={`${value.from}-${value.to}`} onRemove={handleOnRemove} innerRef={innerRef} />\n </DSPillGroupV2>\n ) : null;\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACoBnB,SACE,KADF;AApBJ,SAAgB,mBAAmB;AACnC,SAAS,eAAe,gBAAgB;AAEjC,MAAM,kBAAgF,CAAC;AAAA,EAC5F;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,iBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AAEA,SAAO,MAAM,OAAO,QAAQ,MAAM,SAAS,OACzC,qBAAC,iBACC;AAAA,wBAAC,YAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C,oBAAC,YAAS,MAAK,aAAY,OAAO,GAAG,MAAM,QAAQ,MAAM,MAAM,UAAU,gBAAgB,UAAoB;AAAA,KAC/G,IACE;AACN;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACoBnB,SACE,KADF;AApBJ,SAAgB,mBAAmB;AACnC,SAAS,eAAe,gBAAgB;AAEjC,MAAM,kBAAgF,CAAC;AAAA,EAC5F;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,iBAAiB;AAAA,IACrB,CAAC,MAA4E;AAC3E,eAAS,GAAG;AAAA,QACV;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,UAAU,OAAO,YAAY;AAAA,EAChC;AAEA,SAAO,MAAM,OAAO,QAAQ,MAAM,SAAS,OACzC,qBAAC,iBACC;AAAA,wBAAC,YAAS,MAAK,SAAQ,OAAO,cAAc;AAAA,IAC5C,oBAAC,YAAS,MAAK,aAAY,OAAO,GAAG,MAAM,IAAI,IAAI,MAAM,EAAE,IAAI,UAAU,gBAAgB,UAAoB;AAAA,KAC/G,IACE;AACN;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { NumberRangeFilter, NumberRangeFilterWithSchema } from "./NumberRangeFilter.js";
3
3
  import { NumberRangePill } from "./NumberRangePill.js";
4
- import {} from "./react-desc-prop-types.js";
5
4
  import { numberRangeFilterFn } from "./numberRangeFilterFn.js";
6
5
  export {
7
6
  NumberRangeFilter,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/NumberRangeFilter/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { NumberRangeFilter, NumberRangeFilterWithSchema } from './NumberRangeFilter.js';\nexport { NumberRangePill } from './NumberRangePill.js';\nexport { type NumberRangeFilterT } from './react-desc-prop-types.js';\nexport { numberRangeFilterFn } from './numberRangeFilterFn.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,uBAAuB;AAChC,eAAwC;AACxC,SAAS,2BAA2B;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,uBAAuB;AAEhC,SAAS,2BAA2B;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,7 @@
1
1
  import * as React from "react";
2
2
  const numberRangeFilterFn = (datum, filterValue, filterKey) => {
3
- if (filterValue === null)
4
- return true;
5
- if (filterValue.from === null || filterValue.to === null)
6
- return true;
3
+ if (filterValue === null) return true;
4
+ if (filterValue.from === null || filterValue.to === null) return true;
7
5
  return parseInt(datum[filterKey], 10) >= filterValue.from && parseInt(datum[filterKey], 10) <= filterValue.to;
8
6
  };
9
7
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/NumberRangeFilter/numberRangeFilterFn.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const numberRangeFilterFn = (\n datum: Record<string, unknown>,\n filterValue: { from: number | null; to: number | null } | null,\n filterKey: string,\n) => {\n if (filterValue === null) return true;\n if (filterValue.from === null || filterValue.to === null) return true;\n return (\n parseInt(datum[filterKey] as string, 10) >= filterValue.from &&\n parseInt(datum[filterKey] as string, 10) <= filterValue.to\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB;AAAM,WAAO;AACjC,MAAI,YAAY,SAAS,QAAQ,YAAY,OAAO;AAAM,WAAO;AACjE,SACE,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY,QACxD,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY;AAE5D;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,sBAAsB,CACjC,OACA,aACA,cACG;AACH,MAAI,gBAAgB,KAAM,QAAO;AACjC,MAAI,YAAY,SAAS,QAAQ,YAAY,OAAO,KAAM,QAAO;AACjE,SACE,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY,QACxD,SAAS,MAAM,SAAS,GAAa,EAAE,KAAK,YAAY;AAE5D;",
6
6
  "names": []
7
7
  }
@@ -10,8 +10,7 @@ const SingleDateFilter = (props) => {
10
10
  const [internalDate, setInternalDate] = useState(filterValue || "");
11
11
  const handleOnSingleDateChange = useCallback(
12
12
  (date) => {
13
- if (!date.includes("_"))
14
- onValueChange(date);
13
+ if (!date.includes("_")) onValueChange(date);
15
14
  setInternalDate(date);
16
15
  },
17
16
  [onValueChange]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/SingleDateFilter/SingleDateFilter.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useState, useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledDateTimePicker } from '@elliemae/ds-form-date-time-picker';\nimport { type SingleDateFilterT, SingleDateFilterPropTypesSchema } from './react-desc-prop-types.js';\n\nconst SingleDateFilter: React.ComponentType<SingleDateFilterT.Props> = (props) => {\n const { filterValue, onValueChange } = props;\n\n const [internalDate, setInternalDate] = useState(filterValue || '');\n\n const handleOnSingleDateChange = useCallback(\n (date: string) => {\n if (!date.includes('_')) onValueChange(date);\n setInternalDate(date);\n },\n [onValueChange],\n );\n return (\n <Grid width=\"260px\">\n <Grid p=\"xxs\" style={{ background: 'white' }}>\n <DSControlledDateTimePicker\n autoFocus\n date={internalDate}\n onDateChange={handleOnSingleDateChange}\n type=\"date-inputs\"\n isClearable\n />\n </Grid>\n <Grid>\n <DSControlledDateTimePicker\n date={internalDate}\n onDateChange={handleOnSingleDateChange}\n type=\"date-picker-controller-only\"\n />\n </Grid>\n </Grid>\n );\n};\n\nSingleDateFilter.displayName = 'SingleDateFilter';\nconst SingleDateFilterWithSchema = describe(SingleDateFilter);\nSingleDateFilterWithSchema.propTypes = SingleDateFilterPropTypesSchema;\n\nexport { SingleDateFilter, SingleDateFilterWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACmBnB,SAEI,KAFJ;AAnBJ,SAAgB,UAAU,mBAAmB;AAC7C,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,kCAAkC;AAC3C,SAAiC,uCAAuC;AAExE,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,aAAa,cAAc,IAAI;AAEvC,QAAM,CAAC,cAAc,eAAe,IAAI,SAAS,eAAe,EAAE;AAElE,QAAM,2BAA2B;AAAA,IAC/B,CAAC,SAAiB;AAChB,UAAI,CAAC,KAAK,SAAS,GAAG;AAAG,sBAAc,IAAI;AAC3C,sBAAgB,IAAI;AAAA,IACtB;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AACA,SACE,qBAAC,QAAK,OAAM,SACV;AAAA,wBAAC,QAAK,GAAE,OAAM,OAAO,EAAE,YAAY,QAAQ,GACzC;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA,QACL,aAAW;AAAA;AAAA,IACb,GACF;AAAA,IACA,oBAAC,QACC;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACmBnB,SAEI,KAFJ;AAnBJ,SAAgB,UAAU,mBAAmB;AAC7C,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,kCAAkC;AAC3C,SAAiC,uCAAuC;AAExE,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,EAAE,aAAa,cAAc,IAAI;AAEvC,QAAM,CAAC,cAAc,eAAe,IAAI,SAAS,eAAe,EAAE;AAElE,QAAM,2BAA2B;AAAA,IAC/B,CAAC,SAAiB;AAChB,UAAI,CAAC,KAAK,SAAS,GAAG,EAAG,eAAc,IAAI;AAC3C,sBAAgB,IAAI;AAAA,IACtB;AAAA,IACA,CAAC,aAAa;AAAA,EAChB;AACA,SACE,qBAAC,QAAK,OAAM,SACV;AAAA,wBAAC,QAAK,GAAE,OAAM,OAAO,EAAE,YAAY,QAAQ,GACzC;AAAA,MAAC;AAAA;AAAA,QACC,WAAS;AAAA,QACT,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA,QACL,aAAW;AAAA;AAAA,IACb,GACF;AAAA,IACA,oBAAC,QACC;AAAA,MAAC;AAAA;AAAA,QACC,MAAM;AAAA,QACN,cAAc;AAAA,QACd,MAAK;AAAA;AAAA,IACP,GACF;AAAA,KACF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { SingleDateFilter, SingleDateFilterWithSchema } from "./SingleDateFilter.js";
3
3
  import { SingleDatePill } from "./SingleDatePill.js";
4
- import {} from "./react-desc-prop-types.js";
5
4
  import { singleDateFilterFn } from "./singleDateFilterFn.js";
6
5
  export {
7
6
  SingleDateFilter,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/SingleDateFilter/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { SingleDateFilter, SingleDateFilterWithSchema } from './SingleDateFilter.js';\nexport { SingleDatePill } from './SingleDatePill.js';\nexport { type SingleDateFilterT } from './react-desc-prop-types.js';\nexport { singleDateFilterFn } from './singleDateFilterFn.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kBAAkB,kCAAkC;AAC7D,SAAS,sBAAsB;AAC/B,eAAuC;AACvC,SAAS,0BAA0B;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kBAAkB,kCAAkC;AAC7D,SAAS,sBAAsB;AAE/B,SAAS,0BAA0B;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { SingleSelectFilter, SingleSelectFilterWithSchema } from "./SingleSelectFilter.js";
3
3
  import { SingleSelectPill } from "./SingleSelectPill.js";
4
- import {} from "./react-desc-prop-types.js";
5
4
  import { singleSelectFilterFn } from "./singleSelectFilterFn.js";
6
5
  export {
7
6
  SingleSelectFilter,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/SingleSelectFilter/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { SingleSelectFilter, SingleSelectFilterWithSchema } from './SingleSelectFilter.js';\nexport { SingleSelectPill } from './SingleSelectPill.js';\nexport { type SingleSelectFilterT } from './react-desc-prop-types.js';\nexport { singleSelectFilterFn } from './singleSelectFilterFn.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB,oCAAoC;AACjE,SAAS,wBAAwB;AACjC,eAAyC;AACzC,SAAS,4BAA4B;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB,oCAAoC;AACjE,SAAS,wBAAwB;AAEjC,SAAS,4BAA4B;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-data-table-filters",
3
- "version": "3.36.0-rc.0",
3
+ "version": "3.36.1-next.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Table Filters",
6
6
  "files": [
@@ -37,26 +37,26 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@xstyled/styled-components": "~3.6.0",
40
- "@elliemae/ds-button-v2": "3.36.0-rc.0",
41
- "@elliemae/ds-controlled-form": "3.36.0-rc.0",
42
- "@elliemae/ds-form-combobox": "3.36.0-rc.0",
43
- "@elliemae/ds-form-date-time-picker": "3.36.0-rc.0",
44
- "@elliemae/ds-form-date-range-picker": "3.36.0-rc.0",
45
- "@elliemae/ds-form-layout-blocks": "3.36.0-rc.0",
46
- "@elliemae/ds-form-helpers-mask-hooks": "3.36.0-rc.0",
47
- "@elliemae/ds-icons": "3.36.0-rc.0",
48
- "@elliemae/ds-grid": "3.36.0-rc.0",
49
- "@elliemae/ds-popperjs": "3.36.0-rc.0",
50
- "@elliemae/ds-props-helpers": "3.36.0-rc.0",
51
- "@elliemae/ds-system": "3.36.0-rc.0",
52
- "@elliemae/ds-typescript-helpers": "3.36.0-rc.0",
53
- "@elliemae/ds-utilities": "3.36.0-rc.0",
54
- "@elliemae/ds-pills-v2": "3.36.0-rc.0"
40
+ "@elliemae/ds-button-v2": "3.36.1-next.7",
41
+ "@elliemae/ds-controlled-form": "3.36.1-next.7",
42
+ "@elliemae/ds-form-combobox": "3.36.1-next.7",
43
+ "@elliemae/ds-form-date-range-picker": "3.36.1-next.7",
44
+ "@elliemae/ds-form-date-time-picker": "3.36.1-next.7",
45
+ "@elliemae/ds-form-helpers-mask-hooks": "3.36.1-next.7",
46
+ "@elliemae/ds-pills-v2": "3.36.1-next.7",
47
+ "@elliemae/ds-grid": "3.36.1-next.7",
48
+ "@elliemae/ds-icons": "3.36.1-next.7",
49
+ "@elliemae/ds-popperjs": "3.36.1-next.7",
50
+ "@elliemae/ds-props-helpers": "3.36.1-next.7",
51
+ "@elliemae/ds-system": "3.36.1-next.7",
52
+ "@elliemae/ds-typescript-helpers": "3.36.1-next.7",
53
+ "@elliemae/ds-form-layout-blocks": "3.36.1-next.7",
54
+ "@elliemae/ds-utilities": "3.36.1-next.7"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@elliemae/pui-cli": "~9.0.0-next.31",
58
58
  "styled-components": "~5.3.9",
59
- "@elliemae/ds-monorepo-devops": "3.36.0-rc.0"
59
+ "@elliemae/ds-monorepo-devops": "3.36.1-next.7"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@testing-library/jest-dom": "~5.16.4",