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,262 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** One qualitative band as drawn: where it starts and how much of the scale it covers, both as shares from 0 to 1. */
|
|
3
|
+
interface Band {
|
|
4
|
+
/** Its position in the sorted `ranges`, which decides its shade. */
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly start: number;
|
|
7
|
+
readonly size: number;
|
|
8
|
+
/** How far its shade has moved from the strongest grey towards the faintest, as a CSS percentage. */
|
|
9
|
+
readonly mix: string;
|
|
10
|
+
}
|
|
11
|
+
/** A tick of the scale: its label, its share of the scale, and which end of the scale it sits on, if either. */
|
|
12
|
+
interface Tick {
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly at: number;
|
|
15
|
+
readonly edge: 'start' | 'end' | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Bullet chart: one measure against a target, over qualitative bands — Stephen Few's
|
|
19
|
+
* bullet graph, the compact replacement for a dashboard gauge. Horizontal, one line high.
|
|
20
|
+
* HTML and CSS only — no external dependency.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <wr-bullet-chart label="Revenue" subLabel="USD, thousands" [value]="270" [target]="250" [ranges]="[150, 225, 300]" />
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* **What is drawn.** `ranges` are the upper limits of the qualitative bands — poor,
|
|
28
|
+
* satisfactory, good — drawn as stepped greys from the theme's neutral roles, the
|
|
29
|
+
* strongest nearest zero and each band after it fainter, so they read as steps in
|
|
30
|
+
* LIGHTNESS and survive greyscale. The value is a bar a third of the line high, from zero;
|
|
31
|
+
* the target is a perpendicular marker. The two are told apart by shape, not by colour,
|
|
32
|
+
* and both are drawn in the text colour, which keeps 3:1 against the strongest band in
|
|
33
|
+
* either theme where the primary blue does not.
|
|
34
|
+
*
|
|
35
|
+
* **The scale** starts at zero, or lower where a value, the target or a range limit is
|
|
36
|
+
* negative, and ends at `max` — by default the largest of the value, the target and the
|
|
37
|
+
* ranges, exactly, so the last band reaches the end. A value past a fixed `max` is drawn
|
|
38
|
+
* to the end and announced as itself. A narrow drawing prints fewer ticks, so no two of
|
|
39
|
+
* their labels touch. Under RTL the chart mirrors, as a progress bar does:
|
|
40
|
+
* the label is on the right and the bar grows leftwards.
|
|
41
|
+
*
|
|
42
|
+
* **What a screen reader gets.** The drawing is one `role="img"` named by a sentence —
|
|
43
|
+
* "Revenue: 270 of target 250" (`bulletChart.summary`) — and described by the sub-label.
|
|
44
|
+
* The label and the sub-label beside it are `aria-hidden`, since the sentence and the
|
|
45
|
+
* description already carry them, and so are the scale's ticks. The bands have no names,
|
|
46
|
+
* so they are not announced: say what they mean in `ariaLabel` where it matters. There is
|
|
47
|
+
* no data table, since there is one number, and no tab stop.
|
|
48
|
+
*
|
|
49
|
+
* @see https://ngwr.dev/charts/bullet-chart
|
|
50
|
+
*/
|
|
51
|
+
export declare class WrBulletChart {
|
|
52
|
+
/**
|
|
53
|
+
* The measure. A value that is not a finite number — `null` while it loads — draws no
|
|
54
|
+
* bar, and the chart is announced as having no value rather than as zero.
|
|
55
|
+
*/
|
|
56
|
+
readonly value: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* The comparative measure, drawn as a marker across the line. `null`, or anything that
|
|
59
|
+
* is not a finite number, draws none and leaves it out of the accessible name.
|
|
60
|
+
* @default null
|
|
61
|
+
*/
|
|
62
|
+
readonly target: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* The upper limit of each qualitative band, in any order: `[150, 225, 300]` draws a band
|
|
65
|
+
* from the scale's start to 150, one from 150 to 225 and one from 225 to 300. They are
|
|
66
|
+
* sorted, a repeated limit counts once, and one that is not a finite number is dropped.
|
|
67
|
+
* The band nearest zero is the strongest grey and each one after it fainter, between
|
|
68
|
+
* `--wr-bullet-chart-range-start` and `--wr-bullet-chart-range-end`. Few recommends no
|
|
69
|
+
* more than five.
|
|
70
|
+
*
|
|
71
|
+
* The first band is everything below the first limit, so it has room only where the
|
|
72
|
+
* scale reaches below that limit. A negative first limit lower than both the value and
|
|
73
|
+
* the target is where the scale starts, which leaves that band no room: it is not drawn,
|
|
74
|
+
* and the drawing opens with the second band and its paler grey. Where the scale runs on
|
|
75
|
+
* past the last limit, a rule marks where the last band ends.
|
|
76
|
+
*/
|
|
77
|
+
readonly ranges: import("@angular/core").InputSignal<readonly number[]>;
|
|
78
|
+
/**
|
|
79
|
+
* The end of the scale. `0` takes the largest of `value`, `target` and `ranges`, so the
|
|
80
|
+
* last band reaches the end; a value above `0` fixes it, and anything past it is drawn to
|
|
81
|
+
* the end — the accessible name and the tooltip still give its own figure. @default 0
|
|
82
|
+
*/
|
|
83
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
84
|
+
/**
|
|
85
|
+
* What is measured, shown at inline start beside the drawing, ellipsised past
|
|
86
|
+
* `--wr-bullet-chart-label-max-width`. It heads the tooltip and opens the accessible
|
|
87
|
+
* name; without it the name opens with `bulletChart.label` ("Bullet chart").
|
|
88
|
+
*/
|
|
89
|
+
readonly label: import("@angular/core").InputSignal<string | null>;
|
|
90
|
+
/**
|
|
91
|
+
* A line under the label — the unit, the period. The drawing is described by it
|
|
92
|
+
* (`aria-describedby`), so a screen reader hears it after the name.
|
|
93
|
+
*/
|
|
94
|
+
readonly subLabel: import("@angular/core").InputSignal<string | null>;
|
|
95
|
+
/**
|
|
96
|
+
* Accessible name of the drawing, in place of the sentence the chart writes itself —
|
|
97
|
+
* "Revenue: 270 of target 250". Give one where the bands mean something a reader needs,
|
|
98
|
+
* since they have no names of their own.
|
|
99
|
+
*/
|
|
100
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
101
|
+
/**
|
|
102
|
+
* Writes every number the chart shows: the scale's ticks, the tooltip and the
|
|
103
|
+
* accessible name. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ticks
|
|
104
|
+
* (`1.2K`) unless the full numbers are shorter.
|
|
105
|
+
*/
|
|
106
|
+
readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
107
|
+
/** Show the scale's ticks under the drawing. @default true */
|
|
108
|
+
readonly showScale: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
109
|
+
/**
|
|
110
|
+
* Show a tooltip with the label, the value and the target while the pointer is over the
|
|
111
|
+
* drawing. Pointer only: the accessible name says the same. @default true
|
|
112
|
+
*/
|
|
113
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
114
|
+
/** The exact figures and the scale's compact ticks, in `LOCALE_ID` unless `valueFormat` is given. */
|
|
115
|
+
private readonly numbers;
|
|
116
|
+
private readonly track;
|
|
117
|
+
private readonly host;
|
|
118
|
+
/**
|
|
119
|
+
* The drawing's laid-out width and a tick label's width per character, once a browser
|
|
120
|
+
* has measured them: whether the ticks fit is a question of pixels. Until then — on the
|
|
121
|
+
* server and in the first paint — the scale draws its usual count.
|
|
122
|
+
*/
|
|
123
|
+
private readonly measured;
|
|
124
|
+
/** The drawing's width as the observer last reported it, in px; 0 until it has. */
|
|
125
|
+
private trackWidth;
|
|
126
|
+
constructor();
|
|
127
|
+
/**
|
|
128
|
+
* Read a tick label's width per character off the labels as laid out, and keep it with
|
|
129
|
+
* the drawing's width. Per character, from the label that is widest for its length: the
|
|
130
|
+
* digits are tabular, so the figure holds for the labels a coarser scale would print too.
|
|
131
|
+
*/
|
|
132
|
+
private measure;
|
|
133
|
+
/** The id of the sub-label, which describes the drawing. */
|
|
134
|
+
protected readonly subLabelId: string;
|
|
135
|
+
/** Whether there is a label column to draw. */
|
|
136
|
+
protected readonly labelled: import("@angular/core").Signal<boolean>;
|
|
137
|
+
/** The range limits as drawn: finite, sorted, and each once. */
|
|
138
|
+
private readonly limits;
|
|
139
|
+
/**
|
|
140
|
+
* The scale. It starts at zero, or at the lowest of the value, the target and the first
|
|
141
|
+
* range limit where that is below zero, and ends at a fixed `max` or else at the largest
|
|
142
|
+
* of the three. With nothing above the start to reach, the empty 0 to 1 frame.
|
|
143
|
+
*/
|
|
144
|
+
private readonly scale;
|
|
145
|
+
/** A number's share of the scale from its start, held to the scale. */
|
|
146
|
+
private share;
|
|
147
|
+
/**
|
|
148
|
+
* The bands, from the scale's start: each from the limit before it — the first from the
|
|
149
|
+
* scale's start, so a negative value sits in the first band — to its own limit, held to
|
|
150
|
+
* the scale. A band the scale leaves no room for is not drawn, and keeps its shade for
|
|
151
|
+
* the bands that are: shades follow the limits given, not the bands that fit.
|
|
152
|
+
*/
|
|
153
|
+
protected readonly bands: import("@angular/core").Signal<readonly Band[]>;
|
|
154
|
+
/**
|
|
155
|
+
* The value's bar, from zero to the value — leftwards of zero for a negative one — or
|
|
156
|
+
* `null` with no value. A zero is still drawn, as a sliver, since it is a reading.
|
|
157
|
+
*/
|
|
158
|
+
protected readonly bar: import("@angular/core").Signal<{
|
|
159
|
+
start: number;
|
|
160
|
+
size: number;
|
|
161
|
+
negative: boolean;
|
|
162
|
+
} | null>;
|
|
163
|
+
/** The target marker's share of the scale, or `null` with no target. */
|
|
164
|
+
protected readonly targetAt: import("@angular/core").Signal<number | null>;
|
|
165
|
+
/**
|
|
166
|
+
* The scale's ticks, from its start: `chartAxis` over the scale with the ticks it would
|
|
167
|
+
* draw past either end left out, so the scale ends where `max` says rather than on the
|
|
168
|
+
* next round number. Decided for the whole scale, as an axis' ticks are
|
|
169
|
+
* (`useChartNumbers().ticks`). A tick on either end is aligned inwards, so its label
|
|
170
|
+
* stays over the drawing — and once a browser has measured it, so is a tick near an end
|
|
171
|
+
* whose centred label would reach past it.
|
|
172
|
+
*
|
|
173
|
+
* A narrow drawing gets fewer: once a browser has measured it, the scale aims for four
|
|
174
|
+
* gaps, then three, two and one, and keeps the first whose labels stand at least 8px
|
|
175
|
+
* apart, each as wide as its characters at the measured width per character.
|
|
176
|
+
*/
|
|
177
|
+
protected readonly ticks: import("@angular/core").Signal<readonly Tick[]>;
|
|
178
|
+
/**
|
|
179
|
+
* The scale's ticks for `chartAxis` aiming at `count` gaps. A tick on an end is aligned
|
|
180
|
+
* inwards; with a measurement, so is one whose label, centred on it, would cross an end.
|
|
181
|
+
*/
|
|
182
|
+
private ticksFor;
|
|
183
|
+
/** Whether each tick label ends at least `TICK_GAP` before the next begins, placed as the stylesheet places them. */
|
|
184
|
+
private fits;
|
|
185
|
+
/** The accessible name's subject: the label, else the catalog's name for the chart. */
|
|
186
|
+
private readonly subject;
|
|
187
|
+
private readonly summaryText;
|
|
188
|
+
private readonly summaryNoTargetText;
|
|
189
|
+
private readonly summaryNoValueText;
|
|
190
|
+
private readonly noValueText;
|
|
191
|
+
/** The tooltip's name for the target's row. */
|
|
192
|
+
private readonly targetWord;
|
|
193
|
+
/**
|
|
194
|
+
* The drawing's accessible name: `ariaLabel`, or a sentence with the value and the
|
|
195
|
+
* target written as the tooltip writes them — one of four, so a missing value or target
|
|
196
|
+
* is said rather than left as a gap in a template.
|
|
197
|
+
*/
|
|
198
|
+
protected readonly resolvedAriaLabel: import("@angular/core").Signal<string>;
|
|
199
|
+
/**
|
|
200
|
+
* One tooltip for the whole chart: the label as its heading with the value beside it and
|
|
201
|
+
* the bar's own paint as the swatch, then a row for the target. It points at the end of
|
|
202
|
+
* the bar from above — or at the target with no value — so the arrow marks the reading.
|
|
203
|
+
* The label is the `label` input, never the catalog's fallback, which names the kind of
|
|
204
|
+
* chart rather than the measure. With neither a value nor a target there is nothing to
|
|
205
|
+
* say, and it does not open.
|
|
206
|
+
*/
|
|
207
|
+
protected readonly tip: import("ngwr/popover").WrChartTooltip;
|
|
208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrBulletChart, never>;
|
|
209
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrBulletChart, "wr-bullet-chart", never, {
|
|
210
|
+
"value": {
|
|
211
|
+
"alias": "value";
|
|
212
|
+
"required": true;
|
|
213
|
+
"isSignal": true;
|
|
214
|
+
};
|
|
215
|
+
"target": {
|
|
216
|
+
"alias": "target";
|
|
217
|
+
"required": false;
|
|
218
|
+
"isSignal": true;
|
|
219
|
+
};
|
|
220
|
+
"ranges": {
|
|
221
|
+
"alias": "ranges";
|
|
222
|
+
"required": false;
|
|
223
|
+
"isSignal": true;
|
|
224
|
+
};
|
|
225
|
+
"max": {
|
|
226
|
+
"alias": "max";
|
|
227
|
+
"required": false;
|
|
228
|
+
"isSignal": true;
|
|
229
|
+
};
|
|
230
|
+
"label": {
|
|
231
|
+
"alias": "label";
|
|
232
|
+
"required": false;
|
|
233
|
+
"isSignal": true;
|
|
234
|
+
};
|
|
235
|
+
"subLabel": {
|
|
236
|
+
"alias": "subLabel";
|
|
237
|
+
"required": false;
|
|
238
|
+
"isSignal": true;
|
|
239
|
+
};
|
|
240
|
+
"ariaLabel": {
|
|
241
|
+
"alias": "ariaLabel";
|
|
242
|
+
"required": false;
|
|
243
|
+
"isSignal": true;
|
|
244
|
+
};
|
|
245
|
+
"valueFormat": {
|
|
246
|
+
"alias": "valueFormat";
|
|
247
|
+
"required": false;
|
|
248
|
+
"isSignal": true;
|
|
249
|
+
};
|
|
250
|
+
"showScale": {
|
|
251
|
+
"alias": "showScale";
|
|
252
|
+
"required": false;
|
|
253
|
+
"isSignal": true;
|
|
254
|
+
};
|
|
255
|
+
"tooltip": {
|
|
256
|
+
"alias": "tooltip";
|
|
257
|
+
"required": false;
|
|
258
|
+
"isSignal": true;
|
|
259
|
+
};
|
|
260
|
+
}, {}, never, never, true, never>;
|
|
261
|
+
}
|
|
262
|
+
export {};
|
|
@@ -15,6 +15,16 @@ interface WrCalendarHeatmapCell {
|
|
|
15
15
|
/** Which weekday row it sits in, one-based. */
|
|
16
16
|
readonly day: number;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* One row of the heatmap's data table (`dataTable`): a week, headed by its dates, and one
|
|
20
|
+
* cell per weekday, Sunday first.
|
|
21
|
+
*/
|
|
22
|
+
interface WrCalendarHeatmapTableRow {
|
|
23
|
+
/** The row header — the week's first and last day drawn. */
|
|
24
|
+
readonly header: string;
|
|
25
|
+
/** Each weekday's count, written as the tooltip writes it; `''` for a day after the last one drawn. */
|
|
26
|
+
readonly cells: readonly string[];
|
|
27
|
+
}
|
|
18
28
|
/**
|
|
19
29
|
* Test harness for `<wr-calendar-heatmap>`.
|
|
20
30
|
*
|
|
@@ -34,6 +44,11 @@ interface WrCalendarHeatmapCell {
|
|
|
34
44
|
* included, rather than filtering — a spec asserting seven entries with four blanks
|
|
35
45
|
* is pinning the real layout.
|
|
36
46
|
*
|
|
47
|
+
* **Whether the year scrolls is not read.** The host is a tab stop while the grid is
|
|
48
|
+
* wider than its container, decided by measuring the layout after render; jsdom has none,
|
|
49
|
+
* so a method asking would answer "no" for a chart that scrolls and for one that is broken
|
|
50
|
+
* alike.
|
|
51
|
+
*
|
|
37
52
|
* @see https://ngwr.dev/guides/testing
|
|
38
53
|
*/
|
|
39
54
|
export declare class WrCalendarHeatmapHarness extends ComponentHarness {
|
|
@@ -62,5 +77,21 @@ export declare class WrCalendarHeatmapHarness extends ComponentHarness {
|
|
|
62
77
|
getWeekdayLabels(): Promise<string[]>;
|
|
63
78
|
/** The month labels along the top, in order. */
|
|
64
79
|
getMonthLabels(): Promise<string[]>;
|
|
80
|
+
/** Whether the hidden data table is rendered (`dataTable`). */
|
|
81
|
+
hasDataTable(): Promise<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* The data table's column headings: the seven weekdays, Sunday first.
|
|
84
|
+
*
|
|
85
|
+
* Throws when the heatmap renders no table (`dataTable` off) rather than answering with
|
|
86
|
+
* no columns.
|
|
87
|
+
*/
|
|
88
|
+
getTableColumns(): Promise<string[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The data table's rows, one per week: its dates and each weekday's count, as a screen
|
|
91
|
+
* reader walks them. Throws when the heatmap renders no table, as
|
|
92
|
+
* {@link getTableColumns} does.
|
|
93
|
+
*/
|
|
94
|
+
getTableRows(): Promise<WrCalendarHeatmapTableRow[]>;
|
|
95
|
+
private assertDataTable;
|
|
65
96
|
}
|
|
66
|
-
export type { WrCalendarHeatmapCell, WrCalendarHeatmapHarnessFilters };
|
|
97
|
+
export type { WrCalendarHeatmapCell, WrCalendarHeatmapHarnessFilters, WrCalendarHeatmapTableRow };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrChartTableData } from "ngwr/charts/core";
|
|
2
3
|
interface WrHeatmapDatum {
|
|
3
4
|
/** ISO date string (`YYYY-MM-DD`) or `Date`. */
|
|
4
5
|
readonly date: string | Date;
|
|
@@ -17,6 +18,17 @@ interface Cell {
|
|
|
17
18
|
* GitHub-style year-grid heatmap. One column per ISO week, one row per
|
|
18
19
|
* weekday — cells coloured by `value` relative to the data set's max.
|
|
19
20
|
*
|
|
21
|
+
* **A year does not reflow.** Its 53 columns are a fixed cell size, so in a container
|
|
22
|
+
* narrower than the grid the host scrolls sideways. While it does, it is a tab stop with
|
|
23
|
+
* the shared focus ring, so the keyboard can scroll it too — WebKit makes no scroller
|
|
24
|
+
* focusable by itself — and it opens on the inline END, the newest weeks, rather than on
|
|
25
|
+
* the oldest. The stop carries no name of its own: focus lands on the grid's picture,
|
|
26
|
+
* named by `ariaLabel`.
|
|
27
|
+
*
|
|
28
|
+
* **What a screen reader gets.** The grid is one named `role="img"` and every square is
|
|
29
|
+
* hidden, so the days' values are not in text anywhere unless `dataTable` renders them;
|
|
30
|
+
* without it, say what the year shows in `ariaLabel`.
|
|
31
|
+
*
|
|
20
32
|
* @example
|
|
21
33
|
* ```html
|
|
22
34
|
* <wr-calendar-heatmap [data]="contributions" />
|
|
@@ -81,7 +93,7 @@ export declare class WrCalendarHeatmap {
|
|
|
81
93
|
readonly cellSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
82
94
|
/** Pixel gap between cells. @default 2 */
|
|
83
95
|
readonly cellGap: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
84
|
-
/** Cell fill colour at full intensity. @default primary */
|
|
96
|
+
/** Cell fill colour at full intensity. @default 'var(--wr-color-primary)' */
|
|
85
97
|
readonly color: import("@angular/core").InputSignal<string>;
|
|
86
98
|
/** Background colour for zero-value days. @default color-mix(in srgb, var(--wr-border-base) 50%, transparent) */
|
|
87
99
|
readonly emptyColor: import("@angular/core").InputSignal<string>;
|
|
@@ -94,16 +106,33 @@ export declare class WrCalendarHeatmap {
|
|
|
94
106
|
*/
|
|
95
107
|
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
96
108
|
/**
|
|
97
|
-
* Writes each day's count in the tooltip
|
|
109
|
+
* Writes each day's count in the tooltip, the `title` and the data table. `null` uses
|
|
98
110
|
* `Intl.NumberFormat` in `LOCALE_ID`.
|
|
99
111
|
*/
|
|
100
112
|
readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
|
|
101
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Render the days' values as a table that only assistive technology reaches: a row per
|
|
115
|
+
* week, headed by its dates, and a column per weekday, each day's count written the way
|
|
116
|
+
* the tooltip writes it. A day after the last one drawn is an empty cell.
|
|
117
|
+
*
|
|
118
|
+
* The grid is one named `role="img"`, which hides everything inside it, so without the
|
|
119
|
+
* table the values are nowhere a screen reader can walk. It is rendered beside the grid,
|
|
120
|
+
* clipped to nothing: it takes no room, draws nothing and holds no tab stop.
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
readonly dataTable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
124
|
+
/** A day's count as the tooltip, the `title` and the data table write it, in `LOCALE_ID`: never compact. */
|
|
102
125
|
private readonly numbers;
|
|
103
|
-
/** Below one, by significant digits, which keep 0.0004 from rounding to `0`. */
|
|
104
|
-
private readonly smallNumbers;
|
|
105
|
-
private formatValue;
|
|
106
126
|
private readonly daysEl;
|
|
127
|
+
private readonly gridEl;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the year is wider than the host, which then scrolls it — and is a tab stop
|
|
130
|
+
* while it does. `axe`'s `scrollable-region-focusable` named the scroller with no stop
|
|
131
|
+
* at all, and in WebKit, which makes no scroller focusable by itself, a keyboard could
|
|
132
|
+
* not reach the newest weeks. Measured in the browser after render and on every resize;
|
|
133
|
+
* `false` on the server and in jsdom, which lay nothing out.
|
|
134
|
+
*/
|
|
135
|
+
protected readonly scrollable: import("@angular/core").WritableSignal<boolean>;
|
|
107
136
|
private readonly locale;
|
|
108
137
|
/**
|
|
109
138
|
* Weekday names from the locale rather than a hard-coded English list — the row order is
|
|
@@ -113,6 +142,14 @@ export declare class WrCalendarHeatmap {
|
|
|
113
142
|
protected readonly weekdayLabels: import("@angular/core").Signal<readonly string[]>;
|
|
114
143
|
private readonly monthNames;
|
|
115
144
|
protected readonly cells: import("@angular/core").Signal<readonly Cell[]>;
|
|
145
|
+
/** Every weekday's full name, Sunday first as the rows are: the data table's columns. */
|
|
146
|
+
private readonly weekdayNames;
|
|
147
|
+
/**
|
|
148
|
+
* The figures for `dataTable`: the grid's name as the caption, a column per weekday and
|
|
149
|
+
* a row per week, headed by the week's first and last day drawn — `formatRange`, so the
|
|
150
|
+
* locale writes the span its own way — and every day's count as the tooltip writes it.
|
|
151
|
+
*/
|
|
152
|
+
protected readonly tableData: import("@angular/core").Signal<WrChartTableData>;
|
|
116
153
|
protected readonly monthLabels: import("@angular/core").Signal<{
|
|
117
154
|
label: string;
|
|
118
155
|
week: number;
|
|
@@ -138,6 +175,13 @@ export declare class WrCalendarHeatmap {
|
|
|
138
175
|
* between two squares it is on none, and the tooltip starts to leave.
|
|
139
176
|
*/
|
|
140
177
|
protected onCellsPointer(event: MouseEvent): void;
|
|
178
|
+
constructor();
|
|
179
|
+
/**
|
|
180
|
+
* Scrolls the host to its inline end, where the newest weeks are: the right in LTR and
|
|
181
|
+
* the left under RTL, where `scrollLeft` runs from 0 down to minus the overflow. The
|
|
182
|
+
* value is clamped by the browser, so either sign of the whole width lands on the end.
|
|
183
|
+
*/
|
|
184
|
+
private static scrollToEnd;
|
|
141
185
|
protected colorFor(intensity: number): string;
|
|
142
186
|
protected opacityFor(intensity: number): number;
|
|
143
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrCalendarHeatmap, never>;
|
|
@@ -197,6 +241,11 @@ export declare class WrCalendarHeatmap {
|
|
|
197
241
|
"required": false;
|
|
198
242
|
"isSignal": true;
|
|
199
243
|
};
|
|
244
|
+
"dataTable": {
|
|
245
|
+
"alias": "dataTable";
|
|
246
|
+
"required": false;
|
|
247
|
+
"isSignal": true;
|
|
248
|
+
};
|
|
200
249
|
}, {}, never, never, true, never>;
|
|
201
250
|
}
|
|
202
251
|
export type { WrHeatmapDatum };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-candlestick-chart>` a harness query matches. */
|
|
3
|
+
interface WrCandlestickChartHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the plot's accessible name. */
|
|
5
|
+
readonly ariaLabel?: string | RegExp;
|
|
6
|
+
}
|
|
7
|
+
/** One drawn candle, as {@link WrCandlestickChartHarness.getCandles} reads it off the box the component wrote. */
|
|
8
|
+
interface WrCandlestickChartHarnessCandle {
|
|
9
|
+
/** The candle's period, as its position in `data` — a period with no candle keeps its position. */
|
|
10
|
+
readonly index: number;
|
|
11
|
+
/** The period's open. */
|
|
12
|
+
readonly open: number;
|
|
13
|
+
/** The period's high. */
|
|
14
|
+
readonly high: number;
|
|
15
|
+
/** The period's low. */
|
|
16
|
+
readonly low: number;
|
|
17
|
+
/** The period's close. */
|
|
18
|
+
readonly close: number;
|
|
19
|
+
/**
|
|
20
|
+
* `'increase'` for a candle drawn rising — hollow, in the increase colour — and
|
|
21
|
+
* `'decrease'` for one drawn falling, filled: the waterfall's words for a change up and
|
|
22
|
+
* a change down.
|
|
23
|
+
*/
|
|
24
|
+
readonly direction: 'increase' | 'decrease';
|
|
25
|
+
/** Where the candle's centre sits, as a percentage of the drawing's width from its left edge. */
|
|
26
|
+
readonly left: number;
|
|
27
|
+
/** Where the candle's top sits, as a percentage of the drawing's height from its top edge. */
|
|
28
|
+
readonly top: number;
|
|
29
|
+
/** How far the candle reaches down from its top, as a percentage of the drawing's height. */
|
|
30
|
+
readonly height: number;
|
|
31
|
+
/** How much of the candle's own height the upper wick takes, from its top to the body, in percent. */
|
|
32
|
+
readonly upperWick: number;
|
|
33
|
+
/** How much of the candle's own height the lower wick takes, from the body to its bottom, in percent. */
|
|
34
|
+
readonly lowerWick: number;
|
|
35
|
+
}
|
|
36
|
+
/** One row of the chart's data table (`dataTable`): the period, and its open, high, low and close. */
|
|
37
|
+
interface WrCandlestickChartTableRow {
|
|
38
|
+
/** The row header: the period's label. */
|
|
39
|
+
readonly header: string;
|
|
40
|
+
/** The open, the high, the low and the close, written as the tooltip writes them; empty where a price is not a number. */
|
|
41
|
+
readonly cells: readonly string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Test harness for `<wr-candlestick-chart>`.
|
|
45
|
+
*
|
|
46
|
+
* **Candles are read off what the component WROTE, never off a layout.** jsdom lays
|
|
47
|
+
* nothing out, so a measured box would read 0 for a working chart and a broken one
|
|
48
|
+
* alike. Every candle is a box the component places by percentage, and it carries its
|
|
49
|
+
* period's prices in `data-*` attributes beside that placement — so {@link getCandles}
|
|
50
|
+
* answers both questions a spec has: which period is this, and where did the chart put
|
|
51
|
+
* it. A candle with the right prices at the wrong height is exactly the defect worth
|
|
52
|
+
* catching. Hollow or filled is read as the `--increase` / `--decrease` modifier the
|
|
53
|
+
* stylesheet draws it from; what that paints is a browser's question.
|
|
54
|
+
*
|
|
55
|
+
* **A body's width is not read**: it is a share of the slot that the stylesheet holds
|
|
56
|
+
* between 1px and a ceiling, and jsdom has no stylesheet. {@link isDense} reads the
|
|
57
|
+
* decision the component made from that width, which in a unit test is made against
|
|
58
|
+
* the 560px drawing it assumes before a browser measures one — as are the x labels
|
|
59
|
+
* {@link getXLabels} reads.
|
|
60
|
+
*
|
|
61
|
+
* **There is deliberately no hover method.** The tooltip opens on the slot under the
|
|
62
|
+
* pointer, measured against the drawing's box, which jsdom reports as 0×0 — so every
|
|
63
|
+
* synthetic move resolves to nothing, and a `hoverCandle()` would answer "no tooltip"
|
|
64
|
+
* for a working chart. A spec that needs the tooltip stubs the drawing's and the plot's
|
|
65
|
+
* `getBoundingClientRect` and dispatches the `mousemove` itself, as the component's own
|
|
66
|
+
* spec does.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const chart = await loader.getHarness(WrCandlestickChartHarness);
|
|
71
|
+
*
|
|
72
|
+
* expect(await chart.getCandleCount()).toBe(20);
|
|
73
|
+
* expect((await chart.getCandles())[0]).toMatchObject({ open: 102, close: 106, direction: 'increase' });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @see https://ngwr.dev/guides/testing
|
|
77
|
+
*/
|
|
78
|
+
export declare class WrCandlestickChartHarness extends ComponentHarness {
|
|
79
|
+
static hostSelector: string;
|
|
80
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
81
|
+
static with(options?: WrCandlestickChartHarnessFilters): HarnessPredicate<WrCandlestickChartHarness>;
|
|
82
|
+
/** The plot's accessible name — the only name the drawing has. */
|
|
83
|
+
getAccessibleName(): Promise<string | null>;
|
|
84
|
+
/** How many candles were drawn: every period whose open, high, low and close are all finite. */
|
|
85
|
+
getCandleCount(): Promise<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Every drawn candle, oldest first, with its prices, its direction and the percentages
|
|
88
|
+
* the component placed it at.
|
|
89
|
+
*
|
|
90
|
+
* Throws on a candle missing any of what the component writes on every one, rather
|
|
91
|
+
* than answering with a `NaN` a spec could compare against.
|
|
92
|
+
*/
|
|
93
|
+
getCandles(): Promise<WrCandlestickChartHarnessCandle[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the chart is drawn dense: its bodies too narrow to leave hollow, so a rising
|
|
96
|
+
* one is dotted. Decided on the measured body in a browser, and on the assumed 560px
|
|
97
|
+
* drawing before that — which is every unit test.
|
|
98
|
+
*/
|
|
99
|
+
isDense(): Promise<boolean>;
|
|
100
|
+
/** Whether the gridlines are drawn (`showGrid`). */
|
|
101
|
+
hasGrid(): Promise<boolean>;
|
|
102
|
+
/** The y-axis tick labels, top to bottom; `[]` with `showGrid` off. */
|
|
103
|
+
getYTicks(): Promise<string[]>;
|
|
104
|
+
/**
|
|
105
|
+
* The period labels printed under the candles, left to right — every n-th where they
|
|
106
|
+
* do not all fit, and with `showGrid` off too, since they are the time axis. The hidden
|
|
107
|
+
* copy the chart measures is not one of them.
|
|
108
|
+
*/
|
|
109
|
+
getXLabels(): Promise<string[]>;
|
|
110
|
+
/** Whether the hidden data table is rendered (`dataTable`). */
|
|
111
|
+
hasDataTable(): Promise<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* The data table's column headings: the open, the high, the low and the close.
|
|
114
|
+
*
|
|
115
|
+
* Throws when the chart renders no table (`dataTable` off), rather than answering with
|
|
116
|
+
* no columns.
|
|
117
|
+
*/
|
|
118
|
+
getTableColumns(): Promise<string[]>;
|
|
119
|
+
/**
|
|
120
|
+
* The data table's rows, one per period — a period with no candle included — as a
|
|
121
|
+
* screen reader walks them: the period, then its four prices.
|
|
122
|
+
*
|
|
123
|
+
* Throws when the chart renders no table (`dataTable` off), for the reason
|
|
124
|
+
* {@link getTableColumns} gives.
|
|
125
|
+
*/
|
|
126
|
+
getTableRows(): Promise<WrCandlestickChartTableRow[]>;
|
|
127
|
+
/**
|
|
128
|
+
* The plot's height in pixels, read off the `style` ATTRIBUTE the component wrote,
|
|
129
|
+
* not through `getCssValue()`, which answers from the laid-out box and so differs
|
|
130
|
+
* between jsdom and a browser.
|
|
131
|
+
*/
|
|
132
|
+
getPlotHeight(): Promise<number>;
|
|
133
|
+
private assertDataTable;
|
|
134
|
+
}
|
|
135
|
+
export type { WrCandlestickChartHarnessCandle, WrCandlestickChartHarnessFilters, WrCandlestickChartTableRow };
|