@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,311 +0,0 @@
|
|
|
1
|
-
# Dropdown Menu
|
|
2
|
-
|
|
3
|
-
Accessible menu rendered in a CDK overlay with keyboard navigation (arrow keys,
|
|
4
|
-
Home/End, type-ahead, Escape).
|
|
5
|
-
|
|
6
|
-
This Angular implementation follows the shadcn Dropdown Menu information architecture while mapping the React root
|
|
7
|
-
component to an explicit trigger directive and projected menu template.
|
|
8
|
-
|
|
9
|
-
## Import
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
import {
|
|
13
|
-
MenuCheckboxItemComponent,
|
|
14
|
-
MenuTriggerDirective,
|
|
15
|
-
MenuContentDirective,
|
|
16
|
-
MenuGroupComponent,
|
|
17
|
-
MenuSurfaceComponent,
|
|
18
|
-
MenuItemComponent,
|
|
19
|
-
MenuRadioGroupComponent,
|
|
20
|
-
MenuRadioItemComponent,
|
|
21
|
-
MenuSeparatorComponent,
|
|
22
|
-
MenuLabelComponent,
|
|
23
|
-
MenuShortcutComponent,
|
|
24
|
-
} from '@ojiepermana/angular/component/dropdown-menu';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<button
|
|
31
|
-
ui-button
|
|
32
|
-
type="button"
|
|
33
|
-
variant="outline"
|
|
34
|
-
#accountTrigger="uiMenuTrigger"
|
|
35
|
-
[uiMenuTrigger]="menu"
|
|
36
|
-
side="bottom"
|
|
37
|
-
align="end">
|
|
38
|
-
Open
|
|
39
|
-
</button>
|
|
40
|
-
|
|
41
|
-
<ng-template uiMenuContent #menu="uiMenuContent">
|
|
42
|
-
<ui-menu-surface class="w-56">
|
|
43
|
-
<ui-menu-group>
|
|
44
|
-
<ui-menu-label>My account</ui-menu-label>
|
|
45
|
-
<button ui-menu-item type="button" (selected)="onProfile(); accountTrigger.close()">
|
|
46
|
-
Profile
|
|
47
|
-
<span ui-menu-shortcut>⌘P</span>
|
|
48
|
-
</button>
|
|
49
|
-
<button ui-menu-item type="button" (selected)="onSettings(); accountTrigger.close()">Settings</button>
|
|
50
|
-
</ui-menu-group>
|
|
51
|
-
<ui-menu-separator />
|
|
52
|
-
<ui-menu-group>
|
|
53
|
-
<button ui-menu-item type="button" disabled>Disabled</button>
|
|
54
|
-
<button ui-menu-item type="button" variant="destructive" (selected)="onSignOut(); accountTrigger.close()">
|
|
55
|
-
Sign out
|
|
56
|
-
</button>
|
|
57
|
-
</ui-menu-group>
|
|
58
|
-
</ui-menu-surface>
|
|
59
|
-
</ng-template>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Use the trigger export when a standard command row should dismiss the overlay. Checkbox and radio rows can stay open so
|
|
63
|
-
the user can adjust multiple settings in one pass.
|
|
64
|
-
|
|
65
|
-
## Composition
|
|
66
|
-
|
|
67
|
-
```text
|
|
68
|
-
button[ui-button][uiMenuTrigger]
|
|
69
|
-
└── ng-template[uiMenuContent]
|
|
70
|
-
└── ui-menu-surface
|
|
71
|
-
├── ui-menu-group
|
|
72
|
-
│ ├── ui-menu-label
|
|
73
|
-
│ ├── button[ui-menu-item]
|
|
74
|
-
│ └── button[ui-menu-item][uiMenuTrigger]
|
|
75
|
-
│ └── ng-template[uiMenuContent]
|
|
76
|
-
│ └── ui-menu-surface
|
|
77
|
-
├── ui-menu-separator
|
|
78
|
-
├── button[ui-menu-checkbox-item]
|
|
79
|
-
└── ui-menu-radio-group
|
|
80
|
-
└── button[ui-menu-radio-item]
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Common patterns
|
|
84
|
-
|
|
85
|
-
### Basic account menu
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
<button ui-button type="button" variant="outline" #menuTrigger="uiMenuTrigger" [uiMenuTrigger]="menu">Open</button>
|
|
89
|
-
|
|
90
|
-
<ng-template uiMenuContent #menu="uiMenuContent">
|
|
91
|
-
<ui-menu-surface class="w-56">
|
|
92
|
-
<ui-menu-group>
|
|
93
|
-
<ui-menu-label>My Account</ui-menu-label>
|
|
94
|
-
<button ui-menu-item type="button" (selected)="menuTrigger.close()">Profile</button>
|
|
95
|
-
<button ui-menu-item type="button" (selected)="menuTrigger.close()">Billing</button>
|
|
96
|
-
<button ui-menu-item type="button" (selected)="menuTrigger.close()">Settings</button>
|
|
97
|
-
</ui-menu-group>
|
|
98
|
-
<ui-menu-separator />
|
|
99
|
-
<ui-menu-group>
|
|
100
|
-
<button ui-menu-item type="button" (selected)="menuTrigger.close()">GitHub</button>
|
|
101
|
-
<button ui-menu-item type="button" (selected)="menuTrigger.close()">Support</button>
|
|
102
|
-
<button ui-menu-item type="button" [disabled]="true">API</button>
|
|
103
|
-
</ui-menu-group>
|
|
104
|
-
</ui-menu-surface>
|
|
105
|
-
</ng-template>
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Submenu
|
|
109
|
-
|
|
110
|
-
Map shadcn `DropdownMenuSub` to `uiMenuTrigger` on a `button[ui-menu-item]`.
|
|
111
|
-
|
|
112
|
-
```html
|
|
113
|
-
<ng-template uiMenuContent #inviteUsersMenu="uiMenuContent">
|
|
114
|
-
<ui-menu-surface class="w-48">
|
|
115
|
-
<button ui-menu-item type="button">Email</button>
|
|
116
|
-
<button ui-menu-item type="button">Message</button>
|
|
117
|
-
<button ui-menu-item type="button">Calendar invite</button>
|
|
118
|
-
</ui-menu-surface>
|
|
119
|
-
</ng-template>
|
|
120
|
-
|
|
121
|
-
<ui-menu-surface class="w-56">
|
|
122
|
-
<ui-menu-group>
|
|
123
|
-
<button ui-menu-item type="button">Team</button>
|
|
124
|
-
<button ui-menu-item type="button" [uiMenuTrigger]="inviteUsersMenu" side="right" align="start">
|
|
125
|
-
Invite users
|
|
126
|
-
<span class="ml-auto text-xs text-muted-foreground">›</span>
|
|
127
|
-
</button>
|
|
128
|
-
</ui-menu-group>
|
|
129
|
-
</ui-menu-surface>
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Checkboxes
|
|
133
|
-
|
|
134
|
-
Use checkbox rows when the menu exposes independent toggles.
|
|
135
|
-
|
|
136
|
-
```ts
|
|
137
|
-
const showStatusBar = signal(true);
|
|
138
|
-
const showActivityBar = signal(false);
|
|
139
|
-
const showPanel = signal(false);
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
```html
|
|
143
|
-
<ui-menu-surface class="w-44">
|
|
144
|
-
<ui-menu-group>
|
|
145
|
-
<ui-menu-label>Appearance</ui-menu-label>
|
|
146
|
-
<button ui-menu-checkbox-item type="button" [(checked)]="showStatusBar">Status Bar</button>
|
|
147
|
-
<button ui-menu-checkbox-item type="button" [(checked)]="showActivityBar">Activity Bar</button>
|
|
148
|
-
<button ui-menu-checkbox-item type="button" [(checked)]="showPanel">Panel</button>
|
|
149
|
-
</ui-menu-group>
|
|
150
|
-
</ui-menu-surface>
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Radio group
|
|
154
|
-
|
|
155
|
-
Use a radio group for one exclusive choice.
|
|
156
|
-
|
|
157
|
-
```ts
|
|
158
|
-
const panelPosition = signal<'top' | 'bottom' | 'right'>('bottom');
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
```html
|
|
162
|
-
<ui-menu-surface class="w-44">
|
|
163
|
-
<ui-menu-label [inset]="true">Panel Position</ui-menu-label>
|
|
164
|
-
<ui-menu-radio-group [(value)]="panelPosition">
|
|
165
|
-
<button ui-menu-radio-item type="button" value="top">Top</button>
|
|
166
|
-
<button ui-menu-radio-item type="button" value="bottom">Bottom</button>
|
|
167
|
-
<button ui-menu-radio-item type="button" value="right">Right</button>
|
|
168
|
-
</ui-menu-radio-group>
|
|
169
|
-
</ui-menu-surface>
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Shortcuts and icons
|
|
173
|
-
|
|
174
|
-
Project shortcut text and inline icons directly into the row content.
|
|
175
|
-
|
|
176
|
-
```html
|
|
177
|
-
<ui-menu-surface class="w-56">
|
|
178
|
-
<button ui-menu-item type="button">
|
|
179
|
-
<svg aria-hidden="true" class="size-4" viewBox="0 0 24 24">...</svg>
|
|
180
|
-
Profile
|
|
181
|
-
<span ui-menu-shortcut>⇧⌘P</span>
|
|
182
|
-
</button>
|
|
183
|
-
<button ui-menu-item type="button">
|
|
184
|
-
<svg aria-hidden="true" class="size-4" viewBox="0 0 24 24">...</svg>
|
|
185
|
-
Billing
|
|
186
|
-
<span ui-menu-shortcut>⌘B</span>
|
|
187
|
-
</button>
|
|
188
|
-
</ui-menu-surface>
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Avatar trigger composition
|
|
192
|
-
|
|
193
|
-
Also import the avatar entrypoint when the trigger should be an account avatar.
|
|
194
|
-
|
|
195
|
-
```ts
|
|
196
|
-
import { AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@ojiepermana/angular/component/avatar';
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
```html
|
|
200
|
-
<button
|
|
201
|
-
ui-button
|
|
202
|
-
type="button"
|
|
203
|
-
variant="ghost"
|
|
204
|
-
size="icon"
|
|
205
|
-
class="h-10 w-10 rounded-full p-0"
|
|
206
|
-
[uiMenuTrigger]="accountMenu"
|
|
207
|
-
align="end">
|
|
208
|
-
<ui-avatar>
|
|
209
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="Ada Lovelace" />
|
|
210
|
-
<ui-avatar-fallback>AL</ui-avatar-fallback>
|
|
211
|
-
</ui-avatar>
|
|
212
|
-
</button>
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### RTL
|
|
216
|
-
|
|
217
|
-
Set `dir="rtl"` and `lang` on the surface, and prefer `side="left"` when nested content should open toward the visual
|
|
218
|
-
start edge.
|
|
219
|
-
|
|
220
|
-
```html
|
|
221
|
-
<ng-template uiMenuContent #rtlAccountMenu="uiMenuContent">
|
|
222
|
-
<ui-menu-surface dir="rtl" lang="ar" class="w-44 text-right">
|
|
223
|
-
<button ui-menu-item type="button">الملف الشخصي</button>
|
|
224
|
-
<button ui-menu-item type="button">الفوترة</button>
|
|
225
|
-
</ui-menu-surface>
|
|
226
|
-
</ng-template>
|
|
227
|
-
|
|
228
|
-
<ui-menu-surface dir="rtl" lang="ar" class="w-56 text-right">
|
|
229
|
-
<button ui-menu-item type="button" [uiMenuTrigger]="rtlAccountMenu" side="left" align="start">
|
|
230
|
-
الحساب
|
|
231
|
-
<span class="mr-auto text-xs text-muted-foreground">‹</span>
|
|
232
|
-
</button>
|
|
233
|
-
</ui-menu-surface>
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## API
|
|
237
|
-
|
|
238
|
-
### `[uiMenuTrigger]`
|
|
239
|
-
|
|
240
|
-
| Input | Type | Default |
|
|
241
|
-
| --------------- | ---------------------------------------- | ---------- |
|
|
242
|
-
| `uiMenuTrigger` | `MenuContentDirective` | _required_ |
|
|
243
|
-
| `side` | `'top' \| 'right' \| 'bottom' \| 'left'` | `'bottom'` |
|
|
244
|
-
| `align` | `'start' \| 'center' \| 'end'` | `'start'` |
|
|
245
|
-
| `disabled` | `boolean` | `false` |
|
|
246
|
-
|
|
247
|
-
Output: `openedChange: boolean`. Methods: `open()`, `close()`, `toggle()`.
|
|
248
|
-
|
|
249
|
-
### `ng-template[uiMenuContent]`
|
|
250
|
-
|
|
251
|
-
Projected template wrapper for the menu surface that is consumed by `[uiMenuTrigger]`.
|
|
252
|
-
|
|
253
|
-
### `ui-menu-surface`
|
|
254
|
-
|
|
255
|
-
Container with `role="menu"` and arrow key navigation wired through
|
|
256
|
-
`FocusKeyManager` (wrapping + type-ahead). Emits `closeRequested` on Tab.
|
|
257
|
-
|
|
258
|
-
### `ui-menu-item`
|
|
259
|
-
|
|
260
|
-
`role="menuitem"`. Inputs: `disabled`, `inset`, `class`. Output: `selected`.
|
|
261
|
-
|
|
262
|
-
### `ui-menu-checkbox-item`
|
|
263
|
-
|
|
264
|
-
`role="menuitemcheckbox"`. Inputs: `[(checked)]`, `disabled`, `variant`, `class`.
|
|
265
|
-
|
|
266
|
-
### `ui-menu-radio-group` and `ui-menu-radio-item`
|
|
267
|
-
|
|
268
|
-
Use `[(value)]` on the group and `value` on each radio row. Radio items expose `role="menuitemradio"`.
|
|
269
|
-
|
|
270
|
-
### Auxiliary
|
|
271
|
-
|
|
272
|
-
- `ui-menu-group` → structural wrapper with `role="group"`.
|
|
273
|
-
- `ui-menu-separator` → `role="separator"`.
|
|
274
|
-
- `ui-menu-label` — non-interactive label row.
|
|
275
|
-
- `ui-menu-shortcut` — right-aligned shortcut badge.
|
|
276
|
-
|
|
277
|
-
## Styling and theming
|
|
278
|
-
|
|
279
|
-
Pass `class` to the surface or individual rows to control width, spacing, and emphasis. Borders and separators use the
|
|
280
|
-
shared theme border tokens, destructive rows use the destructive palette, and projected icons inherit the current text
|
|
281
|
-
color.
|
|
282
|
-
|
|
283
|
-
## Accessibility
|
|
284
|
-
|
|
285
|
-
- Trigger: `aria-haspopup="menu"`, `aria-expanded` reflects state.
|
|
286
|
-
- Surface: `role="menu"`, items receive `role="menuitem"`, disabled items get
|
|
287
|
-
`aria-disabled="true"`.
|
|
288
|
-
- Checkbox and radio items expose `aria-checked` semantics through the relevant menuitem roles.
|
|
289
|
-
- Close on outside click, Escape, or Tab. Focus returns to the trigger.
|
|
290
|
-
|
|
291
|
-
## Keyboard interactions
|
|
292
|
-
|
|
293
|
-
- Enter, Space, and ArrowDown on the trigger open the menu.
|
|
294
|
-
- Arrow Up and Arrow Down move between enabled rows; Home and End jump to the first or last row.
|
|
295
|
-
- Typeahead matches the row label text.
|
|
296
|
-
- Enter and Space activate the focused row.
|
|
297
|
-
|
|
298
|
-
## Angular notes
|
|
299
|
-
|
|
300
|
-
- There is no React-style `DropdownMenu` root component; the root behavior is handled by `uiMenuTrigger` and
|
|
301
|
-
`ng-template[uiMenuContent]`.
|
|
302
|
-
- Reuse `uiMenuTrigger` on `button[ui-menu-item]` when you need a submenu.
|
|
303
|
-
- Standard command rows can dismiss the overlay explicitly through a `#menuTrigger="uiMenuTrigger"` template reference,
|
|
304
|
-
while checkbox and radio rows can stay open for multi-step preference changes.
|
|
305
|
-
|
|
306
|
-
## Source parity
|
|
307
|
-
|
|
308
|
-
This Angular entrypoint keeps the main shadcn dropdown-menu patterns: grouped commands, shortcuts, icons, nested menus,
|
|
309
|
-
checkbox items, radio groups, avatar triggers, destructive rows, and RTL guidance. The shadcn page includes additional
|
|
310
|
-
permutations such as checkbox-icons, radio-icons, and a very large complex menu; the local demos cover the same
|
|
311
|
-
primitives through representative compositions instead of duplicating every permutation one-to-one.
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# Editor
|
|
2
|
-
|
|
3
|
-
Rich text editor shell with an accessible toolbar, configurable toolbar items, contenteditable form control support, and shadcn-style tokens.
|
|
4
|
-
|
|
5
|
-
This component is conceptually inspired by Flux Editor. It does not bundle Tiptap or Flux JavaScript; instead, it provides a lightweight Angular primitive that applications can compose, bind, and extend.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { FormsModule } from '@angular/forms';
|
|
11
|
-
import {
|
|
12
|
-
EditorButtonComponent,
|
|
13
|
-
EditorComponent,
|
|
14
|
-
EditorContentComponent,
|
|
15
|
-
EditorSeparatorComponent,
|
|
16
|
-
EditorSpacerComponent,
|
|
17
|
-
EditorToolbarComponent,
|
|
18
|
-
} from '@ojiepermana/angular/component/editor';
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```html
|
|
24
|
-
<ui-editor>
|
|
25
|
-
<ui-editor-toolbar items="heading | bold italic underline | align ~ undo redo" />
|
|
26
|
-
<ui-editor-content placeholder="Write something..." aria-label="Article body">
|
|
27
|
-
<h3>What's changed</h3>
|
|
28
|
-
<p>Draft release notes, article copy, or support responses here.</p>
|
|
29
|
-
</ui-editor-content>
|
|
30
|
-
</ui-editor>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Forms
|
|
34
|
-
|
|
35
|
-
`ui-editor-content` implements `ControlValueAccessor`, so it can bind to Angular forms as an HTML string.
|
|
36
|
-
|
|
37
|
-
```html
|
|
38
|
-
<ui-editor>
|
|
39
|
-
<ui-editor-toolbar />
|
|
40
|
-
<ui-editor-content [(ngModel)]="content" name="content" aria-label="Article body" />
|
|
41
|
-
</ui-editor>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Sanitize persisted HTML at the application boundary before rendering it elsewhere.
|
|
45
|
-
|
|
46
|
-
## Toolbar Items
|
|
47
|
-
|
|
48
|
-
The toolbar accepts a space-separated `items` string. Use `|` for a separator and `~` for a spacer.
|
|
49
|
-
|
|
50
|
-
```html
|
|
51
|
-
<ui-editor-toolbar items="heading | bold italic strike underline | bullet ordered blockquote link align ~ undo redo" />
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Supported item names:
|
|
55
|
-
|
|
56
|
-
| Item | Behavior |
|
|
57
|
-
| ------------- | ---------------------------------------------------- |
|
|
58
|
-
| `heading` | Text, heading 1, heading 2, and heading 3 selector. |
|
|
59
|
-
| `bold` | Bold formatting. |
|
|
60
|
-
| `italic` | Italic formatting. |
|
|
61
|
-
| `strike` | Strikethrough formatting. |
|
|
62
|
-
| `underline` | Underline formatting. |
|
|
63
|
-
| `bullet` | Bulleted list. |
|
|
64
|
-
| `ordered` | Numbered list. |
|
|
65
|
-
| `blockquote` | Block quote block. |
|
|
66
|
-
| `subscript` | Subscript formatting. |
|
|
67
|
-
| `superscript` | Superscript formatting. |
|
|
68
|
-
| `highlight` | Highlight selected text. |
|
|
69
|
-
| `link` | Create a placeholder link for the current selection. |
|
|
70
|
-
| `code` | Code block. |
|
|
71
|
-
| `align` | Left, center, and right alignment selector. |
|
|
72
|
-
| `undo` | Undo last edit. |
|
|
73
|
-
| `redo` | Redo last edit. |
|
|
74
|
-
|
|
75
|
-
## Custom Toolbar
|
|
76
|
-
|
|
77
|
-
Pass `items=""` and project custom toolbar controls.
|
|
78
|
-
|
|
79
|
-
```html
|
|
80
|
-
<ui-editor>
|
|
81
|
-
<ui-editor-toolbar items="">
|
|
82
|
-
<button ui-editor-button command="bold" aria-label="Bold">B</button>
|
|
83
|
-
<button ui-editor-button command="italic" aria-label="Italic">I</button>
|
|
84
|
-
<ui-editor-separator />
|
|
85
|
-
<button ui-editor-button command="highlight" aria-label="Highlight">H</button>
|
|
86
|
-
<ui-editor-spacer />
|
|
87
|
-
<button ui-editor-button command="undo" aria-label="Undo">
|
|
88
|
-
<svg
|
|
89
|
-
aria-hidden="true"
|
|
90
|
-
class="size-4"
|
|
91
|
-
viewBox="0 0 24 24"
|
|
92
|
-
fill="none"
|
|
93
|
-
stroke="currentColor"
|
|
94
|
-
stroke-width="1.75"
|
|
95
|
-
stroke-linecap="round"
|
|
96
|
-
stroke-linejoin="round">
|
|
97
|
-
<path d="M9 14 4 9l5-5" />
|
|
98
|
-
<path d="M4 9h10a6 6 0 0 1 0 12h-2" />
|
|
99
|
-
</svg>
|
|
100
|
-
</button>
|
|
101
|
-
</ui-editor-toolbar>
|
|
102
|
-
<ui-editor-content aria-label="Custom editor" />
|
|
103
|
-
</ui-editor>
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## Keyboard Shortcuts
|
|
107
|
-
|
|
108
|
-
| Action | Shortcut |
|
|
109
|
-
| ------------- | ----------------- |
|
|
110
|
-
| Bold | Cmd/Ctrl+B |
|
|
111
|
-
| Italic | Cmd/Ctrl+I |
|
|
112
|
-
| Underline | Cmd/Ctrl+U |
|
|
113
|
-
| Strikethrough | Cmd/Ctrl+Shift+X |
|
|
114
|
-
| Ordered list | Cmd/Ctrl+Shift+7 |
|
|
115
|
-
| Bulleted list | Cmd/Ctrl+Shift+8 |
|
|
116
|
-
| Heading 1-3 | Cmd/Ctrl+Alt+1..3 |
|
|
117
|
-
| Undo | Cmd/Ctrl+Z |
|
|
118
|
-
| Redo | Cmd/Ctrl+Shift+Z |
|
|
119
|
-
|
|
120
|
-
## Styling
|
|
121
|
-
|
|
122
|
-
The editor uses `border-input`, `bg-background`, `ring-ring`, `text-foreground`, `text-muted-foreground`, and `bg-muted` tokens. Pass sizing classes directly to the content slot when adjusting height.
|
|
123
|
-
|
|
124
|
-
```html
|
|
125
|
-
<ui-editor>
|
|
126
|
-
<ui-editor-toolbar />
|
|
127
|
-
<ui-editor-content class="min-h-30 max-h-60" aria-label="Compact editor" />
|
|
128
|
-
</ui-editor>
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## Accessibility
|
|
132
|
-
|
|
133
|
-
- `ui-editor-toolbar` renders `role="toolbar"`.
|
|
134
|
-
- `ui-editor-content` renders `role="textbox"` and `aria-multiline="true"`.
|
|
135
|
-
- Provide a clear `aria-label` for each editor content surface.
|
|
136
|
-
- Give terse or icon-only custom toolbar buttons an explicit `aria-label`.
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
# Empty
|
|
2
|
-
|
|
3
|
-
Displays a reusable empty state with header, media, title, description, and content slots.
|
|
4
|
-
|
|
5
|
-
Use Empty for onboarding gaps, no-results screens, no-notification panels, and 404-like recovery surfaces that need a clear next action.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import {
|
|
11
|
-
EmptyComponent,
|
|
12
|
-
EmptyContentComponent,
|
|
13
|
-
EmptyDescriptionComponent,
|
|
14
|
-
EmptyHeaderComponent,
|
|
15
|
-
EmptyMediaComponent,
|
|
16
|
-
EmptyTitleComponent,
|
|
17
|
-
} from '@ojiepermana/angular/component/empty';
|
|
18
|
-
import { ButtonComponent } from '@ojiepermana/angular/component/button';
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Composition
|
|
22
|
-
|
|
23
|
-
The Angular structure follows the shadcn Empty information architecture while keeping actions on native buttons and anchors.
|
|
24
|
-
|
|
25
|
-
```text
|
|
26
|
-
ui-empty
|
|
27
|
-
├── ui-empty-header
|
|
28
|
-
│ ├── ui-empty-media
|
|
29
|
-
│ ├── ui-empty-title
|
|
30
|
-
│ └── ui-empty-description
|
|
31
|
-
└── ui-empty-content
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Basic usage
|
|
35
|
-
|
|
36
|
-
```html
|
|
37
|
-
<ui-empty class="max-w-xl rounded-2xl border border-border bg-card/40">
|
|
38
|
-
<ui-empty-header>
|
|
39
|
-
<ui-empty-media variant="icon">
|
|
40
|
-
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
41
|
-
<path d="M12 6v12" />
|
|
42
|
-
<path d="M6 12h12" />
|
|
43
|
-
</svg>
|
|
44
|
-
</ui-empty-media>
|
|
45
|
-
<ui-empty-title>No projects yet</ui-empty-title>
|
|
46
|
-
<ui-empty-description>
|
|
47
|
-
You have not created any projects yet. Start by creating a new project or importing an existing one.
|
|
48
|
-
</ui-empty-description>
|
|
49
|
-
</ui-empty-header>
|
|
50
|
-
|
|
51
|
-
<ui-empty-content class="sm:flex-row">
|
|
52
|
-
<button ui-button type="button">Create project</button>
|
|
53
|
-
<button ui-button type="button" variant="outline">Import project</button>
|
|
54
|
-
</ui-empty-content>
|
|
55
|
-
|
|
56
|
-
<a ui-button href="/docs/getting-started" variant="link" class="text-muted-foreground">Learn more</a>
|
|
57
|
-
</ui-empty>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Common patterns
|
|
61
|
-
|
|
62
|
-
### Outline shell
|
|
63
|
-
|
|
64
|
-
Use border utilities on the root when the empty state should read like an inset card or dashboard panel.
|
|
65
|
-
|
|
66
|
-
```html
|
|
67
|
-
<ui-empty class="rounded-2xl border border-dashed border-border">
|
|
68
|
-
<ui-empty-header>
|
|
69
|
-
<ui-empty-media variant="icon">...</ui-empty-media>
|
|
70
|
-
<ui-empty-title>Cloud storage empty</ui-empty-title>
|
|
71
|
-
<ui-empty-description>Upload files to your cloud storage to access them anywhere.</ui-empty-description>
|
|
72
|
-
</ui-empty-header>
|
|
73
|
-
<ui-empty-content>
|
|
74
|
-
<button ui-button type="button" variant="outline" size="sm">Upload files</button>
|
|
75
|
-
</ui-empty-content>
|
|
76
|
-
</ui-empty>
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Avatar media
|
|
80
|
-
|
|
81
|
-
Leave `ui-empty-media` on the default variant when projecting an avatar, avatar group, or any other custom artwork.
|
|
82
|
-
|
|
83
|
-
```html
|
|
84
|
-
<ui-empty>
|
|
85
|
-
<ui-empty-header>
|
|
86
|
-
<ui-empty-media>
|
|
87
|
-
<ui-avatar class="size-12">
|
|
88
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="shadcn" />
|
|
89
|
-
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
90
|
-
</ui-avatar>
|
|
91
|
-
</ui-empty-media>
|
|
92
|
-
<ui-empty-title>User offline</ui-empty-title>
|
|
93
|
-
<ui-empty-description>Leave a message and they will be notified when they come back online.</ui-empty-description>
|
|
94
|
-
</ui-empty-header>
|
|
95
|
-
<ui-empty-content>
|
|
96
|
-
<button ui-button type="button" size="sm">Leave message</button>
|
|
97
|
-
</ui-empty-content>
|
|
98
|
-
</ui-empty>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Input group recovery
|
|
102
|
-
|
|
103
|
-
Compose `ui-empty-content` with the existing input-group primitives when the empty state should immediately guide recovery or search.
|
|
104
|
-
|
|
105
|
-
```html
|
|
106
|
-
<ui-empty class="max-w-xl rounded-2xl border border-border">
|
|
107
|
-
<ui-empty-header>
|
|
108
|
-
<ui-empty-title>404 - Not found</ui-empty-title>
|
|
109
|
-
<ui-empty-description>
|
|
110
|
-
The page you are looking for does not exist. Try searching for what you need below.
|
|
111
|
-
</ui-empty-description>
|
|
112
|
-
</ui-empty-header>
|
|
113
|
-
<ui-empty-content class="max-w-md">
|
|
114
|
-
<ui-input-group class="w-full">
|
|
115
|
-
<input ui-input-group-input aria-label="Search pages" placeholder="Try searching for pages..." />
|
|
116
|
-
<ui-input-group-addon>
|
|
117
|
-
<span aria-hidden="true">⌕</span>
|
|
118
|
-
</ui-input-group-addon>
|
|
119
|
-
<ui-input-group-addon align="inline-end">
|
|
120
|
-
<span
|
|
121
|
-
aria-hidden="true"
|
|
122
|
-
class="inline-flex h-6 items-center rounded-md border border-border bg-background px-2 font-mono text-[11px] font-medium text-foreground shadow-sm">
|
|
123
|
-
/
|
|
124
|
-
</span>
|
|
125
|
-
</ui-input-group-addon>
|
|
126
|
-
</ui-input-group>
|
|
127
|
-
</ui-empty-content>
|
|
128
|
-
</ui-empty>
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## API reference
|
|
132
|
-
|
|
133
|
-
### `EmptyComponent`
|
|
134
|
-
|
|
135
|
-
| Input | Type | Default |
|
|
136
|
-
| ------- | -------- | ------- |
|
|
137
|
-
| `class` | `string` | `''` |
|
|
138
|
-
|
|
139
|
-
### `EmptyMediaComponent`
|
|
140
|
-
|
|
141
|
-
| Input | Type | Default |
|
|
142
|
-
| --------- | --------------------- | ----------- |
|
|
143
|
-
| `variant` | `'default' \| 'icon'` | `'default'` |
|
|
144
|
-
| `class` | `string` | `''` |
|
|
145
|
-
|
|
146
|
-
### Parts
|
|
147
|
-
|
|
148
|
-
- `ui-empty-header` centers the media, title, and description stack.
|
|
149
|
-
- `ui-empty-title` provides the primary heading.
|
|
150
|
-
- `ui-empty-description` renders supporting copy with muted foreground color.
|
|
151
|
-
- `ui-empty-content` groups actions, inputs, or recovery affordances under the header.
|
|
152
|
-
|
|
153
|
-
All Empty parts also accept a `class` input.
|
|
154
|
-
|
|
155
|
-
## Styling and theming
|
|
156
|
-
|
|
157
|
-
The primitive keeps styling neutral by default: the root controls spacing and alignment, while visual shells such as borders, gradients, and muted backgrounds are layered through `class`.
|
|
158
|
-
|
|
159
|
-
`ui-empty-media` uses `border-border` and `bg-muted/40` for the icon variant so the icon chip matches the rest of the theme without inheriting text color for borders.
|
|
160
|
-
|
|
161
|
-
Use `class` on the root or parts to add panel borders, gradient backgrounds, tighter widths, or horizontal action layouts.
|
|
162
|
-
|
|
163
|
-
## Accessibility
|
|
164
|
-
|
|
165
|
-
- Keep the title and description visible so the empty state communicates both the missing content and the next step.
|
|
166
|
-
- Put actions on native `<button>` or `<a ui-button>` hosts instead of faking interactivity with generic elements.
|
|
167
|
-
- Mark decorative icons inside `ui-empty-media` as `aria-hidden="true"` unless the icon itself provides unique meaning.
|
|
168
|
-
|
|
169
|
-
## Keyboard interactions
|
|
170
|
-
|
|
171
|
-
- The Empty primitives themselves are passive layout containers and do not enter the tab order.
|
|
172
|
-
- Projected buttons, anchors, and inputs keep their native Tab, Enter, and Space behavior.
|
|
173
|
-
- When `ui-empty-content` contains an input group, the control remains first in the DOM so tab order stays predictable.
|
|
174
|
-
|
|
175
|
-
## Angular notes
|
|
176
|
-
|
|
177
|
-
- `ui-empty` is a reusable content primitive, not the same surface as `@ojiepermana/angular/layout/empty`, which remains a route-shell layout.
|
|
178
|
-
- The link action from the upstream shadcn preview maps cleanly to `<a ui-button variant="link">` in Angular.
|
|
179
|
-
- Project any custom artwork into `ui-empty-media`; only the `icon` variant applies a circular icon shell.
|
|
180
|
-
|
|
181
|
-
## Source parity
|
|
182
|
-
|
|
183
|
-
This Angular implementation follows the shadcn Empty page structure, examples, and API reference while translating React composition to Angular selectors and keeping page-shell layout concerns separate from the reusable empty-state primitive.
|