@indigina/kendo 2.0.37 → 2.0.39
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.
|
@@ -21,6 +21,7 @@ import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
|
|
|
21
21
|
import * as i1$1 from '@progress/kendo-angular-notification';
|
|
22
22
|
import * as i1$2 from '@angular/router';
|
|
23
23
|
import { NavigationEnd, RouterModule, Router } from '@angular/router';
|
|
24
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
24
25
|
import XmlBeautify from 'xml-beautify';
|
|
25
26
|
import * as i1$4 from 'ngx-clipboard';
|
|
26
27
|
import { ClipboardModule } from 'ngx-clipboard';
|
|
@@ -1259,20 +1260,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
1259
1260
|
const urlDelimiter = '/';
|
|
1260
1261
|
const collapsedEvent$1 = 'collapsed';
|
|
1261
1262
|
class MenuItemGroupComponent {
|
|
1262
|
-
constructor(router) {
|
|
1263
|
+
constructor(router, changeDetectorRef, destroyRef) {
|
|
1263
1264
|
this.router = router;
|
|
1265
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
1266
|
+
this.destroyRef = destroyRef;
|
|
1264
1267
|
this.collapsed = false;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
urlDelimiter +
|
|
1269
|
-
this.routerState.snapshot.root.children[0].routeConfig.path.split('/:')[0]
|
|
1270
|
-
: false;
|
|
1271
|
-
};
|
|
1268
|
+
}
|
|
1269
|
+
get isActive() {
|
|
1270
|
+
return !!this.item.link && this.item.link === this.actualPath;
|
|
1272
1271
|
}
|
|
1273
1272
|
ngOnInit() {
|
|
1274
1273
|
this.setActualPath(this.router.routerState.snapshot);
|
|
1275
|
-
this.router.events
|
|
1274
|
+
this.router.events
|
|
1275
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
1276
|
+
.subscribe((event) => {
|
|
1276
1277
|
if (event instanceof NavigationEnd) {
|
|
1277
1278
|
this.setActualPath(this.router.routerState.snapshot);
|
|
1278
1279
|
}
|
|
@@ -1301,15 +1302,16 @@ class MenuItemGroupComponent {
|
|
|
1301
1302
|
urlDelimiter +
|
|
1302
1303
|
snapshot.root.children[0].routeConfig.path.split('/:')[0];
|
|
1303
1304
|
this.setItemExpand();
|
|
1305
|
+
this.changeDetectorRef.markForCheck();
|
|
1304
1306
|
}
|
|
1305
1307
|
}
|
|
1306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MenuItemGroupComponent, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1307
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: MenuItemGroupComponent, isStandalone: false, selector: "[menu-item-group]", inputs: { item: "item" }, usesOnChanges: true, ngImport: i0, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n
|
|
1308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MenuItemGroupComponent, deps: [{ token: i1$2.Router }, { token: i0.ChangeDetectorRef }, { token: i0.DestroyRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1309
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: MenuItemGroupComponent, isStandalone: false, selector: "[menu-item-group]", inputs: { item: "item" }, usesOnChanges: true, ngImport: i0, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n [class.active-route]=\"isActive\"\n class=\"sub-menu-link\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n @if (item.url) {\n <a\n class=\"sub-menu-link\"\n href=\"{{ item.url }}\"\n target=\"_blank\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: MenuItemGroupComponent, selector: "[menu-item-group]", inputs: ["item"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
1308
1310
|
}
|
|
1309
1311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MenuItemGroupComponent, decorators: [{
|
|
1310
1312
|
type: Component,
|
|
1311
|
-
args: [{ selector: '[menu-item-group]', standalone: false, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n
|
|
1312
|
-
}], ctorParameters: () => [{ type: i1$2.Router }], propDecorators: { item: [{
|
|
1313
|
+
args: [{ selector: '[menu-item-group]', standalone: false, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n [class.active-route]=\"isActive\"\n class=\"sub-menu-link\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n @if (item.url) {\n <a\n class=\"sub-menu-link\"\n href=\"{{ item.url }}\"\n target=\"_blank\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n}\n" }]
|
|
1314
|
+
}], ctorParameters: () => [{ type: i1$2.Router }, { type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }], propDecorators: { item: [{
|
|
1313
1315
|
type: Input
|
|
1314
1316
|
}] } });
|
|
1315
1317
|
|
|
@@ -1347,7 +1349,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
1347
1349
|
}] } });
|
|
1348
1350
|
|
|
1349
1351
|
class TreeViewNodeComponent {
|
|
1350
|
-
constructor() {
|
|
1352
|
+
constructor(changeDetectorRef) {
|
|
1353
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
1351
1354
|
this.expanded = true;
|
|
1352
1355
|
}
|
|
1353
1356
|
ngOnInit() {
|
|
@@ -1360,21 +1363,23 @@ class TreeViewNodeComponent {
|
|
|
1360
1363
|
if (this.hasExpand) {
|
|
1361
1364
|
this.expanded = true;
|
|
1362
1365
|
}
|
|
1366
|
+
this.changeDetectorRef.markForCheck();
|
|
1363
1367
|
this.treeViewProps.forEach((x) => x.expandAll());
|
|
1364
1368
|
}
|
|
1365
1369
|
collapseAll() {
|
|
1366
1370
|
if (this.hasExpand) {
|
|
1367
1371
|
this.expanded = false;
|
|
1368
1372
|
}
|
|
1373
|
+
this.changeDetectorRef.markForCheck();
|
|
1369
1374
|
this.treeViewProps.forEach((x) => x.collapseAll());
|
|
1370
1375
|
}
|
|
1371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1372
1377
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TreeViewNodeComponent, isStandalone: false, selector: "tree-view-node", inputs: { node: "node", hasExpand: "hasExpand" }, viewQueries: [{ propertyName: "treeViewProps", predicate: ["node"], descendants: true }], ngImport: i0, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TreeViewNodeComponent, selector: "tree-view-node", inputs: ["node", "hasExpand"] }] }); }
|
|
1373
1378
|
}
|
|
1374
1379
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, decorators: [{
|
|
1375
1380
|
type: Component,
|
|
1376
1381
|
args: [{ selector: 'tree-view-node', standalone: false, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"] }]
|
|
1377
|
-
}], propDecorators: { treeViewProps: [{
|
|
1382
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { treeViewProps: [{
|
|
1378
1383
|
type: ViewChildren,
|
|
1379
1384
|
args: ['node']
|
|
1380
1385
|
}], node: [{
|