@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,123 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { RouterOutlet } from '@angular/router';
|
|
4
|
-
import { LayoutService } from '@ojiepermana/angular/layout/services';
|
|
5
|
-
import { SidebarComponent } from '@ojiepermana/angular/navigation/sidebar';
|
|
6
|
-
import { ThemeService } from '@ojiepermana/angular/theme';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Vertical layout — sidebar + main (scrollable).
|
|
10
|
-
*
|
|
11
|
-
* Data navigasi diambil dari `NavigationService` (register via
|
|
12
|
-
* `NavigationService.registerItems()` di bootstrap). Main memegang
|
|
13
|
-
* `<router-outlet>` dan scroll jika konten panjang.
|
|
14
|
-
*
|
|
15
|
-
* Markup:
|
|
16
|
-
* ```html
|
|
17
|
-
* <vertical>
|
|
18
|
-
* <a ui-layout-brand>Brand</a>
|
|
19
|
-
* <button ui-layout-profile type="button">Profile</button>
|
|
20
|
-
* </vertical>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
class VerticalLayoutComponent {
|
|
24
|
-
layout = inject(LayoutService);
|
|
25
|
-
theme = inject(ThemeService);
|
|
26
|
-
sidebarVariant = input('default', /* @ts-ignore */
|
|
27
|
-
...(ngDevMode ? [{ debugName: "sidebarVariant" }] : /* istanbul ignore next */ []));
|
|
28
|
-
sidebarPosition = input('left', /* @ts-ignore */
|
|
29
|
-
...(ngDevMode ? [{ debugName: "sidebarPosition" }] : /* istanbul ignore next */ []));
|
|
30
|
-
sidebarMode = input('side', /* @ts-ignore */
|
|
31
|
-
...(ngDevMode ? [{ debugName: "sidebarMode" }] : /* istanbul ignore next */ []));
|
|
32
|
-
ariaLabel = input('Primary', /* @ts-ignore */
|
|
33
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
34
|
-
layoutWidth = this.layout.width;
|
|
35
|
-
themeStyle = this.theme.style;
|
|
36
|
-
isConstrainedWidth = computed(() => this.layoutWidth() !== 'full', /* @ts-ignore */
|
|
37
|
-
...(ngDevMode ? [{ debugName: "isConstrainedWidth" }] : /* istanbul ignore next */ []));
|
|
38
|
-
isWideWidth = computed(() => this.layoutWidth() === 'wide', /* @ts-ignore */
|
|
39
|
-
...(ngDevMode ? [{ debugName: "isWideWidth" }] : /* istanbul ignore next */ []));
|
|
40
|
-
shellBorderWidth = computed(() => (this.isConstrainedWidth() ? 'var(--border-width)' : null), /* @ts-ignore */
|
|
41
|
-
...(ngDevMode ? [{ debugName: "shellBorderWidth" }] : /* istanbul ignore next */ []));
|
|
42
|
-
hostClasses = computed(() => {
|
|
43
|
-
const classes = ['block', 'h-dvh', 'w-full', 'overflow-hidden', 'text-foreground'];
|
|
44
|
-
if (this.isConstrainedWidth()) {
|
|
45
|
-
classes.push('bg-primary/10', 'box-border', 'lg:p-8');
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
classes.push('bg-background');
|
|
49
|
-
}
|
|
50
|
-
return classes.join(' ');
|
|
51
|
-
}, /* @ts-ignore */
|
|
52
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
53
|
-
frameClasses = computed(() => {
|
|
54
|
-
const classes = ['flex', 'h-full', 'w-full', 'overflow-hidden', 'bg-background'];
|
|
55
|
-
if (this.isConstrainedWidth()) {
|
|
56
|
-
classes.push('lg:mx-auto', this.isWideWidth() ? 'lg:max-w-[calc(17.5rem+96rem)]' : 'lg:max-w-[calc(17.5rem+80rem)]', 'lg:border', 'lg:border-primary/30', 'lg:rounded-lg', 'lg:shadow-sm');
|
|
57
|
-
}
|
|
58
|
-
return classes.join(' ');
|
|
59
|
-
}, /* @ts-ignore */
|
|
60
|
-
...(ngDevMode ? [{ debugName: "frameClasses" }] : /* istanbul ignore next */ []));
|
|
61
|
-
mainClasses = computed(() => {
|
|
62
|
-
const classes = ['min-w-0', 'flex-1', 'overflow-auto'];
|
|
63
|
-
if (this.layoutWidth() === 'container') {
|
|
64
|
-
classes.push('w-full', 'max-w-7xl');
|
|
65
|
-
}
|
|
66
|
-
else if (this.isWideWidth()) {
|
|
67
|
-
classes.push('w-full', 'max-w-screen-2xl');
|
|
68
|
-
}
|
|
69
|
-
return classes.join(' ');
|
|
70
|
-
}, /* @ts-ignore */
|
|
71
|
-
...(ngDevMode ? [{ debugName: "mainClasses" }] : /* istanbul ignore next */ []));
|
|
72
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VerticalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: VerticalLayoutComponent, isStandalone: true, selector: "vertical", inputs: { sidebarVariant: { classPropertyName: "sidebarVariant", publicName: "sidebarVariant", isSignal: true, isRequired: false, transformFunction: null }, sidebarPosition: { classPropertyName: "sidebarPosition", publicName: "sidebarPosition", isSignal: true, isRequired: false, transformFunction: null }, sidebarMode: { classPropertyName: "sidebarMode", publicName: "sidebarMode", 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: `
|
|
74
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
75
|
-
<sidebar [variant]="sidebarVariant()" [position]="sidebarPosition()" [ariaLabel]="ariaLabel()">
|
|
76
|
-
<div sidebar-header class="contents">
|
|
77
|
-
<ng-content select="[ui-layout-brand],[sidebar-header]" />
|
|
78
|
-
</div>
|
|
79
|
-
<div sidebar-footer class="contents">
|
|
80
|
-
<ng-content select="[ui-layout-profile],[sidebar-footer]" />
|
|
81
|
-
</div>
|
|
82
|
-
</sidebar>
|
|
83
|
-
<main [class]="mainClasses()">
|
|
84
|
-
<router-outlet />
|
|
85
|
-
</main>
|
|
86
|
-
</div>
|
|
87
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SidebarComponent, selector: "sidebar", inputs: ["items", "navigationId", "variant", "borderSource", "position", "ariaLabel", "header", "class", "autoMobile", "autoRegister"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VerticalLayoutComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{
|
|
92
|
-
selector: 'vertical',
|
|
93
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
94
|
-
imports: [RouterOutlet, SidebarComponent],
|
|
95
|
-
host: {
|
|
96
|
-
'[class]': 'hostClasses()',
|
|
97
|
-
'[attr.data-layout-width]': 'layoutWidth()',
|
|
98
|
-
'[attr.data-style]': 'themeStyle()',
|
|
99
|
-
},
|
|
100
|
-
template: `
|
|
101
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
102
|
-
<sidebar [variant]="sidebarVariant()" [position]="sidebarPosition()" [ariaLabel]="ariaLabel()">
|
|
103
|
-
<div sidebar-header class="contents">
|
|
104
|
-
<ng-content select="[ui-layout-brand],[sidebar-header]" />
|
|
105
|
-
</div>
|
|
106
|
-
<div sidebar-footer class="contents">
|
|
107
|
-
<ng-content select="[ui-layout-profile],[sidebar-footer]" />
|
|
108
|
-
</div>
|
|
109
|
-
</sidebar>
|
|
110
|
-
<main [class]="mainClasses()">
|
|
111
|
-
<router-outlet />
|
|
112
|
-
</main>
|
|
113
|
-
</div>
|
|
114
|
-
`,
|
|
115
|
-
}]
|
|
116
|
-
}], propDecorators: { sidebarVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarVariant", required: false }] }], sidebarPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarPosition", required: false }] }], sidebarMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarMode", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Generated bundle index. Do not edit.
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
export { VerticalLayoutComponent };
|
|
123
|
-
//# sourceMappingURL=ojiepermana-angular-layout-type-vertical.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular-layout-type-vertical.mjs","sources":["../../../projects/angular/layout/type/vertical/vertical.component.ts","../../../projects/angular/layout/type/vertical/ojiepermana-angular-layout-type-vertical.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\nimport { LayoutService } from '@ojiepermana/angular/layout/services';\nimport { SidebarComponent } from '@ojiepermana/angular/navigation/sidebar';\nimport type { SidebarMode, SidebarPosition, SidebarVariant } from '@ojiepermana/angular/navigation/types';\nimport { ThemeService } from '@ojiepermana/angular/theme';\n\n/**\n * Vertical layout — sidebar + main (scrollable).\n *\n * Data navigasi diambil dari `NavigationService` (register via\n * `NavigationService.registerItems()` di bootstrap). Main memegang\n * `<router-outlet>` dan scroll jika konten panjang.\n *\n * Markup:\n * ```html\n * <vertical>\n * <a ui-layout-brand>Brand</a>\n * <button ui-layout-profile type=\"button\">Profile</button>\n * </vertical>\n * ```\n */\n@Component({\n selector: 'vertical',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [RouterOutlet, SidebarComponent],\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 <sidebar [variant]=\"sidebarVariant()\" [position]=\"sidebarPosition()\" [ariaLabel]=\"ariaLabel()\">\n <div sidebar-header class=\"contents\">\n <ng-content select=\"[ui-layout-brand],[sidebar-header]\" />\n </div>\n <div sidebar-footer class=\"contents\">\n <ng-content select=\"[ui-layout-profile],[sidebar-footer]\" />\n </div>\n </sidebar>\n <main [class]=\"mainClasses()\">\n <router-outlet />\n </main>\n </div>\n `,\n})\nexport class VerticalLayoutComponent {\n private readonly layout = inject(LayoutService);\n private readonly theme = inject(ThemeService);\n\n readonly sidebarVariant = input<SidebarVariant>('default');\n readonly sidebarPosition = input<SidebarPosition>('left');\n readonly sidebarMode = input<SidebarMode>('side');\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\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', 'overflow-hidden', 'bg-background'];\n if (this.isConstrainedWidth()) {\n classes.push(\n 'lg:mx-auto',\n this.isWideWidth() ? 'lg:max-w-[calc(17.5rem+96rem)]' : 'lg:max-w-[calc(17.5rem+80rem)]',\n 'lg:border',\n 'lg:border-primary/30',\n 'lg:rounded-lg',\n 'lg:shadow-sm',\n );\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('w-full', 'max-w-7xl');\n } else if (this.isWideWidth()) {\n classes.push('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":"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"}
|
|
@@ -1,485 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, computed, ChangeDetectionStrategy, Component, makeEnvironmentProviders, provideEnvironmentInitializer, signal, effect, Injectable, InjectionToken, Directive } from '@angular/core';
|
|
3
|
-
import { RouterOutlet } from '@angular/router';
|
|
4
|
-
import { LayoutService as LayoutService$1 } from '@ojiepermana/angular/layout/services';
|
|
5
|
-
import { SidebarComponent } from '@ojiepermana/angular/navigation/sidebar';
|
|
6
|
-
import { ThemeService } from '@ojiepermana/angular/theme';
|
|
7
|
-
import { TopbarComponent } from '@ojiepermana/angular/navigation/topbar';
|
|
8
|
-
import { THEME_PANEL_LAYOUT_PORT } from '@ojiepermana/angular/layout/component';
|
|
9
|
-
import { MATERIAL_LAYOUT_CONFIG as MATERIAL_LAYOUT_CONFIG$1, LAYOUT_WIDTHS as LAYOUT_WIDTHS$1, DEFAULT_MATERIAL_LAYOUT_CONFIG as DEFAULT_MATERIAL_LAYOUT_CONFIG$1, normalizeLayoutWidth as normalizeLayoutWidth$1, isLayoutMode as isLayoutMode$1 } from '@ojiepermana/angular/layout/token';
|
|
10
|
-
import { DOCUMENT } from '@angular/common';
|
|
11
|
-
import { POPOVER_TRIGGER_DEFAULTS } from '@ojiepermana/angular/component/popover';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Vertical layout — sidebar + main (scrollable).
|
|
15
|
-
*
|
|
16
|
-
* Data navigasi diambil dari `NavigationService` (register via
|
|
17
|
-
* `NavigationService.registerItems()` di bootstrap). Main memegang
|
|
18
|
-
* `<router-outlet>` dan scroll jika konten panjang.
|
|
19
|
-
*
|
|
20
|
-
* Markup:
|
|
21
|
-
* ```html
|
|
22
|
-
* <vertical>
|
|
23
|
-
* <a ui-layout-brand>Brand</a>
|
|
24
|
-
* <button ui-layout-profile type="button">Profile</button>
|
|
25
|
-
* </vertical>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
class VerticalLayoutComponent {
|
|
29
|
-
layout = inject(LayoutService$1);
|
|
30
|
-
theme = inject(ThemeService);
|
|
31
|
-
sidebarVariant = input('default', /* @ts-ignore */
|
|
32
|
-
...(ngDevMode ? [{ debugName: "sidebarVariant" }] : /* istanbul ignore next */ []));
|
|
33
|
-
sidebarPosition = input('left', /* @ts-ignore */
|
|
34
|
-
...(ngDevMode ? [{ debugName: "sidebarPosition" }] : /* istanbul ignore next */ []));
|
|
35
|
-
sidebarMode = input('side', /* @ts-ignore */
|
|
36
|
-
...(ngDevMode ? [{ debugName: "sidebarMode" }] : /* istanbul ignore next */ []));
|
|
37
|
-
ariaLabel = input('Primary', /* @ts-ignore */
|
|
38
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
39
|
-
layoutWidth = this.layout.width;
|
|
40
|
-
themeStyle = this.theme.style;
|
|
41
|
-
isConstrainedWidth = computed(() => this.layoutWidth() !== 'full', /* @ts-ignore */
|
|
42
|
-
...(ngDevMode ? [{ debugName: "isConstrainedWidth" }] : /* istanbul ignore next */ []));
|
|
43
|
-
isWideWidth = computed(() => this.layoutWidth() === 'wide', /* @ts-ignore */
|
|
44
|
-
...(ngDevMode ? [{ debugName: "isWideWidth" }] : /* istanbul ignore next */ []));
|
|
45
|
-
shellBorderWidth = computed(() => (this.isConstrainedWidth() ? 'var(--border-width)' : null), /* @ts-ignore */
|
|
46
|
-
...(ngDevMode ? [{ debugName: "shellBorderWidth" }] : /* istanbul ignore next */ []));
|
|
47
|
-
hostClasses = computed(() => {
|
|
48
|
-
const classes = ['block', 'h-dvh', 'w-full', 'overflow-hidden', 'text-foreground'];
|
|
49
|
-
if (this.isConstrainedWidth()) {
|
|
50
|
-
classes.push('bg-primary/10', 'box-border', 'lg:p-8');
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
classes.push('bg-background');
|
|
54
|
-
}
|
|
55
|
-
return classes.join(' ');
|
|
56
|
-
}, /* @ts-ignore */
|
|
57
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
58
|
-
frameClasses = computed(() => {
|
|
59
|
-
const classes = ['flex', 'h-full', 'w-full', 'overflow-hidden', 'bg-background'];
|
|
60
|
-
if (this.isConstrainedWidth()) {
|
|
61
|
-
classes.push('lg:mx-auto', this.isWideWidth() ? 'lg:max-w-[calc(17.5rem+96rem)]' : 'lg:max-w-[calc(17.5rem+80rem)]', 'lg:border', 'lg:border-primary/30', 'lg:rounded-lg', 'lg:shadow-sm');
|
|
62
|
-
}
|
|
63
|
-
return classes.join(' ');
|
|
64
|
-
}, /* @ts-ignore */
|
|
65
|
-
...(ngDevMode ? [{ debugName: "frameClasses" }] : /* istanbul ignore next */ []));
|
|
66
|
-
mainClasses = computed(() => {
|
|
67
|
-
const classes = ['min-w-0', 'flex-1', 'overflow-auto'];
|
|
68
|
-
if (this.layoutWidth() === 'container') {
|
|
69
|
-
classes.push('w-full', 'max-w-7xl');
|
|
70
|
-
}
|
|
71
|
-
else if (this.isWideWidth()) {
|
|
72
|
-
classes.push('w-full', 'max-w-screen-2xl');
|
|
73
|
-
}
|
|
74
|
-
return classes.join(' ');
|
|
75
|
-
}, /* @ts-ignore */
|
|
76
|
-
...(ngDevMode ? [{ debugName: "mainClasses" }] : /* istanbul ignore next */ []));
|
|
77
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VerticalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: VerticalLayoutComponent, isStandalone: true, selector: "vertical", inputs: { sidebarVariant: { classPropertyName: "sidebarVariant", publicName: "sidebarVariant", isSignal: true, isRequired: false, transformFunction: null }, sidebarPosition: { classPropertyName: "sidebarPosition", publicName: "sidebarPosition", isSignal: true, isRequired: false, transformFunction: null }, sidebarMode: { classPropertyName: "sidebarMode", publicName: "sidebarMode", 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: `
|
|
79
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
80
|
-
<sidebar [variant]="sidebarVariant()" [position]="sidebarPosition()" [ariaLabel]="ariaLabel()">
|
|
81
|
-
<div sidebar-header class="contents">
|
|
82
|
-
<ng-content select="[ui-layout-brand],[sidebar-header]" />
|
|
83
|
-
</div>
|
|
84
|
-
<div sidebar-footer class="contents">
|
|
85
|
-
<ng-content select="[ui-layout-profile],[sidebar-footer]" />
|
|
86
|
-
</div>
|
|
87
|
-
</sidebar>
|
|
88
|
-
<main [class]="mainClasses()">
|
|
89
|
-
<router-outlet />
|
|
90
|
-
</main>
|
|
91
|
-
</div>
|
|
92
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SidebarComponent, selector: "sidebar", inputs: ["items", "navigationId", "variant", "borderSource", "position", "ariaLabel", "header", "class", "autoMobile", "autoRegister"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
|
-
}
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VerticalLayoutComponent, decorators: [{
|
|
95
|
-
type: Component,
|
|
96
|
-
args: [{
|
|
97
|
-
selector: 'vertical',
|
|
98
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
99
|
-
imports: [RouterOutlet, SidebarComponent],
|
|
100
|
-
host: {
|
|
101
|
-
'[class]': 'hostClasses()',
|
|
102
|
-
'[attr.data-layout-width]': 'layoutWidth()',
|
|
103
|
-
'[attr.data-style]': 'themeStyle()',
|
|
104
|
-
},
|
|
105
|
-
template: `
|
|
106
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
107
|
-
<sidebar [variant]="sidebarVariant()" [position]="sidebarPosition()" [ariaLabel]="ariaLabel()">
|
|
108
|
-
<div sidebar-header class="contents">
|
|
109
|
-
<ng-content select="[ui-layout-brand],[sidebar-header]" />
|
|
110
|
-
</div>
|
|
111
|
-
<div sidebar-footer class="contents">
|
|
112
|
-
<ng-content select="[ui-layout-profile],[sidebar-footer]" />
|
|
113
|
-
</div>
|
|
114
|
-
</sidebar>
|
|
115
|
-
<main [class]="mainClasses()">
|
|
116
|
-
<router-outlet />
|
|
117
|
-
</main>
|
|
118
|
-
</div>
|
|
119
|
-
`,
|
|
120
|
-
}]
|
|
121
|
-
}], propDecorators: { sidebarVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarVariant", required: false }] }], sidebarPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarPosition", required: false }] }], sidebarMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarMode", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Horizontal layout — themed topbar + main (scrollable).
|
|
125
|
-
*
|
|
126
|
-
* Data navigasi diambil dari `NavigationService`.
|
|
127
|
-
* Consumer app dapat memproyeksikan brand kiri dan profile kanan.
|
|
128
|
-
*
|
|
129
|
-
* Markup:
|
|
130
|
-
* ```html
|
|
131
|
-
* <horizontal>
|
|
132
|
-
* <a ui-layout-brand>Brand</a>
|
|
133
|
-
* <button ui-layout-profile type="button">Profile</button>
|
|
134
|
-
* </horizontal>
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
|
-
class HorizontalLayoutComponent {
|
|
138
|
-
layout = inject(LayoutService$1);
|
|
139
|
-
theme = inject(ThemeService);
|
|
140
|
-
topbarVariant = input('default', /* @ts-ignore */
|
|
141
|
-
...(ngDevMode ? [{ debugName: "topbarVariant" }] : /* istanbul ignore next */ []));
|
|
142
|
-
ariaLabel = input('Primary', /* @ts-ignore */
|
|
143
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
144
|
-
layoutWidth = this.layout.width;
|
|
145
|
-
themeStyle = this.theme.style;
|
|
146
|
-
isConstrainedWidth = computed(() => this.layoutWidth() !== 'full', /* @ts-ignore */
|
|
147
|
-
...(ngDevMode ? [{ debugName: "isConstrainedWidth" }] : /* istanbul ignore next */ []));
|
|
148
|
-
isWideWidth = computed(() => this.layoutWidth() === 'wide', /* @ts-ignore */
|
|
149
|
-
...(ngDevMode ? [{ debugName: "isWideWidth" }] : /* istanbul ignore next */ []));
|
|
150
|
-
shellBorderWidth = computed(() => (this.isConstrainedWidth() ? 'var(--border-width)' : null), /* @ts-ignore */
|
|
151
|
-
...(ngDevMode ? [{ debugName: "shellBorderWidth" }] : /* istanbul ignore next */ []));
|
|
152
|
-
dividerBorderWidth = computed(() => 'var(--border-width)', /* @ts-ignore */
|
|
153
|
-
...(ngDevMode ? [{ debugName: "dividerBorderWidth" }] : /* istanbul ignore next */ []));
|
|
154
|
-
hostClasses = computed(() => {
|
|
155
|
-
const classes = ['block', 'h-dvh', 'w-full', 'overflow-hidden', 'text-foreground'];
|
|
156
|
-
if (this.isConstrainedWidth()) {
|
|
157
|
-
classes.push('bg-primary/10', 'box-border', 'lg:p-8');
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
classes.push('bg-background');
|
|
161
|
-
}
|
|
162
|
-
return classes.join(' ');
|
|
163
|
-
}, /* @ts-ignore */
|
|
164
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
165
|
-
frameClasses = computed(() => {
|
|
166
|
-
const classes = ['flex', 'h-full', 'w-full', 'flex-col', 'overflow-hidden', 'bg-background'];
|
|
167
|
-
if (this.isConstrainedWidth()) {
|
|
168
|
-
classes.push('lg:border', 'lg:border-primary/30', 'lg:rounded-lg', 'lg:shadow-sm');
|
|
169
|
-
}
|
|
170
|
-
return classes.join(' ');
|
|
171
|
-
}, /* @ts-ignore */
|
|
172
|
-
...(ngDevMode ? [{ debugName: "frameClasses" }] : /* istanbul ignore next */ []));
|
|
173
|
-
mainClasses = computed(() => {
|
|
174
|
-
const classes = ['min-w-0', 'flex-1', 'overflow-auto'];
|
|
175
|
-
if (this.layoutWidth() === 'container') {
|
|
176
|
-
classes.push('mx-auto', 'w-full', 'max-w-7xl');
|
|
177
|
-
}
|
|
178
|
-
else if (this.isWideWidth()) {
|
|
179
|
-
classes.push('mx-auto', 'w-full', 'max-w-screen-2xl');
|
|
180
|
-
}
|
|
181
|
-
return classes.join(' ');
|
|
182
|
-
}, /* @ts-ignore */
|
|
183
|
-
...(ngDevMode ? [{ debugName: "mainClasses" }] : /* istanbul ignore next */ []));
|
|
184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HorizontalLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
185
|
-
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: `
|
|
186
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
187
|
-
<topbar
|
|
188
|
-
class="w-full shrink-0 border-b border-border"
|
|
189
|
-
[style.border-bottom-width]="dividerBorderWidth()"
|
|
190
|
-
[variant]="topbarVariant()"
|
|
191
|
-
[ariaLabel]="ariaLabel()">
|
|
192
|
-
<div topbar-start class="flex min-w-0 items-center">
|
|
193
|
-
<ng-content select="[ui-layout-brand],[topbar-start]" />
|
|
194
|
-
</div>
|
|
195
|
-
<div topbar-end class="flex min-w-0 items-center">
|
|
196
|
-
<ng-content select="[ui-layout-profile],[topbar-end]" />
|
|
197
|
-
</div>
|
|
198
|
-
</topbar>
|
|
199
|
-
<main [class]="mainClasses()">
|
|
200
|
-
<router-outlet />
|
|
201
|
-
</main>
|
|
202
|
-
</div>
|
|
203
|
-
`, 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 });
|
|
204
|
-
}
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: HorizontalLayoutComponent, decorators: [{
|
|
206
|
-
type: Component,
|
|
207
|
-
args: [{
|
|
208
|
-
selector: 'horizontal',
|
|
209
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
210
|
-
imports: [RouterOutlet, TopbarComponent],
|
|
211
|
-
host: {
|
|
212
|
-
'[class]': 'hostClasses()',
|
|
213
|
-
'[attr.data-layout-width]': 'layoutWidth()',
|
|
214
|
-
'[attr.data-style]': 'themeStyle()',
|
|
215
|
-
},
|
|
216
|
-
template: `
|
|
217
|
-
<div [class]="frameClasses()" [style.border-width]="shellBorderWidth()">
|
|
218
|
-
<topbar
|
|
219
|
-
class="w-full shrink-0 border-b border-border"
|
|
220
|
-
[style.border-bottom-width]="dividerBorderWidth()"
|
|
221
|
-
[variant]="topbarVariant()"
|
|
222
|
-
[ariaLabel]="ariaLabel()">
|
|
223
|
-
<div topbar-start class="flex min-w-0 items-center">
|
|
224
|
-
<ng-content select="[ui-layout-brand],[topbar-start]" />
|
|
225
|
-
</div>
|
|
226
|
-
<div topbar-end class="flex min-w-0 items-center">
|
|
227
|
-
<ng-content select="[ui-layout-profile],[topbar-end]" />
|
|
228
|
-
</div>
|
|
229
|
-
</topbar>
|
|
230
|
-
<main [class]="mainClasses()">
|
|
231
|
-
<router-outlet />
|
|
232
|
-
</main>
|
|
233
|
-
</div>
|
|
234
|
-
`,
|
|
235
|
-
}]
|
|
236
|
-
}], propDecorators: { topbarVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "topbarVariant", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Empty layout — full-viewport, flex-centered main.
|
|
240
|
-
*
|
|
241
|
-
* Cocok untuk halaman login / error / onboarding (pola shadcn `login-05`).
|
|
242
|
-
* Konten dirender lewat `<router-outlet>`; consumer men-style card / form
|
|
243
|
-
* milik halaman route sendiri.
|
|
244
|
-
*
|
|
245
|
-
* Markup:
|
|
246
|
-
* ```html
|
|
247
|
-
* <empty>
|
|
248
|
-
* <!-- router-outlet dirender oleh komponen -->
|
|
249
|
-
* </empty>
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
class EmptyLayoutComponent {
|
|
253
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EmptyLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
-
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: `
|
|
255
|
-
<main class="w-full max-w-sm">
|
|
256
|
-
<router-outlet />
|
|
257
|
-
</main>
|
|
258
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
259
|
-
}
|
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EmptyLayoutComponent, decorators: [{
|
|
261
|
-
type: Component,
|
|
262
|
-
args: [{
|
|
263
|
-
selector: 'empty',
|
|
264
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
265
|
-
imports: [RouterOutlet],
|
|
266
|
-
host: {
|
|
267
|
-
class: 'flex min-h-dvh w-full items-center justify-center bg-background p-6 text-foreground',
|
|
268
|
-
},
|
|
269
|
-
template: `
|
|
270
|
-
<main class="w-full max-w-sm">
|
|
271
|
-
<router-outlet />
|
|
272
|
-
</main>
|
|
273
|
-
`,
|
|
274
|
-
}]
|
|
275
|
-
}] });
|
|
276
|
-
|
|
277
|
-
class ShellPagesComponent {
|
|
278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ShellPagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
-
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: `
|
|
280
|
-
<div class="flex h-full flex-col overflow-hidden">
|
|
281
|
-
<header class="flex h-12 min-w-0 shrink-0 items-center gap-2 border-b border-primary/30 px-2">
|
|
282
|
-
<ng-content select="[shell-pages-header]" />
|
|
283
|
-
</header>
|
|
284
|
-
|
|
285
|
-
<main class="min-h-0 flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-primary scrollbar-track-primary/10">
|
|
286
|
-
<ng-content select="[shell-pages-main]" />
|
|
287
|
-
</main>
|
|
288
|
-
|
|
289
|
-
<footer class="flex h-12 min-w-0 shrink-0 items-center gap-2 border-t border-primary/30 px-2">
|
|
290
|
-
<ng-content select="[shell-pages-footer]" />
|
|
291
|
-
</footer>
|
|
292
|
-
</div>
|
|
293
|
-
`, isInline: true, styles: ["footer:empty{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
294
|
-
}
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ShellPagesComponent, decorators: [{
|
|
296
|
-
type: Component,
|
|
297
|
-
args: [{ selector: 'shell-pages', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
298
|
-
class: 'block h-full min-h-0',
|
|
299
|
-
}, template: `
|
|
300
|
-
<div class="flex h-full flex-col overflow-hidden">
|
|
301
|
-
<header class="flex h-12 min-w-0 shrink-0 items-center gap-2 border-b border-primary/30 px-2">
|
|
302
|
-
<ng-content select="[shell-pages-header]" />
|
|
303
|
-
</header>
|
|
304
|
-
|
|
305
|
-
<main class="min-h-0 flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-primary scrollbar-track-primary/10">
|
|
306
|
-
<ng-content select="[shell-pages-main]" />
|
|
307
|
-
</main>
|
|
308
|
-
|
|
309
|
-
<footer class="flex h-12 min-w-0 shrink-0 items-center gap-2 border-t border-primary/30 px-2">
|
|
310
|
-
<ng-content select="[shell-pages-footer]" />
|
|
311
|
-
</footer>
|
|
312
|
-
</div>
|
|
313
|
-
`, styles: ["footer:empty{display:none}\n"] }]
|
|
314
|
-
}] });
|
|
315
|
-
|
|
316
|
-
function provideMaterialLayout(config = {}) {
|
|
317
|
-
return makeEnvironmentProviders([
|
|
318
|
-
{ provide: MATERIAL_LAYOUT_CONFIG$1, useValue: config },
|
|
319
|
-
{ provide: THEME_PANEL_LAYOUT_PORT, useExisting: LayoutService$1 },
|
|
320
|
-
provideEnvironmentInitializer(() => {
|
|
321
|
-
inject(LayoutService$1);
|
|
322
|
-
}),
|
|
323
|
-
]);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
class LayoutService {
|
|
327
|
-
document = inject(DOCUMENT);
|
|
328
|
-
config = this.resolveConfig();
|
|
329
|
-
_mode = signal(this.readPersistedMode() ?? this.config.defaultMode, /* @ts-ignore */
|
|
330
|
-
...(ngDevMode ? [{ debugName: "_mode" }] : /* istanbul ignore next */ []));
|
|
331
|
-
_width = signal(this.readPersistedWidth() ?? this.config.defaultWidth, /* @ts-ignore */
|
|
332
|
-
...(ngDevMode ? [{ debugName: "_width" }] : /* istanbul ignore next */ []));
|
|
333
|
-
mode = this._mode.asReadonly();
|
|
334
|
-
width = this._width.asReadonly();
|
|
335
|
-
constructor() {
|
|
336
|
-
effect(() => {
|
|
337
|
-
this.persistMode(this._mode());
|
|
338
|
-
});
|
|
339
|
-
effect(() => {
|
|
340
|
-
this.persistWidth(this._width());
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
setMode(mode) {
|
|
344
|
-
this._mode.set(mode);
|
|
345
|
-
}
|
|
346
|
-
toggleMode() {
|
|
347
|
-
this._mode.update((mode) => {
|
|
348
|
-
if (mode === 'vertical') {
|
|
349
|
-
return 'horizontal';
|
|
350
|
-
}
|
|
351
|
-
if (mode === 'horizontal') {
|
|
352
|
-
return 'vertical';
|
|
353
|
-
}
|
|
354
|
-
return 'vertical';
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
setWidth(width) {
|
|
358
|
-
this._width.set(width);
|
|
359
|
-
}
|
|
360
|
-
toggleWidth() {
|
|
361
|
-
this._width.update((width) => {
|
|
362
|
-
const currentIndex = LAYOUT_WIDTHS$1.indexOf(width);
|
|
363
|
-
return LAYOUT_WIDTHS$1[(currentIndex + 1) % LAYOUT_WIDTHS$1.length] ?? LAYOUT_WIDTHS$1[0];
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
resolveConfig() {
|
|
367
|
-
const config = inject(MATERIAL_LAYOUT_CONFIG$1, { optional: true }) ?? {};
|
|
368
|
-
const configuredMode = config.mode ?? config.defaultMode;
|
|
369
|
-
const configuredWidth = config.width;
|
|
370
|
-
return {
|
|
371
|
-
defaultMode: isLayoutMode$1(configuredMode) ? configuredMode : DEFAULT_MATERIAL_LAYOUT_CONFIG$1.defaultMode,
|
|
372
|
-
defaultWidth: normalizeLayoutWidth$1(configuredWidth) ?? DEFAULT_MATERIAL_LAYOUT_CONFIG$1.defaultWidth,
|
|
373
|
-
storageKey: config.storageKey ?? DEFAULT_MATERIAL_LAYOUT_CONFIG$1.storageKey,
|
|
374
|
-
widthStorageKey: config.widthStorageKey ?? DEFAULT_MATERIAL_LAYOUT_CONFIG$1.widthStorageKey,
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
readPersistedMode() {
|
|
378
|
-
const key = this.config.storageKey;
|
|
379
|
-
if (!key)
|
|
380
|
-
return null;
|
|
381
|
-
try {
|
|
382
|
-
const value = this.document.defaultView?.localStorage?.getItem(key);
|
|
383
|
-
return isLayoutMode$1(value) ? value : null;
|
|
384
|
-
}
|
|
385
|
-
catch {
|
|
386
|
-
return null;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
readPersistedWidth() {
|
|
390
|
-
const key = this.config.widthStorageKey;
|
|
391
|
-
if (!key)
|
|
392
|
-
return null;
|
|
393
|
-
try {
|
|
394
|
-
const value = this.document.defaultView?.localStorage?.getItem(key);
|
|
395
|
-
return normalizeLayoutWidth$1(value);
|
|
396
|
-
}
|
|
397
|
-
catch {
|
|
398
|
-
return null;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
persistMode(mode) {
|
|
402
|
-
const key = this.config.storageKey;
|
|
403
|
-
if (!key)
|
|
404
|
-
return;
|
|
405
|
-
try {
|
|
406
|
-
this.document.defaultView?.localStorage?.setItem(key, mode);
|
|
407
|
-
}
|
|
408
|
-
catch {
|
|
409
|
-
/* ignore */
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
persistWidth(width) {
|
|
413
|
-
const key = this.config.widthStorageKey;
|
|
414
|
-
if (!key)
|
|
415
|
-
return;
|
|
416
|
-
try {
|
|
417
|
-
this.document.defaultView?.localStorage?.setItem(key, width);
|
|
418
|
-
}
|
|
419
|
-
catch {
|
|
420
|
-
/* ignore */
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
424
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, providedIn: 'root' });
|
|
425
|
-
}
|
|
426
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutService, decorators: [{
|
|
427
|
-
type: Injectable,
|
|
428
|
-
args: [{ providedIn: 'root' }]
|
|
429
|
-
}], ctorParameters: () => [] });
|
|
430
|
-
|
|
431
|
-
const LAYOUT_MODES = ['vertical', 'horizontal', 'empty'];
|
|
432
|
-
const LAYOUT_WIDTHS = ['full', 'container', 'wide'];
|
|
433
|
-
const MATERIAL_LAYOUT_CONFIG = new InjectionToken('MATERIAL_LAYOUT_CONFIG');
|
|
434
|
-
const DEFAULT_MATERIAL_LAYOUT_CONFIG = {
|
|
435
|
-
defaultMode: 'vertical',
|
|
436
|
-
defaultWidth: 'wide',
|
|
437
|
-
storageKey: 'layout-mode',
|
|
438
|
-
widthStorageKey: 'layout-width',
|
|
439
|
-
};
|
|
440
|
-
function isLayoutMode(value) {
|
|
441
|
-
return LAYOUT_MODES.some((mode) => mode === value);
|
|
442
|
-
}
|
|
443
|
-
function isLayoutWidth(value) {
|
|
444
|
-
return LAYOUT_WIDTHS.some((width) => width === value);
|
|
445
|
-
}
|
|
446
|
-
function normalizeLayoutWidth(value) {
|
|
447
|
-
if (isLayoutWidth(value)) {
|
|
448
|
-
return value;
|
|
449
|
-
}
|
|
450
|
-
if (value === 'fixed') {
|
|
451
|
-
return 'container';
|
|
452
|
-
}
|
|
453
|
-
return null;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
class LayoutProfilePopoverDefaultsDirective {
|
|
457
|
-
layout = inject(LayoutService$1);
|
|
458
|
-
side = computed(() => (this.layout.mode() === 'horizontal' ? 'bottom' : 'right'), /* @ts-ignore */
|
|
459
|
-
...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
460
|
-
align = computed(() => 'end', /* @ts-ignore */
|
|
461
|
-
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
462
|
-
sideOffset = computed(() => (this.layout.mode() === 'horizontal' ? -20 : 12), /* @ts-ignore */
|
|
463
|
-
...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
|
|
464
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutProfilePopoverDefaultsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
465
|
-
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 });
|
|
466
|
-
}
|
|
467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LayoutProfilePopoverDefaultsDirective, decorators: [{
|
|
468
|
-
type: Directive,
|
|
469
|
-
args: [{
|
|
470
|
-
selector: '[ui-layout-profile][uiPopoverTrigger]',
|
|
471
|
-
providers: [{ provide: POPOVER_TRIGGER_DEFAULTS, useExisting: LayoutProfilePopoverDefaultsDirective }],
|
|
472
|
-
}]
|
|
473
|
-
}] });
|
|
474
|
-
|
|
475
|
-
/*
|
|
476
|
-
* Public API Surface of @ojiepermana/angular/layout
|
|
477
|
-
*/
|
|
478
|
-
const LAYOUT_VERSION = '0.0.1';
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Generated bundle index. Do not edit.
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
|
-
export { DEFAULT_MATERIAL_LAYOUT_CONFIG, EmptyLayoutComponent, HorizontalLayoutComponent, LAYOUT_MODES, LAYOUT_VERSION, LAYOUT_WIDTHS, LayoutProfilePopoverDefaultsDirective, LayoutService, MATERIAL_LAYOUT_CONFIG, ShellPagesComponent, VerticalLayoutComponent, isLayoutMode, isLayoutWidth, normalizeLayoutWidth, provideMaterialLayout };
|
|
485
|
-
//# sourceMappingURL=ojiepermana-angular-layout.mjs.map
|