@acorex/cdk 19.6.0 → 19.6.2

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.onActiveState = output();
9
+ this.onClick = output();
10
10
  this.key = input.required();
11
- this.#init2 = afterNextRender(() => {
11
+ this.#init = afterNextRender(() => {
12
12
  this.elm.nativeElement.onclick = () => {
13
- this.onActiveState.emit({ component: this });
13
+ this.onClick.emit({ sender: this });
14
14
  };
15
15
  });
16
16
  }
17
- #init2;
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: { onActiveState: "onActiveState" }, exportAs: ["axSelectionItem"], ngImport: i0 }); }
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.multipel = input(false);
44
- this.selectedKey = input();
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.onActiveState.subscribe((e) => {
48
- this.activeIndex.set(e.component.key());
49
- if (this.multipel()) {
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.selectedKey())
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 (typeof this.selectedKey() === 'string') {
67
- this.content().forEach((element) => {
68
- if (this.selectedKey() === element.key()) {
69
- element.isActive.set(true);
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 if (this.selectedKey() instanceof Array) {
74
- this.selectedKey().forEach((index) => {
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: { multipel: { classPropertyName: "multipel", publicName: "multipel", isSignal: true, isRequired: false, transformFunction: null }, selectedKey: { classPropertyName: "selectedKey", publicName: "selectedKey", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "content", predicate: AXSelectionItemDirective, isSignal: true }], exportAs: ["axSelectionGroup"], ngImport: i0 }); }
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 onActiveState = output<{ component: AXSelectionItemDirective }>();\n key = input.required<string>();\n\n #init2 = afterNextRender(() => {\n (this.elm.nativeElement as HTMLElement).onclick = () => {\n this.onActiveState.emit({ component: 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 { afterNextRender, contentChildren, Directive, effect, input, signal } 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 {\n private content = contentChildren(AXSelectionItemDirective);\n private activeIndex = signal(null);\n multipel = input(false);\n selectedKey = input<string | string[]>();\n\n #init = afterNextRender(() => {\n this.content().forEach((element) => {\n element.onActiveState.subscribe((e) => {\n this.activeIndex.set(e.component.key());\n if (this.multipel()) {\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 #effect = effect(() => {\n if (!this.selectedKey()) return;\n if (typeof this.selectedKey() === 'string') {\n this.content().forEach((element) => {\n if (this.selectedKey() === element.key()) {\n element.isActive.set(true);\n }\n });\n } else if (this.selectedKey() instanceof Array) {\n (this.selectedKey() 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 #effect2 = effect(() => {\n if (!this.selectedKey()) {\n this.content()[0].isActive.set(true);\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,IAAa,CAAA,aAAA,GAAG,MAAM,EAA2C;AACjE,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAU;AAE9B,QAAA,IAAA,CAAA,MAAM,GAAG,eAAe,CAAC,MAAK;YAC3B,IAAI,CAAC,GAAG,CAAC,aAA6B,CAAC,OAAO,GAAG,MAAK;gBACrD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAC9C,aAAC;AACH,SAAC,CAAC;AAWH;AAfC,IAAA,MAAM;IAMC,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,EA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AA,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;;;;"}
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,MA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,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/cdk",
3
- "version": "19.6.0",
3
+ "version": "19.6.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -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
- multipel: import("@angular/core").InputSignal<boolean>;
7
- selectedKey: import("@angular/core").InputSignal<string | string[]>;
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"], { "multipel": { "alias": "multipel"; "required": false; "isSignal": true; }; "selectedKey": { "alias": "selectedKey"; "required": false; "isSignal": true; }; }, {}, ["content"], never, false, never>;
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
- onActiveState: import("@angular/core").OutputEmitterRef<{
7
- component: AXSelectionItemDirective;
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; }; }, { "onActiveState": "onActiveState"; }, never, never, false, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXSelectionItemDirective, "[axSelectionItem]", ["axSelectionItem"], { "key": { "alias": "key"; "required": true; "isSignal": true; }; }, { "onClick": "onClick"; }, never, never, false, never>;
15
15
  }