@osdk/react-components 0.54.0 → 0.55.0-main-caff0c0ea39b54fba6782b0f2a1514f491afa4c1
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 +8 -0
- package/build/browser/filter-list/FilterList.js.map +1 -1
- package/build/browser/filter-list/FilterListApi.js.map +1 -1
- package/build/browser/filter-list/hooks/useFilterListState.js +92 -16
- package/build/browser/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/browser/filter-list/types/LinkedFilterTypes.js.map +1 -1
- package/build/browser/object-table/ObjectTableApi.js.map +1 -1
- package/build/browser/public/experimental/filter-list.js.map +1 -1
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/chunk-4OB3E6KJ.cjs +11 -0
- package/build/cjs/{chunk-D2XXXPH6.cjs.map → chunk-4OB3E6KJ.cjs.map} +1 -1
- package/build/cjs/chunk-C4M2S3UN.cjs +11 -0
- package/build/cjs/{chunk-EYGD2H45.cjs.map → chunk-C4M2S3UN.cjs.map} +1 -1
- package/build/cjs/chunk-DRCXFM73.cjs +11 -0
- package/build/cjs/{chunk-LJLLTHYK.cjs.map → chunk-DRCXFM73.cjs.map} +1 -1
- package/build/cjs/{chunk-HWY2YSBD.cjs → chunk-GL2UPD5Q.cjs} +4 -4
- package/build/cjs/{chunk-HWY2YSBD.cjs.map → chunk-GL2UPD5Q.cjs.map} +1 -1
- package/build/cjs/{chunk-4QUYZCMR.cjs → chunk-HG2XX6LZ.cjs} +4 -4
- package/build/cjs/{chunk-4QUYZCMR.cjs.map → chunk-HG2XX6LZ.cjs.map} +1 -1
- package/build/cjs/{chunk-EANEZ7DS.cjs → chunk-K6OEAX2T.cjs} +4 -4
- package/build/cjs/{chunk-EANEZ7DS.cjs.map → chunk-K6OEAX2T.cjs.map} +1 -1
- package/build/cjs/{chunk-B2VLYFEO.cjs → chunk-L57CLKED.cjs} +4 -4
- package/build/cjs/{chunk-B2VLYFEO.cjs.map → chunk-L57CLKED.cjs.map} +1 -1
- package/build/cjs/{chunk-JJTZZ4AO.cjs → chunk-LUHPM2MY.cjs} +91 -20
- package/build/cjs/chunk-LUHPM2MY.cjs.map +1 -0
- package/build/cjs/{chunk-RCPPRRRK.cjs → chunk-R3KKO3FP.cjs} +4 -4
- package/build/cjs/{chunk-RCPPRRRK.cjs.map → chunk-R3KKO3FP.cjs.map} +1 -1
- package/build/cjs/{chunk-G7M3NOUP.cjs → chunk-WATCUA6R.cjs} +3 -3
- package/build/cjs/chunk-WATCUA6R.cjs.map +1 -0
- package/build/cjs/chunk-WTIDFE4H.cjs +11 -0
- package/build/cjs/{chunk-NX3YZIHN.cjs.map → chunk-WTIDFE4H.cjs.map} +1 -1
- package/build/cjs/{chunk-R6TVZR37.cjs → chunk-YCBXWCQB.cjs} +4 -4
- package/build/cjs/{chunk-R6TVZR37.cjs.map → chunk-YCBXWCQB.cjs.map} +1 -1
- package/build/cjs/{chunk-LCSQHTQ2.cjs → chunk-YU4NMPPG.cjs} +4 -4
- package/build/cjs/{chunk-LCSQHTQ2.cjs.map → chunk-YU4NMPPG.cjs.map} +1 -1
- package/build/cjs/{chunk-USKT6B3H.cjs → chunk-Z3LAOM6L.cjs} +4 -4
- package/build/cjs/{chunk-USKT6B3H.cjs.map → chunk-Z3LAOM6L.cjs.map} +1 -1
- package/build/cjs/public/experimental/action-form.cjs +4 -4
- package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
- package/build/cjs/public/experimental/document-viewer.cjs +4 -4
- package/build/cjs/public/experimental/email-viewer.cjs +3 -3
- package/build/cjs/public/experimental/filter-list.cjs +15 -15
- package/build/cjs/public/experimental/filter-list.d.cts +66 -12
- package/build/cjs/public/experimental/image-viewer.cjs +3 -3
- package/build/cjs/public/experimental/markdown-renderer.cjs +5 -5
- package/build/cjs/public/experimental/object-table.cjs +22 -22
- package/build/cjs/public/experimental/object-table.d.cts +0 -1
- package/build/cjs/public/experimental/pdf-viewer.cjs +7 -7
- package/build/cjs/public/experimental/spreadsheet-viewer.cjs +3 -3
- package/build/cjs/public/experimental/tiff-renderer.cjs +5 -5
- package/build/cjs/public/experimental/video-viewer.cjs +3 -3
- package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
- package/build/cjs/public/experimental.cjs +76 -76
- package/build/cjs/public/experimental.d.cts +1 -1
- package/build/esm/filter-list/FilterList.js.map +1 -1
- package/build/esm/filter-list/FilterListApi.js.map +1 -1
- package/build/esm/filter-list/hooks/useFilterListState.js +92 -16
- package/build/esm/filter-list/hooks/useFilterListState.js.map +1 -1
- package/build/esm/filter-list/types/LinkedFilterTypes.js.map +1 -1
- package/build/esm/object-table/ObjectTableApi.js.map +1 -1
- package/build/esm/public/experimental/filter-list.js.map +1 -1
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/types/filter-list/FilterList.d.ts.map +1 -1
- package/build/types/filter-list/FilterListApi.d.ts +56 -10
- package/build/types/filter-list/FilterListApi.d.ts.map +1 -1
- package/build/types/filter-list/hooks/useFilterListState.d.ts.map +1 -1
- package/build/types/filter-list/types/LinkedFilterTypes.d.ts +1 -1
- package/build/types/object-table/ObjectTableApi.d.ts +0 -1
- package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
- package/build/types/public/experimental/filter-list.d.ts +1 -1
- package/build/types/public/experimental/filter-list.d.ts.map +1 -1
- package/docs/FilterList.md +93 -27
- package/docs/ObjectTable.md +1 -1
- package/docs/ObjectTableOverview.md +1 -1
- package/package.json +4 -4
- package/build/cjs/chunk-D2XXXPH6.cjs +0 -11
- package/build/cjs/chunk-EYGD2H45.cjs +0 -11
- package/build/cjs/chunk-G7M3NOUP.cjs.map +0 -1
- package/build/cjs/chunk-JJTZZ4AO.cjs.map +0 -1
- package/build/cjs/chunk-LJLLTHYK.cjs +0 -11
- package/build/cjs/chunk-NX3YZIHN.cjs +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-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sB;;CAEjE,UAAU,qBAAqB;;CAE/B,QAAQ;AACT;AAED,iBAAiB,gBAAgB,UAAU,sBAAsB;;;;;CAK/D,YAAY;;;;;;;CAQZ,YAAY,UAAU;;;;;;;;;;;;CAatB,yBAAyBA,WAAW,YAAY;;;;CAKhD,QAAQ;;;;CAKR,YAAY,MAAM;;;;;CAMlB,oBAAoB,MAAM,sBAAsB;;;;;;;;;CAUhD,wBACEC,YAAY,sBAAsB,IAClCC,UAAU;;;;;;;CASZ,uBAAuBC,OAAO,kBAAkB;;;;;;;;;CAUhD,wBAAwBC,WAAW,UAAU;;;;;;CAO7C;;;;;;;;;;;;;;;;CAiBA,gBAAgB,eAAe;;;;;;;;CAS/B,iBACEC,mBAGAC,gBAAgB,MAAM,sBAAsB;;;;;;;CAS9C,mBAAmBD;;;;;;;;;;;;CAanB,4BACEE,WAAW,MAAM;EACf;EACA;CACD;;;;;;;;;;CAYH;;;;;;;CAQA;;;;;;;;;CAUA;;;;;;;;;;CAWA;;;;;;CAOA,qBAAqBC;;;;;;;;;;CAWrB,sBAAsB,YAAY;;;;CAKlC,sBAAsB,YAAY;;;;CAKlC;;;;CAKA;;;;CAKA;;;;CAKA;;;;;;CAOA,8BAA8B,MAAM;AACrC","names":["newClause: WhereClause<Q>","definition: FilterDefinitionUnion<Q>","newState: FilterState","event: FilterChangeEvent<Q>","objectSet: ObjectSet<Q>","filterKey: string","newDefinitions: Array<FilterDefinitionUnion<Q>>","newStates: Array<{\n filterKey: string;\n isVisible: boolean;\n }>","collapsed: boolean"],"sources":["../../../src/filter-list/FilterListApi.ts"],"version":3,"file":"FilterListApi.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAyB,sBAAsB,mBAAmB,WAAY;AAK9E,
|
|
1
|
+
{"mappings":"AAgBA,cAAyB,sBAAsB,mBAAmB,WAAY;AAK9E,cAGE,uBACK,qBAAsB;AAC7B,cAAc,mBAAmB,yBAA0B;AAC3D,cAAc,oBAAoB,+BAAgC;AAYlE,iBAAiB,yBAAyB,UAAU,sBAAsB;CACxE,cAAc,YAAY;CAC1B,iBAAiBA,mBAAmBC,OAAO;CAC3C,mBAAmBD;;CAEnB,aAAa,YAAY;;CAEzB,eAAe,cAAc,aAAa;;CAE1C,uBAAuB,YAAY,YAAY;;CAE/C,wBAAwB,YAAY,cAAc,aAAa;CAC/D;CACA;CACA;AACD;AAiDD,OAAO,iBAAS,mBAAmB,UAAU,sBAC3CE,OAAO,gBAAgB,KACtB,yBAAyB","names":["filterKey: string","state: FilterState","props: FilterListProps<Q>"],"sources":["../../../../src/filter-list/hooks/useFilterListState.ts"],"version":3,"file":"useFilterListState.d.ts"}
|
|
@@ -5,7 +5,7 @@ import type { BaseFilterState, FilterDefinitionControls, FilterState, FilterStat
|
|
|
5
5
|
* Runtime representation of an active link-traversing filter
|
|
6
6
|
*/
|
|
7
7
|
export type LinkedFilter<Q extends ObjectTypeDefinition> = { [L in LinkNames<Q>] : {
|
|
8
|
-
/**
|
|
8
|
+
/** The filter definition's `getFilterKey` value. */
|
|
9
9
|
id: string
|
|
10
10
|
linkName: L
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,uBACA,qBACA,iBACA,6BACA,WACA,MACA,gBACA,cACA,2BACA,iBACA,mBACA,mBACK,WAAY;AACnB,cAAc,0BAA0B,yBAA0B;AAClE,iBAAiB,WAAW,OAAQ;AAEpC,cAAc,cAAc,uBAAuB,kBAAmB;AAEtE,cAAc,uBAAuB;AAErC,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;CACnD,wBAAwB,eAAe,gBAAgB,CAAE,MAAK;IAK5D,yBAAyB,GAAG,MAAM,mBAClC,iCAAiC,GAAG,MAAM,mBAC1C,yBAAyB,GAAG,MAAM,mBAClC,iCAAiC,GAAG,MAAM;;KAGzC;CACH,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;CACnD,wBAAwB,eAAe,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a,IAAI;;;;;;CAMhE,WAAWC;AACZ;;;;AAKD,iBAAiB;CACf,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;EACnD;;;;;;;;;CASA,eAAe,KAAK,SAClB,GACA,sBACA,aAAa,IACb;;;;;;CAQF;AACD;;;;;;AAOD,iBAAiB;CACf,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;EACnD;;;;;;;CAOA,cAAc,KAAK,SAAS,GAAG,sBAAsB,aAAa,IAAI;;;;;;;;CAStE;;;;;;;;;;;;;;;;CAiBA,WAAW,UAAU,GAAG;AACzB;AAED,iBAAiB,iBAAiB,UAAU,6BAA6B;;;;CAIvE,QAAQ,UAAU;;;;CAKlB,YAAY,UAAU;;;;CAKtB,WAAW,UAAU;AACtB","names":["object: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","locator: ColumnDefinitionLocator<Q, RDPs, FunctionColumns>","value: unknown","objectSet: ObjectSet<Q, RDPs>","cellData?: unknown","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n isVisible: boolean;\n }>","newStates: Array<{\n columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;\n pinned: \"left\" | \"right\" | \"none\";\n }>","columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns","newWidth: number | null","newOrderBy: Array<{\n property: PropertyKeys<Q> | keyof RDPs;\n direction: \"asc\" | \"desc\";\n }>","change: RowSelectionChange<Q, RDPs>","change: LoadedObjectsChange<Q, RDPs>","row: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs> | null","info: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >","edits: CellEditInfo<\n Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>,\n unknown\n >[]","row: Osdk.Instance<Q, \"$allBaseProperties\", PropertyKeys<Q>, RDPs>","cellValue: unknown","options?: ObjectTableSnapshotOptions","columnId: string"],"sources":["../../../src/object-table/ObjectTableApi.ts"],"version":3,"file":"ObjectTableApi.d.ts"}
|
|
@@ -2,7 +2,7 @@ export { BaseFilterList } from "../../filter-list/base/BaseFilterList.js";
|
|
|
2
2
|
export type { BaseFilterListProps, RenderFilterInput } from "../../filter-list/base/BaseFilterListApi.js";
|
|
3
3
|
import { FilterList as _FilterList } from "../../filter-list/FilterList.js";
|
|
4
4
|
export declare const FilterList: typeof _FilterList;
|
|
5
|
-
export type { FilterDefinitionUnion, FilterListProps } from "../../filter-list/FilterListApi.js";
|
|
5
|
+
export type { FilterChangeEvent, FilterChangeReason, FilterChangeSnapshot, FilterDefinitionUnion, FilterListProps } from "../../filter-list/FilterListApi.js";
|
|
6
6
|
export type { FilterComponentType, FilterDefinitionControls, FilterState, PropertyFilterDefinition } from "../../filter-list/FilterListItemApi.js";
|
|
7
7
|
export { deserializeFilterStates, serializeFilterStates } from "../../filter-list/utils/filterStateSerialization.js";
|
|
8
8
|
export { FilterPopover } from "../../filter-list/base/FilterPopover.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,sBAAsB;AAC/B,cACE,qBACA,yBACK;AACP,SAAS,cAAc,mBAAmB,iCAAkC;AAE5E,OAAO,cAAMA,mBAAmB;AAKhC,cACE,uBACA,uBACK;AACP,cACE,qBACA,0BACA,aACA,gCACK;AACP,SACE,yBACA,6BACK;AAEP,SAAS,qBAAqB;AAC9B,cAAc,0BAA0B;AAExC,SAAS,mBAAmB;AAC5B,cAAc,wBAAwB;AAEtC,SAAS,0BAA0B;AACnC,cAAc,gCAAgC;AAE9C,SACE,sBACA,gBACK;AACP,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AAErC,cAAc,oBAAoB;AAClC,SAAS,uBAAuB","names":["FilterList: typeof _FilterList"],"sources":["../../../../src/public/experimental/filter-list.ts"],"version":3,"file":"filter-list.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,SAAS,sBAAsB;AAC/B,cACE,qBACA,yBACK;AACP,SAAS,cAAc,mBAAmB,iCAAkC;AAE5E,OAAO,cAAMA,mBAAmB;AAKhC,cACE,mBACA,oBACA,sBACA,uBACA,uBACK;AACP,cACE,qBACA,0BACA,aACA,gCACK;AACP,SACE,yBACA,6BACK;AAEP,SAAS,qBAAqB;AAC9B,cAAc,0BAA0B;AAExC,SAAS,mBAAmB;AAC5B,cAAc,wBAAwB;AAEtC,SAAS,0BAA0B;AACnC,cAAc,gCAAgC;AAE9C,SACE,sBACA,gBACK;AACP,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AAErC,cAAc,oBAAoB;AAClC,SAAS,uBAAuB","names":["FilterList: typeof _FilterList"],"sources":["../../../../src/public/experimental/filter-list.ts"],"version":3,"file":"filter-list.d.ts"}
|
package/docs/FilterList.md
CHANGED
|
@@ -66,33 +66,34 @@ function EmployeeFilters() {
|
|
|
66
66
|
|
|
67
67
|
Type parameters: `Q extends ObjectTypeDefinition`
|
|
68
68
|
|
|
69
|
-
| Name | Type
|
|
70
|
-
| -------------------------- |
|
|
71
|
-
| `objectType` | `Q`
|
|
72
|
-
| `objectSet` | `ObjectSet<Q>`
|
|
73
|
-
| `onFilterClauseChanged` | `(newClause: WhereClause<Q>) => void`
|
|
74
|
-
| `title` | `ReactNode`
|
|
75
|
-
| `titleIcon` | `React.ReactNode`
|
|
76
|
-
| `filterDefinitions` | `Array<FilterDefinitionUnion<Q>>`
|
|
77
|
-
| `onFilterStateChanged` | `(definition: FilterDefinitionUnion<Q>, newState: FilterState) => void`
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
69
|
+
| Name | Type | Description |
|
|
70
|
+
| -------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
71
|
+
| `objectType` | `Q` | **Required.** The object type definition for the objects being filtered. Used for metadata resolution (property types, display names). |
|
|
72
|
+
| `objectSet` | `ObjectSet<Q>` | Optional object set to scope aggregation queries. When omitted, aggregations run against the full object type.<br /><br />Required for `HAS_LINK` and `LINKED_PROPERTY` filters to work. |
|
|
73
|
+
| `onFilterClauseChanged` | `(newClause: WhereClause<Q>) => void` | **Deprecated** — Use `onFilterListChanged`, whose `snapshot` reports the clause alongside the filtered `ObjectSet`. Called whenever the filter clause changes. FilterList owns filter state; this is how you read it out, e.g. to feed an `ObjectTable`'s `filter`.<br /><br />`HAS_LINK` and `LINKED_PROPERTY` filters are not represented in the clause — use `onEffectiveObjectSet` for those. |
|
|
74
|
+
| `title` | `ReactNode` | Optional title to display in the filter list header |
|
|
75
|
+
| `titleIcon` | `React.ReactNode` | Optional icon to display next to the title |
|
|
76
|
+
| `filterDefinitions` | `Array<FilterDefinitionUnion<Q>>` | The definition for all supported filter items in the list If not supplied, all filterable properties will be available |
|
|
77
|
+
| `onFilterStateChanged` | `(definition: FilterDefinitionUnion<Q>, newState: FilterState) => void` | **Deprecated** — Use `onFilterListChanged`, which reports every set / clear / reset with an `event` describing what changed. Called when filter state changes |
|
|
78
|
+
| `onFilterListChanged` | `(event: FilterChangeEvent<Q>) => void` | Called on filter init and when filter state changes. |
|
|
79
|
+
| `onEffectiveObjectSet` | `(objectSet: ObjectSet<Q>) => void` | **Deprecated** — Use `onFilterListChanged`, whose `snapshot.filteredObjectSet` reports the same narrowed set alongside the clause. Called with the narrowed `ObjectSet` whenever filters change. Requires `objectSet` to be set. `HAS_LINK` and `LINKED_PROPERTY` filters narrow only here, never through the filter clause. |
|
|
80
|
+
| `showFilteredOutValues` | `boolean` | When `true`, facets render greyed-out count=0 rows for values present in the unfiltered data but excluded by other active filters. Defaults to `false`. |
|
|
81
|
+
| `addFilterMode` | `"controlled" \| "uncontrolled"` | **Deprecated** — Going away; visibility will always be managed internally. Seed it with `isVisible` on each `filterDefinitions` entry and observe changes with `onFilterVisibilityChange`. Controls how filter visibility (add/remove) is managed.<br /><br />- `"uncontrolled"` (default): FilterList manages visibility internally. An "Add filter" popover is rendered for filters with `isVisible: false`, and each visible filter shows a remove button. - `"controlled"`: The consumer manages which filters are visible via `filterDefinitions`. Filters with `isVisible: false` are excluded from the rendered list. Defaults to `"uncontrolled"`. |
|
|
82
|
+
| `onFilterAdded` | `(filterKey: string, newDefinitions: Array<FilterDefinitionUnion<Q>>) => void` | Called after a filter is shown from the built-in "Add filter" popover. |
|
|
83
|
+
| `onFilterRemoved` | `(filterKey: string) => void` | Called after a filter's remove button is clicked, once the filter is hidden and its state cleared. |
|
|
84
|
+
| `onFilterVisibilityChange` | `(newStates: Array<{ filterKey: string; isVisible: boolean; }>) => void` | Called when filter visibility or ordering changes, i.e. when filters are reordered, added or removed via the built-in show/remove controls, or reset.<br /><br />Visible filters come first, in display order, followed by the hidden ones. Persist this array and feed it back as the order and `isVisible` of `filterDefinitions` to make reordering survive a remount. |
|
|
85
|
+
| `enableSorting` | `boolean` | Enable drag-and-drop reordering of filters. When `true`, drag handles are rendered and filters can be reordered.<br /><br />Reorder state is managed internally; persist `onFilterVisibilityChange` to track order across remounts. Defaults to `false`. |
|
|
86
|
+
| `enableCollapse` | `boolean` | Whether the collapse/expand control is available. When `false` the panel is always expanded, no collapse control is rendered, and `collapsed` / `defaultCollapsed` are ignored. Defaults to `true`. |
|
|
87
|
+
| `collapsed` | `boolean` | Controlled mode. When supplied, this prop is the source of truth for whether the panel is collapsed and the component keeps no internal state; re-render with a new value in response to `onCollapsedChange`.<br /><br />If both `collapsed` and `defaultCollapsed` are provided, `collapsed` takes precedence. Ignored when `enableCollapse` is `false`. |
|
|
88
|
+
| `defaultCollapsed` | `boolean` | Uncontrolled mode. Seeds the panel's internal collapsed state; the component continues to own the state after mount, so later changes to this prop are ignored.<br /><br />If both `collapsed` and `defaultCollapsed` are provided, `collapsed` takes precedence. Ignored when `enableCollapse` is `false`. Defaults to `false`. |
|
|
89
|
+
| `onCollapsedChange` | `(collapsed: boolean) => void` | Called whenever the collapsed state changes. |
|
|
90
|
+
| `defaultFilterStates` | `Map<string, FilterState>` | Seeds filter states from external storage, keyed by `getFilterKey`. Applied over the per-definition `defaultFilterState` seeds on mount, and FilterList owns the states from then on. Also the state the reset button restores to. Use `onFilterStateChanged` to persist changes back out. Defaults to `undefined (filters seed from their definitions alone)`. |
|
|
91
|
+
| `initialFilterStates` | `Map<string, FilterState>` | **Deprecated** — Rename to `defaultFilterStates`. |
|
|
92
|
+
| `showResetButton` | `boolean` | Show reset filters button in header |
|
|
93
|
+
| `onReset` | `() => void` | Called when reset button is clicked |
|
|
94
|
+
| `showActiveFilterCount` | `boolean` | Show count of active filters in header |
|
|
95
|
+
| `className` | `string` | Additional CSS class name |
|
|
96
|
+
| `renderAddFilterButton` | `() => React.ReactNode` | Custom render function for the "Add filter" button. Customizes the trigger element for the built-in add-filter popover; the popover behavior is handled automatically. |
|
|
96
97
|
|
|
97
98
|
<!-- AUTOGEN:props END -->
|
|
98
99
|
|
|
@@ -368,6 +369,71 @@ function EmployeeDashboard() {
|
|
|
368
369
|
}
|
|
369
370
|
```
|
|
370
371
|
|
|
372
|
+
### Reading everything from one callback
|
|
373
|
+
|
|
374
|
+
`onFilterListChanged` reports the state the list mounted with and every change
|
|
375
|
+
after it — a filter set, a filter removed, or a reset — as an event with a
|
|
376
|
+
`reason` (what happened) and a `snapshot` (everything derived from the resulting
|
|
377
|
+
state), so you don't need to wire up `onFilterStateChanged`,
|
|
378
|
+
`onFilterClauseChanged` and `onEffectiveObjectSet` separately and reconcile
|
|
379
|
+
their firings:
|
|
380
|
+
|
|
381
|
+
```typescript
|
|
382
|
+
import type { FilterChangeEvent } from "@osdk/react-components/experimental/filter-list";
|
|
383
|
+
|
|
384
|
+
<FilterList
|
|
385
|
+
objectType={Employee}
|
|
386
|
+
objectSet={objectSet}
|
|
387
|
+
filterDefinitions={filterDefinitions}
|
|
388
|
+
onFilterListChanged={(event: FilterChangeEvent<typeof Employee>) => {
|
|
389
|
+
// `snapshot` is always present, whatever the reason:
|
|
390
|
+
// event.snapshot.filterClause — combined clause for all active filters
|
|
391
|
+
// event.snapshot.filteredObjectSet — `objectSet` filtered by all active filters
|
|
392
|
+
setFilterClause(event.snapshot.filterClause);
|
|
393
|
+
|
|
394
|
+
// `event.reason.type` says what happened, and which extra fields you get:
|
|
395
|
+
switch (event.reason.type) {
|
|
396
|
+
case "FILTER_LIST_INITIALIZED":
|
|
397
|
+
break;
|
|
398
|
+
case "FILTER_STATE_CHANGED":
|
|
399
|
+
persist(event.reason.filterKey, event.reason.newState);
|
|
400
|
+
break;
|
|
401
|
+
case "FILTER_REMOVED":
|
|
402
|
+
forget(event.reason.filterKey);
|
|
403
|
+
break;
|
|
404
|
+
case "FILTER_LIST_RESET":
|
|
405
|
+
forgetAll();
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
}}
|
|
409
|
+
/>;
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
| `event.reason.type` | Extra fields | Fires when |
|
|
413
|
+
| --------------------------- | ----------------------- | ---------------------------------------------- |
|
|
414
|
+
| `"FILTER_LIST_INITIALIZED"` | — | The list mounted, once, before any interaction |
|
|
415
|
+
| `"FILTER_STATE_CHANGED"` | `filterKey`, `newState` | The user changed a filter's value |
|
|
416
|
+
| `"FILTER_REMOVED"` | `filterKey` | A filter was removed from the list |
|
|
417
|
+
| `"FILTER_LIST_RESET"` | — | The reset button restored the mount state |
|
|
418
|
+
|
|
419
|
+
`filteredObjectSet` is `undefined` when no `objectSet` prop is supplied.
|
|
420
|
+
|
|
421
|
+
`"FILTER_LIST_INITIALIZED"` reports the state seeded from `defaultFilterStates`
|
|
422
|
+
and from each definition's `defaultFilterState`, so the initial clause and
|
|
423
|
+
filtered `ObjectSet` arrive without waiting for a first interaction. If you only
|
|
424
|
+
care about the current state and not what caused it, ignore `reason` — every
|
|
425
|
+
`snapshot` carries the full `filterClause` and `filteredObjectSet`:
|
|
426
|
+
|
|
427
|
+
```typescript
|
|
428
|
+
onFilterListChanged={(event) => setFilterClause(event.snapshot.filterClause)}
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
Changes are reported as they happen, with no debounce, so an analytics handler
|
|
432
|
+
sees every distinct interaction. Free-text and range inputs debounce their own
|
|
433
|
+
keystrokes, so typing reports once per pause rather than once per character. If
|
|
434
|
+
you need coarser batching than that — one network request per burst, say —
|
|
435
|
+
debounce your own handler.
|
|
436
|
+
|
|
371
437
|
### Add/Remove Filters (Uncontrolled Mode)
|
|
372
438
|
|
|
373
439
|
Use `addFilterMode="uncontrolled"` with `isVisible: false` on some filters to let users add and remove filters dynamically:
|
package/docs/ObjectTable.md
CHANGED
|
@@ -87,7 +87,7 @@ Type parameters: `Q extends ObjectOrInterfaceDefinition`, `RDPs extends Record<s
|
|
|
87
87
|
| `dedupeIntervalMs` | `number` | Minimum time between fetch requests in milliseconds. Increasing this value reduces redundant network calls when the same data is requested multiple times in quick succession. Defaults to `60_000 1 minute`. |
|
|
88
88
|
| `streamUpdates` | `boolean` | Enable streaming updates via websocket subscription. When true, the table will automatically update when matching objects are added, updated, or removed in Foundry.<br /><br />Limitations: `streamUpdates` cannot be used together with `pivotTo` or `withProperties`. The server does not support websocket subscriptions for link-traversal or derived-property queries. Those queries still fetch data normally but won't receive real-time updates. Defaults to `false`. |
|
|
89
89
|
| `pageSize` | `number` | Number of objects to fetch per page. Defaults to `50`. |
|
|
90
|
-
| `filter` | `WhereClause<Q, RDPs>` | The current where clause to filter the objects in the table.
|
|
90
|
+
| `filter` | `WhereClause<Q, RDPs>` | The current where clause to filter the objects in the table. |
|
|
91
91
|
| `enableColumnConfig` | `boolean` | Whether the column configuration dialog for column visibility and ordering is available to the user. Defaults to `true`. |
|
|
92
92
|
| `enableColumnPinning` | `boolean` | Whether columns can be pinned by the user. Defaults to `true`. |
|
|
93
93
|
| `enableColumnResizing` | `boolean` | Whether columns can be resized by the user. Defaults to `true`. |
|
|
@@ -37,7 +37,7 @@ Type parameters: `Q extends ObjectOrInterfaceDefinition`, `RDPs extends Record<s
|
|
|
37
37
|
| `dedupeIntervalMs` | `number` | Minimum time between fetch requests in milliseconds. Increasing this value reduces redundant network calls when the same data is requested multiple times in quick succession. Defaults to `60_000 1 minute`. |
|
|
38
38
|
| `streamUpdates` | `boolean` | Enable streaming updates via websocket subscription. When true, the table will automatically update when matching objects are added, updated, or removed in Foundry.<br /><br />Limitations: `streamUpdates` cannot be used together with `pivotTo` or `withProperties`. The server does not support websocket subscriptions for link-traversal or derived-property queries. Those queries still fetch data normally but won't receive real-time updates. Defaults to `false`. |
|
|
39
39
|
| `pageSize` | `number` | Number of objects to fetch per page. Defaults to `50`. |
|
|
40
|
-
| `filter` | `WhereClause<Q, RDPs>` | The current where clause to filter the objects in the table.
|
|
40
|
+
| `filter` | `WhereClause<Q, RDPs>` | The current where clause to filter the objects in the table. |
|
|
41
41
|
| `enableColumnConfig` | `boolean` | Whether the column configuration dialog for column visibility and ordering is available to the user. Defaults to `true`. |
|
|
42
42
|
| `enableColumnPinning` | `boolean` | Whether columns can be pinned by the user. Defaults to `true`. |
|
|
43
43
|
| `enableColumnResizing` | `boolean` | Whether columns can be resized by the user. Defaults to `true`. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0-main-caff0c0ea39b54fba6782b0f2a1514f491afa4c1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
"react": "^18.3.1",
|
|
223
223
|
"react-dom": "^18.3.1",
|
|
224
224
|
"typescript": "~5.5.4",
|
|
225
|
-
"@osdk/api": "2.
|
|
225
|
+
"@osdk/api": "2.60.0",
|
|
226
226
|
"@osdk/monorepo.api-extractor": "~0.7.0",
|
|
227
|
-
"@osdk/
|
|
227
|
+
"@osdk/client": "2.60.0",
|
|
228
228
|
"@osdk/monorepo.tsconfig": "~0.7.0",
|
|
229
|
-
"@osdk/
|
|
229
|
+
"@osdk/react": "2.60.0"
|
|
230
230
|
},
|
|
231
231
|
"publishConfig": {
|
|
232
232
|
"access": "public"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkRVZE7LPI_cjs = require('./chunk-RVZE7LPI.cjs');
|
|
4
|
-
var chunkG7M3NOUP_cjs = require('./chunk-G7M3NOUP.cjs');
|
|
5
|
-
|
|
6
|
-
// src/public/experimental/xml-viewer.ts
|
|
7
|
-
var XmlViewer2 = chunkG7M3NOUP_cjs.withOsdkMetrics(chunkRVZE7LPI_cjs.XmlViewer, "XmlViewer");
|
|
8
|
-
|
|
9
|
-
exports.XmlViewer = XmlViewer2;
|
|
10
|
-
//# sourceMappingURL=chunk-D2XXXPH6.cjs.map
|
|
11
|
-
//# sourceMappingURL=chunk-D2XXXPH6.cjs.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKHMOMROL_cjs = require('./chunk-KHMOMROL.cjs');
|
|
4
|
-
var chunkG7M3NOUP_cjs = require('./chunk-G7M3NOUP.cjs');
|
|
5
|
-
|
|
6
|
-
// src/public/experimental/video-viewer.ts
|
|
7
|
-
var VideoViewer2 = chunkG7M3NOUP_cjs.withOsdkMetrics(chunkKHMOMROL_cjs.VideoViewer, "VideoViewer");
|
|
8
|
-
|
|
9
|
-
exports.VideoViewer = VideoViewer2;
|
|
10
|
-
//# sourceMappingURL=chunk-EYGD2H45.cjs.map
|
|
11
|
-
//# sourceMappingURL=chunk-EYGD2H45.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/util/UserAgent.ts","../../src/util/withOsdkMetrics.ts"],"names":["useRegisterUserAgent","React"],"mappings":";;;;;;;;;;;;AAgBA,IAAM,kBAAA,GAAqB,yBAAyB,QAA2B,CAAA,CAAA;AACxE,SAAS,mBAAmB,aAAA,EAAe;AAChD,EAAA,OAAO,CAAA,EAAG,kBAAkB,CAAA,CAAA,EAAI,aAAa,CAAA,CAAA;AAC/C;;;ACKO,SAAS,eAAA,CAAgB,WAAW,IAAA,EAAM;AAC/C,EAAA,MAAM,UAAU,CAAA,KAAA,KAAS;AACvB,IAAAA,0BAAA,CAAqB,kBAAA,CAAmB,IAAI,CAAC,CAAA;AAC7C,IAAA,uBAAoBC,sBAAA,CAAM,aAAA,CAAc,SAAA,EAAW,KAAK,CAAA;AAAA,EAC1D,CAAA;AACA,EAAA,OAAA,CAAQ,WAAA,GAAc,mBAAmB,IAAI,CAAA,CAAA,CAAA;AAC7C,EAAA,OAAO,OAAA;AACT","file":"chunk-G7M3NOUP.cjs","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\nconst PACKAGE_USER_AGENT = `osdk-react-components/${process.env.PACKAGE_VERSION}`;\nexport function componentUserAgent(componentName) {\n return `${PACKAGE_USER_AGENT}/${componentName}`;\n}","/*\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 { useRegisterUserAgent } from \"@osdk/react\";\nimport React from \"react\";\nimport { componentUserAgent } from \"./UserAgent.js\";\n\n// `any` is required: FunctionComponent defaults to FunctionComponent<{}> which\n// rejects components with required props. A generic P parameter doesn't help\n// because TS can't infer both P and C simultaneously from a single argument.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function withOsdkMetrics(Component, name) {\n const Wrapped = props => {\n useRegisterUserAgent(componentUserAgent(name));\n return /*#__PURE__*/React.createElement(Component, props);\n };\n Wrapped.displayName = `withOsdkMetrics(${name})`;\n return Wrapped;\n}"]}
|