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,461 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrChartLegendItem } from "ngwr/charts/chart-legend";
|
|
3
|
+
import { WrChartTableData } from "ngwr/charts/core";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
*
|
|
7
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
9
|
+
*/
|
|
10
|
+
/** One series of a `<wr-radar-chart>`: a name, one value per axis, and optionally its own colour. */
|
|
11
|
+
interface WrRadarSeries {
|
|
12
|
+
/** The series' name, in the legend, the tooltip and the data table's column heading. */
|
|
13
|
+
readonly label: string;
|
|
14
|
+
/**
|
|
15
|
+
* One value per axis, in the order of `axes`. `null`, a value that is not a finite
|
|
16
|
+
* number, or one past the end of a shorter list, is MISSING: the outline breaks there and
|
|
17
|
+
* the series is not filled — in the polar-area variant, its wedge is not drawn. A value
|
|
18
|
+
* past the last axis is ignored.
|
|
19
|
+
*/
|
|
20
|
+
readonly data: readonly (number | null)[];
|
|
21
|
+
/** Any CSS colour, `var(--wr-…)` included. Left out, the series takes the next palette colour. */
|
|
22
|
+
readonly color?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* How a `<wr-radar-chart>` draws its series.
|
|
26
|
+
*
|
|
27
|
+
* - `'polygon'` — each series is a polygon through its values, one vertex per axis.
|
|
28
|
+
* - `'polar-area'` — each axis is an equal-angle wedge per series, whose AREA encodes
|
|
29
|
+
* the value: the radius grows with its square root, so twice the value is twice the
|
|
30
|
+
* ink.
|
|
31
|
+
*/
|
|
32
|
+
type WrRadarVariant = 'polygon' | 'polar-area';
|
|
33
|
+
/** A point in the viewBox. */
|
|
34
|
+
interface Point {
|
|
35
|
+
readonly x: number;
|
|
36
|
+
readonly y: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Radar chart: several series over the same axes, each a polygon on a polar grid — or,
|
|
40
|
+
* with `variant="polar-area"`, a wedge per axis whose area is the value. For comparing a
|
|
41
|
+
* few profiles — products, players, releases — across the same handful of measures.
|
|
42
|
+
* SVG-only — no external dependency.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```html
|
|
46
|
+
* <wr-radar-chart
|
|
47
|
+
* [axes]="['Speed', 'Power', 'Range', 'Comfort', 'Price']"
|
|
48
|
+
* [series]="[
|
|
49
|
+
* { label: 'Model A', data: [80, 65, 70, 90, 55] },
|
|
50
|
+
* { label: 'Model B', data: [60, 85, 75, 60, 80] }
|
|
51
|
+
* ]"
|
|
52
|
+
* [max]="100"
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* **The geometry.** The first axis points to twelve o'clock and the rest follow
|
|
57
|
+
* clockwise, evenly spaced. The scale runs from the centre to the outer ring and
|
|
58
|
+
* includes zero, its rings on readable steps (`max` and `rings`), and every series is a
|
|
59
|
+
* polygon in its colour and its own dash: the default palette's colours sit within
|
|
60
|
+
* about 1.06:1 of each other in luminance, so a dash is what tells two outlines apart
|
|
61
|
+
* without hue, the line chart's remedy. The fills sit under every outline.
|
|
62
|
+
*
|
|
63
|
+
* **A missing value is a gap, never a guess.** A `null`, a value that is not a finite
|
|
64
|
+
* number, or one a shorter `data` does not reach, breaks the outline on either side of
|
|
65
|
+
* its axis and the series is drawn OPEN and UNFILLED: closing the polygon across the gap
|
|
66
|
+
* would draw a reading the data never took, and filling an open outline means closing it.
|
|
67
|
+
*
|
|
68
|
+
* **`variant="polar-area"` draws wedges instead of polygons.** Each axis owns an equal
|
|
69
|
+
* slice of the circle, centred on it, and each series draws one wedge per value there,
|
|
70
|
+
* the series overlaid with their fills translucent and their outlines in their own
|
|
71
|
+
* dashes — one outline round each series' wedges, so the edge two wedges share is
|
|
72
|
+
* stroked once and its dash survives. The value is the wedge's AREA: every wedge has the
|
|
73
|
+
* same angle, so its area grows with the square of its radius, and the radius is the
|
|
74
|
+
* square ROOT of the value's share of the scale — twice the value is twice the ink, where
|
|
75
|
+
* a radius proportional to the value would paint four times as much. The rings are
|
|
76
|
+
* circles, labelled with values, and they bunch towards the outside for the same reason,
|
|
77
|
+
* so a ring value that would sit closer than a line to the one outside it is left out
|
|
78
|
+
* and its ring still drawn. The scale starts at zero: a wedge grows from the centre, so
|
|
79
|
+
* a negative value has no area and sits at the centre, and the tooltip and the data
|
|
80
|
+
* table keep its figure. A missing value is a missing wedge, and every other wedge of
|
|
81
|
+
* the series is drawn and filled, since each stands on its own value. The spokes run
|
|
82
|
+
* between the wedges rather than through them.
|
|
83
|
+
*
|
|
84
|
+
* **Labels are HTML beside the drawing**, so they keep their size at any `size`: the axis
|
|
85
|
+
* names sit outside the outer ring, in a gutter round the drawing, each aligned away from
|
|
86
|
+
* the centre and ellipsised past the room it has — the tooltip and the data table carry
|
|
87
|
+
* the whole name. The ring values sit beside the first axis and are `aria-hidden`, as an
|
|
88
|
+
* axis' ticks are on every chart here. The drawing keeps its clockwise order under RTL,
|
|
89
|
+
* as every SVG chart here keeps its own — the HTML layouts (bar, bullet, treemap) are the
|
|
90
|
+
* ones that mirror — and the labels follow the drawing.
|
|
91
|
+
*
|
|
92
|
+
* **What a screen reader gets.** The drawing is one named `role="img"` — on the `<svg>`
|
|
93
|
+
* itself, as on the donut, since WebKit drops the whole subtree of an `img` wrapper and
|
|
94
|
+
* the axis names are real text beside it. The numbers are in text only in the tooltip,
|
|
95
|
+
* which is pointer only, and in the data table `dataTable` renders: say them in
|
|
96
|
+
* `ariaLabel`, or turn the table on. No part of the chart is a tab stop, unless
|
|
97
|
+
* `toggleableLegend` makes the legend rows buttons.
|
|
98
|
+
*
|
|
99
|
+
* With fewer than three axes there is no polygon to draw: the chart draws the grid
|
|
100
|
+
* alone and says so in dev mode.
|
|
101
|
+
*
|
|
102
|
+
* The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with
|
|
103
|
+
* `toggleableLegend` its rows show and hide their series through `hiddenSeries`.
|
|
104
|
+
*
|
|
105
|
+
* @see https://ngwr.dev/charts/radar-chart
|
|
106
|
+
*/
|
|
107
|
+
export declare class WrRadarChart {
|
|
108
|
+
/**
|
|
109
|
+
* The axes' names, clockwise from twelve o'clock. A series takes one value per axis,
|
|
110
|
+
* in this order. Three at least: with fewer the chart draws the grid and no series.
|
|
111
|
+
*/
|
|
112
|
+
readonly axes: import("@angular/core").InputSignal<readonly string[]>;
|
|
113
|
+
/**
|
|
114
|
+
* One polygon per series. A series with no `color` takes the next entry from the
|
|
115
|
+
* chart's palette, and each takes the next dash, the first one solid.
|
|
116
|
+
*/
|
|
117
|
+
readonly series: import("@angular/core").InputSignal<readonly WrRadarSeries[]>;
|
|
118
|
+
/**
|
|
119
|
+
* How the series are drawn. `'polygon'` joins each series' values into a polygon, one
|
|
120
|
+
* vertex per axis. `'polar-area'` gives each axis an equal-angle wedge per series whose
|
|
121
|
+
* AREA is the value — the radius grows with the square root of the value, so the ink
|
|
122
|
+
* a wedge paints is proportional to what it stands for — with the series overlaid. The
|
|
123
|
+
* legend, the toggle, the tooltip and the data table are the same in both.
|
|
124
|
+
* @default 'polygon'
|
|
125
|
+
*/
|
|
126
|
+
readonly variant: import("@angular/core").InputSignal<WrRadarVariant>;
|
|
127
|
+
/**
|
|
128
|
+
* Accessible name of the drawing. The shapes carry no text and the legend has the
|
|
129
|
+
* series names only, so this is where to say what the chart shows — or turn on
|
|
130
|
+
* `dataTable`. Falls back to `radarChart.label`, or to `radarChart.polarAreaLabel` in
|
|
131
|
+
* the polar-area variant, which is also the data table's caption.
|
|
132
|
+
*/
|
|
133
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
134
|
+
private readonly polygonAriaLabel;
|
|
135
|
+
private readonly polarAreaAriaLabel;
|
|
136
|
+
protected readonly resolvedAriaLabel: import("@angular/core").Signal<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The value of the outer ring. `0` fits the scale to the series shown, on a readable
|
|
139
|
+
* step and including zero; a value above `0` fixes it, from zero at the centre — a score
|
|
140
|
+
* out of 100, a rating out of 5 — with its rings on a readable step that divides it (see
|
|
141
|
+
* `rings`). A value outside a fixed scale is drawn on its edge, and the tooltip and the
|
|
142
|
+
* data table still give its own figure. @default 0
|
|
143
|
+
*/
|
|
144
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
145
|
+
/**
|
|
146
|
+
* About how many rings the grid draws between the centre and the outer ring, each on a
|
|
147
|
+
* readable step — 1, 2, 2.5 or 5 times a power of ten. A fitted scale aims for this many
|
|
148
|
+
* and rounds its step up onto that ladder. A fixed `max` takes the step that divides it into the count
|
|
149
|
+
* nearest this one, the fewer on a tie, so a rating out of 5 gets a ring per point and a
|
|
150
|
+
* score out of 100 a ring per 25; only a `max` that no such step divides, such as 37,
|
|
151
|
+
* is cut into exactly this many equal rings. Whole numbers from 1 to 10. @default 4
|
|
152
|
+
*/
|
|
153
|
+
readonly rings: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
154
|
+
/**
|
|
155
|
+
* The drawing's diameter in CSS pixels, at least 120. The axis names sit in a gutter
|
|
156
|
+
* round it, so the chart is wider than this by the gutter on either side; in a narrower
|
|
157
|
+
* container the drawing shrinks to fit. @default 280
|
|
158
|
+
*/
|
|
159
|
+
readonly size: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
160
|
+
/** Show the rings, the spokes and the ring values. The axis names stay. @default true */
|
|
161
|
+
readonly showGrid: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
162
|
+
/** Show the legend under the chart. @default true */
|
|
163
|
+
readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
164
|
+
/**
|
|
165
|
+
* Make each legend row a toggle button that shows and hides its series, through
|
|
166
|
+
* `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is
|
|
167
|
+
* shown, so the legend becomes one tab stop per series. @default false
|
|
168
|
+
*/
|
|
169
|
+
readonly toggleableLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
170
|
+
/**
|
|
171
|
+
* The positions in `series` of the series that are hidden. Positions rather than
|
|
172
|
+
* labels, since two series may share a label. A toggleable legend writes it, and a
|
|
173
|
+
* host may bind it with or without one: `[(hiddenSeries)]`.
|
|
174
|
+
*
|
|
175
|
+
* A hidden series is left out of everything that reads its values: it draws no
|
|
176
|
+
* polygon and no dots, it has no row in the tooltip and no column in the data table,
|
|
177
|
+
* and a fitted scale is fitted to the series still shown. The axes do not change, since
|
|
178
|
+
* they belong to the chart rather than to one series. The legend keeps the hidden
|
|
179
|
+
* series' row, struck through, so it can be shown again; the row says "hidden" to a
|
|
180
|
+
* screen reader as well. A position past the end of `series` is kept and ignored.
|
|
181
|
+
*/
|
|
182
|
+
readonly hiddenSeries: import("@angular/core").ModelSignal<readonly number[]>;
|
|
183
|
+
/**
|
|
184
|
+
* Show a dot at every value: on the polygon's vertex, or in the polar-area variant on
|
|
185
|
+
* the middle of the wedge's arc, where the value reads against the rings. @default true
|
|
186
|
+
*/
|
|
187
|
+
readonly showDots: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
188
|
+
/**
|
|
189
|
+
* Fill each closed polygon with its colour, faintly (`--wr-radar-chart-area-opacity`),
|
|
190
|
+
* under every outline — the name the line chart and the sparkline give the same fill. A
|
|
191
|
+
* series with a missing value is never filled, whatever this says: its outline is open.
|
|
192
|
+
* In the polar-area variant every wedge is filled, since the outline round them always
|
|
193
|
+
* closes, and a missing value is a missing wedge. @default true
|
|
194
|
+
*/
|
|
195
|
+
readonly showArea: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
196
|
+
/**
|
|
197
|
+
* Show a tooltip for the axis nearest the pointer: its name, and every series' value
|
|
198
|
+
* on it; an axis no series shown has a value on opens none. Pointer only — the data
|
|
199
|
+
* table is where the same numbers are for a keyboard or a screen reader. @default true
|
|
200
|
+
*/
|
|
201
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
202
|
+
/**
|
|
203
|
+
* Writes every number the chart shows: the ring values, the tooltip and the data
|
|
204
|
+
* table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ring values
|
|
205
|
+
* (`1.2K`) unless the full numbers are shorter.
|
|
206
|
+
*/
|
|
207
|
+
readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
208
|
+
/**
|
|
209
|
+
* Render the chart's figures as a table that only assistive technology reaches: a row
|
|
210
|
+
* per axis, headed by its name, and a column per series shown, every value written the
|
|
211
|
+
* way the tooltip writes it. A missing value is an empty cell.
|
|
212
|
+
*
|
|
213
|
+
* The drawing is one named `role="img"`, which hides everything inside it, so without
|
|
214
|
+
* the table the numbers are nowhere a screen reader can walk. It is rendered beside the
|
|
215
|
+
* drawing, clipped to nothing: it takes no room, draws nothing and holds no tab stop.
|
|
216
|
+
* A hidden series leaves it. @default false
|
|
217
|
+
*/
|
|
218
|
+
readonly dataTable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
219
|
+
/** The ring values' compact ticks and the exact figures, in `LOCALE_ID` unless `valueFormat` is given. */
|
|
220
|
+
private readonly numbers;
|
|
221
|
+
private readonly svg;
|
|
222
|
+
private readonly host;
|
|
223
|
+
/**
|
|
224
|
+
* The drawing's laid-out width and a ring value's line box, both in CSS pixels, once a
|
|
225
|
+
* browser has measured them: the drawing shrinks below `size` in a narrow container, and
|
|
226
|
+
* how close two ring values may sit is a question of pixels, not of the viewBox.
|
|
227
|
+
*/
|
|
228
|
+
private readonly measured;
|
|
229
|
+
constructor();
|
|
230
|
+
/** Every axis, clockwise from twelve o'clock: the drawing's y runs downwards, so a growing angle turns clockwise. */
|
|
231
|
+
private readonly axisGeometry;
|
|
232
|
+
/** Whether the series are wedges rather than polygons. Anything but `'polar-area'` is the polygon. */
|
|
233
|
+
protected readonly polar: import("@angular/core").Signal<boolean>;
|
|
234
|
+
/**
|
|
235
|
+
* Whether there are axes enough for a polygon: three make the smallest one. The
|
|
236
|
+
* polar-area variant keeps the same floor, so the two draw the same data.
|
|
237
|
+
*/
|
|
238
|
+
private readonly drawable;
|
|
239
|
+
/**
|
|
240
|
+
* Every series, resolved: its palette colour, its dash, and one value per axis with
|
|
241
|
+
* `null` where it is missing. Hidden ones included, since the legend lists them.
|
|
242
|
+
*/
|
|
243
|
+
private readonly resolvedSeries;
|
|
244
|
+
/** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */
|
|
245
|
+
private readonly visibleSeries;
|
|
246
|
+
/**
|
|
247
|
+
* The scale from the centre to the outer ring. A fixed `max` runs from zero, its rings
|
|
248
|
+
* on the readable step that divides it (`fixedStep`). Otherwise it is `chartAxis` over
|
|
249
|
+
* the series shown, including zero: the centre is zero unless a value is negative, and
|
|
250
|
+
* then the scale's own minimum, which a radar shows as a smaller polygon rather than as
|
|
251
|
+
* anything below a baseline — readable, and worth a fixed `max` where negative values
|
|
252
|
+
* are the norm. The polar-area variant always starts at zero, since a wedge grows from
|
|
253
|
+
* the centre: it is fitted to the largest value alone, and a negative value has no area.
|
|
254
|
+
* With nothing to fit — or, for wedges, nothing above zero — it is the empty 0 to 1 frame.
|
|
255
|
+
*/
|
|
256
|
+
private readonly scale;
|
|
257
|
+
/**
|
|
258
|
+
* How far from the centre a value sits, in the viewBox, held to the scale: in proportion
|
|
259
|
+
* to the value's share of the scale for a polygon, and to its square root for a wedge, so
|
|
260
|
+
* a wedge's area — which grows with the square of its radius — is in proportion to the
|
|
261
|
+
* value. The rings go through here too, so a ring labelled 25 out of 100 sits at half
|
|
262
|
+
* the radius in the polar-area variant and a wedge reaching it has a quarter of the
|
|
263
|
+
* outer ring's area.
|
|
264
|
+
*/
|
|
265
|
+
private radius;
|
|
266
|
+
/**
|
|
267
|
+
* The shapes, one per series shown that has at least one value: its outline, whether
|
|
268
|
+
* that outline is closed, and the point at each axis (`null` where the value is missing).
|
|
269
|
+
* Nothing at all with fewer than three axes.
|
|
270
|
+
*
|
|
271
|
+
* A polygon is closed only with a value on every axis. In the polar-area variant the
|
|
272
|
+
* outline is the silhouette of the series' wedges, which always closes, and the point
|
|
273
|
+
* at an axis is the middle of that wedge's arc — where its dot goes and its value reads
|
|
274
|
+
* against the rings.
|
|
275
|
+
*/
|
|
276
|
+
protected readonly shapes: import("@angular/core").Signal<{
|
|
277
|
+
index: number;
|
|
278
|
+
color: string;
|
|
279
|
+
dash: string;
|
|
280
|
+
points: (Point | null)[];
|
|
281
|
+
closed: boolean;
|
|
282
|
+
d: string;
|
|
283
|
+
}[]>;
|
|
284
|
+
/**
|
|
285
|
+
* The rings, from the outer one in: a polygon through every axis, or a circle while
|
|
286
|
+
* there are fewer than three axes to follow — and always a circle in the polar-area
|
|
287
|
+
* variant, whose wedges end in arcs. The centre is the scale's minimum and gets no ring.
|
|
288
|
+
*/
|
|
289
|
+
protected readonly ringPaths: import("@angular/core").Signal<string[]>;
|
|
290
|
+
/**
|
|
291
|
+
* A spoke per axis, from the centre to the outer ring: along the axis for a polygon,
|
|
292
|
+
* and on the edge between two wedges in the polar-area variant, where a spoke through
|
|
293
|
+
* the middle of a wedge would cut its area in two.
|
|
294
|
+
*/
|
|
295
|
+
protected readonly spokes: import("@angular/core").Signal<Point[]>;
|
|
296
|
+
/**
|
|
297
|
+
* The ring values, from the outer ring in, each with the height of its ring as a
|
|
298
|
+
* percentage of the drawing, where the first axis crosses it. Decided for the whole
|
|
299
|
+
* scale, as an axis' ticks are (`useChartNumbers().ticks`).
|
|
300
|
+
*
|
|
301
|
+
* In the polar-area variant the rings sit at square-root radii, which bunch towards the
|
|
302
|
+
* outer ring, so a value closer than one line to the last one kept is left out, walking
|
|
303
|
+
* inwards from the outer ring — whose value always stays — while its ring is still
|
|
304
|
+
* drawn. The distance is in pixels of the drawing as laid out (`measured`), or of `size`
|
|
305
|
+
* until a browser has measured it. The polygon's rings are evenly spaced, and `rings`
|
|
306
|
+
* is how a host spaces them.
|
|
307
|
+
*/
|
|
308
|
+
protected readonly ringLabels: import("@angular/core").Signal<{
|
|
309
|
+
text: string;
|
|
310
|
+
r: number;
|
|
311
|
+
y: number;
|
|
312
|
+
}[]>;
|
|
313
|
+
/**
|
|
314
|
+
* Each axis name with the end of its spoke as percentages of the drawing (`x`, `y`) and
|
|
315
|
+
* the direction it points (`cos`, `sin`): the stylesheet moves the label out from the
|
|
316
|
+
* end along that direction and aligns it away from the centre — a name at three o'clock
|
|
317
|
+
* starts at the spoke, one at twelve is centred over it.
|
|
318
|
+
*/
|
|
319
|
+
protected readonly axisLabels: import("@angular/core").Signal<{
|
|
320
|
+
label: string;
|
|
321
|
+
x: number;
|
|
322
|
+
y: number;
|
|
323
|
+
cos: number;
|
|
324
|
+
sin: number;
|
|
325
|
+
}[]>;
|
|
326
|
+
/** The legend's rows: every series, hidden ones included, keyed by its own dash. */
|
|
327
|
+
protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
|
|
328
|
+
/**
|
|
329
|
+
* The figures for `dataTable`: the drawing's name as the caption, a column per series
|
|
330
|
+
* shown and a row per axis. Each cell is the series' own value, even where a fixed scale
|
|
331
|
+
* draws it on the edge, written as the tooltip writes it, and empty where it is missing.
|
|
332
|
+
* With every series hidden there is nothing to tabulate, and no rows.
|
|
333
|
+
*/
|
|
334
|
+
protected readonly tableData: import("@angular/core").Signal<WrChartTableData>;
|
|
335
|
+
/**
|
|
336
|
+
* One tooltip for the whole chart, for the axis nearest the pointer: the axis' name as
|
|
337
|
+
* its heading and a row per series shown with a value there. It points at the end of
|
|
338
|
+
* the axis, on the side the axis faces — above for one in the top quarter, beside it
|
|
339
|
+
* for the two at three and nine o'clock — so the chip sits outside the web, over the
|
|
340
|
+
* axis' own name, which it repeats in full.
|
|
341
|
+
*
|
|
342
|
+
* The axis is chosen by POSITION, anywhere over the web: by angle, the nearest axis to
|
|
343
|
+
* the pointer — in the polar-area variant, the axis whose wedges the pointer is over. So
|
|
344
|
+
* the helper is told which axis any spot reads, and a pointer moving round the chart
|
|
345
|
+
* scrubs from axis to axis.
|
|
346
|
+
*/
|
|
347
|
+
protected readonly tip: import("ngwr/popover").WrChartTooltip;
|
|
348
|
+
/**
|
|
349
|
+
* What the open tooltip marks on the drawing: its axis' spoke, and a ring round every
|
|
350
|
+
* series' value on it.
|
|
351
|
+
*/
|
|
352
|
+
protected readonly hover: import("@angular/core").Signal<{
|
|
353
|
+
end: Point;
|
|
354
|
+
points: {
|
|
355
|
+
index: number;
|
|
356
|
+
color: string;
|
|
357
|
+
d: string;
|
|
358
|
+
}[];
|
|
359
|
+
} | null>;
|
|
360
|
+
/**
|
|
361
|
+
* The axis under the pointer, heard on the drawing. A MOUSE event, as every chart's is:
|
|
362
|
+
* a tap fires the compatibility `mousemove` and no `pointermove`. Off the web — the
|
|
363
|
+
* drawing's corners, outside the outer ring and its dots — the tooltip lets go.
|
|
364
|
+
*/
|
|
365
|
+
protected onPointerMove(event: MouseEvent): void;
|
|
366
|
+
/** A zero-length line at a point, which a round cap paints as a dot of the stroke's width. */
|
|
367
|
+
protected dotPath(point: Point): string;
|
|
368
|
+
/**
|
|
369
|
+
* The axis nearest a viewport point by angle, measured from the drawing's centre, or
|
|
370
|
+
* `null` past the outer ring (with room for its dots), with nothing drawn, with no box
|
|
371
|
+
* laid out to measure, or on an axis no series shown has a value on — so the tooltip
|
|
372
|
+
* lets go there as it does off the web.
|
|
373
|
+
*/
|
|
374
|
+
private axisAt;
|
|
375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrRadarChart, never>;
|
|
376
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrRadarChart, "wr-radar-chart", never, {
|
|
377
|
+
"axes": {
|
|
378
|
+
"alias": "axes";
|
|
379
|
+
"required": false;
|
|
380
|
+
"isSignal": true;
|
|
381
|
+
};
|
|
382
|
+
"series": {
|
|
383
|
+
"alias": "series";
|
|
384
|
+
"required": false;
|
|
385
|
+
"isSignal": true;
|
|
386
|
+
};
|
|
387
|
+
"variant": {
|
|
388
|
+
"alias": "variant";
|
|
389
|
+
"required": false;
|
|
390
|
+
"isSignal": true;
|
|
391
|
+
};
|
|
392
|
+
"ariaLabel": {
|
|
393
|
+
"alias": "ariaLabel";
|
|
394
|
+
"required": false;
|
|
395
|
+
"isSignal": true;
|
|
396
|
+
};
|
|
397
|
+
"max": {
|
|
398
|
+
"alias": "max";
|
|
399
|
+
"required": false;
|
|
400
|
+
"isSignal": true;
|
|
401
|
+
};
|
|
402
|
+
"rings": {
|
|
403
|
+
"alias": "rings";
|
|
404
|
+
"required": false;
|
|
405
|
+
"isSignal": true;
|
|
406
|
+
};
|
|
407
|
+
"size": {
|
|
408
|
+
"alias": "size";
|
|
409
|
+
"required": false;
|
|
410
|
+
"isSignal": true;
|
|
411
|
+
};
|
|
412
|
+
"showGrid": {
|
|
413
|
+
"alias": "showGrid";
|
|
414
|
+
"required": false;
|
|
415
|
+
"isSignal": true;
|
|
416
|
+
};
|
|
417
|
+
"showLegend": {
|
|
418
|
+
"alias": "showLegend";
|
|
419
|
+
"required": false;
|
|
420
|
+
"isSignal": true;
|
|
421
|
+
};
|
|
422
|
+
"toggleableLegend": {
|
|
423
|
+
"alias": "toggleableLegend";
|
|
424
|
+
"required": false;
|
|
425
|
+
"isSignal": true;
|
|
426
|
+
};
|
|
427
|
+
"hiddenSeries": {
|
|
428
|
+
"alias": "hiddenSeries";
|
|
429
|
+
"required": false;
|
|
430
|
+
"isSignal": true;
|
|
431
|
+
};
|
|
432
|
+
"showDots": {
|
|
433
|
+
"alias": "showDots";
|
|
434
|
+
"required": false;
|
|
435
|
+
"isSignal": true;
|
|
436
|
+
};
|
|
437
|
+
"showArea": {
|
|
438
|
+
"alias": "showArea";
|
|
439
|
+
"required": false;
|
|
440
|
+
"isSignal": true;
|
|
441
|
+
};
|
|
442
|
+
"tooltip": {
|
|
443
|
+
"alias": "tooltip";
|
|
444
|
+
"required": false;
|
|
445
|
+
"isSignal": true;
|
|
446
|
+
};
|
|
447
|
+
"valueFormat": {
|
|
448
|
+
"alias": "valueFormat";
|
|
449
|
+
"required": false;
|
|
450
|
+
"isSignal": true;
|
|
451
|
+
};
|
|
452
|
+
"dataTable": {
|
|
453
|
+
"alias": "dataTable";
|
|
454
|
+
"required": false;
|
|
455
|
+
"isSignal": true;
|
|
456
|
+
};
|
|
457
|
+
}, {
|
|
458
|
+
"hiddenSeries": "hiddenSeriesChange";
|
|
459
|
+
}, never, never, true, never>;
|
|
460
|
+
}
|
|
461
|
+
export type { WrRadarSeries, WrRadarVariant };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
import { WrChartLegendHarness } from "ngwr/charts/chart-legend/testing";
|
|
3
|
+
/** Narrows which `<wr-scatter-chart>` a harness query matches. */
|
|
4
|
+
interface WrScatterChartHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
/** Match the plot's accessible name. */
|
|
6
|
+
readonly ariaLabel?: string | RegExp;
|
|
7
|
+
/** Match a chart whose legend holds this series. */
|
|
8
|
+
readonly seriesLabel?: string | RegExp;
|
|
9
|
+
}
|
|
10
|
+
/** One drawn point, as {@link WrScatterChartHarness.getPoints} reads it off the marker the component wrote. */
|
|
11
|
+
interface WrScatterChartHarnessPoint {
|
|
12
|
+
/** The point's series, as its position in `series` — hidden series keep their positions. */
|
|
13
|
+
readonly series: number;
|
|
14
|
+
/** The point's x value. */
|
|
15
|
+
readonly x: number;
|
|
16
|
+
/** The point's y value. */
|
|
17
|
+
readonly y: number;
|
|
18
|
+
/** The point's size, or `null` when it is drawn at the plain point size. */
|
|
19
|
+
readonly size: number | null;
|
|
20
|
+
/** The marker's shape: `'circle'`, `'square'`, `'triangle'`, `'diamond'`, `'cross'` or `'triangle-down'`. */
|
|
21
|
+
readonly marker: string;
|
|
22
|
+
/** The marker's fill, as the component wrote it. */
|
|
23
|
+
readonly color: string | null;
|
|
24
|
+
/** The marker's radius in px: the area every shape shares with a circle of this radius. */
|
|
25
|
+
readonly radius: number;
|
|
26
|
+
/** Where the point's centre sits, as a percentage of the drawing's width from its left edge. */
|
|
27
|
+
readonly left: number;
|
|
28
|
+
/** Where the point's centre sits, as a percentage of the drawing's height from its top edge. */
|
|
29
|
+
readonly top: number;
|
|
30
|
+
}
|
|
31
|
+
/** The axes' names as drawn, each `null` when the chart draws none (`xLabel` / `yLabel` not given). */
|
|
32
|
+
interface WrScatterChartAxisTitles {
|
|
33
|
+
readonly x: string | null;
|
|
34
|
+
readonly y: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* One row of the chart's data table (`dataTable`): the point it reads, under its series'
|
|
38
|
+
* name, with one cell per column.
|
|
39
|
+
*/
|
|
40
|
+
interface WrScatterChartTableRow {
|
|
41
|
+
/** The name of the series the row belongs to — the group header over its rows. */
|
|
42
|
+
readonly series: string;
|
|
43
|
+
/** The row header: the point's `label`, or its position in the series from 1. */
|
|
44
|
+
readonly header: string;
|
|
45
|
+
/** The point's x, y and — when the table has the column — size, written as the tooltip writes them. */
|
|
46
|
+
readonly cells: readonly string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Test harness for `<wr-scatter-chart>`.
|
|
50
|
+
*
|
|
51
|
+
* **Points are read off what the component WROTE, never off a layout.** jsdom lays
|
|
52
|
+
* nothing out, so a measured position would read 0 for a working chart and a broken one
|
|
53
|
+
* alike. Every marker is a nested `<svg>` the component places by percentage, and it
|
|
54
|
+
* carries the point's values and shape in `data-*` attributes beside that placement —
|
|
55
|
+
* so {@link getPoints} answers both questions a spec has: which point is this, and where
|
|
56
|
+
* did the chart put it. A point at the right value and the wrong percentage is exactly
|
|
57
|
+
* the defect worth catching. The marker's path `d` is not read: its numbers are a
|
|
58
|
+
* rendering detail of each shape.
|
|
59
|
+
*
|
|
60
|
+
* **There is deliberately no hover method.** The tooltip opens on the point nearest the
|
|
61
|
+
* pointer, measured against the drawing's box, which jsdom reports as 0×0 — so every
|
|
62
|
+
* synthetic move resolves to nothing, and a `hoverPoint()` would answer "no tooltip" for
|
|
63
|
+
* a working chart. A spec that needs the tooltip stubs the drawing's
|
|
64
|
+
* `getBoundingClientRect` and dispatches the `mousemove` itself, as the component's own
|
|
65
|
+
* spec does.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const chart = await loader.getHarness(WrScatterChartHarness);
|
|
70
|
+
*
|
|
71
|
+
* expect(await chart.getPointCount()).toBe(6);
|
|
72
|
+
* expect(await chart.getAxisTitles()).toEqual({ x: 'Price', y: 'Rating' });
|
|
73
|
+
* expect((await chart.getPoints())[0]).toMatchObject({ x: 899, y: 4.1, marker: 'circle' });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @see https://ngwr.dev/guides/testing
|
|
77
|
+
*/
|
|
78
|
+
export declare class WrScatterChartHarness extends ComponentHarness {
|
|
79
|
+
static hostSelector: string;
|
|
80
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
81
|
+
static with(options?: WrScatterChartHarnessFilters): HarnessPredicate<WrScatterChartHarness>;
|
|
82
|
+
/** The plot's accessible name — the only name the drawing has. */
|
|
83
|
+
getAccessibleName(): Promise<string | null>;
|
|
84
|
+
/** Whether the legend is rendered (`showLegend`, and at least one series). */
|
|
85
|
+
hasLegend(): Promise<boolean>;
|
|
86
|
+
/** The series names from the legend, in order — hidden series included, since their rows stay. */
|
|
87
|
+
getSeriesLabels(): Promise<string[]>;
|
|
88
|
+
/**
|
|
89
|
+
* The legend, as a {@link WrChartLegendHarness}: each row's marker and hidden state
|
|
90
|
+
* and, with `toggleableLegend`, the toggles that show and hide a series.
|
|
91
|
+
*
|
|
92
|
+
* Throws when the chart draws no legend (`showLegend` off, or no series) rather than
|
|
93
|
+
* answering with an empty one: {@link hasLegend} is the question for that.
|
|
94
|
+
*/
|
|
95
|
+
getLegendHarness(): Promise<WrChartLegendHarness>;
|
|
96
|
+
/**
|
|
97
|
+
* How many points were drawn: every point of every series shown whose `x` and `y` are
|
|
98
|
+
* finite. A hidden series draws none, and keeps its legend row.
|
|
99
|
+
*/
|
|
100
|
+
getPointCount(): Promise<number>;
|
|
101
|
+
/**
|
|
102
|
+
* Every drawn point, in DRAWING order — largest first, then by series — with its values,
|
|
103
|
+
* its marker and the percentages the component placed its centre at.
|
|
104
|
+
*
|
|
105
|
+
* Throws on a marker missing any of what the component writes on every one, rather than
|
|
106
|
+
* answering with a `NaN` a spec could compare against.
|
|
107
|
+
*/
|
|
108
|
+
getPoints(): Promise<WrScatterChartHarnessPoint[]>;
|
|
109
|
+
/** Whether the gridlines are drawn (`showGrid`). */
|
|
110
|
+
hasGrid(): Promise<boolean>;
|
|
111
|
+
/** The x-axis tick labels, left to right; `[]` with `showGrid` off. */
|
|
112
|
+
getXTicks(): Promise<string[]>;
|
|
113
|
+
/** The y-axis tick labels, top to bottom; `[]` with `showGrid` off. */
|
|
114
|
+
getYTicks(): Promise<string[]>;
|
|
115
|
+
/**
|
|
116
|
+
* The axes' names as drawn. The chart draws a name only when `xLabel` or `yLabel` is
|
|
117
|
+
* given, so the catalog's fallbacks, which the tooltip and the data table use, never
|
|
118
|
+
* appear here.
|
|
119
|
+
*/
|
|
120
|
+
getAxisTitles(): Promise<WrScatterChartAxisTitles>;
|
|
121
|
+
/** Whether the hidden data table is rendered (`dataTable`). */
|
|
122
|
+
hasDataTable(): Promise<boolean>;
|
|
123
|
+
/**
|
|
124
|
+
* The data table's column headings: x, y, and size when a point shown has one.
|
|
125
|
+
*
|
|
126
|
+
* Throws when the chart renders no table (`dataTable` off), rather than answering with
|
|
127
|
+
* no columns.
|
|
128
|
+
*/
|
|
129
|
+
getTableColumns(): Promise<string[]>;
|
|
130
|
+
/**
|
|
131
|
+
* The data table's rows, one per point shown, as a screen reader walks them: the
|
|
132
|
+
* series' name over its group, the row header and the cells. Hidden series leave the
|
|
133
|
+
* table.
|
|
134
|
+
*
|
|
135
|
+
* Throws when the chart renders no table (`dataTable` off), for the reason
|
|
136
|
+
* {@link getTableColumns} gives.
|
|
137
|
+
*/
|
|
138
|
+
getTableRows(): Promise<WrScatterChartTableRow[]>;
|
|
139
|
+
/**
|
|
140
|
+
* The plot's height in pixels, read off the `style` ATTRIBUTE the component wrote,
|
|
141
|
+
* not through `getCssValue()`, which answers from the laid-out box and so differs
|
|
142
|
+
* between jsdom and a browser.
|
|
143
|
+
*/
|
|
144
|
+
getPlotHeight(): Promise<number>;
|
|
145
|
+
private assertDataTable;
|
|
146
|
+
}
|
|
147
|
+
export type { WrScatterChartAxisTitles, WrScatterChartHarnessFilters, WrScatterChartHarnessPoint, WrScatterChartTableRow };
|