@edsis/angular 22.1.6 → 22.2.8
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/LICENSE +21 -0
- package/README.md +87 -399
- package/SECURITY.md +18 -0
- package/SUPPORT.md +15 -0
- package/chart/README.md +272 -0
- package/component/README.md +89 -0
- package/component/accordion/README.md +195 -0
- package/component/alert/README.md +184 -0
- package/component/alert-dialog/README.md +255 -0
- package/component/aspect-ratio/README.md +116 -0
- package/component/avatar/README.md +182 -0
- package/component/badge/README.md +143 -0
- package/component/breadcrumb/README.md +223 -0
- package/component/button/README.md +141 -0
- package/component/button-group/README.md +214 -0
- package/component/calendar/README.md +125 -0
- package/component/card/README.md +232 -0
- package/component/carousel/README.md +276 -0
- package/component/checkbox/README.md +153 -0
- package/component/collapsible/README.md +216 -0
- package/component/combobox/README.md +202 -0
- package/component/command/README.md +287 -0
- package/component/composer/README.md +241 -0
- package/component/context-menu/README.md +268 -0
- package/component/date-picker/README.md +202 -0
- package/component/dialog/README.md +276 -0
- package/component/drawer/README.md +146 -0
- package/component/dropdown-menu/README.md +336 -0
- package/component/editor/README.md +152 -0
- package/component/empty/README.md +193 -0
- package/component/form/README.md +216 -0
- package/component/hover-card/README.md +150 -0
- package/component/icon/README.md +52 -0
- package/component/input/README.md +160 -0
- package/component/input-group/README.md +245 -0
- package/component/input-otp/README.md +331 -0
- package/component/item/README.md +254 -0
- package/component/kanban/README.md +81 -0
- package/component/kbd/README.md +141 -0
- package/component/label/README.md +137 -0
- package/component/menubar/README.md +270 -0
- package/component/native-select/README.md +176 -0
- package/component/navigation-menu/README.md +165 -0
- package/component/pagination/README.md +151 -0
- package/component/pillbox/README.md +68 -0
- package/component/popover/README.md +54 -0
- package/component/progress/README.md +160 -0
- package/component/radio/README.md +212 -0
- package/component/resizable/README.md +178 -0
- package/component/scroll-area/README.md +150 -0
- package/component/select/README.md +228 -0
- package/component/separator/README.md +175 -0
- package/component/sheet/README.md +190 -0
- package/component/skeleton/README.md +158 -0
- package/component/slider/README.md +207 -0
- package/component/spinner/README.md +160 -0
- package/component/switch/README.md +170 -0
- package/component/table/README.md +292 -0
- package/component/tabs/README.md +220 -0
- package/component/textarea/README.md +169 -0
- package/component/timeline/README.md +94 -0
- package/component/toast/README.md +173 -0
- package/component/toggle/README.md +133 -0
- package/component/toggle-group/README.md +234 -0
- package/component/tooltip/README.md +230 -0
- package/fesm2022/edsis-angular-chart-area.mjs +508 -0
- package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
- package/fesm2022/edsis-angular-chart-core.mjs +1282 -0
- package/fesm2022/edsis-angular-chart-line.mjs +544 -0
- package/fesm2022/edsis-angular-chart-pie.mjs +524 -0
- package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
- package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
- package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
- package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
- package/fesm2022/edsis-angular-chart.mjs +3 -0
- package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
- package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
- package/fesm2022/edsis-angular-component-alert.mjs +268 -0
- package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
- package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
- package/fesm2022/edsis-angular-component-badge.mjs +111 -0
- package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
- package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
- package/fesm2022/edsis-angular-component-button.mjs +155 -0
- package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
- package/fesm2022/edsis-angular-component-card.mjs +460 -0
- package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
- package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
- package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
- package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
- package/fesm2022/edsis-angular-component-command.mjs +815 -0
- package/fesm2022/edsis-angular-component-composer.mjs +840 -0
- package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
- package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
- package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
- package/fesm2022/edsis-angular-component-drawer.mjs +2 -0
- package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
- package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
- package/fesm2022/edsis-angular-component-empty.mjs +351 -0
- package/fesm2022/edsis-angular-component-form.mjs +821 -0
- package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
- package/fesm2022/edsis-angular-component-icon.mjs +253 -0
- package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
- package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
- package/fesm2022/edsis-angular-component-input.mjs +87 -0
- package/fesm2022/edsis-angular-component-item.mjs +720 -0
- package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
- package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
- package/fesm2022/edsis-angular-component-label.mjs +82 -0
- package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
- package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
- package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
- package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
- package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
- package/fesm2022/edsis-angular-component-popover.mjs +292 -0
- package/fesm2022/edsis-angular-component-progress.mjs +184 -0
- package/fesm2022/edsis-angular-component-radio.mjs +491 -0
- package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
- package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
- package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
- package/fesm2022/edsis-angular-component-select.mjs +743 -0
- package/fesm2022/edsis-angular-component-separator.mjs +102 -0
- package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
- package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
- package/fesm2022/edsis-angular-component-slider.mjs +676 -0
- package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
- package/fesm2022/edsis-angular-component-switch.mjs +361 -0
- package/fesm2022/edsis-angular-component-table.mjs +446 -0
- package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
- package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
- package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
- package/fesm2022/edsis-angular-component-toast.mjs +231 -0
- package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
- package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
- package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
- package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
- package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
- package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
- package/fesm2022/edsis-angular-component-utils.mjs +2 -0
- package/fesm2022/edsis-angular-component.mjs +0 -0
- package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
- package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
- package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-BWWWaUgy.mjs +234 -0
- package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
- package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
- package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
- package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
- package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
- package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.mjs +346 -0
- package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
- package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
- package/fesm2022/edsis-angular-navigation.mjs +3338 -0
- package/fesm2022/edsis-angular-sdk.mjs +100 -0
- package/fesm2022/edsis-angular-theme-component-settings.mjs +1877 -0
- package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
- package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
- package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
- package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
- package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
- package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
- package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
- package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
- package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
- package/fesm2022/edsis-angular-theme-page.mjs +7 -0
- package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
- package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
- package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
- package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
- package/fesm2022/edsis-angular-theme.mjs +0 -0
- package/fesm2022/edsis-angular.mjs +5 -8
- package/navigation/README.md +576 -0
- package/package.json +477 -52
- package/sdk/README.md +212 -0
- package/sdk/schematics/collection.json +20 -0
- package/sdk/schematics/init/index.js +83 -0
- package/sdk/schematics/init/schema.json +19 -0
- package/sdk/schematics/ng-add/index.js +147 -0
- package/sdk/schematics/ng-add/schema.json +14 -0
- package/sdk/schematics/package.json +3 -0
- package/sdk/schematics/sdk/index.js +175 -0
- package/sdk/schematics/sdk/schema.json +19 -0
- package/sdk/sdk.config.example.json +24 -0
- package/sdk/src/config/loader.js +43 -0
- package/sdk/src/config/schema.js +59 -0
- package/sdk/src/emit/client.js +251 -0
- package/sdk/src/emit/metadata.js +310 -0
- package/sdk/src/emit/models.js +104 -0
- package/sdk/src/emit/navigation.js +56 -0
- package/sdk/src/emit/operations.js +118 -0
- package/sdk/src/emit/public-api.js +54 -0
- package/sdk/src/emit/services.js +110 -0
- package/sdk/src/engine.js +67 -0
- package/sdk/src/layout/per-domain.js +360 -0
- package/sdk/src/package.json +3 -0
- package/sdk/src/parser/bundle.js +25 -0
- package/sdk/src/parser/ir.js +429 -0
- package/sdk/src/parser/types.js +7 -0
- package/sdk/src/render/template.js +152 -0
- package/sdk/src/writer/index.js +286 -0
- package/theme/README.md +120 -0
- package/theme/component/settings/README.md +154 -0
- package/theme/layout/README.md +604 -0
- package/theme/page/README.md +505 -0
- package/theme/shell/README.md +344 -0
- package/theme/styles/README.md +202 -0
- package/theme/styles/css/base/components.css +577 -0
- package/theme/styles/css/base/index.css +14 -0
- package/theme/styles/css/base/package.css +9 -0
- package/theme/styles/css/base/prefers-dark.css +86 -0
- package/theme/styles/css/base/print.css +62 -0
- package/theme/styles/css/base/status.css +38 -0
- package/theme/styles/css/base/tailwind.css +208 -0
- package/theme/styles/css/base/theme.css +353 -0
- package/theme/styles/css/base/tokens.css +388 -0
- package/theme/styles/css/color/amber.css +72 -0
- package/theme/styles/css/color/blue.css +72 -0
- package/theme/styles/css/color/brand.css +38 -0
- package/theme/styles/css/color/cyan.css +72 -0
- package/theme/styles/css/color/emerald.css +72 -0
- package/theme/styles/css/color/fuchsia.css +72 -0
- package/theme/styles/css/color/green.css +72 -0
- package/theme/styles/css/color/index.css +19 -0
- package/theme/styles/css/color/indigo.css +72 -0
- package/theme/styles/css/color/lime.css +72 -0
- package/theme/styles/css/color/orange.css +72 -0
- package/theme/styles/css/color/pink.css +72 -0
- package/theme/styles/css/color/purple.css +72 -0
- package/theme/styles/css/color/red.css +72 -0
- package/theme/styles/css/color/rose.css +72 -0
- package/theme/styles/css/color/sky.css +72 -0
- package/theme/styles/css/color/teal.css +72 -0
- package/theme/styles/css/color/violet.css +72 -0
- package/theme/styles/css/color/yellow.css +72 -0
- package/theme/styles/css/fonts.css +85 -0
- package/theme/styles/css/index.css +18 -0
- package/theme/styles/css/neutral/gray.css +63 -0
- package/theme/styles/css/neutral/index.css +11 -0
- package/theme/styles/css/neutral/mauve.css +63 -0
- package/theme/styles/css/neutral/mist.css +63 -0
- package/theme/styles/css/neutral/neutral.css +63 -0
- package/theme/styles/css/neutral/olive.css +63 -0
- package/theme/styles/css/neutral/slate.css +63 -0
- package/theme/styles/css/neutral/stone.css +63 -0
- package/theme/styles/css/neutral/taupe.css +63 -0
- package/theme/styles/css/neutral/zinc.css +63 -0
- package/theme/styles/css/radius/index.css +30 -0
- package/theme/styles/css/space/index.css +20 -0
- package/types/edsis-angular-chart-area.d.ts +139 -0
- package/types/edsis-angular-chart-bar.d.ts +291 -0
- package/types/edsis-angular-chart-core.d.ts +822 -0
- package/types/edsis-angular-chart-line.d.ts +148 -0
- package/types/edsis-angular-chart-pie.d.ts +202 -0
- package/types/edsis-angular-chart-primitives.d.ts +360 -0
- package/types/edsis-angular-chart-radar.d.ts +198 -0
- package/types/edsis-angular-chart-radial.d.ts +187 -0
- package/types/edsis-angular-chart-scatter.d.ts +181 -0
- package/types/edsis-angular-chart.d.ts +3 -0
- package/types/edsis-angular-component-accordion.d.ts +139 -0
- package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
- package/types/edsis-angular-component-alert.d.ts +72 -0
- package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
- package/types/edsis-angular-component-avatar.d.ts +111 -0
- package/types/edsis-angular-component-badge.d.ts +36 -0
- package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
- package/types/edsis-angular-component-button-group.d.ts +50 -0
- package/types/edsis-angular-component-button.d.ts +44 -0
- package/types/edsis-angular-component-calendar.d.ts +150 -0
- package/types/edsis-angular-component-card.d.ts +123 -0
- package/types/edsis-angular-component-carousel.d.ts +155 -0
- package/types/edsis-angular-component-checkbox.d.ts +100 -0
- package/types/edsis-angular-component-collapsible.d.ts +68 -0
- package/types/edsis-angular-component-combobox.d.ts +105 -0
- package/types/edsis-angular-component-command.d.ts +215 -0
- package/types/edsis-angular-component-composer.d.ts +190 -0
- package/types/edsis-angular-component-context-menu.d.ts +64 -0
- package/types/edsis-angular-component-date-picker.d.ts +199 -0
- package/types/edsis-angular-component-dialog.d.ts +231 -0
- package/types/edsis-angular-component-drawer.d.ts +2 -0
- package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
- package/types/edsis-angular-component-editor.d.ts +234 -0
- package/types/edsis-angular-component-empty.d.ts +85 -0
- package/types/edsis-angular-component-form.d.ts +223 -0
- package/types/edsis-angular-component-hover-card.d.ts +133 -0
- package/types/edsis-angular-component-icon.d.ts +90 -0
- package/types/edsis-angular-component-input-group.d.ts +98 -0
- package/types/edsis-angular-component-input-otp.d.ts +249 -0
- package/types/edsis-angular-component-input.d.ts +31 -0
- package/types/edsis-angular-component-item.d.ts +169 -0
- package/types/edsis-angular-component-kanban.d.ts +165 -0
- package/types/edsis-angular-component-kbd.d.ts +25 -0
- package/types/edsis-angular-component-label.d.ts +19 -0
- package/types/edsis-angular-component-menubar.d.ts +123 -0
- package/types/edsis-angular-component-native-select.d.ts +39 -0
- package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
- package/types/edsis-angular-component-pagination.d.ts +83 -0
- package/types/edsis-angular-component-pillbox.d.ts +380 -0
- package/types/edsis-angular-component-popover.d.ts +96 -0
- package/types/edsis-angular-component-progress.d.ts +45 -0
- package/types/edsis-angular-component-radio.d.ts +137 -0
- package/types/edsis-angular-component-resizable.d.ts +166 -0
- package/types/edsis-angular-component-scroll-area.d.ts +37 -0
- package/types/edsis-angular-component-segmented-control.d.ts +102 -0
- package/types/edsis-angular-component-select.d.ts +138 -0
- package/types/edsis-angular-component-separator.d.ts +26 -0
- package/types/edsis-angular-component-sheet.d.ts +240 -0
- package/types/edsis-angular-component-skeleton.d.ts +13 -0
- package/types/edsis-angular-component-slider.d.ts +148 -0
- package/types/edsis-angular-component-spinner.d.ts +31 -0
- package/types/edsis-angular-component-switch.d.ts +101 -0
- package/types/edsis-angular-component-table.d.ts +109 -0
- package/types/edsis-angular-component-tabs.d.ts +183 -0
- package/types/edsis-angular-component-textarea.d.ts +27 -0
- package/types/edsis-angular-component-timeline.d.ts +146 -0
- package/types/edsis-angular-component-toast.d.ts +60 -0
- package/types/edsis-angular-component-toggle-group.d.ts +161 -0
- package/types/edsis-angular-component-toggle.d.ts +47 -0
- package/types/edsis-angular-component-tooltip.d.ts +233 -0
- package/types/edsis-angular-component-utils-core.d.ts +175 -0
- package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
- package/types/edsis-angular-component-utils-scale.d.ts +27 -0
- package/types/edsis-angular-component-utils.d.ts +2 -0
- package/types/edsis-angular-component.d.ts +1 -0
- package/types/edsis-angular-navigation-core.d.ts +55 -0
- package/types/edsis-angular-navigation-icon.d.ts +9 -0
- package/types/edsis-angular-navigation-service.d.ts +121 -0
- package/types/edsis-angular-navigation-types.d.ts +185 -0
- package/types/edsis-angular-navigation.d.ts +862 -0
- package/types/edsis-angular-sdk.d.ts +87 -0
- package/types/edsis-angular-theme-component-settings.d.ts +205 -0
- package/types/edsis-angular-theme-layout-services.d.ts +143 -0
- package/types/edsis-angular-theme-layout-types.d.ts +36 -0
- package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
- package/types/edsis-angular-theme-layout.d.ts +218 -0
- package/types/edsis-angular-theme-page-core.d.ts +151 -0
- package/types/edsis-angular-theme-page-filter.d.ts +127 -0
- package/types/edsis-angular-theme-page-overview.d.ts +28 -0
- package/types/edsis-angular-theme-page-root.d.ts +172 -0
- package/types/edsis-angular-theme-page-side.d.ts +90 -0
- package/types/edsis-angular-theme-page-slots.d.ts +61 -0
- package/types/edsis-angular-theme-page.d.ts +7 -0
- package/types/edsis-angular-theme-shell-services.d.ts +188 -0
- package/types/edsis-angular-theme-shell-types.d.ts +102 -0
- package/types/edsis-angular-theme-shell.d.ts +178 -0
- package/types/edsis-angular-theme-styles.d.ts +295 -0
- package/types/edsis-angular-theme.d.ts +1 -0
- package/types/edsis-angular.d.ts +5 -2
- package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
- package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
- package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
- package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
- package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
- package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
- package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
- package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
- package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
- package/fesm2022/edsis-angular.mjs.map +0 -1
- package/types/edsis-angular-block-shell.d.ts +0 -190
- package/types/edsis-angular-block-themes.d.ts +0 -94
- package/types/edsis-angular-module-auth.d.ts +0 -533
- package/types/edsis-angular-platform-mfe.d.ts +0 -126
- package/types/edsis-angular-services-runtime.d.ts +0 -118
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { ChartDatum, ChartMargin, ChartOrientation, ChartPointClickEvent, ChartStyleVariant } from "@edsis/angular/chart/core";
|
|
2
|
+
import { scaleBand, scaleLinear } from "d3-scale";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Bar-chart layout variant. */
|
|
5
|
+
export type BarVariant = 'grouped' | 'stacked';
|
|
6
|
+
/** A single bar rectangle ready to render. */
|
|
7
|
+
export interface BarRect {
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly seriesKey: string;
|
|
10
|
+
readonly datumIndex: number;
|
|
11
|
+
readonly category: string;
|
|
12
|
+
readonly value: number;
|
|
13
|
+
readonly x: number;
|
|
14
|
+
readonly y: number;
|
|
15
|
+
readonly width: number;
|
|
16
|
+
readonly height: number;
|
|
17
|
+
readonly color: string;
|
|
18
|
+
readonly active: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Inputs required to compute bar-chart geometry. */
|
|
21
|
+
export interface BarLayoutInput {
|
|
22
|
+
readonly data: readonly ChartDatum[];
|
|
23
|
+
readonly xKey: string;
|
|
24
|
+
readonly seriesKeys: readonly string[];
|
|
25
|
+
readonly variant: BarVariant;
|
|
26
|
+
readonly orientation: ChartOrientation;
|
|
27
|
+
readonly innerWidth: number;
|
|
28
|
+
readonly innerHeight: number;
|
|
29
|
+
readonly bandPadding: number;
|
|
30
|
+
readonly groupPadding: number;
|
|
31
|
+
readonly colorKey?: string;
|
|
32
|
+
readonly activeKey?: string;
|
|
33
|
+
readonly activeValue?: string | number;
|
|
34
|
+
}
|
|
35
|
+
/** Computed layout: bars + scales. */
|
|
36
|
+
export interface BarLayoutResult {
|
|
37
|
+
readonly bars: readonly BarRect[];
|
|
38
|
+
readonly categoryScale: ReturnType<typeof scaleBand<string>>;
|
|
39
|
+
readonly valueScale: ReturnType<typeof scaleLinear<number, number>>;
|
|
40
|
+
readonly categories: readonly string[];
|
|
41
|
+
}
|
|
42
|
+
/** Build all bar rectangles for the given config. */
|
|
43
|
+
export declare function computeBarLayout(input: BarLayoutInput): BarLayoutResult;
|
|
44
|
+
/**
|
|
45
|
+
* Styles supported by the bar family.
|
|
46
|
+
*
|
|
47
|
+
* - `base` — classic solid rectangles.
|
|
48
|
+
* - `dot` — dot-matrix rendering: each bar becomes a stack of small rounded
|
|
49
|
+
* cells, on top of a faint full-height cell track. Colors only reference
|
|
50
|
+
* theme CSS variables (`--color-<key>` per series, `--muted` for the track),
|
|
51
|
+
* so the style follows the active theme without touching the theme library.
|
|
52
|
+
*/
|
|
53
|
+
export type BarChartStyle = ChartStyleVariant | 'dot';
|
|
54
|
+
/** A faint background cell of the dot-matrix track. */
|
|
55
|
+
export interface BarDotTrackCell {
|
|
56
|
+
readonly key: string;
|
|
57
|
+
readonly x: number;
|
|
58
|
+
readonly y: number;
|
|
59
|
+
readonly width: number;
|
|
60
|
+
readonly height: number;
|
|
61
|
+
}
|
|
62
|
+
/** A filled (value) cell of the dot-matrix style. */
|
|
63
|
+
export interface BarDotValueCell extends BarDotTrackCell {
|
|
64
|
+
readonly seriesKey: string;
|
|
65
|
+
readonly datumIndex: number;
|
|
66
|
+
readonly color: string;
|
|
67
|
+
readonly active: boolean;
|
|
68
|
+
}
|
|
69
|
+
/** Inputs required to compute the dot-matrix cell layout. */
|
|
70
|
+
export interface BarDotLayoutInput {
|
|
71
|
+
readonly bars: readonly BarRect[];
|
|
72
|
+
readonly orientation: ChartOrientation;
|
|
73
|
+
readonly innerWidth: number;
|
|
74
|
+
readonly innerHeight: number;
|
|
75
|
+
/** Pixel position of value 0 on the value axis (`valueScale(0)`). */
|
|
76
|
+
readonly baseline: number;
|
|
77
|
+
/** Cell length along the value axis. Defaults to the bar thickness (square cells). */
|
|
78
|
+
readonly dotSize?: number;
|
|
79
|
+
/** Gap between consecutive cells along the value axis. */
|
|
80
|
+
readonly dotGap: number;
|
|
81
|
+
}
|
|
82
|
+
/** Computed dot-matrix layout: faint track cells + filled value cells. */
|
|
83
|
+
export interface BarDotLayoutResult {
|
|
84
|
+
readonly track: readonly BarDotTrackCell[];
|
|
85
|
+
readonly values: readonly BarDotValueCell[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Build the dot-matrix cells for the `dot` bar style.
|
|
89
|
+
*
|
|
90
|
+
* Cells tile a global grid anchored at the value baseline, so stacked
|
|
91
|
+
* segments snap to the same rows and never overlap. A bar fills every cell
|
|
92
|
+
* whose center lies inside its value range; bars too short to cover a center
|
|
93
|
+
* still claim the cell nearest their midpoint when it is free.
|
|
94
|
+
*/
|
|
95
|
+
export declare function computeBarDotCells(input: BarDotLayoutInput): BarDotLayoutResult;
|
|
96
|
+
/** Event emitted when a user clicks a bar. */
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Use `ChartPointClickEvent` from
|
|
99
|
+
* `@edsis/angular/chart/core`. Kept so existing handlers keep compiling;
|
|
100
|
+
* the shape is identical.
|
|
101
|
+
*/
|
|
102
|
+
export type BarClickEvent = ChartPointClickEvent;
|
|
103
|
+
/**
|
|
104
|
+
* Bar chart — composable within `<Chart>`.
|
|
105
|
+
*
|
|
106
|
+
* Layout variants (via inputs):
|
|
107
|
+
* - `orientation`: `'vertical'` (default) or `'horizontal'`
|
|
108
|
+
* - `variant`: `'grouped'` (default) or `'stacked'`
|
|
109
|
+
* - `styles`: `'base'` (default) or `'dot'` (dot-matrix cells)
|
|
110
|
+
*/
|
|
111
|
+
export declare class BarChart {
|
|
112
|
+
private readonly root;
|
|
113
|
+
private readonly cart;
|
|
114
|
+
private readonly themeRadius;
|
|
115
|
+
readonly data: import("@angular/core").InputSignal<readonly Readonly<Record<string, unknown>>[]>;
|
|
116
|
+
readonly xKey: import("@angular/core").InputSignal<string>;
|
|
117
|
+
readonly orientation: import("@angular/core").InputSignal<ChartOrientation>;
|
|
118
|
+
readonly variant: import("@angular/core").InputSignal<BarVariant>;
|
|
119
|
+
/**
|
|
120
|
+
* Presentational style of the chart.
|
|
121
|
+
*
|
|
122
|
+
* Replaces `styles`, which read like a CSS styles bag rather than a single
|
|
123
|
+
* variant. Named `styleVariant` and not `variant` because `ChartBar` already
|
|
124
|
+
* publishes a `variant` input for its grouped versus stacked axis, and one
|
|
125
|
+
* name cannot mean two things across the family.
|
|
126
|
+
*/
|
|
127
|
+
readonly styleVariant: import("@angular/core").InputSignal<BarChartStyle | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated Use `styleVariant`. Still fully supported; when both are bound,
|
|
130
|
+
* `styleVariant` wins. Due for removal in the next major.
|
|
131
|
+
*/
|
|
132
|
+
readonly styles: import("@angular/core").InputSignal<BarChartStyle>;
|
|
133
|
+
/** The style actually in effect. Bind this, never `styles()`. */
|
|
134
|
+
protected readonly chartStyle: import("@angular/core").Signal<BarChartStyle>;
|
|
135
|
+
private readonly themeSpace;
|
|
136
|
+
/**
|
|
137
|
+
* Plot gutters. Leave it unset and they follow the theme-space density
|
|
138
|
+
* axis; set it and your numbers win, unchanged, whatever the axis says.
|
|
139
|
+
*/
|
|
140
|
+
readonly margin: import("@angular/core").InputSignal<ChartMargin | null>;
|
|
141
|
+
/** The margin actually in effect. Bind this, never `margin()`. */
|
|
142
|
+
protected readonly plotMargin: import("@angular/core").Signal<ChartMargin>;
|
|
143
|
+
readonly bandPadding: import("@angular/core").InputSignal<number>;
|
|
144
|
+
readonly groupPadding: import("@angular/core").InputSignal<number>;
|
|
145
|
+
readonly cornerRadius: import("@angular/core").InputSignal<number | null>;
|
|
146
|
+
readonly colorKey: import("@angular/core").InputSignal<string | undefined>;
|
|
147
|
+
readonly activeKey: import("@angular/core").InputSignal<string | undefined>;
|
|
148
|
+
readonly activeValue: import("@angular/core").InputSignal<string | number | undefined>;
|
|
149
|
+
readonly showValueLabels: import("@angular/core").InputSignal<boolean>;
|
|
150
|
+
readonly valueLabelFormat: import("@angular/core").InputSignal<(value: number) => string>;
|
|
151
|
+
/** Cell length along the value axis for the `dot` style; defaults to the bar thickness. */
|
|
152
|
+
readonly dotSize: import("@angular/core").InputSignal<number | undefined>;
|
|
153
|
+
/** Gap between consecutive cells along the value axis for the `dot` style. */
|
|
154
|
+
readonly dotGap: import("@angular/core").InputSignal<number>;
|
|
155
|
+
/** Corner radius of each `dot` cell. */
|
|
156
|
+
readonly dotCornerRadius: import("@angular/core").InputSignal<number | null>;
|
|
157
|
+
/** Render the faint full-height cell track behind the `dot` values. */
|
|
158
|
+
readonly showDotTrack: import("@angular/core").InputSignal<boolean>;
|
|
159
|
+
readonly barClick: import("@angular/core").OutputEmitterRef<BarClickEvent>;
|
|
160
|
+
/**
|
|
161
|
+
* The shared cartesian scaffolding: geometry, the layout effect, and the click
|
|
162
|
+
* plus active-point plus aria-label handlers. No `viewport` here, so the bar
|
|
163
|
+
* chart always renders its whole dataset and `resolveDatumIndex` is the
|
|
164
|
+
* identity.
|
|
165
|
+
*
|
|
166
|
+
* Declared before `layout` because the layout computed reads its geometry.
|
|
167
|
+
*/
|
|
168
|
+
protected readonly cx: import("@edsis/angular/chart/core").CartesianChartSetup<BarRect>;
|
|
169
|
+
/** Bar corner radius; an unset input follows the live theme-radius axis. */
|
|
170
|
+
protected readonly resolvedCornerRadius: import("@angular/core").Signal<number>;
|
|
171
|
+
/** Dot-cell corner radius; an unset input follows the theme-radius axis (smaller, SVG clamps to half the cell). */
|
|
172
|
+
protected readonly resolvedDotCornerRadius: import("@angular/core").Signal<number>;
|
|
173
|
+
protected readonly layout: import("@angular/core").Signal<import("@edsis/angular/chart/bar").BarLayoutResult>;
|
|
174
|
+
protected readonly bars: import("@angular/core").Signal<readonly BarRect[]>;
|
|
175
|
+
protected readonly dotLayout: import("@angular/core").Signal<BarDotLayoutResult | null>;
|
|
176
|
+
protected readonly dotTrackCells: import("@angular/core").Signal<readonly import("@edsis/angular/chart/bar").BarDotTrackCell[]>;
|
|
177
|
+
protected readonly dotValueCells: import("@angular/core").Signal<readonly BarDotValueCell[]>;
|
|
178
|
+
protected readonly ariaSummary: import("@angular/core").Signal<string>;
|
|
179
|
+
protected readonly visibleSeriesKeys: import("@angular/core").Signal<readonly string[]>;
|
|
180
|
+
protected readonly dataColumns: import("@angular/core").Signal<string[]>;
|
|
181
|
+
protected barOpacity(bar: BarRect): number;
|
|
182
|
+
protected dotCellOpacity(cell: BarDotValueCell): number;
|
|
183
|
+
/** In `dot` style the bar rect stays as an invisible interaction target. */
|
|
184
|
+
protected barFill(bar: BarRect): string;
|
|
185
|
+
private emphasisOpacity;
|
|
186
|
+
protected formatValueLabel(bar: BarRect): string;
|
|
187
|
+
protected barLabelX(bar: BarRect): number;
|
|
188
|
+
protected barLabelY(bar: BarRect): number;
|
|
189
|
+
protected barLabelAnchor(bar: BarRect): 'middle' | 'start' | 'end';
|
|
190
|
+
protected onKeydown(event: KeyboardEvent, index: number): void;
|
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarChart, never>;
|
|
192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChart, "ChartBar", never, {
|
|
193
|
+
"data": {
|
|
194
|
+
"alias": "data";
|
|
195
|
+
"required": true;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
198
|
+
"xKey": {
|
|
199
|
+
"alias": "xKey";
|
|
200
|
+
"required": true;
|
|
201
|
+
"isSignal": true;
|
|
202
|
+
};
|
|
203
|
+
"orientation": {
|
|
204
|
+
"alias": "orientation";
|
|
205
|
+
"required": false;
|
|
206
|
+
"isSignal": true;
|
|
207
|
+
};
|
|
208
|
+
"variant": {
|
|
209
|
+
"alias": "variant";
|
|
210
|
+
"required": false;
|
|
211
|
+
"isSignal": true;
|
|
212
|
+
};
|
|
213
|
+
"styleVariant": {
|
|
214
|
+
"alias": "styleVariant";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
218
|
+
"styles": {
|
|
219
|
+
"alias": "styles";
|
|
220
|
+
"required": false;
|
|
221
|
+
"isSignal": true;
|
|
222
|
+
};
|
|
223
|
+
"margin": {
|
|
224
|
+
"alias": "margin";
|
|
225
|
+
"required": false;
|
|
226
|
+
"isSignal": true;
|
|
227
|
+
};
|
|
228
|
+
"bandPadding": {
|
|
229
|
+
"alias": "bandPadding";
|
|
230
|
+
"required": false;
|
|
231
|
+
"isSignal": true;
|
|
232
|
+
};
|
|
233
|
+
"groupPadding": {
|
|
234
|
+
"alias": "groupPadding";
|
|
235
|
+
"required": false;
|
|
236
|
+
"isSignal": true;
|
|
237
|
+
};
|
|
238
|
+
"cornerRadius": {
|
|
239
|
+
"alias": "cornerRadius";
|
|
240
|
+
"required": false;
|
|
241
|
+
"isSignal": true;
|
|
242
|
+
};
|
|
243
|
+
"colorKey": {
|
|
244
|
+
"alias": "colorKey";
|
|
245
|
+
"required": false;
|
|
246
|
+
"isSignal": true;
|
|
247
|
+
};
|
|
248
|
+
"activeKey": {
|
|
249
|
+
"alias": "activeKey";
|
|
250
|
+
"required": false;
|
|
251
|
+
"isSignal": true;
|
|
252
|
+
};
|
|
253
|
+
"activeValue": {
|
|
254
|
+
"alias": "activeValue";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
258
|
+
"showValueLabels": {
|
|
259
|
+
"alias": "showValueLabels";
|
|
260
|
+
"required": false;
|
|
261
|
+
"isSignal": true;
|
|
262
|
+
};
|
|
263
|
+
"valueLabelFormat": {
|
|
264
|
+
"alias": "valueLabelFormat";
|
|
265
|
+
"required": false;
|
|
266
|
+
"isSignal": true;
|
|
267
|
+
};
|
|
268
|
+
"dotSize": {
|
|
269
|
+
"alias": "dotSize";
|
|
270
|
+
"required": false;
|
|
271
|
+
"isSignal": true;
|
|
272
|
+
};
|
|
273
|
+
"dotGap": {
|
|
274
|
+
"alias": "dotGap";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
278
|
+
"dotCornerRadius": {
|
|
279
|
+
"alias": "dotCornerRadius";
|
|
280
|
+
"required": false;
|
|
281
|
+
"isSignal": true;
|
|
282
|
+
};
|
|
283
|
+
"showDotTrack": {
|
|
284
|
+
"alias": "showDotTrack";
|
|
285
|
+
"required": false;
|
|
286
|
+
"isSignal": true;
|
|
287
|
+
};
|
|
288
|
+
}, {
|
|
289
|
+
"barClick": "barClick";
|
|
290
|
+
}, never, ["svg\\:g[ChartGrid]", "svg\\:g[ChartAxisX]", "svg\\:g[ChartAxisY]", "svg\\:g[ChartCrosshair]", "*", "ChartTooltip", "ChartLegend"], true, never>;
|
|
291
|
+
}
|