@reliability-design/web 1.0.3 → 1.1.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/components/rel-accordion/README.md +132 -0
- package/dist/components/rel-accordion/rel-accordion.ts +47 -16
- package/dist/components/rel-alert/README.md +141 -0
- package/dist/components/rel-alert/rel-alert.ts +101 -20
- package/dist/components/rel-avatar/README.md +119 -0
- package/dist/components/rel-avatar/rel-avatar.ts +3 -2
- package/dist/components/rel-badge/README.md +86 -0
- package/dist/components/rel-badge/rel-badge.ts +11 -7
- package/dist/components/rel-breadcrumb/README.md +102 -0
- package/dist/components/rel-breadcrumb/rel-breadcrumb.ts +12 -6
- package/dist/components/rel-button/README.md +130 -0
- package/dist/components/rel-button/rel-button.ts +64 -8
- package/dist/components/rel-calendar/README.md +109 -0
- package/dist/components/rel-calendar/index.ts +1 -0
- package/dist/components/rel-calendar/rel-calendar.ts +467 -0
- package/dist/components/rel-card/README.md +94 -0
- package/dist/components/rel-card/rel-card.ts +12 -3
- package/dist/components/rel-cardmedia/README.md +127 -0
- package/dist/components/rel-cardmedia/rel-cardmedia.ts +14 -4
- package/dist/components/rel-carousel/README.md +166 -0
- package/dist/components/rel-carousel/index.ts +1 -0
- package/dist/components/rel-carousel/rel-carousel.ts +468 -0
- package/dist/components/rel-chart/README.md +286 -0
- package/dist/components/rel-chart/index.ts +1 -0
- package/dist/components/rel-chart/rel-chart.ts +736 -0
- package/dist/components/rel-checkbox/README.md +77 -0
- package/dist/components/rel-checkbox/rel-checkbox.ts +51 -12
- package/dist/components/rel-chip/README.md +114 -0
- package/dist/components/rel-chip/rel-chip.ts +83 -9
- package/dist/components/rel-container/README.md +99 -0
- package/dist/components/rel-date-picker/README.md +253 -0
- package/dist/components/rel-date-picker/index.ts +1 -0
- package/dist/components/rel-date-picker/rel-date-picker.ts +916 -0
- package/dist/components/rel-divider/README.md +100 -0
- package/dist/components/rel-divider/rel-divider.ts +9 -0
- package/dist/components/rel-drawer/README.md +200 -0
- package/dist/components/rel-drawer/index.ts +1 -0
- package/dist/components/rel-drawer/rel-drawer-footer.ts +29 -0
- package/dist/components/rel-drawer/rel-drawer.ts +612 -0
- package/dist/components/rel-kbd/README.md +151 -0
- package/dist/components/rel-kbd/rel-kbd.ts +118 -0
- package/dist/components/rel-layout/README.md +88 -0
- package/dist/components/rel-menu/README.md +151 -0
- package/dist/components/rel-menu/rel-menu.ts +64 -24
- package/dist/components/rel-menubar/README.md +329 -0
- package/dist/components/rel-menubar/index.ts +2 -0
- package/dist/components/rel-menubar/rel-menubar-menu.ts +16 -0
- package/dist/components/rel-menubar/rel-menubar.ts +605 -0
- package/dist/components/rel-nav-menu/README.md +289 -0
- package/dist/components/rel-nav-menu/index.ts +3 -0
- package/dist/components/rel-nav-menu/rel-nav-menu-item.ts +240 -0
- package/dist/components/rel-nav-menu/rel-nav-menu-panel.ts +53 -0
- package/dist/components/rel-nav-menu/rel-nav-menu.ts +227 -0
- package/dist/components/rel-navbar/README.md +126 -0
- package/dist/components/rel-navbar/rel-navbar.ts +104 -0
- package/dist/components/rel-otp/README.md +440 -0
- package/dist/components/rel-otp/index.ts +1 -0
- package/dist/components/rel-otp/rel-otp.ts +504 -0
- package/dist/components/rel-pagination/README.md +410 -0
- package/dist/components/rel-pagination/index.ts +1 -0
- package/dist/components/rel-pagination/rel-pagination.ts +381 -0
- package/dist/components/rel-popover/README.md +568 -0
- package/dist/components/rel-popover/index.ts +2 -0
- package/dist/components/rel-popover/rel-popover-content.ts +55 -0
- package/dist/components/rel-popover/rel-popover.ts +330 -0
- package/dist/components/rel-progress/README.md +110 -0
- package/dist/components/rel-progress/rel-progress.ts +32 -5
- package/dist/components/rel-radio/README.md +120 -0
- package/dist/components/rel-radio/rel-radio.ts +31 -6
- package/dist/components/rel-resizable/README.md +140 -0
- package/dist/components/rel-resizable/index.ts +3 -0
- package/dist/components/rel-resizable/rel-resizable-group.ts +374 -0
- package/dist/components/rel-resizable/rel-resizable-handle.ts +145 -0
- package/dist/components/rel-resizable/rel-resizable-panel.ts +47 -0
- package/dist/components/rel-segmented-button/README.md +141 -0
- package/dist/components/rel-segmented-button/rel-segmented-button.ts +18 -13
- package/dist/components/rel-select/README.md +107 -0
- package/dist/components/rel-select/rel-select.ts +28 -14
- package/dist/components/rel-sheet/README.md +224 -0
- package/dist/components/rel-sheet/rel-sheet.ts +684 -0
- package/dist/components/rel-sidebar/README.md +209 -0
- package/dist/components/rel-sidebar/rel-sidebar.ts +1166 -0
- package/dist/components/rel-slider/README.md +135 -0
- package/dist/components/rel-slider/rel-slider.ts +44 -9
- package/dist/components/rel-snackbar/README.md +134 -0
- package/dist/components/rel-snackbar/rel-snackbar.ts +109 -14
- package/dist/components/rel-stepper/README.md +160 -0
- package/dist/components/rel-stepper/rel-stepper.ts +38 -27
- package/dist/components/rel-switch/README.md +102 -0
- package/dist/components/rel-switch/rel-switch.ts +34 -12
- package/dist/components/rel-tab/README.md +163 -0
- package/dist/components/rel-tab/rel-tab.ts +79 -23
- package/dist/components/rel-table/README.md +178 -0
- package/dist/components/rel-table/rel-table-body.ts +21 -0
- package/dist/components/rel-table/rel-table-caption.ts +27 -0
- package/dist/components/rel-table/rel-table-cell.ts +42 -0
- package/dist/components/rel-table/rel-table-footer.ts +23 -0
- package/dist/components/rel-table/rel-table-head.ts +45 -0
- package/dist/components/rel-table/rel-table-header.ts +21 -0
- package/dist/components/rel-table/rel-table-row.ts +36 -0
- package/dist/components/rel-table/rel-table.ts +53 -0
- package/dist/components/rel-textfield/README.md +90 -0
- package/dist/components/rel-textfield/rel-textfield.ts +55 -39
- package/dist/components/rel-toast/README.md +148 -0
- package/dist/components/rel-toast/rel-toast.ts +63 -24
- package/dist/components/rel-tooltip/README.md +103 -0
- package/dist/components/rel-tooltip/rel-tooltip.ts +123 -80
- package/dist/components/rel-topbar/rel-topbar-actions.ts +23 -0
- package/dist/components/rel-topbar/rel-topbar-brand.ts +46 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown-item.ts +33 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown.ts +28 -0
- package/dist/components/rel-topbar/rel-topbar-item.ts +315 -0
- package/dist/components/rel-topbar/rel-topbar-mobile-panel.ts +23 -0
- package/dist/components/rel-topbar/rel-topbar-profile.ts +248 -0
- package/dist/components/rel-topbar/rel-topbar-utilities.ts +23 -0
- package/dist/components/rel-topbar/rel-topbar.ts +329 -0
- package/dist/index.d.mts +831 -7
- package/dist/index.d.ts +831 -7
- package/dist/index.js +9500 -1564
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9240 -1344
- package/dist/index.mjs.map +1 -1
- package/dist/styles/vars.css +187 -25
- package/dist/vars-TBB4BMSD.css +346 -0
- package/package.json +2 -1
- package/dist/vars-6ZIUPIU4.css +0 -184
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
+
export * from '@reliability-design/icons';
|
|
4
5
|
|
|
5
6
|
declare class RelAccordion extends LitElement {
|
|
6
7
|
title: string;
|
|
@@ -37,6 +38,8 @@ declare class RelAvatar extends LitElement {
|
|
|
37
38
|
|
|
38
39
|
declare class RelBadge extends LitElement {
|
|
39
40
|
number: string;
|
|
41
|
+
ariaLabel: string;
|
|
42
|
+
suffix: string;
|
|
40
43
|
size: "sm" | "md" | "lg";
|
|
41
44
|
variant: "dot" | "number";
|
|
42
45
|
static styles: lit.CSSResult;
|
|
@@ -60,17 +63,90 @@ declare class RelButton extends LitElement {
|
|
|
60
63
|
size: "small" | "medium" | "large";
|
|
61
64
|
border: "corner-radius" | "small-corner-radius" | "no-corner-radius";
|
|
62
65
|
disabled: boolean;
|
|
66
|
+
ariaLabel: string | null;
|
|
63
67
|
static styles: lit.CSSResult;
|
|
64
68
|
private get classes();
|
|
65
69
|
private handleClick;
|
|
66
70
|
render(): lit_html.TemplateResult<1>;
|
|
67
71
|
}
|
|
68
72
|
|
|
73
|
+
declare class RelCalendar extends LitElement {
|
|
74
|
+
value: string | null;
|
|
75
|
+
min: string | null;
|
|
76
|
+
max: string | null;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
weekStart: "sun" | "mon";
|
|
79
|
+
locale: string;
|
|
80
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
81
|
+
private viewYear;
|
|
82
|
+
private viewMonth;
|
|
83
|
+
private focusedDate;
|
|
84
|
+
static styles: lit.CSSResult;
|
|
85
|
+
connectedCallback(): void;
|
|
86
|
+
updated(changedProperties: Map<string, any>): void;
|
|
87
|
+
private parseISODate;
|
|
88
|
+
private formatISODate;
|
|
89
|
+
private isSameDay;
|
|
90
|
+
private isDateDisabledInternal;
|
|
91
|
+
private getCalendarDays;
|
|
92
|
+
private getWeekdayLabels;
|
|
93
|
+
private getMonthName;
|
|
94
|
+
private previousMonth;
|
|
95
|
+
private nextMonth;
|
|
96
|
+
private selectDay;
|
|
97
|
+
private handleKeyDown;
|
|
98
|
+
render(): lit_html.TemplateResult<1>;
|
|
99
|
+
}
|
|
100
|
+
|
|
69
101
|
declare class RelCard extends LitElement {
|
|
70
102
|
static styles: lit.CSSResult;
|
|
71
103
|
render(): lit_html.TemplateResult<1>;
|
|
72
104
|
}
|
|
73
105
|
|
|
106
|
+
declare class RelCarousel extends LitElement {
|
|
107
|
+
value: number;
|
|
108
|
+
loop: boolean;
|
|
109
|
+
autoplay: boolean;
|
|
110
|
+
interval: number;
|
|
111
|
+
pauseOnHover: boolean;
|
|
112
|
+
showButtons: boolean;
|
|
113
|
+
showDots: boolean;
|
|
114
|
+
orientation: "horizontal" | "vertical";
|
|
115
|
+
label: string;
|
|
116
|
+
gap?: number;
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
private slideCount;
|
|
119
|
+
private isDragging;
|
|
120
|
+
private dragStartX;
|
|
121
|
+
private currentTranslate;
|
|
122
|
+
private prevTranslate;
|
|
123
|
+
private viewport?;
|
|
124
|
+
private track?;
|
|
125
|
+
private slotElement?;
|
|
126
|
+
private autoplayTimer?;
|
|
127
|
+
private animationId?;
|
|
128
|
+
private prefersReducedMotion;
|
|
129
|
+
static styles: lit.CSSResult;
|
|
130
|
+
connectedCallback(): void;
|
|
131
|
+
disconnectedCallback(): void;
|
|
132
|
+
private handleSlotChange;
|
|
133
|
+
private updateTransform;
|
|
134
|
+
private goToPrevious;
|
|
135
|
+
private goToNext;
|
|
136
|
+
private goToSlide;
|
|
137
|
+
private emitChange;
|
|
138
|
+
private startAutoplay;
|
|
139
|
+
private stopAutoplay;
|
|
140
|
+
private handlePointerDown;
|
|
141
|
+
private handlePointerMove;
|
|
142
|
+
private handlePointerUp;
|
|
143
|
+
private handleKeyDown;
|
|
144
|
+
private handleMouseEnter;
|
|
145
|
+
private handleMouseLeave;
|
|
146
|
+
updated(changedProperties: Map<string, any>): void;
|
|
147
|
+
render(): lit_html.TemplateResult<1>;
|
|
148
|
+
}
|
|
149
|
+
|
|
74
150
|
declare class RelCardMedia extends LitElement {
|
|
75
151
|
imageSrc: string;
|
|
76
152
|
imageAlt: string;
|
|
@@ -87,8 +163,69 @@ declare class RelCheckbox extends LitElement {
|
|
|
87
163
|
supportingtext: string;
|
|
88
164
|
state: CheckboxState;
|
|
89
165
|
status: CheckboxStatus;
|
|
166
|
+
value: string;
|
|
167
|
+
get checked(): boolean;
|
|
168
|
+
set checked(val: boolean);
|
|
169
|
+
private _onChange;
|
|
170
|
+
private _onTouched;
|
|
90
171
|
static styles: lit.CSSResult;
|
|
91
172
|
private toggle;
|
|
173
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
174
|
+
registerOnTouched(fn: () => void): void;
|
|
175
|
+
writeValue(checked: boolean): void;
|
|
176
|
+
render(): lit_html.TemplateResult<1>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare class RelDatePicker extends LitElement {
|
|
180
|
+
value: string | null;
|
|
181
|
+
placeholder: string;
|
|
182
|
+
label: string | null;
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
required: boolean;
|
|
185
|
+
min: string | null;
|
|
186
|
+
max: string | null;
|
|
187
|
+
weekStart: "sun" | "mon";
|
|
188
|
+
locale: string;
|
|
189
|
+
open: boolean;
|
|
190
|
+
closeOnSelect: boolean;
|
|
191
|
+
clearable: boolean;
|
|
192
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
193
|
+
private viewYear;
|
|
194
|
+
private viewMonth;
|
|
195
|
+
private focusedDate;
|
|
196
|
+
private yearDropdownOpen;
|
|
197
|
+
private monthDropdownOpen;
|
|
198
|
+
private triggerButton?;
|
|
199
|
+
private popoverElement?;
|
|
200
|
+
private calendarGrid?;
|
|
201
|
+
static styles: lit.CSSResult;
|
|
202
|
+
connectedCallback(): void;
|
|
203
|
+
disconnectedCallback(): void;
|
|
204
|
+
private handleClickOutside;
|
|
205
|
+
private handleEscapeKey;
|
|
206
|
+
updated(changedProperties: Map<string, any>): void;
|
|
207
|
+
private parseISODate;
|
|
208
|
+
private formatISODate;
|
|
209
|
+
private formatDisplayDate;
|
|
210
|
+
private isSameDay;
|
|
211
|
+
private isDateDisabledInternal;
|
|
212
|
+
private getCalendarDays;
|
|
213
|
+
private getWeekdayLabels;
|
|
214
|
+
private getMonthName;
|
|
215
|
+
private getMonthsList;
|
|
216
|
+
private getYearsList;
|
|
217
|
+
private toggleCalendarPopover;
|
|
218
|
+
private closeCalendarPopover;
|
|
219
|
+
private previousMonth;
|
|
220
|
+
private nextMonth;
|
|
221
|
+
private selectDay;
|
|
222
|
+
private clearValue;
|
|
223
|
+
private handleTriggerKeydown;
|
|
224
|
+
private handleDayKeydown;
|
|
225
|
+
private toggleMonthDropdown;
|
|
226
|
+
private toggleYearDropdown;
|
|
227
|
+
private selectMonth;
|
|
228
|
+
private selectYear;
|
|
92
229
|
render(): lit_html.TemplateResult<1>;
|
|
93
230
|
}
|
|
94
231
|
|
|
@@ -121,6 +258,82 @@ declare class RelContainer extends LitElement {
|
|
|
121
258
|
declare class RelDivider extends LitElement {
|
|
122
259
|
orientation: "horizontal" | "vertical";
|
|
123
260
|
static styles: lit.CSSResult;
|
|
261
|
+
connectedCallback(): void;
|
|
262
|
+
updated(): void;
|
|
263
|
+
render(): lit_html.TemplateResult<1>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
declare class RelDrawerFooter extends LitElement {
|
|
267
|
+
static styles: lit.CSSResult;
|
|
268
|
+
render(): lit_html.TemplateResult<1>;
|
|
269
|
+
}
|
|
270
|
+
declare global {
|
|
271
|
+
interface HTMLElementTagNameMap {
|
|
272
|
+
"rel-drawer-footer": RelDrawerFooter;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
type DrawerSide = "bottom" | "left" | "right" | "top";
|
|
277
|
+
type DrawerCloseReason = "backdrop" | "escape" | "drag" | "programmatic";
|
|
278
|
+
declare class RelDrawer extends LitElement {
|
|
279
|
+
open: boolean;
|
|
280
|
+
side: DrawerSide;
|
|
281
|
+
dismissible: boolean;
|
|
282
|
+
modal: boolean;
|
|
283
|
+
closeOnBackdrop: boolean;
|
|
284
|
+
closeOnEscape: boolean;
|
|
285
|
+
showHandle: boolean;
|
|
286
|
+
draggable: boolean;
|
|
287
|
+
snapThreshold: number;
|
|
288
|
+
maxHeight: string;
|
|
289
|
+
width: string;
|
|
290
|
+
disabled: boolean;
|
|
291
|
+
title: string;
|
|
292
|
+
description: string;
|
|
293
|
+
private isDragging;
|
|
294
|
+
private dragOffset;
|
|
295
|
+
private panelElement;
|
|
296
|
+
private overlayElement;
|
|
297
|
+
private previousFocus;
|
|
298
|
+
private startY;
|
|
299
|
+
private currentY;
|
|
300
|
+
private originalBodyOverflow;
|
|
301
|
+
private originalBodyPaddingRight;
|
|
302
|
+
static styles: lit.CSSResult;
|
|
303
|
+
connectedCallback(): void;
|
|
304
|
+
disconnectedCallback(): void;
|
|
305
|
+
updated(changed: Map<string, any>): void;
|
|
306
|
+
private handleOpen;
|
|
307
|
+
private handleClose;
|
|
308
|
+
private lockScroll;
|
|
309
|
+
private unlockScroll;
|
|
310
|
+
private focusPanel;
|
|
311
|
+
private getFocusableElements;
|
|
312
|
+
private handleKeydown;
|
|
313
|
+
private handleOverlayClick;
|
|
314
|
+
private handleCloseButtonClick;
|
|
315
|
+
private close;
|
|
316
|
+
private handlePointerDown;
|
|
317
|
+
private handlePointerMove;
|
|
318
|
+
private handlePointerUp;
|
|
319
|
+
private getPanelStyle;
|
|
320
|
+
private getOverlayStyle;
|
|
321
|
+
private hasSlotContent;
|
|
322
|
+
render(): lit_html.TemplateResult<1>;
|
|
323
|
+
}
|
|
324
|
+
declare global {
|
|
325
|
+
interface HTMLElementTagNameMap {
|
|
326
|
+
"rel-drawer": RelDrawer;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare class RelKbd extends LitElement {
|
|
331
|
+
size: "sm" | "md" | "lg";
|
|
332
|
+
variant: "default" | "muted";
|
|
333
|
+
pill: boolean;
|
|
334
|
+
inset: boolean;
|
|
335
|
+
static styles: lit.CSSResult;
|
|
336
|
+
private get classes();
|
|
124
337
|
render(): lit_html.TemplateResult<1>;
|
|
125
338
|
}
|
|
126
339
|
|
|
@@ -141,11 +354,21 @@ interface MenuItem {
|
|
|
141
354
|
submenu?: MenuItem[];
|
|
142
355
|
open?: boolean;
|
|
143
356
|
}
|
|
357
|
+
declare class RelMenuItem extends LitElement {
|
|
358
|
+
label: string;
|
|
359
|
+
value: string;
|
|
360
|
+
disabled: boolean;
|
|
361
|
+
icon: string;
|
|
362
|
+
render(): lit_html.TemplateResult<1>;
|
|
363
|
+
}
|
|
144
364
|
declare class RelMenu extends LitElement {
|
|
145
365
|
type: MenuType;
|
|
146
366
|
items: MenuItem[];
|
|
147
367
|
private focusedIndex;
|
|
368
|
+
private _menuItems;
|
|
148
369
|
static styles: lit.CSSResult;
|
|
370
|
+
private _onSlotChange;
|
|
371
|
+
private get _effectiveItems();
|
|
149
372
|
connectedCallback(): void;
|
|
150
373
|
disconnectedCallback(): void;
|
|
151
374
|
private handleDocumentClick;
|
|
@@ -159,6 +382,422 @@ declare class RelMenu extends LitElement {
|
|
|
159
382
|
render(): lit_html.TemplateResult<1>;
|
|
160
383
|
}
|
|
161
384
|
|
|
385
|
+
declare class RelMenubar extends LitElement {
|
|
386
|
+
private menus;
|
|
387
|
+
private openMenuIndex;
|
|
388
|
+
private focusedTriggerIndex;
|
|
389
|
+
private focusedItemIndex;
|
|
390
|
+
private openSubmenuElement;
|
|
391
|
+
private container;
|
|
392
|
+
private hoverSwitchEnabled;
|
|
393
|
+
static styles: lit.CSSResult;
|
|
394
|
+
connectedCallback(): void;
|
|
395
|
+
disconnectedCallback(): void;
|
|
396
|
+
private discoverMenus;
|
|
397
|
+
private handleOutsideClick;
|
|
398
|
+
private closeAllMenus;
|
|
399
|
+
private openMenu;
|
|
400
|
+
private handleTriggerClick;
|
|
401
|
+
private handleTriggerMouseEnter;
|
|
402
|
+
private handleTriggerKeyDown;
|
|
403
|
+
private focusTrigger;
|
|
404
|
+
private handlePanelKeyDown;
|
|
405
|
+
private getFocusableItems;
|
|
406
|
+
private focusMenuItem;
|
|
407
|
+
private handleItemClick;
|
|
408
|
+
private openSubmenu;
|
|
409
|
+
private handleSubmenuItemClick;
|
|
410
|
+
private dispatchChangeEvent;
|
|
411
|
+
private renderMenuItem;
|
|
412
|
+
private renderSubmenu;
|
|
413
|
+
private renderMenuPanel;
|
|
414
|
+
render(): lit_html.TemplateResult<1>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class RelMenubarMenu extends LitElement {
|
|
418
|
+
label: string;
|
|
419
|
+
createRenderRoot(): this;
|
|
420
|
+
render(): lit_html.TemplateResult<1>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
type DensityType$1 = "comfortable" | "compact";
|
|
424
|
+
declare class RelNavMenu extends LitElement {
|
|
425
|
+
open: string;
|
|
426
|
+
disabled: boolean;
|
|
427
|
+
density: DensityType$1;
|
|
428
|
+
private items;
|
|
429
|
+
private focusedIndex;
|
|
430
|
+
private hoverSwitchEnabled;
|
|
431
|
+
private container;
|
|
432
|
+
static styles: lit.CSSResult;
|
|
433
|
+
connectedCallback(): void;
|
|
434
|
+
disconnectedCallback(): void;
|
|
435
|
+
private discoverItems;
|
|
436
|
+
private handleSlotChange;
|
|
437
|
+
private handleOutsideClick;
|
|
438
|
+
private handleNavItemClick;
|
|
439
|
+
private handleNavItemHover;
|
|
440
|
+
private openPanel;
|
|
441
|
+
private closePanel;
|
|
442
|
+
private handleKeyDown;
|
|
443
|
+
private focusItem;
|
|
444
|
+
render(): lit_html.TemplateResult<1>;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
declare class RelNavMenuItem extends LitElement {
|
|
448
|
+
label: string;
|
|
449
|
+
href: string;
|
|
450
|
+
itemId: string;
|
|
451
|
+
disabled: boolean;
|
|
452
|
+
icon: string;
|
|
453
|
+
/** Promoted from @state so rel-nav-menu can read it as a property. */
|
|
454
|
+
hasContent: boolean;
|
|
455
|
+
/** Set by rel-nav-menu to open/close this item's panel. */
|
|
456
|
+
open: boolean;
|
|
457
|
+
static styles: lit.CSSResult;
|
|
458
|
+
connectedCallback(): void;
|
|
459
|
+
firstUpdated(): void;
|
|
460
|
+
updated(changed: Map<string, any>): void;
|
|
461
|
+
private updateHasContent;
|
|
462
|
+
private handleSlotChange;
|
|
463
|
+
private positionPanel;
|
|
464
|
+
private handleTriggerClick;
|
|
465
|
+
private handleTriggerMouseEnter;
|
|
466
|
+
get triggerId(): string;
|
|
467
|
+
get panelId(): string;
|
|
468
|
+
render(): lit_html.TemplateResult<1>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare class RelNavMenuPanel extends LitElement {
|
|
472
|
+
static styles: lit.CSSResult;
|
|
473
|
+
render(): lit_html.TemplateResult<1>;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @deprecated rel-navbar is deprecated and will be removed in a future release.
|
|
478
|
+
* Use rel-topbar and its sub-components instead:
|
|
479
|
+
* rel-topbar, rel-topbar-brand, rel-topbar-actions, rel-topbar-utilities,
|
|
480
|
+
* rel-topbar-item, rel-topbar-dropdown, rel-topbar-dropdown-item
|
|
481
|
+
*/
|
|
482
|
+
declare class RelNavbar extends LitElement {
|
|
483
|
+
constructor();
|
|
484
|
+
sticky: boolean;
|
|
485
|
+
device: "desktop" | "tablet" | "mobile";
|
|
486
|
+
static styles: lit.CSSResult;
|
|
487
|
+
render(): lit_html.TemplateResult<1>;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
declare class RelTopbarBrand extends LitElement {
|
|
491
|
+
src: string;
|
|
492
|
+
href: string;
|
|
493
|
+
label: string;
|
|
494
|
+
static styles: lit.CSSResult;
|
|
495
|
+
render(): lit_html.TemplateResult<1>;
|
|
496
|
+
}
|
|
497
|
+
declare global {
|
|
498
|
+
interface HTMLElementTagNameMap {
|
|
499
|
+
"rel-topbar-brand": RelTopbarBrand;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare class RelTopbarActions extends LitElement {
|
|
504
|
+
static styles: lit.CSSResult;
|
|
505
|
+
render(): lit_html.TemplateResult<1>;
|
|
506
|
+
}
|
|
507
|
+
declare global {
|
|
508
|
+
interface HTMLElementTagNameMap {
|
|
509
|
+
"rel-topbar-actions": RelTopbarActions;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare class RelTopbarUtilities extends LitElement {
|
|
514
|
+
static styles: lit.CSSResult;
|
|
515
|
+
render(): lit_html.TemplateResult<1>;
|
|
516
|
+
}
|
|
517
|
+
declare global {
|
|
518
|
+
interface HTMLElementTagNameMap {
|
|
519
|
+
"rel-topbar-utilities": RelTopbarUtilities;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
declare class RelTopbarMobilePanel extends LitElement {
|
|
524
|
+
static styles: lit.CSSResult;
|
|
525
|
+
render(): lit_html.TemplateResult<1>;
|
|
526
|
+
}
|
|
527
|
+
declare global {
|
|
528
|
+
interface HTMLElementTagNameMap {
|
|
529
|
+
"rel-topbar-mobile-panel": RelTopbarMobilePanel;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
type TopbarVariant = "customer" | "carrier";
|
|
534
|
+
type TopbarForceLayout = "auto" | "desktop" | "tablet" | "mobile";
|
|
535
|
+
/**
|
|
536
|
+
* `rel-topbar` — Application-level top navigation / header shell.
|
|
537
|
+
*
|
|
538
|
+
* Slots:
|
|
539
|
+
* brand — Logo / wordmark region (left)
|
|
540
|
+
* (default) — Primary nav items (rel-topbar-item elements)
|
|
541
|
+
* actions — CTA / action buttons (customer) or dark-pill area (carrier)
|
|
542
|
+
* utilities — Utility icon buttons (notifications, search, etc.)
|
|
543
|
+
* profile — rel-topbar-profile tile
|
|
544
|
+
* mobile-panel — Collapsed nav panel shown when mobileOpen is true
|
|
545
|
+
*
|
|
546
|
+
* Events:
|
|
547
|
+
* rel-menu-toggle — fired when hamburger is clicked { open: boolean }
|
|
548
|
+
* rel-mobile-open-change — alias of rel-menu-toggle for convenience
|
|
549
|
+
* rel-nav-select — bubbled from child rel-topbar-item { value, label }
|
|
550
|
+
*/
|
|
551
|
+
declare class RelTopbar extends LitElement {
|
|
552
|
+
/** Visual variant — affects action/profile region styling */
|
|
553
|
+
variant: TopbarVariant;
|
|
554
|
+
/** Whether the mobile nav panel is currently open */
|
|
555
|
+
mobileOpen: boolean;
|
|
556
|
+
/** Whether to render the hamburger / close toggle button */
|
|
557
|
+
showMenuToggle: boolean;
|
|
558
|
+
/** Reduce height to compact (48 px) mode */
|
|
559
|
+
compact: boolean;
|
|
560
|
+
/** Stick topbar to top of viewport while scrolling */
|
|
561
|
+
sticky: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Override the responsive layout for demos / storybook.
|
|
564
|
+
* 'auto' respects CSS media queries.
|
|
565
|
+
*/
|
|
566
|
+
forceLayout: TopbarForceLayout;
|
|
567
|
+
static styles: lit.CSSResult;
|
|
568
|
+
private onRouterSlotChange;
|
|
569
|
+
private get layoutClass();
|
|
570
|
+
private handleMenuToggle;
|
|
571
|
+
render(): lit_html.TemplateResult<1>;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
declare class RelTopbarDropdown extends LitElement {
|
|
575
|
+
static styles: lit.CSSResult;
|
|
576
|
+
render(): lit_html.TemplateResult<1>;
|
|
577
|
+
}
|
|
578
|
+
declare global {
|
|
579
|
+
interface HTMLElementTagNameMap {
|
|
580
|
+
"rel-topbar-dropdown": RelTopbarDropdown;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare class RelTopbarDropdownItem extends LitElement {
|
|
585
|
+
label: string;
|
|
586
|
+
href: string;
|
|
587
|
+
static styles: lit.CSSResult;
|
|
588
|
+
render(): lit_html.TemplateResult<1>;
|
|
589
|
+
}
|
|
590
|
+
declare global {
|
|
591
|
+
interface HTMLElementTagNameMap {
|
|
592
|
+
"rel-topbar-dropdown-item": RelTopbarDropdownItem;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* `rel-topbar-item` — A navigation item within rel-topbar.
|
|
598
|
+
*
|
|
599
|
+
* Renders as an `<a>` when `href` is supplied, otherwise a `<button>`.
|
|
600
|
+
*
|
|
601
|
+
* Slots:
|
|
602
|
+
* (default) — Label text / icon (overrides `label` property)
|
|
603
|
+
* prefix — Icon/content before the label
|
|
604
|
+
* suffix — Icon/content after the label (e.g. badge)
|
|
605
|
+
* dropdown — Expandable panel content shown below the item
|
|
606
|
+
*
|
|
607
|
+
* Events:
|
|
608
|
+
* rel-select — fired when a non-disabled, non-expandable item is activated
|
|
609
|
+
* rel-toggle — fired when an expandable item is opened/closed { open: boolean }
|
|
610
|
+
*/
|
|
611
|
+
declare class RelTopbarItem extends LitElement {
|
|
612
|
+
/** Accessible label — also shown as text when no default slot content */
|
|
613
|
+
label?: string;
|
|
614
|
+
/** Navigation href — renders an anchor element when set */
|
|
615
|
+
href?: string;
|
|
616
|
+
/** Marks this item as the current/active page */
|
|
617
|
+
active: boolean;
|
|
618
|
+
/** Prevents interaction */
|
|
619
|
+
disabled: boolean;
|
|
620
|
+
/** Shows a chevron and enables dropdown panel */
|
|
621
|
+
expandable: boolean;
|
|
622
|
+
/** Controlled open state of the dropdown panel */
|
|
623
|
+
open: boolean;
|
|
624
|
+
/** Optional string value forwarded in rel-select / rel-toggle events */
|
|
625
|
+
value?: string;
|
|
626
|
+
/** @internal tracks whether dropdown slot has content */
|
|
627
|
+
private _hasDropdown;
|
|
628
|
+
static styles: lit.CSSResult;
|
|
629
|
+
connectedCallback(): void;
|
|
630
|
+
disconnectedCallback(): void;
|
|
631
|
+
private _handleOutsideClick;
|
|
632
|
+
private _handleDocKeydown;
|
|
633
|
+
private _setOpen;
|
|
634
|
+
private _handleTriggerClick;
|
|
635
|
+
private _routeSlots;
|
|
636
|
+
private _handleDropdownSlotChange;
|
|
637
|
+
render(): lit_html.TemplateResult<1>;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
type TopbarProfileType = "avatar" | "carrier";
|
|
641
|
+
type TopbarRewardTier = "gold" | "silver" | "platinum" | "bronze" | "regular";
|
|
642
|
+
/**
|
|
643
|
+
* `rel-topbar-profile` — Profile / user tile for the topbar right region.
|
|
644
|
+
*
|
|
645
|
+
* type="avatar" Customer avatar with initials circle + optional name/subtitle.
|
|
646
|
+
* type="carrier" Carrier reward tile with reward-tier badge + name/subtitle.
|
|
647
|
+
*/
|
|
648
|
+
declare class RelTopbarProfile extends LitElement {
|
|
649
|
+
/** Visual mode */
|
|
650
|
+
type: TopbarProfileType;
|
|
651
|
+
/** One or two initials shown in the avatar circle */
|
|
652
|
+
initials?: string;
|
|
653
|
+
/** Primary display name */
|
|
654
|
+
name?: string;
|
|
655
|
+
/** Secondary line (role, plan, etc.) */
|
|
656
|
+
subtitle?: string;
|
|
657
|
+
/** Reward tier — only meaningful when type="carrier" */
|
|
658
|
+
reward: TopbarRewardTier;
|
|
659
|
+
/** Compact mode — avatar only, no text */
|
|
660
|
+
compact: boolean;
|
|
661
|
+
static styles: lit.CSSResult;
|
|
662
|
+
render(): lit_html.TemplateResult<1>;
|
|
663
|
+
private _renderAvatar;
|
|
664
|
+
private _renderCarrier;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
type OtpType = "numeric" | "alphanumeric";
|
|
668
|
+
declare class RelOtp extends LitElement {
|
|
669
|
+
value: string;
|
|
670
|
+
length: number;
|
|
671
|
+
groupSize: number;
|
|
672
|
+
placeholder: string;
|
|
673
|
+
type: OtpType;
|
|
674
|
+
mask: boolean;
|
|
675
|
+
disabled: boolean;
|
|
676
|
+
readonly: boolean;
|
|
677
|
+
required: boolean;
|
|
678
|
+
name: string | null;
|
|
679
|
+
autocomplete: string;
|
|
680
|
+
inputmode: "numeric" | "text" | null;
|
|
681
|
+
pattern: string | null;
|
|
682
|
+
ariaLabel: string | null;
|
|
683
|
+
invalid: boolean;
|
|
684
|
+
showSeparator: boolean;
|
|
685
|
+
size: "sm" | "md" | "lg";
|
|
686
|
+
private cells;
|
|
687
|
+
private focusedIndex;
|
|
688
|
+
private hiddenInput?;
|
|
689
|
+
private isUpdatingFromValue;
|
|
690
|
+
static styles: lit.CSSResult;
|
|
691
|
+
connectedCallback(): void;
|
|
692
|
+
updated(changedProperties: Map<string, any>): void;
|
|
693
|
+
private initializeCells;
|
|
694
|
+
private syncCellsFromValue;
|
|
695
|
+
private updateValue;
|
|
696
|
+
private isValidChar;
|
|
697
|
+
private isValidValue;
|
|
698
|
+
private getNextEditableIndex;
|
|
699
|
+
private handlePointerDown;
|
|
700
|
+
private handleInput;
|
|
701
|
+
private handleKeyDown;
|
|
702
|
+
private handlePaste;
|
|
703
|
+
private handlePasteValue;
|
|
704
|
+
private handleFocus;
|
|
705
|
+
private handleBlur;
|
|
706
|
+
private focusCell;
|
|
707
|
+
private getInputMode;
|
|
708
|
+
private getAriaLabel;
|
|
709
|
+
private getGroups;
|
|
710
|
+
render(): lit_html.TemplateResult<1>;
|
|
711
|
+
}
|
|
712
|
+
declare global {
|
|
713
|
+
interface HTMLElementTagNameMap {
|
|
714
|
+
"rel-otp": RelOtp;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
type DensityType = "comfortable" | "compact";
|
|
719
|
+
type VariantType = "default" | "icons";
|
|
720
|
+
declare class RelPagination extends LitElement {
|
|
721
|
+
page?: number;
|
|
722
|
+
defaultPage: number;
|
|
723
|
+
totalPages: number;
|
|
724
|
+
siblingCount: number;
|
|
725
|
+
boundaryCount: number;
|
|
726
|
+
disabled: boolean;
|
|
727
|
+
density: DensityType;
|
|
728
|
+
variant: VariantType;
|
|
729
|
+
hrefTemplate: string;
|
|
730
|
+
ariaLabel: string;
|
|
731
|
+
private currentPage;
|
|
732
|
+
static styles: lit.CSSResult;
|
|
733
|
+
connectedCallback(): void;
|
|
734
|
+
updated(changedProperties: Map<string, any>): void;
|
|
735
|
+
private get activePage();
|
|
736
|
+
private generatePageItems;
|
|
737
|
+
private handlePageChange;
|
|
738
|
+
private getHref;
|
|
739
|
+
private handleKeyDown;
|
|
740
|
+
private renderPrevIcon;
|
|
741
|
+
private renderNextIcon;
|
|
742
|
+
private renderItem;
|
|
743
|
+
render(): lit_html.TemplateResult<1>;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
type SideType = "top" | "right" | "bottom" | "left";
|
|
747
|
+
type AlignType = "start" | "center" | "end";
|
|
748
|
+
declare class RelPopover extends LitElement {
|
|
749
|
+
open?: boolean;
|
|
750
|
+
defaultOpen: boolean;
|
|
751
|
+
disabled: boolean;
|
|
752
|
+
side: SideType;
|
|
753
|
+
align: AlignType;
|
|
754
|
+
sideOffset: number;
|
|
755
|
+
alignOffset: number;
|
|
756
|
+
trapFocus: boolean;
|
|
757
|
+
closeOnEscape: boolean;
|
|
758
|
+
closeOnOutsideClick: boolean;
|
|
759
|
+
private internalOpen;
|
|
760
|
+
private contentStyle;
|
|
761
|
+
private contentWrapper;
|
|
762
|
+
private triggerEl;
|
|
763
|
+
private returnFocusEl;
|
|
764
|
+
private uniqueId;
|
|
765
|
+
static styles: lit.CSSResult;
|
|
766
|
+
connectedCallback(): void;
|
|
767
|
+
disconnectedCallback(): void;
|
|
768
|
+
firstUpdated(): void;
|
|
769
|
+
updated(changed: Map<string, unknown>): void;
|
|
770
|
+
private isControlled;
|
|
771
|
+
private get activeOpen();
|
|
772
|
+
private setOpen;
|
|
773
|
+
private onHostPointerDown;
|
|
774
|
+
private onOpen;
|
|
775
|
+
private onClose;
|
|
776
|
+
private addGlobalListeners;
|
|
777
|
+
private removeGlobalListeners;
|
|
778
|
+
private onOutsidePointerDown;
|
|
779
|
+
private onKeyDown;
|
|
780
|
+
private focusFirst;
|
|
781
|
+
private restoreFocus;
|
|
782
|
+
private trapFocusLoop;
|
|
783
|
+
private getFocusable;
|
|
784
|
+
private updatePosition;
|
|
785
|
+
private onTriggerSlotChange;
|
|
786
|
+
private applyTriggerAria;
|
|
787
|
+
render(): lit_html.TemplateResult<1>;
|
|
788
|
+
}
|
|
789
|
+
declare global {
|
|
790
|
+
interface HTMLElementTagNameMap {
|
|
791
|
+
"rel-popover": RelPopover;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
declare class RelPopoverContent extends LitElement {
|
|
796
|
+
ariaLabel: string;
|
|
797
|
+
static styles: lit.CSSResult;
|
|
798
|
+
render(): lit_html.TemplateResult<1>;
|
|
799
|
+
}
|
|
800
|
+
|
|
162
801
|
type ProgressMode = "linear-determinate" | "linear-indeterminate" | "circular-determinate" | "circular-indeterminate";
|
|
163
802
|
declare class RelProgress extends LitElement {
|
|
164
803
|
mode: ProgressMode;
|
|
@@ -186,12 +825,86 @@ declare class RelRadio extends LitElement {
|
|
|
186
825
|
name: string;
|
|
187
826
|
selectedValue: string | null;
|
|
188
827
|
disabled: boolean;
|
|
828
|
+
value: string;
|
|
829
|
+
checked: boolean;
|
|
830
|
+
private _onChange;
|
|
831
|
+
private _onTouched;
|
|
189
832
|
static styles: lit.CSSResult;
|
|
190
833
|
private onChange;
|
|
834
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
835
|
+
registerOnTouched(fn: () => void): void;
|
|
836
|
+
writeValue(value: string): void;
|
|
191
837
|
private renderOption;
|
|
192
838
|
render(): lit_html.TemplateResult<1>;
|
|
193
839
|
}
|
|
194
840
|
|
|
841
|
+
declare class RelResizableGroup extends LitElement {
|
|
842
|
+
direction: "horizontal" | "vertical";
|
|
843
|
+
private panels;
|
|
844
|
+
private handles;
|
|
845
|
+
private isDragging;
|
|
846
|
+
private activeHandleIndex;
|
|
847
|
+
private startPointerPos;
|
|
848
|
+
private startSizes;
|
|
849
|
+
static styles: lit.CSSResult;
|
|
850
|
+
connectedCallback(): void;
|
|
851
|
+
disconnectedCallback(): void;
|
|
852
|
+
firstUpdated(): void;
|
|
853
|
+
private initializeLayout;
|
|
854
|
+
private calculateInitialSizes;
|
|
855
|
+
private onPointerDown;
|
|
856
|
+
private startDrag;
|
|
857
|
+
private onPointerMove;
|
|
858
|
+
private onPointerUp;
|
|
859
|
+
private applyDragResize;
|
|
860
|
+
private onKeyDown;
|
|
861
|
+
private applyKeyboardResize;
|
|
862
|
+
private applySizes;
|
|
863
|
+
private dispatchResizeEvent;
|
|
864
|
+
private addGlobalListeners;
|
|
865
|
+
private removeGlobalListeners;
|
|
866
|
+
render(): lit_html.TemplateResult<1>;
|
|
867
|
+
}
|
|
868
|
+
declare global {
|
|
869
|
+
interface HTMLElementTagNameMap {
|
|
870
|
+
"rel-resizable-group": RelResizableGroup;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
declare class RelResizablePanel extends LitElement {
|
|
875
|
+
defaultSize?: number;
|
|
876
|
+
minSize: number;
|
|
877
|
+
maxSize: number;
|
|
878
|
+
/** Current computed size in percentage */
|
|
879
|
+
currentSize: number;
|
|
880
|
+
static styles: lit.CSSResult;
|
|
881
|
+
render(): lit_html.TemplateResult<1>;
|
|
882
|
+
}
|
|
883
|
+
declare global {
|
|
884
|
+
interface HTMLElementTagNameMap {
|
|
885
|
+
"rel-resizable-panel": RelResizablePanel;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
declare class RelResizableHandle extends LitElement {
|
|
890
|
+
orientation: "horizontal" | "vertical";
|
|
891
|
+
/** Index of this handle in the parent group */
|
|
892
|
+
handleIndex: number;
|
|
893
|
+
/** Current split value (0-100) for aria-valuenow */
|
|
894
|
+
splitValue: number;
|
|
895
|
+
static styles: lit.CSSResult;
|
|
896
|
+
connectedCallback(): void;
|
|
897
|
+
updated(changed: Map<string, unknown>): void;
|
|
898
|
+
private updateAriaOrientation;
|
|
899
|
+
updateAriaValue(value: number): void;
|
|
900
|
+
render(): lit_html.TemplateResult<1>;
|
|
901
|
+
}
|
|
902
|
+
declare global {
|
|
903
|
+
interface HTMLElementTagNameMap {
|
|
904
|
+
"rel-resizable-handle": RelResizableHandle;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
195
908
|
type SegmentSize = "small" | "medium";
|
|
196
909
|
type SegmentAlign = "left" | "middle" | "right";
|
|
197
910
|
interface SegmentOption {
|
|
@@ -228,6 +941,85 @@ declare class RelSelect extends LitElement {
|
|
|
228
941
|
render(): lit_html.TemplateResult<1>;
|
|
229
942
|
}
|
|
230
943
|
|
|
944
|
+
type SheetSide = "top" | "right" | "bottom" | "left";
|
|
945
|
+
type SheetSize = "sm" | "md" | "lg" | "xl";
|
|
946
|
+
type SheetCloseReason = "trigger" | "close" | "overlay" | "escape" | "api";
|
|
947
|
+
declare class RelSheet extends LitElement {
|
|
948
|
+
open?: boolean;
|
|
949
|
+
defaultOpen: boolean;
|
|
950
|
+
disabled: boolean;
|
|
951
|
+
modal: boolean;
|
|
952
|
+
private internalOpen;
|
|
953
|
+
static styles: lit.CSSResult;
|
|
954
|
+
connectedCallback(): void;
|
|
955
|
+
updated(changed: Map<string, unknown>): void;
|
|
956
|
+
private isControlled;
|
|
957
|
+
get activeOpen(): boolean;
|
|
958
|
+
setOpen(next: boolean, reason?: SheetCloseReason): void;
|
|
959
|
+
render(): lit_html.TemplateResult<1>;
|
|
960
|
+
}
|
|
961
|
+
declare class RelSheetTrigger extends LitElement {
|
|
962
|
+
static styles: lit.CSSResult;
|
|
963
|
+
private getSheet;
|
|
964
|
+
private handleClick;
|
|
965
|
+
render(): lit_html.TemplateResult<1>;
|
|
966
|
+
}
|
|
967
|
+
declare class RelSheetContent extends LitElement {
|
|
968
|
+
side: SheetSide;
|
|
969
|
+
size: SheetSize;
|
|
970
|
+
hideOverlay: boolean;
|
|
971
|
+
closeOnOverlay: boolean;
|
|
972
|
+
showClose: boolean;
|
|
973
|
+
private panelElement;
|
|
974
|
+
private overlayElement;
|
|
975
|
+
private sheet;
|
|
976
|
+
private previousFocus;
|
|
977
|
+
private originalBodyOverflow;
|
|
978
|
+
private originalBodyPaddingRight;
|
|
979
|
+
private isOpen;
|
|
980
|
+
static styles: lit.CSSResult;
|
|
981
|
+
connectedCallback(): void;
|
|
982
|
+
disconnectedCallback(): void;
|
|
983
|
+
private findSheet;
|
|
984
|
+
private handleSheetOpenChange;
|
|
985
|
+
private handleOpen;
|
|
986
|
+
private handleClose;
|
|
987
|
+
private cleanup;
|
|
988
|
+
private lockScroll;
|
|
989
|
+
private unlockScroll;
|
|
990
|
+
private focusPanel;
|
|
991
|
+
private getFocusableElements;
|
|
992
|
+
private handleKeydown;
|
|
993
|
+
private handleOverlayClick;
|
|
994
|
+
private handleCloseClick;
|
|
995
|
+
private getSizeValue;
|
|
996
|
+
private getTitle;
|
|
997
|
+
private getDescription;
|
|
998
|
+
render(): lit_html.TemplateResult<1>;
|
|
999
|
+
}
|
|
1000
|
+
declare class RelSheetHeader extends LitElement {
|
|
1001
|
+
static styles: lit.CSSResult;
|
|
1002
|
+
render(): lit_html.TemplateResult<1>;
|
|
1003
|
+
}
|
|
1004
|
+
declare class RelSheetFooter extends LitElement {
|
|
1005
|
+
static styles: lit.CSSResult;
|
|
1006
|
+
render(): lit_html.TemplateResult<1>;
|
|
1007
|
+
}
|
|
1008
|
+
declare class RelSheetTitle extends LitElement {
|
|
1009
|
+
static styles: lit.CSSResult;
|
|
1010
|
+
render(): lit_html.TemplateResult<1>;
|
|
1011
|
+
}
|
|
1012
|
+
declare class RelSheetDescription extends LitElement {
|
|
1013
|
+
static styles: lit.CSSResult;
|
|
1014
|
+
render(): lit_html.TemplateResult<1>;
|
|
1015
|
+
}
|
|
1016
|
+
declare class RelSheetClose extends LitElement {
|
|
1017
|
+
static styles: lit.CSSResult;
|
|
1018
|
+
private getSheet;
|
|
1019
|
+
private handleClick;
|
|
1020
|
+
render(): lit_html.TemplateResult<1>;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
231
1023
|
type SliderType = "continuous" | "discrete";
|
|
232
1024
|
type TrackStyle = "solid" | "dotted";
|
|
233
1025
|
declare class RelSlider extends LitElement {
|
|
@@ -241,6 +1033,8 @@ declare class RelSlider extends LitElement {
|
|
|
241
1033
|
showBubble: boolean;
|
|
242
1034
|
value: number;
|
|
243
1035
|
private ticks;
|
|
1036
|
+
private _onChange;
|
|
1037
|
+
private _onTouched;
|
|
244
1038
|
static styles: lit.CSSResult;
|
|
245
1039
|
connectedCallback(): void;
|
|
246
1040
|
updated(changedProperties: Map<string, any>): void;
|
|
@@ -249,6 +1043,9 @@ declare class RelSlider extends LitElement {
|
|
|
249
1043
|
private getTickLeftPct;
|
|
250
1044
|
private isTickActive;
|
|
251
1045
|
private onInput;
|
|
1046
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
1047
|
+
registerOnTouched(fn: () => void): void;
|
|
1048
|
+
writeValue(value: number): void;
|
|
252
1049
|
private updateActiveWidth;
|
|
253
1050
|
private renderThumbContainer;
|
|
254
1051
|
private renderTicks;
|
|
@@ -257,6 +1054,7 @@ declare class RelSlider extends LitElement {
|
|
|
257
1054
|
}
|
|
258
1055
|
|
|
259
1056
|
type SnackbarLines = "single" | "double";
|
|
1057
|
+
type SnackbarType = "default" | "success" | "error" | "warning";
|
|
260
1058
|
declare class RelSnackbar extends LitElement {
|
|
261
1059
|
message: string;
|
|
262
1060
|
action?: string;
|
|
@@ -264,16 +1062,20 @@ declare class RelSnackbar extends LitElement {
|
|
|
264
1062
|
iconClose: boolean;
|
|
265
1063
|
lines: SnackbarLines;
|
|
266
1064
|
duration: number;
|
|
1065
|
+
type: SnackbarType;
|
|
1066
|
+
show: boolean;
|
|
267
1067
|
private visible;
|
|
268
|
-
private
|
|
1068
|
+
private _dismissTimer;
|
|
269
1069
|
static styles: lit.CSSResult;
|
|
270
1070
|
connectedCallback(): void;
|
|
1071
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
271
1072
|
updated(changed: Map<string, unknown>): void;
|
|
272
1073
|
disconnectedCallback(): void;
|
|
273
1074
|
private setAutoDismiss;
|
|
274
|
-
private
|
|
1075
|
+
private clearDismissTimer;
|
|
275
1076
|
private onActionClick;
|
|
276
1077
|
private dismiss;
|
|
1078
|
+
private getIcon;
|
|
277
1079
|
render(): lit_html.TemplateResult<1>;
|
|
278
1080
|
}
|
|
279
1081
|
|
|
@@ -303,10 +1105,16 @@ declare class RelStepper extends LitElement {
|
|
|
303
1105
|
declare class RelSwitch extends LitElement {
|
|
304
1106
|
checked: boolean;
|
|
305
1107
|
disabled: boolean;
|
|
1108
|
+
value: string;
|
|
1109
|
+
private _onChange;
|
|
1110
|
+
private _onTouched;
|
|
306
1111
|
private isFocused;
|
|
307
1112
|
private isPressed;
|
|
308
1113
|
static styles: lit.CSSResult;
|
|
309
1114
|
private toggle;
|
|
1115
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
1116
|
+
registerOnTouched(fn: () => void): void;
|
|
1117
|
+
writeValue(checked: boolean): void;
|
|
310
1118
|
private handleFocus;
|
|
311
1119
|
private handleBlur;
|
|
312
1120
|
private handleMouseDown;
|
|
@@ -319,16 +1127,26 @@ interface TabItem {
|
|
|
319
1127
|
badge?: number;
|
|
320
1128
|
disabled?: boolean;
|
|
321
1129
|
}
|
|
1130
|
+
declare class RelTabItem extends LitElement {
|
|
1131
|
+
label: string;
|
|
1132
|
+
value: string;
|
|
1133
|
+
badge: number;
|
|
1134
|
+
disabled: boolean;
|
|
1135
|
+
render(): lit_html.TemplateResult<1>;
|
|
1136
|
+
}
|
|
322
1137
|
declare class RelTab extends LitElement {
|
|
323
1138
|
tabs: TabItem[];
|
|
324
1139
|
activeIndex: number;
|
|
1140
|
+
private _tabItems;
|
|
325
1141
|
static styles: lit.CSSResult;
|
|
1142
|
+
private _onSlotChange;
|
|
1143
|
+
private get _effectiveTabs();
|
|
326
1144
|
private selectTab;
|
|
327
1145
|
private onKeyDown;
|
|
328
1146
|
render(): lit_html.TemplateResult<1>;
|
|
329
1147
|
}
|
|
330
1148
|
|
|
331
|
-
type TextFieldState = "default" | "
|
|
1149
|
+
type TextFieldState = "default" | "error" | "disabled";
|
|
332
1150
|
type TextFieldSize = "small" | "medium" | "large";
|
|
333
1151
|
declare class RelTextfield extends LitElement {
|
|
334
1152
|
label?: string;
|
|
@@ -341,8 +1159,8 @@ declare class RelTextfield extends LitElement {
|
|
|
341
1159
|
state: TextFieldState;
|
|
342
1160
|
size: TextFieldSize;
|
|
343
1161
|
private internalState;
|
|
1162
|
+
private uniqueId;
|
|
344
1163
|
static styles: lit.CSSResult;
|
|
345
|
-
private get currentState();
|
|
346
1164
|
private handleFocus;
|
|
347
1165
|
private handleBlur;
|
|
348
1166
|
private handleInput;
|
|
@@ -355,10 +1173,13 @@ declare class RelToast extends LitElement {
|
|
|
355
1173
|
type: ToastType;
|
|
356
1174
|
actionLabel?: string;
|
|
357
1175
|
duration: number;
|
|
1176
|
+
show: boolean;
|
|
358
1177
|
private visible;
|
|
359
|
-
private
|
|
1178
|
+
private _dismissTimer;
|
|
360
1179
|
static styles: lit.CSSResult;
|
|
361
|
-
|
|
1180
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
1181
|
+
disconnectedCallback(): void;
|
|
1182
|
+
open(): void;
|
|
362
1183
|
close(): void;
|
|
363
1184
|
private handleActionClick;
|
|
364
1185
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -369,8 +1190,11 @@ declare class RelTooltip extends LitElement {
|
|
|
369
1190
|
text: string;
|
|
370
1191
|
position: TooltipPosition;
|
|
371
1192
|
showTail: boolean;
|
|
1193
|
+
private uniqueId;
|
|
372
1194
|
static styles: lit.CSSResult;
|
|
1195
|
+
firstUpdated(): void;
|
|
1196
|
+
private linkTrigger;
|
|
373
1197
|
render(): lit_html.TemplateResult<1>;
|
|
374
1198
|
}
|
|
375
1199
|
|
|
376
|
-
export { type BreadcrumbItem, type MenuItem, type MenuType, type Orientation, type ProgressMode, type RadioOption, RelAccordion, RelAlert, RelAvatar, RelBadge, RelBreadcrumbs, RelButton, RelCard, RelCardMedia, RelCheckbox, RelChip, RelContainer, RelDivider, RelLayout, RelMenu, RelProgress, RelRadio, RelSegmentedButton, RelSelect, RelSlider, RelSnackbar, RelStepper, RelSwitch, RelTab, RelTextfield, RelToast, RelTooltip, type SegmentAlign, type SegmentOption, type SegmentSize, type SelectBorder, type SelectSize, type SelectState, type SliderType, type SnackbarLines, type Step, type StepStatus, type StepperSize, type TabItem, type TextAlign, type TextFieldSize, type TextFieldState, type ToastType, type TooltipPosition, type TrackStyle };
|
|
1200
|
+
export { type BreadcrumbItem, type DrawerCloseReason, type DrawerSide, type MenuItem, type MenuType, type Orientation, type OtpType, type ProgressMode, type RadioOption, RelAccordion, RelAlert, RelAvatar, RelBadge, RelBreadcrumbs, RelButton, RelCalendar, RelCard, RelCardMedia, RelCarousel, RelCheckbox, RelChip, RelContainer, RelDatePicker, RelDivider, RelDrawer, RelDrawerFooter, RelKbd, RelLayout, RelMenu, RelMenuItem, RelMenubar, RelMenubarMenu, RelNavMenu, RelNavMenuItem, RelNavMenuPanel, RelNavbar, RelOtp, RelPagination, RelPopover, RelPopoverContent, RelProgress, RelRadio, RelResizableGroup, RelResizableHandle, RelResizablePanel, RelSegmentedButton, RelSelect, RelSheet, RelSheetClose, RelSheetContent, RelSheetDescription, RelSheetFooter, RelSheetHeader, RelSheetTitle, RelSheetTrigger, RelSlider, RelSnackbar, RelStepper, RelSwitch, RelTab, RelTabItem, RelTextfield, RelToast, RelTooltip, RelTopbar, RelTopbarActions, RelTopbarBrand, RelTopbarDropdown, RelTopbarDropdownItem, RelTopbarItem, RelTopbarMobilePanel, RelTopbarProfile, RelTopbarUtilities, type SegmentAlign, type SegmentOption, type SegmentSize, type SelectBorder, type SelectSize, type SelectState, type SheetCloseReason, type SheetSide, type SheetSize, type SliderType, type SnackbarLines, type SnackbarType, type Step, type StepStatus, type StepperSize, type TabItem, type TextAlign, type TextFieldSize, type TextFieldState, type ToastType, type TooltipPosition, type TopbarForceLayout, type TopbarProfileType, type TopbarRewardTier, type TopbarVariant, type TrackStyle };
|