@reliability-design/web 1.0.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/rel-accordion/rel-accordion.ts +20 -31
- package/dist/components/rel-alert/rel-alert.ts +81 -11
- package/dist/components/rel-avatar/rel-avatar.ts +6 -3
- package/dist/components/rel-badge/rel-badge.ts +8 -3
- package/dist/components/rel-breadcrumb/rel-breadcrumb.ts +6 -6
- package/dist/components/rel-button/rel-button.ts +118 -16
- package/dist/components/rel-calendar/rel-calendar.ts +16 -9
- package/dist/components/rel-card/rel-card.ts +9 -17
- package/dist/components/rel-cardmedia/rel-cardmedia.ts +20 -23
- package/dist/components/rel-carousel/rel-carousel.ts +596 -469
- package/dist/components/rel-checkbox/rel-checkbox.ts +98 -15
- package/dist/components/rel-chip/rel-chip.ts +291 -186
- package/dist/components/rel-container/rel-container.ts +2 -2
- package/dist/components/rel-date-picker/rel-date-picker.ts +23 -19
- package/dist/components/rel-divider/rel-divider.ts +12 -3
- package/dist/components/rel-drawer/rel-drawer-footer.ts +27 -0
- package/dist/components/rel-drawer/rel-drawer.ts +57 -113
- package/dist/components/rel-kbd/rel-kbd.ts +94 -118
- package/dist/components/rel-layout/rel-layout.ts +49 -58
- package/dist/components/rel-menu/rel-menu.ts +359 -327
- package/dist/components/rel-menubar/rel-menubar-menu.css +3 -0
- package/dist/components/rel-menubar/rel-menubar-menu.ts +2 -1
- package/dist/components/rel-menubar/rel-menubar.ts +602 -576
- package/dist/components/rel-nav-menu/rel-nav-menu-item.ts +240 -143
- package/dist/components/rel-nav-menu/rel-nav-menu.ts +227 -331
- package/dist/components/rel-navbar/rel-navbar.ts +13 -0
- package/dist/components/rel-otp/rel-otp.ts +22 -25
- package/dist/components/rel-pagination/rel-pagination.ts +112 -63
- package/dist/components/rel-popover/rel-popover-content.ts +6 -5
- package/dist/components/rel-popover/rel-popover.ts +42 -20
- package/dist/components/rel-progress/rel-progress.ts +10 -9
- package/dist/components/rel-radio/rel-radio.ts +228 -155
- package/dist/components/rel-range-picker/rel-range-picker.css +349 -0
- package/dist/components/rel-range-picker/rel-range-picker.ts +1079 -0
- package/dist/components/rel-resizable/rel-resizable-handle.ts +12 -15
- package/dist/components/rel-segmented-button/rel-segmented-button.ts +41 -20
- package/dist/components/rel-select/rel-select.ts +112 -27
- package/dist/components/rel-sheet/rel-sheet.ts +362 -683
- package/dist/components/rel-sidebar/rel-sidebar.ts +13 -5
- package/dist/components/rel-slider/rel-slider.ts +74 -29
- package/dist/components/rel-snackbar/rel-snackbar.ts +67 -37
- package/dist/components/rel-stepper/rel-stepper.ts +43 -31
- package/dist/components/rel-switch/rel-switch.ts +26 -12
- package/dist/components/rel-tab/rel-tab.ts +57 -37
- package/dist/components/rel-table/rel-table-body.ts +5 -0
- package/dist/components/rel-table/rel-table-caption.ts +6 -1
- package/dist/components/rel-table/rel-table-cell.ts +42 -49
- package/dist/components/rel-table/rel-table-footer.ts +5 -0
- package/dist/components/rel-table/rel-table-head.ts +13 -1
- package/dist/components/rel-table/rel-table-header.ts +5 -0
- package/dist/components/rel-table/rel-table-row.ts +7 -3
- package/dist/components/rel-table/rel-table.ts +8 -2
- package/dist/components/rel-textfield/rel-textfield.ts +153 -44
- package/dist/components/rel-toast/rel-toast.ts +56 -22
- package/dist/components/rel-tooltip/rel-tooltip.ts +52 -9
- package/dist/components/rel-topbar/rel-topbar-actions.ts +24 -0
- package/dist/components/rel-topbar/rel-topbar-brand.ts +47 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown-item.ts +63 -0
- package/dist/components/rel-topbar/rel-topbar-dropdown.ts +28 -0
- package/dist/components/rel-topbar/rel-topbar-item.ts +320 -0
- package/dist/components/rel-topbar/rel-topbar-mobile-panel.ts +24 -0
- package/dist/components/rel-topbar/rel-topbar-profile.ts +222 -0
- package/dist/components/rel-topbar/rel-topbar-utilities.ts +24 -0
- package/dist/components/rel-topbar/rel-topbar.ts +438 -0
- package/dist/index.d.mts +375 -411
- package/dist/index.d.ts +375 -411
- package/dist/index.js +7587 -7980
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7647 -8023
- package/dist/index.mjs.map +1 -1
- package/dist/rel-menubar-menu-BEEQDAXW.css +3 -0
- package/dist/styles/vars-v2.css +525 -0
- package/dist/styles/vars.css +79 -27
- package/dist/{vars-ITL2K3KO.css → vars-I2PC74XD.css} +79 -27
- package/dist/vars-v2-VMGWTFJZ.css +525 -0
- package/package.json +3 -1
- package/dist/components/rel-quote-page/README.md +0 -166
- package/dist/components/rel-quote-page/rel-quote-page.ts +0 -816
package/dist/index.d.mts
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;
|
|
@@ -31,12 +32,15 @@ declare class RelAvatar extends LitElement {
|
|
|
31
32
|
src: string;
|
|
32
33
|
text: string;
|
|
33
34
|
alt: string;
|
|
35
|
+
bg: string;
|
|
34
36
|
static styles: lit.CSSResult;
|
|
35
37
|
render(): lit_html.TemplateResult<1>;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
declare class RelBadge extends LitElement {
|
|
39
41
|
number: string;
|
|
42
|
+
ariaLabel: string;
|
|
43
|
+
suffix: string;
|
|
40
44
|
size: "sm" | "md" | "lg";
|
|
41
45
|
variant: "dot" | "number";
|
|
42
46
|
static styles: lit.CSSResult;
|
|
@@ -56,10 +60,11 @@ declare class RelBreadcrumbs extends LitElement {
|
|
|
56
60
|
|
|
57
61
|
declare class RelButton extends LitElement {
|
|
58
62
|
variant: "default" | "primary" | "secondary" | "text" | "link" | "icon";
|
|
59
|
-
tone: "default" | "critical" | "success";
|
|
63
|
+
tone: "default" | "primary" | "secondary" | "critical" | "success";
|
|
60
64
|
size: "small" | "medium" | "large";
|
|
61
65
|
border: "corner-radius" | "small-corner-radius" | "no-corner-radius";
|
|
62
66
|
disabled: boolean;
|
|
67
|
+
ariaLabel: string | null;
|
|
63
68
|
static styles: lit.CSSResult;
|
|
64
69
|
private get classes();
|
|
65
70
|
private handleClick;
|
|
@@ -108,8 +113,7 @@ declare class RelCarousel extends LitElement {
|
|
|
108
113
|
showButtons: boolean;
|
|
109
114
|
showDots: boolean;
|
|
110
115
|
orientation: "horizontal" | "vertical";
|
|
111
|
-
|
|
112
|
-
slidesPerView: number;
|
|
116
|
+
label: string;
|
|
113
117
|
gap?: number;
|
|
114
118
|
disabled: boolean;
|
|
115
119
|
private slideCount;
|
|
@@ -123,13 +127,19 @@ declare class RelCarousel extends LitElement {
|
|
|
123
127
|
private autoplayTimer?;
|
|
124
128
|
private animationId?;
|
|
125
129
|
private prefersReducedMotion;
|
|
130
|
+
private clonesBefore;
|
|
131
|
+
private _silentJumping;
|
|
132
|
+
private _ro?;
|
|
126
133
|
static styles: lit.CSSResult;
|
|
127
134
|
connectedCallback(): void;
|
|
135
|
+
firstUpdated(): void;
|
|
128
136
|
disconnectedCallback(): void;
|
|
129
137
|
private handleSlotChange;
|
|
138
|
+
private unit;
|
|
130
139
|
private updateTransform;
|
|
131
140
|
private goToPrevious;
|
|
132
141
|
private goToNext;
|
|
142
|
+
private silentJump;
|
|
133
143
|
private goToSlide;
|
|
134
144
|
private emitChange;
|
|
135
145
|
private startAutoplay;
|
|
@@ -153,60 +163,6 @@ declare class RelCardMedia extends LitElement {
|
|
|
153
163
|
render(): lit_html.TemplateResult<1>;
|
|
154
164
|
}
|
|
155
165
|
|
|
156
|
-
interface SeriesConfig {
|
|
157
|
-
key: string;
|
|
158
|
-
label?: string;
|
|
159
|
-
colorToken?: string;
|
|
160
|
-
}
|
|
161
|
-
declare class RelChart extends LitElement {
|
|
162
|
-
type: "bar" | "line";
|
|
163
|
-
height: number;
|
|
164
|
-
xKey: string;
|
|
165
|
-
seriesJson: string;
|
|
166
|
-
dataJson: string;
|
|
167
|
-
showGrid: boolean;
|
|
168
|
-
showAxis: boolean;
|
|
169
|
-
showLegend: boolean;
|
|
170
|
-
stacked: boolean;
|
|
171
|
-
formatX: "date" | "string" | "number";
|
|
172
|
-
locale: string;
|
|
173
|
-
disabled: boolean;
|
|
174
|
-
private _data;
|
|
175
|
-
private _series;
|
|
176
|
-
get data(): Array<Record<string, unknown>>;
|
|
177
|
-
set data(value: Array<Record<string, unknown>>);
|
|
178
|
-
get series(): SeriesConfig[];
|
|
179
|
-
set series(value: SeriesConfig[]);
|
|
180
|
-
private chartWidth;
|
|
181
|
-
private tooltip;
|
|
182
|
-
private container?;
|
|
183
|
-
private resizeObserver?;
|
|
184
|
-
private prefersReducedMotion;
|
|
185
|
-
private resizeTimeout?;
|
|
186
|
-
private readonly defaultColors;
|
|
187
|
-
static styles: lit.CSSResult;
|
|
188
|
-
connectedCallback(): void;
|
|
189
|
-
disconnectedCallback(): void;
|
|
190
|
-
firstUpdated(): void;
|
|
191
|
-
updated(changedProperties: Map<string, any>): void;
|
|
192
|
-
private measureWidth;
|
|
193
|
-
private getChartData;
|
|
194
|
-
private getSeriesConfig;
|
|
195
|
-
private getSeriesColor;
|
|
196
|
-
private formatXValue;
|
|
197
|
-
private calculateScales;
|
|
198
|
-
private handleBarHover;
|
|
199
|
-
private handlePointHover;
|
|
200
|
-
private handleMouseLeave;
|
|
201
|
-
private renderGrid;
|
|
202
|
-
private renderAxis;
|
|
203
|
-
private renderBarChart;
|
|
204
|
-
private renderLineChart;
|
|
205
|
-
private renderLegend;
|
|
206
|
-
private renderTooltip;
|
|
207
|
-
render(): lit_html.TemplateResult<1>;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
166
|
type CheckboxState = "default" | "error" | "disabled";
|
|
211
167
|
type CheckboxStatus = "unchecked" | "checked" | "indeterminate";
|
|
212
168
|
declare class RelCheckbox extends LitElement {
|
|
@@ -214,8 +170,16 @@ declare class RelCheckbox extends LitElement {
|
|
|
214
170
|
supportingtext: string;
|
|
215
171
|
state: CheckboxState;
|
|
216
172
|
status: CheckboxStatus;
|
|
173
|
+
value: string;
|
|
174
|
+
get checked(): boolean;
|
|
175
|
+
set checked(val: boolean);
|
|
176
|
+
private _onChange;
|
|
177
|
+
private _onTouched;
|
|
217
178
|
static styles: lit.CSSResult;
|
|
218
179
|
private toggle;
|
|
180
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
181
|
+
registerOnTouched(fn: () => void): void;
|
|
182
|
+
writeValue(checked: boolean): void;
|
|
219
183
|
render(): lit_html.TemplateResult<1>;
|
|
220
184
|
}
|
|
221
185
|
|
|
@@ -272,14 +236,65 @@ declare class RelDatePicker extends LitElement {
|
|
|
272
236
|
render(): lit_html.TemplateResult<1>;
|
|
273
237
|
}
|
|
274
238
|
|
|
239
|
+
declare class RelRangePicker extends LitElement {
|
|
240
|
+
from: string;
|
|
241
|
+
to: string;
|
|
242
|
+
locale: string;
|
|
243
|
+
weekStart: "mon" | "sun";
|
|
244
|
+
minDate: string;
|
|
245
|
+
maxDate: string;
|
|
246
|
+
disabled: boolean;
|
|
247
|
+
open: boolean;
|
|
248
|
+
mode: "popover" | "popup";
|
|
249
|
+
private draftFrom;
|
|
250
|
+
private draftTo;
|
|
251
|
+
private draftActivePreset;
|
|
252
|
+
private viewYear;
|
|
253
|
+
private viewMonth;
|
|
254
|
+
private isSelectingRange;
|
|
255
|
+
private hoverDate;
|
|
256
|
+
private triggerButton?;
|
|
257
|
+
static styles: lit.CSSResult;
|
|
258
|
+
connectedCallback(): void;
|
|
259
|
+
disconnectedCallback(): void;
|
|
260
|
+
private handleClickOutside;
|
|
261
|
+
private handleGlobalKeydown;
|
|
262
|
+
private toggleOpen;
|
|
263
|
+
private openPopover;
|
|
264
|
+
private cancelPopover;
|
|
265
|
+
private applySelection;
|
|
266
|
+
private resetDraft;
|
|
267
|
+
private getTriggerLabel;
|
|
268
|
+
private parseISODate;
|
|
269
|
+
private formatISODate;
|
|
270
|
+
private formatDisplayDate;
|
|
271
|
+
private isSameDay;
|
|
272
|
+
private isDateDisabled;
|
|
273
|
+
private getQuickSelects;
|
|
274
|
+
private selectQuickSelect;
|
|
275
|
+
private previousMonth;
|
|
276
|
+
private nextMonth;
|
|
277
|
+
private getMonthName;
|
|
278
|
+
private getWeekdayLabels;
|
|
279
|
+
private getCalendarDays;
|
|
280
|
+
private handleDayClick;
|
|
281
|
+
private handleDayHover;
|
|
282
|
+
render(): lit_html.TemplateResult<1>;
|
|
283
|
+
}
|
|
284
|
+
declare global {
|
|
285
|
+
interface HTMLElementTagNameMap {
|
|
286
|
+
"rel-range-picker": RelRangePicker;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
275
290
|
declare class RelChip extends LitElement {
|
|
276
291
|
label: string;
|
|
277
|
-
tone: "default" | "blue" | "
|
|
292
|
+
tone: "default" | "blue" | "orange" | "red" | "green";
|
|
278
293
|
leadingIcon?: string;
|
|
279
294
|
trailingIcon?: string;
|
|
295
|
+
/** Initials text for the avatar (e.g. "JD"). Mutually exclusive with leadingIcon. */
|
|
280
296
|
avatar?: string;
|
|
281
297
|
removable: boolean;
|
|
282
|
-
outline: boolean;
|
|
283
298
|
/** IMPORTANT: reflected so CSS + Angular can see it */
|
|
284
299
|
removed: boolean;
|
|
285
300
|
static styles: lit.CSSResult;
|
|
@@ -301,10 +316,22 @@ declare class RelContainer extends LitElement {
|
|
|
301
316
|
declare class RelDivider extends LitElement {
|
|
302
317
|
orientation: "horizontal" | "vertical";
|
|
303
318
|
static styles: lit.CSSResult;
|
|
319
|
+
connectedCallback(): void;
|
|
320
|
+
updated(): void;
|
|
304
321
|
render(): lit_html.TemplateResult<1>;
|
|
305
322
|
}
|
|
306
323
|
|
|
307
|
-
|
|
324
|
+
declare class RelDrawerFooter extends LitElement {
|
|
325
|
+
static styles: lit.CSSResult;
|
|
326
|
+
render(): lit_html.TemplateResult<1>;
|
|
327
|
+
}
|
|
328
|
+
declare global {
|
|
329
|
+
interface HTMLElementTagNameMap {
|
|
330
|
+
"rel-drawer-footer": RelDrawerFooter;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
type DrawerSide = "bottom" | "left" | "right";
|
|
308
335
|
type DrawerCloseReason = "backdrop" | "escape" | "drag" | "programmatic";
|
|
309
336
|
declare class RelDrawer extends LitElement {
|
|
310
337
|
open: boolean;
|
|
@@ -318,7 +345,8 @@ declare class RelDrawer extends LitElement {
|
|
|
318
345
|
snapThreshold: number;
|
|
319
346
|
maxHeight: string;
|
|
320
347
|
width: string;
|
|
321
|
-
|
|
348
|
+
title: string;
|
|
349
|
+
description: string;
|
|
322
350
|
private isDragging;
|
|
323
351
|
private dragOffset;
|
|
324
352
|
private panelElement;
|
|
@@ -336,7 +364,6 @@ declare class RelDrawer extends LitElement {
|
|
|
336
364
|
private handleClose;
|
|
337
365
|
private lockScroll;
|
|
338
366
|
private unlockScroll;
|
|
339
|
-
private focusPanel;
|
|
340
367
|
private getFocusableElements;
|
|
341
368
|
private handleKeydown;
|
|
342
369
|
private handleOverlayClick;
|
|
@@ -347,7 +374,6 @@ declare class RelDrawer extends LitElement {
|
|
|
347
374
|
private handlePointerUp;
|
|
348
375
|
private getPanelStyle;
|
|
349
376
|
private getOverlayStyle;
|
|
350
|
-
private hasSlotContent;
|
|
351
377
|
render(): lit_html.TemplateResult<1>;
|
|
352
378
|
}
|
|
353
379
|
declare global {
|
|
@@ -362,7 +388,6 @@ declare class RelKbd extends LitElement {
|
|
|
362
388
|
pill: boolean;
|
|
363
389
|
inset: boolean;
|
|
364
390
|
static styles: lit.CSSResult;
|
|
365
|
-
private get classes();
|
|
366
391
|
render(): lit_html.TemplateResult<1>;
|
|
367
392
|
}
|
|
368
393
|
|
|
@@ -371,6 +396,7 @@ declare class RelLayout extends LitElement {
|
|
|
371
396
|
columns: number;
|
|
372
397
|
responsive: boolean;
|
|
373
398
|
static styles: lit.CSSResult;
|
|
399
|
+
willUpdate(): void;
|
|
374
400
|
render(): lit_html.TemplateResult<1>;
|
|
375
401
|
}
|
|
376
402
|
|
|
@@ -383,13 +409,24 @@ interface MenuItem {
|
|
|
383
409
|
submenu?: MenuItem[];
|
|
384
410
|
open?: boolean;
|
|
385
411
|
}
|
|
412
|
+
declare class RelMenuItem extends LitElement {
|
|
413
|
+
label: string;
|
|
414
|
+
value: string;
|
|
415
|
+
disabled: boolean;
|
|
416
|
+
icon: string;
|
|
417
|
+
createRenderRoot(): this;
|
|
418
|
+
render(): lit_html.TemplateResult<1>;
|
|
419
|
+
}
|
|
386
420
|
declare class RelMenu extends LitElement {
|
|
387
421
|
type: MenuType;
|
|
388
422
|
items: MenuItem[];
|
|
389
423
|
private focusedIndex;
|
|
390
|
-
|
|
424
|
+
private _items;
|
|
425
|
+
static readonly _css = "\n :host {\n display: inline-block;\n }\n\n .rel-menu {\n position: relative;\n display: inline-block;\n background: var(--rel-color-bg-primary);\n color: var(--rel-color-text-primary);\n border-radius: var(--rel-borders-radius-border-radius-300);\n box-shadow: var(--rel-shadows-shadow-300);\n min-width: 220px;\n font-family: var(--rel-fontFamilies-primary, sans-serif);\n font-size: var(--rel-fontSizes-sm);\n padding: var(--rel-spacing-space-3xs) 0;\n outline: none;\n overflow: hidden;\n }\n\n .rel-menu:focus-visible,\n :host(:focus-visible) .rel-menu {\n outline: 2px solid var(--rel-color-border-focus);\n outline-offset: 2px;\n }\n\n .rel-menu-item {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--rel-spacing-space-xs);\n padding: var(--rel-spacing-space-xs) var(--rel-spacing-space-sm);\n line-height: var(--rel-lineHeights-sm);\n cursor: pointer;\n transition: background 0.15s ease, color 0.15s ease;\n user-select: none;\n }\n\n .rel-menu-item:hover {\n background: var(--rel-color-bg-hover);\n }\n\n .rel-menu-item:active {\n background: var(--rel-color-bg-hover);\n }\n\n .rel-menu-item.active {\n background: var(--rel-color-bg-hover);\n font-weight: var(--rel-fontWeights-medium);\n }\n\n .rel-menu-item.disabled {\n background-color: transparent;\n color: var(--rel-color-text-disabled);\n cursor: not-allowed;\n }\n\n .rel-menu-item[data-focused=\"true\"] {\n outline: 2px solid var(--rel-color-border-focus);\n outline-offset: -2px;\n }\n\n .menu-check-row {\n display: inline-flex;\n align-items: center;\n gap: var(--rel-spacing-space-2xs);\n width: 100%;\n }\n\n .menu-checkbox {\n width: 16px;\n height: 16px;\n cursor: pointer;\n }\n\n .menu-checkbox:disabled {\n cursor: not-allowed;\n }\n\n .menu-label {\n flex: 1 1 auto;\n }\n\n .chevron {\n font-size: var(--rel-fontSizes-lg);\n opacity: 0.75;\n transform: translateY(1px);\n }\n\n .rel-submenu {\n position: absolute;\n top: calc(-1 * var(--rel-spacing-space-3xs));\n left: calc(100% + var(--rel-spacing-space-2xs));\n min-width: 200px;\n background: var(--rel-color-bg-primary);\n color: var(--rel-color-text-primary);\n border-radius: var(--rel-borders-radius-border-radius-300);\n box-shadow: var(--rel-shadows-shadow-300);\n padding: var(--rel-spacing-space-3xs) 0;\n visibility: hidden;\n pointer-events: none;\n z-index: 20;\n }\n\n .rel-submenu.visible {\n visibility: visible;\n pointer-events: auto;\n }\n\n .rel-submenu .rel-menu-item {\n padding: var(--rel-spacing-space-xs) var(--rel-spacing-space-sm);\n }\n ";
|
|
426
|
+
createRenderRoot(): this;
|
|
391
427
|
connectedCallback(): void;
|
|
392
428
|
disconnectedCallback(): void;
|
|
429
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
393
430
|
private handleDocumentClick;
|
|
394
431
|
private onItemEnter;
|
|
395
432
|
private onItemLeave;
|
|
@@ -401,17 +438,46 @@ declare class RelMenu extends LitElement {
|
|
|
401
438
|
render(): lit_html.TemplateResult<1>;
|
|
402
439
|
}
|
|
403
440
|
|
|
441
|
+
interface RadioOption {
|
|
442
|
+
value: string;
|
|
443
|
+
label: string;
|
|
444
|
+
supportingText?: string;
|
|
445
|
+
disabled?: boolean;
|
|
446
|
+
}
|
|
447
|
+
declare class RelRadio extends LitElement {
|
|
448
|
+
options: RadioOption[];
|
|
449
|
+
name: string;
|
|
450
|
+
selectedValue: string | null;
|
|
451
|
+
disabled: boolean;
|
|
452
|
+
error: boolean;
|
|
453
|
+
errorMessage: string;
|
|
454
|
+
value: string;
|
|
455
|
+
checked: boolean;
|
|
456
|
+
private _onChange;
|
|
457
|
+
private _onTouched;
|
|
458
|
+
static styles: lit.CSSResult;
|
|
459
|
+
private onChange;
|
|
460
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
461
|
+
registerOnTouched(fn: () => void): void;
|
|
462
|
+
writeValue(value: string): void;
|
|
463
|
+
private renderOption;
|
|
464
|
+
render(): lit_html.TemplateResult<1>;
|
|
465
|
+
}
|
|
466
|
+
|
|
404
467
|
declare class RelMenubar extends LitElement {
|
|
405
468
|
private menus;
|
|
406
469
|
private openMenuIndex;
|
|
407
470
|
private focusedTriggerIndex;
|
|
408
471
|
private focusedItemIndex;
|
|
409
472
|
private openSubmenuElement;
|
|
410
|
-
private container;
|
|
411
473
|
private hoverSwitchEnabled;
|
|
412
|
-
|
|
474
|
+
private _onScroll?;
|
|
475
|
+
static readonly _css = "\n :host {\n display: block;\n }\n\n :host > slot {\n display: none;\n }\n\n .menubar-container {\n display: flex;\n align-items: stretch;\n background: var(--rel-color-bg-secondary);\n border: var(--rel-borders-width-stroke-100) solid var(--rel-color-border-default);\n border-radius: var(--rel-borders-radius-border-radius-200);\n overflow: hidden;\n padding: 0;\n gap: var(--rel-spacing-space-3xs);\n font-family: var(--rel-fontFamilies-primary);\n font-size: var(--rel-fontSizes-sm);\n height: 40px;\n }\n\n .menubar-trigger {\n display: flex;\n align-items: center;\n align-self: stretch;\n height: 100%;\n padding: 0 var(--rel-spacing-space-sm);\n background: transparent;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n color: var(--rel-color-text-heading);\n transition: background 0.15s ease;\n user-select: none;\n outline: none;\n }\n\n .menubar-trigger:hover,\n .menubar-trigger.active {\n background: var(--rel-color-bg-selected);\n }\n\n .menubar-trigger:focus-visible {\n outline: 2px solid var(--rel-color-border-focus);\n outline-offset: 2px;\n }\n\n .menubar-panel {\n position: fixed;\n min-width: 220px;\n background: var(--rel-color-bg-primary);\n border: var(--rel-borders-width-stroke-100) solid var(--rel-color-border-default);\n border-radius: var(--rel-borders-radius-border-radius-200);\n box-shadow: var(--rel-shadows-shadow-300);\n padding: 0;\n overflow: hidden;\n z-index: 1000;\n display: none;\n }\n\n .menubar-panel.open {\n display: block;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--rel-spacing-space-sm);\n padding: var(--rel-spacing-space-xs) var(--rel-spacing-space-md);\n cursor: pointer;\n transition: background 0.15s ease;\n user-select: none;\n color: var(--rel-color-text-heading);\n line-height: var(--rel-lineHeights-sm);\n }\n\n .menu-item:hover,\n .menu-item.focused {\n background: var(--rel-color-bg-selected);\n }\n\n .menu-item[data-disabled=\"true\"] {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .menu-separator {\n height: var(--rel-borders-width-stroke-100);\n background: var(--rel-color-border-divider);\n margin: 0;\n padding: 0;\n }\n\n rel-icon {\n display: inline-flex;\n pointer-events: none;\n }\n\n .menu-submenu-trigger {\n position: relative;\n }\n\n .menu-submenu-trigger rel-icon {\n opacity: 0.6;\n }\n\n .submenu-panel {\n position: fixed;\n min-width: 200px;\n background: var(--rel-color-bg-primary);\n border: var(--rel-borders-width-stroke-100) solid var(--rel-color-border-default);\n border-radius: var(--rel-borders-radius-border-radius-200);\n box-shadow: var(--rel-shadows-shadow-300);\n padding: 0;\n overflow: hidden;\n z-index: 1001;\n display: none;\n }\n\n .submenu-panel.open {\n display: block;\n }\n\n .menu-shortcut {\n opacity: 0.6;\n font-size: var(--rel-fontSizes-xs);\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: var(--rel-spacing-space-3xs);\n }\n\n .menubar-panel rel-checkbox {\n display: block;\n width: 100%;\n padding: var(--rel-spacing-space-xs, 8px) var(--rel-spacing-space-md, 16px);\n box-sizing: border-box;\n cursor: pointer;\n }\n ";
|
|
476
|
+
createRenderRoot(): this;
|
|
413
477
|
connectedCallback(): void;
|
|
414
478
|
disconnectedCallback(): void;
|
|
479
|
+
private _repositionOpenSubmenu;
|
|
480
|
+
private _repositionOpenMenu;
|
|
415
481
|
private discoverMenus;
|
|
416
482
|
private handleOutsideClick;
|
|
417
483
|
private closeAllMenus;
|
|
@@ -439,60 +505,208 @@ declare class RelMenubarMenu extends LitElement {
|
|
|
439
505
|
render(): lit_html.TemplateResult<1>;
|
|
440
506
|
}
|
|
441
507
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
508
|
+
/**
|
|
509
|
+
* @deprecated rel-navbar is deprecated and will be removed in a future release.
|
|
510
|
+
* Use rel-topbar and its sub-components instead:
|
|
511
|
+
* rel-topbar, rel-topbar-brand, rel-topbar-actions, rel-topbar-utilities,
|
|
512
|
+
* rel-topbar-item, rel-topbar-dropdown, rel-topbar-dropdown-item
|
|
513
|
+
*/
|
|
514
|
+
declare class RelNavbar extends LitElement {
|
|
515
|
+
constructor();
|
|
516
|
+
sticky: boolean;
|
|
517
|
+
device: "desktop" | "tablet" | "mobile";
|
|
451
518
|
static styles: lit.CSSResult;
|
|
452
|
-
connectedCallback(): void;
|
|
453
|
-
disconnectedCallback(): void;
|
|
454
|
-
private discoverItems;
|
|
455
|
-
private handleSlotChange;
|
|
456
|
-
private handleOutsideClick;
|
|
457
|
-
private openPanel;
|
|
458
|
-
private closePanel;
|
|
459
|
-
private positionPanel;
|
|
460
|
-
private handleItemClick;
|
|
461
|
-
private handleItemMouseEnter;
|
|
462
|
-
private handleKeyDown;
|
|
463
|
-
private focusItem;
|
|
464
|
-
private hasItemContent;
|
|
465
|
-
private renderDropdownPanel;
|
|
466
|
-
private getItemContent;
|
|
467
519
|
render(): lit_html.TemplateResult<1>;
|
|
468
520
|
}
|
|
469
521
|
|
|
470
|
-
declare class
|
|
522
|
+
declare class RelTopbarBrand extends LitElement {
|
|
523
|
+
src: string;
|
|
524
|
+
href: string;
|
|
525
|
+
label: string;
|
|
526
|
+
static styles: lit.CSSResult;
|
|
527
|
+
render(): lit_html.TemplateResult<1>;
|
|
528
|
+
}
|
|
529
|
+
declare global {
|
|
530
|
+
interface HTMLElementTagNameMap {
|
|
531
|
+
"rel-topbar-brand": RelTopbarBrand;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare class RelTopbarActions extends LitElement {
|
|
536
|
+
static styles: lit.CSSResult;
|
|
537
|
+
render(): lit_html.TemplateResult<1>;
|
|
538
|
+
}
|
|
539
|
+
declare global {
|
|
540
|
+
interface HTMLElementTagNameMap {
|
|
541
|
+
"rel-topbar-actions": RelTopbarActions;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare class RelTopbarUtilities extends LitElement {
|
|
546
|
+
static styles: lit.CSSResult;
|
|
547
|
+
render(): lit_html.TemplateResult<1>;
|
|
548
|
+
}
|
|
549
|
+
declare global {
|
|
550
|
+
interface HTMLElementTagNameMap {
|
|
551
|
+
"rel-topbar-utilities": RelTopbarUtilities;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class RelTopbarMobilePanel extends LitElement {
|
|
556
|
+
static styles: lit.CSSResult;
|
|
557
|
+
render(): lit_html.TemplateResult<1>;
|
|
558
|
+
}
|
|
559
|
+
declare global {
|
|
560
|
+
interface HTMLElementTagNameMap {
|
|
561
|
+
"rel-topbar-mobile-panel": RelTopbarMobilePanel;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare class RelTopbarDropdown extends LitElement {
|
|
566
|
+
static styles: lit.CSSResult;
|
|
567
|
+
render(): lit_html.TemplateResult<1>;
|
|
568
|
+
}
|
|
569
|
+
declare global {
|
|
570
|
+
interface HTMLElementTagNameMap {
|
|
571
|
+
"rel-topbar-dropdown": RelTopbarDropdown;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare class RelTopbarDropdownItem extends LitElement {
|
|
471
576
|
label: string;
|
|
472
577
|
href: string;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
578
|
+
active: boolean;
|
|
579
|
+
static styles: lit.CSSResult;
|
|
580
|
+
private _handleClick;
|
|
581
|
+
render(): lit_html.TemplateResult<1>;
|
|
582
|
+
}
|
|
583
|
+
declare global {
|
|
584
|
+
interface HTMLElementTagNameMap {
|
|
585
|
+
"rel-topbar-dropdown-item": RelTopbarDropdownItem;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
type TopbarVariant = "customer" | "carrier";
|
|
590
|
+
type TopbarForceLayout = "auto" | "desktop" | "tablet" | "mobile";
|
|
591
|
+
/**
|
|
592
|
+
* `rel-topbar` — Application-level top navigation / header shell.
|
|
593
|
+
*
|
|
594
|
+
* Slots:
|
|
595
|
+
* brand — Logo / wordmark region (left)
|
|
596
|
+
* (default) — Primary nav items (rel-topbar-item elements)
|
|
597
|
+
* actions — CTA / action buttons (customer) or dark-pill area (carrier)
|
|
598
|
+
* utilities — Utility icon buttons (notifications, search, etc.)
|
|
599
|
+
* profile — rel-topbar-profile tile
|
|
600
|
+
* mobile-panel — Collapsed nav panel shown when mobileOpen is true
|
|
601
|
+
*
|
|
602
|
+
* Events:
|
|
603
|
+
* rel-menu-toggle — fired when hamburger is clicked { open: boolean }
|
|
604
|
+
* rel-mobile-open-change — alias of rel-menu-toggle for convenience
|
|
605
|
+
* rel-nav-select — bubbled from child rel-topbar-item { value, label }
|
|
606
|
+
*/
|
|
607
|
+
declare class RelTopbar extends LitElement {
|
|
608
|
+
/** Visual variant — affects action/profile region styling */
|
|
609
|
+
variant: TopbarVariant;
|
|
610
|
+
/** Whether the mobile nav panel is currently open */
|
|
611
|
+
mobileOpen: boolean;
|
|
612
|
+
/** Whether to render the hamburger / close toggle button */
|
|
613
|
+
showMenuToggle: boolean;
|
|
614
|
+
/** Reduce height to compact (48 px) mode */
|
|
615
|
+
compact: boolean;
|
|
616
|
+
/** Stick topbar to top of viewport while scrolling */
|
|
617
|
+
sticky: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* Override the responsive layout for demos / storybook.
|
|
620
|
+
* 'auto' respects CSS media queries.
|
|
621
|
+
*/
|
|
622
|
+
forceLayout: TopbarForceLayout;
|
|
623
|
+
private _overflowItems;
|
|
624
|
+
private _overflowCount;
|
|
625
|
+
private _overflowItemsData;
|
|
626
|
+
private _resizeObserver?;
|
|
627
|
+
private _resizeTimer?;
|
|
628
|
+
private _measuring;
|
|
629
|
+
private _lastNavWidth;
|
|
477
630
|
static styles: lit.CSSResult;
|
|
478
|
-
connectedCallback(): void;
|
|
479
631
|
firstUpdated(): void;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
632
|
+
disconnectedCallback(): void;
|
|
633
|
+
private _measureNav;
|
|
634
|
+
private onRouterSlotChange;
|
|
635
|
+
private get layoutClass();
|
|
636
|
+
private handleMenuToggle;
|
|
483
637
|
render(): lit_html.TemplateResult<1>;
|
|
484
638
|
}
|
|
485
639
|
|
|
486
|
-
|
|
640
|
+
/**
|
|
641
|
+
* `rel-topbar-item` — A navigation item within rel-topbar.
|
|
642
|
+
*
|
|
643
|
+
* Renders as an `<a>` when `href` is supplied, otherwise a `<button>`.
|
|
644
|
+
*
|
|
645
|
+
* Slots:
|
|
646
|
+
* (default) — Label text / icon (overrides `label` property)
|
|
647
|
+
* prefix — Icon/content before the label
|
|
648
|
+
* suffix — Icon/content after the label (e.g. badge)
|
|
649
|
+
* dropdown — Expandable panel content shown below the item
|
|
650
|
+
*
|
|
651
|
+
* Events:
|
|
652
|
+
* rel-select — fired when a non-disabled, non-expandable item is activated
|
|
653
|
+
* rel-toggle — fired when an expandable item is opened/closed { open: boolean }
|
|
654
|
+
*/
|
|
655
|
+
declare class RelTopbarItem extends LitElement {
|
|
656
|
+
/** Accessible label — also shown as text when no default slot content */
|
|
657
|
+
label?: string;
|
|
658
|
+
/** Navigation href — renders an anchor element when set */
|
|
659
|
+
href?: string;
|
|
660
|
+
/** Marks this item as the current/active page */
|
|
661
|
+
active: boolean;
|
|
662
|
+
/** Prevents interaction */
|
|
663
|
+
disabled: boolean;
|
|
664
|
+
/** Shows a chevron and enables dropdown panel */
|
|
665
|
+
expandable: boolean;
|
|
666
|
+
/** Controlled open state of the dropdown panel */
|
|
667
|
+
open: boolean;
|
|
668
|
+
/** Optional string value forwarded in rel-select / rel-toggle events */
|
|
669
|
+
value?: string;
|
|
670
|
+
/** @internal tracks whether dropdown slot has content */
|
|
671
|
+
private _hasDropdown;
|
|
487
672
|
static styles: lit.CSSResult;
|
|
673
|
+
connectedCallback(): void;
|
|
674
|
+
disconnectedCallback(): void;
|
|
675
|
+
private _handleOutsideClick;
|
|
676
|
+
private _handleDocKeydown;
|
|
677
|
+
private _setOpen;
|
|
678
|
+
private _handleTriggerClick;
|
|
679
|
+
private _routeSlots;
|
|
680
|
+
private _handleDropdownSlotChange;
|
|
488
681
|
render(): lit_html.TemplateResult<1>;
|
|
489
682
|
}
|
|
490
683
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
684
|
+
type TopbarProfileType = "avatar" | "carrier";
|
|
685
|
+
type TopbarRewardTier = "gold" | "silver" | "platinum" | "bronze" | "regular";
|
|
686
|
+
/**
|
|
687
|
+
* `rel-topbar-profile` — Profile / user tile for the topbar right region.
|
|
688
|
+
*
|
|
689
|
+
* type="avatar" Customer avatar with initials circle + optional name/subtitle.
|
|
690
|
+
* type="carrier" Carrier reward tile with reward-tier badge + name/subtitle.
|
|
691
|
+
*/
|
|
692
|
+
declare class RelTopbarProfile extends LitElement {
|
|
693
|
+
/** Visual mode */
|
|
694
|
+
type: TopbarProfileType;
|
|
695
|
+
/** One or two initials shown in the avatar circle */
|
|
696
|
+
initials?: string;
|
|
697
|
+
/** Primary display name */
|
|
698
|
+
name?: string;
|
|
699
|
+
/** Secondary line (role, plan, etc.) */
|
|
700
|
+
subtitle?: string;
|
|
701
|
+
/** Reward tier — only meaningful when type="carrier" */
|
|
702
|
+
reward: TopbarRewardTier;
|
|
703
|
+
/** Compact mode — avatar only, no text */
|
|
704
|
+
compact: boolean;
|
|
494
705
|
static styles: lit.CSSResult;
|
|
495
706
|
render(): lit_html.TemplateResult<1>;
|
|
707
|
+
private _renderAvatar;
|
|
708
|
+
private _avatarBg;
|
|
709
|
+
private _renderCarrier;
|
|
496
710
|
}
|
|
497
711
|
|
|
498
712
|
type OtpType = "numeric" | "alphanumeric";
|
|
@@ -515,7 +729,6 @@ declare class RelOtp extends LitElement {
|
|
|
515
729
|
showSeparator: boolean;
|
|
516
730
|
size: "sm" | "md" | "lg";
|
|
517
731
|
private cells;
|
|
518
|
-
private focusedIndex;
|
|
519
732
|
private hiddenInput?;
|
|
520
733
|
private isUpdatingFromValue;
|
|
521
734
|
static styles: lit.CSSResult;
|
|
@@ -566,6 +779,7 @@ declare class RelPagination extends LitElement {
|
|
|
566
779
|
private get activePage();
|
|
567
780
|
private generatePageItems;
|
|
568
781
|
private handlePageChange;
|
|
782
|
+
private getHref;
|
|
569
783
|
private handleKeyDown;
|
|
570
784
|
private renderPrevIcon;
|
|
571
785
|
private renderNextIcon;
|
|
@@ -591,6 +805,7 @@ declare class RelPopover extends LitElement {
|
|
|
591
805
|
private contentWrapper;
|
|
592
806
|
private triggerEl;
|
|
593
807
|
private returnFocusEl;
|
|
808
|
+
private uniqueId;
|
|
594
809
|
static styles: lit.CSSResult;
|
|
595
810
|
connectedCallback(): void;
|
|
596
811
|
disconnectedCallback(): void;
|
|
@@ -611,6 +826,7 @@ declare class RelPopover extends LitElement {
|
|
|
611
826
|
private trapFocusLoop;
|
|
612
827
|
private getFocusable;
|
|
613
828
|
private updatePosition;
|
|
829
|
+
private onTriggerSlotChange;
|
|
614
830
|
private applyTriggerAria;
|
|
615
831
|
render(): lit_html.TemplateResult<1>;
|
|
616
832
|
}
|
|
@@ -641,55 +857,6 @@ declare class RelProgress extends LitElement {
|
|
|
641
857
|
render(): lit_html.TemplateResult<1>;
|
|
642
858
|
}
|
|
643
859
|
|
|
644
|
-
interface QuoteFormData {
|
|
645
|
-
pickupLocation: string;
|
|
646
|
-
dropoffLocation: string;
|
|
647
|
-
serviceLevel: "standard" | "guaranteed";
|
|
648
|
-
originType: "commercial" | "residential";
|
|
649
|
-
destinationType: "commercial" | "residential";
|
|
650
|
-
loadingRequirements: string;
|
|
651
|
-
deliveryRequirements: string;
|
|
652
|
-
loadingLimitedAccessType: string;
|
|
653
|
-
deliveryLimitedAccessType: string;
|
|
654
|
-
pickupDate: string;
|
|
655
|
-
isHazmat: boolean;
|
|
656
|
-
commodity: string;
|
|
657
|
-
commodityDescription: string;
|
|
658
|
-
handlingUnits: number;
|
|
659
|
-
handlingType: string;
|
|
660
|
-
length: number;
|
|
661
|
-
width: number;
|
|
662
|
-
height: number;
|
|
663
|
-
totalWeight: number;
|
|
664
|
-
class: string;
|
|
665
|
-
insuredValue: number;
|
|
666
|
-
nmfcNumber: string;
|
|
667
|
-
}
|
|
668
|
-
declare class RelQuotePage extends LitElement {
|
|
669
|
-
private formData;
|
|
670
|
-
static styles: lit.CSSResult;
|
|
671
|
-
private updateField;
|
|
672
|
-
render(): lit_html.TemplateResult<1>;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
interface RadioOption {
|
|
676
|
-
value: string;
|
|
677
|
-
label: string;
|
|
678
|
-
supportingText?: string;
|
|
679
|
-
disabled?: boolean;
|
|
680
|
-
error?: boolean;
|
|
681
|
-
}
|
|
682
|
-
declare class RelRadio extends LitElement {
|
|
683
|
-
options: RadioOption[];
|
|
684
|
-
name: string;
|
|
685
|
-
selectedValue: string | null;
|
|
686
|
-
disabled: boolean;
|
|
687
|
-
static styles: lit.CSSResult;
|
|
688
|
-
private onChange;
|
|
689
|
-
private renderOption;
|
|
690
|
-
render(): lit_html.TemplateResult<1>;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
860
|
declare class RelResizableGroup extends LitElement {
|
|
694
861
|
direction: "horizontal" | "vertical";
|
|
695
862
|
private panels;
|
|
@@ -789,227 +956,40 @@ declare class RelSelect extends LitElement {
|
|
|
789
956
|
leftIcon: string;
|
|
790
957
|
rightIcon: string;
|
|
791
958
|
static styles: lit.CSSResult;
|
|
959
|
+
connectedCallback(): void;
|
|
792
960
|
private onChange;
|
|
793
961
|
render(): lit_html.TemplateResult<1>;
|
|
794
962
|
}
|
|
795
963
|
|
|
796
|
-
type
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
964
|
+
type ModalSide = "top" | "bottom" | "center";
|
|
965
|
+
declare class RelModal extends LitElement {
|
|
966
|
+
open: boolean;
|
|
967
|
+
side: ModalSide;
|
|
968
|
+
title: string;
|
|
969
|
+
description: string;
|
|
970
|
+
dismissible: boolean;
|
|
803
971
|
modal: boolean;
|
|
804
|
-
private internalOpen;
|
|
805
|
-
static styles: lit.CSSResult;
|
|
806
|
-
connectedCallback(): void;
|
|
807
|
-
updated(changed: Map<string, unknown>): void;
|
|
808
|
-
private isControlled;
|
|
809
|
-
get activeOpen(): boolean;
|
|
810
|
-
setOpen(next: boolean, reason?: SheetCloseReason): void;
|
|
811
|
-
render(): lit_html.TemplateResult<1>;
|
|
812
|
-
}
|
|
813
|
-
declare class RelSheetTrigger extends LitElement {
|
|
814
|
-
static styles: lit.CSSResult;
|
|
815
|
-
private getSheet;
|
|
816
|
-
private handleClick;
|
|
817
|
-
render(): lit_html.TemplateResult<1>;
|
|
818
|
-
}
|
|
819
|
-
declare class RelSheetContent extends LitElement {
|
|
820
|
-
side: SheetSide;
|
|
821
|
-
size: SheetSize;
|
|
822
|
-
hideOverlay: boolean;
|
|
823
|
-
closeOnOverlay: boolean;
|
|
824
|
-
showClose: boolean;
|
|
825
|
-
private panelElement;
|
|
826
972
|
private overlayElement;
|
|
827
|
-
private sheet;
|
|
828
973
|
private previousFocus;
|
|
829
974
|
private originalBodyOverflow;
|
|
830
975
|
private originalBodyPaddingRight;
|
|
831
|
-
private isOpen;
|
|
832
976
|
static styles: lit.CSSResult;
|
|
833
977
|
connectedCallback(): void;
|
|
834
978
|
disconnectedCallback(): void;
|
|
835
|
-
|
|
836
|
-
private handleSheetOpenChange;
|
|
979
|
+
updated(changed: Map<string, unknown>): void;
|
|
837
980
|
private handleOpen;
|
|
838
981
|
private handleClose;
|
|
839
|
-
private cleanup;
|
|
840
982
|
private lockScroll;
|
|
841
983
|
private unlockScroll;
|
|
842
|
-
private focusPanel;
|
|
843
|
-
private getFocusableElements;
|
|
844
984
|
private handleKeydown;
|
|
845
985
|
private handleOverlayClick;
|
|
846
|
-
private
|
|
847
|
-
private getSizeValue;
|
|
848
|
-
private getTitle;
|
|
849
|
-
private getDescription;
|
|
850
|
-
render(): lit_html.TemplateResult<1>;
|
|
851
|
-
}
|
|
852
|
-
declare class RelSheetHeader extends LitElement {
|
|
853
|
-
static styles: lit.CSSResult;
|
|
854
|
-
render(): lit_html.TemplateResult<1>;
|
|
855
|
-
}
|
|
856
|
-
declare class RelSheetFooter extends LitElement {
|
|
857
|
-
static styles: lit.CSSResult;
|
|
858
|
-
render(): lit_html.TemplateResult<1>;
|
|
859
|
-
}
|
|
860
|
-
declare class RelSheetTitle extends LitElement {
|
|
861
|
-
static styles: lit.CSSResult;
|
|
862
|
-
render(): lit_html.TemplateResult<1>;
|
|
863
|
-
}
|
|
864
|
-
declare class RelSheetDescription extends LitElement {
|
|
865
|
-
static styles: lit.CSSResult;
|
|
866
|
-
render(): lit_html.TemplateResult<1>;
|
|
867
|
-
}
|
|
868
|
-
declare class RelSheetClose extends LitElement {
|
|
869
|
-
static styles: lit.CSSResult;
|
|
870
|
-
private getSheet;
|
|
871
|
-
private handleClick;
|
|
872
|
-
render(): lit_html.TemplateResult<1>;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
876
|
-
type SidebarSide = "left" | "right";
|
|
877
|
-
type SidebarCollapsible = "offcanvas" | "icon" | "none";
|
|
878
|
-
type SidebarWidth = "sm" | "md" | "lg";
|
|
879
|
-
type SidebarChangeReason = "trigger" | "rail" | "overlay" | "escape" | "shortcut" | "api";
|
|
880
|
-
declare class RelSidebarProvider extends LitElement {
|
|
881
|
-
open?: boolean;
|
|
882
|
-
defaultOpen: boolean;
|
|
883
|
-
collapsed?: boolean;
|
|
884
|
-
defaultCollapsed: boolean;
|
|
885
|
-
variant: SidebarVariant;
|
|
886
|
-
side: SidebarSide;
|
|
887
|
-
collapsible: SidebarCollapsible;
|
|
888
|
-
width: SidebarWidth;
|
|
889
|
-
persistKey: string;
|
|
890
|
-
keyboardShortcut: boolean;
|
|
891
|
-
disablePersist: boolean;
|
|
892
|
-
disableOverlayClose: boolean;
|
|
893
|
-
private internalOpen;
|
|
894
|
-
private internalCollapsed;
|
|
895
|
-
isMobile: boolean;
|
|
896
|
-
private mediaQuery;
|
|
897
|
-
private isInitialized;
|
|
898
|
-
static styles: lit.CSSResult;
|
|
899
|
-
connectedCallback(): void;
|
|
900
|
-
disconnectedCallback(): void;
|
|
901
|
-
updated(changed: Map<string, unknown>): void;
|
|
902
|
-
private isOpenControlled;
|
|
903
|
-
private isCollapsedControlled;
|
|
904
|
-
get activeOpen(): boolean;
|
|
905
|
-
get activeCollapsed(): boolean;
|
|
906
|
-
private setupMediaQuery;
|
|
907
|
-
private handleMediaChange;
|
|
908
|
-
private isOffcanvasMode;
|
|
909
|
-
private loadInitialState;
|
|
910
|
-
private getPersistedState;
|
|
911
|
-
private loadPersistedState;
|
|
912
|
-
private persistState;
|
|
913
|
-
private handleKeyDown;
|
|
914
|
-
setOpen(next: boolean, reason?: SidebarChangeReason): void;
|
|
915
|
-
setCollapsed(next: boolean, reason?: SidebarChangeReason): void;
|
|
916
|
-
private dispatchChangeEvent;
|
|
917
|
-
private notifyStateChange;
|
|
918
|
-
render(): lit_html.TemplateResult<1>;
|
|
919
|
-
}
|
|
920
|
-
declare class RelSidebar extends LitElement {
|
|
921
|
-
inset: boolean;
|
|
922
|
-
private isOpen;
|
|
923
|
-
private isCollapsed;
|
|
924
|
-
private isMobile;
|
|
925
|
-
private side;
|
|
926
|
-
private variant;
|
|
927
|
-
private collapsible;
|
|
928
|
-
private width;
|
|
929
|
-
private containerElement;
|
|
930
|
-
private provider;
|
|
931
|
-
private triggerElement;
|
|
932
|
-
private originalBodyOverflow;
|
|
933
|
-
private originalBodyPaddingRight;
|
|
934
|
-
static styles: lit.CSSResult;
|
|
935
|
-
connectedCallback(): void;
|
|
936
|
-
disconnectedCallback(): void;
|
|
937
|
-
private findProvider;
|
|
938
|
-
private syncState;
|
|
939
|
-
private handleStateChange;
|
|
940
|
-
private isOffcanvasMode;
|
|
941
|
-
private lockScroll;
|
|
942
|
-
private unlockScroll;
|
|
943
|
-
private setupFocusTrap;
|
|
944
|
-
private removeFocusTrap;
|
|
945
|
-
private getFocusableElements;
|
|
946
|
-
private handleKeydown;
|
|
947
|
-
private handleOverlayClick;
|
|
948
|
-
private cleanup;
|
|
949
|
-
private getWidthValue;
|
|
950
|
-
render(): lit_html.TemplateResult<1>;
|
|
951
|
-
}
|
|
952
|
-
declare class RelSidebarTrigger extends LitElement {
|
|
953
|
-
private isOpen;
|
|
954
|
-
private isCollapsed;
|
|
955
|
-
private provider;
|
|
956
|
-
static styles: lit.CSSResult;
|
|
957
|
-
connectedCallback(): void;
|
|
958
|
-
disconnectedCallback(): void;
|
|
959
|
-
private findProvider;
|
|
960
|
-
private syncState;
|
|
961
|
-
private handleStateChange;
|
|
962
|
-
private handleClick;
|
|
963
|
-
render(): lit_html.TemplateResult<1>;
|
|
964
|
-
}
|
|
965
|
-
declare class RelSidebarHeader extends LitElement {
|
|
966
|
-
static styles: lit.CSSResult;
|
|
967
|
-
render(): lit_html.TemplateResult<1>;
|
|
968
|
-
}
|
|
969
|
-
declare class RelSidebarContent extends LitElement {
|
|
970
|
-
static styles: lit.CSSResult;
|
|
971
|
-
render(): lit_html.TemplateResult<1>;
|
|
972
|
-
}
|
|
973
|
-
declare class RelSidebarFooter extends LitElement {
|
|
974
|
-
static styles: lit.CSSResult;
|
|
975
|
-
render(): lit_html.TemplateResult<1>;
|
|
976
|
-
}
|
|
977
|
-
declare class RelSidebarGroup extends LitElement {
|
|
978
|
-
static styles: lit.CSSResult;
|
|
979
|
-
render(): lit_html.TemplateResult<1>;
|
|
980
|
-
}
|
|
981
|
-
declare class RelSidebarGroupLabel extends LitElement {
|
|
982
|
-
static styles: lit.CSSResult;
|
|
983
|
-
render(): lit_html.TemplateResult<1>;
|
|
984
|
-
}
|
|
985
|
-
declare class RelSidebarGroupContent extends LitElement {
|
|
986
|
-
static styles: lit.CSSResult;
|
|
987
|
-
render(): lit_html.TemplateResult<1>;
|
|
988
|
-
}
|
|
989
|
-
declare class RelSidebarMenu extends LitElement {
|
|
990
|
-
static styles: lit.CSSResult;
|
|
991
|
-
connectedCallback(): void;
|
|
992
|
-
disconnectedCallback(): void;
|
|
993
|
-
private handleKeyDown;
|
|
994
|
-
render(): lit_html.TemplateResult<1>;
|
|
995
|
-
}
|
|
996
|
-
declare class RelSidebarMenuItem extends LitElement {
|
|
997
|
-
static styles: lit.CSSResult;
|
|
986
|
+
private handleCloseButtonClick;
|
|
998
987
|
render(): lit_html.TemplateResult<1>;
|
|
999
988
|
}
|
|
1000
|
-
declare
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
private isCollapsed;
|
|
1005
|
-
private provider;
|
|
1006
|
-
static styles: lit.CSSResult;
|
|
1007
|
-
connectedCallback(): void;
|
|
1008
|
-
disconnectedCallback(): void;
|
|
1009
|
-
private findProvider;
|
|
1010
|
-
private syncState;
|
|
1011
|
-
private handleStateChange;
|
|
1012
|
-
render(): lit_html.TemplateResult<1>;
|
|
989
|
+
declare global {
|
|
990
|
+
interface HTMLElementTagNameMap {
|
|
991
|
+
"rel-modal": RelModal;
|
|
992
|
+
}
|
|
1013
993
|
}
|
|
1014
994
|
|
|
1015
995
|
type SliderType = "continuous" | "discrete";
|
|
@@ -1025,6 +1005,8 @@ declare class RelSlider extends LitElement {
|
|
|
1025
1005
|
showBubble: boolean;
|
|
1026
1006
|
value: number;
|
|
1027
1007
|
private ticks;
|
|
1008
|
+
private _onChange;
|
|
1009
|
+
private _onTouched;
|
|
1028
1010
|
static styles: lit.CSSResult;
|
|
1029
1011
|
connectedCallback(): void;
|
|
1030
1012
|
updated(changedProperties: Map<string, any>): void;
|
|
@@ -1033,6 +1015,9 @@ declare class RelSlider extends LitElement {
|
|
|
1033
1015
|
private getTickLeftPct;
|
|
1034
1016
|
private isTickActive;
|
|
1035
1017
|
private onInput;
|
|
1018
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
1019
|
+
registerOnTouched(fn: () => void): void;
|
|
1020
|
+
writeValue(value: number): void;
|
|
1036
1021
|
private updateActiveWidth;
|
|
1037
1022
|
private renderThumbContainer;
|
|
1038
1023
|
private renderTicks;
|
|
@@ -1050,17 +1035,19 @@ declare class RelSnackbar extends LitElement {
|
|
|
1050
1035
|
lines: SnackbarLines;
|
|
1051
1036
|
duration: number;
|
|
1052
1037
|
type: SnackbarType;
|
|
1038
|
+
show: boolean;
|
|
1053
1039
|
private visible;
|
|
1054
|
-
private
|
|
1040
|
+
private _dismissTimer;
|
|
1055
1041
|
static styles: lit.CSSResult;
|
|
1056
1042
|
connectedCallback(): void;
|
|
1043
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
1057
1044
|
updated(changed: Map<string, unknown>): void;
|
|
1058
1045
|
disconnectedCallback(): void;
|
|
1059
1046
|
private setAutoDismiss;
|
|
1060
|
-
private
|
|
1047
|
+
private clearDismissTimer;
|
|
1061
1048
|
private onActionClick;
|
|
1062
1049
|
private dismiss;
|
|
1063
|
-
private
|
|
1050
|
+
private renderIcon;
|
|
1064
1051
|
render(): lit_html.TemplateResult<1>;
|
|
1065
1052
|
}
|
|
1066
1053
|
|
|
@@ -1090,10 +1077,16 @@ declare class RelStepper extends LitElement {
|
|
|
1090
1077
|
declare class RelSwitch extends LitElement {
|
|
1091
1078
|
checked: boolean;
|
|
1092
1079
|
disabled: boolean;
|
|
1080
|
+
value: string;
|
|
1081
|
+
private _onChange;
|
|
1082
|
+
private _onTouched;
|
|
1093
1083
|
private isFocused;
|
|
1094
1084
|
private isPressed;
|
|
1095
1085
|
static styles: lit.CSSResult;
|
|
1096
1086
|
private toggle;
|
|
1087
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
1088
|
+
registerOnTouched(fn: () => void): void;
|
|
1089
|
+
writeValue(checked: boolean): void;
|
|
1097
1090
|
private handleFocus;
|
|
1098
1091
|
private handleBlur;
|
|
1099
1092
|
private handleMouseDown;
|
|
@@ -1106,64 +1099,26 @@ interface TabItem {
|
|
|
1106
1099
|
badge?: number;
|
|
1107
1100
|
disabled?: boolean;
|
|
1108
1101
|
}
|
|
1102
|
+
declare class RelTabItem extends LitElement {
|
|
1103
|
+
label: string;
|
|
1104
|
+
value: string;
|
|
1105
|
+
badge: number;
|
|
1106
|
+
disabled: boolean;
|
|
1107
|
+
render(): lit_html.TemplateResult<1>;
|
|
1108
|
+
}
|
|
1109
1109
|
declare class RelTab extends LitElement {
|
|
1110
1110
|
tabs: TabItem[];
|
|
1111
1111
|
activeIndex: number;
|
|
1112
|
+
private _tabItems;
|
|
1112
1113
|
static styles: lit.CSSResult;
|
|
1114
|
+
private _onSlotChange;
|
|
1115
|
+
private get _effectiveTabs();
|
|
1113
1116
|
private selectTab;
|
|
1114
1117
|
private onKeyDown;
|
|
1115
1118
|
render(): lit_html.TemplateResult<1>;
|
|
1116
1119
|
}
|
|
1117
1120
|
|
|
1118
|
-
|
|
1119
|
-
bordered: boolean;
|
|
1120
|
-
compact: boolean;
|
|
1121
|
-
static styles: lit.CSSResult;
|
|
1122
|
-
render(): lit_html.TemplateResult<1>;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
declare class RelTableHeader extends LitElement {
|
|
1126
|
-
static styles: lit.CSSResult;
|
|
1127
|
-
render(): lit_html.TemplateResult<1>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare class RelTableBody extends LitElement {
|
|
1131
|
-
static styles: lit.CSSResult;
|
|
1132
|
-
render(): lit_html.TemplateResult<1>;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
declare class RelTableFooter extends LitElement {
|
|
1136
|
-
static styles: lit.CSSResult;
|
|
1137
|
-
render(): lit_html.TemplateResult<1>;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
declare class RelTableRow extends LitElement {
|
|
1141
|
-
selected: boolean;
|
|
1142
|
-
static styles: lit.CSSResult;
|
|
1143
|
-
render(): lit_html.TemplateResult<1>;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
declare class RelTableHead extends LitElement {
|
|
1147
|
-
align: "left" | "center" | "right";
|
|
1148
|
-
static styles: lit.CSSResult;
|
|
1149
|
-
render(): lit_html.TemplateResult<1>;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
declare class RelTableCell extends LitElement {
|
|
1153
|
-
align: "left" | "center" | "right";
|
|
1154
|
-
colspan?: number;
|
|
1155
|
-
static styles: lit.CSSResult;
|
|
1156
|
-
render(): lit_html.TemplateResult<1>;
|
|
1157
|
-
updated(changedProperties: Map<string, any>): void;
|
|
1158
|
-
connectedCallback(): void;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
declare class RelTableCaption extends LitElement {
|
|
1162
|
-
static styles: lit.CSSResult;
|
|
1163
|
-
render(): lit_html.TemplateResult<1>;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
type TextFieldState = "default" | "focused" | "error" | "disabled";
|
|
1121
|
+
type TextFieldState = "default" | "error" | "disabled";
|
|
1167
1122
|
type TextFieldSize = "small" | "medium" | "large";
|
|
1168
1123
|
declare class RelTextfield extends LitElement {
|
|
1169
1124
|
label?: string;
|
|
@@ -1175,9 +1130,12 @@ declare class RelTextfield extends LitElement {
|
|
|
1175
1130
|
supportingText?: string;
|
|
1176
1131
|
state: TextFieldState;
|
|
1177
1132
|
size: TextFieldSize;
|
|
1133
|
+
floatingLabel: boolean;
|
|
1178
1134
|
private internalState;
|
|
1135
|
+
private _wasError;
|
|
1136
|
+
private uniqueId;
|
|
1179
1137
|
static styles: lit.CSSResult;
|
|
1180
|
-
|
|
1138
|
+
connectedCallback(): void;
|
|
1181
1139
|
private handleFocus;
|
|
1182
1140
|
private handleBlur;
|
|
1183
1141
|
private handleInput;
|
|
@@ -1190,10 +1148,13 @@ declare class RelToast extends LitElement {
|
|
|
1190
1148
|
type: ToastType;
|
|
1191
1149
|
actionLabel?: string;
|
|
1192
1150
|
duration: number;
|
|
1151
|
+
show: boolean;
|
|
1193
1152
|
private visible;
|
|
1194
|
-
private
|
|
1153
|
+
private _dismissTimer;
|
|
1195
1154
|
static styles: lit.CSSResult;
|
|
1196
|
-
|
|
1155
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
1156
|
+
disconnectedCallback(): void;
|
|
1157
|
+
open(): void;
|
|
1197
1158
|
close(): void;
|
|
1198
1159
|
private handleActionClick;
|
|
1199
1160
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -1204,8 +1165,11 @@ declare class RelTooltip extends LitElement {
|
|
|
1204
1165
|
text: string;
|
|
1205
1166
|
position: TooltipPosition;
|
|
1206
1167
|
showTail: boolean;
|
|
1168
|
+
private uniqueId;
|
|
1207
1169
|
static styles: lit.CSSResult;
|
|
1170
|
+
firstUpdated(): void;
|
|
1171
|
+
private linkTrigger;
|
|
1208
1172
|
render(): lit_html.TemplateResult<1>;
|
|
1209
1173
|
}
|
|
1210
1174
|
|
|
1211
|
-
export { type BreadcrumbItem, type DrawerCloseReason, type DrawerSide, type MenuItem, type MenuType, type
|
|
1175
|
+
export { type BreadcrumbItem, type DrawerCloseReason, type DrawerSide, type MenuItem, type MenuType, type ModalSide, 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, RelModal, RelNavbar, RelOtp, RelPagination, RelPopover, RelPopoverContent, RelProgress, RelRadio, RelRangePicker, RelResizableGroup, RelResizableHandle, RelResizablePanel, RelSegmentedButton, RelSelect, 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 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 };
|