@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
package/.npmignore
ADDED
package/README.md
CHANGED
|
@@ -1,177 +1,350 @@
|
|
|
1
1
|
# @edsis/angular
|
|
2
2
|
|
|
3
|
-
Angular
|
|
3
|
+
This project targets Angular 22 as the minimum supported major for published consumers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Package manager
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- `@edsis/angular/module/auth`
|
|
7
|
+
Install dependencies from the workspace root with Bun:
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
```bash
|
|
10
|
+
bun install
|
|
11
|
+
```
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
+
## Consumer installation
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
Install the published package into a consumer Angular workspace with Angular
|
|
16
|
+
CLI so the required peer dependencies are added to the app's `package.json`
|
|
17
|
+
and installed in the same flow:
|
|
18
|
+
|
|
19
|
+
In the consumer snippets below, `@your-scope/angular` means the package name
|
|
20
|
+
your workspace actually installs. Replace it consistently with the published
|
|
21
|
+
target you use, for example `@edsis/angular`, `@edsis/angular`, or
|
|
22
|
+
another branded alias such as `@etos/angular`.
|
|
15
23
|
|
|
16
24
|
```bash
|
|
17
|
-
|
|
25
|
+
ng add @your-scope/angular
|
|
18
26
|
```
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
The library requires Tailwind CSS `^4.3.0`. If the consumer workspace does
|
|
29
|
+
not already have a compatible Tailwind v4 installation, `ng add` will add it
|
|
30
|
+
from the published `peerDependencies`.
|
|
31
|
+
|
|
32
|
+
The published package treats Angular `>=22.0.0` as the supported peer floor,
|
|
33
|
+
so consumer workspaces can stay on Angular 22 or move forward to newer majors
|
|
34
|
+
without having the library artificially pinned to 22.x only.
|
|
35
|
+
|
|
36
|
+
When updating the library later, use Angular CLI as well:
|
|
21
37
|
|
|
22
38
|
```bash
|
|
23
|
-
|
|
24
|
-
bun run gen:sdk
|
|
25
|
-
bunx ng build sdk
|
|
26
|
-
bunx ng build library
|
|
39
|
+
ng update @your-scope/angular
|
|
27
40
|
```
|
|
28
41
|
|
|
29
|
-
The
|
|
30
|
-
|
|
31
|
-
## Full release
|
|
42
|
+
The package ships `ng-add` and `ng-update` metadata so Angular and RxJS
|
|
43
|
+
companions stay aligned with the supported versions of the library.
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
If you install the package with `npm install`, `bun add`, `pnpm add`, or `yarn
|
|
46
|
+
add` directly, peer dependency installation falls back to the package
|
|
47
|
+
manager's own behavior. In that flow, install Tailwind manually as well:
|
|
34
48
|
|
|
35
49
|
```bash
|
|
36
|
-
bun
|
|
50
|
+
bun add @your-scope/angular tailwindcss@^4.3.0
|
|
37
51
|
```
|
|
38
52
|
|
|
39
|
-
|
|
53
|
+
Consumer app styles should import the library theme, Tailwind, and the
|
|
54
|
+
Tailwind bridge in this order:
|
|
40
55
|
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
- run `bun run build:library`
|
|
47
|
-
- commit the version bump and generated SDK updates with `update version ke {{version}}`
|
|
48
|
-
- push the commit
|
|
49
|
-
- publish `dist/library` to the public npm registry
|
|
56
|
+
```css
|
|
57
|
+
@import '@your-scope/angular/theme/styles';
|
|
58
|
+
@import 'tailwindcss';
|
|
59
|
+
@import '@your-scope/angular/theme/tailwind/theme.css';
|
|
60
|
+
```
|
|
50
61
|
|
|
51
|
-
|
|
62
|
+
## Theme entrypoint
|
|
52
63
|
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
The shared theme runtime ships through `@your-scope/angular/theme`, with
|
|
65
|
+
granular deep-import surfaces available at `@your-scope/angular/theme/services`,
|
|
66
|
+
`@your-scope/angular/theme/provider`, and `@your-scope/angular/theme/token`.
|
|
67
|
+
The CSS assets stay available through `@your-scope/angular/theme/styles` and
|
|
68
|
+
`@your-scope/angular/theme/tailwind/theme.css`.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { provideMaterialTheme, withMaterialDefaults } from '@your-scope/angular/theme';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```css
|
|
75
|
+
@import '@your-scope/angular/theme/styles';
|
|
76
|
+
@import 'tailwindcss';
|
|
77
|
+
@import '@your-scope/angular/theme/tailwind/theme.css';
|
|
55
78
|
```
|
|
56
79
|
|
|
57
|
-
|
|
80
|
+
For contributors working in this repository, the theme entrypoint source is
|
|
81
|
+
split into runtime APIs under [`projects/angular/theme/services`](theme/services),
|
|
82
|
+
[`projects/angular/theme/provider`](theme/provider),
|
|
83
|
+
[`projects/angular/theme/token`](theme/token), and stylesheet
|
|
84
|
+
assets under [`projects/angular/theme/css`](theme/css).
|
|
85
|
+
The stylesheet sources are grouped into `foundation/`, `variants/`, and
|
|
86
|
+
`integrations/`. Local entrypoint notes live in
|
|
87
|
+
[`projects/angular/theme/README.md`](theme/README.md).
|
|
88
|
+
|
|
89
|
+
To run the theme-only regression suite from the workspace root, use:
|
|
58
90
|
|
|
59
91
|
```bash
|
|
60
|
-
bun run
|
|
92
|
+
bun run test:theme
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Breaking change migration
|
|
96
|
+
|
|
97
|
+
Granular secondary entrypoints are now the required component and navigation
|
|
98
|
+
surface. If your app previously imported from the removed
|
|
99
|
+
`@your-scope/angular/component` or `@your-scope/angular/navigation` barrels,
|
|
100
|
+
migrate in this order:
|
|
101
|
+
|
|
102
|
+
1. Confirm the package root you install in the consumer app. Keep that same
|
|
103
|
+
root in every `ng add`, `ng update`, stylesheet import, and TypeScript
|
|
104
|
+
import.
|
|
105
|
+
2. Replace broad barrel imports such as `@your-scope/angular/component` with
|
|
106
|
+
the smallest matching subpath, for example
|
|
107
|
+
`@your-scope/angular/component/button` or
|
|
108
|
+
`@your-scope/angular/component/dropdown-menu`.
|
|
109
|
+
3. Replace removed navigation imports such as `@your-scope/angular/navigation`
|
|
110
|
+
with the matching navigation subpath, for example
|
|
111
|
+
`@your-scope/angular/navigation/sidebar`,
|
|
112
|
+
`@your-scope/angular/navigation/topbar`,
|
|
113
|
+
`@your-scope/angular/navigation/service`, or
|
|
114
|
+
`@your-scope/angular/navigation/types`.
|
|
115
|
+
4. Update any internal helper imports to their new granular subpaths as well,
|
|
116
|
+
including utilities such as `@your-scope/angular/component/utils`.
|
|
117
|
+
5. Update schematic commands in the same way. The package name before the
|
|
118
|
+
colon must match the installed target.
|
|
119
|
+
|
|
120
|
+
Example migration:
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
import { ButtonComponent } from '@your-scope/angular/component/button';
|
|
124
|
+
import { DropdownMenuComponent } from '@your-scope/angular/component/dropdown-menu';
|
|
125
|
+
import { SidebarComponent } from '@your-scope/angular/navigation/sidebar';
|
|
126
|
+
import { NavigationService } from '@your-scope/angular/navigation/service';
|
|
127
|
+
import { UiNavIconComponent } from '@your-scope/angular/navigation/icon';
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Granular imports for production builds
|
|
131
|
+
|
|
132
|
+
Prefer the smallest subpath that matches the primitives you actually use,
|
|
133
|
+
especially in Native Federation or other shared-chunk builds. Every component
|
|
134
|
+
now ships only through its matching granular subpath, for example
|
|
135
|
+
`@your-scope/angular/component/date-picker`,
|
|
136
|
+
`@your-scope/angular/component/dropdown-menu`, and
|
|
137
|
+
`@your-scope/angular/component/tooltip`.
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import { AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@your-scope/angular/component/avatar';
|
|
141
|
+
import { ButtonComponent } from '@your-scope/angular/component/button';
|
|
142
|
+
import { PopoverContentDirective, PopoverTriggerDirective } from '@your-scope/angular/component/popover';
|
|
143
|
+
import { cn } from '@your-scope/angular/component/utils';
|
|
144
|
+
import { UiNavIconComponent } from '@your-scope/angular/navigation/icon';
|
|
61
145
|
```
|
|
62
146
|
|
|
63
|
-
|
|
147
|
+
`@your-scope/angular/component` and `@your-scope/angular/navigation` aggregate
|
|
148
|
+
barrels have been removed. Consumers should use granular
|
|
149
|
+
`@your-scope/angular/component/<slug>` and
|
|
150
|
+
`@your-scope/angular/navigation/<part>` imports.
|
|
151
|
+
|
|
152
|
+
Navigation now follows the same granular pattern:
|
|
153
|
+
`@your-scope/angular/navigation/types`,
|
|
154
|
+
`@your-scope/angular/navigation/service`,
|
|
155
|
+
`@your-scope/angular/navigation/sidebar`,
|
|
156
|
+
`@your-scope/angular/navigation/topbar`,
|
|
157
|
+
`@your-scope/angular/navigation/item`,
|
|
158
|
+
`@your-scope/angular/navigation/icon`, and
|
|
159
|
+
`@your-scope/angular/navigation/demo-data`.
|
|
160
|
+
|
|
161
|
+
The same subpaths are preserved for branded packages. For example, a consumer
|
|
162
|
+
built from the EDSIS release uses:
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
import { ButtonComponent } from '@edsis/angular/component/button';
|
|
166
|
+
import { cn } from '@edsis/angular/component/utils';
|
|
167
|
+
import { UiNavIconComponent } from '@edsis/angular/navigation/icon';
|
|
168
|
+
```
|
|
64
169
|
|
|
65
|
-
|
|
170
|
+
To verify the generated package still publishes smaller entrypoints after a
|
|
171
|
+
build, run:
|
|
66
172
|
|
|
67
173
|
```bash
|
|
68
|
-
bun run
|
|
69
|
-
bun run
|
|
70
|
-
bun run version:library 1.2.3
|
|
71
|
-
bun run version:library prerelease --preid beta
|
|
174
|
+
bun run build
|
|
175
|
+
bun run report:entrypoints -- --check
|
|
72
176
|
```
|
|
73
177
|
|
|
74
|
-
The
|
|
75
|
-
|
|
178
|
+
The size report validates that every granular component and navigation
|
|
179
|
+
entrypoint resolves to its own module and that the removed `./component` and
|
|
180
|
+
`./navigation` parent barrels do not return in the published exports.
|
|
76
181
|
|
|
77
|
-
##
|
|
182
|
+
## Navigation primitives
|
|
183
|
+
|
|
184
|
+
The navigation library now publishes only granular child entrypoints, so each
|
|
185
|
+
part can be consumed independently.
|
|
186
|
+
|
|
187
|
+
```ts
|
|
188
|
+
import { SidebarComponent } from '@your-scope/angular/navigation/sidebar';
|
|
189
|
+
import { TopbarComponent } from '@your-scope/angular/navigation/topbar';
|
|
190
|
+
import { NavigationService } from '@your-scope/angular/navigation/service';
|
|
191
|
+
import type { NavigationItem, SidebarVariant } from '@your-scope/angular/navigation/types';
|
|
192
|
+
import { UiNavIconComponent } from '@your-scope/angular/navigation/icon';
|
|
193
|
+
```
|
|
78
194
|
|
|
79
|
-
|
|
195
|
+
The vertical navigation selector is now `sidebar` and the projected sidebar
|
|
196
|
+
slots use `sidebar-header` and `sidebar-footer`.
|
|
197
|
+
|
|
198
|
+
```html
|
|
199
|
+
<sidebar [ariaLabel]="'Primary'" [variant]="'default'">
|
|
200
|
+
<div sidebar-header>Brand</div>
|
|
201
|
+
<div sidebar-footer>Footer actions</div>
|
|
202
|
+
</sidebar>
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Register items through `NavigationService.registerItems(...)`, or pass them directly with the `items` input when composing a local navigation tree.
|
|
206
|
+
|
|
207
|
+
## SDK generator in a consumer workspace
|
|
208
|
+
|
|
209
|
+
After `@edsis/angular` is installed, a consumer workspace can scaffold an
|
|
210
|
+
SDK config file under `config/sdk.config.json` and generate an Angular SDK directly from the published
|
|
211
|
+
schematics:
|
|
80
212
|
|
|
81
213
|
```bash
|
|
82
|
-
|
|
214
|
+
ng generate @your-scope/angular:sdk-init
|
|
215
|
+
# edit config/sdk.config.json
|
|
216
|
+
ng generate @your-scope/angular:sdk
|
|
83
217
|
```
|
|
84
218
|
|
|
85
|
-
The
|
|
219
|
+
The main consumer flow is: create `config/sdk.config.json`, adjust the OpenAPI
|
|
220
|
+
input and output target, then run the SDK generator.
|
|
86
221
|
|
|
87
|
-
|
|
88
|
-
- ask for a version bump using `X`, `Y`, or `Z`
|
|
89
|
-
- update `library/sdk/package.json`, `config/sdk.config.json`, and `library/angular/package.json`
|
|
90
|
-
- run `bun run build:library`, which builds the UI package, then the SDK, and finally the library
|
|
91
|
-
- publish `dist/sdk` and then `dist/library` to npm public with `--access public`
|
|
222
|
+
If you want short script aliases in the consumer app's `package.json`, add:
|
|
92
223
|
|
|
93
|
-
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"scripts": {
|
|
227
|
+
"gen:sdk:init": "ng generate @your-scope/angular:sdk-init",
|
|
228
|
+
"gen:sdk": "ng generate @your-scope/angular:sdk"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Consumers do not need a `gen:sdk:build` step because the npm package already
|
|
234
|
+
ships the compiled schematic runtime.
|
|
235
|
+
|
|
236
|
+
Common follow-up options:
|
|
94
237
|
|
|
95
238
|
```bash
|
|
96
|
-
|
|
239
|
+
ng generate @your-scope/angular:sdk-init --path=config/my-sdk.config.json
|
|
240
|
+
ng generate @your-scope/angular:sdk --config=config/my-sdk.config.json --dry-run
|
|
97
241
|
```
|
|
98
242
|
|
|
99
|
-
|
|
243
|
+
## Code scaffolding
|
|
244
|
+
|
|
245
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
100
246
|
|
|
101
247
|
```bash
|
|
102
|
-
bun run
|
|
248
|
+
bun run ng generate component component-name
|
|
103
249
|
```
|
|
104
250
|
|
|
105
|
-
|
|
251
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
106
252
|
|
|
107
253
|
```bash
|
|
108
|
-
bun run
|
|
254
|
+
bun run ng --help
|
|
109
255
|
```
|
|
110
256
|
|
|
111
|
-
|
|
257
|
+
## Building
|
|
258
|
+
|
|
259
|
+
To build the library, run:
|
|
112
260
|
|
|
113
261
|
```bash
|
|
114
|
-
bun run
|
|
262
|
+
bun run build
|
|
115
263
|
```
|
|
116
264
|
|
|
117
|
-
|
|
265
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
266
|
+
|
|
267
|
+
To inspect the generated entrypoint sizes after a build, run:
|
|
118
268
|
|
|
119
269
|
```bash
|
|
120
|
-
bun run
|
|
270
|
+
bun run report:entrypoints
|
|
121
271
|
```
|
|
122
272
|
|
|
123
|
-
|
|
273
|
+
### Publishing the Library
|
|
274
|
+
|
|
275
|
+
Publish the scoped package to the public npm registry from the workspace root.
|
|
276
|
+
|
|
277
|
+
First, log in to npm:
|
|
124
278
|
|
|
125
279
|
```bash
|
|
126
|
-
|
|
127
|
-
bun run publish --tag next
|
|
128
|
-
bun run publish:sdk
|
|
129
|
-
bun run publish:library
|
|
280
|
+
npm login
|
|
130
281
|
```
|
|
131
282
|
|
|
132
|
-
|
|
283
|
+
Then run:
|
|
133
284
|
|
|
134
285
|
```bash
|
|
135
|
-
bun run publish
|
|
136
|
-
bun run publish:library:dry-run
|
|
286
|
+
bun run publish
|
|
137
287
|
```
|
|
138
288
|
|
|
139
|
-
|
|
289
|
+
By default, this command publishes every configured release target from `config/release.config.json`.
|
|
290
|
+
|
|
291
|
+
Release targets are configured in `config/release.config.json`. Each entry can override the published
|
|
292
|
+
package name plus `repository`, `homepage`, and `bugs` metadata so npm shows the correct package identity.
|
|
293
|
+
|
|
294
|
+
To publish the `edsis` target from that config, run:
|
|
140
295
|
|
|
141
296
|
```bash
|
|
142
|
-
bun run
|
|
297
|
+
bun run publish --edsis
|
|
143
298
|
```
|
|
144
299
|
|
|
145
|
-
|
|
300
|
+
To publish every configured release target in sequence, run:
|
|
146
301
|
|
|
147
302
|
```bash
|
|
148
|
-
bun run
|
|
303
|
+
bun run publish -all
|
|
149
304
|
```
|
|
150
305
|
|
|
151
|
-
`
|
|
306
|
+
`bun run publish` and `bun run publish -all` are equivalent.
|
|
307
|
+
|
|
308
|
+
That flow rebuilds `dist/angular` for each configured target, rewrites published package references, applies
|
|
309
|
+
the target-specific npm metadata, smoke-tests the tarball, then publishes it to npm.
|
|
152
310
|
|
|
153
|
-
|
|
311
|
+
### EDSIS Verification Flow
|
|
312
|
+
|
|
313
|
+
To validate the EDSIS package locally without publishing, use:
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
bun run build -- --package @edsis/angular --repository-url git+https://github.com/edsis/angular.git --homepage https://github.com/edsis/angular#readme --bugs-url https://github.com/edsis/angular/issues
|
|
317
|
+
bun run smoke:pack -- --package @edsis/angular
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
Consumer installation for the published EDSIS package is:
|
|
154
321
|
|
|
155
322
|
```bash
|
|
156
|
-
|
|
323
|
+
ng add @edsis/angular
|
|
324
|
+
bun add @edsis/angular
|
|
157
325
|
```
|
|
158
326
|
|
|
159
|
-
|
|
327
|
+
If you use `npm`, `pnpm`, or `yarn`, install the package with your package manager after `ng add`
|
|
328
|
+
finishes.
|
|
329
|
+
|
|
330
|
+
## Running unit tests
|
|
160
331
|
|
|
161
|
-
|
|
332
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
162
333
|
|
|
163
|
-
|
|
334
|
+
```bash
|
|
335
|
+
bun run test
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
## Running end-to-end tests
|
|
164
339
|
|
|
165
|
-
-
|
|
166
|
-
|
|
340
|
+
For end-to-end (e2e) testing, run:
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
bun run ng e2e
|
|
344
|
+
```
|
|
167
345
|
|
|
168
|
-
|
|
169
|
-
not require a repository `NPM_TOKEN` secret. The npm package must be configured
|
|
170
|
-
to trust this repository workflow as a publisher. On tag pushes, the tag
|
|
171
|
-
version must match `library/angular/package.json`.
|
|
346
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
172
347
|
|
|
173
|
-
|
|
348
|
+
## Additional Resources
|
|
174
349
|
|
|
175
|
-
|
|
176
|
-
2. Select `X`, `Y`, or `Z`, then confirm the computed version.
|
|
177
|
-
3. Let the script build, commit, push, and publish the package.
|
|
350
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
package/collection.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Add @edsis/angular and its required peer dependencies to an Angular workspace.",
|
|
6
|
+
"factory": "./generator/api/bin/schematics/ng-add/index.js#ngAdd",
|
|
7
|
+
"schema": "./generator/api/schematics/ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"sdk": {
|
|
10
|
+
"description": "Generate an Angular SDK from an OpenAPI spec.",
|
|
11
|
+
"factory": "./generator/api/bin/schematics/sdk/index.js#sdk",
|
|
12
|
+
"schema": "./generator/api/schematics/sdk/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"sdk-init": {
|
|
15
|
+
"description": "Create config/sdk.config.json under the workspace root.",
|
|
16
|
+
"factory": "./generator/api/bin/schematics/init/index.js#init",
|
|
17
|
+
"schema": "./generator/api/schematics/init/schema.json"
|
|
18
|
+
},
|
|
19
|
+
"guide": {
|
|
20
|
+
"description": "Compile Markdown files into Angular standalone components and a nested route tree.",
|
|
21
|
+
"factory": "./generator/guide/bin/schematics/build/index.js#build",
|
|
22
|
+
"schema": "./generator/guide/schematics/build/schema.json"
|
|
23
|
+
},
|
|
24
|
+
"guide-init": {
|
|
25
|
+
"description": "Create config/guide.config.json under the workspace root.",
|
|
26
|
+
"factory": "./generator/guide/bin/schematics/init/index.js#init",
|
|
27
|
+
"schema": "./generator/guide/schematics/init/schema.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# Accordion
|
|
2
|
+
|
|
3
|
+
Displays a vertically stacked set of interactive headings that reveal one or more content panels.
|
|
4
|
+
|
|
5
|
+
Use Accordion for FAQ blocks, settings groups, and progressive disclosure where content should stay in the same page flow.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import {
|
|
11
|
+
AccordionComponent,
|
|
12
|
+
AccordionContentComponent,
|
|
13
|
+
AccordionItemComponent,
|
|
14
|
+
AccordionTriggerComponent,
|
|
15
|
+
} from '@edsis/angular/component/accordion';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Composition
|
|
19
|
+
|
|
20
|
+
The Angular structure mirrors the shadcn and Radix composition while using Angular selectors and a native button trigger.
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
ui-accordion
|
|
24
|
+
├── ui-accordion-item
|
|
25
|
+
│ ├── button[ui-accordion-trigger]
|
|
26
|
+
│ └── ui-accordion-content
|
|
27
|
+
└── ui-accordion-item
|
|
28
|
+
├── button[ui-accordion-trigger]
|
|
29
|
+
└── ui-accordion-content
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Basic usage
|
|
33
|
+
|
|
34
|
+
Use `ui-accordion` as the root, wrap each section in `ui-accordion-item`, place the clickable heading on a native button with `ui-accordion-trigger`, and project body copy into `ui-accordion-content`.
|
|
35
|
+
|
|
36
|
+
Bind `[(value)]` when the parent should control the open state or seed a default open item.
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<ui-accordion [(value)]="openItem" type="single" class="w-full max-w-xl">
|
|
40
|
+
<ui-accordion-item value="item-1">
|
|
41
|
+
<button ui-accordion-trigger>Is it accessible?</button>
|
|
42
|
+
<ui-accordion-content>
|
|
43
|
+
Yes. The trigger and content follow the expected accordion ARIA wiring.
|
|
44
|
+
</ui-accordion-content>
|
|
45
|
+
</ui-accordion-item>
|
|
46
|
+
</ui-accordion>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Common patterns
|
|
50
|
+
|
|
51
|
+
### Single-open FAQ
|
|
52
|
+
|
|
53
|
+
Use `type="single"` when only one item should stay open at a time.
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
const basicOpen = signal<string | string[] | null>('item-1');
|
|
57
|
+
|
|
58
|
+
<ui-accordion [(value)]="basicOpen" type="single" class="max-w-lg">
|
|
59
|
+
<ui-accordion-item value="item-1">...</ui-accordion-item>
|
|
60
|
+
<ui-accordion-item value="item-2">...</ui-accordion-item>
|
|
61
|
+
<ui-accordion-item value="item-3">...</ui-accordion-item>
|
|
62
|
+
</ui-accordion>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Multiple open sections
|
|
66
|
+
|
|
67
|
+
Use `type="multiple"` when more than one panel should stay open. The bound value becomes a `string[]`.
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
const multipleOpen = signal<string[] | null>(['notifications']);
|
|
71
|
+
|
|
72
|
+
<ui-accordion [(value)]="multipleOpen" type="multiple" class="max-w-lg">
|
|
73
|
+
<ui-accordion-item value="notifications">...</ui-accordion-item>
|
|
74
|
+
<ui-accordion-item value="privacy">...</ui-accordion-item>
|
|
75
|
+
<ui-accordion-item value="billing">...</ui-accordion-item>
|
|
76
|
+
</ui-accordion>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Disabled items
|
|
80
|
+
|
|
81
|
+
Disable an individual item with `[disabled]="true"` on `ui-accordion-item`.
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
const disabledOpen = signal<string | string[] | null>('history');
|
|
85
|
+
|
|
86
|
+
<ui-accordion [(value)]="disabledOpen" type="single" class="w-full">
|
|
87
|
+
<ui-accordion-item value="history">...</ui-accordion-item>
|
|
88
|
+
<ui-accordion-item value="premium" [disabled]="true">...</ui-accordion-item>
|
|
89
|
+
<ui-accordion-item value="email">...</ui-accordion-item>
|
|
90
|
+
</ui-accordion>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Bordered list
|
|
94
|
+
|
|
95
|
+
Add borders on the root and the items when the accordion should read like a boxed settings list.
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
const borderOpen = signal<string | string[] | null>('billing');
|
|
99
|
+
|
|
100
|
+
<ui-accordion [(value)]="borderOpen" type="single" class="max-w-lg rounded-lg border">
|
|
101
|
+
<ui-accordion-item value="billing" class="border-b px-4 last:border-b-0">...</ui-accordion-item>
|
|
102
|
+
<ui-accordion-item value="security" class="border-b px-4 last:border-b-0">...</ui-accordion-item>
|
|
103
|
+
<ui-accordion-item value="integrations" class="border-b px-4 last:border-b-0">...</ui-accordion-item>
|
|
104
|
+
</ui-accordion>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Inside a card
|
|
108
|
+
|
|
109
|
+
Accordion works well inside `ui-card` when the disclosure belongs to a larger billing or account surface.
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
const cardOpen = signal<string | string[] | null>('plans');
|
|
113
|
+
|
|
114
|
+
<ui-card class="w-full max-w-sm">
|
|
115
|
+
<ui-card-header>
|
|
116
|
+
<ui-card-title>Subscription and billing</ui-card-title>
|
|
117
|
+
<ui-card-description>Common questions about plans, payments, and cancellations.</ui-card-description>
|
|
118
|
+
</ui-card-header>
|
|
119
|
+
<ui-card-content>
|
|
120
|
+
<ui-accordion [(value)]="cardOpen" type="single">
|
|
121
|
+
<ui-accordion-item value="plans">...</ui-accordion-item>
|
|
122
|
+
<ui-accordion-item value="billing">...</ui-accordion-item>
|
|
123
|
+
<ui-accordion-item value="cancel">...</ui-accordion-item>
|
|
124
|
+
</ui-accordion>
|
|
125
|
+
</ui-card-content>
|
|
126
|
+
</ui-card>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### RTL
|
|
130
|
+
|
|
131
|
+
For right-to-left interfaces, set `dir="rtl"` on a wrapping container or manage direction globally in the app shell. The Accordion structure itself does not change.
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<section dir="rtl" lang="ar" class="max-w-md text-right">
|
|
135
|
+
<ui-accordion [(value)]="rtlOpen" type="single">
|
|
136
|
+
<ui-accordion-item value="item-1">...</ui-accordion-item>
|
|
137
|
+
<ui-accordion-item value="item-2">...</ui-accordion-item>
|
|
138
|
+
<ui-accordion-item value="item-3">...</ui-accordion-item>
|
|
139
|
+
</ui-accordion>
|
|
140
|
+
</section>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## API reference
|
|
144
|
+
|
|
145
|
+
### `AccordionComponent`
|
|
146
|
+
|
|
147
|
+
| Input | Type | Default |
|
|
148
|
+
| --------------- | ---------------------------- | ---------- |
|
|
149
|
+
| `type` | `'single' \| 'multiple'` | `'single'` |
|
|
150
|
+
| `collapsible` | `boolean` | `true` |
|
|
151
|
+
| `value` (model) | `string \| string[] \| null` | `null` |
|
|
152
|
+
| `class` | `string` | `''` |
|
|
153
|
+
|
|
154
|
+
### `AccordionItemComponent`
|
|
155
|
+
|
|
156
|
+
| Input | Type | Default |
|
|
157
|
+
| ---------- | --------- | ------- |
|
|
158
|
+
| `value` | `string` | — |
|
|
159
|
+
| `disabled` | `boolean` | `false` |
|
|
160
|
+
| `class` | `string` | `''` |
|
|
161
|
+
|
|
162
|
+
### Parts
|
|
163
|
+
|
|
164
|
+
- `button[ui-accordion-trigger]` renders the interactive heading and manages `aria-controls` plus `aria-expanded`.
|
|
165
|
+
- `ui-accordion-content` renders the panel region and links back to the trigger with `aria-labelledby`.
|
|
166
|
+
- Lower-level primitive behavior is based on the Radix Accordion pattern: <https://www.radix-ui.com/primitives/docs/components/accordion#api-reference>.
|
|
167
|
+
|
|
168
|
+
## Styling and theming
|
|
169
|
+
|
|
170
|
+
Pass `class` to the root or item parts to tune width, spacing, borders, and embedded-card layouts.
|
|
171
|
+
|
|
172
|
+
The component follows the shared library theme tokens, so standard utility classes such as `border`, `rounded-lg`, `bg-card`, `text-foreground`, and spacing utilities work as expected.
|
|
173
|
+
|
|
174
|
+
## Accessibility
|
|
175
|
+
|
|
176
|
+
- Trigger has `aria-expanded` and `aria-controls` pointing at the content id.
|
|
177
|
+
- Content has `role="region"` and `aria-labelledby` pointing back at the trigger id.
|
|
178
|
+
- `disabled` items remain visible but non-interactive and are marked with `aria-disabled`.
|
|
179
|
+
- Keep trigger text descriptive and avoid placing nested interactive controls inside the trigger button.
|
|
180
|
+
|
|
181
|
+
## Keyboard interactions
|
|
182
|
+
|
|
183
|
+
- Native button activation covers Enter and Space.
|
|
184
|
+
- Tab order follows the DOM order of the triggers and content.
|
|
185
|
+
|
|
186
|
+
## Angular notes
|
|
187
|
+
|
|
188
|
+
- The component uses Angular signal-based `model()` binding for `value`.
|
|
189
|
+
- For `type="single"`, the value is a `string | null`.
|
|
190
|
+
- For `type="multiple"`, the value is a `string[] | null`.
|
|
191
|
+
- Seed the initial open state with a signal rather than a separate `defaultValue` prop.
|
|
192
|
+
|
|
193
|
+
## Source parity
|
|
194
|
+
|
|
195
|
+
This Angular implementation follows the shadcn Accordion concepts while translating the examples to Angular selectors, standalone imports, and signal-friendly bindings.
|