@osdk/react-components 0.2.0-beta.26 → 0.2.0-beta.28

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 (138) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +58 -3
  3. package/build/browser/base-components/checkbox/Checkbox.js +6 -2
  4. package/build/browser/base-components/checkbox/Checkbox.js.map +1 -1
  5. package/build/browser/base-components/checkbox/Checkbox.module.css +7 -2
  6. package/build/browser/filter-list/FilterListApi.js.map +1 -1
  7. package/build/browser/filter-list/FilterListItemApi.js.map +1 -1
  8. package/build/browser/filter-list/base/ExcludeDropdown.js +4 -3
  9. package/build/browser/filter-list/base/ExcludeDropdown.js.map +1 -1
  10. package/build/browser/filter-list/base/FilterIcons.js +7 -1
  11. package/build/browser/filter-list/base/FilterIcons.js.map +1 -1
  12. package/build/browser/filter-list/base/FilterList.module.css +0 -3
  13. package/build/browser/filter-list/base/FilterListContent.js +38 -17
  14. package/build/browser/filter-list/base/FilterListContent.js.map +1 -1
  15. package/build/browser/filter-list/base/FilterListItem.js +33 -1
  16. package/build/browser/filter-list/base/FilterListItem.js.map +1 -1
  17. package/build/browser/filter-list/base/FilterListItem.module.css +9 -6
  18. package/build/browser/filter-list/base/FilterListItem.module.css.js +1 -1
  19. package/build/browser/filter-list/base/SortableFilterListItem.js +3 -2
  20. package/build/browser/filter-list/base/SortableFilterListItem.js.map +1 -1
  21. package/build/browser/filter-list/base/inputs/ListogramInput.js +25 -10
  22. package/build/browser/filter-list/base/inputs/ListogramInput.js.map +1 -1
  23. package/build/browser/filter-list/base/inputs/ListogramInput.module.css +8 -0
  24. package/build/browser/filter-list/base/inputs/ListogramInput.module.css.js +1 -0
  25. package/build/browser/filter-list/base/inputs/NullValueWrapper.js +1 -1
  26. package/build/browser/filter-list/base/inputs/NullValueWrapper.js.map +1 -1
  27. package/build/browser/filter-list/base/inputs/RangeInput.js +5 -3
  28. package/build/browser/filter-list/base/inputs/RangeInput.js.map +1 -1
  29. package/build/browser/filter-list/base/inputs/RangeInput.module.css +0 -6
  30. package/build/browser/filter-list/base/inputs/index.js +0 -1
  31. package/build/browser/filter-list/base/inputs/index.js.map +1 -1
  32. package/build/browser/filter-list/hooks/useFilterListState.js +7 -11
  33. package/build/browser/filter-list/hooks/useFilterListState.js.map +1 -1
  34. package/build/browser/filter-list/hooks/usePropertyAggregation.js +7 -2
  35. package/build/browser/filter-list/hooks/usePropertyAggregation.js.map +1 -1
  36. package/build/browser/filter-list/inputs/LinkedPropertyInput.js +0 -35
  37. package/build/browser/filter-list/inputs/LinkedPropertyInput.js.map +1 -1
  38. package/build/browser/filter-list/inputs/ListogramFilterInput.js +5 -2
  39. package/build/browser/filter-list/inputs/ListogramFilterInput.js.map +1 -1
  40. package/build/browser/filter-list/inputs/PropertyFilterInput.js +0 -13
  41. package/build/browser/filter-list/inputs/PropertyFilterInput.js.map +1 -1
  42. package/build/browser/filter-list/utils/filterStateToWhereClause.js +2 -7
  43. package/build/browser/filter-list/utils/filterStateToWhereClause.js.map +1 -1
  44. package/build/browser/styles.css +24 -120
  45. package/build/cjs/public/experimental.cjs +1353 -1457
  46. package/build/cjs/public/experimental.cjs.map +1 -1
  47. package/build/cjs/public/experimental.css +133 -189
  48. package/build/cjs/public/experimental.css.map +1 -1
  49. package/build/cjs/public/experimental.d.cts +6 -14
  50. package/build/esm/base-components/checkbox/Checkbox.js +6 -2
  51. package/build/esm/base-components/checkbox/Checkbox.js.map +1 -1
  52. package/build/esm/base-components/checkbox/Checkbox.module.css +7 -2
  53. package/build/esm/filter-list/FilterListApi.js.map +1 -1
  54. package/build/esm/filter-list/FilterListItemApi.js.map +1 -1
  55. package/build/esm/filter-list/base/ExcludeDropdown.js +4 -3
  56. package/build/esm/filter-list/base/ExcludeDropdown.js.map +1 -1
  57. package/build/esm/filter-list/base/FilterIcons.js +7 -1
  58. package/build/esm/filter-list/base/FilterIcons.js.map +1 -1
  59. package/build/esm/filter-list/base/FilterList.module.css +0 -3
  60. package/build/esm/filter-list/base/FilterListContent.js +38 -17
  61. package/build/esm/filter-list/base/FilterListContent.js.map +1 -1
  62. package/build/esm/filter-list/base/FilterListItem.js +33 -1
  63. package/build/esm/filter-list/base/FilterListItem.js.map +1 -1
  64. package/build/esm/filter-list/base/FilterListItem.module.css +9 -6
  65. package/build/esm/filter-list/base/SortableFilterListItem.js +3 -2
  66. package/build/esm/filter-list/base/SortableFilterListItem.js.map +1 -1
  67. package/build/esm/filter-list/base/inputs/ListogramInput.js +25 -10
  68. package/build/esm/filter-list/base/inputs/ListogramInput.js.map +1 -1
  69. package/build/esm/filter-list/base/inputs/ListogramInput.module.css +8 -0
  70. package/build/esm/filter-list/base/inputs/NullValueWrapper.js +1 -1
  71. package/build/esm/filter-list/base/inputs/NullValueWrapper.js.map +1 -1
  72. package/build/esm/filter-list/base/inputs/RangeInput.js +5 -3
  73. package/build/esm/filter-list/base/inputs/RangeInput.js.map +1 -1
  74. package/build/esm/filter-list/base/inputs/RangeInput.module.css +0 -6
  75. package/build/esm/filter-list/base/inputs/index.js +0 -1
  76. package/build/esm/filter-list/base/inputs/index.js.map +1 -1
  77. package/build/esm/filter-list/hooks/useFilterListState.js +7 -11
  78. package/build/esm/filter-list/hooks/useFilterListState.js.map +1 -1
  79. package/build/esm/filter-list/hooks/usePropertyAggregation.js +7 -2
  80. package/build/esm/filter-list/hooks/usePropertyAggregation.js.map +1 -1
  81. package/build/esm/filter-list/inputs/LinkedPropertyInput.js +0 -35
  82. package/build/esm/filter-list/inputs/LinkedPropertyInput.js.map +1 -1
  83. package/build/esm/filter-list/inputs/ListogramFilterInput.js +5 -2
  84. package/build/esm/filter-list/inputs/ListogramFilterInput.js.map +1 -1
  85. package/build/esm/filter-list/inputs/PropertyFilterInput.js +0 -13
  86. package/build/esm/filter-list/inputs/PropertyFilterInput.js.map +1 -1
  87. package/build/esm/filter-list/utils/filterStateToWhereClause.js +2 -7
  88. package/build/esm/filter-list/utils/filterStateToWhereClause.js.map +1 -1
  89. package/build/types/base-components/checkbox/Checkbox.d.ts +2 -1
  90. package/build/types/base-components/checkbox/Checkbox.d.ts.map +1 -1
  91. package/build/types/filter-list/FilterListApi.d.ts +0 -7
  92. package/build/types/filter-list/FilterListApi.d.ts.map +1 -1
  93. package/build/types/filter-list/FilterListItemApi.d.ts +6 -7
  94. package/build/types/filter-list/FilterListItemApi.d.ts.map +1 -1
  95. package/build/types/filter-list/base/ExcludeDropdown.d.ts.map +1 -1
  96. package/build/types/filter-list/base/FilterIcons.d.ts +1 -0
  97. package/build/types/filter-list/base/FilterIcons.d.ts.map +1 -1
  98. package/build/types/filter-list/base/FilterListContent.d.ts.map +1 -1
  99. package/build/types/filter-list/base/FilterListItem.d.ts.map +1 -1
  100. package/build/types/filter-list/base/SortableFilterListItem.d.ts +2 -1
  101. package/build/types/filter-list/base/SortableFilterListItem.d.ts.map +1 -1
  102. package/build/types/filter-list/base/inputs/ListogramInput.d.ts +2 -1
  103. package/build/types/filter-list/base/inputs/ListogramInput.d.ts.map +1 -1
  104. package/build/types/filter-list/base/inputs/RangeInput.d.ts.map +1 -1
  105. package/build/types/filter-list/base/inputs/index.d.ts +0 -1
  106. package/build/types/filter-list/base/inputs/index.d.ts.map +1 -1
  107. package/build/types/filter-list/hooks/usePropertyAggregation.d.ts +1 -0
  108. package/build/types/filter-list/hooks/usePropertyAggregation.d.ts.map +1 -1
  109. package/build/types/filter-list/inputs/LinkedPropertyInput.d.ts.map +1 -1
  110. package/build/types/filter-list/inputs/ListogramFilterInput.d.ts.map +1 -1
  111. package/build/types/filter-list/inputs/PropertyFilterInput.d.ts.map +1 -1
  112. package/build/types/filter-list/utils/filterStateToWhereClause.d.ts +1 -1
  113. package/build/types/filter-list/utils/filterStateToWhereClause.d.ts.map +1 -1
  114. package/package.json +7 -7
  115. package/build/browser/filter-list/base/inputs/CheckboxListInput.js +0 -83
  116. package/build/browser/filter-list/base/inputs/CheckboxListInput.js.map +0 -1
  117. package/build/browser/filter-list/base/inputs/CheckboxListInput.module.css +0 -65
  118. package/build/browser/filter-list/base/inputs/CheckboxListInput.module.css.js +0 -10
  119. package/build/browser/filter-list/base/inputs/CheckboxListSkeleton.js +0 -46
  120. package/build/browser/filter-list/base/inputs/CheckboxListSkeleton.js.map +0 -1
  121. package/build/browser/filter-list/base/inputs/CheckboxListSkeleton.module.css +0 -32
  122. package/build/browser/filter-list/base/inputs/CheckboxListSkeleton.module.css.js +0 -8
  123. package/build/browser/filter-list/inputs/CheckboxListFilterInput.js +0 -66
  124. package/build/browser/filter-list/inputs/CheckboxListFilterInput.js.map +0 -1
  125. package/build/esm/filter-list/base/inputs/CheckboxListInput.js +0 -83
  126. package/build/esm/filter-list/base/inputs/CheckboxListInput.js.map +0 -1
  127. package/build/esm/filter-list/base/inputs/CheckboxListInput.module.css +0 -65
  128. package/build/esm/filter-list/base/inputs/CheckboxListSkeleton.js +0 -46
  129. package/build/esm/filter-list/base/inputs/CheckboxListSkeleton.js.map +0 -1
  130. package/build/esm/filter-list/base/inputs/CheckboxListSkeleton.module.css +0 -32
  131. package/build/esm/filter-list/inputs/CheckboxListFilterInput.js +0 -66
  132. package/build/esm/filter-list/inputs/CheckboxListFilterInput.js.map +0 -1
  133. package/build/types/filter-list/base/inputs/CheckboxListInput.d.ts +0 -16
  134. package/build/types/filter-list/base/inputs/CheckboxListInput.d.ts.map +0 -1
  135. package/build/types/filter-list/base/inputs/CheckboxListSkeleton.d.ts +0 -2
  136. package/build/types/filter-list/base/inputs/CheckboxListSkeleton.d.ts.map +0 -1
  137. package/build/types/filter-list/inputs/CheckboxListFilterInput.d.ts +0 -17
  138. package/build/types/filter-list/inputs/CheckboxListFilterInput.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxListFilterInput.js","names":["React","memo","useCallback","useMemo","FilterInputExcludeRow","CheckboxListInput","usePropertyAggregation","coerceToStringArray","CheckboxListFilterInputInner","objectType","objectSet","propertyKey","filterState","onFilterStateChanged","whereClause","colorMap","searchQuery","excludeRowOpen","selectedValues","type","isExcluding","handleChange","newSelectedValues","aggregationOptions","where","data","isLoading","error","createElement","totalValueCount","length","values","onChange","CheckboxListFilterInput"],"sources":["CheckboxListFilterInput.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectSet,\n ObjectTypeDefinition,\n PropertyKeys,\n WhereClause,\n} from \"@osdk/api\";\nimport React, { memo, useCallback, useMemo } from \"react\";\nimport { FilterInputExcludeRow } from \"../base/FilterInputExcludeRow.js\";\nimport { CheckboxListInput } from \"../base/inputs/CheckboxListInput.js\";\nimport type { FilterState } from \"../FilterListItemApi.js\";\nimport { usePropertyAggregation } from \"../hooks/usePropertyAggregation.js\";\nimport { coerceToStringArray } from \"../utils/coerceFilterValue.js\";\n\ninterface CheckboxListFilterInputProps<Q extends ObjectTypeDefinition> {\n objectType: Q;\n objectSet: ObjectSet<Q>;\n propertyKey: string;\n filterState: FilterState | undefined;\n onFilterStateChanged: (state: FilterState) => void;\n whereClause: WhereClause<Q>;\n colorMap?: Record<string, string>;\n searchQuery?: string;\n excludeRowOpen?: boolean;\n}\n\nfunction CheckboxListFilterInputInner<Q extends ObjectTypeDefinition>({\n objectType,\n objectSet,\n propertyKey,\n filterState,\n onFilterStateChanged,\n whereClause,\n colorMap,\n searchQuery,\n excludeRowOpen,\n}: CheckboxListFilterInputProps<Q>): React.ReactElement {\n const selectedValues = useMemo(\n () =>\n filterState?.type === \"SELECT\"\n ? coerceToStringArray(filterState.selectedValues)\n : [],\n [filterState],\n );\n const isExcluding = filterState?.isExcluding ?? false;\n\n const handleChange = useCallback(\n (newSelectedValues: string[]) => {\n onFilterStateChanged({\n type: \"SELECT\",\n selectedValues: newSelectedValues,\n isExcluding,\n });\n },\n [onFilterStateChanged, isExcluding],\n );\n\n const aggregationOptions = useMemo(\n () => ({ where: whereClause }),\n [whereClause],\n );\n\n const { data, isLoading, error } = usePropertyAggregation(\n objectType,\n propertyKey as PropertyKeys<Q>,\n objectSet,\n aggregationOptions,\n );\n\n return (\n <FilterInputExcludeRow\n excludeRowOpen={excludeRowOpen}\n filterState={filterState}\n onFilterStateChanged={onFilterStateChanged}\n totalValueCount={data.length}\n >\n <CheckboxListInput\n values={data}\n isLoading={isLoading}\n error={error}\n selectedValues={selectedValues}\n onChange={handleChange}\n colorMap={colorMap}\n searchQuery={searchQuery}\n />\n </FilterInputExcludeRow>\n );\n}\n\nexport const CheckboxListFilterInput: typeof CheckboxListFilterInputInner =\n memo(CheckboxListFilterInputInner) as typeof CheckboxListFilterInputInner;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,qBAAqB,QAAQ,kCAAkC;AACxE,SAASC,iBAAiB,QAAQ,qCAAqC;AAEvE,SAASC,sBAAsB,QAAQ,oCAAoC;AAC3E,SAASC,mBAAmB,QAAQ,+BAA+B;AAcnE,SAASC,4BAA4BA,CAAiC;EACpEC,UAAU;EACVC,SAAS;EACTC,WAAW;EACXC,WAAW;EACXC,oBAAoB;EACpBC,WAAW;EACXC,QAAQ;EACRC,WAAW;EACXC;AAC+B,CAAC,EAAsB;EACtD,MAAMC,cAAc,GAAGf,OAAO,CAC5B,MACES,WAAW,EAAEO,IAAI,KAAK,QAAQ,GAC1BZ,mBAAmB,CAACK,WAAW,CAACM,cAAc,CAAC,GAC/C,EAAE,EACR,CAACN,WAAW,CACd,CAAC;EACD,MAAMQ,WAAW,GAAGR,WAAW,EAAEQ,WAAW,IAAI,KAAK;EAErD,MAAMC,YAAY,GAAGnB,WAAW,CAC7BoB,iBAA2B,IAAK;IAC/BT,oBAAoB,CAAC;MACnBM,IAAI,EAAE,QAAQ;MACdD,cAAc,EAAEI,iBAAiB;MACjCF;IACF,CAAC,CAAC;EACJ,CAAC,EACD,CAACP,oBAAoB,EAAEO,WAAW,CACpC,CAAC;EAED,MAAMG,kBAAkB,GAAGpB,OAAO,CAChC,OAAO;IAAEqB,KAAK,EAAEV;EAAY,CAAC,CAAC,EAC9B,CAACA,WAAW,CACd,CAAC;EAED,MAAM;IAAEW,IAAI;IAAEC,SAAS;IAAEC;EAAM,CAAC,GAAGrB,sBAAsB,CACvDG,UAAU,EACVE,WAAW,EACXD,SAAS,EACTa,kBACF,CAAC;EAED,oBACEvB,KAAA,CAAA4B,aAAA,CAACxB,qBAAqB;IACpBa,cAAc,EAAEA,cAAe;IAC/BL,WAAW,EAAEA,WAAY;IACzBC,oBAAoB,EAAEA,oBAAqB;IAC3CgB,eAAe,EAAEJ,IAAI,CAACK;EAAO,gBAE7B9B,KAAA,CAAA4B,aAAA,CAACvB,iBAAiB;IAChB0B,MAAM,EAAEN,IAAK;IACbC,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEA,KAAM;IACbT,cAAc,EAAEA,cAAe;IAC/Bc,QAAQ,EAAEX,YAAa;IACvBN,QAAQ,EAAEA,QAAS;IACnBC,WAAW,EAAEA;EAAY,CAC1B,CACoB,CAAC;AAE5B;AAEA,OAAO,MAAMiB,uBAA4D,gBACvEhC,IAAI,CAACO,4BAA4B,CAAwC","ignoreList":[]}
@@ -1,83 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import classnames from "classnames";
18
- import React, { memo, useCallback, useMemo } from "react";
19
- import { Checkbox } from "../../../base-components/checkbox/Checkbox.js";
20
- import { filterValuesBySearch } from "../../utils/filterValues.js";
21
- import styles from "./CheckboxListInput.module.css";
22
- import { CheckboxListSkeleton } from "./CheckboxListSkeleton.js";
23
- import sharedStyles from "./shared.module.css";
24
- import { useStableData } from "./useStableData.js";
25
- function CheckboxListInputInner({
26
- values,
27
- isLoading,
28
- error,
29
- selectedValues,
30
- onChange,
31
- colorMap,
32
- searchQuery,
33
- className,
34
- style
35
- }) {
36
- const stableValues = useStableData(values, isLoading);
37
- const displayValues = useMemo(() => {
38
- const allValues = stableValues.map(item => item.value);
39
- if (searchQuery) {
40
- return filterValuesBySearch(allValues, searchQuery, v => v);
41
- }
42
- return allValues;
43
- }, [stableValues, searchQuery]);
44
- const selectedSet = useMemo(() => new Set(selectedValues), [selectedValues]);
45
- const toggleValue = useCallback(value => {
46
- if (selectedSet.has(value)) {
47
- onChange(selectedValues.filter(v => v !== value));
48
- } else {
49
- onChange([...selectedValues, value]);
50
- }
51
- }, [selectedValues, selectedSet, onChange]);
52
- return /*#__PURE__*/React.createElement("div", {
53
- className: classnames(styles.checkboxList, className),
54
- style: style,
55
- "data-loading": isLoading && displayValues.length > 0
56
- }, error && /*#__PURE__*/React.createElement("div", {
57
- className: sharedStyles.errorMessage
58
- }, "Error loading values: ", error.message), !error && displayValues.length === 0 && isLoading && /*#__PURE__*/React.createElement(CheckboxListSkeleton, null), !error && displayValues.length === 0 && !isLoading && /*#__PURE__*/React.createElement("div", {
59
- className: sharedStyles.emptyMessage
60
- }, "No values available"), displayValues.map(value => {
61
- const isSelected = selectedSet.has(value);
62
- const color = colorMap?.[value];
63
- return /*#__PURE__*/React.createElement("div", {
64
- key: value,
65
- className: styles.checkboxRow,
66
- "data-selected": isSelected
67
- }, /*#__PURE__*/React.createElement("label", {
68
- className: styles.checkboxLabel
69
- }, /*#__PURE__*/React.createElement(Checkbox, {
70
- checked: isSelected,
71
- onCheckedChange: () => toggleValue(value)
72
- }), color && /*#__PURE__*/React.createElement("span", {
73
- className: styles.colorDot,
74
- style: {
75
- backgroundColor: color
76
- }
77
- }), /*#__PURE__*/React.createElement("span", {
78
- className: styles.valueText
79
- }, value)));
80
- }));
81
- }
82
- export const CheckboxListInput = /*#__PURE__*/memo(CheckboxListInputInner);
83
- //# sourceMappingURL=CheckboxListInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxListInput.js","names":["classnames","React","memo","useCallback","useMemo","Checkbox","filterValuesBySearch","styles","CheckboxListSkeleton","sharedStyles","useStableData","CheckboxListInputInner","values","isLoading","error","selectedValues","onChange","colorMap","searchQuery","className","style","stableValues","displayValues","allValues","map","item","value","v","selectedSet","Set","toggleValue","has","filter","createElement","checkboxList","length","errorMessage","message","emptyMessage","isSelected","color","key","checkboxRow","checkboxLabel","checked","onCheckedChange","colorDot","backgroundColor","valueText","CheckboxListInput"],"sources":["CheckboxListInput.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classnames from \"classnames\";\nimport React, { memo, useCallback, useMemo } from \"react\";\nimport { Checkbox } from \"../../../base-components/checkbox/Checkbox.js\";\nimport type { PropertyAggregationValue } from \"../../types/AggregationTypes.js\";\nimport { filterValuesBySearch } from \"../../utils/filterValues.js\";\nimport styles from \"./CheckboxListInput.module.css\";\nimport { CheckboxListSkeleton } from \"./CheckboxListSkeleton.js\";\nimport sharedStyles from \"./shared.module.css\";\nimport { useStableData } from \"./useStableData.js\";\n\ninterface CheckboxListInputProps {\n values: PropertyAggregationValue[];\n isLoading: boolean;\n error: Error | null;\n selectedValues: string[];\n onChange: (selectedValues: string[]) => void;\n colorMap?: Record<string, string>;\n searchQuery?: string;\n className?: string;\n style?: React.CSSProperties;\n}\n\nfunction CheckboxListInputInner({\n values,\n isLoading,\n error,\n selectedValues,\n onChange,\n colorMap,\n searchQuery,\n className,\n style,\n}: CheckboxListInputProps): React.ReactElement {\n const stableValues = useStableData(values, isLoading);\n\n const displayValues = useMemo(\n () => {\n const allValues = stableValues.map((item) => item.value);\n if (searchQuery) {\n return filterValuesBySearch(allValues, searchQuery, (v) => v);\n }\n return allValues;\n },\n [stableValues, searchQuery],\n );\n\n const selectedSet = useMemo(\n () => new Set(selectedValues),\n [selectedValues],\n );\n\n const toggleValue = useCallback(\n (value: string) => {\n if (selectedSet.has(value)) {\n onChange(selectedValues.filter((v) => v !== value));\n } else {\n onChange([...selectedValues, value]);\n }\n },\n [selectedValues, selectedSet, onChange],\n );\n\n return (\n <div\n className={classnames(styles.checkboxList, className)}\n style={style}\n data-loading={isLoading && displayValues.length > 0}\n >\n {error && (\n <div className={sharedStyles.errorMessage}>\n Error loading values: {error.message}\n </div>\n )}\n\n {!error && displayValues.length === 0 && isLoading && (\n <CheckboxListSkeleton />\n )}\n {!error && displayValues.length === 0 && !isLoading && (\n <div className={sharedStyles.emptyMessage}>\n No values available\n </div>\n )}\n\n {displayValues.map((value) => {\n const isSelected = selectedSet.has(value);\n const color = colorMap?.[value];\n\n return (\n <div\n key={value}\n className={styles.checkboxRow}\n data-selected={isSelected}\n >\n <label className={styles.checkboxLabel}>\n <Checkbox\n checked={isSelected}\n onCheckedChange={() => toggleValue(value)}\n />\n {color && (\n <span\n className={styles.colorDot}\n style={{ backgroundColor: color }}\n />\n )}\n <span className={styles.valueText}>\n {value}\n </span>\n </label>\n </div>\n );\n })}\n </div>\n );\n}\n\nexport const CheckboxListInput = memo(\n CheckboxListInputInner,\n) as typeof CheckboxListInputInner;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,QAAQ,QAAQ,+CAA+C;AAExE,SAASC,oBAAoB,QAAQ,6BAA6B;AAClE,OAAOC,MAAM,MAAM,gCAAgC;AACnD,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,OAAOC,YAAY,MAAM,qBAAqB;AAC9C,SAASC,aAAa,QAAQ,oBAAoB;AAclD,SAASC,sBAAsBA,CAAC;EAC9BC,MAAM;EACNC,SAAS;EACTC,KAAK;EACLC,cAAc;EACdC,QAAQ;EACRC,QAAQ;EACRC,WAAW;EACXC,SAAS;EACTC;AACsB,CAAC,EAAsB;EAC7C,MAAMC,YAAY,GAAGX,aAAa,CAACE,MAAM,EAAEC,SAAS,CAAC;EAErD,MAAMS,aAAa,GAAGlB,OAAO,CAC3B,MAAM;IACJ,MAAMmB,SAAS,GAAGF,YAAY,CAACG,GAAG,CAAEC,IAAI,IAAKA,IAAI,CAACC,KAAK,CAAC;IACxD,IAAIR,WAAW,EAAE;MACf,OAAOZ,oBAAoB,CAACiB,SAAS,EAAEL,WAAW,EAAGS,CAAC,IAAKA,CAAC,CAAC;IAC/D;IACA,OAAOJ,SAAS;EAClB,CAAC,EACD,CAACF,YAAY,EAAEH,WAAW,CAC5B,CAAC;EAED,MAAMU,WAAW,GAAGxB,OAAO,CACzB,MAAM,IAAIyB,GAAG,CAACd,cAAc,CAAC,EAC7B,CAACA,cAAc,CACjB,CAAC;EAED,MAAMe,WAAW,GAAG3B,WAAW,CAC5BuB,KAAa,IAAK;IACjB,IAAIE,WAAW,CAACG,GAAG,CAACL,KAAK,CAAC,EAAE;MAC1BV,QAAQ,CAACD,cAAc,CAACiB,MAAM,CAAEL,CAAC,IAAKA,CAAC,KAAKD,KAAK,CAAC,CAAC;IACrD,CAAC,MAAM;MACLV,QAAQ,CAAC,CAAC,GAAGD,cAAc,EAAEW,KAAK,CAAC,CAAC;IACtC;EACF,CAAC,EACD,CAACX,cAAc,EAAEa,WAAW,EAAEZ,QAAQ,CACxC,CAAC;EAED,oBACEf,KAAA,CAAAgC,aAAA;IACEd,SAAS,EAAEnB,UAAU,CAACO,MAAM,CAAC2B,YAAY,EAAEf,SAAS,CAAE;IACtDC,KAAK,EAAEA,KAAM;IACb,gBAAcP,SAAS,IAAIS,aAAa,CAACa,MAAM,GAAG;EAAE,GAEnDrB,KAAK,iBACJb,KAAA,CAAAgC,aAAA;IAAKd,SAAS,EAAEV,YAAY,CAAC2B;EAAa,GAAC,wBACnB,EAACtB,KAAK,CAACuB,OAC1B,CACN,EAEA,CAACvB,KAAK,IAAIQ,aAAa,CAACa,MAAM,KAAK,CAAC,IAAItB,SAAS,iBAChDZ,KAAA,CAAAgC,aAAA,CAACzB,oBAAoB,MAAE,CACxB,EACA,CAACM,KAAK,IAAIQ,aAAa,CAACa,MAAM,KAAK,CAAC,IAAI,CAACtB,SAAS,iBACjDZ,KAAA,CAAAgC,aAAA;IAAKd,SAAS,EAAEV,YAAY,CAAC6B;EAAa,GAAC,qBAEtC,CACN,EAEAhB,aAAa,CAACE,GAAG,CAAEE,KAAK,IAAK;IAC5B,MAAMa,UAAU,GAAGX,WAAW,CAACG,GAAG,CAACL,KAAK,CAAC;IACzC,MAAMc,KAAK,GAAGvB,QAAQ,GAAGS,KAAK,CAAC;IAE/B,oBACEzB,KAAA,CAAAgC,aAAA;MACEQ,GAAG,EAAEf,KAAM;MACXP,SAAS,EAAEZ,MAAM,CAACmC,WAAY;MAC9B,iBAAeH;IAAW,gBAE1BtC,KAAA,CAAAgC,aAAA;MAAOd,SAAS,EAAEZ,MAAM,CAACoC;IAAc,gBACrC1C,KAAA,CAAAgC,aAAA,CAAC5B,QAAQ;MACPuC,OAAO,EAAEL,UAAW;MACpBM,eAAe,EAAEA,CAAA,KAAMf,WAAW,CAACJ,KAAK;IAAE,CAC3C,CAAC,EACDc,KAAK,iBACJvC,KAAA,CAAAgC,aAAA;MACEd,SAAS,EAAEZ,MAAM,CAACuC,QAAS;MAC3B1B,KAAK,EAAE;QAAE2B,eAAe,EAAEP;MAAM;IAAE,CACnC,CACF,eACDvC,KAAA,CAAAgC,aAAA;MAAMd,SAAS,EAAEZ,MAAM,CAACyC;IAAU,GAC/BtB,KACG,CACD,CACJ,CAAC;EAEV,CAAC,CACE,CAAC;AAEV;AAEA,OAAO,MAAMuB,iBAAiB,gBAAG/C,IAAI,CACnCS,sBACF,CAAkC","ignoreList":[]}
@@ -1,65 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- .checkboxList {
18
- display: flex;
19
- flex-direction: column;
20
- gap: var(--osdk-filter-checkbox-list-gap);
21
- transition: opacity var(--osdk-filter-content-fade-duration);
22
- }
23
-
24
- .checkboxList[data-loading="true"] {
25
- opacity: 0.5;
26
- }
27
-
28
- @media (prefers-reduced-motion: reduce) {
29
- .checkboxList {
30
- transition: none;
31
- }
32
- }
33
-
34
- .checkboxRow {
35
- padding: var(--osdk-filter-checkbox-row-padding);
36
- border-radius: var(--osdk-filter-checkbox-row-border-radius);
37
-
38
- &:hover {
39
- background: var(--osdk-filter-checkbox-row-bg-hover);
40
- }
41
- }
42
-
43
- .checkboxLabel {
44
- display: flex;
45
- align-items: center;
46
- gap: var(--osdk-filter-checkbox-label-gap);
47
- cursor: pointer;
48
- }
49
-
50
- .valueText {
51
- font-family: var(--osdk-filter-checkbox-value-font-family);
52
- font-size: var(--osdk-filter-checkbox-value-font-size);
53
- line-height: var(--osdk-filter-checkbox-value-line-height);
54
- color: var(--osdk-filter-checkbox-value-color);
55
- overflow: hidden;
56
- text-overflow: ellipsis;
57
- white-space: nowrap;
58
- }
59
-
60
- .colorDot {
61
- width: var(--osdk-filter-checkbox-color-dot-size);
62
- height: var(--osdk-filter-checkbox-color-dot-size);
63
- border-radius: 50%;
64
- flex-shrink: 0;
65
- }
@@ -1,46 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React from "react";
18
- import { SkeletonBar } from "../../../base-components/skeleton/SkeletonBar.js";
19
- import styles from "./CheckboxListSkeleton.module.css";
20
- const SKELETON_ROWS = [{
21
- textWidth: "60%"
22
- }, {
23
- textWidth: "45%"
24
- }, {
25
- textWidth: "70%"
26
- }];
27
- const CHECKBOX_SIZE = "calc(var(--osdk-checkbox-icon-size) + var(--osdk-checkbox-padding) * 2)";
28
- export function CheckboxListSkeleton() {
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: styles.container
31
- }, SKELETON_ROWS.map((row, index) => /*#__PURE__*/React.createElement("div", {
32
- key: index,
33
- className: styles.row
34
- }, /*#__PURE__*/React.createElement(SkeletonBar, {
35
- width: CHECKBOX_SIZE,
36
- height: CHECKBOX_SIZE
37
- }), /*#__PURE__*/React.createElement(SkeletonBar, {
38
- height: "var(--osdk-filter-skeleton-text-height)",
39
- maxWidth: row.textWidth,
40
- className: styles.flexBar
41
- }), /*#__PURE__*/React.createElement(SkeletonBar, {
42
- width: "var(--osdk-filter-skeleton-count-width)",
43
- height: "var(--osdk-filter-skeleton-text-height)"
44
- }))));
45
- }
46
- //# sourceMappingURL=CheckboxListSkeleton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxListSkeleton.js","names":["React","SkeletonBar","styles","SKELETON_ROWS","textWidth","CHECKBOX_SIZE","CheckboxListSkeleton","createElement","className","container","map","row","index","key","width","height","maxWidth","flexBar"],"sources":["CheckboxListSkeleton.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { SkeletonBar } from \"../../../base-components/skeleton/SkeletonBar.js\";\nimport styles from \"./CheckboxListSkeleton.module.css\";\n\nconst SKELETON_ROWS = [\n { textWidth: \"60%\" },\n { textWidth: \"45%\" },\n { textWidth: \"70%\" },\n];\n\nconst CHECKBOX_SIZE =\n \"calc(var(--osdk-checkbox-icon-size) + var(--osdk-checkbox-padding) * 2)\";\n\nexport function CheckboxListSkeleton(): React.ReactElement {\n return (\n <div className={styles.container}>\n {SKELETON_ROWS.map((row, index) => (\n <div key={index} className={styles.row}>\n <SkeletonBar\n width={CHECKBOX_SIZE}\n height={CHECKBOX_SIZE}\n />\n <SkeletonBar\n height=\"var(--osdk-filter-skeleton-text-height)\"\n maxWidth={row.textWidth}\n className={styles.flexBar}\n />\n <SkeletonBar\n width=\"var(--osdk-filter-skeleton-count-width)\"\n height=\"var(--osdk-filter-skeleton-text-height)\"\n />\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,kDAAkD;AAC9E,OAAOC,MAAM,MAAM,mCAAmC;AAEtD,MAAMC,aAAa,GAAG,CACpB;EAAEC,SAAS,EAAE;AAAM,CAAC,EACpB;EAAEA,SAAS,EAAE;AAAM,CAAC,EACpB;EAAEA,SAAS,EAAE;AAAM,CAAC,CACrB;AAED,MAAMC,aAAa,GACjB,yEAAyE;AAE3E,OAAO,SAASC,oBAAoBA,CAAA,EAAuB;EACzD,oBACEN,KAAA,CAAAO,aAAA;IAAKC,SAAS,EAAEN,MAAM,CAACO;EAAU,GAC9BN,aAAa,CAACO,GAAG,CAAC,CAACC,GAAG,EAAEC,KAAK,kBAC5BZ,KAAA,CAAAO,aAAA;IAAKM,GAAG,EAAED,KAAM;IAACJ,SAAS,EAAEN,MAAM,CAACS;EAAI,gBACrCX,KAAA,CAAAO,aAAA,CAACN,WAAW;IACVa,KAAK,EAAET,aAAc;IACrBU,MAAM,EAAEV;EAAc,CACvB,CAAC,eACFL,KAAA,CAAAO,aAAA,CAACN,WAAW;IACVc,MAAM,EAAC,yCAAyC;IAChDC,QAAQ,EAAEL,GAAG,CAACP,SAAU;IACxBI,SAAS,EAAEN,MAAM,CAACe;EAAQ,CAC3B,CAAC,eACFjB,KAAA,CAAAO,aAAA,CAACN,WAAW;IACVa,KAAK,EAAC,yCAAyC;IAC/CC,MAAM,EAAC;EAAyC,CACjD,CACE,CACN,CACE,CAAC;AAEV","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- .container {
18
- display: flex;
19
- flex-direction: column;
20
- gap: var(--osdk-filter-checkbox-list-gap);
21
- }
22
-
23
- .row {
24
- display: flex;
25
- align-items: center;
26
- gap: var(--osdk-filter-checkbox-label-gap);
27
- padding: var(--osdk-filter-checkbox-row-padding);
28
- }
29
-
30
- .flexBar {
31
- flex: 1;
32
- }
@@ -1,66 +0,0 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import React, { memo, useCallback, useMemo } from "react";
18
- import { FilterInputExcludeRow } from "../base/FilterInputExcludeRow.js";
19
- import { CheckboxListInput } from "../base/inputs/CheckboxListInput.js";
20
- import { usePropertyAggregation } from "../hooks/usePropertyAggregation.js";
21
- import { coerceToStringArray } from "../utils/coerceFilterValue.js";
22
- function CheckboxListFilterInputInner({
23
- objectType,
24
- objectSet,
25
- propertyKey,
26
- filterState,
27
- onFilterStateChanged,
28
- whereClause,
29
- colorMap,
30
- searchQuery,
31
- excludeRowOpen
32
- }) {
33
- const selectedValues = useMemo(() => filterState?.type === "SELECT" ? coerceToStringArray(filterState.selectedValues) : [], [filterState]);
34
- const isExcluding = filterState?.isExcluding ?? false;
35
- const handleChange = useCallback(newSelectedValues => {
36
- onFilterStateChanged({
37
- type: "SELECT",
38
- selectedValues: newSelectedValues,
39
- isExcluding
40
- });
41
- }, [onFilterStateChanged, isExcluding]);
42
- const aggregationOptions = useMemo(() => ({
43
- where: whereClause
44
- }), [whereClause]);
45
- const {
46
- data,
47
- isLoading,
48
- error
49
- } = usePropertyAggregation(objectType, propertyKey, objectSet, aggregationOptions);
50
- return /*#__PURE__*/React.createElement(FilterInputExcludeRow, {
51
- excludeRowOpen: excludeRowOpen,
52
- filterState: filterState,
53
- onFilterStateChanged: onFilterStateChanged,
54
- totalValueCount: data.length
55
- }, /*#__PURE__*/React.createElement(CheckboxListInput, {
56
- values: data,
57
- isLoading: isLoading,
58
- error: error,
59
- selectedValues: selectedValues,
60
- onChange: handleChange,
61
- colorMap: colorMap,
62
- searchQuery: searchQuery
63
- }));
64
- }
65
- export const CheckboxListFilterInput = /*#__PURE__*/memo(CheckboxListFilterInputInner);
66
- //# sourceMappingURL=CheckboxListFilterInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxListFilterInput.js","names":["React","memo","useCallback","useMemo","FilterInputExcludeRow","CheckboxListInput","usePropertyAggregation","coerceToStringArray","CheckboxListFilterInputInner","objectType","objectSet","propertyKey","filterState","onFilterStateChanged","whereClause","colorMap","searchQuery","excludeRowOpen","selectedValues","type","isExcluding","handleChange","newSelectedValues","aggregationOptions","where","data","isLoading","error","createElement","totalValueCount","length","values","onChange","CheckboxListFilterInput"],"sources":["CheckboxListFilterInput.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectSet,\n ObjectTypeDefinition,\n PropertyKeys,\n WhereClause,\n} from \"@osdk/api\";\nimport React, { memo, useCallback, useMemo } from \"react\";\nimport { FilterInputExcludeRow } from \"../base/FilterInputExcludeRow.js\";\nimport { CheckboxListInput } from \"../base/inputs/CheckboxListInput.js\";\nimport type { FilterState } from \"../FilterListItemApi.js\";\nimport { usePropertyAggregation } from \"../hooks/usePropertyAggregation.js\";\nimport { coerceToStringArray } from \"../utils/coerceFilterValue.js\";\n\ninterface CheckboxListFilterInputProps<Q extends ObjectTypeDefinition> {\n objectType: Q;\n objectSet: ObjectSet<Q>;\n propertyKey: string;\n filterState: FilterState | undefined;\n onFilterStateChanged: (state: FilterState) => void;\n whereClause: WhereClause<Q>;\n colorMap?: Record<string, string>;\n searchQuery?: string;\n excludeRowOpen?: boolean;\n}\n\nfunction CheckboxListFilterInputInner<Q extends ObjectTypeDefinition>({\n objectType,\n objectSet,\n propertyKey,\n filterState,\n onFilterStateChanged,\n whereClause,\n colorMap,\n searchQuery,\n excludeRowOpen,\n}: CheckboxListFilterInputProps<Q>): React.ReactElement {\n const selectedValues = useMemo(\n () =>\n filterState?.type === \"SELECT\"\n ? coerceToStringArray(filterState.selectedValues)\n : [],\n [filterState],\n );\n const isExcluding = filterState?.isExcluding ?? false;\n\n const handleChange = useCallback(\n (newSelectedValues: string[]) => {\n onFilterStateChanged({\n type: \"SELECT\",\n selectedValues: newSelectedValues,\n isExcluding,\n });\n },\n [onFilterStateChanged, isExcluding],\n );\n\n const aggregationOptions = useMemo(\n () => ({ where: whereClause }),\n [whereClause],\n );\n\n const { data, isLoading, error } = usePropertyAggregation(\n objectType,\n propertyKey as PropertyKeys<Q>,\n objectSet,\n aggregationOptions,\n );\n\n return (\n <FilterInputExcludeRow\n excludeRowOpen={excludeRowOpen}\n filterState={filterState}\n onFilterStateChanged={onFilterStateChanged}\n totalValueCount={data.length}\n >\n <CheckboxListInput\n values={data}\n isLoading={isLoading}\n error={error}\n selectedValues={selectedValues}\n onChange={handleChange}\n colorMap={colorMap}\n searchQuery={searchQuery}\n />\n </FilterInputExcludeRow>\n );\n}\n\nexport const CheckboxListFilterInput: typeof CheckboxListFilterInputInner =\n memo(CheckboxListFilterInputInner) as typeof CheckboxListFilterInputInner;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,qBAAqB,QAAQ,kCAAkC;AACxE,SAASC,iBAAiB,QAAQ,qCAAqC;AAEvE,SAASC,sBAAsB,QAAQ,oCAAoC;AAC3E,SAASC,mBAAmB,QAAQ,+BAA+B;AAcnE,SAASC,4BAA4BA,CAAiC;EACpEC,UAAU;EACVC,SAAS;EACTC,WAAW;EACXC,WAAW;EACXC,oBAAoB;EACpBC,WAAW;EACXC,QAAQ;EACRC,WAAW;EACXC;AAC+B,CAAC,EAAsB;EACtD,MAAMC,cAAc,GAAGf,OAAO,CAC5B,MACES,WAAW,EAAEO,IAAI,KAAK,QAAQ,GAC1BZ,mBAAmB,CAACK,WAAW,CAACM,cAAc,CAAC,GAC/C,EAAE,EACR,CAACN,WAAW,CACd,CAAC;EACD,MAAMQ,WAAW,GAAGR,WAAW,EAAEQ,WAAW,IAAI,KAAK;EAErD,MAAMC,YAAY,GAAGnB,WAAW,CAC7BoB,iBAA2B,IAAK;IAC/BT,oBAAoB,CAAC;MACnBM,IAAI,EAAE,QAAQ;MACdD,cAAc,EAAEI,iBAAiB;MACjCF;IACF,CAAC,CAAC;EACJ,CAAC,EACD,CAACP,oBAAoB,EAAEO,WAAW,CACpC,CAAC;EAED,MAAMG,kBAAkB,GAAGpB,OAAO,CAChC,OAAO;IAAEqB,KAAK,EAAEV;EAAY,CAAC,CAAC,EAC9B,CAACA,WAAW,CACd,CAAC;EAED,MAAM;IAAEW,IAAI;IAAEC,SAAS;IAAEC;EAAM,CAAC,GAAGrB,sBAAsB,CACvDG,UAAU,EACVE,WAAW,EACXD,SAAS,EACTa,kBACF,CAAC;EAED,oBACEvB,KAAA,CAAA4B,aAAA,CAACxB,qBAAqB;IACpBa,cAAc,EAAEA,cAAe;IAC/BL,WAAW,EAAEA,WAAY;IACzBC,oBAAoB,EAAEA,oBAAqB;IAC3CgB,eAAe,EAAEJ,IAAI,CAACK;EAAO,gBAE7B9B,KAAA,CAAA4B,aAAA,CAACvB,iBAAiB;IAChB0B,MAAM,EAAEN,IAAK;IACbC,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEA,KAAM;IACbT,cAAc,EAAEA,cAAe;IAC/Bc,QAAQ,EAAEX,YAAa;IACvBN,QAAQ,EAAEA,QAAS;IACnBC,WAAW,EAAEA;EAAY,CAC1B,CACoB,CAAC;AAE5B;AAEA,OAAO,MAAMiB,uBAA4D,gBACvEhC,IAAI,CAACO,4BAA4B,CAAwC","ignoreList":[]}
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import type { PropertyAggregationValue } from "../../types/AggregationTypes.js";
3
- interface CheckboxListInputProps {
4
- values: PropertyAggregationValue[];
5
- isLoading: boolean;
6
- error: Error | null;
7
- selectedValues: string[];
8
- onChange: (selectedValues: string[]) => void;
9
- colorMap?: Record<string, string>;
10
- searchQuery?: string;
11
- className?: string;
12
- style?: React.CSSProperties;
13
- }
14
- declare function CheckboxListInputInner({ values, isLoading, error, selectedValues, onChange, colorMap, searchQuery, className, style }: CheckboxListInputProps): React.ReactElement;
15
- export declare const CheckboxListInput: typeof CheckboxListInputInner;
16
- export {};
@@ -1 +0,0 @@
1
- {"mappings":"AAiBA,OAAO,WAA2C,OAAQ;AAE1D,cAAc,gCAAgC,iCAAkC;UAOtE,uBAAuB;CAC/B,QAAQ;CACR;CACA,OAAO;CACP;CACA,WAAWA;CACX,WAAW;CACX;CACA;CACA,QAAQ,MAAM;AACf;AAED,iBAAS,uBAAuB,EAC9B,QACA,WACA,OACA,gBACA,UACA,UACA,aACA,WACA,OACuB,EAAtB,yBAAyB,MAAM;AAmFlC,OAAO,cAAM,0BAED","names":["selectedValues: string[]"],"sources":["../../../../../src/filter-list/base/inputs/CheckboxListInput.tsx"],"version":3,"file":"CheckboxListInput.d.ts"}
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export declare function CheckboxListSkeleton(): React.ReactElement;
@@ -1 +0,0 @@
1
- {"mappings":"AAgBA,OAAO,WAAW,OAAQ;AAa1B,OAAO,iBAAS,wBAAwB,MAAM","names":[],"sources":["../../../../../src/filter-list/base/inputs/CheckboxListSkeleton.tsx"],"version":3,"file":"CheckboxListSkeleton.d.ts"}
@@ -1,17 +0,0 @@
1
- import type { ObjectSet, ObjectTypeDefinition, WhereClause } from "@osdk/api";
2
- import React from "react";
3
- import type { FilterState } from "../FilterListItemApi.js";
4
- interface CheckboxListFilterInputProps<Q extends ObjectTypeDefinition> {
5
- objectType: Q;
6
- objectSet: ObjectSet<Q>;
7
- propertyKey: string;
8
- filterState: FilterState | undefined;
9
- onFilterStateChanged: (state: FilterState) => void;
10
- whereClause: WhereClause<Q>;
11
- colorMap?: Record<string, string>;
12
- searchQuery?: string;
13
- excludeRowOpen?: boolean;
14
- }
15
- declare function CheckboxListFilterInputInner<Q extends ObjectTypeDefinition>({ objectType, objectSet, propertyKey, filterState, onFilterStateChanged, whereClause, colorMap, searchQuery, excludeRowOpen }: CheckboxListFilterInputProps<Q>): React.ReactElement;
16
- export declare const CheckboxListFilterInput: typeof CheckboxListFilterInputInner;
17
- export {};
@@ -1 +0,0 @@
1
- {"mappings":"AAgBA,cACE,WACA,sBAEA,mBACK,WAAY;AACnB,OAAO,WAA2C,OAAQ;AAG1D,cAAc,mBAAmB,yBAA0B;UAIjD,6BAA6B,UAAU,sBAAsB;CACrE,YAAY;CACZ,WAAW,UAAU;CACrB;CACA,aAAa;CACb,uBAAuBA,OAAO;CAC9B,aAAa,YAAY;CACzB,WAAW;CACX;CACA;AACD;AAED,iBAAS,6BAA6B,UAAU,sBAAsB,EACpE,YACA,WACA,aACA,aACA,sBACA,aACA,UACA,aACA,gBACgC,EAA/B,6BAA6B,KAAK,MAAM;AAqD3C,OAAO,cAAMC,gCAAgC","names":["state: FilterState","CheckboxListFilterInput: typeof CheckboxListFilterInputInner"],"sources":["../../../../src/filter-list/inputs/CheckboxListFilterInput.tsx"],"version":3,"file":"CheckboxListFilterInput.d.ts"}