@edsis/angular 22.0.1 → 22.0.3
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 +88 -261
- package/fesm2022/edsis-angular-block-shell.mjs +759 -0
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -0
- package/fesm2022/edsis-angular-module-auth.mjs +1574 -0
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -0
- package/fesm2022/edsis-angular.mjs +8 -0
- package/fesm2022/edsis-angular.mjs.map +1 -0
- package/package.json +17 -429
- package/types/edsis-angular-block-shell.d.ts +114 -0
- package/types/edsis-angular-module-auth.d.ts +140 -0
- package/types/edsis-angular.d.ts +2 -0
- 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 +0 -390
- package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular.mjs +0 -22
- 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
- package/types/ojiepermana-angular-theme.d.ts +0 -116
- package/types/ojiepermana-angular.d.ts +0 -3
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
# Alert Dialog
|
|
2
|
-
|
|
3
|
-
Displays a modal confirmation surface for important or destructive actions where the user is expected to respond before continuing.
|
|
4
|
-
|
|
5
|
-
Use Alert Dialog for delete confirmations, permission prompts, and share or access decisions that should not dismiss accidentally on backdrop click.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import {
|
|
11
|
-
AlertDialogActionComponent,
|
|
12
|
-
AlertDialogCancelComponent,
|
|
13
|
-
AlertDialogComponent,
|
|
14
|
-
AlertDialogContentComponent,
|
|
15
|
-
AlertDialogDescriptionComponent,
|
|
16
|
-
AlertDialogFooterComponent,
|
|
17
|
-
AlertDialogHeaderComponent,
|
|
18
|
-
AlertDialogMediaComponent,
|
|
19
|
-
AlertDialogTitleComponent,
|
|
20
|
-
} from '@edsis/angular/component/alert-dialog';
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Composition
|
|
24
|
-
|
|
25
|
-
The Angular composition keeps the shadcn structure for content and actions, with one intentional mapping difference: shadcn `AlertDialogTrigger` becomes any external control that toggles the `open` signal.
|
|
26
|
-
|
|
27
|
-
```text
|
|
28
|
-
button[ui-button] (external trigger; sets the open signal)
|
|
29
|
-
ui-alert-dialog
|
|
30
|
-
└── ui-alert-dialog-content
|
|
31
|
-
├── ui-alert-dialog-header
|
|
32
|
-
│ ├── ui-alert-dialog-media (optional)
|
|
33
|
-
│ ├── ui-alert-dialog-title
|
|
34
|
-
│ └── ui-alert-dialog-description
|
|
35
|
-
└── ui-alert-dialog-footer
|
|
36
|
-
├── button[ui-alert-dialog-cancel]
|
|
37
|
-
└── button[ui-alert-dialog-action]
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Basic usage
|
|
41
|
-
|
|
42
|
-
Use an external trigger to set the `open` model, then declare the alert content inside `ui-alert-dialog`.
|
|
43
|
-
|
|
44
|
-
```html
|
|
45
|
-
<button type="button" ui-button variant="outline" (click)="confirmOpen.set(true)">Show Dialog</button>
|
|
46
|
-
|
|
47
|
-
<ui-alert-dialog [(open)]="confirmOpen" aria-labelledby="alert-title" aria-describedby="alert-description">
|
|
48
|
-
<ui-alert-dialog-content>
|
|
49
|
-
<ui-alert-dialog-header>
|
|
50
|
-
<ui-alert-dialog-title id="alert-title">Are you absolutely sure?</ui-alert-dialog-title>
|
|
51
|
-
<ui-alert-dialog-description id="alert-description">
|
|
52
|
-
This action cannot be undone. This will permanently delete your account from our servers.
|
|
53
|
-
</ui-alert-dialog-description>
|
|
54
|
-
</ui-alert-dialog-header>
|
|
55
|
-
|
|
56
|
-
<ui-alert-dialog-footer>
|
|
57
|
-
<button type="button" ui-alert-dialog-cancel>Cancel</button>
|
|
58
|
-
<button type="button" ui-alert-dialog-action>Continue</button>
|
|
59
|
-
</ui-alert-dialog-footer>
|
|
60
|
-
</ui-alert-dialog-content>
|
|
61
|
-
</ui-alert-dialog>
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Common patterns
|
|
65
|
-
|
|
66
|
-
### Small confirmation
|
|
67
|
-
|
|
68
|
-
Set `size="sm"` on `ui-alert-dialog-content` for shorter mobile-friendly confirmations.
|
|
69
|
-
|
|
70
|
-
```html
|
|
71
|
-
<ui-alert-dialog [(open)]="smallOpen">
|
|
72
|
-
<ui-alert-dialog-content size="sm">
|
|
73
|
-
<ui-alert-dialog-header>
|
|
74
|
-
<ui-alert-dialog-title>Allow accessory to connect?</ui-alert-dialog-title>
|
|
75
|
-
<ui-alert-dialog-description>
|
|
76
|
-
Do you want to allow the USB accessory to connect to this device?
|
|
77
|
-
</ui-alert-dialog-description>
|
|
78
|
-
</ui-alert-dialog-header>
|
|
79
|
-
|
|
80
|
-
<ui-alert-dialog-footer>
|
|
81
|
-
<button type="button" ui-alert-dialog-cancel>Don't allow</button>
|
|
82
|
-
<button type="button" ui-alert-dialog-action>Allow</button>
|
|
83
|
-
</ui-alert-dialog-footer>
|
|
84
|
-
</ui-alert-dialog-content>
|
|
85
|
-
</ui-alert-dialog>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Media
|
|
89
|
-
|
|
90
|
-
Use `ui-alert-dialog-media` to add an icon or other leading visual treatment above the title on mobile and beside it on larger screens.
|
|
91
|
-
|
|
92
|
-
```html
|
|
93
|
-
<ui-alert-dialog [(open)]="shareOpen">
|
|
94
|
-
<ui-alert-dialog-content>
|
|
95
|
-
<ui-alert-dialog-header>
|
|
96
|
-
<ui-alert-dialog-media>
|
|
97
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true">
|
|
98
|
-
<path d="M12 5v14" />
|
|
99
|
-
<path d="M5 12h14" />
|
|
100
|
-
<circle cx="12" cy="12" r="8" />
|
|
101
|
-
</svg>
|
|
102
|
-
</ui-alert-dialog-media>
|
|
103
|
-
<ui-alert-dialog-title>Share this project?</ui-alert-dialog-title>
|
|
104
|
-
<ui-alert-dialog-description>
|
|
105
|
-
Anyone with the link will be able to view and edit this project.
|
|
106
|
-
</ui-alert-dialog-description>
|
|
107
|
-
</ui-alert-dialog-header>
|
|
108
|
-
|
|
109
|
-
<ui-alert-dialog-footer>
|
|
110
|
-
<button type="button" ui-alert-dialog-cancel>Cancel</button>
|
|
111
|
-
<button type="button" ui-alert-dialog-action>Share</button>
|
|
112
|
-
</ui-alert-dialog-footer>
|
|
113
|
-
</ui-alert-dialog-content>
|
|
114
|
-
</ui-alert-dialog>
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Destructive action
|
|
118
|
-
|
|
119
|
-
Pass `variant="destructive"` to `ui-alert-dialog-action` when the primary action is destructive.
|
|
120
|
-
|
|
121
|
-
```html
|
|
122
|
-
<ui-alert-dialog [(open)]="deleteOpen">
|
|
123
|
-
<ui-alert-dialog-content size="sm">
|
|
124
|
-
<ui-alert-dialog-header>
|
|
125
|
-
<ui-alert-dialog-media class="border-destructive/20 bg-destructive/10 text-destructive">
|
|
126
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true">
|
|
127
|
-
<path d="M3 6h18" />
|
|
128
|
-
<path d="M8 6V4h8v2" />
|
|
129
|
-
<path d="M8 10v6" />
|
|
130
|
-
<path d="M12 10v6" />
|
|
131
|
-
<path d="M16 10v6" />
|
|
132
|
-
<path d="M5 6l1 13h12l1-13" />
|
|
133
|
-
</svg>
|
|
134
|
-
</ui-alert-dialog-media>
|
|
135
|
-
<ui-alert-dialog-title>Delete chat?</ui-alert-dialog-title>
|
|
136
|
-
<ui-alert-dialog-description>
|
|
137
|
-
This permanently deletes the conversation and removes saved memories linked to it.
|
|
138
|
-
</ui-alert-dialog-description>
|
|
139
|
-
</ui-alert-dialog-header>
|
|
140
|
-
|
|
141
|
-
<ui-alert-dialog-footer>
|
|
142
|
-
<button type="button" ui-alert-dialog-cancel>Cancel</button>
|
|
143
|
-
<button type="button" ui-alert-dialog-action variant="destructive">Delete</button>
|
|
144
|
-
</ui-alert-dialog-footer>
|
|
145
|
-
</ui-alert-dialog-content>
|
|
146
|
-
</ui-alert-dialog>
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### RTL
|
|
150
|
-
|
|
151
|
-
Wrap the trigger and dialog in a `dir="rtl"` container or manage direction globally in the app shell.
|
|
152
|
-
|
|
153
|
-
```html
|
|
154
|
-
<div dir="rtl" lang="ar" class="text-right">
|
|
155
|
-
<button type="button" ui-button variant="outline" (click)="rtlOpen.set(true)">إظهار الحوار</button>
|
|
156
|
-
|
|
157
|
-
<ui-alert-dialog [(open)]="rtlOpen" aria-labelledby="rtl-title" aria-describedby="rtl-description">
|
|
158
|
-
<ui-alert-dialog-content size="sm">
|
|
159
|
-
<ui-alert-dialog-header>
|
|
160
|
-
<ui-alert-dialog-title id="rtl-title">هل أنت متأكد تمامًا؟</ui-alert-dialog-title>
|
|
161
|
-
<ui-alert-dialog-description id="rtl-description">
|
|
162
|
-
لا يمكن التراجع عن هذا الإجراء. سيؤدي هذا إلى حذف حسابك نهائيًا من خوادمنا.
|
|
163
|
-
</ui-alert-dialog-description>
|
|
164
|
-
</ui-alert-dialog-header>
|
|
165
|
-
<ui-alert-dialog-footer>
|
|
166
|
-
<button type="button" ui-alert-dialog-cancel>إلغاء</button>
|
|
167
|
-
<button type="button" ui-alert-dialog-action>متابعة</button>
|
|
168
|
-
</ui-alert-dialog-footer>
|
|
169
|
-
</ui-alert-dialog-content>
|
|
170
|
-
</ui-alert-dialog>
|
|
171
|
-
</div>
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## API reference
|
|
175
|
-
|
|
176
|
-
### `AlertDialogComponent`
|
|
177
|
-
|
|
178
|
-
| Input | Type | Default |
|
|
179
|
-
| ---------------------- | --------- | --------- | ------ |
|
|
180
|
-
| `open` (model) | `boolean` | `false` |
|
|
181
|
-
| `closeOnEscape` | `boolean` | `true` |
|
|
182
|
-
| `closeOnBackdropClick` | `boolean` | `false` |
|
|
183
|
-
| `showCloseButton` | `boolean` | `false` |
|
|
184
|
-
| `closeButtonLabel` | `string` | `'Close'` |
|
|
185
|
-
| `aria-labelledby` | `string | null` | `null` |
|
|
186
|
-
| `aria-describedby` | `string | null` | `null` |
|
|
187
|
-
| `class` | `string` | `''` |
|
|
188
|
-
|
|
189
|
-
Output: `openedChange: boolean`. Method: `close()`.
|
|
190
|
-
|
|
191
|
-
### `AlertDialogContentComponent`
|
|
192
|
-
|
|
193
|
-
| Input | Type | Default |
|
|
194
|
-
| ------- | ---------- | ------- | ----------- |
|
|
195
|
-
| `size` | `'default' | 'sm'` | `'default'` |
|
|
196
|
-
| `class` | `string` | `''` |
|
|
197
|
-
|
|
198
|
-
### Parts
|
|
199
|
-
|
|
200
|
-
| Part | Purpose |
|
|
201
|
-
| -------------------------------- | ------------------------------------------------------------------ |
|
|
202
|
-
| `ui-alert-dialog-header` | Title, optional media, and supporting copy wrapper |
|
|
203
|
-
| `ui-alert-dialog-title` | Primary label announced when the dialog opens |
|
|
204
|
-
| `ui-alert-dialog-description` | Supporting copy announced after the title |
|
|
205
|
-
| `ui-alert-dialog-media` | Optional icon or visual cue for the decision |
|
|
206
|
-
| `ui-alert-dialog-footer` | Action row |
|
|
207
|
-
| `button[ui-alert-dialog-cancel]` | Secondary action with outline styling that closes the dialog |
|
|
208
|
-
| `button[ui-alert-dialog-action]` | Primary action that closes the dialog and supports button variants |
|
|
209
|
-
|
|
210
|
-
Lower-level behavior is based on the Radix Alert Dialog pattern: <https://www.radix-ui.com/primitives/docs/components/alert-dialog#api-reference>.
|
|
211
|
-
|
|
212
|
-
## Styling and theming
|
|
213
|
-
|
|
214
|
-
The surface reuses the shared dialog overlay and theme tokens, while the action parts reuse the same `buttonVariants` definitions as `ui-button`.
|
|
215
|
-
|
|
216
|
-
Pass `class` to `ui-alert-dialog` when you need custom max width or spacing, `size="sm"` to `ui-alert-dialog-content` for compact confirmations, and `class` to `ui-alert-dialog-media` when a specific tone such as destructive emphasis is needed.
|
|
217
|
-
|
|
218
|
-
## Accessibility
|
|
219
|
-
|
|
220
|
-
- The surface renders with `role="dialog"` and `aria-modal="true"`.
|
|
221
|
-
- Focus is trapped while the alert dialog is open and restored to the previously active element when it closes.
|
|
222
|
-
- Backdrop click is disabled by default so confirmations do not dismiss accidentally.
|
|
223
|
-
- Keep `ui-alert-dialog-title` and `ui-alert-dialog-description` short and descriptive so assistive technologies announce useful context immediately.
|
|
224
|
-
|
|
225
|
-
## Keyboard interactions
|
|
226
|
-
|
|
227
|
-
- `Tab` and `Shift+Tab` stay inside the modal while it is open.
|
|
228
|
-
- `Escape` closes the alert dialog unless `closeOnEscape` is disabled.
|
|
229
|
-
- Native button activation handles `Enter` and `Space` for cancel and action buttons.
|
|
230
|
-
|
|
231
|
-
## Angular notes
|
|
232
|
-
|
|
233
|
-
- This implementation intentionally maps shadcn `AlertDialogTrigger` to any external trigger that owns the `open` signal.
|
|
234
|
-
- `button[ui-alert-dialog-cancel]` and `button[ui-alert-dialog-action]` close the nearest ancestor alert dialog automatically by default.
|
|
235
|
-
- Use `(click)` on the action button for side effects such as deleting or sharing, and keep `closeOnClick` enabled unless the flow needs to wait for an async result.
|
|
236
|
-
|
|
237
|
-
## Source parity
|
|
238
|
-
|
|
239
|
-
This Angular implementation keeps the shadcn information architecture, examples, and `size="sm"` content behavior while translating trigger ownership to Angular signals and dedicated attribute components for the footer actions.
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# Aspect Ratio
|
|
2
|
-
|
|
3
|
-
Displays content within a fixed width-to-height ratio.
|
|
4
|
-
|
|
5
|
-
Use Aspect Ratio for image frames, media placeholders, thumbnail cards, and any layout where the container height should derive from the available width.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { AspectRatioComponent } from '@edsis/angular/component/aspect-ratio';
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
Bind a numeric ratio with `[ratio]`. The host renders as a block-level container with `position: relative`, so projected children can fill the box with `h-full w-full` or positioned overlays.
|
|
16
|
-
|
|
17
|
-
```html
|
|
18
|
-
<div class="w-full max-w-sm">
|
|
19
|
-
<ui-aspect-ratio [ratio]="16 / 9" class="overflow-hidden rounded-lg border border-border bg-muted/30">
|
|
20
|
-
<img src="https://avatar.vercel.sh/shadcn1" alt="Demo media" class="h-full w-full object-cover" />
|
|
21
|
-
</ui-aspect-ratio>
|
|
22
|
-
</div>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Common patterns
|
|
26
|
-
|
|
27
|
-
### Landscape media
|
|
28
|
-
|
|
29
|
-
Use `16 / 9` for hero images, video posters, and card thumbnails.
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<div class="max-w-sm">
|
|
33
|
-
<ui-aspect-ratio [ratio]="16 / 9" class="overflow-hidden rounded-lg bg-muted">
|
|
34
|
-
<img src="..." alt="Landscape" class="h-full w-full object-cover" />
|
|
35
|
-
</ui-aspect-ratio>
|
|
36
|
-
</div>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Square avatars or gallery tiles
|
|
40
|
-
|
|
41
|
-
Use `1` for square media slots.
|
|
42
|
-
|
|
43
|
-
```html
|
|
44
|
-
<div class="max-w-48">
|
|
45
|
-
<ui-aspect-ratio [ratio]="1" class="overflow-hidden rounded-xl bg-muted">
|
|
46
|
-
<img src="..." alt="Square tile" class="h-full w-full object-cover" />
|
|
47
|
-
</ui-aspect-ratio>
|
|
48
|
-
</div>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Portrait cards
|
|
52
|
-
|
|
53
|
-
Use `9 / 16` when the design calls for tall image treatments.
|
|
54
|
-
|
|
55
|
-
```html
|
|
56
|
-
<div class="max-w-40">
|
|
57
|
-
<ui-aspect-ratio [ratio]="9 / 16" class="overflow-hidden rounded-xl bg-muted">
|
|
58
|
-
<img src="..." alt="Portrait tile" class="h-full w-full object-cover" />
|
|
59
|
-
</ui-aspect-ratio>
|
|
60
|
-
</div>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Figure with caption
|
|
64
|
-
|
|
65
|
-
Keep captions outside the ratio box so the media height stays stable while text can grow naturally.
|
|
66
|
-
|
|
67
|
-
```html
|
|
68
|
-
<figure class="max-w-sm">
|
|
69
|
-
<ui-aspect-ratio [ratio]="16 / 9" class="overflow-hidden rounded-lg border border-border bg-muted/30">
|
|
70
|
-
<img src="..." alt="Beautiful landscape" class="h-full w-full object-cover" />
|
|
71
|
-
</ui-aspect-ratio>
|
|
72
|
-
<figcaption class="mt-2 text-sm text-muted-foreground">Beautiful landscape</figcaption>
|
|
73
|
-
</figure>
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## API reference
|
|
77
|
-
|
|
78
|
-
### `AspectRatioComponent`
|
|
79
|
-
|
|
80
|
-
| Input | Type | Default | Description |
|
|
81
|
-
| ------- | -------- | -------- | ------------------------------------------------------------------------------------------- |
|
|
82
|
-
| `ratio` | `number` | required | The desired width-to-height ratio. Use Angular expressions like `16 / 9`, `1`, or `9 / 16`. |
|
|
83
|
-
| `class` | `string` | `''` | Additional utility classes for the host container. |
|
|
84
|
-
|
|
85
|
-
## Styling and theming
|
|
86
|
-
|
|
87
|
-
Base host classes: `relative block w-full`.
|
|
88
|
-
|
|
89
|
-
Pass utility classes for rounded corners, borders, backgrounds, shadows, and max width. Add `overflow-hidden` when the projected media should be clipped to the container radius. The projected child should usually use `h-full w-full object-cover` for image-like content.
|
|
90
|
-
|
|
91
|
-
## Accessibility
|
|
92
|
-
|
|
93
|
-
Aspect Ratio has no built-in semantics beyond its host element. Accessibility comes from the projected content.
|
|
94
|
-
|
|
95
|
-
- Provide meaningful `alt` text for images.
|
|
96
|
-
- Prefer `<figure>` and `<figcaption>` when media needs visible labeling.
|
|
97
|
-
- Do not place essential text only inside a background image.
|
|
98
|
-
|
|
99
|
-
## Keyboard interactions
|
|
100
|
-
|
|
101
|
-
Aspect Ratio has no keyboard interaction. It should not receive focus unless the projected content contains an interactive control.
|
|
102
|
-
|
|
103
|
-
## Angular notes
|
|
104
|
-
|
|
105
|
-
- Import `AspectRatioComponent` directly into the standalone component that owns the media layout.
|
|
106
|
-
- Use `[ratio]` with a numeric Angular expression instead of a React prop like `ratio={16 / 9}`.
|
|
107
|
-
- The component uses a block-level custom element so width utilities such as `w-full` and `max-w-sm` behave predictably.
|
|
108
|
-
- The projected content is wrapped in an absolute fill container so overlays and full-height media stay aligned with the ratio box.
|
|
109
|
-
|
|
110
|
-
## Source parity
|
|
111
|
-
|
|
112
|
-
This Angular implementation follows the shadcn Aspect Ratio examples for landscape, square, portrait, and RTL-friendly media layouts while translating React props and fill behavior to Angular bindings and projected content.
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
# Avatar
|
|
2
|
-
|
|
3
|
-
Rounded image with an automatic text fallback when the image fails to load.
|
|
4
|
-
|
|
5
|
-
This Angular implementation follows the shadcn Avatar information architecture while adapting it to standalone Angular imports, signal-friendly inputs, and local menu primitives.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import {
|
|
11
|
-
AvatarBadgeComponent,
|
|
12
|
-
AvatarComponent,
|
|
13
|
-
AvatarFallbackComponent,
|
|
14
|
-
AvatarGroupComponent,
|
|
15
|
-
AvatarGroupCountComponent,
|
|
16
|
-
AvatarImageComponent,
|
|
17
|
-
} from '@edsis/angular/component/avatar';
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```html
|
|
23
|
-
<ui-avatar size="lg">
|
|
24
|
-
<ui-avatar-image src="/me.jpg" alt="Ada Lovelace" />
|
|
25
|
-
<ui-avatar-fallback>AL</ui-avatar-fallback>
|
|
26
|
-
<ui-avatar-badge class="bg-emerald-600" aria-hidden="true"></ui-avatar-badge>
|
|
27
|
-
</ui-avatar>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
If `src` fails to load, the `<img>` is removed and the fallback becomes visible.
|
|
31
|
-
|
|
32
|
-
## Composition
|
|
33
|
-
|
|
34
|
-
```text
|
|
35
|
-
ui-avatar
|
|
36
|
-
├── ui-avatar-image
|
|
37
|
-
├── ui-avatar-fallback
|
|
38
|
-
└── ui-avatar-badge
|
|
39
|
-
|
|
40
|
-
ui-avatar-group
|
|
41
|
-
├── ui-avatar
|
|
42
|
-
│ ├── ui-avatar-image
|
|
43
|
-
│ ├── ui-avatar-fallback
|
|
44
|
-
│ └── ui-avatar-badge
|
|
45
|
-
├── ui-avatar
|
|
46
|
-
│ ├── ui-avatar-image
|
|
47
|
-
│ ├── ui-avatar-fallback
|
|
48
|
-
│ └── ui-avatar-badge
|
|
49
|
-
└── ui-avatar-group-count
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Common patterns
|
|
53
|
-
|
|
54
|
-
### Basic avatar
|
|
55
|
-
|
|
56
|
-
```html
|
|
57
|
-
<ui-avatar>
|
|
58
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" class="grayscale" />
|
|
59
|
-
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
60
|
-
</ui-avatar>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Presence badge
|
|
64
|
-
|
|
65
|
-
Use `ui-avatar-badge` for online status, synced state, or a compact icon action.
|
|
66
|
-
|
|
67
|
-
```html
|
|
68
|
-
<ui-avatar>
|
|
69
|
-
<ui-avatar-image src="https://github.com/evilrabbit.png" alt="@evilrabbit" />
|
|
70
|
-
<ui-avatar-fallback>ER</ui-avatar-fallback>
|
|
71
|
-
<ui-avatar-badge class="bg-emerald-600" aria-hidden="true"></ui-avatar-badge>
|
|
72
|
-
</ui-avatar>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Avatar group
|
|
76
|
-
|
|
77
|
-
`ui-avatar-group` applies the overlapping stack treatment, while `ui-avatar-group-count` handles the overflow counter.
|
|
78
|
-
|
|
79
|
-
```html
|
|
80
|
-
<ui-avatar-group class="grayscale">
|
|
81
|
-
<ui-avatar>
|
|
82
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" />
|
|
83
|
-
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
84
|
-
</ui-avatar>
|
|
85
|
-
<ui-avatar>
|
|
86
|
-
<ui-avatar-image src="https://github.com/maxleiter.png" alt="@maxleiter" />
|
|
87
|
-
<ui-avatar-fallback>ML</ui-avatar-fallback>
|
|
88
|
-
</ui-avatar>
|
|
89
|
-
<ui-avatar>
|
|
90
|
-
<ui-avatar-image src="https://github.com/evilrabbit.png" alt="@evilrabbit" />
|
|
91
|
-
<ui-avatar-fallback>ER</ui-avatar-fallback>
|
|
92
|
-
</ui-avatar>
|
|
93
|
-
<ui-avatar-group-count>+3</ui-avatar-group-count>
|
|
94
|
-
</ui-avatar-group>
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Size variants
|
|
98
|
-
|
|
99
|
-
Use the root `size` input instead of repeating manual width and height classes.
|
|
100
|
-
|
|
101
|
-
```html
|
|
102
|
-
<div class="flex items-center gap-3">
|
|
103
|
-
<ui-avatar size="sm">...</ui-avatar>
|
|
104
|
-
<ui-avatar>...</ui-avatar>
|
|
105
|
-
<ui-avatar size="lg">...</ui-avatar>
|
|
106
|
-
</div>
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Dropdown trigger composition
|
|
110
|
-
|
|
111
|
-
Avatar stays presentational. When it opens a menu, wrap it in a button and let the button or menu trigger own focus and keyboard handling.
|
|
112
|
-
|
|
113
|
-
```html
|
|
114
|
-
<button ui-button variant="ghost" size="icon" class="h-10 w-10 rounded-full p-0" [uiMenuTrigger]="accountMenu">
|
|
115
|
-
<ui-avatar>
|
|
116
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="Ada Lovelace" />
|
|
117
|
-
<ui-avatar-fallback>AL</ui-avatar-fallback>
|
|
118
|
-
</ui-avatar>
|
|
119
|
-
</button>
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### RTL
|
|
123
|
-
|
|
124
|
-
Avatar itself does not need different markup in right-to-left layouts. Set `dir="rtl"` on the surrounding surface.
|
|
125
|
-
|
|
126
|
-
```html
|
|
127
|
-
<section dir="rtl" lang="ar" class="flex items-center gap-4 text-right">
|
|
128
|
-
<ui-avatar>
|
|
129
|
-
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" class="grayscale" />
|
|
130
|
-
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
131
|
-
</ui-avatar>
|
|
132
|
-
</section>
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## API reference
|
|
136
|
-
|
|
137
|
-
| Primitive | Input(s) |
|
|
138
|
-
| --------------------------- | -------------------------------- |
|
|
139
|
-
| `AvatarComponent` | `size`, `class` |
|
|
140
|
-
| `AvatarImageComponent` | `src` (required), `alt`, `class` |
|
|
141
|
-
| `AvatarFallbackComponent` | `class` |
|
|
142
|
-
| `AvatarBadgeComponent` | `class` |
|
|
143
|
-
| `AvatarGroupComponent` | `class` |
|
|
144
|
-
| `AvatarGroupCountComponent` | `class` |
|
|
145
|
-
|
|
146
|
-
`AvatarComponent.size` accepts `'default' | 'sm' | 'lg'` and defaults to `'default'`.
|
|
147
|
-
|
|
148
|
-
## Styling and theming
|
|
149
|
-
|
|
150
|
-
Tokens consumed: `--muted`, `--muted-foreground`, `--background`, `--primary`, and `--primary-foreground`.
|
|
151
|
-
|
|
152
|
-
The default avatar size is `h-10 w-10`. Use the `size` input for the common variants and pass `class` for brand-specific overrides such as grayscale, custom borders, or alternate badge colors.
|
|
153
|
-
|
|
154
|
-
`ui-avatar-badge` is the right place for presence color overrides, and `ui-avatar-group-count` can be restyled when overflow counters should match a specific product palette.
|
|
155
|
-
|
|
156
|
-
## Accessibility
|
|
157
|
-
|
|
158
|
-
Always pass a meaningful `alt` to `<ui-avatar-image>`. If the avatar is purely
|
|
159
|
-
decorative (user's name already shown), use `alt=""`. The fallback text is
|
|
160
|
-
readable by screen readers.
|
|
161
|
-
|
|
162
|
-
Keep fallback text short, typically initials, so it remains legible in smaller sizes.
|
|
163
|
-
|
|
164
|
-
## Keyboard interactions
|
|
165
|
-
|
|
166
|
-
Avatar itself is not interactive. If it is used to open a menu, dialog, or popover, wrap it in a native button or another focusable trigger primitive so Tab, Enter, and Space behavior stays with the interactive host.
|
|
167
|
-
|
|
168
|
-
## Angular notes
|
|
169
|
-
|
|
170
|
-
- `size` is exposed as a typed Angular input on `ui-avatar`.
|
|
171
|
-
- Grouping is handled by dedicated primitives instead of utility-only composition, which keeps Angular templates explicit and reusable.
|
|
172
|
-
- Image fallback is handled internally by hiding the `<img>` after its `error` event.
|
|
173
|
-
|
|
174
|
-
## Source parity
|
|
175
|
-
|
|
176
|
-
This Angular implementation follows the shadcn Avatar concepts, examples, and API shape while adapting menu composition to the local `ui-button` plus menu primitives and Angular standalone imports.
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# Badge
|
|
2
|
-
|
|
3
|
-
Displays a badge or a semantic element that looks like a badge.
|
|
4
|
-
|
|
5
|
-
Use Badge for status pills, small metadata labels, compact counts, and lightweight link-like callouts that should keep the badge silhouette.
|
|
6
|
-
|
|
7
|
-
## Import
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { BadgeComponent } from '@edsis/angular/component/badge';
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
Use `<ui-badge>` for the default host element or apply `[ui-badge]` to a semantic host such as `<span>` or `<a>` when the badge should inherit native behavior.
|
|
16
|
-
|
|
17
|
-
```html
|
|
18
|
-
<ui-badge>New</ui-badge>
|
|
19
|
-
<ui-badge variant="secondary">Secondary</ui-badge>
|
|
20
|
-
<ui-badge variant="destructive">Error</ui-badge>
|
|
21
|
-
<ui-badge variant="outline">Outline</ui-badge>
|
|
22
|
-
<ui-badge variant="ghost">Ghost</ui-badge>
|
|
23
|
-
|
|
24
|
-
<span ui-badge variant="secondary">v1.0</span>
|
|
25
|
-
|
|
26
|
-
<a ui-badge variant="link" href="#billing">
|
|
27
|
-
Open billing
|
|
28
|
-
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="size-3">
|
|
29
|
-
<path d="M7 17L17 7" />
|
|
30
|
-
<path d="M9 7h8v8" />
|
|
31
|
-
</svg>
|
|
32
|
-
</a>
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Common patterns
|
|
36
|
-
|
|
37
|
-
### Variants
|
|
38
|
-
|
|
39
|
-
The Angular primitive follows the current shadcn badge palette and adds `ghost` plus `link` variants to cover low-emphasis and anchor-style treatments.
|
|
40
|
-
|
|
41
|
-
```html
|
|
42
|
-
<div class="flex flex-wrap gap-2">
|
|
43
|
-
<ui-badge>Default</ui-badge>
|
|
44
|
-
<ui-badge variant="secondary">Secondary</ui-badge>
|
|
45
|
-
<ui-badge variant="destructive">Destructive</ui-badge>
|
|
46
|
-
<ui-badge variant="outline">Outline</ui-badge>
|
|
47
|
-
<ui-badge variant="ghost">Ghost</ui-badge>
|
|
48
|
-
</div>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### With icon
|
|
52
|
-
|
|
53
|
-
Project an inline SVG or icon component directly inside the badge. The primitive adds compact spacing and sizes direct child SVGs automatically.
|
|
54
|
-
|
|
55
|
-
```html
|
|
56
|
-
<ui-badge variant="secondary">
|
|
57
|
-
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
58
|
-
<path d="M20 7L9 18l-5-5" />
|
|
59
|
-
</svg>
|
|
60
|
-
Verified
|
|
61
|
-
</ui-badge>
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### With spinner
|
|
65
|
-
|
|
66
|
-
Spinner content can be projected like any other inline element.
|
|
67
|
-
|
|
68
|
-
```html
|
|
69
|
-
<ui-badge variant="destructive">
|
|
70
|
-
<span aria-hidden="true" class="size-3 animate-spin rounded-full border-2 border-current border-r-transparent"></span>
|
|
71
|
-
Deleting
|
|
72
|
-
</ui-badge>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Link host
|
|
76
|
-
|
|
77
|
-
shadcn React uses `asChild` for links. In Angular, use a semantic anchor host directly.
|
|
78
|
-
|
|
79
|
-
```html
|
|
80
|
-
<a ui-badge variant="link" href="#link">Open Link</a>
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Custom colors
|
|
84
|
-
|
|
85
|
-
Custom color treatments are plain classes on the host.
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
<ui-badge class="border-transparent bg-sky-100 text-sky-800">Blue</ui-badge>
|
|
89
|
-
<ui-badge class="border-transparent bg-emerald-100 text-emerald-800">Green</ui-badge>
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## API reference
|
|
93
|
-
|
|
94
|
-
### `BadgeComponent`
|
|
95
|
-
|
|
96
|
-
| Input | Type | Default |
|
|
97
|
-
| --------- | ----------------------------------------------------------------------------- | ----------- |
|
|
98
|
-
| `variant` | `'default' \| 'secondary' \| 'destructive' \| 'outline' \| 'ghost' \| 'link'` | `'default'` |
|
|
99
|
-
| `class` | `string` | `''` |
|
|
100
|
-
|
|
101
|
-
## Styling and theming
|
|
102
|
-
|
|
103
|
-
The base badge uses `border-border` for visible outlines instead of inheriting border color from text. Variant classes override that border when the badge should render as a filled pill.
|
|
104
|
-
|
|
105
|
-
Pass `class` to add custom backgrounds, foreground colors, spacing, or width behavior. Direct child SVGs inherit `currentColor` and receive compact sizing automatically.
|
|
106
|
-
|
|
107
|
-
Powered by `class-variance-authority`. Re-export: `badgeVariants` and `BadgeVariant`.
|
|
108
|
-
|
|
109
|
-
```ts
|
|
110
|
-
import { badgeVariants } from '@edsis/angular/component/badge';
|
|
111
|
-
|
|
112
|
-
const className = badgeVariants({ variant: 'link' });
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
## Accessibility
|
|
116
|
-
|
|
117
|
-
- Keep meaningful text inside the badge when it communicates a state, label, or count.
|
|
118
|
-
- Do not rely on color alone to distinguish success, warning, or destructive meaning.
|
|
119
|
-
- When the badge should be interactive, use a semantic host like `<a ui-badge>` so native keyboard and screen-reader behavior stay intact.
|
|
120
|
-
|
|
121
|
-
## Keyboard interactions
|
|
122
|
-
|
|
123
|
-
Static badges are not focusable. Anchors and other semantic hosts keep their native keyboard behavior, so Tab and Enter handling stays with the host element rather than the badge primitive itself.
|
|
124
|
-
|
|
125
|
-
## Angular notes
|
|
126
|
-
|
|
127
|
-
- Angular uses the selector `ui-badge` for the default element host and `[ui-badge]` for semantic hosts.
|
|
128
|
-
- React `asChild` maps to choosing the correct host element directly in Angular templates.
|
|
129
|
-
- `variant` is an Angular `input()` on the badge component, so it works on both element and attribute hosts.
|
|
130
|
-
|
|
131
|
-
## Source parity
|
|
132
|
-
|
|
133
|
-
This Angular badge follows the shadcn Badge information architecture and examples while translating React-specific `asChild` composition into semantic Angular host elements.
|