@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,542 @@
|
|
|
1
|
+
import { arc } from "d3-shape";
|
|
2
|
+
import { max } from "d3-array";
|
|
3
|
+
import { ChartContext, ChartDataTable, ChartMarkFocus, ChartRovingFocus, ChartThemeRadius, ChartThemeSpace, DEFAULT_POLAR_MARGIN_UNITS, readNumber, resolveChartMargin, resolveChartStyle, seriesColorVar, setupPolarChart } from "@edsis/angular/chart/core";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { Component, computed, inject, input, output } from "@angular/core";
|
|
6
|
+
function computeRadialLayout(input) {
|
|
7
|
+
const { data, nameKey, valueKey, innerWidth, innerHeight, seriesKeys, hiddenSeriesKeys, trackPadding, startAngle, endAngle, cornerRadius } = input;
|
|
8
|
+
const outerRadius = Math.max(0, Math.min(innerWidth, innerHeight) / 2);
|
|
9
|
+
const centerX = innerWidth / 2;
|
|
10
|
+
const centerY = innerHeight / 2;
|
|
11
|
+
const entries = data.map((datum, datumIndex) => ({
|
|
12
|
+
datum,
|
|
13
|
+
datumIndex,
|
|
14
|
+
seriesKey: seriesKeys?.[datumIndex] ?? String(datum[nameKey] ?? datumIndex)
|
|
15
|
+
})).filter((entry) => !hiddenSeriesKeys?.has(entry.seriesKey));
|
|
16
|
+
if (entries.length === 0 || outerRadius === 0) return {
|
|
17
|
+
centerX,
|
|
18
|
+
centerY,
|
|
19
|
+
outerRadius,
|
|
20
|
+
bars: [],
|
|
21
|
+
maxValue: 0
|
|
22
|
+
};
|
|
23
|
+
const maxValue = input.maxValue ?? max(data, (d) => readNumber(d, valueKey)) ?? 1;
|
|
24
|
+
const trackCount = entries.length;
|
|
25
|
+
const safeTrackPadding = trackCount > 1 ? Math.min(Math.max(trackPadding, 0), outerRadius / (trackCount - 1)) : Math.max(trackPadding, 0);
|
|
26
|
+
const trackThickness = Math.max(0, outerRadius - (trackCount - 1) * safeTrackPadding) / trackCount;
|
|
27
|
+
return {
|
|
28
|
+
centerX,
|
|
29
|
+
centerY,
|
|
30
|
+
outerRadius,
|
|
31
|
+
bars: entries.map((entry, i) => {
|
|
32
|
+
const { datum: d, datumIndex, seriesKey: key } = entry;
|
|
33
|
+
const inner = i * (trackThickness + safeTrackPadding);
|
|
34
|
+
const outer = inner + trackThickness;
|
|
35
|
+
const value = readNumber(d, valueKey);
|
|
36
|
+
const pct = maxValue === 0 ? 0 : value / maxValue;
|
|
37
|
+
const sweep = (endAngle - startAngle) * pct;
|
|
38
|
+
const valueEndAngle = startAngle + sweep;
|
|
39
|
+
const arcGen = arc().innerRadius(inner).outerRadius(outer).cornerRadius(cornerRadius);
|
|
40
|
+
return {
|
|
41
|
+
seriesKey: key,
|
|
42
|
+
name: String(d[nameKey] ?? key),
|
|
43
|
+
value,
|
|
44
|
+
datumIndex,
|
|
45
|
+
color: seriesColorVar(key),
|
|
46
|
+
arcPath: arcGen.startAngle(startAngle).endAngle(valueEndAngle)(null) ?? "",
|
|
47
|
+
backgroundPath: arcGen.startAngle(startAngle).endAngle(endAngle)(null) ?? "",
|
|
48
|
+
innerRadius: inner,
|
|
49
|
+
outerRadius: outer,
|
|
50
|
+
endAngle: valueEndAngle
|
|
51
|
+
};
|
|
52
|
+
}),
|
|
53
|
+
maxValue
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const defaultRadialValueFormatter = (value) => `${value}`;
|
|
57
|
+
var RadialChart = class RadialChart {
|
|
58
|
+
root = inject(ChartContext);
|
|
59
|
+
themeRadius = inject(ChartThemeRadius);
|
|
60
|
+
data = input.required(...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
61
|
+
nameKey = input.required(...ngDevMode ? [{ debugName: "nameKey" }] : /* istanbul ignore next */ []);
|
|
62
|
+
valueKey = input.required(...ngDevMode ? [{ debugName: "valueKey" }] : /* istanbul ignore next */ []);
|
|
63
|
+
seriesKeys = input(void 0, ...ngDevMode ? [{ debugName: "seriesKeys" }] : /* istanbul ignore next */ []);
|
|
64
|
+
styleVariant = input(void 0, ...ngDevMode ? [{ debugName: "styleVariant" }] : /* istanbul ignore next */ []);
|
|
65
|
+
styles = input("base", ...ngDevMode ? [{ debugName: "styles" }] : /* istanbul ignore next */ []);
|
|
66
|
+
chartStyle = resolveChartStyle(this.styleVariant, this.styles);
|
|
67
|
+
themeSpace = inject(ChartThemeSpace);
|
|
68
|
+
margin = input(null, ...ngDevMode ? [{ debugName: "margin" }] : /* istanbul ignore next */ []);
|
|
69
|
+
plotMargin = resolveChartMargin(this.margin, DEFAULT_POLAR_MARGIN_UNITS, this.themeSpace);
|
|
70
|
+
trackPadding = input(4, ...ngDevMode ? [{ debugName: "trackPadding" }] : /* istanbul ignore next */ []);
|
|
71
|
+
cornerRadius = input(null, ...ngDevMode ? [{ debugName: "cornerRadius" }] : /* istanbul ignore next */ []);
|
|
72
|
+
startAngle = input(-Math.PI / 2, ...ngDevMode ? [{ debugName: "startAngle" }] : /* istanbul ignore next */ []);
|
|
73
|
+
endAngle = input(3 * Math.PI / 2, ...ngDevMode ? [{ debugName: "endAngle" }] : /* istanbul ignore next */ []);
|
|
74
|
+
maxValue = input(void 0, ...ngDevMode ? [{ debugName: "maxValue" }] : /* istanbul ignore next */ []);
|
|
75
|
+
showTrack = input(true, ...ngDevMode ? [{ debugName: "showTrack" }] : /* istanbul ignore next */ []);
|
|
76
|
+
showValueLabels = input(false, ...ngDevMode ? [{ debugName: "showValueLabels" }] : /* istanbul ignore next */ []);
|
|
77
|
+
valueLabelFormat = input(defaultRadialValueFormatter, ...ngDevMode ? [{ debugName: "valueLabelFormat" }] : /* istanbul ignore next */ []);
|
|
78
|
+
barClick = output();
|
|
79
|
+
resolvedCornerRadius = computed(() => this.cornerRadius() ?? this.themeRadius.px(), ...ngDevMode ? [{ debugName: "resolvedCornerRadius" }] : /* istanbul ignore next */ []);
|
|
80
|
+
polar = setupPolarChart({ margin: () => this.plotMargin() });
|
|
81
|
+
layout = computed(() => computeRadialLayout({
|
|
82
|
+
data: this.data(),
|
|
83
|
+
nameKey: this.nameKey(),
|
|
84
|
+
valueKey: this.valueKey(),
|
|
85
|
+
seriesKeys: this.seriesKeys(),
|
|
86
|
+
hiddenSeriesKeys: this.root.hiddenSeries(),
|
|
87
|
+
innerWidth: this.polar.innerWidth(),
|
|
88
|
+
innerHeight: this.polar.innerHeight(),
|
|
89
|
+
trackPadding: this.trackPadding(),
|
|
90
|
+
startAngle: this.startAngle(),
|
|
91
|
+
endAngle: this.endAngle(),
|
|
92
|
+
cornerRadius: this.resolvedCornerRadius(),
|
|
93
|
+
maxValue: this.maxValue()
|
|
94
|
+
}), ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
95
|
+
ariaSummary = computed(() => `Radial bar chart, ${this.layout().bars.length} tracks.`, ...ngDevMode ? [{ debugName: "ariaSummary" }] : /* istanbul ignore next */ []);
|
|
96
|
+
dataColumns = computed(() => [this.nameKey(), this.valueKey()], ...ngDevMode ? [{ debugName: "dataColumns" }] : /* istanbul ignore next */ []);
|
|
97
|
+
barAriaLabel(b) {
|
|
98
|
+
return `${b.name}: ${b.value}`;
|
|
99
|
+
}
|
|
100
|
+
formatValueLabel(b) {
|
|
101
|
+
return this.valueLabelFormat()(b.value, b.name);
|
|
102
|
+
}
|
|
103
|
+
barLabelX(b) {
|
|
104
|
+
const radius = (b.innerRadius + b.outerRadius) / 2 + 10;
|
|
105
|
+
return Math.sin(b.endAngle) * radius;
|
|
106
|
+
}
|
|
107
|
+
barLabelY(b) {
|
|
108
|
+
const radius = (b.innerRadius + b.outerRadius) / 2 + 10;
|
|
109
|
+
return -Math.cos(b.endAngle) * radius;
|
|
110
|
+
}
|
|
111
|
+
barLabelAnchor(b) {
|
|
112
|
+
return this.barLabelX(b) >= 0 ? "start" : "end";
|
|
113
|
+
}
|
|
114
|
+
emitClick(b) {
|
|
115
|
+
this.barClick.emit({
|
|
116
|
+
seriesKey: b.seriesKey,
|
|
117
|
+
datumIndex: b.datumIndex,
|
|
118
|
+
category: b.name,
|
|
119
|
+
name: b.name,
|
|
120
|
+
value: b.value,
|
|
121
|
+
datum: this.data()[b.datumIndex]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
125
|
+
minVersion: "12.0.0",
|
|
126
|
+
version: "22.2.3",
|
|
127
|
+
ngImport: i0,
|
|
128
|
+
type: RadialChart,
|
|
129
|
+
deps: [],
|
|
130
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
131
|
+
});
|
|
132
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
133
|
+
minVersion: "17.0.0",
|
|
134
|
+
version: "22.2.3",
|
|
135
|
+
type: RadialChart,
|
|
136
|
+
isStandalone: true,
|
|
137
|
+
selector: "ChartRadial",
|
|
138
|
+
inputs: {
|
|
139
|
+
data: {
|
|
140
|
+
classPropertyName: "data",
|
|
141
|
+
publicName: "data",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: true,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
nameKey: {
|
|
147
|
+
classPropertyName: "nameKey",
|
|
148
|
+
publicName: "nameKey",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: true,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
},
|
|
153
|
+
valueKey: {
|
|
154
|
+
classPropertyName: "valueKey",
|
|
155
|
+
publicName: "valueKey",
|
|
156
|
+
isSignal: true,
|
|
157
|
+
isRequired: true,
|
|
158
|
+
transformFunction: null
|
|
159
|
+
},
|
|
160
|
+
seriesKeys: {
|
|
161
|
+
classPropertyName: "seriesKeys",
|
|
162
|
+
publicName: "seriesKeys",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
167
|
+
styleVariant: {
|
|
168
|
+
classPropertyName: "styleVariant",
|
|
169
|
+
publicName: "styleVariant",
|
|
170
|
+
isSignal: true,
|
|
171
|
+
isRequired: false,
|
|
172
|
+
transformFunction: null
|
|
173
|
+
},
|
|
174
|
+
styles: {
|
|
175
|
+
classPropertyName: "styles",
|
|
176
|
+
publicName: "styles",
|
|
177
|
+
isSignal: true,
|
|
178
|
+
isRequired: false,
|
|
179
|
+
transformFunction: null
|
|
180
|
+
},
|
|
181
|
+
margin: {
|
|
182
|
+
classPropertyName: "margin",
|
|
183
|
+
publicName: "margin",
|
|
184
|
+
isSignal: true,
|
|
185
|
+
isRequired: false,
|
|
186
|
+
transformFunction: null
|
|
187
|
+
},
|
|
188
|
+
trackPadding: {
|
|
189
|
+
classPropertyName: "trackPadding",
|
|
190
|
+
publicName: "trackPadding",
|
|
191
|
+
isSignal: true,
|
|
192
|
+
isRequired: false,
|
|
193
|
+
transformFunction: null
|
|
194
|
+
},
|
|
195
|
+
cornerRadius: {
|
|
196
|
+
classPropertyName: "cornerRadius",
|
|
197
|
+
publicName: "cornerRadius",
|
|
198
|
+
isSignal: true,
|
|
199
|
+
isRequired: false,
|
|
200
|
+
transformFunction: null
|
|
201
|
+
},
|
|
202
|
+
startAngle: {
|
|
203
|
+
classPropertyName: "startAngle",
|
|
204
|
+
publicName: "startAngle",
|
|
205
|
+
isSignal: true,
|
|
206
|
+
isRequired: false,
|
|
207
|
+
transformFunction: null
|
|
208
|
+
},
|
|
209
|
+
endAngle: {
|
|
210
|
+
classPropertyName: "endAngle",
|
|
211
|
+
publicName: "endAngle",
|
|
212
|
+
isSignal: true,
|
|
213
|
+
isRequired: false,
|
|
214
|
+
transformFunction: null
|
|
215
|
+
},
|
|
216
|
+
maxValue: {
|
|
217
|
+
classPropertyName: "maxValue",
|
|
218
|
+
publicName: "maxValue",
|
|
219
|
+
isSignal: true,
|
|
220
|
+
isRequired: false,
|
|
221
|
+
transformFunction: null
|
|
222
|
+
},
|
|
223
|
+
showTrack: {
|
|
224
|
+
classPropertyName: "showTrack",
|
|
225
|
+
publicName: "showTrack",
|
|
226
|
+
isSignal: true,
|
|
227
|
+
isRequired: false,
|
|
228
|
+
transformFunction: null
|
|
229
|
+
},
|
|
230
|
+
showValueLabels: {
|
|
231
|
+
classPropertyName: "showValueLabels",
|
|
232
|
+
publicName: "showValueLabels",
|
|
233
|
+
isSignal: true,
|
|
234
|
+
isRequired: false,
|
|
235
|
+
transformFunction: null
|
|
236
|
+
},
|
|
237
|
+
valueLabelFormat: {
|
|
238
|
+
classPropertyName: "valueLabelFormat",
|
|
239
|
+
publicName: "valueLabelFormat",
|
|
240
|
+
isSignal: true,
|
|
241
|
+
isRequired: false,
|
|
242
|
+
transformFunction: null
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
outputs: { barClick: "barClick" },
|
|
246
|
+
host: {
|
|
247
|
+
properties: { "attr.data-style": "chartStyle()" },
|
|
248
|
+
classAttribute: "relative block h-full w-full"
|
|
249
|
+
},
|
|
250
|
+
ngImport: i0,
|
|
251
|
+
template: `
|
|
252
|
+
<svg:svg
|
|
253
|
+
ChartRovingFocus
|
|
254
|
+
class="block h-full w-full overflow-visible"
|
|
255
|
+
[attr.viewBox]="polar.viewBox()"
|
|
256
|
+
preserveAspectRatio="xMidYMid meet"
|
|
257
|
+
role="img"
|
|
258
|
+
[attr.aria-label]="ariaSummary()"
|
|
259
|
+
>
|
|
260
|
+
<svg:g [attr.transform]="polar.innerTransform()">
|
|
261
|
+
<svg:g [attr.transform]="'translate(' + layout().centerX + ',' + layout().centerY + ')'">
|
|
262
|
+
@for (b of layout().bars; track b.seriesKey) {
|
|
263
|
+
@if (showTrack()) {
|
|
264
|
+
<svg:path class="chart-radial-track fill-muted" [attr.d]="b.backgroundPath" />
|
|
265
|
+
}
|
|
266
|
+
<svg:path
|
|
267
|
+
ChartMarkFocus
|
|
268
|
+
class="chart-radial-bar cursor-pointer transition-opacity hover:opacity-80"
|
|
269
|
+
[attr.d]="b.arcPath"
|
|
270
|
+
[attr.fill]="b.color"
|
|
271
|
+
[attr.aria-label]="barAriaLabel(b)"
|
|
272
|
+
role="img"
|
|
273
|
+
tabindex="0"
|
|
274
|
+
(click)="emitClick(b)"
|
|
275
|
+
(keydown.enter)="emitClick(b)"
|
|
276
|
+
(keydown.space)="emitClick(b); $event.preventDefault()"
|
|
277
|
+
(pointerenter)="polar.setActivePoint($event, b)"
|
|
278
|
+
(pointermove)="polar.setActivePoint($event, b)"
|
|
279
|
+
(pointerleave)="polar.clearActivePoint()"
|
|
280
|
+
(focus)="polar.setActivePoint($event, b)"
|
|
281
|
+
(blur)="polar.clearActivePoint()"
|
|
282
|
+
/>
|
|
283
|
+
@if (showValueLabels()) {
|
|
284
|
+
<svg:text
|
|
285
|
+
class="chart-radial-value pointer-events-none fill-muted-foreground text-2xs-plus"
|
|
286
|
+
[attr.x]="barLabelX(b)"
|
|
287
|
+
[attr.y]="barLabelY(b)"
|
|
288
|
+
[attr.text-anchor]="barLabelAnchor(b)"
|
|
289
|
+
dominant-baseline="middle"
|
|
290
|
+
>
|
|
291
|
+
{{ formatValueLabel(b) }}
|
|
292
|
+
</svg:text>
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
</svg:g>
|
|
296
|
+
</svg:g>
|
|
297
|
+
</svg:svg>
|
|
298
|
+
<div class="pointer-events-none absolute inset-0 flex items-center justify-center">
|
|
299
|
+
<ng-content select="ChartRadialCenter" />
|
|
300
|
+
</div>
|
|
301
|
+
<ng-content select="ChartTooltip" />
|
|
302
|
+
<ng-content select="ChartLegend" />
|
|
303
|
+
<ChartDataTable
|
|
304
|
+
[data]="data()"
|
|
305
|
+
[columns]="dataColumns()"
|
|
306
|
+
[rowHeaderKey]="nameKey()"
|
|
307
|
+
[label]="ariaSummary()"
|
|
308
|
+
/>
|
|
309
|
+
`,
|
|
310
|
+
isInline: true,
|
|
311
|
+
dependencies: [
|
|
312
|
+
{
|
|
313
|
+
kind: "directive",
|
|
314
|
+
type: ChartRovingFocus,
|
|
315
|
+
selector: "svg[ChartRovingFocus]"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
kind: "directive",
|
|
319
|
+
type: ChartMarkFocus,
|
|
320
|
+
selector: "[ChartMarkFocus]"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
kind: "component",
|
|
324
|
+
type: ChartDataTable,
|
|
325
|
+
selector: "ChartDataTable",
|
|
326
|
+
inputs: [
|
|
327
|
+
"data",
|
|
328
|
+
"columns",
|
|
329
|
+
"label",
|
|
330
|
+
"rowHeaderKey"
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
337
|
+
minVersion: "12.0.0",
|
|
338
|
+
version: "22.2.3",
|
|
339
|
+
ngImport: i0,
|
|
340
|
+
type: RadialChart,
|
|
341
|
+
decorators: [{
|
|
342
|
+
type: Component,
|
|
343
|
+
args: [{
|
|
344
|
+
selector: "ChartRadial",
|
|
345
|
+
imports: [
|
|
346
|
+
ChartRovingFocus,
|
|
347
|
+
ChartMarkFocus,
|
|
348
|
+
ChartDataTable
|
|
349
|
+
],
|
|
350
|
+
host: {
|
|
351
|
+
class: "relative block h-full w-full",
|
|
352
|
+
"[attr.data-style]": "chartStyle()"
|
|
353
|
+
},
|
|
354
|
+
template: `
|
|
355
|
+
<svg:svg
|
|
356
|
+
ChartRovingFocus
|
|
357
|
+
class="block h-full w-full overflow-visible"
|
|
358
|
+
[attr.viewBox]="polar.viewBox()"
|
|
359
|
+
preserveAspectRatio="xMidYMid meet"
|
|
360
|
+
role="img"
|
|
361
|
+
[attr.aria-label]="ariaSummary()"
|
|
362
|
+
>
|
|
363
|
+
<svg:g [attr.transform]="polar.innerTransform()">
|
|
364
|
+
<svg:g [attr.transform]="'translate(' + layout().centerX + ',' + layout().centerY + ')'">
|
|
365
|
+
@for (b of layout().bars; track b.seriesKey) {
|
|
366
|
+
@if (showTrack()) {
|
|
367
|
+
<svg:path class="chart-radial-track fill-muted" [attr.d]="b.backgroundPath" />
|
|
368
|
+
}
|
|
369
|
+
<svg:path
|
|
370
|
+
ChartMarkFocus
|
|
371
|
+
class="chart-radial-bar cursor-pointer transition-opacity hover:opacity-80"
|
|
372
|
+
[attr.d]="b.arcPath"
|
|
373
|
+
[attr.fill]="b.color"
|
|
374
|
+
[attr.aria-label]="barAriaLabel(b)"
|
|
375
|
+
role="img"
|
|
376
|
+
tabindex="0"
|
|
377
|
+
(click)="emitClick(b)"
|
|
378
|
+
(keydown.enter)="emitClick(b)"
|
|
379
|
+
(keydown.space)="emitClick(b); $event.preventDefault()"
|
|
380
|
+
(pointerenter)="polar.setActivePoint($event, b)"
|
|
381
|
+
(pointermove)="polar.setActivePoint($event, b)"
|
|
382
|
+
(pointerleave)="polar.clearActivePoint()"
|
|
383
|
+
(focus)="polar.setActivePoint($event, b)"
|
|
384
|
+
(blur)="polar.clearActivePoint()"
|
|
385
|
+
/>
|
|
386
|
+
@if (showValueLabels()) {
|
|
387
|
+
<svg:text
|
|
388
|
+
class="chart-radial-value pointer-events-none fill-muted-foreground text-2xs-plus"
|
|
389
|
+
[attr.x]="barLabelX(b)"
|
|
390
|
+
[attr.y]="barLabelY(b)"
|
|
391
|
+
[attr.text-anchor]="barLabelAnchor(b)"
|
|
392
|
+
dominant-baseline="middle"
|
|
393
|
+
>
|
|
394
|
+
{{ formatValueLabel(b) }}
|
|
395
|
+
</svg:text>
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
</svg:g>
|
|
399
|
+
</svg:g>
|
|
400
|
+
</svg:svg>
|
|
401
|
+
<div class="pointer-events-none absolute inset-0 flex items-center justify-center">
|
|
402
|
+
<ng-content select="ChartRadialCenter" />
|
|
403
|
+
</div>
|
|
404
|
+
<ng-content select="ChartTooltip" />
|
|
405
|
+
<ng-content select="ChartLegend" />
|
|
406
|
+
<ChartDataTable
|
|
407
|
+
[data]="data()"
|
|
408
|
+
[columns]="dataColumns()"
|
|
409
|
+
[rowHeaderKey]="nameKey()"
|
|
410
|
+
[label]="ariaSummary()"
|
|
411
|
+
/>
|
|
412
|
+
`
|
|
413
|
+
}]
|
|
414
|
+
}],
|
|
415
|
+
propDecorators: {
|
|
416
|
+
data: [{
|
|
417
|
+
type: i0.Input,
|
|
418
|
+
args: [{
|
|
419
|
+
isSignal: true,
|
|
420
|
+
alias: "data",
|
|
421
|
+
required: true
|
|
422
|
+
}]
|
|
423
|
+
}],
|
|
424
|
+
nameKey: [{
|
|
425
|
+
type: i0.Input,
|
|
426
|
+
args: [{
|
|
427
|
+
isSignal: true,
|
|
428
|
+
alias: "nameKey",
|
|
429
|
+
required: true
|
|
430
|
+
}]
|
|
431
|
+
}],
|
|
432
|
+
valueKey: [{
|
|
433
|
+
type: i0.Input,
|
|
434
|
+
args: [{
|
|
435
|
+
isSignal: true,
|
|
436
|
+
alias: "valueKey",
|
|
437
|
+
required: true
|
|
438
|
+
}]
|
|
439
|
+
}],
|
|
440
|
+
seriesKeys: [{
|
|
441
|
+
type: i0.Input,
|
|
442
|
+
args: [{
|
|
443
|
+
isSignal: true,
|
|
444
|
+
alias: "seriesKeys",
|
|
445
|
+
required: false
|
|
446
|
+
}]
|
|
447
|
+
}],
|
|
448
|
+
styleVariant: [{
|
|
449
|
+
type: i0.Input,
|
|
450
|
+
args: [{
|
|
451
|
+
isSignal: true,
|
|
452
|
+
alias: "styleVariant",
|
|
453
|
+
required: false
|
|
454
|
+
}]
|
|
455
|
+
}],
|
|
456
|
+
styles: [{
|
|
457
|
+
type: i0.Input,
|
|
458
|
+
args: [{
|
|
459
|
+
isSignal: true,
|
|
460
|
+
alias: "styles",
|
|
461
|
+
required: false
|
|
462
|
+
}]
|
|
463
|
+
}],
|
|
464
|
+
margin: [{
|
|
465
|
+
type: i0.Input,
|
|
466
|
+
args: [{
|
|
467
|
+
isSignal: true,
|
|
468
|
+
alias: "margin",
|
|
469
|
+
required: false
|
|
470
|
+
}]
|
|
471
|
+
}],
|
|
472
|
+
trackPadding: [{
|
|
473
|
+
type: i0.Input,
|
|
474
|
+
args: [{
|
|
475
|
+
isSignal: true,
|
|
476
|
+
alias: "trackPadding",
|
|
477
|
+
required: false
|
|
478
|
+
}]
|
|
479
|
+
}],
|
|
480
|
+
cornerRadius: [{
|
|
481
|
+
type: i0.Input,
|
|
482
|
+
args: [{
|
|
483
|
+
isSignal: true,
|
|
484
|
+
alias: "cornerRadius",
|
|
485
|
+
required: false
|
|
486
|
+
}]
|
|
487
|
+
}],
|
|
488
|
+
startAngle: [{
|
|
489
|
+
type: i0.Input,
|
|
490
|
+
args: [{
|
|
491
|
+
isSignal: true,
|
|
492
|
+
alias: "startAngle",
|
|
493
|
+
required: false
|
|
494
|
+
}]
|
|
495
|
+
}],
|
|
496
|
+
endAngle: [{
|
|
497
|
+
type: i0.Input,
|
|
498
|
+
args: [{
|
|
499
|
+
isSignal: true,
|
|
500
|
+
alias: "endAngle",
|
|
501
|
+
required: false
|
|
502
|
+
}]
|
|
503
|
+
}],
|
|
504
|
+
maxValue: [{
|
|
505
|
+
type: i0.Input,
|
|
506
|
+
args: [{
|
|
507
|
+
isSignal: true,
|
|
508
|
+
alias: "maxValue",
|
|
509
|
+
required: false
|
|
510
|
+
}]
|
|
511
|
+
}],
|
|
512
|
+
showTrack: [{
|
|
513
|
+
type: i0.Input,
|
|
514
|
+
args: [{
|
|
515
|
+
isSignal: true,
|
|
516
|
+
alias: "showTrack",
|
|
517
|
+
required: false
|
|
518
|
+
}]
|
|
519
|
+
}],
|
|
520
|
+
showValueLabels: [{
|
|
521
|
+
type: i0.Input,
|
|
522
|
+
args: [{
|
|
523
|
+
isSignal: true,
|
|
524
|
+
alias: "showValueLabels",
|
|
525
|
+
required: false
|
|
526
|
+
}]
|
|
527
|
+
}],
|
|
528
|
+
valueLabelFormat: [{
|
|
529
|
+
type: i0.Input,
|
|
530
|
+
args: [{
|
|
531
|
+
isSignal: true,
|
|
532
|
+
alias: "valueLabelFormat",
|
|
533
|
+
required: false
|
|
534
|
+
}]
|
|
535
|
+
}],
|
|
536
|
+
barClick: [{
|
|
537
|
+
type: i0.Output,
|
|
538
|
+
args: ["barClick"]
|
|
539
|
+
}]
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
export { RadialChart, computeRadialLayout };
|