@gravionlabs/helix-desktop 22.5.1 → 22.6.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/fesm2022/gravionlabs-helix-desktop-tauri.mjs +5 -85
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-desktop.mjs +179 -416
- package/fesm2022/gravionlabs-helix-desktop.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +27 -4
- package/types/gravionlabs-helix-desktop.d.ts +75 -2
|
@@ -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,
|
|
@@ -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(),
|
|
@@ -428,50 +427,54 @@ 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\n class=\"hx-app-shell-sidebar\"\n [hidden]=\"collapsed()\"\n [style.width.px]=\"width()\"\n >\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
|
};
|
|
@@ -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\n class=\"hx-app-shell-sidebar\"\n [hidden]=\"collapsed()\"\n [style.width.px]=\"width()\"\n >\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"]
|
|
@@ -633,12 +650,7 @@ 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><ng-content select=\"[slot=centre]\" /></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
|
};
|
|
@@ -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><ng-content select=\"[slot=centre]\" /></div>\n<div class=\"hx-app-toolbar-end\"><ng-content select=\"[slot=end]\" /></div>\n"
|
|
665
673
|
}]
|
|
666
674
|
}],
|
|
667
675
|
propDecorators: { windowButtonsInset: [{
|
|
@@ -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,
|
|
@@ -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: {
|
|
@@ -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 [items]=\"items()\" [activeId]=\"activeId()\" [label]=\"barLabel()\" (selected)=\"onBarSelect($event)\" />\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,
|
|
@@ -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 [items]=\"items()\" [activeId]=\"activeId()\" [label]=\"barLabel()\" (selected)=\"onBarSelect($event)\" />\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: {
|
|
@@ -1172,11 +1060,7 @@ var HxStatusBar = class HxStatusBar {
|
|
|
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
|
};
|
|
@@ -1191,10 +1075,7 @@ 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
|
});
|
|
@@ -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);
|
|
@@ -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\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n >\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,
|
|
@@ -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\n class=\"hx-status-control\"\n [attr.title]=\"title()\"\n [attr.aria-label]=\"ariaLabel()\"\n >\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 }]
|
|
@@ -1530,13 +1365,7 @@ 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
|
};
|
|
@@ -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: {
|
|
@@ -1645,38 +1469,7 @@ 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
|
};
|
|
@@ -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: {
|