@progressio_resources/gravity-design-system 2.1.0 → 2.1.2
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/esm2022/lib/components/gravity-attach-file/gravity-attach-file.component.mjs +26 -7
- package/esm2022/lib/components/gravity-table/gravity-table.component.mjs +34 -8
- package/fesm2022/progressio_resources-gravity-design-system.mjs +58 -13
- package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-attach-file/gravity-attach-file.component.d.ts +8 -4
- package/lib/components/gravity-table/gravity-table.component.d.ts +9 -6
- package/package.json +1 -1
- package/src/lib/styles/components/_tables.scss +2 -1
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GravityAttachFileComponent {
|
|
4
|
-
|
|
3
|
+
export declare class GravityAttachFileComponent implements AfterViewInit {
|
|
4
|
+
fileValueAsBase64StringResponse: EventEmitter<string>;
|
|
5
5
|
currentLang: string;
|
|
6
6
|
cypressTag: string;
|
|
7
|
+
inputId: string;
|
|
7
8
|
label: string;
|
|
8
9
|
required: boolean;
|
|
9
10
|
state: 'readonly' | 'disabled' | 'enabled';
|
|
11
|
+
supportedDocumentTypes: ('*' | '.pdf' | '.doc' | '.docx' | '.jpg' | '.png' | '.jpeg' | 'audio/*' | 'video/*' | 'image/*')[];
|
|
10
12
|
supportTextContent: string;
|
|
11
13
|
supportTextType: 'neutro' | 'negative' | 'positive';
|
|
12
14
|
file: File;
|
|
15
|
+
supportedTypes: string;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
13
17
|
handleFileInput($event: any): void;
|
|
14
18
|
static convertFileToBase64(file: File): Promise<string>;
|
|
15
19
|
removeFile(): void;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityAttachFileComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityAttachFileComponent, "gravity-attach-file", never, { "currentLang": { "alias": "currentLang"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "state": { "alias": "state"; "required": false; }; "supportTextContent": { "alias": "supportTextContent"; "required": false; }; "supportTextType": { "alias": "supportTextType"; "required": false; }; }, { "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityAttachFileComponent, "gravity-attach-file", never, { "currentLang": { "alias": "currentLang"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "state": { "alias": "state"; "required": false; }; "supportedDocumentTypes": { "alias": "supportedDocumentTypes"; "required": false; }; "supportTextContent": { "alias": "supportTextContent"; "required": false; }; "supportTextType": { "alias": "supportTextType"; "required": false; }; }, { "fileValueAsBase64StringResponse": "response"; }, never, never, false, never>;
|
|
18
22
|
}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GravityTableComponent implements AfterViewInit {
|
|
3
|
+
export declare class GravityTableComponent implements AfterViewInit, OnChanges, AfterContentChecked {
|
|
4
4
|
private readonly renderer;
|
|
5
|
-
|
|
5
|
+
tableDensity: 'standard' | 'compressed';
|
|
6
|
+
tableSizeInput: 'xl' | 'lg' | 'md' | 'sm' | 'auto';
|
|
6
7
|
readonly tableContainer: ElementRef;
|
|
7
8
|
private firstTime;
|
|
8
9
|
private tableElement;
|
|
9
10
|
tableId: string;
|
|
10
|
-
tableSize:
|
|
11
|
+
tableSize: 'xl' | 'lg' | 'md' | 'sm';
|
|
11
12
|
constructor(renderer: Renderer2);
|
|
12
13
|
ngAfterViewInit(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
ngAfterContentChecked(): void;
|
|
13
16
|
private getTableHeaders;
|
|
14
17
|
private initializeTable;
|
|
15
|
-
private
|
|
18
|
+
private adjustTableDensity;
|
|
16
19
|
private adjustButtonsSize;
|
|
17
20
|
private onResize;
|
|
18
21
|
private adjustTableSize;
|
|
19
22
|
private adjustTable;
|
|
20
23
|
private appendNodesList;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityTableComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTableComponent, "gravity-table", never, { "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityTableComponent, "gravity-table", never, { "tableDensity": { "alias": "tableDensity"; "required": false; }; "tableSizeInput": { "alias": "tableSizeInput"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
23
26
|
}
|
package/package.json
CHANGED