@posiwise/utils 0.0.136 → 0.0.138
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/fesm2022/posiwise-utils-edit-navbar-modal.component-CbA9bIxy.mjs +281 -0
- package/fesm2022/posiwise-utils-edit-navbar-modal.component-CbA9bIxy.mjs.map +1 -0
- package/fesm2022/posiwise-utils.mjs +45 -40
- package/fesm2022/posiwise-utils.mjs.map +1 -1
- package/package.json +6 -6
- package/types/posiwise-utils.d.ts +193 -0
- package/fesm2022/posiwise-utils-edit-navbar-modal.component-ZLFpMqq1.mjs +0 -287
- package/fesm2022/posiwise-utils-edit-navbar-modal.component-ZLFpMqq1.mjs.map +0 -1
- package/index.d.ts +0 -11
- package/lib/custom-uploader/custom-uploader.component.d.ts +0 -35
- package/lib/date-range.utils.d.ts +0 -5
- package/lib/decorators.d.ts +0 -4
- package/lib/field-error-display/field-error-display.component.d.ts +0 -7
- package/lib/field-error-display/field-error-display.module.d.ts +0 -13
- package/lib/image-cropper/image-cropper.component.d.ts +0 -30
- package/lib/image-cropper/profile-image-cropper.module.d.ts +0 -19
- package/lib/quill-helper.d.ts +0 -16
- package/lib/resource-header/edit-navbar-modal.component.d.ts +0 -22
- package/lib/resource-header/resource-header.component.d.ts +0 -47
- package/lib/resource-header/resource-header.module.d.ts +0 -21
- package/lib/routing.helper.d.ts +0 -3
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import * as i2 from '@angular/cdk/drag-drop';
|
|
2
|
+
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { EventEmitter, Output, Input, Component } from '@angular/core';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Edit Navbar Modal Component
|
|
10
|
+
* Contains drag-drop functionality for reordering navbar items
|
|
11
|
+
* This component is lazy-loaded only when the edit modal is opened
|
|
12
|
+
*/
|
|
13
|
+
class EditNavbarModalComponent {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.save = new EventEmitter();
|
|
16
|
+
this.closeEvent = new EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
dropNavbarItems(event) {
|
|
19
|
+
moveItemInArray(this.editingNavbar.items, event.previousIndex, event.currentIndex);
|
|
20
|
+
}
|
|
21
|
+
dropNavbarSubtitles(index, event) {
|
|
22
|
+
moveItemInArray(this.editingNavbar.items[index].subtitles, event.previousIndex, event.currentIndex);
|
|
23
|
+
}
|
|
24
|
+
addNavbarItem() {
|
|
25
|
+
this.editingNavbar.items.push({
|
|
26
|
+
title: '',
|
|
27
|
+
path: '',
|
|
28
|
+
subtitles: []
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
removeNavbarItem(index) {
|
|
32
|
+
this.editingNavbar.items.splice(index, 1);
|
|
33
|
+
}
|
|
34
|
+
addNavbarSubtitle(index) {
|
|
35
|
+
this.editingNavbar.items[index].subtitles.push({
|
|
36
|
+
title: '',
|
|
37
|
+
path: ''
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
removeNavbarSubtitle(navIndex, subIndex) {
|
|
41
|
+
this.editingNavbar.items[navIndex].subtitles.splice(subIndex, 1);
|
|
42
|
+
}
|
|
43
|
+
onSave() {
|
|
44
|
+
this.save.emit(this.editingNavbar);
|
|
45
|
+
}
|
|
46
|
+
onClose() {
|
|
47
|
+
this.closeEvent.emit();
|
|
48
|
+
}
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EditNavbarModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: EditNavbarModalComponent, isStandalone: true, selector: "pw-edit-navbar-modal", inputs: { editingNavbar: "editingNavbar" }, outputs: { save: "save", closeEvent: "closeEvent" }, ngImport: i0, template: `
|
|
51
|
+
<div class="modal-header">
|
|
52
|
+
<h5 class="modal-title">Edit Navbar Links</h5>
|
|
53
|
+
<button type="button" class="btn-close" aria-label="Close" (click)="onClose()"></button>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="modal-body">
|
|
57
|
+
<h4 class="mb-3">Navbar Section</h4>
|
|
58
|
+
<div cdkDropList (cdkDropListDropped)="dropNavbarItems($event)">
|
|
59
|
+
@for (item of editingNavbar.items; track item; let i = $index) {
|
|
60
|
+
<div class="border p-3 mb-3" cdkDrag>
|
|
61
|
+
<div class="row">
|
|
62
|
+
<div class="col-md-5 mb-2">
|
|
63
|
+
<label [for]="'navbarTitle' + i" class="form-label">Title</label>
|
|
64
|
+
<input
|
|
65
|
+
[id]="'navbarTitle' + i"
|
|
66
|
+
class="form-control"
|
|
67
|
+
[(ngModel)]="item.title"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-md-5 mb-2">
|
|
71
|
+
<label [for]="'navbarPath' + i" class="form-label">Path</label>
|
|
72
|
+
<input
|
|
73
|
+
[id]="'navbarPath' + i"
|
|
74
|
+
class="form-control"
|
|
75
|
+
[(ngModel)]="item.path"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
<div
|
|
79
|
+
class="col-md-2 d-flex justify-content-between align-items-center mt-4"
|
|
80
|
+
>
|
|
81
|
+
<i
|
|
82
|
+
class="fa fa-trash in-page-trash-icon text-danger cursor-pointer"
|
|
83
|
+
(click)="removeNavbarItem(i)"
|
|
84
|
+
(keydown.enter)="removeNavbarItem(i)"
|
|
85
|
+
(keydown.space)="removeNavbarItem(i)"
|
|
86
|
+
></i>
|
|
87
|
+
<i
|
|
88
|
+
class="fa fa-bars in-page-bars-icon cursor-pointer"
|
|
89
|
+
cdkDragHandle
|
|
90
|
+
></i>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div cdkDropList (cdkDropListDropped)="dropNavbarSubtitles(i, $event)">
|
|
94
|
+
@for (sub of item.subtitles; track sub; let j = $index) {
|
|
95
|
+
<div class="row border p-3 mb-2 align-items-center" cdkDrag>
|
|
96
|
+
<div class="col-md-5">
|
|
97
|
+
<label
|
|
98
|
+
[for]="'navbarSubtitleTitle' + i + j"
|
|
99
|
+
class="form-label"
|
|
100
|
+
>Subtitle Title</label
|
|
101
|
+
>
|
|
102
|
+
<input
|
|
103
|
+
[id]="'navbarSubtitleTitle' + i + j"
|
|
104
|
+
class="form-control"
|
|
105
|
+
[(ngModel)]="sub.title"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-md-5">
|
|
109
|
+
<label
|
|
110
|
+
[for]="'navbarSubtitlePath' + i + j"
|
|
111
|
+
class="form-label"
|
|
112
|
+
>Subtitle Path</label
|
|
113
|
+
>
|
|
114
|
+
<input
|
|
115
|
+
[id]="'navbarSubtitlePath' + i + j"
|
|
116
|
+
class="form-control"
|
|
117
|
+
[(ngModel)]="sub.path"
|
|
118
|
+
/>
|
|
119
|
+
</div>
|
|
120
|
+
<div
|
|
121
|
+
class="col-md-2 d-flex justify-content-between align-items-center mt-4"
|
|
122
|
+
>
|
|
123
|
+
<i
|
|
124
|
+
class="fa fa-trash in-page-trash-icon text-danger cursor-pointer"
|
|
125
|
+
(click)="removeNavbarSubtitle(i, j)"
|
|
126
|
+
(keydown.enter)="removeNavbarSubtitle(i, j)"
|
|
127
|
+
(keydown.space)="removeNavbarSubtitle(i, j)"
|
|
128
|
+
></i>
|
|
129
|
+
<i
|
|
130
|
+
class="fa fa-bars in-page-bars-icon cursor-pointer"
|
|
131
|
+
cdkDragHandle
|
|
132
|
+
></i>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
}
|
|
136
|
+
</div>
|
|
137
|
+
<button
|
|
138
|
+
class="btn btn-outline-primary btn-sm mt-2"
|
|
139
|
+
(click)="addNavbarSubtitle(i)"
|
|
140
|
+
>
|
|
141
|
+
+ Add Subtitle
|
|
142
|
+
</button>
|
|
143
|
+
</div>
|
|
144
|
+
}
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
<button class="btn btn-primary mt-3" (click)="addNavbarItem()">
|
|
148
|
+
+ Add Navbar Item
|
|
149
|
+
</button>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<div class="modal-footer">
|
|
153
|
+
<button class="btn btn-secondary" (click)="onClose()">Cancel</button>
|
|
154
|
+
<button class="btn btn-primary" (click)="onSave()">Save</button>
|
|
155
|
+
</div>
|
|
156
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] }); }
|
|
157
|
+
}
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: EditNavbarModalComponent, decorators: [{
|
|
159
|
+
type: Component,
|
|
160
|
+
args: [{
|
|
161
|
+
selector: 'pw-edit-navbar-modal',
|
|
162
|
+
standalone: true,
|
|
163
|
+
imports: [FormsModule, DragDropModule],
|
|
164
|
+
template: `
|
|
165
|
+
<div class="modal-header">
|
|
166
|
+
<h5 class="modal-title">Edit Navbar Links</h5>
|
|
167
|
+
<button type="button" class="btn-close" aria-label="Close" (click)="onClose()"></button>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div class="modal-body">
|
|
171
|
+
<h4 class="mb-3">Navbar Section</h4>
|
|
172
|
+
<div cdkDropList (cdkDropListDropped)="dropNavbarItems($event)">
|
|
173
|
+
@for (item of editingNavbar.items; track item; let i = $index) {
|
|
174
|
+
<div class="border p-3 mb-3" cdkDrag>
|
|
175
|
+
<div class="row">
|
|
176
|
+
<div class="col-md-5 mb-2">
|
|
177
|
+
<label [for]="'navbarTitle' + i" class="form-label">Title</label>
|
|
178
|
+
<input
|
|
179
|
+
[id]="'navbarTitle' + i"
|
|
180
|
+
class="form-control"
|
|
181
|
+
[(ngModel)]="item.title"
|
|
182
|
+
/>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="col-md-5 mb-2">
|
|
185
|
+
<label [for]="'navbarPath' + i" class="form-label">Path</label>
|
|
186
|
+
<input
|
|
187
|
+
[id]="'navbarPath' + i"
|
|
188
|
+
class="form-control"
|
|
189
|
+
[(ngModel)]="item.path"
|
|
190
|
+
/>
|
|
191
|
+
</div>
|
|
192
|
+
<div
|
|
193
|
+
class="col-md-2 d-flex justify-content-between align-items-center mt-4"
|
|
194
|
+
>
|
|
195
|
+
<i
|
|
196
|
+
class="fa fa-trash in-page-trash-icon text-danger cursor-pointer"
|
|
197
|
+
(click)="removeNavbarItem(i)"
|
|
198
|
+
(keydown.enter)="removeNavbarItem(i)"
|
|
199
|
+
(keydown.space)="removeNavbarItem(i)"
|
|
200
|
+
></i>
|
|
201
|
+
<i
|
|
202
|
+
class="fa fa-bars in-page-bars-icon cursor-pointer"
|
|
203
|
+
cdkDragHandle
|
|
204
|
+
></i>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
<div cdkDropList (cdkDropListDropped)="dropNavbarSubtitles(i, $event)">
|
|
208
|
+
@for (sub of item.subtitles; track sub; let j = $index) {
|
|
209
|
+
<div class="row border p-3 mb-2 align-items-center" cdkDrag>
|
|
210
|
+
<div class="col-md-5">
|
|
211
|
+
<label
|
|
212
|
+
[for]="'navbarSubtitleTitle' + i + j"
|
|
213
|
+
class="form-label"
|
|
214
|
+
>Subtitle Title</label
|
|
215
|
+
>
|
|
216
|
+
<input
|
|
217
|
+
[id]="'navbarSubtitleTitle' + i + j"
|
|
218
|
+
class="form-control"
|
|
219
|
+
[(ngModel)]="sub.title"
|
|
220
|
+
/>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="col-md-5">
|
|
223
|
+
<label
|
|
224
|
+
[for]="'navbarSubtitlePath' + i + j"
|
|
225
|
+
class="form-label"
|
|
226
|
+
>Subtitle Path</label
|
|
227
|
+
>
|
|
228
|
+
<input
|
|
229
|
+
[id]="'navbarSubtitlePath' + i + j"
|
|
230
|
+
class="form-control"
|
|
231
|
+
[(ngModel)]="sub.path"
|
|
232
|
+
/>
|
|
233
|
+
</div>
|
|
234
|
+
<div
|
|
235
|
+
class="col-md-2 d-flex justify-content-between align-items-center mt-4"
|
|
236
|
+
>
|
|
237
|
+
<i
|
|
238
|
+
class="fa fa-trash in-page-trash-icon text-danger cursor-pointer"
|
|
239
|
+
(click)="removeNavbarSubtitle(i, j)"
|
|
240
|
+
(keydown.enter)="removeNavbarSubtitle(i, j)"
|
|
241
|
+
(keydown.space)="removeNavbarSubtitle(i, j)"
|
|
242
|
+
></i>
|
|
243
|
+
<i
|
|
244
|
+
class="fa fa-bars in-page-bars-icon cursor-pointer"
|
|
245
|
+
cdkDragHandle
|
|
246
|
+
></i>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
}
|
|
250
|
+
</div>
|
|
251
|
+
<button
|
|
252
|
+
class="btn btn-outline-primary btn-sm mt-2"
|
|
253
|
+
(click)="addNavbarSubtitle(i)"
|
|
254
|
+
>
|
|
255
|
+
+ Add Subtitle
|
|
256
|
+
</button>
|
|
257
|
+
</div>
|
|
258
|
+
}
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<button class="btn btn-primary mt-3" (click)="addNavbarItem()">
|
|
262
|
+
+ Add Navbar Item
|
|
263
|
+
</button>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<div class="modal-footer">
|
|
267
|
+
<button class="btn btn-secondary" (click)="onClose()">Cancel</button>
|
|
268
|
+
<button class="btn btn-primary" (click)="onSave()">Save</button>
|
|
269
|
+
</div>
|
|
270
|
+
`
|
|
271
|
+
}]
|
|
272
|
+
}], propDecorators: { editingNavbar: [{
|
|
273
|
+
type: Input
|
|
274
|
+
}], save: [{
|
|
275
|
+
type: Output
|
|
276
|
+
}], closeEvent: [{
|
|
277
|
+
type: Output
|
|
278
|
+
}] } });
|
|
279
|
+
|
|
280
|
+
export { EditNavbarModalComponent };
|
|
281
|
+
//# sourceMappingURL=posiwise-utils-edit-navbar-modal.component-CbA9bIxy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posiwise-utils-edit-navbar-modal.component-CbA9bIxy.mjs","sources":["../../../../libs/utils/src/lib/resource-header/edit-navbar-modal.component.ts"],"sourcesContent":["import { moveItemInArray } from '@angular/cdk/drag-drop';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n/**\n * Edit Navbar Modal Component\n * Contains drag-drop functionality for reordering navbar items\n * This component is lazy-loaded only when the edit modal is opened\n */\n@Component({\n selector: 'pw-edit-navbar-modal',\n standalone: true,\n imports: [FormsModule, DragDropModule],\n template: `\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">Edit Navbar Links</h5>\n <button type=\"button\" class=\"btn-close\" aria-label=\"Close\" (click)=\"onClose()\"></button>\n </div>\n\n <div class=\"modal-body\">\n <h4 class=\"mb-3\">Navbar Section</h4>\n <div cdkDropList (cdkDropListDropped)=\"dropNavbarItems($event)\">\n @for (item of editingNavbar.items; track item; let i = $index) {\n <div class=\"border p-3 mb-3\" cdkDrag>\n <div class=\"row\">\n <div class=\"col-md-5 mb-2\">\n <label [for]=\"'navbarTitle' + i\" class=\"form-label\">Title</label>\n <input\n [id]=\"'navbarTitle' + i\"\n class=\"form-control\"\n [(ngModel)]=\"item.title\"\n />\n </div>\n <div class=\"col-md-5 mb-2\">\n <label [for]=\"'navbarPath' + i\" class=\"form-label\">Path</label>\n <input\n [id]=\"'navbarPath' + i\"\n class=\"form-control\"\n [(ngModel)]=\"item.path\"\n />\n </div>\n <div\n class=\"col-md-2 d-flex justify-content-between align-items-center mt-4\"\n >\n <i\n class=\"fa fa-trash in-page-trash-icon text-danger cursor-pointer\"\n (click)=\"removeNavbarItem(i)\"\n (keydown.enter)=\"removeNavbarItem(i)\"\n (keydown.space)=\"removeNavbarItem(i)\"\n ></i>\n <i\n class=\"fa fa-bars in-page-bars-icon cursor-pointer\"\n cdkDragHandle\n ></i>\n </div>\n </div>\n <div cdkDropList (cdkDropListDropped)=\"dropNavbarSubtitles(i, $event)\">\n @for (sub of item.subtitles; track sub; let j = $index) {\n <div class=\"row border p-3 mb-2 align-items-center\" cdkDrag>\n <div class=\"col-md-5\">\n <label\n [for]=\"'navbarSubtitleTitle' + i + j\"\n class=\"form-label\"\n >Subtitle Title</label\n >\n <input\n [id]=\"'navbarSubtitleTitle' + i + j\"\n class=\"form-control\"\n [(ngModel)]=\"sub.title\"\n />\n </div>\n <div class=\"col-md-5\">\n <label\n [for]=\"'navbarSubtitlePath' + i + j\"\n class=\"form-label\"\n >Subtitle Path</label\n >\n <input\n [id]=\"'navbarSubtitlePath' + i + j\"\n class=\"form-control\"\n [(ngModel)]=\"sub.path\"\n />\n </div>\n <div\n class=\"col-md-2 d-flex justify-content-between align-items-center mt-4\"\n >\n <i\n class=\"fa fa-trash in-page-trash-icon text-danger cursor-pointer\"\n (click)=\"removeNavbarSubtitle(i, j)\"\n (keydown.enter)=\"removeNavbarSubtitle(i, j)\"\n (keydown.space)=\"removeNavbarSubtitle(i, j)\"\n ></i>\n <i\n class=\"fa fa-bars in-page-bars-icon cursor-pointer\"\n cdkDragHandle\n ></i>\n </div>\n </div>\n }\n </div>\n <button\n class=\"btn btn-outline-primary btn-sm mt-2\"\n (click)=\"addNavbarSubtitle(i)\"\n >\n + Add Subtitle\n </button>\n </div>\n }\n </div>\n\n <button class=\"btn btn-primary mt-3\" (click)=\"addNavbarItem()\">\n + Add Navbar Item\n </button>\n </div>\n\n <div class=\"modal-footer\">\n <button class=\"btn btn-secondary\" (click)=\"onClose()\">Cancel</button>\n <button class=\"btn btn-primary\" (click)=\"onSave()\">Save</button>\n </div>\n `\n})\nexport class EditNavbarModalComponent {\n @Input() editingNavbar;\n @Output() save = new EventEmitter<void>();\n @Output() closeEvent = new EventEmitter<void>();\n\n dropNavbarItems(event) {\n moveItemInArray(this.editingNavbar.items, event.previousIndex, event.currentIndex);\n }\n\n dropNavbarSubtitles(index: number, event) {\n moveItemInArray(\n this.editingNavbar.items[index].subtitles,\n event.previousIndex,\n event.currentIndex\n );\n }\n\n addNavbarItem() {\n this.editingNavbar.items.push({\n title: '',\n path: '',\n subtitles: []\n });\n }\n\n removeNavbarItem(index: number) {\n this.editingNavbar.items.splice(index, 1);\n }\n\n addNavbarSubtitle(index: number) {\n this.editingNavbar.items[index].subtitles.push({\n title: '',\n path: ''\n });\n }\n\n removeNavbarSubtitle(navIndex: number, subIndex: number) {\n this.editingNavbar.items[navIndex].subtitles.splice(subIndex, 1);\n }\n\n onSave() {\n this.save.emit(this.editingNavbar);\n }\n\n onClose() {\n this.closeEvent.emit();\n }\n}\n"],"names":[],"mappings":";;;;;;;AAKA;;;;AAIG;MAiHU,wBAAwB,CAAA;AAhHrC,IAAA,WAAA,GAAA;AAkHc,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,YAAY,EAAQ;AAC/B,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAQ;AA4ClD,IAAA;AA1CG,IAAA,eAAe,CAAC,KAAK,EAAA;AACjB,QAAA,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;IACtF;IAEA,mBAAmB,CAAC,KAAa,EAAE,KAAK,EAAA;QACpC,eAAe,CACX,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,EACzC,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,YAAY,CACrB;IACL;IAEA,aAAa,GAAA;AACT,QAAA,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC;AAC1B,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,SAAS,EAAE;AACd,SAAA,CAAC;IACN;AAEA,IAAA,gBAAgB,CAAC,KAAa,EAAA;QAC1B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7C;AAEA,IAAA,iBAAiB,CAAC,KAAa,EAAA;QAC3B,IAAI,CAAC,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