@edsis/angular 21.3.13 → 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +2 -0
- package/README.md +261 -88
- package/collection.json +30 -0
- package/component/accordion/README.md +195 -0
- package/component/accordion/package.json +4 -0
- package/component/alert/README.md +182 -0
- package/component/alert/package.json +4 -0
- package/component/alert-dialog/README.md +239 -0
- package/component/alert-dialog/package.json +4 -0
- package/component/aspect-ratio/README.md +112 -0
- package/component/aspect-ratio/package.json +4 -0
- package/component/avatar/README.md +176 -0
- package/component/avatar/package.json +4 -0
- package/component/badge/README.md +133 -0
- package/component/badge/package.json +4 -0
- package/component/breadcrumb/README.md +216 -0
- package/component/breadcrumb/package.json +4 -0
- package/component/button/README.md +139 -0
- package/component/button/package.json +4 -0
- package/component/button-group/README.md +208 -0
- package/component/button-group/package.json +4 -0
- package/component/calendar/README.md +132 -0
- package/component/calendar/package.json +4 -0
- package/component/card/README.md +220 -0
- package/component/card/package.json +4 -0
- package/component/carousel/README.md +276 -0
- package/component/carousel/package.json +4 -0
- package/component/chart/README.md +249 -0
- package/component/chart/area/package.json +4 -0
- package/component/chart/bar/package.json +4 -0
- package/component/chart/line/package.json +4 -0
- package/component/chart/package.json +4 -0
- package/component/chart/pie/package.json +4 -0
- package/component/chart/radar/package.json +4 -0
- package/component/chart/radial/package.json +4 -0
- package/component/chart/scatter/package.json +4 -0
- package/component/checkbox/README.md +149 -0
- package/component/checkbox/package.json +4 -0
- package/component/collapsible/README.md +195 -0
- package/component/collapsible/package.json +4 -0
- package/component/combobox/README.md +198 -0
- package/component/combobox/package.json +4 -0
- package/component/command/README.md +275 -0
- package/component/command/package.json +4 -0
- package/component/composer/README.md +235 -0
- package/component/composer/package.json +4 -0
- package/component/context-menu/README.md +267 -0
- package/component/context-menu/package.json +4 -0
- package/component/date-picker/README.md +177 -0
- package/component/date-picker/package.json +4 -0
- package/component/dialog/README.md +237 -0
- package/component/dialog/package.json +4 -0
- package/component/drawer/README.md +145 -0
- package/component/drawer/package.json +4 -0
- package/component/dropdown-menu/README.md +311 -0
- package/component/dropdown-menu/package.json +4 -0
- package/component/editor/README.md +136 -0
- package/component/editor/package.json +4 -0
- package/component/empty/README.md +183 -0
- package/component/empty/package.json +4 -0
- package/component/form/README.md +210 -0
- package/component/form/package.json +4 -0
- package/component/hover-card/README.md +146 -0
- package/component/hover-card/package.json +4 -0
- package/component/input/README.md +159 -0
- package/component/input/package.json +4 -0
- package/component/input-group/README.md +239 -0
- package/component/input-group/package.json +4 -0
- package/component/input-otp/README.md +278 -0
- package/component/input-otp/package.json +4 -0
- package/component/item/README.md +247 -0
- package/component/item/package.json +4 -0
- package/component/kanban/README.md +81 -0
- package/component/kanban/package.json +4 -0
- package/component/kbd/README.md +139 -0
- package/component/kbd/package.json +4 -0
- package/component/label/README.md +136 -0
- package/component/label/package.json +4 -0
- package/component/menubar/README.md +269 -0
- package/component/menubar/package.json +4 -0
- package/component/native-select/README.md +176 -0
- package/component/native-select/package.json +4 -0
- package/component/navigation-menu/README.md +160 -0
- package/component/navigation-menu/package.json +4 -0
- package/component/pagination/README.md +144 -0
- package/component/pagination/package.json +4 -0
- package/component/pillbox/README.md +67 -0
- package/component/pillbox/package.json +4 -0
- package/component/popover/README.md +43 -0
- package/component/popover/package.json +4 -0
- package/component/progress/README.md +160 -0
- package/component/progress/package.json +4 -0
- package/component/radio/README.md +209 -0
- package/component/radio/package.json +4 -0
- package/component/resizable/README.md +168 -0
- package/component/resizable/package.json +4 -0
- package/component/scroll-area/README.md +143 -0
- package/component/scroll-area/package.json +4 -0
- package/component/select/README.md +174 -0
- package/component/select/package.json +4 -0
- package/component/separator/README.md +170 -0
- package/component/separator/package.json +4 -0
- package/component/sheet/README.md +183 -0
- package/component/sheet/package.json +4 -0
- package/component/skeleton/README.md +158 -0
- package/component/skeleton/package.json +4 -0
- package/component/slider/README.md +207 -0
- package/component/slider/package.json +4 -0
- package/component/spinner/README.md +160 -0
- package/component/spinner/package.json +4 -0
- package/component/switch/README.md +166 -0
- package/component/switch/package.json +4 -0
- package/component/table/README.md +291 -0
- package/component/table/package.json +4 -0
- package/component/tabs/README.md +219 -0
- package/component/tabs/package.json +4 -0
- package/component/textarea/README.md +154 -0
- package/component/textarea/package.json +4 -0
- package/component/timeline/README.md +94 -0
- package/component/timeline/package.json +4 -0
- package/component/toast/README.md +321 -0
- package/component/toast/package.json +4 -0
- package/component/toggle/README.md +131 -0
- package/component/toggle/package.json +4 -0
- package/component/toggle-group/README.md +206 -0
- package/component/toggle-group/package.json +4 -0
- package/component/tooltip/README.md +211 -0
- package/component/tooltip/package.json +4 -0
- package/component/utils/package.json +4 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +189 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +276 -0
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-alert.mjs +99 -0
- package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +37 -0
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -0
- package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-badge.mjs +50 -0
- package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +200 -0
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +103 -0
- package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-button.mjs +68 -0
- package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +88 -0
- package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-card.mjs +152 -0
- package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +334 -0
- package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart.mjs +3925 -0
- package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +114 -0
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +124 -0
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +272 -0
- package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-command.mjs +293 -0
- package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +103 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +170 -0
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +279 -0
- package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +492 -0
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs +366 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +179 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs +45 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-item.mjs +264 -0
- package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs +33 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +226 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs +169 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-progress.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-radio.mjs +122 -0
- package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +54 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-select.mjs +176 -0
- package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-separator.mjs +37 -0
- package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +284 -0
- package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +31 -0
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-slider.mjs +423 -0
- package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs +116 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-table.mjs +155 -0
- package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +272 -0
- package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +39 -0
- package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs +71 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +354 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-utils.mjs +13 -0
- package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs +68 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-component.mjs +602 -0
- package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-provider.mjs +21 -0
- package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-services.mjs +116 -0
- package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-shell.mjs +48 -0
- package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +30 -0
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-token.mjs +33 -0
- package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +49 -0
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +128 -0
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +123 -0
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +485 -0
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +334 -0
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +63 -0
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-item.mjs +559 -0
- package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +213 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +401 -0
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +670 -0
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +4 -0
- package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-provider.mjs +35 -0
- package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-services.mjs +294 -0
- package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-token.mjs +56 -0
- package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme.mjs +390 -0
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular.mjs +22 -0
- package/fesm2022/ojiepermana-angular.mjs.map +1 -0
- package/generator/api/README.md +252 -0
- package/generator/api/bin/package.json +3 -0
- package/generator/api/bin/schematics/init/index.js +90 -0
- package/generator/api/bin/schematics/ng-add/index.js +131 -0
- package/generator/api/bin/schematics/sdk/index.js +76 -0
- package/generator/api/bin/src/config/loader.js +41 -0
- package/generator/api/bin/src/config/schema.js +57 -0
- package/generator/api/bin/src/emit/client.js +248 -0
- package/generator/api/bin/src/emit/metadata.js +295 -0
- package/generator/api/bin/src/emit/models.js +106 -0
- package/generator/api/bin/src/emit/navigation.js +56 -0
- package/generator/api/bin/src/emit/operations.js +122 -0
- package/generator/api/bin/src/emit/public-api.js +54 -0
- package/generator/api/bin/src/emit/services.js +87 -0
- package/generator/api/bin/src/engine.js +65 -0
- package/generator/api/bin/src/layout/per-domain.js +359 -0
- package/generator/api/bin/src/parser/bundle.js +25 -0
- package/generator/api/bin/src/parser/ir.js +320 -0
- package/generator/api/bin/src/parser/types.js +7 -0
- package/generator/api/bin/src/render/template.js +58 -0
- package/generator/api/bin/src/writer/index.js +278 -0
- package/generator/api/package.json +4 -0
- package/generator/api/schematics/init/schema.json +19 -0
- package/generator/api/schematics/ng-add/schema.json +14 -0
- package/generator/api/schematics/sdk/schema.json +19 -0
- package/generator/api/sdk.config.example.json +24 -0
- package/generator/guide/README.md +84 -0
- package/generator/guide/bin/package.json +3 -0
- package/generator/guide/bin/schematics/build/index.js +36 -0
- package/generator/guide/bin/schematics/init/index.js +70 -0
- package/generator/guide/bin/src/config/loader.js +50 -0
- package/generator/guide/bin/src/config/schema.js +12 -0
- package/generator/guide/bin/src/engine/component.js +74 -0
- package/generator/guide/bin/src/engine/frontmatter.js +42 -0
- package/generator/guide/bin/src/engine/index.js +42 -0
- package/generator/guide/bin/src/engine/naming.js +39 -0
- package/generator/guide/bin/src/engine/render.js +36 -0
- package/generator/guide/bin/src/engine/routes.js +106 -0
- package/generator/guide/bin/src/engine/walk.js +35 -0
- package/generator/guide/guide.config.example.json +9 -0
- package/generator/guide/schematics/build/schema.json +14 -0
- package/generator/guide/schematics/init/schema.json +19 -0
- package/layout/component/package.json +4 -0
- package/layout/package.json +4 -0
- package/layout/provider/package.json +4 -0
- package/layout/services/package.json +4 -0
- package/layout/shell/package.json +4 -0
- package/layout/token/directive/package.json +4 -0
- package/layout/token/package.json +4 -0
- package/layout/type/empty/package.json +4 -0
- package/layout/type/horizontal/package.json +4 -0
- package/layout/type/vertical/package.json +4 -0
- package/navigation/demo-data/package.json +4 -0
- package/navigation/icon/package.json +4 -0
- package/navigation/item/package.json +4 -0
- package/navigation/service/package.json +4 -0
- package/navigation/sidebar/package.json +4 -0
- package/navigation/topbar/README.md +196 -0
- package/navigation/topbar/package.json +4 -0
- package/navigation/types/package.json +4 -0
- package/package.json +433 -18
- package/theme/README.md +174 -0
- package/theme/package.json +4 -0
- package/theme/provider/package.json +4 -0
- package/theme/services/package.json +4 -0
- package/theme/styles/foundation/components.css +81 -0
- package/theme/styles/foundation/layers.css +15 -0
- package/theme/styles/foundation/tokens.css +55 -0
- package/theme/styles/index.css +37 -0
- package/theme/styles/integrations/material/autocomplete.css +178 -0
- package/theme/styles/integrations/material/button.css +468 -0
- package/theme/styles/integrations/material/dialog.css +152 -0
- package/theme/styles/integrations/material/select.css +175 -0
- package/theme/styles/integrations/material/slide-toggle.css +234 -0
- package/theme/styles/integrations/material/slider.css +194 -0
- package/theme/styles/integrations/material/tabs.css +229 -0
- package/theme/styles/integrations/material.css +264 -0
- package/theme/styles/integrations/tailwind.css +114 -0
- package/theme/styles/variants/color/amber.css +31 -0
- package/theme/styles/variants/color/base.css +36 -0
- package/theme/styles/variants/color/blue.css +31 -0
- package/theme/styles/variants/color/cyan.css +31 -0
- package/theme/styles/variants/color/emerald.css +31 -0
- package/theme/styles/variants/color/fuchsia.css +31 -0
- package/theme/styles/variants/color/green.css +31 -0
- package/theme/styles/variants/color/index.css +22 -0
- package/theme/styles/variants/color/indigo.css +31 -0
- package/theme/styles/variants/color/lime.css +31 -0
- package/theme/styles/variants/color/orange.css +31 -0
- package/theme/styles/variants/color/pink.css +31 -0
- package/theme/styles/variants/color/purple.css +31 -0
- package/theme/styles/variants/color/red.css +31 -0
- package/theme/styles/variants/color/rose.css +31 -0
- package/theme/styles/variants/color/sky.css +31 -0
- package/theme/styles/variants/color/teal.css +31 -0
- package/theme/styles/variants/color/violet.css +31 -0
- package/theme/styles/variants/color/yellow.css +31 -0
- package/theme/styles/variants/mode/dark.css +20 -0
- package/theme/styles/variants/mode/index.css +6 -0
- package/theme/styles/variants/mode/light.css +24 -0
- package/theme/styles/variants/style/brutal.css +50 -0
- package/theme/styles/variants/style/default.css +54 -0
- package/theme/styles/variants/style/index.css +8 -0
- package/theme/styles/variants/style/sharp.css +50 -0
- package/theme/styles/variants/style/soft.css +50 -0
- package/theme/token/package.json +4 -0
- package/types/ojiepermana-angular-component-accordion.d.ts +51 -0
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +93 -0
- package/types/ojiepermana-angular-component-alert.d.ts +37 -0
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -0
- package/types/ojiepermana-angular-component-avatar.d.ts +51 -0
- package/types/ojiepermana-angular-component-badge.d.ts +19 -0
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -0
- package/types/ojiepermana-angular-component-button-group.d.ts +26 -0
- package/types/ojiepermana-angular-component-button.d.ts +22 -0
- package/types/ojiepermana-angular-component-calendar.d.ts +33 -0
- package/types/ojiepermana-angular-component-card.d.ts +60 -0
- package/types/ojiepermana-angular-component-carousel.d.ts +86 -0
- package/types/ojiepermana-angular-component-chart-area.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-bar.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-line.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-pie.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-radar.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-radial.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-scatter.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart.d.ts +1094 -0
- package/types/ojiepermana-angular-component-checkbox.d.ts +35 -0
- package/types/ojiepermana-angular-component-collapsible.d.ts +42 -0
- package/types/ojiepermana-angular-component-combobox.d.ts +50 -0
- package/types/ojiepermana-angular-component-command.d.ts +99 -0
- package/types/ojiepermana-angular-component-composer.d.ts +90 -0
- package/types/ojiepermana-angular-component-context-menu.d.ts +35 -0
- package/types/ojiepermana-angular-component-date-picker.d.ts +41 -0
- package/types/ojiepermana-angular-component-dialog.d.ts +87 -0
- package/types/ojiepermana-angular-component-drawer.d.ts +1 -0
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +137 -0
- package/types/ojiepermana-angular-component-editor.d.ts +123 -0
- package/types/ojiepermana-angular-component-empty.d.ts +50 -0
- package/types/ojiepermana-angular-component-form.d.ts +141 -0
- package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
- package/types/ojiepermana-angular-component-input-group.d.ts +51 -0
- package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
- package/types/ojiepermana-angular-component-input.d.ts +16 -0
- package/types/ojiepermana-angular-component-item.d.ts +88 -0
- package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
- package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
- package/types/ojiepermana-angular-component-label.d.ts +11 -0
- package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
- package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
- package/types/ojiepermana-angular-component-pagination.d.ts +33 -0
- package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
- package/types/ojiepermana-angular-component-popover.d.ts +43 -0
- package/types/ojiepermana-angular-component-progress.d.ts +17 -0
- package/types/ojiepermana-angular-component-radio.d.ts +40 -0
- package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
- package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -0
- package/types/ojiepermana-angular-component-select.d.ts +57 -0
- package/types/ojiepermana-angular-component-separator.d.ts +14 -0
- package/types/ojiepermana-angular-component-sheet.d.ts +76 -0
- package/types/ojiepermana-angular-component-skeleton.d.ts +10 -0
- package/types/ojiepermana-angular-component-slider.d.ts +74 -0
- package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
- package/types/ojiepermana-angular-component-switch.d.ts +40 -0
- package/types/ojiepermana-angular-component-table.d.ts +52 -0
- package/types/ojiepermana-angular-component-tabs.d.ts +92 -0
- package/types/ojiepermana-angular-component-textarea.d.ts +12 -0
- package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
- package/types/ojiepermana-angular-component-toast.d.ts +38 -0
- package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
- package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
- package/types/ojiepermana-angular-component-tooltip.d.ts +89 -0
- package/types/ojiepermana-angular-component-utils.d.ts +5 -0
- package/types/ojiepermana-angular-generator-api.d.ts +86 -0
- package/types/ojiepermana-angular-layout-component.d.ts +205 -0
- package/types/ojiepermana-angular-layout-provider.d.ts +6 -0
- package/types/ojiepermana-angular-layout-services.d.ts +25 -0
- package/types/ojiepermana-angular-layout-shell.d.ts +8 -0
- package/types/ojiepermana-angular-layout-token-directive.d.ts +13 -0
- package/types/ojiepermana-angular-layout-token.d.ts +36 -0
- package/types/ojiepermana-angular-layout-type-empty.d.ts +22 -0
- package/types/ojiepermana-angular-layout-type-horizontal.d.ts +36 -0
- package/types/ojiepermana-angular-layout-type-vertical.d.ts +38 -0
- package/types/ojiepermana-angular-layout.d.ts +164 -0
- package/types/ojiepermana-angular-navigation-demo-data.d.ts +5 -0
- package/types/ojiepermana-angular-navigation-icon.d.ts +17 -0
- package/types/ojiepermana-angular-navigation-item.d.ts +54 -0
- package/types/ojiepermana-angular-navigation-service.d.ts +77 -0
- package/types/ojiepermana-angular-navigation-sidebar.d.ts +75 -0
- package/types/ojiepermana-angular-navigation-topbar.d.ts +74 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +135 -0
- package/types/ojiepermana-angular-theme-provider.d.ts +11 -0
- package/types/ojiepermana-angular-theme-services.d.ts +55 -0
- package/types/ojiepermana-angular-theme-token.d.ts +57 -0
- package/types/ojiepermana-angular-theme.d.ts +116 -0
- package/types/ojiepermana-angular.d.ts +3 -0
- package/fesm2022/edsis-angular-block-shell.mjs +0 -698
- package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
- package/fesm2022/edsis-angular-module-auth.mjs +0 -1317
- package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular.mjs +0 -8
- package/fesm2022/edsis-angular.mjs.map +0 -1
- package/types/edsis-angular-block-shell.d.ts +0 -111
- package/types/edsis-angular-module-auth.d.ts +0 -132
- package/types/edsis-angular.d.ts +0 -2
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# Command
|
|
2
|
+
|
|
3
|
+
Searchable command palette primitive for quick actions, navigation, and settings.
|
|
4
|
+
|
|
5
|
+
Use Command inline for filterable action lists, or compose it with Dialog to recreate shadcn's `CommandDialog` pattern. The same primitive also powers [Combobox](../combobox/README.md).
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
Import the command parts directly from the component package.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import {
|
|
13
|
+
CommandComponent,
|
|
14
|
+
CommandEmptyComponent,
|
|
15
|
+
CommandGroupComponent,
|
|
16
|
+
CommandInputComponent,
|
|
17
|
+
CommandItemComponent,
|
|
18
|
+
CommandListComponent,
|
|
19
|
+
CommandSeparatorComponent,
|
|
20
|
+
CommandShortcutComponent,
|
|
21
|
+
} from '@edsis/angular/component/command';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
When you want a palette launcher like shadcn's `CommandDialog`, add Button and Dialog primitives as well.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { ButtonComponent } from '@edsis/angular/component/button';
|
|
28
|
+
import {
|
|
29
|
+
DialogComponent,
|
|
30
|
+
DialogDescriptionComponent,
|
|
31
|
+
DialogHeaderComponent,
|
|
32
|
+
DialogTitleComponent,
|
|
33
|
+
} from '@edsis/angular/component/dialog';
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Composition
|
|
37
|
+
|
|
38
|
+
The Angular composition mirrors shadcn's structure while keeping overlay behavior separate.
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
ui-command
|
|
42
|
+
├── input[ui-command-input]
|
|
43
|
+
└── ui-command-list
|
|
44
|
+
├── ui-command-empty
|
|
45
|
+
├── ui-command-group
|
|
46
|
+
│ ├── button[ui-command-item]
|
|
47
|
+
│ └── button[ui-command-item]
|
|
48
|
+
├── ui-command-separator
|
|
49
|
+
└── ui-command-group
|
|
50
|
+
├── button[ui-command-item]
|
|
51
|
+
└── button[ui-command-item]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Basic usage
|
|
55
|
+
|
|
56
|
+
Build the searchable surface from the root, input, list, and grouped items. Add `span[ui-command-shortcut]` when an item should expose a trailing keyboard hint.
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<ui-command class="max-w-md rounded-lg border border-border">
|
|
60
|
+
<input ui-command-input placeholder="Type a command or search..." />
|
|
61
|
+
<ui-command-list>
|
|
62
|
+
<ui-command-empty>No results found.</ui-command-empty>
|
|
63
|
+
|
|
64
|
+
<ui-command-group heading="Suggestions">
|
|
65
|
+
<button type="button" ui-command-item value="Calendar" (selected)="open('calendar')">Calendar</button>
|
|
66
|
+
<button type="button" ui-command-item value="Search Emoji" (selected)="open('emoji')">Search Emoji</button>
|
|
67
|
+
</ui-command-group>
|
|
68
|
+
|
|
69
|
+
<ui-command-separator />
|
|
70
|
+
|
|
71
|
+
<ui-command-group heading="Settings">
|
|
72
|
+
<button type="button" ui-command-item value="Profile" (selected)="open('profile')">
|
|
73
|
+
Profile
|
|
74
|
+
<span ui-command-shortcut>⌘P</span>
|
|
75
|
+
</button>
|
|
76
|
+
</ui-command-group>
|
|
77
|
+
</ui-command-list>
|
|
78
|
+
</ui-command>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Common patterns
|
|
82
|
+
|
|
83
|
+
### Command palette dialog
|
|
84
|
+
|
|
85
|
+
shadcn ships a dedicated `CommandDialog` helper. In this Angular library, compose `ui-dialog` with `ui-command` instead.
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
const commandOpen = signal(false);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<button type="button" ui-button variant="outline" (click)="commandOpen.set(true)">Open menu</button>
|
|
93
|
+
|
|
94
|
+
<ui-dialog [(open)]="commandOpen">
|
|
95
|
+
<ui-dialog-header>
|
|
96
|
+
<ui-dialog-title>Command palette</ui-dialog-title>
|
|
97
|
+
<ui-dialog-description> Search for navigation, billing, or settings actions. </ui-dialog-description>
|
|
98
|
+
</ui-dialog-header>
|
|
99
|
+
|
|
100
|
+
<ui-command class="mt-4 rounded-lg border border-border">
|
|
101
|
+
<input ui-command-input placeholder="Type a command or search..." />
|
|
102
|
+
<ui-command-list>
|
|
103
|
+
<ui-command-empty>No results found.</ui-command-empty>
|
|
104
|
+
<ui-command-group heading="Suggestions">
|
|
105
|
+
<button type="button" ui-command-item value="Calendar" (selected)="commandOpen.set(false)">Calendar</button>
|
|
106
|
+
</ui-command-group>
|
|
107
|
+
</ui-command-list>
|
|
108
|
+
</ui-command>
|
|
109
|
+
</ui-dialog>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Shortcuts
|
|
113
|
+
|
|
114
|
+
Use `span[ui-command-shortcut]` for keyboard hints aligned to the trailing edge of each row.
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<ui-command class="max-w-md rounded-lg border border-border">
|
|
118
|
+
<input ui-command-input placeholder="Search shortcuts..." />
|
|
119
|
+
<ui-command-list>
|
|
120
|
+
<ui-command-group heading="Quick actions">
|
|
121
|
+
<button type="button" ui-command-item value="Profile">
|
|
122
|
+
Profile
|
|
123
|
+
<span ui-command-shortcut>⌘P</span>
|
|
124
|
+
</button>
|
|
125
|
+
<button type="button" ui-command-item value="Billing">
|
|
126
|
+
Billing
|
|
127
|
+
<span ui-command-shortcut>⌘B</span>
|
|
128
|
+
</button>
|
|
129
|
+
</ui-command-group>
|
|
130
|
+
</ui-command-list>
|
|
131
|
+
</ui-command>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Scrollable command lists
|
|
135
|
+
|
|
136
|
+
The list container defaults to a scrollable max height. Override it with `class` when the palette needs to expose many groups.
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<ui-command class="max-w-xl rounded-lg border border-border">
|
|
140
|
+
<input ui-command-input placeholder="Jump to a tool or action..." />
|
|
141
|
+
<ui-command-list class="max-h-56">
|
|
142
|
+
<ui-command-empty>No results found.</ui-command-empty>
|
|
143
|
+
<ui-command-group heading="Navigation">...</ui-command-group>
|
|
144
|
+
<ui-command-separator />
|
|
145
|
+
<ui-command-group heading="Actions">...</ui-command-group>
|
|
146
|
+
<ui-command-separator />
|
|
147
|
+
<ui-command-group heading="Tools">...</ui-command-group>
|
|
148
|
+
</ui-command-list>
|
|
149
|
+
</ui-command>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Controlled query
|
|
153
|
+
|
|
154
|
+
Two-way bind the query when the parent needs to inspect, reset, or prefill the current search string.
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
const query = signal('');
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
```html
|
|
161
|
+
<ui-command [(query)]="query" class="max-w-md rounded-lg border border-border">
|
|
162
|
+
<input ui-command-input placeholder="Filter actions..." />
|
|
163
|
+
<ui-command-list>...</ui-command-list>
|
|
164
|
+
</ui-command>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### RTL
|
|
168
|
+
|
|
169
|
+
For right-to-left interfaces, apply `dir="rtl"` to the wrapper and input.
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<section dir="rtl" lang="ar" class="max-w-md text-right">
|
|
173
|
+
<ui-command class="rounded-lg border border-border">
|
|
174
|
+
<input ui-command-input placeholder="اكتب أمرًا أو ابحث..." dir="rtl" />
|
|
175
|
+
<ui-command-list>
|
|
176
|
+
<ui-command-empty>لم يتم العثور على نتائج.</ui-command-empty>
|
|
177
|
+
<ui-command-group heading="اقتراحات">...</ui-command-group>
|
|
178
|
+
<ui-command-separator />
|
|
179
|
+
<ui-command-group heading="الإعدادات">...</ui-command-group>
|
|
180
|
+
</ui-command-list>
|
|
181
|
+
</ui-command>
|
|
182
|
+
</section>
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## API reference
|
|
186
|
+
|
|
187
|
+
### `CommandComponent`
|
|
188
|
+
|
|
189
|
+
| Input / Model | Type | Default |
|
|
190
|
+
| ------------- | -------- | ------- |
|
|
191
|
+
| `query` | `string` | `''` |
|
|
192
|
+
| `class` | `string` | `''` |
|
|
193
|
+
|
|
194
|
+
### `CommandInputComponent`
|
|
195
|
+
|
|
196
|
+
| Input | Type | Default |
|
|
197
|
+
| ------------- | -------- | ----------------------------- |
|
|
198
|
+
| `placeholder` | `string` | `Type a command or search...` |
|
|
199
|
+
| `class` | `string` | `''` |
|
|
200
|
+
|
|
201
|
+
Behavior:
|
|
202
|
+
|
|
203
|
+
- Uses `role="combobox"` and `aria-autocomplete="list"`.
|
|
204
|
+
- Arrow Down and Arrow Up move the active item.
|
|
205
|
+
- Enter selects the active visible item.
|
|
206
|
+
|
|
207
|
+
### `CommandListComponent`
|
|
208
|
+
|
|
209
|
+
| Input | Type | Default |
|
|
210
|
+
| ------- | -------- | ------- |
|
|
211
|
+
| `class` | `string` | `''` |
|
|
212
|
+
|
|
213
|
+
Behavior: renders the listbox region and scroll container.
|
|
214
|
+
|
|
215
|
+
### `CommandGroupComponent`
|
|
216
|
+
|
|
217
|
+
| Input | Type | Default |
|
|
218
|
+
| --------- | ---------------- | ------- |
|
|
219
|
+
| `heading` | `string \| null` | `null` |
|
|
220
|
+
| `class` | `string` | `''` |
|
|
221
|
+
|
|
222
|
+
### `CommandItemComponent`
|
|
223
|
+
|
|
224
|
+
| Input / Output | Type | Default |
|
|
225
|
+
| -------------- | ----------------------------- | -------------------- |
|
|
226
|
+
| `value` | `string` | `''` |
|
|
227
|
+
| `disabled` | `boolean` | `false` |
|
|
228
|
+
| `class` | `string` | `''` |
|
|
229
|
+
| `selected` | `MouseEvent \| KeyboardEvent` | emitted on selection |
|
|
230
|
+
|
|
231
|
+
Behavior:
|
|
232
|
+
|
|
233
|
+
- Uses `role="option"`.
|
|
234
|
+
- Hides automatically when the current query does not match its `value` or text content.
|
|
235
|
+
- Skips selection when `disabled` is `true`.
|
|
236
|
+
|
|
237
|
+
### Auxiliary parts
|
|
238
|
+
|
|
239
|
+
- `ui-command-empty` appears only when no visible items match the query.
|
|
240
|
+
- `ui-command-separator` renders a divider between groups.
|
|
241
|
+
- `span[ui-command-shortcut]` aligns trailing shortcut text with `ml-auto` styling.
|
|
242
|
+
|
|
243
|
+
## Styling and theming
|
|
244
|
+
|
|
245
|
+
Pass `class` to the root and parts to tune borders, width, list height, and embedded dialog layouts.
|
|
246
|
+
|
|
247
|
+
The primitive already applies shared theme tokens such as `bg-popover`, `text-popover-foreground`, `border-border`, and active-row accent styles. Typical overrides include:
|
|
248
|
+
|
|
249
|
+
- `rounded-lg border border-border` on the root for shadcn-like cards.
|
|
250
|
+
- `max-h-*` on `ui-command-list` for taller or shorter scroll regions.
|
|
251
|
+
- Additional spacing or layout classes on items when an app supplies inline badges or icons.
|
|
252
|
+
|
|
253
|
+
## Accessibility
|
|
254
|
+
|
|
255
|
+
- The input uses combobox semantics while the list exposes listbox-style options.
|
|
256
|
+
- Items expose `aria-selected`, `data-active`, and disabled state markers.
|
|
257
|
+
- Disabled items remain visible for discoverability but are skipped by keyboard selection.
|
|
258
|
+
- Keep item labels descriptive and avoid deeply nested interactive content inside a command item.
|
|
259
|
+
|
|
260
|
+
## Keyboard interactions
|
|
261
|
+
|
|
262
|
+
- Arrow Down and Arrow Up move the active option through visible items.
|
|
263
|
+
- Enter selects the active item.
|
|
264
|
+
- Typing filters items by the configured `value` or fallback text content.
|
|
265
|
+
|
|
266
|
+
## Angular notes
|
|
267
|
+
|
|
268
|
+
- The root exposes a signal-backed `query` model, so `[(query)]` works naturally in standalone components.
|
|
269
|
+
- `button[ui-command-item]` is the most practical item host because it preserves native semantics for click and keyboard handlers.
|
|
270
|
+
- `ComboboxComponent` already builds on this primitive, so keep command examples action-oriented instead of mixing them with form-specific behavior.
|
|
271
|
+
- This primitive intentionally stays presentational. Compose it with higher-level surfaces such as Dialog rather than coupling it to overlay infrastructure.
|
|
272
|
+
|
|
273
|
+
## Source parity
|
|
274
|
+
|
|
275
|
+
This Angular implementation follows shadcn's Command information architecture and `cmdk` mental model while translating the dialog helper into existing `ui-dialog` primitives and Angular selectors.
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# Composer
|
|
2
|
+
|
|
3
|
+
Configurable prompt composer for chat, AI, and message surfaces.
|
|
4
|
+
|
|
5
|
+
This Angular implementation takes conceptual inspiration from Flux Composer, but the API, styling, and composition model follow the shadcn-style patterns already established in this library.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import {
|
|
11
|
+
ComposerActionsLeadingComponent,
|
|
12
|
+
ComposerActionsTrailingComponent,
|
|
13
|
+
ComposerComponent,
|
|
14
|
+
ComposerFooterComponent,
|
|
15
|
+
ComposerHeaderComponent,
|
|
16
|
+
ComposerInputComponent,
|
|
17
|
+
ComposerTextareaComponent,
|
|
18
|
+
} from '@edsis/angular/component/composer';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Composition
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
ui-composer
|
|
25
|
+
├── ui-composer-header (optional)
|
|
26
|
+
├── ui-composer-actions-leading (optional)
|
|
27
|
+
├── textarea[ui-composer-input] or ui-composer-input
|
|
28
|
+
├── ui-composer-actions-trailing (optional)
|
|
29
|
+
└── ui-composer-footer (optional)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Use `textarea[ui-composer-input]` when you want native textarea behavior, template-driven forms, or reactive forms.
|
|
33
|
+
Use `ui-composer-input` when you want to project a custom rich-text surface or editor shell.
|
|
34
|
+
|
|
35
|
+
## Basic Usage
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<form (ngSubmit)="send()">
|
|
39
|
+
<ui-composer (submitRequested)="send()">
|
|
40
|
+
<textarea
|
|
41
|
+
ui-composer-input
|
|
42
|
+
rows="2"
|
|
43
|
+
maxRows="6"
|
|
44
|
+
placeholder="How can I help you today?"
|
|
45
|
+
[(ngModel)]="prompt"
|
|
46
|
+
name="prompt"></textarea>
|
|
47
|
+
|
|
48
|
+
<ui-composer-actions-trailing>
|
|
49
|
+
<button ui-button type="submit" size="icon-sm" aria-label="Send prompt">Send</button>
|
|
50
|
+
</ui-composer-actions-trailing>
|
|
51
|
+
</ui-composer>
|
|
52
|
+
</form>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## With Header
|
|
56
|
+
|
|
57
|
+
Use the header slot for file previews, avatars, upload summaries, or compact context cards.
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<ui-composer>
|
|
61
|
+
<ui-composer-header>
|
|
62
|
+
<div class="flex items-center gap-3 rounded-lg border border-border bg-muted/40 px-3 py-2">
|
|
63
|
+
<img src="/avatar.png" alt="Uploaded file owner" class="size-10 rounded-md object-cover" />
|
|
64
|
+
<div class="min-w-0">
|
|
65
|
+
<p class="truncate text-sm font-medium">profile-shot.png</p>
|
|
66
|
+
<p class="text-xs text-muted-foreground">2.1 MB</p>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</ui-composer-header>
|
|
70
|
+
|
|
71
|
+
<textarea ui-composer-input rows="2" maxRows="6" placeholder="Ask about this asset..."></textarea>
|
|
72
|
+
|
|
73
|
+
<ui-composer-actions-trailing>
|
|
74
|
+
<button ui-button type="button" size="sm">Send</button>
|
|
75
|
+
</ui-composer-actions-trailing>
|
|
76
|
+
</ui-composer>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Inline Layout
|
|
80
|
+
|
|
81
|
+
Set `inline` when actions and input should share a compact single-row shell.
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<ui-composer inline submit="enter">
|
|
85
|
+
<ui-composer-actions-leading>
|
|
86
|
+
<button ui-button type="button" variant="ghost" size="icon-sm" aria-label="Add attachment">+</button>
|
|
87
|
+
</ui-composer-actions-leading>
|
|
88
|
+
|
|
89
|
+
<textarea ui-composer-input rows="1" maxRows="4" placeholder="Reply..."></textarea>
|
|
90
|
+
|
|
91
|
+
<ui-composer-actions-trailing>
|
|
92
|
+
<button ui-button type="button" variant="secondary" size="icon-sm" aria-label="Voice input">Mic</button>
|
|
93
|
+
<button ui-button type="submit" size="icon-sm" aria-label="Send reply">Send</button>
|
|
94
|
+
</ui-composer-actions-trailing>
|
|
95
|
+
</ui-composer>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Input Variant
|
|
99
|
+
|
|
100
|
+
Set `variant="input"` when the composer should align more closely with the radius and density of other input surfaces.
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<ui-composer variant="input">
|
|
104
|
+
<textarea ui-composer-input rows="2" maxRows="5" placeholder="What's on your mind?"></textarea>
|
|
105
|
+
</ui-composer>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Height And Autosize
|
|
109
|
+
|
|
110
|
+
`rows` sets the initial height of the native textarea surface.
|
|
111
|
+
`maxRows` caps autosize growth before the textarea begins scrolling.
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<ui-composer>
|
|
115
|
+
<textarea ui-composer-input rows="3" maxRows="8" placeholder="Write a longer prompt..."></textarea>
|
|
116
|
+
</ui-composer>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Submit Behavior
|
|
120
|
+
|
|
121
|
+
By default, keyboard submission uses `cmd-enter`, which means `Cmd+Enter` on macOS and `Ctrl+Enter` on Windows/Linux.
|
|
122
|
+
|
|
123
|
+
Use `submit="enter"` when pressing `Enter` should submit immediately. `Shift+Enter` still inserts a new line.
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<ui-composer submit="enter" (submitRequested)="send()">
|
|
127
|
+
<textarea ui-composer-input rows="1" maxRows="4" placeholder="Quick reply..."></textarea>
|
|
128
|
+
</ui-composer>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
When `submitForm` stays `true`, the composer also calls the nearest native `form.requestSubmit()` after emitting `submitRequested`.
|
|
132
|
+
|
|
133
|
+
## Rich Text Slot
|
|
134
|
+
|
|
135
|
+
Project a custom editor shell through `ui-composer-input` when you want a richer surface without changing the composer container API.
|
|
136
|
+
|
|
137
|
+
```html
|
|
138
|
+
<ui-composer>
|
|
139
|
+
<ui-composer-input>
|
|
140
|
+
<div
|
|
141
|
+
contenteditable="true"
|
|
142
|
+
role="textbox"
|
|
143
|
+
aria-multiline="true"
|
|
144
|
+
class="min-h-20 w-full rounded-sm bg-transparent px-2 py-2 outline-none">
|
|
145
|
+
Draft a richer message...
|
|
146
|
+
</div>
|
|
147
|
+
</ui-composer-input>
|
|
148
|
+
|
|
149
|
+
<ui-composer-actions-leading>
|
|
150
|
+
<button ui-button type="button" variant="ghost" size="icon-sm" aria-label="Insert file">+</button>
|
|
151
|
+
</ui-composer-actions-leading>
|
|
152
|
+
|
|
153
|
+
<ui-composer-actions-trailing>
|
|
154
|
+
<button ui-button type="button" size="icon-sm" aria-label="Send rich text message">Send</button>
|
|
155
|
+
</ui-composer-actions-trailing>
|
|
156
|
+
</ui-composer>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Disabled And Invalid
|
|
160
|
+
|
|
161
|
+
Use the root inputs for shared composer state.
|
|
162
|
+
|
|
163
|
+
```html
|
|
164
|
+
<ui-composer [disabled]="isSending" [invalid]="promptInvalid">
|
|
165
|
+
<textarea ui-composer-input rows="2" maxRows="6"></textarea>
|
|
166
|
+
</ui-composer>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
For native textarea integrations, `aria-invalid` can still be supplied directly on `textarea[ui-composer-input]` when state comes from another layer.
|
|
170
|
+
|
|
171
|
+
## API Reference
|
|
172
|
+
|
|
173
|
+
### `ComposerComponent`
|
|
174
|
+
|
|
175
|
+
| Input | Type | Default | Notes |
|
|
176
|
+
| ------------ | ------------------------ | ------------- | --------------------------------------------------------------------- |
|
|
177
|
+
| `variant` | `'default' \| 'input'` | `'default'` | Controls shell radius and density. |
|
|
178
|
+
| `inline` | `boolean` | `false` | Places leading actions, input, and trailing actions in a compact row. |
|
|
179
|
+
| `disabled` | `boolean` | `false` | Applies shared disabled treatment and prevents keyboard submit. |
|
|
180
|
+
| `invalid` | `boolean` | `false` | Applies destructive border and ring treatment. |
|
|
181
|
+
| `submit` | `'cmd-enter' \| 'enter'` | `'cmd-enter'` | Controls keyboard submit behavior. |
|
|
182
|
+
| `submitForm` | `boolean` | `true` | Requests native form submission after `submitRequested`. |
|
|
183
|
+
| `class` | `string` | `''` | Appends classes to the composer host. |
|
|
184
|
+
|
|
185
|
+
### `ComposerComponent` output
|
|
186
|
+
|
|
187
|
+
| Output | Type | Notes |
|
|
188
|
+
| ----------------- | --------------- | --------------------------------------------------------------------- |
|
|
189
|
+
| `submitRequested` | `KeyboardEvent` | Emitted when keyboard submission is triggered from the input surface. |
|
|
190
|
+
|
|
191
|
+
### `ComposerTextareaComponent`
|
|
192
|
+
|
|
193
|
+
| Input | Type | Default | Notes |
|
|
194
|
+
| -------------- | ---------------- | ------- | --------------------------------------------------- |
|
|
195
|
+
| `rows` | `number` | `2` | Initial line count. |
|
|
196
|
+
| `maxRows` | `number \| null` | `null` | Maximum autosize line count before scrolling. |
|
|
197
|
+
| `disabled` | `boolean` | `false` | Disables the textarea even if the root is enabled. |
|
|
198
|
+
| `aria-invalid` | `boolean` | `false` | Applies invalid styling on the textarea input slot. |
|
|
199
|
+
| `class` | `string` | `''` | Appends classes to the textarea host. |
|
|
200
|
+
|
|
201
|
+
### Slot Components
|
|
202
|
+
|
|
203
|
+
`ComposerHeaderComponent`, `ComposerFooterComponent`, `ComposerActionsLeadingComponent`, `ComposerActionsTrailingComponent`, and `ComposerInputComponent` each accept a single `class` input.
|
|
204
|
+
|
|
205
|
+
## Accessibility
|
|
206
|
+
|
|
207
|
+
- Pair `textarea[ui-composer-input]` with an accessible label from surrounding copy, `aria-label`, or form-field composition.
|
|
208
|
+
- Give icon-only buttons inside action slots explicit `aria-label` values.
|
|
209
|
+
- Keep meaningful supporting text in `ui-composer-footer` or nearby description content.
|
|
210
|
+
- Use `submit="enter"` carefully in multiline experiences so users still understand `Shift+Enter` for a new line.
|
|
211
|
+
- When projecting a custom editor through `ui-composer-input`, provide `role="textbox"`, `aria-multiline="true"`, and clear keyboard handling in the editor surface itself.
|
|
212
|
+
|
|
213
|
+
## Keyboard Interactions
|
|
214
|
+
|
|
215
|
+
- `Cmd+Enter` or `Ctrl+Enter` submits by default.
|
|
216
|
+
- `Enter` submits when `submit="enter"`.
|
|
217
|
+
- `Shift+Enter` keeps inserting new lines in `submit="enter"` mode.
|
|
218
|
+
- Standard textarea editing, selection, clipboard, and IME behavior remain native when using `textarea[ui-composer-input]`.
|
|
219
|
+
|
|
220
|
+
## Styling And Theming
|
|
221
|
+
|
|
222
|
+
The composer uses the shared `border-input`, `bg-background`, `ring-ring`, `text-foreground`, and `placeholder:text-muted-foreground` tokens.
|
|
223
|
+
|
|
224
|
+
Override layout and density by passing `class` to the root or individual slot components.
|
|
225
|
+
Keep the projected input surface transparent so the composer shell remains the visible boundary.
|
|
226
|
+
|
|
227
|
+
## Angular Notes
|
|
228
|
+
|
|
229
|
+
- `textarea[ui-composer-input]` remains a native textarea surface and autosizes without replacing native browser editing behavior.
|
|
230
|
+
- `ui-composer-input` is intentionally presentational. It is meant for custom editor projection, not as a built-in rich-text editor.
|
|
231
|
+
- The composer shell is presentational and does not import layout or theme services, which keeps the entrypoint compatible with the library's component-layer rules.
|
|
232
|
+
|
|
233
|
+
## Source Inspiration
|
|
234
|
+
|
|
235
|
+
This component borrows the high-level idea of a structured prompt composer from Flux Composer, but the Angular API, slot names, styling tokens, keyboard behavior contract, and examples are implemented specifically for this library's shadcn-style component system.
|