@osdk/react-components 0.2.0-beta.16 → 0.2.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +91 -3
- package/build/browser/action-form/ActionForm.js +109 -0
- package/build/browser/action-form/ActionForm.js.map +1 -0
- package/build/browser/action-form/ActionFormApi.js.map +1 -1
- package/build/browser/action-form/BaseForm.js +74 -0
- package/build/browser/action-form/BaseForm.js.map +1 -0
- package/build/browser/action-form/FormFieldApi.js.map +1 -1
- package/build/browser/action-form/fields/FieldBridge.js +45 -0
- package/build/browser/action-form/fields/FieldBridge.js.map +1 -0
- package/build/browser/action-form/fields/FormFieldRenderer.js +68 -0
- package/build/browser/action-form/fields/FormFieldRenderer.js.map +1 -0
- package/build/browser/action-form/fields/TextInputField.js +38 -0
- package/build/browser/action-form/fields/TextInputField.js.map +1 -0
- package/build/browser/action-form/utils/coerceFieldValue.js +93 -0
- package/build/browser/action-form/utils/coerceFieldValue.js.map +1 -0
- package/build/browser/action-form/utils/getDefaultFieldComponent.js +56 -0
- package/build/browser/action-form/utils/getDefaultFieldComponent.js.map +1 -0
- package/build/browser/action-form/utils/getDefaultFieldDefinitions.js +33 -0
- package/build/browser/action-form/utils/getDefaultFieldDefinitions.js.map +1 -0
- package/build/browser/base-components/tooltip/Tooltip.js +91 -0
- package/build/browser/base-components/tooltip/Tooltip.js.map +1 -0
- package/build/browser/base-components/tooltip/Tooltip.module.css +70 -0
- package/build/browser/base-components/tooltip/Tooltip.module.css.js +11 -0
- package/build/browser/base-components/tooltip/index.js +18 -0
- package/build/browser/base-components/tooltip/index.js.map +1 -0
- package/build/browser/filter-list/base/BaseFilterList.js +23 -11
- package/build/browser/filter-list/base/BaseFilterList.js.map +1 -1
- package/build/browser/filter-list/base/FilterIcons.js +48 -13
- package/build/browser/filter-list/base/FilterIcons.js.map +1 -1
- package/build/browser/filter-list/base/FilterList.module.css +57 -13
- package/build/browser/filter-list/base/FilterList.module.css.js +5 -2
- package/build/browser/filter-list/base/FilterListHeader.js +10 -15
- package/build/browser/filter-list/base/FilterListHeader.js.map +1 -1
- package/build/browser/filter-list/base/FilterListHeader.module.css +13 -41
- package/build/browser/filter-list/base/FilterListHeader.module.css.js +1 -4
- package/build/browser/filter-list/hooks/useFilterListState.js +25 -7
- package/build/browser/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/browser/filter-list/utils/assertUnreachable.js +1 -8
- package/build/browser/filter-list/utils/assertUnreachable.js.map +1 -1
- package/build/browser/filter-list/utils/filterStateToWhereClause.js +121 -91
- package/build/browser/filter-list/utils/filterStateToWhereClause.js.map +1 -1
- package/build/browser/object-table/DefaultCellRenderer.js +6 -1
- package/build/browser/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/browser/object-table/EditableCell.js +76 -9
- package/build/browser/object-table/EditableCell.js.map +1 -1
- package/build/browser/object-table/EditableCell.module.css +47 -8
- package/build/browser/object-table/EditableCell.module.css.js +5 -1
- package/build/browser/object-table/MultiColumnSortDialog.js +4 -1
- package/build/browser/object-table/MultiColumnSortDialog.js.map +1 -1
- package/build/browser/object-table/ObjectTable.js +4 -1
- package/build/browser/object-table/ObjectTable.js.map +1 -1
- package/build/browser/object-table/ObjectTableApi.js.map +1 -1
- package/build/browser/object-table/SelectionCells.js +1 -0
- package/build/browser/object-table/SelectionCells.js.map +1 -1
- package/build/browser/object-table/Table.js +2 -2
- package/build/browser/object-table/Table.js.map +1 -1
- package/build/browser/object-table/TableBody.js +1 -1
- package/build/browser/object-table/TableBody.js.map +1 -1
- package/build/browser/object-table/TableEditContainer.js +27 -16
- package/build/browser/object-table/TableEditContainer.js.map +1 -1
- package/build/browser/object-table/TableEditContainer.module.css +27 -0
- package/build/browser/object-table/TableEditContainer.module.css.js +5 -1
- package/build/browser/object-table/TableHeader.js +4 -1
- package/build/browser/object-table/TableHeader.js.map +1 -1
- package/build/browser/object-table/TableHeader.module.css +2 -1
- package/build/browser/object-table/TableHeader.module.css.js +1 -0
- package/build/browser/object-table/TableRow.js +2 -2
- package/build/browser/object-table/TableRow.js.map +1 -1
- package/build/browser/object-table/hooks/useColumnDefs.js +2 -1
- package/build/browser/object-table/hooks/useColumnDefs.js.map +1 -1
- package/build/browser/object-table/hooks/useEditableTable.js +21 -2
- package/build/browser/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/browser/object-table/utils/types.js.map +1 -1
- package/build/browser/shared/assertUnreachable.js +25 -0
- package/build/browser/shared/assertUnreachable.js.map +1 -0
- package/build/browser/shared/typedMemo.js +25 -0
- package/build/browser/shared/typedMemo.js.map +1 -0
- package/build/browser/styles.css +219 -63
- package/build/cjs/public/experimental.cjs +1212 -966
- package/build/cjs/public/experimental.cjs.map +1 -1
- package/build/cjs/public/experimental.css +167 -55
- package/build/cjs/public/experimental.css.map +1 -1
- package/build/cjs/public/experimental.d.cts +18 -4
- package/build/esm/action-form/ActionForm.js +109 -0
- package/build/esm/action-form/ActionForm.js.map +1 -0
- package/build/esm/action-form/ActionFormApi.js.map +1 -1
- package/build/esm/action-form/BaseForm.js +74 -0
- package/build/esm/action-form/BaseForm.js.map +1 -0
- package/build/esm/action-form/FormFieldApi.js.map +1 -1
- package/build/esm/action-form/fields/FieldBridge.js +45 -0
- package/build/esm/action-form/fields/FieldBridge.js.map +1 -0
- package/build/esm/action-form/fields/FormFieldRenderer.js +68 -0
- package/build/esm/action-form/fields/FormFieldRenderer.js.map +1 -0
- package/build/esm/action-form/fields/TextInputField.js +38 -0
- package/build/esm/action-form/fields/TextInputField.js.map +1 -0
- package/build/esm/action-form/utils/coerceFieldValue.js +93 -0
- package/build/esm/action-form/utils/coerceFieldValue.js.map +1 -0
- package/build/esm/action-form/utils/getDefaultFieldComponent.js +56 -0
- package/build/esm/action-form/utils/getDefaultFieldComponent.js.map +1 -0
- package/build/esm/action-form/utils/getDefaultFieldDefinitions.js +33 -0
- package/build/esm/action-form/utils/getDefaultFieldDefinitions.js.map +1 -0
- package/build/esm/base-components/tooltip/Tooltip.js +91 -0
- package/build/esm/base-components/tooltip/Tooltip.js.map +1 -0
- package/build/esm/base-components/tooltip/Tooltip.module.css +70 -0
- package/build/esm/base-components/tooltip/index.js +18 -0
- package/build/esm/base-components/tooltip/index.js.map +1 -0
- package/build/esm/filter-list/base/BaseFilterList.js +23 -11
- package/build/esm/filter-list/base/BaseFilterList.js.map +1 -1
- package/build/esm/filter-list/base/FilterIcons.js +48 -13
- package/build/esm/filter-list/base/FilterIcons.js.map +1 -1
- package/build/esm/filter-list/base/FilterList.module.css +57 -13
- package/build/esm/filter-list/base/FilterListHeader.js +10 -15
- package/build/esm/filter-list/base/FilterListHeader.js.map +1 -1
- package/build/esm/filter-list/base/FilterListHeader.module.css +13 -41
- package/build/esm/filter-list/hooks/useFilterListState.js +25 -7
- package/build/esm/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/esm/filter-list/utils/assertUnreachable.js +1 -8
- package/build/esm/filter-list/utils/assertUnreachable.js.map +1 -1
- package/build/esm/filter-list/utils/filterStateToWhereClause.js +121 -91
- package/build/esm/filter-list/utils/filterStateToWhereClause.js.map +1 -1
- package/build/esm/object-table/DefaultCellRenderer.js +6 -1
- package/build/esm/object-table/DefaultCellRenderer.js.map +1 -1
- package/build/esm/object-table/EditableCell.js +76 -9
- package/build/esm/object-table/EditableCell.js.map +1 -1
- package/build/esm/object-table/EditableCell.module.css +47 -8
- package/build/esm/object-table/MultiColumnSortDialog.js +4 -1
- package/build/esm/object-table/MultiColumnSortDialog.js.map +1 -1
- package/build/esm/object-table/ObjectTable.js +4 -1
- package/build/esm/object-table/ObjectTable.js.map +1 -1
- package/build/esm/object-table/ObjectTableApi.js.map +1 -1
- package/build/esm/object-table/SelectionCells.js +1 -0
- package/build/esm/object-table/SelectionCells.js.map +1 -1
- package/build/esm/object-table/Table.js +2 -2
- package/build/esm/object-table/Table.js.map +1 -1
- package/build/esm/object-table/TableBody.js +1 -1
- package/build/esm/object-table/TableBody.js.map +1 -1
- package/build/esm/object-table/TableEditContainer.js +27 -16
- package/build/esm/object-table/TableEditContainer.js.map +1 -1
- package/build/esm/object-table/TableEditContainer.module.css +27 -0
- package/build/esm/object-table/TableHeader.js +4 -1
- package/build/esm/object-table/TableHeader.js.map +1 -1
- package/build/esm/object-table/TableHeader.module.css +2 -1
- package/build/esm/object-table/TableRow.js +2 -2
- package/build/esm/object-table/TableRow.js.map +1 -1
- package/build/esm/object-table/hooks/useColumnDefs.js +2 -1
- package/build/esm/object-table/hooks/useColumnDefs.js.map +1 -1
- package/build/esm/object-table/hooks/useEditableTable.js +21 -2
- package/build/esm/object-table/hooks/useEditableTable.js.map +1 -1
- package/build/esm/object-table/utils/types.js.map +1 -1
- package/build/esm/shared/assertUnreachable.js +25 -0
- package/build/esm/shared/assertUnreachable.js.map +1 -0
- package/build/esm/shared/typedMemo.js +25 -0
- package/build/esm/shared/typedMemo.js.map +1 -0
- package/build/types/action-form/ActionForm.d.ts +4 -0
- package/build/types/action-form/ActionForm.d.ts.map +1 -0
- package/build/types/action-form/ActionFormApi.d.ts +48 -32
- package/build/types/action-form/ActionFormApi.d.ts.map +1 -1
- package/build/types/action-form/BaseForm.d.ts +3 -0
- package/build/types/action-form/BaseForm.d.ts.map +1 -0
- package/build/types/action-form/FormFieldApi.d.ts +58 -18
- package/build/types/action-form/FormFieldApi.d.ts.map +1 -1
- package/build/types/action-form/fields/FieldBridge.d.ts +9 -0
- package/build/types/action-form/fields/FieldBridge.d.ts.map +1 -0
- package/build/types/action-form/fields/FormFieldRenderer.d.ts +8 -0
- package/build/types/action-form/fields/FormFieldRenderer.d.ts.map +1 -0
- package/build/types/action-form/fields/TextInputField.d.ts +3 -0
- package/build/types/action-form/fields/TextInputField.d.ts.map +1 -0
- package/build/types/action-form/utils/coerceFieldValue.d.ts +10 -0
- package/build/types/action-form/utils/coerceFieldValue.d.ts.map +1 -0
- package/build/types/action-form/utils/getDefaultFieldComponent.d.ts +6 -0
- package/build/types/action-form/utils/getDefaultFieldComponent.d.ts.map +1 -0
- package/build/types/action-form/utils/getDefaultFieldDefinitions.d.ts +6 -0
- package/build/types/action-form/utils/getDefaultFieldDefinitions.d.ts.map +1 -0
- package/build/types/base-components/tooltip/Tooltip.d.ts +31 -0
- package/build/types/base-components/tooltip/Tooltip.d.ts.map +1 -0
- package/build/types/base-components/tooltip/index.d.ts +1 -0
- package/build/types/base-components/tooltip/index.d.ts.map +1 -0
- package/build/types/filter-list/base/BaseFilterList.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterIcons.d.ts +7 -0
- package/build/types/filter-list/base/FilterIcons.d.ts.map +1 -1
- package/build/types/filter-list/base/FilterListHeader.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useFilterListState.d.ts.map +1 -1
- package/build/types/filter-list/utils/assertUnreachable.d.ts +1 -6
- package/build/types/filter-list/utils/assertUnreachable.d.ts.map +1 -1
- package/build/types/filter-list/utils/filterStateToWhereClause.d.ts +5 -1
- package/build/types/filter-list/utils/filterStateToWhereClause.d.ts.map +1 -1
- package/build/types/object-table/EditableCell.d.ts +8 -2
- package/build/types/object-table/EditableCell.d.ts.map +1 -1
- package/build/types/object-table/ObjectTableApi.d.ts +7 -0
- package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
- package/build/types/object-table/Table.d.ts +4 -0
- package/build/types/object-table/Table.d.ts.map +1 -1
- package/build/types/object-table/TableEditContainer.d.ts +1 -1
- package/build/types/object-table/TableEditContainer.d.ts.map +1 -1
- package/build/types/object-table/TableHeader.d.ts.map +1 -1
- package/build/types/object-table/TableRow.d.ts +2 -2
- package/build/types/object-table/TableRow.d.ts.map +1 -1
- package/build/types/object-table/hooks/useEditableTable.d.ts.map +1 -1
- package/build/types/object-table/utils/types.d.ts +7 -4
- package/build/types/object-table/utils/types.d.ts.map +1 -1
- package/build/types/shared/assertUnreachable.d.ts +6 -0
- package/build/types/shared/assertUnreachable.d.ts.map +1 -0
- package/build/types/shared/typedMemo.d.ts +6 -0
- package/build/types/shared/typedMemo.d.ts.map +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputField.js","names":["React","useCallback","TextInputField","value","onChange","placeholder","minLength","maxLength","handleChange","e","target","createElement","type"],"sources":["TextInputField.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, { useCallback } from \"react\";\nimport type { TextInputFieldProps } from \"../FormFieldApi.js\";\n\nexport function TextInputField({\n value,\n onChange,\n placeholder,\n minLength,\n maxLength,\n}: TextInputFieldProps): React.ReactElement {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e.target.value);\n },\n [onChange],\n );\n\n return (\n <input\n type=\"text\"\n value={value}\n onChange={handleChange}\n placeholder={placeholder}\n minLength={minLength}\n maxLength={maxLength}\n data-testid=\"text-input-field\"\n />\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAG1C,OAAO,SAASC,cAAcA,CAAC;EAC7BC,KAAK;EACLC,QAAQ;EACRC,WAAW;EACXC,SAAS;EACTC;AACmB,CAAC,EAAsB;EAC1C,MAAMC,YAAY,GAAGP,WAAW,CAC7BQ,CAAsC,IAAK;IAC1CL,QAAQ,GAAGK,CAAC,CAACC,MAAM,CAACP,KAAK,CAAC;EAC5B,CAAC,EACD,CAACC,QAAQ,CACX,CAAC;EAED,oBACEJ,KAAA,CAAAW,aAAA;IACEC,IAAI,EAAC,MAAM;IACXT,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEI,YAAa;IACvBH,WAAW,EAAEA,WAAY;IACzBC,SAAS,EAAEA,SAAU;IACrBC,SAAS,EAAEA,SAAU;IACrB,eAAY;EAAkB,CAC/B,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* Coerces a raw form field value to match the expected type for the given
|
|
19
|
+
* field type. Returns `undefined` when coercion fails
|
|
20
|
+
* (e.g. non-numeric string for a number field).
|
|
21
|
+
*
|
|
22
|
+
* Complex types (object, objectSet, struct, interface) are passed through
|
|
23
|
+
* unchanged since they cannot be meaningfully coerced.
|
|
24
|
+
*/
|
|
25
|
+
export function coerceFieldValue(parameterType, rawValue) {
|
|
26
|
+
if (rawValue == null) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (parameterType == null) {
|
|
30
|
+
return rawValue;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// TODO: Handle complex object types later
|
|
34
|
+
if (typeof parameterType === "object") {
|
|
35
|
+
return rawValue;
|
|
36
|
+
}
|
|
37
|
+
switch (parameterType) {
|
|
38
|
+
case "string":
|
|
39
|
+
case "marking":
|
|
40
|
+
case "geohash":
|
|
41
|
+
case "geoshape":
|
|
42
|
+
case "objectType":
|
|
43
|
+
return typeof rawValue === "string" ? rawValue : String(rawValue);
|
|
44
|
+
case "integer":
|
|
45
|
+
case "long":
|
|
46
|
+
{
|
|
47
|
+
const maybeNumber = extractNumber(rawValue);
|
|
48
|
+
return maybeNumber != null ? Math.trunc(maybeNumber) : undefined;
|
|
49
|
+
}
|
|
50
|
+
case "double":
|
|
51
|
+
{
|
|
52
|
+
return extractNumber(rawValue);
|
|
53
|
+
}
|
|
54
|
+
case "boolean":
|
|
55
|
+
{
|
|
56
|
+
if (typeof rawValue === "boolean") {
|
|
57
|
+
return rawValue;
|
|
58
|
+
}
|
|
59
|
+
if (rawValue === "true") return true;
|
|
60
|
+
if (rawValue === "false") return false;
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
case "datetime":
|
|
64
|
+
case "timestamp":
|
|
65
|
+
{
|
|
66
|
+
if (typeof rawValue === "string") {
|
|
67
|
+
return Number.isNaN(Date.parse(rawValue)) ? undefined : rawValue;
|
|
68
|
+
}
|
|
69
|
+
if (rawValue instanceof Date) {
|
|
70
|
+
return rawValue.toISOString();
|
|
71
|
+
}
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
case "attachment":
|
|
75
|
+
case "mediaReference":
|
|
76
|
+
return rawValue;
|
|
77
|
+
default:
|
|
78
|
+
return rawValue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function extractNumber(rawValue) {
|
|
82
|
+
if (typeof rawValue === "number") {
|
|
83
|
+
return rawValue;
|
|
84
|
+
}
|
|
85
|
+
if (typeof rawValue === "string") {
|
|
86
|
+
const trimmed = rawValue.trim();
|
|
87
|
+
if (trimmed === "") return undefined;
|
|
88
|
+
const parsed = Number(trimmed);
|
|
89
|
+
return Number.isNaN(parsed) ? undefined : parsed;
|
|
90
|
+
}
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=coerceFieldValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerceFieldValue.js","names":["coerceFieldValue","parameterType","rawValue","undefined","String","maybeNumber","extractNumber","Math","trunc","Number","isNaN","Date","parse","toISOString","trimmed","trim","parsed"],"sources":["coerceFieldValue.ts"],"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 { FieldType } from \"../FormFieldApi.js\";\n\n/**\n * Coerces a raw form field value to match the expected type for the given\n * field type. Returns `undefined` when coercion fails\n * (e.g. non-numeric string for a number field).\n *\n * Complex types (object, objectSet, struct, interface) are passed through\n * unchanged since they cannot be meaningfully coerced.\n */\nexport function coerceFieldValue(\n parameterType: FieldType | undefined,\n rawValue: unknown,\n): unknown {\n if (rawValue == null) {\n return undefined;\n }\n\n if (parameterType == null) {\n return rawValue;\n }\n\n // TODO: Handle complex object types later\n if (typeof parameterType === \"object\") {\n return rawValue;\n }\n\n switch (parameterType) {\n case \"string\":\n case \"marking\":\n case \"geohash\":\n case \"geoshape\":\n case \"objectType\":\n return typeof rawValue === \"string\" ? rawValue : String(rawValue);\n\n case \"integer\":\n case \"long\": {\n const maybeNumber = extractNumber(rawValue);\n return maybeNumber != null ? Math.trunc(maybeNumber) : undefined;\n }\n\n case \"double\": {\n return extractNumber(rawValue);\n }\n\n case \"boolean\": {\n if (typeof rawValue === \"boolean\") {\n return rawValue;\n }\n if (rawValue === \"true\") return true;\n if (rawValue === \"false\") return false;\n return undefined;\n }\n\n case \"datetime\":\n case \"timestamp\": {\n if (typeof rawValue === \"string\") {\n return Number.isNaN(Date.parse(rawValue)) ? undefined : rawValue;\n }\n if (rawValue instanceof Date) {\n return rawValue.toISOString();\n }\n return undefined;\n }\n\n case \"attachment\":\n case \"mediaReference\":\n return rawValue;\n\n default:\n return rawValue;\n }\n}\n\nfunction extractNumber(rawValue: unknown): number | undefined {\n if (typeof rawValue === \"number\") {\n return rawValue;\n }\n if (typeof rawValue === \"string\") {\n const trimmed = rawValue.trim();\n if (trimmed === \"\") return undefined;\n const parsed = Number(trimmed);\n return Number.isNaN(parsed) ? undefined : parsed;\n }\n return undefined;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAC9BC,aAAoC,EACpCC,QAAiB,EACR;EACT,IAAIA,QAAQ,IAAI,IAAI,EAAE;IACpB,OAAOC,SAAS;EAClB;EAEA,IAAIF,aAAa,IAAI,IAAI,EAAE;IACzB,OAAOC,QAAQ;EACjB;;EAEA;EACA,IAAI,OAAOD,aAAa,KAAK,QAAQ,EAAE;IACrC,OAAOC,QAAQ;EACjB;EAEA,QAAQD,aAAa;IACnB,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,SAAS;IACd,KAAK,UAAU;IACf,KAAK,YAAY;MACf,OAAO,OAAOC,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAGE,MAAM,CAACF,QAAQ,CAAC;IAEnE,KAAK,SAAS;IACd,KAAK,MAAM;MAAE;QACX,MAAMG,WAAW,GAAGC,aAAa,CAACJ,QAAQ,CAAC;QAC3C,OAAOG,WAAW,IAAI,IAAI,GAAGE,IAAI,CAACC,KAAK,CAACH,WAAW,CAAC,GAAGF,SAAS;MAClE;IAEA,KAAK,QAAQ;MAAE;QACb,OAAOG,aAAa,CAAC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(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 { assertUnreachable } from "../../shared/assertUnreachable.js";
|
|
18
|
+
/**
|
|
19
|
+
* Maps an ActionMetadata parameter type to the default FieldComponent.
|
|
20
|
+
*/
|
|
21
|
+
export function getDefaultFieldComponent(paramType) {
|
|
22
|
+
if (typeof paramType === "object") {
|
|
23
|
+
switch (paramType.type) {
|
|
24
|
+
case "objectSet":
|
|
25
|
+
return "OBJECT_SET";
|
|
26
|
+
case "object":
|
|
27
|
+
case "interface":
|
|
28
|
+
return "DROPDOWN";
|
|
29
|
+
case "struct":
|
|
30
|
+
return "TEXT_INPUT";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
switch (paramType) {
|
|
34
|
+
case "string":
|
|
35
|
+
case "marking":
|
|
36
|
+
case "geohash":
|
|
37
|
+
case "geoshape":
|
|
38
|
+
case "objectType":
|
|
39
|
+
return "TEXT_INPUT";
|
|
40
|
+
case "boolean":
|
|
41
|
+
return "DROPDOWN";
|
|
42
|
+
case "integer":
|
|
43
|
+
case "double":
|
|
44
|
+
case "long":
|
|
45
|
+
return "NUMBER_INPUT";
|
|
46
|
+
case "datetime":
|
|
47
|
+
case "timestamp":
|
|
48
|
+
return "DATETIME_PICKER";
|
|
49
|
+
case "attachment":
|
|
50
|
+
case "mediaReference":
|
|
51
|
+
return "FILE_PICKER";
|
|
52
|
+
default:
|
|
53
|
+
return assertUnreachable(paramType);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=getDefaultFieldComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultFieldComponent.js","names":["assertUnreachable","getDefaultFieldComponent","paramType","type"],"sources":["getDefaultFieldComponent.ts"],"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 { ActionMetadata } from \"@osdk/api\";\nimport { assertUnreachable } from \"../../shared/assertUnreachable.js\";\nimport type { FieldComponent } from \"../FormFieldApi.js\";\n\n/**\n * Maps an ActionMetadata parameter type to the default FieldComponent.\n */\nexport function getDefaultFieldComponent(\n paramType: ActionMetadata.Parameter[\"type\"],\n): FieldComponent {\n if (typeof paramType === \"object\") {\n switch (paramType.type) {\n case \"objectSet\":\n return \"OBJECT_SET\";\n case \"object\":\n case \"interface\":\n return \"DROPDOWN\";\n case \"struct\":\n return \"TEXT_INPUT\";\n }\n }\n\n switch (paramType) {\n case \"string\":\n case \"marking\":\n case \"geohash\":\n case \"geoshape\":\n case \"objectType\":\n return \"TEXT_INPUT\";\n case \"boolean\":\n return \"DROPDOWN\";\n case \"integer\":\n case \"double\":\n case \"long\":\n return \"NUMBER_INPUT\";\n case \"datetime\":\n case \"timestamp\":\n return \"DATETIME_PICKER\";\n case \"attachment\":\n case \"mediaReference\":\n return \"FILE_PICKER\";\n default:\n return assertUnreachable(paramType);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,iBAAiB,QAAQ,mCAAmC;AAGrE;AACA;AACA;AACA,OAAO,SAASC,wBAAwBA,CACtCC,SAA2C,EAC3B;EAChB,IAAI,OAAOA,SAAS,KAAK,QAAQ,EAAE;IACjC,QAAQA,SAAS,CAACC,IAAI;MACpB,KAAK,WAAW;QACd,OAAO,YAAY;MACrB,KAAK,QAAQ;MACb,KAAK,WAAW;QACd,OAAO,UAAU;MACnB,KAAK,QAAQ;QACX,OAAO,YAAY;IACvB;EACF;EAEA,QAAQD,SAAS;IACf,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,SAAS;IACd,KAAK,UAAU;IACf,KAAK,YAAY;MACf,OAAO,YAAY;IACrB,KAAK,SAAS;MACZ,OAAO,UAAU;IACnB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,MAAM;MACT,OAAO,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,WAAW;MACd,OAAO,iBAAiB;IAC1B,KAAK,YAAY;IACjB,KAAK,gBAAgB;MACnB,OAAO,aAAa;IACtB;MACE,OAAOF,iBAAiB,CAACE,SAAS,CAAC;EACvC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { getDefaultFieldComponent } from "./getDefaultFieldComponent.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Derives default field definitions from fetched ActionMetadata.
|
|
21
|
+
*/
|
|
22
|
+
export function getDefaultFieldDefinitions(metadata) {
|
|
23
|
+
return Object.entries(metadata.parameters).map(([key, param]) => ({
|
|
24
|
+
// Object.entries erases key types; assertion bridges runtime string to FieldKey<Q>
|
|
25
|
+
fieldKey: key,
|
|
26
|
+
label: key,
|
|
27
|
+
// getDefaultFieldComponent returns FieldComponent (full union); TS can't verify
|
|
28
|
+
// it matches ValidFormFieldForPropertyType for a deferred generic Q
|
|
29
|
+
fieldComponent: getDefaultFieldComponent(param.type),
|
|
30
|
+
isRequired: !param.nullable
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=getDefaultFieldDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultFieldDefinitions.js","names":["getDefaultFieldComponent","getDefaultFieldDefinitions","metadata","Object","entries","parameters","map","key","param","fieldKey","label","fieldComponent","type","isRequired","nullable"],"sources":["getDefaultFieldDefinitions.ts"],"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 { ActionDefinition, ActionMetadata } from \"@osdk/api\";\nimport type {\n ActionParameters,\n FieldDescriptorType,\n FieldKey,\n FormFieldDefinition,\n ValidFormFieldForPropertyType,\n} from \"../FormFieldApi.js\";\nimport { getDefaultFieldComponent } from \"./getDefaultFieldComponent.js\";\n\n/**\n * Derives default field definitions from fetched ActionMetadata.\n */\nexport function getDefaultFieldDefinitions<\n Q extends ActionDefinition<unknown>,\n>(metadata: ActionMetadata): ReadonlyArray<FormFieldDefinition<Q>> {\n return Object.entries(metadata.parameters).map(([key, param]) => ({\n // Object.entries erases key types; assertion bridges runtime string to FieldKey<Q>\n fieldKey: key as FieldKey<Q>,\n label: key,\n // getDefaultFieldComponent returns FieldComponent (full union); TS can't verify\n // it matches ValidFormFieldForPropertyType for a deferred generic Q\n fieldComponent: getDefaultFieldComponent(\n param.type,\n ) as ValidFormFieldForPropertyType<\n FieldDescriptorType<Q, keyof ActionParameters<Q>>\n >,\n isRequired: !param.nullable,\n }));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,SAASA,wBAAwB,QAAQ,+BAA+B;;AAExE;AACA;AACA;AACA,OAAO,SAASC,0BAA0BA,CAExCC,QAAwB,EAAyC;EACjE,OAAOC,MAAM,CAACC,OAAO,CAACF,QAAQ,CAACG,UAAU,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,MAAM;IAChE;IACAC,QAAQ,EAAEF,GAAkB;IAC5BG,KAAK,EAAEH,GAAG;IACV;IACA;IACAI,cAAc,EAAEX,wBAAwB,CACtCQ,KAAK,CAACI,IACR,CAEC;IACDC,UAAU,EAAE,CAACL,KAAK,CAACM;EACrB,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { Tooltip as BaseUITooltip } from "@base-ui/react/tooltip";
|
|
19
|
+
import classnames from "classnames";
|
|
20
|
+
import React from "react";
|
|
21
|
+
import styles from "./Tooltip.module.css.js";
|
|
22
|
+
function TooltipRoot({
|
|
23
|
+
children,
|
|
24
|
+
...rest
|
|
25
|
+
}) {
|
|
26
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Root, rest, children);
|
|
27
|
+
}
|
|
28
|
+
function TooltipProvider({
|
|
29
|
+
children,
|
|
30
|
+
...rest
|
|
31
|
+
}) {
|
|
32
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Provider, rest, children);
|
|
33
|
+
}
|
|
34
|
+
function TooltipTrigger({
|
|
35
|
+
className,
|
|
36
|
+
children,
|
|
37
|
+
...rest
|
|
38
|
+
}) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Trigger, _extends({
|
|
40
|
+
className: classnames(styles.osdkTooltipTrigger, className)
|
|
41
|
+
}, rest), children);
|
|
42
|
+
}
|
|
43
|
+
function TooltipPositioner({
|
|
44
|
+
className,
|
|
45
|
+
children,
|
|
46
|
+
sideOffset = 4,
|
|
47
|
+
...rest
|
|
48
|
+
}) {
|
|
49
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Positioner, _extends({
|
|
50
|
+
className: classnames(styles.osdkTooltipPositioner, className),
|
|
51
|
+
sideOffset: sideOffset
|
|
52
|
+
}, rest), children);
|
|
53
|
+
}
|
|
54
|
+
function TooltipPopup({
|
|
55
|
+
className,
|
|
56
|
+
children,
|
|
57
|
+
...rest
|
|
58
|
+
}) {
|
|
59
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Popup, _extends({
|
|
60
|
+
className: classnames(styles.osdkTooltipPopup, className)
|
|
61
|
+
}, rest), children);
|
|
62
|
+
}
|
|
63
|
+
export function TooltipArrow() {
|
|
64
|
+
return /*#__PURE__*/React.createElement(BaseUITooltip.Arrow, {
|
|
65
|
+
className: styles.osdkTooltipArrow
|
|
66
|
+
}, /*#__PURE__*/React.createElement(ArrowSvg, null));
|
|
67
|
+
}
|
|
68
|
+
function ArrowSvg(props) {
|
|
69
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
70
|
+
width: "20",
|
|
71
|
+
height: "10",
|
|
72
|
+
viewBox: "0 0 20 10",
|
|
73
|
+
fill: "none"
|
|
74
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
75
|
+
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
76
|
+
className: styles.tooltipArrowFill
|
|
77
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
78
|
+
d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
|
|
79
|
+
className: styles.tooltipArrowOuterStroke
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
export const Tooltip = {
|
|
83
|
+
Root: TooltipRoot,
|
|
84
|
+
Provider: TooltipProvider,
|
|
85
|
+
Trigger: TooltipTrigger,
|
|
86
|
+
Portal: BaseUITooltip.Portal,
|
|
87
|
+
Positioner: TooltipPositioner,
|
|
88
|
+
Popup: TooltipPopup,
|
|
89
|
+
Arrow: TooltipArrow
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":["Tooltip","BaseUITooltip","classnames","React","styles","TooltipRoot","children","rest","createElement","Root","TooltipProvider","Provider","TooltipTrigger","className","Trigger","_extends","osdkTooltipTrigger","TooltipPositioner","sideOffset","Positioner","osdkTooltipPositioner","TooltipPopup","Popup","osdkTooltipPopup","TooltipArrow","Arrow","osdkTooltipArrow","ArrowSvg","props","width","height","viewBox","fill","d","tooltipArrowFill","tooltipArrowOuterStroke","Portal"],"sources":["Tooltip.tsx"],"sourcesContent":["/*\n * Copyright 2026 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 {\n Tooltip as BaseUITooltip,\n type TooltipPopupProps,\n type TooltipPositionerProps,\n type TooltipProviderProps,\n type TooltipRootProps,\n type TooltipTriggerProps,\n} from \"@base-ui/react/tooltip\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./Tooltip.module.css\";\n\nexport interface TooltipProps extends Omit<TooltipRootProps, \"className\"> {}\n\nfunction TooltipRoot({\n children,\n ...rest\n}: TooltipProps): React.ReactElement {\n return (\n <BaseUITooltip.Root {...rest}>\n {children}\n </BaseUITooltip.Root>\n );\n}\n\ninterface TooltipProviderComponentProps\n extends Omit<TooltipProviderProps, \"className\">\n{\n className?: string;\n}\n\nfunction TooltipProvider({\n children,\n ...rest\n}: TooltipProviderComponentProps): React.ReactElement {\n return (\n <BaseUITooltip.Provider\n {...rest}\n >\n {children}\n </BaseUITooltip.Provider>\n );\n}\n\ninterface TooltipTriggerComponentProps\n extends Omit<TooltipTriggerProps, \"className\">\n{\n className?: string;\n}\n\nfunction TooltipTrigger({\n className,\n children,\n ...rest\n}: TooltipTriggerComponentProps): React.ReactElement {\n return (\n <BaseUITooltip.Trigger\n className={classnames(styles.osdkTooltipTrigger, className)}\n {...rest}\n >\n {children}\n </BaseUITooltip.Trigger>\n );\n}\n\ninterface TooltipPositionerComponentProps\n extends Omit<TooltipPositionerProps, \"className\">\n{\n className?: string;\n}\n\nfunction TooltipPositioner({\n className,\n children,\n sideOffset = 4,\n ...rest\n}: TooltipPositionerComponentProps): React.ReactElement {\n return (\n <BaseUITooltip.Positioner\n className={classnames(styles.osdkTooltipPositioner, className)}\n sideOffset={sideOffset}\n {...rest}\n >\n {children}\n </BaseUITooltip.Positioner>\n );\n}\n\ninterface TooltipPopupComponentProps\n extends Omit<TooltipPopupProps, \"className\">\n{\n className?: string;\n}\n\nfunction TooltipPopup({\n className,\n children,\n ...rest\n}: TooltipPopupComponentProps): React.ReactElement {\n return (\n <BaseUITooltip.Popup\n className={classnames(styles.osdkTooltipPopup, className)}\n {...rest}\n >\n {children}\n </BaseUITooltip.Popup>\n );\n}\n\nexport function TooltipArrow(): React.ReactElement {\n return (\n <BaseUITooltip.Arrow className={styles.osdkTooltipArrow}>\n <ArrowSvg />\n </BaseUITooltip.Arrow>\n );\n}\n\nfunction ArrowSvg(props: React.ComponentProps<\"svg\">) {\n return (\n <svg width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\" {...props}>\n <path\n d=\"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z\"\n className={styles.tooltipArrowFill}\n />\n <path\n d=\"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z\"\n className={styles.tooltipArrowOuterStroke}\n />\n </svg>\n );\n}\n\nexport const Tooltip: {\n Root: typeof TooltipRoot;\n Provider: typeof TooltipProvider;\n Trigger: typeof TooltipTrigger;\n Portal: typeof BaseUITooltip.Portal;\n Positioner: typeof TooltipPositioner;\n Popup: typeof TooltipPopup;\n Arrow: typeof TooltipArrow;\n} = {\n Root: TooltipRoot,\n Provider: TooltipProvider,\n Trigger: TooltipTrigger,\n Portal: BaseUITooltip.Portal,\n Positioner: TooltipPositioner,\n Popup: TooltipPopup,\n Arrow: TooltipArrow,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,OAAO,IAAIC,aAAa,QAMnB,wBAAwB;AAC/B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,sBAAsB;AAIzC,SAASC,WAAWA,CAAC;EACnBC,QAAQ;EACR,GAAGC;AACS,CAAC,EAAsB;EACnC,oBACEJ,KAAA,CAAAK,aAAA,CAACP,aAAa,CAACQ,IAAI,EAAKF,IAAI,EACzBD,QACiB,CAAC;AAEzB;AAQA,SAASI,eAAeA,CAAC;EACvBJ,QAAQ;EACR,GAAGC;AAC0B,CAAC,EAAsB;EACpD,oBACEJ,KAAA,CAAAK,aAAA,CAACP,aAAa,CAACU,QAAQ,EACjBJ,IAAI,EAEPD,QACqB,CA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AW;IAACC,IAAI,EAAC;EAAM,GAAKJ,KAAK,gBACnEzB,KAAA,CAAAK,aAAA;IACEyB,CAAC,EAAC,iMAAiM;IACnMpB,SAAS,EAAET,MAAM,CAAC8B;EAAiB,CACpC,CAAC,eACF/B,KAAA,CAAAK,aAAA;IACEyB,CAAC,EAAC,kSAAkS;IACpSpB,SAAS,EAAET,MAAM,CAAC+B;EAAwB,CAC3C,CACE,CAAC;AAEV;AAEA,OAAO,MAAMnC,OAQZ,GAAG;EACFS,IAAI,EAAEJ,WAAW;EACjBM,QAAQ,EAAED,eAAe;EACzBI,OAAO,EAAEF,cAAc;EACvBwB,MAAM,EAAEnC,aAAa,CAACmC,MAAM;EAC5BjB,UAAU,EAAEF,iBAAiB;EAC7BK,KAAK,EAAED,YAAY;EACnBI,KAAK,EAAED;AACT,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 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
|
+
.osdkTooltipTrigger {
|
|
18
|
+
border: none;
|
|
19
|
+
background: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.osdkTooltipPositioner {
|
|
23
|
+
z-index: var(--osdk-tooltip-z-index);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.osdkTooltipPopup {
|
|
27
|
+
padding: var(--osdk-tooltip-padding);
|
|
28
|
+
background-color: var(--osdk-tooltip-bg);
|
|
29
|
+
border-radius: var(--osdk-surface-border-radius);
|
|
30
|
+
box-shadow: var(--osdk-tooltip-shadow);
|
|
31
|
+
max-width: var(--osdk-tooltip-max-width);
|
|
32
|
+
font-size: var(--osdk-tooltip-font-size);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Hardcoded values are copied from base ui example
|
|
37
|
+
* https://base-ui.com/react/components/tooltip
|
|
38
|
+
*
|
|
39
|
+
* */
|
|
40
|
+
.osdkTooltipArrow {
|
|
41
|
+
display: flex;
|
|
42
|
+
|
|
43
|
+
&[data-side="top"] {
|
|
44
|
+
bottom: -8px;
|
|
45
|
+
rotate: 180deg;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-side="bottom"] {
|
|
49
|
+
top: -8px;
|
|
50
|
+
rotate: 0deg;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-side="left"] {
|
|
54
|
+
right: -13px;
|
|
55
|
+
rotate: 90deg;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-side="right"] {
|
|
59
|
+
left: -13px;
|
|
60
|
+
rotate: -90deg;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tooltipArrowFill {
|
|
65
|
+
fill: var(--osdk-tooltip-bg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tooltipArrowOuterStroke {
|
|
69
|
+
fill: var(--osdk-tooltip-border-color);
|
|
70
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// CSS Module proxy for Tooltip.module.css
|
|
2
|
+
const styles = {
|
|
3
|
+
"osdkTooltipTrigger": "Tooltip-module__osdkTooltipTrigger___KY5Ck6WI",
|
|
4
|
+
"osdkTooltipPositioner": "Tooltip-module__osdkTooltipPositioner___3DC1bpvr",
|
|
5
|
+
"osdkTooltipPopup": "Tooltip-module__osdkTooltipPopup___QgGaKttX",
|
|
6
|
+
"osdkTooltipArrow": "Tooltip-module__osdkTooltipArrow___42KD-Edu",
|
|
7
|
+
"tooltipArrowFill": "Tooltip-module__tooltipArrowFill___4DZeMWmZ",
|
|
8
|
+
"tooltipArrowOuterStroke": "Tooltip-module__tooltipArrowOuterStroke___ATRD8XzR"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default styles;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 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
|
+
export { Tooltip, TooltipArrow } from "./Tooltip.js";
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Tooltip","TooltipArrow"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2026 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\nexport { Tooltip, TooltipArrow, type TooltipProps } from \"./Tooltip.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,EAAEC,YAAY,QAA2B,cAAc","ignoreList":[]}
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { Button } from "@base-ui/react/button";
|
|
18
18
|
import classnames from "classnames";
|
|
19
|
-
import React from "react";
|
|
19
|
+
import React, { useCallback } from "react";
|
|
20
|
+
import { ExpandIcon } from "./FilterIcons.js";
|
|
20
21
|
import styles from "./FilterList.module.css.js";
|
|
21
22
|
import { FilterListContent } from "./FilterListContent.js";
|
|
22
23
|
import { FilterListHeader } from "./FilterListHeader.js";
|
|
@@ -42,8 +43,23 @@ export function BaseFilterList(props) {
|
|
|
42
43
|
className,
|
|
43
44
|
renderAddFilterButton
|
|
44
45
|
} = props;
|
|
46
|
+
const handleExpand = useCallback(() => {
|
|
47
|
+
onCollapsedChange?.(false);
|
|
48
|
+
}, [onCollapsedChange]);
|
|
49
|
+
const isCollapsed = collapsed && onCollapsedChange != null;
|
|
45
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: classnames(styles.filterList, className)
|
|
51
|
+
className: classnames(styles.filterList, className)
|
|
52
|
+
}, isCollapsed && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: styles.filterListCollapsed,
|
|
54
|
+
"data-collapsed": "true"
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
56
|
+
className: styles.expandButton,
|
|
57
|
+
onClick: handleExpand,
|
|
58
|
+
"aria-label": "Expand filters"
|
|
59
|
+
}, /*#__PURE__*/React.createElement(ExpandIcon, null)), /*#__PURE__*/React.createElement("span", {
|
|
60
|
+
className: styles.collapsedLabel
|
|
61
|
+
}, title ?? "Filters")), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: classnames(styles.expandedContent, isCollapsed && styles.hiddenContent),
|
|
47
63
|
"data-active-count": activeFilterCount
|
|
48
64
|
}, (title || titleIcon || showResetButton || showActiveFilterCount || onCollapsedChange) && /*#__PURE__*/React.createElement(FilterListHeader, {
|
|
49
65
|
title: title,
|
|
@@ -54,12 +70,7 @@ export function BaseFilterList(props) {
|
|
|
54
70
|
onReset: onReset,
|
|
55
71
|
showActiveFilterCount: showActiveFilterCount,
|
|
56
72
|
activeFilterCount: activeFilterCount
|
|
57
|
-
}), /*#__PURE__*/React.createElement(
|
|
58
|
-
className: styles.contentWrapper,
|
|
59
|
-
"data-collapsed": collapsed
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: styles.contentInner
|
|
62
|
-
}, /*#__PURE__*/React.createElement(FilterListContent, {
|
|
73
|
+
}), /*#__PURE__*/React.createElement(FilterListContent, {
|
|
63
74
|
filterDefinitions: filterDefinitions,
|
|
64
75
|
filterStates: filterStates,
|
|
65
76
|
onFilterStateChanged: onFilterStateChanged,
|
|
@@ -68,11 +79,12 @@ export function BaseFilterList(props) {
|
|
|
68
79
|
getFilterKey: getFilterKey,
|
|
69
80
|
getFilterLabel: getFilterLabel,
|
|
70
81
|
enableSorting: enableSorting
|
|
71
|
-
})
|
|
82
|
+
}), (renderAddFilterButton != null || onFilterAdded != null) && /*#__PURE__*/React.createElement("div", {
|
|
72
83
|
className: styles.addButtonContainer
|
|
73
84
|
}, renderAddFilterButton ? renderAddFilterButton() : /*#__PURE__*/React.createElement(Button, {
|
|
74
85
|
type: "button",
|
|
75
|
-
className: styles.addButton
|
|
76
|
-
|
|
86
|
+
className: styles.addButton,
|
|
87
|
+
onClick: onFilterAdded
|
|
88
|
+
}, "+ Add filter"))));
|
|
77
89
|
}
|
|
78
90
|
//# sourceMappingURL=BaseFilterList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseFilterList.js","names":["Button","classnames","React","styles","FilterListContent","FilterListHeader","BaseFilterList","props","title","titleIcon","collapsed","onCollapsedChange","filterDefinitions","filterStates","onFilterStateChanged","renderInput","getFilterKey","getFilterLabel","activeFilterCount","onReset","onFilterAdded","onFilterRemoved","showResetButton","showActiveFilterCount","enableSorting","className","renderAddFilterButton","createElement","filterList","
|
|
1
|
+
{"version":3,"file":"BaseFilterList.js","names":["Button","classnames","React","useCallback","ExpandIcon","styles","FilterListContent","FilterListHeader","BaseFilterList","props","title","titleIcon","collapsed","onCollapsedChange","filterDefinitions","filterStates","onFilterStateChanged","renderInput","getFilterKey","getFilterLabel","activeFilterCount","onReset","onFilterAdded","onFilterRemoved","showResetButton","showActiveFilterCount","enableSorting","className","renderAddFilterButton","handleExpand","isCollapsed","createElement","filterList","filterListCollapsed","expandButton","onClick","collapsedLabel","expandedContent","hiddenContent","addButtonContainer","type","addButton"],"sources":["BaseFilterList.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 { Button } from \"@base-ui/react/button\";\nimport classnames from \"classnames\";\nimport React, { useCallback } from \"react\";\nimport type { BaseFilterListProps } from \"./BaseFilterListApi.js\";\nimport { ExpandIcon } from \"./FilterIcons.js\";\nimport styles from \"./FilterList.module.css\";\nimport { FilterListContent } from \"./FilterListContent.js\";\nimport { FilterListHeader } from \"./FilterListHeader.js\";\n\nexport function BaseFilterList<D>(\n props: BaseFilterListProps<D>,\n): React.ReactElement {\n const {\n title,\n titleIcon,\n collapsed = false,\n onCollapsedChange,\n filterDefinitions,\n filterStates,\n onFilterStateChanged,\n renderInput,\n getFilterKey,\n getFilterLabel,\n activeFilterCount,\n onReset,\n onFilterAdded,\n onFilterRemoved,\n showResetButton = false,\n showActiveFilterCount = false,\n enableSorting,\n className,\n renderAddFilterButton,\n } = props;\n\n const showHeader = title || titleIcon || showResetButton\n || showActiveFilterCount || onCollapsedChange;\n\n const showAddButton = renderAddFilterButton != null || onFilterAdded != null;\n\n const handleExpand = useCallback(() => {\n onCollapsedChange?.(false);\n }, [onCollapsedChange]);\n\n const isCollapsed = collapsed && onCollapsedChange != null;\n\n return (\n <div className={classnames(styles.filterList, className)}>\n {isCollapsed && (\n <div\n className={styles.filterListCollapsed}\n data-collapsed=\"true\"\n >\n <Button\n className={styles.expandButton}\n onClick={handleExpand}\n aria-label=\"Expand filters\"\n >\n <ExpandIcon />\n </Button>\n <span className={styles.collapsedLabel}>{title ?? \"Filters\"}</span>\n </div>\n )}\n <div\n className={classnames(\n styles.expandedContent,\n isCollapsed && styles.hiddenContent,\n )}\n data-active-count={activeFilterCount}\n >\n {showHeader && (\n <FilterListHeader\n title={title}\n titleIcon={titleIcon}\n collapsed={collapsed}\n onCollapsedChange={onCollapsedChange}\n showResetButton={showResetButton}\n onReset={onReset}\n showActiveFilterCount={showActiveFilterCount}\n activeFilterCount={activeFilterCount}\n />\n )}\n\n <FilterListContent\n filterDefinitions={filterDefinitions}\n filterStates={filterStates}\n onFilterStateChanged={onFilterStateChanged}\n onFilterRemoved={onFilterRemoved}\n renderInput={renderInput}\n getFilterKey={getFilterKey}\n getFilterLabel={getFilterLabel}\n enableSorting={enableSorting}\n />\n\n {showAddButton && (\n <div className={styles.addButtonContainer}>\n {renderAddFilterButton\n ? renderAddFilterButton()\n : (\n <Button\n type=\"button\"\n className={styles.addButton}\n onClick={onFilterAdded}\n >\n + Add filter\n </Button>\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA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ACF,CAAC;AAEV","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Palantir Technologies, Inc. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { ChevronDown, Cross, DoubleChevronLeft, DoubleChevronRight, More, Search, Tick, Undo } from "@blueprintjs/icons";
|
|
17
18
|
import React from "react";
|
|
18
19
|
export function IncludeIcon() {
|
|
19
20
|
return /*#__PURE__*/React.createElement("svg", {
|
|
@@ -47,17 +48,51 @@ export function ExcludeIcon() {
|
|
|
47
48
|
}));
|
|
48
49
|
}
|
|
49
50
|
export function RemoveIcon() {
|
|
50
|
-
return /*#__PURE__*/React.createElement(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
return /*#__PURE__*/React.createElement(Cross, {
|
|
52
|
+
color: "currentColor",
|
|
53
|
+
size: 14
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export function SearchIcon() {
|
|
57
|
+
return /*#__PURE__*/React.createElement(Search, {
|
|
58
|
+
color: "currentColor",
|
|
59
|
+
size: 14
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
export function OverflowMenuIcon() {
|
|
63
|
+
return /*#__PURE__*/React.createElement(More, {
|
|
64
|
+
color: "currentColor",
|
|
65
|
+
size: 14
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function ChevronDownIcon() {
|
|
69
|
+
return /*#__PURE__*/React.createElement(ChevronDown, {
|
|
70
|
+
color: "currentColor",
|
|
71
|
+
size: 10
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export function CollapseIcon() {
|
|
75
|
+
return /*#__PURE__*/React.createElement(DoubleChevronLeft, {
|
|
76
|
+
color: "currentColor",
|
|
77
|
+
size: 14
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export function ExpandIcon() {
|
|
81
|
+
return /*#__PURE__*/React.createElement(DoubleChevronRight, {
|
|
82
|
+
color: "currentColor",
|
|
83
|
+
size: 14
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
export function ResetIcon() {
|
|
87
|
+
return /*#__PURE__*/React.createElement(Undo, {
|
|
88
|
+
color: "currentColor",
|
|
89
|
+
size: 14
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
export function CheckIcon() {
|
|
93
|
+
return /*#__PURE__*/React.createElement(Tick, {
|
|
94
|
+
color: "currentColor",
|
|
95
|
+
size: 12
|
|
96
|
+
});
|
|
62
97
|
}
|
|
63
98
|
//# sourceMappingURL=FilterIcons.js.map
|