@mgremy/ng-primitives 0.13.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.
- package/_theme/components/accordion/orientation.css +96 -0
- package/_theme/components/accordion.css +62 -0
- package/_theme/components/button/color.css +169 -0
- package/_theme/components/button/size.css +24 -0
- package/_theme/components/button.css +42 -0
- package/_theme/components/checkbox/color.css +83 -0
- package/_theme/components/checkbox/size.css +24 -0
- package/_theme/components/checkbox.css +32 -0
- package/_theme/components/combobox.css +97 -0
- package/_theme/components/dialog/mode.css +50 -0
- package/_theme/components/dialog.css +39 -0
- package/_theme/components/form-field.css +97 -0
- package/_theme/components/input.css +19 -0
- package/_theme/components/menu.css +47 -0
- package/_theme/components/pagination.css +48 -0
- package/_theme/components/switch.css +29 -0
- package/_theme/components/toast.css +103 -0
- package/_theme/components/tooltip.css +36 -0
- package/{theme → _theme}/mgnp.css +1 -0
- package/_theme/utilities.css +5 -0
- package/fesm2022/mgremy-ng-primitives-accordion.mjs +81 -42
- package/fesm2022/mgremy-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-button.mjs +21 -45
- package/fesm2022/mgremy-ng-primitives-button.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-checkbox.mjs +51 -13
- package/fesm2022/mgremy-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-combobox.mjs +117 -58
- package/fesm2022/mgremy-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-dialog.mjs +91 -59
- package/fesm2022/mgremy-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-form-field.mjs +109 -16
- package/fesm2022/mgremy-ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-input.mjs +18 -15
- package/fesm2022/mgremy-ng-primitives-input.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-menu.mjs +208 -29
- package/fesm2022/mgremy-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-pagination.mjs +143 -16
- package/fesm2022/mgremy-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-switch.mjs +52 -25
- package/fesm2022/mgremy-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-toast.mjs +15 -14
- package/fesm2022/mgremy-ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-tooltip.mjs +76 -31
- package/fesm2022/mgremy-ng-primitives-tooltip.mjs.map +1 -1
- package/package.json +7 -5
- package/types/mgremy-ng-primitives-accordion.d.ts +19 -11
- package/types/mgremy-ng-primitives-button.d.ts +3 -14
- package/types/mgremy-ng-primitives-checkbox.d.ts +20 -6
- package/types/mgremy-ng-primitives-combobox.d.ts +24 -15
- package/types/mgremy-ng-primitives-dialog.d.ts +15 -14
- package/types/mgremy-ng-primitives-form-field.d.ts +54 -12
- package/types/mgremy-ng-primitives-input.d.ts +11 -6
- package/types/mgremy-ng-primitives-menu.d.ts +65 -8
- package/types/mgremy-ng-primitives-pagination.d.ts +31 -5
- package/types/mgremy-ng-primitives-switch.d.ts +14 -6
- package/types/mgremy-ng-primitives-toast.d.ts +2 -4
- package/types/mgremy-ng-primitives-tooltip.d.ts +14 -8
- package/theme/components/accordion.css +0 -171
- package/theme/components/button.css +0 -252
- package/theme/components/checkbox.css +0 -37
- package/theme/components/combobox.css +0 -124
- package/theme/components/dialog.css +0 -101
- package/theme/components/form-field.css +0 -78
- package/theme/components/input.css +0 -26
- package/theme/components/menu.css +0 -61
- package/theme/components/pagination.css +0 -72
- package/theme/components/switch.css +0 -44
- package/theme/components/toast.css +0 -111
- package/theme/components/tooltip.css +0 -46
- /package/{theme → _theme}/animation.css +0 -0
|
@@ -1,112 +1,144 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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: "[
|
|
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: '[
|
|
15
|
+
selector: '[mgnpDialogOverlay]',
|
|
24
16
|
standalone: true,
|
|
17
|
+
providers: [provideDialogState()],
|
|
25
18
|
host: {
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'[attr.data-mgnp-
|
|
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
|
-
}],
|
|
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
|
-
|
|
37
|
-
|
|
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: "[
|
|
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: '[
|
|
44
|
+
selector: '[mgnpDialog]',
|
|
51
45
|
standalone: true,
|
|
46
|
+
providers: [],
|
|
52
47
|
host: {
|
|
53
|
-
'
|
|
54
|
-
'
|
|
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
|
-
}]
|
|
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: "[
|
|
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: '[
|
|
70
|
+
selector: '[mgnpDialogDescription]',
|
|
76
71
|
standalone: true,
|
|
77
72
|
host: {
|
|
78
|
-
'
|
|
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
|
-
}]
|
|
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: "[
|
|
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: '[
|
|
94
|
+
selector: '[mgnpDialogTitle]',
|
|
100
95
|
standalone: true,
|
|
101
96
|
host: {
|
|
102
|
-
'
|
|
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
|
-
}]
|
|
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,
|
|
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,G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,MAAA,EAAA,CAAA,kBAAA,EAAA,mBAAA,EAAA,+BAAA,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;;;;"}
|
|
@@ -1,78 +1,171 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
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';
|
|
3
5
|
|
|
4
6
|
class MgnpDescription {
|
|
7
|
+
state = injectDescriptionState();
|
|
5
8
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDescription, isStandalone: true, selector: "[
|
|
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 });
|
|
7
10
|
}
|
|
8
11
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDescription, decorators: [{
|
|
9
12
|
type: Directive,
|
|
10
13
|
args: [{
|
|
11
|
-
selector: '[
|
|
14
|
+
selector: '[mgnpDescription]',
|
|
12
15
|
standalone: true,
|
|
16
|
+
providers: [provideDescriptionState()],
|
|
13
17
|
host: {
|
|
14
|
-
'
|
|
18
|
+
class: 'mgnp-description mgnp-c-description',
|
|
19
|
+
'data-mgnp-description': '',
|
|
15
20
|
},
|
|
21
|
+
hostDirectives: [
|
|
22
|
+
{
|
|
23
|
+
directive: NgpDescription,
|
|
24
|
+
inputs: [],
|
|
25
|
+
outputs: [],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
exportAs: 'mgnpDescription',
|
|
16
29
|
}]
|
|
17
30
|
}] });
|
|
18
31
|
|
|
19
32
|
class MgnpError {
|
|
33
|
+
state = injectErrorState();
|
|
20
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpError, isStandalone: true, selector: "[
|
|
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 });
|
|
22
36
|
}
|
|
23
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpError, decorators: [{
|
|
24
38
|
type: Directive,
|
|
25
39
|
args: [{
|
|
26
|
-
selector: '[
|
|
40
|
+
selector: '[mgnpError]',
|
|
27
41
|
standalone: true,
|
|
42
|
+
providers: [provideErrorState()],
|
|
28
43
|
host: {
|
|
29
|
-
'
|
|
44
|
+
class: 'mgnp-error mgnp-c-error',
|
|
45
|
+
'data-mgnp-error': '',
|
|
30
46
|
},
|
|
47
|
+
hostDirectives: [
|
|
48
|
+
{
|
|
49
|
+
directive: NgpError,
|
|
50
|
+
inputs: ['ngpErrorValidator:validator'],
|
|
51
|
+
outputs: [],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
exportAs: 'mgnpError',
|
|
31
55
|
}]
|
|
32
56
|
}] });
|
|
33
57
|
|
|
34
58
|
class MgnpFormControl {
|
|
35
59
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpFormControl, isStandalone: true, selector: "[
|
|
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 });
|
|
37
61
|
}
|
|
38
62
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormControl, decorators: [{
|
|
39
63
|
type: Directive,
|
|
40
64
|
args: [{
|
|
41
|
-
selector: '[
|
|
65
|
+
selector: '[mgnpFormControl]',
|
|
42
66
|
standalone: true,
|
|
43
67
|
host: {
|
|
44
|
-
'
|
|
68
|
+
class: 'mgnp-form-control mgnp-c-form-control',
|
|
69
|
+
'data-mgnp-form-control': '',
|
|
45
70
|
},
|
|
71
|
+
hostDirectives: [
|
|
72
|
+
{
|
|
73
|
+
directive: NgpFormControl,
|
|
74
|
+
inputs: [],
|
|
75
|
+
outputs: [],
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
exportAs: 'mgnpFormControl',
|
|
46
79
|
}]
|
|
47
80
|
}] });
|
|
48
81
|
|
|
49
82
|
class MgnpFormField {
|
|
83
|
+
state = injectFormFieldState();
|
|
50
84
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
51
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpFormField, isStandalone: true, selector: "[
|
|
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 });
|
|
52
86
|
}
|
|
53
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormField, decorators: [{
|
|
54
88
|
type: Directive,
|
|
55
89
|
args: [{
|
|
56
|
-
selector: '[
|
|
90
|
+
selector: '[mgnpFormField]',
|
|
57
91
|
standalone: true,
|
|
92
|
+
providers: [provideFormFieldState()],
|
|
58
93
|
host: {
|
|
59
|
-
'
|
|
94
|
+
class: 'mgnp-form-field mgnp-c-form-field',
|
|
95
|
+
'data-mgnp-form-field': '',
|
|
60
96
|
},
|
|
97
|
+
hostDirectives: [
|
|
98
|
+
{
|
|
99
|
+
directive: NgpFormField,
|
|
100
|
+
inputs: [],
|
|
101
|
+
outputs: [],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
exportAs: 'mgnpFormField',
|
|
61
105
|
}]
|
|
62
106
|
}] });
|
|
63
107
|
|
|
64
108
|
class MgnpLabel {
|
|
109
|
+
state = injectLabelState();
|
|
65
110
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
66
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpLabel, isStandalone: true, selector: "[
|
|
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 });
|
|
67
112
|
}
|
|
68
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLabel, decorators: [{
|
|
69
114
|
type: Directive,
|
|
70
115
|
args: [{
|
|
71
|
-
selector: '[
|
|
116
|
+
selector: '[mgnpLabel]',
|
|
72
117
|
standalone: true,
|
|
118
|
+
providers: [provideLabelState()],
|
|
73
119
|
host: {
|
|
74
|
-
'
|
|
120
|
+
class: 'mgnp-label mgnp-c-label',
|
|
121
|
+
'data-mgnp-label': '',
|
|
75
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',
|
|
76
169
|
}]
|
|
77
170
|
}] });
|
|
78
171
|
|
|
@@ -80,5 +173,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
80
173
|
* Generated bundle index. Do not edit.
|
|
81
174
|
*/
|
|
82
175
|
|
|
83
|
-
export { MgnpDescription, MgnpError, MgnpFormControl, MgnpFormField, MgnpLabel };
|
|
176
|
+
export { MgnpDescription, MgnpError, MgnpFormControl, MgnpFormField, MgnpInputGroup, MgnpInputGroupAddon, MgnpLabel };
|
|
84
177
|
//# sourceMappingURL=mgremy-ng-primitives-form-field.mjs.map
|
|
@@ -1 +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/mgremy-ng-primitives-form-field.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngpDescription][mgnpDescription]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-description',\n },\n})\nexport class MgnpDescription {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngpError][mgnpError]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-error',\n },\n})\nexport class MgnpError {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngpFormControl][mgnpFormControl]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-form-control',\n },\n})\nexport class MgnpFormControl {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngpFormField][mgnpFormField]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-form-field',\n },\n})\nexport class MgnpFormField {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngpLabel][mgnpLabel]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-label',\n },\n})\nexport class MgnpLabel {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MASa,eAAe,CAAA;uGAAf,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,kBAAA,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,EAA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A,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,iBAAiB;AACzC,qBAAA;AACF,iBAAA;;;MCCY,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,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;;;ACRD;;AAEG;;;;"}
|
|
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',\n})\nexport class MgnpInputGroupAddon {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAwBa,eAAe,CAAA;IACP,KAAK,GAAG,sBAAsB,EAAE;uGADxC,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,E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A,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 {
|
|
3
|
-
import
|
|
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
|
-
|
|
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: "[
|
|
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: '[
|
|
14
|
+
selector: '[mgnpInput]',
|
|
22
15
|
standalone: true,
|
|
16
|
+
providers: [provideInputState()],
|
|
23
17
|
host: {
|
|
24
|
-
'
|
|
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
|
-
}]
|
|
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
|
|
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,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,yBAAyB;AAChC,wBAAA,iBAAiB,EAAE,EAAE;AACtB,qBAAA;AACD,oBAAA,cAAc,EAAE;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