@wizishop/angular-components 14.3.17 → 14.3.19
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/calendar/calendar.component.mjs +9 -6
- package/esm2020/lib/components/selects/option/option-selection-handler.interface.mjs +1 -1
- package/esm2020/lib/components/selects/option/option.component.mjs +11 -50
- package/esm2020/lib/components/selects/option/select-option.directive.mjs +37 -14
- package/esm2020/lib/components/selects/select-test/select.directive.mjs +23 -5
- package/esm2020/lib/components/selects/select-test/value-change.service.mjs +11 -4
- package/fesm2015/wizishop-angular-components.mjs +105 -93
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +104 -93
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/selects/option/option-selection-handler.interface.d.ts +2 -0
- package/lib/components/selects/option/option.component.d.ts +8 -20
- package/lib/components/selects/option/select-option.directive.d.ts +12 -7
- package/lib/components/selects/select-test/select.directive.d.ts +6 -2
- package/lib/components/selects/select-test/value-change.service.d.ts +2 -0
- package/package.json +1 -1
- package/wizishop-angular-components-14.3.19.tgz +0 -0
- package/wizishop-angular-components-14.3.17.tgz +0 -0
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef
|
|
2
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { SelectOptionDirective } from './select-option.directive';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class OptionComponent<TOptionValue>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
contentRef: ElementRef;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
value: TOptionValue;
|
|
11
|
-
set selected(selected: boolean);
|
|
12
|
-
get selected(): boolean;
|
|
13
|
-
_selected: boolean;
|
|
14
|
-
selectedChange: EventEmitter<boolean>;
|
|
15
|
-
constructor(renderer: Renderer2, elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
16
|
-
onSelectOption(): void;
|
|
17
|
-
getValue(): TOptionValue;
|
|
18
|
-
setValue(value: TOptionValue): void;
|
|
19
|
-
isSelected(): boolean;
|
|
20
|
-
setSelected(selected: boolean): void;
|
|
4
|
+
export declare class OptionComponent<TOptionValue> extends SelectOptionDirective<TOptionValue> {
|
|
5
|
+
protected contentRef: ElementRef;
|
|
6
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
7
|
+
contentOption: ElementRef;
|
|
8
|
+
constructor(contentRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
21
9
|
getContentRef(): ElementRef<any>;
|
|
22
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent<any>, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent<any>, "wac-option", never, {
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent<any>, "wac-option", never, {}, {}, never, ["*"], false>;
|
|
24
12
|
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { OptionSelectionHandler } from './option-selection-handler.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SelectOptionDirective<TOptionValue> implements OptionSelectionHandler<TOptionValue> {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
protected contentRef: ElementRef;
|
|
6
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
7
|
+
onClick(event: PointerEvent): void;
|
|
7
8
|
get isOptionSelected(): boolean;
|
|
8
|
-
|
|
9
|
+
get isOptionDisabled(): boolean;
|
|
10
|
+
get cursor(): "not-allowed" | "pointer";
|
|
9
11
|
disabled: boolean;
|
|
12
|
+
private disabledByParent;
|
|
10
13
|
value: TOptionValue;
|
|
11
14
|
selected: boolean;
|
|
15
|
+
onClickEventPreventDefault: boolean;
|
|
12
16
|
selectedChange: EventEmitter<boolean>;
|
|
13
|
-
constructor(contentRef: ElementRef);
|
|
17
|
+
constructor(contentRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
18
|
+
setSelected(selected: boolean): void;
|
|
14
19
|
onSelectOption(): void;
|
|
15
20
|
getValue(): TOptionValue;
|
|
16
21
|
setValue(value: TOptionValue): void;
|
|
17
22
|
isSelected(): boolean;
|
|
18
|
-
setSelected(selected: boolean): void;
|
|
19
23
|
getContentRef(): ElementRef<any>;
|
|
24
|
+
setDisabledState(isDisabled: boolean): void;
|
|
20
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDirective<any>, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective<any>, "[wacOption]",
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective<any>, "[wacOption]", ["wacOption"], { "disabled": "disabled"; "value": "value"; "selected": "selected"; "onClickEventPreventDefault": "onClickEventPreventDefault"; }, { "selectedChange": "selectedChange"; }, never, never, false>;
|
|
22
27
|
}
|
|
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class SelectDirective<TOptionValue> implements OnInit, ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
8
8
|
protected valueChangeService: ValueChangeService<TOptionValue>;
|
|
9
9
|
get tabindex(): number;
|
|
10
|
+
get isSelectDisabled(): boolean;
|
|
10
11
|
/** Handles all keydown events on the select. */
|
|
11
12
|
onKeydown(event: KeyboardEvent): void;
|
|
12
13
|
optionChildren: QueryList<OptionSelectionHandler<TOptionValue>>;
|
|
@@ -14,7 +15,9 @@ export declare class SelectDirective<TOptionValue> implements OnInit, ControlVal
|
|
|
14
15
|
get value(): TOptionValue;
|
|
15
16
|
_value: TOptionValue;
|
|
16
17
|
valueChange: EventEmitter<TOptionValue>;
|
|
17
|
-
disabled: boolean;
|
|
18
|
+
set disabled(disabled: boolean);
|
|
19
|
+
get disabled(): boolean;
|
|
20
|
+
_disabled: boolean;
|
|
18
21
|
tabIndex: number;
|
|
19
22
|
isDestroyed$: Subject<void>;
|
|
20
23
|
constructor(valueChangeService: ValueChangeService<TOptionValue>);
|
|
@@ -29,7 +32,8 @@ export declare class SelectDirective<TOptionValue> implements OnInit, ControlVal
|
|
|
29
32
|
writeValue(value: any): void;
|
|
30
33
|
registerOnChange(fn: any): void;
|
|
31
34
|
registerOnTouched(fn: any): void;
|
|
35
|
+
setDisabledState(isDisabled: boolean): void;
|
|
32
36
|
ngOnDestroy(): void;
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectDirective<any>, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective<any>, "[wacSelect]",
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective<any>, "[wacSelect]", ["wacSelect"], { "value": "value"; "disabled": "disabled"; "tabIndex": "tabIndex"; }, { "valueChange": "valueChange"; }, ["optionChildren"], never, false>;
|
|
35
39
|
}
|
|
@@ -8,6 +8,7 @@ export declare class ValueChangeService<TOptionValue> implements OnDestroy {
|
|
|
8
8
|
set value(value: TOptionValue);
|
|
9
9
|
get value(): TOptionValue;
|
|
10
10
|
private _value;
|
|
11
|
+
disabled: boolean;
|
|
11
12
|
optionChildren: QueryList<OptionComponent<TOptionValue>>;
|
|
12
13
|
selectedOptionContent: any;
|
|
13
14
|
indexSelectedOption: number;
|
|
@@ -16,6 +17,7 @@ export declare class ValueChangeService<TOptionValue> implements OnDestroy {
|
|
|
16
17
|
handleSelectOptionsChange(optionChildren: QueryList<OptionComponent<TOptionValue>>, value: any): void;
|
|
17
18
|
assignValue(value: any): void;
|
|
18
19
|
handleValueChange(): void;
|
|
20
|
+
setDisabledState(isDisabled: boolean): void;
|
|
19
21
|
selectNextOption(): void;
|
|
20
22
|
selectPreviousOption(): void;
|
|
21
23
|
searchOptionByFirstLetter(letter: string): void;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|