@ojiepermana/angular 21.3.3 → 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/component/accordion/README.md +195 -0
- package/component/alert/README.md +182 -0
- package/component/alert-dialog/README.md +239 -0
- package/component/aspect-ratio/README.md +112 -0
- package/component/avatar/README.md +176 -0
- package/component/badge/README.md +133 -0
- package/component/breadcrumb/README.md +216 -0
- package/component/button/README.md +139 -0
- package/component/button-group/README.md +208 -0
- package/component/calendar/README.md +132 -0
- package/component/card/README.md +220 -0
- package/component/carousel/README.md +276 -0
- package/component/checkbox/README.md +149 -0
- package/component/collapsible/README.md +195 -0
- package/component/combobox/README.md +198 -0
- package/component/command/README.md +275 -0
- package/component/composer/README.md +235 -0
- package/component/composer/package.json +4 -0
- package/component/context-menu/README.md +267 -0
- package/component/date-picker/README.md +177 -0
- package/component/dialog/README.md +237 -0
- package/component/drawer/README.md +145 -0
- package/component/dropdown-menu/README.md +311 -0
- package/component/editor/README.md +136 -0
- package/component/editor/package.json +4 -0
- package/component/empty/README.md +183 -0
- package/component/empty/package.json +4 -0
- package/component/form/README.md +210 -0
- package/component/hover-card/README.md +146 -0
- package/component/hover-card/package.json +4 -0
- package/component/input/README.md +159 -0
- package/component/input-group/README.md +239 -0
- package/component/input-otp/README.md +278 -0
- package/component/input-otp/package.json +4 -0
- package/component/item/README.md +247 -0
- package/component/kanban/README.md +81 -0
- package/component/kanban/package.json +4 -0
- package/component/kbd/README.md +139 -0
- package/component/kbd/package.json +4 -0
- package/component/label/README.md +136 -0
- package/component/menubar/README.md +269 -0
- package/component/menubar/package.json +4 -0
- package/component/native-select/README.md +176 -0
- package/component/native-select/package.json +4 -0
- package/component/navigation-menu/README.md +160 -0
- package/component/navigation-menu/package.json +4 -0
- package/component/pagination/README.md +144 -0
- package/component/pillbox/README.md +67 -0
- package/component/pillbox/package.json +4 -0
- package/component/popover/README.md +43 -0
- package/component/progress/README.md +160 -0
- package/component/radio/README.md +209 -0
- package/component/resizable/README.md +168 -0
- package/component/resizable/package.json +4 -0
- package/component/scroll-area/README.md +143 -0
- package/component/select/README.md +174 -0
- package/component/separator/README.md +170 -0
- package/component/sheet/README.md +183 -0
- package/component/skeleton/README.md +158 -0
- package/component/slider/README.md +207 -0
- package/component/spinner/README.md +160 -0
- package/component/spinner/package.json +4 -0
- package/component/switch/README.md +166 -0
- package/component/table/README.md +291 -0
- package/component/tabs/README.md +219 -0
- package/component/textarea/README.md +154 -0
- package/component/timeline/README.md +94 -0
- package/component/timeline/package.json +4 -0
- package/component/toast/README.md +321 -0
- package/component/toggle/README.md +131 -0
- package/component/toggle/package.json +4 -0
- package/component/toggle-group/README.md +206 -0
- package/component/toggle-group/package.json +4 -0
- package/component/tooltip/README.md +211 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +45 -30
- package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +95 -61
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-alert.mjs +30 -21
- package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +50 -34
- package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-badge.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +49 -35
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +25 -17
- package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-button.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +23 -13
- package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-card.mjs +51 -36
- package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +66 -42
- package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-chart.mjs +494 -283
- package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +23 -13
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +28 -20
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +27 -18
- package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-command.mjs +77 -52
- package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +34 -19
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +55 -38
- package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +108 -74
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs +200 -42
- package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +48 -33
- package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-item.mjs +76 -53
- package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +65 -31
- package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs +18 -12
- package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-progress.mjs +17 -10
- package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-radio.mjs +47 -17
- package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +15 -9
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +71 -26
- package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-separator.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +91 -42
- package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-slider.mjs +401 -7
- package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs +47 -15
- package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-table.mjs +56 -40
- package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +58 -38
- package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +8 -6
- package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs +28 -4
- package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +304 -6
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-component.mjs +45 -24
- package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-services.mjs +7 -5
- package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-shell.mjs +3 -3
- package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +9 -6
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -1
- package/fesm2022/{ojiepermana-angular-layout-empty.mjs → ojiepermana-angular-layout-type-empty.mjs} +4 -4
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
- package/fesm2022/{ojiepermana-angular-layout-horizontal.mjs → ojiepermana-angular-layout-type-horizontal.mjs} +26 -17
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
- package/fesm2022/{ojiepermana-angular-layout-vertical.mjs → ojiepermana-angular-layout-type-vertical.mjs} +28 -18
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +74 -50
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +11 -7
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-item.mjs +27 -16
- package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +29 -20
- package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +71 -43
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +261 -24
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-services.mjs +19 -11
- package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme.mjs +19 -11
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
- package/generator/api/README.md +8 -5
- package/generator/api/bin/src/emit/client.js +4 -2
- package/generator/api/bin/src/writer/index.js +47 -5
- package/generator/guide/bin/schematics/build/index.js +3 -2
- package/generator/guide/bin/src/engine/component.js +2 -2
- package/generator/guide/bin/src/engine/index.js +3 -3
- package/generator/guide/bin/src/engine/render.js +10 -5
- package/layout/type/empty/package.json +4 -0
- package/layout/type/horizontal/package.json +4 -0
- package/layout/type/vertical/package.json +4 -0
- package/navigation/topbar/README.md +196 -0
- package/package.json +89 -25
- package/theme/README.md +110 -3
- package/theme/styles/integrations/material/autocomplete.css +178 -0
- package/theme/styles/integrations/material/button.css +468 -0
- package/theme/styles/integrations/material/dialog.css +152 -0
- package/theme/styles/integrations/material/select.css +175 -0
- package/theme/styles/integrations/material/slide-toggle.css +234 -0
- package/theme/styles/integrations/material/slider.css +194 -0
- package/theme/styles/integrations/material/tabs.css +229 -0
- package/theme/styles/integrations/material.css +70 -60
- package/types/ojiepermana-angular-component-combobox.d.ts +1 -2
- package/types/ojiepermana-angular-component-composer.d.ts +90 -0
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +2 -0
- package/types/ojiepermana-angular-component-editor.d.ts +123 -0
- package/types/ojiepermana-angular-component-empty.d.ts +50 -0
- package/types/ojiepermana-angular-component-form.d.ts +52 -3
- package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
- package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
- package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
- package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
- package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
- package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
- package/types/ojiepermana-angular-component-pagination.d.ts +10 -4
- package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
- package/types/ojiepermana-angular-component-radio.d.ts +7 -1
- package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
- package/types/ojiepermana-angular-component-select.d.ts +17 -5
- package/types/ojiepermana-angular-component-sheet.d.ts +3 -1
- package/types/ojiepermana-angular-component-slider.d.ts +59 -1
- package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
- package/types/ojiepermana-angular-component-switch.d.ts +13 -3
- package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
- package/types/ojiepermana-angular-component-toast.d.ts +12 -3
- package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
- package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
- package/types/ojiepermana-angular-component-tooltip.d.ts +72 -5
- package/types/{ojiepermana-angular-layout-horizontal.d.ts → ojiepermana-angular-layout-type-horizontal.d.ts} +3 -3
- package/types/{ojiepermana-angular-layout-vertical.d.ts → ojiepermana-angular-layout-type-vertical.d.ts} +3 -3
- package/types/ojiepermana-angular-layout.d.ts +5 -5
- package/types/ojiepermana-angular-navigation-item.d.ts +1 -1
- package/types/ojiepermana-angular-navigation-service.d.ts +7 -7
- package/types/ojiepermana-angular-navigation-sidebar.d.ts +8 -8
- package/types/ojiepermana-angular-navigation-topbar.d.ts +24 -4
- package/types/ojiepermana-angular-navigation-types.d.ts +14 -8
- package/fesm2022/ojiepermana-angular-layout-empty.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-horizontal.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-vertical.mjs.map +0 -1
- package/layout/empty/package.json +0 -4
- package/layout/horizontal/package.json +0 -4
- package/layout/vertical/package.json +0 -4
- /package/types/{ojiepermana-angular-layout-empty.d.ts → ojiepermana-angular-layout-type-empty.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-component.mjs","sources":["../../../projects/angular/layout/component/src/lib/theme-panel.component.ts","../../../projects/angular/layout/component/ojiepermana-angular-layout-component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n InjectionToken,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n type Signal,\n} from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport { ButtonComponent } from '@ojiepermana/angular/component/button';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type ThemePanelColor =\n | 'base'\n | 'red'\n | 'orange'\n | 'amber'\n | 'yellow'\n | 'lime'\n | 'green'\n | 'emerald'\n | 'teal'\n | 'cyan'\n | 'sky'\n | 'blue'\n | 'indigo'\n | 'violet'\n | 'purple'\n | 'fuchsia'\n | 'pink'\n | 'rose';\n\nexport type ThemePanelMode = 'light' | 'dark' | 'system';\n\nexport type ThemePanelStyle = 'default' | 'sharp' | 'brutal' | 'soft';\n\nexport type ThemePanelLayoutMode = 'vertical' | 'horizontal' | 'empty';\n\nexport type ThemePanelLayoutWidth = 'full' | 'container' | 'wide';\n\nexport interface ThemePanelThemePort {\n readonly color: Signal<ThemePanelColor>;\n readonly scheme: Signal<ThemePanelMode>;\n readonly style: Signal<ThemePanelStyle>;\n setColor(color: ThemePanelColor): void;\n setScheme(mode: ThemePanelMode): void;\n setStyle(style: ThemePanelStyle): void;\n}\n\nexport interface ThemePanelLayoutPort {\n readonly mode: Signal<ThemePanelLayoutMode>;\n readonly width: Signal<ThemePanelLayoutWidth>;\n setMode(mode: ThemePanelLayoutMode): void;\n setWidth(width: ThemePanelLayoutWidth): void;\n}\n\nexport const THEME_PANEL_THEME_PORT = new InjectionToken<ThemePanelThemePort>('THEME_PANEL_THEME_PORT');\n\nexport const THEME_PANEL_LAYOUT_PORT = new InjectionToken<ThemePanelLayoutPort>('THEME_PANEL_LAYOUT_PORT');\n\ntype ThemePanelIconName =\n | 'sun'\n | 'moon'\n | 'system'\n | 'default-style'\n | 'sharp-style'\n | 'brutal-style'\n | 'soft-style'\n | 'vertical-layout'\n | 'horizontal-layout'\n | 'empty-layout'\n | 'full-width'\n | 'container-width'\n | 'wide-width';\n\ninterface ThemePanelOption<T extends string> {\n readonly value: T;\n readonly label: string;\n readonly icon?: ThemePanelIconName;\n readonly swatchClass?: string;\n}\n\nconst THEME_COLOR_OPTIONS = [\n { value: 'base', label: 'Base', swatchClass: 'bg-zinc-800' },\n { value: 'red', label: 'Red', swatchClass: 'bg-red-500' },\n { value: 'orange', label: 'Orange', swatchClass: 'bg-orange-500' },\n { value: 'amber', label: 'Amber', swatchClass: 'bg-amber-400' },\n { value: 'yellow', label: 'Yellow', swatchClass: 'bg-yellow-400' },\n { value: 'lime', label: 'Lime', swatchClass: 'bg-lime-400' },\n { value: 'green', label: 'Green', swatchClass: 'bg-green-600' },\n { value: 'emerald', label: 'Emerald', swatchClass: 'bg-emerald-600' },\n { value: 'teal', label: 'Teal', swatchClass: 'bg-teal-600' },\n { value: 'cyan', label: 'Cyan', swatchClass: 'bg-cyan-600' },\n { value: 'sky', label: 'Sky', swatchClass: 'bg-sky-600' },\n { value: 'blue', label: 'Blue', swatchClass: 'bg-blue-500' },\n { value: 'indigo', label: 'Indigo', swatchClass: 'bg-indigo-500' },\n { value: 'violet', label: 'Violet', swatchClass: 'bg-violet-500' },\n { value: 'purple', label: 'Purple', swatchClass: 'bg-purple-500' },\n { value: 'fuchsia', label: 'Fuchsia', swatchClass: 'bg-fuchsia-600' },\n { value: 'pink', label: 'Pink', swatchClass: 'bg-pink-600' },\n { value: 'rose', label: 'Rose', swatchClass: 'bg-rose-500' },\n] as const satisfies readonly ThemePanelOption<ThemePanelColor>[];\n\nconst THEME_MODE_OPTIONS = [\n { value: 'light', label: 'Light', icon: 'sun' },\n { value: 'dark', label: 'Dark', icon: 'moon' },\n { value: 'system', label: 'System', icon: 'system' },\n] as const satisfies readonly ThemePanelOption<ThemePanelMode>[];\n\nconst THEME_STYLE_OPTIONS = [\n { value: 'default', label: 'Default', icon: 'default-style' },\n { value: 'sharp', label: 'Sharp', icon: 'sharp-style' },\n { value: 'brutal', label: 'Brutal', icon: 'brutal-style' },\n { value: 'soft', label: 'Soft', icon: 'soft-style' },\n] as const satisfies readonly ThemePanelOption<ThemePanelStyle>[];\n\nconst LAYOUT_MODE_OPTIONS = [\n { value: 'vertical', label: 'Vertical', icon: 'vertical-layout' },\n { value: 'horizontal', label: 'Horizontal', icon: 'horizontal-layout' },\n { value: 'empty', label: 'Empty', icon: 'empty-layout' },\n] as const satisfies readonly ThemePanelOption<ThemePanelLayoutMode>[];\n\nconst LAYOUT_WIDTH_OPTIONS = [\n { value: 'full', label: 'Full', icon: 'full-width' },\n { value: 'container', label: 'Container', icon: 'container-width' },\n { value: 'wide', label: 'Wide', icon: 'wide-width' },\n] as const satisfies readonly ThemePanelOption<ThemePanelLayoutWidth>[];\n\n@Component({\n selector: 'ui-theme-panel',\n imports: [ButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'hostClasses()',\n },\n template: `\n <div class=\"flex flex-col gap-4 p-4\">\n @if (hasUserHeader()) {\n <header class=\"flex items-center gap-3 px-1 pt-1\">\n <span class=\"flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary\">\n <span\n class=\"flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground\">\n {{ resolvedUserInitials() }}\n </span>\n </span>\n\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground\">\n {{ userName() }}\n </h2>\n @if (userSubtitle(); as subtitle) {\n <p class=\"mt-1 text-sm leading-none text-muted-foreground\">{{ subtitle }}</p>\n }\n </div>\n </header>\n } @else {\n <header class=\"space-y-1 px-1 pt-1\">\n <h2 class=\"text-base font-semibold tracking-tight text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm leading-6 text-muted-foreground\">{{ text }}</p>\n }\n </header>\n }\n\n <div class=\"grid gap-4\">\n <section data-setting=\"theme-mode\" [attr.data-current]=\"currentThemeMode()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Mode</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Theme mode\">\n @for (option of themeModeOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"theme-mode\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentThemeMode() === option.value\"\n [class]=\"segmentedOptionClasses(currentThemeMode() === option.value)\"\n (click)=\"setThemeMode(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentThemeMode() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"theme-color\" [attr.data-current]=\"currentThemeColor()\" class=\"space-y-2\">\n <div class=\"flex items-center justify-between gap-3 px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Color</p>\n <p class=\"text-xs font-semibold text-muted-foreground\">{{ currentThemeColorLabel() }}</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-1\">\n <div class=\"grid grid-cols-6 justify-items-center gap-1\" role=\"group\" aria-label=\"Theme color\">\n @for (option of themeColorOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"icon\"\n variant=\"ghost\"\n data-setting-option=\"theme-color\"\n [attr.data-value]=\"option.value\"\n [attr.aria-label]=\"'Theme color ' + option.label\"\n [attr.aria-pressed]=\"currentThemeColor() === option.value\"\n [class]=\"swatchButtonClasses(currentThemeColor() === option.value)\"\n (click)=\"setThemeColor(option.value)\">\n <span\n aria-hidden=\"true\"\n [class]=\"colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)\"></span>\n <span class=\"sr-only\">{{ option.label }}</span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"theme-style\" [attr.data-current]=\"currentThemeStyle()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Style</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-2 gap-1 sm:grid-cols-4\" role=\"group\" aria-label=\"Theme style\">\n @for (option of themeStyleOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"theme-style\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentThemeStyle() === option.value\"\n [class]=\"segmentedOptionClasses(currentThemeStyle() === option.value)\"\n (click)=\"setThemeStyle(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentThemeStyle() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"layout-mode\" [attr.data-current]=\"currentLayoutMode()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Layout</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Layout mode\">\n @for (option of layoutModeOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"layout-mode\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentLayoutMode() === option.value\"\n [class]=\"segmentedOptionClasses(currentLayoutMode() === option.value)\"\n (click)=\"setLayoutMode(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentLayoutMode() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"layout-width\" [attr.data-current]=\"currentLayoutWidth()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Width</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Layout width\">\n @for (option of layoutWidthOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"layout-width\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentLayoutWidth() === option.value\"\n [class]=\"segmentedOptionClasses(currentLayoutWidth() === option.value)\"\n (click)=\"setLayoutWidth(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentLayoutWidth() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n </div>\n </div>\n `,\n})\nexport class ThemePanelComponent {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly themePort = inject(THEME_PANEL_THEME_PORT, { optional: true });\n private readonly layoutPort = inject(THEME_PANEL_LAYOUT_PORT, { optional: true });\n\n readonly connected = input<boolean>(true);\n readonly class = input<string>('');\n readonly title = input<string>('Theme panel');\n readonly description = input<string>('');\n readonly userName = input<string>('');\n readonly userSubtitle = input<string>('');\n readonly userInitials = input<string>('');\n readonly themeColor = input<ThemePanelColor>('base');\n readonly themeMode = input<ThemePanelMode>('light');\n readonly themeStyle = input<ThemePanelStyle>('default');\n readonly layoutMode = input<ThemePanelLayoutMode>('vertical');\n readonly layoutWidth = input<ThemePanelLayoutWidth>('container');\n\n readonly themeColorChange = output<ThemePanelColor>();\n readonly themeModeChange = output<ThemePanelMode>();\n readonly themeStyleChange = output<ThemePanelStyle>();\n readonly layoutModeChange = output<ThemePanelLayoutMode>();\n readonly layoutWidthChange = output<ThemePanelLayoutWidth>();\n\n protected readonly currentThemeColor = signal<ThemePanelColor>(this.themeColor());\n protected readonly currentThemeMode = signal<ThemePanelMode>(this.themeMode());\n protected readonly currentThemeStyle = signal<ThemePanelStyle>(this.themeStyle());\n protected readonly currentLayoutMode = signal<ThemePanelLayoutMode>(this.layoutMode());\n protected readonly currentLayoutWidth = signal<ThemePanelLayoutWidth>(this.layoutWidth());\n\n protected readonly themeColorOptions = THEME_COLOR_OPTIONS;\n protected readonly themeModeOptions = THEME_MODE_OPTIONS;\n protected readonly themeStyleOptions = THEME_STYLE_OPTIONS;\n protected readonly layoutModeOptions = LAYOUT_MODE_OPTIONS;\n protected readonly layoutWidthOptions = LAYOUT_WIDTH_OPTIONS;\n\n protected readonly hostClasses = computed(() =>\n cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()),\n );\n protected readonly hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim());\n protected readonly resolvedUserInitials = computed(\n () => this.userInitials().trim() || this.toInitials(this.userName() || this.title()),\n );\n protected readonly currentThemeColorLabel = computed(\n () => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '',\n );\n\n constructor() {\n effect(() => {\n this.currentThemeColor.set(this.connected() && this.themePort ? this.themePort.color() : this.themeColor());\n });\n effect(() => {\n this.currentThemeMode.set(this.connected() && this.themePort ? this.themePort.scheme() : this.themeMode());\n });\n effect(() => {\n this.currentThemeStyle.set(this.connected() && this.themePort ? this.themePort.style() : this.themeStyle());\n });\n effect(() => {\n this.currentLayoutMode.set(this.connected() && this.layoutPort ? this.layoutPort.mode() : this.layoutMode());\n });\n effect(() => {\n this.currentLayoutWidth.set(this.connected() && this.layoutPort ? this.layoutPort.width() : this.layoutWidth());\n });\n }\n\n protected setThemeColor(color: ThemePanelColor): void {\n this.currentThemeColor.set(color);\n this.themePort?.setColor(color);\n this.themeColorChange.emit(color);\n }\n\n protected setThemeMode(mode: ThemePanelMode): void {\n this.currentThemeMode.set(mode);\n this.themePort?.setScheme(mode);\n this.themeModeChange.emit(mode);\n }\n\n protected setThemeStyle(style: ThemePanelStyle): void {\n this.currentThemeStyle.set(style);\n this.themePort?.setStyle(style);\n this.themeStyleChange.emit(style);\n }\n\n protected setLayoutMode(mode: ThemePanelLayoutMode): void {\n this.currentLayoutMode.set(mode);\n this.layoutPort?.setMode(mode);\n this.layoutModeChange.emit(mode);\n }\n\n protected setLayoutWidth(width: ThemePanelLayoutWidth): void {\n this.currentLayoutWidth.set(width);\n this.layoutPort?.setWidth(width);\n this.layoutWidthChange.emit(width);\n }\n\n protected sectionEyebrowClasses(): string {\n return 'text-[0.72rem] font-semibold uppercase tracking-[0.22em] text-muted-foreground';\n }\n\n protected segmentedOptionClasses(active: boolean): string {\n return cn(\n 'rounded-[calc(var(--layout-frame-radius)-2px)] px-3',\n active\n ? 'border border-border/70 bg-background shadow-sm hover:bg-background'\n : 'text-muted-foreground hover:bg-background/70 hover:text-foreground',\n );\n }\n\n protected swatchButtonClasses(active: boolean): string {\n return cn(\n 'size-9 rounded-full p-0',\n active\n ? 'border border-border/70 bg-background shadow-sm hover:bg-background'\n : 'border border-transparent hover:bg-background/70',\n );\n }\n\n protected optionIconClasses(active: boolean): string {\n return cn(\n 'inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-4',\n active ? 'text-foreground' : 'text-muted-foreground',\n );\n }\n\n protected colorSwatchClasses(swatchClass: string | undefined, isActive: boolean): string {\n return cn(\n 'size-4 rounded-full border border-black/10 shadow-sm',\n swatchClass,\n isActive ? 'ring-2 ring-ring ring-offset-2 ring-offset-background' : '',\n );\n }\n\n protected iconSvg(name: ThemePanelIconName): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(this.rawIconSvg(name));\n }\n\n private rawIconSvg(name: ThemePanelIconName): string {\n switch (name) {\n case 'sun':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><path d=\"M12 2.5v2.2\"></path><path d=\"M12 19.3v2.2\"></path><path d=\"M4.93 4.93 6.5 6.5\"></path><path d=\"M17.5 17.5 19.07 19.07\"></path><path d=\"M2.5 12h2.2\"></path><path d=\"M19.3 12h2.2\"></path><path d=\"M4.93 19.07 6.5 17.5\"></path><path d=\"M17.5 6.5 19.07 4.93\"></path></svg>';\n case 'moon':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.4 14.8A8.8 8.8 0 1 1 9.2 3.6a7.2 7.2 0 0 0 11.2 11.2Z\"></path></svg>';\n case 'system':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"11.5\" rx=\"1.8\"></rect><path d=\"M9 19.5h6\"></path><path d=\"M12 16v3.5\"></path></svg>';\n case 'default-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"4\"></rect></svg>';\n case 'sharp-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"1\"></rect></svg>';\n case 'brutal-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 7.5h14\"></path><path d=\"M5 12h14\"></path><path d=\"M5 16.5h14\"></path></svg>';\n case 'soft-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7.5 9A4.5 4.5 0 0 1 12 4.5h1A4.5 4.5 0 0 1 17.5 9v1A4.5 4.5 0 0 1 13 14.5h-1A4.5 4.5 0 0 1 7.5 10Z\"></path><path d=\"M6.5 15.5c1.3 2 3.2 3 5.5 3s4.2-1 5.5-3\"></path></svg>';\n case 'vertical-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2\"></rect><path d=\"M9 5v14\"></path></svg>';\n case 'horizontal-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2\"></rect><path d=\"M4 10h16\"></path></svg>';\n case 'empty-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4.5\" y=\"5.5\" width=\"15\" height=\"13\" rx=\"2\"></rect></svg>';\n case 'full-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 8V5h3\"></path><path d=\"M20 8V5h-3\"></path><path d=\"M4 16v3h3\"></path><path d=\"M20 16v3h-3\"></path><path d=\"M8 5H4\"></path><path d=\"M20 5h-4\"></path><path d=\"M8 19H4\"></path><path d=\"M20 19h-4\"></path></svg>';\n case 'container-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"6\" width=\"16\" height=\"12\" rx=\"2\"></rect><path d=\"M9 9.5h6\"></path><path d=\"M9 14.5h6\"></path></svg>';\n case 'wide-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\"></rect><path d=\"M7 9.5h10\"></path><path d=\"M7 14.5h10\"></path></svg>';\n }\n }\n\n private toInitials(value: string): string {\n const words = value\n .split(/\\s+/)\n .map((item) => item.trim())\n .filter(Boolean)\n .slice(0, 2);\n\n if (!words.length) {\n return 'UI';\n }\n\n return words.map((word) => word[0]?.toUpperCase() ?? '').join('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MA4Da,sBAAsB,GAAG,IAAI,cAAc,CAAsB,wBAAwB;MAEzF,uBAAuB,GAAG,IAAI,cAAc,CAAuB,yBAAyB;AAwBzG,MAAM,mBAAmB,GAAG;IAC1B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE;IACzD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;IAClE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE;IAC/D,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;IAClE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE;IAC/D,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE;IACrE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAA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,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAgMd,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAlM/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLT,EAAA,CAAA;AACF,iBAAA;;;ACrUD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-component.mjs","sources":["../../../projects/angular/layout/component/theme-panel.component.ts","../../../projects/angular/layout/component/ojiepermana-angular-layout-component.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n InjectionToken,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n type Signal,\n} from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport { ButtonComponent } from '@ojiepermana/angular/component/button';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type ThemePanelColor =\n | 'base'\n | 'red'\n | 'orange'\n | 'amber'\n | 'yellow'\n | 'lime'\n | 'green'\n | 'emerald'\n | 'teal'\n | 'cyan'\n | 'sky'\n | 'blue'\n | 'indigo'\n | 'violet'\n | 'purple'\n | 'fuchsia'\n | 'pink'\n | 'rose';\n\nexport type ThemePanelMode = 'light' | 'dark' | 'system';\n\nexport type ThemePanelStyle = 'default' | 'sharp' | 'brutal' | 'soft';\n\nexport type ThemePanelLayoutMode = 'vertical' | 'horizontal' | 'empty';\n\nexport type ThemePanelLayoutWidth = 'full' | 'container' | 'wide';\n\nexport interface ThemePanelThemePort {\n readonly color: Signal<ThemePanelColor>;\n readonly scheme: Signal<ThemePanelMode>;\n readonly style: Signal<ThemePanelStyle>;\n setColor(color: ThemePanelColor): void;\n setScheme(mode: ThemePanelMode): void;\n setStyle(style: ThemePanelStyle): void;\n}\n\nexport interface ThemePanelLayoutPort {\n readonly mode: Signal<ThemePanelLayoutMode>;\n readonly width: Signal<ThemePanelLayoutWidth>;\n setMode(mode: ThemePanelLayoutMode): void;\n setWidth(width: ThemePanelLayoutWidth): void;\n}\n\nexport const THEME_PANEL_THEME_PORT = new InjectionToken<ThemePanelThemePort>('THEME_PANEL_THEME_PORT');\n\nexport const THEME_PANEL_LAYOUT_PORT = new InjectionToken<ThemePanelLayoutPort>('THEME_PANEL_LAYOUT_PORT');\n\ntype ThemePanelIconName =\n | 'sun'\n | 'moon'\n | 'system'\n | 'default-style'\n | 'sharp-style'\n | 'brutal-style'\n | 'soft-style'\n | 'vertical-layout'\n | 'horizontal-layout'\n | 'empty-layout'\n | 'full-width'\n | 'container-width'\n | 'wide-width';\n\ninterface ThemePanelOption<T extends string> {\n readonly value: T;\n readonly label: string;\n readonly icon?: ThemePanelIconName;\n readonly swatchClass?: string;\n}\n\nconst THEME_COLOR_OPTIONS = [\n { value: 'base', label: 'Base', swatchClass: 'bg-zinc-800' },\n { value: 'red', label: 'Red', swatchClass: 'bg-red-500' },\n { value: 'orange', label: 'Orange', swatchClass: 'bg-orange-500' },\n { value: 'amber', label: 'Amber', swatchClass: 'bg-amber-400' },\n { value: 'yellow', label: 'Yellow', swatchClass: 'bg-yellow-400' },\n { value: 'lime', label: 'Lime', swatchClass: 'bg-lime-400' },\n { value: 'green', label: 'Green', swatchClass: 'bg-green-600' },\n { value: 'emerald', label: 'Emerald', swatchClass: 'bg-emerald-600' },\n { value: 'teal', label: 'Teal', swatchClass: 'bg-teal-600' },\n { value: 'cyan', label: 'Cyan', swatchClass: 'bg-cyan-600' },\n { value: 'sky', label: 'Sky', swatchClass: 'bg-sky-600' },\n { value: 'blue', label: 'Blue', swatchClass: 'bg-blue-500' },\n { value: 'indigo', label: 'Indigo', swatchClass: 'bg-indigo-500' },\n { value: 'violet', label: 'Violet', swatchClass: 'bg-violet-500' },\n { value: 'purple', label: 'Purple', swatchClass: 'bg-purple-500' },\n { value: 'fuchsia', label: 'Fuchsia', swatchClass: 'bg-fuchsia-600' },\n { value: 'pink', label: 'Pink', swatchClass: 'bg-pink-600' },\n { value: 'rose', label: 'Rose', swatchClass: 'bg-rose-500' },\n] as const satisfies readonly ThemePanelOption<ThemePanelColor>[];\n\nconst THEME_MODE_OPTIONS = [\n { value: 'light', label: 'Light', icon: 'sun' },\n { value: 'dark', label: 'Dark', icon: 'moon' },\n { value: 'system', label: 'System', icon: 'system' },\n] as const satisfies readonly ThemePanelOption<ThemePanelMode>[];\n\nconst THEME_STYLE_OPTIONS = [\n { value: 'default', label: 'Default', icon: 'default-style' },\n { value: 'sharp', label: 'Sharp', icon: 'sharp-style' },\n { value: 'brutal', label: 'Brutal', icon: 'brutal-style' },\n { value: 'soft', label: 'Soft', icon: 'soft-style' },\n] as const satisfies readonly ThemePanelOption<ThemePanelStyle>[];\n\nconst LAYOUT_MODE_OPTIONS = [\n { value: 'vertical', label: 'Vertical', icon: 'vertical-layout' },\n { value: 'horizontal', label: 'Horizontal', icon: 'horizontal-layout' },\n { value: 'empty', label: 'Empty', icon: 'empty-layout' },\n] as const satisfies readonly ThemePanelOption<ThemePanelLayoutMode>[];\n\nconst LAYOUT_WIDTH_OPTIONS = [\n { value: 'full', label: 'Full', icon: 'full-width' },\n { value: 'container', label: 'Container', icon: 'container-width' },\n { value: 'wide', label: 'Wide', icon: 'wide-width' },\n] as const satisfies readonly ThemePanelOption<ThemePanelLayoutWidth>[];\n\n@Component({\n selector: 'ui-theme-panel',\n imports: [ButtonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'hostClasses()',\n },\n template: `\n <div class=\"flex flex-col gap-4 p-4\">\n @if (hasUserHeader()) {\n <header class=\"flex items-center gap-3 px-1 pt-1\">\n <span class=\"flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary\">\n <span\n class=\"flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground\">\n {{ resolvedUserInitials() }}\n </span>\n </span>\n\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground\">\n {{ userName() }}\n </h2>\n @if (userSubtitle(); as subtitle) {\n <p class=\"mt-1 text-sm leading-none text-muted-foreground\">{{ subtitle }}</p>\n }\n </div>\n </header>\n } @else {\n <header class=\"space-y-1 px-1 pt-1\">\n <h2 class=\"text-base font-semibold tracking-tight text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm leading-6 text-muted-foreground\">{{ text }}</p>\n }\n </header>\n }\n\n <div class=\"grid gap-4\">\n <section data-setting=\"theme-mode\" [attr.data-current]=\"currentThemeMode()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Mode</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Theme mode\">\n @for (option of themeModeOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"theme-mode\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentThemeMode() === option.value\"\n [class]=\"segmentedOptionClasses(currentThemeMode() === option.value)\"\n (click)=\"setThemeMode(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentThemeMode() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"theme-color\" [attr.data-current]=\"currentThemeColor()\" class=\"space-y-2\">\n <div class=\"flex items-center justify-between gap-3 px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Color</p>\n <p class=\"text-xs font-semibold text-muted-foreground\">{{ currentThemeColorLabel() }}</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-1\">\n <div class=\"grid grid-cols-6 justify-items-center gap-1\" role=\"group\" aria-label=\"Theme color\">\n @for (option of themeColorOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"icon\"\n variant=\"ghost\"\n data-setting-option=\"theme-color\"\n [attr.data-value]=\"option.value\"\n [attr.aria-label]=\"'Theme color ' + option.label\"\n [attr.aria-pressed]=\"currentThemeColor() === option.value\"\n [class]=\"swatchButtonClasses(currentThemeColor() === option.value)\"\n (click)=\"setThemeColor(option.value)\">\n <span\n aria-hidden=\"true\"\n [class]=\"colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)\"></span>\n <span class=\"sr-only\">{{ option.label }}</span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"theme-style\" [attr.data-current]=\"currentThemeStyle()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Style</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-2 gap-1 sm:grid-cols-4\" role=\"group\" aria-label=\"Theme style\">\n @for (option of themeStyleOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"theme-style\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentThemeStyle() === option.value\"\n [class]=\"segmentedOptionClasses(currentThemeStyle() === option.value)\"\n (click)=\"setThemeStyle(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentThemeStyle() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"layout-mode\" [attr.data-current]=\"currentLayoutMode()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Layout</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Layout mode\">\n @for (option of layoutModeOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"layout-mode\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentLayoutMode() === option.value\"\n [class]=\"segmentedOptionClasses(currentLayoutMode() === option.value)\"\n (click)=\"setLayoutMode(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentLayoutMode() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n\n <section data-setting=\"layout-width\" [attr.data-current]=\"currentLayoutWidth()\" class=\"space-y-2\">\n <div class=\"px-1\">\n <p [class]=\"sectionEyebrowClasses()\">Width</p>\n </div>\n\n <div class=\"rounded-(--layout-frame-radius) bg-muted/65 p-0.5\">\n <div class=\"grid grid-cols-3 gap-1\" role=\"group\" aria-label=\"Layout width\">\n @for (option of layoutWidthOptions; track option.value) {\n <button\n type=\"button\"\n ui-button\n size=\"sm\"\n variant=\"ghost\"\n data-setting-option=\"layout-width\"\n [attr.data-value]=\"option.value\"\n [attr.aria-pressed]=\"currentLayoutWidth() === option.value\"\n [class]=\"segmentedOptionClasses(currentLayoutWidth() === option.value)\"\n (click)=\"setLayoutWidth(option.value)\">\n <span class=\"inline-flex items-center gap-2.5\">\n <span\n aria-hidden=\"true\"\n [class]=\"optionIconClasses(currentLayoutWidth() === option.value)\"\n [innerHTML]=\"iconSvg(option.icon!)\"></span>\n <span class=\"text-sm font-semibold leading-none\">{{ option.label }}</span>\n </span>\n </button>\n }\n </div>\n </div>\n </section>\n </div>\n </div>\n `,\n})\nexport class ThemePanelComponent {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly themePort = inject(THEME_PANEL_THEME_PORT, { optional: true });\n private readonly layoutPort = inject(THEME_PANEL_LAYOUT_PORT, { optional: true });\n\n readonly connected = input<boolean>(true);\n readonly class = input<string>('');\n readonly title = input<string>('Theme panel');\n readonly description = input<string>('');\n readonly userName = input<string>('');\n readonly userSubtitle = input<string>('');\n readonly userInitials = input<string>('');\n readonly themeColor = input<ThemePanelColor>('base');\n readonly themeMode = input<ThemePanelMode>('light');\n readonly themeStyle = input<ThemePanelStyle>('default');\n readonly layoutMode = input<ThemePanelLayoutMode>('vertical');\n readonly layoutWidth = input<ThemePanelLayoutWidth>('container');\n\n readonly themeColorChange = output<ThemePanelColor>();\n readonly themeModeChange = output<ThemePanelMode>();\n readonly themeStyleChange = output<ThemePanelStyle>();\n readonly layoutModeChange = output<ThemePanelLayoutMode>();\n readonly layoutWidthChange = output<ThemePanelLayoutWidth>();\n\n protected readonly currentThemeColor = signal<ThemePanelColor>(this.themeColor());\n protected readonly currentThemeMode = signal<ThemePanelMode>(this.themeMode());\n protected readonly currentThemeStyle = signal<ThemePanelStyle>(this.themeStyle());\n protected readonly currentLayoutMode = signal<ThemePanelLayoutMode>(this.layoutMode());\n protected readonly currentLayoutWidth = signal<ThemePanelLayoutWidth>(this.layoutWidth());\n\n protected readonly themeColorOptions = THEME_COLOR_OPTIONS;\n protected readonly themeModeOptions = THEME_MODE_OPTIONS;\n protected readonly themeStyleOptions = THEME_STYLE_OPTIONS;\n protected readonly layoutModeOptions = LAYOUT_MODE_OPTIONS;\n protected readonly layoutWidthOptions = LAYOUT_WIDTH_OPTIONS;\n\n protected readonly hostClasses = computed(() =>\n cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()),\n );\n protected readonly hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim());\n protected readonly resolvedUserInitials = computed(\n () => this.userInitials().trim() || this.toInitials(this.userName() || this.title()),\n );\n protected readonly currentThemeColorLabel = computed(\n () => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '',\n );\n\n constructor() {\n effect(() => {\n this.currentThemeColor.set(this.connected() && this.themePort ? this.themePort.color() : this.themeColor());\n });\n effect(() => {\n this.currentThemeMode.set(this.connected() && this.themePort ? this.themePort.scheme() : this.themeMode());\n });\n effect(() => {\n this.currentThemeStyle.set(this.connected() && this.themePort ? this.themePort.style() : this.themeStyle());\n });\n effect(() => {\n this.currentLayoutMode.set(this.connected() && this.layoutPort ? this.layoutPort.mode() : this.layoutMode());\n });\n effect(() => {\n this.currentLayoutWidth.set(this.connected() && this.layoutPort ? this.layoutPort.width() : this.layoutWidth());\n });\n }\n\n protected setThemeColor(color: ThemePanelColor): void {\n this.currentThemeColor.set(color);\n this.themePort?.setColor(color);\n this.themeColorChange.emit(color);\n }\n\n protected setThemeMode(mode: ThemePanelMode): void {\n this.currentThemeMode.set(mode);\n this.themePort?.setScheme(mode);\n this.themeModeChange.emit(mode);\n }\n\n protected setThemeStyle(style: ThemePanelStyle): void {\n this.currentThemeStyle.set(style);\n this.themePort?.setStyle(style);\n this.themeStyleChange.emit(style);\n }\n\n protected setLayoutMode(mode: ThemePanelLayoutMode): void {\n this.currentLayoutMode.set(mode);\n this.layoutPort?.setMode(mode);\n this.layoutModeChange.emit(mode);\n }\n\n protected setLayoutWidth(width: ThemePanelLayoutWidth): void {\n this.currentLayoutWidth.set(width);\n this.layoutPort?.setWidth(width);\n this.layoutWidthChange.emit(width);\n }\n\n protected sectionEyebrowClasses(): string {\n return 'text-[0.72rem] font-semibold uppercase tracking-[0.22em] text-muted-foreground';\n }\n\n protected segmentedOptionClasses(active: boolean): string {\n return cn(\n 'rounded-[calc(var(--layout-frame-radius)-2px)] px-3',\n active\n ? 'border border-border/70 bg-background shadow-sm hover:bg-background'\n : 'text-muted-foreground hover:bg-background/70 hover:text-foreground',\n );\n }\n\n protected swatchButtonClasses(active: boolean): string {\n return cn(\n 'size-9 rounded-full p-0',\n active\n ? 'border border-border/70 bg-background shadow-sm hover:bg-background'\n : 'border border-transparent hover:bg-background/70',\n );\n }\n\n protected optionIconClasses(active: boolean): string {\n return cn(\n 'inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-4',\n active ? 'text-foreground' : 'text-muted-foreground',\n );\n }\n\n protected colorSwatchClasses(swatchClass: string | undefined, isActive: boolean): string {\n return cn(\n 'size-4 rounded-full border border-black/10 shadow-sm',\n swatchClass,\n isActive ? 'ring-2 ring-ring ring-offset-2 ring-offset-background' : '',\n );\n }\n\n protected iconSvg(name: ThemePanelIconName): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(this.rawIconSvg(name));\n }\n\n private rawIconSvg(name: ThemePanelIconName): string {\n switch (name) {\n case 'sun':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><path d=\"M12 2.5v2.2\"></path><path d=\"M12 19.3v2.2\"></path><path d=\"M4.93 4.93 6.5 6.5\"></path><path d=\"M17.5 17.5 19.07 19.07\"></path><path d=\"M2.5 12h2.2\"></path><path d=\"M19.3 12h2.2\"></path><path d=\"M4.93 19.07 6.5 17.5\"></path><path d=\"M17.5 6.5 19.07 4.93\"></path></svg>';\n case 'moon':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20.4 14.8A8.8 8.8 0 1 1 9.2 3.6a7.2 7.2 0 0 0 11.2 11.2Z\"></path></svg>';\n case 'system':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"11.5\" rx=\"1.8\"></rect><path d=\"M9 19.5h6\"></path><path d=\"M12 16v3.5\"></path></svg>';\n case 'default-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"4\"></rect></svg>';\n case 'sharp-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"1\"></rect></svg>';\n case 'brutal-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 7.5h14\"></path><path d=\"M5 12h14\"></path><path d=\"M5 16.5h14\"></path></svg>';\n case 'soft-style':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7.5 9A4.5 4.5 0 0 1 12 4.5h1A4.5 4.5 0 0 1 17.5 9v1A4.5 4.5 0 0 1 13 14.5h-1A4.5 4.5 0 0 1 7.5 10Z\"></path><path d=\"M6.5 15.5c1.3 2 3.2 3 5.5 3s4.2-1 5.5-3\"></path></svg>';\n case 'vertical-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2\"></rect><path d=\"M9 5v14\"></path></svg>';\n case 'horizontal-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2\"></rect><path d=\"M4 10h16\"></path></svg>';\n case 'empty-layout':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4.5\" y=\"5.5\" width=\"15\" height=\"13\" rx=\"2\"></rect></svg>';\n case 'full-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 8V5h3\"></path><path d=\"M20 8V5h-3\"></path><path d=\"M4 16v3h3\"></path><path d=\"M20 16v3h-3\"></path><path d=\"M8 5H4\"></path><path d=\"M20 5h-4\"></path><path d=\"M8 19H4\"></path><path d=\"M20 19h-4\"></path></svg>';\n case 'container-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"6\" width=\"16\" height=\"12\" rx=\"2\"></rect><path d=\"M9 9.5h6\"></path><path d=\"M9 14.5h6\"></path></svg>';\n case 'wide-width':\n return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\"></rect><path d=\"M7 9.5h10\"></path><path d=\"M7 14.5h10\"></path></svg>';\n }\n }\n\n private toInitials(value: string): string {\n const words = value\n .split(/\\s+/)\n .map((item) => item.trim())\n .filter(Boolean)\n .slice(0, 2);\n\n if (!words.length) {\n return 'UI';\n }\n\n return words.map((word) => word[0]?.toUpperCase() ?? '').join('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA4Da,sBAAsB,GAAG,IAAI,cAAc,CAAsB,wBAAwB;MAEzF,uBAAuB,GAAG,IAAI,cAAc,CAAuB,yBAAyB;AAwBzG,MAAM,mBAAmB,GAAG;IAC1B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE;IACzD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;IAClE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE;IAC/D,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;IAClE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE;IAC/D,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE;IACrE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE;IAC5D,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAA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QAAQ,EAAE,gBAAgB;oBAC1B,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,eAAe;AAC3B,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLT,EAAA,CAAA;AACF,iBAAA;;;ACrUD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-provider.mjs","sources":["../../../projects/angular/layout/provider/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-provider.mjs","sources":["../../../projects/angular/layout/provider/layout.provider.ts","../../../projects/angular/layout/provider/ojiepermana-angular-layout-provider.ts"],"sourcesContent":["import {\n inject,\n type EnvironmentProviders,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { THEME_PANEL_LAYOUT_PORT } from '@ojiepermana/angular/layout/component';\nimport { LayoutService } from '@ojiepermana/angular/layout/services';\nimport { MATERIAL_LAYOUT_CONFIG, type MaterialLayoutConfig } from '@ojiepermana/angular/layout/token';\n\nexport function provideMaterialLayout(config: MaterialLayoutConfig = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: MATERIAL_LAYOUT_CONFIG, useValue: config },\n { provide: THEME_PANEL_LAYOUT_PORT, useExisting: LayoutService },\n provideEnvironmentInitializer(() => {\n inject(LayoutService);\n }),\n ]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAUM,SAAU,qBAAqB,CAAC,MAAA,GAA+B,EAAE,EAAA;AACrE,IAAA,OAAO,wBAAwB,CAAC;AAC9B,QAAA,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,EAAE;AACrD,QAAA,EAAE,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,aAAa,EAAE;QAChE,6BAA6B,CAAC,MAAK;YACjC,MAAM,CAAC,aAAa,CAAC;AACvB,QAAA,CAAC,CAAC;AACH,KAAA,CAAC;AACJ;;AClBA;;AAEG;;;;"}
|
|
@@ -6,8 +6,10 @@ import { LAYOUT_WIDTHS, MATERIAL_LAYOUT_CONFIG, DEFAULT_MATERIAL_LAYOUT_CONFIG,
|
|
|
6
6
|
class LayoutService {
|
|
7
7
|
document = inject(DOCUMENT);
|
|
8
8
|
config = this.resolveConfig();
|
|
9
|
-
_mode = signal(this.readPersistedMode() ?? this.config.defaultMode,
|
|
10
|
-
|
|
9
|
+
_mode = signal(this.readPersistedMode() ?? this.config.defaultMode, /* @ts-ignore */
|
|
10
|
+
...(ngDevMode ? [{ debugName: "_mode" }] : /* istanbul ignore next */ []));
|
|
11
|
+
_width = signal(this.readPersistedWidth() ?? this.config.defaultWidth, /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "_width" }] : /* istanbul ignore next */ []));
|
|
11
13
|
mode = this._mode.asReadonly();
|
|
12
14
|
width = this._width.asReadonly();
|
|
13
15
|
constructor() {
|
|
@@ -98,10 +100,10 @@ class LayoutService {
|
|
|
98
100
|
/* ignore */
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
102
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
104
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, providedIn: 'root' });
|
|
103
105
|
}
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, decorators: [{
|
|
105
107
|
type: Injectable,
|
|
106
108
|
args: [{ providedIn: 'root' }]
|
|
107
109
|
}], ctorParameters: () => [] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-services.mjs","sources":["../../../projects/angular/layout/services/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-services.mjs","sources":["../../../projects/angular/layout/services/layout.service.ts","../../../projects/angular/layout/services/ojiepermana-angular-layout-services.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { Injectable, effect, inject, signal } from '@angular/core';\nimport {\n DEFAULT_MATERIAL_LAYOUT_CONFIG,\n LAYOUT_WIDTHS,\n MATERIAL_LAYOUT_CONFIG,\n isLayoutMode,\n normalizeLayoutWidth,\n type LayoutMode,\n type LayoutWidth,\n type ResolvedMaterialLayoutConfig,\n} from '@ojiepermana/angular/layout/token';\n\n@Injectable({ providedIn: 'root' })\nexport class LayoutService {\n private readonly document = inject(DOCUMENT);\n private readonly config = this.resolveConfig();\n\n private readonly _mode = signal<LayoutMode>(this.readPersistedMode() ?? this.config.defaultMode);\n private readonly _width = signal<LayoutWidth>(this.readPersistedWidth() ?? this.config.defaultWidth);\n\n readonly mode = this._mode.asReadonly();\n readonly width = this._width.asReadonly();\n\n constructor() {\n effect(() => {\n this.persistMode(this._mode());\n });\n\n effect(() => {\n this.persistWidth(this._width());\n });\n }\n\n setMode(mode: LayoutMode): void {\n this._mode.set(mode);\n }\n\n toggleMode(): void {\n this._mode.update((mode) => {\n if (mode === 'vertical') {\n return 'horizontal';\n }\n\n if (mode === 'horizontal') {\n return 'vertical';\n }\n\n return 'vertical';\n });\n }\n\n setWidth(width: LayoutWidth): void {\n this._width.set(width);\n }\n\n toggleWidth(): void {\n this._width.update((width) => {\n const currentIndex = LAYOUT_WIDTHS.indexOf(width);\n return LAYOUT_WIDTHS[(currentIndex + 1) % LAYOUT_WIDTHS.length] ?? LAYOUT_WIDTHS[0];\n });\n }\n\n private resolveConfig(): ResolvedMaterialLayoutConfig {\n const config = inject(MATERIAL_LAYOUT_CONFIG, { optional: true }) ?? {};\n const configuredMode = config.mode ?? config.defaultMode;\n const configuredWidth = config.width;\n\n return {\n defaultMode: isLayoutMode(configuredMode) ? configuredMode : DEFAULT_MATERIAL_LAYOUT_CONFIG.defaultMode,\n defaultWidth: normalizeLayoutWidth(configuredWidth) ?? DEFAULT_MATERIAL_LAYOUT_CONFIG.defaultWidth,\n storageKey: config.storageKey ?? DEFAULT_MATERIAL_LAYOUT_CONFIG.storageKey,\n widthStorageKey: config.widthStorageKey ?? DEFAULT_MATERIAL_LAYOUT_CONFIG.widthStorageKey,\n };\n }\n\n private readPersistedMode(): LayoutMode | null {\n const key = this.config.storageKey;\n if (!key) return null;\n try {\n const value = this.document.defaultView?.localStorage?.getItem(key);\n return isLayoutMode(value) ? value : null;\n } catch {\n return null;\n }\n }\n\n private readPersistedWidth(): LayoutWidth | null {\n const key = this.config.widthStorageKey;\n if (!key) return null;\n try {\n const value = this.document.defaultView?.localStorage?.getItem(key);\n return normalizeLayoutWidth(value);\n } catch {\n return null;\n }\n }\n\n private persistMode(mode: LayoutMode): void {\n const key = this.config.storageKey;\n if (!key) return;\n try {\n this.document.defaultView?.localStorage?.setItem(key, mode);\n } catch {\n /* ignore */\n }\n }\n\n private persistWidth(width: LayoutWidth): void {\n const key = this.config.widthStorageKey;\n if (!key) return;\n try {\n this.document.defaultView?.localStorage?.setItem(key, width);\n } catch {\n /* ignore */\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";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;;;ACblC;;AAEG;;;;"}
|
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class ShellPagesComponent {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ShellPagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: ShellPagesComponent, isStandalone: true, selector: "shell-pages", host: { classAttribute: "block h-full min-h-0" }, ngImport: i0, template: `
|
|
7
7
|
<div class="flex h-full flex-col overflow-hidden">
|
|
8
8
|
<header class="flex h-12 min-w-0 shrink-0 items-center gap-2 border-b border-primary/30 px-2">
|
|
9
9
|
<ng-content select="[shell-pages-header]" />
|
|
@@ -19,7 +19,7 @@ class ShellPagesComponent {
|
|
|
19
19
|
</div>
|
|
20
20
|
`, isInline: true, styles: ["footer:empty{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ShellPagesComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{ selector: 'shell-pages', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
25
25
|
class: 'block h-full min-h-0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-shell.mjs","sources":["../../../projects/angular/layout/shell/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-shell.mjs","sources":["../../../projects/angular/layout/shell/shell-pages.ts","../../../projects/angular/layout/shell/ojiepermana-angular-layout-shell.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'shell-pages',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'block h-full min-h-0',\n },\n template: `\n <div class=\"flex h-full flex-col overflow-hidden\">\n <header class=\"flex h-12 min-w-0 shrink-0 items-center gap-2 border-b border-primary/30 px-2\">\n <ng-content select=\"[shell-pages-header]\" />\n </header>\n\n <main class=\"min-h-0 flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-primary scrollbar-track-primary/10\">\n <ng-content select=\"[shell-pages-main]\" />\n </main>\n\n <footer class=\"flex h-12 min-w-0 shrink-0 items-center gap-2 border-t border-primary/30 px-2\">\n <ng-content select=\"[shell-pages-footer]\" />\n </footer>\n </div>\n `,\n styles: `\n footer:empty {\n display: none;\n }\n `,\n})\nexport class ShellPagesComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MA6Ba,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,sBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EArBpB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAOU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA3B/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,eAAA,EACN,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,KAAK,EAAE,sBAAsB;qBAC9B,EAAA,QAAA,EACS;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,CAAA,EAAA;;;ACtBH;;AAEG;;;;"}
|
|
@@ -5,13 +5,16 @@ import { LayoutService } from '@ojiepermana/angular/layout/services';
|
|
|
5
5
|
|
|
6
6
|
class LayoutProfilePopoverDefaultsDirective {
|
|
7
7
|
layout = inject(LayoutService);
|
|
8
|
-
side = computed(() => (this.layout.mode() === 'horizontal' ? 'bottom' : 'right'),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
side = computed(() => (this.layout.mode() === 'horizontal' ? 'bottom' : 'right'), /* @ts-ignore */
|
|
9
|
+
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
10
|
+
align = computed(() => 'end', /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
12
|
+
sideOffset = computed(() => (this.layout.mode() === 'horizontal' ? -20 : 12), /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutProfilePopoverDefaultsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: LayoutProfilePopoverDefaultsDirective, isStandalone: true, selector: "[ui-layout-profile][uiPopoverTrigger]", providers: [{ provide: POPOVER_TRIGGER_DEFAULTS, useExisting: LayoutProfilePopoverDefaultsDirective }], ngImport: i0 });
|
|
13
16
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutProfilePopoverDefaultsDirective, decorators: [{
|
|
15
18
|
type: Directive,
|
|
16
19
|
args: [{
|
|
17
20
|
selector: '[ui-layout-profile][uiPopoverTrigger]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-token-directive.mjs","sources":["../../../projects/angular/layout/token/directive/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-token-directive.mjs","sources":["../../../projects/angular/layout/token/directive/layout-profile-popover-defaults.directive.ts","../../../projects/angular/layout/token/directive/ojiepermana-angular-layout-token-directive.ts"],"sourcesContent":["import { Directive, computed, inject } from '@angular/core';\nimport {\n POPOVER_TRIGGER_DEFAULTS,\n type PopoverAlign,\n type PopoverSide,\n type PopoverTriggerDefaults,\n} from '@ojiepermana/angular/component/popover';\nimport { LayoutService } from '@ojiepermana/angular/layout/services';\n\n@Directive({\n selector: '[ui-layout-profile][uiPopoverTrigger]',\n providers: [{ provide: POPOVER_TRIGGER_DEFAULTS, useExisting: LayoutProfilePopoverDefaultsDirective }],\n})\nexport class LayoutProfilePopoverDefaultsDirective implements PopoverTriggerDefaults {\n private readonly layout = inject(LayoutService);\n\n readonly side = computed<PopoverSide>(() => (this.layout.mode() === 'horizontal' ? 'bottom' : 'right'));\n readonly align = computed<PopoverAlign>(() => 'end');\n readonly sideOffset = computed(() => (this.layout.mode() === 'horizontal' ? -20 : 12));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAaa,qCAAqC,CAAA;AAC/B,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAEtC,IAAI,GAAG,QAAQ,CAAc,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;6EAAC;AAC9F,IAAA,KAAK,GAAG,QAAQ,CAAe,MAAM,KAAK;8EAAC;IAC3C,UAAU,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,YAAY,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;mFAAC;uGAL3E,qCAAqC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAArC,qCAAqC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,SAAA,EAFrC,CAAC,EAAE,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAE3F,qCAAqC,EAAA,UAAA,EAAA,CAAA;kBAJjD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uCAAuC;oBACjD,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAA,qCAAuC,EAAE,CAAC;AACvG,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-token.mjs","sources":["../../../projects/angular/layout/token/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-token.mjs","sources":["../../../projects/angular/layout/token/layout.tokens.ts","../../../projects/angular/layout/token/ojiepermana-angular-layout-token.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const LAYOUT_MODES = ['vertical', 'horizontal', 'empty'] as const;\n\nexport type LayoutMode = (typeof LAYOUT_MODES)[number];\n\nexport const LAYOUT_WIDTHS = ['full', 'container', 'wide'] as const;\n\nexport type LayoutWidth = (typeof LAYOUT_WIDTHS)[number];\n\n/** @deprecated Use `container` instead. */\nexport type LegacyLayoutWidth = 'fixed';\n\nexport type ConfiguredLayoutWidth = LayoutWidth | LegacyLayoutWidth;\n\nexport interface MaterialLayoutConfig {\n /** Initial layout mode. */\n readonly mode?: LayoutMode;\n /** Initial layout width. */\n readonly width?: ConfiguredLayoutWidth;\n /** @deprecated Use `mode` instead. */\n /** Initial layout mode. Defaults to `vertical`. */\n readonly defaultMode?: LayoutMode;\n /** localStorage key used to persist the layout mode. Set to `null` to disable persistence. */\n readonly storageKey?: string | null;\n /** localStorage key used to persist the layout width. Set to `null` to disable persistence. */\n readonly widthStorageKey?: string | null;\n}\n\nexport interface ResolvedMaterialLayoutConfig {\n readonly defaultMode: LayoutMode;\n readonly defaultWidth: LayoutWidth;\n readonly storageKey: string | null;\n readonly widthStorageKey: string | null;\n}\n\nexport const MATERIAL_LAYOUT_CONFIG = new InjectionToken<MaterialLayoutConfig>('MATERIAL_LAYOUT_CONFIG');\n\nexport const DEFAULT_MATERIAL_LAYOUT_CONFIG: ResolvedMaterialLayoutConfig = {\n defaultMode: 'vertical',\n defaultWidth: 'wide',\n storageKey: 'layout-mode',\n widthStorageKey: 'layout-width',\n};\n\nexport function isLayoutMode(value: string | null | undefined): value is LayoutMode {\n return LAYOUT_MODES.some((mode) => mode === value);\n}\n\nexport function isLayoutWidth(value: string | null | undefined): value is LayoutWidth {\n return LAYOUT_WIDTHS.some((width) => width === value);\n}\n\nexport function normalizeLayoutWidth(value: string | null | undefined): LayoutWidth | null {\n if (isLayoutWidth(value)) {\n return value;\n }\n\n if (value === 'fixed') {\n return 'container';\n }\n\n return null;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAEO,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO;AAIvD,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM;MA8B5C,sBAAsB,GAAG,IAAI,cAAc,CAAuB,wBAAwB;AAEhG,MAAM,8BAA8B,GAAiC;AAC1E,IAAA,WAAW,EAAE,UAAU;AACvB,IAAA,YAAY,EAAE,MAAM;AACpB,IAAA,UAAU,EAAE,aAAa;AACzB,IAAA,eAAe,EAAE,cAAc;;AAG3B,SAAU,YAAY,CAAC,KAAgC,EAAA;AAC3D,IAAA,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,KAAK,KAAK,CAAC;AACpD;AAEM,SAAU,aAAa,CAAC,KAAgC,EAAA;AAC5D,IAAA,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,CAAC;AACvD;AAEM,SAAU,oBAAoB,CAAC,KAAgC,EAAA;AACnE,IAAA,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE;AACxB,QAAA,OAAO,KAAK;IACd;AAEA,IAAA,IAAI,KAAK,KAAK,OAAO,EAAE;AACrB,QAAA,OAAO,WAAW;IACpB;AAEA,IAAA,OAAO,IAAI;AACb;;AC/DA;;AAEG;;;;"}
|
package/fesm2022/{ojiepermana-angular-layout-empty.mjs → ojiepermana-angular-layout-type-empty.mjs}
RENAMED
|
@@ -17,14 +17,14 @@ import { RouterOutlet } from '@angular/router';
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
class EmptyLayoutComponent {
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EmptyLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: EmptyLayoutComponent, isStandalone: true, selector: "empty", host: { classAttribute: "flex min-h-dvh w-full items-center justify-center bg-background p-6 text-foreground" }, ngImport: i0, template: `
|
|
22
22
|
<main class="w-full max-w-sm">
|
|
23
23
|
<router-outlet />
|
|
24
24
|
</main>
|
|
25
25
|
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EmptyLayoutComponent, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: 'empty',
|
|
@@ -46,4 +46,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
48
|
export { EmptyLayoutComponent };
|
|
49
|
-
//# sourceMappingURL=ojiepermana-angular-layout-empty.mjs.map
|
|
49
|
+
//# sourceMappingURL=ojiepermana-angular-layout-type-empty.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-type-empty.mjs","sources":["../../../projects/angular/layout/type/empty/empty.component.ts","../../../projects/angular/layout/type/empty/ojiepermana-angular-layout-type-empty.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n/**\n * Empty layout — full-viewport, flex-centered main.\n *\n * Cocok untuk halaman login / error / onboarding (pola shadcn `login-05`).\n * Konten dirender lewat `<router-outlet>`; consumer men-style card / form\n * milik halaman route sendiri.\n *\n * Markup:\n * ```html\n * <empty>\n * <!-- router-outlet dirender oleh komponen -->\n * </empty>\n * ```\n */\n@Component({\n selector: 'empty',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [RouterOutlet],\n host: {\n class: 'flex min-h-dvh w-full items-center justify-center bg-background p-6 text-foreground',\n },\n template: `\n <main class=\"w-full max-w-sm\">\n <router-outlet />\n </main>\n `,\n})\nexport class EmptyLayoutComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;AAaG;MAcU,oBAAoB,CAAA;uGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,OAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,qFAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EANrB;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EARS,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAUX,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,OAAO;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,qFAAqF;AAC7F,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;AAIT,EAAA,CAAA;AACF,iBAAA;;;AC7BD;;AAEG;;;;"}
|
|
@@ -22,14 +22,20 @@ import { ThemeService } from '@ojiepermana/angular/theme';
|
|
|
22
22
|
class HorizontalLayoutComponent {
|
|
23
23
|
layout = inject(LayoutService);
|
|
24
24
|
theme = inject(ThemeService);
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
topbarVariant = input('default', /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "topbarVariant" }] : /* istanbul ignore next */ []));
|
|
27
|
+
ariaLabel = input('Primary', /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
27
29
|
layoutWidth = this.layout.width;
|
|
28
30
|
themeStyle = this.theme.style;
|
|
29
|
-
isConstrainedWidth = computed(() => this.layoutWidth() !== 'full',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
isConstrainedWidth = computed(() => this.layoutWidth() !== 'full', /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "isConstrainedWidth" }] : /* istanbul ignore next */ []));
|
|
33
|
+
isWideWidth = computed(() => this.layoutWidth() === 'wide', /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "isWideWidth" }] : /* istanbul ignore next */ []));
|
|
35
|
+
shellBorderWidth = computed(() => (this.isConstrainedWidth() ? 'var(--border-width)' : null), /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "shellBorderWidth" }] : /* istanbul ignore next */ []));
|
|
37
|
+
dividerBorderWidth = computed(() => 'var(--border-width)', /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "dividerBorderWidth" }] : /* istanbul ignore next */ []));
|
|
33
39
|
hostClasses = computed(() => {
|
|
34
40
|
const classes = ['block', 'h-dvh', 'w-full', 'overflow-hidden', 'text-foreground'];
|
|
35
41
|
if (this.isConstrainedWidth()) {
|
|
@@ -39,14 +45,16 @@ class HorizontalLayoutComponent {
|
|
|
39
45
|
classes.push('bg-background');
|
|
40
46
|
}
|
|
41
47
|
return classes.join(' ');
|
|
42
|
-
},
|
|
48
|
+
}, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
43
50
|
frameClasses = computed(() => {
|
|
44
51
|
const classes = ['flex', 'h-full', 'w-full', 'flex-col', 'overflow-hidden', 'bg-background'];
|
|
45
52
|
if (this.isConstrainedWidth()) {
|
|
46
53
|
classes.push('lg:border', 'lg:border-primary/30', 'lg:rounded-lg', 'lg:shadow-sm');
|
|
47
54
|
}
|
|
48
55
|
return classes.join(' ');
|
|
49
|
-
},
|
|
56
|
+
}, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "frameClasses" }] : /* istanbul ignore next */ []));
|
|
50
58
|
mainClasses = computed(() => {
|
|
51
59
|
const classes = ['min-w-0', 'flex-1', 'overflow-auto'];
|
|
52
60
|
if (this.layoutWidth() === 'container') {
|
|
@@ -56,14 +64,15 @@ class HorizontalLayoutComponent {
|
|
|
56
64
|
classes.push('mx-auto', 'w-full', 'max-w-screen-2xl');
|
|
57
65
|
}
|
|
58
66
|
return classes.join(' ');
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
static
|
|
67
|
+
}, /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "mainClasses" }] : /* istanbul ignore next */ []));
|
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HorizontalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: HorizontalLayoutComponent, isStandalone: true, selector: "horizontal", inputs: { topbarVariant: { classPropertyName: "topbarVariant", publicName: "topbarVariant", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.data-layout-width": "layoutWidth()", "attr.data-style": "themeStyle()" } }, ngImport: i0, template: `
|
|
62
71
|
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
63
72
|
<topbar
|
|
64
73
|
class="w-full shrink-0 border-b border-border"
|
|
65
74
|
[style.border-bottom-width]="dividerBorderWidth()"
|
|
66
|
-
[
|
|
75
|
+
[variant]="topbarVariant()"
|
|
67
76
|
[ariaLabel]="ariaLabel()">
|
|
68
77
|
<div topbar-start class="flex min-w-0 items-center">
|
|
69
78
|
<ng-content select="[ui-layout-brand],[topbar-start]" />
|
|
@@ -76,9 +85,9 @@ class HorizontalLayoutComponent {
|
|
|
76
85
|
<router-outlet />
|
|
77
86
|
</main>
|
|
78
87
|
</div>
|
|
79
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: TopbarComponent, selector: "topbar", inputs: ["items", "navigationId", "
|
|
88
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: TopbarComponent, selector: "topbar", inputs: ["items", "navigationId", "variant", "ariaLabel", "class", "autoRegister", "showHamburger", "hamburgerLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
80
89
|
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HorizontalLayoutComponent, decorators: [{
|
|
82
91
|
type: Component,
|
|
83
92
|
args: [{
|
|
84
93
|
selector: 'horizontal',
|
|
@@ -94,7 +103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
94
103
|
<topbar
|
|
95
104
|
class="w-full shrink-0 border-b border-border"
|
|
96
105
|
[style.border-bottom-width]="dividerBorderWidth()"
|
|
97
|
-
[
|
|
106
|
+
[variant]="topbarVariant()"
|
|
98
107
|
[ariaLabel]="ariaLabel()">
|
|
99
108
|
<div topbar-start class="flex min-w-0 items-center">
|
|
100
109
|
<ng-content select="[ui-layout-brand],[topbar-start]" />
|
|
@@ -109,11 +118,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
109
118
|
</div>
|
|
110
119
|
`,
|
|
111
120
|
}]
|
|
112
|
-
}], propDecorators: {
|
|
121
|
+
}], propDecorators: { topbarVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "topbarVariant", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
113
122
|
|
|
114
123
|
/**
|
|
115
124
|
* Generated bundle index. Do not edit.
|
|
116
125
|
*/
|
|
117
126
|
|
|
118
127
|
export { HorizontalLayoutComponent };
|
|
119
|
-
//# sourceMappingURL=ojiepermana-angular-layout-horizontal.mjs.map
|
|
128
|
+
//# sourceMappingURL=ojiepermana-angular-layout-type-horizontal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-layout-type-horizontal.mjs","sources":["../../../projects/angular/layout/type/horizontal/horizontal.component.ts","../../../projects/angular/layout/type/horizontal/ojiepermana-angular-layout-type-horizontal.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport { LayoutService } from '@ojiepermana/angular/layout/services';\nimport { TopbarComponent } from '@ojiepermana/angular/navigation/topbar';\nimport type { TopbarVariant } from '@ojiepermana/angular/navigation/types';\nimport { ThemeService } from '@ojiepermana/angular/theme';\n\n/**\n * Horizontal layout — themed topbar + main (scrollable).\n *\n * Data navigasi diambil dari `NavigationService`.\n * Consumer app dapat memproyeksikan brand kiri dan profile kanan.\n *\n * Markup:\n * ```html\n * <horizontal>\n * <a ui-layout-brand>Brand</a>\n * <button ui-layout-profile type=\"button\">Profile</button>\n * </horizontal>\n * ```\n */\n@Component({\n selector: 'horizontal',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [RouterOutlet, TopbarComponent],\n host: {\n '[class]': 'hostClasses()',\n '[attr.data-layout-width]': 'layoutWidth()',\n '[attr.data-style]': 'themeStyle()',\n },\n template: `\n <div [class]=\"frameClasses()\" [style.border-width]=\"shellBorderWidth()\">\n <topbar\n class=\"w-full shrink-0 border-b border-border\"\n [style.border-bottom-width]=\"dividerBorderWidth()\"\n [variant]=\"topbarVariant()\"\n [ariaLabel]=\"ariaLabel()\">\n <div topbar-start class=\"flex min-w-0 items-center\">\n <ng-content select=\"[ui-layout-brand],[topbar-start]\" />\n </div>\n <div topbar-end class=\"flex min-w-0 items-center\">\n <ng-content select=\"[ui-layout-profile],[topbar-end]\" />\n </div>\n </topbar>\n <main [class]=\"mainClasses()\">\n <router-outlet />\n </main>\n </div>\n `,\n})\nexport class HorizontalLayoutComponent {\n private readonly layout = inject(LayoutService);\n private readonly theme = inject(ThemeService);\n\n readonly topbarVariant = input<TopbarVariant>('default');\n readonly ariaLabel = input<string>('Primary');\n\n protected readonly layoutWidth = this.layout.width;\n protected readonly themeStyle = this.theme.style;\n protected readonly isConstrainedWidth = computed(() => this.layoutWidth() !== 'full');\n protected readonly isWideWidth = computed(() => this.layoutWidth() === 'wide');\n protected readonly shellBorderWidth = computed(() => (this.isConstrainedWidth() ? 'var(--border-width)' : null));\n protected readonly dividerBorderWidth = computed(() => 'var(--border-width)');\n\n protected readonly hostClasses = computed(() => {\n const classes = ['block', 'h-dvh', 'w-full', 'overflow-hidden', 'text-foreground'];\n if (this.isConstrainedWidth()) {\n classes.push('bg-primary/10', 'box-border', 'lg:p-8');\n } else {\n classes.push('bg-background');\n }\n return classes.join(' ');\n });\n\n protected readonly frameClasses = computed(() => {\n const classes = ['flex', 'h-full', 'w-full', 'flex-col', 'overflow-hidden', 'bg-background'];\n if (this.isConstrainedWidth()) {\n classes.push('lg:border', 'lg:border-primary/30', 'lg:rounded-lg', 'lg:shadow-sm');\n }\n return classes.join(' ');\n });\n\n protected readonly mainClasses = computed(() => {\n const classes = ['min-w-0', 'flex-1', 'overflow-auto'];\n if (this.layoutWidth() === 'container') {\n classes.push('mx-auto', 'w-full', 'max-w-7xl');\n } else if (this.isWideWidth()) {\n classes.push('mx-auto', 'w-full', 'max-w-screen-2xl');\n }\n return classes.join(' ');\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;;;;;;;;;;;;;AAaG;MA8BU,yBAAyB,CAAA;AACnB,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AAC9B,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;IAEpC,aAAa,GAAG,KAAK,CAAgB,SAAS;sFAAC;IAC/C,SAAS,GAAG,KAAK,CAAS,SAAS;kFAAC;AAE1B,IAAA,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK;AAC/B,IAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;IAC7B,kBAAkB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM;2FAAC;IAClE,WAAW,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM;oFAAC;AAC3D,IAAA,gBAAgB,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,kBAAkB,EAAE,GAAG,qBAAqB,GAAG,IAAI,CAAC;yFAAC;AAC7F,IAAA,kBAAkB,GAAG,Q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