mapa-library-ui 0.14.9 → 0.14.10

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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwYS1saWJyYXJ5LXVpLXNyYy1saWItY29tcG9uZW50cy1tZW51LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9tZW51L21hcGEtbGlicmFyeS11aS1zcmMtbGliLWNvbXBvbmVudHMtbWVudS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of mapa-library-ui input
3
+ */
4
+ export * from '../menu/src/menu.component';
5
+ export * from '../menu/src/menu.module';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21hcGEtbGlicmFyeS11aS9zcmMvbGliL2NvbXBvbmVudHMvbWVudS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBtYXBhLWxpYnJhcnktdWkgaW5wdXRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuLi9tZW51L3NyYy9tZW51LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuLi9tZW51L3NyYy9tZW51Lm1vZHVsZSc7Il19
@@ -0,0 +1,27 @@
1
+ import { Component, Input, ViewChild } from '@angular/core';
2
+ import { MatMenuTrigger } from '@angular/material/menu';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common";
5
+ import * as i2 from "@angular/material/menu";
6
+ import * as i3 from "mapa-library-ui/src/lib/components/button";
7
+ import * as i4 from "@angular/material/icon";
8
+ export class MapaMenuComponent {
9
+ constructor() {
10
+ this.items = [];
11
+ }
12
+ toggleMenu() {
13
+ this.trigger.openMenu();
14
+ }
15
+ }
16
+ MapaMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ MapaMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaMenuComponent, selector: "mapa-menu", inputs: { items: "items" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n ", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.ButtonComponent, selector: "mapa-button", inputs: ["color", "disabled"], outputs: ["clicked"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'mapa-menu', template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n " }]
21
+ }], propDecorators: { items: [{
22
+ type: Input
23
+ }], trigger: [{
24
+ type: ViewChild,
25
+ args: [MatMenuTrigger]
26
+ }] } });
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXBhLWxpYnJhcnktdWkvc3JjL2xpYi9jb21wb25lbnRzL21lbnUvc3JjL21lbnUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFwYS1saWJyYXJ5LXVpL3NyYy9saWIvY29tcG9uZW50cy9tZW51L3NyYy9tZW51LmNvbXBvbmVudC5odG1sI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dCgpIGl0ZW1zOiBNZW51SXRlbVtdID0gW107XG4gIEBWaWV3Q2hpbGQoTWF0TWVudVRyaWdnZXIpIHRyaWdnZXIhOiBNYXRNZW51VHJpZ2dlcjtcblxuICB0b2dnbGVNZW51KCkge1xuICAgIHRoaXMudHJpZ2dlci5vcGVuTWVudSgpO1xuICB9XG5cbn1cbiIsIjxtYXQtbWVudSAjbWVudT1cIm1hdE1lbnVcIj5cbiAgICA8YnV0dG9uICpuZ0Zvcj1cImxldCBpdGVtIG9mIGl0ZW1zXCIgbWF0LW1lbnUtaXRlbSAoY2xpY2spPVwiaXRlbS5hY3Rpb24oKVwiPlxuICAgICAgPG1hdC1pY29uPnt7aXRlbS5pY29ufX08L21hdC1pY29uPlxuICAgICAgPHNwYW4+e3tpdGVtLnRleHR9fTwvc3Bhbj5cbiAgICA8L2J1dHRvbj5cbjwvbWF0LW1lbnU+XG4gIFxuPG1hcGEtYnV0dG9uIG1hdC1idXR0b24gKGNsaWNrKT1cInRvZ2dsZU1lbnUoKVwiIFttYXRNZW51VHJpZ2dlckZvcl09XCJtZW51XCI+XG4gICAgTWVudVxuPC9tYXBhLWJ1dHRvbj5cbiAgIl19
@@ -0,0 +1,36 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MapaMenuComponent } from './menu.component';
4
+ import { MatMenuModule } from '@angular/material/menu';
5
+ import { MatIconModule } from '@angular/material/icon';
6
+ import { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';
7
+ import * as i0 from "@angular/core";
8
+ export class MapaMenuModule {
9
+ }
10
+ MapaMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ MapaMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, declarations: [MapaMenuComponent], imports: [CommonModule,
12
+ MatMenuModule,
13
+ MapaButtonModule,
14
+ MatIconModule], exports: [MapaMenuComponent] });
15
+ MapaMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, imports: [CommonModule,
16
+ MatMenuModule,
17
+ MapaButtonModule,
18
+ MatIconModule] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, decorators: [{
20
+ type: NgModule,
21
+ args: [{
22
+ declarations: [
23
+ MapaMenuComponent
24
+ ],
25
+ imports: [
26
+ CommonModule,
27
+ MatMenuModule,
28
+ MapaButtonModule,
29
+ MatIconModule
30
+ ],
31
+ exports: [
32
+ MapaMenuComponent,
33
+ ]
34
+ }]
35
+ }] });
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYXBhLWxpYnJhcnktdWkvc3JjL2xpYi9jb21wb25lbnRzL21lbnUvc3JjL21lbnUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7O0FBa0I3RSxNQ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E1lbnVNb2R1bGUsIFxuICAgIE1hcGFCdXR0b25Nb2R1bGUsXG4gICAgTWF0SWNvbk1vZHVsZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgTWFwYU1lbnVDb21wb25lbnQsXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTWFwYU1lbnVNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,70 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, ViewChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/material/menu';
4
+ import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
5
+ import * as i1 from '@angular/common';
6
+ import { CommonModule } from '@angular/common';
7
+ import * as i3 from 'mapa-library-ui/src/lib/components/button';
8
+ import { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';
9
+ import * as i4 from '@angular/material/icon';
10
+ import { MatIconModule } from '@angular/material/icon';
11
+
12
+ class MapaMenuComponent {
13
+ constructor() {
14
+ this.items = [];
15
+ }
16
+ toggleMenu() {
17
+ this.trigger.openMenu();
18
+ }
19
+ }
20
+ MapaMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ MapaMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaMenuComponent, selector: "mapa-menu", inputs: { items: "items" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n ", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.ButtonComponent, selector: "mapa-button", inputs: ["color", "disabled"], outputs: ["clicked"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, decorators: [{
23
+ type: Component,
24
+ args: [{ selector: 'mapa-menu', template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n " }]
25
+ }], propDecorators: { items: [{
26
+ type: Input
27
+ }], trigger: [{
28
+ type: ViewChild,
29
+ args: [MatMenuTrigger]
30
+ }] } });
31
+
32
+ class MapaMenuModule {
33
+ }
34
+ MapaMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ MapaMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, declarations: [MapaMenuComponent], imports: [CommonModule,
36
+ MatMenuModule,
37
+ MapaButtonModule,
38
+ MatIconModule], exports: [MapaMenuComponent] });
39
+ MapaMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, imports: [CommonModule,
40
+ MatMenuModule,
41
+ MapaButtonModule,
42
+ MatIconModule] });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, decorators: [{
44
+ type: NgModule,
45
+ args: [{
46
+ declarations: [
47
+ MapaMenuComponent
48
+ ],
49
+ imports: [
50
+ CommonModule,
51
+ MatMenuModule,
52
+ MapaButtonModule,
53
+ MatIconModule
54
+ ],
55
+ exports: [
56
+ MapaMenuComponent,
57
+ ]
58
+ }]
59
+ }] });
60
+
61
+ /*
62
+ * Public API Surface of mapa-library-ui input
63
+ */
64
+
65
+ /**
66
+ * Generated bundle index. Do not edit.
67
+ */
68
+
69
+ export { MapaMenuComponent, MapaMenuModule };
70
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-menu.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.component.ts","../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.component.html","../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.module.ts","../../../projects/mapa-library-ui/src/lib/components/menu/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/menu/mapa-library-ui-src-lib-components-menu.ts"],"sourcesContent":["import { Component, Input, ViewChild } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\n\nexport interface MenuItem {\n icon: string;\n text: string;\n action: () => void;\n}\n\n@Component({\n selector: 'mapa-menu',\n templateUrl: './menu.component.html',\n styleUrls: ['./menu.component.scss']\n})\nexport class MapaMenuComponent {\n @Input() items: MenuItem[] = [];\n @ViewChild(MatMenuTrigger) trigger!: MatMenuTrigger;\n\n toggleMenu() {\n this.trigger.openMenu();\n }\n\n}\n","<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MapaMenuComponent } from './menu.component';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';\n\n\n\n@NgModule({\n declarations: [\n MapaMenuComponent\n ],\n imports: [\n CommonModule,\n MatMenuModule, \n MapaButtonModule,\n MatIconModule\n ],\n exports: [\n MapaMenuComponent,\n ]\n})\nexport class MapaMenuModule { }\n","/*\n * Public API Surface of mapa-library-ui input\n */\n\nexport * from '../menu/src/menu.component';\nexport * from '../menu/src/menu.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAca,iBAAiB,CAAA;AAL9B,IAAA,WAAA,GAAA;AAMW,QAAA,IAAK,CAAA,KAAA,GAAe,EAAE,CAAC;KAOjC;IAJC,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;KACzB;;+GANU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAjB,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAEjB,cAAc,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChB3B,2UAUE,EAAA,MAAA,EAAA,CAAA,EAA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A;sBAAjC,SAAS;uBAAC,cAAc,CAAA;;;MEOd,cAAc,CAAA;;4GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,CAZvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAGjB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa,aAGb,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAGR,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YATvB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa,CAAA,EAAA,CAAA,CAAA;4FAMJ,cAAc,EAAA,UAAA,EAAA,CAAA;kBAd1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;iBACF,CAAA;;;ACtBD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,70 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, ViewChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/material/menu';
4
+ import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
5
+ import * as i1 from '@angular/common';
6
+ import { CommonModule } from '@angular/common';
7
+ import * as i3 from 'mapa-library-ui/src/lib/components/button';
8
+ import { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';
9
+ import * as i4 from '@angular/material/icon';
10
+ import { MatIconModule } from '@angular/material/icon';
11
+
12
+ class MapaMenuComponent {
13
+ constructor() {
14
+ this.items = [];
15
+ }
16
+ toggleMenu() {
17
+ this.trigger.openMenu();
18
+ }
19
+ }
20
+ MapaMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ MapaMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaMenuComponent, selector: "mapa-menu", inputs: { items: "items" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n ", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.ButtonComponent, selector: "mapa-button", inputs: ["color", "disabled"], outputs: ["clicked"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, decorators: [{
23
+ type: Component,
24
+ args: [{ selector: 'mapa-menu', template: "<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n " }]
25
+ }], propDecorators: { items: [{
26
+ type: Input
27
+ }], trigger: [{
28
+ type: ViewChild,
29
+ args: [MatMenuTrigger]
30
+ }] } });
31
+
32
+ class MapaMenuModule {
33
+ }
34
+ MapaMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ MapaMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, declarations: [MapaMenuComponent], imports: [CommonModule,
36
+ MatMenuModule,
37
+ MapaButtonModule,
38
+ MatIconModule], exports: [MapaMenuComponent] });
39
+ MapaMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, imports: [CommonModule,
40
+ MatMenuModule,
41
+ MapaButtonModule,
42
+ MatIconModule] });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, decorators: [{
44
+ type: NgModule,
45
+ args: [{
46
+ declarations: [
47
+ MapaMenuComponent
48
+ ],
49
+ imports: [
50
+ CommonModule,
51
+ MatMenuModule,
52
+ MapaButtonModule,
53
+ MatIconModule
54
+ ],
55
+ exports: [
56
+ MapaMenuComponent,
57
+ ]
58
+ }]
59
+ }] });
60
+
61
+ /*
62
+ * Public API Surface of mapa-library-ui input
63
+ */
64
+
65
+ /**
66
+ * Generated bundle index. Do not edit.
67
+ */
68
+
69
+ export { MapaMenuComponent, MapaMenuModule };
70
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapa-library-ui-src-lib-components-menu.mjs","sources":["../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.component.ts","../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.component.html","../../../projects/mapa-library-ui/src/lib/components/menu/src/menu.module.ts","../../../projects/mapa-library-ui/src/lib/components/menu/public-api.ts","../../../projects/mapa-library-ui/src/lib/components/menu/mapa-library-ui-src-lib-components-menu.ts"],"sourcesContent":["import { Component, Input, ViewChild } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material/menu';\n\nexport interface MenuItem {\n icon: string;\n text: string;\n action: () => void;\n}\n\n@Component({\n selector: 'mapa-menu',\n templateUrl: './menu.component.html',\n styleUrls: ['./menu.component.scss']\n})\nexport class MapaMenuComponent {\n @Input() items: MenuItem[] = [];\n @ViewChild(MatMenuTrigger) trigger!: MatMenuTrigger;\n\n toggleMenu() {\n this.trigger.openMenu();\n }\n\n}\n","<mat-menu #menu=\"matMenu\">\n <button *ngFor=\"let item of items\" mat-menu-item (click)=\"item.action()\">\n <mat-icon>{{item.icon}}</mat-icon>\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n \n<mapa-button mat-button (click)=\"toggleMenu()\" [matMenuTriggerFor]=\"menu\">\n Menu\n</mapa-button>\n ","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MapaMenuComponent } from './menu.component';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';\n\n\n\n@NgModule({\n declarations: [\n MapaMenuComponent\n ],\n imports: [\n CommonModule,\n MatMenuModule, \n MapaButtonModule,\n MatIconModule\n ],\n exports: [\n MapaMenuComponent,\n ]\n})\nexport class MapaMenuModule { }\n","/*\n * Public API Surface of mapa-library-ui input\n */\n\nexport * from '../menu/src/menu.component';\nexport * from '../menu/src/menu.module';","/**\n *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A,CAAA;kBAd1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,aAAa;AACd,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;ACFH;;AAEG;;;;"}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "0.14.9",
3
+ "version": "0.14.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0"
@@ -115,6 +115,14 @@
115
115
  "node": "./fesm2015/mapa-library-ui-src-lib-components-input.mjs",
116
116
  "default": "./fesm2020/mapa-library-ui-src-lib-components-input.mjs"
117
117
  },
118
+ "./src/lib/components/menu": {
119
+ "types": "./src/lib/components/menu/index.d.ts",
120
+ "esm2020": "./esm2020/src/lib/components/menu/mapa-library-ui-src-lib-components-menu.mjs",
121
+ "es2020": "./fesm2020/mapa-library-ui-src-lib-components-menu.mjs",
122
+ "es2015": "./fesm2015/mapa-library-ui-src-lib-components-menu.mjs",
123
+ "node": "./fesm2015/mapa-library-ui-src-lib-components-menu.mjs",
124
+ "default": "./fesm2020/mapa-library-ui-src-lib-components-menu.mjs"
125
+ },
118
126
  "./src/lib/components/nav-list": {
119
127
  "types": "./src/lib/components/nav-list/index.d.ts",
120
128
  "esm2020": "./esm2020/src/lib/components/nav-list/mapa-library-ui-src-lib-components-nav-list.mjs",
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="mapa-library-ui/src/lib/components/menu" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from '../menu/src/menu.component';
2
+ export * from '../menu/src/menu.module';
@@ -0,0 +1,14 @@
1
+ import { MatMenuTrigger } from '@angular/material/menu';
2
+ import * as i0 from "@angular/core";
3
+ export interface MenuItem {
4
+ icon: string;
5
+ text: string;
6
+ action: () => void;
7
+ }
8
+ export declare class MapaMenuComponent {
9
+ items: MenuItem[];
10
+ trigger: MatMenuTrigger;
11
+ toggleMenu(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaMenuComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaMenuComponent, "mapa-menu", never, { "items": "items"; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./menu.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/menu";
5
+ import * as i4 from "mapa-library-ui/src/lib/components/button";
6
+ import * as i5 from "@angular/material/icon";
7
+ export declare class MapaMenuModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapaMenuModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapaMenuModule, [typeof i1.MapaMenuComponent], [typeof i2.CommonModule, typeof i3.MatMenuModule, typeof i4.MapaButtonModule, typeof i5.MatIconModule], [typeof i1.MapaMenuComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<MapaMenuModule>;
11
+ }
Binary file