@edsis/angular 21.3.15 → 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 -703
- package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
- package/fesm2022/edsis-angular-module-auth.mjs +0 -1560
- 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 -114
- package/types/edsis-angular-module-auth.d.ts +0 -140
- package/types/edsis-angular.d.ts +0 -2
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Checkbox
|
|
2
|
+
|
|
3
|
+
A shadcn-style checkbox primitive built on Angular Material's `mat-checkbox`, with full `ControlValueAccessor` support for `ngModel` and reactive forms.
|
|
4
|
+
|
|
5
|
+
## Import
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { CheckboxComponent } from '@edsis/angular/component/checkbox';
|
|
9
|
+
import { LabelComponent } from '@edsis/angular/component/label';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
Wrap the control and copy in `label[ui-label]` when the text should toggle the checkbox. This is the closest Angular equivalent to the upstream shadcn `Field` + `FieldLabel` composition.
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<label ui-label class="flex items-start gap-3">
|
|
18
|
+
<ui-checkbox [(ngModel)]="accepted" name="terms-checkbox" class="mt-0.5" />
|
|
19
|
+
<span class="grid gap-1 leading-none">
|
|
20
|
+
<span>Accept terms and conditions</span>
|
|
21
|
+
<span class="text-sm font-normal leading-5 text-muted-foreground">
|
|
22
|
+
By clicking this checkbox, you agree to the terms.
|
|
23
|
+
</span>
|
|
24
|
+
</span>
|
|
25
|
+
</label>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Reactive forms continue to work through the component's value accessor.
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<ui-checkbox [formControl]="form.controls.marketingOptIn" aria-label="Receive product updates" />
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Common patterns
|
|
35
|
+
|
|
36
|
+
### Controlled checked state
|
|
37
|
+
|
|
38
|
+
Use `checkedChange` when the parent owns the signal and you want to keep the checkbox controlled without wrapping a form model.
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const marketingOptIn = signal(false);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<ui-checkbox
|
|
46
|
+
[ngModel]="marketingOptIn()"
|
|
47
|
+
(checkedChange)="marketingOptIn.set($event)"
|
|
48
|
+
aria-label="Receive product updates" />
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Invalid state
|
|
52
|
+
|
|
53
|
+
Forward `aria-invalid="true"` to switch the control into the destructive invalid treatment.
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<label ui-label class="flex items-start gap-3 text-destructive">
|
|
57
|
+
<ui-checkbox aria-invalid="true" name="terms-checkbox-invalid" class="mt-0.5" />
|
|
58
|
+
<span class="grid gap-1 leading-none">
|
|
59
|
+
<span>Accept terms and conditions</span>
|
|
60
|
+
<span class="text-sm font-normal leading-5 text-muted-foreground">
|
|
61
|
+
Choose this before continuing to checkout.
|
|
62
|
+
</span>
|
|
63
|
+
</span>
|
|
64
|
+
</label>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Grouped preferences
|
|
68
|
+
|
|
69
|
+
Use a semantic `fieldset` for a checkbox list.
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<fieldset class="space-y-3">
|
|
73
|
+
<legend class="text-sm font-semibold">Show these items on the desktop:</legend>
|
|
74
|
+
@for (item of groupOptions; track item.id) {
|
|
75
|
+
<label ui-label class="flex items-start gap-3">
|
|
76
|
+
<ui-checkbox
|
|
77
|
+
[ngModel]="desktopItems().has(item.id)"
|
|
78
|
+
(checkedChange)="toggleDesktopItem(item.id, $event)"
|
|
79
|
+
[name]="item.id"
|
|
80
|
+
class="mt-0.5" />
|
|
81
|
+
<span class="font-normal">{{ item.label }}</span>
|
|
82
|
+
</label>
|
|
83
|
+
}
|
|
84
|
+
</fieldset>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Table row selection
|
|
88
|
+
|
|
89
|
+
Use `indeterminate` for the select-all checkbox and set `data-state="selected"` on the selected row so the table highlight stays in sync.
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<ui-checkbox
|
|
93
|
+
[ngModel]="selectAll()"
|
|
94
|
+
[indeterminate]="someRowsSelected()"
|
|
95
|
+
aria-label="Select all team members"
|
|
96
|
+
(checkedChange)="handleSelectAll($event)" />
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## API reference
|
|
100
|
+
|
|
101
|
+
| Input | Type | Default | Notes |
|
|
102
|
+
| ------------------ | --------------------------- | -------------- | ------------------------------------------------------------------------ |
|
|
103
|
+
| `id` | `string` | auto-generated | Forwarded to Angular Material; the native input id becomes `<id>-input`. |
|
|
104
|
+
| `name` | `string \| null` | `null` | Forwarded to the native checkbox input. |
|
|
105
|
+
| `indeterminate` | `boolean` | `false` | Useful for select-all patterns. |
|
|
106
|
+
| `required` | `boolean` | `false` | Forwarded to the native input. |
|
|
107
|
+
| `aria-label` | `string \| null` | `null` | Use for icon-only or table selection checkboxes. |
|
|
108
|
+
| `aria-describedby` | `string \| null` | `null` | Links helper or error text outside the checkbox. |
|
|
109
|
+
| `aria-labelledby` | `string \| null` | `null` | Alternative to projected text or wrapper labels. |
|
|
110
|
+
| `aria-invalid` | `boolean \| string \| null` | `null` | Switches the control into the destructive invalid treatment. |
|
|
111
|
+
| `class` | `string` | `''` | Adds utility classes to the wrapped Material checkbox host. |
|
|
112
|
+
|
|
113
|
+
| Output | Payload |
|
|
114
|
+
| --------------- | --------- |
|
|
115
|
+
| `checkedChange` | `boolean` |
|
|
116
|
+
|
|
117
|
+
Public method: `focus()`.
|
|
118
|
+
|
|
119
|
+
## Styling and theming
|
|
120
|
+
|
|
121
|
+
The component uses a Material bridge so Angular Material's structural markup is restyled through the library theme tokens.
|
|
122
|
+
|
|
123
|
+
- Default borders and icon color use the shared `input` and `primary` tokens.
|
|
124
|
+
- `aria-invalid="true"` switches the control to the `destructive` token set.
|
|
125
|
+
- Pass spacing or alignment utilities through the `class` input when the checkbox needs to align with multi-line content.
|
|
126
|
+
|
|
127
|
+
Extra visual adjustments belong in `checkbox.component.css` inside the library.
|
|
128
|
+
|
|
129
|
+
## Accessibility
|
|
130
|
+
|
|
131
|
+
- Always give the checkbox an accessible name via wrapper label text, projected content, `aria-label`, or `aria-labelledby`.
|
|
132
|
+
- Use `aria-describedby` to connect helper or error text rendered outside the checkbox.
|
|
133
|
+
- Use `indeterminate` for tri-state list headers and table select-all behavior.
|
|
134
|
+
- `required` and `name` are forwarded to the underlying native input.
|
|
135
|
+
|
|
136
|
+
## Keyboard interactions
|
|
137
|
+
|
|
138
|
+
- `Tab` moves focus to the checkbox in DOM order.
|
|
139
|
+
- `Space` toggles the checked state.
|
|
140
|
+
|
|
141
|
+
## Angular notes
|
|
142
|
+
|
|
143
|
+
- `ngModel`, reactive forms, and `checkedChange` all work with the same primitive.
|
|
144
|
+
- When you pass `id`, Angular Material derives the native input id as `<id>-input`; wrapper labels or `aria-labelledby` are usually the simplest Angular pattern.
|
|
145
|
+
- Projected text still works if you prefer `<ui-checkbox>Accept</ui-checkbox>` for compact markup.
|
|
146
|
+
|
|
147
|
+
## Source parity
|
|
148
|
+
|
|
149
|
+
This Angular implementation follows the shadcn Checkbox examples while mapping the upstream `Field` helpers to Angular-native label wrappers, `fieldset` composition, semantic table rows, and signal-friendly state handling.
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# Collapsible
|
|
2
|
+
|
|
3
|
+
Displays an interactive disclosure region that expands and collapses inline content.
|
|
4
|
+
|
|
5
|
+
Use Collapsible for settings drawers, detail rows, compact status cards, and nested explorers where content should stay in the same document flow.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import {
|
|
11
|
+
CollapsibleComponent,
|
|
12
|
+
CollapsibleContentComponent,
|
|
13
|
+
CollapsibleTriggerDirective,
|
|
14
|
+
} from '@edsis/angular/component/collapsible';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Composition
|
|
18
|
+
|
|
19
|
+
The Angular composition follows the shadcn and Radix structure while using a root component, a trigger directive on a native button, and a content component.
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
ui-collapsible
|
|
23
|
+
├── button[ui-collapsible-trigger]
|
|
24
|
+
└── ui-collapsible-content
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Basic usage
|
|
28
|
+
|
|
29
|
+
Bind `[(open)]` when the parent should control the disclosure state or seed a default open panel.
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
readonly detailsOpen = signal(false);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<ui-collapsible [(open)]="detailsOpen" class="w-full max-w-md rounded-lg border border-border p-3">
|
|
37
|
+
<button
|
|
38
|
+
ui-collapsible-trigger
|
|
39
|
+
class="inline-flex w-full items-center justify-between gap-2 text-left text-sm font-medium">
|
|
40
|
+
Can I use this in my project?
|
|
41
|
+
<span aria-hidden="true">+</span>
|
|
42
|
+
</button>
|
|
43
|
+
|
|
44
|
+
<ui-collapsible-content class="pt-3 text-sm text-muted-foreground">
|
|
45
|
+
Yes. The trigger and content follow the disclosure ARIA pattern and stay in normal layout flow.
|
|
46
|
+
</ui-collapsible-content>
|
|
47
|
+
</ui-collapsible>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Common patterns
|
|
51
|
+
|
|
52
|
+
### Controlled state
|
|
53
|
+
|
|
54
|
+
Use a signal boolean with `[(open)]` when another control needs to observe or update the open state.
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
readonly isOpen = signal(false);
|
|
58
|
+
|
|
59
|
+
toggleFromElsewhere(): void {
|
|
60
|
+
this.isOpen.update((value) => !value);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Button composition
|
|
65
|
+
|
|
66
|
+
`button[ui-collapsible-trigger]` is a directive, so it can compose with the local button primitive on the same element.
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<ui-collapsible [(open)]="basicOpen" class="rounded-md border border-border p-2">
|
|
70
|
+
<button ui-button ui-collapsible-trigger variant="ghost" class="w-full justify-between px-2">
|
|
71
|
+
Product details
|
|
72
|
+
<svg aria-hidden="true" class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
73
|
+
<polyline points="6 9 12 15 18 9" />
|
|
74
|
+
</svg>
|
|
75
|
+
</button>
|
|
76
|
+
|
|
77
|
+
<ui-collapsible-content class="px-2 pb-2 pt-1 text-sm text-muted-foreground">
|
|
78
|
+
This panel can reveal additional details without leaving the page.
|
|
79
|
+
</ui-collapsible-content>
|
|
80
|
+
</ui-collapsible>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Settings drawer
|
|
84
|
+
|
|
85
|
+
Wrap the trigger and content inside a card-like surface when the disclosure belongs to a small settings editor.
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<ui-collapsible [(open)]="settingsOpen" class="rounded-lg border border-border p-4">
|
|
89
|
+
<div class="flex items-start gap-3">
|
|
90
|
+
<div class="grid flex-1 grid-cols-2 gap-2">
|
|
91
|
+
<input ui-input placeholder="Radius X" />
|
|
92
|
+
<input ui-input placeholder="Radius Y" />
|
|
93
|
+
<ui-collapsible-content class="col-span-full grid grid-cols-2 gap-2 pt-0">
|
|
94
|
+
<input ui-input placeholder="Blur" />
|
|
95
|
+
<input ui-input placeholder="Spread" />
|
|
96
|
+
</ui-collapsible-content>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<button ui-button ui-collapsible-trigger variant="outline" size="icon" aria-label="Toggle advanced fields">
|
|
100
|
+
<span aria-hidden="true">...</span>
|
|
101
|
+
</button>
|
|
102
|
+
</div>
|
|
103
|
+
</ui-collapsible>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Nested file tree
|
|
107
|
+
|
|
108
|
+
Nested `ui-collapsible` roots work well for compact explorers and outline views.
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<ui-collapsible [(open)]="componentsOpen">
|
|
112
|
+
<button ui-collapsible-trigger class="inline-flex items-center gap-2 text-sm font-medium">components</button>
|
|
113
|
+
|
|
114
|
+
<ui-collapsible-content class="ml-5 mt-2 flex flex-col gap-1">
|
|
115
|
+
<ui-collapsible [(open)]="uiOpen">
|
|
116
|
+
<button ui-collapsible-trigger class="inline-flex items-center gap-2 text-sm font-medium">ui</button>
|
|
117
|
+
<ui-collapsible-content class="ml-5 mt-2 flex flex-col gap-1 text-sm text-muted-foreground">
|
|
118
|
+
<span>button.ts</span>
|
|
119
|
+
<span>collapsible.ts</span>
|
|
120
|
+
</ui-collapsible-content>
|
|
121
|
+
</ui-collapsible>
|
|
122
|
+
</ui-collapsible-content>
|
|
123
|
+
</ui-collapsible>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### RTL
|
|
127
|
+
|
|
128
|
+
For right-to-left interfaces, set `dir="rtl"` on a wrapping container or the collapsible root.
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<section dir="rtl" lang="ar" class="max-w-md text-right">
|
|
132
|
+
<ui-collapsible [(open)]="rtlOpen" class="flex flex-col gap-2">
|
|
133
|
+
<button ui-collapsible-trigger class="inline-flex items-center justify-between gap-2 text-sm font-medium">
|
|
134
|
+
تبديل التفاصيل
|
|
135
|
+
</button>
|
|
136
|
+
<ui-collapsible-content class="flex flex-col gap-2 text-sm">
|
|
137
|
+
<div class="rounded-md border border-border px-4 py-2">عنوان الشحن</div>
|
|
138
|
+
<div class="rounded-md border border-border px-4 py-2">2x سماعات الاستوديو</div>
|
|
139
|
+
</ui-collapsible-content>
|
|
140
|
+
</ui-collapsible>
|
|
141
|
+
</section>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## API reference
|
|
145
|
+
|
|
146
|
+
### `CollapsibleComponent`
|
|
147
|
+
|
|
148
|
+
| Input | Type | Default |
|
|
149
|
+
| -------------- | --------- | ------- |
|
|
150
|
+
| `open` (model) | `boolean` | `false` |
|
|
151
|
+
| `disabled` | `boolean` | `false` |
|
|
152
|
+
| `class` | `string` | `''` |
|
|
153
|
+
|
|
154
|
+
### `CollapsibleContentComponent`
|
|
155
|
+
|
|
156
|
+
| Input | Type | Default |
|
|
157
|
+
| ------------ | --------- | ------- |
|
|
158
|
+
| `forceMount` | `boolean` | `false` |
|
|
159
|
+
| `class` | `string` | `''` |
|
|
160
|
+
|
|
161
|
+
### Parts
|
|
162
|
+
|
|
163
|
+
- `button[ui-collapsible-trigger]` is the interactive control. It manages `aria-expanded`, `aria-controls`, `data-state`, and root toggling.
|
|
164
|
+
- `ui-collapsible-content` is the panel region. It applies `role="region"`, `aria-labelledby`, `data-state`, and optional persistent projection via `forceMount`.
|
|
165
|
+
- Lower-level behavior follows the Radix Collapsible model: <https://www.radix-ui.com/primitives/docs/components/collapsible#api-reference>.
|
|
166
|
+
|
|
167
|
+
## Styling and theming
|
|
168
|
+
|
|
169
|
+
Pass `class` to the root or content, and use the native `class` attribute on the trigger button. The root and content expose `data-state="open" | "closed"` so surrounding styles or transitions can react to the current disclosure state.
|
|
170
|
+
|
|
171
|
+
Use theme tokens such as `border-border`, `bg-card`, `text-muted-foreground`, and spacing utilities to match the rest of the library.
|
|
172
|
+
|
|
173
|
+
## Accessibility
|
|
174
|
+
|
|
175
|
+
- The primitive follows the disclosure WAI-ARIA pattern.
|
|
176
|
+
- Trigger is a native button, so Enter and Space work without extra key handling.
|
|
177
|
+
- Trigger receives `aria-controls` and `aria-expanded`; content receives `role="region"` and `aria-labelledby`.
|
|
178
|
+
- `disabled` keeps the control visible while preventing interaction.
|
|
179
|
+
|
|
180
|
+
## Keyboard interactions
|
|
181
|
+
|
|
182
|
+
- `Enter` toggles the collapsible.
|
|
183
|
+
- `Space` toggles the collapsible.
|
|
184
|
+
- Tab order follows the DOM order of the trigger and any focusable controls inside the content.
|
|
185
|
+
|
|
186
|
+
## Angular notes
|
|
187
|
+
|
|
188
|
+
- `[(open)]` is the Angular equivalent of shadcn's `open` and `onOpenChange` props.
|
|
189
|
+
- `button[ui-collapsible-trigger]` is a directive, not a component, so it can compose with `button[ui-button]` on the same element.
|
|
190
|
+
- `forceMount` keeps projected content rendered even when the panel is closed, which is useful for measuring or animating content without re-creating it.
|
|
191
|
+
- The local API intentionally does not add an `asChild` prop; Angular composition is handled through selectors and host directives instead.
|
|
192
|
+
|
|
193
|
+
## Source parity
|
|
194
|
+
|
|
195
|
+
This Angular implementation follows the shadcn Collapsible structure and examples while translating the API to standalone Angular imports, signal-backed state, button-directive composition, and Angular-friendly RTL guidance.
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# Combobox
|
|
2
|
+
|
|
3
|
+
Searchable single-select surface built from a button trigger, a CDK overlay,
|
|
4
|
+
and the shared [Command](../command/README.md) list primitives.
|
|
5
|
+
|
|
6
|
+
Use Combobox when users need type-to-filter selection from a medium-sized list
|
|
7
|
+
without leaving the current form, settings screen, or dashboard panel.
|
|
8
|
+
|
|
9
|
+
## Import
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { ComboboxComponent, type ComboboxOption } from '@edsis/angular/component/combobox';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Composition
|
|
16
|
+
|
|
17
|
+
The Angular structure maps the combobox idea onto the existing library stack:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
ui-combobox
|
|
21
|
+
├── button[role="combobox"]
|
|
22
|
+
└── CDK overlay
|
|
23
|
+
└── ui-command
|
|
24
|
+
├── input[ui-command-input]
|
|
25
|
+
└── ui-command-list
|
|
26
|
+
└── button[ui-command-item]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This differs from the current shadcn Base UI page, which documents an input-first
|
|
30
|
+
combobox. The Angular library currently ships the common searchable single-select
|
|
31
|
+
pattern on top of Button + Command + CDK Overlay.
|
|
32
|
+
|
|
33
|
+
## Basic usage
|
|
34
|
+
|
|
35
|
+
Bind `[(value)]` when a signal or parent component should own the selected value.
|
|
36
|
+
Pass width or layout utilities through the host `class`; the trigger fills that
|
|
37
|
+
host width.
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
frameworkOptions: ComboboxOption<string>[] = [
|
|
41
|
+
{ value: 'angular', label: 'Angular' },
|
|
42
|
+
{ value: 'nextjs', label: 'Next.js' },
|
|
43
|
+
{ value: 'astro', label: 'Astro' },
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
selectedFramework = signal<string | null>(null);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<ui-combobox
|
|
51
|
+
class="w-80"
|
|
52
|
+
[options]="frameworkOptions"
|
|
53
|
+
[(value)]="selectedFramework"
|
|
54
|
+
placeholder="Select framework"
|
|
55
|
+
searchPlaceholder="Search frameworks..." />
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Common patterns
|
|
59
|
+
|
|
60
|
+
### Object-backed values
|
|
61
|
+
|
|
62
|
+
Option values can be full domain objects, not only strings.
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
type Country = {
|
|
66
|
+
code: string;
|
|
67
|
+
label: string;
|
|
68
|
+
region: string;
|
|
69
|
+
currency: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
countryOptions: ComboboxOption<Country>[] = [
|
|
73
|
+
{
|
|
74
|
+
value: { code: 'ca', label: 'Canada', region: 'North America', currency: 'CAD' },
|
|
75
|
+
label: 'Canada',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
value: { code: 'jp', label: 'Japan', region: 'Asia', currency: 'JPY' },
|
|
79
|
+
label: 'Japan',
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
selectedCountry = signal<Country | null>(countryOptions[0]?.value ?? null);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<ui-combobox
|
|
88
|
+
class="w-full max-w-sm"
|
|
89
|
+
[options]="countryOptions"
|
|
90
|
+
[(value)]="selectedCountry"
|
|
91
|
+
placeholder="Select country"
|
|
92
|
+
searchPlaceholder="Search countries..." />
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Disabled options and empty states
|
|
96
|
+
|
|
97
|
+
Mark options with `disabled: true` when they should stay visible but unavailable.
|
|
98
|
+
Tune `searchPlaceholder` and `emptyText` so large lists feel intentional.
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
feedOptions: ComboboxOption<string>[] = [
|
|
102
|
+
{ value: 'release-notes', label: 'Release notes' },
|
|
103
|
+
{ value: 'beta-api', label: 'Beta API access', disabled: true },
|
|
104
|
+
{ value: 'status-page', label: 'Status page' },
|
|
105
|
+
];
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<ui-combobox
|
|
110
|
+
class="w-full max-w-sm"
|
|
111
|
+
[options]="feedOptions"
|
|
112
|
+
placeholder="Choose a feed"
|
|
113
|
+
searchPlaceholder="Search feeds..."
|
|
114
|
+
emptyText="No feeds matched your query." />
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Reactive forms
|
|
118
|
+
|
|
119
|
+
The component implements `ControlValueAccessor`, so it also works with Angular
|
|
120
|
+
reactive forms.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
readonly form = new FormGroup({
|
|
124
|
+
framework: new FormControl<string | null>(null),
|
|
125
|
+
});
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```html
|
|
129
|
+
<form [formGroup]="form">
|
|
130
|
+
<ui-combobox
|
|
131
|
+
class="w-80"
|
|
132
|
+
formControlName="framework"
|
|
133
|
+
[options]="frameworkOptions"
|
|
134
|
+
placeholder="Select framework"
|
|
135
|
+
searchPlaceholder="Search frameworks..." />
|
|
136
|
+
</form>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## API reference
|
|
140
|
+
|
|
141
|
+
| Input or model | Type | Default |
|
|
142
|
+
| ------------------- | ---------------------------------- | --------------------- |
|
|
143
|
+
| `options` | `ReadonlyArray<ComboboxOption<T>>` | `[]` |
|
|
144
|
+
| `value` | `T \| null` | `null` |
|
|
145
|
+
| `placeholder` | `string` | `'Select…'` |
|
|
146
|
+
| `searchPlaceholder` | `string` | `'Search…'` |
|
|
147
|
+
| `emptyText` | `string` | `'No results found.'` |
|
|
148
|
+
| `disabled` | `boolean` | `false` |
|
|
149
|
+
| `class` | `string` | `''` |
|
|
150
|
+
|
|
151
|
+
Output: `valueChange: T | null`.
|
|
152
|
+
|
|
153
|
+
### `ComboboxOption<T>`
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
interface ComboboxOption<T = unknown> {
|
|
157
|
+
value: T;
|
|
158
|
+
label: string;
|
|
159
|
+
disabled?: boolean;
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Styling and theming
|
|
164
|
+
|
|
165
|
+
- Pass `class` to the host element for width and layout. The trigger fills the host width.
|
|
166
|
+
- Trigger uses the shared `outline` button variant.
|
|
167
|
+
- Overlay panel class is `ui-combobox-panel`.
|
|
168
|
+
- Overlay width tracks the trigger with `--ui-combobox-trigger-width`.
|
|
169
|
+
|
|
170
|
+
## Accessibility
|
|
171
|
+
|
|
172
|
+
- Trigger exposes `role="combobox"`, `aria-expanded`, `aria-controls`, and `aria-haspopup="listbox"`.
|
|
173
|
+
- Panel content is powered by `ui-command`, which provides the filter input and listbox roles.
|
|
174
|
+
- Escape and outside click close the panel; focus returns to the trigger.
|
|
175
|
+
- Keep a visible label or surrounding explanatory copy when placeholder text alone is not enough context.
|
|
176
|
+
|
|
177
|
+
## Keyboard interactions
|
|
178
|
+
|
|
179
|
+
- Enter or Space opens the trigger because it is a native button.
|
|
180
|
+
- Arrow keys move between filtered command items once the search input is focused.
|
|
181
|
+
- Enter selects the active option, and Escape closes the surface.
|
|
182
|
+
- Tab leaves the combobox in normal DOM order.
|
|
183
|
+
|
|
184
|
+
## Angular notes
|
|
185
|
+
|
|
186
|
+
- `[(value)]` is the simplest signal-friendly binding for standalone components.
|
|
187
|
+
- Because the component implements `ControlValueAccessor`, it also works with reactive forms.
|
|
188
|
+
- Object-backed selections rely on strict equality. Reuse the same object instances from the bound `options` array.
|
|
189
|
+
|
|
190
|
+
## Source parity
|
|
191
|
+
|
|
192
|
+
The current shadcn combobox docs also cover grouped collections, popup triggers,
|
|
193
|
+
clear buttons, invalid styling, input add-ons, and multi-select chips. Those
|
|
194
|
+
variants are not exposed by `ui-combobox` yet.
|
|
195
|
+
|
|
196
|
+
This README documents the supported Angular surface today and calls out the
|
|
197
|
+
upstream shadcn page as a reference for future expansion, not as a promise that
|
|
198
|
+
every upstream example already exists in this package.
|