@koobiq/components 17.0.0-beta.2 → 17.0.0-rc.1
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/core/version.mjs +2 -2
- package/esm2022/file-upload/file-upload.mjs +15 -1
- package/esm2022/file-upload/file-upload.module.mjs +8 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +36 -50
- package/esm2022/file-upload/single-file-upload.component.mjs +44 -59
- package/esm2022/select/select.component.mjs +5 -2
- package/fesm2022/koobiq-components-core.mjs +1 -1
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +91 -100
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +4 -1
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/file-upload.module.d.ts +2 -1
- package/file-upload/multiple-file-upload.component.d.ts +10 -12
- package/file-upload/single-file-upload.component.d.ts +13 -16
- package/package.json +10 -10
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/scrollbar/scrollbar.directive.d.ts +1 -0
- package/scrollbar/scrollbar.types.d.ts +1 -0
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
3
2
|
import { CanDisable, KbqLocaleService } from '@koobiq/components/core';
|
|
4
3
|
import { KbqFile, KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
|
|
4
|
+
import { ProgressSpinnerMode } from '@koobiq/components/progress-spinner';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const KBQ_SINGLE_FILE_UPLOAD_DEFAULT_CONFIGURATION: KbqInputFileLabel;
|
|
7
|
-
export declare class KbqSingleFileUploadComponent implements
|
|
8
|
-
private focusMonitor;
|
|
7
|
+
export declare class KbqSingleFileUploadComponent implements KbqInputFile, CanDisable {
|
|
9
8
|
private cdr;
|
|
10
9
|
private renderer;
|
|
11
10
|
readonly configuration: KbqInputFileLabel;
|
|
12
11
|
private localeService?;
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A value responsible for progress spinner type.
|
|
14
|
+
* Loading logic depends on selected mode */
|
|
15
|
+
progressMode: ProgressSpinnerMode;
|
|
16
|
+
accept?: string[];
|
|
14
17
|
disabled: boolean;
|
|
15
18
|
errors: string[];
|
|
16
|
-
|
|
19
|
+
file: KbqFileItem | null;
|
|
17
20
|
inputId: string;
|
|
18
21
|
customValidation?: KbqFileValidatorFn[];
|
|
19
|
-
|
|
22
|
+
fileQueueChange: EventEmitter<KbqFileItem | null>;
|
|
20
23
|
input: ElementRef<HTMLInputElement>;
|
|
21
|
-
hasFocus: boolean;
|
|
22
24
|
config: KbqInputFileLabel;
|
|
23
25
|
separatedCaptionText: string[];
|
|
24
|
-
private focusMonitorSubscription;
|
|
25
26
|
get acceptedFiles(): string;
|
|
26
|
-
constructor(
|
|
27
|
-
ngAfterViewInit(): void;
|
|
28
|
-
ngOnDestroy(): void;
|
|
27
|
+
constructor(cdr: ChangeDetectorRef, renderer: Renderer2, configuration: KbqInputFileLabel, localeService?: KbqLocaleService | undefined);
|
|
29
28
|
onFileSelectedViaClick({ target }: Event): void;
|
|
30
29
|
deleteItem(event?: MouseEvent): void;
|
|
31
30
|
onFileDropped(files: FileList | KbqFile[]): void;
|
|
32
|
-
onFocus(focusState: boolean): void;
|
|
33
31
|
private updateLocaleParams;
|
|
34
32
|
private mapToFileItem;
|
|
35
33
|
private validateFile;
|
|
36
|
-
private isCorrectExtension;
|
|
37
34
|
private initDefaultParams;
|
|
38
35
|
private getCaptionText;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null,
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSingleFileUploadComponent, "kbq-single-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null, { optional: true; }, { optional: true; }]>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSingleFileUploadComponent, "kbq-single-file-upload,kbq-file-upload:not([multiple])", never, { "progressMode": { "alias": "progressMode"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "file": { "alias": "file"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "customValidation": { "alias": "customValidation"; "required": false; }; }, { "fileQueueChange": "fileQueueChange"; }, never, ["[hint]", "[kbq-icon]"], false, never>;
|
|
41
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/components",
|
|
3
|
-
"version": "17.0.0-
|
|
3
|
+
"version": "17.0.0-rc.1",
|
|
4
4
|
"description": "koobiq",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@angular/cdk": "^17.2.0",
|
|
21
21
|
"@angular/forms": "^17.2.0",
|
|
22
|
-
"@koobiq/cdk": "^17.0.0-
|
|
23
|
-
"@koobiq/angular-moment-adapter": "^17.0.0-
|
|
24
|
-
"@koobiq/angular-luxon-adapter": "^17.0.0-
|
|
22
|
+
"@koobiq/cdk": "^17.0.0-rc.1",
|
|
23
|
+
"@koobiq/angular-moment-adapter": "^17.0.0-rc.1",
|
|
24
|
+
"@koobiq/angular-luxon-adapter": "^17.0.0-rc.1",
|
|
25
25
|
"@koobiq/date-formatter": "^3.0.2",
|
|
26
26
|
"@koobiq/icons": "^7.1.0",
|
|
27
27
|
"@koobiq/tokens-builder": "3.0.0-beta.31",
|
|
@@ -64,18 +64,18 @@
|
|
|
64
64
|
"esm": "./esm2022/alert/koobiq-components-alert.mjs",
|
|
65
65
|
"default": "./fesm2022/koobiq-components-alert.mjs"
|
|
66
66
|
},
|
|
67
|
-
"./badge": {
|
|
68
|
-
"types": "./badge/index.d.ts",
|
|
69
|
-
"esm2022": "./esm2022/badge/koobiq-components-badge.mjs",
|
|
70
|
-
"esm": "./esm2022/badge/koobiq-components-badge.mjs",
|
|
71
|
-
"default": "./fesm2022/koobiq-components-badge.mjs"
|
|
72
|
-
},
|
|
73
67
|
"./autocomplete": {
|
|
74
68
|
"types": "./autocomplete/index.d.ts",
|
|
75
69
|
"esm2022": "./esm2022/autocomplete/koobiq-components-autocomplete.mjs",
|
|
76
70
|
"esm": "./esm2022/autocomplete/koobiq-components-autocomplete.mjs",
|
|
77
71
|
"default": "./fesm2022/koobiq-components-autocomplete.mjs"
|
|
78
72
|
},
|
|
73
|
+
"./badge": {
|
|
74
|
+
"types": "./badge/index.d.ts",
|
|
75
|
+
"esm2022": "./esm2022/badge/koobiq-components-badge.mjs",
|
|
76
|
+
"esm": "./esm2022/badge/koobiq-components-badge.mjs",
|
|
77
|
+
"default": "./fesm2022/koobiq-components-badge.mjs"
|
|
78
|
+
},
|
|
79
79
|
"./button": {
|
|
80
80
|
"types": "./button/index.d.ts",
|
|
81
81
|
"esm2022": "./esm2022/button/koobiq-components-button.mjs",
|