@persona/design-system 0.10.12 → 0.10.13
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/dist/{CheckboxGroupField-XSVAmESI.d.mts → CheckboxGroupField-BW_BcW3L.d.mts} +2 -2
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/{Combobox-DbcSss15.d.mts → Combobox-DgYwerwd.d.mts} +3 -3
- package/dist/{Combobox-BNjYEAmv.mjs → Combobox-DmFQ5cAy.mjs} +63 -51
- package/dist/Combobox-DmFQ5cAy.mjs.map +1 -0
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-CrFweFGi.d.mts → ComboboxBase-DoKiRjgS.d.mts} +2 -2
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-Cp5GBGQj.d.mts → ComboboxMultiSelect-DsoIMJiZ.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-u7fK3Yvy.d.mts → ComboboxSingleSelect-CKsqOAGB.d.mts} +3 -3
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-BLZZWtIE.d.mts → CompactBar-tNtY2EhN.d.mts} +2 -2
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ControlBar-B3Jn8G0k.d.mts → ControlBar-CDb6b1_6.d.mts} +5 -3
- package/dist/ControlBar.d.mts +1 -1
- package/dist/{DataTable-DdSY9mzT.mjs → DataTable-DZ0B2Zm9.mjs} +146 -77
- package/dist/DataTable-DZ0B2Zm9.mjs.map +1 -0
- package/dist/{DataTable-C1mdfmQa.d.mts → DataTable-on3vGhyi.d.mts} +31 -7
- package/dist/DataTable.d.mts +1 -1
- package/dist/{DatePicker-DiilpYQg.mjs → DatePicker-CHVYVKB-.mjs} +2 -2
- package/dist/{DatePicker-DiilpYQg.mjs.map → DatePicker-CHVYVKB-.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +1 -1
- package/dist/{DropdownMenu-CQR0U-zM.d.mts → DropdownMenu-eVY-Yjpq.d.mts} +2 -2
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{FloatingActionBar-BUgSKimy.d.mts → FloatingActionBar-CfgjHs81.d.mts} +5 -1
- package/dist/FloatingActionBar.d.mts +1 -1
- package/dist/{FormField-yYJFkJ6R.mjs → FormField-BfVrDOY0.mjs} +4 -4
- package/dist/{FormField-yYJFkJ6R.mjs.map → FormField-BfVrDOY0.mjs.map} +1 -1
- package/dist/{HoverCopyableField-X2XfKTTh.mjs → HoverCopyableField-CJ_p3llp.mjs} +2 -2
- package/dist/{HoverCopyableField-X2XfKTTh.mjs.map → HoverCopyableField-CJ_p3llp.mjs.map} +1 -1
- package/dist/IndexTableLayout.d.mts +3 -3
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Link-B29ZMN6m.mjs → Link-Df3zJrj2.mjs} +1 -1
- package/dist/{Link-B29ZMN6m.mjs.map → Link-Df3zJrj2.mjs.map} +1 -1
- package/dist/{ListBox-4rTgr3IJ.mjs → ListBox-BRgjgUSp.mjs} +2 -2
- package/dist/{ListBox-4rTgr3IJ.mjs.map → ListBox-BRgjgUSp.mjs.map} +1 -1
- package/dist/{ListBox-ZDaitaXR.d.mts → ListBox-Bgug8YZF.d.mts} +2 -2
- package/dist/ListBox.d.mts +1 -1
- package/dist/{ListBoxField-CGvVWKyL.d.mts → ListBoxField-Cc1sX2bo.d.mts} +4 -4
- package/dist/ListBoxField.d.mts +1 -1
- package/dist/{LogicRow-Bzp5o1sL.d.mts → LogicRow-B1_35ZJT.d.mts} +2 -2
- package/dist/LogicRow.d.mts +1 -1
- package/dist/{Menu-DviYNrFd.d.mts → Menu-keVl-eKm.d.mts} +2 -2
- package/dist/Menu.d.mts +1 -1
- package/dist/{Modal-CiPFqr0L.mjs → Modal-SnCo7ecm.mjs} +3 -2
- package/dist/Modal-SnCo7ecm.mjs.map +1 -0
- package/dist/{Pii-jSYND7Cn.mjs → Pii-BYPkrBuT.mjs} +1 -1
- package/dist/{Pii-jSYND7Cn.mjs.map → Pii-BYPkrBuT.mjs.map} +1 -1
- package/dist/{Popover-CVX-dfYb.mjs → Popover-DP9DXReH.mjs} +1 -1
- package/dist/{Popover-CVX-dfYb.mjs.map → Popover-DP9DXReH.mjs.map} +1 -1
- package/dist/{Select-DsVeAyZy.d.mts → Select-CiofH5-f.d.mts} +2 -2
- package/dist/Select.d.mts +1 -1
- package/dist/SmartTextInputField.d.mts +2 -2
- package/dist/SmartTextInputListbox.d.mts +8 -3
- package/dist/{TableBox-D9NA-s9l.mjs → TableBox-RxpwflEb.mjs} +3 -3
- package/dist/{TableBox-D9NA-s9l.mjs.map → TableBox-RxpwflEb.mjs.map} +1 -1
- package/dist/TableBox.d.mts +1 -1
- package/dist/{TableBoxCell-CQOL30et.d.mts → TableBoxCell-C65YFYqj.d.mts} +4 -4
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/{TableBoxField-z0GIFeQw.d.mts → TableBoxField-CHpClgsE.d.mts} +5 -5
- package/dist/TableBoxField.d.mts +1 -1
- package/dist/{TableBoxRow-tb9-KMr9.d.mts → TableBoxRow-CK-b79uD.d.mts} +2 -2
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-BZwulsFP.d.mts → TableBoxRowActions-CRaabjaY.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableControls-BXykbUBf.mjs → TableControls-DM4RddQ_.mjs} +31 -12
- package/dist/TableControls-DM4RddQ_.mjs.map +1 -0
- package/dist/{TableControls-DE6eHq8h.d.mts → TableControls-v1NmlFTW.d.mts} +4 -4
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-C2_2EuMh.d.mts → TableControlsContext-DHYICXxy.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-DE9HFXYY.d.mts → TableViewConfigurationDropdown-1nT8wneI.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{clientFilterUtils-2TBUC31K.d.mts → clientFilterUtils-CaF2QZBy.d.mts} +2 -2
- package/dist/clientFilterUtils.d.mts +1 -1
- package/dist/components/Combobox/index.d.mts +4 -4
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/DataTable/TableControls/index.d.mts +7 -7
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.d.mts +6 -6
- package/dist/components/DataTable/index.mjs +1 -1
- package/dist/components/DataTable/types.d.mts +1 -1
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/FormField/index.d.mts +4 -4
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -1
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/RichTextEditor/index.mjs +2 -2
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/SmartTextInput/index.mjs +104 -48
- package/dist/components/SmartTextInput/index.mjs.map +1 -1
- package/dist/components/TableBox/index.d.mts +1 -1
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/VersionHistory/index.mjs +1 -1
- package/dist/fieldPickerOptions.d.mts +1 -1
- package/dist/{filters-DW7pqWv3.d.mts → filters-CShP0Jag.d.mts} +2 -2
- package/dist/filters.d.mts +1 -1
- package/dist/{helpers-BTD2kXLs.d.mts → helpers-Bbi1LyMW.d.mts} +5 -3
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-B4tE0RxY.d.mts → index-3-eDlpcj.d.mts} +3 -3
- package/dist/{inputFields-DnBb3NhK.d.mts → inputFields-Dobwb4kT.d.mts} +4 -4
- package/dist/inputFields.d.mts +1 -1
- package/dist/lib/PDSProvider.d.mts +2 -1
- package/dist/lib/PDSProvider.mjs +8 -3
- package/dist/lib/PDSProvider.mjs.map +1 -1
- package/dist/lib/colorMode.d.mts +18 -7
- package/dist/lib/colorMode.mjs +47 -13
- package/dist/lib/colorMode.mjs.map +1 -1
- package/dist/lib/schemaOptions.mjs +1 -1
- package/dist/lib/schemaOptions.mjs.map +1 -1
- package/dist/patterns/IndexTableLayout/index.mjs +1 -1
- package/dist/patterns/WizardModal/index.mjs +1 -1
- package/dist/{types-NO2GRlM-.d.mts → types-BTaKBrxG.d.mts} +2 -2
- package/dist/{types-Dws2XDz2.d.mts → types-CUnL8JJj.d.mts} +6 -4
- package/dist/types5.d.mts +1 -1
- package/dist/useColumnConfiguration.d.mts +2 -2
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useTableColumns-tITjHasE.d.mts → useTableColumns-BuxN7Usm.d.mts} +17 -2
- package/dist/useTableColumns.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/utils4.d.mts +1 -1
- package/dist/withDisabledReason.d.mts +19 -0
- package/llms.txt +4 -3
- package/package.json +4 -12
- package/skills/ui-authoring/COMPONENTS.md +0 -1
- package/skills/ui-authoring/PATTERNS.md +0 -64
- package/skills/ui-authoring/TOKENS.md +14 -25
- package/dist/ChartFrame.d.mts +0 -61
- package/dist/ChartLegend.d.mts +0 -60
- package/dist/ChartPopover.d.mts +0 -155
- package/dist/Combobox-BNjYEAmv.mjs.map +0 -1
- package/dist/DataTable-DdSY9mzT.mjs.map +0 -1
- package/dist/Modal-CiPFqr0L.mjs.map +0 -1
- package/dist/TableControls-BXykbUBf.mjs.map +0 -1
- package/dist/chartColors.d.mts +0 -92
- package/dist/chartFrameLayout.d.mts +0 -46
- package/dist/components/Chart/index.d.mts +0 -9
- package/dist/components/Chart/index.mjs +0 -680
- package/dist/components/Chart/index.mjs.map +0 -1
- package/dist/useChartColors.d.mts +0 -30
- package/dist/useChartSeriesVisibility.d.mts +0 -22
- package/dist/useChartStyles.d.mts +0 -108
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ControlBarProps } from "./ControlBar-
|
|
1
|
+
import { n as ControlBarProps } from "./ControlBar-CDb6b1_6.mjs";
|
|
2
2
|
import { n as FilterBarProps } from "./FilterBar-CA4mDAXK.mjs";
|
|
3
|
-
import { i as BaseFilterConfig, s as FilterConfig, u as FilterTypeResolver } from "./types-
|
|
4
|
-
import { i as TableViewConfigurationProps } from "./TableViewConfigurationDropdown-
|
|
3
|
+
import { i as BaseFilterConfig, s as FilterConfig, u as FilterTypeResolver } from "./types-BTaKBrxG.mjs";
|
|
4
|
+
import { i as TableViewConfigurationProps } from "./TableViewConfigurationDropdown-1nT8wneI.mjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -82,4 +82,4 @@ declare const TableControls: <TFilter extends BaseFilterConfig = FilterConfig>({
|
|
|
82
82
|
}: TableControlsProps<TFilter>) => _$react_jsx_runtime0.JSX.Element;
|
|
83
83
|
//#endregion
|
|
84
84
|
export { TableControlsFiltersV2Props as n, TableControlsProps as r, TableControls as t };
|
|
85
|
-
//# sourceMappingURL=TableControls-
|
|
85
|
+
//# sourceMappingURL=TableControls-v1NmlFTW.d.mts.map
|
package/dist/TableControls.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TableControlsFiltersV2Props, r as TableControlsProps, t as TableControls } from "./TableControls-
|
|
1
|
+
import { n as TableControlsFiltersV2Props, r as TableControlsProps, t as TableControls } from "./TableControls-v1NmlFTW.mjs";
|
|
2
2
|
export { TableControlsFiltersV2Props, TableControlsProps, TableControls as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BaseFilterConfig, r as BaseActiveFilter } from "./types-
|
|
1
|
+
import { i as BaseFilterConfig, r as BaseActiveFilter } from "./types-BTaKBrxG.mjs";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
4
4
|
|
|
@@ -18,4 +18,4 @@ declare function TableControlsProvider<TFilter extends BaseFilterConfig = BaseFi
|
|
|
18
18
|
}): _$react.FunctionComponentElement<_$react.ProviderProps<TableControlsContextProps<BaseFilterConfig, BaseActiveFilter<BaseFilterConfig>>>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { useTableControls as i, TableControlsContextProps as n, TableControlsProvider as r, TableControlsContext as t };
|
|
21
|
-
//# sourceMappingURL=TableControlsContext-
|
|
21
|
+
//# sourceMappingURL=TableControlsContext-DHYICXxy.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as useTableControls, n as TableControlsContextProps, r as TableControlsProvider, t as TableControlsContext } from "./TableControlsContext-
|
|
1
|
+
import { i as useTableControls, n as TableControlsContextProps, r as TableControlsProvider, t as TableControlsContext } from "./TableControlsContext-DHYICXxy.mjs";
|
|
2
2
|
export { TableControlsContextProps, TableControlsProvider, TableControlsContext as default, useTableControls };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AttributeColumn } from "./types-
|
|
1
|
+
import { n as AttributeColumn } from "./types-BTaKBrxG.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DataTable/TableControls/TableViewConfigurationDropdown.d.ts
|
|
@@ -31,4 +31,4 @@ declare const TableViewConfiguration: ({
|
|
|
31
31
|
}: TableViewConfigurationProps) => _$react_jsx_runtime0.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { TableViewConfigurationProps as i, TableViewConfigurationDropdown as n, TableViewConfigurationDropdownProps as r, TableViewConfiguration as t };
|
|
34
|
-
//# sourceMappingURL=TableViewConfigurationDropdown-
|
|
34
|
+
//# sourceMappingURL=TableViewConfigurationDropdown-1nT8wneI.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TableViewConfigurationProps, n as TableViewConfigurationDropdown, r as TableViewConfigurationDropdownProps, t as TableViewConfiguration } from "./TableViewConfigurationDropdown-
|
|
1
|
+
import { i as TableViewConfigurationProps, n as TableViewConfigurationDropdown, r as TableViewConfigurationDropdownProps, t as TableViewConfiguration } from "./TableViewConfigurationDropdown-1nT8wneI.mjs";
|
|
2
2
|
export { TableViewConfiguration, TableViewConfigurationDropdownProps, TableViewConfigurationProps, TableViewConfigurationDropdown as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as FilterConfig } from "./types-
|
|
1
|
+
import { s as FilterConfig } from "./types-BTaKBrxG.mjs";
|
|
2
2
|
import { Dispatch, SetStateAction } from "react";
|
|
3
3
|
import { Column, ColumnFiltersState, Header, RowData, Table } from "@tanstack/react-table";
|
|
4
4
|
|
|
@@ -17,4 +17,4 @@ declare const generateClientFilters: <TData extends RowData>(columns: Array<{
|
|
|
17
17
|
}>, columnFilters: ColumnFiltersState, setColumnFilters: Dispatch<SetStateAction<ColumnFiltersState>>) => FilterConfig[];
|
|
18
18
|
//#endregion
|
|
19
19
|
export { getFilterFnName as n, generateClientFilters as t };
|
|
20
|
-
//# sourceMappingURL=clientFilterUtils-
|
|
20
|
+
//# sourceMappingURL=clientFilterUtils-CaF2QZBy.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getFilterFnName, t as generateClientFilters } from "./clientFilterUtils-
|
|
1
|
+
import { n as getFilterFnName, t as generateClientFilters } from "./clientFilterUtils-CaF2QZBy.mjs";
|
|
2
2
|
export { generateClientFilters, getFilterFnName };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as flattenOptions, a as ComboboxOptionGroup, i as ComboboxOption, n as ComboboxBaseProps, o as ComboboxOptionsOrGroups, s as ComboboxServerBaseProps, t as CaretButton } from "../../ComboboxBase-
|
|
2
|
-
import { n as ComboboxMultiSelectProps, r as ComboboxServerMultiSelectProps } from "../../ComboboxMultiSelect-
|
|
3
|
-
import { r as ComboboxSingleSelectProps, t as ComboboxServerSingleSelectProps } from "../../ComboboxSingleSelect-
|
|
4
|
-
import { n as ComboboxProps, r as ComboboxServerProps, t as Combobox } from "../../Combobox-
|
|
1
|
+
import { O as flattenOptions, a as ComboboxOptionGroup, i as ComboboxOption, n as ComboboxBaseProps, o as ComboboxOptionsOrGroups, s as ComboboxServerBaseProps, t as CaretButton } from "../../ComboboxBase-DoKiRjgS.mjs";
|
|
2
|
+
import { n as ComboboxMultiSelectProps, r as ComboboxServerMultiSelectProps } from "../../ComboboxMultiSelect-DsoIMJiZ.mjs";
|
|
3
|
+
import { r as ComboboxSingleSelectProps, t as ComboboxServerSingleSelectProps } from "../../ComboboxSingleSelect-CKsqOAGB.mjs";
|
|
4
|
+
import { n as ComboboxProps, r as ComboboxServerProps, t as Combobox } from "../../Combobox-DgYwerwd.mjs";
|
|
5
5
|
export { CaretButton, Combobox, Combobox as default, ComboboxBaseProps, ComboboxMultiSelectProps, ComboboxOption, ComboboxOptionGroup, ComboboxOptionsOrGroups, ComboboxProps, ComboboxServerBaseProps, ComboboxServerMultiSelectProps, ComboboxServerProps, ComboboxServerSingleSelectProps, ComboboxSingleSelectProps, flattenOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CaretButton, r as flattenOptions, t as Combobox } from "../../Combobox-
|
|
1
|
+
import { n as CaretButton, r as flattenOptions, t as Combobox } from "../../Combobox-DmFQ5cAy.mjs";
|
|
2
2
|
export { CaretButton, Combobox, Combobox as default, flattenOptions };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as ControlBarProps, t as ControlBar } from "../../../ControlBar-
|
|
1
|
+
import { n as ControlBarProps, t as ControlBar } from "../../../ControlBar-CDb6b1_6.mjs";
|
|
2
2
|
import { a as FilterConditionOperator, c as FilterFieldType, d as FilterRuleValue, f as FilterRuleValueChange, g as isEmptyState, h as TopLevelFilterRule, i as EMPTY_FILTER_STATE, l as FilterOperator, m as FilterStateV2, n as CompoundExpression, o as FilterField, p as FilterSize, r as DateRangeFilterValue, s as FilterFieldSource, t as AndGroup, u as FilterRule } from "../../../types-BJqmRXFV.mjs";
|
|
3
3
|
import { n as RawFieldInfo, r as buildFieldRegistry, t as FieldRegistry } from "../../../FieldRegistry-CJwGpUVK.mjs";
|
|
4
4
|
import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "../../../value-control-resolver-BFJZEWDn.mjs";
|
|
5
5
|
import { t as FilterBar } from "../../../FilterBar-CA4mDAXK.mjs";
|
|
6
|
-
import { a as ComboboxFilterConfig, c as FilterRenderOptions, d as InputFilterConfig, f as MultiSelectFilterConfig, i as BaseFilterConfig, l as FilterTypeDefinition, o as DateRangeFilterConfig, p as SelectFilterConfig, r as BaseActiveFilter, s as FilterConfig, t as ActiveFilter, u as FilterTypeResolver } from "../../../types-
|
|
7
|
-
import { i as TableViewConfigurationProps, n as TableViewConfigurationDropdown, r as TableViewConfigurationDropdownProps, t as TableViewConfiguration } from "../../../TableViewConfigurationDropdown-
|
|
8
|
-
import { n as TableControlsFiltersV2Props, r as TableControlsProps, t as TableControls } from "../../../TableControls-
|
|
9
|
-
import { n as DataTableCompactBar } from "../../../CompactBar-
|
|
10
|
-
import { i as useTableControls, n as TableControlsContextProps, r as TableControlsProvider, t as TableControlsContext } from "../../../TableControlsContext-
|
|
11
|
-
import { a as resolveFilterTypeDefinition, i as isFilterActive, n as FiltersContainer, r as getActiveFilters } from "../../../filters-
|
|
6
|
+
import { a as ComboboxFilterConfig, c as FilterRenderOptions, d as InputFilterConfig, f as MultiSelectFilterConfig, i as BaseFilterConfig, l as FilterTypeDefinition, o as DateRangeFilterConfig, p as SelectFilterConfig, r as BaseActiveFilter, s as FilterConfig, t as ActiveFilter, u as FilterTypeResolver } from "../../../types-BTaKBrxG.mjs";
|
|
7
|
+
import { i as TableViewConfigurationProps, n as TableViewConfigurationDropdown, r as TableViewConfigurationDropdownProps, t as TableViewConfiguration } from "../../../TableViewConfigurationDropdown-1nT8wneI.mjs";
|
|
8
|
+
import { n as TableControlsFiltersV2Props, r as TableControlsProps, t as TableControls } from "../../../TableControls-v1NmlFTW.mjs";
|
|
9
|
+
import { n as DataTableCompactBar } from "../../../CompactBar-tNtY2EhN.mjs";
|
|
10
|
+
import { i as useTableControls, n as TableControlsContextProps, r as TableControlsProvider, t as TableControlsContext } from "../../../TableControlsContext-DHYICXxy.mjs";
|
|
11
|
+
import { a as resolveFilterTypeDefinition, i as isFilterActive, n as FiltersContainer, r as getActiveFilters } from "../../../filters-CShP0Jag.mjs";
|
|
12
12
|
import { t as dateRuleIntent } from "../../../date-rule-intent-DDDCA6kc.mjs";
|
|
13
13
|
import { t as resolveDateRangeRuleValue } from "../../../date-range-rule-value-DyLlMtjr.mjs";
|
|
14
14
|
import { t as FilterBarProps } from "../../../index-DTM_t7OG.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as isCompleteDateRange, B as TableControlsProvider, C as useFilterBarSize, D as getDefaultOperatorForType, E as getConditionValueError, F as FiltersContainer, H as ControlBar, I as getActiveFilters, L as isFilterActive, M as isRangeOperator, N as isValuelessOperator, O as getOperatorsForField, P as reconcileValueForOperator, R as resolveFilterTypeDefinition, S as FILTER_SIZE_TOKENS, T as emptyValueForRule, U as DataTableCompactBar, V as useTableControls, _ as EMPTY_FILTER_STATE, a as encodeFilterStateToUrlParam, b as resolveValueControl, c as FilterBar_default, d as TableViewConfiguration, f as TableViewConfigurationDropdown, g as pruneToRegistry, h as isFilterStateV2, i as decodeFilterStateFromUrl, j as isNumericComparisonOperator, k as getOperatorsForType, l as resolveDateRangeRuleValue, m as hasCompleteValue, n as applyFilterStateToSearchParams, o as FieldRegistry, p as useFilterStateV2, r as decodeFilterStateFromString, s as buildFieldRegistry, t as FILTER_STATE_URL_PARAM, u as TableControls, v as isEmptyState, w as NUMERIC_COMPARISON_OPERATORS, x as dateRuleIntent, y as PillShell, z as TableControlsContext } from "../../../TableControls-
|
|
1
|
+
import { A as isCompleteDateRange, B as TableControlsProvider, C as useFilterBarSize, D as getDefaultOperatorForType, E as getConditionValueError, F as FiltersContainer, H as ControlBar, I as getActiveFilters, L as isFilterActive, M as isRangeOperator, N as isValuelessOperator, O as getOperatorsForField, P as reconcileValueForOperator, R as resolveFilterTypeDefinition, S as FILTER_SIZE_TOKENS, T as emptyValueForRule, U as DataTableCompactBar, V as useTableControls, _ as EMPTY_FILTER_STATE, a as encodeFilterStateToUrlParam, b as resolveValueControl, c as FilterBar_default, d as TableViewConfiguration, f as TableViewConfigurationDropdown, g as pruneToRegistry, h as isFilterStateV2, i as decodeFilterStateFromUrl, j as isNumericComparisonOperator, k as getOperatorsForType, l as resolveDateRangeRuleValue, m as hasCompleteValue, n as applyFilterStateToSearchParams, o as FieldRegistry, p as useFilterStateV2, r as decodeFilterStateFromString, s as buildFieldRegistry, t as FILTER_STATE_URL_PARAM, u as TableControls, v as isEmptyState, w as NUMERIC_COMPARISON_OPERATORS, x as dateRuleIntent, y as PillShell, z as TableControlsContext } from "../../../TableControls-DM4RddQ_.mjs";
|
|
2
2
|
export { ControlBar, DataTableCompactBar, EMPTY_FILTER_STATE, FILTER_SIZE_TOKENS, FILTER_STATE_URL_PARAM, FieldRegistry, FilterBar_default as FilterBar, FiltersContainer, NUMERIC_COMPARISON_OPERATORS, PillShell, TableControlsContext, TableControlsProvider, TableViewConfiguration, TableViewConfigurationDropdown, applyFilterStateToSearchParams, buildFieldRegistry, dateRuleIntent, decodeFilterStateFromString, decodeFilterStateFromUrl, TableControls as default, emptyValueForRule, encodeFilterStateToUrlParam, getActiveFilters, getConditionValueError, getDefaultOperatorForType, getOperatorsForField, getOperatorsForType, hasCompleteValue, isCompleteDateRange, isEmptyState, isFilterActive, isFilterStateV2, isNumericComparisonOperator, isRangeOperator, isValuelessOperator, pruneToRegistry, reconcileValueForOperator, resolveDateRangeRuleValue, resolveFilterTypeDefinition, resolveValueControl, useFilterBarSize, useFilterStateV2, useTableControls };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as RowAction, D as RowDataWithTourTarget, E as RowDataWithSubrowsToAlwaysShowIds, O as SortProps, S as RenderValueStickerFormatConfig, T as RowDataWithSubrows, _ as DataTableColumns, a as DataTableColumnBaseFormat, b as DatetimeConfig, c as DataTableColumnDatetimeFormat, d as DataTableColumnImageFormat, f as DataTableColumnNumberFormat, g as DataTableColumnURLFormat, h as DataTableColumnStringFormat, i as ColumnConfig, k as StickerMapping, l as DataTableColumnFormat, m as DataTableColumnStickerFormat, n as ClientFilterConfig, o as DataTableColumnCheckboxFormat, p as DataTableColumnPiiFormat, r as ClientFilterType, s as DataTableColumnDateFormat, t as BulkAction, u as DataTableColumnIDFormat, v as DataTableVariables, w as RowDataWithDetails, x as HeadlessFilterConfig, y as DateConfig } from "../../types-
|
|
2
|
-
import { r as useTableColumns, t as RenderFormatFn } from "../../useTableColumns-
|
|
3
|
-
import { a as FloatingActionBarContainer, i as DataTableProps, n as DataTableContainer, r as DataTableControls, t as DataTable } from "../../DataTable-
|
|
4
|
-
import { t as FloatingActionBar } from "../../FloatingActionBar-
|
|
1
|
+
import { C as RowAction, D as RowDataWithTourTarget, E as RowDataWithSubrowsToAlwaysShowIds, O as SortProps, S as RenderValueStickerFormatConfig, T as RowDataWithSubrows, _ as DataTableColumns, a as DataTableColumnBaseFormat, b as DatetimeConfig, c as DataTableColumnDatetimeFormat, d as DataTableColumnImageFormat, f as DataTableColumnNumberFormat, g as DataTableColumnURLFormat, h as DataTableColumnStringFormat, i as ColumnConfig, k as StickerMapping, l as DataTableColumnFormat, m as DataTableColumnStickerFormat, n as ClientFilterConfig, o as DataTableColumnCheckboxFormat, p as DataTableColumnPiiFormat, r as ClientFilterType, s as DataTableColumnDateFormat, t as BulkAction, u as DataTableColumnIDFormat, v as DataTableVariables, w as RowDataWithDetails, x as HeadlessFilterConfig, y as DateConfig } from "../../types-CUnL8JJj.mjs";
|
|
2
|
+
import { r as useTableColumns, t as RenderFormatFn } from "../../useTableColumns-BuxN7Usm.mjs";
|
|
3
|
+
import { a as FloatingActionBarContainer, i as DataTableProps, n as DataTableContainer, r as DataTableControls, t as DataTable } from "../../DataTable-on3vGhyi.mjs";
|
|
4
|
+
import { t as FloatingActionBar } from "../../FloatingActionBar-CfgjHs81.mjs";
|
|
5
5
|
import { t as Inserter } from "../../Inserter-BtUatmsd.mjs";
|
|
6
|
-
import { n as getFilterFnName, t as generateClientFilters } from "../../clientFilterUtils-
|
|
6
|
+
import { n as getFilterFnName, t as generateClientFilters } from "../../clientFilterUtils-CaF2QZBy.mjs";
|
|
7
7
|
import { t as getColumnWidths } from "../../constants-DMTL6rF3.mjs";
|
|
8
|
-
import { a as renderAsDate, c as renderAsNumber, d as renderAsSticker, f as renderAsString, i as renderAsCopyableString, l as renderAsPDSFormat, n as renderAsCheckbox, o as renderAsDatetime, p as renderAsURL, r as renderAsCheckboxHeader, s as renderAsLightweightImage, t as PDSFormatOptions, u as renderAsPii } from "../../helpers-
|
|
8
|
+
import { a as renderAsDate, c as renderAsNumber, d as renderAsSticker, f as renderAsString, i as renderAsCopyableString, l as renderAsPDSFormat, n as renderAsCheckbox, o as renderAsDatetime, p as renderAsURL, r as renderAsCheckboxHeader, s as renderAsLightweightImage, t as PDSFormatOptions, u as renderAsPii } from "../../helpers-Bbi1LyMW.mjs";
|
|
9
9
|
export { BulkAction, ClientFilterConfig, ClientFilterType, ColumnConfig, DataTable, DataTable as default, DataTableColumnBaseFormat, DataTableColumnCheckboxFormat, DataTableColumnDateFormat, DataTableColumnDatetimeFormat, DataTableColumnFormat, DataTableColumnIDFormat, DataTableColumnImageFormat, DataTableColumnNumberFormat, DataTableColumnPiiFormat, DataTableColumnStickerFormat, DataTableColumnStringFormat, DataTableColumnURLFormat, DataTableColumns, DataTableContainer, DataTableControls, DataTableProps, DataTableVariables, DateConfig, DatetimeConfig, FloatingActionBar, FloatingActionBarContainer, HeadlessFilterConfig, Inserter, PDSFormatOptions, RenderFormatFn, RenderValueStickerFormatConfig, RowAction, RowDataWithDetails, RowDataWithSubrows, RowDataWithSubrowsToAlwaysShowIds, RowDataWithTourTarget, SortProps, StickerMapping, generateClientFilters, getColumnWidths, getFilterFnName, renderAsCheckbox, renderAsCheckboxHeader, renderAsCopyableString, renderAsDate, renderAsDatetime, renderAsLightweightImage, renderAsNumber, renderAsPDSFormat, renderAsPii, renderAsSticker, renderAsString, renderAsURL, useTableColumns };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as getFilterFnName, _ as renderAsString, a as useTableColumns, b as getColumnWidths, c as renderAsCheckboxHeader, d as renderAsDatetime, f as renderAsLightweightImage, g as renderAsSticker, h as renderAsPii, i as FloatingActionBarContainer, l as renderAsCopyableString, m as renderAsPDSFormat, n as DataTableContainer, o as Inserter, p as renderAsNumber, r as DataTableControls, s as renderAsCheckbox, t as DataTable, u as renderAsDate, v as renderAsURL, x as generateClientFilters, y as FloatingActionBar } from "../../DataTable-
|
|
1
|
+
import { S as getFilterFnName, _ as renderAsString, a as useTableColumns, b as getColumnWidths, c as renderAsCheckboxHeader, d as renderAsDatetime, f as renderAsLightweightImage, g as renderAsSticker, h as renderAsPii, i as FloatingActionBarContainer, l as renderAsCopyableString, m as renderAsPDSFormat, n as DataTableContainer, o as Inserter, p as renderAsNumber, r as DataTableControls, s as renderAsCheckbox, t as DataTable, u as renderAsDate, v as renderAsURL, x as generateClientFilters, y as FloatingActionBar } from "../../DataTable-DZ0B2Zm9.mjs";
|
|
2
2
|
export { DataTable, DataTable as default, DataTableContainer, DataTableControls, FloatingActionBar, FloatingActionBarContainer, Inserter, generateClientFilters, getColumnWidths, getFilterFnName, renderAsCheckbox, renderAsCheckboxHeader, renderAsCopyableString, renderAsDate, renderAsDatetime, renderAsLightweightImage, renderAsNumber, renderAsPDSFormat, renderAsPii, renderAsSticker, renderAsString, renderAsURL, useTableColumns };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as RowAction, D as RowDataWithTourTarget, E as RowDataWithSubrowsToAlwaysShowIds, O as SortProps, S as RenderValueStickerFormatConfig, T as RowDataWithSubrows, _ as DataTableColumns, a as DataTableColumnBaseFormat, b as DatetimeConfig, c as DataTableColumnDatetimeFormat, d as DataTableColumnImageFormat, f as DataTableColumnNumberFormat, g as DataTableColumnURLFormat, h as DataTableColumnStringFormat, i as ColumnConfig, k as StickerMapping, l as DataTableColumnFormat, m as DataTableColumnStickerFormat, n as ClientFilterConfig, o as DataTableColumnCheckboxFormat, p as DataTableColumnPiiFormat, r as ClientFilterType, s as DataTableColumnDateFormat, t as BulkAction, u as DataTableColumnIDFormat, v as DataTableVariables, w as RowDataWithDetails, x as HeadlessFilterConfig, y as DateConfig } from "../../types-
|
|
1
|
+
import { C as RowAction, D as RowDataWithTourTarget, E as RowDataWithSubrowsToAlwaysShowIds, O as SortProps, S as RenderValueStickerFormatConfig, T as RowDataWithSubrows, _ as DataTableColumns, a as DataTableColumnBaseFormat, b as DatetimeConfig, c as DataTableColumnDatetimeFormat, d as DataTableColumnImageFormat, f as DataTableColumnNumberFormat, g as DataTableColumnURLFormat, h as DataTableColumnStringFormat, i as ColumnConfig, k as StickerMapping, l as DataTableColumnFormat, m as DataTableColumnStickerFormat, n as ClientFilterConfig, o as DataTableColumnCheckboxFormat, p as DataTableColumnPiiFormat, r as ClientFilterType, s as DataTableColumnDateFormat, t as BulkAction, u as DataTableColumnIDFormat, v as DataTableVariables, w as RowDataWithDetails, x as HeadlessFilterConfig, y as DateConfig } from "../../types-CUnL8JJj.mjs";
|
|
2
2
|
export { BulkAction, ClientFilterConfig, ClientFilterType, ColumnConfig, DataTableColumnBaseFormat, DataTableColumnCheckboxFormat, DataTableColumnDateFormat, DataTableColumnDatetimeFormat, DataTableColumnFormat, DataTableColumnIDFormat, DataTableColumnImageFormat, DataTableColumnNumberFormat, DataTableColumnPiiFormat, DataTableColumnStickerFormat, DataTableColumnStringFormat, DataTableColumnURLFormat, DataTableColumns, DataTableVariables, DateConfig, DatetimeConfig, HeadlessFilterConfig, RenderValueStickerFormatConfig, RowAction, RowDataWithDetails, RowDataWithSubrows, RowDataWithSubrowsToAlwaysShowIds, RowDataWithTourTarget, SortProps, StickerMapping };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RangeCalendar, i as DateField, n as Calendar, r as DateRangePicker, t as DatePicker } from "../../DatePicker-
|
|
1
|
+
import { a as RangeCalendar, i as DateField, n as Calendar, r as DateRangePicker, t as DatePicker } from "../../DatePicker-CHVYVKB-.mjs";
|
|
2
2
|
export { Calendar, DateField, DatePicker, DatePicker as default, DateRangePicker, RangeCalendar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "../../DropdownMenu-
|
|
1
|
+
import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "../../DropdownMenu-eVY-Yjpq.mjs";
|
|
2
2
|
export { DropdownMenu, DropdownMenuProps, _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as FormFieldBaseProps, r as FormFieldProps, t as FormField } from "../../FormField-BW5uMzId.mjs";
|
|
2
|
-
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "../../inputFields-
|
|
3
|
-
import { t as CheckboxGroupField } from "../../CheckboxGroupField-
|
|
4
|
-
import { t as ListBoxField } from "../../ListBoxField-
|
|
5
|
-
import { a as TableBoxFieldActionGroup, i as TableBoxFieldActionEntry, n as TableBoxField, r as TableBoxFieldAction, t as TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL } from "../../TableBoxField-
|
|
2
|
+
import { _ as ToggleField, a as ComboboxSingleSelectFieldProps, c as RadioGroupFieldProps, d as SelectField, f as SelectFieldProps, g as TextFieldProps, h as TextField, i as ComboboxMultiSelectFieldProps, l as SegmentedControlField, m as TextAreaFieldProps, n as CheckboxFieldProps, o as ImplementsFormField, p as TextAreaField, r as ComboboxField, s as RadioGroupField, t as CheckboxField, u as SegmentedControlFieldProps, v as ToggleFieldProps, y as splitOutFormFieldProps } from "../../inputFields-Dobwb4kT.mjs";
|
|
3
|
+
import { t as CheckboxGroupField } from "../../CheckboxGroupField-BW_BcW3L.mjs";
|
|
4
|
+
import { t as ListBoxField } from "../../ListBoxField-Cc1sX2bo.mjs";
|
|
5
|
+
import { a as TableBoxFieldActionGroup, i as TableBoxFieldActionEntry, n as TableBoxField, r as TableBoxFieldAction, t as TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL } from "../../TableBoxField-CHpClgsE.mjs";
|
|
6
6
|
export { CheckboxField, CheckboxFieldProps, CheckboxGroupField, ComboboxField, ComboboxMultiSelectFieldProps, ComboboxSingleSelectFieldProps, FormField, FormField as default, FormFieldBaseProps, FormFieldProps, ImplementsFormField, ListBoxField, RadioGroupField, RadioGroupFieldProps, SegmentedControlField, SegmentedControlFieldProps, SelectField, SelectFieldProps, TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL, TableBoxField, TableBoxFieldAction, TableBoxFieldActionEntry, TableBoxFieldActionGroup, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, ToggleField, ToggleFieldProps, splitOutFormFieldProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CheckboxField, c as SegmentedControlField, d as TextField, f as ToggleField, i as CheckboxGroupField, l as SelectField, m as FormField, n as TableBoxField, o as ComboboxField, p as splitOutFormFieldProps, r as ListBoxField, s as RadioGroupField, t as TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL, u as TextAreaField } from "../../FormField-
|
|
1
|
+
import { a as CheckboxField, c as SegmentedControlField, d as TextField, f as ToggleField, i as CheckboxGroupField, l as SelectField, m as FormField, n as TableBoxField, o as ComboboxField, p as splitOutFormFieldProps, r as ListBoxField, s as RadioGroupField, t as TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL, u as TextAreaField } from "../../FormField-BfVrDOY0.mjs";
|
|
2
2
|
export { CheckboxField, CheckboxGroupField, ComboboxField, FormField, FormField as default, ListBoxField, RadioGroupField, SegmentedControlField, SelectField, TABLE_BOX_FIELD_ADD_BUTTON_ARIA_LABEL, TableBoxField, TextAreaField, TextField, ToggleField, splitOutFormFieldProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as HoverCopyableField } from "../../HoverCopyableField-
|
|
1
|
+
import { t as HoverCopyableField } from "../../HoverCopyableField-CJ_p3llp.mjs";
|
|
2
2
|
export { HoverCopyableField as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Link } from "../../Link-
|
|
1
|
+
import { t as Link } from "../../Link-Df3zJrj2.mjs";
|
|
2
2
|
export { Link, Link as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as useListBoxContext, n as ListBoxItemProps, r as ListBoxProps } from "../../ListBox-
|
|
2
|
-
import { n as LogicRowProps } from "../../LogicRow-
|
|
3
|
-
import { t as ListBox } from "../../index-
|
|
1
|
+
import { i as useListBoxContext, n as ListBoxItemProps, r as ListBoxProps } from "../../ListBox-Bgug8YZF.mjs";
|
|
2
|
+
import { n as LogicRowProps } from "../../LogicRow-B1_35ZJT.mjs";
|
|
3
|
+
import { t as ListBox } from "../../index-3-eDlpcj.mjs";
|
|
4
4
|
export { ListBox, ListBox as default, ListBoxItemProps, ListBoxProps, LogicRowProps, useListBoxContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useListBoxContext, t as ListBox } from "../../ListBox-
|
|
1
|
+
import { n as useListBoxContext, t as ListBox } from "../../ListBox-BRgjgUSp.mjs";
|
|
2
2
|
export { ListBox, ListBox as default, useListBoxContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MenuDivider, c as MenuItem, d as MenuList, f as MenuProps, i as Menu, l as MenuItemProps, n as IconContainer, o as MenuHeading, r as ListItem, s as MenuHeadingProps, t as FloatingCard, u as MenuItemType } from "../../Menu-
|
|
1
|
+
import { a as MenuDivider, c as MenuItem, d as MenuList, f as MenuProps, i as Menu, l as MenuItemProps, n as IconContainer, o as MenuHeading, r as ListItem, s as MenuHeadingProps, t as FloatingCard, u as MenuItemType } from "../../Menu-keVl-eKm.mjs";
|
|
2
2
|
export { FloatingCard, IconContainer, ListItem, Menu, Menu as default, MenuDivider, MenuHeading, MenuHeadingProps, MenuItem, MenuItemProps, MenuItemType, MenuList, MenuProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as Modal_default, n as ModalContent, r as ModalTrigger, t as ModalClose } from "../../Modal-
|
|
1
|
+
import { i as Modal_default, n as ModalContent, r as ModalTrigger, t as ModalClose } from "../../Modal-SnCo7ecm.mjs";
|
|
2
2
|
export { ModalClose, ModalContent, ModalTrigger, Modal_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Pii_default } from "../../Pii-
|
|
1
|
+
import { t as Pii_default } from "../../Pii-BYPkrBuT.mjs";
|
|
2
2
|
export { Pii_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PopoverPortal, i as PopoverContent, n as PopoverCard, o as PopoverTrigger, r as PopoverClose, s as Popover_default, t as PopoverAnchor } from "../../Popover-
|
|
1
|
+
import { a as PopoverPortal, i as PopoverContent, n as PopoverCard, o as PopoverTrigger, r as PopoverClose, s as Popover_default, t as PopoverAnchor } from "../../Popover-DP9DXReH.mjs";
|
|
2
2
|
export { PopoverAnchor, PopoverCard, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Popover_default as default };
|
|
@@ -11,8 +11,8 @@ import { t as HStack } from "../../Stack-Bzom2BTR.mjs";
|
|
|
11
11
|
import { n as Button } from "../../IconButton-Bj1fry_K.mjs";
|
|
12
12
|
import { t as intersperse } from "../../intersperse-DvJsBw5D.mjs";
|
|
13
13
|
import { n as DropdownMenu_default } from "../../DropdownMenu-Ip75l4Th.mjs";
|
|
14
|
-
import { s as Popover_default } from "../../Popover-
|
|
15
|
-
import { d as TextField } from "../../FormField-
|
|
14
|
+
import { s as Popover_default } from "../../Popover-DP9DXReH.mjs";
|
|
15
|
+
import { d as TextField } from "../../FormField-BfVrDOY0.mjs";
|
|
16
16
|
import { n as ensureProtocol, t as FloatingToolbar } from "../../FloatingToolbar-BA8Fqmrz.mjs";
|
|
17
17
|
import { Fragment, useEffect, useRef, useState } from "react";
|
|
18
18
|
import { BorderRadius, Color, Spacing } from "@persona/design-tokens";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SelectProps, n as Select, r as SelectHeader, t as Option } from "../../Select-
|
|
1
|
+
import { i as SelectProps, n as Select, r as SelectHeader, t as Option } from "../../Select-CiofH5-f.mjs";
|
|
2
2
|
export { Option, Select, Select as default, SelectHeader, SelectProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { a as styled, r as css } from "../../styledComponentsInterop-Cs5CCPRy.mjs";
|
|
2
|
+
import { semanticColor } from "../../lib/semanticColor.mjs";
|
|
2
3
|
import { i as Paragraph } from "../../Text-D0vEReED.mjs";
|
|
3
4
|
import { rotate } from "../../variables/keyframes.mjs";
|
|
4
5
|
import { JsonSchemaStringifiableTypes, getNonNullableRefSchema, getNonNullableType, isFunctionSchema, isJsonSchemaArray, isSchemaTypeAllowed } from "../../lib/jsonSchema.mjs";
|
|
@@ -16,7 +17,7 @@ import { n as Button } from "../../IconButton-Bj1fry_K.mjs";
|
|
|
16
17
|
import { n as useFormField } from "../../useFormField-pOVkb5BK.mjs";
|
|
17
18
|
import Input_default from "../Input/index.mjs";
|
|
18
19
|
import { n as ErrorText } from "../../FormControl-BoKGiWdQ.mjs";
|
|
19
|
-
import { m as FormField, n as TableBoxField, p as splitOutFormFieldProps } from "../../FormField-
|
|
20
|
+
import { m as FormField, n as TableBoxField, p as splitOutFormFieldProps } from "../../FormField-BfVrDOY0.mjs";
|
|
20
21
|
import PillType from "./PillType.mjs";
|
|
21
22
|
import { ErrorMessageByKind, NodeType, isASTChainNode, isASTContainerNode, isMethodChainNode } from "./parser/smart-text/types.mjs";
|
|
22
23
|
import { enclosingExpr, findAll, resolve } from "./parser/tree.mjs";
|
|
@@ -81,7 +82,7 @@ const Overlay = styled.div`
|
|
|
81
82
|
overflow: hidden;
|
|
82
83
|
|
|
83
84
|
${({ $size }) => $size === "sm" && css`
|
|
84
|
-
font-size:
|
|
85
|
+
font-size: ${Typography.TextSmall.fontSize};
|
|
85
86
|
margin: 0 9px;
|
|
86
87
|
`};
|
|
87
88
|
${({ $variant }) => $variant === "table-cell" && css`
|
|
@@ -115,7 +116,7 @@ const MonoSpan = styled.span`
|
|
|
115
116
|
content: '';
|
|
116
117
|
position: absolute;
|
|
117
118
|
inset: -2px;
|
|
118
|
-
background-color: ${Color.CoreRed600};
|
|
119
|
+
background-color: ${({ theme }) => semanticColor(theme, "FeedbackDanger3", Color.CoreRed600)};
|
|
119
120
|
opacity: 0.1;
|
|
120
121
|
pointer-events: none;
|
|
121
122
|
}
|
|
@@ -133,7 +134,7 @@ const MonoSpan = styled.span`
|
|
|
133
134
|
content: '';
|
|
134
135
|
position: absolute;
|
|
135
136
|
inset: -2px;
|
|
136
|
-
background-color: ${Color.CoreBlue600};
|
|
137
|
+
background-color: ${({ theme }) => semanticColor(theme, "FeedbackInfo3", Color.CoreBlue600)};
|
|
137
138
|
opacity: 0.1;
|
|
138
139
|
pointer-events: none;
|
|
139
140
|
}
|
|
@@ -274,6 +275,7 @@ const HighlightedTextOverlay = forwardRef(function HighlightedTextOverlay({ chil
|
|
|
274
275
|
const HighlightedText = ({ value, tree, focused, interactive, schemaValidator, onLinkMouseDown, dontHighlightErrors = false, cursorIdx }) => {
|
|
275
276
|
const runs = buildHighlights(tree, value, focused, schemaValidator);
|
|
276
277
|
const linkMap = /* @__PURE__ */ new Map();
|
|
278
|
+
const paramEntries = /* @__PURE__ */ new Map();
|
|
277
279
|
findAll(tree, NodeType.Chain).forEach((chainNode) => {
|
|
278
280
|
if (!isASTChainNode(chainNode)) return;
|
|
279
281
|
chainNode.children.forEach((link) => {
|
|
@@ -284,7 +286,7 @@ const HighlightedText = ({ value, tree, focused, interactive, schemaValidator, o
|
|
|
284
286
|
});
|
|
285
287
|
if (link.type === NodeType.Function || link.type === NodeType.CustomFunction) {
|
|
286
288
|
if (link.children.some((child) => child.type === NodeType.ParenClose)) {
|
|
287
|
-
for (const child of link.children) if (child.type !== NodeType.Error && child.type !== NodeType.ParenOpen && child.type !== NodeType.ParenClose)
|
|
289
|
+
for (const child of link.children) if (child.type !== NodeType.Error && child.type !== NodeType.ParenOpen && child.type !== NodeType.ParenClose) paramEntries.set(child.start, {
|
|
288
290
|
start: child.start,
|
|
289
291
|
end: child.start
|
|
290
292
|
});
|
|
@@ -293,6 +295,7 @@ const HighlightedText = ({ value, tree, focused, interactive, schemaValidator, o
|
|
|
293
295
|
}
|
|
294
296
|
});
|
|
295
297
|
});
|
|
298
|
+
paramEntries.forEach((entry, start) => linkMap.set(start, entry));
|
|
296
299
|
let pos = 0;
|
|
297
300
|
return /* @__PURE__ */ jsx(Fragment$1, { children: runs.map((r) => {
|
|
298
301
|
const start = pos;
|
|
@@ -402,8 +405,9 @@ const scrollInputToCursor = (inputRef, cursorIdx) => {
|
|
|
402
405
|
* accepted chain roots.
|
|
403
406
|
*/
|
|
404
407
|
const isChainWithValidRoot = (value, chainRoots, { onlyAllowSingleLink = false } = {}) => {
|
|
405
|
-
const
|
|
406
|
-
|
|
408
|
+
const tree = safeParse(value, { startRule: "ChainRoot" });
|
|
409
|
+
const firstChild = (tree.children ?? [])[0];
|
|
410
|
+
return !findAll(tree, NodeType.Error).some((e) => !e.wip) && firstChild != null && firstChild.type === NodeType.Chain && isASTChainNode(firstChild) && chainRoots.some((r) => {
|
|
407
411
|
const firstLink = firstChild.children[0];
|
|
408
412
|
return firstLink != null && isMethodChainNode(firstLink) && r.label === firstLink.name;
|
|
409
413
|
}) && (!onlyAllowSingleLink || firstChild.children.length === 1);
|
|
@@ -462,7 +466,7 @@ const replaceChainAtCursor = (value, valueType, cursorIdx, tree, newChainString)
|
|
|
462
466
|
newCursorIdx: cursorIdx ?? value.length
|
|
463
467
|
};
|
|
464
468
|
const before = value.slice(0, openNode.end);
|
|
465
|
-
const after =
|
|
469
|
+
const after = value.slice(closeNode ? closeNode.start : expr.end);
|
|
466
470
|
return {
|
|
467
471
|
newValue: before + newChainString + after,
|
|
468
472
|
newCursorIdx: before.length + newChainString.length
|
|
@@ -582,7 +586,8 @@ const getConfirmLinkCursorPos = (tree, valueType, currentChain, chain, schema, c
|
|
|
582
586
|
*
|
|
583
587
|
* TODO: Add more sophistication here (e.g. fuzzy matching, etc.)
|
|
584
588
|
*/
|
|
585
|
-
const isQueryMatch = (
|
|
589
|
+
const isQueryMatch = (rawQuery, chain) => {
|
|
590
|
+
const query = rawQuery.toLowerCase();
|
|
586
591
|
const prop = chain.property.toLowerCase();
|
|
587
592
|
if (query.startsWith("@")) return prop.startsWith(query);
|
|
588
593
|
return (prop.startsWith("@") ? prop.slice(1) : prop).startsWith(query);
|
|
@@ -861,6 +866,7 @@ const SmartTextInputPopover = ({ id, children, comboboxState, inputRef, popoverR
|
|
|
861
866
|
$isDialog: isDialog,
|
|
862
867
|
id,
|
|
863
868
|
style: {
|
|
869
|
+
...popoverProps.style,
|
|
864
870
|
zIndex: Z_INDICES.modalDropdown,
|
|
865
871
|
width: popoverWidth
|
|
866
872
|
},
|
|
@@ -951,6 +957,7 @@ const buildTextModeHeading = (nodes) => {
|
|
|
951
957
|
parts.push("String");
|
|
952
958
|
return parts.join(", ");
|
|
953
959
|
};
|
|
960
|
+
const isListboxEmptyState = (collection, mode, isLoading) => [...collection].length === 0 || mode !== "text" && !!isLoading;
|
|
954
961
|
const ListboxOption = ({ item, state }) => {
|
|
955
962
|
const ref = useRef(null);
|
|
956
963
|
const { optionProps, isFocused } = useOption({ key: item.id }, state, ref);
|
|
@@ -1002,44 +1009,59 @@ const ListboxOption = ({ item, state }) => {
|
|
|
1002
1009
|
});
|
|
1003
1010
|
}
|
|
1004
1011
|
};
|
|
1005
|
-
const SmartTextInputListbox = ({ comboboxState, listBoxRef, listBoxProps, mode, isLoading, openCodeChainFunctionPanel }) => {
|
|
1012
|
+
const SmartTextInputListbox = ({ comboboxState, listBoxRef, listBoxProps, mode, isLoading, openCodeChainFunctionPanel, footerButtonId, isFooterHighlighted = false }) => {
|
|
1006
1013
|
const listBox = useListBox({
|
|
1007
1014
|
...listBoxProps,
|
|
1008
1015
|
"aria-label": mode === "text" ? "Context menu" : "Data path options"
|
|
1009
1016
|
}, comboboxState, listBoxRef);
|
|
1010
1017
|
const nodes = [...comboboxState.collection];
|
|
1011
|
-
|
|
1018
|
+
const showEmptyState = isListboxEmptyState(comboboxState.collection, mode, isLoading);
|
|
1019
|
+
const footerButtonRef = useRef(null);
|
|
1020
|
+
useEffect(() => {
|
|
1021
|
+
if (isFooterHighlighted) footerButtonRef.current?.scrollIntoView?.({ block: "nearest" });
|
|
1022
|
+
}, [isFooterHighlighted]);
|
|
1023
|
+
const headings = /* @__PURE__ */ jsxs(Fragment$1, { children: [mode === "method-chain" && nodes[0]?.value?.id !== "exitMethodChainValueType" && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(StyledListboxOption, {
|
|
1024
|
+
$bottomBorder: true,
|
|
1025
|
+
children: /* @__PURE__ */ jsx(OptionLabel, {
|
|
1026
|
+
$heading: true,
|
|
1027
|
+
children: "Data path"
|
|
1028
|
+
})
|
|
1029
|
+
}) }), mode === "text" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(StyledListboxOption, {
|
|
1030
|
+
$bottomBorder: true,
|
|
1031
|
+
children: /* @__PURE__ */ jsx(OptionLabel, {
|
|
1032
|
+
$heading: true,
|
|
1033
|
+
children: buildTextModeHeading(nodes)
|
|
1034
|
+
})
|
|
1035
|
+
}), /* @__PURE__ */ jsx(StyledListboxOption, { children: /* @__PURE__ */ jsx(OptionLabel, {
|
|
1036
|
+
$heading: true,
|
|
1037
|
+
children: "Modes"
|
|
1038
|
+
}) })] })] });
|
|
1039
|
+
const footer = showEmptyState && openCodeChainFunctionPanel ? /* @__PURE__ */ jsx(FooterContainer, { children: /* @__PURE__ */ jsx(Button, {
|
|
1040
|
+
ref: footerButtonRef,
|
|
1041
|
+
id: footerButtonId,
|
|
1042
|
+
role: "option",
|
|
1043
|
+
"aria-selected": isFooterHighlighted,
|
|
1044
|
+
type: "button",
|
|
1045
|
+
tabIndex: -1,
|
|
1046
|
+
variant: "basic",
|
|
1047
|
+
size: "sm",
|
|
1048
|
+
active: isFooterHighlighted,
|
|
1049
|
+
onClick: openCodeChainFunctionPanel,
|
|
1050
|
+
children: "Create custom chain"
|
|
1051
|
+
}) }) : null;
|
|
1052
|
+
const listBoxElement = showEmptyState ? /* @__PURE__ */ jsx(StyledListBox, {
|
|
1012
1053
|
ref: listBoxRef,
|
|
1013
1054
|
...listBox.listBoxProps,
|
|
1014
|
-
children:
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
mode === "text" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(StyledListboxOption, {
|
|
1023
|
-
$bottomBorder: true,
|
|
1024
|
-
children: /* @__PURE__ */ jsx(OptionLabel, {
|
|
1025
|
-
$heading: true,
|
|
1026
|
-
children: buildTextModeHeading(nodes)
|
|
1027
|
-
})
|
|
1028
|
-
}), /* @__PURE__ */ jsx(StyledListboxOption, { children: /* @__PURE__ */ jsx(OptionLabel, {
|
|
1029
|
-
$heading: true,
|
|
1030
|
-
children: "Modes"
|
|
1031
|
-
}) })] }),
|
|
1032
|
-
nodes.length === 0 || mode !== "text" && isLoading ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(EmptyOptionList, { children: "No options available" }), openCodeChainFunctionPanel && /* @__PURE__ */ jsx(FooterContainer, { children: /* @__PURE__ */ jsx(Button, {
|
|
1033
|
-
variant: "basic",
|
|
1034
|
-
size: "sm",
|
|
1035
|
-
onClick: openCodeChainFunctionPanel,
|
|
1036
|
-
children: "Create custom chain"
|
|
1037
|
-
}) })] }) : nodes.map((node) => node.value ? /* @__PURE__ */ jsx(ListboxOption, {
|
|
1038
|
-
item: node.value,
|
|
1039
|
-
state: comboboxState
|
|
1040
|
-
}, node.key) : null)
|
|
1041
|
-
]
|
|
1055
|
+
children: footer
|
|
1056
|
+
}) : /* @__PURE__ */ jsxs(StyledListBox, {
|
|
1057
|
+
ref: listBoxRef,
|
|
1058
|
+
...listBox.listBoxProps,
|
|
1059
|
+
children: [headings, nodes.map((node) => node.value ? /* @__PURE__ */ jsx(ListboxOption, {
|
|
1060
|
+
item: node.value,
|
|
1061
|
+
state: comboboxState
|
|
1062
|
+
}, node.key) : null)]
|
|
1042
1063
|
});
|
|
1064
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [showEmptyState && /* @__PURE__ */ jsxs(Fragment$1, { children: [headings, /* @__PURE__ */ jsx(EmptyOptionList, { children: "No options available" })] }), listBoxElement] });
|
|
1043
1065
|
};
|
|
1044
1066
|
//#endregion
|
|
1045
1067
|
//#region src/components/SmartTextInput/useChainAtCursor.ts
|
|
@@ -1091,7 +1113,10 @@ function extractChainContextAtCursor(tree, cursorIdx, valueType, assumeOnNextLin
|
|
|
1091
1113
|
}
|
|
1092
1114
|
if (!shouldInclude) {
|
|
1093
1115
|
cutoffIdx = i;
|
|
1094
|
-
if (!assumeOnNextLink && link.start < idx)
|
|
1116
|
+
if (!assumeOnNextLink && link.start < idx) {
|
|
1117
|
+
const linkText = link.type === NodeType.CustomFunction ? `@${link.name}` : link.name;
|
|
1118
|
+
partialQuery = linkText.slice(0, Math.min(idx - link.start, linkText.length));
|
|
1119
|
+
}
|
|
1095
1120
|
break;
|
|
1096
1121
|
}
|
|
1097
1122
|
}
|
|
@@ -1372,12 +1397,12 @@ const StyledInput = styled(Input_default)`
|
|
|
1372
1397
|
overflow: hidden;
|
|
1373
1398
|
|
|
1374
1399
|
${({ size }) => size === "sm" && css`
|
|
1375
|
-
font-size:
|
|
1400
|
+
font-size: ${Typography.TextSmall.fontSize};
|
|
1376
1401
|
`}
|
|
1377
1402
|
${({ $variant }) => $variant === "table-cell" && css`
|
|
1378
1403
|
border: none;
|
|
1379
1404
|
padding: 0;
|
|
1380
|
-
height:
|
|
1405
|
+
height: ${Typography.TextSmall.lineHeight};
|
|
1381
1406
|
border-radius: 0;
|
|
1382
1407
|
`}
|
|
1383
1408
|
`;
|
|
@@ -1729,6 +1754,19 @@ const SmartTextInput = ({ value: passedValue, onChange, valueType: allowedValueT
|
|
|
1729
1754
|
});
|
|
1730
1755
|
const showFunctionDialog = popupMode === "function-dialog" && comboboxState.isOpen;
|
|
1731
1756
|
const showCodeDialog = popupMode === "code-dialog" && comboboxState.isOpen;
|
|
1757
|
+
const openCustomChainPanel = openCcfPanel ? () => openCcfPanel({
|
|
1758
|
+
initialName: query,
|
|
1759
|
+
inputSchema: currentSchema
|
|
1760
|
+
}) : void 0;
|
|
1761
|
+
const customChainButtonId = `${id}__create-custom-chain`;
|
|
1762
|
+
const showCustomChainFooter = openCustomChainPanel != null && comboboxState.isOpen && !showFunctionDialog && !showCodeDialog && isListboxEmptyState(comboboxState.collection, mode, isLoading);
|
|
1763
|
+
const [isCustomChainHighlighted, setIsCustomChainHighlighted] = useState(false);
|
|
1764
|
+
useEffect(() => {
|
|
1765
|
+
if (!showCustomChainFooter) setIsCustomChainHighlighted(false);
|
|
1766
|
+
}, [showCustomChainFooter]);
|
|
1767
|
+
useEffect(() => {
|
|
1768
|
+
setIsCustomChainHighlighted(false);
|
|
1769
|
+
}, [value]);
|
|
1732
1770
|
const popoverFooterRendered = useMemo(() => {
|
|
1733
1771
|
return popoverFooter == null ? void 0 : popoverFooter({ closePopover() {
|
|
1734
1772
|
comboboxState.setOpen(false);
|
|
@@ -1767,6 +1805,26 @@ const SmartTextInput = ({ value: passedValue, onChange, valueType: allowedValueT
|
|
|
1767
1805
|
dialogFocusRef.current?.focusFirst();
|
|
1768
1806
|
return;
|
|
1769
1807
|
}
|
|
1808
|
+
if (showCustomChainFooter) {
|
|
1809
|
+
if (e.key === "ArrowDown") {
|
|
1810
|
+
e.preventDefault();
|
|
1811
|
+
e.stopPropagation();
|
|
1812
|
+
setIsCustomChainHighlighted(true);
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
if (e.key === "ArrowUp") {
|
|
1816
|
+
e.preventDefault();
|
|
1817
|
+
e.stopPropagation();
|
|
1818
|
+
setIsCustomChainHighlighted(false);
|
|
1819
|
+
return;
|
|
1820
|
+
}
|
|
1821
|
+
if (e.key === "Enter" && isCustomChainHighlighted) {
|
|
1822
|
+
e.preventDefault();
|
|
1823
|
+
e.stopPropagation();
|
|
1824
|
+
openCustomChainPanel?.();
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1770
1828
|
inputProps.onKeyDown?.(e);
|
|
1771
1829
|
}
|
|
1772
1830
|
}, {
|
|
@@ -1880,6 +1938,7 @@ const SmartTextInput = ({ value: passedValue, onChange, valueType: allowedValueT
|
|
|
1880
1938
|
disabled,
|
|
1881
1939
|
size,
|
|
1882
1940
|
$variant: variant,
|
|
1941
|
+
"aria-activedescendant": isCustomChainHighlighted ? customChainButtonId : inputProps["aria-activedescendant"],
|
|
1883
1942
|
"aria-haspopup": popupMode === "function-dialog" || popupMode === "code-dialog" ? "dialog" : inputProps["aria-haspopup"],
|
|
1884
1943
|
...suppressPopover ? { "aria-expanded": false } : {}
|
|
1885
1944
|
})
|
|
@@ -1916,12 +1975,9 @@ const SmartTextInput = ({ value: passedValue, onChange, valueType: allowedValueT
|
|
|
1916
1975
|
listBoxProps: combobox.listBoxProps,
|
|
1917
1976
|
mode,
|
|
1918
1977
|
isLoading,
|
|
1919
|
-
openCodeChainFunctionPanel:
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
inputSchema: currentSchema
|
|
1923
|
-
});
|
|
1924
|
-
} : void 0
|
|
1978
|
+
openCodeChainFunctionPanel: openCustomChainPanel,
|
|
1979
|
+
footerButtonId: customChainButtonId,
|
|
1980
|
+
isFooterHighlighted: isCustomChainHighlighted
|
|
1925
1981
|
})
|
|
1926
1982
|
})]
|
|
1927
1983
|
}), renderCcfPanel()] });
|