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,517 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, LOCALE_ID, ViewEncapsulation, computed, effect, inject, input, isDevMode, viewChildren } from "@angular/core";
|
|
3
|
+
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
|
+
import { readI18nText, useI18nFormatter, useI18nText } from "ngwr/i18n";
|
|
5
|
+
import { WrChartTable, chartAxis, useChartNumbers } from "ngwr/charts/core";
|
|
6
|
+
import { useChartTooltip } from "ngwr/popover";
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
*
|
|
10
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
11
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
12
|
+
*/
|
|
13
|
+
const FENCE = 1.5;
|
|
14
|
+
function quantile(sorted, p) {
|
|
15
|
+
const position = (sorted.length - 1) * p;
|
|
16
|
+
const below = Math.floor(position);
|
|
17
|
+
const above = Math.ceil(position);
|
|
18
|
+
return sorted[below] + (position - below) * (sorted[above] - sorted[below]);
|
|
19
|
+
}
|
|
20
|
+
function boxplotStats(values) {
|
|
21
|
+
const sorted = values.filter((value) => Number.isFinite(value)).sort((a, b) => a - b);
|
|
22
|
+
if (sorted.length === 0) return null;
|
|
23
|
+
const q1 = quantile(sorted, .25);
|
|
24
|
+
const median = quantile(sorted, .5);
|
|
25
|
+
const q3 = quantile(sorted, .75);
|
|
26
|
+
const reach = FENCE * (q3 - q1);
|
|
27
|
+
const low = q1 - reach;
|
|
28
|
+
const high = q3 + reach;
|
|
29
|
+
const inside = sorted.filter((value) => value >= low && value <= high);
|
|
30
|
+
return {
|
|
31
|
+
min: Math.min(q1, inside[0] ?? q1),
|
|
32
|
+
q1,
|
|
33
|
+
median,
|
|
34
|
+
q3,
|
|
35
|
+
max: Math.max(q3, inside.at(-1) ?? q3),
|
|
36
|
+
outliers: sorted.filter((value) => value < low || value > high)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @license
|
|
41
|
+
*
|
|
42
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
43
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
44
|
+
*/
|
|
45
|
+
const TICK_COUNT = 4;
|
|
46
|
+
const TICK_ROOM = 40;
|
|
47
|
+
const TOOLTIP_OUTLIERS = 3;
|
|
48
|
+
const percent = (value) => Math.round(value * 1e3) / 1e3;
|
|
49
|
+
const span = (a, b) => ({
|
|
50
|
+
top: Math.min(a, b),
|
|
51
|
+
bottom: Math.max(a, b)
|
|
52
|
+
});
|
|
53
|
+
function summarise(group) {
|
|
54
|
+
const given = group.stats;
|
|
55
|
+
if (given) {
|
|
56
|
+
const { min, q1, median, q3, max } = given;
|
|
57
|
+
if (![
|
|
58
|
+
min,
|
|
59
|
+
q1,
|
|
60
|
+
median,
|
|
61
|
+
q3,
|
|
62
|
+
max
|
|
63
|
+
].every((value) => Number.isFinite(value))) return null;
|
|
64
|
+
return {
|
|
65
|
+
min,
|
|
66
|
+
q1,
|
|
67
|
+
median,
|
|
68
|
+
q3,
|
|
69
|
+
max,
|
|
70
|
+
outliers: (given.outliers ?? []).filter((value) => Number.isFinite(value)).sort((a, b) => a - b)
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return group.values ? boxplotStats(group.values) : null;
|
|
74
|
+
}
|
|
75
|
+
var WrBoxplotChart = class WrBoxplotChart {
|
|
76
|
+
groups = input([], ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
|
|
77
|
+
ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
78
|
+
resolvedAriaLabel = useI18nText(this.ariaLabel, "boxplotChart.label", "Box plot");
|
|
79
|
+
xLabel = input(null, ...ngDevMode ? [{ debugName: "xLabel" }] : /* istanbul ignore next */ []);
|
|
80
|
+
yLabel = input(null, ...ngDevMode ? [{ debugName: "yLabel" }] : /* istanbul ignore next */ []);
|
|
81
|
+
xName = useI18nText(this.xLabel, "boxplotChart.group", "Group");
|
|
82
|
+
upperName = readI18nText("boxplotChart.upperWhisker", "Upper whisker");
|
|
83
|
+
q3Name = readI18nText("boxplotChart.q3", "Q3");
|
|
84
|
+
medianName = readI18nText("boxplotChart.median", "Median");
|
|
85
|
+
q1Name = readI18nText("boxplotChart.q1", "Q1");
|
|
86
|
+
lowerName = readI18nText("boxplotChart.lowerWhisker", "Lower whisker");
|
|
87
|
+
outliersName = readI18nText("boxplotChart.outliers", "Outliers");
|
|
88
|
+
valueFormat = input(null, ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
89
|
+
numbers = useChartNumbers(this.valueFormat);
|
|
90
|
+
locale = inject(LOCALE_ID);
|
|
91
|
+
counts = new Intl.NumberFormat(this.locale);
|
|
92
|
+
moreOutliers = useI18nFormatter("boxplotChart.moreOutliers", "+{{count}} more");
|
|
93
|
+
list = new Intl.ListFormat(this.locale, {
|
|
94
|
+
type: "conjunction",
|
|
95
|
+
style: "narrow"
|
|
96
|
+
});
|
|
97
|
+
color = input("var(--wr-color-primary)", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
98
|
+
height = input(240, {
|
|
99
|
+
...ngDevMode ? { debugName: "height" } : /* istanbul ignore next */ {},
|
|
100
|
+
transform: (v) => Math.max(80, coerceNumberProperty(v, 240))
|
|
101
|
+
});
|
|
102
|
+
showGrid = input(true, {
|
|
103
|
+
...ngDevMode ? { debugName: "showGrid" } : /* istanbul ignore next */ {},
|
|
104
|
+
transform: coerceBooleanProperty
|
|
105
|
+
});
|
|
106
|
+
tooltip = input(true, {
|
|
107
|
+
...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
|
|
108
|
+
transform: coerceBooleanProperty
|
|
109
|
+
});
|
|
110
|
+
dataTable = input(false, {
|
|
111
|
+
...ngDevMode ? { debugName: "dataTable" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: coerceBooleanProperty
|
|
113
|
+
});
|
|
114
|
+
groupEls = viewChildren("group", ...ngDevMode ? [{ debugName: "groupEls" }] : /* istanbul ignore next */ []);
|
|
115
|
+
resolvedGroups = computed(() => this.groups().map((group, index) => ({
|
|
116
|
+
index,
|
|
117
|
+
label: group.label,
|
|
118
|
+
color: group.color ?? this.color(),
|
|
119
|
+
stats: summarise(group)
|
|
120
|
+
})), ...ngDevMode ? [{ debugName: "resolvedGroups" }] : /* istanbul ignore next */ []);
|
|
121
|
+
axis = computed(() => {
|
|
122
|
+
let min = Number.POSITIVE_INFINITY;
|
|
123
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
124
|
+
for (const { stats } of this.resolvedGroups()) {
|
|
125
|
+
if (!stats) continue;
|
|
126
|
+
for (const value of [
|
|
127
|
+
stats.min,
|
|
128
|
+
stats.q1,
|
|
129
|
+
stats.median,
|
|
130
|
+
stats.q3,
|
|
131
|
+
stats.max,
|
|
132
|
+
...stats.outliers
|
|
133
|
+
]) {
|
|
134
|
+
if (value < min) min = value;
|
|
135
|
+
if (value > max) max = value;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const tickCount = Math.min(TICK_COUNT, Math.max(2, Math.floor(this.height() / TICK_ROOM)));
|
|
139
|
+
return chartAxis(min, max, {
|
|
140
|
+
symmetric: true,
|
|
141
|
+
tickCount
|
|
142
|
+
});
|
|
143
|
+
}, ...ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []);
|
|
144
|
+
drawnGroups = computed(() => {
|
|
145
|
+
const groups = this.resolvedGroups();
|
|
146
|
+
const { min, max } = this.axis();
|
|
147
|
+
const top = (value) => percent((max - value) / (max - min) * 100);
|
|
148
|
+
const slot = groups.length > 0 ? 100 / groups.length : 100;
|
|
149
|
+
return groups.map((group) => {
|
|
150
|
+
const s = group.stats;
|
|
151
|
+
let marks = null;
|
|
152
|
+
if (s) {
|
|
153
|
+
const outliers = s.outliers.map((value) => ({
|
|
154
|
+
value,
|
|
155
|
+
top: top(value)
|
|
156
|
+
}));
|
|
157
|
+
const all = [
|
|
158
|
+
s.max,
|
|
159
|
+
s.q3,
|
|
160
|
+
s.median,
|
|
161
|
+
s.q1,
|
|
162
|
+
s.min,
|
|
163
|
+
...s.outliers
|
|
164
|
+
].map(top);
|
|
165
|
+
marks = {
|
|
166
|
+
upper: span(top(s.max), top(s.q3)),
|
|
167
|
+
lower: span(top(s.q1), top(s.min)),
|
|
168
|
+
box: span(top(s.q3), top(s.q1)),
|
|
169
|
+
max: top(s.max),
|
|
170
|
+
median: top(s.median),
|
|
171
|
+
min: top(s.min),
|
|
172
|
+
outliers,
|
|
173
|
+
extent: {
|
|
174
|
+
top: Math.min(...all),
|
|
175
|
+
bottom: Math.max(...all)
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
...group,
|
|
181
|
+
start: percent(group.index * slot),
|
|
182
|
+
slot: percent(slot),
|
|
183
|
+
marks
|
|
184
|
+
};
|
|
185
|
+
});
|
|
186
|
+
}, ...ngDevMode ? [{ debugName: "drawnGroups" }] : /* istanbul ignore next */ []);
|
|
187
|
+
yTicks = computed(() => {
|
|
188
|
+
const { min, max, step, ticks } = this.axis();
|
|
189
|
+
const labels = this.numbers.ticks(ticks, step);
|
|
190
|
+
return ticks.map((value, i) => ({
|
|
191
|
+
label: labels[i],
|
|
192
|
+
top: percent((max - value) / (max - min) * 100)
|
|
193
|
+
}));
|
|
194
|
+
}, ...ngDevMode ? [{ debugName: "yTicks" }] : /* istanbul ignore next */ []);
|
|
195
|
+
tip = useChartTooltip(this.tooltip, (index) => {
|
|
196
|
+
const group = this.drawnGroups()[index];
|
|
197
|
+
const anchor = this.groupEls()[index]?.nativeElement.querySelector(".wr-boxplot-chart__extent") ?? null;
|
|
198
|
+
if (!group?.stats || !anchor) return null;
|
|
199
|
+
const { stats } = group;
|
|
200
|
+
const rows = [
|
|
201
|
+
{
|
|
202
|
+
label: this.upperName(),
|
|
203
|
+
value: this.numbers.value(stats.max)
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
label: this.q3Name(),
|
|
207
|
+
value: this.numbers.value(stats.q3)
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
label: this.medianName(),
|
|
211
|
+
value: this.numbers.value(stats.median)
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
label: this.q1Name(),
|
|
215
|
+
value: this.numbers.value(stats.q1)
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
label: this.lowerName(),
|
|
219
|
+
value: this.numbers.value(stats.min)
|
|
220
|
+
}
|
|
221
|
+
];
|
|
222
|
+
if (stats.outliers.length > 0) {
|
|
223
|
+
const shown = stats.outliers.slice(0, TOOLTIP_OUTLIERS).map((value) => this.numbers.value(value));
|
|
224
|
+
const rest = stats.outliers.length - shown.length;
|
|
225
|
+
if (rest > 0) shown.push(this.moreOutliers({ count: this.counts.format(rest) }));
|
|
226
|
+
shown.forEach((value, i) => rows.push({
|
|
227
|
+
label: i === 0 ? this.outliersName() : "",
|
|
228
|
+
value
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
datum: {
|
|
233
|
+
label: group.label,
|
|
234
|
+
value: "",
|
|
235
|
+
color: group.color,
|
|
236
|
+
rows
|
|
237
|
+
},
|
|
238
|
+
anchor
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
activeGroup = computed(() => {
|
|
242
|
+
const index = this.tip.active();
|
|
243
|
+
return index !== null && this.drawnGroups()[index]?.marks ? index : null;
|
|
244
|
+
}, ...ngDevMode ? [{ debugName: "activeGroup" }] : /* istanbul ignore next */ []);
|
|
245
|
+
tableData = computed(() => {
|
|
246
|
+
const groups = this.resolvedGroups();
|
|
247
|
+
const withOutliers = groups.some(({ stats }) => (stats?.outliers.length ?? 0) > 0);
|
|
248
|
+
const columns = [
|
|
249
|
+
this.lowerName(),
|
|
250
|
+
this.q1Name(),
|
|
251
|
+
this.medianName(),
|
|
252
|
+
this.q3Name(),
|
|
253
|
+
this.upperName()
|
|
254
|
+
];
|
|
255
|
+
if (withOutliers) columns.push(this.outliersName());
|
|
256
|
+
const value = (v) => this.numbers.value(v);
|
|
257
|
+
return {
|
|
258
|
+
caption: this.resolvedAriaLabel(),
|
|
259
|
+
corner: this.xName(),
|
|
260
|
+
columns,
|
|
261
|
+
groups: [{ rows: groups.map(({ label, stats }) => {
|
|
262
|
+
if (!stats) return {
|
|
263
|
+
header: label,
|
|
264
|
+
cells: columns.map(() => "")
|
|
265
|
+
};
|
|
266
|
+
const cells = [
|
|
267
|
+
stats.min,
|
|
268
|
+
stats.q1,
|
|
269
|
+
stats.median,
|
|
270
|
+
stats.q3,
|
|
271
|
+
stats.max
|
|
272
|
+
].map(value);
|
|
273
|
+
if (withOutliers) cells.push(this.list.format(stats.outliers.map(value)));
|
|
274
|
+
return {
|
|
275
|
+
header: label,
|
|
276
|
+
cells
|
|
277
|
+
};
|
|
278
|
+
}) }]
|
|
279
|
+
};
|
|
280
|
+
}, ...ngDevMode ? [{ debugName: "tableData" }] : /* istanbul ignore next */ []);
|
|
281
|
+
constructor() {
|
|
282
|
+
if (isDevMode()) {
|
|
283
|
+
const warned = /* @__PURE__ */ new Set();
|
|
284
|
+
effect(() => {
|
|
285
|
+
for (const group of this.groups()) {
|
|
286
|
+
const stats = group.stats;
|
|
287
|
+
if (!stats) continue;
|
|
288
|
+
const five = [
|
|
289
|
+
stats.min,
|
|
290
|
+
stats.q1,
|
|
291
|
+
stats.median,
|
|
292
|
+
stats.q3,
|
|
293
|
+
stats.max
|
|
294
|
+
];
|
|
295
|
+
const problem = !five.every((v) => Number.isFinite(v)) ? "has a number that is not finite, so it draws nothing" : five.some((v, i) => i > 0 && v < five[i - 1]) ? "is not in order (min ≤ q1 ≤ median ≤ q3 ≤ max), and is drawn as given" : null;
|
|
296
|
+
const message = problem && `the stats of "${group.label}" ${problem}.`;
|
|
297
|
+
if (!message || warned.has(message)) continue;
|
|
298
|
+
warned.add(message);
|
|
299
|
+
console.warn(`[NGWR] <wr-boxplot-chart>: ${message}`);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
onEnter(index, event) {
|
|
305
|
+
if (this.drawnGroups()[index]?.marks) this.tip.enter(index);
|
|
306
|
+
else this.tip.leave(event);
|
|
307
|
+
}
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
309
|
+
minVersion: "12.0.0",
|
|
310
|
+
version: "22.2.4",
|
|
311
|
+
ngImport: i0,
|
|
312
|
+
type: WrBoxplotChart,
|
|
313
|
+
deps: [],
|
|
314
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
315
|
+
});
|
|
316
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
317
|
+
minVersion: "17.0.0",
|
|
318
|
+
version: "22.2.4",
|
|
319
|
+
type: WrBoxplotChart,
|
|
320
|
+
isStandalone: true,
|
|
321
|
+
selector: "wr-boxplot-chart",
|
|
322
|
+
inputs: {
|
|
323
|
+
groups: {
|
|
324
|
+
classPropertyName: "groups",
|
|
325
|
+
publicName: "groups",
|
|
326
|
+
isSignal: true,
|
|
327
|
+
isRequired: false,
|
|
328
|
+
transformFunction: null
|
|
329
|
+
},
|
|
330
|
+
ariaLabel: {
|
|
331
|
+
classPropertyName: "ariaLabel",
|
|
332
|
+
publicName: "ariaLabel",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: false,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
},
|
|
337
|
+
xLabel: {
|
|
338
|
+
classPropertyName: "xLabel",
|
|
339
|
+
publicName: "xLabel",
|
|
340
|
+
isSignal: true,
|
|
341
|
+
isRequired: false,
|
|
342
|
+
transformFunction: null
|
|
343
|
+
},
|
|
344
|
+
yLabel: {
|
|
345
|
+
classPropertyName: "yLabel",
|
|
346
|
+
publicName: "yLabel",
|
|
347
|
+
isSignal: true,
|
|
348
|
+
isRequired: false,
|
|
349
|
+
transformFunction: null
|
|
350
|
+
},
|
|
351
|
+
valueFormat: {
|
|
352
|
+
classPropertyName: "valueFormat",
|
|
353
|
+
publicName: "valueFormat",
|
|
354
|
+
isSignal: true,
|
|
355
|
+
isRequired: false,
|
|
356
|
+
transformFunction: null
|
|
357
|
+
},
|
|
358
|
+
color: {
|
|
359
|
+
classPropertyName: "color",
|
|
360
|
+
publicName: "color",
|
|
361
|
+
isSignal: true,
|
|
362
|
+
isRequired: false,
|
|
363
|
+
transformFunction: null
|
|
364
|
+
},
|
|
365
|
+
height: {
|
|
366
|
+
classPropertyName: "height",
|
|
367
|
+
publicName: "height",
|
|
368
|
+
isSignal: true,
|
|
369
|
+
isRequired: false,
|
|
370
|
+
transformFunction: null
|
|
371
|
+
},
|
|
372
|
+
showGrid: {
|
|
373
|
+
classPropertyName: "showGrid",
|
|
374
|
+
publicName: "showGrid",
|
|
375
|
+
isSignal: true,
|
|
376
|
+
isRequired: false,
|
|
377
|
+
transformFunction: null
|
|
378
|
+
},
|
|
379
|
+
tooltip: {
|
|
380
|
+
classPropertyName: "tooltip",
|
|
381
|
+
publicName: "tooltip",
|
|
382
|
+
isSignal: true,
|
|
383
|
+
isRequired: false,
|
|
384
|
+
transformFunction: null
|
|
385
|
+
},
|
|
386
|
+
dataTable: {
|
|
387
|
+
classPropertyName: "dataTable",
|
|
388
|
+
publicName: "dataTable",
|
|
389
|
+
isSignal: true,
|
|
390
|
+
isRequired: false,
|
|
391
|
+
transformFunction: null
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
host: { classAttribute: "wr-boxplot-chart" },
|
|
395
|
+
viewQueries: [{
|
|
396
|
+
propertyName: "groupEls",
|
|
397
|
+
predicate: ["group"],
|
|
398
|
+
descendants: true,
|
|
399
|
+
isSignal: true
|
|
400
|
+
}],
|
|
401
|
+
ngImport: i0,
|
|
402
|
+
template: "@let active = activeGroup();\n<!-- Two columns: the value axis' ticks at inline start and the drawing beside them, with\n the axis' name above and the group names under the drawing only, so their\n percentages are the drawing's. -->\n<div class=\"wr-boxplot-chart__body\">\n @if (yLabel()) {\n <div class=\"wr-boxplot-chart__y-title\">{{ yLabel() }}</div>\n }\n\n @if (showGrid()) {\n <!-- In flow, so the column is exactly as wide as the longest label; each one hands\n the stylesheet the y of its own gridline. Hidden, as the drawing is one image:\n its name is what is announced, and the numbers are the data table's. -->\n <div class=\"wr-boxplot-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__y-tick\" [style.--wr-boxplot-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div class=\"wr-boxplot-chart__plot\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\" [style.height.px]=\"height()\">\n <!-- Every mark is an element placed by percentage of this box, its width in px or a\n share of its slot: a box keeps its width however tall the plot is, which an SVG\n stretched to the plot would not. Hidden as well as presentational, as the\n scatter's drawing is: `img` already makes it so. -->\n <div class=\"wr-boxplot-chart__drawing\" aria-hidden=\"true\">\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__grid-line\" [style.--wr-boxplot-chart-y]=\"tick.top\"></span>\n }\n }\n\n <!-- By position, not by label: two groups may share one. Each slot is the hover\n target for its group, top to bottom, so the pointer need not find a 2px\n whisker. It carries the group's numbers in `data-*`, beside the placement. -->\n @for (g of drawnGroups(); track g.index) {\n <div\n #group\n class=\"wr-boxplot-chart__group\"\n [class.wr-boxplot-chart__group--active]=\"active === g.index\"\n [class.wr-boxplot-chart__group--empty]=\"!g.marks\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n [style.--wr-boxplot-chart-group-color]=\"g.color\"\n [attr.data-min]=\"g.stats?.min\"\n [attr.data-q1]=\"g.stats?.q1\"\n [attr.data-median]=\"g.stats?.median\"\n [attr.data-q3]=\"g.stats?.q3\"\n [attr.data-max]=\"g.stats?.max\"\n (mouseenter)=\"onEnter(g.index, $event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (g.marks; as m) {\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--upper\"\n [style.--wr-boxplot-chart-top]=\"m.upper.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.upper.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--lower\"\n [style.--wr-boxplot-chart-top]=\"m.lower.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.lower.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--upper\"\n [style.--wr-boxplot-chart-y]=\"m.max\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--lower\"\n [style.--wr-boxplot-chart-y]=\"m.min\"\n ></span>\n <span\n class=\"wr-boxplot-chart__box\"\n [style.--wr-boxplot-chart-top]=\"m.box.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.box.bottom\"\n ></span>\n <span class=\"wr-boxplot-chart__median\" [style.--wr-boxplot-chart-y]=\"m.median\"></span>\n @for (o of m.outliers; track $index) {\n <span\n class=\"wr-boxplot-chart__outlier\"\n [style.--wr-boxplot-chart-y]=\"o.top\"\n [attr.data-value]=\"o.value\"\n ></span>\n }\n <!-- Paints nothing: the span from the topmost mark to the lowest, outliers\n included, which the tooltip points at so its chip covers none of them. -->\n <span\n class=\"wr-boxplot-chart__extent\"\n [style.--wr-boxplot-chart-top]=\"m.extent.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.extent.bottom\"\n ></span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Each name is centred under its slot and ellipsised past it; the tooltip and the\n data table carry it whole. -->\n <div class=\"wr-boxplot-chart__x-axis\">\n @for (g of drawnGroups(); track g.index) {\n <span\n class=\"wr-boxplot-chart__x-label\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n >{{ g.label }}</span\n >\n }\n </div>\n\n @if (xLabel()) {\n <div class=\"wr-boxplot-chart__x-title\">{{ xLabel() }}</div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot'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",
|
|
403
|
+
dependencies: [{
|
|
404
|
+
kind: "component",
|
|
405
|
+
type: WrChartTable,
|
|
406
|
+
selector: "wr-chart-table",
|
|
407
|
+
inputs: ["data"]
|
|
408
|
+
}],
|
|
409
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
413
|
+
minVersion: "12.0.0",
|
|
414
|
+
version: "22.2.4",
|
|
415
|
+
ngImport: i0,
|
|
416
|
+
type: WrBoxplotChart,
|
|
417
|
+
decorators: [{
|
|
418
|
+
type: Component,
|
|
419
|
+
args: [{
|
|
420
|
+
selector: "wr-boxplot-chart",
|
|
421
|
+
encapsulation: ViewEncapsulation.None,
|
|
422
|
+
host: { class: "wr-boxplot-chart" },
|
|
423
|
+
imports: [WrChartTable],
|
|
424
|
+
template: "@let active = activeGroup();\n<!-- Two columns: the value axis' ticks at inline start and the drawing beside them, with\n the axis' name above and the group names under the drawing only, so their\n percentages are the drawing's. -->\n<div class=\"wr-boxplot-chart__body\">\n @if (yLabel()) {\n <div class=\"wr-boxplot-chart__y-title\">{{ yLabel() }}</div>\n }\n\n @if (showGrid()) {\n <!-- In flow, so the column is exactly as wide as the longest label; each one hands\n the stylesheet the y of its own gridline. Hidden, as the drawing is one image:\n its name is what is announced, and the numbers are the data table's. -->\n <div class=\"wr-boxplot-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__y-tick\" [style.--wr-boxplot-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div class=\"wr-boxplot-chart__plot\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\" [style.height.px]=\"height()\">\n <!-- Every mark is an element placed by percentage of this box, its width in px or a\n share of its slot: a box keeps its width however tall the plot is, which an SVG\n stretched to the plot would not. Hidden as well as presentational, as the\n scatter's drawing is: `img` already makes it so. -->\n <div class=\"wr-boxplot-chart__drawing\" aria-hidden=\"true\">\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__grid-line\" [style.--wr-boxplot-chart-y]=\"tick.top\"></span>\n }\n }\n\n <!-- By position, not by label: two groups may share one. Each slot is the hover\n target for its group, top to bottom, so the pointer need not find a 2px\n whisker. It carries the group's numbers in `data-*`, beside the placement. -->\n @for (g of drawnGroups(); track g.index) {\n <div\n #group\n class=\"wr-boxplot-chart__group\"\n [class.wr-boxplot-chart__group--active]=\"active === g.index\"\n [class.wr-boxplot-chart__group--empty]=\"!g.marks\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n [style.--wr-boxplot-chart-group-color]=\"g.color\"\n [attr.data-min]=\"g.stats?.min\"\n [attr.data-q1]=\"g.stats?.q1\"\n [attr.data-median]=\"g.stats?.median\"\n [attr.data-q3]=\"g.stats?.q3\"\n [attr.data-max]=\"g.stats?.max\"\n (mouseenter)=\"onEnter(g.index, $event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (g.marks; as m) {\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--upper\"\n [style.--wr-boxplot-chart-top]=\"m.upper.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.upper.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--lower\"\n [style.--wr-boxplot-chart-top]=\"m.lower.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.lower.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--upper\"\n [style.--wr-boxplot-chart-y]=\"m.max\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--lower\"\n [style.--wr-boxplot-chart-y]=\"m.min\"\n ></span>\n <span\n class=\"wr-boxplot-chart__box\"\n [style.--wr-boxplot-chart-top]=\"m.box.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.box.bottom\"\n ></span>\n <span class=\"wr-boxplot-chart__median\" [style.--wr-boxplot-chart-y]=\"m.median\"></span>\n @for (o of m.outliers; track $index) {\n <span\n class=\"wr-boxplot-chart__outlier\"\n [style.--wr-boxplot-chart-y]=\"o.top\"\n [attr.data-value]=\"o.value\"\n ></span>\n }\n <!-- Paints nothing: the span from the topmost mark to the lowest, outliers\n included, which the tooltip points at so its chip covers none of them. -->\n <span\n class=\"wr-boxplot-chart__extent\"\n [style.--wr-boxplot-chart-top]=\"m.extent.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.extent.bottom\"\n ></span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Each name is centred under its slot and ellipsised past it; the tooltip and the\n data table carry it whole. -->\n <div class=\"wr-boxplot-chart__x-axis\">\n @for (g of drawnGroups(); track g.index) {\n <span\n class=\"wr-boxplot-chart__x-label\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n >{{ g.label }}</span\n >\n }\n </div>\n\n @if (xLabel()) {\n <div class=\"wr-boxplot-chart__x-title\">{{ xLabel() }}</div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot'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"
|
|
425
|
+
}]
|
|
426
|
+
}],
|
|
427
|
+
ctorParameters: () => [],
|
|
428
|
+
propDecorators: {
|
|
429
|
+
groups: [{
|
|
430
|
+
type: i0.Input,
|
|
431
|
+
args: [{
|
|
432
|
+
isSignal: true,
|
|
433
|
+
alias: "groups",
|
|
434
|
+
required: false
|
|
435
|
+
}]
|
|
436
|
+
}],
|
|
437
|
+
ariaLabel: [{
|
|
438
|
+
type: i0.Input,
|
|
439
|
+
args: [{
|
|
440
|
+
isSignal: true,
|
|
441
|
+
alias: "ariaLabel",
|
|
442
|
+
required: false
|
|
443
|
+
}]
|
|
444
|
+
}],
|
|
445
|
+
xLabel: [{
|
|
446
|
+
type: i0.Input,
|
|
447
|
+
args: [{
|
|
448
|
+
isSignal: true,
|
|
449
|
+
alias: "xLabel",
|
|
450
|
+
required: false
|
|
451
|
+
}]
|
|
452
|
+
}],
|
|
453
|
+
yLabel: [{
|
|
454
|
+
type: i0.Input,
|
|
455
|
+
args: [{
|
|
456
|
+
isSignal: true,
|
|
457
|
+
alias: "yLabel",
|
|
458
|
+
required: false
|
|
459
|
+
}]
|
|
460
|
+
}],
|
|
461
|
+
valueFormat: [{
|
|
462
|
+
type: i0.Input,
|
|
463
|
+
args: [{
|
|
464
|
+
isSignal: true,
|
|
465
|
+
alias: "valueFormat",
|
|
466
|
+
required: false
|
|
467
|
+
}]
|
|
468
|
+
}],
|
|
469
|
+
color: [{
|
|
470
|
+
type: i0.Input,
|
|
471
|
+
args: [{
|
|
472
|
+
isSignal: true,
|
|
473
|
+
alias: "color",
|
|
474
|
+
required: false
|
|
475
|
+
}]
|
|
476
|
+
}],
|
|
477
|
+
height: [{
|
|
478
|
+
type: i0.Input,
|
|
479
|
+
args: [{
|
|
480
|
+
isSignal: true,
|
|
481
|
+
alias: "height",
|
|
482
|
+
required: false
|
|
483
|
+
}]
|
|
484
|
+
}],
|
|
485
|
+
showGrid: [{
|
|
486
|
+
type: i0.Input,
|
|
487
|
+
args: [{
|
|
488
|
+
isSignal: true,
|
|
489
|
+
alias: "showGrid",
|
|
490
|
+
required: false
|
|
491
|
+
}]
|
|
492
|
+
}],
|
|
493
|
+
tooltip: [{
|
|
494
|
+
type: i0.Input,
|
|
495
|
+
args: [{
|
|
496
|
+
isSignal: true,
|
|
497
|
+
alias: "tooltip",
|
|
498
|
+
required: false
|
|
499
|
+
}]
|
|
500
|
+
}],
|
|
501
|
+
dataTable: [{
|
|
502
|
+
type: i0.Input,
|
|
503
|
+
args: [{
|
|
504
|
+
isSignal: true,
|
|
505
|
+
alias: "dataTable",
|
|
506
|
+
required: false
|
|
507
|
+
}]
|
|
508
|
+
}],
|
|
509
|
+
groupEls: [{
|
|
510
|
+
type: i0.ViewChildren,
|
|
511
|
+
args: ["group", { isSignal: true }]
|
|
512
|
+
}]
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
export { WrBoxplotChart };
|
|
516
|
+
|
|
517
|
+
//# sourceMappingURL=ngwr-charts-boxplot-chart.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngwr-charts-boxplot-chart.mjs","names":[],"sources":["../../../projects/lib/charts/boxplot-chart/internal/stats.ts","../../../projects/lib/charts/boxplot-chart/boxplot-chart.ts","../../../projects/lib/charts/boxplot-chart/boxplot-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport type { WrBoxplotStats } from '../types';\n\n/** How far past the box, in interquartile ranges, a value may lie and still be reached by a whisker: Tukey's. */\nconst FENCE = 1.5;\n\n/**\n * The `p` quantile of `sorted`, which is ascending and not empty, by LINEAR\n * INTERPOLATION between the two closest ranks — Hyndman and Fan's type 7, the default\n * of R's `quantile()` and NumPy's `quantile()` and what Excel's `QUARTILE.INC` computes.\n *\n * The quantile sits at the zero-based position `(n − 1) · p`: on a value where that\n * position is whole, and that share of the way between the two values either side\n * where it is not. So 1, 2, 3, 4 has its first quartile at position 0.75, three\n * quarters of the way from 1 to 2: 1.75.\n *\n * @internal\n */\nexport function quantile(sorted: readonly number[], p: number): number {\n const position = (sorted.length - 1) * p;\n const below = Math.floor(position);\n const above = Math.ceil(position);\n return sorted[below] + (position - below) * (sorted[above] - sorted[below]);\n}\n\n/**\n * The summary a box plot draws for `values`: the quartiles by {@link quantile}, the\n * whiskers to the farthest value within 1.5 IQR of the box (Tukey's fences, inclusive),\n * and every value strictly past them as an outlier, ascending. Values that are not\n * finite numbers are left out; with none left, there is nothing to draw: `null`.\n *\n * A whisker never reaches INTO the box. Interpolated quartiles can sit past every value\n * on their side of the fence — 0, 100, 100, 100 has its first quartile at 75 and its\n * lowest value within the fence at 100 — so a whisker end on the wrong side of its\n * quartile is held at the quartile, as matplotlib holds it, and the whisker has no\n * length.\n *\n * @internal\n */\nexport function boxplotStats(values: readonly number[]): Required<WrBoxplotStats> | null {\n const sorted = values.filter(value => Number.isFinite(value)).sort((a, b) => a - b);\n if (sorted.length === 0) return null;\n\n const q1 = quantile(sorted, 0.25);\n const median = quantile(sorted, 0.5);\n const q3 = quantile(sorted, 0.75);\n const reach = FENCE * (q3 - q1);\n const low = q1 - reach;\n const high = q3 + reach;\n\n const inside = sorted.filter(value => value >= low && value <= high);\n // Never empty — the first value at or above the first quartile lies within the fences\n // for any count — so the fallbacks are there for the type checker alone.\n const min = Math.min(q1, inside[0] ?? q1);\n const max = Math.max(q3, inside.at(-1) ?? q3);\n const outliers = sorted.filter(value => value < low || value > high);\n\n return { min, q1, median, q3, max, outliers };\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n type ElementRef,\n LOCALE_ID,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n viewChildren,\n} from '@angular/core';\n\nimport { WrChartTable, type WrChartTableData, chartAxis, useChartNumbers } from 'ngwr/charts/core';\nimport { readI18nText, useI18nFormatter, useI18nText } from 'ngwr/i18n';\nimport { type WrChartTooltipRow, useChartTooltip } from 'ngwr/popover';\n\nimport { boxplotStats } from './internal/stats';\nimport type { WrBoxplotGroup, WrBoxplotStats } from './types';\n\n/** How many gaps the value axis aims for: `chartAxis`'s own default, on a plot tall enough for them. */\nconst TICK_COUNT = 4;\n\n/** How much plot height, in px, each gap of the value axis asks for: two and a half lines of tick label. */\nconst TICK_ROOM = 40;\n\n/**\n * How many of a group's outliers its tooltip writes out, the lowest first, a row each;\n * past that one more row counts the rest, so a group with dozens keeps a chip that fits\n * on the screen.\n */\nconst TOOLTIP_OUTLIERS = 3;\n\n/** A percentage to three decimals, so an inline style stays short. */\nconst percent = (value: number): number => Math.round(value * 1000) / 1000;\n\n/** A group's summary as the chart reads it: every number finite, the outliers ascending. */\ntype Summary = Required<WrBoxplotStats>;\n\n/** Where one group's marks sit, each as a percentage of the drawing's height from its top. */\ninterface DrawnBox {\n /** The upper whisker, from its end down to the box. */\n readonly upper: { readonly top: number; readonly bottom: number };\n /** The lower whisker, from the box down to its end. */\n readonly lower: { readonly top: number; readonly bottom: number };\n /** The box, from the third quartile down to the first. */\n readonly box: { readonly top: number; readonly bottom: number };\n readonly max: number;\n readonly median: number;\n readonly min: number;\n readonly outliers: readonly { readonly value: number; readonly top: number }[];\n /** Everything the group draws, outliers included: what the tooltip points at. */\n readonly extent: { readonly top: number; readonly bottom: number };\n}\n\n/** One group as the chart draws it: its data, its slot across the drawing and its marks. */\ninterface DrawnGroup {\n /** Its position in `groups`. */\n readonly index: number;\n readonly label: string;\n readonly color: string;\n /** Its summary, or `null` when it has nothing to draw. */\n readonly stats: Summary | null;\n /**\n * Where its slot starts, as a percentage of the drawing's width from its inline start:\n * the left, or the right under RTL.\n */\n readonly start: number;\n /** How wide its slot is, as a percentage of the drawing's width. */\n readonly slot: number;\n readonly marks: DrawnBox | null;\n}\n\n/** A span between two heights, top first whichever order they arrive in. */\nconst span = (a: number, b: number): { readonly top: number; readonly bottom: number } => ({\n top: Math.min(a, b),\n bottom: Math.max(a, b),\n});\n\n/**\n * The summary a group draws: its `stats` as given, when every one of the five numbers is\n * finite, else the summary of its `values`, else nothing.\n */\nfunction summarise(group: WrBoxplotGroup): Summary | null {\n const given = group.stats;\n if (given) {\n const { min, q1, median, q3, max } = given;\n if (![min, q1, median, q3, max].every(value => Number.isFinite(value))) return null;\n const outliers = (given.outliers ?? []).filter(value => Number.isFinite(value)).sort((a, b) => a - b);\n return { min, q1, median, q3, max, outliers };\n }\n return group.values ? boxplotStats(group.values) : null;\n}\n\n/**\n * Box-and-whisker plots of several groups side by side, on one value axis: a box from the\n * first quartile to the third with a line at the median, a whisker either side, and a dot\n * per outlier. No SVG and no dependency: every mark is an HTML element placed by\n * percentage, so a box keeps its width however tall the plot is.\n *\n * @example\n * ```html\n * <wr-boxplot-chart\n * ariaLabel=\"Response time by region\"\n * [groups]=\"[\n * { label: 'EU', values: [112, 98, 130, 141, 104, 99, 260] },\n * { label: 'US', stats: { min: 80, q1: 101, median: 118, q3: 134, max: 170, outliers: [240] } }\n * ]\"\n * />\n * ```\n *\n * From `values`, the chart works out the quartiles by LINEAR INTERPOLATION — type 7 of\n * Hyndman and Fan, the default of R's and NumPy's `quantile()` and what Excel's\n * `QUARTILE.INC` computes — and Tukey's whiskers: each reaches the farthest value within\n * 1.5 interquartile ranges of the box, and every value beyond is an outlier. A summary\n * worked out elsewhere goes in `stats` and is drawn exactly as given.\n *\n * The value axis is fitted to every number drawn, outliers included, with no zero forced\n * in — a box plot has no baseline — and snapped outward to a readable step. The groups\n * share the drawing's width in equal slots under their names, in reading order: left to\n * right, and right to left under RTL, as the bar chart's columns are, so the first group\n * stands beside the value axis either way.\n *\n * The drawing is one named `role=\"img\"` and takes no tab stop; the tooltip, with the five\n * numbers and the outliers past them, is pointer only. `dataTable` renders every group's\n * numbers as a table only assistive technology reaches.\n *\n * @see https://ngwr.dev/charts/boxplot-chart\n */\n@Component({\n selector: 'wr-boxplot-chart',\n templateUrl: './boxplot-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-boxplot-chart' },\n imports: [WrChartTable],\n})\nexport class WrBoxplotChart {\n /**\n * One entry per box, in reading order: each with its raw `values` or a `stats` summary\n * worked out elsewhere. A group with neither, or with nothing finite to summarise,\n * keeps its slot and its name and draws no box.\n */\n readonly groups = input<readonly WrBoxplotGroup[]>([]);\n\n /**\n * Accessible name of the chart. The numbers are nowhere in text unless `dataTable`\n * puts them there, so say what the chart shows. Falls back to `boxplotChart.label`\n * (\"Box plot\").\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'boxplotChart.label', 'Box plot');\n\n /**\n * What the groups are — a region, a release. Drawn under the group names only when\n * given; either way it heads the group column of the data table, which falls back to\n * `boxplotChart.group` (\"Group\").\n */\n readonly xLabel = input<string | null>(null);\n\n /** What the values measure, with their unit. Drawn above the value axis only when given. */\n readonly yLabel = input<string | null>(null);\n\n protected readonly xName = useI18nText(this.xLabel, 'boxplotChart.group', 'Group');\n\n private readonly upperName = readI18nText('boxplotChart.upperWhisker', 'Upper whisker');\n private readonly q3Name = readI18nText('boxplotChart.q3', 'Q3');\n private readonly medianName = readI18nText('boxplotChart.median', 'Median');\n private readonly q1Name = readI18nText('boxplotChart.q1', 'Q1');\n private readonly lowerName = readI18nText('boxplotChart.lowerWhisker', 'Lower whisker');\n private readonly outliersName = readI18nText('boxplotChart.outliers', 'Outliers');\n\n /**\n * Writes every number the chart shows: the axis ticks, the tooltip and the data table.\n * `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ticks (`1.2K`, `3.4M`)\n * unless the full numbers are shorter.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** The figures in full and the axis' compact ticks, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly locale = inject(LOCALE_ID);\n\n /** How many outliers the tooltip leaves unwritten, in the reader's own digits: a count, never a value to format. */\n private readonly counts = new Intl.NumberFormat(this.locale);\n\n /** The tooltip's tail for the outliers past the first few it writes out. */\n private readonly moreOutliers = useI18nFormatter('boxplotChart.moreOutliers', '+{{count}} more');\n\n /**\n * A group's outliers in one data table cell, as the locale lists them. A narrow\n * CONJUNCTION list, because a unit list separates them with bare spaces in several\n * locales, and a space is the digit grouping of Russian and French: `9 000 12 000`.\n */\n private readonly list = new Intl.ListFormat(this.locale, { type: 'conjunction', style: 'narrow' });\n\n /** The colour of every group with no `color` of its own. Any CSS colour. @default 'var(--wr-color-primary)' */\n readonly color = input<string>('var(--wr-color-primary)');\n\n /**\n * The plot's height in px, at least 80. Under 160 the value axis aims for fewer ticks,\n * so their labels keep clear of one another. @default 240\n */\n readonly height = input(240, { transform: (v: unknown): number => Math.max(80, coerceNumberProperty(v, 240)) });\n\n /** Show the gridlines and the value axis' tick labels. @default true */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Show a tooltip with the hovered group's five numbers — the whiskers' ends, the\n * quartiles and the median — and its outliers' values, the lowest three, then how many\n * more there are. Pointer only. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Render every group's numbers as a table only assistive technology reaches, beside the\n * drawing: a row per group, a column for each of the five numbers from the lower\n * whisker up and, when a group has any, one listing its outliers. The drawing is one\n * named image, so without it the numbers are nowhere a screen reader can walk.\n * @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n private readonly groupEls = viewChildren<ElementRef<HTMLElement>>('group');\n\n /** Every group with its colour and its summary, in order. */\n private readonly resolvedGroups = computed(() =>\n this.groups().map((group, index) => ({\n index,\n label: group.label,\n color: group.color ?? this.color(),\n stats: summarise(group),\n }))\n );\n\n /**\n * The value axis, from `chartAxis` over every number drawn — whisker ends, quartiles,\n * medians and outliers alike, so a summary given out of order still lands inside it —\n * with no zero forced in and both ends kept off the data (`symmetric`). A single value\n * is centred with a step either side; with nothing to draw, the 0 to 1 frame.\n *\n * It aims for four gaps, and for fewer on a short plot: a gap per 40px of `height`, so\n * the tick labels, a line of text each, never stand on one another — at the 80px\n * floor, four gaps put five labels in 64px of drawing.\n */\n protected readonly axis = computed(() => {\n let min = Number.POSITIVE_INFINITY;\n let max = Number.NEGATIVE_INFINITY;\n for (const { stats } of this.resolvedGroups()) {\n if (!stats) continue;\n for (const value of [stats.min, stats.q1, stats.median, stats.q3, stats.max, ...stats.outliers]) {\n if (value < min) min = value;\n if (value > max) max = value;\n }\n }\n const tickCount = Math.min(TICK_COUNT, Math.max(2, Math.floor(this.height() / TICK_ROOM)));\n return chartAxis(min, max, { symmetric: true, tickCount });\n });\n\n /** The groups as drawn: an equal slot each across the drawing, and their marks placed on the axis. */\n protected readonly drawnGroups = computed<readonly DrawnGroup[]>(() => {\n const groups = this.resolvedGroups();\n const { min, max } = this.axis();\n const top = (value: number): number => percent(((max - value) / (max - min)) * 100);\n const slot = groups.length > 0 ? 100 / groups.length : 100;\n return groups.map(group => {\n const s = group.stats;\n let marks: DrawnBox | null = null;\n if (s) {\n const outliers = s.outliers.map(value => ({ value, top: top(value) }));\n const all = [s.max, s.q3, s.median, s.q1, s.min, ...s.outliers].map(top);\n marks = {\n upper: span(top(s.max), top(s.q3)),\n lower: span(top(s.q1), top(s.min)),\n box: span(top(s.q3), top(s.q1)),\n max: top(s.max),\n median: top(s.median),\n min: top(s.min),\n outliers,\n extent: { top: Math.min(...all), bottom: Math.max(...all) },\n };\n }\n return { ...group, start: percent(group.index * slot), slot: percent(slot), marks };\n });\n });\n\n /** The value axis' ticks, top to bottom: each value's label and its gridline's distance from the top, in percent. */\n protected readonly yTicks = computed(() => {\n const { min, max, step, ticks } = this.axis();\n const labels = this.numbers.ticks(ticks, step);\n return ticks.map((value, i) => ({ label: labels[i], top: percent(((max - value) / (max - min)) * 100) }));\n });\n\n /**\n * One tooltip for the group under the pointer: its name and colour as the heading, then\n * the five numbers top to bottom, the way the box is drawn, and its outliers when it has\n * any — their VALUES, as the data table's column of the same name lists them: the lowest\n * three a row each under the one label, so a long figure never shares a line with\n * another and pushes past the chip, then a row counting the rest. It points at the top\n * of everything the group draws, so the chip covers none of its marks.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index => {\n const group = this.drawnGroups()[index];\n const anchor = this.groupEls()[index]?.nativeElement.querySelector('.wr-boxplot-chart__extent') ?? null;\n if (!group?.stats || !anchor) return null;\n const { stats } = group;\n const rows: WrChartTooltipRow[] = [\n { label: this.upperName(), value: this.numbers.value(stats.max) },\n { label: this.q3Name(), value: this.numbers.value(stats.q3) },\n { label: this.medianName(), value: this.numbers.value(stats.median) },\n { label: this.q1Name(), value: this.numbers.value(stats.q1) },\n { label: this.lowerName(), value: this.numbers.value(stats.min) },\n ];\n if (stats.outliers.length > 0) {\n const shown = stats.outliers.slice(0, TOOLTIP_OUTLIERS).map(value => this.numbers.value(value));\n const rest = stats.outliers.length - shown.length;\n if (rest > 0) shown.push(this.moreOutliers({ count: this.counts.format(rest) }));\n shown.forEach((value, i) => rows.push({ label: i === 0 ? this.outliersName() : '', value }));\n }\n return { datum: { label: group.label, value: '', color: group.color, rows }, anchor };\n });\n\n /** The group the tooltip is reading, washed in the drawing. Never one with nothing drawn. */\n protected readonly activeGroup = computed(() => {\n const index = this.tip.active();\n return index !== null && this.drawnGroups()[index]?.marks ? index : null;\n });\n\n /**\n * The figures for `dataTable`: the chart's name as the caption, a row per group headed\n * by its name, and its five numbers ascending, as a five-number summary reads, written\n * as the tooltip writes them. The outliers column appears once any group has an\n * outlier, and lists that group's ascending. A group with nothing to draw has a row of\n * empty cells.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const groups = this.resolvedGroups();\n const withOutliers = groups.some(({ stats }) => (stats?.outliers.length ?? 0) > 0);\n const columns = [this.lowerName(), this.q1Name(), this.medianName(), this.q3Name(), this.upperName()];\n if (withOutliers) columns.push(this.outliersName());\n const value = (v: number): string => this.numbers.value(v);\n return {\n caption: this.resolvedAriaLabel(),\n corner: this.xName(),\n columns,\n groups: [\n {\n rows: groups.map(({ label, stats }) => {\n if (!stats) return { header: label, cells: columns.map(() => '') };\n const cells = [stats.min, stats.q1, stats.median, stats.q3, stats.max].map(value);\n if (withOutliers) cells.push(this.list.format(stats.outliers.map(value)));\n return { header: label, cells };\n }),\n },\n ],\n };\n });\n\n constructor() {\n // A summary is drawn as given, so one whose numbers are out of order draws a whisker\n // inside its box, and one with a number that is not finite draws nothing at all —\n // both of which read on screen as data, not as a mistake.\n if (isDevMode()) {\n const warned = new Set<string>();\n effect(() => {\n for (const group of this.groups()) {\n const stats = group.stats;\n if (!stats) continue;\n const five = [stats.min, stats.q1, stats.median, stats.q3, stats.max];\n const problem = !five.every(v => Number.isFinite(v))\n ? 'has a number that is not finite, so it draws nothing'\n : five.some((v, i) => i > 0 && v < five[i - 1])\n ? 'is not in order (min ≤ q1 ≤ median ≤ q3 ≤ max), and is drawn as given'\n : null;\n const message = problem && `the stats of \"${group.label}\" ${problem}.`;\n if (!message || warned.has(message)) continue;\n warned.add(message);\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(`[NGWR] <wr-boxplot-chart>: ${message}`);\n }\n });\n }\n }\n\n /**\n * The pointer entered a group's slot. A group with nothing drawn reads as leaving, so a\n * chip open on its neighbour closes after the usual grace rather than at once.\n */\n protected onEnter(index: number, event: MouseEvent): void {\n if (this.drawnGroups()[index]?.marks) this.tip.enter(index);\n else this.tip.leave(event);\n }\n}\n\nexport type { WrBoxplotGroup, WrBoxplotStats } from './types';\n","@let active = activeGroup();\n<!-- Two columns: the value axis' ticks at inline start and the drawing beside them, with\n the axis' name above and the group names under the drawing only, so their\n percentages are the drawing's. -->\n<div class=\"wr-boxplot-chart__body\">\n @if (yLabel()) {\n <div class=\"wr-boxplot-chart__y-title\">{{ yLabel() }}</div>\n }\n\n @if (showGrid()) {\n <!-- In flow, so the column is exactly as wide as the longest label; each one hands\n the stylesheet the y of its own gridline. Hidden, as the drawing is one image:\n its name is what is announced, and the numbers are the data table's. -->\n <div class=\"wr-boxplot-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__y-tick\" [style.--wr-boxplot-chart-y]=\"tick.top\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div class=\"wr-boxplot-chart__plot\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\" [style.height.px]=\"height()\">\n <!-- Every mark is an element placed by percentage of this box, its width in px or a\n share of its slot: a box keeps its width however tall the plot is, which an SVG\n stretched to the plot would not. Hidden as well as presentational, as the\n scatter's drawing is: `img` already makes it so. -->\n <div class=\"wr-boxplot-chart__drawing\" aria-hidden=\"true\">\n @if (showGrid()) {\n @for (tick of yTicks(); track $index) {\n <span class=\"wr-boxplot-chart__grid-line\" [style.--wr-boxplot-chart-y]=\"tick.top\"></span>\n }\n }\n\n <!-- By position, not by label: two groups may share one. Each slot is the hover\n target for its group, top to bottom, so the pointer need not find a 2px\n whisker. It carries the group's numbers in `data-*`, beside the placement. -->\n @for (g of drawnGroups(); track g.index) {\n <div\n #group\n class=\"wr-boxplot-chart__group\"\n [class.wr-boxplot-chart__group--active]=\"active === g.index\"\n [class.wr-boxplot-chart__group--empty]=\"!g.marks\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n [style.--wr-boxplot-chart-group-color]=\"g.color\"\n [attr.data-min]=\"g.stats?.min\"\n [attr.data-q1]=\"g.stats?.q1\"\n [attr.data-median]=\"g.stats?.median\"\n [attr.data-q3]=\"g.stats?.q3\"\n [attr.data-max]=\"g.stats?.max\"\n (mouseenter)=\"onEnter(g.index, $event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (g.marks; as m) {\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--upper\"\n [style.--wr-boxplot-chart-top]=\"m.upper.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.upper.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__whisker wr-boxplot-chart__whisker--lower\"\n [style.--wr-boxplot-chart-top]=\"m.lower.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.lower.bottom\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--upper\"\n [style.--wr-boxplot-chart-y]=\"m.max\"\n ></span>\n <span\n class=\"wr-boxplot-chart__cap wr-boxplot-chart__cap--lower\"\n [style.--wr-boxplot-chart-y]=\"m.min\"\n ></span>\n <span\n class=\"wr-boxplot-chart__box\"\n [style.--wr-boxplot-chart-top]=\"m.box.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.box.bottom\"\n ></span>\n <span class=\"wr-boxplot-chart__median\" [style.--wr-boxplot-chart-y]=\"m.median\"></span>\n @for (o of m.outliers; track $index) {\n <span\n class=\"wr-boxplot-chart__outlier\"\n [style.--wr-boxplot-chart-y]=\"o.top\"\n [attr.data-value]=\"o.value\"\n ></span>\n }\n <!-- Paints nothing: the span from the topmost mark to the lowest, outliers\n included, which the tooltip points at so its chip covers none of them. -->\n <span\n class=\"wr-boxplot-chart__extent\"\n [style.--wr-boxplot-chart-top]=\"m.extent.top\"\n [style.--wr-boxplot-chart-bottom]=\"m.extent.bottom\"\n ></span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- Each name is centred under its slot and ellipsised past it; the tooltip and the\n data table carry it whole. -->\n <div class=\"wr-boxplot-chart__x-axis\">\n @for (g of drawnGroups(); track g.index) {\n <span\n class=\"wr-boxplot-chart__x-label\"\n [style.--wr-boxplot-chart-slot-start]=\"g.start\"\n [style.--wr-boxplot-chart-slot-width]=\"g.slot\"\n >{{ g.label }}</span\n >\n }\n </div>\n\n @if (xLabel()) {\n <div class=\"wr-boxplot-chart__x-title\">{{ xLabel() }}</div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot'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"],"mappings":";;;;;;;;;;;;AAUA,MAAM,QAAQ;AAcd,SAAgB,SAAS,QAA2B,GAAS;CAC3D,MAAM,YAAY,OAAO,SAAS,KAAK;CACv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