@mgremy/ng-primitives 0.2.0 → 0.4.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/accordion/README.md +4 -0
- package/button/README.md +2 -1
- package/combobox/README.md +2 -1
- package/fesm2022/mgremy-ng-primitives-accordion.mjs +82 -0
- package/fesm2022/mgremy-ng-primitives-accordion.mjs.map +1 -0
- package/fesm2022/mgremy-ng-primitives-button.mjs +20 -6
- package/fesm2022/mgremy-ng-primitives-button.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-combobox.mjs +12 -12
- package/fesm2022/mgremy-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-input.mjs +3 -3
- package/fesm2022/mgremy-ng-primitives-loader.mjs +44 -5
- package/fesm2022/mgremy-ng-primitives-loader.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-menu.mjs +6 -6
- package/fesm2022/mgremy-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-pagination.mjs +20 -67
- package/fesm2022/mgremy-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-table.mjs +16 -16
- package/fesm2022/mgremy-ng-primitives-table.mjs.map +1 -1
- package/fesm2022/mgremy-ng-primitives-tooltip.mjs +6 -6
- package/fesm2022/mgremy-ng-primitives-tooltip.mjs.map +1 -1
- package/input/README.md +2 -1
- package/loader/README.md +2 -1
- package/menu/README.md +2 -1
- package/package.json +12 -12
- package/pagination/README.md +2 -1
- package/table/README.md +2 -1
- package/theme/components/accordion.css +111 -0
- package/theme/components/button.css +5 -7
- package/theme/components/combobox.css +25 -21
- package/theme/components/input.css +5 -4
- package/theme/components/loader.css +9 -0
- package/theme/components/menu.css +13 -12
- package/theme/components/pagination.css +69 -0
- package/theme/components/tooltip.css +11 -10
- package/theme/mgnp.css +113 -91
- package/theme/ngp_tw.css +40 -37
- package/tooltip/README.md +2 -1
- package/types/mgremy-ng-primitives-accordion.d.ts +25 -0
- package/types/mgremy-ng-primitives-button.d.ts +5 -1
- package/types/mgremy-ng-primitives-pagination.d.ts +5 -22
- package/fesm2022/mgremy-ng-primitives-navbar.mjs +0 -54
- package/fesm2022/mgremy-ng-primitives-navbar.mjs.map +0 -1
- package/navbar/README.md +0 -3
- package/types/mgremy-ng-primitives-navbar.d.ts +0 -23
package/button/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
# @mgremy/ng-primitives/src/lib/button
|
|
2
2
|
|
|
3
|
-
Secondary entry point of `@mgremy/ng-primitives`. It can be used by importing from
|
|
3
|
+
Secondary entry point of `@mgremy/ng-primitives`. It can be used by importing from
|
|
4
|
+
`@mgremy/ng-primitives/button`.
|
package/combobox/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
# @mgremy/ng-primitives/src/lib/combobox
|
|
2
2
|
|
|
3
|
-
Secondary entry point of `@mgremy/ng-primitives`. It can be used by importing from
|
|
3
|
+
Secondary entry point of `@mgremy/ng-primitives`. It can be used by importing from
|
|
4
|
+
`@mgremy/ng-primitives/combobox`.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Directive } from '@angular/core';
|
|
3
|
+
import { NgpAccordion, NgpAccordionContent, NgpAccordionItem } from 'ng-primitives/accordion';
|
|
4
|
+
|
|
5
|
+
const options$2 = ['ngpAccordion'];
|
|
6
|
+
const error$2 = new Error(`MgnpAccordion must be used with ${options$2.join(' / ')}`);
|
|
7
|
+
class MgnpAccordion {
|
|
8
|
+
ngpAccordion = inject(NgpAccordion, { optional: true });
|
|
9
|
+
constructor() {
|
|
10
|
+
if (!this.ngpAccordion) {
|
|
11
|
+
console.error(this);
|
|
12
|
+
throw error$2;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpAccordion, isStandalone: true, selector: "[ngpAccordion][mgnpAccordion]", host: { attributes: { "data-mgnp-component": "mgnp-accordion" } }, ngImport: i0 });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordion, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: '[ngpAccordion][mgnpAccordion]',
|
|
22
|
+
standalone: true,
|
|
23
|
+
host: {
|
|
24
|
+
'data-mgnp-component': 'mgnp-accordion',
|
|
25
|
+
},
|
|
26
|
+
}]
|
|
27
|
+
}], ctorParameters: () => [] });
|
|
28
|
+
|
|
29
|
+
const options$1 = ['ngpAccordionContent'];
|
|
30
|
+
const error$1 = new Error(`MgnpAccordionContent must be used with ${options$1.join(' / ')}`);
|
|
31
|
+
class MgnpAccordionContent {
|
|
32
|
+
ngpAccordionContent = inject(NgpAccordionContent, { optional: true });
|
|
33
|
+
constructor() {
|
|
34
|
+
if (!this.ngpAccordionContent) {
|
|
35
|
+
console.error(this);
|
|
36
|
+
throw error$1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpAccordionContent, isStandalone: true, selector: "[ngpAccordionContent][mgnpAccordionContent]", host: { attributes: { "data-mgnp-component": "mgnp-accordion-content" } }, ngImport: i0 });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordionContent, decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: '[ngpAccordionContent][mgnpAccordionContent]',
|
|
46
|
+
standalone: true,
|
|
47
|
+
host: {
|
|
48
|
+
'data-mgnp-component': 'mgnp-accordion-content',
|
|
49
|
+
},
|
|
50
|
+
}]
|
|
51
|
+
}], ctorParameters: () => [] });
|
|
52
|
+
|
|
53
|
+
const options = ['ngpAccordionItem'];
|
|
54
|
+
const error = new Error(`MgnpAccordionItem must be used with ${options.join(' / ')}`);
|
|
55
|
+
class MgnpAccordionItem {
|
|
56
|
+
ngpAccordionItem = inject(NgpAccordionItem, { optional: true });
|
|
57
|
+
constructor() {
|
|
58
|
+
if (!this.ngpAccordionItem) {
|
|
59
|
+
console.error(this);
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
64
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpAccordionItem, isStandalone: true, selector: "[ngpAccordionItem][mgnpAccordionItem]", host: { attributes: { "data-mgnp-component": "mgnp-accordion-item" } }, ngImport: i0 });
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpAccordionItem, decorators: [{
|
|
67
|
+
type: Directive,
|
|
68
|
+
args: [{
|
|
69
|
+
selector: '[ngpAccordionItem][mgnpAccordionItem]',
|
|
70
|
+
standalone: true,
|
|
71
|
+
host: {
|
|
72
|
+
'data-mgnp-component': 'mgnp-accordion-item',
|
|
73
|
+
},
|
|
74
|
+
}]
|
|
75
|
+
}], ctorParameters: () => [] });
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Generated bundle index. Do not edit.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
export { MgnpAccordion, MgnpAccordionContent, MgnpAccordionItem };
|
|
82
|
+
//# sourceMappingURL=mgremy-ng-primitives-accordion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-accordion.mjs","sources":["../../../../libs/ng-primitives/accordion/src/lib/mgnp-accordion/mgnp-accordion.directive.ts","../../../../libs/ng-primitives/accordion/src/lib/mgnp-accordion-content/mgnp-accordion-content.directive.ts","../../../../libs/ng-primitives/accordion/src/lib/mgnp-accordion-item/mgnp-accordion-item.directive.ts","../../../../libs/ng-primitives/accordion/src/mgremy-ng-primitives-accordion.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpAccordion } from 'ng-primitives/accordion';\n\nconst options = ['ngpAccordion'];\n\nconst error = new Error(`MgnpAccordion must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpAccordion][mgnpAccordion]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-accordion',\n },\n})\nexport class MgnpAccordion {\n protected readonly ngpAccordion = inject(NgpAccordion, { optional: true });\n\n constructor() {\n if (!this.ngpAccordion) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpAccordionContent } from 'ng-primitives/accordion';\n\nconst options = ['ngpAccordionContent'];\n\nconst error = new Error(`MgnpAccordionContent must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpAccordionContent][mgnpAccordionContent]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-accordion-content',\n },\n})\nexport class MgnpAccordionContent {\n protected readonly ngpAccordionContent = inject(NgpAccordionContent, { optional: true });\n\n constructor() {\n if (!this.ngpAccordionContent) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpAccordionItem } from 'ng-primitives/accordion';\n\nconst options = ['ngpAccordionItem'];\n\nconst error = new Error(`MgnpAccordionItem must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpAccordionItem][mgnpAccordionItem]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-accordion-item',\n },\n})\nexport class MgnpAccordionItem {\n protected readonly ngpAccordionItem = inject(NgpAccordionItem, { optional: true });\n\n constructor() {\n if (!this.ngpAccordionItem) {\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,cAAc,CAAC;AAEhC,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,gCAAA,EAAmCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASpE,aAAa,CAAA;IACL,YAAY,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE1E,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;AACtB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,gBAAA,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,gBAAgB;AACxC,qBAAA;AACF,i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AA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;AAC1B,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGARW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uCAAuC;AACjD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,qBAAqB;AAC7C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, Directive } from '@angular/core';
|
|
3
|
+
import { NgpAccordionTrigger } from 'ng-primitives/accordion';
|
|
3
4
|
import { NgpButton } from 'ng-primitives/button';
|
|
4
5
|
import { NgpComboboxButton } from 'ng-primitives/combobox';
|
|
5
6
|
import { NgpMenuTrigger } from 'ng-primitives/menu';
|
|
7
|
+
import { NgpTooltipTrigger } from 'ng-primitives/tooltip';
|
|
6
8
|
|
|
7
|
-
const options = [
|
|
9
|
+
const options = [
|
|
10
|
+
'ngpButton',
|
|
11
|
+
'ngpComboboxButton',
|
|
12
|
+
'ngpMenuTrigger',
|
|
13
|
+
'ngpTooltipTrigger',
|
|
14
|
+
'ngpAccordionTrigger',
|
|
15
|
+
];
|
|
8
16
|
const error = new Error(`MgnpButton must be used with ${options.join(' / ')}`);
|
|
9
17
|
class MgnpButton {
|
|
10
18
|
ngpButton = inject(NgpButton, { optional: true });
|
|
@@ -14,19 +22,25 @@ class MgnpButton {
|
|
|
14
22
|
ngpMenuTrigger = inject(NgpMenuTrigger, {
|
|
15
23
|
optional: true,
|
|
16
24
|
});
|
|
25
|
+
ngpTooltipTrigger = inject(NgpTooltipTrigger, { optional: true });
|
|
26
|
+
ngpAccordionTrigger = inject(NgpAccordionTrigger, { optional: true });
|
|
17
27
|
constructor() {
|
|
18
|
-
if (!this.ngpButton &&
|
|
28
|
+
if (!this.ngpButton &&
|
|
29
|
+
!this.ngpComboboxButton &&
|
|
30
|
+
!this.ngpMenuTrigger &&
|
|
31
|
+
!this.ngpTooltipTrigger &&
|
|
32
|
+
!this.ngpAccordionTrigger) {
|
|
19
33
|
console.error(this);
|
|
20
34
|
throw error;
|
|
21
35
|
}
|
|
22
36
|
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
24
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpButton, isStandalone: true, selector: "[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton], [ngpTooltipTrigger][mgnpButton], [ngpAccordionTrigger][mgnpButton]", host: { attributes: { "data-mgnp-component": "mgnp-button" } }, ngImport: i0 });
|
|
25
39
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpButton, decorators: [{
|
|
27
41
|
type: Directive,
|
|
28
42
|
args: [{
|
|
29
|
-
selector: '[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton]',
|
|
43
|
+
selector: '[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton], [ngpTooltipTrigger][mgnpButton], [ngpAccordionTrigger][mgnpButton]',
|
|
30
44
|
standalone: true,
|
|
31
45
|
host: {
|
|
32
46
|
'data-mgnp-component': 'mgnp-button',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-button.mjs","sources":["../../../../libs/ng-primitives/button/src/lib/mgnp-button/mgnp-button.directive.ts","../../../../libs/ng-primitives/button/src/mgremy-ng-primitives-button.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpComboboxButton } from 'ng-primitives/combobox';\nimport { NgpMenuTrigger } from 'ng-primitives/menu';\n\nconst options = ['ngpButton'
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-button.mjs","sources":["../../../../libs/ng-primitives/button/src/lib/mgnp-button/mgnp-button.directive.ts","../../../../libs/ng-primitives/button/src/mgremy-ng-primitives-button.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpAccordionTrigger } from 'ng-primitives/accordion';\nimport { NgpButton } from 'ng-primitives/button';\nimport { NgpComboboxButton } from 'ng-primitives/combobox';\nimport { NgpMenuTrigger } from 'ng-primitives/menu';\nimport { NgpTooltipTrigger } from 'ng-primitives/tooltip';\n\nconst options = [\n 'ngpButton',\n 'ngpComboboxButton',\n 'ngpMenuTrigger',\n 'ngpTooltipTrigger',\n 'ngpAccordionTrigger',\n];\n\nconst error = new Error(`MgnpButton must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector:\n '[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton], [ngpTooltipTrigger][mgnpButton], [ngpAccordionTrigger][mgnpButton]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-button',\n },\n})\nexport class MgnpButton {\n protected readonly ngpButton = inject(NgpButton, { optional: true });\n protected readonly ngpComboboxButton = inject(NgpComboboxButton, {\n optional: true,\n });\n protected readonly ngpMenuTrigger = inject(NgpMenuTrigger, {\n optional: true,\n });\n protected readonly ngpTooltipTrigger = inject(NgpTooltipTrigger, { optional: true });\n protected readonly ngpAccordionTrigger = inject(NgpAccordionTrigger, { optional: true });\n\n constructor() {\n if (\n !this.ngpButton &&\n !this.ngpComboboxButton &&\n !this.ngpMenuTrigger &&\n !this.ngpTooltipTrigger &&\n !this.ngpAccordionTrigger\n ) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAOA,MAAM,OAAO,GAAG;IACd,WAAW;IACX,mBAAmB;IACnB,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;CACtB;AAED,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAA,6BAAA,EAAgC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MAUjE,UAAU,CAAA;IACF,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACjD,IAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,EAAE;AAC/D,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC;AACiB,IAAA,cAAc,GAAG,MAAM,CAAC,cAAc,EAAE;AACzD,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC;IACiB,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjE,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExF,IAAA,WAAA,GAAA;QACE,IACE,CAAC,IAAI,CAAC,SAAS;YACf,CAAC,IAAI,CAAC,iBAAiB;YACvB,CAAC,IAAI,CAAC,cAAc;YACpB,CAAC,IAAI,CAAC,iBAAiB;AACvB,YAAA,CAAC,IAAI,CAAC,mBAAmB,EACzB;AACA,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGAtBW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4JAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBARtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EACN,4JAA4J;AAC9J,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,aAAa;AACrC,qBAAA;AACF,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
@@ -12,10 +12,10 @@ class MgnpCombobox {
|
|
|
12
12
|
throw error$3;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpCombobox, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpCombobox, isStandalone: true, selector: "[ngpCombobox][mgnpCombobox]", host: { attributes: { "data-mgnp-component": "mgnp-combobox" } }, ngImport: i0 });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpCombobox, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[ngpCombobox][mgnpCombobox]',
|
|
@@ -38,10 +38,10 @@ class MgnpComboboxDropdown {
|
|
|
38
38
|
throw error$2;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
42
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxDropdown, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpComboboxDropdown, isStandalone: true, selector: "[ngpComboboxDropdown][mgnpComboboxDropdown]", host: { attributes: { "data-mgnp-component": "mgnp-combobox-dropdown" } }, ngImport: i0 });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxDropdown, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{
|
|
47
47
|
selector: '[ngpComboboxDropdown][mgnpComboboxDropdown]',
|
|
@@ -64,10 +64,10 @@ class MgnpComboboxInput {
|
|
|
64
64
|
throw error$1;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpComboboxInput, isStandalone: true, selector: "[ngpComboboxInput][mgnpComboboxInput]", host: { attributes: { "data-mgnp-component": "mgnp-combobox-input" } }, ngImport: i0 });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxInput, decorators: [{
|
|
71
71
|
type: Directive,
|
|
72
72
|
args: [{
|
|
73
73
|
selector: '[ngpComboboxInput][mgnpComboboxInput]',
|
|
@@ -90,10 +90,10 @@ class MgnpComboboxOption {
|
|
|
90
90
|
throw error;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
94
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxOption, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
94
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpComboboxOption, isStandalone: true, selector: "[ngpComboboxOption][mgnpComboboxOption]", host: { attributes: { "data-mgnp-component": "mgnp-combobox-option" } }, ngImport: i0 });
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpComboboxOption, decorators: [{
|
|
97
97
|
type: Directive,
|
|
98
98
|
args: [{
|
|
99
99
|
selector: '[ngpComboboxOption][mgnpComboboxOption]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-combobox.mjs","sources":["../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox/mgnp-combobox.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-dropdown/mgnp-combobox-dropdown.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-input/mgnp-combobox-input.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-option/mgnp-combobox-option.directive.ts","../../../../libs/ng-primitives/combobox/src/mgremy-ng-primitives-combobox.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpCombobox } from 'ng-primitives/combobox';\n\nconst options = ['ngpCombobox'];\n\nconst error = new Error(
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-combobox.mjs","sources":["../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox/mgnp-combobox.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-dropdown/mgnp-combobox-dropdown.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-input/mgnp-combobox-input.directive.ts","../../../../libs/ng-primitives/combobox/src/lib/mgnp-combobox-option/mgnp-combobox-option.directive.ts","../../../../libs/ng-primitives/combobox/src/mgremy-ng-primitives-combobox.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpCombobox } from 'ng-primitives/combobox';\n\nconst options = ['ngpCombobox'];\n\nconst error = new Error(`MgnpCombobox must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpCombobox][mgnpCombobox]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-combobox',\n },\n})\nexport class MgnpCombobox {\n protected readonly ngpCombobox = inject(NgpCombobox, { optional: true });\n\n constructor() {\n if (!this.ngpCombobox) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpComboboxDropdown } from 'ng-primitives/combobox';\n\nconst options = ['ngpComboboxDroprown'];\n\nconst error = new Error(`MgnpComboboxDropdown must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpComboboxDropdown][mgnpComboboxDropdown]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-combobox-dropdown',\n },\n})\nexport class MgnpComboboxDropdown {\n protected readonly ngpComboboxDropdown = inject(NgpComboboxDropdown, {\n optional: true,\n });\n\n constructor() {\n if (!this.ngpComboboxDropdown) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpComboboxInput } from 'ng-primitives/combobox';\n\nconst options = ['ngpComboboxInput'];\n\nconst error = new Error(`MgnpComboboxInput must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpComboboxInput][mgnpComboboxInput]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-combobox-input',\n },\n})\nexport class MgnpComboboxInput {\n protected readonly ngpComboboxInput = inject(NgpComboboxInput, {\n optional: true,\n });\n\n constructor() {\n if (!this.ngpComboboxInput) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpComboboxOption } from 'ng-primitives/combobox';\n\nconst options = ['ngpComboboxOption'];\n\nconst error = new Error(`MgnpComboboxOption must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpComboboxOption][mgnpComboboxOption]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-combobox-option',\n },\n})\nexport class MgnpComboboxOption {\n protected readonly ngpComboboxOption = inject(NgpComboboxOption, {\n optional: true,\n });\n\n constructor() {\n if (!this.ngpComboboxOption) {\n console.error(this);\n throw error;\n }\n }\n}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AA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yCAAyC;AACnD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,sBAAsB;AAC9C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -12,10 +12,10 @@ class MgnpInput {
|
|
|
12
12
|
throw error;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpInput, isStandalone: true, selector: "[ngpInput][mgnpInput]", host: { attributes: { "data-mgnp-component": "mgnp-input" } }, ngImport: i0 });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpInput, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[ngpInput][mgnpInput]',
|
|
@@ -2,14 +2,53 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class MgnpLoader {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
6
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: MgnpLoader, isStandalone: true, selector: "mgnp-loader", host: { attributes: { "data-mgnp-component": "mgnp-loader", "role": "status" } }, providers: [], ngImport: i0, template: `
|
|
7
|
+
<svg
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
viewBox="0 0 100 101"
|
|
10
|
+
fill="none"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
class="size-8 animate-spin fill-(--text-primary) text-(--bg-ui)">
|
|
13
|
+
<path
|
|
14
|
+
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
15
|
+
fill="currentColor" />
|
|
16
|
+
<path
|
|
17
|
+
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
18
|
+
fill="currentFill" />
|
|
19
|
+
</svg>
|
|
20
|
+
<span class="sr-only">Loading...</span>
|
|
21
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7
22
|
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpLoader, decorators: [{
|
|
9
24
|
type: Component,
|
|
10
|
-
args: [{
|
|
25
|
+
args: [{
|
|
26
|
+
selector: 'mgnp-loader',
|
|
27
|
+
imports: [],
|
|
28
|
+
standalone: true,
|
|
29
|
+
template: `
|
|
30
|
+
<svg
|
|
31
|
+
aria-hidden="true"
|
|
32
|
+
viewBox="0 0 100 101"
|
|
33
|
+
fill="none"
|
|
34
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
+
class="size-8 animate-spin fill-(--text-primary) text-(--bg-ui)">
|
|
36
|
+
<path
|
|
37
|
+
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
38
|
+
fill="currentColor" />
|
|
39
|
+
<path
|
|
40
|
+
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
41
|
+
fill="currentFill" />
|
|
42
|
+
</svg>
|
|
43
|
+
<span class="sr-only">Loading...</span>
|
|
44
|
+
`,
|
|
45
|
+
providers: [],
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
47
|
+
host: {
|
|
48
|
+
'data-mgnp-component': 'mgnp-loader',
|
|
11
49
|
role: 'status',
|
|
12
|
-
},
|
|
50
|
+
},
|
|
51
|
+
}]
|
|
13
52
|
}] });
|
|
14
53
|
|
|
15
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-loader.mjs","sources":["../../../../libs/ng-primitives/loader/src/lib/mgnp-loader/mgnp-loader.component.ts","../../../../libs/ng-primitives/loader/src/
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-loader.mjs","sources":["../../../../libs/ng-primitives/loader/src/lib/mgnp-loader/mgnp-loader.component.ts","../../../../libs/ng-primitives/loader/src/mgremy-ng-primitives-loader.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'mgnp-loader',\n imports: [],\n standalone: true,\n template: `\n <svg\n aria-hidden=\"true\"\n viewBox=\"0 0 100 101\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"size-8 animate-spin fill-(--text-primary) text-(--bg-ui)\">\n <path\n d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n fill=\"currentColor\" />\n <path\n d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n fill=\"currentFill\" />\n </svg>\n <span class=\"sr-only\">Loading...</span>\n `,\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'data-mgnp-component': 'mgnp-loader',\n role: 'status',\n },\n})\nexport class MgnpLoader {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MA6Ba,UAAU,CAAA;uGAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,aAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,EAAA,SAAA,EAPV,EAAE,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAhBH;;;;;;;;;;;;;;;AAeT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAQU,UAAU,EAAA,UAAA,EAAA,CAAA;kBA3BtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;AAeT,EAAA,CAAA;AACD,oBAAA,SAAS,EAAE,EAAE;oBACb,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,aAAa;AACpC,wBAAA,IAAI,EAAE,QAAQ;AACf,qBAAA;AACF,iBAAA;;;AC5BD;;AAEG;;;;"}
|
|
@@ -12,10 +12,10 @@ class MgnpMenu {
|
|
|
12
12
|
throw error$1;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpMenu, isStandalone: true, selector: "[ngpMenu][mgnpMenu]", host: { attributes: { "data-mgnp-component": "mgnp-menu" } }, ngImport: i0 });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpMenu, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[ngpMenu][mgnpMenu]',
|
|
@@ -36,10 +36,10 @@ class MgnpMenuItem {
|
|
|
36
36
|
throw error;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
40
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpMenuItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpMenuItem, isStandalone: true, selector: "[ngpMenuItem][mgnpMenuItem]", host: { attributes: { "data-mgnp-component": "mgnp-menu-item" } }, ngImport: i0 });
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpMenuItem, decorators: [{
|
|
43
43
|
type: Directive,
|
|
44
44
|
args: [{
|
|
45
45
|
selector: '[ngpMenuItem][mgnpMenuItem]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-menu.mjs","sources":["../../../../libs/ng-primitives/menu/src/lib/mgnp-menu/mgnp-menu.directive.ts","../../../../libs/ng-primitives/menu/src/lib/mgnp-menu-item/mgnp-menu-item.directive.ts","../../../../libs/ng-primitives/menu/src/mgremy-ng-primitives-menu.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpMenu } from 'ng-primitives/menu';\n\nconst options = ['ngpMenu'];\n\nconst error = new Error(`MgnpMenu must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpMenu][mgnpMenu]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-menu',\n },\n})\nexport class MgnpMenu {\n protected readonly ngpMenu = inject(NgpMenu, { optional: true });\n\n constructor() {\n if (!this.ngpMenu) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpMenuItem } from 'ng-primitives/menu';\n\nconst options = ['ngpMenuItem'];\n\nconst error = new Error(
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-menu.mjs","sources":["../../../../libs/ng-primitives/menu/src/lib/mgnp-menu/mgnp-menu.directive.ts","../../../../libs/ng-primitives/menu/src/lib/mgnp-menu-item/mgnp-menu-item.directive.ts","../../../../libs/ng-primitives/menu/src/mgremy-ng-primitives-menu.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpMenu } from 'ng-primitives/menu';\n\nconst options = ['ngpMenu'];\n\nconst error = new Error(`MgnpMenu must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpMenu][mgnpMenu]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-menu',\n },\n})\nexport class MgnpMenu {\n protected readonly ngpMenu = inject(NgpMenu, { optional: true });\n\n constructor() {\n if (!this.ngpMenu) {\n console.error(this);\n throw error;\n }\n }\n}\n","import { Directive, inject } from '@angular/core';\nimport { NgpMenuItem } from 'ng-primitives/menu';\n\nconst options = ['ngpMenuItem'];\n\nconst error = new Error(`MgnpMenuItem must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpMenuItem][mgnpMenuItem]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-menu-item',\n },\n})\nexport class MgnpMenuItem {\n protected readonly ngpMenuItem = inject(NgpMenuItem, { optional: true });\n\n constructor() {\n if (!this.ngpMenuItem) {\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,SAAS,CAAC;AAE3B,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,2BAAA,EAA8BD,SAAO,CAAC,IAAI,CAAC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,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6BAA6B;AACvC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,gBAAgB;AACxC,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,76 +1,29 @@
|
|
|
1
|
-
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
2
|
-
import { heroChevronRight, heroChevronLeft, heroChevronDoubleRight, heroChevronDoubleLeft } from '@ng-icons/heroicons/outline';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { injectPaginationState, NgpPaginationButton, NgpPaginationFirst, NgpPaginationLast, NgpPaginationNext, NgpPaginationPrevious, NgpPagination } from 'ng-primitives/pagination';
|
|
7
|
-
import { provideValueAccessor } from 'ng-primitives/utils';
|
|
2
|
+
import { inject, Directive } from '@angular/core';
|
|
3
|
+
import { NgpPagination } from 'ng-primitives/pagination';
|
|
8
4
|
|
|
5
|
+
const options = ['ngpPagination'];
|
|
6
|
+
const error = new Error(`MgnpDirective must be used with ${options.join(' / ')}`);
|
|
9
7
|
class MgnpPagination {
|
|
10
|
-
|
|
11
|
-
state = injectPaginationState();
|
|
12
|
-
/** Get the pages as an array we can iterate over */
|
|
13
|
-
pages = computed(() => Array.from({ length: this.state().pageCount() }).map((_, i) => i + 1), ...(ngDevMode ? [{ debugName: "pages" }] : []));
|
|
14
|
-
/** The onChange callback */
|
|
15
|
-
onChange;
|
|
16
|
-
/** The onTouched callback */
|
|
17
|
-
onTouched;
|
|
8
|
+
ngpPagination = inject(NgpPagination, { optional: true });
|
|
18
9
|
constructor() {
|
|
19
|
-
this.
|
|
10
|
+
if (!this.ngpPagination) {
|
|
11
|
+
console.error(this);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
20
14
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.state().page.set(value);
|
|
24
|
-
}
|
|
25
|
-
/** Register a callback to be called when the value changes */
|
|
26
|
-
registerOnChange(fn) {
|
|
27
|
-
this.onChange = fn;
|
|
28
|
-
}
|
|
29
|
-
/** Register a callback to be called when the control is touched */
|
|
30
|
-
registerOnTouched(fn) {
|
|
31
|
-
this.onTouched = fn;
|
|
32
|
-
}
|
|
33
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: MgnpPagination, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.6", type: MgnpPagination, isStandalone: true, selector: "mgnp-pagination", host: { listeners: { "focusout": "onTouched?.()" } }, providers: [
|
|
35
|
-
provideValueAccessor(NgpPagination),
|
|
36
|
-
provideIcons({
|
|
37
|
-
heroChevronDoubleLeft,
|
|
38
|
-
heroChevronDoubleRight,
|
|
39
|
-
heroChevronLeft,
|
|
40
|
-
heroChevronRight,
|
|
41
|
-
}),
|
|
42
|
-
], hostDirectives: [{ directive: i1.NgpPagination, inputs: ["ngpPaginationPage", "page", "ngpPaginationPageCount", "pageCount", "ngpPaginationDisabled", "disabled"], outputs: ["ngpPaginationPageChange", "pageChange"] }], ngImport: i0, template: "<ul>\n <li>\n <button\n ngpPaginationFirst\n aria-label=\"First Page\">\n <ng-icon name=\"heroChevronDoubleLeft\" />\n </button>\n </li>\n <li>\n <button\n ngpPaginationPrevious\n aria-label=\"Previous Page\">\n <ng-icon name=\"heroChevronLeft\" />\n </button>\n </li>\n @for (page of pages(); track page) {\n <li>\n <button\n [ngpPaginationButtonPage]=\"page\"\n [attr.aria-label]=\"`Page ${page}`\"\n ngpPaginationButton>\n {{ page }}\n </button>\n </li>\n }\n <li>\n <button\n ngpPaginationNext\n aria-label=\"Next Page\">\n <ng-icon name=\"heroChevronRight\" />\n </button>\n </li>\n <li>\n <button\n ngpPaginationLast\n aria-label=\"Last Page\">\n <ng-icon name=\"heroChevronDoubleRight\" />\n </button>\n </li>\n</ul>\n", styles: ["@reference \"#ui.css\";ul{@apply flex items-center gap-2;}[ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast]{all:unset;@apply flex size-8 cursor-pointer items-center justify-center;@apply rounded-lg outline-none;@apply bg-ui text-primary text-sm font-medium shadow-(--button-shadow);transition:background-color .2s ease-in-out}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-hover]:not([data-disabled]):not([data-selected]){@apply bg-hover;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-focus-visible]:not([data-disabled]){@apply outline-2 outline-(--focus-ring-ui);}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-press]:not([data-disabled]):not([data-selected]){@apply bg-active;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-disabled]{@apply bg-disabled cursor-not-allowed text-[#d2d2d2] shadow-none;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-selected]{@apply bg-inverse text-inverse;}\n"], dependencies: [{ kind: "directive", type: NgpPaginationButton, selector: "[ngpPaginationButton]", inputs: ["ngpPaginationButtonPage", "ngpPaginationButtonDisabled"], exportAs: ["ngpPaginationButton"] }, { kind: "directive", type: NgpPaginationFirst, selector: "[ngpPaginationFirst]", inputs: ["ngpPaginationFirstDisabled"], exportAs: ["ngpPaginationFirst"] }, { kind: "directive", type: NgpPaginationLast, selector: "[ngpPaginationLast]", inputs: ["ngpPaginationLastDisabled"], exportAs: ["ngpPaginationLast"] }, { kind: "directive", type: NgpPaginationNext, selector: "[ngpPaginationNext]", inputs: ["ngpPaginationNextDisabled"], exportAs: ["ngpPaginationNext"] }, { kind: "directive", type: NgpPaginationPrevious, selector: "[ngpPaginationPrevious]", inputs: ["ngpPaginationPreviousDisabled"], exportAs: ["ngpPaginationPrevious"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpPagination, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpPagination, isStandalone: true, selector: "[ngpPagination][mgnpPagination]", host: { attributes: { "data-mgnp-component": "mgnp-pagination" } }, ngImport: i0 });
|
|
43
17
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
45
|
-
type:
|
|
46
|
-
args: [{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
], standalone: true, providers: [
|
|
54
|
-
provideValueAccessor(NgpPagination),
|
|
55
|
-
provideIcons({
|
|
56
|
-
heroChevronDoubleLeft,
|
|
57
|
-
heroChevronDoubleRight,
|
|
58
|
-
heroChevronLeft,
|
|
59
|
-
heroChevronRight,
|
|
60
|
-
}),
|
|
61
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
62
|
-
'(focusout)': 'onTouched?.()',
|
|
63
|
-
}, hostDirectives: [
|
|
64
|
-
{
|
|
65
|
-
directive: NgpPagination,
|
|
66
|
-
inputs: [
|
|
67
|
-
'ngpPaginationPage:page',
|
|
68
|
-
'ngpPaginationPageCount:pageCount',
|
|
69
|
-
'ngpPaginationDisabled:disabled',
|
|
70
|
-
],
|
|
71
|
-
outputs: ['ngpPaginationPageChange:pageChange'],
|
|
72
|
-
},
|
|
73
|
-
], template: "<ul>\n <li>\n <button\n ngpPaginationFirst\n aria-label=\"First Page\">\n <ng-icon name=\"heroChevronDoubleLeft\" />\n </button>\n </li>\n <li>\n <button\n ngpPaginationPrevious\n aria-label=\"Previous Page\">\n <ng-icon name=\"heroChevronLeft\" />\n </button>\n </li>\n @for (page of pages(); track page) {\n <li>\n <button\n [ngpPaginationButtonPage]=\"page\"\n [attr.aria-label]=\"`Page ${page}`\"\n ngpPaginationButton>\n {{ page }}\n </button>\n </li>\n }\n <li>\n <button\n ngpPaginationNext\n aria-label=\"Next Page\">\n <ng-icon name=\"heroChevronRight\" />\n </button>\n </li>\n <li>\n <button\n ngpPaginationLast\n aria-label=\"Last Page\">\n <ng-icon name=\"heroChevronDoubleRight\" />\n </button>\n </li>\n</ul>\n", styles: ["@reference \"#ui.css\";ul{@apply flex items-center gap-2;}[ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast]{all:unset;@apply flex size-8 cursor-pointer items-center justify-center;@apply rounded-lg outline-none;@apply bg-ui text-primary text-sm font-medium shadow-(--button-shadow);transition:background-color .2s ease-in-out}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-hover]:not([data-disabled]):not([data-selected]){@apply bg-hover;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-focus-visible]:not([data-disabled]){@apply outline-2 outline-(--focus-ring-ui);}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-press]:not([data-disabled]):not([data-selected]){@apply bg-active;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-disabled]{@apply bg-disabled cursor-not-allowed text-[#d2d2d2] shadow-none;}:is([ngpPaginationFirst],[ngpPaginationPrevious],[ngpPaginationButton],[ngpPaginationNext],[ngpPaginationLast])[data-selected]{@apply bg-inverse text-inverse;}\n"] }]
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpPagination, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{
|
|
21
|
+
selector: '[ngpPagination][mgnpPagination]',
|
|
22
|
+
standalone: true,
|
|
23
|
+
host: {
|
|
24
|
+
'data-mgnp-component': 'mgnp-pagination',
|
|
25
|
+
},
|
|
26
|
+
}]
|
|
74
27
|
}], ctorParameters: () => [] });
|
|
75
28
|
|
|
76
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-pagination.mjs","sources":["../../../../libs/ng-primitives/pagination/src/lib/mgnp-pagination/mgnp-pagination.
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-pagination.mjs","sources":["../../../../libs/ng-primitives/pagination/src/lib/mgnp-pagination/mgnp-pagination.directive.ts","../../../../libs/ng-primitives/pagination/src/mgremy-ng-primitives-pagination.ts"],"sourcesContent":["import { Directive, inject } from '@angular/core';\nimport { NgpPagination } from 'ng-primitives/pagination';\n\nconst options = ['ngpPagination'];\n\nconst error = new Error(`MgnpDirective must be used with ${options.join(' / ')}`);\n\n@Directive({\n selector: '[ngpPagination][mgnpPagination]',\n standalone: true,\n host: {\n 'data-mgnp-component': 'mgnp-pagination',\n },\n})\nexport class MgnpPagination {\n protected readonly ngpPagination = inject(NgpPagination, { optional: true });\n\n constructor() {\n if (!this.ngpPagination) {\n console.error(this);\n throw error;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAAM,OAAO,GAAG,CAAC,eAAe,CAAC;AAEjC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAA,gCAAA,EAAmC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASpE,cAAc,CAAA;IACN,aAAa,GAAG,MAAM,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE5E,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACvB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGARW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;AAC3C,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,iBAAiB;AACzC,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|