@acorex/cdk 19.6.0 → 19.6.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.
|
@@ -6,15 +6,15 @@ class AXSelectionItemDirective {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.elm = inject(ElementRef);
|
|
8
8
|
this.isActive = signal(false);
|
|
9
|
-
this.
|
|
9
|
+
this.onClick = output();
|
|
10
10
|
this.key = input.required();
|
|
11
|
-
this.#
|
|
11
|
+
this.#init = afterNextRender(() => {
|
|
12
12
|
this.elm.nativeElement.onclick = () => {
|
|
13
|
-
this.
|
|
13
|
+
this.onClick.emit({ sender: this });
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
#
|
|
17
|
+
#init;
|
|
18
18
|
toggle() {
|
|
19
19
|
this.isActive.update((prev) => !prev);
|
|
20
20
|
}
|
|
@@ -25,7 +25,7 @@ class AXSelectionItemDirective {
|
|
|
25
25
|
this.isActive.set(false);
|
|
26
26
|
}
|
|
27
27
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXSelectionItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
28
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: AXSelectionItemDirective, isStandalone: false, selector: "[axSelectionItem]", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null } }, outputs: {
|
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: AXSelectionItemDirective, isStandalone: false, selector: "[axSelectionItem]", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick" }, exportAs: ["axSelectionItem"], ngImport: i0 }); }
|
|
29
29
|
}
|
|
30
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXSelectionItemDirective, decorators: [{
|
|
31
31
|
type: Directive,
|
|
@@ -40,13 +40,14 @@ class AXSelectionGroupDirective {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
this.content = contentChildren(AXSelectionItemDirective);
|
|
42
42
|
this.activeIndex = signal(null);
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
43
|
+
this.multiple = input(false);
|
|
44
|
+
this.selectedKeys = input();
|
|
45
|
+
this.onSelectionChanged = output();
|
|
45
46
|
this.#init = afterNextRender(() => {
|
|
46
47
|
this.content().forEach((element) => {
|
|
47
|
-
element.
|
|
48
|
-
this.activeIndex.set(e.
|
|
49
|
-
if (this.
|
|
48
|
+
element.onClick.subscribe((e) => {
|
|
49
|
+
this.activeIndex.set(e.sender.key());
|
|
50
|
+
if (this.multiple()) {
|
|
50
51
|
element.toggle();
|
|
51
52
|
}
|
|
52
53
|
else {
|
|
@@ -61,36 +62,52 @@ class AXSelectionGroupDirective {
|
|
|
61
62
|
});
|
|
62
63
|
});
|
|
63
64
|
this.#effect = effect(() => {
|
|
64
|
-
if (!this.
|
|
65
|
+
if (!this.selectedKeys()) {
|
|
66
|
+
this.content()[0].isActive.set(true);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
this.#effect2 = effect(() => {
|
|
70
|
+
if (!this.activeIndex())
|
|
65
71
|
return;
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
if (this.multiple()) {
|
|
73
|
+
const selectedKeys = [];
|
|
74
|
+
this.content().forEach((item) => {
|
|
75
|
+
if (item.isActive()) {
|
|
76
|
+
selectedKeys.push(item.key());
|
|
70
77
|
}
|
|
71
78
|
});
|
|
79
|
+
this.onSelectionChanged.emit({ sender: this, selectedKeys: selectedKeys });
|
|
72
80
|
}
|
|
73
|
-
else
|
|
74
|
-
this.
|
|
75
|
-
this.content().forEach((element) => {
|
|
76
|
-
if (index === element.key()) {
|
|
77
|
-
element.isActive.set(true);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
this.#effect2 = effect(() => {
|
|
84
|
-
if (!this.selectedKey()) {
|
|
85
|
-
this.content()[0].isActive.set(true);
|
|
81
|
+
else {
|
|
82
|
+
this.onSelectionChanged.emit({ sender: this, selectedKeys: [this.activeIndex()] });
|
|
86
83
|
}
|
|
87
84
|
});
|
|
88
85
|
}
|
|
89
86
|
#init;
|
|
87
|
+
ngAfterContentInit() {
|
|
88
|
+
if (!this.selectedKeys())
|
|
89
|
+
return;
|
|
90
|
+
if (typeof this.selectedKeys() === 'string') {
|
|
91
|
+
this.content().forEach((element) => {
|
|
92
|
+
if (this.selectedKeys() === element.key()) {
|
|
93
|
+
element.isActive.set(true);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else if (this.selectedKeys() instanceof Array) {
|
|
98
|
+
this.selectedKeys().forEach((index) => {
|
|
99
|
+
this.content().forEach((element) => {
|
|
100
|
+
if (index === element.key()) {
|
|
101
|
+
element.isActive.set(true);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
90
107
|
#effect;
|
|
91
108
|
#effect2;
|
|
92
109
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXSelectionGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
93
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.0.3", type: AXSelectionGroupDirective, isStandalone: false, selector: "[axSelectionGroup]", inputs: {
|
|
110
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.0.3", type: AXSelectionGroupDirective, isStandalone: false, selector: "[axSelectionGroup]", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectionChanged: "onSelectionChanged" }, queries: [{ propertyName: "content", predicate: AXSelectionItemDirective, isSignal: true }], exportAs: ["axSelectionGroup"], ngImport: i0 }); }
|
|
94
111
|
}
|
|
95
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXSelectionGroupDirective, decorators: [{
|
|
96
113
|
type: Directive,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-cdk-selection.mjs","sources":["../../../../libs/cdk/selection/src/lib/selection-item.directive.ts","../../../../libs/cdk/selection/src/lib/selection-group.directive.ts","../../../../libs/cdk/selection/src/lib/selection.module.ts","../../../../libs/cdk/selection/src/acorex-cdk-selection.ts"],"sourcesContent":["import { afterNextRender, Directive, ElementRef, inject, input, output, signal } from '@angular/core';\n\n@Directive({\n selector: '[axSelectionItem]',\n exportAs: 'axSelectionItem',\n standalone: false,\n})\nexport class AXSelectionItemDirective {\n private elm = inject(ElementRef);\n isActive = signal(false);\n
|
|
1
|
+
{"version":3,"file":"acorex-cdk-selection.mjs","sources":["../../../../libs/cdk/selection/src/lib/selection-item.directive.ts","../../../../libs/cdk/selection/src/lib/selection-group.directive.ts","../../../../libs/cdk/selection/src/lib/selection.module.ts","../../../../libs/cdk/selection/src/acorex-cdk-selection.ts"],"sourcesContent":["import { afterNextRender, Directive, ElementRef, inject, input, output, signal } from '@angular/core';\n\n@Directive({\n selector: '[axSelectionItem]',\n exportAs: 'axSelectionItem',\n standalone: false,\n})\nexport class AXSelectionItemDirective {\n private elm = inject(ElementRef);\n isActive = signal(false);\n onClick = output<{ sender: AXSelectionItemDirective }>();\n key = input.required<string>();\n\n #init = afterNextRender(() => {\n (this.elm.nativeElement as HTMLElement).onclick = () => {\n this.onClick.emit({ sender: this });\n };\n });\n\n public toggle() {\n this.isActive.update((prev) => !prev);\n }\n public select() {\n this.isActive.set(true);\n }\n public unselect() {\n this.isActive.set(false);\n }\n}\n","import {\n AfterContentInit,\n afterNextRender,\n contentChildren,\n Directive,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXSelectionItemDirective } from './selection-item.directive';\n\n@Directive({\n selector: '[axSelectionGroup]',\n standalone: false,\n exportAs: 'axSelectionGroup',\n})\nexport class AXSelectionGroupDirective implements AfterContentInit {\n private content = contentChildren(AXSelectionItemDirective);\n private activeIndex = signal(null);\n multiple = input(false);\n selectedKeys = input<string | string[]>();\n onSelectionChanged = output<{ sender: AXSelectionGroupDirective; selectedKeys: string[] }>();\n\n #init = afterNextRender(() => {\n this.content().forEach((element) => {\n element.onClick.subscribe((e) => {\n this.activeIndex.set(e.sender.key());\n if (this.multiple()) {\n element.toggle();\n } else {\n this.content().forEach((element) => {\n if (element.key() !== this.activeIndex()) {\n element.unselect();\n }\n });\n element.select();\n }\n });\n });\n });\n\n ngAfterContentInit(): void {\n if (!this.selectedKeys()) return;\n if (typeof this.selectedKeys() === 'string') {\n this.content().forEach((element) => {\n if (this.selectedKeys() === element.key()) {\n element.isActive.set(true);\n }\n });\n } else if (this.selectedKeys() instanceof Array) {\n (this.selectedKeys() as Array<string>).forEach((index) => {\n this.content().forEach((element) => {\n if (index === element.key()) {\n element.isActive.set(true);\n }\n });\n });\n }\n }\n\n #effect = effect(() => {\n if (!this.selectedKeys()) {\n this.content()[0].isActive.set(true);\n }\n });\n\n #effect2 = effect(() => {\n if (!this.activeIndex()) return;\n if (this.multiple()) {\n const selectedKeys = [];\n this.content().forEach((item) => {\n if (item.isActive()) {\n selectedKeys.push(item.key());\n }\n });\n this.onSelectionChanged.emit({ sender: this, selectedKeys: selectedKeys });\n } else {\n this.onSelectionChanged.emit({ sender: this, selectedKeys: [this.activeIndex()] });\n }\n });\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXSelectionGroupDirective } from './selection-group.directive';\nimport { AXSelectionItemDirective } from './selection-item.directive';\n\nconst COMPONENT = [AXSelectionGroupDirective, AXSelectionItemDirective];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXSelectionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,wBAAwB,CAAA;AALrC,IAAA,WAAA,GAAA;AAMU,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC;QACxB,IAAO,CAAA,OAAA,GAAG,MAAM,EAAwC;AACxD,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAU;AAE9B,QAAA,IAAA,CAAA,KAAK,GAAG,eAAe,CAAC,MAAK;YAC1B,IAAI,CAAC,GAAG,CAAC,aAA6B,CAAC,OAAO,GAAG,MAAK;gBACrD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACrC,aAAC;AACH,SAAC,CAAC;AAWH;AAfC,IAAA,KAAK;IAME,MAAM,GAAA;AACX,QAAA,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;;IAEhC,MAAM,GAAA;AACX,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;;IAElB,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;;8GAnBf,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MA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E,kBAAkB;AAC7B,iBAAA;;;ACXD,MAAM,SAAS,GAAG,CAAC,yBAAyB,EAAE,wBAAwB,CAAC;AACvE,MAAM,OAAO,GAAG,CAAC,YAAY,CAAC;MAQjB,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,YAAA,EAAA,CATX,yBAAyB,EAAE,wBAAwB,aACrD,YAAY,CAAA,EAAA,OAAA,EAAA,CADV,yBAAyB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;AASzD,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJf,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACbD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AXSelectionGroupDirective {
|
|
3
|
+
export declare class AXSelectionGroupDirective implements AfterContentInit {
|
|
3
4
|
#private;
|
|
4
5
|
private content;
|
|
5
6
|
private activeIndex;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
selectedKeys: import("@angular/core").InputSignal<string | string[]>;
|
|
9
|
+
onSelectionChanged: import("@angular/core").OutputEmitterRef<{
|
|
10
|
+
sender: AXSelectionGroupDirective;
|
|
11
|
+
selectedKeys: string[];
|
|
12
|
+
}>;
|
|
13
|
+
ngAfterContentInit(): void;
|
|
8
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSelectionGroupDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AXSelectionGroupDirective, "[axSelectionGroup]", ["axSelectionGroup"], { "
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXSelectionGroupDirective, "[axSelectionGroup]", ["axSelectionGroup"], { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; }, { "onSelectionChanged": "onSelectionChanged"; }, ["content"], never, false, never>;
|
|
10
16
|
}
|
|
@@ -3,13 +3,13 @@ export declare class AXSelectionItemDirective {
|
|
|
3
3
|
#private;
|
|
4
4
|
private elm;
|
|
5
5
|
isActive: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
onClick: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
sender: AXSelectionItemDirective;
|
|
8
8
|
}>;
|
|
9
9
|
key: import("@angular/core").InputSignal<string>;
|
|
10
10
|
toggle(): void;
|
|
11
11
|
select(): void;
|
|
12
12
|
unselect(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSelectionItemDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AXSelectionItemDirective, "[axSelectionItem]", ["axSelectionItem"], { "key": { "alias": "key"; "required": true; "isSignal": true; }; }, { "
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXSelectionItemDirective, "[axSelectionItem]", ["axSelectionItem"], { "key": { "alias": "key"; "required": true; "isSignal": true; }; }, { "onClick": "onClick"; }, never, never, false, never>;
|
|
15
15
|
}
|