@abp/ng.components 4.4.0 → 5.0.0-beta.1
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/abp-ng.components.d.ts +1 -0
- package/bundles/abp-ng.components-chart.js.umd.js +185 -0
- package/bundles/abp-ng.components-chart.js.umd.js.map +1 -0
- package/bundles/abp-ng.components-page.umd.js +183 -120
- package/bundles/abp-ng.components-page.umd.js.map +1 -1
- package/bundles/abp-ng.components-tree.umd.js +117 -62
- package/bundles/abp-ng.components-tree.umd.js.map +1 -1
- package/bundles/abp-ng.components.umd.js.map +1 -1
- package/chart.js/abp-ng.components-chart.js.d.ts +5 -0
- package/chart.js/chart.component.d.ts +30 -0
- package/chart.js/chart.module.d.ts +8 -0
- package/chart.js/package.json +10 -0
- package/chart.js/public-api.d.ts +3 -0
- package/chart.js/widget-utils.d.ts +1 -0
- package/esm2015/abp-ng.components.js +1 -1
- package/esm2015/abp-ng.components.js.map +1 -0
- package/esm2015/chart.js/abp-ng.components-chart.js.js +5 -0
- package/esm2015/chart.js/abp-ng.components-chart.js.js.map +1 -0
- package/esm2015/chart.js/chart.component.js +141 -0
- package/esm2015/chart.js/chart.component.js.map +1 -0
- package/esm2015/chart.js/chart.module.js +19 -0
- package/esm2015/chart.js/chart.module.js.map +1 -0
- package/esm2015/chart.js/public-api.js +4 -0
- package/esm2015/chart.js/public-api.js.map +1 -0
- package/esm2015/chart.js/widget-utils.js +11 -0
- package/esm2015/chart.js/widget-utils.js.map +1 -0
- package/esm2015/page/abp-ng.components-page.js +1 -1
- package/esm2015/page/abp-ng.components-page.js.map +1 -0
- package/esm2015/page/page-part.directive.js +18 -14
- package/esm2015/page/page-part.directive.js.map +1 -0
- package/esm2015/page/page-parts.component.js +32 -28
- package/esm2015/page/page-parts.component.js.map +1 -0
- package/esm2015/page/page.component.js +33 -16
- package/esm2015/page/page.component.js.map +1 -0
- package/esm2015/page/page.module.js +27 -14
- package/esm2015/page/page.module.js.map +1 -0
- package/esm2015/page/public-api.js +1 -1
- package/esm2015/page/public-api.js.map +1 -0
- package/esm2015/public-api.js +1 -1
- package/esm2015/public-api.js.map +1 -0
- package/esm2015/tree/abp-ng.components-tree.js +1 -1
- package/esm2015/tree/abp-ng.components-tree.js.map +1 -0
- package/esm2015/tree/lib/components/tree.component.js +59 -29
- package/esm2015/tree/lib/components/tree.component.js.map +1 -0
- package/esm2015/tree/lib/templates/expanded-icon-template.directive.js +10 -9
- package/esm2015/tree/lib/templates/expanded-icon-template.directive.js.map +1 -0
- package/esm2015/tree/lib/templates/tree-node-template.directive.js +10 -9
- package/esm2015/tree/lib/templates/tree-node-template.directive.js.map +1 -0
- package/esm2015/tree/lib/tree.module.js +13 -8
- package/esm2015/tree/lib/tree.module.js.map +1 -0
- package/esm2015/tree/lib/utils/nz-tree-adapter.js +1 -1
- package/esm2015/tree/lib/utils/nz-tree-adapter.js.map +1 -0
- package/esm2015/tree/public-api.js +1 -1
- package/esm2015/tree/public-api.js.map +1 -0
- package/fesm2015/abp-ng.components-chart.js.js +175 -0
- package/fesm2015/abp-ng.components-chart.js.js.map +1 -0
- package/fesm2015/abp-ng.components-page.js +140 -106
- package/fesm2015/abp-ng.components-page.js.map +1 -1
- package/fesm2015/abp-ng.components-tree.js +85 -51
- package/fesm2015/abp-ng.components-tree.js.map +1 -1
- package/fesm2015/abp-ng.components.js.map +1 -1
- package/package.json +5 -5
- package/page/abp-ng.components-page.d.ts +1 -0
- package/page/package.json +0 -1
- package/page/page-part.directive.d.ts +3 -0
- package/page/page-parts.component.d.ts +7 -0
- package/page/page.component.d.ts +3 -0
- package/page/page.module.d.ts +11 -0
- package/tree/abp-ng.components-tree.d.ts +1 -0
- package/tree/lib/components/tree.component.d.ts +3 -0
- package/tree/lib/templates/expanded-icon-template.directive.d.ts +3 -0
- package/tree/lib/templates/tree-node-template.directive.d.ts +3 -0
- package/tree/lib/tree.module.d.ts +11 -0
- package/tree/package.json +0 -1
- package/abp-ng.components.metadata.json +0 -1
- package/bundles/abp-ng.components-page.umd.min.js +0 -16
- package/bundles/abp-ng.components-page.umd.min.js.map +0 -1
- package/bundles/abp-ng.components-tree.umd.min.js +0 -16
- package/bundles/abp-ng.components-tree.umd.min.js.map +0 -1
- package/bundles/abp-ng.components.umd.min.js +0 -2
- package/bundles/abp-ng.components.umd.min.js.map +0 -1
- package/page/abp-ng.components-page.metadata.json +0 -1
- package/tree/abp-ng.components-tree.metadata.json +0 -1
package/abp-ng.components.d.ts
CHANGED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@abp/ng.components/chart.js', ['exports', '@angular/core', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.components = global.abp.ng.components || {}, global.abp.ng.components.chart = global.abp.ng.components.chart || {}, global.abp.ng.components.chart.js = {}), global.ng.core, global.ng.common));
|
|
5
|
+
}(this, (function (exports, i0, common) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
|
|
29
|
+
var Chart;
|
|
30
|
+
var ChartComponent = /** @class */ (function () {
|
|
31
|
+
function ChartComponent(el, cdr) {
|
|
32
|
+
var _this = this;
|
|
33
|
+
this.el = el;
|
|
34
|
+
this.cdr = cdr;
|
|
35
|
+
this.data = {};
|
|
36
|
+
this.options = {};
|
|
37
|
+
this.plugins = [];
|
|
38
|
+
this.responsive = true;
|
|
39
|
+
this.dataSelect = new i0.EventEmitter();
|
|
40
|
+
this.initialized = new i0.EventEmitter();
|
|
41
|
+
this.initChart = function () {
|
|
42
|
+
var opts = _this.options || {};
|
|
43
|
+
opts.responsive = _this.responsive;
|
|
44
|
+
// allows chart to resize in responsive mode
|
|
45
|
+
if (opts.responsive && (_this.height || _this.width)) {
|
|
46
|
+
opts.maintainAspectRatio = false;
|
|
47
|
+
}
|
|
48
|
+
_this.chart = new Chart(_this.canvas.nativeElement, {
|
|
49
|
+
type: _this.type,
|
|
50
|
+
data: _this.data,
|
|
51
|
+
options: _this.options,
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
this.getCanvas = function () {
|
|
55
|
+
return _this.canvas.nativeElement;
|
|
56
|
+
};
|
|
57
|
+
this.getBase64Image = function () {
|
|
58
|
+
return _this.chart.toBase64Image();
|
|
59
|
+
};
|
|
60
|
+
this.generateLegend = function () {
|
|
61
|
+
if (_this.chart) {
|
|
62
|
+
return _this.chart.generateLegend();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.refresh = function () {
|
|
66
|
+
if (_this.chart) {
|
|
67
|
+
_this.chart.update();
|
|
68
|
+
_this.cdr.detectChanges();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
this.reinit = function () {
|
|
72
|
+
if (!_this.chart)
|
|
73
|
+
return;
|
|
74
|
+
_this.chart.destroy();
|
|
75
|
+
_this.initChart();
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
ChartComponent.prototype.ngAfterViewInit = function () {
|
|
79
|
+
var _this = this;
|
|
80
|
+
import('chart.js/auto').then(function (module) {
|
|
81
|
+
Chart = module.default;
|
|
82
|
+
_this.initChart();
|
|
83
|
+
_this.initialized.emit(true);
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
ChartComponent.prototype.onCanvasClick = function (event) {
|
|
87
|
+
if (this.chart) {
|
|
88
|
+
var element = this.chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);
|
|
89
|
+
var dataset = this.chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);
|
|
90
|
+
if (element && element[0] && dataset) {
|
|
91
|
+
this.dataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
ChartComponent.prototype.ngOnDestroy = function () {
|
|
96
|
+
if (this.chart) {
|
|
97
|
+
this.chart.destroy();
|
|
98
|
+
this.chart = null;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
ChartComponent.prototype.ngOnChanges = function (changes) {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
if (!this.chart)
|
|
104
|
+
return;
|
|
105
|
+
if (((_a = changes.data) === null || _a === void 0 ? void 0 : _a.currentValue) || ((_b = changes.options) === null || _b === void 0 ? void 0 : _b.currentValue)) {
|
|
106
|
+
this.chart.destroy();
|
|
107
|
+
this.initChart();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
return ChartComponent;
|
|
111
|
+
}());
|
|
112
|
+
ChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
113
|
+
ChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ChartComponent, selector: "abp-chart", inputs: { type: "type", data: "data", options: "options", plugins: "plugins", width: "width", height: "height", responsive: "responsive" }, outputs: { dataSelect: "dataSelect", initialized: "initialized" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], exportAs: ["abpChart"], usesOnChanges: true, ngImport: i0__namespace, template: "\n <div\n style=\"position:relative\"\n [style.width]=\"responsive && !width ? null : width\"\n [style.height]=\"responsive && !height ? null : height\"\n >\n <canvas\n #canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n ></canvas>\n </div>\n ", isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
114
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartComponent, decorators: [{
|
|
115
|
+
type: i0.Component,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: 'abp-chart',
|
|
118
|
+
template: "\n <div\n style=\"position:relative\"\n [style.width]=\"responsive && !width ? null : width\"\n [style.height]=\"responsive && !height ? null : height\"\n >\n <canvas\n #canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n ></canvas>\n </div>\n ",
|
|
119
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
120
|
+
exportAs: 'abpChart',
|
|
121
|
+
}]
|
|
122
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { type: [{
|
|
123
|
+
type: i0.Input
|
|
124
|
+
}], data: [{
|
|
125
|
+
type: i0.Input
|
|
126
|
+
}], options: [{
|
|
127
|
+
type: i0.Input
|
|
128
|
+
}], plugins: [{
|
|
129
|
+
type: i0.Input
|
|
130
|
+
}], width: [{
|
|
131
|
+
type: i0.Input
|
|
132
|
+
}], height: [{
|
|
133
|
+
type: i0.Input
|
|
134
|
+
}], responsive: [{
|
|
135
|
+
type: i0.Input
|
|
136
|
+
}], dataSelect: [{
|
|
137
|
+
type: i0.Output
|
|
138
|
+
}], initialized: [{
|
|
139
|
+
type: i0.Output
|
|
140
|
+
}], canvas: [{
|
|
141
|
+
type: i0.ViewChild,
|
|
142
|
+
args: ['canvas']
|
|
143
|
+
}] } });
|
|
144
|
+
|
|
145
|
+
var ChartModule = /** @class */ (function () {
|
|
146
|
+
function ChartModule() {
|
|
147
|
+
}
|
|
148
|
+
return ChartModule;
|
|
149
|
+
}());
|
|
150
|
+
ChartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
151
|
+
ChartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartModule, declarations: [ChartComponent], imports: [common.CommonModule], exports: [ChartComponent] });
|
|
152
|
+
ChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartModule, providers: [], imports: [[common.CommonModule]] });
|
|
153
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ChartModule, decorators: [{
|
|
154
|
+
type: i0.NgModule,
|
|
155
|
+
args: [{
|
|
156
|
+
imports: [common.CommonModule],
|
|
157
|
+
exports: [ChartComponent],
|
|
158
|
+
declarations: [ChartComponent],
|
|
159
|
+
providers: [],
|
|
160
|
+
}]
|
|
161
|
+
}] });
|
|
162
|
+
|
|
163
|
+
function getRandomBackgroundColor(count) {
|
|
164
|
+
var colors = [];
|
|
165
|
+
for (var i = 0; i < count; i++) {
|
|
166
|
+
var r = ((i + 5) * (i + 5) * 474) % 255;
|
|
167
|
+
var g = ((i + 5) * (i + 5) * 1600) % 255;
|
|
168
|
+
var b = ((i + 5) * (i + 5) * 84065) % 255;
|
|
169
|
+
colors.push('rgba(' + r + ', ' + g + ', ' + b + ', 0.7)');
|
|
170
|
+
}
|
|
171
|
+
return colors;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Generated bundle index. Do not edit.
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
exports.ChartComponent = ChartComponent;
|
|
179
|
+
exports.ChartModule = ChartModule;
|
|
180
|
+
exports.getRandomBackgroundColor = getRandomBackgroundColor;
|
|
181
|
+
|
|
182
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
183
|
+
|
|
184
|
+
})));
|
|
185
|
+
//# sourceMappingURL=abp-ng.components-chart.js.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abp-ng.components-chart.js.umd.js","sources":["../../../../packages/components/chart.js/src/chart.component.ts","../../../../packages/components/chart.js/src/chart.module.ts","../../../../packages/components/chart.js/src/widget-utils.ts","../../../../packages/components/chart.js/src/abp-ng.components-chart.js.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n SimpleChanges,\n ViewChild,\n} from '@angular/core';\n\nlet Chart: any;\n\n@Component({\n selector: 'abp-chart',\n template: `\n <div\n style=\"position:relative\"\n [style.width]=\"responsive && !width ? null : width\"\n [style.height]=\"responsive && !height ? null : height\"\n >\n <canvas\n #canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n ></canvas>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: 'abpChart',\n})\nexport class ChartComponent implements AfterViewInit, OnDestroy, OnChanges {\n @Input() type: string;\n\n @Input() data: any = {};\n\n @Input() options: any = {};\n\n @Input() plugins: any[] = [];\n\n @Input() width: string;\n\n @Input() height: string;\n\n @Input() responsive = true;\n\n @Output() dataSelect = new EventEmitter();\n\n @Output() initialized = new EventEmitter<boolean>();\n\n @ViewChild('canvas') canvas: ElementRef<HTMLCanvasElement>;\n\n chart: any;\n\n constructor(public el: ElementRef, private cdr: ChangeDetectorRef) {}\n\n ngAfterViewInit() {\n import('chart.js/auto').then(module => {\n Chart = module.default;\n this.initChart();\n this.initialized.emit(true);\n });\n }\n\n onCanvasClick(event) {\n if (this.chart) {\n const element = this.chart.getElementsAtEventForMode(\n event,\n 'nearest',\n { intersect: true },\n false,\n );\n const dataset = this.chart.getElementsAtEventForMode(\n event,\n 'dataset',\n { intersect: true },\n false,\n );\n\n if (element && element[0] && dataset) {\n this.dataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });\n }\n }\n }\n\n private initChart = () => {\n const opts = this.options || {};\n opts.responsive = this.responsive;\n\n // allows chart to resize in responsive mode\n if (opts.responsive && (this.height || this.width)) {\n opts.maintainAspectRatio = false;\n }\n\n this.chart = new Chart(this.canvas.nativeElement, {\n type: this.type as any,\n data: this.data,\n options: this.options,\n });\n };\n\n getCanvas = () => {\n return this.canvas.nativeElement;\n };\n\n getBase64Image = () => {\n return this.chart.toBase64Image();\n };\n\n generateLegend = () => {\n if (this.chart) {\n return this.chart.generateLegend();\n }\n };\n\n refresh = () => {\n if (this.chart) {\n this.chart.update();\n this.cdr.detectChanges();\n }\n };\n\n reinit = () => {\n if (!this.chart) return;\n this.chart.destroy();\n this.initChart();\n };\n\n ngOnDestroy() {\n if (this.chart) {\n this.chart.destroy();\n this.chart = null;\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (!this.chart) return;\n\n if (changes.data?.currentValue || changes.options?.currentValue) {\n this.chart.destroy();\n this.initChart();\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ChartComponent } from './chart.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [ChartComponent],\n declarations: [ChartComponent],\n providers: [],\n})\nexport class ChartModule {}\n","export function getRandomBackgroundColor(count) {\n const colors = [];\n\n for (let i = 0; i < count; i++) {\n const r = ((i + 5) * (i + 5) * 474) % 255;\n const g = ((i + 5) * (i + 5) * 1600) % 255;\n const b = ((i + 5) * (i + 5) * 84065) % 255;\n colors.push('rgba(' + r + ', ' + g + ', ' + b + ', 0.7)');\n }\n\n return colors;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","Component","ChangeDetectionStrategy","Input","Output","ViewChild","CommonModule","NgModule"],"mappings":"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"}
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@abp/ng.components/page', ['exports', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.components = global.abp.ng.components || {}, global.abp.ng.components.page = {}), global.
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@abp/ng.theme.shared/extensions'), require('@angular/common'), require('@angular/core'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@abp/ng.components/page', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@abp/ng.theme.shared/extensions', '@angular/common', '@angular/core', 'rxjs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.components = global.abp.ng.components || {}, global.abp.ng.components.page = {}), global.ng_core, global.i1, global.i2, global.ng.common, global.ng.core, global.rxjs));
|
|
5
|
+
}(this, (function (exports, ng_core, i1, i2, i3, i0, rxjs) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
30
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
6
31
|
|
|
7
32
|
/*! *****************************************************************************
|
|
8
33
|
Copyright (c) Microsoft Corporation.
|
|
@@ -239,7 +264,7 @@
|
|
|
239
264
|
ar[i] = from[i];
|
|
240
265
|
}
|
|
241
266
|
}
|
|
242
|
-
return to.concat(ar || from);
|
|
267
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
268
|
}
|
|
244
269
|
function __await(v) {
|
|
245
270
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -322,101 +347,7 @@
|
|
|
322
347
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
348
|
}
|
|
324
349
|
|
|
325
|
-
|
|
326
|
-
(function (PageParts) {
|
|
327
|
-
PageParts["title"] = "PageTitleContainerComponent";
|
|
328
|
-
PageParts["breadcrumb"] = "PageBreadcrumbContainerComponent";
|
|
329
|
-
PageParts["toolbar"] = "PageToolbarContainerComponent";
|
|
330
|
-
})(exports.PageParts || (exports.PageParts = {}));
|
|
331
|
-
var PageTitleContainerComponent = /** @class */ (function () {
|
|
332
|
-
function PageTitleContainerComponent() {
|
|
333
|
-
}
|
|
334
|
-
return PageTitleContainerComponent;
|
|
335
|
-
}());
|
|
336
|
-
PageTitleContainerComponent.decorators = [
|
|
337
|
-
{ type: core.Component, args: [{
|
|
338
|
-
selector: 'abp-page-title-container',
|
|
339
|
-
template: "\n <ng-content></ng-content>\n ",
|
|
340
|
-
encapsulation: core.ViewEncapsulation.None
|
|
341
|
-
},] }
|
|
342
|
-
];
|
|
343
|
-
var PageBreadcrumbContainerComponent = /** @class */ (function () {
|
|
344
|
-
function PageBreadcrumbContainerComponent() {
|
|
345
|
-
}
|
|
346
|
-
return PageBreadcrumbContainerComponent;
|
|
347
|
-
}());
|
|
348
|
-
PageBreadcrumbContainerComponent.decorators = [
|
|
349
|
-
{ type: core.Component, args: [{
|
|
350
|
-
selector: 'abp-page-breadcrumb-container',
|
|
351
|
-
template: "\n <ng-content></ng-content>\n ",
|
|
352
|
-
encapsulation: core.ViewEncapsulation.None
|
|
353
|
-
},] }
|
|
354
|
-
];
|
|
355
|
-
var PageToolbarContainerComponent = /** @class */ (function () {
|
|
356
|
-
function PageToolbarContainerComponent() {
|
|
357
|
-
}
|
|
358
|
-
return PageToolbarContainerComponent;
|
|
359
|
-
}());
|
|
360
|
-
PageToolbarContainerComponent.decorators = [
|
|
361
|
-
{ type: core.Component, args: [{
|
|
362
|
-
selector: 'abp-page-toolbar-container',
|
|
363
|
-
template: "\n <ng-content></ng-content>\n ",
|
|
364
|
-
encapsulation: core.ViewEncapsulation.None
|
|
365
|
-
},] }
|
|
366
|
-
];
|
|
367
|
-
|
|
368
|
-
var PageComponent = /** @class */ (function () {
|
|
369
|
-
function PageComponent() {
|
|
370
|
-
this.toolbarVisible = false;
|
|
371
|
-
this.breadcrumbVisible = true;
|
|
372
|
-
this.pageParts = {
|
|
373
|
-
title: exports.PageParts.title,
|
|
374
|
-
breadcrumb: exports.PageParts.breadcrumb,
|
|
375
|
-
toolbar: exports.PageParts.toolbar,
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
Object.defineProperty(PageComponent.prototype, "toolbarData", {
|
|
379
|
-
get: function () {
|
|
380
|
-
return this._toolbarData;
|
|
381
|
-
},
|
|
382
|
-
set: function (val) {
|
|
383
|
-
this._toolbarData = val;
|
|
384
|
-
this.toolbarVisible = true;
|
|
385
|
-
},
|
|
386
|
-
enumerable: false,
|
|
387
|
-
configurable: true
|
|
388
|
-
});
|
|
389
|
-
Object.defineProperty(PageComponent.prototype, "shouldRenderRow", {
|
|
390
|
-
get: function () {
|
|
391
|
-
return !!(this.title ||
|
|
392
|
-
this.toolbarVisible ||
|
|
393
|
-
this.breadcrumbVisible ||
|
|
394
|
-
this.customTitle ||
|
|
395
|
-
this.customBreadcrumb ||
|
|
396
|
-
this.customToolbar);
|
|
397
|
-
},
|
|
398
|
-
enumerable: false,
|
|
399
|
-
configurable: true
|
|
400
|
-
});
|
|
401
|
-
return PageComponent;
|
|
402
|
-
}());
|
|
403
|
-
PageComponent.decorators = [
|
|
404
|
-
{ type: core.Component, args: [{
|
|
405
|
-
selector: 'abp-page',
|
|
406
|
-
template: "<div class=\"row entry-row\" *ngIf=\"shouldRenderRow\">\n <ng-container *ngIf=\"customTitle; else defaultTitleTemplate\">\n <ng-content select=\"abp-page-title-container\"></ng-content>\n </ng-container>\n\n <ng-container *ngIf=\"customBreadcrumb; else defaultBreadcrumbTemplate\">\n <ng-content select=\"abp-page-breadcrumb-container\"></ng-content>\n </ng-container>\n\n <ng-container *ngIf=\"customToolbar; else defaultPageToolbarTemplate\">\n <ng-content select=\"abp-page-toolbar-container\"></ng-content>\n </ng-container>\n</div>\n\n<ng-content></ng-content>\n\n<ng-template #defaultTitleTemplate>\n <ng-container *ngIf=\"title\">\n <div class=\"col-auto\" *abpPagePart=\"pageParts.title\">\n <h1 class=\"content-header-title\">\n {{ title }}\n </h1>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultBreadcrumbTemplate>\n <ng-container *ngIf=\"breadcrumbVisible\">\n <div class=\"col-lg-auto pl-lg-0\" *abpPagePart=\"pageParts.breadcrumb\">\n <abp-breadcrumb></abp-breadcrumb>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultPageToolbarTemplate>\n <ng-container *ngIf=\"toolbarVisible\">\n <div class=\"col\" *abpPagePart=\"pageParts.toolbar; context: toolbarData\">\n <abp-page-toolbar [record]=\"toolbarData\"></abp-page-toolbar>\n </div>\n </ng-container>\n</ng-template>\n",
|
|
407
|
-
encapsulation: core.ViewEncapsulation.None
|
|
408
|
-
},] }
|
|
409
|
-
];
|
|
410
|
-
PageComponent.propDecorators = {
|
|
411
|
-
title: [{ type: core.Input }],
|
|
412
|
-
toolbarData: [{ type: core.Input, args: ['toolbar',] }],
|
|
413
|
-
breadcrumbVisible: [{ type: core.Input, args: ['breadcrumb',] }],
|
|
414
|
-
customTitle: [{ type: core.ContentChild, args: [PageTitleContainerComponent,] }],
|
|
415
|
-
customBreadcrumb: [{ type: core.ContentChild, args: [PageBreadcrumbContainerComponent,] }],
|
|
416
|
-
customToolbar: [{ type: core.ContentChild, args: [PageToolbarContainerComponent,] }]
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
var PAGE_RENDER_STRATEGY = new core.InjectionToken('PAGE_RENDER_STRATEGY');
|
|
350
|
+
var PAGE_RENDER_STRATEGY = new i0.InjectionToken('PAGE_RENDER_STRATEGY');
|
|
420
351
|
var PagePartDirective = /** @class */ (function () {
|
|
421
352
|
function PagePartDirective(templateRef, viewContainer, renderLogic, injector) {
|
|
422
353
|
var _this = this;
|
|
@@ -482,19 +413,139 @@
|
|
|
482
413
|
};
|
|
483
414
|
return PagePartDirective;
|
|
484
415
|
}());
|
|
485
|
-
PagePartDirective
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
416
|
+
PagePartDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PagePartDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: i0__namespace.ViewContainerRef }, { token: PAGE_RENDER_STRATEGY, optional: true }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
417
|
+
PagePartDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: PagePartDirective, selector: "[abpPagePart]", inputs: { context: ["abpPagePartContext", "context"], abpPagePart: "abpPagePart" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
418
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PagePartDirective, decorators: [{
|
|
419
|
+
type: i0.Directive,
|
|
420
|
+
args: [{ selector: '[abpPagePart]' }]
|
|
421
|
+
}], ctorParameters: function () {
|
|
422
|
+
return [{ type: i0__namespace.TemplateRef }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
|
|
423
|
+
type: i0.Optional
|
|
424
|
+
}, {
|
|
425
|
+
type: i0.Inject,
|
|
426
|
+
args: [PAGE_RENDER_STRATEGY]
|
|
427
|
+
}] }, { type: i0__namespace.Injector }];
|
|
428
|
+
}, propDecorators: { context: [{
|
|
429
|
+
type: i0.Input,
|
|
430
|
+
args: ['abpPagePartContext']
|
|
431
|
+
}], abpPagePart: [{
|
|
432
|
+
type: i0.Input
|
|
433
|
+
}] } });
|
|
434
|
+
|
|
435
|
+
exports.PageParts = void 0;
|
|
436
|
+
(function (PageParts) {
|
|
437
|
+
PageParts["title"] = "PageTitleContainerComponent";
|
|
438
|
+
PageParts["breadcrumb"] = "PageBreadcrumbContainerComponent";
|
|
439
|
+
PageParts["toolbar"] = "PageToolbarContainerComponent";
|
|
440
|
+
})(exports.PageParts || (exports.PageParts = {}));
|
|
441
|
+
var PageTitleContainerComponent = /** @class */ (function () {
|
|
442
|
+
function PageTitleContainerComponent() {
|
|
443
|
+
}
|
|
444
|
+
return PageTitleContainerComponent;
|
|
445
|
+
}());
|
|
446
|
+
PageTitleContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageTitleContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
447
|
+
PageTitleContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: PageTitleContainerComponent, selector: "abp-page-title-container", ngImport: i0__namespace, template: " <ng-content></ng-content> ", isInline: true, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
448
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageTitleContainerComponent, decorators: [{
|
|
449
|
+
type: i0.Component,
|
|
450
|
+
args: [{
|
|
451
|
+
selector: 'abp-page-title-container',
|
|
452
|
+
template: " <ng-content></ng-content> ",
|
|
453
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
454
|
+
}]
|
|
455
|
+
}] });
|
|
456
|
+
var PageBreadcrumbContainerComponent = /** @class */ (function () {
|
|
457
|
+
function PageBreadcrumbContainerComponent() {
|
|
458
|
+
}
|
|
459
|
+
return PageBreadcrumbContainerComponent;
|
|
460
|
+
}());
|
|
461
|
+
PageBreadcrumbContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageBreadcrumbContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
462
|
+
PageBreadcrumbContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: PageBreadcrumbContainerComponent, selector: "abp-page-breadcrumb-container", ngImport: i0__namespace, template: " <ng-content></ng-content> ", isInline: true, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
463
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageBreadcrumbContainerComponent, decorators: [{
|
|
464
|
+
type: i0.Component,
|
|
465
|
+
args: [{
|
|
466
|
+
selector: 'abp-page-breadcrumb-container',
|
|
467
|
+
template: " <ng-content></ng-content> ",
|
|
468
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
469
|
+
}]
|
|
470
|
+
}] });
|
|
471
|
+
var PageToolbarContainerComponent = /** @class */ (function () {
|
|
472
|
+
function PageToolbarContainerComponent() {
|
|
473
|
+
}
|
|
474
|
+
return PageToolbarContainerComponent;
|
|
475
|
+
}());
|
|
476
|
+
PageToolbarContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageToolbarContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
477
|
+
PageToolbarContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: PageToolbarContainerComponent, selector: "abp-page-toolbar-container", ngImport: i0__namespace, template: " <ng-content></ng-content> ", isInline: true, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
478
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageToolbarContainerComponent, decorators: [{
|
|
479
|
+
type: i0.Component,
|
|
480
|
+
args: [{
|
|
481
|
+
selector: 'abp-page-toolbar-container',
|
|
482
|
+
template: " <ng-content></ng-content> ",
|
|
483
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
484
|
+
}]
|
|
485
|
+
}] });
|
|
486
|
+
|
|
487
|
+
var PageComponent = /** @class */ (function () {
|
|
488
|
+
function PageComponent() {
|
|
489
|
+
this.toolbarVisible = false;
|
|
490
|
+
this.breadcrumbVisible = true;
|
|
491
|
+
this.pageParts = {
|
|
492
|
+
title: exports.PageParts.title,
|
|
493
|
+
breadcrumb: exports.PageParts.breadcrumb,
|
|
494
|
+
toolbar: exports.PageParts.toolbar,
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
Object.defineProperty(PageComponent.prototype, "toolbarData", {
|
|
498
|
+
get: function () {
|
|
499
|
+
return this._toolbarData;
|
|
500
|
+
},
|
|
501
|
+
set: function (val) {
|
|
502
|
+
this._toolbarData = val;
|
|
503
|
+
this.toolbarVisible = true;
|
|
504
|
+
},
|
|
505
|
+
enumerable: false,
|
|
506
|
+
configurable: true
|
|
507
|
+
});
|
|
508
|
+
Object.defineProperty(PageComponent.prototype, "shouldRenderRow", {
|
|
509
|
+
get: function () {
|
|
510
|
+
return !!(this.title ||
|
|
511
|
+
this.toolbarVisible ||
|
|
512
|
+
this.breadcrumbVisible ||
|
|
513
|
+
this.customTitle ||
|
|
514
|
+
this.customBreadcrumb ||
|
|
515
|
+
this.customToolbar);
|
|
516
|
+
},
|
|
517
|
+
enumerable: false,
|
|
518
|
+
configurable: true
|
|
519
|
+
});
|
|
520
|
+
return PageComponent;
|
|
521
|
+
}());
|
|
522
|
+
PageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
523
|
+
PageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: PageComponent, selector: "abp-page", inputs: { title: "title", toolbarData: ["toolbar", "toolbarData"], breadcrumbVisible: ["breadcrumb", "breadcrumbVisible"] }, queries: [{ propertyName: "customTitle", first: true, predicate: PageTitleContainerComponent, descendants: true }, { propertyName: "customBreadcrumb", first: true, predicate: PageBreadcrumbContainerComponent, descendants: true }, { propertyName: "customToolbar", first: true, predicate: PageToolbarContainerComponent, descendants: true }], ngImport: i0__namespace, template: "<div class=\"row entry-row\" *ngIf=\"shouldRenderRow\">\n <ng-container *ngIf=\"customTitle; else defaultTitleTemplate\">\n <ng-content select=\"abp-page-title-container\"></ng-content>\n </ng-container>\n\n <ng-container *ngIf=\"customBreadcrumb; else defaultBreadcrumbTemplate\">\n <ng-content select=\"abp-page-breadcrumb-container\"></ng-content>\n </ng-container>\n\n <ng-container *ngIf=\"customToolbar; else defaultPageToolbarTemplate\">\n <ng-content select=\"abp-page-toolbar-container\"></ng-content>\n </ng-container>\n</div>\n\n<ng-content></ng-content>\n\n<ng-template #defaultTitleTemplate>\n <ng-container *ngIf=\"title\">\n <div class=\"col-auto\" *abpPagePart=\"pageParts.title\">\n <h1 class=\"content-header-title\">\n {{ title }}\n </h1>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultBreadcrumbTemplate>\n <ng-container *ngIf=\"breadcrumbVisible\">\n <div class=\"col-lg-auto pl-lg-0\" *abpPagePart=\"pageParts.breadcrumb\">\n <abp-breadcrumb></abp-breadcrumb>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultPageToolbarTemplate>\n <ng-container *ngIf=\"toolbarVisible\">\n <div class=\"col\" *abpPagePart=\"pageParts.toolbar; context: toolbarData\">\n <abp-page-toolbar [record]=\"toolbarData\"></abp-page-toolbar>\n </div>\n </ng-container>\n</ng-template>\n", components: [{ type: i1__namespace.BreadcrumbComponent, selector: "abp-breadcrumb" }, { type: i2__namespace.PageToolbarComponent, selector: "abp-page-toolbar", exportAs: ["abpPageToolbar"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: PagePartDirective, selector: "[abpPagePart]", inputs: ["abpPagePartContext", "abpPagePart"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
524
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageComponent, decorators: [{
|
|
525
|
+
type: i0.Component,
|
|
526
|
+
args: [{
|
|
527
|
+
selector: 'abp-page',
|
|
528
|
+
templateUrl: './page.component.html',
|
|
529
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
530
|
+
}]
|
|
531
|
+
}], propDecorators: { title: [{
|
|
532
|
+
type: i0.Input
|
|
533
|
+
}], toolbarData: [{
|
|
534
|
+
type: i0.Input,
|
|
535
|
+
args: ['toolbar']
|
|
536
|
+
}], breadcrumbVisible: [{
|
|
537
|
+
type: i0.Input,
|
|
538
|
+
args: ['breadcrumb']
|
|
539
|
+
}], customTitle: [{
|
|
540
|
+
type: i0.ContentChild,
|
|
541
|
+
args: [PageTitleContainerComponent]
|
|
542
|
+
}], customBreadcrumb: [{
|
|
543
|
+
type: i0.ContentChild,
|
|
544
|
+
args: [PageBreadcrumbContainerComponent]
|
|
545
|
+
}], customToolbar: [{
|
|
546
|
+
type: i0.ContentChild,
|
|
547
|
+
args: [PageToolbarContainerComponent]
|
|
548
|
+
}] } });
|
|
498
549
|
|
|
499
550
|
var exportedDeclarations = [
|
|
500
551
|
PageComponent,
|
|
@@ -508,13 +559,25 @@
|
|
|
508
559
|
}
|
|
509
560
|
return PageModule;
|
|
510
561
|
}());
|
|
511
|
-
PageModule
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
562
|
+
PageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
563
|
+
PageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageModule, declarations: [PageComponent,
|
|
564
|
+
PageTitleContainerComponent,
|
|
565
|
+
PageBreadcrumbContainerComponent,
|
|
566
|
+
PageToolbarContainerComponent,
|
|
567
|
+
PagePartDirective], imports: [i3.CommonModule, i2.UiExtensionsModule, ng_core.CoreModule, i1.ThemeSharedModule], exports: [PageComponent,
|
|
568
|
+
PageTitleContainerComponent,
|
|
569
|
+
PageBreadcrumbContainerComponent,
|
|
570
|
+
PageToolbarContainerComponent,
|
|
571
|
+
PagePartDirective, i2.UiExtensionsModule] });
|
|
572
|
+
PageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageModule, imports: [[i3.CommonModule, i2.UiExtensionsModule, ng_core.CoreModule, i1.ThemeSharedModule], i2.UiExtensionsModule] });
|
|
573
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageModule, decorators: [{
|
|
574
|
+
type: i0.NgModule,
|
|
575
|
+
args: [{
|
|
576
|
+
declarations: __spreadArray([], __read(exportedDeclarations)),
|
|
577
|
+
imports: [i3.CommonModule, i2.UiExtensionsModule, ng_core.CoreModule, i1.ThemeSharedModule],
|
|
578
|
+
exports: __spreadArray(__spreadArray([], __read(exportedDeclarations)), [i2.UiExtensionsModule]),
|
|
579
|
+
}]
|
|
580
|
+
}] });
|
|
518
581
|
|
|
519
582
|
/**
|
|
520
583
|
* Generated bundle index. Do not edit.
|