@spartan-native/desktop-ui 0.2.0 → 0.2.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ApplicationRef, ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, InjectionToken, Injector, TemplateRef, ViewContainerRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, createComponent, effect, forwardRef, inject, input, isDevMode, linkedSignal, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
|
-
import { SpartanNativeTheme, injectNativeSkin, injectPlatformFamily, injectSkin, skinFamily } from "@spartan-native/theme";
|
|
3
|
+
import { NATIVE_HOST, SpartanNativeTheme, injectNativeSkin, injectPlatformFamily, injectSkin, skinFamily } from "@spartan-native/theme";
|
|
4
4
|
import { NgIcon } from "@ng-icons/core";
|
|
5
5
|
import { FocusKeyManager, InputModalityDetector } from "@angular/cdk/a11y";
|
|
6
6
|
import { Directionality } from "@angular/cdk/bidi";
|
|
@@ -1907,6 +1907,71 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1907
1907
|
args: [{ selector: "ng-template[snCommandOverflow]" }]
|
|
1908
1908
|
}]
|
|
1909
1909
|
});
|
|
1910
|
+
var SnPageCommands = class SnPageCommands {
|
|
1911
|
+
template = signal(null, ...ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []);
|
|
1912
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1913
|
+
minVersion: "12.0.0",
|
|
1914
|
+
version: "22.2.5",
|
|
1915
|
+
ngImport: i0,
|
|
1916
|
+
type: SnPageCommands,
|
|
1917
|
+
deps: [],
|
|
1918
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
1919
|
+
});
|
|
1920
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1921
|
+
minVersion: "12.0.0",
|
|
1922
|
+
version: "22.2.5",
|
|
1923
|
+
ngImport: i0,
|
|
1924
|
+
type: SnPageCommands,
|
|
1925
|
+
providedIn: "root"
|
|
1926
|
+
});
|
|
1927
|
+
};
|
|
1928
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1929
|
+
minVersion: "12.0.0",
|
|
1930
|
+
version: "22.2.5",
|
|
1931
|
+
ngImport: i0,
|
|
1932
|
+
type: SnPageCommands,
|
|
1933
|
+
decorators: [{
|
|
1934
|
+
type: Injectable,
|
|
1935
|
+
args: [{ providedIn: "root" }]
|
|
1936
|
+
}]
|
|
1937
|
+
});
|
|
1938
|
+
var SnPageCommandsTemplate = class SnPageCommandsTemplate {
|
|
1939
|
+
constructor() {
|
|
1940
|
+
const template = inject(TemplateRef);
|
|
1941
|
+
const commands = inject(SnPageCommands);
|
|
1942
|
+
commands.template.set(template);
|
|
1943
|
+
inject(DestroyRef).onDestroy(() => {
|
|
1944
|
+
if (commands.template() === template) commands.template.set(null);
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1948
|
+
minVersion: "12.0.0",
|
|
1949
|
+
version: "22.2.5",
|
|
1950
|
+
ngImport: i0,
|
|
1951
|
+
type: SnPageCommandsTemplate,
|
|
1952
|
+
deps: [],
|
|
1953
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1954
|
+
});
|
|
1955
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1956
|
+
minVersion: "14.0.0",
|
|
1957
|
+
version: "22.2.5",
|
|
1958
|
+
type: SnPageCommandsTemplate,
|
|
1959
|
+
isStandalone: true,
|
|
1960
|
+
selector: "ng-template[snPageCommands]",
|
|
1961
|
+
ngImport: i0
|
|
1962
|
+
});
|
|
1963
|
+
};
|
|
1964
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1965
|
+
minVersion: "12.0.0",
|
|
1966
|
+
version: "22.2.5",
|
|
1967
|
+
ngImport: i0,
|
|
1968
|
+
type: SnPageCommandsTemplate,
|
|
1969
|
+
decorators: [{
|
|
1970
|
+
type: Directive,
|
|
1971
|
+
args: [{ selector: "ng-template[snPageCommands]" }]
|
|
1972
|
+
}],
|
|
1973
|
+
ctorParameters: () => []
|
|
1974
|
+
});
|
|
1910
1975
|
var SnCommandGroup = class SnCommandGroup {
|
|
1911
1976
|
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
1912
1977
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -2654,7 +2719,8 @@ const SnCommandBarImports = [
|
|
|
2654
2719
|
SnCommandBar,
|
|
2655
2720
|
SnCommand,
|
|
2656
2721
|
SnCommandGroup,
|
|
2657
|
-
SnCommandOverflow
|
|
2722
|
+
SnCommandOverflow,
|
|
2723
|
+
SnPageCommandsTemplate
|
|
2658
2724
|
];
|
|
2659
2725
|
function coachMarkPositions(placement) {
|
|
2660
2726
|
if (placement === "top" || placement === "bottom") return (placement === "bottom" ? ["bottom", "top"] : ["top", "bottom"]).flatMap((side) => [
|
|
@@ -3132,6 +3198,7 @@ var SnModalSheet = class SnModalSheet {
|
|
|
3132
3198
|
host: {
|
|
3133
3199
|
attributes: { "data-slot": "sn-modal-sheet" },
|
|
3134
3200
|
properties: {
|
|
3201
|
+
"attr.role": "null",
|
|
3135
3202
|
"attr.data-family": "family()",
|
|
3136
3203
|
"attr.data-skin": "skin()"
|
|
3137
3204
|
}
|
|
@@ -3176,6 +3243,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3176
3243
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3177
3244
|
host: {
|
|
3178
3245
|
"data-slot": "sn-modal-sheet",
|
|
3246
|
+
"[attr.role]": "null",
|
|
3179
3247
|
"[attr.data-family]": "family()",
|
|
3180
3248
|
"[attr.data-skin]": "skin()"
|
|
3181
3249
|
},
|
|
@@ -3232,6 +3300,257 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3232
3300
|
}]
|
|
3233
3301
|
}
|
|
3234
3302
|
});
|
|
3303
|
+
const OK = {
|
|
3304
|
+
id: "ok",
|
|
3305
|
+
label: "OK"
|
|
3306
|
+
};
|
|
3307
|
+
var SnAlertSheet = class SnAlertSheet {
|
|
3308
|
+
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
3309
|
+
answered = input.required(...ngDevMode ? [{ debugName: "answered" }] : /* istanbul ignore next */ []);
|
|
3310
|
+
open = signal(true, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
3311
|
+
buttons = computed(() => this.options().buttons?.length ? this.options().buttons : [OK], ...ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []);
|
|
3312
|
+
defaultId = computed(() => {
|
|
3313
|
+
const { defaultId, cancelId } = this.options();
|
|
3314
|
+
return defaultId ?? this.buttons().find((b) => b.id !== cancelId)?.id ?? this.buttons()[0].id;
|
|
3315
|
+
}, ...ngDevMode ? [{ debugName: "defaultId" }] : /* istanbul ignore next */ []);
|
|
3316
|
+
primary = computed(() => this.buttons().find((b) => b.id === this.defaultId()) ?? null, ...ngDevMode ? [{ debugName: "primary" }] : /* istanbul ignore next */ []);
|
|
3317
|
+
cancel = computed(() => {
|
|
3318
|
+
const { cancelId } = this.options();
|
|
3319
|
+
return this.buttons().find((b) => b.id === cancelId && b.id !== this.defaultId()) ?? null;
|
|
3320
|
+
}, ...ngDevMode ? [{ debugName: "cancel" }] : /* istanbul ignore next */ []);
|
|
3321
|
+
others = computed(() => this.buttons().filter((b) => b !== this.primary() && b !== this.cancel()), ...ngDevMode ? [{ debugName: "others" }] : /* istanbul ignore next */ []);
|
|
3322
|
+
done = false;
|
|
3323
|
+
answer(id) {
|
|
3324
|
+
if (this.done) return;
|
|
3325
|
+
this.done = true;
|
|
3326
|
+
this.open.set(false);
|
|
3327
|
+
this.answered()(id);
|
|
3328
|
+
}
|
|
3329
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3330
|
+
minVersion: "12.0.0",
|
|
3331
|
+
version: "22.2.5",
|
|
3332
|
+
ngImport: i0,
|
|
3333
|
+
type: SnAlertSheet,
|
|
3334
|
+
deps: [],
|
|
3335
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
3336
|
+
});
|
|
3337
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
3338
|
+
minVersion: "17.0.0",
|
|
3339
|
+
version: "22.2.5",
|
|
3340
|
+
type: SnAlertSheet,
|
|
3341
|
+
isStandalone: true,
|
|
3342
|
+
selector: "sn-alert-sheet",
|
|
3343
|
+
inputs: {
|
|
3344
|
+
options: {
|
|
3345
|
+
classPropertyName: "options",
|
|
3346
|
+
publicName: "options",
|
|
3347
|
+
isSignal: true,
|
|
3348
|
+
isRequired: true,
|
|
3349
|
+
transformFunction: null
|
|
3350
|
+
},
|
|
3351
|
+
answered: {
|
|
3352
|
+
classPropertyName: "answered",
|
|
3353
|
+
publicName: "answered",
|
|
3354
|
+
isSignal: true,
|
|
3355
|
+
isRequired: true,
|
|
3356
|
+
transformFunction: null
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
host: { attributes: { "data-slot": "sn-alert-sheet" } },
|
|
3360
|
+
ngImport: i0,
|
|
3361
|
+
template: `
|
|
3362
|
+
<sn-modal-sheet
|
|
3363
|
+
[role]="'alertdialog'"
|
|
3364
|
+
[open]="open()"
|
|
3365
|
+
(openChange)="!$event && answer(options().cancelId ?? null)"
|
|
3366
|
+
[title]="options().title || options().message"
|
|
3367
|
+
>
|
|
3368
|
+
@if (options().title) {
|
|
3369
|
+
<p class="message">{{ options().message }}</p>
|
|
3370
|
+
}
|
|
3371
|
+
<ng-container ngProjectAs="[snSheetSecondary]">
|
|
3372
|
+
@for (b of others(); track b.id) {
|
|
3373
|
+
<button type="button" data-slot="button" class="sn-alert-button border-border" (click)="answer(b.id)">
|
|
3374
|
+
{{ b.label }}
|
|
3375
|
+
</button>
|
|
3376
|
+
}
|
|
3377
|
+
</ng-container>
|
|
3378
|
+
<ng-container ngProjectAs="[snSheetCancel]">
|
|
3379
|
+
@if (cancel(); as b) {
|
|
3380
|
+
<button type="button" data-slot="button" class="sn-alert-button border-border">{{ b.label }}</button>
|
|
3381
|
+
}
|
|
3382
|
+
</ng-container>
|
|
3383
|
+
<ng-container ngProjectAs="[snSheetPrimary]">
|
|
3384
|
+
@if (primary(); as b) {
|
|
3385
|
+
<button
|
|
3386
|
+
type="button"
|
|
3387
|
+
data-slot="button"
|
|
3388
|
+
class="sn-alert-button bg-primary"
|
|
3389
|
+
cdkFocusInitial
|
|
3390
|
+
[attr.data-kind]="options().kind ?? 'info'"
|
|
3391
|
+
(click)="answer(b.id)"
|
|
3392
|
+
>
|
|
3393
|
+
{{ b.label }}
|
|
3394
|
+
</button>
|
|
3395
|
+
}
|
|
3396
|
+
</ng-container>
|
|
3397
|
+
</sn-modal-sheet>
|
|
3398
|
+
`,
|
|
3399
|
+
isInline: true,
|
|
3400
|
+
styles: [":host{display:contents}.message{margin:0;white-space:pre-line}@layer spartan-native.base{.sn-alert-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--sn-control-height);padding-inline:var(--sn-control-padding-x, .75rem);border:1px solid var(--sn-color-border);border-radius:var(--sn-radius-control);background:var(--sn-color-control, var(--sn-color-bg));color:var(--sn-color-fg);font:inherit;font-weight:var(--sn-font-weight-control);white-space:nowrap}.sn-alert-button.bg-primary{border-color:transparent;background:var(--sn-color-primary);color:var(--sn-color-primary-fg)}.sn-alert-button:focus-visible{outline:var(--sn-focus-outline);outline-offset:var(--sn-focus-offset)}}\n"],
|
|
3401
|
+
dependencies: [{
|
|
3402
|
+
kind: "component",
|
|
3403
|
+
type: SnModalSheet,
|
|
3404
|
+
selector: "sn-modal-sheet",
|
|
3405
|
+
inputs: [
|
|
3406
|
+
"open",
|
|
3407
|
+
"title",
|
|
3408
|
+
"role"
|
|
3409
|
+
],
|
|
3410
|
+
outputs: ["openChange"]
|
|
3411
|
+
}],
|
|
3412
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3413
|
+
});
|
|
3414
|
+
};
|
|
3415
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3416
|
+
minVersion: "12.0.0",
|
|
3417
|
+
version: "22.2.5",
|
|
3418
|
+
ngImport: i0,
|
|
3419
|
+
type: SnAlertSheet,
|
|
3420
|
+
decorators: [{
|
|
3421
|
+
type: Component,
|
|
3422
|
+
args: [{
|
|
3423
|
+
selector: "sn-alert-sheet",
|
|
3424
|
+
imports: [SnModalSheet],
|
|
3425
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3426
|
+
host: { "data-slot": "sn-alert-sheet" },
|
|
3427
|
+
template: `
|
|
3428
|
+
<sn-modal-sheet
|
|
3429
|
+
[role]="'alertdialog'"
|
|
3430
|
+
[open]="open()"
|
|
3431
|
+
(openChange)="!$event && answer(options().cancelId ?? null)"
|
|
3432
|
+
[title]="options().title || options().message"
|
|
3433
|
+
>
|
|
3434
|
+
@if (options().title) {
|
|
3435
|
+
<p class="message">{{ options().message }}</p>
|
|
3436
|
+
}
|
|
3437
|
+
<ng-container ngProjectAs="[snSheetSecondary]">
|
|
3438
|
+
@for (b of others(); track b.id) {
|
|
3439
|
+
<button type="button" data-slot="button" class="sn-alert-button border-border" (click)="answer(b.id)">
|
|
3440
|
+
{{ b.label }}
|
|
3441
|
+
</button>
|
|
3442
|
+
}
|
|
3443
|
+
</ng-container>
|
|
3444
|
+
<ng-container ngProjectAs="[snSheetCancel]">
|
|
3445
|
+
@if (cancel(); as b) {
|
|
3446
|
+
<button type="button" data-slot="button" class="sn-alert-button border-border">{{ b.label }}</button>
|
|
3447
|
+
}
|
|
3448
|
+
</ng-container>
|
|
3449
|
+
<ng-container ngProjectAs="[snSheetPrimary]">
|
|
3450
|
+
@if (primary(); as b) {
|
|
3451
|
+
<button
|
|
3452
|
+
type="button"
|
|
3453
|
+
data-slot="button"
|
|
3454
|
+
class="sn-alert-button bg-primary"
|
|
3455
|
+
cdkFocusInitial
|
|
3456
|
+
[attr.data-kind]="options().kind ?? 'info'"
|
|
3457
|
+
(click)="answer(b.id)"
|
|
3458
|
+
>
|
|
3459
|
+
{{ b.label }}
|
|
3460
|
+
</button>
|
|
3461
|
+
}
|
|
3462
|
+
</ng-container>
|
|
3463
|
+
</sn-modal-sheet>
|
|
3464
|
+
`,
|
|
3465
|
+
styles: [":host{display:contents}.message{margin:0;white-space:pre-line}@layer spartan-native.base{.sn-alert-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--sn-control-height);padding-inline:var(--sn-control-padding-x, .75rem);border:1px solid var(--sn-color-border);border-radius:var(--sn-radius-control);background:var(--sn-color-control, var(--sn-color-bg));color:var(--sn-color-fg);font:inherit;font-weight:var(--sn-font-weight-control);white-space:nowrap}.sn-alert-button.bg-primary{border-color:transparent;background:var(--sn-color-primary);color:var(--sn-color-primary-fg)}.sn-alert-button:focus-visible{outline:var(--sn-focus-outline);outline-offset:var(--sn-focus-offset)}}\n"]
|
|
3466
|
+
}]
|
|
3467
|
+
}],
|
|
3468
|
+
propDecorators: {
|
|
3469
|
+
options: [{
|
|
3470
|
+
type: i0.Input,
|
|
3471
|
+
args: [{
|
|
3472
|
+
isSignal: true,
|
|
3473
|
+
alias: "options",
|
|
3474
|
+
required: true
|
|
3475
|
+
}]
|
|
3476
|
+
}],
|
|
3477
|
+
answered: [{
|
|
3478
|
+
type: i0.Input,
|
|
3479
|
+
args: [{
|
|
3480
|
+
isSignal: true,
|
|
3481
|
+
alias: "answered",
|
|
3482
|
+
required: true
|
|
3483
|
+
}]
|
|
3484
|
+
}]
|
|
3485
|
+
}
|
|
3486
|
+
});
|
|
3487
|
+
var SnAlert = class SnAlert {
|
|
3488
|
+
host = inject(NATIVE_HOST, { optional: true });
|
|
3489
|
+
appRef = inject(ApplicationRef);
|
|
3490
|
+
environmentInjector = inject(EnvironmentInjector);
|
|
3491
|
+
document = inject(DOCUMENT);
|
|
3492
|
+
show(options) {
|
|
3493
|
+
const native = this.host?.dialogs?.message;
|
|
3494
|
+
if (native) return native.call(this.host.dialogs, options);
|
|
3495
|
+
return this.inPage(options);
|
|
3496
|
+
}
|
|
3497
|
+
async confirm(message, options = {}) {
|
|
3498
|
+
return await this.show({
|
|
3499
|
+
kind: options.kind ?? "question",
|
|
3500
|
+
title: options.title,
|
|
3501
|
+
message,
|
|
3502
|
+
buttons: [{
|
|
3503
|
+
id: "confirm",
|
|
3504
|
+
label: options.confirmLabel ?? "OK"
|
|
3505
|
+
}, {
|
|
3506
|
+
id: "cancel",
|
|
3507
|
+
label: options.cancelLabel ?? "Cancel"
|
|
3508
|
+
}],
|
|
3509
|
+
defaultId: "confirm",
|
|
3510
|
+
cancelId: "cancel"
|
|
3511
|
+
}) === "confirm";
|
|
3512
|
+
}
|
|
3513
|
+
inPage(options) {
|
|
3514
|
+
return new Promise((resolve) => {
|
|
3515
|
+
const ref = createComponent(SnAlertSheet, { environmentInjector: this.environmentInjector });
|
|
3516
|
+
ref.setInput("options", options);
|
|
3517
|
+
ref.setInput("answered", (id) => {
|
|
3518
|
+
resolve(id);
|
|
3519
|
+
queueMicrotask(() => {
|
|
3520
|
+
this.appRef.detachView(ref.hostView);
|
|
3521
|
+
ref.destroy();
|
|
3522
|
+
});
|
|
3523
|
+
});
|
|
3524
|
+
(this.document.querySelector("[snSheetHost]") ?? this.document.body).appendChild(ref.location.nativeElement);
|
|
3525
|
+
this.appRef.attachView(ref.hostView);
|
|
3526
|
+
});
|
|
3527
|
+
}
|
|
3528
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3529
|
+
minVersion: "12.0.0",
|
|
3530
|
+
version: "22.2.5",
|
|
3531
|
+
ngImport: i0,
|
|
3532
|
+
type: SnAlert,
|
|
3533
|
+
deps: [],
|
|
3534
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
3535
|
+
});
|
|
3536
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3537
|
+
minVersion: "12.0.0",
|
|
3538
|
+
version: "22.2.5",
|
|
3539
|
+
ngImport: i0,
|
|
3540
|
+
type: SnAlert,
|
|
3541
|
+
providedIn: "root"
|
|
3542
|
+
});
|
|
3543
|
+
};
|
|
3544
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
3545
|
+
minVersion: "12.0.0",
|
|
3546
|
+
version: "22.2.5",
|
|
3547
|
+
ngImport: i0,
|
|
3548
|
+
type: SnAlert,
|
|
3549
|
+
decorators: [{
|
|
3550
|
+
type: Injectable,
|
|
3551
|
+
args: [{ providedIn: "root" }]
|
|
3552
|
+
}]
|
|
3553
|
+
});
|
|
3235
3554
|
let nextId$4 = 0;
|
|
3236
3555
|
var SnInspectorLayout = class SnInspectorLayout {
|
|
3237
3556
|
skin = injectSkin();
|
|
@@ -3610,6 +3929,10 @@ const SnInspectorImports = [
|
|
|
3610
3929
|
];
|
|
3611
3930
|
let nextId$3 = 0;
|
|
3612
3931
|
var SnSidebarNav = class SnSidebarNav {
|
|
3932
|
+
collapsed = input(false, {
|
|
3933
|
+
...ngDevMode ? { debugName: "collapsed" } : /* istanbul ignore next */ {},
|
|
3934
|
+
transform: booleanAttribute
|
|
3935
|
+
});
|
|
3613
3936
|
items = contentChildren(forwardRef(() => SnSidebarItem), {
|
|
3614
3937
|
...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
|
|
3615
3938
|
descendants: true
|
|
@@ -3649,6 +3972,13 @@ var SnSidebarNav = class SnSidebarNav {
|
|
|
3649
3972
|
type: SnSidebarNav,
|
|
3650
3973
|
isStandalone: true,
|
|
3651
3974
|
selector: "sn-sidebar-nav",
|
|
3975
|
+
inputs: { collapsed: {
|
|
3976
|
+
classPropertyName: "collapsed",
|
|
3977
|
+
publicName: "collapsed",
|
|
3978
|
+
isSignal: true,
|
|
3979
|
+
isRequired: false,
|
|
3980
|
+
transformFunction: null
|
|
3981
|
+
} },
|
|
3652
3982
|
host: {
|
|
3653
3983
|
attributes: {
|
|
3654
3984
|
"data-slot": "sn-sidebar-nav",
|
|
@@ -3656,6 +3986,7 @@ var SnSidebarNav = class SnSidebarNav {
|
|
|
3656
3986
|
},
|
|
3657
3987
|
listeners: { "keydown": "onKeydown($event)" },
|
|
3658
3988
|
properties: {
|
|
3989
|
+
"attr.data-collapsed": "collapsed() ? \"\" : null",
|
|
3659
3990
|
"attr.data-family": "family()",
|
|
3660
3991
|
"attr.data-skin": "skin()"
|
|
3661
3992
|
},
|
|
@@ -3670,7 +4001,7 @@ var SnSidebarNav = class SnSidebarNav {
|
|
|
3670
4001
|
ngImport: i0,
|
|
3671
4002
|
template: `<ng-content />`,
|
|
3672
4003
|
isInline: true,
|
|
3673
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4004
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"],
|
|
3674
4005
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3675
4006
|
});
|
|
3676
4007
|
};
|
|
@@ -3688,21 +4019,32 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3688
4019
|
"data-slot": "sn-sidebar-nav",
|
|
3689
4020
|
class: "sn-sidebar",
|
|
3690
4021
|
role: "navigation",
|
|
4022
|
+
"[attr.data-collapsed]": "collapsed() ? \"\" : null",
|
|
3691
4023
|
"[attr.data-family]": "family()",
|
|
3692
4024
|
"[attr.data-skin]": "skin()",
|
|
3693
4025
|
"(keydown)": "onKeydown($event)"
|
|
3694
4026
|
},
|
|
3695
4027
|
template: `<ng-content />`,
|
|
3696
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4028
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"]
|
|
3697
4029
|
}]
|
|
3698
4030
|
}],
|
|
3699
|
-
propDecorators: {
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
4031
|
+
propDecorators: {
|
|
4032
|
+
collapsed: [{
|
|
4033
|
+
type: i0.Input,
|
|
4034
|
+
args: [{
|
|
4035
|
+
isSignal: true,
|
|
4036
|
+
alias: "collapsed",
|
|
4037
|
+
required: false
|
|
4038
|
+
}]
|
|
4039
|
+
}],
|
|
4040
|
+
items: [{
|
|
4041
|
+
type: i0.ContentChildren,
|
|
4042
|
+
args: [forwardRef(() => SnSidebarItem), {
|
|
4043
|
+
descendants: true,
|
|
4044
|
+
isSignal: true
|
|
4045
|
+
}]
|
|
3704
4046
|
}]
|
|
3705
|
-
}
|
|
4047
|
+
}
|
|
3706
4048
|
});
|
|
3707
4049
|
function nextIndex(key, current, count) {
|
|
3708
4050
|
switch (key) {
|
|
@@ -3715,6 +4057,7 @@ function nextIndex(key, current, count) {
|
|
|
3715
4057
|
}
|
|
3716
4058
|
var SnSidebarSection = class SnSidebarSection {
|
|
3717
4059
|
title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
4060
|
+
nav = inject(SnSidebarNav, { optional: true });
|
|
3718
4061
|
headingId = `sn-sidebar-section-${nextId$3++}`;
|
|
3719
4062
|
skin = injectSkin();
|
|
3720
4063
|
family = computed(() => skinFamily(this.skin()), ...ngDevMode ? [{ debugName: "family" }] : /* istanbul ignore next */ []);
|
|
@@ -3746,6 +4089,7 @@ var SnSidebarSection = class SnSidebarSection {
|
|
|
3746
4089
|
},
|
|
3747
4090
|
properties: {
|
|
3748
4091
|
"attr.aria-labelledby": "title() ? headingId : null",
|
|
4092
|
+
"attr.data-collapsed": "nav?.collapsed() ? \"\" : null",
|
|
3749
4093
|
"attr.data-family": "family()",
|
|
3750
4094
|
"attr.data-skin": "skin()"
|
|
3751
4095
|
}
|
|
@@ -3758,7 +4102,7 @@ var SnSidebarSection = class SnSidebarSection {
|
|
|
3758
4102
|
<ng-content />
|
|
3759
4103
|
`,
|
|
3760
4104
|
isInline: true,
|
|
3761
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4105
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"],
|
|
3762
4106
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3763
4107
|
});
|
|
3764
4108
|
};
|
|
@@ -3776,6 +4120,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3776
4120
|
"data-slot": "sn-sidebar-section",
|
|
3777
4121
|
role: "group",
|
|
3778
4122
|
"[attr.aria-labelledby]": "title() ? headingId : null",
|
|
4123
|
+
"[attr.data-collapsed]": "nav?.collapsed() ? \"\" : null",
|
|
3779
4124
|
"[attr.data-family]": "family()",
|
|
3780
4125
|
"[attr.data-skin]": "skin()"
|
|
3781
4126
|
},
|
|
@@ -3785,7 +4130,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3785
4130
|
}
|
|
3786
4131
|
<ng-content />
|
|
3787
4132
|
`,
|
|
3788
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4133
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"]
|
|
3789
4134
|
}]
|
|
3790
4135
|
}],
|
|
3791
4136
|
propDecorators: { title: [{
|
|
@@ -3804,10 +4149,25 @@ var SnSidebarItem = class SnSidebarItem {
|
|
|
3804
4149
|
});
|
|
3805
4150
|
icon = input("", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
3806
4151
|
badge = input("", ...ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []);
|
|
4152
|
+
tooltip = input("", ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
3807
4153
|
element = inject(ElementRef).nativeElement;
|
|
3808
4154
|
nav = inject(SnSidebarNav, { optional: true });
|
|
3809
4155
|
skin = injectSkin();
|
|
3810
4156
|
family = computed(() => skinFamily(this.skin()), ...ngDevMode ? [{ debugName: "family" }] : /* istanbul ignore next */ []);
|
|
4157
|
+
hint = inject(SnTooltip, { self: true });
|
|
4158
|
+
syncTooltip() {
|
|
4159
|
+
if (!this.nav?.collapsed()) {
|
|
4160
|
+
this.hint.text.set(null);
|
|
4161
|
+
return;
|
|
4162
|
+
}
|
|
4163
|
+
if (this.tooltip()) {
|
|
4164
|
+
this.hint.text.set(this.tooltip());
|
|
4165
|
+
return;
|
|
4166
|
+
}
|
|
4167
|
+
const label = this.element.querySelector(".label")?.textContent?.trim() ?? "";
|
|
4168
|
+
const badge = String(this.badge() ?? "").trim();
|
|
4169
|
+
this.hint.text.set(badge ? `${label} (${badge})` : label);
|
|
4170
|
+
}
|
|
3811
4171
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3812
4172
|
minVersion: "12.0.0",
|
|
3813
4173
|
version: "22.2.5",
|
|
@@ -3843,21 +4203,35 @@ var SnSidebarItem = class SnSidebarItem {
|
|
|
3843
4203
|
isSignal: true,
|
|
3844
4204
|
isRequired: false,
|
|
3845
4205
|
transformFunction: null
|
|
4206
|
+
},
|
|
4207
|
+
tooltip: {
|
|
4208
|
+
classPropertyName: "tooltip",
|
|
4209
|
+
publicName: "tooltip",
|
|
4210
|
+
isSignal: true,
|
|
4211
|
+
isRequired: false,
|
|
4212
|
+
transformFunction: null
|
|
3846
4213
|
}
|
|
3847
4214
|
},
|
|
3848
4215
|
host: {
|
|
3849
4216
|
attributes: { "data-slot": "sn-sidebar-item" },
|
|
3850
|
-
listeners: {
|
|
4217
|
+
listeners: {
|
|
4218
|
+
"focus": "nav?.setFocused(this)",
|
|
4219
|
+
"pointerenter": "syncTooltip()",
|
|
4220
|
+
"focusin": "syncTooltip()"
|
|
4221
|
+
},
|
|
3851
4222
|
properties: {
|
|
3852
4223
|
"attr.aria-current": "active() ? 'page' : null",
|
|
3853
4224
|
"attr.data-active": "active() ? '' : null",
|
|
4225
|
+
"attr.data-collapsed": "nav?.collapsed() ? \"\" : null",
|
|
4226
|
+
"attr.data-icon": "icon() ? \"\" : null",
|
|
3854
4227
|
"attr.tabindex": "nav?.tabStop() === this ? 0 : nav ? -1 : null",
|
|
3855
4228
|
"attr.type": "element.localName === 'button' ? 'button' : null",
|
|
3856
4229
|
"attr.data-family": "family()",
|
|
3857
4230
|
"attr.data-skin": "skin()"
|
|
3858
4231
|
},
|
|
3859
|
-
classAttribute: "sn-list-item"
|
|
4232
|
+
classAttribute: "sn-list-item sn-sidebar-item"
|
|
3860
4233
|
},
|
|
4234
|
+
hostDirectives: [{ directive: SnTooltip }],
|
|
3861
4235
|
ngImport: i0,
|
|
3862
4236
|
template: `
|
|
3863
4237
|
@if (icon()) {
|
|
@@ -3869,7 +4243,7 @@ var SnSidebarItem = class SnSidebarItem {
|
|
|
3869
4243
|
}
|
|
3870
4244
|
`,
|
|
3871
4245
|
isInline: true,
|
|
3872
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4246
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"],
|
|
3873
4247
|
dependencies: [{
|
|
3874
4248
|
kind: "component",
|
|
3875
4249
|
type: NgIcon,
|
|
@@ -3895,17 +4269,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3895
4269
|
args: [{
|
|
3896
4270
|
selector: "a[snSidebarItem], button[snSidebarItem]",
|
|
3897
4271
|
imports: [NgIcon],
|
|
4272
|
+
hostDirectives: [SnTooltip],
|
|
3898
4273
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3899
4274
|
host: {
|
|
3900
4275
|
"data-slot": "sn-sidebar-item",
|
|
3901
|
-
class: "sn-list-item",
|
|
4276
|
+
class: "sn-list-item sn-sidebar-item",
|
|
3902
4277
|
"[attr.aria-current]": "active() ? 'page' : null",
|
|
3903
4278
|
"[attr.data-active]": "active() ? '' : null",
|
|
4279
|
+
"[attr.data-collapsed]": "nav?.collapsed() ? \"\" : null",
|
|
4280
|
+
"[attr.data-icon]": "icon() ? \"\" : null",
|
|
3904
4281
|
"[attr.tabindex]": "nav?.tabStop() === this ? 0 : nav ? -1 : null",
|
|
3905
4282
|
"[attr.type]": "element.localName === 'button' ? 'button' : null",
|
|
3906
4283
|
"[attr.data-family]": "family()",
|
|
3907
4284
|
"[attr.data-skin]": "skin()",
|
|
3908
|
-
"(focus)": "nav?.setFocused(this)"
|
|
4285
|
+
"(focus)": "nav?.setFocused(this)",
|
|
4286
|
+
"(pointerenter)": "syncTooltip()",
|
|
4287
|
+
"(focusin)": "syncTooltip()"
|
|
3909
4288
|
},
|
|
3910
4289
|
template: `
|
|
3911
4290
|
@if (icon()) {
|
|
@@ -3916,7 +4295,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3916
4295
|
<span class="badge">{{ badge() }}</span>
|
|
3917
4296
|
}
|
|
3918
4297
|
`,
|
|
3919
|
-
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(
|
|
4298
|
+
styles: [":host([data-slot=sn-sidebar-nav]){display:flex;flex-direction:column;gap:.125rem;flex:none;inline-size:14.5rem;padding:.5rem;box-sizing:border-box;overflow-y:auto}:host([data-slot=sn-sidebar-section]){display:flex;flex-direction:column;gap:.125rem}:host([data-slot=sn-sidebar-section]) .heading{padding:.75rem .75rem .25rem;font-size:var(--sn-font-size-small);font-weight:var(--sn-font-weight-strong);color:var(--sn-color-fg-muted)}:host(.sn-sidebar-item){position:relative;display:flex;align-items:center;gap:.75em;box-sizing:border-box;inline-size:100%;min-block-size:var(--sn-list-item-height);margin:0;padding:0 .75em;border:0;border-radius:var(--sn-list-item-radius);background:transparent;color:var(--sn-color-fg);font:inherit;text-align:start;text-decoration:none;cursor:default;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(.sn-sidebar-item:focus-visible){outline:var(--sn-focus-outline);outline-offset:-2px;box-shadow:var(--sn-focus-shadow)}:host(.sn-sidebar-item:hover){background:color-mix(in srgb,var(--sn-color-fg) 6%,transparent)}:host(.sn-sidebar-item[data-active]){background:var(--sn-selection-bg);color:var(--sn-selection-fg)}:host(.sn-sidebar-item[data-active]):before{content:\"\";position:absolute;inset-inline-start:0;top:50%;inline-size:3px;block-size:1em;translate:0 -50%;border-radius:2px;background:var(--sn-selection-indicator)}.icon{flex:none;font-size:1.15em}.label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{flex:none;font-size:var(--sn-font-size-small);font-variant-numeric:tabular-nums;color:var(--sn-color-fg-muted)}:host([data-slot=sn-sidebar-section][data-family=windows]) .heading{padding:.875rem .75rem .375rem;font-size:var(--sn-font-size);color:var(--sn-color-fg)}:host(.sn-sidebar-item[data-family=windows]) .badge{min-inline-size:1rem;padding:0 .3125rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);line-height:1rem;text-align:center}:host(.sn-sidebar-item[data-skin=w10][data-active]):before{top:0;bottom:0;inline-size:.25rem;block-size:auto;translate:none;border-radius:0;background:var(--sn-color-primary)}:host([data-slot=sn-sidebar-nav][data-skin=w10]){padding-inline:0}:host([data-slot=sn-sidebar-nav][data-family=macos]){padding:.75rem .5rem}:host([data-slot=sn-sidebar-nav][data-skin=mac]){margin:.5rem 0 .5rem .5rem;border:1px solid var(--sn-color-glass-border);border-radius:var(--sn-radius-window);box-shadow:inset 0 1px 0 var(--sn-color-glass-highlight)}:host([data-slot=sn-sidebar-section][data-family=macos]) .heading{padding:.75rem .625rem .25rem;font-weight:700}:host(.sn-sidebar-item[data-family=macos]){gap:.5em;padding-inline:.625em}:host(.sn-sidebar-item[data-family=macos]) .icon{color:var(--sn-color-accent-text)}:host([data-slot=sn-sidebar-nav][data-skin=gtk]),:host([data-slot=sn-sidebar-nav][data-family=web]){padding:.375rem}:host([data-slot=sn-sidebar-section][data-skin=gtk]) .heading,:host([data-slot=sn-sidebar-section][data-family=web]) .heading{padding:.75rem .75rem .375rem;font-weight:700}:host(.sn-sidebar-item[data-skin=qt]:hover){background:color-mix(in srgb,var(--sn-color-primary) 12%,transparent);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]){background:var(--sn-row-selected-bg);color:var(--sn-row-selected-fg);box-shadow:inset 0 0 0 1px var(--sn-color-primary)}:host(.sn-sidebar-item[data-skin=qt][data-active]) .badge{color:inherit}:host([data-slot=sn-sidebar-section][data-skin=qt]) .heading{padding:.625rem .5rem .25rem;font-weight:400}:host([data-slot=sn-sidebar-nav][data-skin=cros]){padding:.75rem}:host([data-slot=sn-sidebar-section][data-skin=cros]) .heading{padding:1.125rem 1rem .5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]){padding-inline:1rem 1.5rem;font-weight:var(--sn-font-weight-control)}:host(.sn-sidebar-item[data-skin=cros]) .badge{font-size:inherit;color:inherit}:host([data-slot=sn-sidebar-nav][data-collapsed]){inline-size:calc(var(--sn-list-item-height) + 1rem);padding-inline:.5rem;overflow-x:hidden}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading,:host(.sn-sidebar-item[data-collapsed][data-icon]) .label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:host([data-slot=sn-sidebar-section][data-collapsed]) .heading{padding:0}:host(.sn-sidebar-item[data-collapsed]:not([data-icon])) .label{flex:none;overflow:visible}:host(.sn-sidebar-item[data-collapsed]){justify-content:center;padding-inline:0}:host(.sn-sidebar-item[data-collapsed]) .badge{position:absolute;inset-block-start:.125rem;inset-inline-end:.125rem;min-inline-size:.875rem;padding:0 .1875rem;box-sizing:border-box;border-radius:var(--sn-radius-pill);background:var(--sn-color-primary);color:var(--sn-color-primary-fg);font-size:.625rem;line-height:.875rem;text-align:center}@media(forced-colors:active){:host(.sn-sidebar-item[data-active]){background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}:host(.sn-sidebar-item[data-active]):before{background:HighlightText!important}:host(.sn-sidebar-item:focus-visible){outline:2px solid CanvasText}}\n"]
|
|
3920
4299
|
}]
|
|
3921
4300
|
}],
|
|
3922
4301
|
propDecorators: {
|
|
@@ -3943,6 +4322,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3943
4322
|
alias: "badge",
|
|
3944
4323
|
required: false
|
|
3945
4324
|
}]
|
|
4325
|
+
}],
|
|
4326
|
+
tooltip: [{
|
|
4327
|
+
type: i0.Input,
|
|
4328
|
+
args: [{
|
|
4329
|
+
isSignal: true,
|
|
4330
|
+
alias: "tooltip",
|
|
4331
|
+
required: false
|
|
4332
|
+
}]
|
|
3946
4333
|
}]
|
|
3947
4334
|
}
|
|
3948
4335
|
});
|
|
@@ -6187,6 +6574,653 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6187
6574
|
}
|
|
6188
6575
|
});
|
|
6189
6576
|
const SnTreeImports = [SnTree, SnTreeItem];
|
|
6577
|
+
var SnSearchField = class SnSearchField {
|
|
6578
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
6579
|
+
placeholder = input("Search", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
6580
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
6581
|
+
clearLabel = input("Clear", ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
|
|
6582
|
+
disabledInput = input(false, {
|
|
6583
|
+
...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
|
|
6584
|
+
alias: "disabled",
|
|
6585
|
+
transform: booleanAttribute
|
|
6586
|
+
});
|
|
6587
|
+
submitted = output();
|
|
6588
|
+
skin = injectSkin();
|
|
6589
|
+
family = computed(() => skinFamily(this.skin()), ...ngDevMode ? [{ debugName: "family" }] : /* istanbul ignore next */ []);
|
|
6590
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
6591
|
+
isDisabled = computed(() => this.disabledInput() || this.formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
6592
|
+
field = viewChild.required("field", ...ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []);
|
|
6593
|
+
onChange = () => void 0;
|
|
6594
|
+
touched = () => void 0;
|
|
6595
|
+
focus() {
|
|
6596
|
+
this.field().nativeElement.focus();
|
|
6597
|
+
}
|
|
6598
|
+
clear() {
|
|
6599
|
+
this.set("");
|
|
6600
|
+
this.focus();
|
|
6601
|
+
}
|
|
6602
|
+
onInput(event) {
|
|
6603
|
+
this.set(event.target.value);
|
|
6604
|
+
}
|
|
6605
|
+
onEscape(event) {
|
|
6606
|
+
if (!this.value()) return;
|
|
6607
|
+
event.stopPropagation();
|
|
6608
|
+
event.preventDefault();
|
|
6609
|
+
this.set("");
|
|
6610
|
+
}
|
|
6611
|
+
set(value) {
|
|
6612
|
+
this.value.set(value);
|
|
6613
|
+
this.onChange(value);
|
|
6614
|
+
}
|
|
6615
|
+
writeValue(value) {
|
|
6616
|
+
this.value.set(value == null ? "" : String(value));
|
|
6617
|
+
}
|
|
6618
|
+
registerOnChange(fn) {
|
|
6619
|
+
this.onChange = fn;
|
|
6620
|
+
}
|
|
6621
|
+
registerOnTouched(fn) {
|
|
6622
|
+
this.touched = fn;
|
|
6623
|
+
}
|
|
6624
|
+
setDisabledState(disabled) {
|
|
6625
|
+
this.formDisabled.set(disabled);
|
|
6626
|
+
}
|
|
6627
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6628
|
+
minVersion: "12.0.0",
|
|
6629
|
+
version: "22.2.5",
|
|
6630
|
+
ngImport: i0,
|
|
6631
|
+
type: SnSearchField,
|
|
6632
|
+
deps: [],
|
|
6633
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
6634
|
+
});
|
|
6635
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6636
|
+
minVersion: "17.0.0",
|
|
6637
|
+
version: "22.2.5",
|
|
6638
|
+
type: SnSearchField,
|
|
6639
|
+
isStandalone: true,
|
|
6640
|
+
selector: "sn-search-field",
|
|
6641
|
+
inputs: {
|
|
6642
|
+
value: {
|
|
6643
|
+
classPropertyName: "value",
|
|
6644
|
+
publicName: "value",
|
|
6645
|
+
isSignal: true,
|
|
6646
|
+
isRequired: false,
|
|
6647
|
+
transformFunction: null
|
|
6648
|
+
},
|
|
6649
|
+
placeholder: {
|
|
6650
|
+
classPropertyName: "placeholder",
|
|
6651
|
+
publicName: "placeholder",
|
|
6652
|
+
isSignal: true,
|
|
6653
|
+
isRequired: false,
|
|
6654
|
+
transformFunction: null
|
|
6655
|
+
},
|
|
6656
|
+
label: {
|
|
6657
|
+
classPropertyName: "label",
|
|
6658
|
+
publicName: "label",
|
|
6659
|
+
isSignal: true,
|
|
6660
|
+
isRequired: false,
|
|
6661
|
+
transformFunction: null
|
|
6662
|
+
},
|
|
6663
|
+
clearLabel: {
|
|
6664
|
+
classPropertyName: "clearLabel",
|
|
6665
|
+
publicName: "clearLabel",
|
|
6666
|
+
isSignal: true,
|
|
6667
|
+
isRequired: false,
|
|
6668
|
+
transformFunction: null
|
|
6669
|
+
},
|
|
6670
|
+
disabledInput: {
|
|
6671
|
+
classPropertyName: "disabledInput",
|
|
6672
|
+
publicName: "disabled",
|
|
6673
|
+
isSignal: true,
|
|
6674
|
+
isRequired: false,
|
|
6675
|
+
transformFunction: null
|
|
6676
|
+
}
|
|
6677
|
+
},
|
|
6678
|
+
outputs: {
|
|
6679
|
+
value: "valueChange",
|
|
6680
|
+
submitted: "submitted"
|
|
6681
|
+
},
|
|
6682
|
+
host: {
|
|
6683
|
+
attributes: { "data-slot": "sn-search-field" },
|
|
6684
|
+
properties: {
|
|
6685
|
+
"attr.data-family": "family()",
|
|
6686
|
+
"attr.data-skin": "skin()",
|
|
6687
|
+
"attr.data-filled": "value() ? \"\" : null"
|
|
6688
|
+
}
|
|
6689
|
+
},
|
|
6690
|
+
providers: [{
|
|
6691
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6692
|
+
useExisting: forwardRef(() => SnSearchField),
|
|
6693
|
+
multi: true
|
|
6694
|
+
}],
|
|
6695
|
+
viewQueries: [{
|
|
6696
|
+
propertyName: "field",
|
|
6697
|
+
first: true,
|
|
6698
|
+
predicate: ["field"],
|
|
6699
|
+
descendants: true,
|
|
6700
|
+
isSignal: true
|
|
6701
|
+
}],
|
|
6702
|
+
ngImport: i0,
|
|
6703
|
+
template: `
|
|
6704
|
+
<svg class="glass" viewBox="0 0 16 16" aria-hidden="true">
|
|
6705
|
+
<circle cx="7" cy="7" r="4.5" />
|
|
6706
|
+
<path d="M10.5 10.5 14 14" />
|
|
6707
|
+
</svg>
|
|
6708
|
+
<input
|
|
6709
|
+
#field
|
|
6710
|
+
type="search"
|
|
6711
|
+
data-slot="input"
|
|
6712
|
+
autocomplete="off"
|
|
6713
|
+
spellcheck="false"
|
|
6714
|
+
[value]="value()"
|
|
6715
|
+
[placeholder]="placeholder()"
|
|
6716
|
+
[attr.aria-label]="label() || placeholder()"
|
|
6717
|
+
[disabled]="isDisabled()"
|
|
6718
|
+
(input)="onInput($event)"
|
|
6719
|
+
(keydown.escape)="onEscape($event)"
|
|
6720
|
+
(keydown.enter)="submitted.emit(value())"
|
|
6721
|
+
(blur)="touched()"
|
|
6722
|
+
/>
|
|
6723
|
+
@if (value() && !isDisabled()) {
|
|
6724
|
+
<button type="button" class="clear" tabindex="-1" [attr.aria-label]="clearLabel()" (click)="clear()">
|
|
6725
|
+
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 5l6 6M11 5l-6 6" /></svg>
|
|
6726
|
+
</button>
|
|
6727
|
+
}
|
|
6728
|
+
`,
|
|
6729
|
+
isInline: true,
|
|
6730
|
+
styles: [":host{position:relative;display:inline-flex;align-items:center;min-inline-size:10rem;vertical-align:middle}input{flex:1;min-inline-size:0;inline-size:100%;box-sizing:border-box;padding-inline:2rem}input::-webkit-search-cancel-button,input::-webkit-search-decoration{appearance:none}.glass{position:absolute;inset-inline-start:.625rem;inline-size:.875rem;block-size:.875rem;fill:none;stroke:var(--sn-color-fg-muted);stroke-width:1.5;stroke-linecap:round;pointer-events:none}.clear{position:absolute;inset-inline-end:.375rem;display:grid;place-items:center;inline-size:1.25rem;block-size:1.25rem;padding:0;border:0;border-radius:var(--sn-radius-pill);background:color-mix(in srgb,var(--sn-color-fg) 30%,transparent);color:var(--sn-color-bg);cursor:default}.clear svg{inline-size:.75rem;block-size:.75rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.clear:hover{background:color-mix(in srgb,var(--sn-color-fg) 45%,transparent)}:host([data-family=windows]) input{padding-inline:.75rem 3.75rem}:host([data-family=windows]) .glass{inset-inline:auto .75rem;stroke:var(--sn-color-fg)}:host([data-family=windows]) .clear{inset-inline-end:2.25rem;inline-size:1.5rem;block-size:1.5rem;border-radius:var(--sn-radius-control);background:transparent;color:var(--sn-color-fg-muted)}:host([data-family=windows]) .clear:hover{background:var(--sn-color-hover)}:host([data-family=windows]:not([data-filled])) input{padding-inline-end:2.25rem}:host([data-skin=gtk]) .clear,:host([data-skin=qt]) .clear,:host([data-skin=cros]) .clear,:host([data-family=web]) .clear{background:transparent;color:var(--sn-color-fg-muted)}:host([data-skin=gtk]) .clear:hover,:host([data-skin=qt]) .clear:hover,:host([data-skin=cros]) .clear:hover,:host([data-family=web]) .clear:hover{background:var(--sn-color-hover)}:host([data-skin=cros]) input{border-radius:var(--sn-radius-pill)}@media(forced-colors:active){.glass{stroke:CanvasText}.clear{background:transparent;color:CanvasText}}\n"],
|
|
6731
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
6732
|
+
});
|
|
6733
|
+
};
|
|
6734
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
6735
|
+
minVersion: "12.0.0",
|
|
6736
|
+
version: "22.2.5",
|
|
6737
|
+
ngImport: i0,
|
|
6738
|
+
type: SnSearchField,
|
|
6739
|
+
decorators: [{
|
|
6740
|
+
type: Component,
|
|
6741
|
+
args: [{
|
|
6742
|
+
selector: "sn-search-field",
|
|
6743
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6744
|
+
providers: [{
|
|
6745
|
+
provide: NG_VALUE_ACCESSOR,
|
|
6746
|
+
useExisting: forwardRef(() => SnSearchField),
|
|
6747
|
+
multi: true
|
|
6748
|
+
}],
|
|
6749
|
+
host: {
|
|
6750
|
+
"data-slot": "sn-search-field",
|
|
6751
|
+
"[attr.data-family]": "family()",
|
|
6752
|
+
"[attr.data-skin]": "skin()",
|
|
6753
|
+
"[attr.data-filled]": "value() ? \"\" : null"
|
|
6754
|
+
},
|
|
6755
|
+
template: `
|
|
6756
|
+
<svg class="glass" viewBox="0 0 16 16" aria-hidden="true">
|
|
6757
|
+
<circle cx="7" cy="7" r="4.5" />
|
|
6758
|
+
<path d="M10.5 10.5 14 14" />
|
|
6759
|
+
</svg>
|
|
6760
|
+
<input
|
|
6761
|
+
#field
|
|
6762
|
+
type="search"
|
|
6763
|
+
data-slot="input"
|
|
6764
|
+
autocomplete="off"
|
|
6765
|
+
spellcheck="false"
|
|
6766
|
+
[value]="value()"
|
|
6767
|
+
[placeholder]="placeholder()"
|
|
6768
|
+
[attr.aria-label]="label() || placeholder()"
|
|
6769
|
+
[disabled]="isDisabled()"
|
|
6770
|
+
(input)="onInput($event)"
|
|
6771
|
+
(keydown.escape)="onEscape($event)"
|
|
6772
|
+
(keydown.enter)="submitted.emit(value())"
|
|
6773
|
+
(blur)="touched()"
|
|
6774
|
+
/>
|
|
6775
|
+
@if (value() && !isDisabled()) {
|
|
6776
|
+
<button type="button" class="clear" tabindex="-1" [attr.aria-label]="clearLabel()" (click)="clear()">
|
|
6777
|
+
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 5l6 6M11 5l-6 6" /></svg>
|
|
6778
|
+
</button>
|
|
6779
|
+
}
|
|
6780
|
+
`,
|
|
6781
|
+
styles: [":host{position:relative;display:inline-flex;align-items:center;min-inline-size:10rem;vertical-align:middle}input{flex:1;min-inline-size:0;inline-size:100%;box-sizing:border-box;padding-inline:2rem}input::-webkit-search-cancel-button,input::-webkit-search-decoration{appearance:none}.glass{position:absolute;inset-inline-start:.625rem;inline-size:.875rem;block-size:.875rem;fill:none;stroke:var(--sn-color-fg-muted);stroke-width:1.5;stroke-linecap:round;pointer-events:none}.clear{position:absolute;inset-inline-end:.375rem;display:grid;place-items:center;inline-size:1.25rem;block-size:1.25rem;padding:0;border:0;border-radius:var(--sn-radius-pill);background:color-mix(in srgb,var(--sn-color-fg) 30%,transparent);color:var(--sn-color-bg);cursor:default}.clear svg{inline-size:.75rem;block-size:.75rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.clear:hover{background:color-mix(in srgb,var(--sn-color-fg) 45%,transparent)}:host([data-family=windows]) input{padding-inline:.75rem 3.75rem}:host([data-family=windows]) .glass{inset-inline:auto .75rem;stroke:var(--sn-color-fg)}:host([data-family=windows]) .clear{inset-inline-end:2.25rem;inline-size:1.5rem;block-size:1.5rem;border-radius:var(--sn-radius-control);background:transparent;color:var(--sn-color-fg-muted)}:host([data-family=windows]) .clear:hover{background:var(--sn-color-hover)}:host([data-family=windows]:not([data-filled])) input{padding-inline-end:2.25rem}:host([data-skin=gtk]) .clear,:host([data-skin=qt]) .clear,:host([data-skin=cros]) .clear,:host([data-family=web]) .clear{background:transparent;color:var(--sn-color-fg-muted)}:host([data-skin=gtk]) .clear:hover,:host([data-skin=qt]) .clear:hover,:host([data-skin=cros]) .clear:hover,:host([data-family=web]) .clear:hover{background:var(--sn-color-hover)}:host([data-skin=cros]) input{border-radius:var(--sn-radius-pill)}@media(forced-colors:active){.glass{stroke:CanvasText}.clear{background:transparent;color:CanvasText}}\n"]
|
|
6782
|
+
}]
|
|
6783
|
+
}],
|
|
6784
|
+
propDecorators: {
|
|
6785
|
+
value: [{
|
|
6786
|
+
type: i0.Input,
|
|
6787
|
+
args: [{
|
|
6788
|
+
isSignal: true,
|
|
6789
|
+
alias: "value",
|
|
6790
|
+
required: false
|
|
6791
|
+
}]
|
|
6792
|
+
}, {
|
|
6793
|
+
type: i0.Output,
|
|
6794
|
+
args: ["valueChange"]
|
|
6795
|
+
}],
|
|
6796
|
+
placeholder: [{
|
|
6797
|
+
type: i0.Input,
|
|
6798
|
+
args: [{
|
|
6799
|
+
isSignal: true,
|
|
6800
|
+
alias: "placeholder",
|
|
6801
|
+
required: false
|
|
6802
|
+
}]
|
|
6803
|
+
}],
|
|
6804
|
+
label: [{
|
|
6805
|
+
type: i0.Input,
|
|
6806
|
+
args: [{
|
|
6807
|
+
isSignal: true,
|
|
6808
|
+
alias: "label",
|
|
6809
|
+
required: false
|
|
6810
|
+
}]
|
|
6811
|
+
}],
|
|
6812
|
+
clearLabel: [{
|
|
6813
|
+
type: i0.Input,
|
|
6814
|
+
args: [{
|
|
6815
|
+
isSignal: true,
|
|
6816
|
+
alias: "clearLabel",
|
|
6817
|
+
required: false
|
|
6818
|
+
}]
|
|
6819
|
+
}],
|
|
6820
|
+
disabledInput: [{
|
|
6821
|
+
type: i0.Input,
|
|
6822
|
+
args: [{
|
|
6823
|
+
isSignal: true,
|
|
6824
|
+
alias: "disabled",
|
|
6825
|
+
required: false
|
|
6826
|
+
}]
|
|
6827
|
+
}],
|
|
6828
|
+
submitted: [{
|
|
6829
|
+
type: i0.Output,
|
|
6830
|
+
args: ["submitted"]
|
|
6831
|
+
}],
|
|
6832
|
+
field: [{
|
|
6833
|
+
type: i0.ViewChild,
|
|
6834
|
+
args: ["field", { isSignal: true }]
|
|
6835
|
+
}]
|
|
6836
|
+
}
|
|
6837
|
+
});
|
|
6838
|
+
var SnResizeHandle = class SnResizeHandle {
|
|
6839
|
+
skin = injectSkin();
|
|
6840
|
+
family = computed(() => skinFamily(this.skin()), ...ngDevMode ? [{ debugName: "family" }] : /* istanbul ignore next */ []);
|
|
6841
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6842
|
+
minVersion: "12.0.0",
|
|
6843
|
+
version: "22.2.5",
|
|
6844
|
+
ngImport: i0,
|
|
6845
|
+
type: SnResizeHandle,
|
|
6846
|
+
deps: [],
|
|
6847
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
6848
|
+
});
|
|
6849
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
6850
|
+
minVersion: "14.0.0",
|
|
6851
|
+
version: "22.2.5",
|
|
6852
|
+
type: SnResizeHandle,
|
|
6853
|
+
isStandalone: true,
|
|
6854
|
+
selector: "sn-resize-handle",
|
|
6855
|
+
host: {
|
|
6856
|
+
attributes: {
|
|
6857
|
+
"data-slot": "sn-resize-handle",
|
|
6858
|
+
"role": "separator",
|
|
6859
|
+
"aria-orientation": "vertical",
|
|
6860
|
+
"tabindex": "0"
|
|
6861
|
+
},
|
|
6862
|
+
properties: {
|
|
6863
|
+
"attr.data-family": "family()",
|
|
6864
|
+
"attr.data-skin": "skin()"
|
|
6865
|
+
}
|
|
6866
|
+
},
|
|
6867
|
+
ngImport: i0,
|
|
6868
|
+
template: "",
|
|
6869
|
+
isInline: true,
|
|
6870
|
+
styles: [":host{position:absolute;z-index:2;inline-size:.5rem;translate:-50% 0;cursor:col-resize;touch-action:none}:host:after{content:\"\";position:absolute;inset-block:0;inset-inline-start:calc(50% - 1px);inline-size:2px;background:transparent;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(:hover):after,:host(:active):after,:host(:focus-visible):after{background:var(--sn-color-primary)}:host(:focus-visible){outline:none}:host([hidden]){display:none}:host([data-family=macos]:hover):after,:host([data-family=macos]:active):after{background:transparent}@media(forced-colors:active){:host(:hover):after,:host(:active):after,:host(:focus-visible):after{background:Highlight}}\n"],
|
|
6871
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
6872
|
+
});
|
|
6873
|
+
};
|
|
6874
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
6875
|
+
minVersion: "12.0.0",
|
|
6876
|
+
version: "22.2.5",
|
|
6877
|
+
ngImport: i0,
|
|
6878
|
+
type: SnResizeHandle,
|
|
6879
|
+
decorators: [{
|
|
6880
|
+
type: Component,
|
|
6881
|
+
args: [{
|
|
6882
|
+
selector: "sn-resize-handle",
|
|
6883
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6884
|
+
host: {
|
|
6885
|
+
"data-slot": "sn-resize-handle",
|
|
6886
|
+
role: "separator",
|
|
6887
|
+
"aria-orientation": "vertical",
|
|
6888
|
+
tabindex: "0",
|
|
6889
|
+
"[attr.data-family]": "family()",
|
|
6890
|
+
"[attr.data-skin]": "skin()"
|
|
6891
|
+
},
|
|
6892
|
+
template: "",
|
|
6893
|
+
styles: [":host{position:absolute;z-index:2;inline-size:.5rem;translate:-50% 0;cursor:col-resize;touch-action:none}:host:after{content:\"\";position:absolute;inset-block:0;inset-inline-start:calc(50% - 1px);inline-size:2px;background:transparent;transition:background-color var(--sn-duration-fast) var(--sn-easing)}:host(:hover):after,:host(:active):after,:host(:focus-visible):after{background:var(--sn-color-primary)}:host(:focus-visible){outline:none}:host([hidden]){display:none}:host([data-family=macos]:hover):after,:host([data-family=macos]:active):after{background:transparent}@media(forced-colors:active){:host(:hover):after,:host(:active):after,:host(:focus-visible):after{background:Highlight}}\n"]
|
|
6894
|
+
}]
|
|
6895
|
+
}]
|
|
6896
|
+
});
|
|
6897
|
+
var SnResizable = class SnResizable {
|
|
6898
|
+
snResizable = input("", ...ngDevMode ? [{ debugName: "snResizable" }] : /* istanbul ignore next */ []);
|
|
6899
|
+
resizeEdge = input("auto", ...ngDevMode ? [{ debugName: "resizeEdge" }] : /* istanbul ignore next */ []);
|
|
6900
|
+
resizeRatio = input(.2, {
|
|
6901
|
+
...ngDevMode ? { debugName: "resizeRatio" } : /* istanbul ignore next */ {},
|
|
6902
|
+
transform: numberAttribute
|
|
6903
|
+
});
|
|
6904
|
+
resizeMin = input(192, {
|
|
6905
|
+
...ngDevMode ? { debugName: "resizeMin" } : /* istanbul ignore next */ {},
|
|
6906
|
+
transform: numberAttribute
|
|
6907
|
+
});
|
|
6908
|
+
resizeMaxRatio = input(.5, {
|
|
6909
|
+
...ngDevMode ? { debugName: "resizeMaxRatio" } : /* istanbul ignore next */ {},
|
|
6910
|
+
transform: numberAttribute
|
|
6911
|
+
});
|
|
6912
|
+
resizeDisabled = input(false, {
|
|
6913
|
+
...ngDevMode ? { debugName: "resizeDisabled" } : /* istanbul ignore next */ {},
|
|
6914
|
+
transform: booleanAttribute
|
|
6915
|
+
});
|
|
6916
|
+
resizeLabel = input("Resize", ...ngDevMode ? [{ debugName: "resizeLabel" }] : /* istanbul ignore next */ []);
|
|
6917
|
+
dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
|
|
6918
|
+
share = signal(null, ...ngDevMode ? [{ debugName: "share" }] : /* istanbul ignore next */ []);
|
|
6919
|
+
el = inject(ElementRef).nativeElement;
|
|
6920
|
+
handle;
|
|
6921
|
+
parent;
|
|
6922
|
+
constructor() {
|
|
6923
|
+
const destroyRef = inject(DestroyRef);
|
|
6924
|
+
const appRef = inject(ApplicationRef);
|
|
6925
|
+
const environmentInjector = inject(EnvironmentInjector);
|
|
6926
|
+
effect(() => {
|
|
6927
|
+
const key = this.snResizable();
|
|
6928
|
+
untracked(() => this.share.set(readShare(key)));
|
|
6929
|
+
});
|
|
6930
|
+
afterNextRender(() => {
|
|
6931
|
+
const parent = this.el.parentElement;
|
|
6932
|
+
if (!parent) return;
|
|
6933
|
+
this.parent = parent;
|
|
6934
|
+
if (getComputedStyle(parent).position === "static") parent.style.position = "relative";
|
|
6935
|
+
const ref = createComponent(SnResizeHandle, { environmentInjector });
|
|
6936
|
+
appRef.attachView(ref.hostView);
|
|
6937
|
+
const handle = ref.location.nativeElement;
|
|
6938
|
+
parent.appendChild(handle);
|
|
6939
|
+
this.handle = handle;
|
|
6940
|
+
const listeners = [
|
|
6941
|
+
["pointerdown", (e) => this.startDrag(e)],
|
|
6942
|
+
["dblclick", () => this.save(null)],
|
|
6943
|
+
["keydown", (e) => this.onKey(e)]
|
|
6944
|
+
];
|
|
6945
|
+
for (const [type, fn] of listeners) handle.addEventListener(type, fn);
|
|
6946
|
+
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(() => this.layout());
|
|
6947
|
+
observer?.observe(parent);
|
|
6948
|
+
observer?.observe(this.el);
|
|
6949
|
+
destroyRef.onDestroy(() => {
|
|
6950
|
+
for (const [type, fn] of listeners) handle.removeEventListener(type, fn);
|
|
6951
|
+
observer?.disconnect();
|
|
6952
|
+
appRef.detachView(ref.hostView);
|
|
6953
|
+
ref.destroy();
|
|
6954
|
+
handle.remove();
|
|
6955
|
+
});
|
|
6956
|
+
this.layout();
|
|
6957
|
+
});
|
|
6958
|
+
effect(() => {
|
|
6959
|
+
this.resizeDisabled();
|
|
6960
|
+
this.resizeEdge();
|
|
6961
|
+
this.resizeRatio();
|
|
6962
|
+
this.resizeMin();
|
|
6963
|
+
this.resizeMaxRatio();
|
|
6964
|
+
this.resizeLabel();
|
|
6965
|
+
this.share();
|
|
6966
|
+
untracked(() => this.layout());
|
|
6967
|
+
});
|
|
6968
|
+
}
|
|
6969
|
+
onLeft() {
|
|
6970
|
+
const edge = this.resizeEdge();
|
|
6971
|
+
if (edge === "auto") {
|
|
6972
|
+
const parent = this.parent.getBoundingClientRect();
|
|
6973
|
+
const panel = this.el.getBoundingClientRect();
|
|
6974
|
+
return panel.left + panel.width / 2 > parent.left + parent.width / 2;
|
|
6975
|
+
}
|
|
6976
|
+
const rtl = getComputedStyle(this.el).direction === "rtl";
|
|
6977
|
+
return edge === "start" !== rtl;
|
|
6978
|
+
}
|
|
6979
|
+
layout() {
|
|
6980
|
+
const { parent, handle } = this;
|
|
6981
|
+
if (!parent || !handle) return;
|
|
6982
|
+
if (this.resizeDisabled()) {
|
|
6983
|
+
this.el.style.removeProperty("inline-size");
|
|
6984
|
+
handle.hidden = true;
|
|
6985
|
+
return;
|
|
6986
|
+
}
|
|
6987
|
+
const total = parent.clientWidth;
|
|
6988
|
+
const width = panelWidth(this.share() ?? this.resizeRatio(), total, this.resizeMin(), this.resizeMaxRatio());
|
|
6989
|
+
if (width > 0) this.el.style.inlineSize = `${width}px`;
|
|
6990
|
+
const shown = this.el.offsetWidth > 0 && !this.el.hidden;
|
|
6991
|
+
handle.hidden = !shown;
|
|
6992
|
+
if (!shown) return;
|
|
6993
|
+
const panel = this.el.getBoundingClientRect();
|
|
6994
|
+
const box = parent.getBoundingClientRect();
|
|
6995
|
+
const x = (this.onLeft() ? panel.left : panel.right) - box.left - parent.clientLeft + parent.scrollLeft;
|
|
6996
|
+
handle.style.left = `${x}px`;
|
|
6997
|
+
handle.style.top = `${panel.top - box.top - parent.clientTop + parent.scrollTop}px`;
|
|
6998
|
+
handle.style.height = `${panel.height}px`;
|
|
6999
|
+
handle.setAttribute("aria-label", this.resizeLabel());
|
|
7000
|
+
handle.setAttribute("aria-valuemin", String(Math.round(this.resizeMin())));
|
|
7001
|
+
handle.setAttribute("aria-valuemax", String(Math.round(Math.max(this.resizeMin(), total * this.resizeMaxRatio()))));
|
|
7002
|
+
handle.setAttribute("aria-valuenow", String(Math.round(this.el.offsetWidth)));
|
|
7003
|
+
}
|
|
7004
|
+
startDrag(e) {
|
|
7005
|
+
const handle = this.handle;
|
|
7006
|
+
if (e.button !== 0 || !handle || !this.parent) return;
|
|
7007
|
+
e.preventDefault();
|
|
7008
|
+
const startX = e.clientX;
|
|
7009
|
+
const startWidth = this.el.offsetWidth;
|
|
7010
|
+
const sign = this.onLeft() ? -1 : 1;
|
|
7011
|
+
handle.setPointerCapture?.(e.pointerId);
|
|
7012
|
+
this.dragging.set(true);
|
|
7013
|
+
const root = this.el.ownerDocument.documentElement;
|
|
7014
|
+
const userSelect = root.style.userSelect;
|
|
7015
|
+
root.style.userSelect = "none";
|
|
7016
|
+
const move = (ev) => this.setWidth(startWidth + sign * (ev.clientX - startX), false);
|
|
7017
|
+
const end = (ev) => {
|
|
7018
|
+
handle.releasePointerCapture?.(ev.pointerId);
|
|
7019
|
+
handle.removeEventListener("pointermove", move);
|
|
7020
|
+
handle.removeEventListener("pointerup", end);
|
|
7021
|
+
handle.removeEventListener("pointercancel", end);
|
|
7022
|
+
root.style.userSelect = userSelect;
|
|
7023
|
+
this.dragging.set(false);
|
|
7024
|
+
this.setWidth(this.el.offsetWidth, true);
|
|
7025
|
+
};
|
|
7026
|
+
handle.addEventListener("pointermove", move);
|
|
7027
|
+
handle.addEventListener("pointerup", end);
|
|
7028
|
+
handle.addEventListener("pointercancel", end);
|
|
7029
|
+
}
|
|
7030
|
+
onKey(e) {
|
|
7031
|
+
const next = keyWidth(e.key, e.shiftKey, this.el.offsetWidth, this.onLeft());
|
|
7032
|
+
if (next === null) return;
|
|
7033
|
+
e.preventDefault();
|
|
7034
|
+
this.setWidth(next, true);
|
|
7035
|
+
}
|
|
7036
|
+
setWidth(px, persist) {
|
|
7037
|
+
const total = this.parent?.clientWidth ?? 0;
|
|
7038
|
+
if (total <= 0) return;
|
|
7039
|
+
const share = panelWidth(px / total, total, this.resizeMin(), this.resizeMaxRatio()) / total;
|
|
7040
|
+
if (persist) this.save(share);
|
|
7041
|
+
else this.share.set(share);
|
|
7042
|
+
}
|
|
7043
|
+
save(share) {
|
|
7044
|
+
this.share.set(share);
|
|
7045
|
+
writeShare(this.snResizable(), share);
|
|
7046
|
+
}
|
|
7047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7048
|
+
minVersion: "12.0.0",
|
|
7049
|
+
version: "22.2.5",
|
|
7050
|
+
ngImport: i0,
|
|
7051
|
+
type: SnResizable,
|
|
7052
|
+
deps: [],
|
|
7053
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
7054
|
+
});
|
|
7055
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
7056
|
+
minVersion: "17.1.0",
|
|
7057
|
+
version: "22.2.5",
|
|
7058
|
+
type: SnResizable,
|
|
7059
|
+
isStandalone: true,
|
|
7060
|
+
selector: "[snResizable]",
|
|
7061
|
+
inputs: {
|
|
7062
|
+
snResizable: {
|
|
7063
|
+
classPropertyName: "snResizable",
|
|
7064
|
+
publicName: "snResizable",
|
|
7065
|
+
isSignal: true,
|
|
7066
|
+
isRequired: false,
|
|
7067
|
+
transformFunction: null
|
|
7068
|
+
},
|
|
7069
|
+
resizeEdge: {
|
|
7070
|
+
classPropertyName: "resizeEdge",
|
|
7071
|
+
publicName: "resizeEdge",
|
|
7072
|
+
isSignal: true,
|
|
7073
|
+
isRequired: false,
|
|
7074
|
+
transformFunction: null
|
|
7075
|
+
},
|
|
7076
|
+
resizeRatio: {
|
|
7077
|
+
classPropertyName: "resizeRatio",
|
|
7078
|
+
publicName: "resizeRatio",
|
|
7079
|
+
isSignal: true,
|
|
7080
|
+
isRequired: false,
|
|
7081
|
+
transformFunction: null
|
|
7082
|
+
},
|
|
7083
|
+
resizeMin: {
|
|
7084
|
+
classPropertyName: "resizeMin",
|
|
7085
|
+
publicName: "resizeMin",
|
|
7086
|
+
isSignal: true,
|
|
7087
|
+
isRequired: false,
|
|
7088
|
+
transformFunction: null
|
|
7089
|
+
},
|
|
7090
|
+
resizeMaxRatio: {
|
|
7091
|
+
classPropertyName: "resizeMaxRatio",
|
|
7092
|
+
publicName: "resizeMaxRatio",
|
|
7093
|
+
isSignal: true,
|
|
7094
|
+
isRequired: false,
|
|
7095
|
+
transformFunction: null
|
|
7096
|
+
},
|
|
7097
|
+
resizeDisabled: {
|
|
7098
|
+
classPropertyName: "resizeDisabled",
|
|
7099
|
+
publicName: "resizeDisabled",
|
|
7100
|
+
isSignal: true,
|
|
7101
|
+
isRequired: false,
|
|
7102
|
+
transformFunction: null
|
|
7103
|
+
},
|
|
7104
|
+
resizeLabel: {
|
|
7105
|
+
classPropertyName: "resizeLabel",
|
|
7106
|
+
publicName: "resizeLabel",
|
|
7107
|
+
isSignal: true,
|
|
7108
|
+
isRequired: false,
|
|
7109
|
+
transformFunction: null
|
|
7110
|
+
}
|
|
7111
|
+
},
|
|
7112
|
+
host: { properties: { "attr.data-resizing": "dragging() ? \"\" : null" } },
|
|
7113
|
+
exportAs: ["snResizable"],
|
|
7114
|
+
ngImport: i0
|
|
7115
|
+
});
|
|
7116
|
+
};
|
|
7117
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
7118
|
+
minVersion: "12.0.0",
|
|
7119
|
+
version: "22.2.5",
|
|
7120
|
+
ngImport: i0,
|
|
7121
|
+
type: SnResizable,
|
|
7122
|
+
decorators: [{
|
|
7123
|
+
type: Directive,
|
|
7124
|
+
args: [{
|
|
7125
|
+
selector: "[snResizable]",
|
|
7126
|
+
exportAs: "snResizable",
|
|
7127
|
+
host: { "[attr.data-resizing]": "dragging() ? \"\" : null" }
|
|
7128
|
+
}]
|
|
7129
|
+
}],
|
|
7130
|
+
ctorParameters: () => [],
|
|
7131
|
+
propDecorators: {
|
|
7132
|
+
snResizable: [{
|
|
7133
|
+
type: i0.Input,
|
|
7134
|
+
args: [{
|
|
7135
|
+
isSignal: true,
|
|
7136
|
+
alias: "snResizable",
|
|
7137
|
+
required: false
|
|
7138
|
+
}]
|
|
7139
|
+
}],
|
|
7140
|
+
resizeEdge: [{
|
|
7141
|
+
type: i0.Input,
|
|
7142
|
+
args: [{
|
|
7143
|
+
isSignal: true,
|
|
7144
|
+
alias: "resizeEdge",
|
|
7145
|
+
required: false
|
|
7146
|
+
}]
|
|
7147
|
+
}],
|
|
7148
|
+
resizeRatio: [{
|
|
7149
|
+
type: i0.Input,
|
|
7150
|
+
args: [{
|
|
7151
|
+
isSignal: true,
|
|
7152
|
+
alias: "resizeRatio",
|
|
7153
|
+
required: false
|
|
7154
|
+
}]
|
|
7155
|
+
}],
|
|
7156
|
+
resizeMin: [{
|
|
7157
|
+
type: i0.Input,
|
|
7158
|
+
args: [{
|
|
7159
|
+
isSignal: true,
|
|
7160
|
+
alias: "resizeMin",
|
|
7161
|
+
required: false
|
|
7162
|
+
}]
|
|
7163
|
+
}],
|
|
7164
|
+
resizeMaxRatio: [{
|
|
7165
|
+
type: i0.Input,
|
|
7166
|
+
args: [{
|
|
7167
|
+
isSignal: true,
|
|
7168
|
+
alias: "resizeMaxRatio",
|
|
7169
|
+
required: false
|
|
7170
|
+
}]
|
|
7171
|
+
}],
|
|
7172
|
+
resizeDisabled: [{
|
|
7173
|
+
type: i0.Input,
|
|
7174
|
+
args: [{
|
|
7175
|
+
isSignal: true,
|
|
7176
|
+
alias: "resizeDisabled",
|
|
7177
|
+
required: false
|
|
7178
|
+
}]
|
|
7179
|
+
}],
|
|
7180
|
+
resizeLabel: [{
|
|
7181
|
+
type: i0.Input,
|
|
7182
|
+
args: [{
|
|
7183
|
+
isSignal: true,
|
|
7184
|
+
alias: "resizeLabel",
|
|
7185
|
+
required: false
|
|
7186
|
+
}]
|
|
7187
|
+
}]
|
|
7188
|
+
}
|
|
7189
|
+
});
|
|
7190
|
+
function panelWidth(ratio, total, min, maxRatio) {
|
|
7191
|
+
if (!(total > 0)) return 0;
|
|
7192
|
+
const max = Math.max(min, total * maxRatio);
|
|
7193
|
+
return Math.round(Math.min(max, Math.max(min, total * ratio)));
|
|
7194
|
+
}
|
|
7195
|
+
function keyWidth(key, shift, width, onLeft) {
|
|
7196
|
+
const step = shift ? 64 : 16;
|
|
7197
|
+
const grow = onLeft ? "ArrowLeft" : "ArrowRight";
|
|
7198
|
+
const shrink = onLeft ? "ArrowRight" : "ArrowLeft";
|
|
7199
|
+
switch (key) {
|
|
7200
|
+
case grow: return width + step;
|
|
7201
|
+
case shrink: return width - step;
|
|
7202
|
+
case "Home": return 0;
|
|
7203
|
+
case "End": return Number.MAX_SAFE_INTEGER;
|
|
7204
|
+
default: return null;
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
const storageKey = (key) => `sn.panel.${key}`;
|
|
7208
|
+
function readShare(key) {
|
|
7209
|
+
if (!key) return null;
|
|
7210
|
+
try {
|
|
7211
|
+
const value = Number(localStorage.getItem(storageKey(key)));
|
|
7212
|
+
return value > 0 && value < 1 ? value : null;
|
|
7213
|
+
} catch {
|
|
7214
|
+
return null;
|
|
7215
|
+
}
|
|
7216
|
+
}
|
|
7217
|
+
function writeShare(key, share) {
|
|
7218
|
+
if (!key) return;
|
|
7219
|
+
try {
|
|
7220
|
+
if (share === null) localStorage.removeItem(storageKey(key));
|
|
7221
|
+
else localStorage.setItem(storageKey(key), String(share));
|
|
7222
|
+
} catch {}
|
|
7223
|
+
}
|
|
6190
7224
|
let nextId = 0;
|
|
6191
7225
|
const ROLE_ID = "sn-role-";
|
|
6192
7226
|
function toHostMenu(items, actions = /* @__PURE__ */ new Map()) {
|
|
@@ -6959,7 +7993,9 @@ const SnControlsImports = [
|
|
|
6959
7993
|
...SnSplitButtonImports,
|
|
6960
7994
|
SnNumberBox,
|
|
6961
7995
|
...SnTreeImports,
|
|
6962
|
-
SnTooltip
|
|
7996
|
+
SnTooltip,
|
|
7997
|
+
SnSearchField,
|
|
7998
|
+
SnResizable
|
|
6963
7999
|
];
|
|
6964
8000
|
const SnMenuImports = [SnMenubar, SnContextMenu];
|
|
6965
8001
|
const SnSettingsImports = [SnSettingsGroup, SnSettingsRow];
|
|
@@ -6979,6 +8015,6 @@ const SnDesktopUiImports = [
|
|
|
6979
8015
|
...SnMenuImports,
|
|
6980
8016
|
...SnPlatformImports
|
|
6981
8017
|
];
|
|
6982
|
-
export { SnAssistant, SnAssistantImports, SnAssistantPage, SnChecklist, SnChecklistImports, SnChecklistItem, SnCoachMark, SnCoachMarkFor, SnCoachMarkImports, SnCommand, SnCommandBar, SnCommandBarImports, SnCommandGroup, SnCommandOverflow, SnContextMenu, SnControlsImports, SnDesktopUiImports, SnInspector, SnInspectorImports, SnInspectorLayout, SnInspectorProperty, SnInspectorSection, SnMenuImports, SnMenubar, SnModalSheet, SnNativeMenus, SnNumberBox, SnPlatformIf, SnPlatformImports, SnSettingsGroup, SnSettingsImports, SnSettingsRow, SnShortcut, SnSidebarItem, SnSidebarNav, SnSidebarNavImports, SnSidebarSection, SnSplitButton, SnSplitButtonImports, SnSplitButtonMenu, SnStatusBar, SnStatusBarImports, SnStatusItem, SnStatusPage, SnTitleBar, SnTooltip, SnTooltipPanel, SnTree, SnTreeImports, SnTreeItem, SnWindowControls, SnWindowImports, evaluateNumberExpression, formatShortcut, inPageMenu, matchesAccelerator, runEditCommand, tidyMenu, toHostMenu };
|
|
8018
|
+
export { SnAlert, SnAssistant, SnAssistantImports, SnAssistantPage, SnChecklist, SnChecklistImports, SnChecklistItem, SnCoachMark, SnCoachMarkFor, SnCoachMarkImports, SnCommand, SnCommandBar, SnCommandBarImports, SnCommandGroup, SnCommandOverflow, SnContextMenu, SnControlsImports, SnDesktopUiImports, SnInspector, SnInspectorImports, SnInspectorLayout, SnInspectorProperty, SnInspectorSection, SnMenuImports, SnMenubar, SnModalSheet, SnNativeMenus, SnNumberBox, SnPageCommands, SnPageCommandsTemplate, SnPlatformIf, SnPlatformImports, SnResizable, SnSearchField, SnSettingsGroup, SnSettingsImports, SnSettingsRow, SnShortcut, SnSidebarItem, SnSidebarNav, SnSidebarNavImports, SnSidebarSection, SnSplitButton, SnSplitButtonImports, SnSplitButtonMenu, SnStatusBar, SnStatusBarImports, SnStatusItem, SnStatusPage, SnTitleBar, SnTooltip, SnTooltipPanel, SnTree, SnTreeImports, SnTreeItem, SnWindowControls, SnWindowImports, evaluateNumberExpression, formatShortcut, inPageMenu, matchesAccelerator, runEditCommand, tidyMenu, toHostMenu };
|
|
6983
8019
|
|
|
6984
8020
|
//# sourceMappingURL=spartan-native-desktop-ui.mjs.map
|