@mgremy/ng-primitives 0.13.0 → 0.14.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.
Files changed (70) hide show
  1. package/_theme/components/accordion/orientation.css +96 -0
  2. package/_theme/components/accordion.css +62 -0
  3. package/_theme/components/button/color.css +169 -0
  4. package/_theme/components/button/size.css +24 -0
  5. package/_theme/components/button.css +42 -0
  6. package/_theme/components/checkbox/color.css +83 -0
  7. package/_theme/components/checkbox/size.css +24 -0
  8. package/_theme/components/checkbox.css +32 -0
  9. package/_theme/components/combobox.css +97 -0
  10. package/_theme/components/dialog/mode.css +50 -0
  11. package/_theme/components/dialog.css +39 -0
  12. package/_theme/components/form-field.css +97 -0
  13. package/_theme/components/input.css +19 -0
  14. package/_theme/components/menu.css +47 -0
  15. package/_theme/components/pagination.css +48 -0
  16. package/_theme/components/switch.css +29 -0
  17. package/_theme/components/toast.css +103 -0
  18. package/_theme/components/tooltip.css +36 -0
  19. package/{theme → _theme}/mgnp.css +1 -0
  20. package/_theme/utilities.css +5 -0
  21. package/fesm2022/mgremy-ng-primitives-accordion.mjs +84 -42
  22. package/fesm2022/mgremy-ng-primitives-accordion.mjs.map +1 -1
  23. package/fesm2022/mgremy-ng-primitives-button.mjs +21 -45
  24. package/fesm2022/mgremy-ng-primitives-button.mjs.map +1 -1
  25. package/fesm2022/mgremy-ng-primitives-checkbox.mjs +51 -13
  26. package/fesm2022/mgremy-ng-primitives-checkbox.mjs.map +1 -1
  27. package/fesm2022/mgremy-ng-primitives-combobox.mjs +120 -58
  28. package/fesm2022/mgremy-ng-primitives-combobox.mjs.map +1 -1
  29. package/fesm2022/mgremy-ng-primitives-dialog.mjs +91 -59
  30. package/fesm2022/mgremy-ng-primitives-dialog.mjs.map +1 -1
  31. package/fesm2022/mgremy-ng-primitives-form-field.mjs +109 -16
  32. package/fesm2022/mgremy-ng-primitives-form-field.mjs.map +1 -1
  33. package/fesm2022/mgremy-ng-primitives-input.mjs +18 -15
  34. package/fesm2022/mgremy-ng-primitives-input.mjs.map +1 -1
  35. package/fesm2022/mgremy-ng-primitives-menu.mjs +217 -29
  36. package/fesm2022/mgremy-ng-primitives-menu.mjs.map +1 -1
  37. package/fesm2022/mgremy-ng-primitives-pagination.mjs +146 -16
  38. package/fesm2022/mgremy-ng-primitives-pagination.mjs.map +1 -1
  39. package/fesm2022/mgremy-ng-primitives-switch.mjs +52 -25
  40. package/fesm2022/mgremy-ng-primitives-switch.mjs.map +1 -1
  41. package/fesm2022/mgremy-ng-primitives-toast.mjs +15 -14
  42. package/fesm2022/mgremy-ng-primitives-toast.mjs.map +1 -1
  43. package/fesm2022/mgremy-ng-primitives-tooltip.mjs +76 -31
  44. package/fesm2022/mgremy-ng-primitives-tooltip.mjs.map +1 -1
  45. package/package.json +7 -5
  46. package/types/mgremy-ng-primitives-accordion.d.ts +19 -11
  47. package/types/mgremy-ng-primitives-button.d.ts +3 -14
  48. package/types/mgremy-ng-primitives-checkbox.d.ts +20 -6
  49. package/types/mgremy-ng-primitives-combobox.d.ts +24 -15
  50. package/types/mgremy-ng-primitives-dialog.d.ts +15 -14
  51. package/types/mgremy-ng-primitives-form-field.d.ts +54 -12
  52. package/types/mgremy-ng-primitives-input.d.ts +11 -6
  53. package/types/mgremy-ng-primitives-menu.d.ts +65 -8
  54. package/types/mgremy-ng-primitives-pagination.d.ts +31 -5
  55. package/types/mgremy-ng-primitives-switch.d.ts +14 -6
  56. package/types/mgremy-ng-primitives-toast.d.ts +2 -4
  57. package/types/mgremy-ng-primitives-tooltip.d.ts +14 -8
  58. package/theme/components/accordion.css +0 -171
  59. package/theme/components/button.css +0 -252
  60. package/theme/components/checkbox.css +0 -37
  61. package/theme/components/combobox.css +0 -124
  62. package/theme/components/dialog.css +0 -101
  63. package/theme/components/form-field.css +0 -78
  64. package/theme/components/input.css +0 -26
  65. package/theme/components/menu.css +0 -61
  66. package/theme/components/pagination.css +0 -72
  67. package/theme/components/switch.css +0 -44
  68. package/theme/components/toast.css +0 -111
  69. package/theme/components/tooltip.css +0 -46
  70. /package/{theme → _theme}/animation.css +0 -0
@@ -1,54 +1,81 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
3
- import { NgpSwitch, NgpSwitchThumb } from 'ng-primitives/switch';
2
+ import { Directive } from '@angular/core';
3
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
+ import * as i1 from 'ng-primitives/switch';
5
+ import { injectSwitchState, provideSwitchState, NgpSwitch, injectSwitchThumbState, provideSwitchThumbState, NgpSwitchThumb } from 'ng-primitives/switch';
6
+ import { provideValueAccessor } from 'ng-primitives/utils';
4
7
 
5
- const options$1 = ['ngpSwitch'];
6
- const error$1 = new Error(`MgnpSwitch must be used with ${options$1.join(' / ')}`);
7
8
  class MgnpSwitch {
8
- _ngpSwitch = inject(NgpSwitch, { optional: true });
9
+ state = injectSwitchState();
10
+ onChangeFn;
11
+ onTouchedFn;
9
12
  constructor() {
10
- if (!this._ngpSwitch) {
11
- console.error(this);
12
- throw error$1;
13
- }
13
+ this.state()
14
+ .checkedChange.pipe(takeUntilDestroyed())
15
+ .subscribe((value) => this.onChangeFn?.(value));
16
+ }
17
+ writeValue(value) {
18
+ this.state().setChecked(value);
19
+ }
20
+ registerOnChange(fn) {
21
+ this.onChangeFn = fn;
22
+ }
23
+ registerOnTouched(fn) {
24
+ this.onTouchedFn = fn;
25
+ }
26
+ setDisabledState(value) {
27
+ this.state().setDisabled(value);
14
28
  }
15
29
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitch, isStandalone: true, selector: "[ngpSwitch][mgnpSwitch]", host: { attributes: { "data-mgnp-component": "mgnp-switch" } }, ngImport: i0 });
30
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitch, isStandalone: true, selector: "[mgnpSwitch]", host: { attributes: { "data-mgnp-switch": "" }, listeners: { "focusout": "onTouchedFn?.()" }, classAttribute: "mgnp-switch mgnp-c-switch" }, providers: [provideSwitchState(), provideValueAccessor(MgnpSwitch)], exportAs: ["mgnpSwitch"], hostDirectives: [{ directive: i1.NgpSwitch, inputs: ["ngpSwitchChecked", "mgnpSwitchChecked", "ngpSwitchDisabled", "mgnpSwitchDisabled"], outputs: ["ngpSwitchCheckedChange", "mgnpSwitchCheckedChange"] }], ngImport: i0 });
17
31
  }
18
32
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitch, decorators: [{
19
33
  type: Directive,
20
34
  args: [{
21
- selector: '[ngpSwitch][mgnpSwitch]',
35
+ selector: '[mgnpSwitch]',
22
36
  standalone: true,
37
+ providers: [provideSwitchState(), provideValueAccessor(MgnpSwitch)],
23
38
  host: {
24
- 'data-mgnp-component': 'mgnp-switch',
39
+ class: 'mgnp-switch mgnp-c-switch',
40
+ 'data-mgnp-switch': '',
41
+ '(focusout)': 'onTouchedFn?.()',
25
42
  },
43
+ hostDirectives: [
44
+ {
45
+ directive: NgpSwitch,
46
+ inputs: ['ngpSwitchChecked:mgnpSwitchChecked', 'ngpSwitchDisabled:mgnpSwitchDisabled'],
47
+ outputs: ['ngpSwitchCheckedChange:mgnpSwitchCheckedChange'],
48
+ },
49
+ ],
50
+ exportAs: 'mgnpSwitch',
26
51
  }]
27
52
  }], ctorParameters: () => [] });
28
53
 
29
- const options = ['ngpSwitchThumb'];
30
- const error = new Error(`MgnpSwitchThumb must be used with ${options.join(' / ')}`);
31
54
  class MgnpSwitchThumb {
32
- _ngpSwitchThumb = inject(NgpSwitchThumb, { optional: true });
33
- constructor() {
34
- if (!this._ngpSwitchThumb) {
35
- console.error(this);
36
- throw error;
37
- }
38
- }
55
+ state = injectSwitchThumbState();
39
56
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
40
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitchThumb, isStandalone: true, selector: "[ngpSwitchThumb][mgnpSwitchThumb]", host: { attributes: { "data-mgnp-component": "mgnp-switch-thumb" } }, ngImport: i0 });
57
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpSwitchThumb, isStandalone: true, selector: "[mgnpSwitchThumb]", host: { attributes: { "data-mgnp-switch-thumb": "" }, classAttribute: "mgnp-switch-thumb mgnp-c-switch-thumb" }, providers: [provideSwitchThumbState()], exportAs: ["mgnpSwitchThumb"], hostDirectives: [{ directive: i1.NgpSwitchThumb }], ngImport: i0 });
41
58
  }
42
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpSwitchThumb, decorators: [{
43
60
  type: Directive,
44
61
  args: [{
45
- selector: '[ngpSwitchThumb][mgnpSwitchThumb]',
62
+ selector: '[mgnpSwitchThumb]',
46
63
  standalone: true,
64
+ providers: [provideSwitchThumbState()],
47
65
  host: {
48
- 'data-mgnp-component': 'mgnp-switch-thumb',
66
+ class: 'mgnp-switch-thumb mgnp-c-switch-thumb',
67
+ 'data-mgnp-switch-thumb': '',
49
68
  },
69
+ hostDirectives: [
70
+ {
71
+ directive: NgpSwitchThumb,
72
+ inputs: [],
73
+ outputs: [],
74
+ },
75
+ ],
76
+ exportAs: 'mgnpSwitchThumb',
50
77
  }]
51
- }], ctorParameters: () => [] });
78
+ }] });
52
79
 
53
80
  /**
54
81
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-switch.mjs","sources":["../../../../libs/ng-primitives/switch/src/lib/mgnp-switch/mgnp-switch.directive.ts","../../../../libs/ng-primitives/switch/src/lib/mgnp-switch-thumb/mgnp-switch-thumb.directive.ts","../../../../libs/ng-primitives/switch/src/mgremy-ng-primitives-switch.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpSwitch } from 'ng-primitives/switch';\n\nconst options = ['ngpSwitch'];\n\nconst error = new Error(`MgnpSwitch must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpSwitch][mgnpSwitch]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-switch',\n },\n})\nexport class MgnpSwitch {\n private readonly _ngpSwitch = inject(NgpSwitch, { optional: true });\n\n constructor() {\n if (!this._ngpSwitch) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpSwitchThumb } from 'ng-primitives/switch';\n\nconst options = ['ngpSwitchThumb'];\n\nconst error = new Error(`MgnpSwitchThumb must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpSwitchThumb][mgnpSwitchThumb]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-switch-thumb',\n },\n})\nexport class MgnpSwitchThumb {\n private readonly _ngpSwitchThumb = inject(NgpSwitchThumb, { optional: true });\n\n constructor() {\n if (!this._ngpSwitchThumb) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["options","error"],"mappings":";;;;AAGA,MAAMA,SAAO,GAAG,CAAC,WAAW,CAAC;AAE7B,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,6BAAA,EAAgCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASjE,UAAU,CAAA;IACJ,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEnE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,OAAO,CA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A,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mCAAmC;AAC7C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,mBAAmB;AAC3C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"mgremy-ng-primitives-switch.mjs","sources":["../../../../libs/ng-primitives/switch/src/lib/mgnp-switch/mgnp-switch.directive.ts","../../../../libs/ng-primitives/switch/src/lib/mgnp-switch-thumb/mgnp-switch-thumb.directive.ts","../../../../libs/ng-primitives/switch/src/mgremy-ng-primitives-switch.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { injectSwitchState, NgpSwitch, provideSwitchState } from 'ng-primitives/switch';\nimport { ChangeFn, provideValueAccessor, TouchedFn } from 'ng-primitives/utils';\n\n@Directive({\n selector: '[mgnpSwitch]',\n standalone: true,\n providers: [provideSwitchState(), provideValueAccessor(MgnpSwitch)],\n host: {\n class: 'mgnp-switch mgnp-c-switch',\n 'data-mgnp-switch': '',\n '(focusout)': 'onTouchedFn?.()',\n },\n hostDirectives: [\n {\n directive: NgpSwitch,\n inputs: ['ngpSwitchChecked:mgnpSwitchChecked', 'ngpSwitchDisabled:mgnpSwitchDisabled'],\n outputs: ['ngpSwitchCheckedChange:mgnpSwitchCheckedChange'],\n },\n ],\n exportAs: 'mgnpSwitch',\n})\nexport class MgnpSwitch implements ControlValueAccessor {\n protected readonly state = injectSwitchState();\n\n protected onChangeFn?: ChangeFn<boolean>;\n protected onTouchedFn?: TouchedFn;\n\n constructor() {\n this.state()\n .checkedChange.pipe(takeUntilDestroyed())\n .subscribe((value) => this.onChangeFn?.(value));\n }\n\n writeValue(value: boolean): void {\n this.state().setChecked(value);\n }\n\n registerOnChange(fn: ChangeFn<boolean>): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: TouchedFn): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(value: boolean): void {\n this.state().setDisabled(value);\n }\n}\n","import { Directive } from '@angular/core';\nimport {\n injectSwitchThumbState,\n NgpSwitchThumb,\n provideSwitchThumbState,\n} from 'ng-primitives/switch';\n\n@Directive({\n selector: '[mgnpSwitchThumb]',\n standalone: true,\n providers: [provideSwitchThumbState()],\n host: {\n class: 'mgnp-switch-thumb mgnp-c-switch-thumb',\n 'data-mgnp-switch-thumb': '',\n },\n hostDirectives: [\n {\n directive: NgpSwitchThumb,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpSwitchThumb',\n})\nexport class MgnpSwitchThumb {\n protected readonly state = injectSwitchThumbState();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAwBa,UAAU,CAAA;IACF,KAAK,GAAG,iBAAiB,EAAE;AAEpC,IAAA,UAAU;AACV,IAAA,WAAW;AAErB,IAAA,WAAA,GAAA;QACE,IAAI,CAAC,KAAK;AACP,aAAA,aAAa,CAAC,IAAI,CAAC,kBAAkB,EAAE;AACvC,aAAA,SAAS,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;IACnD;AAEA,IAAA,UAAU,CAAC,KAAc,EAAA;QACvB,IAAI,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IAChC;AAEA,IAAA,gBAAgB,CAAC,EAAqB,EAAA;AACpC,QAAA,IAAI,CAAC,UAAU,GAAG,EAAE;IACtB;AAEA,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,WAAW,GAAG,EAAE;IACvB;AAEA,IAAA,gBAAgB,CAAC,KAAc,EAAA;QAC7B,IAAI,CAAC,KAAK,EAAE,CAAC,W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 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
2
+ import { Directive } from '@angular/core';
3
+ import * as i1 from 'ng-primitives/toast';
3
4
  import { NgpToast } from 'ng-primitives/toast';
4
5
 
5
- const options = ['ngpToast'];
6
- const error = new Error(`MgnpToast must be used with ${options.join(' / ')}`);
7
6
  class MgnpToast {
8
- ngpToast = inject(NgpToast, { optional: true });
9
- constructor() {
10
- if (!this.ngpToast) {
11
- console.error(this);
12
- throw error;
13
- }
14
- }
15
7
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpToast, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpToast, isStandalone: true, selector: "[ngpToast][mgnpToast]", host: { attributes: { "data-mgnp-component": "mgnp-toast" } }, ngImport: i0 });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpToast, isStandalone: true, selector: "[mgnpToast]", host: { attributes: { "data-mgnp-toast": "" }, classAttribute: "mgnp-toast mgnp-c-toast" }, exportAs: ["mgnpToast"], hostDirectives: [{ directive: i1.NgpToast }], ngImport: i0 });
17
9
  }
18
10
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpToast, decorators: [{
19
11
  type: Directive,
20
12
  args: [{
21
- selector: '[ngpToast][mgnpToast]',
13
+ selector: '[mgnpToast]',
22
14
  standalone: true,
23
15
  host: {
24
- 'data-mgnp-component': 'mgnp-toast'
16
+ class: 'mgnp-toast mgnp-c-toast',
17
+ 'data-mgnp-toast': '',
25
18
  },
19
+ hostDirectives: [
20
+ {
21
+ directive: NgpToast,
22
+ inputs: [],
23
+ outputs: [],
24
+ },
25
+ ],
26
+ exportAs: 'mgnpToast',
26
27
  }]
27
- }], ctorParameters: () => [] });
28
+ }] });
28
29
 
29
30
  /**
30
31
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-toast.mjs","sources":["../../../../libs/ng-primitives/toast/src/lib/mgnp-toast/mgnp-toast.directive.ts","../../../../libs/ng-primitives/toast/src/mgremy-ng-primitives-toast.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpToast } from 'ng-primitives/toast';\n\nconst options = ['ngpToast'];\n\nconst error = new Error(`MgnpToast must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpToast][mgnpToast]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-toast'\n },\n})\nexport class MgnpToast {\n protected readonly ngpToast = inject(NgpToast, { optional: true });\n\n constructor() {\n if (!this.ngpToast) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAAM,OAAO,GAAG,CAAC,UAAU,CAAC;AAE5B,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAA,4BAAA,EAA+B,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MAShE,SAAS,CAAA;IACD,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAElE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAClB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGARW,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,YAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE;AACxB,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"mgremy-ng-primitives-toast.mjs","sources":["../../../../libs/ng-primitives/toast/src/lib/mgnp-toast/mgnp-toast.directive.ts","../../../../libs/ng-primitives/toast/src/mgremy-ng-primitives-toast.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { NgpToast } from 'ng-primitives/toast';\n\n@Directive({\n selector: '[mgnpToast]',\n standalone: true,\n host: {\n class: 'mgnp-toast mgnp-c-toast',\n 'data-mgnp-toast': '',\n },\n hostDirectives: [\n {\n directive: NgpToast,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpToast',\n})\nexport class MgnpToast {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmBa,SAAS,CAAA;uGAAT,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,EAAA,cAAA,EAAA,yBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAhBrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,yBAAyB;AAChC,wBAAA,iBAAiB,EAAE,EAAE;AACtB,qBAAA;AACD,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,QAAQ;AACnB,4BAAA,MAAM,EAAE,EAAE;AACV,4BAAA,OAAO,EAAE,EAAE;AACZ,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE,WAAW;AACtB,iBAAA;;;AClBD;;AAEG;;;;"}
@@ -1,60 +1,105 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
3
- import { NgpTooltip, NgpTooltipArrow } from 'ng-primitives/tooltip';
2
+ import { Directive } from '@angular/core';
3
+ import * as i1 from 'ng-primitives/tooltip';
4
+ import { NgpTooltip, injectTooltipArrowState, provideTooltipArrowState, NgpTooltipArrow, injectTooltipTriggerState, provideTooltipTriggerState, NgpTooltipTrigger } from 'ng-primitives/tooltip';
4
5
 
5
- const options$1 = ['ngpTooltip'];
6
- const error$1 = new Error(`MgnpTooltip must be used with ${options$1.join(' / ')}`);
7
6
  class MgnpTooltip {
8
- ngpTooltip = inject(NgpTooltip, { optional: true });
9
- constructor() {
10
- if (!this.ngpTooltip) {
11
- console.error(this);
12
- throw error$1;
13
- }
14
- }
15
7
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltip, isStandalone: true, selector: "[ngpTooltip][mgnpTooltip]", host: { attributes: { "data-mgnp-component": "mgnp-tooltip" } }, ngImport: i0 });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltip, isStandalone: true, selector: "[mgnpTooltip]", host: { attributes: { "data-mgnp-tooltip": "" }, classAttribute: "mgnp-tooltip mgnp-c-tooltip" }, exportAs: ["mgnpTooltip"], hostDirectives: [{ directive: i1.NgpTooltip }], ngImport: i0 });
17
9
  }
18
10
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltip, decorators: [{
19
11
  type: Directive,
20
12
  args: [{
21
- selector: '[ngpTooltip][mgnpTooltip]',
13
+ selector: '[mgnpTooltip]',
22
14
  standalone: true,
23
15
  host: {
24
- 'data-mgnp-component': 'mgnp-tooltip',
16
+ class: 'mgnp-tooltip mgnp-c-tooltip',
17
+ 'data-mgnp-tooltip': '',
25
18
  },
19
+ hostDirectives: [
20
+ {
21
+ directive: NgpTooltip,
22
+ inputs: [],
23
+ outputs: [],
24
+ },
25
+ ],
26
+ exportAs: 'mgnpTooltip',
26
27
  }]
27
- }], ctorParameters: () => [] });
28
+ }] });
28
29
 
29
- const options = ['ngpTooltipArrow'];
30
- const error = new Error(`MgnpTooltipArrow must be used with ${options.join(' / ')}`);
31
30
  class MgnpTooltipArrow {
32
- ngpTooltipArrow = inject(NgpTooltipArrow, {
33
- optional: true,
34
- });
35
- constructor() {
36
- if (!this.ngpTooltipArrow) {
37
- console.error(this);
38
- throw error;
39
- }
40
- }
31
+ state = injectTooltipArrowState();
41
32
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltipArrow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
42
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltipArrow, isStandalone: true, selector: "[ngpTooltipArrow][mgnpTooltipArrow]", host: { attributes: { "data-mgnp-component": "mgnp-tooltip-arrow" } }, ngImport: i0 });
33
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltipArrow, isStandalone: true, selector: "[mgnpTooltipArrow]", host: { attributes: { "data-mgnp-tooltip-arrow": "" }, classAttribute: "mgnp-tooltip-arrow mgnp-c-tooltip-arrow" }, providers: [provideTooltipArrowState()], exportAs: ["mgnpTooltipArrow"], hostDirectives: [{ directive: i1.NgpTooltipArrow, inputs: ["ngpTooltipArrowPadding", "mgnpTooltipArrowPadding"] }], ngImport: i0 });
43
34
  }
44
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltipArrow, decorators: [{
45
36
  type: Directive,
46
37
  args: [{
47
- selector: '[ngpTooltipArrow][mgnpTooltipArrow]',
38
+ selector: '[mgnpTooltipArrow]',
48
39
  standalone: true,
40
+ providers: [provideTooltipArrowState()],
49
41
  host: {
50
- 'data-mgnp-component': 'mgnp-tooltip-arrow',
42
+ class: 'mgnp-tooltip-arrow mgnp-c-tooltip-arrow',
43
+ 'data-mgnp-tooltip-arrow': '',
51
44
  },
45
+ hostDirectives: [
46
+ {
47
+ directive: NgpTooltipArrow,
48
+ inputs: ['ngpTooltipArrowPadding:mgnpTooltipArrowPadding'],
49
+ outputs: [],
50
+ },
51
+ ],
52
+ exportAs: 'mgnpTooltipArrow',
52
53
  }]
53
- }], ctorParameters: () => [] });
54
+ }] });
55
+
56
+ class MgnpTooltipTrigger {
57
+ state = injectTooltipTriggerState();
58
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltipTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
59
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltipTrigger, isStandalone: true, selector: "[mgnpTooltipTrigger]", host: { attributes: { "data-mgnp-tooltip-trigger": "" }, classAttribute: "mgnp-tooltip-trigger mgnp-c-tooltip-trigger" }, providers: [provideTooltipTriggerState()], exportAs: ["mgnpTooltipTrigger"], hostDirectives: [{ directive: i1.NgpTooltipTrigger, inputs: ["ngpTooltipTrigger", "mgnpTooltipTrigger", "ngpTooltipTriggerDisabled", "mgnpTooltipTriggerDisabled", "ngpTooltipTriggerPlacement", "mgnpTooltipTriggerPlacement", "ngpTooltipTriggerOffset", "mgnpTooltipTriggerOffset", "ngpTooltipTriggerShowDelay", "mgnpTooltipTriggerShowDelay", "ngpTooltipTriggerHideDelay", "mgnpTooltipTriggerHideDelay", "ngpTooltipTriggerFlip", "mgnpTooltipTriggerFlip", "ngpTooltipTriggerShift", "mgnpTooltipTriggerShift", "ngpTooltipTriggerContainer", "mgnpTooltipTriggerContainer", "ngpTooltipTriggerShowOnOverflow", "mgnpTooltipTriggerShowOnOverflow", "ngpTooltipTriggerAnchor", "mgnpTooltipTriggerAnchor", "ngpTooltipTriggerContext", "mgnpTooltipTriggerContext", "ngpTooltipTriggerUseTextContent", "mgnpTooltipTriggerUseTextContent", "ngpTooltipTriggerTrackPosition", "mgnpTooltipTriggerTrackPosition", "ngpTooltipTriggerScrollBehavior", "mgnpTooltipTriggerScrollBehavior", "ngpTooltipTriggerCooldown", "mgnpTooltipTriggerCooldown", "ngpTooltipTriggerHoverableContent", "mgnpTooltipTriggerHoverableContent"] }], ngImport: i0 });
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltipTrigger, decorators: [{
62
+ type: Directive,
63
+ args: [{
64
+ selector: '[mgnpTooltipTrigger]',
65
+ standalone: true,
66
+ providers: [provideTooltipTriggerState()],
67
+ host: {
68
+ class: 'mgnp-tooltip-trigger mgnp-c-tooltip-trigger',
69
+ 'data-mgnp-tooltip-trigger': '',
70
+ },
71
+ hostDirectives: [
72
+ {
73
+ directive: NgpTooltipTrigger,
74
+ inputs: [
75
+ 'ngpTooltipTrigger:mgnpTooltipTrigger',
76
+ 'ngpTooltipTriggerDisabled:mgnpTooltipTriggerDisabled',
77
+ 'ngpTooltipTriggerPlacement:mgnpTooltipTriggerPlacement',
78
+ 'ngpTooltipTriggerOffset:mgnpTooltipTriggerOffset',
79
+ 'ngpTooltipTriggerShowDelay:mgnpTooltipTriggerShowDelay',
80
+ 'ngpTooltipTriggerHideDelay:mgnpTooltipTriggerHideDelay',
81
+ 'ngpTooltipTriggerFlip:mgnpTooltipTriggerFlip',
82
+ 'ngpTooltipTriggerShift:mgnpTooltipTriggerShift',
83
+ 'ngpTooltipTriggerContainer:mgnpTooltipTriggerContainer',
84
+ 'ngpTooltipTriggerShowOnOverflow:mgnpTooltipTriggerShowOnOverflow',
85
+ 'ngpTooltipTriggerAnchor:mgnpTooltipTriggerAnchor',
86
+ 'ngpTooltipTriggerContext:mgnpTooltipTriggerContext',
87
+ 'ngpTooltipTriggerUseTextContent:mgnpTooltipTriggerUseTextContent',
88
+ 'ngpTooltipTriggerTrackPosition:mgnpTooltipTriggerTrackPosition',
89
+ 'ngpTooltipTriggerScrollBehavior:mgnpTooltipTriggerScrollBehavior',
90
+ 'ngpTooltipTriggerCooldown:mgnpTooltipTriggerCooldown',
91
+ 'ngpTooltipTriggerHoverableContent:mgnpTooltipTriggerHoverableContent',
92
+ ],
93
+ outputs: [],
94
+ },
95
+ ],
96
+ exportAs: 'mgnpTooltipTrigger',
97
+ }]
98
+ }] });
54
99
 
55
100
  /**
56
101
  * Generated bundle index. Do not edit.
57
102
  */
58
103
 
59
- export { MgnpTooltip, MgnpTooltipArrow };
104
+ export { MgnpTooltip, MgnpTooltipArrow, MgnpTooltipTrigger };
60
105
  //# sourceMappingURL=mgremy-ng-primitives-tooltip.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-tooltip.mjs","sources":["../../../../libs/ng-primitives/tooltip/src/lib/mgnp-tooltip/mgnp-tooltip.directive.ts","../../../../libs/ng-primitives/tooltip/src/lib/mgnp-tooltip-arrow/mgnp-tooltip-arrow.directive.ts","../../../../libs/ng-primitives/tooltip/src/mgremy-ng-primitives-tooltip.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpTooltip } from 'ng-primitives/tooltip';\n\nconst options = ['ngpTooltip'];\n\nconst error = new Error(`MgnpTooltip must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpTooltip][mgnpTooltip]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-tooltip',\n },\n})\nexport class MgnpTooltip {\n protected readonly ngpTooltip = inject(NgpTooltip, { optional: true });\n\n constructor() {\n if (!this.ngpTooltip) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpTooltipArrow } from 'ng-primitives/tooltip';\n\nconst options = ['ngpTooltipArrow'];\n\nconst error = new Error(`MgnpTooltipArrow must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpTooltipArrow][mgnpTooltipArrow]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-tooltip-arrow',\n },\n})\nexport class MgnpTooltipArrow {\n protected readonly ngpTooltipArrow = inject(NgpTooltipArrow, {\n optional: true,\n });\n\n constructor() {\n if (!this.ngpTooltipArrow) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["options","error"],"mappings":";;;;AAGA,MAAMA,SAAO,GAAG,CAAC,YAAY,CAAC;AAE9B,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,8BAAA,EAAiCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASlE,WAAW,CAAA;IACH,UAAU,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEtE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA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,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,oBAAoB;AAC5C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"mgremy-ng-primitives-tooltip.mjs","sources":["../../../../libs/ng-primitives/tooltip/src/lib/mgnp-tooltip/mgnp-tooltip.directive.ts","../../../../libs/ng-primitives/tooltip/src/lib/mgnp-tooltip-arrow/mgnp-tooltip-arrow.directive.ts","../../../../libs/ng-primitives/tooltip/src/lib/mgnp-tooltip-trigger/mgnp-tooltip-trigger.directive.ts","../../../../libs/ng-primitives/tooltip/src/mgremy-ng-primitives-tooltip.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { NgpTooltip } from 'ng-primitives/tooltip';\n\n@Directive({\n selector: '[mgnpTooltip]',\n standalone: true,\n host: {\n class: 'mgnp-tooltip mgnp-c-tooltip',\n 'data-mgnp-tooltip': '',\n },\n hostDirectives: [\n {\n directive: NgpTooltip,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpTooltip',\n})\nexport class MgnpTooltip {}\n","import { Directive } from '@angular/core';\nimport {\n injectTooltipArrowState,\n NgpTooltipArrow,\n provideTooltipArrowState,\n} from 'ng-primitives/tooltip';\n\n@Directive({\n selector: '[mgnpTooltipArrow]',\n standalone: true,\n providers: [provideTooltipArrowState()],\n host: {\n class: 'mgnp-tooltip-arrow mgnp-c-tooltip-arrow',\n 'data-mgnp-tooltip-arrow': '',\n },\n hostDirectives: [\n {\n directive: NgpTooltipArrow,\n inputs: ['ngpTooltipArrowPadding:mgnpTooltipArrowPadding'],\n outputs: [],\n },\n ],\n exportAs: 'mgnpTooltipArrow',\n})\nexport class MgnpTooltipArrow {\n protected readonly state = injectTooltipArrowState();\n}\n","import { Directive } from '@angular/core';\nimport {\n injectTooltipTriggerState,\n NgpTooltipTrigger,\n provideTooltipTriggerState,\n} from 'ng-primitives/tooltip';\n\n@Directive({\n selector: '[mgnpTooltipTrigger]',\n standalone: true,\n providers: [provideTooltipTriggerState()],\n host: {\n class: 'mgnp-tooltip-trigger mgnp-c-tooltip-trigger',\n 'data-mgnp-tooltip-trigger': '',\n },\n hostDirectives: [\n {\n directive: NgpTooltipTrigger,\n inputs: [\n 'ngpTooltipTrigger:mgnpTooltipTrigger',\n 'ngpTooltipTriggerDisabled:mgnpTooltipTriggerDisabled',\n 'ngpTooltipTriggerPlacement:mgnpTooltipTriggerPlacement',\n 'ngpTooltipTriggerOffset:mgnpTooltipTriggerOffset',\n 'ngpTooltipTriggerShowDelay:mgnpTooltipTriggerShowDelay',\n 'ngpTooltipTriggerHideDelay:mgnpTooltipTriggerHideDelay',\n 'ngpTooltipTriggerFlip:mgnpTooltipTriggerFlip',\n 'ngpTooltipTriggerShift:mgnpTooltipTriggerShift',\n 'ngpTooltipTriggerContainer:mgnpTooltipTriggerContainer',\n 'ngpTooltipTriggerShowOnOverflow:mgnpTooltipTriggerShowOnOverflow',\n 'ngpTooltipTriggerAnchor:mgnpTooltipTriggerAnchor',\n 'ngpTooltipTriggerContext:mgnpTooltipTriggerContext',\n 'ngpTooltipTriggerUseTextContent:mgnpTooltipTriggerUseTextContent',\n 'ngpTooltipTriggerTrackPosition:mgnpTooltipTriggerTrackPosition',\n 'ngpTooltipTriggerScrollBehavior:mgnpTooltipTriggerScrollBehavior',\n 'ngpTooltipTriggerCooldown:mgnpTooltipTriggerCooldown',\n 'ngpTooltipTriggerHoverableContent:mgnpTooltipTriggerHoverableContent',\n ],\n outputs: [],\n },\n ],\n exportAs: 'mgnpTooltipTrigger',\n})\nexport class MgnpTooltipTrigger {\n protected readonly state = injectTooltipTriggerState();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmBa,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA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AoD;gCACpD,kEAAkE;gCAClE,gEAAgE;gCAChE,kEAAkE;gCAClE,sDAAsD;gCACtD,sEAAsE;AACvE,6BAAA;AACD,4BAAA,OAAO,EAAE,EAAE;AACZ,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE,oBAAoB;AAC/B,iBAAA;;;ACzCD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgremy/ng-primitives",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://doc.mgremy.xyz/ng-primitives",
6
6
  "publishConfig": {
@@ -10,15 +10,17 @@
10
10
  "url": "https://github.com/MGREMY/nx_source"
11
11
  },
12
12
  "peerDependencies": {
13
+ "@angular/cdk": "^21.1.0",
13
14
  "@angular/core": "^21.1.0",
14
- "ng-primitives": "^0.110.0",
15
- "tailwindcss": "^4.3.0"
15
+ "ng-primitives": "^0.120.0",
16
+ "tailwindcss": "^4.3.0",
17
+ "rxjs": "^7.8.0"
16
18
  },
17
19
  "sideEffects": false,
18
- "style": "theme/mgnp.css",
20
+ "style": "_theme/mgnp.css",
19
21
  "exports": {
20
22
  ".": {
21
- "style": "./theme/mgnp.css",
23
+ "style": "./_theme/mgnp.css",
22
24
  "types": "./types/mgremy-ng-primitives.d.ts",
23
25
  "default": "./fesm2022/mgremy-ng-primitives.mjs"
24
26
  },
@@ -1,25 +1,33 @@
1
- import { NgpAccordion, NgpAccordionContent, NgpAccordionItem } from 'ng-primitives/accordion';
2
1
  import * as i0 from '@angular/core';
2
+ import * as i1 from 'ng-primitives/accordion';
3
3
 
4
4
  declare class MgnpAccordion {
5
- protected readonly ngpAccordion: NgpAccordion<any> | null;
6
- constructor();
5
+ protected readonly state: i0.Signal<i1.NgpAccordionState<unknown>>;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpAccordion, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordion, "[ngpAccordion][mgnpAccordion]", never, {}, {}, never, never, true, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordion, "[mgnpAccordion]", ["mgnpAccordion"], {}, {}, never, never, true, [{ directive: typeof i1.NgpAccordion; inputs: { "ngpAccordionType": "mgnpAccordionType"; "ngpAccordionCollapsible": "mgnpAccordionCollapsible"; "ngpAccordionValue": "mgnpAccordionValue"; "ngpAccordionDisabled": "mgnpAccordionDisabled"; "ngpAccordionOrientation": "mgnpAccordionOrientation"; }; outputs: { "ngpAccordionValueChange": "mgnpAccordionValueChange"; }; }]>;
9
8
  }
10
9
 
11
10
  declare class MgnpAccordionContent {
12
- protected readonly ngpAccordionContent: NgpAccordionContent<any> | null;
13
- constructor();
11
+ protected readonly state: i0.Signal<{
12
+ id: i0.Signal<string>;
13
+ }>;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpAccordionContent, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordionContent, "[ngpAccordionContent][mgnpAccordionContent]", never, {}, {}, never, never, true, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordionContent, "[mgnpAccordionContent]", ["mgnpAccordionContent"], {}, {}, never, never, true, [{ directive: typeof i1.NgpAccordionContent; inputs: {}; outputs: {}; }]>;
16
16
  }
17
17
 
18
18
  declare class MgnpAccordionItem {
19
- protected readonly ngpAccordionItem: NgpAccordionItem<any> | null;
20
- constructor();
19
+ protected readonly state: i0.Signal<i1.NgpAccordionItemState<unknown>>;
21
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpAccordionItem, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordionItem, "[ngpAccordionItem][mgnpAccordionItem]", never, {}, {}, never, never, true, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordionItem, "[mgnpAccordionItem]", ["mgnpAccordionItem"], {}, {}, never, never, true, [{ directive: typeof i1.NgpAccordionItem; inputs: { "ngpAccordionItemValue": "mgnpAccordionItemValue"; "ngpAccordionItemDisabled": "mgnpAccordionItemDisabled"; }; outputs: {}; }]>;
23
22
  }
24
23
 
25
- export { MgnpAccordion, MgnpAccordionContent, MgnpAccordionItem };
24
+ declare class MgnpAccordionTrigger {
25
+ protected readonly state: i0.Signal<{
26
+ id: i0.Signal<string>;
27
+ toggle: () => void;
28
+ }>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpAccordionTrigger, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpAccordionTrigger, "[mgnpAccordionTrigger]", ["mgnpAccordionTrigger"], {}, {}, never, never, true, [{ directive: typeof i1.NgpAccordionTrigger; inputs: {}; outputs: {}; }]>;
31
+ }
32
+
33
+ export { MgnpAccordion, MgnpAccordionContent, MgnpAccordionItem, MgnpAccordionTrigger };
@@ -1,28 +1,17 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import * as ng_primitives_button from 'ng-primitives/button';
2
3
  import { PropertyType } from '@mgremy/ng-primitives';
3
- import { NgpAccordionTrigger } from 'ng-primitives/accordion';
4
- import { NgpButton } from 'ng-primitives/button';
5
- import { NgpComboboxButton } from 'ng-primitives/combobox';
6
- import { NgpDialogTrigger } from 'ng-primitives/dialog';
7
- import { NgpMenuTrigger } from 'ng-primitives/menu';
8
- import { NgpTooltipTrigger } from 'ng-primitives/tooltip';
9
4
 
10
5
  type MgnpButtonColor = PropertyType<'ui' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'>;
11
6
  type MgnpButtonVariant = PropertyType<'solid' | 'outline'>;
12
7
  type MgnpButtonSize = PropertyType<'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
13
8
  declare class MgnpButton {
14
- protected readonly ngpButton: NgpButton | null;
15
- protected readonly ngpComboboxButton: NgpComboboxButton | null;
16
- protected readonly ngpMenuTrigger: NgpMenuTrigger<any> | null;
17
- protected readonly ngpTooltipTrigger: NgpTooltipTrigger<any> | null;
18
- protected readonly ngpAccordionTrigger: NgpAccordionTrigger<any> | null;
19
- protected readonly ngpDialogTrigger: NgpDialogTrigger<any> | null;
9
+ protected readonly state: _angular_core.Signal<ng_primitives_button.NgpButtonState>;
20
10
  readonly color: _angular_core.InputSignal<MgnpButtonColor>;
21
11
  readonly variant: _angular_core.InputSignal<MgnpButtonVariant>;
22
12
  readonly size: _angular_core.InputSignal<MgnpButtonSize>;
23
- constructor();
24
13
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MgnpButton, never>;
25
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MgnpButton, "[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton], [ngpTooltipTrigger][mgnpButton], [ngpAccordionTrigger][mgnpButton], [ngpDialogTrigger][mgnpButton]", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MgnpButton, "[mgnpButton]", ["mgnpButton"], { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof ng_primitives_button.NgpButton; inputs: { "disabled": "disabled"; }; outputs: {}; }]>;
26
15
  }
27
16
 
28
17
  export { MgnpButton };
@@ -1,11 +1,25 @@
1
- import { NgpCheckbox } from 'ng-primitives/checkbox';
2
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import * as ng_primitives_checkbox from 'ng-primitives/checkbox';
3
+ import { PropertyType } from '@mgremy/ng-primitives';
4
+ import { ControlValueAccessor } from '@angular/forms';
5
+ import { ChangeFn, TouchedFn } from 'ng-primitives/utils';
3
6
 
4
- declare class MgnpCheckbox {
5
- protected readonly ngpCheckbox: NgpCheckbox | null;
7
+ type MgnpCheckboxColor = PropertyType<'ui' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'>;
8
+ type MgnpCheckboxSize = PropertyType<'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
9
+ declare class MgnpCheckbox implements ControlValueAccessor {
10
+ protected readonly state: _angular_core.Signal<ng_primitives_checkbox.NgpCheckboxState>;
11
+ protected onChangeFn?: ChangeFn<boolean>;
12
+ protected onTouchedFn?: TouchedFn;
13
+ readonly color: _angular_core.InputSignal<MgnpCheckboxColor>;
14
+ readonly size: _angular_core.InputSignal<MgnpCheckboxSize>;
6
15
  constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MgnpCheckbox, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpCheckbox, "[ngpCheckbox][mgnpCheckbox]", never, {}, {}, never, never, true, never>;
16
+ writeValue(value: boolean): void;
17
+ registerOnChange(fn: ChangeFn<boolean>): void;
18
+ registerOnTouched(fn: TouchedFn): void;
19
+ setDisabledState(value: boolean): void;
20
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MgnpCheckbox, never>;
21
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MgnpCheckbox, "[mgnpCheckbox]", ["mgnpCheckbox"], { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof ng_primitives_checkbox.NgpCheckbox; inputs: { "ngpCheckboxChecked": "mgnpCheckboxChecked"; "ngpCheckboxDefaultChecked": "mgnpCheckboxDefaultChecked"; "ngpCheckboxIndeterminate": "mgnpCheckboxIndeterminate"; "ngpCheckboxRequired": "mgnpCheckboxRequired"; "ngpCheckboxDisabled": "mgnpCheckboxDisabled"; }; outputs: { "ngpCheckboxCheckedChange": "mgnpCheckboxCheckedChange"; "ngpCheckboxIndeterminateChange": "mgnpCheckboxIndeterminateChange"; }; }]>;
9
22
  }
10
23
 
11
24
  export { MgnpCheckbox };
25
+ export type { MgnpCheckboxColor, MgnpCheckboxSize };
@@ -1,32 +1,41 @@
1
- import { NgpCombobox, NgpComboboxDropdown, NgpComboboxInput, NgpComboboxOption } from 'ng-primitives/combobox';
2
1
  import * as i0 from '@angular/core';
2
+ import * as ng_primitives_state from 'ng-primitives/state';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+ import * as i1 from 'ng-primitives/combobox';
5
+ import { NgpCombobox } from 'ng-primitives/combobox';
6
+ import { ChangeFn, TouchedFn } from 'ng-primitives/utils';
3
7
 
4
- declare class MgnpCombobox {
5
- protected readonly ngpCombobox: NgpCombobox | null;
8
+ declare class MgnpCombobox<T> implements ControlValueAccessor {
9
+ protected readonly state: i0.Signal<ng_primitives_state.State<NgpCombobox>>;
10
+ protected onChangeFn?: ChangeFn<T>;
11
+ protected onTouchedFn?: TouchedFn;
6
12
  constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MgnpCombobox, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpCombobox, "[ngpCombobox][mgnpCombobox]", never, {}, {}, never, never, true, never>;
13
+ writeValue(value: T): void;
14
+ registerOnChange(fn: ChangeFn<T>): void;
15
+ registerOnTouched(fn: TouchedFn): void;
16
+ setDisabledState(value: boolean): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpCombobox<any>, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpCombobox<any>, "[mgnpCombobox]", ["mgnpCombobox"], {}, {}, never, never, true, [{ directive: typeof i1.NgpCombobox; inputs: { "ngpComboboxValue": "mgnpComboboxValue"; "ngpComboboxMultiple": "mgnpComboboxMultiple"; "ngpComboboxDisabled": "mgnpComboboxDisabled"; "ngpComboboxAllowDeselect": "mgnpComboboxAllowDeselect"; "ngpComboboxCompareWith": "mgnpComboboxCompareWith"; "ngpComboboxDropdownPlacement": "mgnpComboboxDropdownPlacement"; "ngpComboboxDropdownContainer": "mgnpComboboxDropdownContainer"; "ngpComboboxDropdownFlip": "mgnpComboboxDropdownFlip"; "ngpComboboxDropdownOffset": "mgnpComboboxDropdownOffset"; "ngpComboboxScrollToOption": "mgnpComboboxScrollToOption"; "ngpComboboxOptions": "mgnpComboboxOptions"; }; outputs: { "ngpComboboxValueChange": "mgnpComboboxValueChange"; "ngpComboboxOpenChange": "mgnpComboboxOpenChange"; }; }]>;
19
+ }
20
+
21
+ declare class MgnpComboboxButton {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpComboboxButton, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxButton, "[mgnpComboboxButton]", ["mgnpComboboxButton"], {}, {}, never, never, true, [{ directive: typeof i1.NgpComboboxButton; inputs: {}; outputs: {}; }]>;
9
24
  }
10
25
 
11
26
  declare class MgnpComboboxDropdown {
12
- protected readonly ngpComboboxDropdown: NgpComboboxDropdown | null;
13
- constructor();
14
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpComboboxDropdown, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxDropdown, "[ngpComboboxDropdown][mgnpComboboxDropdown]", never, {}, {}, never, never, true, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxDropdown, "[mgnpComboboxDropdown]", ["mgnpComboboxDropdown"], {}, {}, never, never, true, [{ directive: typeof i1.NgpComboboxDropdown; inputs: {}; outputs: {}; }]>;
16
29
  }
17
30
 
18
31
  declare class MgnpComboboxInput {
19
- protected readonly ngpComboboxInput: NgpComboboxInput | null;
20
- constructor();
21
32
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpComboboxInput, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxInput, "[ngpComboboxInput][mgnpComboboxInput]", never, {}, {}, never, never, true, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxInput, "[mgnpComboboxInput]", ["mgnpComboboxInput"], {}, {}, never, never, true, [{ directive: typeof i1.NgpComboboxInput; inputs: {}; outputs: {}; }]>;
23
34
  }
24
35
 
25
36
  declare class MgnpComboboxOption {
26
- protected readonly ngpComboboxOption: NgpComboboxOption | null;
27
- constructor();
28
37
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpComboboxOption, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxOption, "[ngpComboboxOption][mgnpComboboxOption]", never, {}, {}, never, never, true, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpComboboxOption, "[mgnpComboboxOption]", ["mgnpComboboxOption"], {}, {}, never, never, true, [{ directive: typeof i1.NgpComboboxOption; inputs: { "ngpComboboxOptionValue": "mgnpComboboxOptionValue"; "ngpComboboxOptionDisabled": "mgnpComboboxOptionDisabled"; "ngpComboboxOptionIndex": "mgnpComboboxOptionIndex"; }; outputs: { "ngpComboboxOptionActivated": "mgnpComboboxOptionActivated"; }; }]>;
30
39
  }
31
40
 
32
- export { MgnpCombobox, MgnpComboboxDropdown, MgnpComboboxInput, MgnpComboboxOption };
41
+ export { MgnpCombobox, MgnpComboboxButton, MgnpComboboxDropdown, MgnpComboboxInput, MgnpComboboxOption };