@ojiepermana/angular 22.0.1 → 22.0.29
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 +61 -311
- package/fesm2022/ojiepermana-angular-chart.mjs +10 -0
- package/fesm2022/ojiepermana-angular-component.mjs +10 -0
- package/fesm2022/ojiepermana-angular-navigation.mjs +10 -0
- package/fesm2022/ojiepermana-angular-sdk.mjs +10 -0
- package/fesm2022/ojiepermana-angular-theme.mjs +4 -384
- package/fesm2022/ojiepermana-angular.mjs +15 -16
- package/package.json +25 -425
- package/types/ojiepermana-angular-chart.d.ts +1 -0
- package/types/ojiepermana-angular-component.d.ts +1 -0
- package/types/ojiepermana-angular-navigation.d.ts +1 -0
- package/types/ojiepermana-angular-sdk.d.ts +1 -0
- package/types/ojiepermana-angular-theme.d.ts +1 -116
- package/types/ojiepermana-angular.d.ts +5 -3
- package/.npmignore +0 -2
- package/collection.json +0 -30
- package/component/accordion/README.md +0 -195
- package/component/accordion/package.json +0 -4
- package/component/alert/README.md +0 -182
- package/component/alert/package.json +0 -4
- package/component/alert-dialog/README.md +0 -239
- package/component/alert-dialog/package.json +0 -4
- package/component/aspect-ratio/README.md +0 -112
- package/component/aspect-ratio/package.json +0 -4
- package/component/avatar/README.md +0 -176
- package/component/avatar/package.json +0 -4
- package/component/badge/README.md +0 -133
- package/component/badge/package.json +0 -4
- package/component/breadcrumb/README.md +0 -216
- package/component/breadcrumb/package.json +0 -4
- package/component/button/README.md +0 -139
- package/component/button/package.json +0 -4
- package/component/button-group/README.md +0 -208
- package/component/button-group/package.json +0 -4
- package/component/calendar/README.md +0 -132
- package/component/calendar/package.json +0 -4
- package/component/card/README.md +0 -220
- package/component/card/package.json +0 -4
- package/component/carousel/README.md +0 -276
- package/component/carousel/package.json +0 -4
- package/component/chart/README.md +0 -249
- package/component/chart/area/package.json +0 -4
- package/component/chart/bar/package.json +0 -4
- package/component/chart/line/package.json +0 -4
- package/component/chart/package.json +0 -4
- package/component/chart/pie/package.json +0 -4
- package/component/chart/radar/package.json +0 -4
- package/component/chart/radial/package.json +0 -4
- package/component/chart/scatter/package.json +0 -4
- package/component/checkbox/README.md +0 -149
- package/component/checkbox/package.json +0 -4
- package/component/collapsible/README.md +0 -195
- package/component/collapsible/package.json +0 -4
- package/component/combobox/README.md +0 -198
- package/component/combobox/package.json +0 -4
- package/component/command/README.md +0 -275
- package/component/command/package.json +0 -4
- package/component/composer/README.md +0 -235
- package/component/composer/package.json +0 -4
- package/component/context-menu/README.md +0 -267
- package/component/context-menu/package.json +0 -4
- package/component/date-picker/README.md +0 -177
- package/component/date-picker/package.json +0 -4
- package/component/dialog/README.md +0 -237
- package/component/dialog/package.json +0 -4
- package/component/drawer/README.md +0 -145
- package/component/drawer/package.json +0 -4
- package/component/dropdown-menu/README.md +0 -311
- package/component/dropdown-menu/package.json +0 -4
- package/component/editor/README.md +0 -136
- package/component/editor/package.json +0 -4
- package/component/empty/README.md +0 -183
- package/component/empty/package.json +0 -4
- package/component/form/README.md +0 -210
- package/component/form/package.json +0 -4
- package/component/hover-card/README.md +0 -146
- package/component/hover-card/package.json +0 -4
- package/component/input/README.md +0 -159
- package/component/input/package.json +0 -4
- package/component/input-group/README.md +0 -239
- package/component/input-group/package.json +0 -4
- package/component/input-otp/README.md +0 -278
- package/component/input-otp/package.json +0 -4
- package/component/item/README.md +0 -247
- package/component/item/package.json +0 -4
- package/component/kanban/README.md +0 -81
- package/component/kanban/package.json +0 -4
- package/component/kbd/README.md +0 -139
- package/component/kbd/package.json +0 -4
- package/component/label/README.md +0 -136
- package/component/label/package.json +0 -4
- package/component/menubar/README.md +0 -269
- package/component/menubar/package.json +0 -4
- package/component/native-select/README.md +0 -176
- package/component/native-select/package.json +0 -4
- package/component/navigation-menu/README.md +0 -160
- package/component/navigation-menu/package.json +0 -4
- package/component/pagination/README.md +0 -144
- package/component/pagination/package.json +0 -4
- package/component/pillbox/README.md +0 -67
- package/component/pillbox/package.json +0 -4
- package/component/popover/README.md +0 -43
- package/component/popover/package.json +0 -4
- package/component/progress/README.md +0 -160
- package/component/progress/package.json +0 -4
- package/component/radio/README.md +0 -209
- package/component/radio/package.json +0 -4
- package/component/resizable/README.md +0 -168
- package/component/resizable/package.json +0 -4
- package/component/scroll-area/README.md +0 -143
- package/component/scroll-area/package.json +0 -4
- package/component/select/README.md +0 -174
- package/component/select/package.json +0 -4
- package/component/separator/README.md +0 -170
- package/component/separator/package.json +0 -4
- package/component/sheet/README.md +0 -183
- package/component/sheet/package.json +0 -4
- package/component/skeleton/README.md +0 -158
- package/component/skeleton/package.json +0 -4
- package/component/slider/README.md +0 -207
- package/component/slider/package.json +0 -4
- package/component/spinner/README.md +0 -160
- package/component/spinner/package.json +0 -4
- package/component/switch/README.md +0 -166
- package/component/switch/package.json +0 -4
- package/component/table/README.md +0 -291
- package/component/table/package.json +0 -4
- package/component/tabs/README.md +0 -219
- package/component/tabs/package.json +0 -4
- package/component/textarea/README.md +0 -154
- package/component/textarea/package.json +0 -4
- package/component/timeline/README.md +0 -94
- package/component/timeline/package.json +0 -4
- package/component/toast/README.md +0 -321
- package/component/toast/package.json +0 -4
- package/component/toggle/README.md +0 -131
- package/component/toggle/package.json +0 -4
- package/component/toggle-group/README.md +0 -206
- package/component/toggle-group/package.json +0 -4
- package/component/tooltip/README.md +0 -211
- package/component/tooltip/package.json +0 -4
- package/component/utils/package.json +0 -4
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -189
- package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -276
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -99
- package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -37
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -139
- package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -50
- package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -200
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -103
- package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-button.mjs +0 -68
- package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -88
- package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-card.mjs +0 -152
- package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -334
- package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3925
- package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -114
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -124
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -272
- package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-command.mjs +0 -293
- package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-composer.mjs +0 -352
- package/fesm2022/ojiepermana-angular-component-composer.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -103
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -170
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -279
- package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
- package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -492
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-editor.mjs +0 -717
- package/fesm2022/ojiepermana-angular-component-editor.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-empty.mjs +0 -145
- package/fesm2022/ojiepermana-angular-component-empty.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-form.mjs +0 -366
- package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +0 -297
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -179
- package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +0 -514
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-input.mjs +0 -45
- package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-item.mjs +0 -264
- package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +0 -314
- package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +0 -55
- package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-label.mjs +0 -33
- package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +0 -308
- package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +0 -67
- package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +0 -413
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -226
- package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +0 -812
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -169
- package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -60
- package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -122
- package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +0 -481
- package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -54
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +0 -176
- package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -37
- package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -284
- package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -31
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -423
- package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +0 -60
- package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -116
- package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-table.mjs +0 -155
- package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -272
- package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -39
- package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +0 -237
- package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -71
- package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +0 -289
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +0 -82
- package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -354
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
- package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
- package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -602
- package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
- package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -116
- package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
- package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -30
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
- package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +0 -49
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +0 -128
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +0 -123
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout.mjs +0 -485
- package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -63
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -559
- package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -213
- package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -401
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -670
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
- package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
- package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -294
- package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
- package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular.mjs.map +0 -1
- package/generator/api/README.md +0 -252
- package/generator/api/bin/package.json +0 -3
- package/generator/api/bin/schematics/init/index.js +0 -90
- package/generator/api/bin/schematics/ng-add/index.js +0 -131
- package/generator/api/bin/schematics/sdk/index.js +0 -76
- package/generator/api/bin/src/config/loader.js +0 -41
- package/generator/api/bin/src/config/schema.js +0 -57
- package/generator/api/bin/src/emit/client.js +0 -248
- package/generator/api/bin/src/emit/metadata.js +0 -295
- package/generator/api/bin/src/emit/models.js +0 -106
- package/generator/api/bin/src/emit/navigation.js +0 -56
- package/generator/api/bin/src/emit/operations.js +0 -122
- package/generator/api/bin/src/emit/public-api.js +0 -54
- package/generator/api/bin/src/emit/services.js +0 -87
- package/generator/api/bin/src/engine.js +0 -65
- package/generator/api/bin/src/layout/per-domain.js +0 -359
- package/generator/api/bin/src/parser/bundle.js +0 -25
- package/generator/api/bin/src/parser/ir.js +0 -320
- package/generator/api/bin/src/parser/types.js +0 -7
- package/generator/api/bin/src/render/template.js +0 -58
- package/generator/api/bin/src/writer/index.js +0 -278
- package/generator/api/package.json +0 -4
- package/generator/api/schematics/init/schema.json +0 -19
- package/generator/api/schematics/ng-add/schema.json +0 -14
- package/generator/api/schematics/sdk/schema.json +0 -19
- package/generator/api/sdk.config.example.json +0 -24
- package/generator/guide/README.md +0 -84
- package/generator/guide/bin/package.json +0 -3
- package/generator/guide/bin/schematics/build/index.js +0 -36
- package/generator/guide/bin/schematics/init/index.js +0 -70
- package/generator/guide/bin/src/config/loader.js +0 -50
- package/generator/guide/bin/src/config/schema.js +0 -12
- package/generator/guide/bin/src/engine/component.js +0 -74
- package/generator/guide/bin/src/engine/frontmatter.js +0 -42
- package/generator/guide/bin/src/engine/index.js +0 -42
- package/generator/guide/bin/src/engine/naming.js +0 -39
- package/generator/guide/bin/src/engine/render.js +0 -36
- package/generator/guide/bin/src/engine/routes.js +0 -106
- package/generator/guide/bin/src/engine/walk.js +0 -35
- package/generator/guide/guide.config.example.json +0 -9
- package/generator/guide/schematics/build/schema.json +0 -14
- package/generator/guide/schematics/init/schema.json +0 -19
- package/layout/component/package.json +0 -4
- package/layout/package.json +0 -4
- package/layout/provider/package.json +0 -4
- package/layout/services/package.json +0 -4
- package/layout/shell/package.json +0 -4
- package/layout/token/directive/package.json +0 -4
- package/layout/token/package.json +0 -4
- package/layout/type/empty/package.json +0 -4
- package/layout/type/horizontal/package.json +0 -4
- package/layout/type/vertical/package.json +0 -4
- package/navigation/demo-data/package.json +0 -4
- package/navigation/icon/package.json +0 -4
- package/navigation/item/package.json +0 -4
- package/navigation/service/package.json +0 -4
- package/navigation/sidebar/package.json +0 -4
- package/navigation/topbar/README.md +0 -196
- package/navigation/topbar/package.json +0 -4
- package/navigation/types/package.json +0 -4
- package/theme/README.md +0 -174
- package/theme/package.json +0 -4
- package/theme/provider/package.json +0 -4
- package/theme/services/package.json +0 -4
- package/theme/styles/foundation/components.css +0 -81
- package/theme/styles/foundation/layers.css +0 -15
- package/theme/styles/foundation/tokens.css +0 -55
- package/theme/styles/index.css +0 -37
- package/theme/styles/integrations/material/autocomplete.css +0 -178
- package/theme/styles/integrations/material/button.css +0 -468
- package/theme/styles/integrations/material/dialog.css +0 -152
- package/theme/styles/integrations/material/select.css +0 -175
- package/theme/styles/integrations/material/slide-toggle.css +0 -234
- package/theme/styles/integrations/material/slider.css +0 -194
- package/theme/styles/integrations/material/tabs.css +0 -229
- package/theme/styles/integrations/material.css +0 -264
- package/theme/styles/integrations/tailwind.css +0 -114
- package/theme/styles/variants/color/amber.css +0 -31
- package/theme/styles/variants/color/base.css +0 -36
- package/theme/styles/variants/color/blue.css +0 -31
- package/theme/styles/variants/color/cyan.css +0 -31
- package/theme/styles/variants/color/emerald.css +0 -31
- package/theme/styles/variants/color/fuchsia.css +0 -31
- package/theme/styles/variants/color/green.css +0 -31
- package/theme/styles/variants/color/index.css +0 -22
- package/theme/styles/variants/color/indigo.css +0 -31
- package/theme/styles/variants/color/lime.css +0 -31
- package/theme/styles/variants/color/orange.css +0 -31
- package/theme/styles/variants/color/pink.css +0 -31
- package/theme/styles/variants/color/purple.css +0 -31
- package/theme/styles/variants/color/red.css +0 -31
- package/theme/styles/variants/color/rose.css +0 -31
- package/theme/styles/variants/color/sky.css +0 -31
- package/theme/styles/variants/color/teal.css +0 -31
- package/theme/styles/variants/color/violet.css +0 -31
- package/theme/styles/variants/color/yellow.css +0 -31
- package/theme/styles/variants/mode/dark.css +0 -20
- package/theme/styles/variants/mode/index.css +0 -6
- package/theme/styles/variants/mode/light.css +0 -24
- package/theme/styles/variants/style/brutal.css +0 -50
- package/theme/styles/variants/style/default.css +0 -54
- package/theme/styles/variants/style/index.css +0 -8
- package/theme/styles/variants/style/sharp.css +0 -50
- package/theme/styles/variants/style/soft.css +0 -50
- package/theme/token/package.json +0 -4
- package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
- package/types/ojiepermana-angular-component-alert.d.ts +0 -37
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
- package/types/ojiepermana-angular-component-badge.d.ts +0 -19
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
- package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
- package/types/ojiepermana-angular-component-button.d.ts +0 -22
- package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
- package/types/ojiepermana-angular-component-card.d.ts +0 -60
- package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
- package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
- package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
- package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
- package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
- package/types/ojiepermana-angular-component-combobox.d.ts +0 -50
- package/types/ojiepermana-angular-component-command.d.ts +0 -99
- package/types/ojiepermana-angular-component-composer.d.ts +0 -90
- package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
- package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
- package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
- package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -137
- package/types/ojiepermana-angular-component-editor.d.ts +0 -123
- package/types/ojiepermana-angular-component-empty.d.ts +0 -50
- package/types/ojiepermana-angular-component-form.d.ts +0 -141
- package/types/ojiepermana-angular-component-hover-card.d.ts +0 -74
- package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
- package/types/ojiepermana-angular-component-input-otp.d.ts +0 -136
- package/types/ojiepermana-angular-component-input.d.ts +0 -16
- package/types/ojiepermana-angular-component-item.d.ts +0 -88
- package/types/ojiepermana-angular-component-kanban.d.ts +0 -70
- package/types/ojiepermana-angular-component-kbd.d.ts +0 -16
- package/types/ojiepermana-angular-component-label.d.ts +0 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +0 -67
- package/types/ojiepermana-angular-component-native-select.d.ts +0 -26
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +0 -96
- package/types/ojiepermana-angular-component-pagination.d.ts +0 -33
- package/types/ojiepermana-angular-component-pillbox.d.ts +0 -157
- package/types/ojiepermana-angular-component-popover.d.ts +0 -43
- package/types/ojiepermana-angular-component-progress.d.ts +0 -17
- package/types/ojiepermana-angular-component-radio.d.ts +0 -40
- package/types/ojiepermana-angular-component-resizable.d.ts +0 -99
- package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
- package/types/ojiepermana-angular-component-select.d.ts +0 -57
- package/types/ojiepermana-angular-component-separator.d.ts +0 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +0 -76
- package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
- package/types/ojiepermana-angular-component-slider.d.ts +0 -74
- package/types/ojiepermana-angular-component-spinner.d.ts +0 -13
- package/types/ojiepermana-angular-component-switch.d.ts +0 -40
- package/types/ojiepermana-angular-component-table.d.ts +0 -52
- package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
- package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
- package/types/ojiepermana-angular-component-timeline.d.ts +0 -63
- package/types/ojiepermana-angular-component-toast.d.ts +0 -38
- package/types/ojiepermana-angular-component-toggle-group.d.ts +0 -89
- package/types/ojiepermana-angular-component-toggle.d.ts +0 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +0 -89
- package/types/ojiepermana-angular-component-utils.d.ts +0 -5
- package/types/ojiepermana-angular-generator-api.d.ts +0 -86
- package/types/ojiepermana-angular-layout-component.d.ts +0 -205
- package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
- package/types/ojiepermana-angular-layout-services.d.ts +0 -25
- package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
- package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
- package/types/ojiepermana-angular-layout-token.d.ts +0 -36
- package/types/ojiepermana-angular-layout-type-empty.d.ts +0 -22
- package/types/ojiepermana-angular-layout-type-horizontal.d.ts +0 -36
- package/types/ojiepermana-angular-layout-type-vertical.d.ts +0 -38
- package/types/ojiepermana-angular-layout.d.ts +0 -164
- package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
- package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
- package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
- package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
- package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
- package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -74
- package/types/ojiepermana-angular-navigation-types.d.ts +0 -135
- package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
- package/types/ojiepermana-angular-theme-services.d.ts +0 -55
- package/types/ojiepermana-angular-theme-token.d.ts +0 -57
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, input, output, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { ButtonComponent } from '@ojiepermana/angular/component/button';
|
|
5
|
-
import { cn } from '@ojiepermana/angular/component/utils';
|
|
6
|
-
|
|
7
|
-
const THEME_PANEL_THEME_PORT = new InjectionToken('THEME_PANEL_THEME_PORT');
|
|
8
|
-
const THEME_PANEL_LAYOUT_PORT = new InjectionToken('THEME_PANEL_LAYOUT_PORT');
|
|
9
|
-
const THEME_COLOR_OPTIONS = [
|
|
10
|
-
{ value: 'base', label: 'Base', swatchClass: 'bg-zinc-800' },
|
|
11
|
-
{ value: 'red', label: 'Red', swatchClass: 'bg-red-500' },
|
|
12
|
-
{ value: 'orange', label: 'Orange', swatchClass: 'bg-orange-500' },
|
|
13
|
-
{ value: 'amber', label: 'Amber', swatchClass: 'bg-amber-400' },
|
|
14
|
-
{ value: 'yellow', label: 'Yellow', swatchClass: 'bg-yellow-400' },
|
|
15
|
-
{ value: 'lime', label: 'Lime', swatchClass: 'bg-lime-400' },
|
|
16
|
-
{ value: 'green', label: 'Green', swatchClass: 'bg-green-600' },
|
|
17
|
-
{ value: 'emerald', label: 'Emerald', swatchClass: 'bg-emerald-600' },
|
|
18
|
-
{ value: 'teal', label: 'Teal', swatchClass: 'bg-teal-600' },
|
|
19
|
-
{ value: 'cyan', label: 'Cyan', swatchClass: 'bg-cyan-600' },
|
|
20
|
-
{ value: 'sky', label: 'Sky', swatchClass: 'bg-sky-600' },
|
|
21
|
-
{ value: 'blue', label: 'Blue', swatchClass: 'bg-blue-500' },
|
|
22
|
-
{ value: 'indigo', label: 'Indigo', swatchClass: 'bg-indigo-500' },
|
|
23
|
-
{ value: 'violet', label: 'Violet', swatchClass: 'bg-violet-500' },
|
|
24
|
-
{ value: 'purple', label: 'Purple', swatchClass: 'bg-purple-500' },
|
|
25
|
-
{ value: 'fuchsia', label: 'Fuchsia', swatchClass: 'bg-fuchsia-600' },
|
|
26
|
-
{ value: 'pink', label: 'Pink', swatchClass: 'bg-pink-600' },
|
|
27
|
-
{ value: 'rose', label: 'Rose', swatchClass: 'bg-rose-500' },
|
|
28
|
-
];
|
|
29
|
-
const THEME_MODE_OPTIONS = [
|
|
30
|
-
{ value: 'light', label: 'Light', icon: 'sun' },
|
|
31
|
-
{ value: 'dark', label: 'Dark', icon: 'moon' },
|
|
32
|
-
{ value: 'system', label: 'System', icon: 'system' },
|
|
33
|
-
];
|
|
34
|
-
const THEME_STYLE_OPTIONS = [
|
|
35
|
-
{ value: 'default', label: 'Default', icon: 'default-style' },
|
|
36
|
-
{ value: 'sharp', label: 'Sharp', icon: 'sharp-style' },
|
|
37
|
-
{ value: 'brutal', label: 'Brutal', icon: 'brutal-style' },
|
|
38
|
-
{ value: 'soft', label: 'Soft', icon: 'soft-style' },
|
|
39
|
-
];
|
|
40
|
-
const LAYOUT_MODE_OPTIONS = [
|
|
41
|
-
{ value: 'vertical', label: 'Vertical', icon: 'vertical-layout' },
|
|
42
|
-
{ value: 'horizontal', label: 'Horizontal', icon: 'horizontal-layout' },
|
|
43
|
-
{ value: 'empty', label: 'Empty', icon: 'empty-layout' },
|
|
44
|
-
];
|
|
45
|
-
const LAYOUT_WIDTH_OPTIONS = [
|
|
46
|
-
{ value: 'full', label: 'Full', icon: 'full-width' },
|
|
47
|
-
{ value: 'container', label: 'Container', icon: 'container-width' },
|
|
48
|
-
{ value: 'wide', label: 'Wide', icon: 'wide-width' },
|
|
49
|
-
];
|
|
50
|
-
class ThemePanelComponent {
|
|
51
|
-
sanitizer = inject(DomSanitizer);
|
|
52
|
-
themePort = inject(THEME_PANEL_THEME_PORT, { optional: true });
|
|
53
|
-
layoutPort = inject(THEME_PANEL_LAYOUT_PORT, { optional: true });
|
|
54
|
-
connected = input(true, /* @ts-ignore */
|
|
55
|
-
...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
|
|
56
|
-
class = input('', /* @ts-ignore */
|
|
57
|
-
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
58
|
-
title = input('Theme panel', /* @ts-ignore */
|
|
59
|
-
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
60
|
-
description = input('', /* @ts-ignore */
|
|
61
|
-
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
62
|
-
userName = input('', /* @ts-ignore */
|
|
63
|
-
...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
|
|
64
|
-
userSubtitle = input('', /* @ts-ignore */
|
|
65
|
-
...(ngDevMode ? [{ debugName: "userSubtitle" }] : /* istanbul ignore next */ []));
|
|
66
|
-
userInitials = input('', /* @ts-ignore */
|
|
67
|
-
...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
|
|
68
|
-
themeColor = input('base', /* @ts-ignore */
|
|
69
|
-
...(ngDevMode ? [{ debugName: "themeColor" }] : /* istanbul ignore next */ []));
|
|
70
|
-
themeMode = input('light', /* @ts-ignore */
|
|
71
|
-
...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
|
|
72
|
-
themeStyle = input('default', /* @ts-ignore */
|
|
73
|
-
...(ngDevMode ? [{ debugName: "themeStyle" }] : /* istanbul ignore next */ []));
|
|
74
|
-
layoutMode = input('vertical', /* @ts-ignore */
|
|
75
|
-
...(ngDevMode ? [{ debugName: "layoutMode" }] : /* istanbul ignore next */ []));
|
|
76
|
-
layoutWidth = input('container', /* @ts-ignore */
|
|
77
|
-
...(ngDevMode ? [{ debugName: "layoutWidth" }] : /* istanbul ignore next */ []));
|
|
78
|
-
themeColorChange = output();
|
|
79
|
-
themeModeChange = output();
|
|
80
|
-
themeStyleChange = output();
|
|
81
|
-
layoutModeChange = output();
|
|
82
|
-
layoutWidthChange = output();
|
|
83
|
-
currentThemeColor = signal(this.themeColor(), /* @ts-ignore */
|
|
84
|
-
...(ngDevMode ? [{ debugName: "currentThemeColor" }] : /* istanbul ignore next */ []));
|
|
85
|
-
currentThemeMode = signal(this.themeMode(), /* @ts-ignore */
|
|
86
|
-
...(ngDevMode ? [{ debugName: "currentThemeMode" }] : /* istanbul ignore next */ []));
|
|
87
|
-
currentThemeStyle = signal(this.themeStyle(), /* @ts-ignore */
|
|
88
|
-
...(ngDevMode ? [{ debugName: "currentThemeStyle" }] : /* istanbul ignore next */ []));
|
|
89
|
-
currentLayoutMode = signal(this.layoutMode(), /* @ts-ignore */
|
|
90
|
-
...(ngDevMode ? [{ debugName: "currentLayoutMode" }] : /* istanbul ignore next */ []));
|
|
91
|
-
currentLayoutWidth = signal(this.layoutWidth(), /* @ts-ignore */
|
|
92
|
-
...(ngDevMode ? [{ debugName: "currentLayoutWidth" }] : /* istanbul ignore next */ []));
|
|
93
|
-
themeColorOptions = THEME_COLOR_OPTIONS;
|
|
94
|
-
themeModeOptions = THEME_MODE_OPTIONS;
|
|
95
|
-
themeStyleOptions = THEME_STYLE_OPTIONS;
|
|
96
|
-
layoutModeOptions = LAYOUT_MODE_OPTIONS;
|
|
97
|
-
layoutWidthOptions = LAYOUT_WIDTH_OPTIONS;
|
|
98
|
-
hostClasses = computed(() => cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()), /* @ts-ignore */
|
|
99
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
100
|
-
hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim(), /* @ts-ignore */
|
|
101
|
-
...(ngDevMode ? [{ debugName: "hasUserHeader" }] : /* istanbul ignore next */ []));
|
|
102
|
-
resolvedUserInitials = computed(() => this.userInitials().trim() || this.toInitials(this.userName() || this.title()), /* @ts-ignore */
|
|
103
|
-
...(ngDevMode ? [{ debugName: "resolvedUserInitials" }] : /* istanbul ignore next */ []));
|
|
104
|
-
currentThemeColorLabel = computed(() => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '', /* @ts-ignore */
|
|
105
|
-
...(ngDevMode ? [{ debugName: "currentThemeColorLabel" }] : /* istanbul ignore next */ []));
|
|
106
|
-
constructor() {
|
|
107
|
-
effect(() => {
|
|
108
|
-
this.currentThemeColor.set(this.connected() && this.themePort ? this.themePort.color() : this.themeColor());
|
|
109
|
-
});
|
|
110
|
-
effect(() => {
|
|
111
|
-
this.currentThemeMode.set(this.connected() && this.themePort ? this.themePort.scheme() : this.themeMode());
|
|
112
|
-
});
|
|
113
|
-
effect(() => {
|
|
114
|
-
this.currentThemeStyle.set(this.connected() && this.themePort ? this.themePort.style() : this.themeStyle());
|
|
115
|
-
});
|
|
116
|
-
effect(() => {
|
|
117
|
-
this.currentLayoutMode.set(this.connected() && this.layoutPort ? this.layoutPort.mode() : this.layoutMode());
|
|
118
|
-
});
|
|
119
|
-
effect(() => {
|
|
120
|
-
this.currentLayoutWidth.set(this.connected() && this.layoutPort ? this.layoutPort.width() : this.layoutWidth());
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
setThemeColor(color) {
|
|
124
|
-
this.currentThemeColor.set(color);
|
|
125
|
-
this.themePort?.setColor(color);
|
|
126
|
-
this.themeColorChange.emit(color);
|
|
127
|
-
}
|
|
128
|
-
setThemeMode(mode) {
|
|
129
|
-
this.currentThemeMode.set(mode);
|
|
130
|
-
this.themePort?.setScheme(mode);
|
|
131
|
-
this.themeModeChange.emit(mode);
|
|
132
|
-
}
|
|
133
|
-
setThemeStyle(style) {
|
|
134
|
-
this.currentThemeStyle.set(style);
|
|
135
|
-
this.themePort?.setStyle(style);
|
|
136
|
-
this.themeStyleChange.emit(style);
|
|
137
|
-
}
|
|
138
|
-
setLayoutMode(mode) {
|
|
139
|
-
this.currentLayoutMode.set(mode);
|
|
140
|
-
this.layoutPort?.setMode(mode);
|
|
141
|
-
this.layoutModeChange.emit(mode);
|
|
142
|
-
}
|
|
143
|
-
setLayoutWidth(width) {
|
|
144
|
-
this.currentLayoutWidth.set(width);
|
|
145
|
-
this.layoutPort?.setWidth(width);
|
|
146
|
-
this.layoutWidthChange.emit(width);
|
|
147
|
-
}
|
|
148
|
-
sectionEyebrowClasses() {
|
|
149
|
-
return 'text-[0.72rem] font-semibold uppercase tracking-[0.22em] text-muted-foreground';
|
|
150
|
-
}
|
|
151
|
-
segmentedOptionClasses(active) {
|
|
152
|
-
return cn('rounded-[calc(var(--layout-frame-radius)-2px)] px-3', active
|
|
153
|
-
? 'border border-border/70 bg-background shadow-sm hover:bg-background'
|
|
154
|
-
: 'text-muted-foreground hover:bg-background/70 hover:text-foreground');
|
|
155
|
-
}
|
|
156
|
-
swatchButtonClasses(active) {
|
|
157
|
-
return cn('size-9 rounded-full p-0', active
|
|
158
|
-
? 'border border-border/70 bg-background shadow-sm hover:bg-background'
|
|
159
|
-
: 'border border-transparent hover:bg-background/70');
|
|
160
|
-
}
|
|
161
|
-
optionIconClasses(active) {
|
|
162
|
-
return cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-4', active ? 'text-foreground' : 'text-muted-foreground');
|
|
163
|
-
}
|
|
164
|
-
colorSwatchClasses(swatchClass, isActive) {
|
|
165
|
-
return cn('size-4 rounded-full border border-black/10 shadow-sm', swatchClass, isActive ? 'ring-2 ring-ring ring-offset-2 ring-offset-background' : '');
|
|
166
|
-
}
|
|
167
|
-
iconSvg(name) {
|
|
168
|
-
return this.sanitizer.bypassSecurityTrustHtml(this.rawIconSvg(name));
|
|
169
|
-
}
|
|
170
|
-
rawIconSvg(name) {
|
|
171
|
-
switch (name) {
|
|
172
|
-
case 'sun':
|
|
173
|
-
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>';
|
|
174
|
-
case 'moon':
|
|
175
|
-
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>';
|
|
176
|
-
case 'system':
|
|
177
|
-
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>';
|
|
178
|
-
case 'default-style':
|
|
179
|
-
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>';
|
|
180
|
-
case 'sharp-style':
|
|
181
|
-
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>';
|
|
182
|
-
case 'brutal-style':
|
|
183
|
-
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>';
|
|
184
|
-
case 'soft-style':
|
|
185
|
-
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>';
|
|
186
|
-
case 'vertical-layout':
|
|
187
|
-
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>';
|
|
188
|
-
case 'horizontal-layout':
|
|
189
|
-
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>';
|
|
190
|
-
case 'empty-layout':
|
|
191
|
-
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>';
|
|
192
|
-
case 'full-width':
|
|
193
|
-
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>';
|
|
194
|
-
case 'container-width':
|
|
195
|
-
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>';
|
|
196
|
-
case 'wide-width':
|
|
197
|
-
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>';
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
toInitials(value) {
|
|
201
|
-
const words = value
|
|
202
|
-
.split(/\s+/)
|
|
203
|
-
.map((item) => item.trim())
|
|
204
|
-
.filter(Boolean)
|
|
205
|
-
.slice(0, 2);
|
|
206
|
-
if (!words.length) {
|
|
207
|
-
return 'UI';
|
|
208
|
-
}
|
|
209
|
-
return words.map((word) => word[0]?.toUpperCase() ?? '').join('');
|
|
210
|
-
}
|
|
211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ThemePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
212
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ThemePanelComponent, isStandalone: true, selector: "ui-theme-panel", inputs: { connected: { classPropertyName: "connected", publicName: "connected", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: false, transformFunction: null }, userSubtitle: { classPropertyName: "userSubtitle", publicName: "userSubtitle", isSignal: true, isRequired: false, transformFunction: null }, userInitials: { classPropertyName: "userInitials", publicName: "userInitials", isSignal: true, isRequired: false, transformFunction: null }, themeColor: { classPropertyName: "themeColor", publicName: "themeColor", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, themeStyle: { classPropertyName: "themeStyle", publicName: "themeStyle", isSignal: true, isRequired: false, transformFunction: null }, layoutMode: { classPropertyName: "layoutMode", publicName: "layoutMode", isSignal: true, isRequired: false, transformFunction: null }, layoutWidth: { classPropertyName: "layoutWidth", publicName: "layoutWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeColorChange: "themeColorChange", themeModeChange: "themeModeChange", themeStyleChange: "themeStyleChange", layoutModeChange: "layoutModeChange", layoutWidthChange: "layoutWidthChange" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: `
|
|
213
|
-
<div class="flex flex-col gap-4 p-4">
|
|
214
|
-
@if (hasUserHeader()) {
|
|
215
|
-
<header class="flex items-center gap-3 px-1 pt-1">
|
|
216
|
-
<span class="flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary">
|
|
217
|
-
<span
|
|
218
|
-
class="flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground">
|
|
219
|
-
{{ resolvedUserInitials() }}
|
|
220
|
-
</span>
|
|
221
|
-
</span>
|
|
222
|
-
|
|
223
|
-
<div class="min-w-0 flex-1">
|
|
224
|
-
<h2 class="truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground">
|
|
225
|
-
{{ userName() }}
|
|
226
|
-
</h2>
|
|
227
|
-
@if (userSubtitle(); as subtitle) {
|
|
228
|
-
<p class="mt-1 text-sm leading-none text-muted-foreground">{{ subtitle }}</p>
|
|
229
|
-
}
|
|
230
|
-
</div>
|
|
231
|
-
</header>
|
|
232
|
-
} @else {
|
|
233
|
-
<header class="space-y-1 px-1 pt-1">
|
|
234
|
-
<h2 class="text-base font-semibold tracking-tight text-foreground">{{ title() }}</h2>
|
|
235
|
-
@if (description(); as text) {
|
|
236
|
-
<p class="text-sm leading-6 text-muted-foreground">{{ text }}</p>
|
|
237
|
-
}
|
|
238
|
-
</header>
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
<div class="grid gap-4">
|
|
242
|
-
<section data-setting="theme-mode" [attr.data-current]="currentThemeMode()" class="space-y-2">
|
|
243
|
-
<div class="px-1">
|
|
244
|
-
<p [class]="sectionEyebrowClasses()">Mode</p>
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
248
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Theme mode">
|
|
249
|
-
@for (option of themeModeOptions; track option.value) {
|
|
250
|
-
<button
|
|
251
|
-
type="button"
|
|
252
|
-
ui-button
|
|
253
|
-
size="sm"
|
|
254
|
-
variant="ghost"
|
|
255
|
-
data-setting-option="theme-mode"
|
|
256
|
-
[attr.data-value]="option.value"
|
|
257
|
-
[attr.aria-pressed]="currentThemeMode() === option.value"
|
|
258
|
-
[class]="segmentedOptionClasses(currentThemeMode() === option.value)"
|
|
259
|
-
(click)="setThemeMode(option.value)">
|
|
260
|
-
<span class="inline-flex items-center gap-2.5">
|
|
261
|
-
<span
|
|
262
|
-
aria-hidden="true"
|
|
263
|
-
[class]="optionIconClasses(currentThemeMode() === option.value)"
|
|
264
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
265
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
266
|
-
</span>
|
|
267
|
-
</button>
|
|
268
|
-
}
|
|
269
|
-
</div>
|
|
270
|
-
</div>
|
|
271
|
-
</section>
|
|
272
|
-
|
|
273
|
-
<section data-setting="theme-color" [attr.data-current]="currentThemeColor()" class="space-y-2">
|
|
274
|
-
<div class="flex items-center justify-between gap-3 px-1">
|
|
275
|
-
<p [class]="sectionEyebrowClasses()">Color</p>
|
|
276
|
-
<p class="text-xs font-semibold text-muted-foreground">{{ currentThemeColorLabel() }}</p>
|
|
277
|
-
</div>
|
|
278
|
-
|
|
279
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-1">
|
|
280
|
-
<div class="grid grid-cols-6 justify-items-center gap-1" role="group" aria-label="Theme color">
|
|
281
|
-
@for (option of themeColorOptions; track option.value) {
|
|
282
|
-
<button
|
|
283
|
-
type="button"
|
|
284
|
-
ui-button
|
|
285
|
-
size="icon"
|
|
286
|
-
variant="ghost"
|
|
287
|
-
data-setting-option="theme-color"
|
|
288
|
-
[attr.data-value]="option.value"
|
|
289
|
-
[attr.aria-label]="'Theme color ' + option.label"
|
|
290
|
-
[attr.aria-pressed]="currentThemeColor() === option.value"
|
|
291
|
-
[class]="swatchButtonClasses(currentThemeColor() === option.value)"
|
|
292
|
-
(click)="setThemeColor(option.value)">
|
|
293
|
-
<span
|
|
294
|
-
aria-hidden="true"
|
|
295
|
-
[class]="colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)"></span>
|
|
296
|
-
<span class="sr-only">{{ option.label }}</span>
|
|
297
|
-
</button>
|
|
298
|
-
}
|
|
299
|
-
</div>
|
|
300
|
-
</div>
|
|
301
|
-
</section>
|
|
302
|
-
|
|
303
|
-
<section data-setting="theme-style" [attr.data-current]="currentThemeStyle()" class="space-y-2">
|
|
304
|
-
<div class="px-1">
|
|
305
|
-
<p [class]="sectionEyebrowClasses()">Style</p>
|
|
306
|
-
</div>
|
|
307
|
-
|
|
308
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
309
|
-
<div class="grid grid-cols-2 gap-1 sm:grid-cols-4" role="group" aria-label="Theme style">
|
|
310
|
-
@for (option of themeStyleOptions; track option.value) {
|
|
311
|
-
<button
|
|
312
|
-
type="button"
|
|
313
|
-
ui-button
|
|
314
|
-
size="sm"
|
|
315
|
-
variant="ghost"
|
|
316
|
-
data-setting-option="theme-style"
|
|
317
|
-
[attr.data-value]="option.value"
|
|
318
|
-
[attr.aria-pressed]="currentThemeStyle() === option.value"
|
|
319
|
-
[class]="segmentedOptionClasses(currentThemeStyle() === option.value)"
|
|
320
|
-
(click)="setThemeStyle(option.value)">
|
|
321
|
-
<span class="inline-flex items-center gap-2.5">
|
|
322
|
-
<span
|
|
323
|
-
aria-hidden="true"
|
|
324
|
-
[class]="optionIconClasses(currentThemeStyle() === option.value)"
|
|
325
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
326
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
327
|
-
</span>
|
|
328
|
-
</button>
|
|
329
|
-
}
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
</section>
|
|
333
|
-
|
|
334
|
-
<section data-setting="layout-mode" [attr.data-current]="currentLayoutMode()" class="space-y-2">
|
|
335
|
-
<div class="px-1">
|
|
336
|
-
<p [class]="sectionEyebrowClasses()">Layout</p>
|
|
337
|
-
</div>
|
|
338
|
-
|
|
339
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
340
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout mode">
|
|
341
|
-
@for (option of layoutModeOptions; track option.value) {
|
|
342
|
-
<button
|
|
343
|
-
type="button"
|
|
344
|
-
ui-button
|
|
345
|
-
size="sm"
|
|
346
|
-
variant="ghost"
|
|
347
|
-
data-setting-option="layout-mode"
|
|
348
|
-
[attr.data-value]="option.value"
|
|
349
|
-
[attr.aria-pressed]="currentLayoutMode() === option.value"
|
|
350
|
-
[class]="segmentedOptionClasses(currentLayoutMode() === option.value)"
|
|
351
|
-
(click)="setLayoutMode(option.value)">
|
|
352
|
-
<span class="inline-flex items-center gap-2.5">
|
|
353
|
-
<span
|
|
354
|
-
aria-hidden="true"
|
|
355
|
-
[class]="optionIconClasses(currentLayoutMode() === option.value)"
|
|
356
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
357
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
358
|
-
</span>
|
|
359
|
-
</button>
|
|
360
|
-
}
|
|
361
|
-
</div>
|
|
362
|
-
</div>
|
|
363
|
-
</section>
|
|
364
|
-
|
|
365
|
-
<section data-setting="layout-width" [attr.data-current]="currentLayoutWidth()" class="space-y-2">
|
|
366
|
-
<div class="px-1">
|
|
367
|
-
<p [class]="sectionEyebrowClasses()">Width</p>
|
|
368
|
-
</div>
|
|
369
|
-
|
|
370
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
371
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout width">
|
|
372
|
-
@for (option of layoutWidthOptions; track option.value) {
|
|
373
|
-
<button
|
|
374
|
-
type="button"
|
|
375
|
-
ui-button
|
|
376
|
-
size="sm"
|
|
377
|
-
variant="ghost"
|
|
378
|
-
data-setting-option="layout-width"
|
|
379
|
-
[attr.data-value]="option.value"
|
|
380
|
-
[attr.aria-pressed]="currentLayoutWidth() === option.value"
|
|
381
|
-
[class]="segmentedOptionClasses(currentLayoutWidth() === option.value)"
|
|
382
|
-
(click)="setLayoutWidth(option.value)">
|
|
383
|
-
<span class="inline-flex items-center gap-2.5">
|
|
384
|
-
<span
|
|
385
|
-
aria-hidden="true"
|
|
386
|
-
[class]="optionIconClasses(currentLayoutWidth() === option.value)"
|
|
387
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
388
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
389
|
-
</span>
|
|
390
|
-
</button>
|
|
391
|
-
}
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</section>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[ui-button], a[ui-button]", inputs: ["variant", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
398
|
-
}
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ThemePanelComponent, decorators: [{
|
|
400
|
-
type: Component,
|
|
401
|
-
args: [{
|
|
402
|
-
selector: 'ui-theme-panel',
|
|
403
|
-
imports: [ButtonComponent],
|
|
404
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
405
|
-
host: {
|
|
406
|
-
'[class]': 'hostClasses()',
|
|
407
|
-
},
|
|
408
|
-
template: `
|
|
409
|
-
<div class="flex flex-col gap-4 p-4">
|
|
410
|
-
@if (hasUserHeader()) {
|
|
411
|
-
<header class="flex items-center gap-3 px-1 pt-1">
|
|
412
|
-
<span class="flex size-14 items-center justify-center rounded-full bg-primary/10 text-primary">
|
|
413
|
-
<span
|
|
414
|
-
class="flex size-11 items-center justify-center rounded-full bg-primary text-xs font-semibold tracking-[0.22em] text-primary-foreground">
|
|
415
|
-
{{ resolvedUserInitials() }}
|
|
416
|
-
</span>
|
|
417
|
-
</span>
|
|
418
|
-
|
|
419
|
-
<div class="min-w-0 flex-1">
|
|
420
|
-
<h2 class="truncate text-[1.05rem] font-semibold leading-none tracking-tight text-foreground">
|
|
421
|
-
{{ userName() }}
|
|
422
|
-
</h2>
|
|
423
|
-
@if (userSubtitle(); as subtitle) {
|
|
424
|
-
<p class="mt-1 text-sm leading-none text-muted-foreground">{{ subtitle }}</p>
|
|
425
|
-
}
|
|
426
|
-
</div>
|
|
427
|
-
</header>
|
|
428
|
-
} @else {
|
|
429
|
-
<header class="space-y-1 px-1 pt-1">
|
|
430
|
-
<h2 class="text-base font-semibold tracking-tight text-foreground">{{ title() }}</h2>
|
|
431
|
-
@if (description(); as text) {
|
|
432
|
-
<p class="text-sm leading-6 text-muted-foreground">{{ text }}</p>
|
|
433
|
-
}
|
|
434
|
-
</header>
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
<div class="grid gap-4">
|
|
438
|
-
<section data-setting="theme-mode" [attr.data-current]="currentThemeMode()" class="space-y-2">
|
|
439
|
-
<div class="px-1">
|
|
440
|
-
<p [class]="sectionEyebrowClasses()">Mode</p>
|
|
441
|
-
</div>
|
|
442
|
-
|
|
443
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
444
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Theme mode">
|
|
445
|
-
@for (option of themeModeOptions; track option.value) {
|
|
446
|
-
<button
|
|
447
|
-
type="button"
|
|
448
|
-
ui-button
|
|
449
|
-
size="sm"
|
|
450
|
-
variant="ghost"
|
|
451
|
-
data-setting-option="theme-mode"
|
|
452
|
-
[attr.data-value]="option.value"
|
|
453
|
-
[attr.aria-pressed]="currentThemeMode() === option.value"
|
|
454
|
-
[class]="segmentedOptionClasses(currentThemeMode() === option.value)"
|
|
455
|
-
(click)="setThemeMode(option.value)">
|
|
456
|
-
<span class="inline-flex items-center gap-2.5">
|
|
457
|
-
<span
|
|
458
|
-
aria-hidden="true"
|
|
459
|
-
[class]="optionIconClasses(currentThemeMode() === option.value)"
|
|
460
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
461
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
462
|
-
</span>
|
|
463
|
-
</button>
|
|
464
|
-
}
|
|
465
|
-
</div>
|
|
466
|
-
</div>
|
|
467
|
-
</section>
|
|
468
|
-
|
|
469
|
-
<section data-setting="theme-color" [attr.data-current]="currentThemeColor()" class="space-y-2">
|
|
470
|
-
<div class="flex items-center justify-between gap-3 px-1">
|
|
471
|
-
<p [class]="sectionEyebrowClasses()">Color</p>
|
|
472
|
-
<p class="text-xs font-semibold text-muted-foreground">{{ currentThemeColorLabel() }}</p>
|
|
473
|
-
</div>
|
|
474
|
-
|
|
475
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-1">
|
|
476
|
-
<div class="grid grid-cols-6 justify-items-center gap-1" role="group" aria-label="Theme color">
|
|
477
|
-
@for (option of themeColorOptions; track option.value) {
|
|
478
|
-
<button
|
|
479
|
-
type="button"
|
|
480
|
-
ui-button
|
|
481
|
-
size="icon"
|
|
482
|
-
variant="ghost"
|
|
483
|
-
data-setting-option="theme-color"
|
|
484
|
-
[attr.data-value]="option.value"
|
|
485
|
-
[attr.aria-label]="'Theme color ' + option.label"
|
|
486
|
-
[attr.aria-pressed]="currentThemeColor() === option.value"
|
|
487
|
-
[class]="swatchButtonClasses(currentThemeColor() === option.value)"
|
|
488
|
-
(click)="setThemeColor(option.value)">
|
|
489
|
-
<span
|
|
490
|
-
aria-hidden="true"
|
|
491
|
-
[class]="colorSwatchClasses(option.swatchClass, currentThemeColor() === option.value)"></span>
|
|
492
|
-
<span class="sr-only">{{ option.label }}</span>
|
|
493
|
-
</button>
|
|
494
|
-
}
|
|
495
|
-
</div>
|
|
496
|
-
</div>
|
|
497
|
-
</section>
|
|
498
|
-
|
|
499
|
-
<section data-setting="theme-style" [attr.data-current]="currentThemeStyle()" class="space-y-2">
|
|
500
|
-
<div class="px-1">
|
|
501
|
-
<p [class]="sectionEyebrowClasses()">Style</p>
|
|
502
|
-
</div>
|
|
503
|
-
|
|
504
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
505
|
-
<div class="grid grid-cols-2 gap-1 sm:grid-cols-4" role="group" aria-label="Theme style">
|
|
506
|
-
@for (option of themeStyleOptions; track option.value) {
|
|
507
|
-
<button
|
|
508
|
-
type="button"
|
|
509
|
-
ui-button
|
|
510
|
-
size="sm"
|
|
511
|
-
variant="ghost"
|
|
512
|
-
data-setting-option="theme-style"
|
|
513
|
-
[attr.data-value]="option.value"
|
|
514
|
-
[attr.aria-pressed]="currentThemeStyle() === option.value"
|
|
515
|
-
[class]="segmentedOptionClasses(currentThemeStyle() === option.value)"
|
|
516
|
-
(click)="setThemeStyle(option.value)">
|
|
517
|
-
<span class="inline-flex items-center gap-2.5">
|
|
518
|
-
<span
|
|
519
|
-
aria-hidden="true"
|
|
520
|
-
[class]="optionIconClasses(currentThemeStyle() === option.value)"
|
|
521
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
522
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
523
|
-
</span>
|
|
524
|
-
</button>
|
|
525
|
-
}
|
|
526
|
-
</div>
|
|
527
|
-
</div>
|
|
528
|
-
</section>
|
|
529
|
-
|
|
530
|
-
<section data-setting="layout-mode" [attr.data-current]="currentLayoutMode()" class="space-y-2">
|
|
531
|
-
<div class="px-1">
|
|
532
|
-
<p [class]="sectionEyebrowClasses()">Layout</p>
|
|
533
|
-
</div>
|
|
534
|
-
|
|
535
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
536
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout mode">
|
|
537
|
-
@for (option of layoutModeOptions; track option.value) {
|
|
538
|
-
<button
|
|
539
|
-
type="button"
|
|
540
|
-
ui-button
|
|
541
|
-
size="sm"
|
|
542
|
-
variant="ghost"
|
|
543
|
-
data-setting-option="layout-mode"
|
|
544
|
-
[attr.data-value]="option.value"
|
|
545
|
-
[attr.aria-pressed]="currentLayoutMode() === option.value"
|
|
546
|
-
[class]="segmentedOptionClasses(currentLayoutMode() === option.value)"
|
|
547
|
-
(click)="setLayoutMode(option.value)">
|
|
548
|
-
<span class="inline-flex items-center gap-2.5">
|
|
549
|
-
<span
|
|
550
|
-
aria-hidden="true"
|
|
551
|
-
[class]="optionIconClasses(currentLayoutMode() === option.value)"
|
|
552
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
553
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
554
|
-
</span>
|
|
555
|
-
</button>
|
|
556
|
-
}
|
|
557
|
-
</div>
|
|
558
|
-
</div>
|
|
559
|
-
</section>
|
|
560
|
-
|
|
561
|
-
<section data-setting="layout-width" [attr.data-current]="currentLayoutWidth()" class="space-y-2">
|
|
562
|
-
<div class="px-1">
|
|
563
|
-
<p [class]="sectionEyebrowClasses()">Width</p>
|
|
564
|
-
</div>
|
|
565
|
-
|
|
566
|
-
<div class="rounded-(--layout-frame-radius) bg-muted/65 p-0.5">
|
|
567
|
-
<div class="grid grid-cols-3 gap-1" role="group" aria-label="Layout width">
|
|
568
|
-
@for (option of layoutWidthOptions; track option.value) {
|
|
569
|
-
<button
|
|
570
|
-
type="button"
|
|
571
|
-
ui-button
|
|
572
|
-
size="sm"
|
|
573
|
-
variant="ghost"
|
|
574
|
-
data-setting-option="layout-width"
|
|
575
|
-
[attr.data-value]="option.value"
|
|
576
|
-
[attr.aria-pressed]="currentLayoutWidth() === option.value"
|
|
577
|
-
[class]="segmentedOptionClasses(currentLayoutWidth() === option.value)"
|
|
578
|
-
(click)="setLayoutWidth(option.value)">
|
|
579
|
-
<span class="inline-flex items-center gap-2.5">
|
|
580
|
-
<span
|
|
581
|
-
aria-hidden="true"
|
|
582
|
-
[class]="optionIconClasses(currentLayoutWidth() === option.value)"
|
|
583
|
-
[innerHTML]="iconSvg(option.icon!)"></span>
|
|
584
|
-
<span class="text-sm font-semibold leading-none">{{ option.label }}</span>
|
|
585
|
-
</span>
|
|
586
|
-
</button>
|
|
587
|
-
}
|
|
588
|
-
</div>
|
|
589
|
-
</div>
|
|
590
|
-
</section>
|
|
591
|
-
</div>
|
|
592
|
-
</div>
|
|
593
|
-
`,
|
|
594
|
-
}]
|
|
595
|
-
}], ctorParameters: () => [], propDecorators: { connected: [{ type: i0.Input, args: [{ isSignal: true, alias: "connected", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: false }] }], userSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "userSubtitle", required: false }] }], userInitials: [{ type: i0.Input, args: [{ isSignal: true, alias: "userInitials", required: false }] }], themeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeColor", required: false }] }], themeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeMode", required: false }] }], themeStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeStyle", required: false }] }], layoutMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutMode", required: false }] }], layoutWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutWidth", required: false }] }], themeColorChange: [{ type: i0.Output, args: ["themeColorChange"] }], themeModeChange: [{ type: i0.Output, args: ["themeModeChange"] }], themeStyleChange: [{ type: i0.Output, args: ["themeStyleChange"] }], layoutModeChange: [{ type: i0.Output, args: ["layoutModeChange"] }], layoutWidthChange: [{ type: i0.Output, args: ["layoutWidthChange"] }] } });
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Generated bundle index. Do not edit.
|
|
599
|
-
*/
|
|
600
|
-
|
|
601
|
-
export { THEME_PANEL_LAYOUT_PORT, THEME_PANEL_THEME_PORT, ThemePanelComponent };
|
|
602
|
-
//# sourceMappingURL=ojiepermana-angular-layout-component.mjs.map
|