@wizishop/angular-components 14.4.69 → 14.4.70
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/angular-components.scss +68 -68
- package/esm2020/lib/components/tree/tree.component.mjs +6 -3
- package/esm2020/lib/components/tree/tree.dto.mjs +1 -1
- package/fesm2015/wizishop-angular-components.mjs +5 -2
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +5 -2
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/tree/tree.component.d.ts +6 -4
- package/lib/components/tree/tree.dto.d.ts +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-14.4.70.tgz +0 -0
- package/wizishop-angular-components-14.4.69.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -150,6 +150,74 @@ $wac-link-active: #38A3F1!default;
|
|
|
150
150
|
.wac-table__head__cell--checkbox .wac-field-checkbox__row {
|
|
151
151
|
transform: translateX(5px);
|
|
152
152
|
}
|
|
153
|
+
.wac-alert {
|
|
154
|
+
width: 100%;
|
|
155
|
+
background-color: transparentize($wac-link-color, 0.85);
|
|
156
|
+
color: $wac-link-color;
|
|
157
|
+
border-radius: 3px;
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-wrap: nowrap;
|
|
160
|
+
justify-content: space-between;
|
|
161
|
+
padding: 20px;
|
|
162
|
+
&.success {
|
|
163
|
+
background-color: transparentize($wac-green-color, 0.85);
|
|
164
|
+
p {
|
|
165
|
+
color: $wac-p-alert-color-success;
|
|
166
|
+
> * {
|
|
167
|
+
color: $wac-p-alert-color-success;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
i {
|
|
171
|
+
color: $wac-green-color;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
&.warning {
|
|
175
|
+
background-color: transparentize($wac-primary-button, 0.85);
|
|
176
|
+
p {
|
|
177
|
+
color: $wac-p-alert-color-warning;
|
|
178
|
+
> * {
|
|
179
|
+
color: $wac-p-alert-color-warning;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
i {
|
|
183
|
+
color: $wac-primary-button;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
&.alert {
|
|
187
|
+
background-color: transparentize($wac-orange-color, 0.85);
|
|
188
|
+
p {
|
|
189
|
+
color: $wac-p-alert-color-alert;
|
|
190
|
+
> * {
|
|
191
|
+
color: $wac-p-alert-color-alert;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
i {
|
|
195
|
+
color: $wac-orange-color;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
p {
|
|
199
|
+
width: 100%;
|
|
200
|
+
font-size: rem(14);
|
|
201
|
+
line-height: rem(25);
|
|
202
|
+
margin: 0;
|
|
203
|
+
padding: 0;
|
|
204
|
+
color: $wac-p-alert-color-default;
|
|
205
|
+
> * {
|
|
206
|
+
color: $wac-p-alert-color-default;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
i {
|
|
210
|
+
width: auto;
|
|
211
|
+
margin: 0 10px 0 0;
|
|
212
|
+
color: inherit;
|
|
213
|
+
font-size: rem(14);
|
|
214
|
+
line-height: rem(25);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.wac-button i {
|
|
218
|
+
color: $wac-white;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
153
221
|
.wac-alert-popup {
|
|
154
222
|
.alert {
|
|
155
223
|
z-index: 999999;
|
|
@@ -372,74 +440,6 @@ $wac-link-active: #38A3F1!default;
|
|
|
372
440
|
}
|
|
373
441
|
|
|
374
442
|
}
|
|
375
|
-
.wac-alert {
|
|
376
|
-
width: 100%;
|
|
377
|
-
background-color: transparentize($wac-link-color, 0.85);
|
|
378
|
-
color: $wac-link-color;
|
|
379
|
-
border-radius: 3px;
|
|
380
|
-
display: flex;
|
|
381
|
-
flex-wrap: nowrap;
|
|
382
|
-
justify-content: space-between;
|
|
383
|
-
padding: 20px;
|
|
384
|
-
&.success {
|
|
385
|
-
background-color: transparentize($wac-green-color, 0.85);
|
|
386
|
-
p {
|
|
387
|
-
color: $wac-p-alert-color-success;
|
|
388
|
-
> * {
|
|
389
|
-
color: $wac-p-alert-color-success;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
i {
|
|
393
|
-
color: $wac-green-color;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
&.warning {
|
|
397
|
-
background-color: transparentize($wac-primary-button, 0.85);
|
|
398
|
-
p {
|
|
399
|
-
color: $wac-p-alert-color-warning;
|
|
400
|
-
> * {
|
|
401
|
-
color: $wac-p-alert-color-warning;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
i {
|
|
405
|
-
color: $wac-primary-button;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
&.alert {
|
|
409
|
-
background-color: transparentize($wac-orange-color, 0.85);
|
|
410
|
-
p {
|
|
411
|
-
color: $wac-p-alert-color-alert;
|
|
412
|
-
> * {
|
|
413
|
-
color: $wac-p-alert-color-alert;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
i {
|
|
417
|
-
color: $wac-orange-color;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
p {
|
|
421
|
-
width: 100%;
|
|
422
|
-
font-size: rem(14);
|
|
423
|
-
line-height: rem(25);
|
|
424
|
-
margin: 0;
|
|
425
|
-
padding: 0;
|
|
426
|
-
color: $wac-p-alert-color-default;
|
|
427
|
-
> * {
|
|
428
|
-
color: $wac-p-alert-color-default;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
i {
|
|
432
|
-
width: auto;
|
|
433
|
-
margin: 0 10px 0 0;
|
|
434
|
-
color: inherit;
|
|
435
|
-
font-size: rem(14);
|
|
436
|
-
line-height: rem(25);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.wac-button i {
|
|
440
|
-
color: $wac-white;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
443
|
.wac-back {
|
|
444
444
|
width: 40px;
|
|
445
445
|
height: 40px;
|
|
@@ -4,18 +4,21 @@ import * as i1 from "@angular/common";
|
|
|
4
4
|
export class TreeComponent {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.treeDepth = 0;
|
|
7
|
+
this.tackByFn = (index, item) => item;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
-
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TreeComponent, selector: "wac-tree", inputs: { items: "items", treeDepth: "treeDepth", optionTemplate: "optionTemplate" }, ngImport: i0, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeComponent, selector: "wac-tree", inputs: ["items", "treeDepth", "optionTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
|
+
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TreeComponent, selector: "wac-tree", inputs: { items: "items", treeDepth: "treeDepth", optionTemplate: "optionTemplate", tackByFn: "tackByFn" }, ngImport: i0, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index; trackBy: tackByFn\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeComponent, selector: "wac-tree", inputs: ["items", "treeDepth", "optionTemplate", "tackByFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TreeComponent, decorators: [{
|
|
12
13
|
type: Component,
|
|
13
|
-
args: [{ selector: 'wac-tree', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>" }]
|
|
14
|
+
args: [{ selector: 'wac-tree', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index; trackBy: tackByFn\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>" }]
|
|
14
15
|
}], propDecorators: { items: [{
|
|
15
16
|
type: Input
|
|
16
17
|
}], treeDepth: [{
|
|
17
18
|
type: Input
|
|
18
19
|
}], optionTemplate: [{
|
|
19
20
|
type: Input
|
|
21
|
+
}], tackByFn: [{
|
|
22
|
+
type: Input
|
|
20
23
|
}] } });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBv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IlxuICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgJGltcGxpY2l0OiBpdGVtLCBpbmRleDogaW5kZXggfVwiXG4gICAgPlxuICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgPHdhYy10cmVlIFtvcHRpb25UZW1wbGF0ZV09XCJvcHRpb25UZW1wbGF0ZVwiIFtpdGVtc109XCJpdGVtLnRyZWVDaGlsZHJlblwiICpuZ0lmPVwiaXRlbS50cmVlQ2hpbGRyZW4/Lmxlbmd0aFwiIFt0cmVlRGVwdGhdPVwidHJlZURlcHRoICsgMVwiPjwvd2FjLXRyZWU+XG4gICA8L2xpPlxuPC91bD4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5kdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3RyZWUvdHJlZS5kdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgVHJlZUR0byBleHRlbmRzIFJlY3Vyc2lmRHRvPFRyZWVEdG8+
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5kdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL3RyZWUvdHJlZS5kdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgVHJlZUR0byBleHRlbmRzIFJlY3Vyc2lmRHRvPFRyZWVEdG8+IHtcbn1cbmV4cG9ydCBpbnRlcmZhY2UgUmVjdXJzaWZEdG88VD4ge1xuICAgIHRyZWVEZXB0aDogbnVtYmVyO1xuICAgIGhhc1RyZWVDaGlsZHJlbjogYm9vbGVhbjtcbiAgICB0cmVlQ2hpbGRyZW4/OiBBcnJheTxUPjtcbiAgICB0cmVlTGFiZWw/OiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -4528,19 +4528,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
4528
4528
|
class TreeComponent {
|
|
4529
4529
|
constructor() {
|
|
4530
4530
|
this.treeDepth = 0;
|
|
4531
|
+
this.tackByFn = (index, item) => item;
|
|
4531
4532
|
}
|
|
4532
4533
|
}
|
|
4533
4534
|
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4534
|
-
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TreeComponent, selector: "wac-tree", inputs: { items: "items", treeDepth: "treeDepth", optionTemplate: "optionTemplate" }, ngImport: i0, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeComponent, selector: "wac-tree", inputs: ["items", "treeDepth", "optionTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4535
|
+
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TreeComponent, selector: "wac-tree", inputs: { items: "items", treeDepth: "treeDepth", optionTemplate: "optionTemplate", tackByFn: "tackByFn" }, ngImport: i0, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index; trackBy: tackByFn\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeComponent, selector: "wac-tree", inputs: ["items", "treeDepth", "optionTemplate", "tackByFn"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4535
4536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TreeComponent, decorators: [{
|
|
4536
4537
|
type: Component,
|
|
4537
|
-
args: [{ selector: 'wac-tree', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>" }]
|
|
4538
|
+
args: [{ selector: 'wac-tree', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul [ngClass]=\"['treeDepth-' + treeDepth]\">\n <li *ngFor=\"let item of items; let index = index; trackBy: tackByFn\">\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\"></wac-tree>\n </li>\n</ul>" }]
|
|
4538
4539
|
}], propDecorators: { items: [{
|
|
4539
4540
|
type: Input
|
|
4540
4541
|
}], treeDepth: [{
|
|
4541
4542
|
type: Input
|
|
4542
4543
|
}], optionTemplate: [{
|
|
4543
4544
|
type: Input
|
|
4545
|
+
}], tackByFn: [{
|
|
4546
|
+
type: Input
|
|
4544
4547
|
}] } });
|
|
4545
4548
|
|
|
4546
4549
|
class FormatObjectToRecursifTreePipe {
|