@mgremy/ng-primitives 0.12.0 → 0.14.0

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 +2 -0
  20. package/_theme/utilities.css +5 -0
  21. package/fesm2022/mgremy-ng-primitives-accordion.mjs +81 -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 +117 -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 +177 -0
  32. package/fesm2022/mgremy-ng-primitives-form-field.mjs.map +1 -0
  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 +208 -29
  36. package/fesm2022/mgremy-ng-primitives-menu.mjs.map +1 -1
  37. package/fesm2022/mgremy-ng-primitives-pagination.mjs +143 -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/form-field/README.md +4 -0
  46. package/package.json +11 -5
  47. package/types/mgremy-ng-primitives-accordion.d.ts +19 -11
  48. package/types/mgremy-ng-primitives-button.d.ts +3 -14
  49. package/types/mgremy-ng-primitives-checkbox.d.ts +20 -6
  50. package/types/mgremy-ng-primitives-combobox.d.ts +24 -15
  51. package/types/mgremy-ng-primitives-dialog.d.ts +15 -14
  52. package/types/mgremy-ng-primitives-form-field.d.ts +70 -0
  53. package/types/mgremy-ng-primitives-input.d.ts +11 -6
  54. package/types/mgremy-ng-primitives-menu.d.ts +65 -8
  55. package/types/mgremy-ng-primitives-pagination.d.ts +31 -5
  56. package/types/mgremy-ng-primitives-switch.d.ts +14 -6
  57. package/types/mgremy-ng-primitives-toast.d.ts +2 -4
  58. package/types/mgremy-ng-primitives-tooltip.d.ts +14 -8
  59. package/theme/components/accordion.css +0 -171
  60. package/theme/components/button.css +0 -252
  61. package/theme/components/checkbox.css +0 -37
  62. package/theme/components/combobox.css +0 -124
  63. package/theme/components/dialog.css +0 -101
  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,112 +1,144 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, input, Directive } from '@angular/core';
3
- import { NgpDialogOverlay, NgpDialog, NgpDialogDescription, NgpDialogTitle } from 'ng-primitives/dialog';
2
+ import { input, Directive, inject } from '@angular/core';
3
+ import * as i1 from 'ng-primitives/dialog';
4
+ import { provideDialogState, NgpDialogOverlay, injectDialogState, NgpDialog, NgpDialogDescription, NgpDialogTitle, NgpDialogTrigger } from 'ng-primitives/dialog';
4
5
 
5
- const options$3 = ['ngpDialogOverlay'];
6
- const error$3 = new Error(`MgnpDialogOverlay must be used with ${options$3.join(' / ')}`);
7
6
  class MgnpDialogOverlay {
8
- _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });
9
7
  mode = input('modal', ...(ngDevMode ? [{ debugName: "mode" }] : []));
10
8
  drawerPosition = input('end', ...(ngDevMode ? [{ debugName: "drawerPosition" }] : []));
11
- constructor() {
12
- if (!this._ngpDialogOverlay) {
13
- console.error(this);
14
- throw error$3;
15
- }
16
- }
17
9
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.1", type: MgnpDialogOverlay, isStandalone: true, selector: "[ngpDialogOverlay][mgnpDialogOverlay]", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, drawerPosition: { classPropertyName: "drawerPosition", publicName: "drawerPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-mgnp-component": "mgnp-dialog-overlay" }, properties: { "attr.data-mgnp-mode": "mode()", "attr.data-mgnp-drawer-position": "drawerPosition()" } }, ngImport: i0 });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.1", type: MgnpDialogOverlay, isStandalone: true, selector: "[mgnpDialogOverlay]", inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, drawerPosition: { classPropertyName: "drawerPosition", publicName: "drawerPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-mgnp-dialog-overlay": "" }, properties: { "attr.data-mgnp-dialog-overlay-mode": "mode()", "attr.data-mgnp-dialog-overlay-position": "drawerPosition()" }, classAttribute: "mgnp-dialog-overlay mgnp-c-dialog-overlay" }, providers: [provideDialogState()], exportAs: ["mgnpDialogOverlay"], hostDirectives: [{ directive: i1.NgpDialogOverlay, inputs: ["ngpDialogOverlayCloseOnClick", "closeOnClick"] }], ngImport: i0 });
19
11
  }
20
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, decorators: [{
21
13
  type: Directive,
22
14
  args: [{
23
- selector: '[ngpDialogOverlay][mgnpDialogOverlay]',
15
+ selector: '[mgnpDialogOverlay]',
24
16
  standalone: true,
17
+ providers: [provideDialogState()],
25
18
  host: {
26
- 'data-mgnp-component': 'mgnp-dialog-overlay',
27
- '[attr.data-mgnp-mode]': 'mode()',
28
- '[attr.data-mgnp-drawer-position]': 'drawerPosition()',
19
+ class: 'mgnp-dialog-overlay mgnp-c-dialog-overlay',
20
+ 'data-mgnp-dialog-overlay': '',
21
+ '[attr.data-mgnp-dialog-overlay-mode]': 'mode()',
22
+ '[attr.data-mgnp-dialog-overlay-position]': 'drawerPosition()',
29
23
  },
24
+ hostDirectives: [
25
+ {
26
+ directive: NgpDialogOverlay,
27
+ inputs: ['ngpDialogOverlayCloseOnClick:closeOnClick'],
28
+ outputs: [],
29
+ },
30
+ ],
31
+ exportAs: 'mgnpDialogOverlay',
30
32
  }]
31
- }], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], drawerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerPosition", required: false }] }] } });
33
+ }], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], drawerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawerPosition", required: false }] }] } });
32
34
 
33
- const options$2 = ['ngpDialog'];
34
- const error$2 = new Error(`MgnpDialog must be used with ${options$2.join(' / ')}`);
35
35
  class MgnpDialog {
36
- _overlay = inject(MgnpDialogOverlay);
37
- _ngpDialog = inject(NgpDialog, { optional: true });
38
- constructor() {
39
- if (!this._ngpDialog) {
40
- console.error(this);
41
- throw error$2;
42
- }
43
- }
36
+ overlay = inject(MgnpDialogOverlay);
37
+ state = injectDialogState();
44
38
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, deps: [], target: i0.ɵɵFactoryTarget.Directive });
45
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialog, isStandalone: true, selector: "[ngpDialog][mgnpDialog]", host: { attributes: { "data-mgnp-component": "mgnp-dialog" }, properties: { "attr.data-mgnp-mode": "_overlay.mode()" } }, ngImport: i0 });
39
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialog, isStandalone: true, selector: "[mgnpDialog]", host: { attributes: { "data-mgnp-dialog": "" }, properties: { "attr.data-mgnp-dialog-mode": "overlay.mode()" }, classAttribute: "mgnp-dialog mgnp-c-dialog" }, providers: [], exportAs: ["mgnpDialog"], hostDirectives: [{ directive: i1.NgpDialog, inputs: ["ngpDialogRole", "role", "ngpDialogModal", "modal"] }], ngImport: i0 });
46
40
  }
47
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, decorators: [{
48
42
  type: Directive,
49
43
  args: [{
50
- selector: '[ngpDialog][mgnpDialog]',
44
+ selector: '[mgnpDialog]',
51
45
  standalone: true,
46
+ providers: [],
52
47
  host: {
53
- 'data-mgnp-component': 'mgnp-dialog',
54
- '[attr.data-mgnp-mode]': '_overlay.mode()',
48
+ class: 'mgnp-dialog mgnp-c-dialog',
49
+ 'data-mgnp-dialog': '',
50
+ '[attr.data-mgnp-dialog-mode]': 'overlay.mode()',
55
51
  },
52
+ hostDirectives: [
53
+ {
54
+ directive: NgpDialog,
55
+ inputs: ['ngpDialogRole:role', 'ngpDialogModal:modal'],
56
+ outputs: [],
57
+ },
58
+ ],
59
+ exportAs: 'mgnpDialog',
56
60
  }]
57
- }], ctorParameters: () => [] });
61
+ }] });
58
62
 
59
- const options$1 = ['ngpDialogDescription'];
60
- const error$1 = new Error(`MgnpDialogDescription must be used with ${options$1.join(' / ')}`);
61
63
  class MgnpDialogDescription {
62
- _ngpDialogDescription = inject(NgpDialogDescription, { optional: true });
63
- constructor() {
64
- if (!this._ngpDialogDescription) {
65
- console.error(this);
66
- throw error$1;
67
- }
68
- }
69
64
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
70
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogDescription, isStandalone: true, selector: "[ngpDialogDescription][mgnpDialogDescription]", host: { attributes: { "data-mgnp-component": "mgnp-dialog-description" } }, ngImport: i0 });
65
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogDescription, isStandalone: true, selector: "[mgnpDialogDescription]", host: { attributes: { "data-mgnp-dialog-description": "" }, classAttribute: "mgnp-dialog-description mgnp-c-dialog-description" }, exportAs: ["mgnpDialogDescription"], hostDirectives: [{ directive: i1.NgpDialogDescription }], ngImport: i0 });
71
66
  }
72
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, decorators: [{
73
68
  type: Directive,
74
69
  args: [{
75
- selector: '[ngpDialogDescription][mgnpDialogDescription]',
70
+ selector: '[mgnpDialogDescription]',
76
71
  standalone: true,
77
72
  host: {
78
- 'data-mgnp-component': 'mgnp-dialog-description',
73
+ class: 'mgnp-dialog-description mgnp-c-dialog-description',
74
+ 'data-mgnp-dialog-description': '',
79
75
  },
76
+ hostDirectives: [
77
+ {
78
+ directive: NgpDialogDescription,
79
+ inputs: [],
80
+ outputs: [],
81
+ },
82
+ ],
83
+ exportAs: 'mgnpDialogDescription',
80
84
  }]
81
- }], ctorParameters: () => [] });
85
+ }] });
82
86
 
83
- const options = ['ngpDialogTitle'];
84
- const error = new Error(`MgnpDialogTitle must be used with ${options.join(' / ')}`);
85
87
  class MgnpDialogTitle {
86
- _ngpDialogTitle = inject(NgpDialogTitle, { optional: true });
87
- constructor() {
88
- if (!this._ngpDialogTitle) {
89
- console.error(this);
90
- throw error;
91
- }
92
- }
93
88
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
94
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogTitle, isStandalone: true, selector: "[ngpDialogTitle][mgnpDialogTitle]", host: { attributes: { "data-mgnp-component": "mgnp-dialog-title" } }, ngImport: i0 });
89
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogTitle, isStandalone: true, selector: "[mgnpDialogTitle]", host: { attributes: { "data-mgnp-dialog-title": "" }, classAttribute: "mgnp-dialog-title mgnp-c-dialog-title" }, exportAs: ["mgnpDialogTitle"], hostDirectives: [{ directive: i1.NgpDialogTitle }], ngImport: i0 });
95
90
  }
96
91
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogTitle, decorators: [{
97
92
  type: Directive,
98
93
  args: [{
99
- selector: '[ngpDialogTitle][mgnpDialogTitle]',
94
+ selector: '[mgnpDialogTitle]',
100
95
  standalone: true,
101
96
  host: {
102
- 'data-mgnp-component': 'mgnp-dialog-title',
97
+ class: 'mgnp-dialog-title mgnp-c-dialog-title',
98
+ 'data-mgnp-dialog-title': '',
103
99
  },
100
+ hostDirectives: [
101
+ {
102
+ directive: NgpDialogTitle,
103
+ inputs: [],
104
+ outputs: [],
105
+ },
106
+ ],
107
+ exportAs: 'mgnpDialogTitle',
104
108
  }]
105
- }], ctorParameters: () => [] });
109
+ }] });
110
+
111
+ class MgnpDialogTrigger {
112
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
113
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogTrigger, isStandalone: true, selector: "[mgnpDialogTrigger]", host: { attributes: { "data-mgnp-dialog-trigger": "" }, classAttribute: "mgnp-dialog-trigger mgnp-c-dialog-trigger" }, exportAs: ["mgnpDialogTrigger"], hostDirectives: [{ directive: i1.NgpDialogTrigger, inputs: ["ngpDialogTrigger", "mgnpDialogTrigger", "ngpDialogTriggerCloseOnEscape", "closeOnEscape", "ngpDialogTriggerCloseOnOutsideClick", "closeOnOutsideClick"], outputs: ["ngpDialogTriggerClosed", "closed"] }], ngImport: i0 });
114
+ }
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogTrigger, decorators: [{
116
+ type: Directive,
117
+ args: [{
118
+ selector: '[mgnpDialogTrigger]',
119
+ standalone: true,
120
+ host: {
121
+ class: 'mgnp-dialog-trigger mgnp-c-dialog-trigger',
122
+ 'data-mgnp-dialog-trigger': '',
123
+ },
124
+ hostDirectives: [
125
+ {
126
+ directive: NgpDialogTrigger,
127
+ inputs: [
128
+ 'ngpDialogTrigger:mgnpDialogTrigger',
129
+ 'ngpDialogTriggerCloseOnEscape:closeOnEscape',
130
+ 'ngpDialogTriggerCloseOnOutsideClick:closeOnOutsideClick',
131
+ ],
132
+ outputs: ['ngpDialogTriggerClosed:closed'],
133
+ },
134
+ ],
135
+ exportAs: 'mgnpDialogTrigger',
136
+ }]
137
+ }] });
106
138
 
107
139
  /**
108
140
  * Generated bundle index. Do not edit.
109
141
  */
110
142
 
111
- export { MgnpDialog, MgnpDialogDescription, MgnpDialogOverlay, MgnpDialogTitle };
143
+ export { MgnpDialog, MgnpDialogDescription, MgnpDialogOverlay, MgnpDialogTitle, MgnpDialogTrigger };
112
144
  //# sourceMappingURL=mgremy-ng-primitives-dialog.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-dialog.mjs","sources":["../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-overlay/mgnp-dialog-overlay.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog/mgnp-dialog.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-description/mgnp-dialog-description.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-title/mgnp-dialog-title.directive.ts","../../../../libs/ng-primitives/dialog/src/mgremy-ng-primitives-dialog.ts"],"sourcesContent":["import { PropertyType } from '@mgremy/ng-primitives';\n\nimport { Directive, inject, input } from '@angular/core';\nimport { NgpDialogOverlay } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogOverlay'];\n\nconst error = new Error(`MgnpDialogOverlay must be used with ${options.join(' / ')}`);\n\nexport type MgnpDialogOverlayMode = PropertyType<'modal' | 'drawer'>;\n\nexport type MgnpDialogDrawerPosition = PropertyType<'start' | 'end'>;\n\n@Directive({\n selector: '[ngpDialogOverlay][mgnpDialogOverlay]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-overlay',\n '[attr.data-mgnp-mode]': 'mode()',\n '[attr.data-mgnp-drawer-position]': 'drawerPosition()',\n },\n})\nexport class MgnpDialogOverlay {\n private readonly _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });\n\n readonly mode = input<MgnpDialogOverlayMode>('modal');\n readonly drawerPosition = input<MgnpDialogDrawerPosition>('end');\n\n constructor() {\n if (!this._ngpDialogOverlay) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { MgnpDialogOverlay } from '../mgnp-dialog-overlay/mgnp-dialog-overlay.directive';\n\nimport { Directive, inject } from '@angular/core';\nimport { NgpDialog } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialog'];\n\nconst error = new Error(`MgnpDialog must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialog][mgnpDialog]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog',\n '[attr.data-mgnp-mode]': '_overlay.mode()',\n },\n})\nexport class MgnpDialog {\n protected readonly _overlay = inject(MgnpDialogOverlay);\n private readonly _ngpDialog = inject(NgpDialog, { optional: true });\n\n constructor() {\n if (!this._ngpDialog) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpDialogDescription } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogDescription'];\n\nconst error = new Error(`MgnpDialogDescription must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialogDescription][mgnpDialogDescription]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-description',\n },\n})\nexport class MgnpDialogDescription {\n private readonly _ngpDialogDescription = inject(NgpDialogDescription, { optional: true });\n\n constructor() {\n if (!this._ngpDialogDescription) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpDialogTitle } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogTitle'];\n\nconst error = new Error(`MgnpDialogTitle must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialogTitle][mgnpDialogTitle]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-title',\n },\n})\nexport class MgnpDialogTitle {\n private readonly _ngpDialogTitle = inject(NgpDialogTitle, { optional: true });\n\n constructor() {\n if (!this._ngpDialogTitle) {\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":";;;;AAKA,MAAMA,SAAO,GAAG,CAAC,kBAAkB,CAAC;AAEpC,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,oCAAA,EAAuCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MAexE,iBAAiB,CAAA;IACX,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExE,IAAA,IAAI,GAAG,KAAK,CAAwB,OAAO,gDAAC;AAC5C,IAAA,cAAc,GAAG,KAAK,CAA2B,KAAK,0DAAC;AAEhE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;AAC3B,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGAXW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAA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AAE;AACJ,wBAAA,qBAAqB,EAAE,yBAAyB;AACjD,qBAAA;AACF,iBAAA;;;ACVD,MAAM,OAAO,GAAG,CAAC,gBAAgB,CAAC;AAElC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAA,kCAAA,EAAqC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MAStE,eAAe,CAAA;IACT,eAAe,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE7E,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGARW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,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-dialog.mjs","sources":["../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-overlay/mgnp-dialog-overlay.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog/mgnp-dialog.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-description/mgnp-dialog-description.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-title/mgnp-dialog-title.directive.ts","../../../../libs/ng-primitives/dialog/src/lib/mgnp-dialog-trigger/mgnp-dialog-trigger.directive.ts","../../../../libs/ng-primitives/dialog/src/mgremy-ng-primitives-dialog.ts"],"sourcesContent":["import { PropertyType } from '@mgremy/ng-primitives';\n\nimport { Directive, input } from '@angular/core';\nimport { NgpDialogOverlay, provideDialogState } from 'ng-primitives/dialog';\n\nexport type MgnpDialogOverlayMode = PropertyType<'modal' | 'drawer'>;\n\nexport type MgnpDialogDrawerPosition = PropertyType<'start' | 'end'>;\n\n@Directive({\n selector: '[mgnpDialogOverlay]',\n standalone: true,\n providers: [provideDialogState()],\n host: {\n class: 'mgnp-dialog-overlay mgnp-c-dialog-overlay',\n 'data-mgnp-dialog-overlay': '',\n '[attr.data-mgnp-dialog-overlay-mode]': 'mode()',\n '[attr.data-mgnp-dialog-overlay-position]': 'drawerPosition()',\n },\n hostDirectives: [\n {\n directive: NgpDialogOverlay,\n inputs: ['ngpDialogOverlayCloseOnClick:closeOnClick'],\n outputs: [],\n },\n ],\n exportAs: 'mgnpDialogOverlay',\n})\nexport class MgnpDialogOverlay {\n readonly mode = input<MgnpDialogOverlayMode>('modal');\n readonly drawerPosition = input<MgnpDialogDrawerPosition>('end');\n}\n","import { MgnpDialogOverlay } from '../mgnp-dialog-overlay/mgnp-dialog-overlay.directive';\n\nimport { Directive, inject } from '@angular/core';\nimport { injectDialogState, NgpDialog } from 'ng-primitives/dialog';\n\n@Directive({\n selector: '[mgnpDialog]',\n standalone: true,\n providers: [],\n host: {\n class: 'mgnp-dialog mgnp-c-dialog',\n 'data-mgnp-dialog': '',\n '[attr.data-mgnp-dialog-mode]': 'overlay.mode()',\n },\n hostDirectives: [\n {\n directive: NgpDialog,\n inputs: ['ngpDialogRole:role', 'ngpDialogModal:modal'],\n outputs: [],\n },\n ],\n exportAs: 'mgnpDialog',\n})\nexport class MgnpDialog {\n protected readonly overlay = inject(MgnpDialogOverlay);\n protected readonly state = injectDialogState();\n}\n","import { Directive } from '@angular/core';\nimport { NgpDialogDescription } from 'ng-primitives/dialog';\n\n@Directive({\n selector: '[mgnpDialogDescription]',\n standalone: true,\n host: {\n class: 'mgnp-dialog-description mgnp-c-dialog-description',\n 'data-mgnp-dialog-description': '',\n },\n hostDirectives: [\n {\n directive: NgpDialogDescription,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpDialogDescription',\n})\nexport class MgnpDialogDescription {}\n","import { Directive } from '@angular/core';\nimport { NgpDialogTitle } from 'ng-primitives/dialog';\n\n@Directive({\n selector: '[mgnpDialogTitle]',\n standalone: true,\n host: {\n class: 'mgnp-dialog-title mgnp-c-dialog-title',\n 'data-mgnp-dialog-title': '',\n },\n hostDirectives: [\n {\n directive: NgpDialogTitle,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpDialogTitle',\n})\nexport class MgnpDialogTitle {}\n","import { Directive } from '@angular/core';\nimport { NgpDialogTrigger } from 'ng-primitives/dialog';\n\n@Directive({\n selector: '[mgnpDialogTrigger]',\n standalone: true,\n host: {\n class: 'mgnp-dialog-trigger mgnp-c-dialog-trigger',\n 'data-mgnp-dialog-trigger': '',\n },\n hostDirectives: [\n {\n directive: NgpDialogTrigger,\n inputs: [\n 'ngpDialogTrigger:mgnpDialogTrigger',\n 'ngpDialogTriggerCloseOnEscape:closeOnEscape',\n 'ngpDialogTriggerCloseOnOutsideClick:closeOnOutsideClick',\n ],\n outputs: ['ngpDialogTriggerClosed:closed'],\n },\n ],\n exportAs: 'mgnpDialogTrigger',\n})\nexport class MgnpDialogTrigger {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA4Ba,iBAAiB,CAAA;AACnB,IAAA,IAAI,GAAG,KAAK,CAAwB,OAAO,gDAAC;AAC5C,IAAA,cAAc,GAAG,KAAK,CAA2B,KAAK,0DAAC;uGAFrD,iBAAiB,E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AA,EAAA,eAAA,EAAA,qCAAA,EAAA,qBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBApB7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,2CAA2C;AAClD,wBAAA,0BAA0B,EAAE,EAAE;AAC/B,qBAAA;AACD,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE;gCACN,oCAAoC;gCACpC,6CAA6C;gCAC7C,yDAAyD;AAC1D,6BAAA;4BACD,OAAO,EAAE,CAAC,+BAA+B,CAAC;AAC3C,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACtBD;;AAEG;;;;"}
@@ -0,0 +1,177 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive } from '@angular/core';
3
+ import * as i1 from 'ng-primitives/form-field';
4
+ import { injectDescriptionState, provideDescriptionState, NgpDescription, injectErrorState, provideErrorState, NgpError, NgpFormControl, injectFormFieldState, provideFormFieldState, NgpFormField, injectLabelState, provideLabelState, NgpLabel } from 'ng-primitives/form-field';
5
+
6
+ class MgnpDescription {
7
+ state = injectDescriptionState();
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDescription, isStandalone: true, selector: "[mgnpDescription]", host: { attributes: { "data-mgnp-description": "" }, classAttribute: "mgnp-description mgnp-c-description" }, providers: [provideDescriptionState()], exportAs: ["mgnpDescription"], hostDirectives: [{ directive: i1.NgpDescription }], ngImport: i0 });
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDescription, decorators: [{
12
+ type: Directive,
13
+ args: [{
14
+ selector: '[mgnpDescription]',
15
+ standalone: true,
16
+ providers: [provideDescriptionState()],
17
+ host: {
18
+ class: 'mgnp-description mgnp-c-description',
19
+ 'data-mgnp-description': '',
20
+ },
21
+ hostDirectives: [
22
+ {
23
+ directive: NgpDescription,
24
+ inputs: [],
25
+ outputs: [],
26
+ },
27
+ ],
28
+ exportAs: 'mgnpDescription',
29
+ }]
30
+ }] });
31
+
32
+ class MgnpError {
33
+ state = injectErrorState();
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
35
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpError, isStandalone: true, selector: "[mgnpError]", host: { attributes: { "data-mgnp-error": "" }, classAttribute: "mgnp-error mgnp-c-error" }, providers: [provideErrorState()], exportAs: ["mgnpError"], hostDirectives: [{ directive: i1.NgpError, inputs: ["ngpErrorValidator", "validator"] }], ngImport: i0 });
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpError, decorators: [{
38
+ type: Directive,
39
+ args: [{
40
+ selector: '[mgnpError]',
41
+ standalone: true,
42
+ providers: [provideErrorState()],
43
+ host: {
44
+ class: 'mgnp-error mgnp-c-error',
45
+ 'data-mgnp-error': '',
46
+ },
47
+ hostDirectives: [
48
+ {
49
+ directive: NgpError,
50
+ inputs: ['ngpErrorValidator:validator'],
51
+ outputs: [],
52
+ },
53
+ ],
54
+ exportAs: 'mgnpError',
55
+ }]
56
+ }] });
57
+
58
+ class MgnpFormControl {
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
60
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpFormControl, isStandalone: true, selector: "[mgnpFormControl]", host: { attributes: { "data-mgnp-form-control": "" }, classAttribute: "mgnp-form-control mgnp-c-form-control" }, exportAs: ["mgnpFormControl"], hostDirectives: [{ directive: i1.NgpFormControl }], ngImport: i0 });
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormControl, decorators: [{
63
+ type: Directive,
64
+ args: [{
65
+ selector: '[mgnpFormControl]',
66
+ standalone: true,
67
+ host: {
68
+ class: 'mgnp-form-control mgnp-c-form-control',
69
+ 'data-mgnp-form-control': '',
70
+ },
71
+ hostDirectives: [
72
+ {
73
+ directive: NgpFormControl,
74
+ inputs: [],
75
+ outputs: [],
76
+ },
77
+ ],
78
+ exportAs: 'mgnpFormControl',
79
+ }]
80
+ }] });
81
+
82
+ class MgnpFormField {
83
+ state = injectFormFieldState();
84
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
85
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpFormField, isStandalone: true, selector: "[mgnpFormField]", host: { attributes: { "data-mgnp-form-field": "" }, classAttribute: "mgnp-form-field mgnp-c-form-field" }, providers: [provideFormFieldState()], exportAs: ["mgnpFormField"], hostDirectives: [{ directive: i1.NgpFormField }], ngImport: i0 });
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormField, decorators: [{
88
+ type: Directive,
89
+ args: [{
90
+ selector: '[mgnpFormField]',
91
+ standalone: true,
92
+ providers: [provideFormFieldState()],
93
+ host: {
94
+ class: 'mgnp-form-field mgnp-c-form-field',
95
+ 'data-mgnp-form-field': '',
96
+ },
97
+ hostDirectives: [
98
+ {
99
+ directive: NgpFormField,
100
+ inputs: [],
101
+ outputs: [],
102
+ },
103
+ ],
104
+ exportAs: 'mgnpFormField',
105
+ }]
106
+ }] });
107
+
108
+ class MgnpLabel {
109
+ state = injectLabelState();
110
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
111
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpLabel, isStandalone: true, selector: "[mgnpLabel]", host: { attributes: { "data-mgnp-label": "" }, classAttribute: "mgnp-label mgnp-c-label" }, providers: [provideLabelState()], exportAs: ["mgnpLabel"], hostDirectives: [{ directive: i1.NgpLabel }], ngImport: i0 });
112
+ }
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLabel, decorators: [{
114
+ type: Directive,
115
+ args: [{
116
+ selector: '[mgnpLabel]',
117
+ standalone: true,
118
+ providers: [provideLabelState()],
119
+ host: {
120
+ class: 'mgnp-label mgnp-c-label',
121
+ 'data-mgnp-label': '',
122
+ },
123
+ hostDirectives: [
124
+ {
125
+ directive: NgpLabel,
126
+ inputs: [],
127
+ outputs: [],
128
+ },
129
+ ],
130
+ exportAs: 'mgnpLabel',
131
+ }]
132
+ }] });
133
+
134
+ class MgnpInputGroup {
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInputGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
136
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpInputGroup, isStandalone: true, selector: "[mgnpInputGroup]", host: { attributes: { "data-mgnp-input-group": "" }, classAttribute: "mgnp-input-group mgnp-c-input-group" }, providers: [], exportAs: ["mgnpInputGroup"], ngImport: i0 });
137
+ }
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInputGroup, decorators: [{
139
+ type: Directive,
140
+ args: [{
141
+ selector: '[mgnpInputGroup]',
142
+ standalone: true,
143
+ providers: [],
144
+ host: {
145
+ class: 'mgnp-input-group mgnp-c-input-group',
146
+ 'data-mgnp-input-group': '',
147
+ },
148
+ hostDirectives: [],
149
+ exportAs: 'mgnpInputGroup',
150
+ }]
151
+ }] });
152
+
153
+ class MgnpInputGroupAddon {
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInputGroupAddon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
155
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpInputGroupAddon, isStandalone: true, selector: "[mgnpInputGroupAddon]", host: { attributes: { "data-mgnp-input-group-addon": "" }, classAttribute: "mgnp-input-group-addon mgnp-c-input-group-addon" }, providers: [], exportAs: ["mgnpInputGroupAddon"], ngImport: i0 });
156
+ }
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInputGroupAddon, decorators: [{
158
+ type: Directive,
159
+ args: [{
160
+ selector: '[mgnpInputGroupAddon]',
161
+ standalone: true,
162
+ providers: [],
163
+ host: {
164
+ class: 'mgnp-input-group-addon mgnp-c-input-group-addon',
165
+ 'data-mgnp-input-group-addon': '',
166
+ },
167
+ hostDirectives: [],
168
+ exportAs: 'mgnpInputGroupAddon',
169
+ }]
170
+ }] });
171
+
172
+ /**
173
+ * Generated bundle index. Do not edit.
174
+ */
175
+
176
+ export { MgnpDescription, MgnpError, MgnpFormControl, MgnpFormField, MgnpInputGroup, MgnpInputGroupAddon, MgnpLabel };
177
+ //# sourceMappingURL=mgremy-ng-primitives-form-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mgremy-ng-primitives-form-field.mjs","sources":["../../../../libs/ng-primitives/form-field/src/lib/mgnp-description/mgnp-description.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-error/mgnp-error.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-form-control/mgnp-form-control.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-form-field/mgnp-form-field.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-label/mgnp-form-label.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-input-group/mgnp-input-group.directive.ts","../../../../libs/ng-primitives/form-field/src/lib/mgnp-input-group-addon/mgnp-input-group-addon.directive.ts","../../../../libs/ng-primitives/form-field/src/mgremy-ng-primitives-form-field.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport {\n injectDescriptionState,\n NgpDescription,\n provideDescriptionState,\n} from 'ng-primitives/form-field';\n\n@Directive({\n selector: '[mgnpDescription]',\n standalone: true,\n providers: [provideDescriptionState()],\n host: {\n class: 'mgnp-description mgnp-c-description',\n 'data-mgnp-description': '',\n },\n hostDirectives: [\n {\n directive: NgpDescription,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpDescription',\n})\nexport class MgnpDescription {\n protected readonly state = injectDescriptionState();\n}\n","import { Directive } from '@angular/core';\nimport { injectErrorState, NgpError, provideErrorState } from 'ng-primitives/form-field';\n\n@Directive({\n selector: '[mgnpError]',\n standalone: true,\n providers: [provideErrorState()],\n host: {\n class: 'mgnp-error mgnp-c-error',\n 'data-mgnp-error': '',\n },\n hostDirectives: [\n {\n directive: NgpError,\n inputs: ['ngpErrorValidator:validator'],\n outputs: [],\n },\n ],\n exportAs: 'mgnpError',\n})\nexport class MgnpError {\n protected readonly state = injectErrorState();\n}\n","import { Directive } from '@angular/core';\nimport { NgpFormControl } from 'ng-primitives/form-field';\n\n@Directive({\n selector: '[mgnpFormControl]',\n standalone: true,\n host: {\n class: 'mgnp-form-control mgnp-c-form-control',\n 'data-mgnp-form-control': '',\n },\n hostDirectives: [\n {\n directive: NgpFormControl,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpFormControl',\n})\nexport class MgnpFormControl {}\n","import { Directive } from '@angular/core';\nimport {\n injectFormFieldState,\n NgpFormField,\n provideFormFieldState,\n} from 'ng-primitives/form-field';\n\n@Directive({\n selector: '[mgnpFormField]',\n standalone: true,\n providers: [provideFormFieldState()],\n host: {\n class: 'mgnp-form-field mgnp-c-form-field',\n 'data-mgnp-form-field': '',\n },\n hostDirectives: [\n {\n directive: NgpFormField,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpFormField',\n})\nexport class MgnpFormField {\n protected readonly state = injectFormFieldState();\n}\n","import { Directive } from '@angular/core';\nimport { injectLabelState, NgpLabel, provideLabelState } from 'ng-primitives/form-field';\n\n@Directive({\n selector: '[mgnpLabel]',\n standalone: true,\n providers: [provideLabelState()],\n host: {\n class: 'mgnp-label mgnp-c-label',\n 'data-mgnp-label': '',\n },\n hostDirectives: [\n {\n directive: NgpLabel,\n inputs: [],\n outputs: [],\n },\n ],\n exportAs: 'mgnpLabel',\n})\nexport class MgnpLabel {\n protected readonly state = injectLabelState();\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[mgnpInputGroup]',\n standalone: true,\n providers: [],\n host: {\n class: 'mgnp-input-group mgnp-c-input-group',\n 'data-mgnp-input-group': '',\n },\n hostDirectives: [],\n exportAs: 'mgnpInputGroup',\n})\nexport class MgnpInputGroup {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[mgnpInputGroupAddon]',\n standalone: true,\n providers: [],\n host: {\n class: 'mgnp-input-group-addon mgnp-c-input-group-addon',\n 'data-mgnp-input-group-addon': '',\n },\n hostDirectives: [],\n exportAs: 'mgnpInputGroupAddon',\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AAE;AAClB,oBAAA,QAAQ,EAAE,gBAAgB;AAC3B,iBAAA;;;MCCY,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,oMARnB,EAAE,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAQF,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE,EAAE;AACb,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,iDAAiD;AACxD,wBAAA,6BAA6B,EAAE,EAAE;AAClC,qBAAA;AACD,oBAAA,cAAc,EAAE,EAAE;AAClB,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -1,30 +1,33 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
3
- import { NgpInput } from 'ng-primitives/input';
2
+ import { Directive } from '@angular/core';
3
+ import * as i1 from 'ng-primitives/input';
4
+ import { injectInputState, provideInputState, NgpInput } from 'ng-primitives/input';
4
5
 
5
- const options = ['ngpInput'];
6
- const error = new Error(`MgnpInput must be used with ${options.join(' / ')}`);
7
6
  class MgnpInput {
8
- ngpInput = inject(NgpInput, { optional: true });
9
- constructor() {
10
- if (!this.ngpInput) {
11
- console.error(this);
12
- throw error;
13
- }
14
- }
7
+ state = injectInputState();
15
8
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpInput, isStandalone: true, selector: "[ngpInput][mgnpInput]", host: { attributes: { "data-mgnp-component": "mgnp-input" } }, ngImport: i0 });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpInput, isStandalone: true, selector: "[mgnpInput]", host: { attributes: { "data-mgnp-input": "" }, classAttribute: "mgnp-input mgnp-c-input" }, providers: [provideInputState()], exportAs: ["mgnpInput"], hostDirectives: [{ directive: i1.NgpInput, inputs: ["disabled", "disabled"] }], ngImport: i0 });
17
10
  }
18
11
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInput, decorators: [{
19
12
  type: Directive,
20
13
  args: [{
21
- selector: '[ngpInput][mgnpInput]',
14
+ selector: '[mgnpInput]',
22
15
  standalone: true,
16
+ providers: [provideInputState()],
23
17
  host: {
24
- 'data-mgnp-component': 'mgnp-input',
18
+ class: 'mgnp-input mgnp-c-input',
19
+ 'data-mgnp-input': '',
25
20
  },
21
+ hostDirectives: [
22
+ {
23
+ directive: NgpInput,
24
+ inputs: ['disabled:disabled'],
25
+ outputs: [],
26
+ },
27
+ ],
28
+ exportAs: 'mgnpInput',
26
29
  }]
27
- }], ctorParameters: () => [] });
30
+ }] });
28
31
 
29
32
  /**
30
33
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-input.mjs","sources":["../../../../libs/ng-primitives/input/src/lib/mgnp-input/mgnp-input.directive.ts","../../../../libs/ng-primitives/input/src/mgremy-ng-primitives-input.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpInput } from 'ng-primitives/input';\n\nconst options = ['ngpInput'];\n\nconst error = new Error(`MgnpInput must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpInput][mgnpInput]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-input',\n },\n})\nexport class MgnpInput {\n protected readonly ngpInput = inject(NgpInput, { optional: true });\n\n constructor() {\n if (!this.ngpInput) {\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,YAAY;AACpC,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"mgremy-ng-primitives-input.mjs","sources":["../../../../libs/ng-primitives/input/src/lib/mgnp-input/mgnp-input.directive.ts","../../../../libs/ng-primitives/input/src/mgremy-ng-primitives-input.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { injectInputState, NgpInput, provideInputState } from 'ng-primitives/input';\n\n@Directive({\n selector: '[mgnpInput]',\n standalone: true,\n providers: [provideInputState()],\n host: {\n class: 'mgnp-input mgnp-c-input',\n 'data-mgnp-input': '',\n },\n hostDirectives: [\n {\n directive: NgpInput,\n inputs: ['disabled:disabled'],\n outputs: [],\n },\n ],\n exportAs: 'mgnpInput',\n})\nexport class MgnpInput {\n protected readonly state = injectInputState();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAoBa,SAAS,CAAA;IACD,KAAK,GAAG,gBAAgB,EAAE;uGADlC,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,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,SAAA,EAdT,CAAC,iBAAiB,EAAE,CAAC,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAcrB,SAAS,EAAA,UAAA,EAAA,CAAA;kBAjBrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,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