@sixbell-telco/sdk 4.1.2 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -1
- package/README.md +98 -66
- package/_index.css +2 -1498
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/alert/README.md +27 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/public-api.d.ts +1 -0
- package/components/alert/src/alert.component.d.ts +85 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/button-play/button-play.component.d.ts +7 -7
- package/components/audio-player/src/audio-player.component.d.ts +2 -2
- package/components/audio-player/volume-control/volume-control.component.d.ts +1 -1
- package/components/avatar/README.md +1 -0
- package/components/avatar/src/avatar.component.d.ts +2 -2
- package/components/badge/src/badge.component.d.ts +4 -4
- package/components/button/README.md +5 -4
- package/components/button/src/button.component.d.ts +38 -16
- package/components/card/README.md +2 -0
- package/components/card/card-footer/card-footer.component.d.ts +37 -2
- package/components/card/card-section-group/card-section-group.component.d.ts +1 -1
- package/components/card/src/card.component.d.ts +6 -6
- package/components/countdown/src/countdown.component.d.ts +4 -4
- package/components/data-table/README.md +26 -0
- package/components/data-table/expandable/expandable.component.d.ts +4 -4
- package/components/data-table/sortable-header/sortable-header.component.d.ts +1 -1
- package/components/data-table/src/data-table.component.d.ts +15 -8
- package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +1 -1
- package/components/description-list/README.md +27 -0
- package/components/description-list/index.d.ts +5 -0
- package/components/description-list/public-api.d.ts +1 -0
- package/components/description-list/src/description-list.component.d.ts +90 -0
- package/components/dialog/README.md +10 -6
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +4 -0
- package/components/dialog/src/dialog.component.d.ts +27 -6
- package/components/dialog/src/fullscreen-block-scroll-strategy.d.ts +31 -0
- package/components/divider/src/divider.component.d.ts +1 -1
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +4 -4
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +5 -5
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +5 -5
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/README.md +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +3 -3
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -4
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +1 -1
- package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +3 -3
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +1 -1
- package/components/empty-state/README.md +40 -0
- package/components/empty-state/index.d.ts +5 -0
- package/components/empty-state/public-api.d.ts +1 -0
- package/components/empty-state/src/empty-state.component.d.ts +73 -0
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +4 -4
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +2 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +1 -1
- package/components/forms/combobox/README.md +1 -0
- package/components/forms/combobox/src/combobox.component.d.ts +29 -7
- package/components/forms/date-picker/src/date-picker.component.d.ts +21 -9
- package/components/forms/form-hint/README.md +29 -0
- package/components/forms/form-hint/index.d.ts +5 -0
- package/components/forms/form-hint/public-api.d.ts +1 -0
- package/components/forms/form-hint/src/form-hint.component.d.ts +38 -0
- package/components/forms/form-item/src/form-item.component.d.ts +45 -1
- package/components/forms/input/README.md +2 -0
- package/components/forms/input/src/input.component.d.ts +41 -7
- package/components/forms/radio/src/radio.component.d.ts +1 -1
- package/components/forms/range/src/range.component.d.ts +26 -4
- package/components/forms/select/README.md +1 -0
- package/components/forms/select/src/select.component.d.ts +28 -5
- package/components/forms/switch/src/switch.component.d.ts +1 -1
- package/components/forms/textarea/src/textarea.component.d.ts +20 -5
- package/components/forms/toggle/src/toggle.component.d.ts +1 -1
- package/components/notification/src/notification.component.d.ts +1 -1
- package/components/overlay/README.md +1 -1
- package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +1 -1
- package/components/overlay/src/overlay.component.d.ts +1 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +3 -3
- package/components/progress/src/progress.component.d.ts +1 -1
- package/components/segmented-button/README.md +57 -0
- package/components/segmented-button/index.d.ts +5 -0
- package/components/segmented-button/public-api.d.ts +1 -0
- package/components/segmented-button/src/segmented-button.component.d.ts +110 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +3 -3
- package/components/tab/src/tab.component.d.ts +2 -2
- package/components/table/README.md +51 -3
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +20 -13
- package/components/table/table-action/table-action.component.d.ts +14 -3
- package/components/table/table-actions/table-actions.component.d.ts +12 -1
- package/components/table/tokens/README.md +7 -0
- package/components/table/tokens/index.d.ts +5 -0
- package/components/table/tokens/public-api.d.ts +1 -0
- package/components/table/tokens/table-empty-state.d.ts +6 -0
- package/components/tooltip/README.md +22 -5
- package/components/tooltip/src/tooltip.component.d.ts +36 -4
- package/components/tree/README.md +73 -0
- package/components/tree/index.d.ts +5 -0
- package/components/tree/public-api.d.ts +1 -0
- package/components/tree/src/tree.component.d.ts +180 -0
- package/components/wizard/README.md +9 -0
- package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +15 -6
- package/directives/auto-focus/src/auto-focus.directive.d.ts +1 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -1
- package/directives/truncate/README.md +49 -0
- package/directives/truncate/index.d.ts +5 -0
- package/directives/truncate/public-api.d.ts +1 -0
- package/directives/truncate/src/truncate-popover.component.d.ts +11 -0
- package/directives/truncate/src/truncate.directive.d.ts +96 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs +152 -0
- package/fesm2022/sixbell-telco-sdk-components-alert.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +15 -15
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +53 -19
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +61 -14
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +34 -33
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs +200 -0
- package/fesm2022/sixbell-telco-sdk-components-description-list.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +128 -17
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +17 -17
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs +131 -0
- package/fesm2022/sixbell-telco-sdk-components-empty-state.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +80 -25
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +28 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs +81 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-hint.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +45 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +62 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +38 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +60 -15
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +36 -22
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +329 -0
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-table-tokens.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +63 -32
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +156 -25
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +478 -0
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +18 -9
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +43 -35
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +15 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs +87 -2
- package/fesm2022/sixbell-telco-sdk-utils-mfe.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +242 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs +203 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation-testing.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs +150 -0
- package/fesm2022/sixbell-telco-sdk-utils-unsaved-changes.mjs.map +1 -0
- package/i18n/sdk/en.json +224 -0
- package/i18n/sdk/es.json +224 -0
- package/i18n/sdk/pt.json +224 -0
- package/layouts/README.md +11 -10
- package/layouts/src/app-layout/app-layout.component.d.ts +11 -8
- package/layouts/src/layout.config.d.ts +1 -1
- package/layouts/src/navbar/navbar.component.d.ts +5 -5
- package/layouts/src/page-banner/page-banner.component.d.ts +6 -1
- package/layouts/src/side-menu/side-menu.component.d.ts +2 -2
- package/layouts/src/user-menu/user-menu.component.d.ts +5 -5
- package/package.json +63 -23
- package/src/_index.css +1616 -0
- package/utils/mfe/README.md +1 -0
- package/utils/mfe/src/hoist-property-rules.d.ts +13 -0
- package/utils/mfe/src/mfe-shadow-shell.component.d.ts +3 -0
- package/utils/theme/README.md +94 -1
- package/utils/theme/public-api.d.ts +2 -1
- package/utils/theme/src/models/theme.d.ts +32 -0
- package/utils/theme/src/overlay/theme-overlay.d.ts +33 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +7 -0
- package/utils/translation/README.md +61 -0
- package/utils/translation/testing/index.d.ts +5 -0
- package/utils/translation/testing/public-api.d.ts +2 -0
- package/utils/translation/testing/src/translation-testing.d.ts +96 -0
- package/utils/unsaved-changes/README.md +33 -0
- package/utils/unsaved-changes/index.d.ts +5 -0
- package/utils/unsaved-changes/public-api.d.ts +1 -0
- package/utils/unsaved-changes/src/unsaved-changes-dialog.component.d.ts +24 -0
- package/utils/unsaved-changes/src/unsaved-changes.d.ts +50 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, computed, InjectionToken, signal, Injectable, model, ChangeDetectionStrategy, Component, input, output, viewChild, ElementRef, afterRenderEffect, Injector, effect, untracked, afterNextRender, TemplateRef, Directive, contentChild } from '@angular/core';
|
|
3
|
+
import { inject, computed, InjectionToken, signal, Injectable, model, ChangeDetectionStrategy, Component, input, booleanAttribute, output, viewChild, ElementRef, afterRenderEffect, Injector, effect, untracked, afterNextRender, TemplateRef, Directive, contentChild } from '@angular/core';
|
|
4
4
|
import { RouterLink, Router, NavigationEnd } from '@angular/router';
|
|
5
5
|
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
6
6
|
import { matCheckOutline, matDarkModeOutline, matLightModeOutline, matComputerOutline, matColorLensOutline, matPersonOutline, matPasswordOutline, matLogoutOutline, matLanguageOutline, matDashboardCustomizeOutline, matFolderOutline, matSearchOutline, matMenuOpenOutline, matMenuOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
7
7
|
import { TooltipComponent } from '@sixbell-telco/sdk/components/tooltip';
|
|
8
8
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
9
|
+
import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
|
|
9
10
|
import { TranslationService, TranslatePipe, TranslateService } from '@sixbell-telco/sdk/utils/translation';
|
|
10
11
|
import { cva } from 'class-variance-authority';
|
|
11
12
|
import { ThemeService, ThemeAssetsService } from '@sixbell-telco/sdk/utils/theme';
|
|
@@ -18,7 +19,6 @@ import { DropdownComponent, DropdownTriggerComponent, DropdownContentComponent,
|
|
|
18
19
|
import { matChevronLeft, matKeyboardArrowDown, matKeyboardBackspace } from '@sixbell-telco/sdk/components/icon/material/baseline';
|
|
19
20
|
import { merge, filter, map, startWith } from 'rxjs';
|
|
20
21
|
import { InputComponent, InputContentComponent } from '@sixbell-telco/sdk/components/forms/input';
|
|
21
|
-
import { generateUniqueId } from '@sixbell-telco/sdk/utils/generators/uuid';
|
|
22
22
|
|
|
23
23
|
/** Theme art and alt text for the layout logos. Call it in an injection context. */
|
|
24
24
|
function injectLayoutLogo() {
|
|
@@ -37,8 +37,8 @@ function injectLayoutLogo() {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/** Default collapse toggle position: the
|
|
41
|
-
const DEFAULT_COLLAPSE_TOGGLE = '
|
|
40
|
+
/** Default collapse toggle position: at the right of the classic sidebar logo. */
|
|
41
|
+
const DEFAULT_COLLAPSE_TOGGLE = 'header';
|
|
42
42
|
const LAYOUT_CONFIG = new InjectionToken('LAYOUT_CONFIG', { factory: () => ({}) });
|
|
43
43
|
const LAYOUT_OPTIONS = [
|
|
44
44
|
{ value: 'classic', labelKey: 'sdk.layout.classic', descriptionKey: 'sdk.layout.classic_description' },
|
|
@@ -109,11 +109,11 @@ class LayoutSwitcherComponent {
|
|
|
109
109
|
this.opened.set(false);
|
|
110
110
|
}
|
|
111
111
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LayoutSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: LayoutSwitcherComponent, isStandalone: true, selector: "st-layout-switcher", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange" }, ngImport: i0, template: "<st-dialog [(opened)]=\"opened\" width=\"lg\">\n\t<st-dialog-title>{{ 'sdk.layout.title' | translate }}</st-dialog-title>\n\t<st-dialog-content>\n\t\t<div class=\"grid grid-cols-2 gap-6 py-4\">\n\t\t\t@for (option of options; track option.value) {\n\t\t\t\t<!-- Preview Card -->\n\t\t\t\t<button\n\t\t\t\t\tclass=\"group rounded-box relative flex cursor-pointer flex-col items-center gap-3 border-2 p-4 transition-all duration-300 active:scale-[0.98]\"\n\t\t\t\t\t[class]=\"\n\t\t\t\t\t\tselectedLayout() === option.value\n\t\t\t\t\t\t\t? 'border-primary ring-primary/30 ring-4'\n\t\t\t\t\t\t\t: 'border-base-300 hover:border-primary/50 hover:ring-primary/15 hover:ring-2'\n\t\t\t\t\t\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[attr.aria-pressed]=\"selectedLayout() === option.value\"\n\t\t\t\t\t[attr.data-st-layout-option]=\"option.value\"\n\t\t\t\t\t[attr.aria-describedby]=\"'st-layout-option-' + option.value + '-description'\"\n\t\t\t\t\t(click)=\"select(option.value)\"\n\t\t\t\t>\n\t\t\t\t\t<!-- Selected Checkmark Badge -->\n\t\t\t\t\t@if (selectedLayout() === option.value) {\n\t\t\t\t\t\t<div class=\"bg-primary text-primary-content absolute -top-2.5 -right-2.5 z-10 grid h-6 w-6 place-items-center rounded-full shadow-md\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"checkIcon\" size=\"xs\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<!-- Minimap Container -->\n\t\t\t\t\t<div class=\"bg-base-200 rounded-box relative h-40 w-full overflow-hidden\">\n\t\t\t\t\t\t@switch (option.value) {\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- CLASSIC MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('classic') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex\">\n\t\t\t\t\t\t\t\t\t<!-- Sidebar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 flex flex-col justify-between border-r px-2 py-3\">\n\t\t\t\t\t\t\t\t\t\t<!-- Logo placeholder -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/15 h-2 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<!-- Menu items -->\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"mt-2 flex flex-col gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Avatar placeholder at bottom -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/30 h-3 w-3 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-6 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Main content area -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col items-center justify-center gap-2 p-4\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-2 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-12 w-5/6\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-6 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- MODERN MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('modern') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex flex-col gap-1 p-1.5\">\n\t\t\t\t\t\t\t\t\t<!-- Top navbar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/70 rounded-field flex h-6 shrink-0 items-center justify-between px-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-2.5 w-2.5 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Body: sidebar + main -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex min-h-0 flex-1 gap-1\">\n\t\t\t\t\t\t\t\t\t\t<!-- Sidebar (rounded) -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 rounded-field flex flex-col gap-1.5 border px-2 py-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Main content -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center gap-1.5 px-3\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-1.5 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-10 w-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-5 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Label -->\n\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\" class=\"text-base-content\">{{ option.labelKey | translate }}</span>\n\t\t\t\t\t<span class=\"sr-only\" [id]=\"'st-layout-option-' + option.value + '-description'\">{{ option.descriptionKey | translate }}</span>\n\t\t\t\t</button>\n\t\t\t}\n\t\t</div>\n\t</st-dialog-content>\n</st-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "st-dialog", inputs: ["width", "xPosition", "yPosition", "opened", "stopPropagation"], outputs: ["openedChange", "closed", "clickOutside", "clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: DialogTitleComponent, selector: "st-dialog-title" }, { kind: "component", type: DialogContentComponent, selector: "st-dialog-content" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: LayoutSwitcherComponent, isStandalone: true, selector: "st-layout-switcher", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange" }, ngImport: i0, template: "<st-dialog [(opened)]=\"opened\" width=\"lg\" [fullscreenOnMobile]=\"false\">\n\t<st-dialog-title>{{ 'sdk.layout.title' | translate }}</st-dialog-title>\n\t<st-dialog-content>\n\t\t<div class=\"grid grid-cols-2 gap-6 py-4\">\n\t\t\t@for (option of options; track option.value) {\n\t\t\t\t<!-- Preview Card -->\n\t\t\t\t<button\n\t\t\t\t\tclass=\"group rounded-box relative flex cursor-pointer flex-col items-center gap-3 border-2 p-4 transition-all duration-300 active:scale-[0.98]\"\n\t\t\t\t\t[class]=\"\n\t\t\t\t\t\tselectedLayout() === option.value\n\t\t\t\t\t\t\t? 'border-primary ring-primary/30 ring-4'\n\t\t\t\t\t\t\t: 'border-base-300 hover:border-primary/50 hover:ring-primary/15 hover:ring-2'\n\t\t\t\t\t\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[attr.aria-pressed]=\"selectedLayout() === option.value\"\n\t\t\t\t\t[attr.data-st-layout-option]=\"option.value\"\n\t\t\t\t\t[attr.aria-describedby]=\"'st-layout-option-' + option.value + '-description'\"\n\t\t\t\t\t(click)=\"select(option.value)\"\n\t\t\t\t>\n\t\t\t\t\t<!-- Selected Checkmark Badge -->\n\t\t\t\t\t@if (selectedLayout() === option.value) {\n\t\t\t\t\t\t<div class=\"bg-primary text-primary-content absolute -top-2.5 -right-2.5 z-10 grid h-6 w-6 place-items-center rounded-full shadow-md\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"checkIcon\" size=\"xs\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<!-- Minimap Container -->\n\t\t\t\t\t<div class=\"bg-base-200 rounded-box relative h-40 w-full overflow-hidden\">\n\t\t\t\t\t\t@switch (option.value) {\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- CLASSIC MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('classic') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex\">\n\t\t\t\t\t\t\t\t\t<!-- Sidebar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 flex flex-col justify-between border-r px-2 py-3\">\n\t\t\t\t\t\t\t\t\t\t<!-- Logo placeholder -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/15 h-2 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<!-- Menu items -->\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"mt-2 flex flex-col gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Avatar placeholder at bottom -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/30 h-3 w-3 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-6 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Main content area -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col items-center justify-center gap-2 p-4\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-2 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-12 w-5/6\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-6 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- MODERN MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('modern') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex flex-col gap-1 p-1.5\">\n\t\t\t\t\t\t\t\t\t<!-- Top navbar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/70 rounded-field flex h-6 shrink-0 items-center justify-between px-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-2.5 w-2.5 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Body: sidebar + main -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex min-h-0 flex-1 gap-1\">\n\t\t\t\t\t\t\t\t\t\t<!-- Sidebar (rounded) -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 rounded-field flex flex-col gap-1.5 border px-2 py-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Main content -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center gap-1.5 px-3\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-1.5 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-10 w-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-5 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Label -->\n\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\" class=\"text-base-content\">{{ option.labelKey | translate }}</span>\n\t\t\t\t\t<span class=\"sr-only\" [id]=\"'st-layout-option-' + option.value + '-description'\">{{ option.descriptionKey | translate }}</span>\n\t\t\t\t</button>\n\t\t\t}\n\t\t</div>\n\t</st-dialog-content>\n</st-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "st-dialog", inputs: ["width", "fullscreenOnMobile", "xPosition", "yPosition", "opened", "stopPropagation"], outputs: ["openedChange", "closed", "clickOutside", "clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: DialogTitleComponent, selector: "st-dialog-title" }, { kind: "component", type: DialogContentComponent, selector: "st-dialog-content" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
113
113
|
}
|
|
114
114
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LayoutSwitcherComponent, decorators: [{
|
|
115
115
|
type: Component,
|
|
116
|
-
args: [{ selector: 'st-layout-switcher', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DialogComponent, DialogTitleComponent, DialogContentComponent, IconComponent, TextDirective, TranslatePipe], template: "<st-dialog [(opened)]=\"opened\" width=\"lg\">\n\t<st-dialog-title>{{ 'sdk.layout.title' | translate }}</st-dialog-title>\n\t<st-dialog-content>\n\t\t<div class=\"grid grid-cols-2 gap-6 py-4\">\n\t\t\t@for (option of options; track option.value) {\n\t\t\t\t<!-- Preview Card -->\n\t\t\t\t<button\n\t\t\t\t\tclass=\"group rounded-box relative flex cursor-pointer flex-col items-center gap-3 border-2 p-4 transition-all duration-300 active:scale-[0.98]\"\n\t\t\t\t\t[class]=\"\n\t\t\t\t\t\tselectedLayout() === option.value\n\t\t\t\t\t\t\t? 'border-primary ring-primary/30 ring-4'\n\t\t\t\t\t\t\t: 'border-base-300 hover:border-primary/50 hover:ring-primary/15 hover:ring-2'\n\t\t\t\t\t\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[attr.aria-pressed]=\"selectedLayout() === option.value\"\n\t\t\t\t\t[attr.data-st-layout-option]=\"option.value\"\n\t\t\t\t\t[attr.aria-describedby]=\"'st-layout-option-' + option.value + '-description'\"\n\t\t\t\t\t(click)=\"select(option.value)\"\n\t\t\t\t>\n\t\t\t\t\t<!-- Selected Checkmark Badge -->\n\t\t\t\t\t@if (selectedLayout() === option.value) {\n\t\t\t\t\t\t<div class=\"bg-primary text-primary-content absolute -top-2.5 -right-2.5 z-10 grid h-6 w-6 place-items-center rounded-full shadow-md\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"checkIcon\" size=\"xs\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<!-- Minimap Container -->\n\t\t\t\t\t<div class=\"bg-base-200 rounded-box relative h-40 w-full overflow-hidden\">\n\t\t\t\t\t\t@switch (option.value) {\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- CLASSIC MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('classic') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex\">\n\t\t\t\t\t\t\t\t\t<!-- Sidebar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 flex flex-col justify-between border-r px-2 py-3\">\n\t\t\t\t\t\t\t\t\t\t<!-- Logo placeholder -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/15 h-2 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<!-- Menu items -->\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"mt-2 flex flex-col gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Avatar placeholder at bottom -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/30 h-3 w-3 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-6 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Main content area -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col items-center justify-center gap-2 p-4\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-2 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-12 w-5/6\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-6 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- MODERN MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('modern') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex flex-col gap-1 p-1.5\">\n\t\t\t\t\t\t\t\t\t<!-- Top navbar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/70 rounded-field flex h-6 shrink-0 items-center justify-between px-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-2.5 w-2.5 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Body: sidebar + main -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex min-h-0 flex-1 gap-1\">\n\t\t\t\t\t\t\t\t\t\t<!-- Sidebar (rounded) -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 rounded-field flex flex-col gap-1.5 border px-2 py-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Main content -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center gap-1.5 px-3\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-1.5 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-10 w-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-5 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Label -->\n\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\" class=\"text-base-content\">{{ option.labelKey | translate }}</span>\n\t\t\t\t\t<span class=\"sr-only\" [id]=\"'st-layout-option-' + option.value + '-description'\">{{ option.descriptionKey | translate }}</span>\n\t\t\t\t</button>\n\t\t\t}\n\t\t</div>\n\t</st-dialog-content>\n</st-dialog>\n" }]
|
|
116
|
+
args: [{ selector: 'st-layout-switcher', changeDetection: ChangeDetectionStrategy.OnPush, imports: [DialogComponent, DialogTitleComponent, DialogContentComponent, IconComponent, TextDirective, TranslatePipe], template: "<st-dialog [(opened)]=\"opened\" width=\"lg\" [fullscreenOnMobile]=\"false\">\n\t<st-dialog-title>{{ 'sdk.layout.title' | translate }}</st-dialog-title>\n\t<st-dialog-content>\n\t\t<div class=\"grid grid-cols-2 gap-6 py-4\">\n\t\t\t@for (option of options; track option.value) {\n\t\t\t\t<!-- Preview Card -->\n\t\t\t\t<button\n\t\t\t\t\tclass=\"group rounded-box relative flex cursor-pointer flex-col items-center gap-3 border-2 p-4 transition-all duration-300 active:scale-[0.98]\"\n\t\t\t\t\t[class]=\"\n\t\t\t\t\t\tselectedLayout() === option.value\n\t\t\t\t\t\t\t? 'border-primary ring-primary/30 ring-4'\n\t\t\t\t\t\t\t: 'border-base-300 hover:border-primary/50 hover:ring-primary/15 hover:ring-2'\n\t\t\t\t\t\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[attr.aria-pressed]=\"selectedLayout() === option.value\"\n\t\t\t\t\t[attr.data-st-layout-option]=\"option.value\"\n\t\t\t\t\t[attr.aria-describedby]=\"'st-layout-option-' + option.value + '-description'\"\n\t\t\t\t\t(click)=\"select(option.value)\"\n\t\t\t\t>\n\t\t\t\t\t<!-- Selected Checkmark Badge -->\n\t\t\t\t\t@if (selectedLayout() === option.value) {\n\t\t\t\t\t\t<div class=\"bg-primary text-primary-content absolute -top-2.5 -right-2.5 z-10 grid h-6 w-6 place-items-center rounded-full shadow-md\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"checkIcon\" size=\"xs\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t<!-- Minimap Container -->\n\t\t\t\t\t<div class=\"bg-base-200 rounded-box relative h-40 w-full overflow-hidden\">\n\t\t\t\t\t\t@switch (option.value) {\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- CLASSIC MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('classic') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex\">\n\t\t\t\t\t\t\t\t\t<!-- Sidebar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 flex flex-col justify-between border-r px-2 py-3\">\n\t\t\t\t\t\t\t\t\t\t<!-- Logo placeholder -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/15 h-2 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<!-- Menu items -->\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"mt-2 flex flex-col gap-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Avatar placeholder at bottom -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/30 h-3 w-3 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-6 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Main content area -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col items-center justify-center gap-2 p-4\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-2 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-12 w-5/6\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-6 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t<!-- MODERN MINIMAP -->\n\t\t\t\t\t\t\t<!-- ============================== -->\n\t\t\t\t\t\t\t@case ('modern') {\n\t\t\t\t\t\t\t\t<div class=\"absolute inset-0 flex flex-col gap-1 p-1.5\">\n\t\t\t\t\t\t\t\t\t<!-- Top navbar -->\n\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/70 rounded-field flex h-6 shrink-0 items-center justify-between px-2\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/20 h-2 w-2 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary-content/30 h-2.5 w-2.5 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- Body: sidebar + main -->\n\t\t\t\t\t\t\t\t\t<div class=\"flex min-h-0 flex-1 gap-1\">\n\t\t\t\t\t\t\t\t\t\t<!-- Sidebar (rounded) -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-300 border-base-content/10 rounded-field flex flex-col gap-1.5 border px-2 py-2\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-primary/60 h-1.5 w-12 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-10 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-8 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/10 h-1.5 w-11 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<!-- Main content -->\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-col justify-center gap-1.5 px-3\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/8 h-1.5 w-3/4 rounded-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-10 w-full\"></div>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"bg-base-content/5 rounded-field h-5 w-2/3\"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Label -->\n\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\" class=\"text-base-content\">{{ option.labelKey | translate }}</span>\n\t\t\t\t\t<span class=\"sr-only\" [id]=\"'st-layout-option-' + option.value + '-description'\">{{ option.descriptionKey | translate }}</span>\n\t\t\t\t</button>\n\t\t\t}\n\t\t</div>\n\t</st-dialog-content>\n</st-dialog>\n" }]
|
|
117
117
|
}] });
|
|
118
118
|
|
|
119
119
|
const DEFAULT_MENU_TOP_LEVEL_GROUPS = 'collapsible';
|
|
@@ -157,15 +157,15 @@ class UserMenuComponent {
|
|
|
157
157
|
translateService = inject(TranslateService);
|
|
158
158
|
variant = input('sidebar');
|
|
159
159
|
/** Sidebar variant only: shows the avatar without name, role or chevron. */
|
|
160
|
-
collapsed = input(false);
|
|
160
|
+
collapsed = input(false, { transform: booleanAttribute });
|
|
161
161
|
/** Shows the language option (also needs more than one language). */
|
|
162
|
-
showLanguageSelector = input(true);
|
|
162
|
+
showLanguageSelector = input(true, { transform: booleanAttribute });
|
|
163
163
|
/** Shows the color scheme option (also needs more than one scheme). */
|
|
164
|
-
showSchemeSelector = input(true);
|
|
164
|
+
showSchemeSelector = input(true, { transform: booleanAttribute });
|
|
165
165
|
/** Shows the theme option (also needs more than one theme). */
|
|
166
|
-
showThemeSelector = input(true);
|
|
166
|
+
showThemeSelector = input(true, { transform: booleanAttribute });
|
|
167
167
|
/** Shows the layout option (also needs more than one layout). */
|
|
168
|
-
showLayoutSelector = input(true);
|
|
168
|
+
showLayoutSelector = input(true, { transform: booleanAttribute });
|
|
169
169
|
class = input('');
|
|
170
170
|
openLayoutSwitcher = output();
|
|
171
171
|
openChange = output();
|
|
@@ -297,7 +297,7 @@ class UserMenuComponent {
|
|
|
297
297
|
this.account.logout();
|
|
298
298
|
}
|
|
299
299
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: UserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
300
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: UserMenuComponent, isStandalone: true, selector: "st-user-menu", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, showLanguageSelector: { classPropertyName: "showLanguageSelector", publicName: "showLanguageSelector", isSignal: true, isRequired: false, transformFunction: null }, showSchemeSelector: { classPropertyName: "showSchemeSelector", publicName: "showSchemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showThemeSelector: { classPropertyName: "showThemeSelector", publicName: "showThemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showLayoutSelector: { classPropertyName: "showLayoutSelector", publicName: "showLayoutSelector", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openLayoutSwitcher: "openLayoutSwitcher", openChange: "openChange" }, host: { listeners: { "document:keydown.enter": "preventSubmenuEnter($event)" }, properties: { "class": "hostClass()" } }, viewQueries: [{ propertyName: "backButton", first: true, predicate: ["backButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "optionsView", first: true, predicate: ["optionsView"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@let sidebar = variant() === 'sidebar';\n<st-dropdown [class]=\"sidebar ? 'block w-full' : 'inline-block'\" (openChange)=\"handleOpenChange($event)\">\n\t<st-dropdown-trigger\n\t\t[class]=\"sidebar ? 'block w-full *:w-full' : ''\"\n\t\toriginX=\"end\"\n\t\toriginY=\"bottom\"\n\t\t[overlayX]=\"sidebar ? 'start' : 'end'\"\n\t\t[overlayY]=\"sidebar ? 'bottom' : 'top'\"\n\t>\n\t\t<st-button variant=\"base\" [ghost]=\"true\" [block]=\"sidebar && !compact()\" [class]=\"triggerClass()\" data-st-user-menu-trigger>\n\t\t\t<span class=\"sr-only\">{{ triggerLabel() }}</span>\n\t\t\t@if (user(); as currentUser) {\n\t\t\t\t<st-avatar\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"[&
|
|
300
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: UserMenuComponent, isStandalone: true, selector: "st-user-menu", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, showLanguageSelector: { classPropertyName: "showLanguageSelector", publicName: "showLanguageSelector", isSignal: true, isRequired: false, transformFunction: null }, showSchemeSelector: { classPropertyName: "showSchemeSelector", publicName: "showSchemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showThemeSelector: { classPropertyName: "showThemeSelector", publicName: "showThemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showLayoutSelector: { classPropertyName: "showLayoutSelector", publicName: "showLayoutSelector", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openLayoutSwitcher: "openLayoutSwitcher", openChange: "openChange" }, host: { listeners: { "document:keydown.enter": "preventSubmenuEnter($event)" }, properties: { "class": "hostClass()" } }, viewQueries: [{ propertyName: "backButton", first: true, predicate: ["backButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "optionsView", first: true, predicate: ["optionsView"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@let sidebar = variant() === 'sidebar';\n<st-dropdown [class]=\"sidebar ? 'block w-full' : 'inline-block'\" (openChange)=\"handleOpenChange($event)\">\n\t<st-dropdown-trigger\n\t\t[class]=\"sidebar ? 'block w-full *:w-full' : ''\"\n\t\toriginX=\"end\"\n\t\toriginY=\"bottom\"\n\t\t[overlayX]=\"sidebar ? 'start' : 'end'\"\n\t\t[overlayY]=\"sidebar ? 'bottom' : 'top'\"\n\t>\n\t\t<st-button variant=\"base\" [ghost]=\"true\" [block]=\"sidebar && !compact()\" [class]=\"triggerClass()\" data-st-user-menu-trigger>\n\t\t\t<span class=\"sr-only\">{{ triggerLabel() }}</span>\n\t\t\t@if (user(); as currentUser) {\n\t\t\t\t<st-avatar\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"[&_span]:text-nowrap\"\n\t\t\t\t\t[class.p-1]=\"sidebar\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t[shape]=\"sidebar ? 'square' : 'rounded'\"\n\t\t\t\t\t[ring]=\"sidebar\"\n\t\t\t\t\t[user]=\"currentUser\"\n\t\t\t\t\t[showNameAndRole]=\"!compact()\"\n\t\t\t\t/>\n\t\t\t} @else {\n\t\t\t\t<st-icon [icon]=\"icons.person\" />\n\t\t\t}\n\t\t\t@if (sidebar && !compact()) {\n\t\t\t\t<st-dropdown-chevron aria-hidden=\"true\" position=\"right\" size=\"auto\" />\n\t\t\t}\n\t\t</st-button>\n\t</st-dropdown-trigger>\n\t<st-dropdown-content class=\"min-w-64\">\n\t\t@if (submenu(); as menu) {\n\t\t\t<div class=\"animate-morph-in\" [attr.data-st-user-menu-view]=\"view()\">\n\t\t\t\t<div class=\"inline-flex items-center gap-2 py-1.5 ps-2\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t#backButton\n\t\t\t\t\t\tclass=\"*:text-sm\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"icons.back\"\n\t\t\t\t\t\t(triggered)=\"show('options')\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.layout.back' | translate }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t\t<span stText=\"7\" stTextWeight=\"medium\">{{ menu.titleKey | translate }}</span>\n\t\t\t\t</div>\n\t\t\t\t<st-dropdown-separator />\n\t\t\t\t@for (choice of menu.choices; track choice.value) {\n\t\t\t\t\t<st-dropdown-item-radio\n\t\t\t\t\t\t[value]=\"choice.value\"\n\t\t\t\t\t\t[checked]=\"menu.current === choice.value\"\n\t\t\t\t\t\t[closeOnSelect]=\"false\"\n\t\t\t\t\t\t[attr.data-st-user-menu-choice]=\"choice.value\"\n\t\t\t\t\t\t(checkedChanged)=\"menu.select($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (view() === 'scheme') {\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"schemeIcon(choice.value)\" />\n\t\t\t\t\t\t\t\t<span>{{ choice.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span>{{ choice.label }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-dropdown-item-radio>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div #optionsView class=\"animate-morph-in\" data-st-user-menu-view=\"options\">\n\t\t\t\t@if (canChangePassword) {\n\t\t\t\t\t<st-dropdown-label>{{ 'sdk.layout.account' | translate }}</st-dropdown-label>\n\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"change-password\" (selected)=\"changePassword()\">\n\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"icons.password\" />\n\t\t\t\t\t\t\t<span>{{ 'sdk.layout.change_password' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t<st-dropdown-separator />\n\t\t\t\t}\n\t\t\t\t@if (hasPreferences()) {\n\t\t\t\t\t<st-dropdown-label>{{ 'sdk.layout.preferences' | translate }}</st-dropdown-label>\n\t\t\t\t\t@if (hasLanguageSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"language\" [closeOnSelect]=\"false\" (selected)=\"show('language')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.language\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.language' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasSchemeSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"scheme\" [closeOnSelect]=\"false\" (selected)=\"show('scheme')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"schemeIcon(currentScheme())\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.scheme' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasThemeSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"theme\" [closeOnSelect]=\"false\" (selected)=\"show('theme')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.theme\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.theme' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasLayoutSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"layout\" (selected)=\"openLayoutSwitcher.emit()\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.layout\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.layout' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t<st-dropdown-separator />\n\t\t\t\t}\n\t\t\t\t<st-dropdown-item class=\"text-error\" data-st-user-menu-option=\"logout\" (selected)=\"logout()\">\n\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t<st-icon [icon]=\"icons.logout\" />\n\t\t\t\t\t\t<span>{{ 'sdk.layout.logout' | translate }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</st-dropdown-item>\n\t\t\t</div>\n\t\t}\n\t</st-dropdown-content>\n</st-dropdown>\n", dependencies: [{ kind: "component", type: AvatarComponent, selector: "st-avatar", inputs: ["variant", "shape", "size", "ring", "presence", "user", "image", "showNameAndRole"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: DropdownComponent, selector: "st-dropdown", inputs: ["open"], outputs: ["openChange", "opened", "closed"], exportAs: ["stDropdown"] }, { kind: "component", type: DropdownTriggerComponent, selector: "st-dropdown-trigger", inputs: ["offsetX", "offsetY", "originX", "originY", "overlayX", "overlayY", "fallbacks", "stopPropagation", "triggerTabIndex"], outputs: ["opened", "closed", "clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: DropdownContentComponent, selector: "st-dropdown-content", inputs: ["class", "size", "shadow"], outputs: ["closeRequested"], exportAs: ["dropdownContent"] }, { kind: "component", type: DropdownItemComponent, selector: "st-dropdown-item", inputs: ["active", "class", "disabled", "closeOnSelect", "stopPropagation"], outputs: ["selected", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: DropdownItemRadioComponent, selector: "st-dropdown-item-radio", inputs: ["checked", "value", "disabled", "indicator", "showIndicator", "class", "closeOnSelect", "stopPropagation"], outputs: ["checkedChanged", "triggered", "clicked", "keyDownEnter", "keyDownSpace"] }, { kind: "component", type: DropdownLabelComponent, selector: "st-dropdown-label", inputs: ["class"] }, { kind: "component", type: DropdownSeparatorComponent, selector: "st-dropdown-separator" }, { kind: "component", type: DropdownChevronComponent, selector: "st-dropdown-chevron", inputs: ["icon", "class", "size", "color", "position"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
301
301
|
}
|
|
302
302
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: UserMenuComponent, decorators: [{
|
|
303
303
|
type: Component,
|
|
@@ -318,7 +318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
318
318
|
], host: {
|
|
319
319
|
'[class]': 'hostClass()',
|
|
320
320
|
'(document:keydown.enter)': 'preventSubmenuEnter($event)',
|
|
321
|
-
}, template: "@let sidebar = variant() === 'sidebar';\n<st-dropdown [class]=\"sidebar ? 'block w-full' : 'inline-block'\" (openChange)=\"handleOpenChange($event)\">\n\t<st-dropdown-trigger\n\t\t[class]=\"sidebar ? 'block w-full *:w-full' : ''\"\n\t\toriginX=\"end\"\n\t\toriginY=\"bottom\"\n\t\t[overlayX]=\"sidebar ? 'start' : 'end'\"\n\t\t[overlayY]=\"sidebar ? 'bottom' : 'top'\"\n\t>\n\t\t<st-button variant=\"base\" [ghost]=\"true\" [block]=\"sidebar && !compact()\" [class]=\"triggerClass()\" data-st-user-menu-trigger>\n\t\t\t<span class=\"sr-only\">{{ triggerLabel() }}</span>\n\t\t\t@if (user(); as currentUser) {\n\t\t\t\t<st-avatar\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"[&
|
|
321
|
+
}, template: "@let sidebar = variant() === 'sidebar';\n<st-dropdown [class]=\"sidebar ? 'block w-full' : 'inline-block'\" (openChange)=\"handleOpenChange($event)\">\n\t<st-dropdown-trigger\n\t\t[class]=\"sidebar ? 'block w-full *:w-full' : ''\"\n\t\toriginX=\"end\"\n\t\toriginY=\"bottom\"\n\t\t[overlayX]=\"sidebar ? 'start' : 'end'\"\n\t\t[overlayY]=\"sidebar ? 'bottom' : 'top'\"\n\t>\n\t\t<st-button variant=\"base\" [ghost]=\"true\" [block]=\"sidebar && !compact()\" [class]=\"triggerClass()\" data-st-user-menu-trigger>\n\t\t\t<span class=\"sr-only\">{{ triggerLabel() }}</span>\n\t\t\t@if (user(); as currentUser) {\n\t\t\t\t<st-avatar\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"[&_span]:text-nowrap\"\n\t\t\t\t\t[class.p-1]=\"sidebar\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t[shape]=\"sidebar ? 'square' : 'rounded'\"\n\t\t\t\t\t[ring]=\"sidebar\"\n\t\t\t\t\t[user]=\"currentUser\"\n\t\t\t\t\t[showNameAndRole]=\"!compact()\"\n\t\t\t\t/>\n\t\t\t} @else {\n\t\t\t\t<st-icon [icon]=\"icons.person\" />\n\t\t\t}\n\t\t\t@if (sidebar && !compact()) {\n\t\t\t\t<st-dropdown-chevron aria-hidden=\"true\" position=\"right\" size=\"auto\" />\n\t\t\t}\n\t\t</st-button>\n\t</st-dropdown-trigger>\n\t<st-dropdown-content class=\"min-w-64\">\n\t\t@if (submenu(); as menu) {\n\t\t\t<div class=\"animate-morph-in\" [attr.data-st-user-menu-view]=\"view()\">\n\t\t\t\t<div class=\"inline-flex items-center gap-2 py-1.5 ps-2\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t#backButton\n\t\t\t\t\t\tclass=\"*:text-sm\"\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"icons.back\"\n\t\t\t\t\t\t(triggered)=\"show('options')\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ 'sdk.layout.back' | translate }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t\t<span stText=\"7\" stTextWeight=\"medium\">{{ menu.titleKey | translate }}</span>\n\t\t\t\t</div>\n\t\t\t\t<st-dropdown-separator />\n\t\t\t\t@for (choice of menu.choices; track choice.value) {\n\t\t\t\t\t<st-dropdown-item-radio\n\t\t\t\t\t\t[value]=\"choice.value\"\n\t\t\t\t\t\t[checked]=\"menu.current === choice.value\"\n\t\t\t\t\t\t[closeOnSelect]=\"false\"\n\t\t\t\t\t\t[attr.data-st-user-menu-choice]=\"choice.value\"\n\t\t\t\t\t\t(checkedChanged)=\"menu.select($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (view() === 'scheme') {\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"schemeIcon(choice.value)\" />\n\t\t\t\t\t\t\t\t<span>{{ choice.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span>{{ choice.label }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-dropdown-item-radio>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div #optionsView class=\"animate-morph-in\" data-st-user-menu-view=\"options\">\n\t\t\t\t@if (canChangePassword) {\n\t\t\t\t\t<st-dropdown-label>{{ 'sdk.layout.account' | translate }}</st-dropdown-label>\n\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"change-password\" (selected)=\"changePassword()\">\n\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"icons.password\" />\n\t\t\t\t\t\t\t<span>{{ 'sdk.layout.change_password' | translate }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t<st-dropdown-separator />\n\t\t\t\t}\n\t\t\t\t@if (hasPreferences()) {\n\t\t\t\t\t<st-dropdown-label>{{ 'sdk.layout.preferences' | translate }}</st-dropdown-label>\n\t\t\t\t\t@if (hasLanguageSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"language\" [closeOnSelect]=\"false\" (selected)=\"show('language')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.language\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.language' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasSchemeSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"scheme\" [closeOnSelect]=\"false\" (selected)=\"show('scheme')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"schemeIcon(currentScheme())\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.scheme' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasThemeSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"theme\" [closeOnSelect]=\"false\" (selected)=\"show('theme')\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.theme\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.theme' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t@if (hasLayoutSelector()) {\n\t\t\t\t\t\t<st-dropdown-item data-st-user-menu-option=\"layout\" (selected)=\"openLayoutSwitcher.emit()\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<st-icon [icon]=\"icons.layout\" />\n\t\t\t\t\t\t\t\t<span>{{ 'sdk.layout.layout' | translate }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</st-dropdown-item>\n\t\t\t\t\t}\n\t\t\t\t\t<st-dropdown-separator />\n\t\t\t\t}\n\t\t\t\t<st-dropdown-item class=\"text-error\" data-st-user-menu-option=\"logout\" (selected)=\"logout()\">\n\t\t\t\t\t<div class=\"inline-flex items-center gap-2\">\n\t\t\t\t\t\t<st-icon [icon]=\"icons.logout\" />\n\t\t\t\t\t\t<span>{{ 'sdk.layout.logout' | translate }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</st-dropdown-item>\n\t\t\t</div>\n\t\t}\n\t</st-dropdown-content>\n</st-dropdown>\n" }]
|
|
322
322
|
}], ctorParameters: () => [] });
|
|
323
323
|
|
|
324
324
|
/**
|
|
@@ -333,17 +333,17 @@ class NavbarComponent {
|
|
|
333
333
|
/** Route the logo links to. */
|
|
334
334
|
homeLink = input('/');
|
|
335
335
|
/** Shows the account menu pill at the end. */
|
|
336
|
-
showUserMenu = input(true);
|
|
336
|
+
showUserMenu = input(true, { transform: booleanAttribute });
|
|
337
337
|
/** Alt text of the logo; defaults to the localized theme name. */
|
|
338
338
|
logoAlt = input(null);
|
|
339
339
|
/** `st-user-menu` `showLanguageSelector`. */
|
|
340
|
-
showLanguageSelector = input(true);
|
|
340
|
+
showLanguageSelector = input(true, { transform: booleanAttribute });
|
|
341
341
|
/** `st-user-menu` `showSchemeSelector`. */
|
|
342
|
-
showSchemeSelector = input(true);
|
|
342
|
+
showSchemeSelector = input(true, { transform: booleanAttribute });
|
|
343
343
|
/** `st-user-menu` `showThemeSelector`. */
|
|
344
|
-
showThemeSelector = input(true);
|
|
344
|
+
showThemeSelector = input(true, { transform: booleanAttribute });
|
|
345
345
|
/** `st-user-menu` `showLayoutSelector`. */
|
|
346
|
-
showLayoutSelector = input(true);
|
|
346
|
+
showLayoutSelector = input(true, { transform: booleanAttribute });
|
|
347
347
|
class = input('');
|
|
348
348
|
/** The account menu's layout option was picked; open `st-layout-switcher`. */
|
|
349
349
|
openLayoutSwitcher = output();
|
|
@@ -607,13 +607,13 @@ class SideMenuComponent {
|
|
|
607
607
|
* for a rail that expands while hovered. The pinned state itself is unchanged and still drives the collapse toggle.
|
|
608
608
|
*/
|
|
609
609
|
collapsed = input(undefined);
|
|
610
|
-
searchable = input(true);
|
|
610
|
+
searchable = input(true, { transform: booleanAttribute });
|
|
611
611
|
/**
|
|
612
612
|
* Renders the footer button that pins the sidebar collapsed or open through `LayoutService.setSidebarCollapsed`.
|
|
613
613
|
* Its label, icon and action follow the pinned state, not the `collapsed` override, so a hover-expanded rail
|
|
614
614
|
* offers "expand" and pins the sidebar open; its placement follows the visible state.
|
|
615
615
|
*/
|
|
616
|
-
showCollapseToggle = input(true);
|
|
616
|
+
showCollapseToggle = input(true, { transform: booleanAttribute });
|
|
617
617
|
class = input('');
|
|
618
618
|
/**
|
|
619
619
|
* Text of the search box; `searchChange` emits each edit, so `[(search)]` binds it two-way. It clears on
|
|
@@ -732,7 +732,7 @@ class SideMenuComponent {
|
|
|
732
732
|
return globalThis.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false;
|
|
733
733
|
}
|
|
734
734
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SideMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
735
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: SideMenuComponent, isStandalone: true, selector: "st-side-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, topLevelGroups: { classPropertyName: "topLevelGroups", publicName: "topLevelGroups", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, showCollapseToggle: { classPropertyName: "showCollapseToggle", publicName: "showCollapseToggle", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "searchChange" }, host: { properties: { "class": "hostClass()", "attr.data-collapsed": "isCollapsed()" } }, ngImport: i0, template: "@let collapsedVar = isCollapsed();\n@let searchLabel = 'sdk.layout.search' | translate;\n\n<div class=\"flex min-h-0 flex-1 flex-col gap-4\">\n\t@if (searchable()) {\n\t\t<div\n\t\t\tclass=\"flex shrink-0 items-center\"\n\t\t\t[class.justify-center]=\"collapsedVar\"\n\t\t\t[attr.role]=\"collapsedVar ? null : 'search'\"\n\t\t\t[attr.aria-label]=\"collapsedVar ? null : searchLabel\"\n\t\t>\n\t\t\t@if (collapsedVar) {\n\t\t\t\t<st-tooltip [label]=\"searchLabel\" position=\"right\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tdata-st-side-menu-search-trigger\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"searchIcon\"\n\t\t\t\t\t\t(triggered)=\"openSearch()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ searchLabel }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t</st-tooltip>\n\t\t\t} @else {\n\t\t\t\t<st-input class=\"w-full\" data-st-side-menu-search [placeholder]=\"searchLabel\" [(value)]=\"search\">\n\t\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"searchIcon\" />\n\t\t\t\t\t</st-input-content>\n\t\t\t\t</st-input>\n\t\t\t}\n\t\t</div>\n\t\t<div class=\"bg-base-300 h-px shrink-0\" aria-hidden=\"true\"></div>\n\t}\n\n\t<nav class=\"min-h-0 flex-1 scrollbar-gutter-stable overflow-x-hidden overflow-y-auto\" [attr.aria-label]=\"'sdk.layout.navigation' | translate\">\n\t\t@if (collapsedVar) {\n\t\t\t<ul class=\"flex flex-col items-center gap-2 py-1\" data-st-side-menu-rail>\n\t\t\t\t@for (entry of railEntries(); track entry.item.id) {\n\t\t\t\t\t@let onTrail = isOnTrail(entry.item);\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<st-tooltip [label]=\"entry.item.label\" position=\"right\">\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\tclass=\"rounded-field grid size-10 place-items-center transition-[color,background-color,box-shadow] focus-visible:outline-2 motion-reduce:transition-none\"\n\t\t\t\t\t\t\t\t[class]=\"onTrail ? activeLinkClass : inactiveLinkClass\"\n\t\t\t\t\t\t\t\t[routerLink]=\"entry.target.route\"\n\t\t\t\t\t\t\t\t[queryParams]=\"linkQueryParams(entry.target)\"\n\t\t\t\t\t\t\t\t[attr.aria-current]=\"railCurrent(entry)\"\n\t\t\t\t\t\t\t\t[attr.aria-label]=\"entry.item.label\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"entry.item.icon || fallbackIcon\" size=\"md\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t} @else {\n\t\t\t<ul class=\"flex min-w-0 flex-col gap-1 pe-1\" data-st-side-menu-tree>\n\t\t\t\t@for (section of sections(); track section.item.id) {\n\t\t\t\t\t<li class=\"min-w-0\">\n\t\t\t\t\t\t@if (section.kind === 'label') {\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclass=\"text-base-content/60 block px-3 pt-4 pb-1 text-xs font-semibold tracking-wide uppercase select-none\"\n\t\t\t\t\t\t\t\tdata-st-side-menu-label\n\t\t\t\t\t\t\t\t[id]=\"labelId(section.item)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{{ section.item.label }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<ul class=\"flex min-w-0 flex-col gap-1\" [attr.aria-labelledby]=\"labelId(section.item)\">\n\t\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: section.children }\" />\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: section.item }\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t</li>\n\t\t\t\t} @empty {\n\t\t\t\t\t<li class=\"text-base-content/60 px-3 py-2 text-sm\" role=\"status\">{{ 'sdk.layout.no_results' | translate }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t}\n\t</nav>\n\n\t@if (showCollapseToggle()) {\n\t\t<div class=\"flex shrink-0 flex-col\">\n\t\t\t<div class=\"bg-base-300 h-px\" aria-hidden=\"true\"></div>\n\t\t\t@let pinnedCollapsedVar = isPinnedCollapsed();\n\t\t\t@let toggleLabel = (pinnedCollapsedVar ? 'sdk.layout.expand' : 'sdk.layout.collapse') | translate;\n\t\t\t<div class=\"flex items-center pt-4\" [class.justify-center]=\"collapsedVar\" [class.justify-end]=\"!collapsedVar\">\n\t\t\t\t<st-tooltip [label]=\"toggleLabel\" [position]=\"collapsedVar ? 'right' : 'top'\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\tdata-st-side-menu-toggle\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"pinnedCollapsedVar ? expandIcon : collapseIcon\"\n\t\t\t\t\t\t(triggered)=\"toggleCollapsed()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ toggleLabel }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t</st-tooltip>\n\t\t\t</div>\n\t\t</div>\n\t}\n</div>\n\n<ng-template #entries let-items>\n\t@for (item of items; track item.id) {\n\t\t<li class=\"min-w-0\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n\t\t</li>\n\t}\n</ng-template>\n\n<ng-template #entry let-item>\n\t@if (hasChildren(item)) {\n\t\t@let state = groupState(item);\n\t\t@let onTrail = isOnTrail(item);\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclass=\"rounded-field focus-visible:outline-primary flex min-h-10 w-full min-w-0 cursor-pointer items-center gap-2 px-3 py-2 text-start transition-[color,background-color,box-shadow] focus-visible:outline-2 focus-visible:-outline-offset-2 motion-reduce:transition-none\"\n\t\t\t[class]=\"groupStateClass\"\n\t\t\t[class.font-semibold]=\"onTrail\"\n\t\t\t[attr.aria-expanded]=\"isGroupExpanded(item)\"\n\t\t\t[attr.aria-controls]=\"groupId(item)\"\n\t\t\t(click)=\"toggleGroup(item)\"\n\t\t>\n\t\t\t@if (item.icon) {\n\t\t\t\t<st-icon aria-hidden=\"true\" class=\"shrink-0\" [icon]=\"item.icon\" size=\"md\" />\n\t\t\t}\n\t\t\t<span class=\"block min-w-0 flex-1 wrap-anywhere\">{{ item.label }}</span>\n\t\t\t<span data-st-chevron class=\"inline-flex size-[1.2em] shrink-0 items-center justify-center\">\n\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"chevronIcon\" size=\"sm\" />\n\t\t\t</span>\n\t\t</button>\n\t\t<ul\n\t\t\tclass=\"data-[state=closing]:animate-morph-out data-[state=opening]:animate-morph-in border-base-300 ms-5 mt-1 flex min-w-0 flex-col gap-1 border-s ps-2\"\n\t\t\tdata-st-menu-group\n\t\t\t[id]=\"groupId(item)\"\n\t\t\t[attr.data-state]=\"state\"\n\t\t\t[hidden]=\"state === 'closed'\"\n\t\t\t(animationend)=\"onGroupAnimationEnd($event, item)\"\n\t\t>\n\t\t\t<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: item.children }\" />\n\t\t</ul>\n\t} @else {\n\t\t@let activeVar = isActive(item);\n\t\t<a\n\t\t\tclass=\"rounded-field flex min-h-10 w-full min-w-0 items-center gap-2 px-3 py-2 transition-[color,background-color,box-shadow] focus-visible:outline-2 motion-reduce:transition-none\"\n\t\t\t[class]=\"activeVar ? activeLinkClass : inactiveLinkClass\"\n\t\t\t[routerLink]=\"item.route\"\n\t\t\t[queryParams]=\"linkQueryParams(item)\"\n\t\t\t[attr.aria-current]=\"activeVar ? 'page' : null\"\n\t\t>\n\t\t\t@if (item.icon) {\n\t\t\t\t<st-icon aria-hidden=\"true\" class=\"shrink-0\" [icon]=\"item.icon\" size=\"md\" />\n\t\t\t}\n\t\t\t<span class=\"block min-w-0 flex-1 wrap-anywhere\">{{ item.label }}</span>\n\t\t</a>\n\t}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "showOptional", "optionalText", "type", "name", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "stopPropagation", "debounceTime"], outputs: ["valueChange", "disabledChange", "keyDownEnter", "triggered", "clicked", "blurred", "valueDebounced"] }, { kind: "component", type: InputContentComponent, selector: "st-input-content", inputs: ["alignment"] }, { kind: "component", type: TooltipComponent, selector: "st-tooltip", inputs: ["variant", "position", "label", "icon", "iconPosition"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
735
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: SideMenuComponent, isStandalone: true, selector: "st-side-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, topLevelGroups: { classPropertyName: "topLevelGroups", publicName: "topLevelGroups", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, showCollapseToggle: { classPropertyName: "showCollapseToggle", publicName: "showCollapseToggle", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { search: "searchChange" }, host: { properties: { "class": "hostClass()", "attr.data-collapsed": "isCollapsed()" } }, ngImport: i0, template: "@let collapsedVar = isCollapsed();\n@let searchLabel = 'sdk.layout.search' | translate;\n\n<div class=\"flex min-h-0 flex-1 flex-col gap-4\">\n\t@if (searchable()) {\n\t\t<div\n\t\t\tclass=\"flex shrink-0 items-center\"\n\t\t\t[class.justify-center]=\"collapsedVar\"\n\t\t\t[attr.role]=\"collapsedVar ? null : 'search'\"\n\t\t\t[attr.aria-label]=\"collapsedVar ? null : searchLabel\"\n\t\t>\n\t\t\t@if (collapsedVar) {\n\t\t\t\t<st-tooltip [label]=\"searchLabel\" position=\"right\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tdata-st-side-menu-search-trigger\n\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"searchIcon\"\n\t\t\t\t\t\t(triggered)=\"openSearch()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ searchLabel }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t</st-tooltip>\n\t\t\t} @else {\n\t\t\t\t<st-input class=\"w-full\" data-st-side-menu-search [placeholder]=\"searchLabel\" [(value)]=\"search\">\n\t\t\t\t\t<st-input-content alignment=\"start\">\n\t\t\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"searchIcon\" />\n\t\t\t\t\t</st-input-content>\n\t\t\t\t</st-input>\n\t\t\t}\n\t\t</div>\n\t\t<div class=\"bg-base-300 h-px shrink-0\" aria-hidden=\"true\"></div>\n\t}\n\n\t<nav class=\"min-h-0 flex-1 scrollbar-gutter-stable overflow-x-hidden overflow-y-auto\" [attr.aria-label]=\"'sdk.layout.navigation' | translate\">\n\t\t@if (collapsedVar) {\n\t\t\t<ul class=\"flex flex-col items-center gap-2 py-1\" data-st-side-menu-rail>\n\t\t\t\t@for (entry of railEntries(); track entry.item.id) {\n\t\t\t\t\t@let onTrail = isOnTrail(entry.item);\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<st-tooltip [label]=\"entry.item.label\" position=\"right\">\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\tclass=\"rounded-field grid size-10 place-items-center transition-[color,background-color,box-shadow] focus-visible:outline-2 motion-reduce:transition-none\"\n\t\t\t\t\t\t\t\t[class]=\"onTrail ? activeLinkClass : inactiveLinkClass\"\n\t\t\t\t\t\t\t\t[routerLink]=\"entry.target.route\"\n\t\t\t\t\t\t\t\t[queryParams]=\"linkQueryParams(entry.target)\"\n\t\t\t\t\t\t\t\t[attr.aria-current]=\"railCurrent(entry)\"\n\t\t\t\t\t\t\t\t[attr.aria-label]=\"entry.item.label\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"entry.item.icon || fallbackIcon\" size=\"md\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t} @else {\n\t\t\t<ul class=\"flex min-w-0 flex-col gap-1 pe-1\" data-st-side-menu-tree>\n\t\t\t\t@for (section of sections(); track section.item.id) {\n\t\t\t\t\t<li class=\"min-w-0\">\n\t\t\t\t\t\t@if (section.kind === 'label') {\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclass=\"text-base-content/60 block px-3 pt-4 pb-1 text-xs font-semibold tracking-wide uppercase select-none\"\n\t\t\t\t\t\t\t\tdata-st-side-menu-label\n\t\t\t\t\t\t\t\t[id]=\"labelId(section.item)\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{{ section.item.label }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<ul class=\"flex min-w-0 flex-col gap-1\" [attr.aria-labelledby]=\"labelId(section.item)\">\n\t\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: section.children }\" />\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: section.item }\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t</li>\n\t\t\t\t} @empty {\n\t\t\t\t\t<li class=\"text-base-content/60 px-3 py-2 text-sm\" role=\"status\">{{ 'sdk.layout.no_results' | translate }}</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t}\n\t</nav>\n\n\t@if (showCollapseToggle()) {\n\t\t<div class=\"flex shrink-0 flex-col\">\n\t\t\t<div class=\"bg-base-300 h-px\" aria-hidden=\"true\"></div>\n\t\t\t@let pinnedCollapsedVar = isPinnedCollapsed();\n\t\t\t@let toggleLabel = (pinnedCollapsedVar ? 'sdk.layout.expand' : 'sdk.layout.collapse') | translate;\n\t\t\t<div class=\"flex items-center pt-4\" [class.justify-center]=\"collapsedVar\" [class.justify-end]=\"!collapsedVar\">\n\t\t\t\t<st-tooltip [label]=\"toggleLabel\" [position]=\"collapsedVar ? 'right' : 'top'\">\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\tdata-st-side-menu-toggle\n\t\t\t\t\t\t[circle]=\"true\"\n\t\t\t\t\t\t[icon]=\"pinnedCollapsedVar ? expandIcon : collapseIcon\"\n\t\t\t\t\t\t(triggered)=\"toggleCollapsed()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"sr-only\">{{ toggleLabel }}</span>\n\t\t\t\t\t</st-button>\n\t\t\t\t</st-tooltip>\n\t\t\t</div>\n\t\t</div>\n\t}\n</div>\n\n<ng-template #entries let-items>\n\t@for (item of items; track item.id) {\n\t\t<li class=\"min-w-0\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n\t\t</li>\n\t}\n</ng-template>\n\n<ng-template #entry let-item>\n\t@if (hasChildren(item)) {\n\t\t@let state = groupState(item);\n\t\t@let onTrail = isOnTrail(item);\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclass=\"rounded-field focus-visible:outline-primary flex min-h-10 w-full min-w-0 cursor-pointer items-center gap-2 px-3 py-2 text-start transition-[color,background-color,box-shadow] focus-visible:outline-2 focus-visible:-outline-offset-2 motion-reduce:transition-none\"\n\t\t\t[class]=\"groupStateClass\"\n\t\t\t[class.font-semibold]=\"onTrail\"\n\t\t\t[attr.aria-expanded]=\"isGroupExpanded(item)\"\n\t\t\t[attr.aria-controls]=\"groupId(item)\"\n\t\t\t(click)=\"toggleGroup(item)\"\n\t\t>\n\t\t\t@if (item.icon) {\n\t\t\t\t<st-icon aria-hidden=\"true\" class=\"shrink-0\" [icon]=\"item.icon\" size=\"md\" />\n\t\t\t}\n\t\t\t<span class=\"block min-w-0 flex-1 wrap-anywhere\">{{ item.label }}</span>\n\t\t\t<span data-st-chevron class=\"inline-flex size-[1.2em] shrink-0 items-center justify-center\">\n\t\t\t\t<st-icon aria-hidden=\"true\" [icon]=\"chevronIcon\" size=\"sm\" />\n\t\t\t</span>\n\t\t</button>\n\t\t<ul\n\t\t\tclass=\"data-[state=closing]:animate-morph-out data-[state=opening]:animate-morph-in border-base-300 ms-5 mt-1 flex min-w-0 flex-col gap-1 border-s ps-2\"\n\t\t\tdata-st-menu-group\n\t\t\t[id]=\"groupId(item)\"\n\t\t\t[attr.data-state]=\"state\"\n\t\t\t[hidden]=\"state === 'closed'\"\n\t\t\t(animationend)=\"onGroupAnimationEnd($event, item)\"\n\t\t>\n\t\t\t<ng-container [ngTemplateOutlet]=\"entries\" [ngTemplateOutletContext]=\"{ $implicit: item.children }\" />\n\t\t</ul>\n\t} @else {\n\t\t@let activeVar = isActive(item);\n\t\t<a\n\t\t\tclass=\"rounded-field flex min-h-10 w-full min-w-0 items-center gap-2 px-3 py-2 transition-[color,background-color,box-shadow] focus-visible:outline-2 motion-reduce:transition-none\"\n\t\t\t[class]=\"activeVar ? activeLinkClass : inactiveLinkClass\"\n\t\t\t[routerLink]=\"item.route\"\n\t\t\t[queryParams]=\"linkQueryParams(item)\"\n\t\t\t[attr.aria-current]=\"activeVar ? 'page' : null\"\n\t\t>\n\t\t\t@if (item.icon) {\n\t\t\t\t<st-icon aria-hidden=\"true\" class=\"shrink-0\" [icon]=\"item.icon\" size=\"md\" />\n\t\t\t}\n\t\t\t<span class=\"block min-w-0 flex-1 wrap-anywhere\">{{ item.label }}</span>\n\t\t</a>\n\t}\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "size", "label", "showOptional", "optionalText", "required", "type", "name", "inputId", "passwordToggle", "placeholder", "readonly", "focus", "onlyNumbers", "ghost", "value", "parentForm", "formControlName", "disabled", "stopPropagation", "debounceTime"], outputs: ["valueChange", "disabledChange", "keyDownEnter", "triggered", "clicked", "blurred", "valueDebounced"] }, { kind: "component", type: InputContentComponent, selector: "st-input-content", inputs: ["alignment"] }, { kind: "component", type: TooltipComponent, selector: "st-tooltip", inputs: ["variant", "position", "label", "icon", "iconPosition", "closeDelay"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
736
736
|
}
|
|
737
737
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SideMenuComponent, decorators: [{
|
|
738
738
|
type: Component,
|
|
@@ -805,23 +805,24 @@ class AppLayoutComponent {
|
|
|
805
805
|
/** `st-side-menu` `activeMatch`. */
|
|
806
806
|
activeMatch = input(DEFAULT_MENU_ACTIVE_MATCH);
|
|
807
807
|
/** `st-side-menu` `searchable`. */
|
|
808
|
-
searchable = input(true);
|
|
808
|
+
searchable = input(true, { transform: booleanAttribute });
|
|
809
809
|
/** Route the logo links to. */
|
|
810
810
|
homeLink = input('/');
|
|
811
811
|
/** Alt text of the logo; defaults to the localized theme name. */
|
|
812
812
|
logoAlt = input(null);
|
|
813
813
|
/** `st-user-menu` `showLanguageSelector`, in both layouts. */
|
|
814
|
-
showLanguageSelector = input(true);
|
|
814
|
+
showLanguageSelector = input(true, { transform: booleanAttribute });
|
|
815
815
|
/** `st-user-menu` `showSchemeSelector`, in both layouts. */
|
|
816
|
-
showSchemeSelector = input(true);
|
|
816
|
+
showSchemeSelector = input(true, { transform: booleanAttribute });
|
|
817
817
|
/** `st-user-menu` `showThemeSelector`, in both layouts. */
|
|
818
|
-
showThemeSelector = input(true);
|
|
818
|
+
showThemeSelector = input(true, { transform: booleanAttribute });
|
|
819
819
|
/** `st-user-menu` `showLayoutSelector`, in both layouts. */
|
|
820
|
-
showLayoutSelector = input(true);
|
|
820
|
+
showLayoutSelector = input(true, { transform: booleanAttribute });
|
|
821
821
|
/**
|
|
822
|
-
* Classic layout only: `
|
|
823
|
-
*
|
|
824
|
-
* the footer.
|
|
822
|
+
* Classic layout only: `header` (default) renders the collapse toggle at the right of the logo,
|
|
823
|
+
* and under the logo mark while the rail is collapsed; `footer` keeps the `st-side-menu` footer
|
|
824
|
+
* button instead. Modern always keeps the footer. The toggle's `aria-expanded` reports the pinned
|
|
825
|
+
* state, so it stays `false` while a pinned-collapsed rail is only hover-expanded.
|
|
825
826
|
*/
|
|
826
827
|
collapseToggle = input(DEFAULT_COLLAPSE_TOGGLE);
|
|
827
828
|
/** Content for the end of the modern navbar; a template, so it can render inside the layout's `@switch`. */
|
|
@@ -829,6 +830,8 @@ class AppLayoutComponent {
|
|
|
829
830
|
navbarEndTemplate = computed(() => this.navbarEnd()?.template ?? null);
|
|
830
831
|
layout = this.layoutService.selectedLayout;
|
|
831
832
|
switcherOpen = signal(false);
|
|
833
|
+
/** Id of the classic `aside`, which the collapse toggle names in `aria-controls`. */
|
|
834
|
+
sidebarId = `st-app-layout-sidebar-${generateUniqueId()}`;
|
|
832
835
|
hovering = signal(false);
|
|
833
836
|
userMenuOpen = signal(false);
|
|
834
837
|
/** The pinned-collapsed rail expands while hovered, and stays expanded while the classic account menu is open. */
|
|
@@ -858,7 +861,7 @@ class AppLayoutComponent {
|
|
|
858
861
|
this.layoutService.setSidebarCollapsed(!this.pinnedCollapsed());
|
|
859
862
|
}
|
|
860
863
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
861
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AppLayoutComponent, isStandalone: true, selector: "st-app-layout", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, topLevelGroups: { classPropertyName: "topLevelGroups", publicName: "topLevelGroups", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, homeLink: { classPropertyName: "homeLink", publicName: "homeLink", isSignal: true, isRequired: false, transformFunction: null }, logoAlt: { classPropertyName: "logoAlt", publicName: "logoAlt", isSignal: true, isRequired: false, transformFunction: null }, showLanguageSelector: { classPropertyName: "showLanguageSelector", publicName: "showLanguageSelector", isSignal: true, isRequired: false, transformFunction: null }, showSchemeSelector: { classPropertyName: "showSchemeSelector", publicName: "showSchemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showThemeSelector: { classPropertyName: "showThemeSelector", publicName: "showThemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showLayoutSelector: { classPropertyName: "showLayoutSelector", publicName: "showLayoutSelector", isSignal: true, isRequired: false, transformFunction: null }, collapseToggle: { classPropertyName: "collapseToggle", publicName: "collapseToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, queries: [{ propertyName: "navbarEnd", first: true, predicate: AppLayoutNavbarEndDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@let collapsed = railCollapsed();\n\n<div [class]=\"frameClass()\" [attr.data-st-app-layout]=\"layout()\">\n\t@switch (layout()) {\n\t\t@case ('modern') {\n\t\t\t<header class=\"[grid-area:header]\">\n\t\t\t\t<st-navbar\n\t\t\t\t\t[homeLink]=\"homeLink()\"\n\t\t\t\t\t[logoAlt]=\"logoAlt()\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ng-content cannot be re-projected from inside @switch, so the end slot is a template rendered here -->\n\t\t\t\t\t<ng-container ngProjectAs=\"[stNavbarEnd]\" [ngTemplateOutlet]=\"navbarEndTemplate()\" />\n\t\t\t\t</st-navbar>\n\t\t\t</header>\n\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t\t@default {\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<div class=\"flex items-center justify-between
|
|
864
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: AppLayoutComponent, isStandalone: true, selector: "st-app-layout", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, topLevelGroups: { classPropertyName: "topLevelGroups", publicName: "topLevelGroups", isSignal: true, isRequired: false, transformFunction: null }, activeMatch: { classPropertyName: "activeMatch", publicName: "activeMatch", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, homeLink: { classPropertyName: "homeLink", publicName: "homeLink", isSignal: true, isRequired: false, transformFunction: null }, logoAlt: { classPropertyName: "logoAlt", publicName: "logoAlt", isSignal: true, isRequired: false, transformFunction: null }, showLanguageSelector: { classPropertyName: "showLanguageSelector", publicName: "showLanguageSelector", isSignal: true, isRequired: false, transformFunction: null }, showSchemeSelector: { classPropertyName: "showSchemeSelector", publicName: "showSchemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showThemeSelector: { classPropertyName: "showThemeSelector", publicName: "showThemeSelector", isSignal: true, isRequired: false, transformFunction: null }, showLayoutSelector: { classPropertyName: "showLayoutSelector", publicName: "showLayoutSelector", isSignal: true, isRequired: false, transformFunction: null }, collapseToggle: { classPropertyName: "collapseToggle", publicName: "collapseToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, queries: [{ propertyName: "navbarEnd", first: true, predicate: AppLayoutNavbarEndDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@let collapsed = railCollapsed();\n\n<div [class]=\"frameClass()\" [attr.data-st-app-layout]=\"layout()\">\n\t@switch (layout()) {\n\t\t@case ('modern') {\n\t\t\t<header class=\"[grid-area:header]\">\n\t\t\t\t<st-navbar\n\t\t\t\t\t[homeLink]=\"homeLink()\"\n\t\t\t\t\t[logoAlt]=\"logoAlt()\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ng-content cannot be re-projected from inside @switch, so the end slot is a template rendered here -->\n\t\t\t\t\t<ng-container ngProjectAs=\"[stNavbarEnd]\" [ngTemplateOutlet]=\"navbarEndTemplate()\" />\n\t\t\t\t</st-navbar>\n\t\t\t</header>\n\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t\t@default {\n\t\t\t@let headerToggle = collapseToggle() === 'header';\n\t\t\t<aside [id]=\"sidebarId\" [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<div class=\"flex gap-2\" [class]=\"collapsed ? 'flex-col items-center' : 'items-center justify-between'\" data-st-app-layout-brand>\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass=\"btn btn-ghost h-10 min-h-10 min-w-0 justify-start overflow-hidden\"\n\t\t\t\t\t\t[class.p-0]=\"collapsed\"\n\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t[class.flex-1]=\"!collapsed\"\n\t\t\t\t\t\t[class.px-3]=\"!collapsed\"\n\t\t\t\t\t\t[routerLink]=\"homeLink()\"\n\t\t\t\t\t\tdata-st-app-layout-home\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (classicLogoUrl(); as logo) {\n\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t[src]=\"logo\"\n\t\t\t\t\t\t\t\t[alt]=\"logoLabel()\"\n\t\t\t\t\t\t\t\tclass=\"h-10 object-contain object-left\"\n\t\t\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t\t\t[class.w-auto]=\"!collapsed\"\n\t\t\t\t\t\t\t\t[class.max-w-full]=\"!collapsed\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span class=\"truncate font-semibold\" [class.sr-only]=\"collapsed\">{{ logoLabel() }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</a>\n\n\t\t\t\t\t@if (headerToggle) {\n\t\t\t\t\t\t@let classicToggleLabel = (pinnedCollapsed() ? 'sdk.layout.expand' : 'sdk.layout.collapse') | translate;\n\t\t\t\t\t\t<st-tooltip variant=\"secondary\" [label]=\"classicToggleLabel\" [position]=\"collapsed ? 'right' : 'bottom'\">\n\t\t\t\t\t\t\t<st-button\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t\t\tdata-st-app-layout-collapse\n\t\t\t\t\t\t\t\t[icon]=\"pinnedCollapsed() ? collapseClosedIcon : collapseOpenIcon\"\n\t\t\t\t\t\t\t\t[ariaExpanded]=\"!pinnedCollapsed()\"\n\t\t\t\t\t\t\t\t[ariaControls]=\"sidebarId\"\n\t\t\t\t\t\t\t\t(triggered)=\"toggleClassicCollapsed()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"sr-only\">{{ classicToggleLabel }}</span>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showCollapseToggle]=\"!headerToggle\"\n\t\t\t\t/>\n\n\t\t\t\t<div class=\"bg-base-300 h-px shrink-0\" aria-hidden=\"true\"></div>\n\n\t\t\t\t<st-user-menu\n\t\t\t\t\tvariant=\"sidebar\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openChange)=\"setUserMenuOpen($event)\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t}\n\n\t<main [class]=\"mainClass()\">\n\t\t<ng-content />\n\t</main>\n</div>\n\n<st-layout-switcher [(opened)]=\"switcherOpen\" />\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "component", type: TooltipComponent, selector: "st-tooltip", inputs: ["variant", "position", "label", "icon", "iconPosition", "closeDelay"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: LayoutSwitcherComponent, selector: "st-layout-switcher", inputs: ["opened"], outputs: ["openedChange"] }, { kind: "component", type: NavbarComponent, selector: "st-navbar", inputs: ["homeLink", "showUserMenu", "logoAlt", "showLanguageSelector", "showSchemeSelector", "showThemeSelector", "showLayoutSelector", "class"], outputs: ["openLayoutSwitcher"] }, { kind: "component", type: SideMenuComponent, selector: "st-side-menu", inputs: ["items", "topLevelGroups", "activeMatch", "collapsed", "searchable", "showCollapseToggle", "class", "search"], outputs: ["searchChange"] }, { kind: "component", type: UserMenuComponent, selector: "st-user-menu", inputs: ["variant", "collapsed", "showLanguageSelector", "showSchemeSelector", "showThemeSelector", "showLayoutSelector", "class"], outputs: ["openLayoutSwitcher", "openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
862
865
|
}
|
|
863
866
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AppLayoutComponent, decorators: [{
|
|
864
867
|
type: Component,
|
|
@@ -874,7 +877,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
874
877
|
UserMenuComponent,
|
|
875
878
|
], host: {
|
|
876
879
|
class: 'block',
|
|
877
|
-
}, template: "@let collapsed = railCollapsed();\n\n<div [class]=\"frameClass()\" [attr.data-st-app-layout]=\"layout()\">\n\t@switch (layout()) {\n\t\t@case ('modern') {\n\t\t\t<header class=\"[grid-area:header]\">\n\t\t\t\t<st-navbar\n\t\t\t\t\t[homeLink]=\"homeLink()\"\n\t\t\t\t\t[logoAlt]=\"logoAlt()\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ng-content cannot be re-projected from inside @switch, so the end slot is a template rendered here -->\n\t\t\t\t\t<ng-container ngProjectAs=\"[stNavbarEnd]\" [ngTemplateOutlet]=\"navbarEndTemplate()\" />\n\t\t\t\t</st-navbar>\n\t\t\t</header>\n\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t\t@default {\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<div class=\"flex items-center justify-between
|
|
880
|
+
}, template: "@let collapsed = railCollapsed();\n\n<div [class]=\"frameClass()\" [attr.data-st-app-layout]=\"layout()\">\n\t@switch (layout()) {\n\t\t@case ('modern') {\n\t\t\t<header class=\"[grid-area:header]\">\n\t\t\t\t<st-navbar\n\t\t\t\t\t[homeLink]=\"homeLink()\"\n\t\t\t\t\t[logoAlt]=\"logoAlt()\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ng-content cannot be re-projected from inside @switch, so the end slot is a template rendered here -->\n\t\t\t\t\t<ng-container ngProjectAs=\"[stNavbarEnd]\" [ngTemplateOutlet]=\"navbarEndTemplate()\" />\n\t\t\t\t</st-navbar>\n\t\t\t</header>\n\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t\t@default {\n\t\t\t@let headerToggle = collapseToggle() === 'header';\n\t\t\t<aside [id]=\"sidebarId\" [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<div class=\"flex gap-2\" [class]=\"collapsed ? 'flex-col items-center' : 'items-center justify-between'\" data-st-app-layout-brand>\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass=\"btn btn-ghost h-10 min-h-10 min-w-0 justify-start overflow-hidden\"\n\t\t\t\t\t\t[class.p-0]=\"collapsed\"\n\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t[class.flex-1]=\"!collapsed\"\n\t\t\t\t\t\t[class.px-3]=\"!collapsed\"\n\t\t\t\t\t\t[routerLink]=\"homeLink()\"\n\t\t\t\t\t\tdata-st-app-layout-home\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (classicLogoUrl(); as logo) {\n\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t[src]=\"logo\"\n\t\t\t\t\t\t\t\t[alt]=\"logoLabel()\"\n\t\t\t\t\t\t\t\tclass=\"h-10 object-contain object-left\"\n\t\t\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t\t\t[class.w-auto]=\"!collapsed\"\n\t\t\t\t\t\t\t\t[class.max-w-full]=\"!collapsed\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span class=\"truncate font-semibold\" [class.sr-only]=\"collapsed\">{{ logoLabel() }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</a>\n\n\t\t\t\t\t@if (headerToggle) {\n\t\t\t\t\t\t@let classicToggleLabel = (pinnedCollapsed() ? 'sdk.layout.expand' : 'sdk.layout.collapse') | translate;\n\t\t\t\t\t\t<st-tooltip variant=\"secondary\" [label]=\"classicToggleLabel\" [position]=\"collapsed ? 'right' : 'bottom'\">\n\t\t\t\t\t\t\t<st-button\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t\t\tdata-st-app-layout-collapse\n\t\t\t\t\t\t\t\t[icon]=\"pinnedCollapsed() ? collapseClosedIcon : collapseOpenIcon\"\n\t\t\t\t\t\t\t\t[ariaExpanded]=\"!pinnedCollapsed()\"\n\t\t\t\t\t\t\t\t[ariaControls]=\"sidebarId\"\n\t\t\t\t\t\t\t\t(triggered)=\"toggleClassicCollapsed()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"sr-only\">{{ classicToggleLabel }}</span>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showCollapseToggle]=\"!headerToggle\"\n\t\t\t\t/>\n\n\t\t\t\t<div class=\"bg-base-300 h-px shrink-0\" aria-hidden=\"true\"></div>\n\n\t\t\t\t<st-user-menu\n\t\t\t\t\tvariant=\"sidebar\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openChange)=\"setUserMenuOpen($event)\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t}\n\n\t<main [class]=\"mainClass()\">\n\t\t<ng-content />\n\t</main>\n</div>\n\n<st-layout-switcher [(opened)]=\"switcherOpen\" />\n" }]
|
|
878
881
|
}] });
|
|
879
882
|
|
|
880
883
|
/**
|
|
@@ -904,8 +907,13 @@ class PageBannerComponent {
|
|
|
904
907
|
* contrasts with whatever is behind it (art, scrim, surface or the modern gradient), in both schemes.
|
|
905
908
|
*/
|
|
906
909
|
backFocusClass = '[&_.btn:focus-visible]:outline-base-content [&_.btn:focus-visible]:ring-4 [&_.btn:focus-visible]:ring-base-100';
|
|
907
|
-
/**
|
|
908
|
-
|
|
910
|
+
/**
|
|
911
|
+
* Frosted surface for the ghost back button over art or the modern gradient: base-content text on base-100
|
|
912
|
+
* keeps 4.5:1 whatever is behind it.
|
|
913
|
+
*/
|
|
914
|
+
frostedBackClass = cn(this.backFocusClass, '[&_.btn]:bg-base-100/80 [&_.btn]:border-base-content/10 [&_.btn:hover]:bg-base-100 [&_.btn]:backdrop-blur-sm');
|
|
915
|
+
/** Frosted back button pinned to the top-right corner of the art. */
|
|
916
|
+
backClass = computed(() => cn('absolute top-5 right-6 z-1 flex gap-3', this.frostedBackClass));
|
|
909
917
|
/** Title color over the art: dark art and unknown tone (over the caption gradient) get white, light art gets black. */
|
|
910
918
|
textClass = computed(() => cn('relative z-1 flex min-w-0 flex-col wrap-break-word text-shadow-sm', this.imageTone() === 'light' ? 'text-black text-shadow-white/30' : 'text-white text-shadow-black/40'));
|
|
911
919
|
hostClass = computed(() => cn('flex min-h-full flex-1 flex-col', this.class()));
|
|
@@ -929,13 +937,13 @@ class PageBannerComponent {
|
|
|
929
937
|
}
|
|
930
938
|
}
|
|
931
939
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
932
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PageBannerComponent, isStandalone: true, selector: "st-page-banner", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, backLink: { classPropertyName: "backLink", publicName: "backLink", isSignal: true, isRequired: false, transformFunction: null }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"opacity-80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content/80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-primary-gradient-content/70\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"
|
|
940
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PageBannerComponent, isStandalone: true, selector: "st-page-banner", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, backLink: { classPropertyName: "backLink", publicName: "backLink", isSignal: true, isRequired: false, transformFunction: null }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"opacity-80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content/80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-primary-gradient-content/70\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
933
941
|
}
|
|
934
942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, decorators: [{
|
|
935
943
|
type: Component,
|
|
936
944
|
args: [{ selector: 'st-page-banner', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonComponent, TextDirective, TranslatePipe], host: {
|
|
937
945
|
'[class]': 'hostClass()',
|
|
938
|
-
}, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"opacity-80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content/80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-primary-gradient-content/70\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"
|
|
946
|
+
}, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"opacity-80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content/80\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-primary-gradient-content/70\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n" }]
|
|
939
947
|
}] });
|
|
940
948
|
|
|
941
949
|
/**
|