@mgremy/ng-primitives 0.0.1 → 0.3.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/button/README.md +2 -1
- package/combobox/README.md +2 -1
- package/fesm2022/mgremy-ng-primitives-button.mjs +3 -3
- 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 +22 -69
- 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 +8 -12
- package/pagination/README.md +2 -1
- package/table/README.md +2 -1
- package/theme/components/button.css +4 -6
- package/theme/components/combobox.css +20 -33
- package/theme/components/input.css +5 -4
- package/theme/components/loader.css +9 -0
- package/theme/components/menu.css +10 -9
- 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 +39 -37
- package/tooltip/README.md +2 -1
- package/types/mgremy-ng-primitives-pagination.d.ts +6 -23
- 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`.
|
|
@@ -20,10 +20,10 @@ class MgnpButton {
|
|
|
20
20
|
throw error;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
24
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpButton, isStandalone: true, selector: "[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton]", host: { attributes: { "data-mgnp-component": "mgnp-button" } }, ngImport: i0 });
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpButton, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: '[ngpButton][mgnpButton], [ngpComboboxButton][mgnpButton], [ngpMenuTrigger][mgnpButton]',
|
|
@@ -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}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["options","error"],"mappings":";;;;AAGA,MAAMA,SAAO,GAAG,CAAC,aAAa,CAAC;AAE/B,MAAMC,OAAK,GAAG,IAAI,KAAK,CAAC,CAAA,+BAAA,EAAkCD,SAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASnE,YAAY,CAAA;IACJ,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;AACrB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,YAAY,EAAA,IAAA,EAAA,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,eAAA,EAAA,EAAA,EAAA,QAA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CAAC;AAEF,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;AAC3B,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGAVW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yCAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AAAC,YAAA,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,KAAK,CAAC,CAAA,CAAE,CAAC;MAS/D,QAAQ,CAAA;IACA,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEhE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAMC,OAAK;QACb;IACF;uGARW,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAR,QAAQ,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAPpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,WAAW;AACnC,qBAAA;AACF,iBAAA;;;ACVD,MAAM,OAAO,GAAG,CAAC,aAAa,CAAC;AAE/B,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,CAAA,+BAAA,EAAkC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAE,CAAC;MASnE,YAAY,CAAA;IACJ,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExE,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;AACrB,YAAA,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;AACnB,YAAA,MAAM,KAAK;QACb;IACF;uGARW,YAAY,EAAA,IAAA,EAAA,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,81 +1,34 @@
|
|
|
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
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
5
|
+
const options = ['ngpPagination'];
|
|
6
|
+
const error = new Error(`MgnpDirective must be used with ${options.join(' / ')}`);
|
|
7
|
+
class Pagination {
|
|
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: Pagination, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: Pagination, 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: Pagination, 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
|
/**
|
|
77
30
|
* Generated bundle index. Do not edit.
|
|
78
31
|
*/
|
|
79
32
|
|
|
80
|
-
export {
|
|
33
|
+
export { Pagination };
|
|
81
34
|
//# sourceMappingURL=mgremy-ng-primitives-pagination.mjs.map
|
|
@@ -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 Pagination {\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,UAAU,CAAA;IACF,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,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAV,UAAU,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;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAPtB,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;;;;"}
|
|
@@ -7,39 +7,39 @@ class MgnpTable {
|
|
|
7
7
|
tableBody = input(...(ngDevMode ? [undefined, { debugName: "tableBody" }] : []));
|
|
8
8
|
tableFooter = input(...(ngDevMode ? [undefined, { debugName: "tableFooter" }] : []));
|
|
9
9
|
data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
11
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: MgnpTable, isStandalone: true, selector: "mgnp-table, table[mgnpTable]", inputs: { tableHeader: { classPropertyName: "tableHeader", publicName: "tableHeader", isSignal: true, isRequired: false, transformFunction: null }, tableBody: { classPropertyName: "tableBody", publicName: "tableBody", isSignal: true, isRequired: false, transformFunction: null }, tableFooter: { classPropertyName: "tableFooter", publicName: "tableFooter", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, providers: [], ngImport: i0, template: "<thead>\n <ng-container [ngTemplateOutlet]=\"tableHeader()\" />\n</thead>\n<tbody>\n @for (item of data(); track $index) {\n <ng-container\n [ngTemplateOutlet]=\"tableBody()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n</tbody>\n<tfoot>\n <ng-container [ngTemplateOutlet]=\"tableFooter()\" />\n</tfoot>\n", styles: ["@reference \"#mgnp.css\";:host{@apply w-full table-auto text-left text-sm;}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTable, decorators: [{
|
|
14
14
|
type: Component,
|
|
15
|
-
args: [{ selector: 'mgnp-table, table[mgnpTable]', imports: [NgTemplateOutlet], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<thead>\n <ng-container [ngTemplateOutlet]=\"tableHeader()\" />\n</thead>\n<tbody>\n @for (item of data(); track $index) {\n <ng-container\n [ngTemplateOutlet]=\"tableBody()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n</tbody>\n<tfoot>\n <ng-container [ngTemplateOutlet]=\"tableFooter()\" />\n</tfoot>\n", styles: ["@reference \"#
|
|
15
|
+
args: [{ selector: 'mgnp-table, table[mgnpTable]', imports: [NgTemplateOutlet], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<thead>\n <ng-container [ngTemplateOutlet]=\"tableHeader()\" />\n</thead>\n<tbody>\n @for (item of data(); track $index) {\n <ng-container\n [ngTemplateOutlet]=\"tableBody()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n</tbody>\n<tfoot>\n <ng-container [ngTemplateOutlet]=\"tableFooter()\" />\n</tfoot>\n", styles: ["@reference \"#mgnp.css\";:host{@apply w-full table-auto text-left text-sm;}\n"] }]
|
|
16
16
|
}], propDecorators: { tableHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableHeader", required: false }] }], tableBody: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableBody", required: false }] }], tableFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableFooter", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
17
17
|
|
|
18
18
|
class MgnpTableBody {
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTableBody, isStandalone: true, selector: "mgnp-table-body, tr[mgnpTableBody]", providers: [], ngImport: i0, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply border-b border-b-(--border-secondary);}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableBody, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ selector: 'mgnp-table-body, tr[mgnpTableBody]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#
|
|
24
|
+
args: [{ selector: 'mgnp-table-body, tr[mgnpTableBody]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply border-b border-b-(--border-secondary);}\n"] }]
|
|
25
25
|
}] });
|
|
26
26
|
|
|
27
27
|
class MgnpTableFooter {
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTableFooter, isStandalone: true, selector: "mgnp-table-footer, tr[mgnpTableFooter]", providers: [], ngImport: i0, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply font-semibold;}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableFooter, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
|
-
args: [{ selector: 'mgnp-table-footer, tr[mgnpTableFooter]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#
|
|
33
|
+
args: [{ selector: 'mgnp-table-footer, tr[mgnpTableFooter]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply font-semibold;}\n"] }]
|
|
34
34
|
}] });
|
|
35
35
|
|
|
36
36
|
class MgnpTableHeader {
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTableHeader, isStandalone: true, selector: "mgnp-table-header, tr[mgnpTableHeader]", providers: [], ngImport: i0, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply bg-hover text-xs uppercase;}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTableHeader, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
|
-
args: [{ selector: 'mgnp-table-header, tr[mgnpTableHeader]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#
|
|
42
|
+
args: [{ selector: 'mgnp-table-header, tr[mgnpTableHeader]', imports: [], standalone: true, providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n", styles: ["@reference \"#mgnp.css\";:host{@apply bg-hover text-xs uppercase;}\n"] }]
|
|
43
43
|
}] });
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mgremy-ng-primitives-table.mjs","sources":["../../../../libs/ng-primitives/table/src/lib/mgnp-table/mgnp-table.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table/mgnp-table.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-body/mgnp-table-body.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-body/mgnp-table-body.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-footer/mgnp-table-footer.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-footer/mgnp-table-footer.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-header/mgnp-table-header.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-header/mgnp-table-header.component.html","../../../../libs/ng-primitives/table/src/mgremy-ng-primitives-table.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {
|
|
1
|
+
{"version":3,"file":"mgremy-ng-primitives-table.mjs","sources":["../../../../libs/ng-primitives/table/src/lib/mgnp-table/mgnp-table.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table/mgnp-table.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-body/mgnp-table-body.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-body/mgnp-table-body.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-footer/mgnp-table-footer.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-footer/mgnp-table-footer.component.html","../../../../libs/ng-primitives/table/src/lib/mgnp-table-header/mgnp-table-header.component.ts","../../../../libs/ng-primitives/table/src/lib/mgnp-table-header/mgnp-table-header.component.html","../../../../libs/ng-primitives/table/src/mgremy-ng-primitives-table.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, TemplateRef } from '@angular/core';\n\n@Component({\n selector: 'mgnp-table, table[mgnpTable]',\n imports: [NgTemplateOutlet],\n standalone: true,\n templateUrl: './mgnp-table.component.html',\n styleUrl: './mgnp-table.component.css',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MgnpTable {\n readonly tableHeader = input<TemplateRef<unknown>>();\n readonly tableBody = input<TemplateRef<unknown>>();\n readonly tableFooter = input<TemplateRef<unknown>>();\n\n readonly data = input<unknown[]>();\n}\n","<thead>\n <ng-container [ngTemplateOutlet]=\"tableHeader()\" />\n</thead>\n<tbody>\n @for (item of data(); track $index) {\n <ng-container\n [ngTemplateOutlet]=\"tableBody()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n</tbody>\n<tfoot>\n <ng-container [ngTemplateOutlet]=\"tableFooter()\" />\n</tfoot>\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'mgnp-table-body, tr[mgnpTableBody]',\n imports: [],\n standalone: true,\n templateUrl: './mgnp-table-body.component.html',\n styleUrl: './mgnp-table-body.component.css',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MgnpTableBody {}\n","<ng-content />\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'mgnp-table-footer, tr[mgnpTableFooter]',\n imports: [],\n standalone: true,\n templateUrl: './mgnp-table-footer.component.html',\n styleUrl: './mgnp-table-footer.component.css',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MgnpTableFooter {}\n","<ng-content />\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'mgnp-table-header, tr[mgnpTableHeader]',\n imports: [],\n standalone: true,\n templateUrl: './mgnp-table-header.component.html',\n styleUrl: './mgnp-table-header.component.css',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MgnpTableHeader {}\n","<ng-content />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,SAAS,CAAA;IACX,WAAW,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,aAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAwB;IAC3C,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,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", version: "21.1
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MgnpTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltip, isStandalone: true, selector: "[ngpTooltip][mgnpTooltip]", host: { attributes: { "data-mgnp-component": "mgnp-tooltip" } }, ngImport: i0 });
|
|
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: MgnpTooltip, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[ngpTooltip][mgnpTooltip]',
|
|
@@ -38,10 +38,10 @@ class MgnpTooltipArrow {
|
|
|
38
38
|
throw error;
|
|
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: MgnpTooltipArrow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.1", type: MgnpTooltipArrow, isStandalone: true, selector: "[ngpTooltipArrow][mgnpTooltipArrow]", host: { attributes: { "data-mgnp-component": "mgnp-tooltip-arrow" } }, ngImport: i0 });
|
|
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: MgnpTooltipArrow, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{
|
|
47
47
|
selector: '[ngpTooltipArrow][mgnpTooltipArrow]',
|