@inspark/inspark-components 19.0.52 → 19.0.53
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,10 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { MenuItem } from 'primeng/api';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BreadcrumbComponent implements OnInit {
|
|
6
|
+
private router;
|
|
5
7
|
items: MenuItem[];
|
|
6
|
-
constructor();
|
|
8
|
+
constructor(router: Router);
|
|
7
9
|
ngOnInit(): void;
|
|
10
|
+
navigateUrl(url: string): void;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
9
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "in-breadcrumb", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/breadcrumb/breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,MAAM,EAAC,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;;AAErC,qBAOa,mBAAoB,YAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"breadcrumb.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/breadcrumb/breadcrumb.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,MAAM,EAAC,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;;AAErC,qBAOa,mBAAoB,YAAW,MAAM;IAIpC,OAAO,CAAC,MAAM;IAFjB,KAAK,EAAE,QAAQ,EAAE,CAAC;gBAEP,MAAM,EAAE,MAAM;IAGlC,QAAQ;IAGR,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;yCAVnB,mBAAmB;2CAAnB,mBAAmB;CAa/B"}
|
|
@@ -5177,18 +5177,39 @@ class ToolbarComponentModule {
|
|
|
5177
5177
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ToolbarComponentModule, { declarations: [ToolbarComponent], imports: [SharedUiModule], exports: [ToolbarComponent] }); })();
|
|
5178
5178
|
|
|
5179
5179
|
const _c0$5 = () => ["/main/page/home"];
|
|
5180
|
-
function
|
|
5181
|
-
i0.ɵɵelementStart(0, "a",
|
|
5180
|
+
function BreadcrumbComponent_li_6_ng_container_1_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
5181
|
+
i0.ɵɵelementStart(0, "a", 4);
|
|
5182
5182
|
i0.ɵɵtext(1);
|
|
5183
5183
|
i0.ɵɵelementEnd();
|
|
5184
5184
|
} if (rf & 2) {
|
|
5185
|
-
const item_r1 = i0.ɵɵnextContext().$implicit;
|
|
5185
|
+
const item_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
5186
5186
|
i0.ɵɵproperty("routerLink", item_r1.url);
|
|
5187
5187
|
i0.ɵɵadvance();
|
|
5188
5188
|
i0.ɵɵtextInterpolate(item_r1.label);
|
|
5189
5189
|
} }
|
|
5190
|
+
function BreadcrumbComponent_li_6_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
5191
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
5192
|
+
i0.ɵɵelementStart(0, "a", 8);
|
|
5193
|
+
i0.ɵɵlistener("click", function BreadcrumbComponent_li_6_ng_container_1_ng_template_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r2); const item_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.navigateUrl(item_r1.url)); });
|
|
5194
|
+
i0.ɵɵtext(1);
|
|
5195
|
+
i0.ɵɵelementEnd();
|
|
5196
|
+
} if (rf & 2) {
|
|
5197
|
+
const item_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
5198
|
+
i0.ɵɵadvance();
|
|
5199
|
+
i0.ɵɵtextInterpolate(item_r1.label);
|
|
5200
|
+
} }
|
|
5201
|
+
function BreadcrumbComponent_li_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5202
|
+
i0.ɵɵelementContainerStart(0);
|
|
5203
|
+
i0.ɵɵtemplate(1, BreadcrumbComponent_li_6_ng_container_1_a_1_Template, 2, 2, "a", 7)(2, BreadcrumbComponent_li_6_ng_container_1_ng_template_2_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
5204
|
+
i0.ɵɵelementContainerEnd();
|
|
5205
|
+
} if (rf & 2) {
|
|
5206
|
+
const clearOutletsUrl_r4 = i0.ɵɵreference(3);
|
|
5207
|
+
const item_r1 = i0.ɵɵnextContext().$implicit;
|
|
5208
|
+
i0.ɵɵadvance();
|
|
5209
|
+
i0.ɵɵproperty("ngIf", !item_r1["clearOutlets"])("ngIfElse", clearOutletsUrl_r4);
|
|
5210
|
+
} }
|
|
5190
5211
|
function BreadcrumbComponent_li_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
5191
|
-
i0.ɵɵelementStart(0, "span",
|
|
5212
|
+
i0.ɵɵelementStart(0, "span", 9);
|
|
5192
5213
|
i0.ɵɵtext(1);
|
|
5193
5214
|
i0.ɵɵelementEnd();
|
|
5194
5215
|
} if (rf & 2) {
|
|
@@ -5197,28 +5218,32 @@ function BreadcrumbComponent_li_6_ng_template_2_Template(rf, ctx) { if (rf & 1)
|
|
|
5197
5218
|
i0.ɵɵtextInterpolate(item_r1.label);
|
|
5198
5219
|
} }
|
|
5199
5220
|
function BreadcrumbComponent_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
5200
|
-
i0.ɵɵelementStart(0, "li",
|
|
5201
|
-
i0.ɵɵtemplate(1,
|
|
5221
|
+
i0.ɵɵelementStart(0, "li", 3);
|
|
5222
|
+
i0.ɵɵtemplate(1, BreadcrumbComponent_li_6_ng_container_1_Template, 4, 2, "ng-container", 6)(2, BreadcrumbComponent_li_6_ng_template_2_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
5202
5223
|
i0.ɵɵelementEnd();
|
|
5203
5224
|
} if (rf & 2) {
|
|
5204
5225
|
const item_r1 = ctx.$implicit;
|
|
5205
|
-
const
|
|
5206
|
-
const
|
|
5226
|
+
const isLast_r5 = ctx.last;
|
|
5227
|
+
const noUrl_r6 = i0.ɵɵreference(3);
|
|
5207
5228
|
i0.ɵɵadvance();
|
|
5208
|
-
i0.ɵɵproperty("ngIf", item_r1.url && !
|
|
5229
|
+
i0.ɵɵproperty("ngIf", item_r1.url && !isLast_r5)("ngIfElse", noUrl_r6);
|
|
5209
5230
|
} }
|
|
5210
5231
|
class BreadcrumbComponent {
|
|
5211
|
-
constructor() {
|
|
5232
|
+
constructor(router) {
|
|
5233
|
+
this.router = router;
|
|
5212
5234
|
}
|
|
5213
5235
|
ngOnInit() {
|
|
5214
5236
|
}
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5237
|
+
navigateUrl(url) {
|
|
5238
|
+
this.router.navigateByUrl(url);
|
|
5239
|
+
}
|
|
5240
|
+
static { this.ɵfac = function BreadcrumbComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbComponent)(i0.ɵɵdirectiveInject(i1$4.Router)); }; }
|
|
5241
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BreadcrumbComponent, selectors: [["in-breadcrumb"]], inputs: { items: "items" }, standalone: false, decls: 7, vars: 6, consts: [["noUrl", ""], ["clearOutletsUrl", ""], [1, "c-crumb"], [1, "c-crumb__item"], ["translate", "", 3, "routerLink"], ["class", "c-crumb__item", 4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["translate", "", 3, "routerLink", 4, "ngIf", "ngIfElse"], ["translate", "", 2, "cursor", "pointer", 3, "click"], ["translate", ""]], template: function BreadcrumbComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5242
|
+
i0.ɵɵelementStart(0, "div")(1, "ul", 2)(2, "li", 3)(3, "a", 4);
|
|
5218
5243
|
i0.ɵɵtext(4);
|
|
5219
5244
|
i0.ɵɵpipe(5, "translate");
|
|
5220
5245
|
i0.ɵɵelementEnd()();
|
|
5221
|
-
i0.ɵɵtemplate(6, BreadcrumbComponent_li_6_Template, 4, 2, "li",
|
|
5246
|
+
i0.ɵɵtemplate(6, BreadcrumbComponent_li_6_Template, 4, 2, "li", 5);
|
|
5222
5247
|
i0.ɵɵelementEnd()();
|
|
5223
5248
|
} if (rf & 2) {
|
|
5224
5249
|
i0.ɵɵadvance(3);
|
|
@@ -5231,11 +5256,11 @@ class BreadcrumbComponent {
|
|
|
5231
5256
|
}
|
|
5232
5257
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BreadcrumbComponent, [{
|
|
5233
5258
|
type: Component,
|
|
5234
|
-
args: [{ standalone: false, selector: 'in-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\r\n <ul class=\"c-crumb\">\r\n <li class=\"c-crumb__item\">\r\n <a [routerLink]=\"['/main/page/home']\" translate=\"\">{{'Home' | translate }}</a>\r\n </li>\r\n <li *ngFor=\"let item of items; last as isLast\" class=\"c-crumb__item\">\r\n <
|
|
5235
|
-
}], () => [], { items: [{
|
|
5259
|
+
args: [{ standalone: false, selector: 'in-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\r\n <ul class=\"c-crumb\">\r\n <li class=\"c-crumb__item\">\r\n <a [routerLink]=\"['/main/page/home']\" translate=\"\">{{'Home' | translate }}</a>\r\n </li>\r\n <li *ngFor=\"let item of items; last as isLast\" class=\"c-crumb__item\">\r\n <ng-container *ngIf=\"item.url && !isLast; else noUrl\">\r\n <a *ngIf=\"!item['clearOutlets']; else clearOutletsUrl\" [routerLink]=\"item.url\" translate=\"\">{{item.label}}</a>\r\n <ng-template #clearOutletsUrl>\r\n <a (click)=\"navigateUrl(item.url)\" style=\"cursor:pointer\" translate=\"\">{{item.label}}</a>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #noUrl>\r\n <span translate=\"\">{{item.label}}</span>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n</div>\r\n" }]
|
|
5260
|
+
}], () => [{ type: i1$4.Router }], { items: [{
|
|
5236
5261
|
type: Input
|
|
5237
5262
|
}] }); })();
|
|
5238
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BreadcrumbComponent, { className: "BreadcrumbComponent", filePath: "components/breadcrumb/breadcrumb.component.ts", lineNumber:
|
|
5263
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BreadcrumbComponent, { className: "BreadcrumbComponent", filePath: "components/breadcrumb/breadcrumb.component.ts", lineNumber: 12 }); })();
|
|
5239
5264
|
|
|
5240
5265
|
class BreadcrumbComponentModule {
|
|
5241
5266
|
static { this.ɵfac = function BreadcrumbComponentModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbComponentModule)(); }; }
|