@duyluonganduin/acl-web-components 0.0.7 → 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
 
@@ -182,10 +199,15 @@ export declare class AnduinPopover extends LitElement {
182
199
  static styles: CSSResult;
183
200
  open: boolean;
184
201
  placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
202
+ private _triggerEl;
203
+ private _panelEl;
185
204
  private _onTriggerClick;
186
205
  private _onOutsideClick;
206
+ private _onScrollOrResize;
187
207
  connectedCallback(): void;
188
208
  disconnectedCallback(): void;
209
+ updated(changed: Map<string, unknown>): void;
210
+ private _updatePosition;
189
211
  render(): TemplateResult<1>;
190
212
  }
191
213
 
@@ -365,12 +387,25 @@ export declare const FIELD_LABEL_CLICK = "anduin-field:label-click";
365
387
 
366
388
  export declare const FIELD_LABEL_CLICK_COORDINATED = "anduin-field:label-click-coordinated";
367
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
+
368
399
  export declare function getBadgeVariantClass(variant: string): string;
369
400
 
370
401
  export declare const INPUT_CHANGE = "anduin-input:change";
371
402
 
403
+ export declare const INPUT_CLEAR = "anduin-input:clear";
404
+
372
405
  export declare const MENU_ITEM_CLICK = "anduin-menu-item:click";
373
406
 
407
+ export declare function resolveFileIcon(type: string, size: 16 | 24 | 32): FileIconDef | null;
408
+
374
409
  export declare const TAB_CHANGE = "anduin-tab:change";
375
410
 
376
411
  export declare const TAB_TRIGGER_CLICK = "anduin-tab:trigger-click";