@ifsworld/granite-components 16.1.2 → 17.0.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/README.md +0 -2
- package/carousel/index.d.ts +45 -2
- package/date-picker/index.d.ts +123 -4
- package/fesm2022/ifsworld-granite-components-carousel.mjs +11 -11
- package/fesm2022/ifsworld-granite-components-carousel.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components-date-picker.mjs +40 -53
- package/fesm2022/ifsworld-granite-components-date-picker.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components-file-upload.mjs +10 -10
- package/fesm2022/ifsworld-granite-components-file-upload.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components-table.mjs +29 -29
- package/fesm2022/ifsworld-granite-components-table.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components-tooltip.mjs +23 -24
- package/fesm2022/ifsworld-granite-components-tooltip.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components.mjs +480 -564
- package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
- package/file-upload/index.d.ts +99 -2
- package/index.d.ts +1981 -86
- package/package.json +8 -8
- package/table/index.d.ts +112 -4
- package/tooltip/index.d.ts +50 -3
- package/carousel/lib/carousel.component.d.ts +0 -34
- package/carousel/lib/carousel.module.d.ts +0 -10
- package/date-picker/lib/date-picker-base.d.ts +0 -34
- package/date-picker/lib/date-picker-trigger-for.directive.d.ts +0 -70
- package/date-picker/lib/date-picker.component.d.ts +0 -10
- package/date-picker/lib/date-picker.module.d.ts +0 -15
- package/date-picker/lib/date-range-picker.component.d.ts +0 -12
- package/file-upload/lib/directives/file-drag-and-drop.directive.d.ts +0 -18
- package/file-upload/lib/file-upload.component.d.ts +0 -51
- package/file-upload/lib/file-upload.constants.d.ts +0 -37
- package/file-upload/lib/file-upload.module.d.ts +0 -11
- package/file-upload/lib/file-upload.utils.d.ts +0 -1
- package/lib/arrange-grid/arrange-grid-item.component.d.ts +0 -30
- package/lib/arrange-grid/arrange-grid.component.d.ts +0 -58
- package/lib/arrange-grid/arrange-grid.module.d.ts +0 -9
- package/lib/avatar/avatar-default-status/avatar-default-status.component.d.ts +0 -15
- package/lib/avatar/avatar.component.d.ts +0 -23
- package/lib/avatar/avatar.component.public-types.d.ts +0 -7
- package/lib/avatar/avatar.module.d.ts +0 -11
- package/lib/avatar/custom-avatar-status.directive.d.ts +0 -9
- package/lib/avatar/empty-avatar/empty-avatar.component.d.ts +0 -7
- package/lib/badge/badge.component.d.ts +0 -19
- package/lib/badge/badge.module.d.ts +0 -8
- package/lib/badge/testing/badge.harness.d.ts +0 -21
- package/lib/button/button.component.d.ts +0 -38
- package/lib/button/button.module.d.ts +0 -7
- package/lib/card-list/card/card-avatar.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-actions.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-body.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-content.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-footer.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-header-subtitle.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-header-title.component.d.ts +0 -5
- package/lib/card-list/card/card-content/card-header.component.d.ts +0 -5
- package/lib/card-list/card/card.component.d.ts +0 -5
- package/lib/card-list/card-list.component.d.ts +0 -9
- package/lib/card-list/card-list.module.d.ts +0 -18
- package/lib/checkbox/checkbox-group.component.d.ts +0 -6
- package/lib/checkbox/checkbox.component.d.ts +0 -29
- package/lib/checkbox/checkbox.module.d.ts +0 -8
- package/lib/chips/chip-input.d.ts +0 -89
- package/lib/chips/chip-list.component.d.ts +0 -185
- package/lib/chips/chip.component.d.ts +0 -104
- package/lib/chips/chips.module.d.ts +0 -12
- package/lib/collapsible-group/collapsible-group-body.directive.d.ts +0 -7
- package/lib/collapsible-group/collapsible-group-header.directive.d.ts +0 -7
- package/lib/collapsible-group/collapsible-group.component.d.ts +0 -16
- package/lib/collapsible-group/collapsible-group.module.d.ts +0 -11
- package/lib/contacts/contact-item/contact-item.component.d.ts +0 -11
- package/lib/contacts/contact-item-default-status/contact-item-default-status.component.d.ts +0 -15
- package/lib/contacts/contact-item-title/contact-item-title.component.d.ts +0 -7
- package/lib/contacts/contacts-profile/contacts-profile.component.d.ts +0 -8
- package/lib/contacts/contacts-trigger/contacts-trigger-data.d.ts +0 -23
- package/lib/contacts/contacts-trigger/contacts-trigger-for.directive.d.ts +0 -69
- package/lib/contacts/contacts-types/contacts.component.private-types.d.ts +0 -8
- package/lib/contacts/contacts-types/contacts.component.public-types.d.ts +0 -30
- package/lib/contacts/contacts.component.d.ts +0 -29
- package/lib/contacts/contacts.module.d.ts +0 -17
- package/lib/contacts/custom-profile.directive.d.ts +0 -8
- package/lib/contacts/custom-status.directive.d.ts +0 -9
- package/lib/core/animation.d.ts +0 -23
- package/lib/core/client-environment.d.ts +0 -26
- package/lib/core/common-behaviors/disabled.d.ts +0 -10
- package/lib/core/core.module.d.ts +0 -12
- package/lib/core/devices/client-input-desktop.directive.d.ts +0 -9
- package/lib/core/devices/client-input-touch.directive.d.ts +0 -9
- package/lib/core/devices/client-output-desktop.directive.d.ts +0 -9
- package/lib/core/devices/client-output-touch.directive.d.ts +0 -9
- package/lib/core/hide-on-overflow.directive.d.ts +0 -21
- package/lib/core/overlay-base.d.ts +0 -16
- package/lib/core/overlay-position-config.d.ts +0 -12
- package/lib/core/overlay-trigger-for-base.directive.d.ts +0 -32
- package/lib/core/overlay.service.d.ts +0 -21
- package/lib/core/pipes/pure-pipes.module.d.ts +0 -7
- package/lib/core/pipes/title.pipe.d.ts +0 -7
- package/lib/core/radio-checkbox-base.d.ts +0 -8
- package/lib/core/services/names-utils-service.d.ts +0 -17
- package/lib/core/theme.library.d.ts +0 -38
- package/lib/core/types.d.ts +0 -2
- package/lib/grid/grid.component.d.ts +0 -75
- package/lib/grid/grid.module.d.ts +0 -8
- package/lib/icon/icon.component.d.ts +0 -13
- package/lib/icon/icon.module.d.ts +0 -7
- package/lib/input-field/input-field.component.d.ts +0 -48
- package/lib/input-field/input-field.module.d.ts +0 -10
- package/lib/label/label.component.d.ts +0 -10
- package/lib/label/label.module.d.ts +0 -8
- package/lib/menu/divider.directive.d.ts +0 -6
- package/lib/menu/menu-base.d.ts +0 -219
- package/lib/menu/menu-custom-template.directive.d.ts +0 -14
- package/lib/menu/menu-desktop-animations.d.ts +0 -12
- package/lib/menu/menu-errors.d.ts +0 -24
- package/lib/menu/menu-item.component.d.ts +0 -36
- package/lib/menu/menu-panel.d.ts +0 -23
- package/lib/menu/menu-positions.d.ts +0 -9
- package/lib/menu/menu-touch-animations.d.ts +0 -17
- package/lib/menu/menu-touch-close.component.d.ts +0 -5
- package/lib/menu/menu-touch-title.component.d.ts +0 -14
- package/lib/menu/menu-trigger-for.directive.d.ts +0 -200
- package/lib/menu/menu.component.d.ts +0 -6
- package/lib/menu/menu.module.d.ts +0 -18
- package/lib/menu/testing/menu.harness.d.ts +0 -68
- package/lib/menu/title.directive.d.ts +0 -5
- package/lib/progress-bar/progress-bar-legend/progress-bar-legend.component.d.ts +0 -8
- package/lib/progress-bar/progress-bar-legend-base.d.ts +0 -8
- package/lib/progress-bar/progress-bar-legend-trigger-for.directive.d.ts +0 -18
- package/lib/progress-bar/progress-bar.component.d.ts +0 -28
- package/lib/progress-bar/progress-bar.model.d.ts +0 -11
- package/lib/progress-bar/progress-bar.module.d.ts +0 -14
- package/lib/radio-button/radio-button.component.d.ts +0 -34
- package/lib/radio-button/radio-button.module.d.ts +0 -8
- package/lib/radio-button/radio-group.component.d.ts +0 -6
- package/lib/toggle-switch/toggle-switch.component.d.ts +0 -29
- package/lib/toggle-switch/toggle-switch.module.d.ts +0 -7
- package/table/lib/cell/cell-align/cell-align-classes.directive.d.ts +0 -9
- package/table/lib/cell/cell.d.ts +0 -8
- package/table/lib/cell/table-data-cell.component.d.ts +0 -12
- package/table/lib/cell/table-header-cell.component.d.ts +0 -6
- package/table/lib/column/table-column.directive.d.ts +0 -23
- package/table/lib/column-size/column-size.directive.d.ts +0 -11
- package/table/lib/table-constants.library.d.ts +0 -6
- package/table/lib/table.component.d.ts +0 -26
- package/table/lib/table.model.d.ts +0 -6
- package/table/lib/table.module.d.ts +0 -16
- package/tooltip/lib/Services/granite-tooltip.service.d.ts +0 -10
- package/tooltip/lib/tooltip-constants.library.d.ts +0 -4
- package/tooltip/lib/tooltip-trigger-for.directive.d.ts +0 -39
- package/tooltip/lib/tooltip.component.d.ts +0 -7
- package/tooltip/lib/tooltip.module.d.ts +0 -9
package/file-upload/index.d.ts
CHANGED
|
@@ -1,2 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { CarouselResponsiveOptions } from 'primeng/carousel';
|
|
4
|
+
import * as i3 from '@angular/common';
|
|
5
|
+
import * as i4 from '@ifsworld/granite-components';
|
|
6
|
+
import * as i5 from '@ifsworld/granite-components/carousel';
|
|
7
|
+
|
|
8
|
+
interface SelectedFile {
|
|
9
|
+
file: File;
|
|
10
|
+
readableSize?: string;
|
|
11
|
+
imageUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
interface FileUploadError {
|
|
14
|
+
isError: boolean;
|
|
15
|
+
type: FilUploadErrorTypes;
|
|
16
|
+
}
|
|
17
|
+
declare enum FileUploadStatus {
|
|
18
|
+
NotStarted = "NotStarted",
|
|
19
|
+
InProgress = "InProgress",
|
|
20
|
+
Completed = "Completed",
|
|
21
|
+
Failed = "Failed",
|
|
22
|
+
Cancelled = "Cancelled"
|
|
23
|
+
}
|
|
24
|
+
declare enum FilUploadErrorTypes {
|
|
25
|
+
ExtensionNotSupported = "ExtensionNotSupported",
|
|
26
|
+
MultipleFilesNotSupported = "MultipleFilesNotSupported"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class GraniteFileUploadComponent {
|
|
30
|
+
fileDropRef: ElementRef<HTMLInputElement>;
|
|
31
|
+
accept: string;
|
|
32
|
+
uploadTitle: string;
|
|
33
|
+
uploadIcon: string;
|
|
34
|
+
browseIcon: string;
|
|
35
|
+
dropZoneText: string;
|
|
36
|
+
browseButtonText: string;
|
|
37
|
+
dropPlaceholderText: string;
|
|
38
|
+
dropZoneHint: string;
|
|
39
|
+
removeButtonText: string;
|
|
40
|
+
uploadButtonText: string;
|
|
41
|
+
retryButtonText: string;
|
|
42
|
+
cancelButtonText: string;
|
|
43
|
+
multiFileUpload: boolean;
|
|
44
|
+
responsiveOptions: CarouselResponsiveOptions[];
|
|
45
|
+
readonly browseOrDragFiles: EventEmitter<SelectedFile[]>;
|
|
46
|
+
readonly removeFiles: EventEmitter<SelectedFile[]>;
|
|
47
|
+
readonly filesUpload: EventEmitter<void>;
|
|
48
|
+
readonly fileUploadValidation: EventEmitter<FileUploadError>;
|
|
49
|
+
selectedFiles: File[];
|
|
50
|
+
previewReadyFiles: SelectedFile[];
|
|
51
|
+
isFileOnDropzone: boolean;
|
|
52
|
+
FileUploadStatus: typeof FileUploadStatus;
|
|
53
|
+
fileError: boolean;
|
|
54
|
+
fileDropErrorType: string;
|
|
55
|
+
numVisible: number;
|
|
56
|
+
protected _uploadStatus: FileUploadStatus;
|
|
57
|
+
get uploadStatus(): FileUploadStatus;
|
|
58
|
+
set uploadStatus(status: FileUploadStatus);
|
|
59
|
+
protected _autoUpload: boolean;
|
|
60
|
+
get autoUpload(): boolean;
|
|
61
|
+
set autoUpload(value: boolean);
|
|
62
|
+
fileBrowseHandler(event: Event): void;
|
|
63
|
+
fileRemoveHandler(fileToRemove: SelectedFile): void;
|
|
64
|
+
onFilesDropHandler(files: File[]): void;
|
|
65
|
+
onFileOverDropzone(isFileOver: boolean): void;
|
|
66
|
+
onFileDropError(validation: FileUploadError): void;
|
|
67
|
+
prepareSelectedFiles(files: File[]): SelectedFile[];
|
|
68
|
+
uploadFiles(): void;
|
|
69
|
+
retryUpload(): void;
|
|
70
|
+
cancelUpload(): void;
|
|
71
|
+
resetFileUpload(): void;
|
|
72
|
+
formatBytesToReadableSize(bytes: number, decimals: number): string;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteFileUploadComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteFileUploadComponent, "granite-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "uploadTitle": { "alias": "uploadTitle"; "required": false; }; "uploadIcon": { "alias": "uploadIcon"; "required": false; }; "browseIcon": { "alias": "browseIcon"; "required": false; }; "dropZoneText": { "alias": "dropZoneText"; "required": false; }; "browseButtonText": { "alias": "browseButtonText"; "required": false; }; "dropPlaceholderText": { "alias": "dropPlaceholderText"; "required": false; }; "dropZoneHint": { "alias": "dropZoneHint"; "required": false; }; "removeButtonText": { "alias": "removeButtonText"; "required": false; }; "uploadButtonText": { "alias": "uploadButtonText"; "required": false; }; "retryButtonText": { "alias": "retryButtonText"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; "multiFileUpload": { "alias": "multiFileUpload"; "required": false; }; "responsiveOptions": { "alias": "responsiveOptions"; "required": false; }; "uploadStatus": { "alias": "uploadStatus"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; }, { "browseOrDragFiles": "browseOrDragFiles"; "removeFiles": "removeFiles"; "filesUpload": "filesUpload"; "fileUploadValidation": "fileUploadValidation"; }, never, never, false, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class GraniteFileDragAndDropDirective {
|
|
78
|
+
fileOver: boolean;
|
|
79
|
+
fileBrowseError: boolean;
|
|
80
|
+
multiFileUploadEnabled: boolean;
|
|
81
|
+
accept: string;
|
|
82
|
+
currentFiles: File[];
|
|
83
|
+
readonly droppedFiles: EventEmitter<File[]>;
|
|
84
|
+
readonly isFileOver: EventEmitter<boolean>;
|
|
85
|
+
readonly fileUploadValidation: EventEmitter<FileUploadError>;
|
|
86
|
+
onDragOver(event: DragEvent): void;
|
|
87
|
+
onDragLeave(event: DragEvent): void;
|
|
88
|
+
onDrop(event: DragEvent): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteFileDragAndDropDirective, never>;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteFileDragAndDropDirective, "[graniteFileDragAndDrop]", ["graniteFileDragAndDrop"], { "multiFileUploadEnabled": { "alias": "multiFileUploadEnabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "currentFiles": { "alias": "currentFiles"; "required": false; }; }, { "droppedFiles": "droppedFiles"; "isFileOver": "isFileOver"; "fileUploadValidation": "fileUploadValidation"; }, never, never, false, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class GraniteFileUploadModule {
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteFileUploadModule, never>;
|
|
95
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteFileUploadModule, [typeof GraniteFileUploadComponent, typeof GraniteFileDragAndDropDirective], [typeof i3.CommonModule, typeof i4.GraniteButtonModule, typeof i4.GraniteIconModule, typeof i5.GraniteCarouselModule], [typeof GraniteFileUploadComponent]>;
|
|
96
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GraniteFileUploadModule>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { GraniteFileUploadComponent, GraniteFileUploadModule };
|