ngwr 15.0.1 → 15.2.0
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/anchor/styles/_index.scss +13 -2
- package/bits/aurora/styles/_rules.scss +11 -0
- package/bits/dot-grid/dot-grid.scss +1 -0
- package/bits/dot-grid/styles/_index.scss +8 -0
- package/bits/dot-grid/styles/_rules.scss +54 -0
- package/bits/iridescence/iridescence.scss +1 -0
- package/bits/iridescence/styles/_index.scss +8 -0
- package/bits/iridescence/styles/_rules.scss +72 -0
- package/bits/marquee/styles/_rules.scss +7 -3
- package/bits/ripple-grid/ripple-grid.scss +1 -0
- package/bits/ripple-grid/styles/_index.scss +8 -0
- package/bits/ripple-grid/styles/_rules.scss +63 -0
- package/bits/spotlight-card/styles/_rules.scss +7 -4
- package/bits/star-border/styles/_rules.scss +5 -2
- package/bits/threads/styles/_index.scss +8 -0
- package/bits/threads/styles/_rules.scss +76 -0
- package/bits/threads/threads.scss +1 -0
- package/bits/waves/styles/_rules.scss +8 -1
- package/charts/bar-chart/styles/_index.scss +607 -7
- package/charts/boxplot-chart/styles/_index.scss +297 -0
- package/charts/bullet-chart/styles/_index.scss +268 -0
- package/charts/calendar-heatmap/styles/_index.scss +25 -3
- package/charts/candlestick-chart/styles/_index.scss +307 -0
- package/charts/chart-legend/styles/_index.scss +143 -0
- package/charts/core/styles/_index.scss +30 -0
- package/charts/donut-chart/styles/_index.scss +39 -3
- package/charts/funnel-chart/styles/_index.scss +237 -0
- package/charts/gauge/styles/_index.scss +4 -2
- package/charts/heatmap-chart/styles/_index.scss +329 -0
- package/charts/line-chart/styles/_index.scss +141 -8
- package/charts/meter-group/styles/_index.scss +44 -13
- package/charts/radar-chart/styles/_index.scss +206 -0
- package/charts/scatter-chart/styles/_index.scss +245 -0
- package/charts/sparkline/styles/_index.scss +10 -1
- package/charts/treemap-chart/styles/_index.scss +215 -0
- package/charts/waterfall-chart/styles/_index.scss +321 -0
- package/collapse/styles/_index.scss +6 -1
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-bits-aurora.mjs +30 -38
- package/fesm2022/ngwr-bits-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-bits-blur-text.mjs +3 -3
- package/fesm2022/ngwr-bits-border-glow-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-border-glow.mjs +11 -5
- package/fesm2022/ngwr-bits-border-glow.mjs.map +1 -1
- package/fesm2022/ngwr-bits-circular-text.mjs +3 -3
- package/fesm2022/ngwr-bits-click-spark.mjs +3 -3
- package/fesm2022/ngwr-bits-confetti.mjs +3 -3
- package/fesm2022/ngwr-bits-decrypt-text.mjs +3 -3
- package/fesm2022/ngwr-bits-dot-grid-testing.mjs +40 -0
- package/fesm2022/ngwr-bits-dot-grid-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-dot-grid.mjs +482 -0
- package/fesm2022/ngwr-bits-dot-grid.mjs.map +1 -0
- package/fesm2022/ngwr-bits-falling-text.mjs +3 -3
- package/fesm2022/ngwr-bits-fuzzy-text.mjs +3 -3
- package/fesm2022/ngwr-bits-glitch-text.mjs +3 -3
- package/fesm2022/ngwr-bits-gradient-text.mjs +3 -3
- package/fesm2022/ngwr-bits-iridescence-testing.mjs +31 -0
- package/fesm2022/ngwr-bits-iridescence-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-iridescence.mjs +591 -0
- package/fesm2022/ngwr-bits-iridescence.mjs.map +1 -0
- package/fesm2022/ngwr-bits-marquee-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-marquee-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-marquee.mjs +7 -7
- package/fesm2022/ngwr-bits-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-bits-ripple-grid-testing.mjs +40 -0
- package/fesm2022/ngwr-bits-ripple-grid-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-ripple-grid.mjs +805 -0
- package/fesm2022/ngwr-bits-ripple-grid.mjs.map +1 -0
- package/fesm2022/ngwr-bits-rotating-text.mjs +3 -3
- package/fesm2022/ngwr-bits-shiny-text.mjs +6 -6
- package/fesm2022/ngwr-bits-splash-cursor.mjs +3 -3
- package/fesm2022/ngwr-bits-split-text.mjs +3 -3
- package/fesm2022/ngwr-bits-spotlight-card-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-spotlight-card-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-spotlight-card.mjs +10 -10
- package/fesm2022/ngwr-bits-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-bits-star-border-testing.mjs +1 -1
- package/fesm2022/ngwr-bits-star-border-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-star-border.mjs +7 -7
- package/fesm2022/ngwr-bits-star-border.mjs.map +1 -1
- package/fesm2022/ngwr-bits-threads-testing.mjs +41 -0
- package/fesm2022/ngwr-bits-threads-testing.mjs.map +1 -0
- package/fesm2022/ngwr-bits-threads.mjs +482 -0
- package/fesm2022/ngwr-bits-threads.mjs.map +1 -0
- package/fesm2022/ngwr-bits-tilt-card.mjs +6 -6
- package/fesm2022/ngwr-bits-typewriter.mjs +3 -3
- package/fesm2022/ngwr-bits-waves-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bits-waves.mjs +60 -41
- package/fesm2022/ngwr-bits-waves.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +5 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +127 -3
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +683 -49
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +161 -0
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +517 -0
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-bullet-chart-testing.mjs +68 -0
- package/fesm2022/ngwr-charts-bullet-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-bullet-chart.mjs +459 -0
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs +27 -0
- package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +96 -17
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +107 -0
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +508 -0
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-chart-legend-testing.mjs +126 -0
- package/fesm2022/ngwr-charts-chart-legend-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-chart-legend.mjs +251 -0
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -0
- package/fesm2022/ngwr-charts-core.mjs +383 -0
- package/fesm2022/ngwr-charts-core.mjs.map +1 -0
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs +10 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +187 -31
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +100 -0
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-funnel-chart.mjs +415 -0
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-gauge-testing.mjs +9 -3
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +9 -15
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs +120 -0
- package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +519 -0
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +43 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +436 -122
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +14 -2
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +101 -32
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +98 -0
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-radar-chart.mjs +720 -0
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +132 -0
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-scatter-chart.mjs +545 -0
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +14 -16
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart-testing.mjs +103 -0
- package/fesm2022/ngwr-charts-treemap-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-treemap-chart.mjs +535 -0
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -0
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +131 -0
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -0
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +462 -0
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -0
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +6 -6
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker.mjs +21 -21
- package/fesm2022/ngwr-date.mjs +6 -6
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +15 -15
- package/fesm2022/ngwr-directives.mjs +12 -12
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown.mjs +9 -9
- package/fesm2022/ngwr-editor.mjs +3 -3
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +6 -6
- package/fesm2022/ngwr-file-upload.mjs +3 -3
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-graph.mjs +6 -6
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +90 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +90 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +90 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +90 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +90 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +90 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +90 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +90 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +90 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +90 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +90 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +90 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +90 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +90 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +90 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +90 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +90 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +90 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +90 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +90 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +90 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +90 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number.mjs +3 -3
- package/fesm2022/ngwr-input-otp.mjs +3 -3
- package/fesm2022/ngwr-input.mjs +15 -15
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +5 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +6 -6
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +3 -3
- package/fesm2022/ngwr-pipes.mjs +21 -21
- package/fesm2022/ngwr-platform.mjs +6 -6
- package/fesm2022/ngwr-popconfirm.mjs +6 -6
- package/fesm2022/ngwr-popover.mjs +43 -20
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +3 -3
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +4 -3
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +3 -3
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select.mjs +12 -12
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +11 -11
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table.mjs +18 -18
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs.mjs +6 -6
- package/fesm2022/ngwr-textarea.mjs +3 -3
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast-testing.mjs +2 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +34 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer.mjs +3 -3
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +31 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window-testing.mjs +61 -5
- package/fesm2022/ngwr-window-testing.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +1538 -895
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +84 -4
- package/i18n/cs.json +84 -4
- package/i18n/de.json +84 -4
- package/i18n/en.json +84 -4
- package/i18n/es.json +84 -4
- package/i18n/fr.json +84 -4
- package/i18n/he.json +84 -4
- package/i18n/hi.json +84 -4
- package/i18n/id.json +84 -4
- package/i18n/it.json +84 -4
- package/i18n/ja.json +84 -4
- package/i18n/ko.json +84 -4
- package/i18n/nl.json +84 -4
- package/i18n/pl.json +84 -4
- package/i18n/pt.json +84 -4
- package/i18n/ru.json +84 -4
- package/i18n/sv.json +84 -4
- package/i18n/tr.json +84 -4
- package/i18n/uk.json +84 -4
- package/i18n/vi.json +84 -4
- package/i18n/zh-TW.json +84 -4
- package/i18n/zh.json +84 -4
- package/llms-full.txt +266 -9
- package/llms.txt +30 -7
- package/mcp/api.js +69 -1
- package/mcp/catalog.js +10 -1
- package/mcp/server.js +15 -1
- package/mcp/tools.js +122 -26
- package/package.json +132 -1
- package/popover/styles/_index.scss +75 -7
- package/schematics/component-style/index.js +3 -0
- package/schematics/migrations/v15/index.js +3 -26
- package/schematics/ng-add/index.js +2 -2
- package/schematics/use/symbol-map.json +14 -0
- package/schematics/utility/global-styles.js +19 -4
- package/schematics/utility/v15-moves.js +55 -0
- package/skills/ngwr/SKILL.md +8 -2
- package/skills/ngwr/references/catalog.md +28 -0
- package/skills/ngwr/references/setup.md +5 -4
- package/theme/styles/_focus.scss +8 -0
- package/toast/styles/_index.scss +103 -12
- package/types/ngwr-bits-aurora.d.ts +11 -0
- package/types/ngwr-bits-border-glow-testing.d.ts +5 -6
- package/types/ngwr-bits-border-glow.d.ts +5 -1
- package/types/ngwr-bits-dot-grid-testing.d.ts +92 -0
- package/types/ngwr-bits-dot-grid.d.ts +158 -0
- package/types/ngwr-bits-iridescence-testing.d.ts +85 -0
- package/types/ngwr-bits-iridescence.d.ts +244 -0
- package/types/ngwr-bits-ripple-grid-testing.d.ts +96 -0
- package/types/ngwr-bits-ripple-grid.d.ts +294 -0
- package/types/ngwr-bits-splash-cursor.d.ts +0 -1
- package/types/ngwr-bits-spotlight-card-testing.d.ts +3 -1
- package/types/ngwr-bits-star-border-testing.d.ts +7 -7
- package/types/ngwr-bits-threads-testing.d.ts +97 -0
- package/types/ngwr-bits-threads.d.ts +216 -0
- package/types/ngwr-bits-waves-testing.d.ts +1 -1
- package/types/ngwr-bits-waves.d.ts +20 -3
- package/types/ngwr-charts-bar-chart-testing.d.ts +193 -14
- package/types/ngwr-charts-bar-chart.d.ts +546 -38
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +165 -0
- package/types/ngwr-charts-boxplot-chart.d.ts +308 -0
- package/types/ngwr-charts-bullet-chart-testing.d.ts +99 -0
- package/types/ngwr-charts-bullet-chart.d.ts +262 -0
- package/types/ngwr-charts-calendar-heatmap-testing.d.ts +32 -1
- package/types/ngwr-charts-calendar-heatmap.d.ts +55 -6
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +135 -0
- package/types/ngwr-charts-candlestick-chart.d.ts +361 -0
- package/types/ngwr-charts-chart-legend-testing.d.ts +84 -0
- package/types/ngwr-charts-chart-legend.d.ts +178 -0
- package/types/ngwr-charts-core.d.ts +391 -0
- package/types/ngwr-charts-donut-chart-testing.d.ts +28 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -12
- package/types/ngwr-charts-funnel-chart-testing.d.ts +130 -0
- package/types/ngwr-charts-funnel-chart.d.ts +296 -0
- package/types/ngwr-charts-gauge-testing.d.ts +5 -0
- package/types/ngwr-charts-gauge.d.ts +6 -4
- package/types/ngwr-charts-heatmap-chart-testing.d.ts +148 -0
- package/types/ngwr-charts-heatmap-chart.d.ts +359 -0
- package/types/ngwr-charts-line-chart-testing.d.ts +72 -11
- package/types/ngwr-charts-line-chart.d.ts +291 -67
- package/types/ngwr-charts-meter-group-testing.d.ts +16 -2
- package/types/ngwr-charts-meter-group.d.ts +71 -11
- package/types/ngwr-charts-radar-chart-testing.d.ts +162 -0
- package/types/ngwr-charts-radar-chart.d.ts +461 -0
- package/types/ngwr-charts-scatter-chart-testing.d.ts +147 -0
- package/types/ngwr-charts-scatter-chart.d.ts +396 -0
- package/types/ngwr-charts-sparkline-testing.d.ts +4 -1
- package/types/ngwr-charts-sparkline.d.ts +8 -6
- package/types/ngwr-charts-treemap-chart-testing.d.ts +131 -0
- package/types/ngwr-charts-treemap-chart.d.ts +295 -0
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +149 -0
- package/types/ngwr-charts-waterfall-chart.d.ts +338 -0
- package/types/ngwr-color-picker.d.ts +0 -21
- package/types/ngwr-dropdown.d.ts +0 -52
- package/types/ngwr-editor.d.ts +2 -84
- package/types/ngwr-i18n.d.ts +0 -15
- package/types/ngwr-mention.d.ts +0 -13
- package/types/ngwr-popconfirm.d.ts +0 -33
- package/types/ngwr-popover.d.ts +29 -53
- package/types/ngwr-toast-testing.d.ts +6 -1
- package/types/ngwr-tour.d.ts +0 -2
- package/types/ngwr-utils.d.ts +49 -7
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window-testing.d.ts +65 -7
- package/types/ngwr-window.d.ts +831 -207
- package/types/ngwr.d.ts +1 -0
- package/window/styles/_index.scss +528 -82
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, computed, effect, inject, input, isDevMode, model, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
|
+
import { useI18nText } from "ngwr/i18n";
|
|
5
|
+
import { clamp, round } from "ngwr/utils";
|
|
6
|
+
import { WrChartLegend } from "ngwr/charts/chart-legend";
|
|
7
|
+
import { WrChartTable, chartAxis, chartColor, chartDash, useChartNumbers } from "ngwr/charts/core";
|
|
8
|
+
import { useChartTooltip } from "ngwr/popover";
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
13
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
14
|
+
*/
|
|
15
|
+
const CENTRE = 50;
|
|
16
|
+
const RADIUS = 50;
|
|
17
|
+
const REACH = 1.1;
|
|
18
|
+
const LABEL_LINE = 16;
|
|
19
|
+
const LADDER = [
|
|
20
|
+
1,
|
|
21
|
+
2,
|
|
22
|
+
2.5,
|
|
23
|
+
5
|
|
24
|
+
];
|
|
25
|
+
function fixedStep(max, rings) {
|
|
26
|
+
let best = max / rings;
|
|
27
|
+
let distance = Number.POSITIVE_INFINITY;
|
|
28
|
+
const top = Math.floor(Math.log10(max));
|
|
29
|
+
for (let e = top - 2; e <= top + 1; e++) for (const mantissa of LADDER) {
|
|
30
|
+
const step = e >= 0 ? mantissa * 10 ** e : mantissa / 10 ** -e;
|
|
31
|
+
const count = Math.round(max / step);
|
|
32
|
+
if (count < 1 || count > 10 || Math.abs(count * step - max) > max * 1e-9) continue;
|
|
33
|
+
const off = Math.abs(count - rings);
|
|
34
|
+
if (off > distance) continue;
|
|
35
|
+
best = step;
|
|
36
|
+
distance = off;
|
|
37
|
+
}
|
|
38
|
+
return best;
|
|
39
|
+
}
|
|
40
|
+
const fixed = (value) => value.toFixed(2);
|
|
41
|
+
const short = (value) => Math.round(value * 1e4) / 1e4 || 0;
|
|
42
|
+
const at = (point) => `${fixed(point.x)} ${fixed(point.y)}`;
|
|
43
|
+
const along = (axis, r) => ({
|
|
44
|
+
x: CENTRE + r * axis.cos,
|
|
45
|
+
y: CENTRE + r * axis.sin
|
|
46
|
+
});
|
|
47
|
+
const toward = (angle, r) => ({
|
|
48
|
+
x: CENTRE + r * Math.cos(angle),
|
|
49
|
+
y: CENTRE + r * Math.sin(angle)
|
|
50
|
+
});
|
|
51
|
+
function silhouette(axes, half, radii) {
|
|
52
|
+
const commands = [];
|
|
53
|
+
let last = "";
|
|
54
|
+
const to = (point) => {
|
|
55
|
+
const next = at(point);
|
|
56
|
+
if (next !== last) commands.push(`${commands.length === 0 ? "M" : "L"} ${next}`);
|
|
57
|
+
last = next;
|
|
58
|
+
};
|
|
59
|
+
radii.forEach((radius, a) => {
|
|
60
|
+
const r = radius ?? 0;
|
|
61
|
+
to(toward(axes[a].angle - half, r));
|
|
62
|
+
if (r <= 0) return;
|
|
63
|
+
last = at(toward(axes[a].angle + half, r));
|
|
64
|
+
commands.push(`A ${fixed(r)} ${fixed(r)} 0 0 1 ${last}`);
|
|
65
|
+
});
|
|
66
|
+
return `${commands.join(" ")} Z`;
|
|
67
|
+
}
|
|
68
|
+
const circle = (r) => `M ${fixed(CENTRE - r)} ${CENTRE} A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE + r)} ${CENTRE} A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE - r)} ${CENTRE} Z`;
|
|
69
|
+
function outline(points) {
|
|
70
|
+
const gap = points.indexOf(null);
|
|
71
|
+
if (gap === -1) return `M ${points.map((p) => at(p)).join(" L ")} Z`;
|
|
72
|
+
const commands = [];
|
|
73
|
+
let run = [];
|
|
74
|
+
const flush = () => {
|
|
75
|
+
if (run.length === 1) commands.push(`M ${at(run[0])} L ${at(run[0])}`);
|
|
76
|
+
else if (run.length > 1) commands.push(`M ${run.map(at).join(" L ")}`);
|
|
77
|
+
run = [];
|
|
78
|
+
};
|
|
79
|
+
for (let k = 1; k <= points.length; k++) {
|
|
80
|
+
const point = points[(gap + k) % points.length];
|
|
81
|
+
if (point === null) flush();
|
|
82
|
+
else run.push(point);
|
|
83
|
+
}
|
|
84
|
+
flush();
|
|
85
|
+
return commands.join(" ");
|
|
86
|
+
}
|
|
87
|
+
var WrRadarChart = class WrRadarChart {
|
|
88
|
+
axes = input([], ...ngDevMode ? [{ debugName: "axes" }] : /* istanbul ignore next */ []);
|
|
89
|
+
series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
|
|
90
|
+
variant = input("polygon", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
91
|
+
ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
92
|
+
polygonAriaLabel = useI18nText(this.ariaLabel, "radarChart.label", "Radar chart");
|
|
93
|
+
polarAreaAriaLabel = useI18nText(this.ariaLabel, "radarChart.polarAreaLabel", "Polar area chart");
|
|
94
|
+
resolvedAriaLabel = computed(() => this.polar() ? this.polarAreaAriaLabel() : this.polygonAriaLabel(), ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
|
|
95
|
+
max = input(0, {
|
|
96
|
+
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
97
|
+
transform: (v) => {
|
|
98
|
+
const value = coerceNumberProperty(v, 0);
|
|
99
|
+
return Number.isFinite(value) ? Math.max(0, value) : 0;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
rings = input(4, {
|
|
103
|
+
...ngDevMode ? { debugName: "rings" } : /* istanbul ignore next */ {},
|
|
104
|
+
transform: (v) => {
|
|
105
|
+
const value = Math.round(coerceNumberProperty(v, 4));
|
|
106
|
+
return Number.isFinite(value) ? clamp(value, 1, 10) : 4;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
size = input(280, {
|
|
110
|
+
...ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {},
|
|
111
|
+
transform: (v) => {
|
|
112
|
+
const value = coerceNumberProperty(v, 280);
|
|
113
|
+
return Number.isFinite(value) ? Math.max(120, value) : 280;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
showGrid = input(true, {
|
|
117
|
+
...ngDevMode ? { debugName: "showGrid" } : /* istanbul ignore next */ {},
|
|
118
|
+
transform: coerceBooleanProperty
|
|
119
|
+
});
|
|
120
|
+
showLegend = input(true, {
|
|
121
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
122
|
+
transform: coerceBooleanProperty
|
|
123
|
+
});
|
|
124
|
+
toggleableLegend = input(false, {
|
|
125
|
+
...ngDevMode ? { debugName: "toggleableLegend" } : /* istanbul ignore next */ {},
|
|
126
|
+
transform: coerceBooleanProperty
|
|
127
|
+
});
|
|
128
|
+
hiddenSeries = model([], ...ngDevMode ? [{ debugName: "hiddenSeries" }] : /* istanbul ignore next */ []);
|
|
129
|
+
showDots = input(true, {
|
|
130
|
+
...ngDevMode ? { debugName: "showDots" } : /* istanbul ignore next */ {},
|
|
131
|
+
transform: coerceBooleanProperty
|
|
132
|
+
});
|
|
133
|
+
showArea = input(true, {
|
|
134
|
+
...ngDevMode ? { debugName: "showArea" } : /* istanbul ignore next */ {},
|
|
135
|
+
transform: coerceBooleanProperty
|
|
136
|
+
});
|
|
137
|
+
tooltip = input(true, {
|
|
138
|
+
...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
|
|
139
|
+
transform: coerceBooleanProperty
|
|
140
|
+
});
|
|
141
|
+
valueFormat = input(null, ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
142
|
+
dataTable = input(false, {
|
|
143
|
+
...ngDevMode ? { debugName: "dataTable" } : /* istanbul ignore next */ {},
|
|
144
|
+
transform: coerceBooleanProperty
|
|
145
|
+
});
|
|
146
|
+
numbers = useChartNumbers(this.valueFormat);
|
|
147
|
+
svg = viewChild("svg", ...ngDevMode ? [{ debugName: "svg" }] : /* istanbul ignore next */ []);
|
|
148
|
+
host = inject(ElementRef);
|
|
149
|
+
measured = signal(null, ...ngDevMode ? [{ debugName: "measured" }] : /* istanbul ignore next */ []);
|
|
150
|
+
constructor() {
|
|
151
|
+
const destroyRef = inject(DestroyRef);
|
|
152
|
+
afterNextRender(() => {
|
|
153
|
+
const svg = this.svg()?.nativeElement;
|
|
154
|
+
if (!svg || typeof ResizeObserver === "undefined") return;
|
|
155
|
+
const observer = new ResizeObserver(([entry]) => {
|
|
156
|
+
const width = entry.contentRect.width;
|
|
157
|
+
if (width <= 0) return;
|
|
158
|
+
const height = this.host.nativeElement.querySelector(".wr-radar-chart__ring-label")?.getBoundingClientRect().height ?? 0;
|
|
159
|
+
const last = this.measured();
|
|
160
|
+
const line = height > 0 ? height : last?.line ?? LABEL_LINE;
|
|
161
|
+
if (last?.width === width && last.line === line) return;
|
|
162
|
+
this.measured.set({
|
|
163
|
+
width,
|
|
164
|
+
line
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
observer.observe(svg);
|
|
168
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
169
|
+
});
|
|
170
|
+
if (isDevMode()) {
|
|
171
|
+
let warned = null;
|
|
172
|
+
effect(() => {
|
|
173
|
+
const count = this.axes().length;
|
|
174
|
+
if (count >= 3 || this.series().length === 0 || warned === count) return;
|
|
175
|
+
warned = count;
|
|
176
|
+
console.warn(`[NGWR] <wr-radar-chart>: a radar needs at least three axes to draw a series, and it was given ${count}. It draws the grid alone.`);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
axisGeometry = computed(() => {
|
|
181
|
+
const axes = this.axes();
|
|
182
|
+
return axes.map((label, i) => {
|
|
183
|
+
const angle = -Math.PI / 2 + i * 2 * Math.PI / axes.length;
|
|
184
|
+
return {
|
|
185
|
+
label,
|
|
186
|
+
angle,
|
|
187
|
+
cos: Math.cos(angle),
|
|
188
|
+
sin: Math.sin(angle)
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
}, ...ngDevMode ? [{ debugName: "axisGeometry" }] : /* istanbul ignore next */ []);
|
|
192
|
+
polar = computed(() => this.variant() === "polar-area", ...ngDevMode ? [{ debugName: "polar" }] : /* istanbul ignore next */ []);
|
|
193
|
+
drawable = computed(() => this.axes().length >= 3, ...ngDevMode ? [{ debugName: "drawable" }] : /* istanbul ignore next */ []);
|
|
194
|
+
resolvedSeries = computed(() => {
|
|
195
|
+
const count = this.axes().length;
|
|
196
|
+
return this.series().map((s, index) => ({
|
|
197
|
+
index,
|
|
198
|
+
label: s.label,
|
|
199
|
+
color: s.color ?? chartColor(index),
|
|
200
|
+
dash: chartDash(index),
|
|
201
|
+
values: Array.from({ length: count }, (_, a) => {
|
|
202
|
+
const value = s.data[a];
|
|
203
|
+
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
204
|
+
})
|
|
205
|
+
}));
|
|
206
|
+
}, ...ngDevMode ? [{ debugName: "resolvedSeries" }] : /* istanbul ignore next */ []);
|
|
207
|
+
visibleSeries = computed(() => {
|
|
208
|
+
const hidden = new Set(this.hiddenSeries());
|
|
209
|
+
return this.resolvedSeries().filter((s) => !hidden.has(s.index));
|
|
210
|
+
}, ...ngDevMode ? [{ debugName: "visibleSeries" }] : /* istanbul ignore next */ []);
|
|
211
|
+
scale = computed(() => {
|
|
212
|
+
const explicit = this.max();
|
|
213
|
+
const rings = this.rings();
|
|
214
|
+
if (explicit > 0) {
|
|
215
|
+
const step = fixedStep(explicit, rings);
|
|
216
|
+
const count = Math.round(explicit / step);
|
|
217
|
+
return {
|
|
218
|
+
min: 0,
|
|
219
|
+
max: explicit,
|
|
220
|
+
step,
|
|
221
|
+
ticks: Array.from({ length: count + 1 }, (_, i) => round(explicit - i * step, 6))
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
const values = this.visibleSeries().flatMap((s) => s.values.filter((v) => v !== null));
|
|
225
|
+
if (values.length === 0) return chartAxis(NaN, NaN);
|
|
226
|
+
const peak = Math.max(...values);
|
|
227
|
+
if (this.polar()) return peak > 0 ? chartAxis(0, peak, {
|
|
228
|
+
includeZero: true,
|
|
229
|
+
tickCount: rings
|
|
230
|
+
}) : chartAxis(NaN, NaN);
|
|
231
|
+
return chartAxis(Math.min(...values), peak, {
|
|
232
|
+
includeZero: true,
|
|
233
|
+
tickCount: rings
|
|
234
|
+
});
|
|
235
|
+
}, ...ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []);
|
|
236
|
+
radius(value) {
|
|
237
|
+
const { min, max } = this.scale();
|
|
238
|
+
const share = clamp((value - min) / (max - min), 0, 1);
|
|
239
|
+
return RADIUS * (this.polar() ? Math.sqrt(share) : share);
|
|
240
|
+
}
|
|
241
|
+
shapes = computed(() => {
|
|
242
|
+
if (!this.drawable()) return [];
|
|
243
|
+
const axes = this.axisGeometry();
|
|
244
|
+
const polar = this.polar();
|
|
245
|
+
const half = Math.PI / axes.length;
|
|
246
|
+
return this.visibleSeries().flatMap((s) => {
|
|
247
|
+
const radii = s.values.map((v) => v === null ? null : this.radius(v));
|
|
248
|
+
const points = radii.map((r, a) => r === null ? null : along(axes[a], r));
|
|
249
|
+
if (points.every((p) => p === null)) return [];
|
|
250
|
+
return [{
|
|
251
|
+
index: s.index,
|
|
252
|
+
color: s.color,
|
|
253
|
+
dash: s.dash,
|
|
254
|
+
points,
|
|
255
|
+
closed: polar || points.every((p) => p !== null),
|
|
256
|
+
d: polar ? silhouette(axes, half, radii) : outline(points)
|
|
257
|
+
}];
|
|
258
|
+
});
|
|
259
|
+
}, ...ngDevMode ? [{ debugName: "shapes" }] : /* istanbul ignore next */ []);
|
|
260
|
+
ringPaths = computed(() => {
|
|
261
|
+
const { min, ticks } = this.scale();
|
|
262
|
+
const axes = this.axisGeometry();
|
|
263
|
+
const polygon = axes.length >= 3 && !this.polar();
|
|
264
|
+
return ticks.filter((tick) => tick > min).map((tick) => {
|
|
265
|
+
const r = this.radius(tick);
|
|
266
|
+
return polygon ? `M ${axes.map((axis) => at(along(axis, r))).join(" L ")} Z` : circle(r);
|
|
267
|
+
});
|
|
268
|
+
}, ...ngDevMode ? [{ debugName: "ringPaths" }] : /* istanbul ignore next */ []);
|
|
269
|
+
spokes = computed(() => {
|
|
270
|
+
const axes = this.axisGeometry();
|
|
271
|
+
if (!this.polar()) return axes.map((axis) => along(axis, RADIUS));
|
|
272
|
+
const half = Math.PI / axes.length;
|
|
273
|
+
return axes.map((axis) => toward(axis.angle - half, RADIUS));
|
|
274
|
+
}, ...ngDevMode ? [{ debugName: "spokes" }] : /* istanbul ignore next */ []);
|
|
275
|
+
ringLabels = computed(() => {
|
|
276
|
+
const { min, ticks, step } = this.scale();
|
|
277
|
+
const texts = this.numbers.ticks(ticks, step);
|
|
278
|
+
const labels = ticks.flatMap((tick, i) => {
|
|
279
|
+
if (tick <= min) return [];
|
|
280
|
+
const r = this.radius(tick);
|
|
281
|
+
return [{
|
|
282
|
+
text: texts[i],
|
|
283
|
+
r,
|
|
284
|
+
y: short(CENTRE - r)
|
|
285
|
+
}];
|
|
286
|
+
});
|
|
287
|
+
if (!this.polar()) return labels;
|
|
288
|
+
const { width, line } = this.measured() ?? {
|
|
289
|
+
width: this.size(),
|
|
290
|
+
line: LABEL_LINE
|
|
291
|
+
};
|
|
292
|
+
const room = line / width * 100;
|
|
293
|
+
let kept = Number.POSITIVE_INFINITY;
|
|
294
|
+
return labels.filter((label) => {
|
|
295
|
+
if (kept - label.r < room - 1e-6) return false;
|
|
296
|
+
kept = label.r;
|
|
297
|
+
return true;
|
|
298
|
+
});
|
|
299
|
+
}, ...ngDevMode ? [{ debugName: "ringLabels" }] : /* istanbul ignore next */ []);
|
|
300
|
+
axisLabels = computed(() => this.axisGeometry().map((axis) => ({
|
|
301
|
+
label: axis.label,
|
|
302
|
+
x: short(CENTRE + RADIUS * axis.cos),
|
|
303
|
+
y: short(CENTRE + RADIUS * axis.sin),
|
|
304
|
+
cos: short(axis.cos),
|
|
305
|
+
sin: short(axis.sin)
|
|
306
|
+
})), ...ngDevMode ? [{ debugName: "axisLabels" }] : /* istanbul ignore next */ []);
|
|
307
|
+
legendItems = computed(() => this.resolvedSeries().map(({ label, color, dash }) => ({
|
|
308
|
+
label,
|
|
309
|
+
color,
|
|
310
|
+
dash
|
|
311
|
+
})), ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
|
|
312
|
+
tableData = computed(() => {
|
|
313
|
+
const series = this.visibleSeries();
|
|
314
|
+
const rows = series.length === 0 ? [] : this.axes().map((axis, a) => ({
|
|
315
|
+
header: axis,
|
|
316
|
+
cells: series.map((s) => {
|
|
317
|
+
const value = s.values[a];
|
|
318
|
+
return value === null ? "" : this.numbers.value(value);
|
|
319
|
+
})
|
|
320
|
+
}));
|
|
321
|
+
return {
|
|
322
|
+
caption: this.resolvedAriaLabel(),
|
|
323
|
+
columns: series.map((s) => s.label),
|
|
324
|
+
groups: [{ rows }]
|
|
325
|
+
};
|
|
326
|
+
}, ...ngDevMode ? [{ debugName: "tableData" }] : /* istanbul ignore next */ []);
|
|
327
|
+
tip = useChartTooltip(this.tooltip, (index) => {
|
|
328
|
+
const axis = this.axisGeometry()[index];
|
|
329
|
+
const svg = this.svg()?.nativeElement;
|
|
330
|
+
if (!this.drawable() || !axis || !svg) return null;
|
|
331
|
+
const box = svg.getBoundingClientRect();
|
|
332
|
+
const { cos, sin } = axis;
|
|
333
|
+
const side = Math.abs(cos) > Math.abs(sin) ? cos > 0 ? "right" : "left" : sin > 0 ? "bottom" : "top";
|
|
334
|
+
const rows = this.visibleSeries().flatMap((s) => {
|
|
335
|
+
const value = s.values[index];
|
|
336
|
+
return value === null ? [] : [{
|
|
337
|
+
label: s.label,
|
|
338
|
+
value: this.numbers.value(value),
|
|
339
|
+
color: s.color
|
|
340
|
+
}];
|
|
341
|
+
});
|
|
342
|
+
if (rows.length === 0) return null;
|
|
343
|
+
return {
|
|
344
|
+
datum: {
|
|
345
|
+
label: axis.label,
|
|
346
|
+
value: "",
|
|
347
|
+
rows
|
|
348
|
+
},
|
|
349
|
+
anchor: {
|
|
350
|
+
x: box.left + (CENTRE + RADIUS * cos) / 100 * box.width,
|
|
351
|
+
y: box.top + (CENTRE + RADIUS * sin) / 100 * box.height
|
|
352
|
+
},
|
|
353
|
+
side
|
|
354
|
+
};
|
|
355
|
+
}, (x, y) => this.axisAt(x, y));
|
|
356
|
+
hover = computed(() => {
|
|
357
|
+
const index = this.tip.active();
|
|
358
|
+
const axis = index === null ? void 0 : this.axisGeometry()[index];
|
|
359
|
+
if (index === null || !axis || !this.drawable()) return null;
|
|
360
|
+
const points = this.shapes().flatMap((s) => {
|
|
361
|
+
const point = s.points[index];
|
|
362
|
+
return point ? [{
|
|
363
|
+
index: s.index,
|
|
364
|
+
color: s.color,
|
|
365
|
+
d: this.dotPath(point)
|
|
366
|
+
}] : [];
|
|
367
|
+
});
|
|
368
|
+
if (points.length === 0) return null;
|
|
369
|
+
return {
|
|
370
|
+
end: along(axis, RADIUS),
|
|
371
|
+
points
|
|
372
|
+
};
|
|
373
|
+
}, ...ngDevMode ? [{ debugName: "hover" }] : /* istanbul ignore next */ []);
|
|
374
|
+
onPointerMove(event) {
|
|
375
|
+
const index = this.axisAt(event.clientX, event.clientY);
|
|
376
|
+
if (index === null) this.tip.leave(event);
|
|
377
|
+
else this.tip.enter(index);
|
|
378
|
+
}
|
|
379
|
+
dotPath(point) {
|
|
380
|
+
return `M ${at(point)} h 0`;
|
|
381
|
+
}
|
|
382
|
+
axisAt(clientX, clientY) {
|
|
383
|
+
const count = this.axes().length;
|
|
384
|
+
const svg = this.svg()?.nativeElement;
|
|
385
|
+
if (!this.drawable() || !svg) return null;
|
|
386
|
+
const box = svg.getBoundingClientRect();
|
|
387
|
+
if (box.width <= 0 || box.height <= 0) return null;
|
|
388
|
+
const dx = clientX - (box.left + box.width / 2);
|
|
389
|
+
const dy = clientY - (box.top + box.height / 2);
|
|
390
|
+
if (Math.hypot(dx, dy) > Math.min(box.width, box.height) / 2 * REACH) return null;
|
|
391
|
+
const turn = (Math.atan2(dy, dx) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI);
|
|
392
|
+
const index = Math.round(turn / (2 * Math.PI / count)) % count;
|
|
393
|
+
return this.visibleSeries().some((s) => s.values[index] !== null) ? index : null;
|
|
394
|
+
}
|
|
395
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
396
|
+
minVersion: "12.0.0",
|
|
397
|
+
version: "22.2.4",
|
|
398
|
+
ngImport: i0,
|
|
399
|
+
type: WrRadarChart,
|
|
400
|
+
deps: [],
|
|
401
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
402
|
+
});
|
|
403
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
404
|
+
minVersion: "17.0.0",
|
|
405
|
+
version: "22.2.4",
|
|
406
|
+
type: WrRadarChart,
|
|
407
|
+
isStandalone: true,
|
|
408
|
+
selector: "wr-radar-chart",
|
|
409
|
+
inputs: {
|
|
410
|
+
axes: {
|
|
411
|
+
classPropertyName: "axes",
|
|
412
|
+
publicName: "axes",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
series: {
|
|
418
|
+
classPropertyName: "series",
|
|
419
|
+
publicName: "series",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
variant: {
|
|
425
|
+
classPropertyName: "variant",
|
|
426
|
+
publicName: "variant",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
ariaLabel: {
|
|
432
|
+
classPropertyName: "ariaLabel",
|
|
433
|
+
publicName: "ariaLabel",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
max: {
|
|
439
|
+
classPropertyName: "max",
|
|
440
|
+
publicName: "max",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
rings: {
|
|
446
|
+
classPropertyName: "rings",
|
|
447
|
+
publicName: "rings",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
size: {
|
|
453
|
+
classPropertyName: "size",
|
|
454
|
+
publicName: "size",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
showGrid: {
|
|
460
|
+
classPropertyName: "showGrid",
|
|
461
|
+
publicName: "showGrid",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
},
|
|
466
|
+
showLegend: {
|
|
467
|
+
classPropertyName: "showLegend",
|
|
468
|
+
publicName: "showLegend",
|
|
469
|
+
isSignal: true,
|
|
470
|
+
isRequired: false,
|
|
471
|
+
transformFunction: null
|
|
472
|
+
},
|
|
473
|
+
toggleableLegend: {
|
|
474
|
+
classPropertyName: "toggleableLegend",
|
|
475
|
+
publicName: "toggleableLegend",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
},
|
|
480
|
+
hiddenSeries: {
|
|
481
|
+
classPropertyName: "hiddenSeries",
|
|
482
|
+
publicName: "hiddenSeries",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
},
|
|
487
|
+
showDots: {
|
|
488
|
+
classPropertyName: "showDots",
|
|
489
|
+
publicName: "showDots",
|
|
490
|
+
isSignal: true,
|
|
491
|
+
isRequired: false,
|
|
492
|
+
transformFunction: null
|
|
493
|
+
},
|
|
494
|
+
showArea: {
|
|
495
|
+
classPropertyName: "showArea",
|
|
496
|
+
publicName: "showArea",
|
|
497
|
+
isSignal: true,
|
|
498
|
+
isRequired: false,
|
|
499
|
+
transformFunction: null
|
|
500
|
+
},
|
|
501
|
+
tooltip: {
|
|
502
|
+
classPropertyName: "tooltip",
|
|
503
|
+
publicName: "tooltip",
|
|
504
|
+
isSignal: true,
|
|
505
|
+
isRequired: false,
|
|
506
|
+
transformFunction: null
|
|
507
|
+
},
|
|
508
|
+
valueFormat: {
|
|
509
|
+
classPropertyName: "valueFormat",
|
|
510
|
+
publicName: "valueFormat",
|
|
511
|
+
isSignal: true,
|
|
512
|
+
isRequired: false,
|
|
513
|
+
transformFunction: null
|
|
514
|
+
},
|
|
515
|
+
dataTable: {
|
|
516
|
+
classPropertyName: "dataTable",
|
|
517
|
+
publicName: "dataTable",
|
|
518
|
+
isSignal: true,
|
|
519
|
+
isRequired: false,
|
|
520
|
+
transformFunction: null
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
outputs: { hiddenSeries: "hiddenSeriesChange" },
|
|
524
|
+
host: {
|
|
525
|
+
properties: {
|
|
526
|
+
"class.wr-radar-chart--polygon": "!polar()",
|
|
527
|
+
"class.wr-radar-chart--polar-area": "polar()"
|
|
528
|
+
},
|
|
529
|
+
classAttribute: "wr-radar-chart"
|
|
530
|
+
},
|
|
531
|
+
viewQueries: [{
|
|
532
|
+
propertyName: "svg",
|
|
533
|
+
first: true,
|
|
534
|
+
predicate: ["svg"],
|
|
535
|
+
descendants: true,
|
|
536
|
+
isSignal: true
|
|
537
|
+
}],
|
|
538
|
+
ngImport: i0,
|
|
539
|
+
template: "@let hovered = hover();\n<!-- The drawing, with the axis names in a gutter round it. The surface is as wide as the\n drawing; the gutter is its padding, and both label layers cover the drawing exactly,\n so a percentage of either is a percentage of the drawing. -->\n<div class=\"wr-radar-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper: `img` is a children-presentational\n role, and WebKit drops the whole subtree of one, which would take the axis names\n beside the drawing down with it. -->\n <svg\n #svg\n class=\"wr-radar-chart__svg\"\n viewBox=\"0 0 100 100\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showGrid()) {\n @for (d of ringPaths(); track $index) {\n <path class=\"wr-radar-chart__ring\" [attr.d]=\"d\" fill=\"none\" vector-effect=\"non-scaling-stroke\" />\n }\n @for (end of spokes(); track $index) {\n <line\n class=\"wr-radar-chart__spoke\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"end.x\"\n [attr.y2]=\"end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n <!-- Every fill under every outline, so the outlines and their dashes stay on top\n wherever two series overlap. An open outline is never filled: filling it would\n close it across a value the series does not have. A polar-area outline is the\n silhouette of the series' wedges, which always closes, so it always fills. -->\n @if (showArea()) {\n @for (s of shapes(); track s.index) {\n @if (s.closed) {\n <path class=\"wr-radar-chart__area\" [attr.d]=\"s.d\" [attr.fill]=\"s.color\" stroke=\"none\" />\n }\n }\n }\n <!-- By position, not by label: two series may share one. -->\n @for (s of shapes(); track s.index) {\n <path\n class=\"wr-radar-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n @if (showDots()) {\n @for (s of shapes(); track s.index) {\n @for (point of s.points; track $index) {\n <!-- A missing value gets no dot. A dot is a zero-length line with a round cap and\n a non-scaling stroke, so it stays a circle of the same pixels at any size. -->\n @if (point) {\n <path\n class=\"wr-radar-chart__dot\"\n [attr.d]=\"dotPath(point)\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n }\n }\n\n @if (hovered) {\n <line\n class=\"wr-radar-chart__crosshair\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"hovered.end.x\"\n [attr.y2]=\"hovered.end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A ring of the series' colour round a surface-coloured centre, drawn the way a dot\n is and for the same reason. -->\n @for (p of hovered.points; track p.index) {\n <path\n class=\"wr-radar-chart__hover-dot\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-radar-chart__hover-dot-center\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n\n @if (showGrid() && ringLabels().length > 0) {\n <!-- Hidden, as an axis' ticks are on every chart: the drawing's name is what is\n announced, and the figures are in the data table. -->\n <div class=\"wr-radar-chart__ring-labels\" aria-hidden=\"true\">\n @for (ring of ringLabels(); track $index) {\n <span class=\"wr-radar-chart__ring-label\" [style.--wr-radar-chart-y]=\"ring.y\">{{ ring.text }}</span>\n }\n </div>\n }\n\n @if (axisLabels().length > 0) {\n <!-- Real text beside the drawing, as the line chart's x labels are: each hands the\n stylesheet the end of its spoke and the way it points. -->\n <div class=\"wr-radar-chart__axis-labels\">\n @for (axis of axisLabels(); track $index) {\n <span\n class=\"wr-radar-chart__axis-label\"\n [style.--wr-radar-chart-x]=\"axis.x\"\n [style.--wr-radar-chart-y]=\"axis.y\"\n [style.--wr-radar-chart-cos]=\"axis.cos\"\n [style.--wr-radar-chart-sin]=\"axis.sin\"\n >{{ axis.label }}</span\n >\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n\n@if (showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, as the outline is drawn. Rows are\n tracked by position, so two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-radar-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSeries\"\n ></ul>\n}\n",
|
|
540
|
+
dependencies: [{
|
|
541
|
+
kind: "component",
|
|
542
|
+
type: WrChartLegend,
|
|
543
|
+
selector: "ul[wr-chart-legend]",
|
|
544
|
+
inputs: [
|
|
545
|
+
"items",
|
|
546
|
+
"toggleable",
|
|
547
|
+
"hiddenSeries",
|
|
548
|
+
"ariaLabel"
|
|
549
|
+
],
|
|
550
|
+
outputs: ["hiddenSeriesChange", "toggled"]
|
|
551
|
+
}, {
|
|
552
|
+
kind: "component",
|
|
553
|
+
type: WrChartTable,
|
|
554
|
+
selector: "wr-chart-table",
|
|
555
|
+
inputs: ["data"]
|
|
556
|
+
}],
|
|
557
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
558
|
+
});
|
|
559
|
+
};
|
|
560
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
561
|
+
minVersion: "12.0.0",
|
|
562
|
+
version: "22.2.4",
|
|
563
|
+
ngImport: i0,
|
|
564
|
+
type: WrRadarChart,
|
|
565
|
+
decorators: [{
|
|
566
|
+
type: Component,
|
|
567
|
+
args: [{
|
|
568
|
+
selector: "wr-radar-chart",
|
|
569
|
+
encapsulation: ViewEncapsulation.None,
|
|
570
|
+
host: {
|
|
571
|
+
class: "wr-radar-chart",
|
|
572
|
+
"[class.wr-radar-chart--polygon]": "!polar()",
|
|
573
|
+
"[class.wr-radar-chart--polar-area]": "polar()"
|
|
574
|
+
},
|
|
575
|
+
imports: [WrChartLegend, WrChartTable],
|
|
576
|
+
template: "@let hovered = hover();\n<!-- The drawing, with the axis names in a gutter round it. The surface is as wide as the\n drawing; the gutter is its padding, and both label layers cover the drawing exactly,\n so a percentage of either is a percentage of the drawing. -->\n<div class=\"wr-radar-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper: `img` is a children-presentational\n role, and WebKit drops the whole subtree of one, which would take the axis names\n beside the drawing down with it. -->\n <svg\n #svg\n class=\"wr-radar-chart__svg\"\n viewBox=\"0 0 100 100\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showGrid()) {\n @for (d of ringPaths(); track $index) {\n <path class=\"wr-radar-chart__ring\" [attr.d]=\"d\" fill=\"none\" vector-effect=\"non-scaling-stroke\" />\n }\n @for (end of spokes(); track $index) {\n <line\n class=\"wr-radar-chart__spoke\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"end.x\"\n [attr.y2]=\"end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n <!-- Every fill under every outline, so the outlines and their dashes stay on top\n wherever two series overlap. An open outline is never filled: filling it would\n close it across a value the series does not have. A polar-area outline is the\n silhouette of the series' wedges, which always closes, so it always fills. -->\n @if (showArea()) {\n @for (s of shapes(); track s.index) {\n @if (s.closed) {\n <path class=\"wr-radar-chart__area\" [attr.d]=\"s.d\" [attr.fill]=\"s.color\" stroke=\"none\" />\n }\n }\n }\n <!-- By position, not by label: two series may share one. -->\n @for (s of shapes(); track s.index) {\n <path\n class=\"wr-radar-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n @if (showDots()) {\n @for (s of shapes(); track s.index) {\n @for (point of s.points; track $index) {\n <!-- A missing value gets no dot. A dot is a zero-length line with a round cap and\n a non-scaling stroke, so it stays a circle of the same pixels at any size. -->\n @if (point) {\n <path\n class=\"wr-radar-chart__dot\"\n [attr.d]=\"dotPath(point)\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n }\n }\n\n @if (hovered) {\n <line\n class=\"wr-radar-chart__crosshair\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"hovered.end.x\"\n [attr.y2]=\"hovered.end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A ring of the series' colour round a surface-coloured centre, drawn the way a dot\n is and for the same reason. -->\n @for (p of hovered.points; track p.index) {\n <path\n class=\"wr-radar-chart__hover-dot\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-radar-chart__hover-dot-center\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n\n @if (showGrid() && ringLabels().length > 0) {\n <!-- Hidden, as an axis' ticks are on every chart: the drawing's name is what is\n announced, and the figures are in the data table. -->\n <div class=\"wr-radar-chart__ring-labels\" aria-hidden=\"true\">\n @for (ring of ringLabels(); track $index) {\n <span class=\"wr-radar-chart__ring-label\" [style.--wr-radar-chart-y]=\"ring.y\">{{ ring.text }}</span>\n }\n </div>\n }\n\n @if (axisLabels().length > 0) {\n <!-- Real text beside the drawing, as the line chart's x labels are: each hands the\n stylesheet the end of its spoke and the way it points. -->\n <div class=\"wr-radar-chart__axis-labels\">\n @for (axis of axisLabels(); track $index) {\n <span\n class=\"wr-radar-chart__axis-label\"\n [style.--wr-radar-chart-x]=\"axis.x\"\n [style.--wr-radar-chart-y]=\"axis.y\"\n [style.--wr-radar-chart-cos]=\"axis.cos\"\n [style.--wr-radar-chart-sin]=\"axis.sin\"\n >{{ axis.label }}</span\n >\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n\n@if (showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, as the outline is drawn. Rows are\n tracked by position, so two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-radar-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSeries\"\n ></ul>\n}\n"
|
|
577
|
+
}]
|
|
578
|
+
}],
|
|
579
|
+
ctorParameters: () => [],
|
|
580
|
+
propDecorators: {
|
|
581
|
+
axes: [{
|
|
582
|
+
type: i0.Input,
|
|
583
|
+
args: [{
|
|
584
|
+
isSignal: true,
|
|
585
|
+
alias: "axes",
|
|
586
|
+
required: false
|
|
587
|
+
}]
|
|
588
|
+
}],
|
|
589
|
+
series: [{
|
|
590
|
+
type: i0.Input,
|
|
591
|
+
args: [{
|
|
592
|
+
isSignal: true,
|
|
593
|
+
alias: "series",
|
|
594
|
+
required: false
|
|
595
|
+
}]
|
|
596
|
+
}],
|
|
597
|
+
variant: [{
|
|
598
|
+
type: i0.Input,
|
|
599
|
+
args: [{
|
|
600
|
+
isSignal: true,
|
|
601
|
+
alias: "variant",
|
|
602
|
+
required: false
|
|
603
|
+
}]
|
|
604
|
+
}],
|
|
605
|
+
ariaLabel: [{
|
|
606
|
+
type: i0.Input,
|
|
607
|
+
args: [{
|
|
608
|
+
isSignal: true,
|
|
609
|
+
alias: "ariaLabel",
|
|
610
|
+
required: false
|
|
611
|
+
}]
|
|
612
|
+
}],
|
|
613
|
+
max: [{
|
|
614
|
+
type: i0.Input,
|
|
615
|
+
args: [{
|
|
616
|
+
isSignal: true,
|
|
617
|
+
alias: "max",
|
|
618
|
+
required: false
|
|
619
|
+
}]
|
|
620
|
+
}],
|
|
621
|
+
rings: [{
|
|
622
|
+
type: i0.Input,
|
|
623
|
+
args: [{
|
|
624
|
+
isSignal: true,
|
|
625
|
+
alias: "rings",
|
|
626
|
+
required: false
|
|
627
|
+
}]
|
|
628
|
+
}],
|
|
629
|
+
size: [{
|
|
630
|
+
type: i0.Input,
|
|
631
|
+
args: [{
|
|
632
|
+
isSignal: true,
|
|
633
|
+
alias: "size",
|
|
634
|
+
required: false
|
|
635
|
+
}]
|
|
636
|
+
}],
|
|
637
|
+
showGrid: [{
|
|
638
|
+
type: i0.Input,
|
|
639
|
+
args: [{
|
|
640
|
+
isSignal: true,
|
|
641
|
+
alias: "showGrid",
|
|
642
|
+
required: false
|
|
643
|
+
}]
|
|
644
|
+
}],
|
|
645
|
+
showLegend: [{
|
|
646
|
+
type: i0.Input,
|
|
647
|
+
args: [{
|
|
648
|
+
isSignal: true,
|
|
649
|
+
alias: "showLegend",
|
|
650
|
+
required: false
|
|
651
|
+
}]
|
|
652
|
+
}],
|
|
653
|
+
toggleableLegend: [{
|
|
654
|
+
type: i0.Input,
|
|
655
|
+
args: [{
|
|
656
|
+
isSignal: true,
|
|
657
|
+
alias: "toggleableLegend",
|
|
658
|
+
required: false
|
|
659
|
+
}]
|
|
660
|
+
}],
|
|
661
|
+
hiddenSeries: [{
|
|
662
|
+
type: i0.Input,
|
|
663
|
+
args: [{
|
|
664
|
+
isSignal: true,
|
|
665
|
+
alias: "hiddenSeries",
|
|
666
|
+
required: false
|
|
667
|
+
}]
|
|
668
|
+
}, {
|
|
669
|
+
type: i0.Output,
|
|
670
|
+
args: ["hiddenSeriesChange"]
|
|
671
|
+
}],
|
|
672
|
+
showDots: [{
|
|
673
|
+
type: i0.Input,
|
|
674
|
+
args: [{
|
|
675
|
+
isSignal: true,
|
|
676
|
+
alias: "showDots",
|
|
677
|
+
required: false
|
|
678
|
+
}]
|
|
679
|
+
}],
|
|
680
|
+
showArea: [{
|
|
681
|
+
type: i0.Input,
|
|
682
|
+
args: [{
|
|
683
|
+
isSignal: true,
|
|
684
|
+
alias: "showArea",
|
|
685
|
+
required: false
|
|
686
|
+
}]
|
|
687
|
+
}],
|
|
688
|
+
tooltip: [{
|
|
689
|
+
type: i0.Input,
|
|
690
|
+
args: [{
|
|
691
|
+
isSignal: true,
|
|
692
|
+
alias: "tooltip",
|
|
693
|
+
required: false
|
|
694
|
+
}]
|
|
695
|
+
}],
|
|
696
|
+
valueFormat: [{
|
|
697
|
+
type: i0.Input,
|
|
698
|
+
args: [{
|
|
699
|
+
isSignal: true,
|
|
700
|
+
alias: "valueFormat",
|
|
701
|
+
required: false
|
|
702
|
+
}]
|
|
703
|
+
}],
|
|
704
|
+
dataTable: [{
|
|
705
|
+
type: i0.Input,
|
|
706
|
+
args: [{
|
|
707
|
+
isSignal: true,
|
|
708
|
+
alias: "dataTable",
|
|
709
|
+
required: false
|
|
710
|
+
}]
|
|
711
|
+
}],
|
|
712
|
+
svg: [{
|
|
713
|
+
type: i0.ViewChild,
|
|
714
|
+
args: ["svg", { isSignal: true }]
|
|
715
|
+
}]
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
export { WrRadarChart };
|
|
719
|
+
|
|
720
|
+
//# sourceMappingURL=ngwr-charts-radar-chart.mjs.map
|