@wizishop/angular-components 14.3.2 → 14.3.4
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/esm2020/lib/components/button/button.component.mjs +20 -5
- package/esm2020/lib/components/selects/option/option.component.mjs +11 -9
- package/esm2020/lib/components/selects/option/select-option.directive.mjs +3 -5
- package/esm2020/lib/components/selects/select-test/select.component.mjs +18 -12
- package/esm2020/lib/components/selects/select-test/value-change.service.mjs +36 -4
- package/fesm2015/wizishop-angular-components.mjs +82 -29
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +80 -29
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +5 -2
- package/lib/components/selects/option/option.component.d.ts +4 -4
- package/lib/components/selects/option/select-option.directive.d.ts +1 -2
- package/lib/components/selects/select-test/value-change.service.d.ts +7 -2
- package/package.json +24 -14
- package/wizishop-angular-components-14.3.4.tgz +0 -0
- package/wizishop-angular-components-14.3.2.tgz +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroupDirective } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
5
|
+
private type;
|
|
6
|
+
private formGroup;
|
|
4
7
|
extraClasses: string;
|
|
5
8
|
label: string;
|
|
6
9
|
icon: string;
|
|
@@ -39,7 +42,7 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
39
42
|
currentLoading: number;
|
|
40
43
|
calculWidth: ElementRef;
|
|
41
44
|
calculWidthDelete: ElementRef;
|
|
42
|
-
constructor();
|
|
45
|
+
constructor(type: string, formGroup: FormGroupDirective);
|
|
43
46
|
ngOnInit(): void;
|
|
44
47
|
toggleLoading(): void;
|
|
45
48
|
addMaxWidth(): void;
|
|
@@ -48,6 +51,6 @@ export declare class ButtonComponent implements OnInit, AfterViewInit {
|
|
|
48
51
|
resetMaxWidthDelete(): void;
|
|
49
52
|
onButtonClick(event: any): void;
|
|
50
53
|
ngAfterViewInit(): void;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent,
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, [{ attribute: "type"; }, { optional: true; }]>;
|
|
52
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "wac-button", never, { "extraClasses": "extraClasses"; "label": "label"; "icon": "icon"; "iconNext": "iconNext"; "textcolor": "textcolor"; "widthAuto": "widthAuto"; "contentHorizontalPosition": "contentHorizontalPosition"; "iconFontSize": "iconFontSize"; "hasLoader": "hasLoader"; "disabled": "disabled"; "whiteSpaceNowrap": "whiteSpaceNowrap"; "opacity": "opacity"; "animation": "animation"; "animationRight": "animationRight"; "animationText": "animationText"; "confirmDelete": "confirmDelete"; "confirmDeleteText": "confirmDeleteText"; "coin": "coin"; "tooltip": "tooltip"; "tooltipWidth": "tooltipWidth"; "noPadding": "noPadding"; "tooltipPosition": "tooltipPosition"; "tooltipOneline": "tooltipOneline"; "confirmDeletePosition": "confirmDeletePosition"; "isLoading": "isLoading"; }, { "click": "click"; "isLoadingChange": "isLoadingChange"; }, never, never, false>;
|
|
53
56
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter,
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
2
|
import { OptionSelectionHandler } from './option-selection-handler.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OptionComponent implements
|
|
4
|
+
export declare class OptionComponent implements OptionSelectionHandler {
|
|
5
5
|
private renderer;
|
|
6
6
|
private elementRef;
|
|
7
|
+
private changeDetectorRef;
|
|
7
8
|
contentRef: ElementRef;
|
|
8
9
|
disabled: boolean;
|
|
9
10
|
value: any;
|
|
@@ -11,8 +12,7 @@ export declare class OptionComponent implements OnInit, OptionSelectionHandler {
|
|
|
11
12
|
get selected(): boolean;
|
|
12
13
|
_selected: boolean;
|
|
13
14
|
selectedChange: EventEmitter<any>;
|
|
14
|
-
constructor(renderer: Renderer2, elementRef: ElementRef);
|
|
15
|
-
ngOnInit(): void;
|
|
15
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
16
16
|
onSelectOption(): void;
|
|
17
17
|
getValue(): any;
|
|
18
18
|
setValue(value: any): void;
|
|
@@ -9,7 +9,6 @@ export declare class SelectOptionDirective implements OptionSelectionHandler {
|
|
|
9
9
|
selected: boolean;
|
|
10
10
|
selectedChange: EventEmitter<any>;
|
|
11
11
|
constructor(contentRef: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
12
|
onSelectOption(): void;
|
|
14
13
|
getValue(): any;
|
|
15
14
|
setValue(value: any): void;
|
|
@@ -17,5 +16,5 @@ export declare class SelectOptionDirective implements OptionSelectionHandler {
|
|
|
17
16
|
setSelected(selected: boolean): void;
|
|
18
17
|
getContentRef(): ElementRef<any>;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDirective, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective, "[
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective, "[wacSelectOption]", never, { "disabled": "disabled"; "value": "value"; "selected": "selected"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
|
|
21
20
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { OptionComponent } from '../option/option.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ValueChangeService implements OnDestroy {
|
|
6
|
+
private changeDetectorRef;
|
|
6
7
|
valueChange$: Subject<any>;
|
|
7
8
|
set value(value: any);
|
|
8
9
|
get value(): any;
|
|
@@ -11,12 +12,16 @@ export declare class ValueChangeService implements OnDestroy {
|
|
|
11
12
|
selectedOptionContent: any;
|
|
12
13
|
indexSelectedOption: number;
|
|
13
14
|
resetListeners$: Subject<void>;
|
|
14
|
-
constructor();
|
|
15
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
15
16
|
handleSelectOptionsChange(optionChildren: QueryList<OptionComponent>, value: any): void;
|
|
16
17
|
assignValue(value: any): void;
|
|
17
18
|
handleValueChange(): void;
|
|
18
19
|
selectNextOption(): void;
|
|
19
20
|
selectPreviousOption(): void;
|
|
21
|
+
searchOptionByFirstLetter(letter: string): void;
|
|
22
|
+
private indexOfMatchedOption;
|
|
23
|
+
private isNotNull;
|
|
24
|
+
private highestAndClosestIndex;
|
|
20
25
|
private handleInitialSelectedOption;
|
|
21
26
|
private findInitialSelectedOption;
|
|
22
27
|
private handleSelectedOptionsEvent;
|
package/package.json
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wizishop/angular-components",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/
|
|
6
|
-
"@angular/
|
|
7
|
-
"@
|
|
8
|
-
"@
|
|
9
|
-
"@
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"@angular/
|
|
14
|
-
"
|
|
15
|
-
"
|
|
5
|
+
"@angular/animations": "~14.0.6",
|
|
6
|
+
"@angular/cdk": "^14.0.5",
|
|
7
|
+
"@angular/common": "~14.0.6",
|
|
8
|
+
"@angular/compiler": "~14.0.6",
|
|
9
|
+
"@angular/core": "~14.0.6",
|
|
10
|
+
"@angular/forms": "~14.0.6",
|
|
11
|
+
"@angular/platform-browser": "~14.0.6",
|
|
12
|
+
"@angular/platform-browser-dynamic": "~14.0.6",
|
|
13
|
+
"@angular/router": "~14.0.6",
|
|
14
|
+
"@ngx-translate/core": "^14.0.0",
|
|
15
|
+
"@ngx-translate/http-loader": "^7.0.0",
|
|
16
|
+
"@wizishop/ng-wizi-bulma": "^14.0.0",
|
|
17
|
+
"bourbon": "^7.2.0",
|
|
18
|
+
"bulma": "^0.9.4",
|
|
16
19
|
"bulma-calendar": "git+https://github.com/WiziShop/bulma-calendar.git",
|
|
17
20
|
"bulma-extensions": "^6.2.7",
|
|
18
|
-
"sass-flex-mixin": "^1.0.3",
|
|
19
21
|
"include-media": "^1.4.9",
|
|
20
|
-
"
|
|
22
|
+
"ng2-animate-on-scroll": "^2.2.1",
|
|
23
|
+
"ngx-autosize": "^2.0.2",
|
|
24
|
+
"ngx-chips": "^3.0.0",
|
|
25
|
+
"ngx-perfect-scrollbar": "^10.1.1",
|
|
26
|
+
"ngx-scrollbar": "^10.0.1",
|
|
27
|
+
"rxjs": "^7.5.6",
|
|
28
|
+
"sass-flex-mixin": "^1.0.3",
|
|
29
|
+
"typescript": "^4.7.4",
|
|
30
|
+
"zone.js": "~0.11.4"
|
|
21
31
|
},
|
|
22
32
|
"dependencies": {
|
|
23
33
|
"tslib": "^2.0.0"
|
|
Binary file
|
|
Binary file
|