@servicetitan/anvil2 3.7.0 → 3.8.0
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 +18 -0
- package/dist/Alert-CPe0yh6A.js.map +1 -1
- package/dist/Badge-BNrYBFiU.js.map +1 -1
- package/dist/Card-Bt0F6RTq.js.map +1 -1
- package/dist/Checkbox-zz9TyZWn.js.map +1 -1
- package/dist/{DataTable-CP9r6SAu.js → DataTable-Bvsijiqn.js} +2 -2
- package/dist/{DataTable-CP9r6SAu.js.map → DataTable-Bvsijiqn.js.map} +1 -1
- package/dist/{DateFieldYearless-DYjvqxRb.js → DateFieldYearless-BDSbVQx0.js} +2 -2
- package/dist/{DateFieldYearless-DYjvqxRb.js.map → DateFieldYearless-BDSbVQx0.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-lQdJGOaS.js → DateFieldYearlessRange-Dk7HVYTA.js} +2 -2
- package/dist/{DateFieldYearlessRange-lQdJGOaS.js.map → DateFieldYearlessRange-Dk7HVYTA.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{Drawer-_spmOgwH.js → Drawer-DzvM9MRB.js} +57 -30
- package/dist/Drawer-DzvM9MRB.js.map +1 -0
- package/dist/Drawer.css +34 -28
- package/dist/Drawer.js +1 -1
- package/dist/{FilterBar-D82QyNFD.js → FilterBar-DBVW3LL3.js} +3 -3
- package/dist/{FilterBar-D82QyNFD.js.map → FilterBar-DBVW3LL3.js.map} +1 -1
- package/dist/FilterBar.js +1 -1
- package/dist/Grid-ho1pGJ5L.js.map +1 -1
- package/dist/Listbox-Cdwaofd2.js.map +1 -1
- package/dist/Menu-DmEXQLXt.js.map +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-qQzpnvfP.js → MultiSelectFieldSync-B1tkEtft.js} +46 -18
- package/dist/MultiSelectFieldSync-B1tkEtft.js.map +1 -0
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-BSJSDRtE.js → MultiSelectMenuSync-Deki_z-0.js} +42 -20
- package/dist/MultiSelectMenuSync-Deki_z-0.js.map +1 -0
- package/dist/Pagination-CmqAut6y.js.map +1 -1
- package/dist/Radio-D9w_-JYw.js.map +1 -1
- package/dist/{SavedFiltersButton-9xR4ZtBZ.js → SavedFiltersButton-BHgS4akL.js} +3 -3
- package/dist/{SavedFiltersButton-9xR4ZtBZ.js.map → SavedFiltersButton-BHgS4akL.js.map} +1 -1
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/SearchField-B7fIOJf-.js.map +1 -1
- package/dist/SegmentedControl-Be6jCglV.js.map +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldSync-CGCf0sRf.js → SelectFieldSync-VShqP5J0.js} +7 -2
- package/dist/{SelectFieldSync-CGCf0sRf.js.map → SelectFieldSync-VShqP5J0.js.map} +1 -1
- package/dist/Tab-Cy4G562A.js.map +1 -1
- package/dist/Table.js +1 -1
- package/dist/Textarea-CW3KGuB9.js.map +1 -1
- package/dist/{YearlessDateInputWithPicker-Bd8JnTaZ.js → YearlessDateInputWithPicker-DLtMQhDw.js} +6 -3
- package/dist/YearlessDateInputWithPicker-DLtMQhDw.js.map +1 -0
- package/dist/beta.js +6 -6
- package/dist/{bulkActionTypes-2Ha09bCS.js → bulkActionTypes-CTKwMpO7.js} +6 -2
- package/dist/{bulkActionTypes-2Ha09bCS.js.map → bulkActionTypes-CTKwMpO7.js.map} +1 -1
- package/dist/{filter-state-CMUjEn8U.js → filter-state-DKXF5MeW.js} +12 -16
- package/dist/filter-state-DKXF5MeW.js.map +1 -0
- package/dist/index.js +6 -6
- package/dist/src/components/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Card/Card.d.ts +1 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/Drawer/Drawer.d.ts +3 -1
- package/dist/src/components/Drawer/DrawerHeader.d.ts +35 -3
- package/dist/src/components/Drawer/index.d.ts +1 -1
- package/dist/src/components/DrillDown/DrillDown.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/Listbox/Listbox.d.ts +1 -1
- package/dist/src/components/Menu/Menu.d.ts +1 -1
- package/dist/src/components/MultiSelectField/MultiSelectField.d.ts +1 -1
- package/dist/src/components/Pagination/Pagination.d.ts +1 -1
- package/dist/src/components/Radio/Radio.d.ts +1 -1
- package/dist/src/components/SearchField/SearchField.d.ts +1 -1
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Tab/Tab.d.ts +1 -1
- package/dist/src/components/Textarea/Textarea.d.ts +1 -1
- package/dist/src/internal/types/bulkActionTypes.d.ts +12 -2
- package/dist/useDrilldown-PmrZ4BXn.js.map +1 -1
- package/package.json +3 -1
- package/dist/Drawer-_spmOgwH.js.map +0 -1
- package/dist/MultiSelectFieldSync-qQzpnvfP.js.map +0 -1
- package/dist/MultiSelectMenuSync-BSJSDRtE.js.map +0 -1
- package/dist/YearlessDateInputWithPicker-Bd8JnTaZ.js.map +0 -1
- package/dist/filter-state-CMUjEn8U.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Drawer as default, Drawer, type DrawerProps } from './Drawer';
|
|
2
2
|
export { type DrawerCancelButtonProps } from './DrawerCancelButton';
|
|
3
3
|
export { type DrawerFooterProps } from './DrawerFooter';
|
|
4
|
-
export { type DrawerHeaderProps } from './DrawerHeader';
|
|
4
|
+
export { type DrawerHeaderAction, type DrawerHeaderProps, } from './DrawerHeader';
|
|
5
5
|
export { type DrawerContentProps } from './DrawerContent';
|
|
6
6
|
export type { LayoutUtilProps } from '../../types';
|
|
@@ -12,7 +12,7 @@ export type DrillDownProps = PassThroughPropsWithRef<"div"> & {
|
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
* Multi-step navigation component for Dialog, Drawer, and Page.Panel.
|
|
15
|
+
* Multi-step, hierarchical drill-down navigation component for Dialog, Drawer, and Page.Panel — lets users drill down by selecting a category to go deeper into nested subcategories or screens, and navigate back up.
|
|
16
16
|
*
|
|
17
17
|
* Manages sequential navigation between related content screens within overlay components.
|
|
18
18
|
* Each DrillDown represents a single screen identified by its index. Navigate between screens
|
|
@@ -33,7 +33,7 @@ export type GridProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
33
33
|
xxl?: GridSpecificProps;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
* Grid component for creating CSS Grid layouts
|
|
36
|
+
* Grid component for creating responsive multi-column CSS Grid layouts that arrange content or tiles into evenly spaced columns and rows which reflow across breakpoints.
|
|
37
37
|
*
|
|
38
38
|
* Features:
|
|
39
39
|
* - CSS Grid layout with full control over grid properties
|
|
@@ -104,7 +104,7 @@ declare namespace ListboxInner {
|
|
|
104
104
|
var displayName: string;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
* Listbox component for selecting one or more items from a list
|
|
107
|
+
* Listbox component for selecting one or more items from a keyboard-navigable, scrollable list of options
|
|
108
108
|
*
|
|
109
109
|
* Features:
|
|
110
110
|
* - Supports single and multiple selection modes
|
|
@@ -14,7 +14,7 @@ export type MenuProps = Omit<ButtonProps, "icon"> & MenuCommonProps & {
|
|
|
14
14
|
icon?: IconProps["svg"];
|
|
15
15
|
} & DataTrackingId;
|
|
16
16
|
/**
|
|
17
|
-
* Menu component for displaying dropdown
|
|
17
|
+
* Menu component for displaying a dropdown or popout list of action items opened from a trigger button such as an overflow, kebab (three dots), or actions button — an actions or context menu, not a form-value selector.
|
|
18
18
|
*
|
|
19
19
|
* Features:
|
|
20
20
|
* - Supports both controlled and uncontrolled modes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MultiSelectFieldHandle, MultiSelectFieldProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* MultiSelectField component for selecting multiple options from a searchable dropdown.
|
|
3
|
+
* MultiSelectField component: a form field for selecting multiple options at once from a searchable dropdown, showing the chosen values as tags or chips.
|
|
4
4
|
*
|
|
5
5
|
* Features:
|
|
6
6
|
* - Multiple selection with chip display
|
|
@@ -24,7 +24,7 @@ export type PaginationProps = Omit<BasePaginationProps, "children"> & DataTracki
|
|
|
24
24
|
itemsPerPageLabel?: string;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* Pagination component for
|
|
27
|
+
* Pagination component: page navigation controls — next, previous, and page numbers — for moving through a long, paged set of results. Includes automatic page array generation.
|
|
28
28
|
*
|
|
29
29
|
* Features:
|
|
30
30
|
* - Automatic page array generation with overflow handling
|
|
@@ -17,7 +17,7 @@ import { DataTrackingId } from '../../types';
|
|
|
17
17
|
*/
|
|
18
18
|
export type RadioProps = Omit<CoreRadioProps, "hideRadio"> & DataTrackingId;
|
|
19
19
|
/**
|
|
20
|
-
* Radio component for
|
|
20
|
+
* Radio component: a radio button group for choosing exactly one option from a mutually exclusive set of choices.
|
|
21
21
|
*
|
|
22
22
|
* Features:
|
|
23
23
|
* - Supports both controlled and uncontrolled modes
|
|
@@ -13,7 +13,7 @@ export type SearchFieldProps = DistributiveOmit<CoreSearchFieldProps, "size"> &
|
|
|
13
13
|
size?: Extract<CoreSearchFieldProps["size"], "small" | "medium" | "large">;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* SearchField component
|
|
16
|
+
* SearchField component: a text input with a search or magnifying-glass affordance for filtering or searching results by typing a query.
|
|
17
17
|
*
|
|
18
18
|
* Features:
|
|
19
19
|
* - Search icon prefix for visual clarity
|
|
@@ -56,7 +56,7 @@ type UncontrolledSegmentedControlProps = BaseSegmentedControlProps & {
|
|
|
56
56
|
*/
|
|
57
57
|
export type SegmentedControlProps = ControlledSegmentedControlProps | UncontrolledSegmentedControlProps;
|
|
58
58
|
/**
|
|
59
|
-
* SegmentedControl component for selecting one option from a group of related choices.
|
|
59
|
+
* SegmentedControl component for selecting one option from a group of related choices — a horizontal set of segmented buttons, a segmented toggle or view switcher, for switching between a few mutually exclusive views or options such as list versus map.
|
|
60
60
|
*
|
|
61
61
|
* Features:
|
|
62
62
|
* - Supports both controlled and uncontrolled modes
|
|
@@ -30,7 +30,7 @@ export type TabProps = Omit<ComponentPropsWithoutRef<"div">, "onAnimationStart"
|
|
|
30
30
|
fill?: boolean;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* Tab component for
|
|
33
|
+
* Tab component: a tabbed navigation control for switching between panels, sections, or views using a horizontal row of tabs.
|
|
34
34
|
*
|
|
35
35
|
* Features:
|
|
36
36
|
* - Keyboard navigation support (arrow keys, Enter, Space)
|
|
@@ -58,7 +58,7 @@ export type TextareaProps = Omit<ComponentPropsWithoutRef<"textarea">, "onChange
|
|
|
58
58
|
warning?: string | string[];
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
|
-
* Textarea component for multi-line text input
|
|
61
|
+
* Textarea component for multi-line free-form text input — a text area box for writing longer text such as paragraphs, comments, notes, messages, or descriptions.
|
|
62
62
|
*
|
|
63
63
|
* Features:
|
|
64
64
|
* - Character counter with maxLength validation
|
|
@@ -13,6 +13,12 @@ import { SelectFieldOption } from '../../components/SelectField/types';
|
|
|
13
13
|
* check-state behavior the `*Sync` variants provide.
|
|
14
14
|
*/
|
|
15
15
|
export type BulkActionCheckState = boolean | CheckState | ((current: SelectFieldOption[]) => boolean | CheckState);
|
|
16
|
+
/**
|
|
17
|
+
* Label for a "Select All" / "Select Filtered" row. A function form is
|
|
18
|
+
* resolved against the live selection (the confirmation draft when
|
|
19
|
+
* confirmation is enabled, otherwise the committed value).
|
|
20
|
+
*/
|
|
21
|
+
export type BulkActionLabel = string | ((current: SelectFieldOption[]) => string);
|
|
16
22
|
/**
|
|
17
23
|
* Configuration for the "Select All" / "Select Filtered" rows in a
|
|
18
24
|
* MultiSelectMenu or MultiSelectField.
|
|
@@ -34,12 +40,12 @@ export type BulkActionCheckState = boolean | CheckState | ((current: SelectField
|
|
|
34
40
|
* selection, so the row's checkbox can reflect how much of the set is selected.
|
|
35
41
|
*/
|
|
36
42
|
export type BulkActionConfig = {
|
|
37
|
-
label?:
|
|
43
|
+
label?: BulkActionLabel;
|
|
38
44
|
checkState: BulkActionCheckState;
|
|
39
45
|
onClick: () => void;
|
|
40
46
|
compute?: never;
|
|
41
47
|
} | {
|
|
42
|
-
label?:
|
|
48
|
+
label?: BulkActionLabel;
|
|
43
49
|
checkState: BulkActionCheckState;
|
|
44
50
|
compute: (current: SelectFieldOption[]) => SelectFieldOption[] | Promise<SelectFieldOption[]>;
|
|
45
51
|
onClick?: never;
|
|
@@ -62,3 +68,7 @@ export type ResolvedBulkAction = {
|
|
|
62
68
|
* a `CheckState` is passed through, defaulting to `"indeterminate"`.
|
|
63
69
|
*/
|
|
64
70
|
export declare function resolveBulkActionCheckState(checkState: BulkActionCheckState, current: SelectFieldOption[]): CheckState;
|
|
71
|
+
/**
|
|
72
|
+
* Resolves a `BulkActionLabel` into a display string.
|
|
73
|
+
*/
|
|
74
|
+
export declare function resolveBulkActionLabel(label: BulkActionLabel | undefined, current: SelectFieldOption[], fallback?: string): string;
|