@duyluonganduin/acl-web-components 0.0.6 → 0.0.8

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.
@@ -1,5 +1,6 @@
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
 
5
6
  export declare class AnduinBadge extends LitElement {
@@ -107,6 +108,13 @@ export declare class AnduinFieldLabel extends LitElement {
107
108
  render(): TemplateResult<1>;
108
109
  }
109
110
 
111
+ export declare class AnduinFileIcon extends LitElement {
112
+ static styles: CSSResult;
113
+ type: string;
114
+ size: FileIconSize;
115
+ render(): typeof nothing | TemplateResult<1>;
116
+ }
117
+
110
118
  export declare class AnduinIcon extends LitElement {
111
119
  static styles: CSSResult;
112
120
  name: string;
@@ -117,16 +125,20 @@ export declare class AnduinIcon extends LitElement {
117
125
  export declare class AnduinInput extends LitElement {
118
126
  static styles: CSSResult;
119
127
  value: string;
120
- size: string;
128
+ size: 'small' | 'default' | 'large';
121
129
  disabled: boolean;
122
130
  readonly: boolean;
123
131
  placeholder: string;
124
132
  inputid: string;
125
133
  status: string;
134
+ startIcon: string;
135
+ endIcon: string;
136
+ clearable: boolean;
126
137
  private inputEl;
127
138
  connectedCallback(): void;
128
139
  updated(): void;
129
140
  private onInput;
141
+ private onClear;
130
142
  render(): TemplateResult<1>;
131
143
  }
132
144
 
@@ -140,11 +152,16 @@ export declare class AnduinMenu extends LitElement {
140
152
  static styles: CSSResult;
141
153
  open: boolean;
142
154
  placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
155
+ private _triggerEl;
156
+ private _panelEl;
143
157
  private _onTriggerClick;
144
158
  private _onOutsideClick;
145
159
  private _onItemClick;
160
+ private _onScrollOrResize;
146
161
  connectedCallback(): void;
147
162
  disconnectedCallback(): void;
163
+ updated(changed: Map<string, unknown>): void;
164
+ private _updatePosition;
148
165
  render(): TemplateResult<1>;
149
166
  }
150
167
 
@@ -157,14 +174,40 @@ export declare class AnduinMenuItem extends LitElement {
157
174
  render(): TemplateResult<1>;
158
175
  }
159
176
 
177
+ export declare class AnduinModal extends LitElement {
178
+ static styles: CSSResult;
179
+ open: boolean;
180
+ heading: string;
181
+ hideFooter: boolean;
182
+ maxWidth: '480' | '600' | '720' | '960' | '1160' | string;
183
+ private _leaving;
184
+ private static readonly _PRESETS;
185
+ updated(changed: Map<PropertyKey, unknown>): void;
186
+ private dispatch;
187
+ private onOverlayClick;
188
+ private onClose;
189
+ render(): TemplateResult<1>;
190
+ }
191
+
192
+ export declare class AnduinModalClose extends HTMLElement {
193
+ connectedCallback(): void;
194
+ disconnectedCallback(): void;
195
+ private _onClick;
196
+ }
197
+
160
198
  export declare class AnduinPopover extends LitElement {
161
199
  static styles: CSSResult;
162
200
  open: boolean;
163
201
  placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
202
+ private _triggerEl;
203
+ private _panelEl;
164
204
  private _onTriggerClick;
165
205
  private _onOutsideClick;
206
+ private _onScrollOrResize;
166
207
  connectedCallback(): void;
167
208
  disconnectedCallback(): void;
209
+ updated(changed: Map<string, unknown>): void;
210
+ private _updatePosition;
168
211
  render(): TemplateResult<1>;
169
212
  }
170
213
 
@@ -344,12 +387,25 @@ export declare const FIELD_LABEL_CLICK = "anduin-field:label-click";
344
387
 
345
388
  export declare const FIELD_LABEL_CLICK_COORDINATED = "anduin-field:label-click-coordinated";
346
389
 
390
+ export declare const FILE_ICONS: Record<string, Partial<Record<16 | 24 | 32, FileIconDef>>>;
391
+
392
+ export declare interface FileIconDef {
393
+ viewBox: string;
394
+ paths: string;
395
+ }
396
+
397
+ export declare type FileIconSize = 16 | 24 | 32;
398
+
347
399
  export declare function getBadgeVariantClass(variant: string): string;
348
400
 
349
401
  export declare const INPUT_CHANGE = "anduin-input:change";
350
402
 
403
+ export declare const INPUT_CLEAR = "anduin-input:clear";
404
+
351
405
  export declare const MENU_ITEM_CLICK = "anduin-menu-item:click";
352
406
 
407
+ export declare function resolveFileIcon(type: string, size: 16 | 24 | 32): FileIconDef | null;
408
+
353
409
  export declare const TAB_CHANGE = "anduin-tab:change";
354
410
 
355
411
  export declare const TAB_TRIGGER_CLICK = "anduin-tab:trigger-click";