@wavelengthusaf/web-components 1.0.0 → 1.0.2
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/README.md +2 -2
- package/dist/cjs/index.cjs +1612 -71947
- package/dist/cjs/index.d.cts +199 -879
- package/dist/esm/index.d.ts +199 -879
- package/dist/esm/index.js +1615 -71950
- package/package.json +5 -4
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- /package/dist/fonts/{b612-latin-400-normal.woff → fonts/b612-latin-400-normal.woff} +0 -0
- /package/dist/fonts/{b612-latin-400-normal.woff2 → fonts/b612-latin-400-normal.woff2} +0 -0
- /package/dist/fonts/{goldman-latin-400-normal.woff → fonts/goldman-latin-400-normal.woff} +0 -0
- /package/dist/fonts/{goldman-latin-400-normal.woff2 → fonts/goldman-latin-400-normal.woff2} +0 -0
- /package/dist/styles/{fontBase64.tsx → styles/fontBase64.tsx} +0 -0
- /package/dist/styles/{fontSheet.tsx → styles/fontSheet.tsx} +0 -0
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,882 +1,202 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
className?: string;
|
|
42
|
-
style?: React__default.CSSProperties;
|
|
43
|
-
}
|
|
44
|
-
declare const WavelengthButton: React__default.FC<WavelengthButtonProps>;
|
|
45
|
-
|
|
46
|
-
interface ButtonProps {
|
|
47
|
-
onClick?: any;
|
|
48
|
-
children?: ReactNode;
|
|
49
|
-
}
|
|
50
|
-
interface IconProps {
|
|
51
|
-
text: string;
|
|
52
|
-
numIcon?: string;
|
|
53
|
-
children: ReactNode;
|
|
54
|
-
active?: boolean;
|
|
55
|
-
width: string;
|
|
56
|
-
height: number;
|
|
57
|
-
fontsize: number;
|
|
58
|
-
}
|
|
59
|
-
declare function ButtonIcon({ text, numIcon, children, active, width, height, fontsize }: IconProps): react_jsx_runtime.JSX.Element;
|
|
60
|
-
interface ButtonMenuProps {
|
|
61
|
-
children: ReactNode;
|
|
62
|
-
}
|
|
63
|
-
declare function ButtonMenu({ children }: ButtonMenuProps): react_jsx_runtime.JSX.Element;
|
|
64
|
-
declare function WavelengthDropdownButton({ children, onClick }: ButtonProps): React__default.JSX.Element;
|
|
65
|
-
declare namespace WavelengthDropdownButton {
|
|
66
|
-
var displayName: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface WavelengthAutocompleteProps {
|
|
70
|
-
id?: string;
|
|
71
|
-
label: string;
|
|
72
|
-
items?: any;
|
|
73
|
-
variant?: TextFieldVariants;
|
|
74
|
-
width?: number;
|
|
75
|
-
borderColor?: string;
|
|
76
|
-
hoverColor?: string;
|
|
77
|
-
textColor?: string;
|
|
78
|
-
onChange?: (selectedValue: string) => void;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Returns the Best Matching String from a List; Defaults to the first item if no good match is found
|
|
82
|
-
* @param searchString - the string we want to look for
|
|
83
|
-
* @param choices - the list of strings we get to choose from (must be greater than 0)
|
|
84
|
-
* @returns - a string with the "best" match, or "" if no match is found
|
|
85
|
-
*/
|
|
86
|
-
declare function findBestStringMatch(searchString: string, choices: string[]): string;
|
|
87
|
-
declare function WavelengthAutocomplete({ label, width, variant, items, onChange, borderColor, textColor, hoverColor, id }: WavelengthAutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
88
|
-
declare namespace WavelengthAutocomplete {
|
|
89
|
-
var displayName: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface DownloadProps {
|
|
93
|
-
fileLoc: "local" | "api";
|
|
94
|
-
fileURL: string;
|
|
95
|
-
fileName: string;
|
|
96
|
-
button?: ReactNode | React__default.JSX.Element;
|
|
97
|
-
id?: string;
|
|
98
|
-
}
|
|
99
|
-
declare function WavelengthFileDownloader({ fileLoc, fileURL, fileName, button, id }: DownloadProps): react_jsx_runtime.JSX.Element | undefined;
|
|
100
|
-
declare namespace WavelengthFileDownloader {
|
|
101
|
-
var displayName: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface StyledButtonPropsTwo {
|
|
105
|
-
type: "channel_one_transparent" | "channel_one_launch" | "channel_one_request" | "channel_one_pending" | "channel_one_disabled" | "ewdms_tertiary" | "ewdms_primary" | "ewdms_secondary" | "brewery" | "default";
|
|
106
|
-
styles?: React__default.CSSProperties;
|
|
107
|
-
hoverstyles?: React__default.CSSProperties;
|
|
108
|
-
activestyles?: React__default.CSSProperties;
|
|
109
|
-
disabledstyles?: React__default.CSSProperties;
|
|
110
|
-
icon?: React__default.ReactNode;
|
|
111
|
-
disabled?: boolean;
|
|
112
|
-
children: React__default.ReactNode;
|
|
113
|
-
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
114
|
-
}
|
|
115
|
-
declare function WavelengthStyledButton({ type, styles, children, disabled, hoverstyles, icon, onClick, disabledstyles, activestyles }: StyledButtonPropsTwo): react_jsx_runtime.JSX.Element;
|
|
116
|
-
declare namespace WavelengthStyledButton {
|
|
117
|
-
var displayName: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface WavelengthBoxProps {
|
|
121
|
-
width?: number;
|
|
122
|
-
height?: number;
|
|
123
|
-
children: ReactNode;
|
|
124
|
-
borderTopRadius?: string;
|
|
125
|
-
borderBottomRadius?: string;
|
|
126
|
-
id?: string;
|
|
127
|
-
}
|
|
128
|
-
declare function WavelengthBox({ width, height, children, borderBottomRadius, borderTopRadius, id }: WavelengthBoxProps): react_jsx_runtime.JSX.Element;
|
|
129
|
-
declare namespace WavelengthBox {
|
|
130
|
-
var displayName: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
interface WavelengthContentPlaceholderProps {
|
|
134
|
-
type?: "circle" | "rectangle";
|
|
135
|
-
width?: string | number;
|
|
136
|
-
height?: string | number;
|
|
137
|
-
txtcolor?: string;
|
|
138
|
-
bgcolor?: string;
|
|
139
|
-
children: ReactNode;
|
|
140
|
-
id?: string;
|
|
141
|
-
}
|
|
142
|
-
declare function WavelengthContentPlaceholder({ type, width, height, txtcolor, bgcolor, children, id }: WavelengthContentPlaceholderProps): react_jsx_runtime.JSX.Element;
|
|
143
|
-
declare namespace WavelengthContentPlaceholder {
|
|
144
|
-
var displayName: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
interface WavelengthExampleComponentProps {
|
|
148
|
-
width?: number;
|
|
149
|
-
height?: number;
|
|
150
|
-
}
|
|
151
|
-
declare function WavelengthExampleComponent({ width, height }: WavelengthExampleComponentProps): react_jsx_runtime.JSX.Element;
|
|
152
|
-
declare namespace WavelengthExampleComponent {
|
|
153
|
-
var displayName: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
interface SearchResult {
|
|
157
|
-
id: number | string;
|
|
158
|
-
title: string;
|
|
159
|
-
subtitle?: string;
|
|
160
|
-
}
|
|
161
|
-
interface SearchProps {
|
|
162
|
-
id?: string;
|
|
163
|
-
mode: "automatic" | "manual";
|
|
164
|
-
type?: "text-box" | "search-bar";
|
|
165
|
-
iconPos?: "start" | "end";
|
|
166
|
-
clearIconMarginRight?: string;
|
|
167
|
-
borderRadius?: number | string;
|
|
168
|
-
label?: string;
|
|
169
|
-
width?: string;
|
|
170
|
-
height?: string | number;
|
|
171
|
-
children?: ReactNode;
|
|
172
|
-
borderColor?: string;
|
|
173
|
-
hoverColor?: string;
|
|
174
|
-
textColor?: string;
|
|
175
|
-
backgroundColor?: string;
|
|
176
|
-
placeholder?: string;
|
|
177
|
-
onEnter?: (arg0?: any) => any;
|
|
178
|
-
size?: "small" | "medium";
|
|
179
|
-
fontSize?: string;
|
|
180
|
-
options: SearchResult[];
|
|
181
|
-
onChange?: React__default.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
182
|
-
onSearchItemSelected?: (selectedItem: SearchResult | string) => void;
|
|
183
|
-
}
|
|
184
|
-
declare function WavelengthSearch({ id, mode, type, width, height, label, size, borderRadius, children, placeholder, onEnter, onSearchItemSelected, options, onChange, borderColor, hoverColor, textColor, fontSize, backgroundColor, iconPos, clearIconMarginRight, }: SearchProps): react_jsx_runtime.JSX.Element | undefined;
|
|
185
|
-
declare namespace WavelengthSearch {
|
|
186
|
-
var displayName: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
declare function WavelengthSearchTextField(): react_jsx_runtime.JSX.Element;
|
|
190
|
-
declare namespace WavelengthSearchTextField {
|
|
191
|
-
var displayName: string;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
interface WavelengthNotAvailablePageProps {
|
|
195
|
-
WavelengthAppLogoName?: string;
|
|
196
|
-
errorMessage: string;
|
|
197
|
-
backgroundColor?: string;
|
|
198
|
-
buttonText: string;
|
|
199
|
-
redirectLink?: string;
|
|
200
|
-
buttonColorOne?: string;
|
|
201
|
-
buttonColorTwo?: string;
|
|
202
|
-
id?: string;
|
|
203
|
-
}
|
|
204
|
-
declare function WavelengthNotAvailablePage({ WavelengthAppLogoName, errorMessage, backgroundColor, buttonText, redirectLink, buttonColorOne, buttonColorTwo, id }: WavelengthNotAvailablePageProps): react_jsx_runtime.JSX.Element;
|
|
205
|
-
declare namespace WavelengthNotAvailablePage {
|
|
206
|
-
var displayName: string;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
interface SubSectionItem {
|
|
210
|
-
title?: string;
|
|
211
|
-
path?: string;
|
|
212
|
-
onClick?: () => void;
|
|
213
|
-
items?: SubSectionItem[];
|
|
214
|
-
}
|
|
215
|
-
interface SubSection {
|
|
216
|
-
title?: string;
|
|
217
|
-
items?: SubSectionItem[];
|
|
218
|
-
}
|
|
219
|
-
interface Section {
|
|
220
|
-
title: string;
|
|
221
|
-
subsections?: SubSection[];
|
|
222
|
-
}
|
|
223
|
-
interface SidebarProps {
|
|
224
|
-
id?: string;
|
|
225
|
-
sections: Section[];
|
|
226
|
-
bgColor?: string;
|
|
227
|
-
txtColor?: string;
|
|
228
|
-
labelColor?: string;
|
|
229
|
-
arrowColor?: string;
|
|
230
|
-
marginTop?: string;
|
|
231
|
-
marginLeft?: string;
|
|
232
|
-
width?: string | number;
|
|
233
|
-
height?: string | number;
|
|
234
|
-
}
|
|
235
|
-
declare function WavelengthSideBar({ sections, txtColor, bgColor, labelColor, arrowColor, marginTop, marginLeft, width, height, id }: SidebarProps): React__default.JSX.Element;
|
|
236
|
-
declare namespace WavelengthSideBar {
|
|
237
|
-
var displayName: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
interface ISpinningSvgProps {
|
|
241
|
-
size: number;
|
|
242
|
-
id: "outer-circle" | "middle-circle" | "inner-circle" | "spinning";
|
|
243
|
-
clip: string;
|
|
244
|
-
color: string;
|
|
245
|
-
gradient: boolean;
|
|
246
|
-
radius: number;
|
|
247
|
-
}
|
|
248
|
-
declare function WavelengthSpinningOuterCircle({ size, id, clip, color, gradient, radius }: ISpinningSvgProps): react_jsx_runtime.JSX.Element;
|
|
249
|
-
declare namespace WavelengthSpinningOuterCircle {
|
|
250
|
-
var displayName: string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
interface spinningLogoProps {
|
|
254
|
-
svg?: React__default.ReactNode;
|
|
255
|
-
size?: number;
|
|
256
|
-
id?: string;
|
|
257
|
-
}
|
|
258
|
-
declare function WavelengthSpinningLogo({ svg, size, id }: spinningLogoProps): react_jsx_runtime.JSX.Element;
|
|
259
|
-
declare namespace WavelengthSpinningLogo {
|
|
260
|
-
var displayName: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
interface DragAndDropProps {
|
|
264
|
-
width?: string;
|
|
265
|
-
height?: string;
|
|
266
|
-
border?: string;
|
|
267
|
-
onFilesSelected: (files: File[]) => void;
|
|
268
|
-
textColor?: string;
|
|
269
|
-
fontSize?: string;
|
|
270
|
-
allowedFileMIME?: string[];
|
|
271
|
-
allowedFileExtensions?: string;
|
|
272
|
-
backgroundColor?: string;
|
|
273
|
-
dataTestId?: string;
|
|
274
|
-
}
|
|
275
|
-
declare function WavelengthDragAndDrop({ width, height, onFilesSelected, border, textColor, fontSize, allowedFileMIME, allowedFileExtensions, backgroundColor, dataTestId, }: DragAndDropProps): react_jsx_runtime.JSX.Element;
|
|
276
|
-
declare namespace WavelengthDragAndDrop {
|
|
277
|
-
var displayName: string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
interface WavelengthProgressBarProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
281
|
-
name?: string;
|
|
282
|
-
value?: number;
|
|
283
|
-
width?: string;
|
|
284
|
-
height?: string;
|
|
285
|
-
fontSize?: string;
|
|
286
|
-
fontColor?: string;
|
|
287
|
-
progressBorder?: string;
|
|
288
|
-
progressColor?: string;
|
|
289
|
-
}
|
|
290
|
-
declare const WavelengthProgressBar: React__default.FC<WavelengthProgressBarProps>;
|
|
291
|
-
|
|
292
|
-
interface CommentProps {
|
|
293
|
-
width?: string;
|
|
294
|
-
height?: string;
|
|
295
|
-
author: string;
|
|
296
|
-
date: string;
|
|
297
|
-
comments: string;
|
|
298
|
-
onClick?: React__default.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
299
|
-
textColor?: string;
|
|
300
|
-
backgroundColor?: string;
|
|
301
|
-
border?: string;
|
|
302
|
-
iconSelectedColor?: string;
|
|
303
|
-
dataTestId?: string;
|
|
304
|
-
}
|
|
305
|
-
declare function WavelengthCommentDisplay(props: CommentProps): react_jsx_runtime.JSX.Element;
|
|
306
|
-
declare namespace WavelengthCommentDisplay {
|
|
307
|
-
var displayName: string;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
interface PermissionAlertProps {
|
|
311
|
-
height?: string;
|
|
312
|
-
width?: string;
|
|
313
|
-
permission?: "Permission Requested" | "Permission Denied";
|
|
314
|
-
applicationName?: string;
|
|
315
|
-
requestorName?: string;
|
|
316
|
-
dateOfRequest?: string;
|
|
317
|
-
backgroundColor?: string;
|
|
318
|
-
unit?: string;
|
|
319
|
-
onDismiss?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
320
|
-
dataTestId?: string;
|
|
321
|
-
}
|
|
322
|
-
declare function WavelengthPermissionAlert({ dataTestId, height, width, backgroundColor, permission, applicationName, requestorName, dateOfRequest, onDismiss, unit, }: PermissionAlertProps): react_jsx_runtime.JSX.Element;
|
|
323
|
-
declare namespace WavelengthPermissionAlert {
|
|
324
|
-
var displayName: string;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
interface AccessAlertProps {
|
|
328
|
-
height?: string;
|
|
329
|
-
width?: string;
|
|
330
|
-
access?: "Access Request" | "Access Granted" | "Access Denied";
|
|
331
|
-
appAdmin?: string;
|
|
332
|
-
time?: string;
|
|
333
|
-
requestorName?: string;
|
|
334
|
-
appNickname?: string;
|
|
335
|
-
message?: string;
|
|
336
|
-
appLogo?: string;
|
|
337
|
-
dataTestId?: string;
|
|
338
|
-
backgroundColor?: string;
|
|
339
|
-
onClear?: React__default.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
340
|
-
}
|
|
341
|
-
declare function WavelengthAccessAlert({ height, dataTestId, width, time, access, appNickname, appLogo, appAdmin, requestorName, }: AccessAlertProps): react_jsx_runtime.JSX.Element;
|
|
342
|
-
declare namespace WavelengthAccessAlert {
|
|
343
|
-
var displayName: string;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
interface WavelengthAlertProps {
|
|
347
|
-
id?: string;
|
|
348
|
-
height?: string;
|
|
349
|
-
width?: string;
|
|
350
|
-
variant?: "caveman" | "basic" | "civilized";
|
|
351
|
-
backgroundColor?: string;
|
|
352
|
-
alertType?: string | React__default.ReactNode;
|
|
353
|
-
alertDescription?: string | React__default.ReactNode;
|
|
354
|
-
datatestid?: string;
|
|
355
|
-
viewed?: boolean;
|
|
356
|
-
timeStamp?: string | React__default.ReactNode;
|
|
357
|
-
appName?: string | React__default.ReactNode;
|
|
358
|
-
url?: string;
|
|
359
|
-
onClose?: () => void;
|
|
360
|
-
}
|
|
361
|
-
declare function WavelengthAlert({ viewed, width, height, backgroundColor, appName, alertType, alertDescription, datatestid, variant, timeStamp, url, id, onClose, }: WavelengthAlertProps): react_jsx_runtime.JSX.Element;
|
|
362
|
-
declare namespace WavelengthAlert {
|
|
363
|
-
var displayName: string;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
interface WavelengthFooterProps {
|
|
367
|
-
text?: string;
|
|
368
|
-
textColor?: string;
|
|
369
|
-
}
|
|
370
|
-
declare function WavelengthFooter({ text, textColor }: WavelengthFooterProps): react_jsx_runtime.JSX.Element;
|
|
371
|
-
declare namespace WavelengthFooter {
|
|
372
|
-
var displayName: string;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/** Attributes passed through to the underlying `wavelength-button` */
|
|
376
|
-
interface WavelengthButtonAttributes extends React__default.HTMLAttributes<HTMLElement> {
|
|
377
|
-
[key: string]: any;
|
|
378
|
-
}
|
|
379
|
-
interface ButtonConfig {
|
|
1
|
+
import { ZodObject, ZodRawShape } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare class SampleComponent extends HTMLElement {
|
|
4
|
+
static get observedAttributes(): string[];
|
|
5
|
+
private shadow;
|
|
6
|
+
constructor();
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
attributeChangedCallback(): void;
|
|
9
|
+
updateComponent(): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class WavelengthBanner extends HTMLElement {
|
|
13
|
+
static get observedAttributes(): string[];
|
|
14
|
+
private container;
|
|
15
|
+
private textElement;
|
|
16
|
+
constructor();
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
attributeChangedCallback(): void;
|
|
19
|
+
private updateAttributes;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class WavelengthButton extends HTMLElement {
|
|
23
|
+
static get observedAttributes(): string[];
|
|
24
|
+
private button;
|
|
25
|
+
constructor();
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
attributeChangedCallback(): void;
|
|
28
|
+
updateButton(): void;
|
|
29
|
+
private applyPresetSize;
|
|
30
|
+
private handleHoverIn;
|
|
31
|
+
private handleHoverOut;
|
|
32
|
+
private hexToRgba;
|
|
33
|
+
private shadeColor;
|
|
34
|
+
private handleRipple;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type FormValue = Record<string, unknown>;
|
|
38
|
+
|
|
39
|
+
type Shape = ZodRawShape;
|
|
40
|
+
type ButtonConfig = {
|
|
380
41
|
label?: string;
|
|
381
|
-
buttonProps?:
|
|
42
|
+
buttonProps?: Record<string, any>;
|
|
382
43
|
eventName?: string;
|
|
383
|
-
}
|
|
384
|
-
/** Attributes passed through to each generated `wavelength-input` */
|
|
385
|
-
interface WavelengthInputAttributes extends React__default.HTMLAttributes<HTMLElement> {
|
|
386
|
-
[key: string]: any;
|
|
387
|
-
}
|
|
388
|
-
type FormDetail<T> = {
|
|
389
|
-
value: T;
|
|
390
|
-
issues: z.ZodIssue[];
|
|
391
44
|
};
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
interface menuItemProps {
|
|
553
|
-
itemType: "header" | "link" | "footer" | string;
|
|
554
|
-
label: string | number;
|
|
555
|
-
link?: string;
|
|
556
|
-
end?: boolean;
|
|
557
|
-
email?: string;
|
|
558
|
-
hoverColor?: string;
|
|
559
|
-
}
|
|
560
|
-
interface PopUPMenuProps {
|
|
561
|
-
menuItems: menuItemProps[];
|
|
562
|
-
customIcon?: React__default.ReactNode;
|
|
563
|
-
width?: string;
|
|
564
|
-
menuDirection?: "top" | "bottom";
|
|
565
|
-
color?: string;
|
|
566
|
-
border?: string;
|
|
567
|
-
id?: string;
|
|
568
|
-
}
|
|
569
|
-
declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection, color, id, border }: PopUPMenuProps): react_jsx_runtime.JSX.Element;
|
|
570
|
-
declare namespace WavelengthPopUpMenu {
|
|
571
|
-
var displayName: string;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
interface DropdownProps {
|
|
575
|
-
id?: string;
|
|
576
|
-
palette: "brewery" | "custom";
|
|
577
|
-
width: string;
|
|
578
|
-
options: menuOptions[];
|
|
579
|
-
buttonSx?: SxProps<Theme> | undefined;
|
|
580
|
-
menuSx?: MenuSxProps;
|
|
581
|
-
buttonText: string | ReactNode;
|
|
582
|
-
}
|
|
583
|
-
interface menuOptions {
|
|
584
|
-
option: React__default.ReactNode;
|
|
585
|
-
onClick?: React__default.MouseEventHandler<HTMLLIElement> | undefined;
|
|
586
|
-
}
|
|
587
|
-
interface MenuSxProps {
|
|
588
|
-
backgroundColor?: string;
|
|
589
|
-
borderColor?: string;
|
|
590
|
-
hoverColor?: string;
|
|
591
|
-
width?: string;
|
|
592
|
-
boxShadow?: string;
|
|
593
|
-
}
|
|
594
|
-
declare function WavelengthDropdown({ id, options, buttonSx, width, buttonText, menuSx, palette, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
595
|
-
declare namespace WavelengthDropdown {
|
|
596
|
-
var displayName: string;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
interface ConfirmationSnackbarProps {
|
|
600
|
-
show: boolean;
|
|
601
|
-
setShow: (show: boolean) => void;
|
|
602
|
-
closeIcon?: ReactNode | React__default.JSX.Element;
|
|
603
|
-
message?: ReactNode | React__default.JSX.Element;
|
|
604
|
-
snackBarColor?: string;
|
|
605
|
-
textColor?: string;
|
|
606
|
-
horryAlign?: "left" | "right" | "center";
|
|
607
|
-
vertyAlign?: "top" | "bottom";
|
|
608
|
-
durationSb?: number;
|
|
609
|
-
id?: string;
|
|
610
|
-
width?: string | number;
|
|
611
|
-
icon?: ReactNode;
|
|
612
|
-
}
|
|
613
|
-
declare function WavelengthSnackbar({ show, setShow, closeIcon, message, snackBarColor, textColor, horryAlign, vertyAlign, durationSb, width, icon, id }: ConfirmationSnackbarProps): react_jsx_runtime.JSX.Element;
|
|
614
|
-
declare namespace WavelengthSnackbar {
|
|
615
|
-
var displayName: string;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
interface StandardSnackbarProps {
|
|
619
|
-
type: "success" | "error" | "disabled";
|
|
620
|
-
show: boolean;
|
|
621
|
-
closeIcon: ReactNode | React__default.JSX.Element;
|
|
622
|
-
icon?: ReactNode;
|
|
623
|
-
toggleShow: (on: boolean) => void;
|
|
624
|
-
horryAlign?: "left" | "right" | "center";
|
|
625
|
-
vertyAlign?: "top" | "bottom";
|
|
626
|
-
durationSb?: number;
|
|
627
|
-
width?: string | number;
|
|
628
|
-
message?: string | ReactNode;
|
|
629
|
-
customVertyAlign?: string;
|
|
630
|
-
id?: string;
|
|
631
|
-
}
|
|
632
|
-
declare function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign, durationSb, width, message, customVertyAlign, toggleShow, closeIcon, id }: StandardSnackbarProps): react_jsx_runtime.JSX.Element;
|
|
633
|
-
declare namespace WavelengthStandardSnackbar {
|
|
634
|
-
var displayName: string;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
interface Testprops {
|
|
638
|
-
isPopUpOpen: boolean;
|
|
639
|
-
type: "success" | "error" | "disabled";
|
|
640
|
-
icon?: ReactNode;
|
|
641
|
-
width?: string | number;
|
|
642
|
-
message?: string | ReactNode;
|
|
643
|
-
img: React__default.JSX.Element | ReactNode;
|
|
644
|
-
toggleOpen: (value: React__default.SetStateAction<boolean>) => void;
|
|
645
|
-
customVertyAlign?: string;
|
|
646
|
-
}
|
|
647
|
-
declare const useOutsideClick: (callback: () => void) => React__default.RefObject<HTMLDivElement>;
|
|
648
|
-
declare function WavelengthTestSnackbar({ isPopUpOpen, toggleOpen, type, message, customVertyAlign, width, img }: Testprops): react_jsx_runtime.JSX.Element;
|
|
649
|
-
declare namespace WavelengthTestSnackbar {
|
|
650
|
-
var displayName: string;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
interface sliderProps {
|
|
654
|
-
width?: string;
|
|
655
|
-
labelColor?: string;
|
|
656
|
-
color?: string;
|
|
657
|
-
value: number;
|
|
658
|
-
valueDisplayed?: boolean;
|
|
659
|
-
minVal: number;
|
|
660
|
-
maxVal: number;
|
|
661
|
-
step: number;
|
|
662
|
-
handleChange: (event: Event, newValue: number | number[]) => void;
|
|
663
|
-
labelFunc?(val: number): string;
|
|
664
|
-
marks?: Mark[];
|
|
665
|
-
}
|
|
666
|
-
declare function WavelengthSlider({ width, color, valueDisplayed, marks, labelColor, value, maxVal, minVal, step, labelFunc, handleChange }: sliderProps): react_jsx_runtime.JSX.Element;
|
|
667
|
-
declare namespace WavelengthSlider {
|
|
668
|
-
var displayName: string;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
interface carouselItem$1 {
|
|
672
|
-
title?: string;
|
|
673
|
-
description?: string;
|
|
674
|
-
image: string;
|
|
675
|
-
path: string;
|
|
676
|
-
}
|
|
677
|
-
interface carouselConfigArray$1 {
|
|
678
|
-
items: carouselItem$1[];
|
|
679
|
-
}
|
|
680
|
-
interface adjustableDimensions {
|
|
681
|
-
buttonSize?: number;
|
|
682
|
-
imageHeight?: number;
|
|
683
|
-
imageWidth?: number;
|
|
684
|
-
cardWidth?: number;
|
|
685
|
-
cardHeight?: number;
|
|
686
|
-
}
|
|
687
|
-
declare const DefaultCarousel: React__default.FC<carouselConfigArray$1 & adjustableDimensions>;
|
|
688
|
-
|
|
689
|
-
interface carouselItem {
|
|
690
|
-
title?: string;
|
|
691
|
-
description?: string;
|
|
692
|
-
image: string;
|
|
693
|
-
path: string;
|
|
694
|
-
}
|
|
695
|
-
interface carouselConfigArray {
|
|
696
|
-
items: carouselItem[];
|
|
697
|
-
}
|
|
698
|
-
interface adjustDimenforCarousel {
|
|
699
|
-
contHeight?: number;
|
|
700
|
-
contWidth?: number;
|
|
701
|
-
cardWidth?: number;
|
|
702
|
-
cardHeight?: number;
|
|
703
|
-
}
|
|
704
|
-
declare const SliderCardCarousel: React__default.FC<carouselConfigArray & adjustDimenforCarousel>;
|
|
705
|
-
|
|
706
|
-
interface PaginationProps {
|
|
707
|
-
totalPages: number;
|
|
708
|
-
boundaryCount?: number;
|
|
709
|
-
siblingCount?: number;
|
|
710
|
-
currentPageNumber: number;
|
|
711
|
-
style?: "text" | "contained" | "outlined" | "circular";
|
|
712
|
-
onPageChange: (page: number) => void;
|
|
713
|
-
}
|
|
714
|
-
declare const range: (start: number, end: number) => number[];
|
|
715
|
-
declare function ascendingRange(start: number, end: number): number[];
|
|
716
|
-
declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
717
|
-
declare namespace DefaultPagination {
|
|
718
|
-
var displayName: string;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
interface WavelengthInputProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
722
|
-
id?: string;
|
|
723
|
-
name?: string;
|
|
724
|
-
value?: string;
|
|
725
|
-
clearable?: boolean;
|
|
726
|
-
placeholder?: string;
|
|
727
|
-
inputType?: string;
|
|
728
|
-
regex?: string;
|
|
729
|
-
helperMessage?: string;
|
|
730
|
-
errorMessage?: string;
|
|
731
|
-
minLengthMessage?: string;
|
|
732
|
-
maxLengthMessage?: string;
|
|
733
|
-
validationType?: "none" | "always" | "onBlur" | "manual";
|
|
734
|
-
minLength?: number;
|
|
735
|
-
maxLength?: number;
|
|
736
|
-
required?: boolean;
|
|
737
|
-
forceError?: boolean;
|
|
738
|
-
disabled?: boolean;
|
|
739
|
-
width?: string;
|
|
740
|
-
height?: string;
|
|
741
|
-
padding?: string;
|
|
742
|
-
borderRadius?: string;
|
|
743
|
-
backgroundColor?: string;
|
|
744
|
-
labelColor?: string;
|
|
745
|
-
placeholderColor?: string;
|
|
746
|
-
textColor?: string;
|
|
747
|
-
borderColor?: string;
|
|
748
|
-
focusColor?: string;
|
|
749
|
-
helperColor?: string;
|
|
750
|
-
label?: string;
|
|
751
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
752
|
-
}
|
|
753
|
-
declare const WavelengthInput: React__default.ForwardRefExoticComponent<WavelengthInputProps & React__default.RefAttributes<HTMLElement & {
|
|
754
|
-
validate?: () => boolean;
|
|
755
|
-
}>>;
|
|
756
|
-
|
|
757
|
-
interface DataType$2 {
|
|
758
|
-
id: number;
|
|
759
|
-
[key: string]: any;
|
|
760
|
-
}
|
|
761
|
-
interface ColumnProps$2<T> {
|
|
762
|
-
key: string;
|
|
763
|
-
title: string | ReactElement;
|
|
764
|
-
width?: string;
|
|
765
|
-
editable?: boolean;
|
|
766
|
-
render?: (column: ColumnProps$2<T>, item: T) => ReactElement;
|
|
767
|
-
}
|
|
768
|
-
type Props$2<T> = {
|
|
769
|
-
columns: Array<ColumnProps$2<T>>;
|
|
770
|
-
data?: T[] | undefined;
|
|
771
|
-
itemsPerPage: number;
|
|
772
|
-
totalPages: number;
|
|
773
|
-
};
|
|
774
|
-
declare const WavelengthDataTable: {
|
|
775
|
-
<T extends DataType$2>({ data, columns, itemsPerPage, totalPages }: Props$2<T>): react_jsx_runtime.JSX.Element;
|
|
776
|
-
displayName: string;
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
interface fileObject {
|
|
780
|
-
id: number;
|
|
781
|
-
[key: string]: any;
|
|
782
|
-
}
|
|
783
|
-
interface Details$1 {
|
|
784
|
-
relationId: number;
|
|
785
|
-
fileObjects: fileObject[];
|
|
786
|
-
}
|
|
787
|
-
interface DataType$1 {
|
|
788
|
-
id: number;
|
|
789
|
-
[key: string]: any;
|
|
790
|
-
Details?: Details$1;
|
|
791
|
-
}
|
|
792
|
-
interface ColumnProps$1 {
|
|
793
|
-
key: string;
|
|
794
|
-
title: string | ReactElement;
|
|
795
|
-
subDataTableColumn: boolean;
|
|
796
|
-
PrimaryBoldText?: boolean;
|
|
797
|
-
}
|
|
798
|
-
type Props$1<T> = {
|
|
799
|
-
columns: Array<ColumnProps$1>;
|
|
800
|
-
data?: T[] | undefined;
|
|
801
|
-
downloadArrowOnClick?: () => void | Promise<void>;
|
|
802
|
-
downloadMissionOnClick?: () => void | Promise<void>;
|
|
803
|
-
addFilesOnClick?: () => void | Promise<void>;
|
|
804
|
-
};
|
|
805
|
-
declare const ChildDataTable: {
|
|
806
|
-
<T extends DataType$1>({ data, columns, downloadArrowOnClick, downloadMissionOnClick, addFilesOnClick }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
807
|
-
displayName: string;
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
interface Details {
|
|
811
|
-
relationId: number;
|
|
812
|
-
[key: string]: any;
|
|
813
|
-
}
|
|
814
|
-
interface DataType {
|
|
815
|
-
id: number;
|
|
816
|
-
[key: string]: any;
|
|
817
|
-
Details?: Details;
|
|
818
|
-
}
|
|
819
|
-
interface ColumnProps<T> {
|
|
820
|
-
key: string;
|
|
821
|
-
title: string | ReactElement;
|
|
822
|
-
subDataTableColumn: boolean;
|
|
823
|
-
width?: string;
|
|
824
|
-
editable?: boolean;
|
|
825
|
-
render?: (column: ColumnProps<T>, item: T) => ReactElement;
|
|
826
|
-
}
|
|
827
|
-
type Props<T> = {
|
|
828
|
-
columns: Array<ColumnProps<T>>;
|
|
829
|
-
data?: T[] | undefined;
|
|
830
|
-
};
|
|
831
|
-
declare const NestedDataTable: {
|
|
832
|
-
<T extends DataType>({ data, columns }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
833
|
-
displayName: string;
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
interface AutocompleteProps {
|
|
837
|
-
data: string[];
|
|
838
|
-
floatLabel: string;
|
|
839
|
-
onDataChange?: (data: string) => void;
|
|
840
|
-
height?: string;
|
|
841
|
-
width?: string;
|
|
842
|
-
inputBorderStyle?: string;
|
|
843
|
-
inputFocusBorderColor?: string;
|
|
844
|
-
autoBackGroundColor?: string;
|
|
845
|
-
labelColor?: string;
|
|
846
|
-
focusedLabelColor?: string;
|
|
847
|
-
id?: string;
|
|
848
|
-
name?: string;
|
|
849
|
-
}
|
|
850
|
-
declare const WavelengthAutoComplete: {
|
|
851
|
-
({ floatLabel, data, height, width, inputBorderStyle, inputFocusBorderColor, onDataChange, autoBackGroundColor, labelColor, focusedLabelColor, id, name, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
852
|
-
displayName: string;
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
type timeVariant = "date" | "datetime-local" | "";
|
|
856
|
-
interface DateInputProps {
|
|
857
|
-
floatLabel: string;
|
|
858
|
-
OnDataChange?: (data: Date) => void;
|
|
859
|
-
height?: string;
|
|
860
|
-
width?: string;
|
|
861
|
-
min?: string;
|
|
862
|
-
max?: string;
|
|
863
|
-
inputTimeType: timeVariant;
|
|
864
|
-
labelColor?: string;
|
|
865
|
-
inputBorderStyle?: string;
|
|
866
|
-
inputFocusBorderColor?: string;
|
|
867
|
-
backgroundColor?: string;
|
|
868
|
-
FocusLabelColor?: string;
|
|
869
|
-
id?: string;
|
|
870
|
-
name?: string;
|
|
871
|
-
}
|
|
872
|
-
declare const WavelengthDatePicker: {
|
|
873
|
-
({ id, name, inputBorderStyle, floatLabel, labelColor, inputFocusBorderColor, FocusLabelColor, backgroundColor, height, width, min, max, inputTimeType, OnDataChange, }: DateInputProps): react_jsx_runtime.JSX.Element;
|
|
874
|
-
displayName: string;
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
interface SampleComponentProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
878
|
-
testProp?: string;
|
|
879
|
-
}
|
|
880
|
-
declare const SampleComponent: React__default.FC<SampleComponentProps>;
|
|
881
|
-
|
|
882
|
-
export { type ButtonConfig, ButtonIcon, ButtonMenu, ChildDataTable, DefaultCarousel, DefaultPagination, type FormChangeDetail, type FormDetail, type FormInvalidDetail, type FormValidDetail, NestedDataTable, SampleComponent, type SearchProps, type SearchResult, SliderCardCarousel, type StyledButtonPropsTwo, type ThemeProperties, WavelengthAccessAlert, WavelengthAlert, WavelengthAppLogo, WavelengthAppTheme, WavelengthAutoComplete, WavelengthAutocomplete, WavelengthBanner, type WavelengthBannerProps, WavelengthBox, WavelengthButton, type WavelengthButtonAttributes, type WavelengthButtonProps, WavelengthCommentDisplay, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDataTable, WavelengthDatePicker, WavelengthDefaultIcon, WavelengthDragAndDrop, WavelengthDropdown, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFileDownloader, WavelengthFooter, WavelengthForm, type WavelengthFormProps, type WavelengthFormRef, WavelengthInput, type WavelengthInputAttributes, WavelengthManyPlanes, WavelengthNotAvailablePage, WavelengthPermissionAlert, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthProgressBar, type WavelengthProgressBarProps, WavelengthSearch, WavelengthSearchTextField, WavelengthSideBar, WavelengthSlider, WavelengthSnackbar, WavelengthSpinningLogo, WavelengthSpinningOuterCircle, WavelengthStandardSnackbar, WavelengthStyledButton, WavelengthTestSnackbar, WavelengthTitleBar, add, ascendingRange, concat, findBestStringMatch, type menuItemProps, range, useOutsideClick, useThemeContext };
|
|
45
|
+
declare class WavelengthForm<T extends object> extends HTMLElement {
|
|
46
|
+
private _schema?;
|
|
47
|
+
private _validator?;
|
|
48
|
+
private _shadow;
|
|
49
|
+
private _fields;
|
|
50
|
+
private _value;
|
|
51
|
+
private _errors;
|
|
52
|
+
private _leftButton?;
|
|
53
|
+
private _centerButton?;
|
|
54
|
+
private _rightButton?;
|
|
55
|
+
private _inputProps;
|
|
56
|
+
private _idPrefix;
|
|
57
|
+
private _title;
|
|
58
|
+
private _titleAlign;
|
|
59
|
+
private _titleColor;
|
|
60
|
+
private _formWidth;
|
|
61
|
+
private _layout?;
|
|
62
|
+
static get observedAttributes(): string[];
|
|
63
|
+
constructor();
|
|
64
|
+
/**
|
|
65
|
+
* Assign a Zod object schema to render. (required)
|
|
66
|
+
*/
|
|
67
|
+
set schema(s: ZodObject<Shape> | undefined);
|
|
68
|
+
get schema(): ZodObject<Shape> | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Optional initial values. You can also set individual values
|
|
71
|
+
* by dispatching inputChange from your inputs after mount.
|
|
72
|
+
*/
|
|
73
|
+
set value(v: FormValue | undefined);
|
|
74
|
+
get value(): FormValue;
|
|
75
|
+
set leftButton(v: ButtonConfig | undefined);
|
|
76
|
+
get leftButton(): ButtonConfig | undefined;
|
|
77
|
+
set centerButton(v: ButtonConfig | undefined);
|
|
78
|
+
get centerButton(): ButtonConfig | undefined;
|
|
79
|
+
set rightButton(v: ButtonConfig | undefined);
|
|
80
|
+
get rightButton(): ButtonConfig | undefined;
|
|
81
|
+
set inputProps(v: Record<string, any> | undefined);
|
|
82
|
+
get inputProps(): Record<string, any> | undefined;
|
|
83
|
+
set idPrefix(v: string | undefined);
|
|
84
|
+
get idPrefix(): string | undefined;
|
|
85
|
+
/** Heading text displayed above the form */
|
|
86
|
+
set title(v: string);
|
|
87
|
+
get title(): string;
|
|
88
|
+
/** CSS text-align value applied to the heading */
|
|
89
|
+
set titleAlign(v: string | undefined);
|
|
90
|
+
get titleAlign(): string;
|
|
91
|
+
/** Color applied to the heading text */
|
|
92
|
+
set titleColor(v: string | undefined);
|
|
93
|
+
get titleColor(): string | undefined;
|
|
94
|
+
/** Width applied to the form element */
|
|
95
|
+
set formWidth(v: string | undefined);
|
|
96
|
+
get formWidth(): string;
|
|
97
|
+
/** Array describing how many fields appear in each row */
|
|
98
|
+
set layout(v: number[] | undefined);
|
|
99
|
+
get layout(): number[] | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Imperative validation without submitting.
|
|
102
|
+
* Returns true if the current form values are valid.
|
|
103
|
+
*/
|
|
104
|
+
validate(): boolean;
|
|
105
|
+
connectedCallback(): void;
|
|
106
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
107
|
+
private collectValues;
|
|
108
|
+
private queryFieldEl;
|
|
109
|
+
private setFieldError;
|
|
110
|
+
private validateField;
|
|
111
|
+
private validateAll;
|
|
112
|
+
private onInputChange;
|
|
113
|
+
private onBlur;
|
|
114
|
+
private onSubmit;
|
|
115
|
+
private render;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class WavelengthProgressBar extends HTMLElement {
|
|
119
|
+
static get observedAttributes(): string[];
|
|
120
|
+
private container;
|
|
121
|
+
private nameSpan;
|
|
122
|
+
private statusSpan;
|
|
123
|
+
private progressBar;
|
|
124
|
+
private progressFill;
|
|
125
|
+
constructor();
|
|
126
|
+
connectedCallback(): void;
|
|
127
|
+
attributeChangedCallback(): void;
|
|
128
|
+
private updateRendering;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class WavelengthInput extends HTMLElement {
|
|
132
|
+
private inputEl;
|
|
133
|
+
private labelEl;
|
|
134
|
+
private helperEl;
|
|
135
|
+
private clearButtonEl;
|
|
136
|
+
private placeholderStyleEl;
|
|
137
|
+
private isFocused;
|
|
138
|
+
private hasBlurred;
|
|
139
|
+
private validationType;
|
|
140
|
+
private forceError;
|
|
141
|
+
private _bgObserver;
|
|
142
|
+
private _debounceValidate;
|
|
143
|
+
private _debounceTimeout;
|
|
144
|
+
private _lastErrorMessage;
|
|
145
|
+
private internals;
|
|
146
|
+
static formAssociated: boolean;
|
|
147
|
+
static get observedAttributes(): string[];
|
|
148
|
+
constructor();
|
|
149
|
+
connectedCallback(): void;
|
|
150
|
+
disconnectedCallback(): void;
|
|
151
|
+
private _startBackgroundObserver;
|
|
152
|
+
private _stopBackgroundObserver;
|
|
153
|
+
private _setupDebouncedValidation;
|
|
154
|
+
private _onInput;
|
|
155
|
+
private _onFocus;
|
|
156
|
+
private _onBlur;
|
|
157
|
+
private _validate;
|
|
158
|
+
private _showError;
|
|
159
|
+
private _clearError;
|
|
160
|
+
private _applyAttributes;
|
|
161
|
+
private _updateRequiredMarker;
|
|
162
|
+
private _onClearClick;
|
|
163
|
+
private _toggleClearButton;
|
|
164
|
+
private _applyContent;
|
|
165
|
+
private _applyLayout;
|
|
166
|
+
private _applyColors;
|
|
167
|
+
private _applyValidationHint;
|
|
168
|
+
private _applyAccessibility;
|
|
169
|
+
private _upgradeProperty;
|
|
170
|
+
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
|
|
171
|
+
get id(): string;
|
|
172
|
+
set id(val: string);
|
|
173
|
+
get name(): string;
|
|
174
|
+
set name(val: string);
|
|
175
|
+
get value(): string;
|
|
176
|
+
set value(val: string);
|
|
177
|
+
get placeholder(): string;
|
|
178
|
+
set placeholder(val: string);
|
|
179
|
+
get required(): boolean;
|
|
180
|
+
set required(val: boolean);
|
|
181
|
+
get disabled(): boolean;
|
|
182
|
+
set disabled(val: boolean);
|
|
183
|
+
get clearable(): boolean;
|
|
184
|
+
set clearable(val: boolean);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare class WavelengthTitleBar extends HTMLElement {
|
|
188
|
+
constructor();
|
|
189
|
+
connectedCallback(): void;
|
|
190
|
+
static get observedAttributes(): string[];
|
|
191
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
declare class WavelengthDatePicker extends HTMLElement {
|
|
195
|
+
private inputDatePicker;
|
|
196
|
+
constructor();
|
|
197
|
+
connectedCallback(): void;
|
|
198
|
+
attributeChangedCallback(): void;
|
|
199
|
+
updateInput(): void;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export { SampleComponent, WavelengthBanner, WavelengthButton, WavelengthDatePicker, WavelengthForm, WavelengthInput, WavelengthProgressBar, WavelengthTitleBar };
|