@gravionlabs/helix-app 0.0.0-stage → 22.20.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.
@@ -0,0 +1,1633 @@
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Directive, ElementRef, afterEveryRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output, viewChild, viewChildren } from "@angular/core";
4
+ import { HxDrawer, HxSplitter } from "@gravionlabs/helix-ui";
5
+ import { HX_BOTTOM_BAR_MAX_ITEMS, getHxPlatform, hxMobileViews, hxViewsFor } from "@gravionlabs/helix-app";
6
+ var HxActivityBar = class HxActivityBar {
7
+ items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
8
+ activeId = input(null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
9
+ expanded = input(true, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
10
+ side = input("left", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
11
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
12
+ label = input("Activity bar", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
13
+ selected = output();
14
+ buttons = viewChildren("button", ...ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []);
15
+ groups = computed(() => {
16
+ const items = this.items();
17
+ return [{
18
+ name: "top",
19
+ items: items.filter((i) => i.position !== "bottom")
20
+ }, {
21
+ name: "bottom",
22
+ items: items.filter((i) => i.position === "bottom")
23
+ }].filter((g) => g.items.length > 0);
24
+ }, ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
25
+ ordered = computed(() => this.groups().flatMap((g) => g.items), ...ngDevMode ? [{ debugName: "ordered" }] : /* istanbul ignore next */ []);
26
+ tabStopId = computed(() => {
27
+ const ordered = this.ordered();
28
+ return ((this.expanded() ? ordered.find((i) => i.id === this.activeId()) : void 0) ?? ordered[0])?.id ?? null;
29
+ }, ...ngDevMode ? [{ debugName: "tabStopId" }] : /* istanbul ignore next */ []);
30
+ isView(item) {
31
+ return item.kind !== "action";
32
+ }
33
+ isActive(item) {
34
+ return this.isView(item) && this.expanded() && item.id === this.activeId();
35
+ }
36
+ asTemplate(icon) {
37
+ return typeof icon === "string" ? null : icon;
38
+ }
39
+ select(item) {
40
+ this.selected.emit(item.id);
41
+ }
42
+ onKeydown(event) {
43
+ const buttons = this.buttons().map((b) => b.nativeElement);
44
+ if (buttons.length === 0) return;
45
+ const current = buttons.indexOf(document.activeElement);
46
+ let next;
47
+ switch (event.key) {
48
+ case "ArrowDown":
49
+ case "ArrowRight":
50
+ next = (current + 1) % buttons.length;
51
+ break;
52
+ case "ArrowUp":
53
+ case "ArrowLeft":
54
+ next = (current - 1 + buttons.length) % buttons.length;
55
+ break;
56
+ case "Home":
57
+ next = 0;
58
+ break;
59
+ case "End":
60
+ next = buttons.length - 1;
61
+ break;
62
+ default: return;
63
+ }
64
+ event.preventDefault();
65
+ buttons[next]?.focus();
66
+ }
67
+ static ɵfac = i0.ɵɵngDeclareFactory({
68
+ minVersion: "12.0.0",
69
+ version: "22.3.0",
70
+ ngImport: i0,
71
+ type: HxActivityBar,
72
+ deps: [],
73
+ target: i0.ɵɵFactoryTarget.Component
74
+ });
75
+ static ɵcmp = i0.ɵɵngDeclareComponent({
76
+ minVersion: "17.0.0",
77
+ version: "22.3.0",
78
+ type: HxActivityBar,
79
+ isStandalone: true,
80
+ selector: "hx-activity-bar",
81
+ inputs: {
82
+ items: {
83
+ classPropertyName: "items",
84
+ publicName: "items",
85
+ isSignal: true,
86
+ isRequired: true,
87
+ transformFunction: null
88
+ },
89
+ activeId: {
90
+ classPropertyName: "activeId",
91
+ publicName: "activeId",
92
+ isSignal: true,
93
+ isRequired: false,
94
+ transformFunction: null
95
+ },
96
+ expanded: {
97
+ classPropertyName: "expanded",
98
+ publicName: "expanded",
99
+ isSignal: true,
100
+ isRequired: false,
101
+ transformFunction: null
102
+ },
103
+ side: {
104
+ classPropertyName: "side",
105
+ publicName: "side",
106
+ isSignal: true,
107
+ isRequired: false,
108
+ transformFunction: null
109
+ },
110
+ size: {
111
+ classPropertyName: "size",
112
+ publicName: "size",
113
+ isSignal: true,
114
+ isRequired: false,
115
+ transformFunction: null
116
+ },
117
+ label: {
118
+ classPropertyName: "label",
119
+ publicName: "label",
120
+ isSignal: true,
121
+ isRequired: false,
122
+ transformFunction: null
123
+ }
124
+ },
125
+ outputs: { selected: "selected" },
126
+ host: {
127
+ attributes: {
128
+ "role": "toolbar",
129
+ "aria-orientation": "vertical"
130
+ },
131
+ listeners: { "keydown": "onKeydown($event)" },
132
+ properties: {
133
+ "class.hx-activity-bar-end": "side() === 'right'",
134
+ "class.hx-activity-bar-small": "size() === 'small'",
135
+ "attr.aria-label": "label()"
136
+ },
137
+ classAttribute: "hx-activity-bar"
138
+ },
139
+ viewQueries: [{
140
+ propertyName: "buttons",
141
+ predicate: ["button"],
142
+ descendants: true,
143
+ isSignal: true
144
+ }],
145
+ ngImport: i0,
146
+ 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",
147
+ dependencies: [{
148
+ kind: "directive",
149
+ type: NgTemplateOutlet,
150
+ selector: "[ngTemplateOutlet]",
151
+ inputs: [
152
+ "ngTemplateOutletContext",
153
+ "ngTemplateOutlet",
154
+ "ngTemplateOutletInjector"
155
+ ]
156
+ }],
157
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
158
+ });
159
+ };
160
+ i0.ɵɵngDeclareClassMetadata({
161
+ minVersion: "12.0.0",
162
+ version: "22.3.0",
163
+ ngImport: i0,
164
+ type: HxActivityBar,
165
+ decorators: [{
166
+ type: Component,
167
+ args: [{
168
+ selector: "hx-activity-bar",
169
+ imports: [NgTemplateOutlet],
170
+ changeDetection: ChangeDetectionStrategy.OnPush,
171
+ host: {
172
+ class: "hx-activity-bar",
173
+ "[class.hx-activity-bar-end]": "side() === 'right'",
174
+ "[class.hx-activity-bar-small]": "size() === 'small'",
175
+ role: "toolbar",
176
+ "aria-orientation": "vertical",
177
+ "[attr.aria-label]": "label()",
178
+ "(keydown)": "onKeydown($event)"
179
+ },
180
+ 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"
181
+ }]
182
+ }],
183
+ propDecorators: {
184
+ items: [{
185
+ type: i0.Input,
186
+ args: [{
187
+ isSignal: true,
188
+ alias: "items",
189
+ required: true
190
+ }]
191
+ }],
192
+ activeId: [{
193
+ type: i0.Input,
194
+ args: [{
195
+ isSignal: true,
196
+ alias: "activeId",
197
+ required: false
198
+ }]
199
+ }],
200
+ expanded: [{
201
+ type: i0.Input,
202
+ args: [{
203
+ isSignal: true,
204
+ alias: "expanded",
205
+ required: false
206
+ }]
207
+ }],
208
+ side: [{
209
+ type: i0.Input,
210
+ args: [{
211
+ isSignal: true,
212
+ alias: "side",
213
+ required: false
214
+ }]
215
+ }],
216
+ size: [{
217
+ type: i0.Input,
218
+ args: [{
219
+ isSignal: true,
220
+ alias: "size",
221
+ required: false
222
+ }]
223
+ }],
224
+ label: [{
225
+ type: i0.Input,
226
+ args: [{
227
+ isSignal: true,
228
+ alias: "label",
229
+ required: false
230
+ }]
231
+ }],
232
+ selected: [{
233
+ type: i0.Output,
234
+ args: ["selected"]
235
+ }],
236
+ buttons: [{
237
+ type: i0.ViewChildren,
238
+ args: ["button", { isSignal: true }]
239
+ }]
240
+ }
241
+ });
242
+ var HxAppShell = class HxAppShell {
243
+ views = input(void 0, ...ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []);
244
+ platform = input(getHxPlatform(), ...ngDevMode ? [{ debugName: "platform" }] : /* istanbul ignore next */ []);
245
+ sidebarWidth = model(260, ...ngDevMode ? [{ debugName: "sidebarWidth" }] : /* istanbul ignore next */ []);
246
+ collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
247
+ activeId = model(null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
248
+ minWidth = input(160, {
249
+ ...ngDevMode ? { debugName: "minWidth" } : /* istanbul ignore next */ {},
250
+ transform: numberAttribute
251
+ });
252
+ maxWidth = input(480, {
253
+ ...ngDevMode ? { debugName: "maxWidth" } : /* istanbul ignore next */ {},
254
+ transform: numberAttribute
255
+ });
256
+ step = input(16, {
257
+ ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
258
+ transform: numberAttribute
259
+ });
260
+ resizerLabel = input("Resize sidebar", ...ngDevMode ? [{ debugName: "resizerLabel" }] : /* istanbul ignore next */ []);
261
+ fixedWidth = input(false, {
262
+ ...ngDevMode ? { debugName: "fixedWidth" } : /* istanbul ignore next */ {},
263
+ transform: booleanAttribute
264
+ });
265
+ bottomHeight = model(200, ...ngDevMode ? [{ debugName: "bottomHeight" }] : /* istanbul ignore next */ []);
266
+ bottomOpen = model(false, ...ngDevMode ? [{ debugName: "bottomOpen" }] : /* istanbul ignore next */ []);
267
+ minBottomHeight = input(80, {
268
+ ...ngDevMode ? { debugName: "minBottomHeight" } : /* istanbul ignore next */ {},
269
+ transform: numberAttribute
270
+ });
271
+ maxBottomHeight = input(480, {
272
+ ...ngDevMode ? { debugName: "maxBottomHeight" } : /* istanbul ignore next */ {},
273
+ transform: numberAttribute
274
+ });
275
+ bottomResizerLabel = input("Resize bottom panel", ...ngDevMode ? [{ debugName: "bottomResizerLabel" }] : /* istanbul ignore next */ []);
276
+ sidebarChange = output();
277
+ width = computed(() => this.clamp(this.sidebarWidth()), ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
278
+ height = computed(() => this.clampHeight(this.bottomHeight()), ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
279
+ selectView(id) {
280
+ if (!this.isKnown(id)) return;
281
+ if (id === this.activeId() && !this.collapsed()) this.collapsed.set(true);
282
+ else {
283
+ this.activeId.set(id);
284
+ this.collapsed.set(false);
285
+ }
286
+ this.report();
287
+ }
288
+ showView(id) {
289
+ if (!this.isKnown(id)) return;
290
+ this.activeId.set(id);
291
+ this.collapsed.set(false);
292
+ this.report();
293
+ }
294
+ resizeTo(width) {
295
+ const next = this.clamp(width);
296
+ if (next === this.sidebarWidth()) return;
297
+ this.sidebarWidth.set(next);
298
+ this.report();
299
+ }
300
+ toggleBottom() {
301
+ this.bottomOpen.update((open) => !open);
302
+ }
303
+ resizeBottomTo(height) {
304
+ const next = this.clampHeight(height);
305
+ if (next === this.bottomHeight()) return;
306
+ this.bottomHeight.set(next);
307
+ }
308
+ isKnown(id) {
309
+ const views = this.views();
310
+ return !views || hxViewsFor(views, this.platform()).some((v) => v.id === id);
311
+ }
312
+ clamp(width) {
313
+ return Math.min(this.maxWidth(), Math.max(this.minWidth(), Math.round(width)));
314
+ }
315
+ clampHeight(height) {
316
+ return Math.min(this.maxBottomHeight(), Math.max(this.minBottomHeight(), Math.round(height)));
317
+ }
318
+ report() {
319
+ this.sidebarChange.emit({
320
+ width: this.width(),
321
+ collapsed: this.collapsed()
322
+ });
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({
325
+ minVersion: "12.0.0",
326
+ version: "22.3.0",
327
+ ngImport: i0,
328
+ type: HxAppShell,
329
+ deps: [],
330
+ target: i0.ɵɵFactoryTarget.Component
331
+ });
332
+ static ɵcmp = i0.ɵɵngDeclareComponent({
333
+ minVersion: "17.0.0",
334
+ version: "22.3.0",
335
+ type: HxAppShell,
336
+ isStandalone: true,
337
+ selector: "hx-app-shell",
338
+ inputs: {
339
+ views: {
340
+ classPropertyName: "views",
341
+ publicName: "views",
342
+ isSignal: true,
343
+ isRequired: false,
344
+ transformFunction: null
345
+ },
346
+ platform: {
347
+ classPropertyName: "platform",
348
+ publicName: "platform",
349
+ isSignal: true,
350
+ isRequired: false,
351
+ transformFunction: null
352
+ },
353
+ sidebarWidth: {
354
+ classPropertyName: "sidebarWidth",
355
+ publicName: "sidebarWidth",
356
+ isSignal: true,
357
+ isRequired: false,
358
+ transformFunction: null
359
+ },
360
+ collapsed: {
361
+ classPropertyName: "collapsed",
362
+ publicName: "collapsed",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ activeId: {
368
+ classPropertyName: "activeId",
369
+ publicName: "activeId",
370
+ isSignal: true,
371
+ isRequired: false,
372
+ transformFunction: null
373
+ },
374
+ minWidth: {
375
+ classPropertyName: "minWidth",
376
+ publicName: "minWidth",
377
+ isSignal: true,
378
+ isRequired: false,
379
+ transformFunction: null
380
+ },
381
+ maxWidth: {
382
+ classPropertyName: "maxWidth",
383
+ publicName: "maxWidth",
384
+ isSignal: true,
385
+ isRequired: false,
386
+ transformFunction: null
387
+ },
388
+ step: {
389
+ classPropertyName: "step",
390
+ publicName: "step",
391
+ isSignal: true,
392
+ isRequired: false,
393
+ transformFunction: null
394
+ },
395
+ resizerLabel: {
396
+ classPropertyName: "resizerLabel",
397
+ publicName: "resizerLabel",
398
+ isSignal: true,
399
+ isRequired: false,
400
+ transformFunction: null
401
+ },
402
+ fixedWidth: {
403
+ classPropertyName: "fixedWidth",
404
+ publicName: "fixedWidth",
405
+ isSignal: true,
406
+ isRequired: false,
407
+ transformFunction: null
408
+ },
409
+ bottomHeight: {
410
+ classPropertyName: "bottomHeight",
411
+ publicName: "bottomHeight",
412
+ isSignal: true,
413
+ isRequired: false,
414
+ transformFunction: null
415
+ },
416
+ bottomOpen: {
417
+ classPropertyName: "bottomOpen",
418
+ publicName: "bottomOpen",
419
+ isSignal: true,
420
+ isRequired: false,
421
+ transformFunction: null
422
+ },
423
+ minBottomHeight: {
424
+ classPropertyName: "minBottomHeight",
425
+ publicName: "minBottomHeight",
426
+ isSignal: true,
427
+ isRequired: false,
428
+ transformFunction: null
429
+ },
430
+ maxBottomHeight: {
431
+ classPropertyName: "maxBottomHeight",
432
+ publicName: "maxBottomHeight",
433
+ isSignal: true,
434
+ isRequired: false,
435
+ transformFunction: null
436
+ },
437
+ bottomResizerLabel: {
438
+ classPropertyName: "bottomResizerLabel",
439
+ publicName: "bottomResizerLabel",
440
+ isSignal: true,
441
+ isRequired: false,
442
+ transformFunction: null
443
+ }
444
+ },
445
+ outputs: {
446
+ sidebarWidth: "sidebarWidthChange",
447
+ collapsed: "collapsedChange",
448
+ activeId: "activeIdChange",
449
+ bottomHeight: "bottomHeightChange",
450
+ bottomOpen: "bottomOpenChange",
451
+ sidebarChange: "sidebarChange"
452
+ },
453
+ host: { classAttribute: "hx-app-shell" },
454
+ ngImport: i0,
455
+ 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 <hx-splitter\n class=\"hx-app-shell-resizer\"\n [value]=\"width()\"\n [min]=\"minWidth()\"\n [max]=\"maxWidth()\"\n [step]=\"step()\"\n [label]=\"resizerLabel()\"\n [disabled]=\"fixedWidth()\"\n (valueChange)=\"resizeTo($event)\"\n />\n }\n <div class=\"hx-app-shell-main\">\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n @if (bottomOpen()) {\n <hx-splitter\n class=\"hx-app-shell-resizer hx-app-shell-resizer-bottom\"\n orientation=\"horizontal\"\n inverse\n [value]=\"height()\"\n [min]=\"minBottomHeight()\"\n [max]=\"maxBottomHeight()\"\n [step]=\"step()\"\n [label]=\"bottomResizerLabel()\"\n [disabled]=\"fixedWidth()\"\n (valueChange)=\"resizeBottomTo($event)\"\n />\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 <ng-content select=\"[slot=activity-end]\" />\n</div>\n<ng-content select=\"[slot=status]\" />\n",
456
+ dependencies: [{
457
+ kind: "component",
458
+ type: HxSplitter,
459
+ selector: "hx-splitter",
460
+ inputs: [
461
+ "orientation",
462
+ "value",
463
+ "min",
464
+ "max",
465
+ "step",
466
+ "label",
467
+ "inverse",
468
+ "disabled"
469
+ ],
470
+ outputs: ["valueChange"]
471
+ }],
472
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
473
+ });
474
+ };
475
+ i0.ɵɵngDeclareClassMetadata({
476
+ minVersion: "12.0.0",
477
+ version: "22.3.0",
478
+ ngImport: i0,
479
+ type: HxAppShell,
480
+ decorators: [{
481
+ type: Component,
482
+ args: [{
483
+ selector: "hx-app-shell",
484
+ changeDetection: ChangeDetectionStrategy.OnPush,
485
+ imports: [HxSplitter],
486
+ host: { class: "hx-app-shell" },
487
+ 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 <hx-splitter\n class=\"hx-app-shell-resizer\"\n [value]=\"width()\"\n [min]=\"minWidth()\"\n [max]=\"maxWidth()\"\n [step]=\"step()\"\n [label]=\"resizerLabel()\"\n [disabled]=\"fixedWidth()\"\n (valueChange)=\"resizeTo($event)\"\n />\n }\n <div class=\"hx-app-shell-main\">\n <main class=\"hx-app-shell-content\"><ng-content /></main>\n @if (bottomOpen()) {\n <hx-splitter\n class=\"hx-app-shell-resizer hx-app-shell-resizer-bottom\"\n orientation=\"horizontal\"\n inverse\n [value]=\"height()\"\n [min]=\"minBottomHeight()\"\n [max]=\"maxBottomHeight()\"\n [step]=\"step()\"\n [label]=\"bottomResizerLabel()\"\n [disabled]=\"fixedWidth()\"\n (valueChange)=\"resizeBottomTo($event)\"\n />\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 <ng-content select=\"[slot=activity-end]\" />\n</div>\n<ng-content select=\"[slot=status]\" />\n"
488
+ }]
489
+ }],
490
+ propDecorators: {
491
+ views: [{
492
+ type: i0.Input,
493
+ args: [{
494
+ isSignal: true,
495
+ alias: "views",
496
+ required: false
497
+ }]
498
+ }],
499
+ platform: [{
500
+ type: i0.Input,
501
+ args: [{
502
+ isSignal: true,
503
+ alias: "platform",
504
+ required: false
505
+ }]
506
+ }],
507
+ sidebarWidth: [{
508
+ type: i0.Input,
509
+ args: [{
510
+ isSignal: true,
511
+ alias: "sidebarWidth",
512
+ required: false
513
+ }]
514
+ }, {
515
+ type: i0.Output,
516
+ args: ["sidebarWidthChange"]
517
+ }],
518
+ collapsed: [{
519
+ type: i0.Input,
520
+ args: [{
521
+ isSignal: true,
522
+ alias: "collapsed",
523
+ required: false
524
+ }]
525
+ }, {
526
+ type: i0.Output,
527
+ args: ["collapsedChange"]
528
+ }],
529
+ activeId: [{
530
+ type: i0.Input,
531
+ args: [{
532
+ isSignal: true,
533
+ alias: "activeId",
534
+ required: false
535
+ }]
536
+ }, {
537
+ type: i0.Output,
538
+ args: ["activeIdChange"]
539
+ }],
540
+ minWidth: [{
541
+ type: i0.Input,
542
+ args: [{
543
+ isSignal: true,
544
+ alias: "minWidth",
545
+ required: false
546
+ }]
547
+ }],
548
+ maxWidth: [{
549
+ type: i0.Input,
550
+ args: [{
551
+ isSignal: true,
552
+ alias: "maxWidth",
553
+ required: false
554
+ }]
555
+ }],
556
+ step: [{
557
+ type: i0.Input,
558
+ args: [{
559
+ isSignal: true,
560
+ alias: "step",
561
+ required: false
562
+ }]
563
+ }],
564
+ resizerLabel: [{
565
+ type: i0.Input,
566
+ args: [{
567
+ isSignal: true,
568
+ alias: "resizerLabel",
569
+ required: false
570
+ }]
571
+ }],
572
+ fixedWidth: [{
573
+ type: i0.Input,
574
+ args: [{
575
+ isSignal: true,
576
+ alias: "fixedWidth",
577
+ required: false
578
+ }]
579
+ }],
580
+ bottomHeight: [{
581
+ type: i0.Input,
582
+ args: [{
583
+ isSignal: true,
584
+ alias: "bottomHeight",
585
+ required: false
586
+ }]
587
+ }, {
588
+ type: i0.Output,
589
+ args: ["bottomHeightChange"]
590
+ }],
591
+ bottomOpen: [{
592
+ type: i0.Input,
593
+ args: [{
594
+ isSignal: true,
595
+ alias: "bottomOpen",
596
+ required: false
597
+ }]
598
+ }, {
599
+ type: i0.Output,
600
+ args: ["bottomOpenChange"]
601
+ }],
602
+ minBottomHeight: [{
603
+ type: i0.Input,
604
+ args: [{
605
+ isSignal: true,
606
+ alias: "minBottomHeight",
607
+ required: false
608
+ }]
609
+ }],
610
+ maxBottomHeight: [{
611
+ type: i0.Input,
612
+ args: [{
613
+ isSignal: true,
614
+ alias: "maxBottomHeight",
615
+ required: false
616
+ }]
617
+ }],
618
+ bottomResizerLabel: [{
619
+ type: i0.Input,
620
+ args: [{
621
+ isSignal: true,
622
+ alias: "bottomResizerLabel",
623
+ required: false
624
+ }]
625
+ }],
626
+ sidebarChange: [{
627
+ type: i0.Output,
628
+ args: ["sidebarChange"]
629
+ }]
630
+ }
631
+ });
632
+ var HxAppToolbar = class HxAppToolbar {
633
+ windowButtonsInset = input(false, {
634
+ ...ngDevMode ? { debugName: "windowButtonsInset" } : /* istanbul ignore next */ {},
635
+ transform: booleanAttribute
636
+ });
637
+ static ɵfac = i0.ɵɵngDeclareFactory({
638
+ minVersion: "12.0.0",
639
+ version: "22.3.0",
640
+ ngImport: i0,
641
+ type: HxAppToolbar,
642
+ deps: [],
643
+ target: i0.ɵɵFactoryTarget.Component
644
+ });
645
+ static ɵcmp = i0.ɵɵngDeclareComponent({
646
+ minVersion: "17.1.0",
647
+ version: "22.3.0",
648
+ type: HxAppToolbar,
649
+ isStandalone: true,
650
+ selector: "hx-app-toolbar",
651
+ inputs: { windowButtonsInset: {
652
+ classPropertyName: "windowButtonsInset",
653
+ publicName: "windowButtonsInset",
654
+ isSignal: true,
655
+ isRequired: false,
656
+ transformFunction: null
657
+ } },
658
+ host: {
659
+ attributes: { "data-tauri-drag-region": "" },
660
+ properties: { "class.hx-app-toolbar-inset": "windowButtonsInset()" },
661
+ classAttribute: "hx-app-toolbar"
662
+ },
663
+ ngImport: i0,
664
+ 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
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
666
+ });
667
+ };
668
+ i0.ɵɵngDeclareClassMetadata({
669
+ minVersion: "12.0.0",
670
+ version: "22.3.0",
671
+ ngImport: i0,
672
+ type: HxAppToolbar,
673
+ decorators: [{
674
+ type: Component,
675
+ args: [{
676
+ selector: "hx-app-toolbar",
677
+ changeDetection: ChangeDetectionStrategy.OnPush,
678
+ host: {
679
+ class: "hx-app-toolbar",
680
+ "[class.hx-app-toolbar-inset]": "windowButtonsInset()",
681
+ "data-tauri-drag-region": ""
682
+ },
683
+ 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"
684
+ }]
685
+ }],
686
+ propDecorators: { windowButtonsInset: [{
687
+ type: i0.Input,
688
+ args: [{
689
+ isSignal: true,
690
+ alias: "windowButtonsInset",
691
+ required: false
692
+ }]
693
+ }] }
694
+ });
695
+ var HxBottomBar = class HxBottomBar {
696
+ items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
697
+ activeId = input(null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
698
+ label = input("Views", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
699
+ selected = output();
700
+ visible = computed(() => this.items().slice(0, HX_BOTTOM_BAR_MAX_ITEMS), ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
701
+ isActive(item) {
702
+ return item.kind !== "action" && item.id === this.activeId();
703
+ }
704
+ asTemplate(icon) {
705
+ return typeof icon === "string" ? null : icon;
706
+ }
707
+ static ɵfac = i0.ɵɵngDeclareFactory({
708
+ minVersion: "12.0.0",
709
+ version: "22.3.0",
710
+ ngImport: i0,
711
+ type: HxBottomBar,
712
+ deps: [],
713
+ target: i0.ɵɵFactoryTarget.Component
714
+ });
715
+ static ɵcmp = i0.ɵɵngDeclareComponent({
716
+ minVersion: "17.0.0",
717
+ version: "22.3.0",
718
+ type: HxBottomBar,
719
+ isStandalone: true,
720
+ selector: "hx-bottom-bar",
721
+ inputs: {
722
+ items: {
723
+ classPropertyName: "items",
724
+ publicName: "items",
725
+ isSignal: true,
726
+ isRequired: true,
727
+ transformFunction: null
728
+ },
729
+ activeId: {
730
+ classPropertyName: "activeId",
731
+ publicName: "activeId",
732
+ isSignal: true,
733
+ isRequired: false,
734
+ transformFunction: null
735
+ },
736
+ label: {
737
+ classPropertyName: "label",
738
+ publicName: "label",
739
+ isSignal: true,
740
+ isRequired: false,
741
+ transformFunction: null
742
+ }
743
+ },
744
+ outputs: { selected: "selected" },
745
+ host: {
746
+ attributes: { "role": "toolbar" },
747
+ properties: { "attr.aria-label": "label()" },
748
+ classAttribute: "hx-bottom-bar"
749
+ },
750
+ ngImport: i0,
751
+ 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",
752
+ dependencies: [{
753
+ kind: "directive",
754
+ type: NgTemplateOutlet,
755
+ selector: "[ngTemplateOutlet]",
756
+ inputs: [
757
+ "ngTemplateOutletContext",
758
+ "ngTemplateOutlet",
759
+ "ngTemplateOutletInjector"
760
+ ]
761
+ }],
762
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
763
+ });
764
+ };
765
+ i0.ɵɵngDeclareClassMetadata({
766
+ minVersion: "12.0.0",
767
+ version: "22.3.0",
768
+ ngImport: i0,
769
+ type: HxBottomBar,
770
+ decorators: [{
771
+ type: Component,
772
+ args: [{
773
+ selector: "hx-bottom-bar",
774
+ imports: [NgTemplateOutlet],
775
+ changeDetection: ChangeDetectionStrategy.OnPush,
776
+ host: {
777
+ class: "hx-bottom-bar",
778
+ role: "toolbar",
779
+ "[attr.aria-label]": "label()"
780
+ },
781
+ 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"
782
+ }]
783
+ }],
784
+ propDecorators: {
785
+ items: [{
786
+ type: i0.Input,
787
+ args: [{
788
+ isSignal: true,
789
+ alias: "items",
790
+ required: true
791
+ }]
792
+ }],
793
+ activeId: [{
794
+ type: i0.Input,
795
+ args: [{
796
+ isSignal: true,
797
+ alias: "activeId",
798
+ required: false
799
+ }]
800
+ }],
801
+ label: [{
802
+ type: i0.Input,
803
+ args: [{
804
+ isSignal: true,
805
+ alias: "label",
806
+ required: false
807
+ }]
808
+ }],
809
+ selected: [{
810
+ type: i0.Output,
811
+ args: ["selected"]
812
+ }]
813
+ }
814
+ });
815
+ const SWIPE_DISTANCE = 48;
816
+ var HxMobileShell = class HxMobileShell {
817
+ items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
818
+ views = input(void 0, ...ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []);
819
+ platform = input(getHxPlatform(), ...ngDevMode ? [{ debugName: "platform" }] : /* istanbul ignore next */ []);
820
+ activeId = model(null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
821
+ drawerOpen = model(false, ...ngDevMode ? [{ debugName: "drawerOpen" }] : /* istanbul ignore next */ []);
822
+ heading = input("", ...ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []);
823
+ menuLabel = input("Menu", ...ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []);
824
+ closeLabel = input("Close", ...ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []);
825
+ barLabel = input("Views", ...ngDevMode ? [{ debugName: "barLabel" }] : /* istanbul ignore next */ []);
826
+ selected = output();
827
+ split = computed(() => {
828
+ const views = this.views();
829
+ return views ? hxMobileViews(views, this.platform()) : null;
830
+ }, ...ngDevMode ? [{ debugName: "split" }] : /* istanbul ignore next */ []);
831
+ barItems = computed(() => this.split()?.bar ?? this.items(), ...ngDevMode ? [{ debugName: "barItems" }] : /* istanbul ignore next */ []);
832
+ drawerViews = computed(() => this.split()?.drawer ?? [], ...ngDevMode ? [{ debugName: "drawerViews" }] : /* istanbul ignore next */ []);
833
+ touchX = null;
834
+ showView(id) {
835
+ const views = this.views();
836
+ if (views && !hxViewsFor(views, this.platform()).some((v) => v.id === id)) return;
837
+ this.activeId.set(id);
838
+ this.drawerOpen.set(false);
839
+ }
840
+ chooseView(id) {
841
+ this.showView(id);
842
+ }
843
+ onSelect(id) {
844
+ this.selected.emit(id);
845
+ if (this.barItems().find((i) => i.id === id)?.kind === "action") this.drawerOpen.set(false);
846
+ else if (this.drawerViews().find((v) => v.id === id)?.kind === "action") this.drawerOpen.set(false);
847
+ else this.showView(id);
848
+ }
849
+ asTemplate(icon) {
850
+ return typeof icon === "string" ? null : icon;
851
+ }
852
+ onTouchStart(event) {
853
+ this.touchX = event.changedTouches[0]?.clientX ?? null;
854
+ }
855
+ onTouchEnd(event) {
856
+ const start = this.touchX;
857
+ this.touchX = null;
858
+ const end = event.changedTouches[0]?.clientX;
859
+ if (start === null || end === void 0) return;
860
+ const rtl = getComputedStyle(event.target).direction === "rtl";
861
+ const delta = end - start;
862
+ if (rtl ? delta >= SWIPE_DISTANCE : delta <= -48) this.drawerOpen.set(false);
863
+ }
864
+ static ɵfac = i0.ɵɵngDeclareFactory({
865
+ minVersion: "12.0.0",
866
+ version: "22.3.0",
867
+ ngImport: i0,
868
+ type: HxMobileShell,
869
+ deps: [],
870
+ target: i0.ɵɵFactoryTarget.Component
871
+ });
872
+ static ɵcmp = i0.ɵɵngDeclareComponent({
873
+ minVersion: "17.0.0",
874
+ version: "22.3.0",
875
+ type: HxMobileShell,
876
+ isStandalone: true,
877
+ selector: "hx-mobile-shell",
878
+ inputs: {
879
+ items: {
880
+ classPropertyName: "items",
881
+ publicName: "items",
882
+ isSignal: true,
883
+ isRequired: false,
884
+ transformFunction: null
885
+ },
886
+ views: {
887
+ classPropertyName: "views",
888
+ publicName: "views",
889
+ isSignal: true,
890
+ isRequired: false,
891
+ transformFunction: null
892
+ },
893
+ platform: {
894
+ classPropertyName: "platform",
895
+ publicName: "platform",
896
+ isSignal: true,
897
+ isRequired: false,
898
+ transformFunction: null
899
+ },
900
+ activeId: {
901
+ classPropertyName: "activeId",
902
+ publicName: "activeId",
903
+ isSignal: true,
904
+ isRequired: false,
905
+ transformFunction: null
906
+ },
907
+ drawerOpen: {
908
+ classPropertyName: "drawerOpen",
909
+ publicName: "drawerOpen",
910
+ isSignal: true,
911
+ isRequired: false,
912
+ transformFunction: null
913
+ },
914
+ heading: {
915
+ classPropertyName: "heading",
916
+ publicName: "heading",
917
+ isSignal: true,
918
+ isRequired: false,
919
+ transformFunction: null
920
+ },
921
+ menuLabel: {
922
+ classPropertyName: "menuLabel",
923
+ publicName: "menuLabel",
924
+ isSignal: true,
925
+ isRequired: false,
926
+ transformFunction: null
927
+ },
928
+ closeLabel: {
929
+ classPropertyName: "closeLabel",
930
+ publicName: "closeLabel",
931
+ isSignal: true,
932
+ isRequired: false,
933
+ transformFunction: null
934
+ },
935
+ barLabel: {
936
+ classPropertyName: "barLabel",
937
+ publicName: "barLabel",
938
+ isSignal: true,
939
+ isRequired: false,
940
+ transformFunction: null
941
+ }
942
+ },
943
+ outputs: {
944
+ activeId: "activeIdChange",
945
+ drawerOpen: "drawerOpenChange",
946
+ selected: "selected"
947
+ },
948
+ host: { classAttribute: "hx-mobile-shell" },
949
+ ngImport: i0,
950
+ 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\">&#9776;</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]=\"barItems()\"\n [activeId]=\"activeId()\"\n [label]=\"barLabel()\"\n (selected)=\"onSelect($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 @if (views()) {\n <ul class=\"hx-mobile-shell-drawer-list\" [attr.aria-label]=\"barLabel()\">\n @for (view of drawerViews(); track view.id) {\n <li>\n <button\n type=\"button\"\n class=\"hx-mobile-shell-drawer-item\"\n [class.hx-mobile-shell-drawer-active]=\"view.kind !== 'action' && view.id === activeId()\"\n [attr.data-id]=\"view.id\"\n [attr.aria-current]=\"view.kind !== 'action' && view.id === activeId() ? 'true' : null\"\n (click)=\"onSelect(view.id)\"\n >\n <span class=\"hx-mobile-shell-drawer-icon\" aria-hidden=\"true\">\n @if (asTemplate(view.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"view.icon\"></span>\n }\n </span>\n <span class=\"hx-mobile-shell-drawer-label\">{{ view.label }}</span>\n </button>\n </li>\n }\n </ul>\n }\n <ng-content select=\"[slot=drawer]\" />\n </div>\n</hx-drawer>\n",
951
+ dependencies: [
952
+ {
953
+ kind: "component",
954
+ type: HxBottomBar,
955
+ selector: "hx-bottom-bar",
956
+ inputs: [
957
+ "items",
958
+ "activeId",
959
+ "label"
960
+ ],
961
+ outputs: ["selected"]
962
+ },
963
+ {
964
+ kind: "component",
965
+ type: HxDrawer,
966
+ selector: "hx-drawer",
967
+ inputs: [
968
+ "visible",
969
+ "header",
970
+ "position",
971
+ "modal",
972
+ "dismissable",
973
+ "closable",
974
+ "closeOnEscape",
975
+ "fullScreen",
976
+ "width",
977
+ "height",
978
+ "panelClass",
979
+ "closeLabel",
980
+ "ariaLabel"
981
+ ],
982
+ outputs: [
983
+ "visibleChange",
984
+ "shown",
985
+ "hidden"
986
+ ]
987
+ },
988
+ {
989
+ kind: "directive",
990
+ type: NgTemplateOutlet,
991
+ selector: "[ngTemplateOutlet]",
992
+ inputs: [
993
+ "ngTemplateOutletContext",
994
+ "ngTemplateOutlet",
995
+ "ngTemplateOutletInjector"
996
+ ]
997
+ }
998
+ ],
999
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1000
+ });
1001
+ };
1002
+ i0.ɵɵngDeclareClassMetadata({
1003
+ minVersion: "12.0.0",
1004
+ version: "22.3.0",
1005
+ ngImport: i0,
1006
+ type: HxMobileShell,
1007
+ decorators: [{
1008
+ type: Component,
1009
+ args: [{
1010
+ selector: "hx-mobile-shell",
1011
+ imports: [
1012
+ HxBottomBar,
1013
+ HxDrawer,
1014
+ NgTemplateOutlet
1015
+ ],
1016
+ changeDetection: ChangeDetectionStrategy.OnPush,
1017
+ host: { class: "hx-mobile-shell" },
1018
+ 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\">&#9776;</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]=\"barItems()\"\n [activeId]=\"activeId()\"\n [label]=\"barLabel()\"\n (selected)=\"onSelect($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 @if (views()) {\n <ul class=\"hx-mobile-shell-drawer-list\" [attr.aria-label]=\"barLabel()\">\n @for (view of drawerViews(); track view.id) {\n <li>\n <button\n type=\"button\"\n class=\"hx-mobile-shell-drawer-item\"\n [class.hx-mobile-shell-drawer-active]=\"view.kind !== 'action' && view.id === activeId()\"\n [attr.data-id]=\"view.id\"\n [attr.aria-current]=\"view.kind !== 'action' && view.id === activeId() ? 'true' : null\"\n (click)=\"onSelect(view.id)\"\n >\n <span class=\"hx-mobile-shell-drawer-icon\" aria-hidden=\"true\">\n @if (asTemplate(view.icon); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <span [class]=\"view.icon\"></span>\n }\n </span>\n <span class=\"hx-mobile-shell-drawer-label\">{{ view.label }}</span>\n </button>\n </li>\n }\n </ul>\n }\n <ng-content select=\"[slot=drawer]\" />\n </div>\n</hx-drawer>\n"
1019
+ }]
1020
+ }],
1021
+ propDecorators: {
1022
+ items: [{
1023
+ type: i0.Input,
1024
+ args: [{
1025
+ isSignal: true,
1026
+ alias: "items",
1027
+ required: false
1028
+ }]
1029
+ }],
1030
+ views: [{
1031
+ type: i0.Input,
1032
+ args: [{
1033
+ isSignal: true,
1034
+ alias: "views",
1035
+ required: false
1036
+ }]
1037
+ }],
1038
+ platform: [{
1039
+ type: i0.Input,
1040
+ args: [{
1041
+ isSignal: true,
1042
+ alias: "platform",
1043
+ required: false
1044
+ }]
1045
+ }],
1046
+ activeId: [{
1047
+ type: i0.Input,
1048
+ args: [{
1049
+ isSignal: true,
1050
+ alias: "activeId",
1051
+ required: false
1052
+ }]
1053
+ }, {
1054
+ type: i0.Output,
1055
+ args: ["activeIdChange"]
1056
+ }],
1057
+ drawerOpen: [{
1058
+ type: i0.Input,
1059
+ args: [{
1060
+ isSignal: true,
1061
+ alias: "drawerOpen",
1062
+ required: false
1063
+ }]
1064
+ }, {
1065
+ type: i0.Output,
1066
+ args: ["drawerOpenChange"]
1067
+ }],
1068
+ heading: [{
1069
+ type: i0.Input,
1070
+ args: [{
1071
+ isSignal: true,
1072
+ alias: "heading",
1073
+ required: false
1074
+ }]
1075
+ }],
1076
+ menuLabel: [{
1077
+ type: i0.Input,
1078
+ args: [{
1079
+ isSignal: true,
1080
+ alias: "menuLabel",
1081
+ required: false
1082
+ }]
1083
+ }],
1084
+ closeLabel: [{
1085
+ type: i0.Input,
1086
+ args: [{
1087
+ isSignal: true,
1088
+ alias: "closeLabel",
1089
+ required: false
1090
+ }]
1091
+ }],
1092
+ barLabel: [{
1093
+ type: i0.Input,
1094
+ args: [{
1095
+ isSignal: true,
1096
+ alias: "barLabel",
1097
+ required: false
1098
+ }]
1099
+ }],
1100
+ selected: [{
1101
+ type: i0.Output,
1102
+ args: ["selected"]
1103
+ }]
1104
+ }
1105
+ });
1106
+ var HxStatusBar = class HxStatusBar {
1107
+ static ɵfac = i0.ɵɵngDeclareFactory({
1108
+ minVersion: "12.0.0",
1109
+ version: "22.3.0",
1110
+ ngImport: i0,
1111
+ type: HxStatusBar,
1112
+ deps: [],
1113
+ target: i0.ɵɵFactoryTarget.Component
1114
+ });
1115
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1116
+ minVersion: "14.0.0",
1117
+ version: "22.3.0",
1118
+ type: HxStatusBar,
1119
+ isStandalone: true,
1120
+ selector: "hx-status-bar",
1121
+ host: { classAttribute: "hx-status-bar" },
1122
+ ngImport: i0,
1123
+ 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",
1124
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1125
+ });
1126
+ };
1127
+ i0.ɵɵngDeclareClassMetadata({
1128
+ minVersion: "12.0.0",
1129
+ version: "22.3.0",
1130
+ ngImport: i0,
1131
+ type: HxStatusBar,
1132
+ decorators: [{
1133
+ type: Component,
1134
+ args: [{
1135
+ selector: "hx-status-bar",
1136
+ changeDetection: ChangeDetectionStrategy.OnPush,
1137
+ host: { class: "hx-status-bar" },
1138
+ 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"
1139
+ }]
1140
+ }]
1141
+ });
1142
+ var HxStatusPopover = class HxStatusPopover {
1143
+ static ɵfac = i0.ɵɵngDeclareFactory({
1144
+ minVersion: "12.0.0",
1145
+ version: "22.3.0",
1146
+ ngImport: i0,
1147
+ type: HxStatusPopover,
1148
+ deps: [],
1149
+ target: i0.ɵɵFactoryTarget.Directive
1150
+ });
1151
+ static ɵdir = i0.ɵɵngDeclareDirective({
1152
+ minVersion: "14.0.0",
1153
+ version: "22.3.0",
1154
+ type: HxStatusPopover,
1155
+ isStandalone: true,
1156
+ selector: "[hxStatusPopover]",
1157
+ ngImport: i0
1158
+ });
1159
+ };
1160
+ i0.ɵɵngDeclareClassMetadata({
1161
+ minVersion: "12.0.0",
1162
+ version: "22.3.0",
1163
+ ngImport: i0,
1164
+ type: HxStatusPopover,
1165
+ decorators: [{
1166
+ type: Directive,
1167
+ args: [{ selector: "[hxStatusPopover]" }]
1168
+ }]
1169
+ });
1170
+ const POPOVER_EDGE_GAP = 4;
1171
+ var HxStatusItem = class HxStatusItem {
1172
+ host = inject(ElementRef);
1173
+ kind = input("text", ...ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []);
1174
+ title = input(null, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
1175
+ ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
1176
+ disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
1177
+ tone = input("neutral", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
1178
+ announce = input(false, ...ngDevMode ? [{ debugName: "announce" }] : /* istanbul ignore next */ []);
1179
+ popoverOpen = model(false, ...ngDevMode ? [{ debugName: "popoverOpen" }] : /* istanbul ignore next */ []);
1180
+ pressed = output();
1181
+ popover = contentChild(HxStatusPopover, ...ngDevMode ? [{ debugName: "popover" }] : /* istanbul ignore next */ []);
1182
+ panel = viewChild("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
1183
+ constructor() {
1184
+ afterRenderEffect((onCleanup) => {
1185
+ const panel = this.panel()?.nativeElement;
1186
+ if (!panel || typeof ResizeObserver === "undefined") return;
1187
+ const observer = new ResizeObserver(() => this.placePopover());
1188
+ observer.observe(panel);
1189
+ onCleanup(() => observer.disconnect());
1190
+ });
1191
+ afterEveryRender(() => this.placePopover());
1192
+ }
1193
+ get hasPopover() {
1194
+ return this.popover() !== void 0;
1195
+ }
1196
+ onButtonClick() {
1197
+ if (this.hasPopover) this.popoverOpen.update((open) => !open);
1198
+ this.pressed.emit();
1199
+ }
1200
+ close() {
1201
+ if (this.popoverOpen()) this.popoverOpen.set(false);
1202
+ }
1203
+ placePopover() {
1204
+ const panel = this.panel()?.nativeElement;
1205
+ if (!panel) return;
1206
+ panel.style.transform = "";
1207
+ const { left, right } = panel.getBoundingClientRect();
1208
+ const maxRight = panel.ownerDocument.documentElement.clientWidth - POPOVER_EDGE_GAP;
1209
+ const shift = Math.max(Math.min(0, maxRight - right), POPOVER_EDGE_GAP - left);
1210
+ if (shift !== 0) panel.style.transform = `translateX(${shift}px)`;
1211
+ }
1212
+ onDocumentClick(event) {
1213
+ if (this.popoverOpen() && !this.host.nativeElement.contains(event.target)) this.popoverOpen.set(false);
1214
+ }
1215
+ static ɵfac = i0.ɵɵngDeclareFactory({
1216
+ minVersion: "12.0.0",
1217
+ version: "22.3.0",
1218
+ ngImport: i0,
1219
+ type: HxStatusItem,
1220
+ deps: [],
1221
+ target: i0.ɵɵFactoryTarget.Component
1222
+ });
1223
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1224
+ minVersion: "17.0.0",
1225
+ version: "22.3.0",
1226
+ type: HxStatusItem,
1227
+ isStandalone: true,
1228
+ selector: "hx-status-item",
1229
+ inputs: {
1230
+ kind: {
1231
+ classPropertyName: "kind",
1232
+ publicName: "kind",
1233
+ isSignal: true,
1234
+ isRequired: false,
1235
+ transformFunction: null
1236
+ },
1237
+ title: {
1238
+ classPropertyName: "title",
1239
+ publicName: "title",
1240
+ isSignal: true,
1241
+ isRequired: false,
1242
+ transformFunction: null
1243
+ },
1244
+ ariaLabel: {
1245
+ classPropertyName: "ariaLabel",
1246
+ publicName: "ariaLabel",
1247
+ isSignal: true,
1248
+ isRequired: false,
1249
+ transformFunction: null
1250
+ },
1251
+ disabled: {
1252
+ classPropertyName: "disabled",
1253
+ publicName: "disabled",
1254
+ isSignal: true,
1255
+ isRequired: false,
1256
+ transformFunction: null
1257
+ },
1258
+ tone: {
1259
+ classPropertyName: "tone",
1260
+ publicName: "tone",
1261
+ isSignal: true,
1262
+ isRequired: false,
1263
+ transformFunction: null
1264
+ },
1265
+ announce: {
1266
+ classPropertyName: "announce",
1267
+ publicName: "announce",
1268
+ isSignal: true,
1269
+ isRequired: false,
1270
+ transformFunction: null
1271
+ },
1272
+ popoverOpen: {
1273
+ classPropertyName: "popoverOpen",
1274
+ publicName: "popoverOpen",
1275
+ isSignal: true,
1276
+ isRequired: false,
1277
+ transformFunction: null
1278
+ }
1279
+ },
1280
+ outputs: {
1281
+ popoverOpen: "popoverOpenChange",
1282
+ pressed: "pressed"
1283
+ },
1284
+ host: {
1285
+ listeners: {
1286
+ "document:keydown.escape": "close()",
1287
+ "document:click": "onDocumentClick($event)",
1288
+ "window:resize": "placePopover()"
1289
+ },
1290
+ properties: {
1291
+ "class.hx-status-warn": "tone() === 'warn'",
1292
+ "class.hx-status-error": "tone() === 'error'",
1293
+ "class.hx-status-accent": "tone() === 'accent'",
1294
+ "attr.title": "null",
1295
+ "attr.role": "announce() ? 'status' : null"
1296
+ },
1297
+ classAttribute: "hx-status-item"
1298
+ },
1299
+ queries: [{
1300
+ propertyName: "popover",
1301
+ first: true,
1302
+ predicate: HxStatusPopover,
1303
+ descendants: true,
1304
+ isSignal: true
1305
+ }],
1306
+ viewQueries: [{
1307
+ propertyName: "panel",
1308
+ first: true,
1309
+ predicate: ["panel"],
1310
+ descendants: true,
1311
+ isSignal: true
1312
+ }],
1313
+ ngImport: i0,
1314
+ 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 #panel class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n}\n",
1315
+ dependencies: [{
1316
+ kind: "directive",
1317
+ type: NgTemplateOutlet,
1318
+ selector: "[ngTemplateOutlet]",
1319
+ inputs: [
1320
+ "ngTemplateOutletContext",
1321
+ "ngTemplateOutlet",
1322
+ "ngTemplateOutletInjector"
1323
+ ]
1324
+ }],
1325
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1326
+ });
1327
+ };
1328
+ i0.ɵɵngDeclareClassMetadata({
1329
+ minVersion: "12.0.0",
1330
+ version: "22.3.0",
1331
+ ngImport: i0,
1332
+ type: HxStatusItem,
1333
+ decorators: [{
1334
+ type: Component,
1335
+ args: [{
1336
+ selector: "hx-status-item",
1337
+ imports: [NgTemplateOutlet],
1338
+ changeDetection: ChangeDetectionStrategy.OnPush,
1339
+ host: {
1340
+ class: "hx-status-item",
1341
+ "[class.hx-status-warn]": "tone() === 'warn'",
1342
+ "[class.hx-status-error]": "tone() === 'error'",
1343
+ "[class.hx-status-accent]": "tone() === 'accent'",
1344
+ "[attr.title]": "null",
1345
+ "[attr.role]": "announce() ? 'status' : null",
1346
+ "(document:keydown.escape)": "close()",
1347
+ "(document:click)": "onDocumentClick($event)",
1348
+ "(window:resize)": "placePopover()"
1349
+ },
1350
+ 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 #panel class=\"hx-status-popover\"><ng-content select=\"[hxStatusPopover]\" /></div>\n}\n"
1351
+ }]
1352
+ }],
1353
+ ctorParameters: () => [],
1354
+ propDecorators: {
1355
+ kind: [{
1356
+ type: i0.Input,
1357
+ args: [{
1358
+ isSignal: true,
1359
+ alias: "kind",
1360
+ required: false
1361
+ }]
1362
+ }],
1363
+ title: [{
1364
+ type: i0.Input,
1365
+ args: [{
1366
+ isSignal: true,
1367
+ alias: "title",
1368
+ required: false
1369
+ }]
1370
+ }],
1371
+ ariaLabel: [{
1372
+ type: i0.Input,
1373
+ args: [{
1374
+ isSignal: true,
1375
+ alias: "ariaLabel",
1376
+ required: false
1377
+ }]
1378
+ }],
1379
+ disabled: [{
1380
+ type: i0.Input,
1381
+ args: [{
1382
+ isSignal: true,
1383
+ alias: "disabled",
1384
+ required: false
1385
+ }]
1386
+ }],
1387
+ tone: [{
1388
+ type: i0.Input,
1389
+ args: [{
1390
+ isSignal: true,
1391
+ alias: "tone",
1392
+ required: false
1393
+ }]
1394
+ }],
1395
+ announce: [{
1396
+ type: i0.Input,
1397
+ args: [{
1398
+ isSignal: true,
1399
+ alias: "announce",
1400
+ required: false
1401
+ }]
1402
+ }],
1403
+ popoverOpen: [{
1404
+ type: i0.Input,
1405
+ args: [{
1406
+ isSignal: true,
1407
+ alias: "popoverOpen",
1408
+ required: false
1409
+ }]
1410
+ }, {
1411
+ type: i0.Output,
1412
+ args: ["popoverOpenChange"]
1413
+ }],
1414
+ pressed: [{
1415
+ type: i0.Output,
1416
+ args: ["pressed"]
1417
+ }],
1418
+ popover: [{
1419
+ type: i0.ContentChild,
1420
+ args: [i0.forwardRef(() => HxStatusPopover), { isSignal: true }]
1421
+ }],
1422
+ panel: [{
1423
+ type: i0.ViewChild,
1424
+ args: ["panel", { isSignal: true }]
1425
+ }]
1426
+ }
1427
+ });
1428
+ var HxStatusVersion = class HxStatusVersion {
1429
+ version = input.required(...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
1430
+ channel = input(null, ...ngDevMode ? [{ debugName: "channel" }] : /* istanbul ignore next */ []);
1431
+ static ɵfac = i0.ɵɵngDeclareFactory({
1432
+ minVersion: "12.0.0",
1433
+ version: "22.3.0",
1434
+ ngImport: i0,
1435
+ type: HxStatusVersion,
1436
+ deps: [],
1437
+ target: i0.ɵɵFactoryTarget.Component
1438
+ });
1439
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1440
+ minVersion: "17.0.0",
1441
+ version: "22.3.0",
1442
+ type: HxStatusVersion,
1443
+ isStandalone: true,
1444
+ selector: "hx-status-version",
1445
+ inputs: {
1446
+ version: {
1447
+ classPropertyName: "version",
1448
+ publicName: "version",
1449
+ isSignal: true,
1450
+ isRequired: true,
1451
+ transformFunction: null
1452
+ },
1453
+ channel: {
1454
+ classPropertyName: "channel",
1455
+ publicName: "channel",
1456
+ isSignal: true,
1457
+ isRequired: false,
1458
+ transformFunction: null
1459
+ }
1460
+ },
1461
+ host: { classAttribute: "hx-status-version" },
1462
+ ngImport: i0,
1463
+ 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",
1464
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1465
+ });
1466
+ };
1467
+ i0.ɵɵngDeclareClassMetadata({
1468
+ minVersion: "12.0.0",
1469
+ version: "22.3.0",
1470
+ ngImport: i0,
1471
+ type: HxStatusVersion,
1472
+ decorators: [{
1473
+ type: Component,
1474
+ args: [{
1475
+ selector: "hx-status-version",
1476
+ changeDetection: ChangeDetectionStrategy.OnPush,
1477
+ host: { class: "hx-status-version" },
1478
+ 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"
1479
+ }]
1480
+ }],
1481
+ propDecorators: {
1482
+ version: [{
1483
+ type: i0.Input,
1484
+ args: [{
1485
+ isSignal: true,
1486
+ alias: "version",
1487
+ required: true
1488
+ }]
1489
+ }],
1490
+ channel: [{
1491
+ type: i0.Input,
1492
+ args: [{
1493
+ isSignal: true,
1494
+ alias: "channel",
1495
+ required: false
1496
+ }]
1497
+ }]
1498
+ }
1499
+ });
1500
+ var HxStatusZoom = class HxStatusZoom {
1501
+ value = model(100, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1502
+ min = input(50, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
1503
+ max = input(200, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
1504
+ step = input(10, ...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
1505
+ reset = input(100, ...ngDevMode ? [{ debugName: "reset" }] : /* istanbul ignore next */ []);
1506
+ change(delta) {
1507
+ this.set(this.value() + delta);
1508
+ }
1509
+ set(next) {
1510
+ const clamped = Math.min(this.max(), Math.max(this.min(), next));
1511
+ if (clamped !== this.value()) this.value.set(clamped);
1512
+ }
1513
+ static ɵfac = i0.ɵɵngDeclareFactory({
1514
+ minVersion: "12.0.0",
1515
+ version: "22.3.0",
1516
+ ngImport: i0,
1517
+ type: HxStatusZoom,
1518
+ deps: [],
1519
+ target: i0.ɵɵFactoryTarget.Component
1520
+ });
1521
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1522
+ minVersion: "17.1.0",
1523
+ version: "22.3.0",
1524
+ type: HxStatusZoom,
1525
+ isStandalone: true,
1526
+ selector: "hx-status-zoom",
1527
+ inputs: {
1528
+ value: {
1529
+ classPropertyName: "value",
1530
+ publicName: "value",
1531
+ isSignal: true,
1532
+ isRequired: false,
1533
+ transformFunction: null
1534
+ },
1535
+ min: {
1536
+ classPropertyName: "min",
1537
+ publicName: "min",
1538
+ isSignal: true,
1539
+ isRequired: false,
1540
+ transformFunction: null
1541
+ },
1542
+ max: {
1543
+ classPropertyName: "max",
1544
+ publicName: "max",
1545
+ isSignal: true,
1546
+ isRequired: false,
1547
+ transformFunction: null
1548
+ },
1549
+ step: {
1550
+ classPropertyName: "step",
1551
+ publicName: "step",
1552
+ isSignal: true,
1553
+ isRequired: false,
1554
+ transformFunction: null
1555
+ },
1556
+ reset: {
1557
+ classPropertyName: "reset",
1558
+ publicName: "reset",
1559
+ isSignal: true,
1560
+ isRequired: false,
1561
+ transformFunction: null
1562
+ }
1563
+ },
1564
+ outputs: { value: "valueChange" },
1565
+ host: { classAttribute: "hx-status-zoom" },
1566
+ ngImport: i0,
1567
+ 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 &minus;\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",
1568
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1569
+ });
1570
+ };
1571
+ i0.ɵɵngDeclareClassMetadata({
1572
+ minVersion: "12.0.0",
1573
+ version: "22.3.0",
1574
+ ngImport: i0,
1575
+ type: HxStatusZoom,
1576
+ decorators: [{
1577
+ type: Component,
1578
+ args: [{
1579
+ selector: "hx-status-zoom",
1580
+ changeDetection: ChangeDetectionStrategy.OnPush,
1581
+ host: { class: "hx-status-zoom" },
1582
+ 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 &minus;\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"
1583
+ }]
1584
+ }],
1585
+ propDecorators: {
1586
+ value: [{
1587
+ type: i0.Input,
1588
+ args: [{
1589
+ isSignal: true,
1590
+ alias: "value",
1591
+ required: false
1592
+ }]
1593
+ }, {
1594
+ type: i0.Output,
1595
+ args: ["valueChange"]
1596
+ }],
1597
+ min: [{
1598
+ type: i0.Input,
1599
+ args: [{
1600
+ isSignal: true,
1601
+ alias: "min",
1602
+ required: false
1603
+ }]
1604
+ }],
1605
+ max: [{
1606
+ type: i0.Input,
1607
+ args: [{
1608
+ isSignal: true,
1609
+ alias: "max",
1610
+ required: false
1611
+ }]
1612
+ }],
1613
+ step: [{
1614
+ type: i0.Input,
1615
+ args: [{
1616
+ isSignal: true,
1617
+ alias: "step",
1618
+ required: false
1619
+ }]
1620
+ }],
1621
+ reset: [{
1622
+ type: i0.Input,
1623
+ args: [{
1624
+ isSignal: true,
1625
+ alias: "reset",
1626
+ required: false
1627
+ }]
1628
+ }]
1629
+ }
1630
+ });
1631
+ export { HX_BOTTOM_BAR_MAX_ITEMS, HxActivityBar, HxAppShell, HxAppToolbar, HxBottomBar, HxMobileShell, HxStatusBar, HxStatusItem, HxStatusPopover, HxStatusVersion, HxStatusZoom };
1632
+
1633
+ //# sourceMappingURL=gravionlabs-helix-app-frame.mjs.map