@mgremy/ng-primitives 0.11.0 → 0.13.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.
@@ -1,75 +1,81 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
3
- import { NgpDialog, NgpDialogDescription, NgpDialogOverlay, NgpDialogTitle } from 'ng-primitives/dialog';
2
+ import { inject, input, Directive } from '@angular/core';
3
+ import { NgpDialogOverlay, NgpDialog, NgpDialogDescription, NgpDialogTitle } from 'ng-primitives/dialog';
4
4
 
5
- const options$3 = ['ngpDialog'];
6
- const error$3 = new Error(`MgnpDialog must be used with ${options$3.join(' / ')}`);
7
- class MgnpDialog {
8
- _ngpDialog = inject(NgpDialog, { optional: true });
5
+ const options$3 = ['ngpDialogOverlay'];
6
+ const error$3 = new Error(`MgnpDialogOverlay must be used with ${options$3.join(' / ')}`);
7
+ class MgnpDialogOverlay {
8
+ _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });
9
+ mode = input('modal', ...(ngDevMode ? [{ debugName: "mode" }] : []));
10
+ drawerPosition = input('end', ...(ngDevMode ? [{ debugName: "drawerPosition" }] : []));
9
11
  constructor() {
10
- if (!this._ngpDialog) {
12
+ if (!this._ngpDialogOverlay) {
11
13
  console.error(this);
12
14
  throw error$3;
13
15
  }
14
16
  }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- 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" } }, ngImport: i0 });
17
+ 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 });
17
19
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, decorators: [{
19
21
  type: Directive,
20
22
  args: [{
21
- selector: '[ngpDialog][mgnpDialog]',
23
+ selector: '[ngpDialogOverlay][mgnpDialogOverlay]',
22
24
  standalone: true,
23
25
  host: {
24
- 'data-mgnp-component': 'mgnp-dialog',
26
+ 'data-mgnp-component': 'mgnp-dialog-overlay',
27
+ '[attr.data-mgnp-mode]': 'mode()',
28
+ '[attr.data-mgnp-drawer-position]': 'drawerPosition()',
25
29
  },
26
30
  }]
27
- }], ctorParameters: () => [] });
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 }] }] } });
28
32
 
29
- const options$2 = ['ngpDialogDescription'];
30
- const error$2 = new Error(`MgnpDialogDescription must be used with ${options$2.join(' / ')}`);
31
- class MgnpDialogDescription {
32
- _ngpDialogDescription = inject(NgpDialogDescription, { optional: true });
33
+ const options$2 = ['ngpDialog'];
34
+ const error$2 = new Error(`MgnpDialog must be used with ${options$2.join(' / ')}`);
35
+ class MgnpDialog {
36
+ _overlay = inject(MgnpDialogOverlay);
37
+ _ngpDialog = inject(NgpDialog, { optional: true });
33
38
  constructor() {
34
- if (!this._ngpDialogDescription) {
39
+ if (!this._ngpDialog) {
35
40
  console.error(this);
36
41
  throw error$2;
37
42
  }
38
43
  }
39
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
40
- 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 });
44
+ 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 });
41
46
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialog, decorators: [{
43
48
  type: Directive,
44
49
  args: [{
45
- selector: '[ngpDialogDescription][mgnpDialogDescription]',
50
+ selector: '[ngpDialog][mgnpDialog]',
46
51
  standalone: true,
47
52
  host: {
48
- 'data-mgnp-component': 'mgnp-dialog-description',
53
+ 'data-mgnp-component': 'mgnp-dialog',
54
+ '[attr.data-mgnp-mode]': '_overlay.mode()',
49
55
  },
50
56
  }]
51
57
  }], ctorParameters: () => [] });
52
58
 
53
- const options$1 = ['ngpDialogOverlay'];
54
- const error$1 = new Error(`MgnpDialogOverlay must be used with ${options$1.join(' / ')}`);
55
- class MgnpDialogOverlay {
56
- _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });
59
+ const options$1 = ['ngpDialogDescription'];
60
+ const error$1 = new Error(`MgnpDialogDescription must be used with ${options$1.join(' / ')}`);
61
+ class MgnpDialogDescription {
62
+ _ngpDialogDescription = inject(NgpDialogDescription, { optional: true });
57
63
  constructor() {
58
- if (!this._ngpDialogOverlay) {
64
+ if (!this._ngpDialogDescription) {
59
65
  console.error(this);
60
66
  throw error$1;
61
67
  }
62
68
  }
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
64
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpDialogOverlay, isStandalone: true, selector: "[ngpDialogOverlay][mgnpDialogOverlay]", host: { attributes: { "data-mgnp-component": "mgnp-dialog-overlay" } }, ngImport: i0 });
69
+ 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
71
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogOverlay, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDialogDescription, decorators: [{
67
73
  type: Directive,
68
74
  args: [{
69
- selector: '[ngpDialogOverlay][mgnpDialogOverlay]',
75
+ selector: '[ngpDialogDescription][mgnpDialogDescription]',
70
76
  standalone: true,
71
77
  host: {
72
- 'data-mgnp-component': 'mgnp-dialog-overlay',
78
+ 'data-mgnp-component': 'mgnp-dialog-description',
73
79
  },
74
80
  }]
75
81
  }], ctorParameters: () => [] });
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-ng-primitives-dialog.mjs","sources":["../../../../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-overlay/mgnp-dialog-overlay.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 { 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 },\n})\nexport class MgnpDialog {\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 { NgpDialogOverlay } from 'ng-primitives/dialog';\n\nconst options = ['ngpDialogOverlay'];\n\nconst error = new Error(`MgnpDialogOverlay must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpDialogOverlay][mgnpDialogOverlay]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-dialog-overlay',\n },\n})\nexport class MgnpDialogOverlay {\n private readonly _ngpDialogOverlay = inject(NgpDialogOverlay, { optional: true });\n\n constructor() {\n if (!this._ngpDialogOverlay) {\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":";;;;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,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MA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,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/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,E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A,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,mBAAmB;AAC3C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -0,0 +1,84 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive } from '@angular/core';
3
+
4
+ class MgnpDescription {
5
+ 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: "[ngpDescription][mgnpDescription]", host: { attributes: { "data-mgnp-component": "mgnp-description" } }, ngImport: i0 });
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpDescription, decorators: [{
9
+ type: Directive,
10
+ args: [{
11
+ selector: '[ngpDescription][mgnpDescription]',
12
+ standalone: true,
13
+ host: {
14
+ 'data-mgnp-component': 'mgnp-description',
15
+ },
16
+ }]
17
+ }] });
18
+
19
+ class MgnpError {
20
+ 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: "[ngpError][mgnpError]", host: { attributes: { "data-mgnp-component": "mgnp-error" } }, ngImport: i0 });
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpError, decorators: [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[ngpError][mgnpError]',
27
+ standalone: true,
28
+ host: {
29
+ 'data-mgnp-component': 'mgnp-error',
30
+ },
31
+ }]
32
+ }] });
33
+
34
+ class MgnpFormControl {
35
+ 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: "[ngpFormControl][mgnpFormControl]", host: { attributes: { "data-mgnp-component": "mgnp-form-control" } }, ngImport: i0 });
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormControl, decorators: [{
39
+ type: Directive,
40
+ args: [{
41
+ selector: '[ngpFormControl][mgnpFormControl]',
42
+ standalone: true,
43
+ host: {
44
+ 'data-mgnp-component': 'mgnp-form-control',
45
+ },
46
+ }]
47
+ }] });
48
+
49
+ class MgnpFormField {
50
+ 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: "[ngpFormField][mgnpFormField]", host: { attributes: { "data-mgnp-component": "mgnp-form-field" } }, ngImport: i0 });
52
+ }
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpFormField, decorators: [{
54
+ type: Directive,
55
+ args: [{
56
+ selector: '[ngpFormField][mgnpFormField]',
57
+ standalone: true,
58
+ host: {
59
+ 'data-mgnp-component': 'mgnp-form-field',
60
+ },
61
+ }]
62
+ }] });
63
+
64
+ class MgnpLabel {
65
+ 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: "[ngpLabel][mgnpLabel]", host: { attributes: { "data-mgnp-component": "mgnp-label" } }, ngImport: i0 });
67
+ }
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLabel, decorators: [{
69
+ type: Directive,
70
+ args: [{
71
+ selector: '[ngpLabel][mgnpLabel]',
72
+ standalone: true,
73
+ host: {
74
+ 'data-mgnp-component': 'mgnp-label',
75
+ },
76
+ }]
77
+ }] });
78
+
79
+ /**
80
+ * Generated bundle index. Do not edit.
81
+ */
82
+
83
+ export { MgnpDescription, MgnpError, MgnpFormControl, MgnpFormField, MgnpLabel };
84
+ //# 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/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,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,kBAAkB;AAC1C,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,UAA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A,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;;;;"}
@@ -0,0 +1,4 @@
1
+ # @mgremy/ng-primitives/src/lib/form-field
2
+
3
+ Secondary entry point of `@mgremy/ng-primitives`. It can be used by importing from
4
+ `@mgremy/ng-primitives/form-field`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgremy/ng-primitives",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://doc.mgremy.xyz/ng-primitives",
6
6
  "publishConfig": {
@@ -45,6 +45,10 @@
45
45
  "types": "./types/mgremy-ng-primitives-dialog.d.ts",
46
46
  "default": "./fesm2022/mgremy-ng-primitives-dialog.mjs"
47
47
  },
48
+ "./form-field": {
49
+ "types": "./types/mgremy-ng-primitives-form-field.d.ts",
50
+ "default": "./fesm2022/mgremy-ng-primitives-form-field.mjs"
51
+ },
48
52
  "./input": {
49
53
  "types": "./types/mgremy-ng-primitives-input.d.ts",
50
54
  "default": "./fesm2022/mgremy-ng-primitives-input.mjs"
@@ -0,0 +1,63 @@
1
+ @theme {
2
+ @keyframes mg-show {
3
+ from {
4
+ opacity: 0;
5
+ transform: translateY(var(--mg-default-animation-translateY-origin)) scale(0.9);
6
+ }
7
+ to {
8
+ opacity: 1;
9
+ transform: translateY(var(--mg-default-animation-translateY-base)) scale(1);
10
+ }
11
+ }
12
+
13
+ @keyframes mg-hide {
14
+ from {
15
+ opacity: 1;
16
+ transform: translateY(var(--mg-default-animation-translateY-base)) scale(1);
17
+ }
18
+ to {
19
+ opacity: 0;
20
+ transform: translateY(var(--mg-default-animation-translateY-origin)) scale(0.9);
21
+ }
22
+ }
23
+
24
+ @keyframes mg-slide-in {
25
+ from {
26
+ opacity: 0;
27
+ transform: translateY(var(--mg-default-animation-translateY-origin));
28
+ }
29
+ to {
30
+ opacity: 1;
31
+ transform: translateY(var(--mg-default-animation-translateY-base));
32
+ }
33
+ }
34
+
35
+ @keyframes mg-slide-out {
36
+ from {
37
+ opacity: 1;
38
+ transform: translateY(var(--mg-default-animation-translateY-base));
39
+ }
40
+ to {
41
+ opacity: 0;
42
+ transform: translateY(var(--mg-default-animation-translateY-origin));
43
+ }
44
+ }
45
+
46
+ @keyframes mg-fade-in {
47
+ 0% {
48
+ opacity: 0;
49
+ }
50
+ 100% {
51
+ opacity: 1;
52
+ }
53
+ }
54
+
55
+ @keyframes mg-fade-out {
56
+ 0% {
57
+ opacity: 1;
58
+ }
59
+ 100% {
60
+ opacity: 0;
61
+ }
62
+ }
63
+ }
@@ -1,8 +1,8 @@
1
1
  @utility mgnp-accordion {
2
2
  border-radius: --spacing(3);
3
- border: 1px solid var(--ngp-border);
4
- background-color: var(--ngp-background);
5
- box-shadow: var(--ngp-shadow);
3
+ border: 1px solid var(--mg-border-ui);
4
+ background-color: var(--mg-background-ui);
5
+ box-shadow: var(--mg-shadow-ui);
6
6
 
7
7
  @variant data-[orientation=vertical] {
8
8
  display: block;
@@ -21,7 +21,7 @@
21
21
  @utility mgnp-accordion-content {
22
22
  overflow: hidden;
23
23
  font-size: --spacing(3.5);
24
- color: var(--ngp-text-secondary);
24
+ color: var(--mg-text-ui-secondary);
25
25
 
26
26
  @variant data-open:data-[orientation=vertical] {
27
27
  animation: accordion-show-vertical var(--default-transition-duration)
@@ -47,17 +47,8 @@
47
47
  @utility mgnp-accordion-item {
48
48
  display: flex;
49
49
 
50
- h1,
51
- h2,
52
- h3,
53
- h4,
54
- h5,
55
- h6 {
56
- margin: --spacing(0);
57
- }
58
-
59
50
  @variant not-last {
60
- border-bottom: 1px solid var(--ngp-border);
51
+ border-bottom: 1px solid var(--mg-border-ui);
61
52
  }
62
53
 
63
54
  @variant data-[orientation=horizontal] {
@@ -67,6 +58,15 @@
67
58
  @variant data-[orientation=vertical] {
68
59
  flex-direction: column;
69
60
  }
61
+
62
+ h1,
63
+ h2,
64
+ h3,
65
+ h4,
66
+ h5,
67
+ h6 {
68
+ margin: --spacing(0);
69
+ }
70
70
  }
71
71
 
72
72
  @utility mgnp-accordion-trigger {
@@ -83,7 +83,7 @@
83
83
  font-size: --spacing(3.5);
84
84
  line-height: --spacing(5);
85
85
  border-radius: --spacing(3);
86
- color: var(--ngp-text-primary);
86
+ color: var(--mg-text-ui);
87
87
 
88
88
  @variant data-[orientation=vertical] {
89
89
  width: 100%;
@@ -99,8 +99,7 @@
99
99
 
100
100
  @variant data-focus-visible {
101
101
  overflow: hidden;
102
- font-size: --spacing(3.5);
103
- color: var(--ngp-text-secondary);
102
+ color: var(--mg-text-ui-secondary);
104
103
  }
105
104
 
106
105
  ng-icon {
@@ -5,10 +5,10 @@
5
5
  width: max-content;
6
6
  cursor: pointer;
7
7
  border-radius: var(--radius-lg);
8
- box-shadow: var(--ngp-button-shadow);
8
+ box-shadow: var(--mg-shadow-button);
9
9
 
10
10
  @variant data-focus-visible {
11
- outline: 2px solid var(--ngp-focus-ring);
11
+ outline: 2px solid var(--mg-ring-ui);
12
12
  }
13
13
 
14
14
  @variant data-disabled {
@@ -6,8 +6,8 @@
6
6
  justify-content: center;
7
7
  background-color: transparent;
8
8
  outline: none;
9
- border: 1px solid var(--ngp-border);
10
- color: var(--ngp-text-inverse);
9
+ border: 1px solid var(--mg-border-ui);
10
+ color: var(--mg-text-inverse);
11
11
  border-radius: var(--radius-sm);
12
12
  font-size: var(--text-base);
13
13
  line-height: var(--text-base--line-height);
@@ -16,16 +16,16 @@
16
16
  height: --spacing(5);
17
17
 
18
18
  @variant data-hover {
19
- background-color: var(--ngp-background-hover);
19
+ background-color: var(--mg-background-ui-hover);
20
20
  }
21
21
 
22
22
  @variant data-checked, data-indeterminate {
23
- border-color: var(--ngp-background-inverse);
24
- background-color: var(--ngp-background-inverse);
23
+ border-color: var(--mg-background-ui-inverse);
24
+ background-color: var(--mg-background-ui-inverse);
25
25
  }
26
26
 
27
27
  @variant data-focus-visible {
28
- outline: --spacing(0.5) solid var(--ngp-focus-ring);
28
+ outline: --spacing(0.5) solid var(--mg-ring-ui);
29
29
  outline-offset: --spacing(0.5);
30
30
  }
31
31
  }
@@ -7,12 +7,12 @@
7
7
  border: none;
8
8
  box-sizing: border-box;
9
9
  border-radius: var(--radius-lg);
10
- background-color: var(--ngp-background);
11
- box-shadow: var(--ngp-input-shadow);
10
+ background-color: var(--mg-background-ui);
11
+ box-shadow: var(--mg-shadow-input);
12
12
 
13
13
  @variant data-focus {
14
14
  outline-offset: 2px;
15
- outline: 2px solid var(--ngp-focus-ring);
15
+ outline: 2px solid var(--mg-ring-ui);
16
16
  }
17
17
  }
18
18
 
@@ -28,7 +28,7 @@
28
28
  padding-inline: --spacing(4);
29
29
  font-size: var(--text-sm);
30
30
  line-height: var(--text-sm--line-height);
31
- color: var(--ngp-text);
31
+ color: var(--mg-text-ui);
32
32
  }
33
33
 
34
34
  @utility mgnp-combobox-button {
@@ -41,7 +41,7 @@
41
41
  cursor: pointer;
42
42
  box-sizing: border-box;
43
43
  box-shadow: none;
44
- color: var(--ngp-text);
44
+ color: var(--mg-text-ui);
45
45
  }
46
46
 
47
47
  @utility mgnp-combobox-dropdown {
@@ -56,16 +56,16 @@
56
56
  margin-top: --spacing(1);
57
57
  max-height: --spacing(60);
58
58
  width: var(--ngp-combobox-width);
59
- box-shadow: var(--ngp-shadow-lg);
60
- background-color: var(--ngp-background);
61
- border: 1px solid var(--ngp-border);
59
+ box-shadow: var(--mg-shadow-lg);
60
+ background-color: var(--mg-background-ui);
61
+ border: 1px solid var(--mg-border-ui);
62
62
 
63
63
  @variant data-enter {
64
- animation: combobox-show var(--default-transition-duration) var(--default-transition-timing-function);
64
+ animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
65
65
  }
66
66
 
67
67
  @variant data-exit {
68
- animation: combobox-hide var(--default-transition-duration) var(--default-transition-timing-function);
68
+ animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
69
69
  }
70
70
  }
71
71
 
@@ -82,18 +82,18 @@
82
82
  border-radius: var(--radius-lg);
83
83
  font-size: var(--text-sm);
84
84
  line-height: var(--text-sm--line-height);
85
- color: var(--ngp-text-primary);
85
+ color: var(--mg-text-ui);
86
86
 
87
87
  @variant data-hover {
88
- background-color: var(--ngp-background-hover);
88
+ background-color: var(--mg-background-ui-hover);
89
89
  }
90
90
 
91
91
  @variant data-press {
92
- background-color: var(--ngp-background-active);
92
+ background-color: var(--mg-background-ui-active);
93
93
  }
94
94
 
95
95
  @variant data-active {
96
- background-color: var(--ngp-background-active);
96
+ background-color: var(--mg-background-ui-active);
97
97
  }
98
98
 
99
99
  @variant data-disabled {
@@ -122,27 +122,3 @@
122
122
  @apply mgnp-combobox-option transition;
123
123
  }
124
124
  }
125
-
126
- @theme {
127
- @keyframes combobox-show {
128
- 0% {
129
- opacity: 0;
130
- transform: translateY(-10px) scale(0.9);
131
- }
132
- 100% {
133
- opacity: 1;
134
- transform: translateY(0) scale(1);
135
- }
136
- }
137
-
138
- @keyframes combobox-hide {
139
- 0% {
140
- opacity: 1;
141
- transform: translateY(0) scale(1);
142
- }
143
- 100% {
144
- opacity: 0;
145
- transform: translateY(-10px) scale(0.9);
146
- }
147
- }
148
- }
@@ -1,12 +1,30 @@
1
1
  @utility mgnp-dialog {
2
2
  background-color: var(--mg-background-ui);
3
- box-shadow: var(--ngp-button-shadow);
3
+ box-shadow: var(--mg-shadow-button);
4
4
  padding: --spacing(6);
5
- border-radius: --spacing(2);
6
- animation: fade-in var(--default-transition-duration) var(--default-transition-timing-function);
7
5
 
8
- @variant data-exit {
9
- animation: fade-out var(--default-transition-duration) var(--default-transition-timing-function);
6
+ @variant data-[mgnp-mode='modal'] {
7
+ border-radius: --spacing(2);
8
+ animation: mg-fade-in var(--default-transition-duration)
9
+ var(--default-transition-timing-function);
10
+
11
+ @variant data-exit {
12
+ animation: mg-fade-out var(--default-transition-duration)
13
+ var(--default-transition-timing-function);
14
+ }
15
+ }
16
+
17
+ @variant data-[mgnp-mode='drawer'] {
18
+ width: --spacing(80);
19
+ max-width: 100%;
20
+ height: 100%;
21
+ animation: mg-slide-in var(--default-transition-duration)
22
+ var(--default-transition-timing-function);
23
+
24
+ @variant data-exit {
25
+ animation: mg-slide-out var(--default-transition-duration)
26
+ var(--default-transition-timing-function);
27
+ }
10
28
  }
11
29
  }
12
30
 
@@ -26,18 +44,41 @@
26
44
 
27
45
  @utility mgnp-dialog-overlay {
28
46
  display: flex;
29
- justify-content: center;
30
- align-items: center;
31
47
  position: fixed;
32
48
  z-index: 9999;
33
49
  background-color: --alpha(var(--mg-background-ui) / 50%);
34
50
  backdrop-filter: blur(--spacing(0.5));
35
51
  inset: --spacing(0);
36
- animation: slide-in var(--default-transition-duration) var(--default-transition-timing-function);
37
52
 
38
- @variant data-exit {
39
- animation: slide-out var(--default-transition-duration)
53
+ @variant data-[mgnp-mode='modal'] {
54
+ justify-content: center;
55
+ align-items: center;
56
+ animation: mg-fade-in var(--default-transition-duration)
40
57
  var(--default-transition-timing-function);
58
+
59
+ @variant data-exit {
60
+ animation: mg-fade-out var(--default-transition-duration)
61
+ var(--default-transition-timing-function);
62
+ }
63
+ }
64
+
65
+ @variant data-[mgnp-mode='drawer'] {
66
+ align-items: stretch;
67
+ animation: mg-slide-in var(--default-transition-duration)
68
+ var(--default-transition-timing-function);
69
+
70
+ @variant data-[mgnp-drawer-position='start'] {
71
+ justify-content: flex-start;
72
+ }
73
+
74
+ @variant data-[mgnp-drawer-position='end'] {
75
+ justify-content: flex-end;
76
+ }
77
+
78
+ @variant data-exit {
79
+ animation: mg-slide-out var(--default-transition-duration)
80
+ var(--default-transition-timing-function);
81
+ }
41
82
  }
42
83
  }
43
84
 
@@ -58,44 +99,3 @@
58
99
  @apply transition mgnp-dialog-overlay;
59
100
  }
60
101
  }
61
-
62
- @keyframes fade-in {
63
- 0% {
64
- opacity: 0;
65
- }
66
- 100% {
67
- opacity: 1;
68
- }
69
- }
70
-
71
- @keyframes fade-out {
72
- 0% {
73
- opacity: 1;
74
- }
75
- 100% {
76
- opacity: 0;
77
- }
78
- }
79
-
80
- @keyframes slide-in {
81
- 0% {
82
- transform: translateY(-20px);
83
- opacity: 0;
84
- }
85
- 100% {
86
- transform: translateY(0);
87
- opacity: 1;
88
- }
89
- }
90
-
91
- @keyframes slide-out {
92
- 0% {
93
- transform: translateY(0);
94
- opacity: 1;
95
- }
96
-
97
- 100% {
98
- transform: translateY(-20px);
99
- opacity: 0;
100
- }
101
- }
@@ -0,0 +1,78 @@
1
+ @utility mgnp-description {
2
+ color: var(--mg-text-ui-secondary);
3
+ font-size: var(--text-sm);
4
+ line-height: var(--text-sm--line-height);
5
+ margin-inline: --spacing(0);
6
+ margin-top: --spacing(0);
7
+ margin-bottom: --spacing(1);
8
+ }
9
+
10
+ @utility mgnp-error {
11
+ display: none;
12
+ color: var(--mg-text-danger);
13
+ font-size: var(--text-sm);
14
+ line-height: var(--text-sm--line-height);
15
+ margin: --spacing(0);
16
+
17
+ @variant data-[validator='fail']:data-dirty {
18
+ display: block;
19
+ }
20
+ }
21
+
22
+ @utility mgnp-form-control {
23
+ width: 100%;
24
+ border: none;
25
+ outline: none;
26
+ background-color: var(--mg-background-ui);
27
+ box-shadow: var(--mg-shadow-input);
28
+ border-radius: var(--radius-lg);
29
+ padding-block: --spacing(0);
30
+ padding-inline: --spacing(4);
31
+ height: --spacing(10);
32
+
33
+ @variant focus {
34
+ outline-offset: 2px;
35
+ outline: 2px solid var(--mg-ring-ui);
36
+ }
37
+
38
+ ::placeholder {
39
+ color: var(--mg-text-placeholder);
40
+ }
41
+ }
42
+
43
+ @utility mgnp-form-field {
44
+ display: flex;
45
+ flex-direction: column;
46
+ width: 90%;
47
+ gap: --spacing(1.5);
48
+ }
49
+
50
+ @utility mgnp-label {
51
+ color: var(--mg-text-ui);
52
+ font-size: var(--text-base);
53
+ line-height: var(--text-base--line-height);
54
+ font-weight: var(--font-weight-semibold);
55
+ margin: --spacing(0);
56
+ }
57
+
58
+ @layer base {
59
+ [mgnpDescription][data-mgnp-component='mgnp-description'] {
60
+ @apply mgnp-description transition;
61
+ }
62
+
63
+ [mgnpError][data-mgnp-component='mgnp-error'] {
64
+ @apply mgnp-error transition;
65
+ }
66
+
67
+ [mgnpFormControl][data-mgnp-component='mgnp-form-control'] {
68
+ @apply mgnp-form-control transition;
69
+ }
70
+
71
+ [mgnpFormField][data-mgnp-component='mgnp-form-field'] {
72
+ @apply mgnp-form-field transition;
73
+ }
74
+
75
+ [mgnpLabel][data-mgnp-component='mgnp-label'] {
76
+ @apply mgnp-label transition;
77
+ }
78
+ }
@@ -6,16 +6,16 @@
6
6
  padding-block: --spacing(0);
7
7
  padding-inline: --spacing(4);
8
8
  border-radius: var(--radius-lg);
9
- box-shadow: var(--ngp-input-shadow);
10
- background-color: var(--ngp-background);
9
+ box-shadow: var(--mg-shadow-input);
10
+ background-color: var(--mg-background-ui);
11
11
 
12
12
  @variant data-focus {
13
13
  outline-offset: 2px;
14
- outline: 2px solid var(--ngp-focus-ring);
14
+ outline: 2px solid var(--mg-ring-ui);
15
15
  }
16
16
 
17
17
  ::placeholder {
18
- color: var(--ngp-text-placeholder);
18
+ color: var(--mg-text-placeholder);
19
19
  }
20
20
  }
21
21
 
@@ -5,17 +5,17 @@
5
5
  width: max-content;
6
6
  padding: --spacing(1);
7
7
  border-radius: var(--radius-lg);
8
- background: var(--ngp-background);
9
- border: 1px solid var(--ngp-border);
10
- box-shadow: var(--ngp-shadow-lg);
8
+ background: var(--mg-background-ui);
9
+ border: 1px solid var(--mg-border-ui);
10
+ box-shadow: var(--mg-shadow-lg);
11
11
  transform-origin: var(--ngp-menu-transform-origin);
12
12
 
13
13
  @variant data-enter {
14
- animation: menu-show var(--default-transition-duration) var(--default-transition-timing-function);
14
+ animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
15
15
  }
16
16
 
17
17
  @variant data-exit {
18
- animation: menu-hide var(--default-transition-duration) var(--default-transition-timing-function);
18
+ animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
19
19
  }
20
20
  }
21
21
 
@@ -33,16 +33,16 @@
33
33
  line-height: var(--text-sm--line-height);
34
34
 
35
35
  @variant data-hover {
36
- background-color: var(--ngp-background-hover);
36
+ background-color: var(--mg-background-ui-hover);
37
37
  }
38
38
 
39
39
  @variant data-press {
40
- background-color: var(--ngp-background-active);
40
+ background-color: var(--mg-background-ui-active);
41
41
  }
42
42
 
43
43
  @variant data-focus-visible {
44
44
  z-index: 1;
45
- outline: 2px solid var(--ngp-focus-ring);
45
+ outline: 2px solid var(--mg-ring-ui);
46
46
  }
47
47
 
48
48
  @variant data-disabled {
@@ -59,27 +59,3 @@
59
59
  @apply mgnp-menu-item transition;
60
60
  }
61
61
  }
62
-
63
- @theme {
64
- @keyframes menu-show {
65
- 0% {
66
- opacity: 0;
67
- transform: scale(0.9);
68
- }
69
- 100% {
70
- opacity: 1;
71
- transform: scale(1);
72
- }
73
- }
74
-
75
- @keyframes menu-hide {
76
- 0% {
77
- opacity: 1;
78
- transform: scale(1);
79
- }
80
- 100% {
81
- opacity: 0;
82
- transform: scale(0.9);
83
- }
84
- }
85
- }
@@ -18,28 +18,28 @@
18
18
  border-radius: var(--radius-lg);
19
19
  font-size: var(--text-sm);
20
20
  font-weight: var(--font-weight-medium);
21
- background-color: var(--ngp-background);
22
- color: var(--ngp-text-primary);
23
- box-shadow: var(--ngp-button-shadow);
21
+ background-color: var(--mg-background-ui);
22
+ color: var(--mg-text-ui);
23
+ box-shadow: var(--mg-shadow-button);
24
24
 
25
25
  @variant data-hover {
26
26
  @variant not-data-disabled {
27
27
  @variant not-data-selected {
28
- background-color: var(--ngp-background-hover);
28
+ background-color: var(--mg-background-ui-hover);
29
29
  }
30
30
  }
31
31
  }
32
32
 
33
33
  @variant data-focus-visible {
34
34
  @variant not-data-disabled {
35
- outline: 2px solid var(--ngp-focus-ring);
35
+ outline: 2px solid var(--mg-ring-ui);
36
36
  }
37
37
  }
38
38
 
39
39
  @variant data-press {
40
40
  @variant not-data-disabled {
41
41
  @variant not-data-selected {
42
- background-color: var(--ngp-background-active);
42
+ background-color: var(--mg-background-ui-active);
43
43
  }
44
44
  }
45
45
  }
@@ -48,12 +48,12 @@
48
48
  cursor: not-allowed;
49
49
  color: #d2d2d2;
50
50
  box-shadow: none;
51
- background-color: var(--ngp-background-disabled);
51
+ background-color: var(--mg-background-ui-disabled);
52
52
  }
53
53
 
54
54
  @variant data-selected {
55
- background-color: var(--ngp-background-inverse);
56
- color: var(--ngp-text-inverse);
55
+ background-color: var(--mg-background-ui-inverse);
56
+ color: var(--mg-text-inverse);
57
57
  }
58
58
  }
59
59
 
@@ -23,7 +23,7 @@
23
23
  outline: none;
24
24
  border-radius: calc(infinity* 1px);
25
25
  background-color: var(--mg-background-ui);
26
- box-shadow: var(--ngp-button-shadow);
26
+ box-shadow: var(--mg-shadow-button);
27
27
  width: --spacing(4);
28
28
  height: --spacing(4);
29
29
  margin-left: --spacing(1);
@@ -9,16 +9,16 @@
9
9
  padding: --spacing(3) --spacing(4);
10
10
  border-radius: --spacing(2);
11
11
  width: --spacing(87.5);
12
- border: 1px solid var(--ngp-border);
13
- background: var(--ngp-background);
14
- box-shadow: var(--ngp-shadow);
12
+ border: 1px solid var(--mg-border-ui);
13
+ background: var(--mg-background-ui);
14
+ box-shadow: var(--mg-shadow-ui);
15
15
  z-index: var(--ngp-toast-z-index);
16
16
  transform: var(--y);
17
17
 
18
18
  @variant data-enter {
19
- opacity: 1;
20
19
  --y: translateY(0);
21
- animation: toast-slide-in var(--default-transition-duration) var(--default-transition-timing-function);
20
+ opacity: 1;
21
+ animation: mg-slide-in var(--default-transition-duration) var(--default-transition-timing-function);
22
22
  }
23
23
 
24
24
  @variant data-exit {
@@ -109,16 +109,3 @@
109
109
  @apply mgnp-toast transition;
110
110
  }
111
111
  }
112
-
113
- @theme {
114
- @keyframes toast-slide-in {
115
- from {
116
- opacity: 0;
117
- transform: translateY(100%);
118
- }
119
- to {
120
- opacity: 1;
121
- transform: translateY(0);
122
- }
123
- }
124
- }
@@ -1,19 +1,19 @@
1
1
  @utility mgnp-tooltip {
2
2
  position: absolute;
3
3
  border: none;
4
- animation: tooltip-show var(--default-transition-duration) var(--default-transition-timing-function);
4
+ animation: mg-show var(--default-transition-duration) var(--default-transition-timing-function);
5
5
  max-width: --spacing(64);
6
6
  padding-block: --spacing(2);
7
7
  padding-inline: --spacing(3);
8
8
  font-size: var(--text-xs);
9
9
  line-height: var(--text-xs--line-height);
10
10
  border-radius: var(--radius-lg);
11
- background-color: var(--ngp-background-inverse);
12
- color: var(--ngp-text-inverse);
11
+ background-color: var(--mg-background-ui-inverse);
12
+ color: var(--mg-text-inverse);
13
13
  transform-origin: var(--ngp-tooltip-transform-origin);
14
14
 
15
15
  @variant data-exit {
16
- animation: tooltip-hide var(--default-transition-duration) var(--default-transition-timing-function);
16
+ animation: mg-hide var(--default-transition-duration) var(--default-transition-timing-function);
17
17
  }
18
18
  }
19
19
 
@@ -24,7 +24,7 @@
24
24
  width: --spacing(2);
25
25
  height: --spacing(2);
26
26
  border-radius: var(--radius-xs);
27
- background-color: var(--ngp-background-inverse);
27
+ background-color: var(--mg-background-ui-inverse);
28
28
 
29
29
  @variant data-[placement="top"] {
30
30
  top: calc(100% - 5px);
@@ -44,27 +44,3 @@
44
44
  @apply mgnp-tooltip-arrow transition;
45
45
  }
46
46
  }
47
-
48
- @theme {
49
- @keyframes tooltip-show {
50
- 0% {
51
- opacity: 0;
52
- transform: scale(0.9);
53
- }
54
- 100% {
55
- opacity: 1;
56
- transform: scale(1);
57
- }
58
- }
59
-
60
- @keyframes tooltip-hide {
61
- 0% {
62
- opacity: 1;
63
- transform: scale(1);
64
- }
65
- 100% {
66
- opacity: 0;
67
- transform: scale(0.9);
68
- }
69
- }
70
- }
package/theme/mgnp.css CHANGED
@@ -1,4 +1,17 @@
1
- @import './ngp_tw.css';
1
+ @import './animation.css';
2
+
3
+ @import './components/accordion.css';
4
+ @import './components/button.css';
5
+ @import './components/checkbox.css';
6
+ @import './components/combobox.css';
7
+ @import './components/dialog.css';
8
+ @import './components/form-field.css';
9
+ @import './components/input.css';
10
+ @import './components/menu.css';
11
+ @import './components/pagination.css';
12
+ @import './components/switch.css';
13
+ @import './components/toast.css';
14
+ @import './components/tooltip.css';
2
15
 
3
16
  @custom-variant dark (&:where(.dark, .dark *));
4
17
 
@@ -133,6 +146,9 @@
133
146
  --mg-ring-ui: rgb(59, 130, 246);
134
147
  --mg-default-transition-duration: 250ms;
135
148
  --mg-default-transition-timing-function: var(--ease-in-out);
149
+
150
+ --mg-default-animation-translateY-origin: --spacing(-2);
151
+ --mg-default-animation-translateY-base: --spacing(0);
136
152
  }
137
153
 
138
154
  @theme {
@@ -1,6 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
+ import { PropertyType } from '@mgremy/ng-primitives';
3
+
4
+ type MgnpDialogOverlayMode = PropertyType<'modal' | 'drawer'>;
5
+ type MgnpDialogDrawerPosition = PropertyType<'start' | 'end'>;
6
+ declare class MgnpDialogOverlay {
7
+ private readonly _ngpDialogOverlay;
8
+ readonly mode: i0.InputSignal<MgnpDialogOverlayMode>;
9
+ readonly drawerPosition: i0.InputSignal<MgnpDialogDrawerPosition>;
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialogOverlay, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogOverlay, "[ngpDialogOverlay][mgnpDialogOverlay]", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "drawerPosition": { "alias": "drawerPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
+ }
2
14
 
3
15
  declare class MgnpDialog {
16
+ protected readonly _overlay: MgnpDialogOverlay;
4
17
  private readonly _ngpDialog;
5
18
  constructor();
6
19
  static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialog, never>;
@@ -14,13 +27,6 @@ declare class MgnpDialogDescription {
14
27
  static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogDescription, "[ngpDialogDescription][mgnpDialogDescription]", never, {}, {}, never, never, true, never>;
15
28
  }
16
29
 
17
- declare class MgnpDialogOverlay {
18
- private readonly _ngpDialogOverlay;
19
- constructor();
20
- static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDialogOverlay, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDialogOverlay, "[ngpDialogOverlay][mgnpDialogOverlay]", never, {}, {}, never, never, true, never>;
22
- }
23
-
24
30
  declare class MgnpDialogTitle {
25
31
  private readonly _ngpDialogTitle;
26
32
  constructor();
@@ -29,3 +35,4 @@ declare class MgnpDialogTitle {
29
35
  }
30
36
 
31
37
  export { MgnpDialog, MgnpDialogDescription, MgnpDialogOverlay, MgnpDialogTitle };
38
+ export type { MgnpDialogDrawerPosition, MgnpDialogOverlayMode };
@@ -0,0 +1,28 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class MgnpDescription {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpDescription, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpDescription, "[ngpDescription][mgnpDescription]", never, {}, {}, never, never, true, never>;
6
+ }
7
+
8
+ declare class MgnpError {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpError, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpError, "[ngpError][mgnpError]", never, {}, {}, never, never, true, never>;
11
+ }
12
+
13
+ declare class MgnpFormControl {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpFormControl, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpFormControl, "[ngpFormControl][mgnpFormControl]", never, {}, {}, never, never, true, never>;
16
+ }
17
+
18
+ declare class MgnpFormField {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpFormField, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpFormField, "[ngpFormField][mgnpFormField]", never, {}, {}, never, never, true, never>;
21
+ }
22
+
23
+ declare class MgnpLabel {
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MgnpLabel, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MgnpLabel, "[ngpLabel][mgnpLabel]", never, {}, {}, never, never, true, never>;
26
+ }
27
+
28
+ export { MgnpDescription, MgnpError, MgnpFormControl, MgnpFormField, MgnpLabel };
package/theme/ngp_tw.css DELETED
@@ -1,51 +0,0 @@
1
- @import './components/accordion.css';
2
- @import './components/button.css';
3
- @import './components/checkbox.css';
4
- @import './components/combobox.css';
5
- @import './components/dialog.css';
6
- @import './components/input.css';
7
- @import './components/menu.css';
8
- @import './components/pagination.css';
9
- @import './components/switch.css';
10
- @import './components/toast.css';
11
- @import './components/tooltip.css';
12
-
13
- @theme {
14
- --ngp-background: var(--mg-background-ui);
15
- --ngp-background-secondary: var(--mg-background-ui-secondary);
16
- --ngp-background-hover: var(--mg-background-ui-hover);
17
- --ngp-background-active: var(--mg-background-ui-active);
18
- --ngp-background-inverse: var(--mg-background-ui-inverse);
19
- --ngp-background-disabled: var(--mg-background-ui-disabled);
20
- --ngp-background-blue: var(--mg-background-primary);
21
- --ngp-background-success: var(--mg-background-success);
22
-
23
- --ngp-border: var(--mg-border-ui);
24
- --ngp-border-secondary: var(--mg-border-ui-secondary);
25
- --ngp-border-blue: var(--mg-border-info);
26
- --ngp-border-inverse: var(--mg-border-inverse);
27
-
28
- --ngp-text-active: var(--mg-text-active);
29
- --ngp-text-emphasis: var(--mg-text-emphasis);
30
- --ngp-text-primary: var(--mg-text-ui);
31
- --ngp-text-secondary: var(--mg-text-ui-secondary);
32
- --ngp-text-tertiary: var(--mg-text-ui-tertiary);
33
- --ngp-text-disabled: var(--mg-text-ui-disabled);
34
- --ngp-text-placeholder: var(--mg-text-placeholder);
35
- --ngp-text-inverse: var(--mg-text-inverse);
36
- --ngp-text-blue: var(--mg-text-primary);
37
- --ngp-text-red: var(--mg-text-danger);
38
-
39
- --ngp-shadow: var(--mg-shadow-ui);
40
- --ngp-shadow-lg: var(--mg-shadow-lg);
41
- --ngp-shadow-border: var(--mg-shadow-border);
42
-
43
- --ngp-focus-ring: var(--mg-ring-ui);
44
-
45
- --ngp-avatar-background: var(--mg-background-avatar);
46
- --ngp-avatar-border: var(--mg-border-avatar);
47
-
48
- --ngp-button-shadow: var(--mg-shadow-button);
49
-
50
- --ngp-input-shadow: var(--mg-shadow-input);
51
- }