sparc-shared-ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from 'primeng/tabs';
|
|
2
|
+
import { TemplateRef, ContentChild, Input, Component, EventEmitter, Output, ContentChildren } from '@angular/core';
|
|
3
|
+
import * as i1$1 from 'primeng/tabs';
|
|
4
4
|
import { TabsModule } from 'primeng/tabs';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
|
|
8
|
-
class AppTabTemplateDirective {
|
|
9
|
-
template;
|
|
10
|
-
type;
|
|
11
|
-
constructor(template) {
|
|
12
|
-
this.template = template;
|
|
13
|
-
}
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: AppTabTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: AppTabTemplateDirective, isStandalone: true, selector: "[appTabTemplate]", inputs: { type: ["appTabTemplate", "type"] }, ngImport: i0 });
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: AppTabTemplateDirective, decorators: [{
|
|
18
|
-
type: Directive,
|
|
19
|
-
args: [{
|
|
20
|
-
selector: '[appTabTemplate]',
|
|
21
|
-
standalone: true
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { type: [{
|
|
24
|
-
type: Input,
|
|
25
|
-
args: ['appTabTemplate']
|
|
26
|
-
}] } });
|
|
27
|
-
|
|
28
8
|
class TabPanelComponent {
|
|
29
9
|
id;
|
|
30
10
|
header = '';
|
|
11
|
+
closable = false;
|
|
31
12
|
data;
|
|
13
|
+
headerType = 'text';
|
|
32
14
|
headerTemplate;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.
|
|
37
|
-
if (t.type === 'header') {
|
|
38
|
-
this.headerTemplate = t.template;
|
|
39
|
-
}
|
|
40
|
-
if (t.type === 'content') {
|
|
41
|
-
this.contentTemplate = t.template;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
15
|
+
content;
|
|
16
|
+
renderKey = 0;
|
|
17
|
+
ngOnChanges() {
|
|
18
|
+
this.renderKey++;
|
|
44
19
|
}
|
|
45
20
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: TabPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.5", type: TabPanelComponent, isStandalone: true, selector: "app-tab-panel", inputs: { id: "id", header: "header", data: "data" }, queries: [{ propertyName: "
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.5", type: TabPanelComponent, isStandalone: true, selector: "app-tab-panel", inputs: { id: "id", header: "header", closable: "closable", data: "data", headerType: "headerType", headerTemplate: "headerTemplate" }, queries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
22
|
+
<ng-container *ngIf="renderKey">
|
|
23
|
+
<ng-container
|
|
24
|
+
*ngTemplateOutlet="content; context: { data: data }">
|
|
25
|
+
</ng-container>
|
|
26
|
+
</ng-container>
|
|
27
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
47
28
|
}
|
|
48
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: TabPanelComponent, decorators: [{
|
|
49
30
|
type: Component,
|
|
@@ -51,18 +32,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
|
|
|
51
32
|
selector: 'app-tab-panel',
|
|
52
33
|
standalone: true,
|
|
53
34
|
imports: [CommonModule],
|
|
54
|
-
template:
|
|
35
|
+
template: `
|
|
36
|
+
<ng-container *ngIf="renderKey">
|
|
37
|
+
<ng-container
|
|
38
|
+
*ngTemplateOutlet="content; context: { data: data }">
|
|
39
|
+
</ng-container>
|
|
40
|
+
</ng-container>
|
|
41
|
+
`
|
|
55
42
|
}]
|
|
56
43
|
}], propDecorators: { id: [{
|
|
57
44
|
type: Input,
|
|
58
45
|
args: [{ required: true }]
|
|
59
46
|
}], header: [{
|
|
60
47
|
type: Input
|
|
48
|
+
}], closable: [{
|
|
49
|
+
type: Input
|
|
61
50
|
}], data: [{
|
|
62
51
|
type: Input
|
|
63
|
-
}],
|
|
64
|
-
type:
|
|
65
|
-
|
|
52
|
+
}], headerType: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], headerTemplate: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], content: [{
|
|
57
|
+
type: ContentChild,
|
|
58
|
+
args: [TemplateRef]
|
|
66
59
|
}] } });
|
|
67
60
|
|
|
68
61
|
class TabViewComponent {
|
|
@@ -113,11 +106,11 @@ class TabViewComponent {
|
|
|
113
106
|
});
|
|
114
107
|
}
|
|
115
108
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: TabViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: TabViewComponent, isStandalone: true, selector: "app-tab-view", inputs: { activeIndex: "activeIndex", scrollable: "scrollable" }, outputs: { activeIndexChange: "activeIndexChange", onChange: "onChange", onClose: "onClose" }, queries: [{ propertyName: "panelList", predicate: TabPanelComponent }], usesOnChanges: true, ngImport: i0, template: "<p-tabs [value]=\"activeValue\" (valueChange)=\"onValueChange($event)\" class=\"dashboard-Tab-View\">\r\n\r\n <p-tablist>\r\n @for (panel of panels; track panel.id) {\r\n <p-tab [value]=\"panel.id\">\r\n
|
|
109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: TabViewComponent, isStandalone: true, selector: "app-tab-view", inputs: { activeIndex: "activeIndex", scrollable: "scrollable" }, outputs: { activeIndexChange: "activeIndexChange", onChange: "onChange", onClose: "onClose" }, queries: [{ propertyName: "panelList", predicate: TabPanelComponent }], usesOnChanges: true, ngImport: i0, template: "<p-tabs [value]=\"activeValue\" (valueChange)=\"onValueChange($event)\" class=\"dashboard-Tab-View\">\r\n\r\n <p-tablist>\r\n @for (panel of panels; track panel.id) {\r\n <p-tab [value]=\"panel.id\">\r\n @if (panel.headerType === 'template' && panel.headerTemplate) {\r\n\r\n <ng-container *ngTemplateOutlet=\"panel.headerTemplate;\r\n context: { panel: panel }\">\r\n </ng-container>\r\n\r\n } @else {\r\n\r\n {{ panel.header }}\r\n\r\n @if (panel.closable) {\r\n <i class=\"pi pi-times\" (click)=\"closeTab(panel, $event)\">\r\n </i>\r\n }\r\n }\r\n </p-tab>\r\n }\r\n </p-tablist>\r\n\r\n <p-tabpanels>\r\n @for (panel of panels; track panel.id) {\r\n <p-tabpanel [value]=\"panel.id\">\r\n <ng-container *ngTemplateOutlet=\"panel.content; context: { data: panel.data }\">\r\n </ng-container>\r\n </p-tabpanel>\r\n }\r\n </p-tabpanels>\r\n\r\n</p-tabs>", dependencies: [{ kind: "ngmodule", type: TabsModule }, { kind: "component", type: i1$1.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i1$1.TabPanels, selector: "p-tabpanels" }, { kind: "component", type: i1$1.TabPanel, selector: "p-tabpanel", inputs: ["lazy", "value"], outputs: ["valueChange"] }, { kind: "component", type: i1$1.TabList, selector: "p-tablist" }, { kind: "component", type: i1$1.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
117
110
|
}
|
|
118
111
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: TabViewComponent, decorators: [{
|
|
119
112
|
type: Component,
|
|
120
|
-
args: [{ selector: 'app-tab-view', standalone: true, imports: [TabsModule, CommonModule], template: "<p-tabs [value]=\"activeValue\" (valueChange)=\"onValueChange($event)\" class=\"dashboard-Tab-View\">\r\n\r\n <p-tablist>\r\n @for (panel of panels; track panel.id) {\r\n <p-tab [value]=\"panel.id\">\r\n
|
|
113
|
+
args: [{ selector: 'app-tab-view', standalone: true, imports: [TabsModule, CommonModule], template: "<p-tabs [value]=\"activeValue\" (valueChange)=\"onValueChange($event)\" class=\"dashboard-Tab-View\">\r\n\r\n <p-tablist>\r\n @for (panel of panels; track panel.id) {\r\n <p-tab [value]=\"panel.id\">\r\n @if (panel.headerType === 'template' && panel.headerTemplate) {\r\n\r\n <ng-container *ngTemplateOutlet=\"panel.headerTemplate;\r\n context: { panel: panel }\">\r\n </ng-container>\r\n\r\n } @else {\r\n\r\n {{ panel.header }}\r\n\r\n @if (panel.closable) {\r\n <i class=\"pi pi-times\" (click)=\"closeTab(panel, $event)\">\r\n </i>\r\n }\r\n }\r\n </p-tab>\r\n }\r\n </p-tablist>\r\n\r\n <p-tabpanels>\r\n @for (panel of panels; track panel.id) {\r\n <p-tabpanel [value]=\"panel.id\">\r\n <ng-container *ngTemplateOutlet=\"panel.content; context: { data: panel.data }\">\r\n </ng-container>\r\n </p-tabpanel>\r\n }\r\n </p-tabpanels>\r\n\r\n</p-tabs>" }]
|
|
121
114
|
}], propDecorators: { panelList: [{
|
|
122
115
|
type: ContentChildren,
|
|
123
116
|
args: [TabPanelComponent]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sparc-shared-ui.mjs","sources":["../../../projects/shared-ui/src/lib/tabs/
|
|
1
|
+
{"version":3,"file":"sparc-shared-ui.mjs","sources":["../../../projects/shared-ui/src/lib/tabs/tab-panel/tab-panel.component.ts","../../../projects/shared-ui/src/lib/tabs/tab-view/tab-view.component.ts","../../../projects/shared-ui/src/lib/tabs/tab-view/tab-view.component.html","../../../projects/shared-ui/src/public-api.ts","../../../projects/shared-ui/src/sparc-shared-ui.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, ContentChild, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-tab-panel',\r\n standalone: true,\r\n imports: [CommonModule],\r\n template: `\r\n <ng-container *ngIf=\"renderKey\">\r\n <ng-container\r\n *ngTemplateOutlet=\"content; context: { data: data }\">\r\n </ng-container>\r\n </ng-container>\r\n `\r\n})\r\nexport class TabPanelComponent {\r\n @Input({ required: true }) id!: number | string;\r\n @Input() header = '';\r\n @Input() closable = false;\r\n @Input() data: any;\r\n @Input() headerType: 'text' | 'template' = 'text';\r\n @Input() headerTemplate?: TemplateRef<any>;\r\n\r\n @ContentChild(TemplateRef) content!: TemplateRef<any>;\r\n\r\n renderKey = 0;\r\n\r\n ngOnChanges() {\r\n this.renderKey++;\r\n }\r\n}\r\n\r\n","import {\r\n AfterContentInit,\r\n Component,\r\n ContentChildren,\r\n EventEmitter,\r\n Input,\r\n OnChanges,\r\n Output,\r\n QueryList,\r\n SimpleChanges\r\n} from '@angular/core';\r\nimport { TabsModule } from 'primeng/tabs';\r\nimport { TabPanelComponent } from '../tab-panel/tab-panel.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'app-tab-view',\r\n standalone: true,\r\n imports: [TabsModule, CommonModule],\r\n templateUrl: './tab-view.component.html',\r\n})\r\nexport class TabViewComponent implements AfterContentInit, OnChanges {\r\n\r\n @ContentChildren(TabPanelComponent)\r\n panelList!: QueryList<TabPanelComponent>;\r\n\r\n panels: TabPanelComponent[] = [];\r\n\r\n @Input() activeIndex = 0;\r\n @Input() scrollable = false;\r\n\r\n @Output() activeIndexChange = new EventEmitter<number>();\r\n @Output() onChange = new EventEmitter<any>();\r\n @Output() onClose = new EventEmitter<any>();\r\n\r\n activeValue: any;\r\n\r\n ngAfterContentInit() {\r\n this.syncPanels();\r\n\r\n this.panelList.changes.subscribe(() => {\r\n this.syncPanels();\r\n });\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['activeIndex']) {\r\n this.updateActiveValue();\r\n }\r\n }\r\n\r\n private syncPanels() {\r\n this.panels = this.panelList.toArray();\r\n this.updateActiveValue();\r\n }\r\n\r\n private updateActiveValue() {\r\n this.activeValue = this.panels[this.activeIndex]?.id ?? null;\r\n }\r\n\r\n onValueChange(value: any) {\r\n const index = this.panels.findIndex(p => p.id === value);\r\n if (index === -1) return;\r\n\r\n this.activeIndex = index;\r\n this.activeIndexChange.emit(index);\r\n this.onChange.emit({ index });\r\n this.activeValue = value;\r\n }\r\n\r\n closeTab(panel: TabPanelComponent, event: Event) {\r\n event.stopPropagation();\r\n\r\n const index = this.panels.findIndex(p => p.id === panel.id);\r\n if (index === -1) return;\r\n\r\n // Child does NOT mutate data\r\n this.onClose.emit({\r\n index,\r\n panel\r\n });\r\n }\r\n\r\n\r\n}\r\n","<p-tabs [value]=\"activeValue\" (valueChange)=\"onValueChange($event)\" class=\"dashboard-Tab-View\">\r\n\r\n <p-tablist>\r\n @for (panel of panels; track panel.id) {\r\n <p-tab [value]=\"panel.id\">\r\n @if (panel.headerType === 'template' && panel.headerTemplate) {\r\n\r\n <ng-container *ngTemplateOutlet=\"panel.headerTemplate;\r\n context: { panel: panel }\">\r\n </ng-container>\r\n\r\n } @else {\r\n\r\n {{ panel.header }}\r\n\r\n @if (panel.closable) {\r\n <i class=\"pi pi-times\" (click)=\"closeTab(panel, $event)\">\r\n </i>\r\n }\r\n }\r\n </p-tab>\r\n }\r\n </p-tablist>\r\n\r\n <p-tabpanels>\r\n @for (panel of panels; track panel.id) {\r\n <p-tabpanel [value]=\"panel.id\">\r\n <ng-container *ngTemplateOutlet=\"panel.content; context: { data: panel.data }\">\r\n </ng-container>\r\n </p-tabpanel>\r\n }\r\n </p-tabpanels>\r\n\r\n</p-tabs>","/*\r\n * Public API Surface of shared-ui\r\n */\r\n\r\nexport * from './lib';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2"],"mappings":";;;;;;;MAea,iBAAiB,CAAA;AACD,IAAA,EAAE;IACpB,MAAM,GAAG,EAAE;IACX,QAAQ,GAAG,KAAK;AAChB,IAAA,IAAI;IACJ,UAAU,GAAwB,MAAM;AACxC,IAAA,cAAc;AAEI,IAAA,OAAO;IAElC,SAAS,GAAG,CAAC;IAEb,WAAW,GAAA;QACT,IAAI,CAAC,SAAS,EAAE;IAClB;uGAdW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,UAAA,EAAA,IAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,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AE;;AAGlB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAChB,KAAK;YACL;AACD,SAAA,CAAC;IACJ;uGA5DW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,mQAEV,iBAAiB,EAAA,CAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECvBpC,wkCAiCS,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDfG,UAAU,gkBAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAGvB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cACZ,IAAI,EAAA,OAAA,EACP,CAAC,UAAU,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,wkCAAA,EAAA;;sBAKlC,eAAe;uBAAC,iBAAiB;;sBAKjC;;sBACA;;sBAEA;;sBACA;;sBACA;;;AEjCH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, AfterContentInit,
|
|
2
|
+
import { TemplateRef, AfterContentInit, OnChanges, QueryList, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
|
|
4
|
-
declare class
|
|
5
|
-
template: TemplateRef<any>;
|
|
6
|
-
type: 'header' | 'content';
|
|
7
|
-
constructor(template: TemplateRef<any>);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppTabTemplateDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTabTemplateDirective, "[appTabTemplate]", never, { "type": { "alias": "appTabTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare class TabPanelComponent implements AfterContentInit {
|
|
4
|
+
declare class TabPanelComponent {
|
|
13
5
|
id: number | string;
|
|
14
6
|
header: string;
|
|
7
|
+
closable: boolean;
|
|
15
8
|
data: any;
|
|
9
|
+
headerType: 'text' | 'template';
|
|
16
10
|
headerTemplate?: TemplateRef<any>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
content: TemplateRef<any>;
|
|
12
|
+
renderKey: number;
|
|
13
|
+
ngOnChanges(): void;
|
|
20
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabPanelComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabPanelComponent, "app-tab-panel", never, { "id": { "alias": "id"; "required": true; }; "header": { "alias": "header"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, ["
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabPanelComponent, "app-tab-panel", never, { "id": { "alias": "id"; "required": true; }; "header": { "alias": "header"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "data": { "alias": "data"; "required": false; }; "headerType": { "alias": "headerType"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; }, {}, ["content"], never, true, never>;
|
|
22
16
|
}
|
|
23
17
|
|
|
24
18
|
declare class TabViewComponent implements AfterContentInit, OnChanges {
|