@duyluonganduin/acl-web-components 0.0.7 → 0.0.9
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/acl-web-components.cjs +484 -172
- package/dist/acl-web-components.d.ts +69 -1
- package/dist/acl-web-components.js +1738 -1059
- package/dist/react.d.ts +37 -1
- package/package.json +1 -1
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
+
import { nothing } from 'lit';
|
|
3
4
|
import { TemplateResult } from 'lit-html';
|
|
4
5
|
|
|
6
|
+
export declare class AnduinAvatar extends LitElement {
|
|
7
|
+
static styles: CSSResult;
|
|
8
|
+
src: string;
|
|
9
|
+
name: string;
|
|
10
|
+
alt: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
size: AvatarSize;
|
|
13
|
+
shape: AvatarShape;
|
|
14
|
+
private _imgError;
|
|
15
|
+
private _onImgError;
|
|
16
|
+
private _iconSize;
|
|
17
|
+
render(): TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
|
|
5
20
|
export declare class AnduinBadge extends LitElement {
|
|
6
21
|
static styles: CSSResult[];
|
|
7
22
|
variant: string;
|
|
@@ -107,6 +122,13 @@ export declare class AnduinFieldLabel extends LitElement {
|
|
|
107
122
|
render(): TemplateResult<1>;
|
|
108
123
|
}
|
|
109
124
|
|
|
125
|
+
export declare class AnduinFileIcon extends LitElement {
|
|
126
|
+
static styles: CSSResult;
|
|
127
|
+
type: string;
|
|
128
|
+
size: FileIconSize;
|
|
129
|
+
render(): typeof nothing | TemplateResult<1>;
|
|
130
|
+
}
|
|
131
|
+
|
|
110
132
|
export declare class AnduinIcon extends LitElement {
|
|
111
133
|
static styles: CSSResult;
|
|
112
134
|
name: string;
|
|
@@ -117,16 +139,20 @@ export declare class AnduinIcon extends LitElement {
|
|
|
117
139
|
export declare class AnduinInput extends LitElement {
|
|
118
140
|
static styles: CSSResult;
|
|
119
141
|
value: string;
|
|
120
|
-
size:
|
|
142
|
+
size: 'small' | 'default' | 'large';
|
|
121
143
|
disabled: boolean;
|
|
122
144
|
readonly: boolean;
|
|
123
145
|
placeholder: string;
|
|
124
146
|
inputid: string;
|
|
125
147
|
status: string;
|
|
148
|
+
startIcon: string;
|
|
149
|
+
endIcon: string;
|
|
150
|
+
clearable: boolean;
|
|
126
151
|
private inputEl;
|
|
127
152
|
connectedCallback(): void;
|
|
128
153
|
updated(): void;
|
|
129
154
|
private onInput;
|
|
155
|
+
private onClear;
|
|
130
156
|
render(): TemplateResult<1>;
|
|
131
157
|
}
|
|
132
158
|
|
|
@@ -140,11 +166,16 @@ export declare class AnduinMenu extends LitElement {
|
|
|
140
166
|
static styles: CSSResult;
|
|
141
167
|
open: boolean;
|
|
142
168
|
placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
|
|
169
|
+
private _triggerEl;
|
|
170
|
+
private _panelEl;
|
|
143
171
|
private _onTriggerClick;
|
|
144
172
|
private _onOutsideClick;
|
|
145
173
|
private _onItemClick;
|
|
174
|
+
private _onScrollOrResize;
|
|
146
175
|
connectedCallback(): void;
|
|
147
176
|
disconnectedCallback(): void;
|
|
177
|
+
updated(changed: Map<string, unknown>): void;
|
|
178
|
+
private _updatePosition;
|
|
148
179
|
render(): TemplateResult<1>;
|
|
149
180
|
}
|
|
150
181
|
|
|
@@ -161,8 +192,10 @@ export declare class AnduinModal extends LitElement {
|
|
|
161
192
|
static styles: CSSResult;
|
|
162
193
|
open: boolean;
|
|
163
194
|
heading: string;
|
|
195
|
+
hideHeader: boolean;
|
|
164
196
|
hideFooter: boolean;
|
|
165
197
|
maxWidth: '480' | '600' | '720' | '960' | '1160' | string;
|
|
198
|
+
fullscreen: boolean;
|
|
166
199
|
private _leaving;
|
|
167
200
|
private static readonly _PRESETS;
|
|
168
201
|
updated(changed: Map<PropertyKey, unknown>): void;
|
|
@@ -182,10 +215,26 @@ export declare class AnduinPopover extends LitElement {
|
|
|
182
215
|
static styles: CSSResult;
|
|
183
216
|
open: boolean;
|
|
184
217
|
placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
|
|
218
|
+
private _visible;
|
|
219
|
+
private _triggerEl;
|
|
220
|
+
private _panelEl;
|
|
221
|
+
private _closeTransitionEndHandler;
|
|
185
222
|
private _onTriggerClick;
|
|
186
223
|
private _onOutsideClick;
|
|
224
|
+
private _onScrollOrResize;
|
|
225
|
+
private _onPopoverClose;
|
|
187
226
|
connectedCallback(): void;
|
|
188
227
|
disconnectedCallback(): void;
|
|
228
|
+
updated(changed: Map<string, unknown>): void;
|
|
229
|
+
private _cancelCloseAnimation;
|
|
230
|
+
private _startCloseAnimation;
|
|
231
|
+
private _updatePosition;
|
|
232
|
+
render(): TemplateResult<1>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare class AnduinPopoverClose extends LitElement {
|
|
236
|
+
static styles: CSSResult;
|
|
237
|
+
private _onClick;
|
|
189
238
|
render(): TemplateResult<1>;
|
|
190
239
|
}
|
|
191
240
|
|
|
@@ -351,6 +400,10 @@ export declare class AnduinWellClose extends LitElement {
|
|
|
351
400
|
render(): TemplateResult<1>;
|
|
352
401
|
}
|
|
353
402
|
|
|
403
|
+
export declare type AvatarShape = 'circle' | 'rounded';
|
|
404
|
+
|
|
405
|
+
export declare type AvatarSize = 16 | 20 | 24 | 32;
|
|
406
|
+
|
|
354
407
|
export declare const BADGE_STYLES: CSSResult;
|
|
355
408
|
|
|
356
409
|
export declare type ButtonAppearance = 'filled' | 'outlined' | 'plain' | 'text';
|
|
@@ -365,12 +418,27 @@ export declare const FIELD_LABEL_CLICK = "anduin-field:label-click";
|
|
|
365
418
|
|
|
366
419
|
export declare const FIELD_LABEL_CLICK_COORDINATED = "anduin-field:label-click-coordinated";
|
|
367
420
|
|
|
421
|
+
export declare const FILE_ICONS: Record<string, Partial<Record<16 | 24 | 32, FileIconDef>>>;
|
|
422
|
+
|
|
423
|
+
export declare interface FileIconDef {
|
|
424
|
+
viewBox: string;
|
|
425
|
+
paths: string;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export declare type FileIconSize = 16 | 24 | 32;
|
|
429
|
+
|
|
368
430
|
export declare function getBadgeVariantClass(variant: string): string;
|
|
369
431
|
|
|
370
432
|
export declare const INPUT_CHANGE = "anduin-input:change";
|
|
371
433
|
|
|
434
|
+
export declare const INPUT_CLEAR = "anduin-input:clear";
|
|
435
|
+
|
|
372
436
|
export declare const MENU_ITEM_CLICK = "anduin-menu-item:click";
|
|
373
437
|
|
|
438
|
+
export declare const POPOVER_CLOSE = "anduin-popover:close";
|
|
439
|
+
|
|
440
|
+
export declare function resolveFileIcon(type: string, size: 16 | 24 | 32): FileIconDef | null;
|
|
441
|
+
|
|
374
442
|
export declare const TAB_CHANGE = "anduin-tab:change";
|
|
375
443
|
|
|
376
444
|
export declare const TAB_TRIGGER_CLICK = "anduin-tab:trigger-click";
|