@gravionlabs/helix-desktop 22.5.1 → 22.7.0
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/README.md +2 -0
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs +131 -109
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-desktop.mjs +209 -446
- package/fesm2022/gravionlabs-helix-desktop.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +34 -11
- package/types/gravionlabs-helix-desktop-tauri.d.ts +59 -5
- package/types/gravionlabs-helix-desktop.d.ts +75 -2
|
@@ -63,7 +63,7 @@ var HxActivityBar = class HxActivityBar {
|
|
|
63
63
|
}
|
|
64
64
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
65
65
|
minVersion: "12.0.0",
|
|
66
|
-
version: "22.2.
|
|
66
|
+
version: "22.2.6",
|
|
67
67
|
ngImport: i0,
|
|
68
68
|
type: HxActivityBar,
|
|
69
69
|
deps: [],
|
|
@@ -71,7 +71,7 @@ var HxActivityBar = class HxActivityBar {
|
|
|
71
71
|
});
|
|
72
72
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
73
73
|
minVersion: "17.0.0",
|
|
74
|
-
version: "22.2.
|
|
74
|
+
version: "22.2.6",
|
|
75
75
|
type: HxActivityBar,
|
|
76
76
|
isStandalone: true,
|
|
77
77
|
selector: "hx-activity-bar",
|
|
@@ -122,42 +122,7 @@ var HxActivityBar = class HxActivityBar {
|
|
|
122
122
|
isSignal: true
|
|
123
123
|
}],
|
|
124
124
|
ngImport: i0,
|
|
125
|
-
template:
|
|
126
|
-
@for (group of groups(); track group.name) {
|
|
127
|
-
<div class="hx-activity-bar-group" [class.hx-activity-bar-bottom]="group.name === 'bottom'">
|
|
128
|
-
@for (item of group.items; track item.id) {
|
|
129
|
-
<button
|
|
130
|
-
#button
|
|
131
|
-
type="button"
|
|
132
|
-
class="hx-activity-bar-item"
|
|
133
|
-
[class.hx-activity-bar-active]="isActive(item)"
|
|
134
|
-
[attr.data-id]="item.id"
|
|
135
|
-
[attr.aria-label]="item.label"
|
|
136
|
-
[attr.aria-pressed]="isView(item) ? isActive(item) : null"
|
|
137
|
-
[attr.title]="item.label"
|
|
138
|
-
[attr.tabindex]="item.id === tabStopId() ? 0 : -1"
|
|
139
|
-
(click)="select(item)"
|
|
140
|
-
>
|
|
141
|
-
<span class="hx-activity-bar-icon" aria-hidden="true">
|
|
142
|
-
@if (asTemplate(item.icon); as tpl) {
|
|
143
|
-
<ng-container [ngTemplateOutlet]="tpl" />
|
|
144
|
-
} @else {
|
|
145
|
-
<span [class]="item.icon"></span>
|
|
146
|
-
}
|
|
147
|
-
</span>
|
|
148
|
-
@if (item.badge !== undefined && item.badge !== null) {
|
|
149
|
-
<span
|
|
150
|
-
class="hx-activity-bar-badge"
|
|
151
|
-
[class.hx-activity-bar-badge-dot]="item.badge === true"
|
|
152
|
-
>{{ item.badge === true ? '' : item.badge }}</span
|
|
153
|
-
>
|
|
154
|
-
}
|
|
155
|
-
</button>
|
|
156
|
-
}
|
|
157
|
-
</div>
|
|
158
|
-
}
|
|
159
|
-
`,
|
|
160
|
-
isInline: true,
|
|
125
|
+
template: "@for (group of groups(); track group.name) {\n <div class=\"hx-activity-bar-group\" [class.hx-activity-bar-bottom]=\"group.name === 'bottom'\">\n @for (item of group.items; track item.id) {\n <button\n #button\n type=\"button\"\n class=\"hx-activity-bar-item\"\n [class.hx-activity-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"isView(item) ? isActive(item) : null\"\n [attr.title]=\"item.label\"\n [attr.tabindex]=\"item.id === tabStopId() ? 0 : -1\"\n (click)=\"select(item)\"\n >\n <span class=\"hx-activity-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span\n class=\"hx-activity-bar-badge\"\n [class.hx-activity-bar-badge-dot]=\"item.badge === true\"\n >{{ item.badge === true ? '' : item.badge }}</span\n >\n }\n </button>\n }\n </div>\n}\n",
|
|
161
126
|
dependencies: [{
|
|
162
127
|
kind: "directive",
|
|
163
128
|
type: NgTemplateOutlet,
|
|
@@ -173,7 +138,7 @@ var HxActivityBar = class HxActivityBar {
|
|
|
173
138
|
};
|
|
174
139
|
i0.ɵɵngDeclareClassMetadata({
|
|
175
140
|
minVersion: "12.0.0",
|
|
176
|
-
version: "22.2.
|
|
141
|
+
version: "22.2.6",
|
|
177
142
|
ngImport: i0,
|
|
178
143
|
type: HxActivityBar,
|
|
179
144
|
decorators: [{
|
|
@@ -189,41 +154,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
189
154
|
"[attr.aria-label]": "label()",
|
|
190
155
|
"(keydown)": "onKeydown($event)"
|
|
191
156
|
},
|
|
192
|
-
template:
|
|
193
|
-
@for (group of groups(); track group.name) {
|
|
194
|
-
<div class="hx-activity-bar-group" [class.hx-activity-bar-bottom]="group.name === 'bottom'">
|
|
195
|
-
@for (item of group.items; track item.id) {
|
|
196
|
-
<button
|
|
197
|
-
#button
|
|
198
|
-
type="button"
|
|
199
|
-
class="hx-activity-bar-item"
|
|
200
|
-
[class.hx-activity-bar-active]="isActive(item)"
|
|
201
|
-
[attr.data-id]="item.id"
|
|
202
|
-
[attr.aria-label]="item.label"
|
|
203
|
-
[attr.aria-pressed]="isView(item) ? isActive(item) : null"
|
|
204
|
-
[attr.title]="item.label"
|
|
205
|
-
[attr.tabindex]="item.id === tabStopId() ? 0 : -1"
|
|
206
|
-
(click)="select(item)"
|
|
207
|
-
>
|
|
208
|
-
<span class="hx-activity-bar-icon" aria-hidden="true">
|
|
209
|
-
@if (asTemplate(item.icon); as tpl) {
|
|
210
|
-
<ng-container [ngTemplateOutlet]="tpl" />
|
|
211
|
-
} @else {
|
|
212
|
-
<span [class]="item.icon"></span>
|
|
213
|
-
}
|
|
214
|
-
</span>
|
|
215
|
-
@if (item.badge !== undefined && item.badge !== null) {
|
|
216
|
-
<span
|
|
217
|
-
class="hx-activity-bar-badge"
|
|
218
|
-
[class.hx-activity-bar-badge-dot]="item.badge === true"
|
|
219
|
-
>{{ item.badge === true ? '' : item.badge }}</span
|
|
220
|
-
>
|
|
221
|
-
}
|
|
222
|
-
</button>
|
|
223
|
-
}
|
|
224
|
-
</div>
|
|
225
|
-
}
|
|
226
|
-
`
|
|
157
|
+
template: "@for (group of groups(); track group.name) {\n <div class=\"hx-activity-bar-group\" [class.hx-activity-bar-bottom]=\"group.name === 'bottom'\">\n @for (item of group.items; track item.id) {\n <button\n #button\n type=\"button\"\n class=\"hx-activity-bar-item\"\n [class.hx-activity-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"isView(item) ? isActive(item) : null\"\n [attr.title]=\"item.label\"\n [attr.tabindex]=\"item.id === tabStopId() ? 0 : -1\"\n (click)=\"select(item)\"\n >\n <span class=\"hx-activity-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span\n class=\"hx-activity-bar-badge\"\n [class.hx-activity-bar-badge-dot]=\"item.badge === true\"\n >{{ item.badge === true ? '' : item.badge }}</span\n >\n }\n </button>\n }\n </div>\n}\n"
|
|
227
158
|
}]
|
|
228
159
|
}],
|
|
229
160
|
propDecorators: {
|
|
@@ -290,11 +221,26 @@ var HxAppShell = class HxAppShell {
|
|
|
290
221
|
...ngDevMode ? { debugName: "fixedWidth" } : /* istanbul ignore next */ {},
|
|
291
222
|
transform: booleanAttribute
|
|
292
223
|
});
|
|
224
|
+
bottomHeight = model(200, ...ngDevMode ? [{ debugName: "bottomHeight" }] : /* istanbul ignore next */ []);
|
|
225
|
+
bottomOpen = model(false, ...ngDevMode ? [{ debugName: "bottomOpen" }] : /* istanbul ignore next */ []);
|
|
226
|
+
minBottomHeight = input(80, {
|
|
227
|
+
...ngDevMode ? { debugName: "minBottomHeight" } : /* istanbul ignore next */ {},
|
|
228
|
+
transform: numberAttribute
|
|
229
|
+
});
|
|
230
|
+
maxBottomHeight = input(480, {
|
|
231
|
+
...ngDevMode ? { debugName: "maxBottomHeight" } : /* istanbul ignore next */ {},
|
|
232
|
+
transform: numberAttribute
|
|
233
|
+
});
|
|
234
|
+
bottomResizerLabel = input("Resize bottom panel", ...ngDevMode ? [{ debugName: "bottomResizerLabel" }] : /* istanbul ignore next */ []);
|
|
293
235
|
sidebarChange = output();
|
|
294
236
|
width = computed(() => this.clamp(this.sidebarWidth()), ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
237
|
+
height = computed(() => this.clampHeight(this.bottomHeight()), ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
295
238
|
dragStartX = 0;
|
|
296
239
|
dragStartWidth = 0;
|
|
297
240
|
dragging = false;
|
|
241
|
+
dragStartY = 0;
|
|
242
|
+
dragStartHeight = 0;
|
|
243
|
+
draggingBottom = false;
|
|
298
244
|
selectView(id) {
|
|
299
245
|
if (id === this.activeId() && !this.collapsed()) this.collapsed.set(true);
|
|
300
246
|
else {
|
|
@@ -303,12 +249,62 @@ var HxAppShell = class HxAppShell {
|
|
|
303
249
|
}
|
|
304
250
|
this.report();
|
|
305
251
|
}
|
|
252
|
+
showView(id) {
|
|
253
|
+
this.activeId.set(id);
|
|
254
|
+
this.collapsed.set(false);
|
|
255
|
+
this.report();
|
|
256
|
+
}
|
|
306
257
|
resizeTo(width) {
|
|
307
258
|
const next = this.clamp(width);
|
|
308
259
|
if (next === this.sidebarWidth()) return;
|
|
309
260
|
this.sidebarWidth.set(next);
|
|
310
261
|
this.report();
|
|
311
262
|
}
|
|
263
|
+
toggleBottom() {
|
|
264
|
+
this.bottomOpen.update((open) => !open);
|
|
265
|
+
}
|
|
266
|
+
resizeBottomTo(height) {
|
|
267
|
+
const next = this.clampHeight(height);
|
|
268
|
+
if (next === this.bottomHeight()) return;
|
|
269
|
+
this.bottomHeight.set(next);
|
|
270
|
+
}
|
|
271
|
+
onBottomPointerDown(event) {
|
|
272
|
+
if (this.fixedWidth() || event.button > 0) return;
|
|
273
|
+
this.draggingBottom = true;
|
|
274
|
+
this.dragStartY = event.clientY;
|
|
275
|
+
this.dragStartHeight = this.height();
|
|
276
|
+
event.target.setPointerCapture?.(event.pointerId);
|
|
277
|
+
event.preventDefault();
|
|
278
|
+
}
|
|
279
|
+
onBottomPointerMove(event) {
|
|
280
|
+
if (!this.draggingBottom) return;
|
|
281
|
+
this.resizeBottomTo(this.dragStartHeight - (event.clientY - this.dragStartY));
|
|
282
|
+
}
|
|
283
|
+
onBottomPointerEnd(event) {
|
|
284
|
+
if (!this.draggingBottom) return;
|
|
285
|
+
this.draggingBottom = false;
|
|
286
|
+
event.target.releasePointerCapture?.(event.pointerId);
|
|
287
|
+
}
|
|
288
|
+
onBottomKeydown(event) {
|
|
289
|
+
if (this.fixedWidth()) return;
|
|
290
|
+
const step = this.step() * (event.shiftKey ? 4 : 1);
|
|
291
|
+
switch (event.key) {
|
|
292
|
+
case "ArrowUp":
|
|
293
|
+
this.resizeBottomTo(this.height() + step);
|
|
294
|
+
break;
|
|
295
|
+
case "ArrowDown":
|
|
296
|
+
this.resizeBottomTo(this.height() - step);
|
|
297
|
+
break;
|
|
298
|
+
case "Home":
|
|
299
|
+
this.resizeBottomTo(this.minBottomHeight());
|
|
300
|
+
break;
|
|
301
|
+
case "End":
|
|
302
|
+
this.resizeBottomTo(this.maxBottomHeight());
|
|
303
|
+
break;
|
|
304
|
+
default: return;
|
|
305
|
+
}
|
|
306
|
+
event.preventDefault();
|
|
307
|
+
}
|
|
312
308
|
onPointerDown(event) {
|
|
313
309
|
if (this.fixedWidth() || event.button > 0) return;
|
|
314
310
|
this.dragging = true;
|
|
@@ -352,6 +348,9 @@ var HxAppShell = class HxAppShell {
|
|
|
352
348
|
clamp(width) {
|
|
353
349
|
return Math.min(this.maxWidth(), Math.max(this.minWidth(), Math.round(width)));
|
|
354
350
|
}
|
|
351
|
+
clampHeight(height) {
|
|
352
|
+
return Math.min(this.maxBottomHeight(), Math.max(this.minBottomHeight(), Math.round(height)));
|
|
353
|
+
}
|
|
355
354
|
report() {
|
|
356
355
|
this.sidebarChange.emit({
|
|
357
356
|
width: this.width(),
|
|
@@ -360,7 +359,7 @@ var HxAppShell = class HxAppShell {
|
|
|
360
359
|
}
|
|
361
360
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
362
361
|
minVersion: "12.0.0",
|
|
363
|
-
version: "22.2.
|
|
362
|
+
version: "22.2.6",
|
|
364
363
|
ngImport: i0,
|
|
365
364
|
type: HxAppShell,
|
|
366
365
|
deps: [],
|
|
@@ -368,7 +367,7 @@ var HxAppShell = class HxAppShell {
|
|
|
368
367
|
});
|
|
369
368
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
370
369
|
minVersion: "17.0.0",
|
|
371
|
-
version: "22.2.
|
|
370
|
+
version: "22.2.6",
|
|
372
371
|
type: HxAppShell,
|
|
373
372
|
isStandalone: true,
|
|
374
373
|
selector: "hx-app-shell",
|
|
@@ -428,56 +427,60 @@ var HxAppShell = class HxAppShell {
|
|
|
428
427
|
isSignal: true,
|
|
429
428
|
isRequired: false,
|
|
430
429
|
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
bottomHeight: {
|
|
432
|
+
classPropertyName: "bottomHeight",
|
|
433
|
+
publicName: "bottomHeight",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
bottomOpen: {
|
|
439
|
+
classPropertyName: "bottomOpen",
|
|
440
|
+
publicName: "bottomOpen",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
minBottomHeight: {
|
|
446
|
+
classPropertyName: "minBottomHeight",
|
|
447
|
+
publicName: "minBottomHeight",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
maxBottomHeight: {
|
|
453
|
+
classPropertyName: "maxBottomHeight",
|
|
454
|
+
publicName: "maxBottomHeight",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
bottomResizerLabel: {
|
|
460
|
+
classPropertyName: "bottomResizerLabel",
|
|
461
|
+
publicName: "bottomResizerLabel",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
431
465
|
}
|
|
432
466
|
},
|
|
433
467
|
outputs: {
|
|
434
468
|
sidebarWidth: "sidebarWidthChange",
|
|
435
469
|
collapsed: "collapsedChange",
|
|
436
470
|
activeId: "activeIdChange",
|
|
471
|
+
bottomHeight: "bottomHeightChange",
|
|
472
|
+
bottomOpen: "bottomOpenChange",
|
|
437
473
|
sidebarChange: "sidebarChange"
|
|
438
474
|
},
|
|
439
475
|
host: { classAttribute: "hx-app-shell" },
|
|
440
476
|
ngImport: i0,
|
|
441
|
-
template:
|
|
442
|
-
<ng-content select="[slot=toolbar]" />
|
|
443
|
-
<div class="hx-app-shell-body">
|
|
444
|
-
<ng-content select="[slot=activity]" />
|
|
445
|
-
<div
|
|
446
|
-
class="hx-app-shell-sidebar"
|
|
447
|
-
[hidden]="collapsed()"
|
|
448
|
-
[style.width.px]="width()"
|
|
449
|
-
>
|
|
450
|
-
<ng-content select="[slot=sidebar]" />
|
|
451
|
-
</div>
|
|
452
|
-
@if (!collapsed()) {
|
|
453
|
-
<div
|
|
454
|
-
class="hx-app-shell-resizer"
|
|
455
|
-
role="separator"
|
|
456
|
-
aria-orientation="vertical"
|
|
457
|
-
tabindex="0"
|
|
458
|
-
[attr.aria-label]="resizerLabel()"
|
|
459
|
-
[attr.aria-valuenow]="width()"
|
|
460
|
-
[attr.aria-valuemin]="minWidth()"
|
|
461
|
-
[attr.aria-valuemax]="maxWidth()"
|
|
462
|
-
(pointerdown)="onPointerDown($event)"
|
|
463
|
-
(pointermove)="onPointerMove($event)"
|
|
464
|
-
(pointerup)="onPointerEnd($event)"
|
|
465
|
-
(pointercancel)="onPointerEnd($event)"
|
|
466
|
-
(keydown)="onKeydown($event)"
|
|
467
|
-
></div>
|
|
468
|
-
}
|
|
469
|
-
<main class="hx-app-shell-content"><ng-content /></main>
|
|
470
|
-
<ng-content select="[slot=panel]" />
|
|
471
|
-
</div>
|
|
472
|
-
<ng-content select="[slot=status]" />
|
|
473
|
-
`,
|
|
474
|
-
isInline: true,
|
|
477
|
+
template: "<ng-content select=\"[slot=toolbar]\" />\n<div class=\"hx-app-shell-body\">\n <ng-content select=\"[slot=activity]\" />\n <div class=\"hx-app-shell-sidebar\" [hidden]=\"collapsed()\" [style.width.px]=\"width()\">\n <ng-content select=\"[slot=sidebar]\" />\n </div>\n @if (!collapsed()) {\n <div\n class=\"hx-app-shell-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"resizerLabel()\"\n [attr.aria-valuenow]=\"width()\"\n [attr.aria-valuemin]=\"minWidth()\"\n [attr.aria-valuemax]=\"maxWidth()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerEnd($event)\"\n (pointercancel)=\"onPointerEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-main\">\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n @if (bottomOpen()) {\n <div\n class=\"hx-app-shell-resizer hx-app-shell-resizer-bottom\"\n role=\"separator\"\n aria-orientation=\"horizontal\"\n tabindex=\"0\"\n [attr.aria-label]=\"bottomResizerLabel()\"\n [attr.aria-valuenow]=\"height()\"\n [attr.aria-valuemin]=\"minBottomHeight()\"\n [attr.aria-valuemax]=\"maxBottomHeight()\"\n (pointerdown)=\"onBottomPointerDown($event)\"\n (pointermove)=\"onBottomPointerMove($event)\"\n (pointerup)=\"onBottomPointerEnd($event)\"\n (pointercancel)=\"onBottomPointerEnd($event)\"\n (keydown)=\"onBottomKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-bottom\" [hidden]=\"!bottomOpen()\" [style.height.px]=\"height()\">\n <ng-content select=\"[slot=bottom]\" />\n </div>\n </div>\n <ng-content select=\"[slot=panel]\" />\n</div>\n<ng-content select=\"[slot=status]\" />\n",
|
|
475
478
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
476
479
|
});
|
|
477
480
|
};
|
|
478
481
|
i0.ɵɵngDeclareClassMetadata({
|
|
479
482
|
minVersion: "12.0.0",
|
|
480
|
-
version: "22.2.
|
|
483
|
+
version: "22.2.6",
|
|
481
484
|
ngImport: i0,
|
|
482
485
|
type: HxAppShell,
|
|
483
486
|
decorators: [{
|
|
@@ -486,39 +489,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
486
489
|
selector: "hx-app-shell",
|
|
487
490
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
488
491
|
host: { class: "hx-app-shell" },
|
|
489
|
-
template:
|
|
490
|
-
<ng-content select="[slot=toolbar]" />
|
|
491
|
-
<div class="hx-app-shell-body">
|
|
492
|
-
<ng-content select="[slot=activity]" />
|
|
493
|
-
<div
|
|
494
|
-
class="hx-app-shell-sidebar"
|
|
495
|
-
[hidden]="collapsed()"
|
|
496
|
-
[style.width.px]="width()"
|
|
497
|
-
>
|
|
498
|
-
<ng-content select="[slot=sidebar]" />
|
|
499
|
-
</div>
|
|
500
|
-
@if (!collapsed()) {
|
|
501
|
-
<div
|
|
502
|
-
class="hx-app-shell-resizer"
|
|
503
|
-
role="separator"
|
|
504
|
-
aria-orientation="vertical"
|
|
505
|
-
tabindex="0"
|
|
506
|
-
[attr.aria-label]="resizerLabel()"
|
|
507
|
-
[attr.aria-valuenow]="width()"
|
|
508
|
-
[attr.aria-valuemin]="minWidth()"
|
|
509
|
-
[attr.aria-valuemax]="maxWidth()"
|
|
510
|
-
(pointerdown)="onPointerDown($event)"
|
|
511
|
-
(pointermove)="onPointerMove($event)"
|
|
512
|
-
(pointerup)="onPointerEnd($event)"
|
|
513
|
-
(pointercancel)="onPointerEnd($event)"
|
|
514
|
-
(keydown)="onKeydown($event)"
|
|
515
|
-
></div>
|
|
516
|
-
}
|
|
517
|
-
<main class="hx-app-shell-content"><ng-content /></main>
|
|
518
|
-
<ng-content select="[slot=panel]" />
|
|
519
|
-
</div>
|
|
520
|
-
<ng-content select="[slot=status]" />
|
|
521
|
-
`
|
|
492
|
+
template: "<ng-content select=\"[slot=toolbar]\" />\n<div class=\"hx-app-shell-body\">\n <ng-content select=\"[slot=activity]\" />\n <div class=\"hx-app-shell-sidebar\" [hidden]=\"collapsed()\" [style.width.px]=\"width()\">\n <ng-content select=\"[slot=sidebar]\" />\n </div>\n @if (!collapsed()) {\n <div\n class=\"hx-app-shell-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"resizerLabel()\"\n [attr.aria-valuenow]=\"width()\"\n [attr.aria-valuemin]=\"minWidth()\"\n [attr.aria-valuemax]=\"maxWidth()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerEnd($event)\"\n (pointercancel)=\"onPointerEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-main\">\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n @if (bottomOpen()) {\n <div\n class=\"hx-app-shell-resizer hx-app-shell-resizer-bottom\"\n role=\"separator\"\n aria-orientation=\"horizontal\"\n tabindex=\"0\"\n [attr.aria-label]=\"bottomResizerLabel()\"\n [attr.aria-valuenow]=\"height()\"\n [attr.aria-valuemin]=\"minBottomHeight()\"\n [attr.aria-valuemax]=\"maxBottomHeight()\"\n (pointerdown)=\"onBottomPointerDown($event)\"\n (pointermove)=\"onBottomPointerMove($event)\"\n (pointerup)=\"onBottomPointerEnd($event)\"\n (pointercancel)=\"onBottomPointerEnd($event)\"\n (keydown)=\"onBottomKeydown($event)\"\n ></div>\n }\n <div class=\"hx-app-shell-bottom\" [hidden]=\"!bottomOpen()\" [style.height.px]=\"height()\">\n <ng-content select=\"[slot=bottom]\" />\n </div>\n </div>\n <ng-content select=\"[slot=panel]\" />\n</div>\n<ng-content select=\"[slot=status]\" />\n"
|
|
522
493
|
}]
|
|
523
494
|
}],
|
|
524
495
|
propDecorators: {
|
|
@@ -595,6 +566,52 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
595
566
|
required: false
|
|
596
567
|
}]
|
|
597
568
|
}],
|
|
569
|
+
bottomHeight: [{
|
|
570
|
+
type: i0.Input,
|
|
571
|
+
args: [{
|
|
572
|
+
isSignal: true,
|
|
573
|
+
alias: "bottomHeight",
|
|
574
|
+
required: false
|
|
575
|
+
}]
|
|
576
|
+
}, {
|
|
577
|
+
type: i0.Output,
|
|
578
|
+
args: ["bottomHeightChange"]
|
|
579
|
+
}],
|
|
580
|
+
bottomOpen: [{
|
|
581
|
+
type: i0.Input,
|
|
582
|
+
args: [{
|
|
583
|
+
isSignal: true,
|
|
584
|
+
alias: "bottomOpen",
|
|
585
|
+
required: false
|
|
586
|
+
}]
|
|
587
|
+
}, {
|
|
588
|
+
type: i0.Output,
|
|
589
|
+
args: ["bottomOpenChange"]
|
|
590
|
+
}],
|
|
591
|
+
minBottomHeight: [{
|
|
592
|
+
type: i0.Input,
|
|
593
|
+
args: [{
|
|
594
|
+
isSignal: true,
|
|
595
|
+
alias: "minBottomHeight",
|
|
596
|
+
required: false
|
|
597
|
+
}]
|
|
598
|
+
}],
|
|
599
|
+
maxBottomHeight: [{
|
|
600
|
+
type: i0.Input,
|
|
601
|
+
args: [{
|
|
602
|
+
isSignal: true,
|
|
603
|
+
alias: "maxBottomHeight",
|
|
604
|
+
required: false
|
|
605
|
+
}]
|
|
606
|
+
}],
|
|
607
|
+
bottomResizerLabel: [{
|
|
608
|
+
type: i0.Input,
|
|
609
|
+
args: [{
|
|
610
|
+
isSignal: true,
|
|
611
|
+
alias: "bottomResizerLabel",
|
|
612
|
+
required: false
|
|
613
|
+
}]
|
|
614
|
+
}],
|
|
598
615
|
sidebarChange: [{
|
|
599
616
|
type: i0.Output,
|
|
600
617
|
args: ["sidebarChange"]
|
|
@@ -608,7 +625,7 @@ var HxAppToolbar = class HxAppToolbar {
|
|
|
608
625
|
});
|
|
609
626
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
610
627
|
minVersion: "12.0.0",
|
|
611
|
-
version: "22.2.
|
|
628
|
+
version: "22.2.6",
|
|
612
629
|
ngImport: i0,
|
|
613
630
|
type: HxAppToolbar,
|
|
614
631
|
deps: [],
|
|
@@ -616,7 +633,7 @@ var HxAppToolbar = class HxAppToolbar {
|
|
|
616
633
|
});
|
|
617
634
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
618
635
|
minVersion: "17.1.0",
|
|
619
|
-
version: "22.2.
|
|
636
|
+
version: "22.2.6",
|
|
620
637
|
type: HxAppToolbar,
|
|
621
638
|
isStandalone: true,
|
|
622
639
|
selector: "hx-app-toolbar",
|
|
@@ -633,18 +650,13 @@ var HxAppToolbar = class HxAppToolbar {
|
|
|
633
650
|
classAttribute: "hx-app-toolbar"
|
|
634
651
|
},
|
|
635
652
|
ngImport: i0,
|
|
636
|
-
template:
|
|
637
|
-
<div class="hx-app-toolbar-start"><ng-content select="[slot=start]" /></div>
|
|
638
|
-
<div class="hx-app-toolbar-centre" data-tauri-drag-region><ng-content select="[slot=centre]" /></div>
|
|
639
|
-
<div class="hx-app-toolbar-end"><ng-content select="[slot=end]" /></div>
|
|
640
|
-
`,
|
|
641
|
-
isInline: true,
|
|
653
|
+
template: "<div class=\"hx-app-toolbar-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-app-toolbar-centre\" data-tauri-drag-region>\n <ng-content select=\"[slot=centre]\" />\n</div>\n<div class=\"hx-app-toolbar-end\"><ng-content select=\"[slot=end]\" /></div>\n",
|
|
642
654
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
643
655
|
});
|
|
644
656
|
};
|
|
645
657
|
i0.ɵɵngDeclareClassMetadata({
|
|
646
658
|
minVersion: "12.0.0",
|
|
647
|
-
version: "22.2.
|
|
659
|
+
version: "22.2.6",
|
|
648
660
|
ngImport: i0,
|
|
649
661
|
type: HxAppToolbar,
|
|
650
662
|
decorators: [{
|
|
@@ -657,11 +669,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
657
669
|
"[class.hx-app-toolbar-inset]": "windowButtonsInset()",
|
|
658
670
|
"data-tauri-drag-region": ""
|
|
659
671
|
},
|
|
660
|
-
template:
|
|
661
|
-
<div class="hx-app-toolbar-start"><ng-content select="[slot=start]" /></div>
|
|
662
|
-
<div class="hx-app-toolbar-centre" data-tauri-drag-region><ng-content select="[slot=centre]" /></div>
|
|
663
|
-
<div class="hx-app-toolbar-end"><ng-content select="[slot=end]" /></div>
|
|
664
|
-
`
|
|
672
|
+
template: "<div class=\"hx-app-toolbar-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-app-toolbar-centre\" data-tauri-drag-region>\n <ng-content select=\"[slot=centre]\" />\n</div>\n<div class=\"hx-app-toolbar-end\"><ng-content select=\"[slot=end]\" /></div>\n"
|
|
665
673
|
}]
|
|
666
674
|
}],
|
|
667
675
|
propDecorators: { windowButtonsInset: [{
|
|
@@ -688,7 +696,7 @@ var HxBottomBar = class HxBottomBar {
|
|
|
688
696
|
}
|
|
689
697
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
690
698
|
minVersion: "12.0.0",
|
|
691
|
-
version: "22.2.
|
|
699
|
+
version: "22.2.6",
|
|
692
700
|
ngImport: i0,
|
|
693
701
|
type: HxBottomBar,
|
|
694
702
|
deps: [],
|
|
@@ -696,7 +704,7 @@ var HxBottomBar = class HxBottomBar {
|
|
|
696
704
|
});
|
|
697
705
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
698
706
|
minVersion: "17.0.0",
|
|
699
|
-
version: "22.2.
|
|
707
|
+
version: "22.2.6",
|
|
700
708
|
type: HxBottomBar,
|
|
701
709
|
isStandalone: true,
|
|
702
710
|
selector: "hx-bottom-bar",
|
|
@@ -730,34 +738,7 @@ var HxBottomBar = class HxBottomBar {
|
|
|
730
738
|
classAttribute: "hx-bottom-bar"
|
|
731
739
|
},
|
|
732
740
|
ngImport: i0,
|
|
733
|
-
template:
|
|
734
|
-
@for (item of visible(); track item.id) {
|
|
735
|
-
<button
|
|
736
|
-
type="button"
|
|
737
|
-
class="hx-bottom-bar-item"
|
|
738
|
-
[class.hx-bottom-bar-active]="isActive(item)"
|
|
739
|
-
[attr.data-id]="item.id"
|
|
740
|
-
[attr.aria-label]="item.label"
|
|
741
|
-
[attr.aria-pressed]="item.kind === 'action' ? null : isActive(item)"
|
|
742
|
-
(click)="selected.emit(item.id)"
|
|
743
|
-
>
|
|
744
|
-
<span class="hx-bottom-bar-icon" aria-hidden="true">
|
|
745
|
-
@if (asTemplate(item.icon); as tpl) {
|
|
746
|
-
<ng-container [ngTemplateOutlet]="tpl" />
|
|
747
|
-
} @else {
|
|
748
|
-
<span [class]="item.icon"></span>
|
|
749
|
-
}
|
|
750
|
-
</span>
|
|
751
|
-
<span class="hx-bottom-bar-label">{{ item.label }}</span>
|
|
752
|
-
@if (item.badge !== undefined && item.badge !== null) {
|
|
753
|
-
<span class="hx-bottom-bar-badge" [class.hx-bottom-bar-badge-dot]="item.badge === true">{{
|
|
754
|
-
item.badge === true ? '' : item.badge
|
|
755
|
-
}}</span>
|
|
756
|
-
}
|
|
757
|
-
</button>
|
|
758
|
-
}
|
|
759
|
-
`,
|
|
760
|
-
isInline: true,
|
|
741
|
+
template: "@for (item of visible(); track item.id) {\n <button\n type=\"button\"\n class=\"hx-bottom-bar-item\"\n [class.hx-bottom-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"item.kind === 'action' ? null : isActive(item)\"\n (click)=\"selected.emit(item.id)\"\n >\n <span class=\"hx-bottom-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n <span class=\"hx-bottom-bar-label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"hx-bottom-bar-badge\" [class.hx-bottom-bar-badge-dot]=\"item.badge === true\">{{\n item.badge === true ? '' : item.badge\n }}</span>\n }\n </button>\n}\n",
|
|
761
742
|
dependencies: [{
|
|
762
743
|
kind: "directive",
|
|
763
744
|
type: NgTemplateOutlet,
|
|
@@ -773,7 +754,7 @@ var HxBottomBar = class HxBottomBar {
|
|
|
773
754
|
};
|
|
774
755
|
i0.ɵɵngDeclareClassMetadata({
|
|
775
756
|
minVersion: "12.0.0",
|
|
776
|
-
version: "22.2.
|
|
757
|
+
version: "22.2.6",
|
|
777
758
|
ngImport: i0,
|
|
778
759
|
type: HxBottomBar,
|
|
779
760
|
decorators: [{
|
|
@@ -787,33 +768,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
787
768
|
role: "toolbar",
|
|
788
769
|
"[attr.aria-label]": "label()"
|
|
789
770
|
},
|
|
790
|
-
template:
|
|
791
|
-
@for (item of visible(); track item.id) {
|
|
792
|
-
<button
|
|
793
|
-
type="button"
|
|
794
|
-
class="hx-bottom-bar-item"
|
|
795
|
-
[class.hx-bottom-bar-active]="isActive(item)"
|
|
796
|
-
[attr.data-id]="item.id"
|
|
797
|
-
[attr.aria-label]="item.label"
|
|
798
|
-
[attr.aria-pressed]="item.kind === 'action' ? null : isActive(item)"
|
|
799
|
-
(click)="selected.emit(item.id)"
|
|
800
|
-
>
|
|
801
|
-
<span class="hx-bottom-bar-icon" aria-hidden="true">
|
|
802
|
-
@if (asTemplate(item.icon); as tpl) {
|
|
803
|
-
<ng-container [ngTemplateOutlet]="tpl" />
|
|
804
|
-
} @else {
|
|
805
|
-
<span [class]="item.icon"></span>
|
|
806
|
-
}
|
|
807
|
-
</span>
|
|
808
|
-
<span class="hx-bottom-bar-label">{{ item.label }}</span>
|
|
809
|
-
@if (item.badge !== undefined && item.badge !== null) {
|
|
810
|
-
<span class="hx-bottom-bar-badge" [class.hx-bottom-bar-badge-dot]="item.badge === true">{{
|
|
811
|
-
item.badge === true ? '' : item.badge
|
|
812
|
-
}}</span>
|
|
813
|
-
}
|
|
814
|
-
</button>
|
|
815
|
-
}
|
|
816
|
-
`
|
|
771
|
+
template: "@for (item of visible(); track item.id) {\n <button\n type=\"button\"\n class=\"hx-bottom-bar-item\"\n [class.hx-bottom-bar-active]=\"isActive(item)\"\n [attr.data-id]=\"item.id\"\n [attr.aria-label]=\"item.label\"\n [attr.aria-pressed]=\"item.kind === 'action' ? null : isActive(item)\"\n (click)=\"selected.emit(item.id)\"\n >\n <span class=\"hx-bottom-bar-icon\" aria-hidden=\"true\">\n @if (asTemplate(item.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"item.icon\"></span>\n }\n </span>\n <span class=\"hx-bottom-bar-label\">{{ item.label }}</span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"hx-bottom-bar-badge\" [class.hx-bottom-bar-badge-dot]=\"item.badge === true\">{{\n item.badge === true ? '' : item.badge\n }}</span>\n }\n </button>\n}\n"
|
|
817
772
|
}]
|
|
818
773
|
}],
|
|
819
774
|
propDecorators: {
|
|
@@ -879,7 +834,7 @@ var HxMobileShell = class HxMobileShell {
|
|
|
879
834
|
}
|
|
880
835
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
881
836
|
minVersion: "12.0.0",
|
|
882
|
-
version: "22.2.
|
|
837
|
+
version: "22.2.6",
|
|
883
838
|
ngImport: i0,
|
|
884
839
|
type: HxMobileShell,
|
|
885
840
|
deps: [],
|
|
@@ -887,7 +842,7 @@ var HxMobileShell = class HxMobileShell {
|
|
|
887
842
|
});
|
|
888
843
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
889
844
|
minVersion: "17.1.0",
|
|
890
|
-
version: "22.2.
|
|
845
|
+
version: "22.2.6",
|
|
891
846
|
type: HxMobileShell,
|
|
892
847
|
isStandalone: true,
|
|
893
848
|
selector: "hx-mobile-shell",
|
|
@@ -948,41 +903,7 @@ var HxMobileShell = class HxMobileShell {
|
|
|
948
903
|
},
|
|
949
904
|
host: { classAttribute: "hx-mobile-shell" },
|
|
950
905
|
ngImport: i0,
|
|
951
|
-
template:
|
|
952
|
-
<header class="hx-mobile-shell-bar">
|
|
953
|
-
<button
|
|
954
|
-
type="button"
|
|
955
|
-
class="hx-mobile-shell-menu"
|
|
956
|
-
[attr.aria-label]="menuLabel()"
|
|
957
|
-
aria-haspopup="dialog"
|
|
958
|
-
[attr.aria-expanded]="drawerOpen()"
|
|
959
|
-
(click)="drawerOpen.set(true)"
|
|
960
|
-
>
|
|
961
|
-
<span aria-hidden="true">☰</span>
|
|
962
|
-
</button>
|
|
963
|
-
<span class="hx-mobile-shell-title">{{ heading() }}</span>
|
|
964
|
-
<ng-content select="[slot=end]" />
|
|
965
|
-
</header>
|
|
966
|
-
<main class="hx-mobile-shell-content"><ng-content /></main>
|
|
967
|
-
<hx-bottom-bar [items]="items()" [activeId]="activeId()" [label]="barLabel()" (selected)="onBarSelect($event)" />
|
|
968
|
-
<hx-drawer
|
|
969
|
-
[(visible)]="drawerOpen"
|
|
970
|
-
position="left"
|
|
971
|
-
[ariaLabel]="menuLabel()"
|
|
972
|
-
[closeLabel]="closeLabel()"
|
|
973
|
-
width="min(20rem, 85vw)"
|
|
974
|
-
panelClass="hx-mobile-shell-drawer"
|
|
975
|
-
>
|
|
976
|
-
<div
|
|
977
|
-
class="hx-mobile-shell-drawer-body"
|
|
978
|
-
(touchstart)="onTouchStart($event)"
|
|
979
|
-
(touchend)="onTouchEnd($event)"
|
|
980
|
-
>
|
|
981
|
-
<ng-content select="[slot=drawer]" />
|
|
982
|
-
</div>
|
|
983
|
-
</hx-drawer>
|
|
984
|
-
`,
|
|
985
|
-
isInline: true,
|
|
906
|
+
template: "<header class=\"hx-mobile-shell-bar\">\n <button\n type=\"button\"\n class=\"hx-mobile-shell-menu\"\n [attr.aria-label]=\"menuLabel()\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"drawerOpen()\"\n (click)=\"drawerOpen.set(true)\"\n >\n <span aria-hidden=\"true\">☰</span>\n </button>\n <span class=\"hx-mobile-shell-title\">{{ heading() }}</span>\n <ng-content select=\"[slot=end]\" />\n</header>\n<main class=\"hx-mobile-shell-content\"><ng-content /></main>\n<hx-bottom-bar\n [items]=\"items()\"\n [activeId]=\"activeId()\"\n [label]=\"barLabel()\"\n (selected)=\"onBarSelect($event)\"\n/>\n<hx-drawer\n [(visible)]=\"drawerOpen\"\n position=\"left\"\n [ariaLabel]=\"menuLabel()\"\n [closeLabel]=\"closeLabel()\"\n width=\"min(20rem, 85vw)\"\n panelClass=\"hx-mobile-shell-drawer\"\n>\n <div\n class=\"hx-mobile-shell-drawer-body\"\n (touchstart)=\"onTouchStart($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content select=\"[slot=drawer]\" />\n </div>\n</hx-drawer>\n",
|
|
986
907
|
dependencies: [{
|
|
987
908
|
kind: "component",
|
|
988
909
|
type: HxBottomBar,
|
|
@@ -1023,7 +944,7 @@ var HxMobileShell = class HxMobileShell {
|
|
|
1023
944
|
};
|
|
1024
945
|
i0.ɵɵngDeclareClassMetadata({
|
|
1025
946
|
minVersion: "12.0.0",
|
|
1026
|
-
version: "22.2.
|
|
947
|
+
version: "22.2.6",
|
|
1027
948
|
ngImport: i0,
|
|
1028
949
|
type: HxMobileShell,
|
|
1029
950
|
decorators: [{
|
|
@@ -1033,40 +954,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1033
954
|
imports: [HxBottomBar, HxDrawer],
|
|
1034
955
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1035
956
|
host: { class: "hx-mobile-shell" },
|
|
1036
|
-
template:
|
|
1037
|
-
<header class="hx-mobile-shell-bar">
|
|
1038
|
-
<button
|
|
1039
|
-
type="button"
|
|
1040
|
-
class="hx-mobile-shell-menu"
|
|
1041
|
-
[attr.aria-label]="menuLabel()"
|
|
1042
|
-
aria-haspopup="dialog"
|
|
1043
|
-
[attr.aria-expanded]="drawerOpen()"
|
|
1044
|
-
(click)="drawerOpen.set(true)"
|
|
1045
|
-
>
|
|
1046
|
-
<span aria-hidden="true">☰</span>
|
|
1047
|
-
</button>
|
|
1048
|
-
<span class="hx-mobile-shell-title">{{ heading() }}</span>
|
|
1049
|
-
<ng-content select="[slot=end]" />
|
|
1050
|
-
</header>
|
|
1051
|
-
<main class="hx-mobile-shell-content"><ng-content /></main>
|
|
1052
|
-
<hx-bottom-bar [items]="items()" [activeId]="activeId()" [label]="barLabel()" (selected)="onBarSelect($event)" />
|
|
1053
|
-
<hx-drawer
|
|
1054
|
-
[(visible)]="drawerOpen"
|
|
1055
|
-
position="left"
|
|
1056
|
-
[ariaLabel]="menuLabel()"
|
|
1057
|
-
[closeLabel]="closeLabel()"
|
|
1058
|
-
width="min(20rem, 85vw)"
|
|
1059
|
-
panelClass="hx-mobile-shell-drawer"
|
|
1060
|
-
>
|
|
1061
|
-
<div
|
|
1062
|
-
class="hx-mobile-shell-drawer-body"
|
|
1063
|
-
(touchstart)="onTouchStart($event)"
|
|
1064
|
-
(touchend)="onTouchEnd($event)"
|
|
1065
|
-
>
|
|
1066
|
-
<ng-content select="[slot=drawer]" />
|
|
1067
|
-
</div>
|
|
1068
|
-
</hx-drawer>
|
|
1069
|
-
`
|
|
957
|
+
template: "<header class=\"hx-mobile-shell-bar\">\n <button\n type=\"button\"\n class=\"hx-mobile-shell-menu\"\n [attr.aria-label]=\"menuLabel()\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"drawerOpen()\"\n (click)=\"drawerOpen.set(true)\"\n >\n <span aria-hidden=\"true\">☰</span>\n </button>\n <span class=\"hx-mobile-shell-title\">{{ heading() }}</span>\n <ng-content select=\"[slot=end]\" />\n</header>\n<main class=\"hx-mobile-shell-content\"><ng-content /></main>\n<hx-bottom-bar\n [items]=\"items()\"\n [activeId]=\"activeId()\"\n [label]=\"barLabel()\"\n (selected)=\"onBarSelect($event)\"\n/>\n<hx-drawer\n [(visible)]=\"drawerOpen\"\n position=\"left\"\n [ariaLabel]=\"menuLabel()\"\n [closeLabel]=\"closeLabel()\"\n width=\"min(20rem, 85vw)\"\n panelClass=\"hx-mobile-shell-drawer\"\n>\n <div\n class=\"hx-mobile-shell-drawer-body\"\n (touchstart)=\"onTouchStart($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content select=\"[slot=drawer]\" />\n </div>\n</hx-drawer>\n"
|
|
1070
958
|
}]
|
|
1071
959
|
}],
|
|
1072
960
|
propDecorators: {
|
|
@@ -1158,7 +1046,7 @@ function setHxPlatform(platform, root = document.documentElement) {
|
|
|
1158
1046
|
var HxStatusBar = class HxStatusBar {
|
|
1159
1047
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1160
1048
|
minVersion: "12.0.0",
|
|
1161
|
-
version: "22.2.
|
|
1049
|
+
version: "22.2.6",
|
|
1162
1050
|
ngImport: i0,
|
|
1163
1051
|
type: HxStatusBar,
|
|
1164
1052
|
deps: [],
|
|
@@ -1166,23 +1054,19 @@ var HxStatusBar = class HxStatusBar {
|
|
|
1166
1054
|
});
|
|
1167
1055
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1168
1056
|
minVersion: "14.0.0",
|
|
1169
|
-
version: "22.2.
|
|
1057
|
+
version: "22.2.6",
|
|
1170
1058
|
type: HxStatusBar,
|
|
1171
1059
|
isStandalone: true,
|
|
1172
1060
|
selector: "hx-status-bar",
|
|
1173
1061
|
host: { classAttribute: "hx-status-bar" },
|
|
1174
1062
|
ngImport: i0,
|
|
1175
|
-
template:
|
|
1176
|
-
<div class="hx-status-group hx-status-start"><ng-content select="[slot=start]" /></div>
|
|
1177
|
-
<div class="hx-status-group hx-status-end"><ng-content select="[slot=end]" /></div>
|
|
1178
|
-
`,
|
|
1179
|
-
isInline: true,
|
|
1063
|
+
template: "<div class=\"hx-status-group hx-status-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-status-group hx-status-end\"><ng-content select=\"[slot=end]\" /></div>\n",
|
|
1180
1064
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1181
1065
|
});
|
|
1182
1066
|
};
|
|
1183
1067
|
i0.ɵɵngDeclareClassMetadata({
|
|
1184
1068
|
minVersion: "12.0.0",
|
|
1185
|
-
version: "22.2.
|
|
1069
|
+
version: "22.2.6",
|
|
1186
1070
|
ngImport: i0,
|
|
1187
1071
|
type: HxStatusBar,
|
|
1188
1072
|
decorators: [{
|
|
@@ -1191,17 +1075,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1191
1075
|
selector: "hx-status-bar",
|
|
1192
1076
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1193
1077
|
host: { class: "hx-status-bar" },
|
|
1194
|
-
template:
|
|
1195
|
-
<div class="hx-status-group hx-status-start"><ng-content select="[slot=start]" /></div>
|
|
1196
|
-
<div class="hx-status-group hx-status-end"><ng-content select="[slot=end]" /></div>
|
|
1197
|
-
`
|
|
1078
|
+
template: "<div class=\"hx-status-group hx-status-start\"><ng-content select=\"[slot=start]\" /></div>\n<div class=\"hx-status-group hx-status-end\"><ng-content select=\"[slot=end]\" /></div>\n"
|
|
1198
1079
|
}]
|
|
1199
1080
|
}]
|
|
1200
1081
|
});
|
|
1201
1082
|
var HxStatusPopover = class HxStatusPopover {
|
|
1202
1083
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1203
1084
|
minVersion: "12.0.0",
|
|
1204
|
-
version: "22.2.
|
|
1085
|
+
version: "22.2.6",
|
|
1205
1086
|
ngImport: i0,
|
|
1206
1087
|
type: HxStatusPopover,
|
|
1207
1088
|
deps: [],
|
|
@@ -1209,7 +1090,7 @@ var HxStatusPopover = class HxStatusPopover {
|
|
|
1209
1090
|
});
|
|
1210
1091
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1211
1092
|
minVersion: "14.0.0",
|
|
1212
|
-
version: "22.2.
|
|
1093
|
+
version: "22.2.6",
|
|
1213
1094
|
type: HxStatusPopover,
|
|
1214
1095
|
isStandalone: true,
|
|
1215
1096
|
selector: "[hxStatusPopover]",
|
|
@@ -1218,7 +1099,7 @@ var HxStatusPopover = class HxStatusPopover {
|
|
|
1218
1099
|
};
|
|
1219
1100
|
i0.ɵɵngDeclareClassMetadata({
|
|
1220
1101
|
minVersion: "12.0.0",
|
|
1221
|
-
version: "22.2.
|
|
1102
|
+
version: "22.2.6",
|
|
1222
1103
|
ngImport: i0,
|
|
1223
1104
|
type: HxStatusPopover,
|
|
1224
1105
|
decorators: [{
|
|
@@ -1235,12 +1116,14 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1235
1116
|
tone = input("neutral", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
1236
1117
|
announce = input(false, ...ngDevMode ? [{ debugName: "announce" }] : /* istanbul ignore next */ []);
|
|
1237
1118
|
popoverOpen = model(false, ...ngDevMode ? [{ debugName: "popoverOpen" }] : /* istanbul ignore next */ []);
|
|
1119
|
+
pressed = output();
|
|
1238
1120
|
popover = contentChild(HxStatusPopover, ...ngDevMode ? [{ debugName: "popover" }] : /* istanbul ignore next */ []);
|
|
1239
1121
|
get hasPopover() {
|
|
1240
1122
|
return this.popover() !== void 0;
|
|
1241
1123
|
}
|
|
1242
1124
|
onButtonClick() {
|
|
1243
1125
|
if (this.hasPopover) this.popoverOpen.update((open) => !open);
|
|
1126
|
+
this.pressed.emit();
|
|
1244
1127
|
}
|
|
1245
1128
|
close() {
|
|
1246
1129
|
if (this.popoverOpen()) this.popoverOpen.set(false);
|
|
@@ -1250,7 +1133,7 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1250
1133
|
}
|
|
1251
1134
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1252
1135
|
minVersion: "12.0.0",
|
|
1253
|
-
version: "22.2.
|
|
1136
|
+
version: "22.2.6",
|
|
1254
1137
|
ngImport: i0,
|
|
1255
1138
|
type: HxStatusItem,
|
|
1256
1139
|
deps: [],
|
|
@@ -1258,7 +1141,7 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1258
1141
|
});
|
|
1259
1142
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1260
1143
|
minVersion: "17.0.0",
|
|
1261
|
-
version: "22.2.
|
|
1144
|
+
version: "22.2.6",
|
|
1262
1145
|
type: HxStatusItem,
|
|
1263
1146
|
isStandalone: true,
|
|
1264
1147
|
selector: "hx-status-item",
|
|
@@ -1313,7 +1196,10 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1313
1196
|
transformFunction: null
|
|
1314
1197
|
}
|
|
1315
1198
|
},
|
|
1316
|
-
outputs: {
|
|
1199
|
+
outputs: {
|
|
1200
|
+
popoverOpen: "popoverOpenChange",
|
|
1201
|
+
pressed: "pressed"
|
|
1202
|
+
},
|
|
1317
1203
|
host: {
|
|
1318
1204
|
listeners: {
|
|
1319
1205
|
"document:keydown.escape": "close()",
|
|
@@ -1336,35 +1222,7 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1336
1222
|
isSignal: true
|
|
1337
1223
|
}],
|
|
1338
1224
|
ngImport: i0,
|
|
1339
|
-
template:
|
|
1340
|
-
@if (kind() === 'button') {
|
|
1341
|
-
<button
|
|
1342
|
-
type="button"
|
|
1343
|
-
class="hx-status-control"
|
|
1344
|
-
[attr.title]="title()"
|
|
1345
|
-
[attr.aria-label]="ariaLabel()"
|
|
1346
|
-
[attr.aria-haspopup]="hasPopover ? 'dialog' : null"
|
|
1347
|
-
[attr.aria-expanded]="hasPopover ? popoverOpen() : null"
|
|
1348
|
-
[disabled]="disabled()"
|
|
1349
|
-
(click)="onButtonClick()"
|
|
1350
|
-
>
|
|
1351
|
-
<ng-container [ngTemplateOutlet]="content" />
|
|
1352
|
-
</button>
|
|
1353
|
-
} @else {
|
|
1354
|
-
<span
|
|
1355
|
-
class="hx-status-control"
|
|
1356
|
-
[attr.title]="title()"
|
|
1357
|
-
[attr.aria-label]="ariaLabel()"
|
|
1358
|
-
>
|
|
1359
|
-
<ng-container [ngTemplateOutlet]="content" />
|
|
1360
|
-
</span>
|
|
1361
|
-
}
|
|
1362
|
-
<ng-template #content><ng-content /></ng-template>
|
|
1363
|
-
@if (popoverOpen()) {
|
|
1364
|
-
<div class="hx-status-popover"><ng-content select="[hxStatusPopover]" /></div>
|
|
1365
|
-
}
|
|
1366
|
-
`,
|
|
1367
|
-
isInline: true,
|
|
1225
|
+
template: "@if (kind() === 'button') {\n <button\n type=\"button\"\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"hasPopover ? 'dialog' : null\"\n [attr.aria-expanded]=\"hasPopover ? popoverOpen() : null\"\n [disabled]=\"disabled()\"\n (click)=\"onButtonClick()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n} @else {\n <span class=\"hx-status-control\" [attr.title]=\"title()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n<ng-template #content><ng-content /></ng-template>\n@if (popoverOpen()) {\n <div class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n}\n",
|
|
1368
1226
|
dependencies: [{
|
|
1369
1227
|
kind: "directive",
|
|
1370
1228
|
type: NgTemplateOutlet,
|
|
@@ -1380,7 +1238,7 @@ var HxStatusItem = class HxStatusItem {
|
|
|
1380
1238
|
};
|
|
1381
1239
|
i0.ɵɵngDeclareClassMetadata({
|
|
1382
1240
|
minVersion: "12.0.0",
|
|
1383
|
-
version: "22.2.
|
|
1241
|
+
version: "22.2.6",
|
|
1384
1242
|
ngImport: i0,
|
|
1385
1243
|
type: HxStatusItem,
|
|
1386
1244
|
decorators: [{
|
|
@@ -1399,34 +1257,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1399
1257
|
"(document:keydown.escape)": "close()",
|
|
1400
1258
|
"(document:click)": "onDocumentClick($event)"
|
|
1401
1259
|
},
|
|
1402
|
-
template:
|
|
1403
|
-
@if (kind() === 'button') {
|
|
1404
|
-
<button
|
|
1405
|
-
type="button"
|
|
1406
|
-
class="hx-status-control"
|
|
1407
|
-
[attr.title]="title()"
|
|
1408
|
-
[attr.aria-label]="ariaLabel()"
|
|
1409
|
-
[attr.aria-haspopup]="hasPopover ? 'dialog' : null"
|
|
1410
|
-
[attr.aria-expanded]="hasPopover ? popoverOpen() : null"
|
|
1411
|
-
[disabled]="disabled()"
|
|
1412
|
-
(click)="onButtonClick()"
|
|
1413
|
-
>
|
|
1414
|
-
<ng-container [ngTemplateOutlet]="content" />
|
|
1415
|
-
</button>
|
|
1416
|
-
} @else {
|
|
1417
|
-
<span
|
|
1418
|
-
class="hx-status-control"
|
|
1419
|
-
[attr.title]="title()"
|
|
1420
|
-
[attr.aria-label]="ariaLabel()"
|
|
1421
|
-
>
|
|
1422
|
-
<ng-container [ngTemplateOutlet]="content" />
|
|
1423
|
-
</span>
|
|
1424
|
-
}
|
|
1425
|
-
<ng-template #content><ng-content /></ng-template>
|
|
1426
|
-
@if (popoverOpen()) {
|
|
1427
|
-
<div class="hx-status-popover"><ng-content select="[hxStatusPopover]" /></div>
|
|
1428
|
-
}
|
|
1429
|
-
`
|
|
1260
|
+
template: "@if (kind() === 'button') {\n <button\n type=\"button\"\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-haspopup]=\"hasPopover ? 'dialog' : null\"\n [attr.aria-expanded]=\"hasPopover ? popoverOpen() : null\"\n [disabled]=\"disabled()\"\n (click)=\"onButtonClick()\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n} @else {\n <span class=\"hx-status-control\" [attr.title]=\"title()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </span>\n}\n<ng-template #content><ng-content /></ng-template>\n@if (popoverOpen()) {\n <div class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n}\n"
|
|
1430
1261
|
}]
|
|
1431
1262
|
}],
|
|
1432
1263
|
propDecorators: {
|
|
@@ -1489,6 +1320,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1489
1320
|
type: i0.Output,
|
|
1490
1321
|
args: ["popoverOpenChange"]
|
|
1491
1322
|
}],
|
|
1323
|
+
pressed: [{
|
|
1324
|
+
type: i0.Output,
|
|
1325
|
+
args: ["pressed"]
|
|
1326
|
+
}],
|
|
1492
1327
|
popover: [{
|
|
1493
1328
|
type: i0.ContentChild,
|
|
1494
1329
|
args: [i0.forwardRef(() => HxStatusPopover), { isSignal: true }]
|
|
@@ -1500,7 +1335,7 @@ var HxStatusVersion = class HxStatusVersion {
|
|
|
1500
1335
|
channel = input(null, ...ngDevMode ? [{ debugName: "channel" }] : /* istanbul ignore next */ []);
|
|
1501
1336
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1502
1337
|
minVersion: "12.0.0",
|
|
1503
|
-
version: "22.2.
|
|
1338
|
+
version: "22.2.6",
|
|
1504
1339
|
ngImport: i0,
|
|
1505
1340
|
type: HxStatusVersion,
|
|
1506
1341
|
deps: [],
|
|
@@ -1508,7 +1343,7 @@ var HxStatusVersion = class HxStatusVersion {
|
|
|
1508
1343
|
});
|
|
1509
1344
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1510
1345
|
minVersion: "17.0.0",
|
|
1511
|
-
version: "22.2.
|
|
1346
|
+
version: "22.2.6",
|
|
1512
1347
|
type: HxStatusVersion,
|
|
1513
1348
|
isStandalone: true,
|
|
1514
1349
|
selector: "hx-status-version",
|
|
@@ -1530,19 +1365,13 @@ var HxStatusVersion = class HxStatusVersion {
|
|
|
1530
1365
|
},
|
|
1531
1366
|
host: { classAttribute: "hx-status-version" },
|
|
1532
1367
|
ngImport: i0,
|
|
1533
|
-
template:
|
|
1534
|
-
<span class="hx-status-control hx-status-version-text">v{{ version() }}</span>
|
|
1535
|
-
@if (channel()) {
|
|
1536
|
-
<span class="hx-status-channel">{{ channel() }}</span>
|
|
1537
|
-
}
|
|
1538
|
-
`,
|
|
1539
|
-
isInline: true,
|
|
1368
|
+
template: "<span class=\"hx-status-control hx-status-version-text\">v{{ version() }}</span>\n@if (channel()) {\n <span class=\"hx-status-channel\">{{ channel() }}</span>\n}\n",
|
|
1540
1369
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1541
1370
|
});
|
|
1542
1371
|
};
|
|
1543
1372
|
i0.ɵɵngDeclareClassMetadata({
|
|
1544
1373
|
minVersion: "12.0.0",
|
|
1545
|
-
version: "22.2.
|
|
1374
|
+
version: "22.2.6",
|
|
1546
1375
|
ngImport: i0,
|
|
1547
1376
|
type: HxStatusVersion,
|
|
1548
1377
|
decorators: [{
|
|
@@ -1551,12 +1380,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1551
1380
|
selector: "hx-status-version",
|
|
1552
1381
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1553
1382
|
host: { class: "hx-status-version" },
|
|
1554
|
-
template:
|
|
1555
|
-
<span class="hx-status-control hx-status-version-text">v{{ version() }}</span>
|
|
1556
|
-
@if (channel()) {
|
|
1557
|
-
<span class="hx-status-channel">{{ channel() }}</span>
|
|
1558
|
-
}
|
|
1559
|
-
`
|
|
1383
|
+
template: "<span class=\"hx-status-control hx-status-version-text\">v{{ version() }}</span>\n@if (channel()) {\n <span class=\"hx-status-channel\">{{ channel() }}</span>\n}\n"
|
|
1560
1384
|
}]
|
|
1561
1385
|
}],
|
|
1562
1386
|
propDecorators: {
|
|
@@ -1593,7 +1417,7 @@ var HxStatusZoom = class HxStatusZoom {
|
|
|
1593
1417
|
}
|
|
1594
1418
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1595
1419
|
minVersion: "12.0.0",
|
|
1596
|
-
version: "22.2.
|
|
1420
|
+
version: "22.2.6",
|
|
1597
1421
|
ngImport: i0,
|
|
1598
1422
|
type: HxStatusZoom,
|
|
1599
1423
|
deps: [],
|
|
@@ -1601,7 +1425,7 @@ var HxStatusZoom = class HxStatusZoom {
|
|
|
1601
1425
|
});
|
|
1602
1426
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1603
1427
|
minVersion: "17.1.0",
|
|
1604
|
-
version: "22.2.
|
|
1428
|
+
version: "22.2.6",
|
|
1605
1429
|
type: HxStatusZoom,
|
|
1606
1430
|
isStandalone: true,
|
|
1607
1431
|
selector: "hx-status-zoom",
|
|
@@ -1645,44 +1469,13 @@ var HxStatusZoom = class HxStatusZoom {
|
|
|
1645
1469
|
outputs: { value: "valueChange" },
|
|
1646
1470
|
host: { classAttribute: "hx-status-zoom" },
|
|
1647
1471
|
ngImport: i0,
|
|
1648
|
-
template:
|
|
1649
|
-
<button
|
|
1650
|
-
type="button"
|
|
1651
|
-
class="hx-status-control hx-status-zoom-out"
|
|
1652
|
-
title="Zoom out"
|
|
1653
|
-
aria-label="Zoom out"
|
|
1654
|
-
[disabled]="value() <= min()"
|
|
1655
|
-
(click)="change(-step())"
|
|
1656
|
-
>
|
|
1657
|
-
−
|
|
1658
|
-
</button>
|
|
1659
|
-
<button
|
|
1660
|
-
type="button"
|
|
1661
|
-
class="hx-status-control hx-status-zoom-level"
|
|
1662
|
-
title="Reset zoom"
|
|
1663
|
-
[attr.aria-label]="'Reset zoom, ' + value() + ' percent'"
|
|
1664
|
-
(click)="set(reset())"
|
|
1665
|
-
>
|
|
1666
|
-
{{ value() }}%
|
|
1667
|
-
</button>
|
|
1668
|
-
<button
|
|
1669
|
-
type="button"
|
|
1670
|
-
class="hx-status-control hx-status-zoom-in"
|
|
1671
|
-
title="Zoom in"
|
|
1672
|
-
aria-label="Zoom in"
|
|
1673
|
-
[disabled]="value() >= max()"
|
|
1674
|
-
(click)="change(step())"
|
|
1675
|
-
>
|
|
1676
|
-
+
|
|
1677
|
-
</button>
|
|
1678
|
-
`,
|
|
1679
|
-
isInline: true,
|
|
1472
|
+
template: "<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-out\"\n title=\"Zoom out\"\n aria-label=\"Zoom out\"\n [disabled]=\"value() <= min()\"\n (click)=\"change(-step())\"\n>\n −\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-level\"\n title=\"Reset zoom\"\n [attr.aria-label]=\"'Reset zoom, ' + value() + ' percent'\"\n (click)=\"set(reset())\"\n>\n {{ value() }}%\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-in\"\n title=\"Zoom in\"\n aria-label=\"Zoom in\"\n [disabled]=\"value() >= max()\"\n (click)=\"change(step())\"\n>\n +\n</button>\n",
|
|
1680
1473
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1681
1474
|
});
|
|
1682
1475
|
};
|
|
1683
1476
|
i0.ɵɵngDeclareClassMetadata({
|
|
1684
1477
|
minVersion: "12.0.0",
|
|
1685
|
-
version: "22.2.
|
|
1478
|
+
version: "22.2.6",
|
|
1686
1479
|
ngImport: i0,
|
|
1687
1480
|
type: HxStatusZoom,
|
|
1688
1481
|
decorators: [{
|
|
@@ -1691,37 +1484,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1691
1484
|
selector: "hx-status-zoom",
|
|
1692
1485
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1693
1486
|
host: { class: "hx-status-zoom" },
|
|
1694
|
-
template:
|
|
1695
|
-
<button
|
|
1696
|
-
type="button"
|
|
1697
|
-
class="hx-status-control hx-status-zoom-out"
|
|
1698
|
-
title="Zoom out"
|
|
1699
|
-
aria-label="Zoom out"
|
|
1700
|
-
[disabled]="value() <= min()"
|
|
1701
|
-
(click)="change(-step())"
|
|
1702
|
-
>
|
|
1703
|
-
−
|
|
1704
|
-
</button>
|
|
1705
|
-
<button
|
|
1706
|
-
type="button"
|
|
1707
|
-
class="hx-status-control hx-status-zoom-level"
|
|
1708
|
-
title="Reset zoom"
|
|
1709
|
-
[attr.aria-label]="'Reset zoom, ' + value() + ' percent'"
|
|
1710
|
-
(click)="set(reset())"
|
|
1711
|
-
>
|
|
1712
|
-
{{ value() }}%
|
|
1713
|
-
</button>
|
|
1714
|
-
<button
|
|
1715
|
-
type="button"
|
|
1716
|
-
class="hx-status-control hx-status-zoom-in"
|
|
1717
|
-
title="Zoom in"
|
|
1718
|
-
aria-label="Zoom in"
|
|
1719
|
-
[disabled]="value() >= max()"
|
|
1720
|
-
(click)="change(step())"
|
|
1721
|
-
>
|
|
1722
|
-
+
|
|
1723
|
-
</button>
|
|
1724
|
-
`
|
|
1487
|
+
template: "<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-out\"\n title=\"Zoom out\"\n aria-label=\"Zoom out\"\n [disabled]=\"value() <= min()\"\n (click)=\"change(-step())\"\n>\n −\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-level\"\n title=\"Reset zoom\"\n [attr.aria-label]=\"'Reset zoom, ' + value() + ' percent'\"\n (click)=\"set(reset())\"\n>\n {{ value() }}%\n</button>\n<button\n type=\"button\"\n class=\"hx-status-control hx-status-zoom-in\"\n title=\"Zoom in\"\n aria-label=\"Zoom in\"\n [disabled]=\"value() >= max()\"\n (click)=\"change(step())\"\n>\n +\n</button>\n"
|
|
1725
1488
|
}]
|
|
1726
1489
|
}],
|
|
1727
1490
|
propDecorators: {
|