@hubspot/ui-extensions 0.10.1 → 0.11.1
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/dist/{pages/home/components.d.ts → __synced__/appHomeRemoteComponents.synced.d.ts} +7 -7
- package/dist/{pages/home/components.js → __synced__/appHomeRemoteComponents.synced.js} +1 -0
- package/dist/{crm/components.d.ts → __synced__/crmRemoteComponents.synced.d.ts} +40 -41
- package/dist/__synced__/crmRemoteComponents.synced.js +15 -0
- package/dist/{experimental/types.d.ts → __synced__/experimental/types.synced.d.ts} +6 -1
- package/dist/__synced__/experimentalRemoteComponents.synced.d.ts +94 -0
- package/dist/__synced__/experimentalRemoteComponents.synced.js +56 -0
- package/dist/__synced__/remoteComponents.synced.d.ts +579 -0
- package/dist/{coreComponents.js → __synced__/remoteComponents.synced.js} +89 -69
- package/dist/__synced__/types/actions.synced.d.ts +57 -0
- package/dist/__synced__/types/actions.synced.js +1 -0
- package/dist/__synced__/types/components/accordion.synced.d.ts +48 -0
- package/dist/__synced__/types/components/accordion.synced.js +1 -0
- package/dist/__synced__/types/components/alert.synced.d.ts +24 -0
- package/dist/__synced__/types/components/alert.synced.js +1 -0
- package/dist/__synced__/types/components/app-home-header-actions.synced.d.ts +39 -0
- package/dist/__synced__/types/components/app-home-header-actions.synced.js +1 -0
- package/dist/__synced__/types/components/button-row.synced.d.ts +44 -0
- package/dist/__synced__/types/components/button-row.synced.js +1 -0
- package/dist/__synced__/types/components/button.synced.d.ts +89 -0
- package/dist/__synced__/types/components/button.synced.js +1 -0
- package/dist/__synced__/types/components/card.synced.d.ts +12 -0
- package/dist/__synced__/types/components/card.synced.js +1 -0
- package/dist/__synced__/types/components/chart.synced.d.ts +137 -0
- package/dist/__synced__/types/components/chart.synced.js +5 -0
- package/dist/__synced__/types/components/description-list.synced.d.ts +36 -0
- package/dist/__synced__/types/components/description-list.synced.js +1 -0
- package/dist/__synced__/types/components/divider.synced.d.ts +14 -0
- package/dist/__synced__/types/components/divider.synced.js +1 -0
- package/dist/__synced__/types/components/dropdown.synced.d.ts +84 -0
- package/dist/__synced__/types/components/dropdown.synced.js +1 -0
- package/dist/__synced__/types/components/empty-state.synced.d.ts +51 -0
- package/dist/__synced__/types/components/empty-state.synced.js +1 -0
- package/dist/__synced__/types/components/error-state.synced.d.ts +24 -0
- package/dist/__synced__/types/components/error-state.synced.js +1 -0
- package/dist/__synced__/types/components/form.synced.d.ts +29 -0
- package/dist/__synced__/types/components/form.synced.js +1 -0
- package/dist/__synced__/types/components/heading.synced.d.ts +19 -0
- package/dist/__synced__/types/components/heading.synced.js +1 -0
- package/dist/__synced__/types/components/icon.synced.d.ts +29 -0
- package/dist/__synced__/types/components/icon.synced.js +1 -0
- package/dist/__synced__/types/components/iframe.synced.d.ts +20 -0
- package/dist/__synced__/types/components/iframe.synced.js +1 -0
- package/dist/__synced__/types/components/illustration.synced.d.ts +53 -0
- package/dist/__synced__/types/components/illustration.synced.js +43 -0
- package/dist/__synced__/types/components/image.synced.d.ts +40 -0
- package/dist/__synced__/types/components/image.synced.js +1 -0
- package/dist/__synced__/types/components/index.synced.d.ts +38 -0
- package/dist/__synced__/types/components/index.synced.js +1 -0
- package/dist/__synced__/types/components/inputs.synced.d.ts +350 -0
- package/dist/__synced__/types/components/inputs.synced.js +1 -0
- package/dist/__synced__/types/components/layouts.synced.d.ts +172 -0
- package/dist/__synced__/types/components/layouts.synced.js +1 -0
- package/dist/__synced__/types/components/link.synced.d.ts +38 -0
- package/dist/__synced__/types/components/link.synced.js +1 -0
- package/dist/__synced__/types/components/list.synced.d.ts +18 -0
- package/dist/__synced__/types/components/list.synced.js +1 -0
- package/dist/__synced__/types/components/loading-spinner.synced.d.ts +31 -0
- package/dist/__synced__/types/components/loading-spinner.synced.js +1 -0
- package/dist/__synced__/types/components/modal.synced.d.ts +60 -0
- package/dist/__synced__/types/components/modal.synced.js +1 -0
- package/dist/__synced__/types/components/panel.synced.d.ts +73 -0
- package/dist/__synced__/types/components/panel.synced.js +1 -0
- package/dist/__synced__/types/components/progress-bar.synced.d.ts +48 -0
- package/dist/__synced__/types/components/progress-bar.synced.js +1 -0
- package/dist/__synced__/types/components/selects.synced.d.ts +130 -0
- package/dist/__synced__/types/components/selects.synced.js +1 -0
- package/dist/__synced__/types/components/statistics.synced.d.ts +56 -0
- package/dist/__synced__/types/components/statistics.synced.js +1 -0
- package/dist/__synced__/types/components/status-tag.synced.d.ts +42 -0
- package/dist/__synced__/types/components/status-tag.synced.js +1 -0
- package/dist/__synced__/types/components/step-indicator.synced.d.ts +44 -0
- package/dist/__synced__/types/components/step-indicator.synced.js +1 -0
- package/dist/__synced__/types/components/table.synced.d.ts +138 -0
- package/dist/__synced__/types/components/table.synced.js +1 -0
- package/dist/__synced__/types/components/tabs.synced.d.ts +55 -0
- package/dist/__synced__/types/components/tabs.synced.js +1 -0
- package/dist/__synced__/types/components/tag.synced.d.ts +32 -0
- package/dist/__synced__/types/components/tag.synced.js +1 -0
- package/dist/__synced__/types/components/text.synced.d.ts +93 -0
- package/dist/__synced__/types/components/text.synced.js +1 -0
- package/dist/__synced__/types/components/tile.synced.d.ts +24 -0
- package/dist/__synced__/types/components/tile.synced.js +1 -0
- package/dist/__synced__/types/components/toggle.synced.d.ts +60 -0
- package/dist/__synced__/types/components/toggle.synced.js +1 -0
- package/dist/__synced__/types/components/toggleInputs.synced.d.ts +191 -0
- package/dist/__synced__/types/components/toggleInputs.synced.js +1 -0
- package/dist/__synced__/types/components/tooltip.synced.d.ts +12 -0
- package/dist/__synced__/types/components/tooltip.synced.js +1 -0
- package/dist/__synced__/types/context.synced.d.ts +82 -0
- package/dist/__synced__/types/context.synced.js +1 -0
- package/dist/__synced__/types/crm.synced.d.ts +248 -0
- package/dist/__synced__/types/crm.synced.js +1 -0
- package/dist/__synced__/types/extension-points.synced.d.ts +122 -0
- package/dist/__synced__/types/extension-points.synced.js +9 -0
- package/dist/__synced__/types/http-requests.synced.d.ts +106 -0
- package/dist/__synced__/types/http-requests.synced.js +8 -0
- package/dist/__synced__/types/index.synced.d.ts +8 -0
- package/dist/__synced__/types/index.synced.js +1 -0
- package/dist/__synced__/types/reactions.synced.d.ts +12 -0
- package/dist/__synced__/types/reactions.synced.js +1 -0
- package/dist/__synced__/types/shared.synced.d.ts +196 -0
- package/dist/{types.js → __synced__/types/shared.synced.js} +0 -68
- package/dist/__synced__/utils/remote-component-registry.synced.d.ts +80 -0
- package/dist/__synced__/utils/remote-component-registry.synced.js +64 -0
- package/dist/crm/index.d.ts +2 -2
- package/dist/crm/index.js +1 -2
- package/dist/experimental/index.d.ts +2 -73
- package/dist/experimental/index.js +1 -34
- package/dist/experimental/testing/internal/constants.d.ts +2 -0
- package/dist/experimental/testing/internal/constants.js +1 -0
- package/dist/experimental/testing/internal/debug.d.ts +8 -0
- package/dist/experimental/testing/internal/debug.js +10 -0
- package/dist/experimental/testing/internal/element.d.ts +11 -0
- package/dist/experimental/testing/internal/element.js +67 -0
- package/dist/experimental/testing/internal/errors.d.ts +44 -0
- package/dist/experimental/testing/internal/errors.js +52 -0
- package/dist/experimental/testing/internal/fragment.d.ts +8 -0
- package/dist/experimental/testing/internal/fragment.js +44 -0
- package/dist/experimental/testing/internal/print.d.ts +6 -0
- package/dist/experimental/testing/internal/print.js +114 -0
- package/dist/experimental/testing/internal/query.d.ts +57 -0
- package/dist/experimental/testing/internal/query.js +231 -0
- package/dist/experimental/testing/internal/root.d.ts +8 -0
- package/dist/experimental/testing/internal/root.js +44 -0
- package/dist/experimental/testing/internal/text.d.ts +9 -0
- package/dist/experimental/testing/internal/text.js +16 -0
- package/dist/experimental/testing/internal/types-internal.d.ts +47 -0
- package/dist/experimental/testing/internal/types-internal.js +1 -0
- package/dist/experimental/testing/type-utils.d.ts +29 -0
- package/dist/experimental/testing/type-utils.js +37 -0
- package/dist/experimental/testing/types.d.ts +240 -0
- package/dist/experimental/testing/types.js +10 -0
- package/dist/hubspot.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/pages/home/index.d.ts +1 -0
- package/dist/pages/home/index.js +1 -0
- package/package.json +12 -10
- package/dist/coreComponents.d.ts +0 -844
- package/dist/crm/components.js +0 -15
- package/dist/experimental/testing/index.d.ts +0 -14
- package/dist/experimental/testing/index.js +0 -33
- package/dist/experimental/testing/jest/matchers/index.d.ts +0 -6
- package/dist/experimental/testing/jest/matchers/index.js +0 -6
- package/dist/types.d.ts +0 -3167
- package/dist/utils/createExtensionComponent.d.ts +0 -3
- package/dist/utils/createExtensionComponent.js +0 -4
- /package/dist/{experimental/types.js → __synced__/experimental/types.synced.js} +0 -0
package/dist/types.d.ts
DELETED
|
@@ -1,3167 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ComponentType } from 'react';
|
|
2
|
-
import { RemoteFragment } from '@remote-ui/core';
|
|
3
|
-
export declare class ExtensionEvent {
|
|
4
|
-
type: string;
|
|
5
|
-
bubbles: boolean;
|
|
6
|
-
timeStamp: number;
|
|
7
|
-
id: string;
|
|
8
|
-
constructor(event: Event);
|
|
9
|
-
}
|
|
10
|
-
export declare class FormSubmitExtensionEvent<V> extends ExtensionEvent {
|
|
11
|
-
targetValue: V;
|
|
12
|
-
constructor(value: V, event: Event);
|
|
13
|
-
}
|
|
14
|
-
export type OverlayComponentProps = {
|
|
15
|
-
overlay?: RemoteFragment;
|
|
16
|
-
};
|
|
17
|
-
export type HrefOptions = {
|
|
18
|
-
url: string;
|
|
19
|
-
external?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type HrefProp = string | HrefOptions;
|
|
22
|
-
export interface TShirtSizes {
|
|
23
|
-
xs: 'extra-small' | 'xs';
|
|
24
|
-
sm: 'small' | 'sm';
|
|
25
|
-
md: 'medium' | 'md';
|
|
26
|
-
lg: 'large' | 'lg';
|
|
27
|
-
xl: 'extra-large' | 'xl';
|
|
28
|
-
}
|
|
29
|
-
export type AllSizes = TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'] | TShirtSizes['xl'];
|
|
30
|
-
export type AllDistances = 'flush' | AllSizes;
|
|
31
|
-
export declare const iconNames: {
|
|
32
|
-
readonly success: "success";
|
|
33
|
-
readonly remove: "remove";
|
|
34
|
-
readonly add: "add";
|
|
35
|
-
readonly attach: "attach";
|
|
36
|
-
readonly date: "date";
|
|
37
|
-
readonly copy: "duplicate";
|
|
38
|
-
readonly delete: "delete";
|
|
39
|
-
readonly edit: "edit";
|
|
40
|
-
readonly email: "email";
|
|
41
|
-
readonly exclamation: "exclamation";
|
|
42
|
-
readonly question: "question";
|
|
43
|
-
readonly home: "home";
|
|
44
|
-
readonly location: "location";
|
|
45
|
-
readonly upCarat: "upCarat";
|
|
46
|
-
readonly downCarat: "downCarat";
|
|
47
|
-
readonly warning: "warning";
|
|
48
|
-
readonly shoppingCart: "cart";
|
|
49
|
-
readonly clock: "time";
|
|
50
|
-
readonly comment: "comments";
|
|
51
|
-
readonly contact: "contacts";
|
|
52
|
-
readonly star: "favorite";
|
|
53
|
-
readonly file: "file";
|
|
54
|
-
readonly reports: "reports";
|
|
55
|
-
readonly video: "video";
|
|
56
|
-
readonly robot: "simpleBot";
|
|
57
|
-
readonly refresh: "refresh";
|
|
58
|
-
readonly faceHappy: "emoji";
|
|
59
|
-
readonly faceNeutral: "emojiLineNeutral";
|
|
60
|
-
readonly faceSad: "emojiLineSad";
|
|
61
|
-
readonly upload: "upload";
|
|
62
|
-
readonly download: "download";
|
|
63
|
-
readonly left: "left";
|
|
64
|
-
readonly right: "right";
|
|
65
|
-
readonly dataSync: "dataSync";
|
|
66
|
-
readonly imageGallery: "imageGallery";
|
|
67
|
-
readonly search: "search";
|
|
68
|
-
readonly save: "saveEditableView";
|
|
69
|
-
readonly notification: "notification";
|
|
70
|
-
readonly bulb: "bulb";
|
|
71
|
-
readonly settings: "settings";
|
|
72
|
-
readonly filter: "filter";
|
|
73
|
-
readonly gauge: "gauge";
|
|
74
|
-
readonly enroll: "enroll";
|
|
75
|
-
readonly generateChart: "generateChart";
|
|
76
|
-
readonly gift: "gift";
|
|
77
|
-
readonly flame: "highlyEngagedLead";
|
|
78
|
-
readonly inbox: "inbox";
|
|
79
|
-
readonly image: "insertImage";
|
|
80
|
-
readonly quote: "insertQuote";
|
|
81
|
-
readonly insertVideo: "insertVideo";
|
|
82
|
-
readonly invoice: "invoice";
|
|
83
|
-
readonly key: "key";
|
|
84
|
-
readonly book: "knowledgeBase";
|
|
85
|
-
readonly globe: "language";
|
|
86
|
-
readonly lesson: "lesson";
|
|
87
|
-
readonly link: "link";
|
|
88
|
-
readonly listView: "listView";
|
|
89
|
-
readonly locked: "locked";
|
|
90
|
-
readonly mention: "mention";
|
|
91
|
-
readonly messages: "messages";
|
|
92
|
-
readonly mobile: "mobile";
|
|
93
|
-
readonly notificationOff: "notificationOff";
|
|
94
|
-
readonly hash: "numericDataType";
|
|
95
|
-
readonly objectAssociations: "objectAssociations";
|
|
96
|
-
readonly objectAssociationsManyToMany: "objectAssociationsManyToMany";
|
|
97
|
-
readonly objectAssociationsManyToOne: "objectAssociationsManyToOne";
|
|
98
|
-
readonly office365: "office365";
|
|
99
|
-
readonly order: "order";
|
|
100
|
-
readonly paymentSubscriptions: "paymentSubscriptions";
|
|
101
|
-
readonly product: "product";
|
|
102
|
-
readonly powerPointFile: "powerPointFile";
|
|
103
|
-
readonly presentation: "presentation";
|
|
104
|
-
readonly publish: "publish";
|
|
105
|
-
readonly questionAnswer: "questionAnswer";
|
|
106
|
-
readonly quickbooks: "quickbooks";
|
|
107
|
-
readonly readMore: "readMore";
|
|
108
|
-
readonly realEstateListing: "realEstateListing";
|
|
109
|
-
readonly readOnlyView: "readOnlyView";
|
|
110
|
-
readonly recentlySelected: "recentlySelected";
|
|
111
|
-
readonly record: "record";
|
|
112
|
-
readonly redo: "redo";
|
|
113
|
-
readonly undo: "undo";
|
|
114
|
-
readonly registration: "registration";
|
|
115
|
-
readonly replace: "replace";
|
|
116
|
-
readonly rotate: "rotate";
|
|
117
|
-
readonly salesQuote: "salesQuote";
|
|
118
|
-
readonly salesTemplates: "salesTemplates";
|
|
119
|
-
readonly sequences: "sequences";
|
|
120
|
-
readonly spellCheck: "spellCheck";
|
|
121
|
-
readonly strike: "strike";
|
|
122
|
-
readonly tablet: "tablet";
|
|
123
|
-
readonly tag: "tag";
|
|
124
|
-
readonly tasks: "tasks";
|
|
125
|
-
readonly test: "test";
|
|
126
|
-
readonly ticket: "ticket";
|
|
127
|
-
readonly thumbsUp: "thumbsUp";
|
|
128
|
-
readonly thumbsDown: "thumbsDown";
|
|
129
|
-
readonly translate: "translate";
|
|
130
|
-
readonly trophy: "trophy";
|
|
131
|
-
readonly videoFile: "videoFile";
|
|
132
|
-
readonly videoPlayerSubtitles: "videoPlayerSubtitles";
|
|
133
|
-
readonly view: "view";
|
|
134
|
-
readonly viewDetails: "viewDetails";
|
|
135
|
-
readonly website: "website";
|
|
136
|
-
readonly workflows: "workflows";
|
|
137
|
-
readonly zoomIn: "zoomIn";
|
|
138
|
-
readonly zoomOut: "zoomOut";
|
|
139
|
-
readonly goal: "goal";
|
|
140
|
-
readonly campaigns: "campaigns";
|
|
141
|
-
readonly cap: "cap";
|
|
142
|
-
readonly block: "block";
|
|
143
|
-
readonly bank: "bank";
|
|
144
|
-
readonly approvals: "approvals";
|
|
145
|
-
readonly appointment: "appointment";
|
|
146
|
-
readonly facebook: "socialBlockFacebook";
|
|
147
|
-
readonly googlePlus: "socialBlockGoogleplus";
|
|
148
|
-
readonly instagram: "socialBlockInstagram";
|
|
149
|
-
readonly linkedin: "socialBlockLinkedin";
|
|
150
|
-
readonly pinterest: "socialBlockPinterest";
|
|
151
|
-
readonly rss: "socialBlockRss";
|
|
152
|
-
readonly twitter: "socialBlockTwitter";
|
|
153
|
-
readonly x: "socialBlockX";
|
|
154
|
-
readonly xing: "socialBlockXing";
|
|
155
|
-
readonly youtube: "socialBlockYoutube";
|
|
156
|
-
readonly youtubePlay: "socialBlockYoutubeplay";
|
|
157
|
-
readonly sortAlpAsc: "sortAlpAsc";
|
|
158
|
-
readonly sortAlpDesc: "sortAlpDesc";
|
|
159
|
-
readonly sortAmtAsc: "sortAmtAsc";
|
|
160
|
-
readonly sortAmtDesc: "sortAmtDesc";
|
|
161
|
-
readonly sortNumAsc: "sortNumAsc";
|
|
162
|
-
readonly sortNumDesc: "sortNumDesc";
|
|
163
|
-
readonly sortTableAsc: "sortTableAsc";
|
|
164
|
-
readonly sortTableDesc: "sortTableDesc";
|
|
165
|
-
readonly text: "text";
|
|
166
|
-
readonly textColor: "textColor";
|
|
167
|
-
readonly textDataType: "textDataType";
|
|
168
|
-
readonly textSnippet: "textSnippet";
|
|
169
|
-
readonly calling: "calling";
|
|
170
|
-
readonly callingHangup: "callingHangup";
|
|
171
|
-
readonly callingMade: "callingMade";
|
|
172
|
-
readonly callingMissed: "callingMissed";
|
|
173
|
-
readonly callingVoicemail: "callingVoicemail";
|
|
174
|
-
readonly faceHappyFilled: "emojiFillHappy";
|
|
175
|
-
readonly faceNeutralFilled: "emojiFillNeutral";
|
|
176
|
-
readonly faceSadFilled: "emojiFillSad";
|
|
177
|
-
};
|
|
178
|
-
export type IconNames = keyof typeof iconNames;
|
|
179
|
-
export type TypesOfReadOnlyArray<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
|
|
180
|
-
/** @deprecated use ExtensionEvent/FormSubmitExtensionEvent instead */
|
|
181
|
-
export declare class RemoteEvent<V> {
|
|
182
|
-
type: string;
|
|
183
|
-
bubbles: boolean;
|
|
184
|
-
timeStamp: number;
|
|
185
|
-
targetValue: V;
|
|
186
|
-
constructor(value: V, event: Event);
|
|
187
|
-
}
|
|
188
|
-
/** @ignore */
|
|
189
|
-
type AlertType = 'info' | 'warning' | 'success' | 'danger' | 'tip' | undefined;
|
|
190
|
-
/** @ignore */
|
|
191
|
-
export type AddAlertAction = (args: {
|
|
192
|
-
type?: AlertType;
|
|
193
|
-
message: string;
|
|
194
|
-
title?: string;
|
|
195
|
-
}) => void;
|
|
196
|
-
/** @ignore */
|
|
197
|
-
export type ReloadPageAction = () => void;
|
|
198
|
-
/** @ignore */
|
|
199
|
-
export type FetchCrmObjectPropertiesAction = (properties: string[] | '*') => Promise<Record<string, string>>;
|
|
200
|
-
/** @ignore */
|
|
201
|
-
interface OpenIframeActionPayload {
|
|
202
|
-
uri: string;
|
|
203
|
-
height: number;
|
|
204
|
-
width: number;
|
|
205
|
-
/** @deprecated This property is no longer functional and has no effect. Please avoid using it, as it will be removed in future updates */
|
|
206
|
-
associatedObjectProperties?: string[];
|
|
207
|
-
title?: string;
|
|
208
|
-
flush?: boolean;
|
|
209
|
-
}
|
|
210
|
-
/** @ignore */
|
|
211
|
-
export type OpenIframeModalAction = (action: OpenIframeActionPayload, onClose?: () => void) => void;
|
|
212
|
-
/** @ignore */
|
|
213
|
-
export type refreshObjectPropertiesAction = () => void;
|
|
214
|
-
/** @ignore */
|
|
215
|
-
export type onCrmPropertiesUpdateAction = (properties: string[] | '*', callback: (properties: Record<string, string>, error?: {
|
|
216
|
-
message: string;
|
|
217
|
-
}) => void) => void;
|
|
218
|
-
/** @ignore */
|
|
219
|
-
export type CloseOverlayAction = (id: string) => void;
|
|
220
|
-
/** @ignore */
|
|
221
|
-
export interface CrmHostActions {
|
|
222
|
-
addAlert: AddAlertAction;
|
|
223
|
-
reloadPage: ReloadPageAction;
|
|
224
|
-
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
225
|
-
openIframeModal: OpenIframeModalAction;
|
|
226
|
-
refreshObjectProperties: refreshObjectPropertiesAction;
|
|
227
|
-
onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
|
|
228
|
-
}
|
|
229
|
-
/** @ignore */
|
|
230
|
-
export interface SettingsActions {
|
|
231
|
-
addAlert: AddAlertAction;
|
|
232
|
-
}
|
|
233
|
-
/** @ignore */
|
|
234
|
-
export interface AppHomeActions {
|
|
235
|
-
addAlert: AddAlertAction;
|
|
236
|
-
}
|
|
237
|
-
/** @ignore */
|
|
238
|
-
export interface UiePlatformActions {
|
|
239
|
-
copyTextToClipboard: Clipboard['writeText'];
|
|
240
|
-
closeOverlay: CloseOverlayAction;
|
|
241
|
-
reloadPage: ReloadPageAction;
|
|
242
|
-
openIframeModal: OpenIframeModalAction;
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* The props type for {@link !components.Accordion}.
|
|
246
|
-
*
|
|
247
|
-
* @category Component Props
|
|
248
|
-
*/
|
|
249
|
-
export interface AccordionProps {
|
|
250
|
-
/**
|
|
251
|
-
* The title text for the accordion.
|
|
252
|
-
*
|
|
253
|
-
*/
|
|
254
|
-
title: string;
|
|
255
|
-
/**
|
|
256
|
-
* The main content of the accordion when it opens.
|
|
257
|
-
*
|
|
258
|
-
*/
|
|
259
|
-
children: ReactNode;
|
|
260
|
-
/**
|
|
261
|
-
* Defines default open behavior on page load. When set to `true`, the accordion will be open by default on initial load.
|
|
262
|
-
*
|
|
263
|
-
* @defaultValue `false`
|
|
264
|
-
*/
|
|
265
|
-
defaultOpen?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* When set to `true`, the accordion's open state cannot be changed.
|
|
268
|
-
*
|
|
269
|
-
* @defaultValue `false`
|
|
270
|
-
*/
|
|
271
|
-
disabled?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
* For controlling the accordion's open state programmatically. When set to `true`, the accordion will open. Takes precedence over `defaultOpen`.
|
|
274
|
-
*
|
|
275
|
-
*/
|
|
276
|
-
open?: boolean;
|
|
277
|
-
/**
|
|
278
|
-
* The size of the accordion title.
|
|
279
|
-
*
|
|
280
|
-
* @defaultValue `"small"`
|
|
281
|
-
*/
|
|
282
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
283
|
-
/**
|
|
284
|
-
* A function that will be invoked when the title is clicked. It receives no arguments and its return value is ignored.
|
|
285
|
-
*
|
|
286
|
-
* @event
|
|
287
|
-
*/
|
|
288
|
-
onClick?: () => void;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* The props type for {@link !components.Alert}.
|
|
292
|
-
*
|
|
293
|
-
* @category Component Props
|
|
294
|
-
*/
|
|
295
|
-
export interface AlertProps {
|
|
296
|
-
/**
|
|
297
|
-
* The bolded title text of the alert.
|
|
298
|
-
*
|
|
299
|
-
*/
|
|
300
|
-
title: string;
|
|
301
|
-
/**
|
|
302
|
-
* The main content of the alert message.
|
|
303
|
-
*
|
|
304
|
-
*/
|
|
305
|
-
children?: ReactNode;
|
|
306
|
-
/**
|
|
307
|
-
* The color of the alert.
|
|
308
|
-
*
|
|
309
|
-
* @defaultValue `"info"`
|
|
310
|
-
*/
|
|
311
|
-
variant?: 'info' | 'warning' | 'success' | 'error' | 'danger' | 'tip';
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* The props type for {@link !components.HeaderActions}.
|
|
315
|
-
*
|
|
316
|
-
* @category Component Props
|
|
317
|
-
*/
|
|
318
|
-
export interface HeaderActionsProps {
|
|
319
|
-
/**
|
|
320
|
-
* Sets the content that will render inside the HeaderActions. This prop is passed implicitly by providing sub-components.
|
|
321
|
-
*/
|
|
322
|
-
children: ReactNode;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* The props type for {@link !components.HeaderActions}.
|
|
326
|
-
*
|
|
327
|
-
* @category Component Props
|
|
328
|
-
*/
|
|
329
|
-
export interface HeaderActionButtonProps extends OverlayComponentProps {
|
|
330
|
-
/**
|
|
331
|
-
* A function that will be invoked when the button is clicked. Do not use this function for submitting a form; use Form's `onSubmit` function instead.
|
|
332
|
-
*
|
|
333
|
-
* @event
|
|
334
|
-
*/
|
|
335
|
-
onClick?: ReactionsHandler<ExtensionEvent>;
|
|
336
|
-
/**
|
|
337
|
-
* A URL that will be opened when the button is clicked. If the value is a URL external to `hubspot.com` it will be opened in a new tab.
|
|
338
|
-
*/
|
|
339
|
-
href?: HrefProp;
|
|
340
|
-
/**
|
|
341
|
-
* Determines whether or not the button should be disabled.
|
|
342
|
-
*/
|
|
343
|
-
disabled?: boolean;
|
|
344
|
-
/**
|
|
345
|
-
* Sets the content that will render inside the HeaderActionButton. This prop is passed implicitly by providing sub-components.
|
|
346
|
-
*/
|
|
347
|
-
children: ReactNode;
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* The props type for {@link !components.ButtonRow}.
|
|
351
|
-
*
|
|
352
|
-
* @category Component Props
|
|
353
|
-
*/
|
|
354
|
-
export interface ButtonRowProps {
|
|
355
|
-
/**
|
|
356
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
357
|
-
*/
|
|
358
|
-
children: ReactNode;
|
|
359
|
-
/**
|
|
360
|
-
* Disables the dropdown list of buttons that appears when the children expand beyond the horizontal space.
|
|
361
|
-
*
|
|
362
|
-
* @defaultValue `false`
|
|
363
|
-
*/
|
|
364
|
-
disableDropdown?: boolean;
|
|
365
|
-
/**
|
|
366
|
-
* Controls the appearance and text content of the dropdown button.
|
|
367
|
-
*/
|
|
368
|
-
dropDownButtonOptions?: ButtonRownDropDownButtonOptionsProps;
|
|
369
|
-
}
|
|
370
|
-
/** Configures the Dropdown Button in the ButtonRow component */
|
|
371
|
-
export interface ButtonRownDropDownButtonOptionsProps {
|
|
372
|
-
/**
|
|
373
|
-
* Sets the content for the dropdown button.
|
|
374
|
-
*
|
|
375
|
-
* @defaultValue `"More"`
|
|
376
|
-
*/
|
|
377
|
-
text?: string;
|
|
378
|
-
/**
|
|
379
|
-
* Sets the size of the dropdown button.
|
|
380
|
-
*
|
|
381
|
-
* @defaultValue `"md"`
|
|
382
|
-
*/
|
|
383
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
384
|
-
/**
|
|
385
|
-
* Controls the appearance of the dropdown button
|
|
386
|
-
*
|
|
387
|
-
* @defaultValue `"secondary"`
|
|
388
|
-
*/
|
|
389
|
-
variant?: 'primary' | 'secondary' | 'transparent';
|
|
390
|
-
}
|
|
391
|
-
export interface BaseButtonProps {
|
|
392
|
-
/**
|
|
393
|
-
* A function that will be invoked when the button is clicked. Do not use this function for submitting a form; use Form's `onSubmit` function instead.
|
|
394
|
-
*
|
|
395
|
-
* @event
|
|
396
|
-
*/
|
|
397
|
-
onClick?: ReactionsHandler<ExtensionEvent>;
|
|
398
|
-
/**
|
|
399
|
-
* A URL that will be opened when the button is clicked. If the value is a URL external to `hubspot.com` it will be opened in a new tab.
|
|
400
|
-
*/
|
|
401
|
-
href?: HrefProp;
|
|
402
|
-
/**
|
|
403
|
-
* Determines whether or not the button should be disabled.
|
|
404
|
-
*/
|
|
405
|
-
disabled?: boolean;
|
|
406
|
-
/**
|
|
407
|
-
* Sets the color variation of the button.
|
|
408
|
-
*
|
|
409
|
-
* @defaultValue `"secondary"`
|
|
410
|
-
*/
|
|
411
|
-
variant?: 'primary' | 'secondary' | 'destructive' | 'transparent';
|
|
412
|
-
/**
|
|
413
|
-
* Sets the HTML attribute "role" of the button.
|
|
414
|
-
*
|
|
415
|
-
* @defaultValue `"button"`
|
|
416
|
-
*/
|
|
417
|
-
type?: 'button' | 'reset' | 'submit';
|
|
418
|
-
/**
|
|
419
|
-
* Sets the content that will render inside the Button. This prop is passed implicitly by providing sub-components. Only regular text and Icons are permitted.
|
|
420
|
-
*/
|
|
421
|
-
children: ReactNode;
|
|
422
|
-
/**
|
|
423
|
-
* Sets the size of the button.
|
|
424
|
-
*
|
|
425
|
-
* @defaultValue `"md"`
|
|
426
|
-
*/
|
|
427
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* The props type for {@link !components.Button}.
|
|
431
|
-
*
|
|
432
|
-
* @category Component Props
|
|
433
|
-
*/
|
|
434
|
-
export interface ButtonProps extends BaseButtonProps, OverlayComponentProps {
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Extra configuration passed to the overlay
|
|
438
|
-
*/
|
|
439
|
-
export interface LoadingButtonOverlayOptions {
|
|
440
|
-
/**
|
|
441
|
-
* If `onLoadingFinish`, the overlay will open once the loading operation is done.
|
|
442
|
-
* If `onClick`, the overlay will open as soon as there is a click on the button.
|
|
443
|
-
*
|
|
444
|
-
* @defaultValue `"onClick"`
|
|
445
|
-
*/
|
|
446
|
-
openBehavior?: 'onClick' | 'onLoadingFinish';
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* The props type for {@link !components.LoadingButton}.
|
|
450
|
-
*
|
|
451
|
-
* @category Component Props
|
|
452
|
-
*/
|
|
453
|
-
export interface LoadingButtonProps extends BaseButtonProps, OverlayComponentProps {
|
|
454
|
-
/**
|
|
455
|
-
* Sets the color variation of the button.
|
|
456
|
-
*
|
|
457
|
-
* @defaultValue `"secondary"`
|
|
458
|
-
*/
|
|
459
|
-
variant?: 'primary' | 'secondary' | 'destructive';
|
|
460
|
-
/**
|
|
461
|
-
* If true, the loading indicator is shown and the button becomes disabled.
|
|
462
|
-
*
|
|
463
|
-
* @defaultValue `false`
|
|
464
|
-
*/
|
|
465
|
-
loading?: boolean;
|
|
466
|
-
/**
|
|
467
|
-
* Extra configuration passed to the overlay
|
|
468
|
-
*/
|
|
469
|
-
overlayOptions?: LoadingButtonOverlayOptions;
|
|
470
|
-
/**
|
|
471
|
-
* Controls the icon that's shown after loading is done.
|
|
472
|
-
*
|
|
473
|
-
* @defaultValue `"success"`
|
|
474
|
-
*/
|
|
475
|
-
resultIconName?: IconNames;
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* The props type for {@link !components.Card}.
|
|
479
|
-
*
|
|
480
|
-
* @category Component Props
|
|
481
|
-
*/
|
|
482
|
-
export interface CardProps {
|
|
483
|
-
/**
|
|
484
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
485
|
-
*/
|
|
486
|
-
children: ReactNode;
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* The props type for {@link !components.BarChart}.
|
|
490
|
-
*
|
|
491
|
-
* @category Component Props
|
|
492
|
-
*/
|
|
493
|
-
export type BarChartProps = ChartProps;
|
|
494
|
-
/**
|
|
495
|
-
* The props type for {@link !components.LineChart}.
|
|
496
|
-
*
|
|
497
|
-
* @category Component Props
|
|
498
|
-
*/
|
|
499
|
-
export type LineChartProps = ChartProps;
|
|
500
|
-
export interface ChartProps {
|
|
501
|
-
/**
|
|
502
|
-
* The data used to render the chart. You can optionally provide configuration options.
|
|
503
|
-
*/
|
|
504
|
-
data: ChartDataRow[] | {
|
|
505
|
-
data: ChartDataRow[];
|
|
506
|
-
options?: ChartDataOptions;
|
|
507
|
-
};
|
|
508
|
-
/**
|
|
509
|
-
* The configuration for the axes of the chart.
|
|
510
|
-
*/
|
|
511
|
-
axes: ChartAxisPair;
|
|
512
|
-
/**
|
|
513
|
-
* Configuration options for the chart as a whole.
|
|
514
|
-
*/
|
|
515
|
-
options?: ChartOptions;
|
|
516
|
-
}
|
|
517
|
-
export type ChartDataRow = {
|
|
518
|
-
[key: string]: number | string;
|
|
519
|
-
};
|
|
520
|
-
export type ChartDataOptions = {
|
|
521
|
-
/**
|
|
522
|
-
* A mapping of fields to human-readable labels.
|
|
523
|
-
* We recommend pre-formatting your data to be human-readable instead of using this configuration.
|
|
524
|
-
*/
|
|
525
|
-
propertyLabels?: {
|
|
526
|
-
[fields: string]: Record<string, string>;
|
|
527
|
-
};
|
|
528
|
-
};
|
|
529
|
-
export type ChartAxisPair = {
|
|
530
|
-
/**
|
|
531
|
-
* The field to use for the horizontal x-axis.
|
|
532
|
-
*/
|
|
533
|
-
x: ChartAxis;
|
|
534
|
-
/**
|
|
535
|
-
* The field to use for the vertical y-axis.
|
|
536
|
-
*/
|
|
537
|
-
y: ChartAxis;
|
|
538
|
-
/**
|
|
539
|
-
* Configuration options for the pair of axes.
|
|
540
|
-
*/
|
|
541
|
-
options?: AxisPairOptions;
|
|
542
|
-
};
|
|
543
|
-
export type ChartAxis = {
|
|
544
|
-
/**
|
|
545
|
-
* The dataset field that should be graphed on this axis.
|
|
546
|
-
*/
|
|
547
|
-
field: string;
|
|
548
|
-
/**
|
|
549
|
-
* The type of data in the field property. Please read the documentation for the expected formats for each fieldType.
|
|
550
|
-
*/
|
|
551
|
-
fieldType: ChartFieldType;
|
|
552
|
-
/**
|
|
553
|
-
* The axis display label. Note: this will also be used in the legend and the hover tooltips.
|
|
554
|
-
*/
|
|
555
|
-
label?: string;
|
|
556
|
-
};
|
|
557
|
-
export type AxisPairOptions = {
|
|
558
|
-
/**
|
|
559
|
-
* If provided, the data will be grouped by color for this field.
|
|
560
|
-
*/
|
|
561
|
-
groupFieldByColor?: string;
|
|
562
|
-
/**
|
|
563
|
-
* When set to true, grouped data will be stacked.
|
|
564
|
-
*
|
|
565
|
-
* @defaultValue `false`
|
|
566
|
-
*/
|
|
567
|
-
stacking?: boolean;
|
|
568
|
-
/**
|
|
569
|
-
* If provided, assigns a color to each specified values of the field provided in `groupFieldByColor`.
|
|
570
|
-
*/
|
|
571
|
-
colors?: {
|
|
572
|
-
[key: string]: ChartColor;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
export declare const chartFieldTypes: {
|
|
576
|
-
readonly datetime: "datetime";
|
|
577
|
-
readonly linear: "linear";
|
|
578
|
-
readonly category: "category";
|
|
579
|
-
};
|
|
580
|
-
/**
|
|
581
|
-
* The type of field for this axis.
|
|
582
|
-
* - `datetime`: Used for time data, such as JavaScript timestamps.
|
|
583
|
-
* - `linear`: Used for numerical data, such as quantities.
|
|
584
|
-
* - `category`: Used for categorical data, such as different types of products.
|
|
585
|
-
*
|
|
586
|
-
* Please read the documentation for recommended usage.
|
|
587
|
-
*/
|
|
588
|
-
export type ChartFieldType = keyof typeof chartFieldTypes;
|
|
589
|
-
export type ChartOptions = {
|
|
590
|
-
/**
|
|
591
|
-
* Renders a title above the chart.
|
|
592
|
-
*/
|
|
593
|
-
title?: string;
|
|
594
|
-
/**
|
|
595
|
-
* When set to `true`, shows a legend for the chart.
|
|
596
|
-
*
|
|
597
|
-
* @defaultValue `false`
|
|
598
|
-
*/
|
|
599
|
-
showLegend?: boolean;
|
|
600
|
-
/**
|
|
601
|
-
* When set to `true`, shows hover tooltips for the charted data.
|
|
602
|
-
*
|
|
603
|
-
* @defaultValue `false`
|
|
604
|
-
*/
|
|
605
|
-
showTooltips?: boolean;
|
|
606
|
-
/**
|
|
607
|
-
* When set to `true`, shows labels for the data directly on the chart.
|
|
608
|
-
*
|
|
609
|
-
* @defaultValue `false`
|
|
610
|
-
*/
|
|
611
|
-
showDataLabels?: boolean;
|
|
612
|
-
/**
|
|
613
|
-
* Use to choose the order in which our chart colors are assigned to your data. Unspecified colors will be chosen after the ones you've provided here,
|
|
614
|
-
* so you don't need to provide a complete list of all possible colors.
|
|
615
|
-
* Please read the documentation for guidance on color usage.
|
|
616
|
-
*/
|
|
617
|
-
colorList?: ChartColor[];
|
|
618
|
-
/** @deprecated use colorList instead */
|
|
619
|
-
colors?: ChartColor[];
|
|
620
|
-
};
|
|
621
|
-
/**
|
|
622
|
-
* The allowed colors for data displayed on the chart.
|
|
623
|
-
*/
|
|
624
|
-
export type ChartColor = 'orange' | 'aqua' | 'purple' | 'yellow' | 'pink' | 'blue' | 'green' | 'darkOrange' | 'darkAqua' | 'darkPurple' | 'darkYellow' | 'darkPink' | 'darkBlue' | 'darkGreen';
|
|
625
|
-
/**
|
|
626
|
-
* The props type for {@link !components.DescriptionListItem}.
|
|
627
|
-
*
|
|
628
|
-
* @category Component Props
|
|
629
|
-
*/
|
|
630
|
-
export interface DescriptionListItemProps {
|
|
631
|
-
/**
|
|
632
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
633
|
-
*
|
|
634
|
-
*/
|
|
635
|
-
children: ReactNode;
|
|
636
|
-
/**
|
|
637
|
-
* Text to be displayed as the label.
|
|
638
|
-
*
|
|
639
|
-
*/
|
|
640
|
-
label: string;
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* The props type for {@link !components.DescriptionList}.
|
|
644
|
-
*
|
|
645
|
-
* @category Component Props
|
|
646
|
-
*/
|
|
647
|
-
export interface DescriptionListProps {
|
|
648
|
-
/**
|
|
649
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be {@link !components.DescriptionListItem}.
|
|
650
|
-
*
|
|
651
|
-
*/
|
|
652
|
-
children: ReactNode;
|
|
653
|
-
/**
|
|
654
|
-
* The direction the label/value pairs are placed in the description list container.
|
|
655
|
-
*
|
|
656
|
-
* @defaultValue `"column"`
|
|
657
|
-
*/
|
|
658
|
-
direction?: 'row' | 'column';
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* The props type for {@link !components.Divider}.
|
|
662
|
-
*
|
|
663
|
-
* @category Component Props
|
|
664
|
-
*/
|
|
665
|
-
export interface DividerProps {
|
|
666
|
-
/**
|
|
667
|
-
* The space between the divider and the content above and below it.
|
|
668
|
-
*
|
|
669
|
-
* @defaultValue `"small"`
|
|
670
|
-
*/
|
|
671
|
-
distance?: AllDistances;
|
|
672
|
-
}
|
|
673
|
-
export interface DropdownOption {
|
|
674
|
-
/**
|
|
675
|
-
* Text to be displayed as the menu item text.
|
|
676
|
-
*
|
|
677
|
-
*/
|
|
678
|
-
label: string;
|
|
679
|
-
/**
|
|
680
|
-
* A function that will be invoked when the item is clicked.
|
|
681
|
-
* It receives no arguments and its return value is ignored.
|
|
682
|
-
*
|
|
683
|
-
* @event
|
|
684
|
-
*/
|
|
685
|
-
onClick?: () => void;
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* The props type for {@link !components.Dropdown}.
|
|
689
|
-
*
|
|
690
|
-
* @category Component Props
|
|
691
|
-
*/
|
|
692
|
-
export interface DropdownProps {
|
|
693
|
-
/**
|
|
694
|
-
* The list of options to be rendered within the dropdown menu.
|
|
695
|
-
* Each option represents an entry in the Dropdown.
|
|
696
|
-
*/
|
|
697
|
-
options: DropdownOption[];
|
|
698
|
-
/**
|
|
699
|
-
* Controls the appearance of the dropdown button
|
|
700
|
-
*
|
|
701
|
-
* @defaultValue `"secondary"`
|
|
702
|
-
*/
|
|
703
|
-
variant?: 'primary' | 'secondary' | 'transparent';
|
|
704
|
-
/**
|
|
705
|
-
* Sets the content for the dropdown button.
|
|
706
|
-
*
|
|
707
|
-
* @defaultValue `"More"`
|
|
708
|
-
*/
|
|
709
|
-
buttonText?: string;
|
|
710
|
-
/**
|
|
711
|
-
* Sets the size of the dropdown button.
|
|
712
|
-
*
|
|
713
|
-
* @defaultValue `"md"`
|
|
714
|
-
*/
|
|
715
|
-
buttonSize?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
716
|
-
/**
|
|
717
|
-
* Disables the ability to focus and click-to-expand of the dropdown button
|
|
718
|
-
*
|
|
719
|
-
* @defaultValue `false`
|
|
720
|
-
*/
|
|
721
|
-
disabled?: boolean;
|
|
722
|
-
}
|
|
723
|
-
export type EmptyStateImageName = 'addOnReporting' | 'announcement' | 'api' | 'automatedTesting' | 'beta' | 'building' | 'callingSetUp' | 'companies' | 'components' | 'cone' | 'contacts' | 'contentStrategy' | 'customObjects' | 'customerExperience' | 'customerSupport' | 'deals' | 'developerSecurityUpdate' | 'electronicSignature' | 'electronicSignatureEmptyState' | 'emailConfirmation' | 'emptyStateCharts' | 'idea' | 'integrations' | 'leads' | 'lock' | 'meetings' | 'missedGoal' | 'multipleObjects' | 'object' | 'productsShoppingCart' | 'registration' | 'sandboxAddOn' | 'social' | 'store' | 'storeDisabled' | 'successfullyConnectedEmail' | 'target' | 'task' | 'tickets' | 'voteAndSearch';
|
|
724
|
-
/**
|
|
725
|
-
* The props type for {@link !components.EmptyState}.
|
|
726
|
-
*
|
|
727
|
-
* @category Component Props
|
|
728
|
-
*/
|
|
729
|
-
export interface EmptyStateProps {
|
|
730
|
-
/**
|
|
731
|
-
* When set to `true`, removes the default vertical margins in the component.
|
|
732
|
-
*
|
|
733
|
-
* @defaultValue `false`
|
|
734
|
-
*/
|
|
735
|
-
flush?: boolean;
|
|
736
|
-
/**
|
|
737
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
738
|
-
*
|
|
739
|
-
*/
|
|
740
|
-
children: ReactNode;
|
|
741
|
-
/**
|
|
742
|
-
* The text for the title header.
|
|
743
|
-
*
|
|
744
|
-
* @defaultValue `"All is not lost."`
|
|
745
|
-
*
|
|
746
|
-
*/
|
|
747
|
-
title?: string;
|
|
748
|
-
/**
|
|
749
|
-
* Sets the layout direction for the content. Can be either `horizontal` or `vertical`.
|
|
750
|
-
*
|
|
751
|
-
* @defaultValue `"horizontal"`
|
|
752
|
-
*/
|
|
753
|
-
layout?: 'horizontal' | 'vertical';
|
|
754
|
-
/**
|
|
755
|
-
* When set to `true`, swaps the visual order of the text (primary) and image (secondary) content. This ensures the primary content is still presented first to assistive technology.
|
|
756
|
-
*
|
|
757
|
-
* @defaultValue `false`
|
|
758
|
-
*/
|
|
759
|
-
reverseOrder?: boolean;
|
|
760
|
-
/**
|
|
761
|
-
* The max-width(in pixels) for the image container.
|
|
762
|
-
*
|
|
763
|
-
* @defaultValue `250`
|
|
764
|
-
*/
|
|
765
|
-
imageWidth?: number;
|
|
766
|
-
/**
|
|
767
|
-
* The name of the image to display.
|
|
768
|
-
*
|
|
769
|
-
* @defaultValue `"emptyStateCharts"`
|
|
770
|
-
*/
|
|
771
|
-
imageName?: EmptyStateImageName;
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* The props type for {@link !components.ErrorState}.
|
|
775
|
-
*
|
|
776
|
-
* @category Component Props
|
|
777
|
-
*/
|
|
778
|
-
export interface ErrorStateProps {
|
|
779
|
-
/**
|
|
780
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
781
|
-
*
|
|
782
|
-
*/
|
|
783
|
-
children: ReactNode;
|
|
784
|
-
/**
|
|
785
|
-
* The text of the title header.
|
|
786
|
-
*
|
|
787
|
-
*/
|
|
788
|
-
title?: string;
|
|
789
|
-
/**
|
|
790
|
-
* The type of error image that will be shown.
|
|
791
|
-
*
|
|
792
|
-
* @defaultValue `"error"`
|
|
793
|
-
*/
|
|
794
|
-
type?: 'error' | 'support' | 'lock';
|
|
795
|
-
}
|
|
796
|
-
export type FormInputValues = Record<string, string | number>;
|
|
797
|
-
/**
|
|
798
|
-
* The props type for {@link !components.Form}.
|
|
799
|
-
*
|
|
800
|
-
* @category Component Props
|
|
801
|
-
*/
|
|
802
|
-
export interface FormProps {
|
|
803
|
-
/**
|
|
804
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
805
|
-
*
|
|
806
|
-
*/
|
|
807
|
-
children: ReactNode;
|
|
808
|
-
/**
|
|
809
|
-
* The function that is called when the form is submitted. It will receive a FormSubmitExtensionEvent as an argument and its return value will be ignored. This function should be used instead of Button's `onClick` for the Form's submit button.
|
|
810
|
-
*
|
|
811
|
-
* @event
|
|
812
|
-
*/
|
|
813
|
-
onSubmit?: ReactionsHandler<FormSubmitExtensionEvent<FormInputValues>>;
|
|
814
|
-
/** @deprecated the value for `preventDefault` is now always `true`, use `onSubmit` to handle all form submission behavior */
|
|
815
|
-
preventDefault?: boolean;
|
|
816
|
-
/**
|
|
817
|
-
* Specifies how autcomplete behaves in the entire form.
|
|
818
|
-
* @defaultValue `"on"`
|
|
819
|
-
*/
|
|
820
|
-
autoComplete?: 'off' | 'on';
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* The props type for {@link !components.Heading}.
|
|
824
|
-
*
|
|
825
|
-
* @category Component Props
|
|
826
|
-
*/
|
|
827
|
-
export interface HeadingProps {
|
|
828
|
-
/**
|
|
829
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
830
|
-
*
|
|
831
|
-
*/
|
|
832
|
-
children: ReactNode;
|
|
833
|
-
/**
|
|
834
|
-
* When set to true, text will not line break.
|
|
835
|
-
*
|
|
836
|
-
* @defaultValue `false`
|
|
837
|
-
*/
|
|
838
|
-
inline?: boolean;
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* The props type for {@link !components.Icon}.
|
|
842
|
-
*
|
|
843
|
-
* @category Component Props
|
|
844
|
-
*/
|
|
845
|
-
export interface IconProps {
|
|
846
|
-
/**
|
|
847
|
-
* Sets the specific icon to display.
|
|
848
|
-
*/
|
|
849
|
-
name: IconNames;
|
|
850
|
-
/**
|
|
851
|
-
* Sets the size of the icon. If this prop is not provided, the icon will default to the size of its parent.
|
|
852
|
-
*
|
|
853
|
-
* @defaultValue `"medium"`
|
|
854
|
-
*/
|
|
855
|
-
size?: TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'];
|
|
856
|
-
/**
|
|
857
|
-
* Sets the text that a screenreader will read for this icon.
|
|
858
|
-
*/
|
|
859
|
-
screenReaderText?: string;
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* The props type for {@link !components.Iframe}.
|
|
863
|
-
*
|
|
864
|
-
* @ignore
|
|
865
|
-
* @experimental
|
|
866
|
-
* @category Component Props
|
|
867
|
-
*/
|
|
868
|
-
export interface IframeProps {
|
|
869
|
-
/**
|
|
870
|
-
* Sets the height of the iframe. If this prop is not provided, the iframe defaults size medium.
|
|
871
|
-
*
|
|
872
|
-
* @defaultValue `"medium"`
|
|
873
|
-
*/
|
|
874
|
-
height?: TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'];
|
|
875
|
-
/**
|
|
876
|
-
* The URL to render into the inline iframe.
|
|
877
|
-
*/
|
|
878
|
-
src: string;
|
|
879
|
-
}
|
|
880
|
-
/**
|
|
881
|
-
* The props type for {@link !components.Illustration}.
|
|
882
|
-
*
|
|
883
|
-
* @category Component Props
|
|
884
|
-
*/
|
|
885
|
-
export interface IllustrationProps {
|
|
886
|
-
name: IllustrationNames;
|
|
887
|
-
alt: string;
|
|
888
|
-
width?: number;
|
|
889
|
-
height?: number;
|
|
890
|
-
}
|
|
891
|
-
export declare const illustrationNames: {
|
|
892
|
-
readonly lock: "lock";
|
|
893
|
-
readonly unlock: "unlock";
|
|
894
|
-
readonly electronicSignature: "electronic-signature";
|
|
895
|
-
readonly electronicSignatureEmptyState: "electronic-signature-empty-state";
|
|
896
|
-
readonly callingSetUp: "calling-set-up";
|
|
897
|
-
readonly companies: "companies";
|
|
898
|
-
readonly contacts: "contacts";
|
|
899
|
-
readonly multipleObjects: "multiple-objects";
|
|
900
|
-
readonly object: "object";
|
|
901
|
-
readonly task: "task";
|
|
902
|
-
readonly deals: "deals";
|
|
903
|
-
readonly registration: "registration";
|
|
904
|
-
readonly developerSecurityUpdate: "developer-security-update";
|
|
905
|
-
readonly social: "social";
|
|
906
|
-
readonly leads: "leads";
|
|
907
|
-
readonly target: "target";
|
|
908
|
-
readonly emailConfirmation: "email-confirmation";
|
|
909
|
-
readonly successfullyConnectedEmail: "successfully-connected-email";
|
|
910
|
-
readonly contentStrategy: "content-strategy";
|
|
911
|
-
readonly addOnReporting: "add-on-reporting";
|
|
912
|
-
readonly productsShoppingCart: "products-shopping-cart";
|
|
913
|
-
readonly store: "store";
|
|
914
|
-
readonly storeDisabled: "store-disabled";
|
|
915
|
-
readonly customerSupport: "customer-support";
|
|
916
|
-
readonly customerExperience: "customer-experience";
|
|
917
|
-
readonly api: "api";
|
|
918
|
-
readonly integrations: "integrations";
|
|
919
|
-
readonly sandboxAddOn: "sandbox-add-on";
|
|
920
|
-
readonly customObjects: "custom-objects";
|
|
921
|
-
readonly paymentsButton: "payments-button";
|
|
922
|
-
readonly automatedTesting: "automated-testing";
|
|
923
|
-
readonly emptyStateCharts: "empty-state-charts";
|
|
924
|
-
readonly meetings: "meetings-small";
|
|
925
|
-
readonly tickets: "ticket-small";
|
|
926
|
-
readonly errorGeneral: "errors/general";
|
|
927
|
-
readonly errorHourglass: "errors/hourglass";
|
|
928
|
-
readonly middlePaneCards: "settings-middle-pane-cards";
|
|
929
|
-
readonly propertiesSidebar: "settings-properties-sidebar";
|
|
930
|
-
readonly sidebar: "settings-sidebar";
|
|
931
|
-
};
|
|
932
|
-
export type IllustrationNames = keyof typeof illustrationNames;
|
|
933
|
-
/**
|
|
934
|
-
* The props type for {@link !components.Image}.
|
|
935
|
-
*
|
|
936
|
-
* @category Component Props
|
|
937
|
-
*/
|
|
938
|
-
export interface ImageProps extends OverlayComponentProps {
|
|
939
|
-
/**
|
|
940
|
-
* The alt text for the image.
|
|
941
|
-
*
|
|
942
|
-
*/
|
|
943
|
-
alt?: string;
|
|
944
|
-
/**
|
|
945
|
-
* If provided, will be used as the href that will be opened in a new browser tab on click.
|
|
946
|
-
*
|
|
947
|
-
*/
|
|
948
|
-
href?: HrefProp;
|
|
949
|
-
/**
|
|
950
|
-
* A function that will be called when the image is clicked.
|
|
951
|
-
*
|
|
952
|
-
* @event
|
|
953
|
-
*/
|
|
954
|
-
onClick?: ReactionsHandler<ExtensionEvent>;
|
|
955
|
-
/**
|
|
956
|
-
* The URL of the image to display.
|
|
957
|
-
*
|
|
958
|
-
*/
|
|
959
|
-
src: string;
|
|
960
|
-
/**
|
|
961
|
-
* The pixel width of the image.
|
|
962
|
-
*
|
|
963
|
-
*/
|
|
964
|
-
width?: number;
|
|
965
|
-
/**
|
|
966
|
-
* The pixel height of the image.
|
|
967
|
-
*
|
|
968
|
-
*/
|
|
969
|
-
height?: number;
|
|
970
|
-
}
|
|
971
|
-
/**
|
|
972
|
-
* Generic collection of props for all inputs
|
|
973
|
-
* @internal
|
|
974
|
-
* */
|
|
975
|
-
interface BaseInputProps<T = string, V = string> {
|
|
976
|
-
/**
|
|
977
|
-
* The label text to display for the form input element.
|
|
978
|
-
*/
|
|
979
|
-
label: string;
|
|
980
|
-
/**
|
|
981
|
-
* The unique identifier for the input element, this could be thought of as the HTML5 [Input element's name attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name).
|
|
982
|
-
*/
|
|
983
|
-
name: string;
|
|
984
|
-
/**
|
|
985
|
-
* The value of the input.
|
|
986
|
-
*/
|
|
987
|
-
value?: T;
|
|
988
|
-
/**
|
|
989
|
-
* Determines if the required indicator should be displayed.
|
|
990
|
-
*
|
|
991
|
-
* @defaultValue `false`
|
|
992
|
-
*/
|
|
993
|
-
required?: boolean;
|
|
994
|
-
/**
|
|
995
|
-
* Determines if the field is editable or not.
|
|
996
|
-
*
|
|
997
|
-
* @defaultValue `false`
|
|
998
|
-
*/
|
|
999
|
-
readOnly?: boolean;
|
|
1000
|
-
/**
|
|
1001
|
-
* Instructional message to display to the user to help understand the purpose of the input.
|
|
1002
|
-
*/
|
|
1003
|
-
description?: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* Text that will appear in a tooltip next to the input label.
|
|
1006
|
-
*/
|
|
1007
|
-
tooltip?: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* Text that appears in the input when it has no value set.
|
|
1010
|
-
*/
|
|
1011
|
-
placeholder?: string;
|
|
1012
|
-
/**
|
|
1013
|
-
* If set to `true`, `validationMessage` is displayed as an error message, if it was provided. The input will also render its error state to let the user know there is an error. If set to `false`, `validationMessage` is displayed as a success message.
|
|
1014
|
-
*
|
|
1015
|
-
* @defaultValue `false`
|
|
1016
|
-
*/
|
|
1017
|
-
error?: boolean;
|
|
1018
|
-
/**
|
|
1019
|
-
* The value of the input on the first render.
|
|
1020
|
-
*/
|
|
1021
|
-
defaultValue?: T;
|
|
1022
|
-
/**
|
|
1023
|
-
* The text to show under the input for error or success validations.
|
|
1024
|
-
*/
|
|
1025
|
-
validationMessage?: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* A callback function that is invoked when the value is committed. Currently these times are `onBlur` of the input and when the user submits the form.
|
|
1028
|
-
*
|
|
1029
|
-
* @event
|
|
1030
|
-
*/
|
|
1031
|
-
onChange?: (value: V) => void;
|
|
1032
|
-
/**
|
|
1033
|
-
* A function that is called and passed the value every time the field is edited by the user. It is recommended that you do not use this value to update state, that is what `onChange` should be used for. Instead this should be used for validation.
|
|
1034
|
-
*
|
|
1035
|
-
* @event
|
|
1036
|
-
*/
|
|
1037
|
-
onInput?: (value: V) => void;
|
|
1038
|
-
/**
|
|
1039
|
-
* A function that is called and passed the value every time the field loses focus.
|
|
1040
|
-
*
|
|
1041
|
-
* @event
|
|
1042
|
-
*/
|
|
1043
|
-
onBlur?: (value: V) => void;
|
|
1044
|
-
/**
|
|
1045
|
-
* A function that is called and passed the value every time the field gets focused.
|
|
1046
|
-
*
|
|
1047
|
-
* @event
|
|
1048
|
-
*/
|
|
1049
|
-
onFocus?: (value: V) => void;
|
|
1050
|
-
}
|
|
1051
|
-
/**
|
|
1052
|
-
* The props type for {@link !components.Input}.
|
|
1053
|
-
*
|
|
1054
|
-
* @category Component Props
|
|
1055
|
-
*/
|
|
1056
|
-
export interface InputProps extends BaseInputProps {
|
|
1057
|
-
/**
|
|
1058
|
-
* Sets the type of input to render.
|
|
1059
|
-
*
|
|
1060
|
-
* @defaultValue `"text"`
|
|
1061
|
-
*/
|
|
1062
|
-
type?: 'text' | 'password';
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* The props type for {@link !components.TextArea}.
|
|
1066
|
-
*
|
|
1067
|
-
* @category Component Props
|
|
1068
|
-
*/
|
|
1069
|
-
export interface TextAreaProps extends BaseInputProps {
|
|
1070
|
-
/**
|
|
1071
|
-
* The visible width of the text field in average character widths.
|
|
1072
|
-
*/
|
|
1073
|
-
cols?: number;
|
|
1074
|
-
/**
|
|
1075
|
-
* The maximum number of characters (UTF-16 code units) that the user can enter. If not specified, the max length is unlimited.
|
|
1076
|
-
*/
|
|
1077
|
-
maxLength?: number;
|
|
1078
|
-
/**
|
|
1079
|
-
* The number of visible text lines for the text field.
|
|
1080
|
-
*/
|
|
1081
|
-
rows?: number;
|
|
1082
|
-
/**
|
|
1083
|
-
* Sets whether the element is resizable, and if so in which directions.
|
|
1084
|
-
*
|
|
1085
|
-
* @defaultValue `"both"`
|
|
1086
|
-
*/
|
|
1087
|
-
resize?: 'vertical' | 'horizontal' | 'both' | 'none';
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Textarea was changed to TextArea. Exporting both for backwards compat
|
|
1091
|
-
*
|
|
1092
|
-
* @ignore
|
|
1093
|
-
* @internal
|
|
1094
|
-
* */
|
|
1095
|
-
export type TextareaProps = TextAreaProps;
|
|
1096
|
-
/**
|
|
1097
|
-
* @internal
|
|
1098
|
-
* @ignore
|
|
1099
|
-
* */
|
|
1100
|
-
type BaseInputForNumber = Omit<BaseInputProps<number, number>, 'onInput'>;
|
|
1101
|
-
/**
|
|
1102
|
-
* The props type for {@link !components.NumberInput}.
|
|
1103
|
-
*
|
|
1104
|
-
* @category Component Props
|
|
1105
|
-
*/
|
|
1106
|
-
export interface NumberInputProps extends BaseInputForNumber {
|
|
1107
|
-
/**
|
|
1108
|
-
* Sets the lower bound of the input.
|
|
1109
|
-
*
|
|
1110
|
-
*/
|
|
1111
|
-
min?: number;
|
|
1112
|
-
/**
|
|
1113
|
-
* Sets the upper bound of the input.
|
|
1114
|
-
*
|
|
1115
|
-
*/
|
|
1116
|
-
max?: number;
|
|
1117
|
-
/**
|
|
1118
|
-
* Sets the number of digits to the right of the decimal point.
|
|
1119
|
-
*
|
|
1120
|
-
*/
|
|
1121
|
-
precision?: number;
|
|
1122
|
-
/**
|
|
1123
|
-
* Formats the input as a decimal point (decimal) or percentage (percentage).
|
|
1124
|
-
*
|
|
1125
|
-
* @defaultValue `"decimal"`
|
|
1126
|
-
*/
|
|
1127
|
-
formatStyle?: 'decimal' | 'percentage';
|
|
1128
|
-
/** @deprecated use onChange instead. It doesn't guarantee valid format */
|
|
1129
|
-
onInput?: (value: number) => void;
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* The props type for {@link !components.CurrencyInput}.
|
|
1133
|
-
*
|
|
1134
|
-
* @category Component Props
|
|
1135
|
-
*/
|
|
1136
|
-
export interface CurrencyInputProps extends BaseInputForNumber {
|
|
1137
|
-
/**
|
|
1138
|
-
* ISO 4217 currency code (e.g., "USD", "EUR", "JPY")
|
|
1139
|
-
* @defaultValue "USD"
|
|
1140
|
-
*/
|
|
1141
|
-
currency?: string;
|
|
1142
|
-
/**
|
|
1143
|
-
* Sets the number of decimal places for the currency
|
|
1144
|
-
* If not provided, defaults to currency-specific precision
|
|
1145
|
-
*/
|
|
1146
|
-
precision?: number;
|
|
1147
|
-
/**
|
|
1148
|
-
* Sets the lower bound of the input
|
|
1149
|
-
*/
|
|
1150
|
-
min?: number;
|
|
1151
|
-
/**
|
|
1152
|
-
* Sets the upper bound of the input
|
|
1153
|
-
*/
|
|
1154
|
-
max?: number;
|
|
1155
|
-
}
|
|
1156
|
-
/**
|
|
1157
|
-
* The props type for {@link !components.StepperInput}.
|
|
1158
|
-
*
|
|
1159
|
-
* @category Component Props
|
|
1160
|
-
*/
|
|
1161
|
-
export interface StepperInputProps extends Omit<NumberInputProps, 'onInput'> {
|
|
1162
|
-
/** The amount that the current value will increase or decrease on each step button click.
|
|
1163
|
-
* @defaultValue `1`
|
|
1164
|
-
*/
|
|
1165
|
-
stepSize?: number;
|
|
1166
|
-
/**
|
|
1167
|
-
* Text that will appear in a tooltip next to the step up button when users
|
|
1168
|
-
* can't increase the current value.
|
|
1169
|
-
*/
|
|
1170
|
-
maxValueReachedTooltip?: string;
|
|
1171
|
-
/**
|
|
1172
|
-
* Text that will appear in a tooltip next to the step down button when users
|
|
1173
|
-
* can't decrease the current value.
|
|
1174
|
-
*/
|
|
1175
|
-
minValueReachedTooltip?: string;
|
|
1176
|
-
}
|
|
1177
|
-
/** Object that represents dates. */
|
|
1178
|
-
export interface BaseDate {
|
|
1179
|
-
/** the four-digit year (e.g., 2023). */
|
|
1180
|
-
year: number;
|
|
1181
|
-
/** starting at 0, the number of the month (e.g., 0 = January, 11 = December). */
|
|
1182
|
-
month: number;
|
|
1183
|
-
/** the number of the day (e.g., 1 = the first day of the month).*/
|
|
1184
|
-
date: number;
|
|
1185
|
-
}
|
|
1186
|
-
/** The values used to invoke events on the DateInput component */
|
|
1187
|
-
export interface DateInputEventsPayload extends BaseDate {
|
|
1188
|
-
/** Selected date with formatting option applied. (e.g., 09/04/1986). */
|
|
1189
|
-
formattedDate?: string;
|
|
1190
|
-
}
|
|
1191
|
-
/**
|
|
1192
|
-
* @internal
|
|
1193
|
-
* @ignore
|
|
1194
|
-
* */
|
|
1195
|
-
type BaseDateInputForDate = Omit<BaseInputProps<BaseDate | null, DateInputEventsPayload>, 'onInput' | 'placeholder'>;
|
|
1196
|
-
/**
|
|
1197
|
-
* The props type for {@link !components.DateInput}.
|
|
1198
|
-
*
|
|
1199
|
-
* @category Component Props
|
|
1200
|
-
*/
|
|
1201
|
-
export interface DateInputProps extends BaseDateInputForDate {
|
|
1202
|
-
/**
|
|
1203
|
-
* Sets the earliest date that will be valid.
|
|
1204
|
-
*/
|
|
1205
|
-
min?: BaseDate;
|
|
1206
|
-
/**
|
|
1207
|
-
* Sets the latest date that will be valid.
|
|
1208
|
-
*/
|
|
1209
|
-
max?: BaseDate;
|
|
1210
|
-
/**
|
|
1211
|
-
* Sets the message that users will see when they hover over dates before the min date.
|
|
1212
|
-
*
|
|
1213
|
-
* @defaultValue `"You must choose a newer date"`
|
|
1214
|
-
*/
|
|
1215
|
-
minValidationMessage?: string;
|
|
1216
|
-
/**
|
|
1217
|
-
* Sets the message that users will see when the hover over dates after the max date.
|
|
1218
|
-
*
|
|
1219
|
-
* @defaultValue `"You must choose an older date"`
|
|
1220
|
-
*/
|
|
1221
|
-
maxValidationMessage?: string;
|
|
1222
|
-
/**
|
|
1223
|
-
* Sets the date format that input will display to users.
|
|
1224
|
-
*
|
|
1225
|
-
* @defaultValue `short`
|
|
1226
|
-
*
|
|
1227
|
-
* #### Format Options
|
|
1228
|
-
*
|
|
1229
|
-
* - short: `09/04/1986`
|
|
1230
|
-
* - long: `September 4, 1986`
|
|
1231
|
-
* - medium : `Sep 4, 1986`
|
|
1232
|
-
* - standard: `1986-09-04`
|
|
1233
|
-
* - L: `09/04/1986`
|
|
1234
|
-
* - LL: `September 4, 1986`
|
|
1235
|
-
* - ll : `Sep 4, 1986`
|
|
1236
|
-
* - YYYY-MM-DD: `1986-09-04`
|
|
1237
|
-
*/
|
|
1238
|
-
format?: 'YYYY-MM-DD' | 'L' | 'LL' | 'll' | 'short' | 'long' | 'medium' | 'standard';
|
|
1239
|
-
/**
|
|
1240
|
-
* Sets the timezone that the component will use to calculate valid dates.
|
|
1241
|
-
*
|
|
1242
|
-
* @defaultValue `"userTz"`
|
|
1243
|
-
*/
|
|
1244
|
-
timezone?: 'userTz' | 'portalTz';
|
|
1245
|
-
/**
|
|
1246
|
-
* Sets the label of the clear button.
|
|
1247
|
-
*
|
|
1248
|
-
* @defaultValue `"Clear"`
|
|
1249
|
-
*/
|
|
1250
|
-
clearButtonLabel?: string;
|
|
1251
|
-
/**
|
|
1252
|
-
* Sets the label of the today button.
|
|
1253
|
-
*
|
|
1254
|
-
* @defaultValue `"Today"`
|
|
1255
|
-
*/
|
|
1256
|
-
todayButtonLabel?: string;
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* Object that represents times.
|
|
1260
|
-
*/
|
|
1261
|
-
export interface BaseTime {
|
|
1262
|
-
/** The hour for the time (0 to 23) in 24-hour format (e.g. 0 = 12:00 AM, 9 = 9:00 AM, 15 = 3:00 PM). */
|
|
1263
|
-
hours: number;
|
|
1264
|
-
/** The minutes for the time (0 to 59). */
|
|
1265
|
-
minutes: number;
|
|
1266
|
-
}
|
|
1267
|
-
/**
|
|
1268
|
-
* @ignore
|
|
1269
|
-
*
|
|
1270
|
-
* The values used to invoke events on the TimeInput component
|
|
1271
|
-
*/
|
|
1272
|
-
export interface TimeInputEventsPayload extends BaseTime {
|
|
1273
|
-
}
|
|
1274
|
-
/**
|
|
1275
|
-
* @internal
|
|
1276
|
-
* @ignore
|
|
1277
|
-
* */
|
|
1278
|
-
type BaseTimeInputForTime = Omit<BaseInputProps<BaseTime | null, TimeInputEventsPayload>, 'onInput' | 'placeholder' | 'onChange'>;
|
|
1279
|
-
/**
|
|
1280
|
-
* The props type for {@link !components.TimeInput}.
|
|
1281
|
-
*
|
|
1282
|
-
* @category Component Props
|
|
1283
|
-
*/
|
|
1284
|
-
export interface TimeInputProps extends BaseTimeInputForTime {
|
|
1285
|
-
/**
|
|
1286
|
-
* A callback function that is invoked when the value is changed.
|
|
1287
|
-
*
|
|
1288
|
-
* @event
|
|
1289
|
-
*/
|
|
1290
|
-
onChange?: (value: TimeInputEventsPayload) => void;
|
|
1291
|
-
/**
|
|
1292
|
-
* Sets the earliest time that will be valid.
|
|
1293
|
-
*/
|
|
1294
|
-
min?: BaseTime;
|
|
1295
|
-
/**
|
|
1296
|
-
* Sets the latest time that will be valid.
|
|
1297
|
-
*/
|
|
1298
|
-
max?: BaseTime;
|
|
1299
|
-
/**
|
|
1300
|
-
* Sets the interval (in minutes) between the dropdown options.
|
|
1301
|
-
*
|
|
1302
|
-
* @defaultValue `30`
|
|
1303
|
-
*/
|
|
1304
|
-
interval?: number;
|
|
1305
|
-
/**
|
|
1306
|
-
* Sets the timezone that the component will display alongside times in the TimeInput. This will not modify the available valid inputs.
|
|
1307
|
-
*
|
|
1308
|
-
*/
|
|
1309
|
-
timezone?: 'userTz' | 'portalTz';
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* The props type for {@link !components.SearchInput}.
|
|
1313
|
-
*
|
|
1314
|
-
* @category Component Props
|
|
1315
|
-
*/
|
|
1316
|
-
export interface SearchInputProps extends BaseInputProps {
|
|
1317
|
-
/** Shows a clear button to clear the input. Default is true. */
|
|
1318
|
-
clearable?: boolean;
|
|
1319
|
-
}
|
|
1320
|
-
/**
|
|
1321
|
-
* The props type for {@link !components.Stack}.
|
|
1322
|
-
*
|
|
1323
|
-
* @category Component Props
|
|
1324
|
-
*/
|
|
1325
|
-
export interface StackProps {
|
|
1326
|
-
/**
|
|
1327
|
-
* Sets the spacing between components.
|
|
1328
|
-
*/
|
|
1329
|
-
distance?: AllDistances;
|
|
1330
|
-
/**
|
|
1331
|
-
* Sets the content that will render inside the component.
|
|
1332
|
-
*/
|
|
1333
|
-
children?: React.ReactNode;
|
|
1334
|
-
/**
|
|
1335
|
-
* Arranges components `horizontally` or `vertically` by setting the main axis.
|
|
1336
|
-
*/
|
|
1337
|
-
direction?: 'row' | 'column';
|
|
1338
|
-
/**
|
|
1339
|
-
* Distributes components along the main axis using the available free space.
|
|
1340
|
-
*/
|
|
1341
|
-
justify?: 'center' | 'end' | 'start';
|
|
1342
|
-
/**
|
|
1343
|
-
* Distributes components along the cross-axis using the available free space.
|
|
1344
|
-
*/
|
|
1345
|
-
align?: 'start' | 'center' | 'baseline' | 'end' | 'stretch';
|
|
1346
|
-
/**
|
|
1347
|
-
* Sets the width of the stack.
|
|
1348
|
-
*/
|
|
1349
|
-
width?: 'auto' | '100%';
|
|
1350
|
-
}
|
|
1351
|
-
export type FlexJustify = 'center' | 'end' | 'start' | 'around' | 'between';
|
|
1352
|
-
export type FlexAlign = 'start' | 'center' | 'baseline' | 'end' | 'stretch';
|
|
1353
|
-
/**
|
|
1354
|
-
* The props type for {@link !components.Flex}.
|
|
1355
|
-
*
|
|
1356
|
-
* @category Component Props
|
|
1357
|
-
*/
|
|
1358
|
-
export interface FlexProps {
|
|
1359
|
-
/**
|
|
1360
|
-
* Sets the spacing between components.
|
|
1361
|
-
*
|
|
1362
|
-
* @defaultValue `"flush"`
|
|
1363
|
-
*/
|
|
1364
|
-
gap?: AllDistances;
|
|
1365
|
-
/**
|
|
1366
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
1367
|
-
*
|
|
1368
|
-
*/
|
|
1369
|
-
children?: ReactNode;
|
|
1370
|
-
/**
|
|
1371
|
-
* Arranges components `horizontally` or `vertically` by setting the main axis.
|
|
1372
|
-
*
|
|
1373
|
-
* @defaultValue `"row"`
|
|
1374
|
-
*/
|
|
1375
|
-
direction?: 'row' | 'column';
|
|
1376
|
-
/**
|
|
1377
|
-
* Distributes components along the main axis using the available free space.
|
|
1378
|
-
*
|
|
1379
|
-
* @defaultValue `"start"`
|
|
1380
|
-
*/
|
|
1381
|
-
justify?: FlexJustify;
|
|
1382
|
-
/**
|
|
1383
|
-
* Distributes components along the cross-axis using the available free space.
|
|
1384
|
-
*
|
|
1385
|
-
* @defaultValue `"stretch"`
|
|
1386
|
-
*/
|
|
1387
|
-
align?: FlexAlign;
|
|
1388
|
-
/**
|
|
1389
|
-
* Overrides Flex's `alignItem` value for this element.
|
|
1390
|
-
*
|
|
1391
|
-
*/
|
|
1392
|
-
alignSelf?: FlexAlign;
|
|
1393
|
-
/**
|
|
1394
|
-
* Whether components will wrap instead of trying to fit on one line.
|
|
1395
|
-
*
|
|
1396
|
-
* @defaultValue `"nowrap"`
|
|
1397
|
-
*/
|
|
1398
|
-
wrap?: boolean | 'wrap' | 'nowrap';
|
|
1399
|
-
}
|
|
1400
|
-
/**
|
|
1401
|
-
* The props type for {@link !components.Box}.
|
|
1402
|
-
*
|
|
1403
|
-
* @category Component Props
|
|
1404
|
-
*/
|
|
1405
|
-
export interface BoxProps {
|
|
1406
|
-
/**
|
|
1407
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
1408
|
-
*
|
|
1409
|
-
*/
|
|
1410
|
-
children: ReactNode;
|
|
1411
|
-
/**
|
|
1412
|
-
* Overrides Flex's `alignItem` value for this element.
|
|
1413
|
-
*
|
|
1414
|
-
* @defaultValue `"auto"`
|
|
1415
|
-
*/
|
|
1416
|
-
alignSelf?: 'start' | 'center' | 'baseline' | 'end' | 'stretch' | 'auto';
|
|
1417
|
-
/**
|
|
1418
|
-
* Sets how the item will grow or shrink when it's a direct ancestor of the Flex component.
|
|
1419
|
-
* ##### Options in detail
|
|
1420
|
-
*
|
|
1421
|
-
*- `initial`: The item is sized according to its width and height properties. It shrinks to its minimum size to fit the container, but does not grow to absorb any extra free space in the flex container.
|
|
1422
|
-
*- `auto`: The item is sized according to its width and height properties, but grows to absorb any extra free space in the flex container, and shrinks to its minimum size to fit the container.
|
|
1423
|
-
*- `none`: The item is sized according to its width and height properties. It is fully inflexible: it neither shrinks nor grows in relation to the flex container.
|
|
1424
|
-
*- `number`: Tells a component to fill all available space, shared evenly amongst other components with the same parent. The larger the flex given, the higher the ratio of space a component will take compared to its siblings.
|
|
1425
|
-
*
|
|
1426
|
-
* @defaultValue `"initial"`
|
|
1427
|
-
*/
|
|
1428
|
-
flex?: 'initial' | 'auto' | 'none' | number;
|
|
1429
|
-
}
|
|
1430
|
-
/**
|
|
1431
|
-
* The props type for {@link !components.Inline}.
|
|
1432
|
-
*
|
|
1433
|
-
* @category Component Props
|
|
1434
|
-
*/
|
|
1435
|
-
export interface InlineProps {
|
|
1436
|
-
/**
|
|
1437
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
1438
|
-
*
|
|
1439
|
-
*/
|
|
1440
|
-
children?: ReactNode;
|
|
1441
|
-
/**
|
|
1442
|
-
* Distributes components along the main axis using the available free space.
|
|
1443
|
-
* @defaultValue `"start"`
|
|
1444
|
-
*/
|
|
1445
|
-
justify?: FlexJustify;
|
|
1446
|
-
/**
|
|
1447
|
-
* Distributes components along the cross-axis using the available free space.
|
|
1448
|
-
* @defaultValue `"center"`
|
|
1449
|
-
*/
|
|
1450
|
-
align?: FlexAlign;
|
|
1451
|
-
/**
|
|
1452
|
-
* Sets the spacing between components.
|
|
1453
|
-
*
|
|
1454
|
-
* @defaultValue `"flush"`
|
|
1455
|
-
*/
|
|
1456
|
-
gap?: AllDistances;
|
|
1457
|
-
}
|
|
1458
|
-
/**
|
|
1459
|
-
* The props type for {@link !components.AutoGrid}.
|
|
1460
|
-
*
|
|
1461
|
-
* @category Component Props
|
|
1462
|
-
*/
|
|
1463
|
-
export interface AutoGridProps {
|
|
1464
|
-
/**
|
|
1465
|
-
* Sets the width of each column in the grid.
|
|
1466
|
-
* When `flexible` is true, columns will be at least this width (or collapse to container width if smaller), then expand equally to fill available space.
|
|
1467
|
-
* When `flexible` is false, columns are exactly this width.
|
|
1468
|
-
*/
|
|
1469
|
-
columnWidth: number;
|
|
1470
|
-
/**
|
|
1471
|
-
* Sets the spacing between grid items.
|
|
1472
|
-
*
|
|
1473
|
-
* @defaultValue `"flush"`
|
|
1474
|
-
*/
|
|
1475
|
-
gap?: AllDistances;
|
|
1476
|
-
/**
|
|
1477
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
1478
|
-
*
|
|
1479
|
-
*/
|
|
1480
|
-
children?: ReactNode;
|
|
1481
|
-
/**
|
|
1482
|
-
* Whether columns should expand to fill available space.
|
|
1483
|
-
* When true, columns will be at least `columnWidth` but grow equally to fill the container.
|
|
1484
|
-
* When false, columns are exactly `columnWidth`.
|
|
1485
|
-
*
|
|
1486
|
-
* @defaultValue `false`
|
|
1487
|
-
*/
|
|
1488
|
-
flexible?: boolean;
|
|
1489
|
-
}
|
|
1490
|
-
/**
|
|
1491
|
-
* The props type for {@link !components.Link}.
|
|
1492
|
-
*
|
|
1493
|
-
* @category Component Props
|
|
1494
|
-
*/
|
|
1495
|
-
export interface LinkProps extends OverlayComponentProps {
|
|
1496
|
-
/**
|
|
1497
|
-
* Sets the content that will render inside the component.
|
|
1498
|
-
*
|
|
1499
|
-
*/
|
|
1500
|
-
children: ReactNode;
|
|
1501
|
-
/**
|
|
1502
|
-
* The URL that will be opened on click. Links to pages in the HubSpot account will open in the same tab, while non-HubSpot links will open in a new tab.
|
|
1503
|
-
*
|
|
1504
|
-
*/
|
|
1505
|
-
href: HrefProp;
|
|
1506
|
-
/**
|
|
1507
|
-
* The color variation of the link.
|
|
1508
|
-
*
|
|
1509
|
-
* @defaultValue `"primary"`
|
|
1510
|
-
*/
|
|
1511
|
-
variant?: 'primary' | 'destructive' | 'light' | 'dark';
|
|
1512
|
-
/**
|
|
1513
|
-
* A function that will be invoked with the link is clicked.
|
|
1514
|
-
*
|
|
1515
|
-
* @event
|
|
1516
|
-
*/
|
|
1517
|
-
onClick?: ReactionsHandler<ExtensionEvent>;
|
|
1518
|
-
/**
|
|
1519
|
-
* When set to true, `event.preventDefault()` will be invoked before the `onClick` function is called, preventing automatic navigation to the href URL.
|
|
1520
|
-
*
|
|
1521
|
-
* @defaultValue `false`
|
|
1522
|
-
*/
|
|
1523
|
-
preventDefault?: boolean;
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
* The props type for {@link !components.List}.
|
|
1527
|
-
*
|
|
1528
|
-
* @category Component Props
|
|
1529
|
-
*/
|
|
1530
|
-
export interface ListProps {
|
|
1531
|
-
/**
|
|
1532
|
-
* The content of the list. Each child will be wrapped in an `li` tag.
|
|
1533
|
-
*/
|
|
1534
|
-
children: ReactNode;
|
|
1535
|
-
/**
|
|
1536
|
-
* The type of list to render.
|
|
1537
|
-
*
|
|
1538
|
-
* @defaultValue `"unordered"`
|
|
1539
|
-
*/
|
|
1540
|
-
variant?: 'unordered' | 'unordered-styled' | 'ordered' | 'ordered-styled' | 'inline' | 'inline-divided';
|
|
1541
|
-
}
|
|
1542
|
-
/**
|
|
1543
|
-
* The props type for {@link !components.LoadingSpinner}.
|
|
1544
|
-
*
|
|
1545
|
-
* @category Component Props
|
|
1546
|
-
*/
|
|
1547
|
-
export interface LoadingSpinnerProps {
|
|
1548
|
-
/**
|
|
1549
|
-
* The text that displays next to the spinner. Note: the label is not shown by default, you must set `showLabel` to `true` to display the label.
|
|
1550
|
-
*
|
|
1551
|
-
*/
|
|
1552
|
-
label: string;
|
|
1553
|
-
/**
|
|
1554
|
-
* When set to `true`, the label will appear next to the spinner.
|
|
1555
|
-
*
|
|
1556
|
-
* @defaultValue `false`
|
|
1557
|
-
*/
|
|
1558
|
-
showLabel?: boolean;
|
|
1559
|
-
/**
|
|
1560
|
-
* The size of the spinner.
|
|
1561
|
-
*
|
|
1562
|
-
* @defaultValue `"sm"`
|
|
1563
|
-
*/
|
|
1564
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
1565
|
-
/**
|
|
1566
|
-
* The position of the spinner. Can be one of `inline` or `centered`.
|
|
1567
|
-
*
|
|
1568
|
-
* @defaultValue `"inline"`
|
|
1569
|
-
*/
|
|
1570
|
-
layout?: 'inline' | 'centered';
|
|
1571
|
-
}
|
|
1572
|
-
export interface ModalProps {
|
|
1573
|
-
/**
|
|
1574
|
-
* Accessibility label.
|
|
1575
|
-
*
|
|
1576
|
-
*/
|
|
1577
|
-
'aria-label'?: string;
|
|
1578
|
-
/**
|
|
1579
|
-
* The main content of the modal when it opens.
|
|
1580
|
-
*
|
|
1581
|
-
*/
|
|
1582
|
-
children?: ReactNode;
|
|
1583
|
-
/**
|
|
1584
|
-
* A unique ID for the modal
|
|
1585
|
-
*
|
|
1586
|
-
*/
|
|
1587
|
-
id: string;
|
|
1588
|
-
/**
|
|
1589
|
-
* A function that will be invoked when the modal has finished opening.
|
|
1590
|
-
*
|
|
1591
|
-
*/
|
|
1592
|
-
onOpen?: () => void;
|
|
1593
|
-
/**
|
|
1594
|
-
* A function that will be invoked when the modal has finished closing.
|
|
1595
|
-
*
|
|
1596
|
-
*/
|
|
1597
|
-
onClose?: () => void;
|
|
1598
|
-
/**
|
|
1599
|
-
* The width of the modal
|
|
1600
|
-
*
|
|
1601
|
-
* @defaultValue `"sm"`
|
|
1602
|
-
*/
|
|
1603
|
-
width?: TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'];
|
|
1604
|
-
/**
|
|
1605
|
-
* The title of the modal
|
|
1606
|
-
*
|
|
1607
|
-
*/
|
|
1608
|
-
title?: string;
|
|
1609
|
-
/**
|
|
1610
|
-
* The variant of the modal
|
|
1611
|
-
*
|
|
1612
|
-
* @defaultValue `"default"`
|
|
1613
|
-
*/
|
|
1614
|
-
variant?: 'danger' | 'default';
|
|
1615
|
-
}
|
|
1616
|
-
export interface ModalBodyProps {
|
|
1617
|
-
/**
|
|
1618
|
-
* The main content of the modal
|
|
1619
|
-
*
|
|
1620
|
-
*/
|
|
1621
|
-
children: ReactNode;
|
|
1622
|
-
}
|
|
1623
|
-
export interface ModalFooterProps {
|
|
1624
|
-
/**
|
|
1625
|
-
* The footer of the modal
|
|
1626
|
-
*
|
|
1627
|
-
*/
|
|
1628
|
-
children: ReactNode;
|
|
1629
|
-
}
|
|
1630
|
-
export interface PanelProps {
|
|
1631
|
-
/**
|
|
1632
|
-
* Accessibility label.
|
|
1633
|
-
*
|
|
1634
|
-
*/
|
|
1635
|
-
'aria-label'?: string;
|
|
1636
|
-
/**
|
|
1637
|
-
* The main content of the panel when it opens.
|
|
1638
|
-
*
|
|
1639
|
-
*/
|
|
1640
|
-
children?: ReactNode;
|
|
1641
|
-
/**
|
|
1642
|
-
* A unique ID for the panel
|
|
1643
|
-
*
|
|
1644
|
-
*/
|
|
1645
|
-
id: string;
|
|
1646
|
-
/**
|
|
1647
|
-
* A function that will be invoked when the panel has finished opening.
|
|
1648
|
-
*
|
|
1649
|
-
*/
|
|
1650
|
-
onOpen?: () => void;
|
|
1651
|
-
/**
|
|
1652
|
-
* A function that will be invoked when the panel has finished closing.
|
|
1653
|
-
*
|
|
1654
|
-
*/
|
|
1655
|
-
onClose?: () => void;
|
|
1656
|
-
/**
|
|
1657
|
-
* The width of the panel
|
|
1658
|
-
*
|
|
1659
|
-
* @defaultValue `"sm"`
|
|
1660
|
-
*/
|
|
1661
|
-
width?: TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'];
|
|
1662
|
-
/**
|
|
1663
|
-
* The title of the panel
|
|
1664
|
-
*
|
|
1665
|
-
*/
|
|
1666
|
-
title?: string;
|
|
1667
|
-
/**
|
|
1668
|
-
* The variant of the panel
|
|
1669
|
-
*
|
|
1670
|
-
* @defaultValue `"default"`
|
|
1671
|
-
*/
|
|
1672
|
-
variant?: 'modal' | 'default';
|
|
1673
|
-
}
|
|
1674
|
-
export interface PanelSectionProps {
|
|
1675
|
-
/**
|
|
1676
|
-
* When set to `true`, the section will have no bottom margin
|
|
1677
|
-
*
|
|
1678
|
-
* @defaultValue `false`
|
|
1679
|
-
*/
|
|
1680
|
-
flush?: boolean;
|
|
1681
|
-
/**
|
|
1682
|
-
* The main content of the section
|
|
1683
|
-
*
|
|
1684
|
-
*/
|
|
1685
|
-
children: ReactNode;
|
|
1686
|
-
}
|
|
1687
|
-
export interface PanelBodyProps {
|
|
1688
|
-
/**
|
|
1689
|
-
* The main content of the body
|
|
1690
|
-
*
|
|
1691
|
-
*/
|
|
1692
|
-
children: ReactNode;
|
|
1693
|
-
}
|
|
1694
|
-
export interface PanelFooterProps {
|
|
1695
|
-
/**
|
|
1696
|
-
* The main content of the footer
|
|
1697
|
-
*
|
|
1698
|
-
*/
|
|
1699
|
-
children: ReactNode;
|
|
1700
|
-
}
|
|
1701
|
-
/**
|
|
1702
|
-
* The props type for {@link !components.ProgressBar}.
|
|
1703
|
-
*
|
|
1704
|
-
* @category Component Props
|
|
1705
|
-
*/
|
|
1706
|
-
export interface ProgressBarProps {
|
|
1707
|
-
/**
|
|
1708
|
-
* The text that displays above the progress bar.
|
|
1709
|
-
*
|
|
1710
|
-
*/
|
|
1711
|
-
title?: string;
|
|
1712
|
-
/**
|
|
1713
|
-
* Accessibility label.
|
|
1714
|
-
*
|
|
1715
|
-
*/
|
|
1716
|
-
'aria-label'?: string;
|
|
1717
|
-
/**
|
|
1718
|
-
* Whether the progress bar displays the completion percentage.
|
|
1719
|
-
*
|
|
1720
|
-
* @defaultValue `false`
|
|
1721
|
-
*/
|
|
1722
|
-
showPercentage?: boolean;
|
|
1723
|
-
/**
|
|
1724
|
-
* The number representing the progress so far.
|
|
1725
|
-
*
|
|
1726
|
-
* @defaultValue `0`
|
|
1727
|
-
*/
|
|
1728
|
-
value?: number;
|
|
1729
|
-
/**
|
|
1730
|
-
* The maximum value of the progress bar.
|
|
1731
|
-
*
|
|
1732
|
-
* @defaultValue `100`
|
|
1733
|
-
*/
|
|
1734
|
-
maxValue?: number;
|
|
1735
|
-
/**
|
|
1736
|
-
* The text that explains the current state of the value property. For example, "150 out of 250". Displays above the progress bar on the right side.
|
|
1737
|
-
*
|
|
1738
|
-
*/
|
|
1739
|
-
valueDescription?: string;
|
|
1740
|
-
/**
|
|
1741
|
-
* The color that indicates the type of progress bar.
|
|
1742
|
-
*
|
|
1743
|
-
* @defaultValue `"success"`
|
|
1744
|
-
*/
|
|
1745
|
-
variant?: 'success' | 'danger' | 'warning';
|
|
1746
|
-
/** @deprecated use maxValue instead */
|
|
1747
|
-
valueMax?: number;
|
|
1748
|
-
}
|
|
1749
|
-
/**
|
|
1750
|
-
* Generic collection of props for select components
|
|
1751
|
-
* @internal
|
|
1752
|
-
* */
|
|
1753
|
-
export interface BaseSelectProps {
|
|
1754
|
-
/**
|
|
1755
|
-
* The text that displays above to the dropdown menu.
|
|
1756
|
-
*
|
|
1757
|
-
*/
|
|
1758
|
-
label?: string;
|
|
1759
|
-
/**
|
|
1760
|
-
* The unique identifier for the select element.
|
|
1761
|
-
*
|
|
1762
|
-
*/
|
|
1763
|
-
name?: string;
|
|
1764
|
-
/**
|
|
1765
|
-
* When set to `true`, displays a required field indicator.
|
|
1766
|
-
*
|
|
1767
|
-
* @defaultValue `false`
|
|
1768
|
-
*/
|
|
1769
|
-
required?: boolean;
|
|
1770
|
-
/**
|
|
1771
|
-
* When set to `true`, sets the field as read-only on the CRM record, and users will not be able to fill the input field.
|
|
1772
|
-
*
|
|
1773
|
-
* @defaultValue `false`
|
|
1774
|
-
*/
|
|
1775
|
-
readOnly?: boolean;
|
|
1776
|
-
/**
|
|
1777
|
-
* Displayed text that describes the field's purpose.
|
|
1778
|
-
*
|
|
1779
|
-
*/
|
|
1780
|
-
description?: string;
|
|
1781
|
-
/**
|
|
1782
|
-
* The text that displays in a tooltip next to the label.
|
|
1783
|
-
*
|
|
1784
|
-
*/
|
|
1785
|
-
tooltip?: string;
|
|
1786
|
-
/**
|
|
1787
|
-
* Text that appears in the input when no value is set.
|
|
1788
|
-
*
|
|
1789
|
-
*/
|
|
1790
|
-
placeholder?: string;
|
|
1791
|
-
/**
|
|
1792
|
-
* When set to `true`, `validationMessage` is displayed as an error message if provided.
|
|
1793
|
-
* The input will also render its error state to let the user know there's an error.
|
|
1794
|
-
* If left `false` (default), `validationMessage` is displayed as a success message.
|
|
1795
|
-
*
|
|
1796
|
-
* @defaultValue `false`
|
|
1797
|
-
*/
|
|
1798
|
-
error?: boolean;
|
|
1799
|
-
/**
|
|
1800
|
-
* The text to show if the input has an error.
|
|
1801
|
-
*
|
|
1802
|
-
*/
|
|
1803
|
-
validationMessage?: string;
|
|
1804
|
-
/**
|
|
1805
|
-
* The variant type for the select.
|
|
1806
|
-
*
|
|
1807
|
-
* @defaultValue `"input"`
|
|
1808
|
-
*/
|
|
1809
|
-
variant?: 'transparent' | 'input';
|
|
1810
|
-
}
|
|
1811
|
-
/**
|
|
1812
|
-
* The props type for {@link !components.Select}.
|
|
1813
|
-
*
|
|
1814
|
-
* @category Component Props
|
|
1815
|
-
*/
|
|
1816
|
-
export interface SelectProps extends BaseSelectProps {
|
|
1817
|
-
/**
|
|
1818
|
-
* The value of the select input.
|
|
1819
|
-
*
|
|
1820
|
-
*/
|
|
1821
|
-
value?: string | number | boolean;
|
|
1822
|
-
/**
|
|
1823
|
-
* A callback function that is invoked when the value is committed.
|
|
1824
|
-
*
|
|
1825
|
-
* @event
|
|
1826
|
-
*/
|
|
1827
|
-
onChange?: (value: NonNullable<SelectProps['value']>) => void;
|
|
1828
|
-
/**
|
|
1829
|
-
* The variant type for the select.
|
|
1830
|
-
*
|
|
1831
|
-
* @defaultValue `"input"`
|
|
1832
|
-
*/
|
|
1833
|
-
variant?: 'transparent' | 'input';
|
|
1834
|
-
/**
|
|
1835
|
-
* A function that is called and passed the value every time the search field is
|
|
1836
|
-
* edited by the user. Prefer updating state in onChange as it fires less
|
|
1837
|
-
* frequently, and if you need to update state here, consider debouncing your function.
|
|
1838
|
-
*
|
|
1839
|
-
* @event
|
|
1840
|
-
*/
|
|
1841
|
-
onInput?: (value: string) => void;
|
|
1842
|
-
/**
|
|
1843
|
-
* The options to display in the dropdown menu.
|
|
1844
|
-
*/
|
|
1845
|
-
options: {
|
|
1846
|
-
/** Will be used as the display text. **/
|
|
1847
|
-
label: string;
|
|
1848
|
-
/** Should be the option's unique identifier, which is submitted with the form. **/
|
|
1849
|
-
value: string | number | boolean;
|
|
1850
|
-
}[];
|
|
1851
|
-
}
|
|
1852
|
-
/**
|
|
1853
|
-
* The props type for {@link !components.MultiSelect}.
|
|
1854
|
-
*
|
|
1855
|
-
* @category Component Props
|
|
1856
|
-
*/
|
|
1857
|
-
export interface MultiSelectProps extends BaseSelectProps {
|
|
1858
|
-
/**
|
|
1859
|
-
* The value of the select input.
|
|
1860
|
-
*
|
|
1861
|
-
*/
|
|
1862
|
-
value?: (string | number)[];
|
|
1863
|
-
/**
|
|
1864
|
-
* A callback function that is invoked when the value is committed.
|
|
1865
|
-
*
|
|
1866
|
-
* @event
|
|
1867
|
-
*/
|
|
1868
|
-
onChange?: (value: NonNullable<MultiSelectProps['value']>) => void;
|
|
1869
|
-
/**
|
|
1870
|
-
* The options to display in the dropdown menu.
|
|
1871
|
-
*/
|
|
1872
|
-
options: {
|
|
1873
|
-
/** Will be used as the display text. **/
|
|
1874
|
-
label: string;
|
|
1875
|
-
/** Should be the option's unique identifier, which is submitted with the form. **/
|
|
1876
|
-
value: string | number;
|
|
1877
|
-
}[];
|
|
1878
|
-
}
|
|
1879
|
-
/**
|
|
1880
|
-
* The props type for {@link !components.StatisticsTrend}.
|
|
1881
|
-
*
|
|
1882
|
-
* @category Component Props
|
|
1883
|
-
*/
|
|
1884
|
-
export interface StatisticsTrendProps {
|
|
1885
|
-
/**
|
|
1886
|
-
* The text to be displayed as the trend value.
|
|
1887
|
-
*/
|
|
1888
|
-
value: string;
|
|
1889
|
-
/**
|
|
1890
|
-
* The direction of the trend arrow.
|
|
1891
|
-
*
|
|
1892
|
-
* @defaultValue `"increase"`
|
|
1893
|
-
*/
|
|
1894
|
-
direction: 'increase' | 'decrease';
|
|
1895
|
-
/**
|
|
1896
|
-
* The color of the trend arrow.
|
|
1897
|
-
*/
|
|
1898
|
-
color?: 'red' | 'green';
|
|
1899
|
-
}
|
|
1900
|
-
/**
|
|
1901
|
-
* The props type for {@link !components.StatisticsItem}.
|
|
1902
|
-
*
|
|
1903
|
-
* @category Component Props
|
|
1904
|
-
*/
|
|
1905
|
-
export interface StatisticsItemProps {
|
|
1906
|
-
/**
|
|
1907
|
-
* The unique identifier.
|
|
1908
|
-
*/
|
|
1909
|
-
id?: string;
|
|
1910
|
-
/**
|
|
1911
|
-
* The item's label text.
|
|
1912
|
-
*/
|
|
1913
|
-
label: string;
|
|
1914
|
-
/**
|
|
1915
|
-
* The string to be displayed as the item's primary number.
|
|
1916
|
-
*/
|
|
1917
|
-
number: string | number;
|
|
1918
|
-
/**
|
|
1919
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be {@link !components.StatisticsTrend} or {@link !components.Text}.
|
|
1920
|
-
*/
|
|
1921
|
-
children?: ReactNode;
|
|
1922
|
-
}
|
|
1923
|
-
/**
|
|
1924
|
-
* The props type for {@link !components.Statistics}.
|
|
1925
|
-
*
|
|
1926
|
-
* @category Component Props
|
|
1927
|
-
*/
|
|
1928
|
-
export interface StatisticsProps {
|
|
1929
|
-
/**
|
|
1930
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be {@link !components.StatisticsItem}.
|
|
1931
|
-
*/
|
|
1932
|
-
children: ReactNode;
|
|
1933
|
-
}
|
|
1934
|
-
/**
|
|
1935
|
-
* The props type for {@link !components.StatusTag}.
|
|
1936
|
-
*
|
|
1937
|
-
* @category Component Props
|
|
1938
|
-
*/
|
|
1939
|
-
export interface StatusTagProps {
|
|
1940
|
-
/**
|
|
1941
|
-
* The status tag's indicator color.
|
|
1942
|
-
*
|
|
1943
|
-
* @defaultValue `"default"`
|
|
1944
|
-
*/
|
|
1945
|
-
variant?: 'danger' | 'warning' | 'info' | 'success' | 'default';
|
|
1946
|
-
/**
|
|
1947
|
-
* When set to true, the status tag's dot will be a ring instead.
|
|
1948
|
-
*
|
|
1949
|
-
* @defaultValue `false `
|
|
1950
|
-
*/
|
|
1951
|
-
hollow?: boolean;
|
|
1952
|
-
/**
|
|
1953
|
-
* A function that will be invoked when the status tag is clicked. It receives no arguments and its return value is ignored.
|
|
1954
|
-
*
|
|
1955
|
-
* @event
|
|
1956
|
-
*/
|
|
1957
|
-
onClick?: () => void;
|
|
1958
|
-
/**
|
|
1959
|
-
* When set to true, the status tag will show a small clickable 'x' icon.
|
|
1960
|
-
*
|
|
1961
|
-
* @defaultValue `false`
|
|
1962
|
-
*/
|
|
1963
|
-
showRemoveIcon?: boolean;
|
|
1964
|
-
/**
|
|
1965
|
-
* A function that will be invoked when the 'x' icon is clicked. It receives no arguments and its return value is ignored.
|
|
1966
|
-
*
|
|
1967
|
-
* @event
|
|
1968
|
-
*/
|
|
1969
|
-
onRemoveClick?: () => void;
|
|
1970
|
-
/**
|
|
1971
|
-
* Sets the content that will render inside the StatusTag. This prop is passed implicitly by providing sub-components. We recommend only using a small amount of text.
|
|
1972
|
-
*/
|
|
1973
|
-
children: ReactNode;
|
|
1974
|
-
}
|
|
1975
|
-
/**
|
|
1976
|
-
* The props type for {@link !components.StepIndicator}.
|
|
1977
|
-
*
|
|
1978
|
-
* @category Component Props
|
|
1979
|
-
*/
|
|
1980
|
-
export interface StepIndicatorProps {
|
|
1981
|
-
/**
|
|
1982
|
-
* An array containing the name of each step.
|
|
1983
|
-
*/
|
|
1984
|
-
stepNames: string[];
|
|
1985
|
-
/**
|
|
1986
|
-
* The orientation of the indicator.
|
|
1987
|
-
*
|
|
1988
|
-
* @defaultValue `"horizontal"`
|
|
1989
|
-
*/
|
|
1990
|
-
direction?: 'horizontal' | 'vertical';
|
|
1991
|
-
/**
|
|
1992
|
-
* The size of the indicator circles.
|
|
1993
|
-
*
|
|
1994
|
-
* @defaultValue `"small"`
|
|
1995
|
-
*/
|
|
1996
|
-
circleSize?: AllSizes;
|
|
1997
|
-
/**
|
|
1998
|
-
* The currently active step. Steps are 0-based.
|
|
1999
|
-
*/
|
|
2000
|
-
currentStep?: number;
|
|
2001
|
-
/**
|
|
2002
|
-
* The visual style of the component.
|
|
2003
|
-
*
|
|
2004
|
-
* - default: default spacing.
|
|
2005
|
-
* - compact: only shows the title of the currently active step.
|
|
2006
|
-
* - flush: only shows the title of the currently active step and removes left and right margins.
|
|
2007
|
-
*
|
|
2008
|
-
* @defaultValue `"default"`
|
|
2009
|
-
*/
|
|
2010
|
-
variant?: 'default' | 'compact' | 'flush';
|
|
2011
|
-
/**
|
|
2012
|
-
* A function that will be invoked when a step in the indicator is clicked. The function receives the current step index as an argument (zero-based). Use this to update the currently active step.
|
|
2013
|
-
*
|
|
2014
|
-
* @event
|
|
2015
|
-
*/
|
|
2016
|
-
onClick?: (stepIndex: number) => void;
|
|
2017
|
-
}
|
|
2018
|
-
export interface AlignmentProps {
|
|
2019
|
-
align?: 'left' | 'center' | 'right';
|
|
2020
|
-
}
|
|
2021
|
-
export interface WidthProps {
|
|
2022
|
-
width?: 'min' | 'max' | 'auto' | number;
|
|
2023
|
-
}
|
|
2024
|
-
export interface TableElementProps {
|
|
2025
|
-
children: ReactNode;
|
|
2026
|
-
}
|
|
2027
|
-
/**
|
|
2028
|
-
* @property align Sets the alignment of a table header.
|
|
2029
|
-
* @property width Sets the width of a table header.
|
|
2030
|
-
*
|
|
2031
|
-
* @interface
|
|
2032
|
-
*/
|
|
2033
|
-
export type BaseTableHeaderProps = TableElementProps & AlignmentProps & WidthProps;
|
|
2034
|
-
export type TableCellProps = TableElementProps & AlignmentProps & WidthProps & {
|
|
2035
|
-
colSpan?: number;
|
|
2036
|
-
};
|
|
2037
|
-
/**
|
|
2038
|
-
* The props type for {@link !components.TableHeader} when sorted === never.
|
|
2039
|
-
*
|
|
2040
|
-
* @category Component Props
|
|
2041
|
-
*/
|
|
2042
|
-
export interface UnSortedTableHeaderProps extends BaseTableHeaderProps {
|
|
2043
|
-
sortDirection?: 'never';
|
|
2044
|
-
}
|
|
2045
|
-
/**
|
|
2046
|
-
* The props type for {@link !components.TableHeader} when sorted !== never.
|
|
2047
|
-
*
|
|
2048
|
-
* @category Component Props
|
|
2049
|
-
*/
|
|
2050
|
-
export interface SortedTableHeaderProps extends BaseTableHeaderProps {
|
|
2051
|
-
/**
|
|
2052
|
-
* Sets the current direction in which the column is sorted (if any). It's a visual indicator, it doesn't modify the data.
|
|
2053
|
-
*
|
|
2054
|
-
* @defaultValue `"none"`
|
|
2055
|
-
*/
|
|
2056
|
-
sortDirection: 'ascending' | 'descending' | 'none';
|
|
2057
|
-
/**
|
|
2058
|
-
* A callback function that is invoked when the header is clicked. It recieves the new `sortDirection` as an argument.
|
|
2059
|
-
* It's required when sort = `ascending`, `descending` or `none`.
|
|
2060
|
-
*
|
|
2061
|
-
* @event
|
|
2062
|
-
* @defaultValue `"none"`
|
|
2063
|
-
*/
|
|
2064
|
-
onSortChange: (value: NonNullable<SortedTableHeaderProps['sortDirection']>) => void;
|
|
2065
|
-
/**
|
|
2066
|
-
* If `true`, users cannot change the sort ordering. It has no effect if sort=`never` or `undefined`.
|
|
2067
|
-
*
|
|
2068
|
-
* @defaultValue `false`
|
|
2069
|
-
*/
|
|
2070
|
-
disabled?: boolean;
|
|
2071
|
-
}
|
|
2072
|
-
/**
|
|
2073
|
-
* The props type for {@link !components.TableHeader}.
|
|
2074
|
-
*
|
|
2075
|
-
* @category Component Props
|
|
2076
|
-
*/
|
|
2077
|
-
export type TableHeaderProps = SortedTableHeaderProps | UnSortedTableHeaderProps;
|
|
2078
|
-
interface BaseTableProps {
|
|
2079
|
-
/**
|
|
2080
|
-
* When set to false, the table will not have borders.
|
|
2081
|
-
*
|
|
2082
|
-
* @defaultValue `true`
|
|
2083
|
-
*/
|
|
2084
|
-
bordered?: boolean;
|
|
2085
|
-
/**
|
|
2086
|
-
* When set to `true`, the table will not have bottom margin.
|
|
2087
|
-
*
|
|
2088
|
-
* @defaultValue `false`
|
|
2089
|
-
*/
|
|
2090
|
-
flush?: boolean;
|
|
2091
|
-
/**
|
|
2092
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. The children should be one of Table's subcomponents.
|
|
2093
|
-
*/
|
|
2094
|
-
children: ReactNode;
|
|
2095
|
-
}
|
|
2096
|
-
/**
|
|
2097
|
-
* @internal
|
|
2098
|
-
*/
|
|
2099
|
-
export interface TableNoPaginatedProps extends BaseTableProps {
|
|
2100
|
-
/**
|
|
2101
|
-
* When set to `true`, the table will include pagination navigation. Take a look at {@link !types.TablePaginatedProps} for pagination props.
|
|
2102
|
-
*
|
|
2103
|
-
* @defaultValue `false`
|
|
2104
|
-
*/
|
|
2105
|
-
paginated?: false;
|
|
2106
|
-
}
|
|
2107
|
-
/**
|
|
2108
|
-
* @internal
|
|
2109
|
-
*/
|
|
2110
|
-
export interface TablePaginatedProps extends BaseTableProps {
|
|
2111
|
-
/**
|
|
2112
|
-
* When set to `true`, the table will include pagination navigation. Take a look at {@link !types.TablePaginatedProps} for pagination props.
|
|
2113
|
-
*
|
|
2114
|
-
* @defaultValue `false`
|
|
2115
|
-
*/
|
|
2116
|
-
paginated: true;
|
|
2117
|
-
/**
|
|
2118
|
-
* The total number of pages available.
|
|
2119
|
-
*/
|
|
2120
|
-
pageCount: number;
|
|
2121
|
-
/**
|
|
2122
|
-
* When set to `false`, hides the text labels for the First/Prev/Next buttons. The button labels will still be accessible to screen readers.
|
|
2123
|
-
*
|
|
2124
|
-
* @defaultValue `true`
|
|
2125
|
-
*/
|
|
2126
|
-
showButtonLabels?: boolean;
|
|
2127
|
-
/**
|
|
2128
|
-
* When set to `true`, displays the **First/Last** page buttons.
|
|
2129
|
-
*
|
|
2130
|
-
* @defaultValue `false`
|
|
2131
|
-
*/
|
|
2132
|
-
showFirstLastButtons?: boolean;
|
|
2133
|
-
/**
|
|
2134
|
-
* Sets how many page buttons are displayed.
|
|
2135
|
-
*/
|
|
2136
|
-
maxVisiblePageButtons?: number;
|
|
2137
|
-
/**
|
|
2138
|
-
* Denotes the current page.
|
|
2139
|
-
*/
|
|
2140
|
-
page?: number;
|
|
2141
|
-
/**
|
|
2142
|
-
* A function that will be invoked when the pagination button is clicked. It receives the new page number as argument.
|
|
2143
|
-
*
|
|
2144
|
-
* @event
|
|
2145
|
-
*/
|
|
2146
|
-
onPageChange: (pageNumber: number) => void;
|
|
2147
|
-
}
|
|
2148
|
-
/**
|
|
2149
|
-
* The props type for {@link !components.Table}.
|
|
2150
|
-
*
|
|
2151
|
-
* @category Component Props
|
|
2152
|
-
*/
|
|
2153
|
-
export type TableProps = TableNoPaginatedProps | TablePaginatedProps;
|
|
2154
|
-
export interface TabsProps {
|
|
2155
|
-
/**
|
|
2156
|
-
* Sets the content that will render inside the component.
|
|
2157
|
-
*/
|
|
2158
|
-
children?: ReactNode;
|
|
2159
|
-
/**
|
|
2160
|
-
* Callback when the selected tab changes.
|
|
2161
|
-
*/
|
|
2162
|
-
onSelectedChange?: ((selectedId: string) => void) | ((selectedId: number) => void) | ((selectedId: number | string) => void);
|
|
2163
|
-
/**
|
|
2164
|
-
* The initially selected tab ID.
|
|
2165
|
-
*/
|
|
2166
|
-
defaultSelected?: string | number;
|
|
2167
|
-
/**
|
|
2168
|
-
* The currently selected tab ID (controlled component).
|
|
2169
|
-
*/
|
|
2170
|
-
selected?: string | number;
|
|
2171
|
-
/**
|
|
2172
|
-
* Visual style variant of the tabs.
|
|
2173
|
-
* @defaultValue 'default'
|
|
2174
|
-
*/
|
|
2175
|
-
variant?: 'default' | 'enclosed';
|
|
2176
|
-
/**
|
|
2177
|
-
* Whether the tab should fill available space.
|
|
2178
|
-
*/
|
|
2179
|
-
fill?: boolean;
|
|
2180
|
-
}
|
|
2181
|
-
export interface TabProps {
|
|
2182
|
-
/**
|
|
2183
|
-
* Whether the tab is disabled.
|
|
2184
|
-
*/
|
|
2185
|
-
disabled?: boolean;
|
|
2186
|
-
/**
|
|
2187
|
-
* Unique identifier for the tab.
|
|
2188
|
-
*/
|
|
2189
|
-
tabId?: string | number;
|
|
2190
|
-
/**
|
|
2191
|
-
* The title text of the tab.
|
|
2192
|
-
*/
|
|
2193
|
-
title?: string;
|
|
2194
|
-
/**
|
|
2195
|
-
* The content to display when this tab is selected.
|
|
2196
|
-
*/
|
|
2197
|
-
children?: ReactNode;
|
|
2198
|
-
/**
|
|
2199
|
-
* The tooltip text of the tab.
|
|
2200
|
-
*/
|
|
2201
|
-
tooltip?: string;
|
|
2202
|
-
/**
|
|
2203
|
-
* The tab's tooltip placement
|
|
2204
|
-
* @defaultValue 'top'
|
|
2205
|
-
*/
|
|
2206
|
-
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
2207
|
-
}
|
|
2208
|
-
/**
|
|
2209
|
-
* The props type for {@link !components.Tag}.
|
|
2210
|
-
*
|
|
2211
|
-
* @category Component Props
|
|
2212
|
-
*/
|
|
2213
|
-
export interface TagProps extends OverlayComponentProps {
|
|
2214
|
-
/**
|
|
2215
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
2216
|
-
*/
|
|
2217
|
-
children: ReactNode;
|
|
2218
|
-
/**
|
|
2219
|
-
* The tag's color. The following variants are available.
|
|
2220
|
-
*
|
|
2221
|
-
* @defaultValue `"default"`
|
|
2222
|
-
*/
|
|
2223
|
-
variant?: 'default' | 'warning' | 'success' | 'error' | 'info';
|
|
2224
|
-
/**
|
|
2225
|
-
* A function that will be invoked when the tag is clicked.
|
|
2226
|
-
*
|
|
2227
|
-
* @event
|
|
2228
|
-
*/
|
|
2229
|
-
onClick?: ReactionsHandler<ExtensionEvent>;
|
|
2230
|
-
/**
|
|
2231
|
-
* When set to true, this component can be aligned side-by-side with text.
|
|
2232
|
-
*
|
|
2233
|
-
* @defaultValue `false`
|
|
2234
|
-
*/
|
|
2235
|
-
inline?: boolean;
|
|
2236
|
-
}
|
|
2237
|
-
/**
|
|
2238
|
-
* @internal
|
|
2239
|
-
* Format options for text component.
|
|
2240
|
-
*/
|
|
2241
|
-
export interface TextFormatOptions {
|
|
2242
|
-
/**
|
|
2243
|
-
* Weight of the font.
|
|
2244
|
-
*
|
|
2245
|
-
* @defaultValue `"regular"`
|
|
2246
|
-
*/
|
|
2247
|
-
fontWeight?: 'regular' | 'bold' | 'demibold';
|
|
2248
|
-
/**
|
|
2249
|
-
* If `true`, font will be in italicized.
|
|
2250
|
-
*
|
|
2251
|
-
* @defaultValue `false`
|
|
2252
|
-
*/
|
|
2253
|
-
italic?: boolean;
|
|
2254
|
-
/**
|
|
2255
|
-
* Line decoration of the font.
|
|
2256
|
-
*
|
|
2257
|
-
* @defaultValue `"none"`
|
|
2258
|
-
*/
|
|
2259
|
-
lineDecoration?: 'none' | 'underline' | 'strikethrough';
|
|
2260
|
-
/**
|
|
2261
|
-
* Controls the capitalization of text.
|
|
2262
|
-
*
|
|
2263
|
-
* - `none`: No capitalization changes (default)
|
|
2264
|
-
* - `uppercase`: Transforms all characters to uppercase
|
|
2265
|
-
* - `lowercase`: Transforms all characters to lowercase
|
|
2266
|
-
* - `capitalize`: Capitalizes the first letter of each word
|
|
2267
|
-
* - `sentenceCase`: Capitalizes the first letter of the text and makes the rest lowercase
|
|
2268
|
-
*
|
|
2269
|
-
* @defaultValue `"none"`
|
|
2270
|
-
*/
|
|
2271
|
-
textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize' | 'sentenceCase';
|
|
2272
|
-
}
|
|
2273
|
-
export interface TruncateOptions {
|
|
2274
|
-
maxWidth?: number;
|
|
2275
|
-
tooltipText?: string;
|
|
2276
|
-
}
|
|
2277
|
-
/**
|
|
2278
|
-
* The props type for {@link !components.Text}.
|
|
2279
|
-
*
|
|
2280
|
-
* @interface
|
|
2281
|
-
* @category Component Props
|
|
2282
|
-
*/
|
|
2283
|
-
export type TextProps = {
|
|
2284
|
-
/**
|
|
2285
|
-
* The style of text to display. Can be either of:
|
|
2286
|
-
*
|
|
2287
|
-
* - bodytext: the default value which renders the standard text size.
|
|
2288
|
-
* - microcopy: smaller text used for adding context.
|
|
2289
|
-
*
|
|
2290
|
-
* @defaultValue `"bodytext"`
|
|
2291
|
-
*/
|
|
2292
|
-
variant?: 'bodytext' | 'microcopy';
|
|
2293
|
-
/**
|
|
2294
|
-
* When set to `true`, inserts a line break.
|
|
2295
|
-
*
|
|
2296
|
-
* @defaultValue `false`
|
|
2297
|
-
*/
|
|
2298
|
-
inline?: boolean;
|
|
2299
|
-
/**
|
|
2300
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
2301
|
-
*/
|
|
2302
|
-
children: ReactNode;
|
|
2303
|
-
/**
|
|
2304
|
-
* @interface
|
|
2305
|
-
* The style of text to display. Can be any of:
|
|
2306
|
-
*
|
|
2307
|
-
* - { fontWeight: 'bold' }
|
|
2308
|
-
* - { fontWeight: 'demibold' }
|
|
2309
|
-
* - { italic: true }
|
|
2310
|
-
* - { lineDecoration: 'strikethrough' }
|
|
2311
|
-
* - { lineDecoration: 'underline' }
|
|
2312
|
-
* - <Text inline={true}>
|
|
2313
|
-
*/
|
|
2314
|
-
format?: TextFormatOptions;
|
|
2315
|
-
/**
|
|
2316
|
-
* @interface
|
|
2317
|
-
* truncates long strings to a single line. If the full string doesn't fit in one line,
|
|
2318
|
-
* it's shown in a tooltip on hover.
|
|
2319
|
-
*
|
|
2320
|
-
* - `false` => no truncation(default).
|
|
2321
|
-
* - `true` => truncates the string to a single line. Full-text will show inside the tooltip.
|
|
2322
|
-
* - { tooltipText: 'some text' } => truncates the string and lets you control the contents of the tooltip.
|
|
2323
|
-
* - { maxWidth: 150 } => sets the width(in pixel) of the line.
|
|
2324
|
-
*
|
|
2325
|
-
* @defaultValue `false`
|
|
2326
|
-
*/
|
|
2327
|
-
truncate?: boolean | TruncateOptions;
|
|
2328
|
-
};
|
|
2329
|
-
/**
|
|
2330
|
-
* The props type for {@link !components.Tile}.
|
|
2331
|
-
*
|
|
2332
|
-
* @category Component Props
|
|
2333
|
-
*/
|
|
2334
|
-
export interface TileProps {
|
|
2335
|
-
/**
|
|
2336
|
-
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
2337
|
-
*/
|
|
2338
|
-
children: ReactNode;
|
|
2339
|
-
/**
|
|
2340
|
-
* When set to `true`, reduces the default amount of padding around the contents of the Tile.
|
|
2341
|
-
*
|
|
2342
|
-
* @defaultValue `false`
|
|
2343
|
-
*/
|
|
2344
|
-
compact?: boolean;
|
|
2345
|
-
/**
|
|
2346
|
-
* When set to `true`, removes left and right padding from tile contents.
|
|
2347
|
-
*
|
|
2348
|
-
* @defaultValue `false`
|
|
2349
|
-
*/
|
|
2350
|
-
flush?: boolean;
|
|
2351
|
-
}
|
|
2352
|
-
/**
|
|
2353
|
-
* The props type for {@link !components.Toggle}.
|
|
2354
|
-
*
|
|
2355
|
-
* @category Component Props
|
|
2356
|
-
*/
|
|
2357
|
-
export interface ToggleProps {
|
|
2358
|
-
/**
|
|
2359
|
-
* The current status of the input.
|
|
2360
|
-
*/
|
|
2361
|
-
checked?: boolean;
|
|
2362
|
-
/**
|
|
2363
|
-
* When set to `true`, the option cannot be selected.
|
|
2364
|
-
*/
|
|
2365
|
-
readonly?: boolean;
|
|
2366
|
-
/**
|
|
2367
|
-
* The unique identifier for the toggle element.
|
|
2368
|
-
*/
|
|
2369
|
-
name?: string;
|
|
2370
|
-
/**
|
|
2371
|
-
* The size variation of the toggle.
|
|
2372
|
-
*
|
|
2373
|
-
* @defaultValue `"medium"`
|
|
2374
|
-
*/
|
|
2375
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'] | 'default';
|
|
2376
|
-
/**
|
|
2377
|
-
* A function that is called when the `checked` input status changes.
|
|
2378
|
-
*
|
|
2379
|
-
* @event
|
|
2380
|
-
*/
|
|
2381
|
-
onChange?: (checked: boolean) => void;
|
|
2382
|
-
/**
|
|
2383
|
-
* When set to `true`, the option will be selected by default. Use it to
|
|
2384
|
-
* set the default `checked` state when the component is **uncontrolled**.
|
|
2385
|
-
*/
|
|
2386
|
-
initialIsChecked?: boolean;
|
|
2387
|
-
/**
|
|
2388
|
-
* The companion text of for Toggle. It can be displayed on top,
|
|
2389
|
-
* inline, or hidden. When hidden, it will remain usable for screen readers.
|
|
2390
|
-
*/
|
|
2391
|
-
label: string;
|
|
2392
|
-
/**
|
|
2393
|
-
* Controls the display setting of the label prop.
|
|
2394
|
-
*
|
|
2395
|
-
* @defaultValue `"inline"`
|
|
2396
|
-
*/
|
|
2397
|
-
labelDisplay?: 'inline' | 'top' | 'hidden';
|
|
2398
|
-
/**
|
|
2399
|
-
* The text that appears on the Toggle when `checked={true}`.
|
|
2400
|
-
*
|
|
2401
|
-
* @defaultValue `"ON"`
|
|
2402
|
-
*/
|
|
2403
|
-
textChecked?: string;
|
|
2404
|
-
/**
|
|
2405
|
-
* The text that appears on the Toggle when `checked={false}`.
|
|
2406
|
-
*
|
|
2407
|
-
* @defaultValue `"ON"`
|
|
2408
|
-
*/
|
|
2409
|
-
textUnchecked?: string;
|
|
2410
|
-
}
|
|
2411
|
-
/**
|
|
2412
|
-
* The props type for {@link !components.Checkbox}.
|
|
2413
|
-
*
|
|
2414
|
-
* @category Component Props
|
|
2415
|
-
*/
|
|
2416
|
-
export interface CheckboxProps {
|
|
2417
|
-
/**
|
|
2418
|
-
* A string representing the value of the input. This is not displayed on the client-side,
|
|
2419
|
-
* but on the server this is the value given to the data submitted with the checkbox's name.
|
|
2420
|
-
*/
|
|
2421
|
-
value?: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* The current status of the input.
|
|
2424
|
-
*/
|
|
2425
|
-
checked?: boolean;
|
|
2426
|
-
/** @deprecated use readOnly instead */
|
|
2427
|
-
readonly?: boolean;
|
|
2428
|
-
/**
|
|
2429
|
-
* When set to `true`, the option cannot be selected.
|
|
2430
|
-
*/
|
|
2431
|
-
readOnly?: boolean;
|
|
2432
|
-
/**
|
|
2433
|
-
* The string that displays below the toggle.
|
|
2434
|
-
*/
|
|
2435
|
-
description?: string;
|
|
2436
|
-
/**
|
|
2437
|
-
* The unique identifier for the checkbox element.
|
|
2438
|
-
*/
|
|
2439
|
-
name?: string;
|
|
2440
|
-
/**
|
|
2441
|
-
* The size variation of the checkbox.
|
|
2442
|
-
*
|
|
2443
|
-
* @defaultValue `"default"`
|
|
2444
|
-
*/
|
|
2445
|
-
variant?: 'default' | 'small';
|
|
2446
|
-
/**
|
|
2447
|
-
* A function that is called when the `checked` input status changes.
|
|
2448
|
-
*
|
|
2449
|
-
* @event
|
|
2450
|
-
*/
|
|
2451
|
-
onChange?: (checked: boolean, value: string) => void;
|
|
2452
|
-
/** The text that displays in the dropdown menu. */
|
|
2453
|
-
children?: React.ReactNode;
|
|
2454
|
-
/**
|
|
2455
|
-
* Use the inline prop to arrange checkboxes side-by-side.
|
|
2456
|
-
*/
|
|
2457
|
-
inline?: boolean;
|
|
2458
|
-
/**
|
|
2459
|
-
* When set to `true`, the option will be selected by default. Use it to
|
|
2460
|
-
* set the default `checked` state when the component is **uncontrolled**.
|
|
2461
|
-
*/
|
|
2462
|
-
initialIsChecked?: boolean;
|
|
2463
|
-
/**
|
|
2464
|
-
* Accessibility label. It should be present when the checkbox has no label(children).
|
|
2465
|
-
*/
|
|
2466
|
-
'aria-label'?: string;
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2469
|
-
* The props type for {@link !components.RadioButton}.
|
|
2470
|
-
* @category Component Props
|
|
2471
|
-
* @interface
|
|
2472
|
-
*/
|
|
2473
|
-
export type RadioButtonProps = Omit<CheckboxProps, 'aria-label'>;
|
|
2474
|
-
export type ToggleGroupOption = {
|
|
2475
|
-
/** The text that displays in the dropdown menu. */
|
|
2476
|
-
label: string;
|
|
2477
|
-
/** The unique value that is submitted with the form. */
|
|
2478
|
-
value: string;
|
|
2479
|
-
/** When set to `true`, the option will be selected by default. */
|
|
2480
|
-
initialIsChecked?: boolean;
|
|
2481
|
-
/** When set to `true`, the option cannot be selected. */
|
|
2482
|
-
readonly?: boolean;
|
|
2483
|
-
/** The string that displays below the toggle. */
|
|
2484
|
-
description?: string;
|
|
2485
|
-
};
|
|
2486
|
-
interface ToggleGroupListBaseProps {
|
|
2487
|
-
name: ToggleGroupProps['name'];
|
|
2488
|
-
options: ToggleGroupProps['options'];
|
|
2489
|
-
variant: ToggleGroupProps['variant'];
|
|
2490
|
-
inline?: boolean;
|
|
2491
|
-
}
|
|
2492
|
-
export interface CheckboxListProps extends ToggleGroupListBaseProps {
|
|
2493
|
-
value?: CheckboxGroupProps['value'];
|
|
2494
|
-
onChange?: CheckboxGroupProps['onChange'];
|
|
2495
|
-
}
|
|
2496
|
-
export interface RadioButtonListProps extends ToggleGroupListBaseProps {
|
|
2497
|
-
value?: RadioButtonGroupProps['value'];
|
|
2498
|
-
onChange?: RadioButtonGroupProps['onChange'];
|
|
2499
|
-
}
|
|
2500
|
-
type ToggleType = 'checkboxList' | 'radioButtonList';
|
|
2501
|
-
export interface CommonGroupProps {
|
|
2502
|
-
/**
|
|
2503
|
-
* Denotes the type of list to render.
|
|
2504
|
-
*/
|
|
2505
|
-
toggleType?: ToggleType;
|
|
2506
|
-
/**
|
|
2507
|
-
* The unique identifier for the toggle group element.
|
|
2508
|
-
*/
|
|
2509
|
-
name: string;
|
|
2510
|
-
/**
|
|
2511
|
-
* The label that displays above the toggle group.
|
|
2512
|
-
*/
|
|
2513
|
-
label: string;
|
|
2514
|
-
/**
|
|
2515
|
-
* The text to display if the input has an error.
|
|
2516
|
-
*/
|
|
2517
|
-
validationMessage?: string;
|
|
2518
|
-
/**
|
|
2519
|
-
* When set to `true`, displays a required indicator next to the toggle group.
|
|
2520
|
-
*
|
|
2521
|
-
* @defaultValue `false`
|
|
2522
|
-
*/
|
|
2523
|
-
required?: boolean;
|
|
2524
|
-
/**
|
|
2525
|
-
* Text that will appear in a tooltip next to the toggle group label.
|
|
2526
|
-
*/
|
|
2527
|
-
tooltip?: string;
|
|
2528
|
-
/**
|
|
2529
|
-
* When set to `true`, `validationMessage` is displayed as an error message if provided. The input will also render its error state to let the user know there is an error. If left false, `validationMessage` is displayed as a success message.
|
|
2530
|
-
*
|
|
2531
|
-
* @defaultValue `false`
|
|
2532
|
-
*/
|
|
2533
|
-
error?: boolean;
|
|
2534
|
-
/**
|
|
2535
|
-
* An array of options to display in the dropdown menu.
|
|
2536
|
-
*
|
|
2537
|
-
* @defaultValue `[]`
|
|
2538
|
-
*/
|
|
2539
|
-
options: Array<ToggleGroupOption>;
|
|
2540
|
-
/**
|
|
2541
|
-
* When set to `true`, stacks the options horizontally.
|
|
2542
|
-
*
|
|
2543
|
-
* @defaultValue `false`
|
|
2544
|
-
*/
|
|
2545
|
-
inline?: boolean;
|
|
2546
|
-
/**
|
|
2547
|
-
* The size variation of the individual options.
|
|
2548
|
-
*
|
|
2549
|
-
* @defaultValue `"default"`
|
|
2550
|
-
*/
|
|
2551
|
-
variant?: 'default' | 'small';
|
|
2552
|
-
value?: string[] | string;
|
|
2553
|
-
}
|
|
2554
|
-
type CheckboxGroupProps = {
|
|
2555
|
-
/**
|
|
2556
|
-
* Denotes the type of list to render.
|
|
2557
|
-
*
|
|
2558
|
-
* @defaultValue `"checkboxList"`
|
|
2559
|
-
*/
|
|
2560
|
-
toggleType: 'checkboxList';
|
|
2561
|
-
/**
|
|
2562
|
-
* A function that is called with the new value or values when the list is updated.
|
|
2563
|
-
*
|
|
2564
|
-
* @event
|
|
2565
|
-
*/
|
|
2566
|
-
onChange?: (value: string[]) => void;
|
|
2567
|
-
/**
|
|
2568
|
-
* The value of the toggle group.
|
|
2569
|
-
*/
|
|
2570
|
-
value?: string[];
|
|
2571
|
-
} & CommonGroupProps;
|
|
2572
|
-
type RadioButtonGroupProps = {
|
|
2573
|
-
/**
|
|
2574
|
-
* Denotes the type of list to render.
|
|
2575
|
-
*
|
|
2576
|
-
* @defaultValue `"checkboxList"`
|
|
2577
|
-
*/
|
|
2578
|
-
toggleType: 'radioButtonList';
|
|
2579
|
-
/**
|
|
2580
|
-
* A function that is called with the new value or values when the list is updated.
|
|
2581
|
-
*
|
|
2582
|
-
* @event
|
|
2583
|
-
*/
|
|
2584
|
-
onChange?: (value: string) => void;
|
|
2585
|
-
/**
|
|
2586
|
-
* The value of the toggle group.
|
|
2587
|
-
*/
|
|
2588
|
-
value?: string;
|
|
2589
|
-
} & CommonGroupProps;
|
|
2590
|
-
type DefaultToggleTypeProps = {
|
|
2591
|
-
toggleType?: never;
|
|
2592
|
-
} & CheckboxGroupProps;
|
|
2593
|
-
/**
|
|
2594
|
-
* The props type for {@link !components.ToggleGroup}.
|
|
2595
|
-
*
|
|
2596
|
-
* @interface
|
|
2597
|
-
* @category Component Props
|
|
2598
|
-
*/
|
|
2599
|
-
export type ToggleGroupProps = CheckboxGroupProps | RadioButtonGroupProps | DefaultToggleTypeProps;
|
|
2600
|
-
export interface TooltipProps {
|
|
2601
|
-
/**
|
|
2602
|
-
* Sets the content to render on the screen, and serves as the trigger for the tooltip. This prop is passed implicitly by providing sub-components.
|
|
2603
|
-
*/
|
|
2604
|
-
children: ReactNode;
|
|
2605
|
-
/**
|
|
2606
|
-
* Sets the position of the tooltip relative to its trigger element.
|
|
2607
|
-
* @default 'top'
|
|
2608
|
-
*/
|
|
2609
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
2610
|
-
}
|
|
2611
|
-
/** @ignore */
|
|
2612
|
-
interface Team {
|
|
2613
|
-
id: number;
|
|
2614
|
-
name: string;
|
|
2615
|
-
teammates: number[];
|
|
2616
|
-
}
|
|
2617
|
-
/** @ignore */
|
|
2618
|
-
export type Permission = 'integrations-management-write';
|
|
2619
|
-
/** @ignore */
|
|
2620
|
-
export interface UserContext {
|
|
2621
|
-
id: number;
|
|
2622
|
-
emails: string[];
|
|
2623
|
-
email: string;
|
|
2624
|
-
firstName: string;
|
|
2625
|
-
lastName: string;
|
|
2626
|
-
/** @deprecated Roles will always be empty. Please use teams instead */
|
|
2627
|
-
roles: string[];
|
|
2628
|
-
teams: Team[];
|
|
2629
|
-
locale?: string;
|
|
2630
|
-
permissions: Permission[];
|
|
2631
|
-
}
|
|
2632
|
-
/** @ignore */
|
|
2633
|
-
export interface PortalContext {
|
|
2634
|
-
id: number;
|
|
2635
|
-
timezone: string;
|
|
2636
|
-
}
|
|
2637
|
-
/** @ignore */
|
|
2638
|
-
export interface CrmRecordContext {
|
|
2639
|
-
objectId: number;
|
|
2640
|
-
objectTypeId: string;
|
|
2641
|
-
}
|
|
2642
|
-
/** @ignore */
|
|
2643
|
-
export interface AppContext {
|
|
2644
|
-
appId: number | string;
|
|
2645
|
-
appName?: string;
|
|
2646
|
-
cardTitle?: string;
|
|
2647
|
-
}
|
|
2648
|
-
type ProfileVariableValue = string | number | bigint | boolean;
|
|
2649
|
-
/** @ignore */
|
|
2650
|
-
export interface BaseContext {
|
|
2651
|
-
user: UserContext;
|
|
2652
|
-
portal: PortalContext;
|
|
2653
|
-
variables?: Record<string, ProfileVariableValue>;
|
|
2654
|
-
}
|
|
2655
|
-
/** @ignore */
|
|
2656
|
-
export interface CrmContext extends BaseContext {
|
|
2657
|
-
location: 'crm.record.tab' | 'crm.record.sidebar' | 'crm.preview' | 'helpdesk.sidebar';
|
|
2658
|
-
crm: CrmRecordContext;
|
|
2659
|
-
extension?: AppContext;
|
|
2660
|
-
}
|
|
2661
|
-
/** @ignore */
|
|
2662
|
-
export interface SettingsContext extends BaseContext {
|
|
2663
|
-
location: 'settings';
|
|
2664
|
-
}
|
|
2665
|
-
/** @ignore */
|
|
2666
|
-
export interface AppHomeContext extends BaseContext {
|
|
2667
|
-
location: 'home';
|
|
2668
|
-
}
|
|
2669
|
-
/** @ignore */
|
|
2670
|
-
export interface GenericContext extends BaseContext {
|
|
2671
|
-
location: 'uie.playground.middle';
|
|
2672
|
-
}
|
|
2673
|
-
/** @ignore */
|
|
2674
|
-
export interface BaseExtensionContextData {
|
|
2675
|
-
appId: number | string;
|
|
2676
|
-
appName?: string;
|
|
2677
|
-
cardId: string;
|
|
2678
|
-
cardTitle?: string;
|
|
2679
|
-
location: keyof ExtensionPoints;
|
|
2680
|
-
sourceId?: string | null;
|
|
2681
|
-
appAccessLevel: 'PUBLIC' | 'PRIVATE';
|
|
2682
|
-
additionalProperties?: {
|
|
2683
|
-
[key: string]: string;
|
|
2684
|
-
} | null;
|
|
2685
|
-
}
|
|
2686
|
-
/** @ignore */
|
|
2687
|
-
export interface CrmExtensionContextData extends BaseExtensionContextData {
|
|
2688
|
-
objectId: number | string;
|
|
2689
|
-
objectTypeId: string;
|
|
2690
|
-
}
|
|
2691
|
-
/** @ignore */
|
|
2692
|
-
export interface CrmDataHighlightProps {
|
|
2693
|
-
properties: Array<string>;
|
|
2694
|
-
objectTypeId?: string;
|
|
2695
|
-
objectId?: number;
|
|
2696
|
-
}
|
|
2697
|
-
/** @ignore */
|
|
2698
|
-
export interface CrmReportProps {
|
|
2699
|
-
reportId: string;
|
|
2700
|
-
use?: 'associations' | 'subject' | 'unfiltered';
|
|
2701
|
-
}
|
|
2702
|
-
/** @ignore */
|
|
2703
|
-
export interface CrmPropertyListProps {
|
|
2704
|
-
properties: Array<string>;
|
|
2705
|
-
direction?: string;
|
|
2706
|
-
objectTypeId?: string;
|
|
2707
|
-
objectId?: number;
|
|
2708
|
-
}
|
|
2709
|
-
/** @ignore */
|
|
2710
|
-
type CrmSortDescriptor = {
|
|
2711
|
-
columnName: string;
|
|
2712
|
-
direction: 1 | -1;
|
|
2713
|
-
};
|
|
2714
|
-
/** @ignore */
|
|
2715
|
-
interface CrmSearchFilter {
|
|
2716
|
-
operator: 'EQ' | 'NEQ' | 'LT' | 'LTE' | 'GT' | 'GTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'HAS_PROPERTY' | 'NOT_HAS_PROPERTY';
|
|
2717
|
-
value?: string | number;
|
|
2718
|
-
values?: string | number;
|
|
2719
|
-
highValue?: string | number;
|
|
2720
|
-
property: string;
|
|
2721
|
-
}
|
|
2722
|
-
/** @ignore */
|
|
2723
|
-
export interface CrmAssociationTableProps {
|
|
2724
|
-
objectTypeId: string;
|
|
2725
|
-
propertyColumns: Array<string>;
|
|
2726
|
-
quickFilterProperties?: Array<string>;
|
|
2727
|
-
searchable?: boolean;
|
|
2728
|
-
pagination?: boolean;
|
|
2729
|
-
associationLabelFilter?: boolean;
|
|
2730
|
-
pageSize?: number;
|
|
2731
|
-
preFilters?: Array<CrmSearchFilter>;
|
|
2732
|
-
sort?: Array<CrmSortDescriptor>;
|
|
2733
|
-
}
|
|
2734
|
-
/** @ignore */
|
|
2735
|
-
export interface CrmAssociationPivotProps {
|
|
2736
|
-
objectTypeId: string;
|
|
2737
|
-
associationLabels?: Array<string>;
|
|
2738
|
-
maxAssociations?: number;
|
|
2739
|
-
preFilters?: Array<CrmSearchFilter>;
|
|
2740
|
-
sort?: Array<CrmSortDescriptor>;
|
|
2741
|
-
}
|
|
2742
|
-
/** @ignore */
|
|
2743
|
-
export interface CrmAssociationStageTrackerProps {
|
|
2744
|
-
objectTypeId: string;
|
|
2745
|
-
properties: Array<string>;
|
|
2746
|
-
associationLabels?: Array<string>;
|
|
2747
|
-
filters?: Array<CrmSearchFilter>;
|
|
2748
|
-
showProperties?: boolean;
|
|
2749
|
-
sort?: Array<CrmSortDescriptor>;
|
|
2750
|
-
}
|
|
2751
|
-
/** @ignore */
|
|
2752
|
-
export interface CrmSimpleDeadlineProps {
|
|
2753
|
-
endDatePropertyName: string;
|
|
2754
|
-
properties: Array<string>;
|
|
2755
|
-
progressTheme?: ProgressTheme;
|
|
2756
|
-
showProperties?: boolean;
|
|
2757
|
-
startDatePropertyName: string;
|
|
2758
|
-
}
|
|
2759
|
-
/** @ignore */
|
|
2760
|
-
export interface CrmRelativeTimelineProps {
|
|
2761
|
-
properties: Array<string>;
|
|
2762
|
-
}
|
|
2763
|
-
/** @ignore */
|
|
2764
|
-
interface BaseCrmStatisticItem {
|
|
2765
|
-
label: string;
|
|
2766
|
-
}
|
|
2767
|
-
/** @ignore */
|
|
2768
|
-
interface FilterGroup {
|
|
2769
|
-
filters: Array<CrmSearchFilter>;
|
|
2770
|
-
}
|
|
2771
|
-
/** @ignore */
|
|
2772
|
-
interface ProgressTheme {
|
|
2773
|
-
backgroundColor?: string;
|
|
2774
|
-
completedColor?: string;
|
|
2775
|
-
upcomingColor?: string;
|
|
2776
|
-
borderRadius?: string | number;
|
|
2777
|
-
height?: string | number;
|
|
2778
|
-
completedGradient?: Gradient;
|
|
2779
|
-
upcomingGradient?: Gradient;
|
|
2780
|
-
}
|
|
2781
|
-
/** @ignore */
|
|
2782
|
-
interface PercentileMetricItem extends BaseCrmStatisticItem {
|
|
2783
|
-
statisticType: 'PERCENTILES';
|
|
2784
|
-
propertyName: string;
|
|
2785
|
-
percentile: number;
|
|
2786
|
-
filterGroups?: Array<FilterGroup>;
|
|
2787
|
-
}
|
|
2788
|
-
/** @ignore */
|
|
2789
|
-
type CrmStatisticItem = BasicMetricItem | PercentileMetricItem;
|
|
2790
|
-
/** @ignore */
|
|
2791
|
-
export interface CrmStatisticsProps {
|
|
2792
|
-
objectTypeId: string;
|
|
2793
|
-
statistics: Array<CrmStatisticItem>;
|
|
2794
|
-
}
|
|
2795
|
-
/** @ignore */
|
|
2796
|
-
interface BasicMetricItem extends BaseCrmStatisticItem {
|
|
2797
|
-
statisticType: 'SUM' | 'AVG' | 'MIN' | 'MAX' | 'DISTINCT_APPROX' | 'COUNT';
|
|
2798
|
-
propertyName: string;
|
|
2799
|
-
filterGroups?: Array<FilterGroup>;
|
|
2800
|
-
}
|
|
2801
|
-
/** @ignore */
|
|
2802
|
-
interface Gradient {
|
|
2803
|
-
startColor: string;
|
|
2804
|
-
endColor: string;
|
|
2805
|
-
}
|
|
2806
|
-
/** @ignore */
|
|
2807
|
-
export interface CrmStageTrackerProps {
|
|
2808
|
-
objectId?: number;
|
|
2809
|
-
objectTypeId?: string;
|
|
2810
|
-
properties: Array<string>;
|
|
2811
|
-
showProperties?: boolean;
|
|
2812
|
-
}
|
|
2813
|
-
/** @ignore */
|
|
2814
|
-
export interface CrmAssociationPropertyListProps {
|
|
2815
|
-
objectTypeId: string;
|
|
2816
|
-
properties: Array<string>;
|
|
2817
|
-
associationLabels?: Array<string>;
|
|
2818
|
-
filters?: Array<CrmSearchFilter>;
|
|
2819
|
-
sort?: Array<CrmSortDescriptor>;
|
|
2820
|
-
}
|
|
2821
|
-
/** @ignore */
|
|
2822
|
-
interface ObjectCoordinates {
|
|
2823
|
-
objectTypeId: string;
|
|
2824
|
-
objectId: number;
|
|
2825
|
-
}
|
|
2826
|
-
/** @ignore */
|
|
2827
|
-
interface OpenRecordAssociationFormArgs {
|
|
2828
|
-
objectTypeId: string;
|
|
2829
|
-
association: {
|
|
2830
|
-
objectTypeId: string;
|
|
2831
|
-
objectId: number;
|
|
2832
|
-
};
|
|
2833
|
-
}
|
|
2834
|
-
/** @ignore */
|
|
2835
|
-
interface ActivityCreatorActionArgs {
|
|
2836
|
-
objectTypeId: string;
|
|
2837
|
-
objectId: number;
|
|
2838
|
-
windowVariant?: 'windowed' | 'fullscreen';
|
|
2839
|
-
initialEmailBody?: string;
|
|
2840
|
-
initialEmailSubject?: string;
|
|
2841
|
-
}
|
|
2842
|
-
/** @ignore */
|
|
2843
|
-
interface EngagementAppLinkArgs {
|
|
2844
|
-
objectId: number | string;
|
|
2845
|
-
objectTypeId: string;
|
|
2846
|
-
engagementId: number | string;
|
|
2847
|
-
external?: boolean;
|
|
2848
|
-
}
|
|
2849
|
-
/** @ignore */
|
|
2850
|
-
interface RecordAppLinkArgs {
|
|
2851
|
-
includeEschref?: boolean;
|
|
2852
|
-
objectId: number;
|
|
2853
|
-
objectTypeId: string;
|
|
2854
|
-
external?: boolean;
|
|
2855
|
-
}
|
|
2856
|
-
/** @ignore */
|
|
2857
|
-
interface PageAppLinkArgs {
|
|
2858
|
-
path: string;
|
|
2859
|
-
external?: boolean;
|
|
2860
|
-
}
|
|
2861
|
-
/** @ignore */
|
|
2862
|
-
interface ExternalUrlArgs {
|
|
2863
|
-
href: string;
|
|
2864
|
-
}
|
|
2865
|
-
/** @ignore */
|
|
2866
|
-
interface OpenRecordCreatorFormArgs {
|
|
2867
|
-
objectTypeId: string;
|
|
2868
|
-
}
|
|
2869
|
-
/** @ignore */
|
|
2870
|
-
interface ActionArgs {
|
|
2871
|
-
PREVIEW_OBJECT: ObjectCoordinates;
|
|
2872
|
-
ADD_NOTE: ActivityCreatorActionArgs;
|
|
2873
|
-
ADD_TASK: ActivityCreatorActionArgs;
|
|
2874
|
-
SEND_EMAIL: ActivityCreatorActionArgs;
|
|
2875
|
-
SCHEDULE_MEETING: ActivityCreatorActionArgs;
|
|
2876
|
-
OPEN_RECORD_CREATOR_FORM: OpenRecordCreatorFormArgs;
|
|
2877
|
-
OPEN_RECORD_ASSOCIATION_FORM: OpenRecordAssociationFormArgs;
|
|
2878
|
-
ENGAGEMENT_APP_LINK: EngagementAppLinkArgs;
|
|
2879
|
-
RECORD_APP_LINK: RecordAppLinkArgs;
|
|
2880
|
-
PAGE_APP_LINK: PageAppLinkArgs;
|
|
2881
|
-
EXTERNAL_URL: ExternalUrlArgs;
|
|
2882
|
-
OPEN_WORKFLOW_ENROLLMENT_MODAL: ObjectCoordinates;
|
|
2883
|
-
}
|
|
2884
|
-
/** @ignore */
|
|
2885
|
-
export type ArgsFor<SpecificActionType extends ActionType> = ActionArgs[SpecificActionType];
|
|
2886
|
-
export type ActionType = 'PREVIEW_OBJECT' | 'ADD_NOTE' | 'ADD_TASK' | 'SEND_EMAIL' | 'SCHEDULE_MEETING' | 'OPEN_RECORD_CREATOR_FORM' | 'OPEN_RECORD_ASSOCIATION_FORM' | 'ENGAGEMENT_APP_LINK' | 'RECORD_APP_LINK' | 'PAGE_APP_LINK' | 'EXTERNAL_URL' | 'OPEN_WORKFLOW_ENROLLMENT_MODAL';
|
|
2887
|
-
/** @ignore */
|
|
2888
|
-
interface BaseActionComponent {
|
|
2889
|
-
children: ReactNode;
|
|
2890
|
-
actionType: ActionType;
|
|
2891
|
-
actionContext: ArgsFor<ActionType>;
|
|
2892
|
-
onError?: (errors: string[]) => void;
|
|
2893
|
-
}
|
|
2894
|
-
/** @ignore */
|
|
2895
|
-
export interface CrmActionButtonProps extends BaseActionComponent {
|
|
2896
|
-
variant?: 'primary' | 'secondary' | 'destructive';
|
|
2897
|
-
type?: 'button' | 'reset' | 'submit';
|
|
2898
|
-
size?: TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'];
|
|
2899
|
-
onClick?: () => void;
|
|
2900
|
-
}
|
|
2901
|
-
/** @ignore */
|
|
2902
|
-
export interface CrmActionLinkProps extends BaseActionComponent {
|
|
2903
|
-
variant?: 'primary' | 'light' | 'dark' | 'destructive';
|
|
2904
|
-
}
|
|
2905
|
-
/** @ignore */
|
|
2906
|
-
export interface ActionLibraryButtonCardActionConfig<SpecificActionType extends ActionType = ActionType> {
|
|
2907
|
-
type: 'action-library-button';
|
|
2908
|
-
actionType: SpecificActionType;
|
|
2909
|
-
actionContext: ArgsFor<SpecificActionType>;
|
|
2910
|
-
label?: string;
|
|
2911
|
-
disabled?: boolean;
|
|
2912
|
-
tooltipText?: string;
|
|
2913
|
-
}
|
|
2914
|
-
/** @ignore */
|
|
2915
|
-
export type DropdownCardActionConfigOptions = [
|
|
2916
|
-
ActionLibraryButtonCardActionConfig,
|
|
2917
|
-
...ActionLibraryButtonCardActionConfig[]
|
|
2918
|
-
];
|
|
2919
|
-
/** @ignore */
|
|
2920
|
-
export interface DropdownCardActionConfig {
|
|
2921
|
-
type: 'dropdown';
|
|
2922
|
-
options: DropdownCardActionConfigOptions;
|
|
2923
|
-
label?: string;
|
|
2924
|
-
disabled?: boolean;
|
|
2925
|
-
tooltipText?: string;
|
|
2926
|
-
}
|
|
2927
|
-
/** @ignore */
|
|
2928
|
-
type ErrorHandler = (errors: string[]) => void;
|
|
2929
|
-
/** @ignore */
|
|
2930
|
-
type CardActionConfig = ActionLibraryButtonCardActionConfig | DropdownCardActionConfig;
|
|
2931
|
-
/** @ignore */
|
|
2932
|
-
export type CrmCardActionsProps = {
|
|
2933
|
-
actionConfigs: Array<CardActionConfig>;
|
|
2934
|
-
onError?: ErrorHandler;
|
|
2935
|
-
};
|
|
2936
|
-
/** @ignore */
|
|
2937
|
-
export type ExtensionPointAction = (...args: any[]) => Promise<any> | void;
|
|
2938
|
-
/** @ignore */
|
|
2939
|
-
export interface ExtensionPointContract {
|
|
2940
|
-
actions?: {
|
|
2941
|
-
[k: string]: ExtensionPointAction;
|
|
2942
|
-
} | {};
|
|
2943
|
-
context: BaseContext;
|
|
2944
|
-
customComponents: Record<string, ComponentType<any>>;
|
|
2945
|
-
}
|
|
2946
|
-
/** @ignore */
|
|
2947
|
-
export interface StandardCrmExtensionPoint extends ExtensionPointContract {
|
|
2948
|
-
actions: CrmHostActions & UiePlatformActions;
|
|
2949
|
-
context: CrmContext;
|
|
2950
|
-
customComponents: {
|
|
2951
|
-
CrmPropertyList: ComponentType<CrmPropertyListProps>;
|
|
2952
|
-
CrmAssociationTable: ComponentType<CrmAssociationTableProps>;
|
|
2953
|
-
CrmDataHighlight: ComponentType<CrmDataHighlightProps>;
|
|
2954
|
-
CrmReport: ComponentType<CrmReportProps>;
|
|
2955
|
-
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
2956
|
-
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
2957
|
-
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
2958
|
-
CrmSimpleDeadline?: ComponentType<CrmSimpleDeadlineProps>;
|
|
2959
|
-
CrmRelativeTimeline?: ComponentType<CrmRelativeTimelineProps>;
|
|
2960
|
-
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
2961
|
-
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
2962
|
-
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
2963
|
-
CrmActionLink?: ComponentType<CrmActionLinkProps>;
|
|
2964
|
-
CrmCardActions?: ComponentType<CrmCardActionsProps>;
|
|
2965
|
-
};
|
|
2966
|
-
}
|
|
2967
|
-
/** @deprecated this interface has been replaced by StandardCrmExtensionPoint */
|
|
2968
|
-
export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
2969
|
-
actions: CrmHostActions;
|
|
2970
|
-
context: CrmContext;
|
|
2971
|
-
customComponents: {
|
|
2972
|
-
CrmPropertyList: ComponentType<CrmPropertyListProps>;
|
|
2973
|
-
CrmAssociationTable: ComponentType<CrmAssociationTableProps>;
|
|
2974
|
-
CrmDataHighlight: ComponentType<CrmDataHighlightProps>;
|
|
2975
|
-
CrmReport: ComponentType<CrmReportProps>;
|
|
2976
|
-
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
2977
|
-
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
2978
|
-
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
2979
|
-
CrmSimpleDeadline?: ComponentType<CrmSimpleDeadlineProps>;
|
|
2980
|
-
CrmRelativeTimeline?: ComponentType<CrmRelativeTimelineProps>;
|
|
2981
|
-
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
2982
|
-
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
2983
|
-
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
2984
|
-
CrmActionLink?: ComponentType<CrmActionLinkProps>;
|
|
2985
|
-
CrmCardActions?: ComponentType<CrmCardActionsProps>;
|
|
2986
|
-
};
|
|
2987
|
-
}
|
|
2988
|
-
/** @ignore */
|
|
2989
|
-
export interface CrmSidebarExtensionPoint extends ExtensionPointContract {
|
|
2990
|
-
actions: CrmHostActions & UiePlatformActions;
|
|
2991
|
-
context: CrmContext;
|
|
2992
|
-
customComponents: {
|
|
2993
|
-
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
2994
|
-
CrmActionLink?: ComponentType<CrmActionLinkProps>;
|
|
2995
|
-
};
|
|
2996
|
-
}
|
|
2997
|
-
/** @ignore */
|
|
2998
|
-
export interface SettingsExtensionPoint extends ExtensionPointContract {
|
|
2999
|
-
actions: SettingsActions & UiePlatformActions;
|
|
3000
|
-
context: SettingsContext;
|
|
3001
|
-
}
|
|
3002
|
-
/** @ignore */
|
|
3003
|
-
export interface AppHomeExtensionPoint extends ExtensionPointContract {
|
|
3004
|
-
actions: AppHomeActions & UiePlatformActions;
|
|
3005
|
-
context: AppHomeContext;
|
|
3006
|
-
}
|
|
3007
|
-
export interface ExampleCrmComponentProps {
|
|
3008
|
-
name: string;
|
|
3009
|
-
size: 'sm' | 'md' | 'lg';
|
|
3010
|
-
count: number;
|
|
3011
|
-
}
|
|
3012
|
-
/** @ignore */
|
|
3013
|
-
interface RemotePlaygroundExtensionPoint extends ExtensionPointContract {
|
|
3014
|
-
actions: {
|
|
3015
|
-
warn: () => void;
|
|
3016
|
-
};
|
|
3017
|
-
context: GenericContext;
|
|
3018
|
-
customComponents: {
|
|
3019
|
-
ExampleCrmComponent: ComponentType<ExampleCrmComponentProps>;
|
|
3020
|
-
};
|
|
3021
|
-
}
|
|
3022
|
-
export declare const EXTENSION_POINT_LOCATIONS: readonly ["crm.preview", "crm.record.sidebar", "crm.record.tab", "helpdesk.sidebar", "uie.playground.middle", "settings", "home"];
|
|
3023
|
-
export type ExtensionPointLocation = TypesOfReadOnlyArray<typeof EXTENSION_POINT_LOCATIONS>;
|
|
3024
|
-
/** @ignore */
|
|
3025
|
-
interface LocationToExtensionPoint {
|
|
3026
|
-
'uie.playground.middle': RemotePlaygroundExtensionPoint;
|
|
3027
|
-
'crm.record.tab': StandardCrmExtensionPoint;
|
|
3028
|
-
'crm.preview': StandardCrmExtensionPoint;
|
|
3029
|
-
'crm.record.sidebar': CrmSidebarExtensionPoint;
|
|
3030
|
-
'helpdesk.sidebar': StandardCrmExtensionPoint;
|
|
3031
|
-
settings: SettingsExtensionPoint;
|
|
3032
|
-
home: AppHomeExtensionPoint;
|
|
3033
|
-
}
|
|
3034
|
-
/**
|
|
3035
|
-
* While this resolves to the same result as LocationToExtensionPoint, it ensures that every location
|
|
3036
|
-
* from ExtensionPointLocation is explicitly included. This way, EXTENSION_POINT_LOCATIONS becomes
|
|
3037
|
-
* the single source of truth for defining all locations.
|
|
3038
|
-
*/
|
|
3039
|
-
type _ExtensionPoints = {
|
|
3040
|
-
[key in ExtensionPointLocation]: LocationToExtensionPoint[key];
|
|
3041
|
-
};
|
|
3042
|
-
export interface ExtensionPoints extends _ExtensionPoints {
|
|
3043
|
-
}
|
|
3044
|
-
/** @ignore */
|
|
3045
|
-
export interface ExtensionPointApi<ExtensionPointName extends keyof ExtensionPoints> {
|
|
3046
|
-
runServerlessFunction: ServerlessFuncRunner;
|
|
3047
|
-
actions: ExtensionPoints[ExtensionPointName]['actions'];
|
|
3048
|
-
context: ExtensionPoints[ExtensionPointName]['context'];
|
|
3049
|
-
}
|
|
3050
|
-
export interface HubSpotFetchOptions {
|
|
3051
|
-
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
3052
|
-
timeout?: number;
|
|
3053
|
-
body?: {
|
|
3054
|
-
[key: string]: unknown;
|
|
3055
|
-
};
|
|
3056
|
-
headers?: Headers | Record<string, string>;
|
|
3057
|
-
}
|
|
3058
|
-
export type HubSpotFetchRequestURI = string | URL;
|
|
3059
|
-
export type ProxyMetadata = {
|
|
3060
|
-
userEmail?: string;
|
|
3061
|
-
userId?: number;
|
|
3062
|
-
portalId?: number;
|
|
3063
|
-
};
|
|
3064
|
-
/**
|
|
3065
|
-
* @category Serverless
|
|
3066
|
-
*/
|
|
3067
|
-
export interface ServerlessRunnerParams {
|
|
3068
|
-
/**
|
|
3069
|
-
* Name of the serverless function
|
|
3070
|
-
*/
|
|
3071
|
-
name: string;
|
|
3072
|
-
/**
|
|
3073
|
-
* Names of CRM object properties to be retrieved and supplied to the function as `context.propertiesToSend`
|
|
3074
|
-
*/
|
|
3075
|
-
propertiesToSend?: string[];
|
|
3076
|
-
/**
|
|
3077
|
-
* Additional parameters to be supplied to the function as `context.parameters`
|
|
3078
|
-
*/
|
|
3079
|
-
parameters?: JsonValue;
|
|
3080
|
-
/**
|
|
3081
|
-
* @deprecated Optional payload supplied to the function as `context.event.payload`.
|
|
3082
|
-
* Support for this param may be removed in the future. Use `parameters` instead.
|
|
3083
|
-
*/
|
|
3084
|
-
payload?: JsonValue;
|
|
3085
|
-
}
|
|
3086
|
-
/**
|
|
3087
|
-
* @category Serverless
|
|
3088
|
-
*/
|
|
3089
|
-
export declare enum ServerlessExecutionStatus {
|
|
3090
|
-
Success = "SUCCESS",
|
|
3091
|
-
Error = "ERROR"
|
|
3092
|
-
}
|
|
3093
|
-
/**
|
|
3094
|
-
* @category Serverless
|
|
3095
|
-
*/
|
|
3096
|
-
export type ServerlessExecutionResult = {
|
|
3097
|
-
status: ServerlessExecutionStatus.Success;
|
|
3098
|
-
response: JsonValue;
|
|
3099
|
-
} | {
|
|
3100
|
-
status: ServerlessExecutionStatus.Error;
|
|
3101
|
-
message: string;
|
|
3102
|
-
};
|
|
3103
|
-
/**
|
|
3104
|
-
* @category Serverless
|
|
3105
|
-
*/
|
|
3106
|
-
export type ServerlessFuncRunner = (params: ServerlessRunnerParams) => Promise<ServerlessExecutionResult>;
|
|
3107
|
-
/**
|
|
3108
|
-
* @ignore
|
|
3109
|
-
* @category Serverless
|
|
3110
|
-
*/
|
|
3111
|
-
export interface ServerlessExecutionRequest {
|
|
3112
|
-
appId: number;
|
|
3113
|
-
extensibleCardId: number;
|
|
3114
|
-
serverlessFunction: string;
|
|
3115
|
-
location: keyof ExtensionPoints;
|
|
3116
|
-
objectQuery?: {
|
|
3117
|
-
objectId: number;
|
|
3118
|
-
objectTypeId: string;
|
|
3119
|
-
objectPropertyNames: string[];
|
|
3120
|
-
};
|
|
3121
|
-
parameters?: JsonValue;
|
|
3122
|
-
event?: {
|
|
3123
|
-
type: 'SERVERLESS_ACTION_HOOK';
|
|
3124
|
-
payload: JsonValue;
|
|
3125
|
-
};
|
|
3126
|
-
objectId?: number;
|
|
3127
|
-
objectTypeId?: string;
|
|
3128
|
-
}
|
|
3129
|
-
/**
|
|
3130
|
-
* @category Serverless
|
|
3131
|
-
*/
|
|
3132
|
-
export interface ServerlessExecutionResponse {
|
|
3133
|
-
logId: string;
|
|
3134
|
-
response?: JsonValue;
|
|
3135
|
-
}
|
|
3136
|
-
/**
|
|
3137
|
-
* @category Serverless
|
|
3138
|
-
*/
|
|
3139
|
-
export interface ServerlessErrorResponse {
|
|
3140
|
-
responseJSON?: {
|
|
3141
|
-
message: string;
|
|
3142
|
-
correlationId: string;
|
|
3143
|
-
category: string;
|
|
3144
|
-
subCategory?: string;
|
|
3145
|
-
errors?: {
|
|
3146
|
-
message: string;
|
|
3147
|
-
subCategory: string;
|
|
3148
|
-
}[];
|
|
3149
|
-
};
|
|
3150
|
-
status: number;
|
|
3151
|
-
}
|
|
3152
|
-
export type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
3153
|
-
[key: string]: JsonValue;
|
|
3154
|
-
};
|
|
3155
|
-
/** @ignore */
|
|
3156
|
-
export type PanelAction = (panelId: string) => void;
|
|
3157
|
-
/** @ignore */
|
|
3158
|
-
export type ModalAction = (modalId: string) => void;
|
|
3159
|
-
/** @ignore */
|
|
3160
|
-
export interface Reactions {
|
|
3161
|
-
openPanel: PanelAction;
|
|
3162
|
-
closePanel: PanelAction;
|
|
3163
|
-
openModal: ModalAction;
|
|
3164
|
-
closeModal: ModalAction;
|
|
3165
|
-
}
|
|
3166
|
-
export type ReactionsHandler<T> = (event: T, reactions: Reactions) => void | Promise<void>;
|
|
3167
|
-
export {};
|