ngwr 16.4.0 → 16.6.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/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/cascader/styles/_rules.scss +7 -0
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +120 -10
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +43 -0
- package/drawer/styles/_index.scss +5 -1
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +1 -1
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +9 -2
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +20 -13
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +12 -3
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +4 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +27 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +72 -8
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +311 -23
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +225 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +3 -2
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +65 -5
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +51 -24
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +105 -9
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +29 -11
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +9 -6
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +35 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +20 -9
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +170 -3
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +81 -13
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +20 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +20 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +20 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +20 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +20 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +20 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +20 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +20 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +20 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +20 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +20 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +20 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +20 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +20 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +20 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +20 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +20 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +20 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +20 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +20 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +82 -11
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +24 -1
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +2 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +10 -2
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +20 -3
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +1 -1
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +8 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +9 -6
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +21 -0
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +2 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +8 -1
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +43 -6
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +114 -15
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -2
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +71 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +12 -1
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -3
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +20 -0
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +80 -9
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +16 -4
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +1 -1
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +2 -2
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +43 -7
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +2 -2
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +28 -0
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +16 -11
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +49 -16
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +20 -0
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +1 -9
- package/i18n/ar.json +20 -0
- package/i18n/cs.json +20 -0
- package/i18n/de.json +20 -0
- package/i18n/en.json +20 -0
- package/i18n/es.json +20 -0
- package/i18n/fr.json +20 -0
- package/i18n/he.json +20 -0
- package/i18n/hi.json +20 -0
- package/i18n/id.json +20 -0
- package/i18n/it.json +20 -0
- package/i18n/ja.json +20 -0
- package/i18n/ko.json +20 -0
- package/i18n/nl.json +20 -0
- package/i18n/pl.json +20 -0
- package/i18n/pt.json +20 -0
- package/i18n/ru.json +20 -0
- package/i18n/sv.json +20 -0
- package/i18n/tr.json +20 -0
- package/i18n/uk.json +20 -0
- package/i18n/vi.json +20 -0
- package/i18n/zh-TW.json +20 -0
- package/i18n/zh.json +20 -0
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +17 -17
- package/llms.txt +7 -3
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +2 -2
- package/page-header/styles/_index.scss +18 -0
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +31 -13
- package/schematics/use/symbol-map.json +3 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +6 -0
- package/skills/ngwr/references/catalog.md +2 -2
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +49 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +14 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +23 -3
- package/types/ngwr-carousel-testing.d.ts +6 -4
- package/types/ngwr-carousel.d.ts +16 -3
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +34 -3
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +275 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +98 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +28 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +18 -1
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +53 -2
- package/types/ngwr-dialog.d.ts +64 -13
- package/types/ngwr-directives.d.ts +12 -4
- package/types/ngwr-drawer.d.ts +33 -2
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +29 -6
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-form.d.ts +85 -1
- package/types/ngwr-graph.d.ts +22 -6
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +29 -2
- package/types/ngwr-popover.d.ts +87 -13
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +57 -13
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table.d.ts +59 -6
- package/types/ngwr-tabs-router.d.ts +6 -0
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +21 -3
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +33 -2
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +56 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +6 -19
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, computed, inject, input, signal, viewChild } from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, computed, effect, inject, input, signal, viewChild } from "@angular/core";
|
|
3
3
|
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
4
|
import { wrCheckStyles } from "ngwr/utils";
|
|
5
5
|
import { useI18nFormatter, useI18nText } from "ngwr/i18n";
|
|
6
6
|
import { wrDateLocale } from "ngwr/date";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { WrChartScale } from "ngwr/charts/chart-legend";
|
|
8
|
+
import { WrChartState, WrChartTable, useChartNumbers, useChartState } from "ngwr/charts/core";
|
|
9
|
+
import { useChartTooltip, wrCoerceChartTooltip } from "ngwr/popover";
|
|
9
10
|
/**
|
|
10
11
|
* @license
|
|
11
12
|
*
|
|
12
13
|
* Use of this source code is governed by an MIT-style license that can be
|
|
13
14
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
14
15
|
*/
|
|
16
|
+
const STEPS = [
|
|
17
|
+
"var(--wr-calendar-heatmap-step-1)",
|
|
18
|
+
"var(--wr-calendar-heatmap-step-2)",
|
|
19
|
+
"var(--wr-calendar-heatmap-step-3)",
|
|
20
|
+
"var(--wr-calendar-heatmap-step-4)",
|
|
21
|
+
"var(--wr-calendar-heatmap-step-5)"
|
|
22
|
+
];
|
|
23
|
+
const ISO_DAY = /^\d{4}-\d{2}-\d{2}$/;
|
|
24
|
+
const DATE_FORMATS = /* @__PURE__ */ new Map();
|
|
25
|
+
function dateFormat(locale, options) {
|
|
26
|
+
const key = `${locale}|${JSON.stringify(options)}`;
|
|
27
|
+
let format = DATE_FORMATS.get(key);
|
|
28
|
+
if (!format) {
|
|
29
|
+
format = new Intl.DateTimeFormat(locale, options);
|
|
30
|
+
DATE_FORMATS.set(key, format);
|
|
31
|
+
}
|
|
32
|
+
return format;
|
|
33
|
+
}
|
|
15
34
|
function toIso(d) {
|
|
16
35
|
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
17
36
|
}
|
|
@@ -37,30 +56,46 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
37
56
|
count: this.numbers.value(cell.value)
|
|
38
57
|
});
|
|
39
58
|
}
|
|
40
|
-
dateFormat = computed(() =>
|
|
59
|
+
dateFormat = computed(() => dateFormat(this.locale, { dateStyle: "medium" }), ...ngDevMode ? [{ debugName: "dateFormat" }] : /* istanbul ignore next */ []);
|
|
41
60
|
titles = computed(() => this.tooltip() ? null : this.cells().map((cell) => this.cellTitle(cell)), ...ngDevMode ? [{ debugName: "titles" }] : /* istanbul ignore next */ []);
|
|
42
61
|
endDate = input(null, ...ngDevMode ? [{ debugName: "endDate" }] : /* istanbul ignore next */ []);
|
|
43
62
|
weeks = input(53, {
|
|
44
63
|
...ngDevMode ? { debugName: "weeks" } : /* istanbul ignore next */ {},
|
|
45
64
|
transform: (v) => Math.max(4, coerceNumberProperty(v, 53))
|
|
46
65
|
});
|
|
47
|
-
cellSize = input(
|
|
66
|
+
cellSize = input(12, {
|
|
48
67
|
...ngDevMode ? { debugName: "cellSize" } : /* istanbul ignore next */ {},
|
|
49
|
-
transform: (v) => Math.max(4, coerceNumberProperty(v,
|
|
68
|
+
transform: (v) => Math.max(4, coerceNumberProperty(v, 12))
|
|
50
69
|
});
|
|
51
|
-
cellGap = input(
|
|
70
|
+
cellGap = input(3, {
|
|
52
71
|
...ngDevMode ? { debugName: "cellGap" } : /* istanbul ignore next */ {},
|
|
53
|
-
transform: (v) => Math.max(0, coerceNumberProperty(v,
|
|
72
|
+
transform: (v) => Math.max(0, coerceNumberProperty(v, 3))
|
|
73
|
+
});
|
|
74
|
+
color = input(null, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
75
|
+
emptyColor = input(null, ...ngDevMode ? [{ debugName: "emptyColor" }] : /* istanbul ignore next */ []);
|
|
76
|
+
showLegend = input(true, {
|
|
77
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
78
|
+
transform: coerceBooleanProperty
|
|
54
79
|
});
|
|
55
|
-
|
|
56
|
-
|
|
80
|
+
legendPosition = input("bottom", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
|
|
81
|
+
loading = input(false, {
|
|
82
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
83
|
+
transform: coerceBooleanProperty
|
|
84
|
+
});
|
|
85
|
+
error = input(false, {
|
|
86
|
+
...ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {},
|
|
87
|
+
transform: coerceBooleanProperty
|
|
88
|
+
});
|
|
89
|
+
emptyLabel = input(null, ...ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []);
|
|
90
|
+
loadingLabel = input(null, ...ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []);
|
|
91
|
+
errorLabel = input(null, ...ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []);
|
|
57
92
|
showLabels = input(true, {
|
|
58
93
|
...ngDevMode ? { debugName: "showLabels" } : /* istanbul ignore next */ {},
|
|
59
94
|
transform: coerceBooleanProperty
|
|
60
95
|
});
|
|
61
96
|
tooltip = input(true, {
|
|
62
97
|
...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
|
|
63
|
-
transform:
|
|
98
|
+
transform: wrCoerceChartTooltip
|
|
64
99
|
});
|
|
65
100
|
valueFormat = input(null, ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
66
101
|
dataTable = input(false, {
|
|
@@ -76,7 +111,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
76
111
|
return this.dateLocale();
|
|
77
112
|
}
|
|
78
113
|
weekdayLabels = computed(() => {
|
|
79
|
-
const formatter =
|
|
114
|
+
const formatter = dateFormat(this.locale, { weekday: "short" });
|
|
80
115
|
const sunday = new Date(2024, 0, 7);
|
|
81
116
|
return Array.from({ length: 7 }, (_, row) => {
|
|
82
117
|
if (!LABELLED_ROWS.has(row)) return "";
|
|
@@ -86,22 +121,40 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
86
121
|
});
|
|
87
122
|
}, ...ngDevMode ? [{ debugName: "weekdayLabels" }] : /* istanbul ignore next */ []);
|
|
88
123
|
monthNames = computed(() => {
|
|
89
|
-
const formatter =
|
|
124
|
+
const formatter = dateFormat(this.locale, { month: "short" });
|
|
90
125
|
return Array.from({ length: 12 }, (_, month) => formatter.format(new Date(2024, month, 15)));
|
|
91
126
|
}, ...ngDevMode ? [{ debugName: "monthNames" }] : /* istanbul ignore next */ []);
|
|
92
127
|
cells = computed(() => {
|
|
93
128
|
const end = this.endDate() ? parseInput(this.endDate()) : /* @__PURE__ */ new Date();
|
|
94
129
|
end.setHours(0, 0, 0, 0);
|
|
95
130
|
const weeks = this.weeks();
|
|
96
|
-
const
|
|
97
|
-
for (const d of this.data()) {
|
|
98
|
-
const iso = toIso(parseInput(d.date));
|
|
99
|
-
map.set(iso, (map.get(iso) ?? 0) + amount(d.value));
|
|
100
|
-
}
|
|
101
|
-
const max = [...map.values()].reduce((a, b) => Math.max(a, b), 0);
|
|
131
|
+
const data = this.state() && this.state()?.kind !== "empty" ? [] : this.data();
|
|
102
132
|
const out = [];
|
|
103
133
|
const start = new Date(end);
|
|
104
134
|
start.setDate(end.getDate() - end.getDay() - (weeks - 1) * 7);
|
|
135
|
+
const from = new Date(start);
|
|
136
|
+
from.setDate(start.getDate() - 7);
|
|
137
|
+
const firstIso = toIso(from);
|
|
138
|
+
const lastIso = toIso(end);
|
|
139
|
+
const firstTime = start.getTime();
|
|
140
|
+
const lastTime = end.getTime() + 864e5;
|
|
141
|
+
const map = /* @__PURE__ */ new Map();
|
|
142
|
+
let max = 0;
|
|
143
|
+
for (const d of data) {
|
|
144
|
+
const { date } = d;
|
|
145
|
+
if (typeof date === "string") {
|
|
146
|
+
if (ISO_DAY.test(date) && (date < firstIso || date > lastIso)) continue;
|
|
147
|
+
} else {
|
|
148
|
+
const time = date.getTime();
|
|
149
|
+
if (time < firstTime || time >= lastTime) continue;
|
|
150
|
+
}
|
|
151
|
+
const iso = toIso(parseInput(date));
|
|
152
|
+
const sum = (map.get(iso) ?? 0) + amount(d.value);
|
|
153
|
+
map.set(iso, sum);
|
|
154
|
+
}
|
|
155
|
+
const startIso = toIso(start);
|
|
156
|
+
for (const [iso, sum] of map) if (iso >= startIso && iso <= lastIso && sum > max) max = sum;
|
|
157
|
+
const empty = this.emptyColor() ?? "var(--wr-calendar-heatmap-empty)";
|
|
105
158
|
const cursor = new Date(start);
|
|
106
159
|
let column = 0;
|
|
107
160
|
while (cursor <= end) {
|
|
@@ -110,11 +163,15 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
110
163
|
const iso = toIso(cursor);
|
|
111
164
|
const value = map.get(iso) ?? 0;
|
|
112
165
|
const intensity = max > 0 ? Math.min(1, Math.max(0, value / max)) : 0;
|
|
166
|
+
const level = intensity === 0 ? 0 : Math.min(STEPS.length, Math.ceil(intensity * STEPS.length - 1e-9));
|
|
167
|
+
const paint = level === 0 ? empty : STEPS[level - 1];
|
|
113
168
|
out.push({
|
|
114
169
|
iso,
|
|
115
170
|
date: new Date(cursor),
|
|
116
171
|
value,
|
|
117
172
|
intensity,
|
|
173
|
+
level,
|
|
174
|
+
paint,
|
|
118
175
|
week: column,
|
|
119
176
|
day: row
|
|
120
177
|
});
|
|
@@ -125,7 +182,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
125
182
|
return out;
|
|
126
183
|
}, ...ngDevMode ? [{ debugName: "cells" }] : /* istanbul ignore next */ []);
|
|
127
184
|
weekdayNames = computed(() => {
|
|
128
|
-
const formatter =
|
|
185
|
+
const formatter = dateFormat(this.locale, { weekday: "long" });
|
|
129
186
|
return Array.from({ length: 7 }, (_, row) => formatter.format(new Date(2024, 0, 7 + row)));
|
|
130
187
|
}, ...ngDevMode ? [{ debugName: "weekdayNames" }] : /* istanbul ignore next */ []);
|
|
131
188
|
tableData = computed(() => {
|
|
@@ -147,18 +204,36 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
147
204
|
monthLabels = computed(() => {
|
|
148
205
|
const cells = this.cells();
|
|
149
206
|
const seen = /* @__PURE__ */ new Set();
|
|
150
|
-
return cells.filter((
|
|
151
|
-
const date = /* @__PURE__ */ new Date(`${cell.iso}T00:00:00`);
|
|
207
|
+
return cells.filter(({ date }) => {
|
|
152
208
|
if (date.getDate() !== 1) return false;
|
|
153
209
|
const key = `${date.getFullYear()}-${date.getMonth()}`;
|
|
154
210
|
if (seen.has(key)) return false;
|
|
155
211
|
seen.add(key);
|
|
156
212
|
return true;
|
|
157
213
|
}).map((cell) => ({
|
|
158
|
-
label: this.monthNames()[
|
|
214
|
+
label: this.monthNames()[cell.date.getMonth()],
|
|
159
215
|
week: cell.week
|
|
160
216
|
}));
|
|
161
217
|
}, ...ngDevMode ? [{ debugName: "monthLabels" }] : /* istanbul ignore next */ []);
|
|
218
|
+
peak = computed(() => this.cells().reduce((max, cell) => Math.max(max, cell.value), 0), ...ngDevMode ? [{ debugName: "peak" }] : /* istanbul ignore next */ []);
|
|
219
|
+
legend = computed(() => {
|
|
220
|
+
const peak = this.peak();
|
|
221
|
+
const empty = this.emptyColor() ?? "var(--wr-calendar-heatmap-empty)";
|
|
222
|
+
return {
|
|
223
|
+
min: this.numbers.value(0),
|
|
224
|
+
max: peak > 0 ? this.numbers.value(peak) : null,
|
|
225
|
+
steps: peak > 0 ? [empty, ...STEPS] : [empty]
|
|
226
|
+
};
|
|
227
|
+
}, ...ngDevMode ? [{ debugName: "legend" }] : /* istanbul ignore next */ []);
|
|
228
|
+
legendShown = computed(() => this.showLegend() && this.legendPosition() !== "none", ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
|
|
229
|
+
state = useChartState({
|
|
230
|
+
loading: this.loading,
|
|
231
|
+
error: this.error,
|
|
232
|
+
empty: computed(() => this.data().length === 0),
|
|
233
|
+
emptyLabel: this.emptyLabel,
|
|
234
|
+
loadingLabel: this.loadingLabel,
|
|
235
|
+
errorLabel: this.errorLabel
|
|
236
|
+
});
|
|
162
237
|
columnCount = computed(() => {
|
|
163
238
|
const cells = this.cells();
|
|
164
239
|
return cells.length === 0 ? 0 : cells[cells.length - 1].week + 1;
|
|
@@ -191,6 +266,27 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
191
266
|
if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("charts/calendar-heatmap");
|
|
192
267
|
const host = inject(ElementRef).nativeElement;
|
|
193
268
|
const destroyRef = inject(DestroyRef);
|
|
269
|
+
afterNextRender(() => {
|
|
270
|
+
const days = this.daysEl()?.nativeElement;
|
|
271
|
+
if (!days) return;
|
|
272
|
+
const move = (event) => this.onCellsPointer(event);
|
|
273
|
+
const leave = (event) => this.tip.leave(event);
|
|
274
|
+
days.addEventListener("mousemove", move);
|
|
275
|
+
days.addEventListener("mouseleave", leave);
|
|
276
|
+
destroyRef.onDestroy(() => {
|
|
277
|
+
days.removeEventListener("mousemove", move);
|
|
278
|
+
days.removeEventListener("mouseleave", leave);
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
let ringed = null;
|
|
282
|
+
effect(() => {
|
|
283
|
+
const active = this.tip.active();
|
|
284
|
+
const next = active === null ? null : this.daysEl()?.nativeElement.children.item(active) ?? null;
|
|
285
|
+
if (next === ringed) return;
|
|
286
|
+
ringed?.classList.remove("wr-calendar-heatmap__cell--active");
|
|
287
|
+
next?.classList.add("wr-calendar-heatmap__cell--active");
|
|
288
|
+
ringed = next;
|
|
289
|
+
});
|
|
194
290
|
afterNextRender(() => {
|
|
195
291
|
const grid = this.gridEl()?.nativeElement;
|
|
196
292
|
if (typeof ResizeObserver === "undefined") return;
|
|
@@ -208,17 +304,6 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
208
304
|
static scrollToEnd(host) {
|
|
209
305
|
host.scrollLeft = getComputedStyle(host).direction === "rtl" ? -host.scrollWidth : host.scrollWidth;
|
|
210
306
|
}
|
|
211
|
-
colorFor(intensity) {
|
|
212
|
-
if (intensity === 0) return this.emptyColor();
|
|
213
|
-
return this.color();
|
|
214
|
-
}
|
|
215
|
-
opacityFor(intensity) {
|
|
216
|
-
if (intensity === 0) return 1;
|
|
217
|
-
if (intensity < .25) return .25;
|
|
218
|
-
if (intensity < .5) return .5;
|
|
219
|
-
if (intensity < .75) return .75;
|
|
220
|
-
return 1;
|
|
221
|
-
}
|
|
222
307
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
223
308
|
minVersion: "12.0.0",
|
|
224
309
|
version: "22.2.6",
|
|
@@ -290,6 +375,55 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
290
375
|
isRequired: false,
|
|
291
376
|
transformFunction: null
|
|
292
377
|
},
|
|
378
|
+
showLegend: {
|
|
379
|
+
classPropertyName: "showLegend",
|
|
380
|
+
publicName: "showLegend",
|
|
381
|
+
isSignal: true,
|
|
382
|
+
isRequired: false,
|
|
383
|
+
transformFunction: null
|
|
384
|
+
},
|
|
385
|
+
legendPosition: {
|
|
386
|
+
classPropertyName: "legendPosition",
|
|
387
|
+
publicName: "legendPosition",
|
|
388
|
+
isSignal: true,
|
|
389
|
+
isRequired: false,
|
|
390
|
+
transformFunction: null
|
|
391
|
+
},
|
|
392
|
+
loading: {
|
|
393
|
+
classPropertyName: "loading",
|
|
394
|
+
publicName: "loading",
|
|
395
|
+
isSignal: true,
|
|
396
|
+
isRequired: false,
|
|
397
|
+
transformFunction: null
|
|
398
|
+
},
|
|
399
|
+
error: {
|
|
400
|
+
classPropertyName: "error",
|
|
401
|
+
publicName: "error",
|
|
402
|
+
isSignal: true,
|
|
403
|
+
isRequired: false,
|
|
404
|
+
transformFunction: null
|
|
405
|
+
},
|
|
406
|
+
emptyLabel: {
|
|
407
|
+
classPropertyName: "emptyLabel",
|
|
408
|
+
publicName: "emptyLabel",
|
|
409
|
+
isSignal: true,
|
|
410
|
+
isRequired: false,
|
|
411
|
+
transformFunction: null
|
|
412
|
+
},
|
|
413
|
+
loadingLabel: {
|
|
414
|
+
classPropertyName: "loadingLabel",
|
|
415
|
+
publicName: "loadingLabel",
|
|
416
|
+
isSignal: true,
|
|
417
|
+
isRequired: false,
|
|
418
|
+
transformFunction: null
|
|
419
|
+
},
|
|
420
|
+
errorLabel: {
|
|
421
|
+
classPropertyName: "errorLabel",
|
|
422
|
+
publicName: "errorLabel",
|
|
423
|
+
isSignal: true,
|
|
424
|
+
isRequired: false,
|
|
425
|
+
transformFunction: null
|
|
426
|
+
},
|
|
293
427
|
showLabels: {
|
|
294
428
|
classPropertyName: "showLabels",
|
|
295
429
|
publicName: "showLabels",
|
|
@@ -320,8 +454,12 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
320
454
|
}
|
|
321
455
|
},
|
|
322
456
|
host: {
|
|
323
|
-
properties: {
|
|
324
|
-
|
|
457
|
+
properties: {
|
|
458
|
+
"class.wr-calendar-heatmap--tinted": "color() !== null",
|
|
459
|
+
"style.--wr-calendar-heatmap-scale-color": "color()",
|
|
460
|
+
"attr.tabindex": "scrollable() ? 0 : null"
|
|
461
|
+
},
|
|
462
|
+
classAttribute: "wr-calendar-heatmap wr-chart--legend"
|
|
325
463
|
},
|
|
326
464
|
viewQueries: [{
|
|
327
465
|
propertyName: "daysEl",
|
|
@@ -337,13 +475,33 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
|
|
|
337
475
|
isSignal: true
|
|
338
476
|
}],
|
|
339
477
|
ngImport: i0,
|
|
340
|
-
template: "<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <div #days class=\"wr-calendar-heatmap__cells\"
|
|
341
|
-
dependencies: [
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
478
|
+
template: "@let shown = state();\n@let key = legend();\n@let keyed = legendShown() && !shown;\n\n@if (keyed && legendPosition() === 'top') {\n <!-- The scale key, before the grid or after it so it is in the DOM where it is on\n screen. Hidden, as an axis' ticks are on every chart: the grid's name is what is\n announced, and the counts are in the data table. -->\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"top\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <!-- The pointer is heard here by listeners the component adds itself, and the reading\n day's ring is set by hand: nothing in this template follows the pointer, so a move\n across the year checks no square. A square's paint is its level's, a step of the\n sequential scale, or the track for a day of nothing. -->\n <div #days class=\"wr-calendar-heatmap__cells\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"cell.paint\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n [attr.data-level]=\"cell.level\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (shown) {\n <!-- Under the grid, in the scale key's place, and never inside the grid's `img`, which\n makes everything it holds presentational: the message is a live region. -->\n <div class=\"wr-calendar-heatmap__status\">\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n </div>\n} @else if (keyed && legendPosition() === 'bottom') {\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"bottom\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n",
|
|
479
|
+
dependencies: [
|
|
480
|
+
{
|
|
481
|
+
kind: "component",
|
|
482
|
+
type: WrChartScale,
|
|
483
|
+
selector: "wr-chart-scale",
|
|
484
|
+
inputs: [
|
|
485
|
+
"steps",
|
|
486
|
+
"minLabel",
|
|
487
|
+
"maxLabel",
|
|
488
|
+
"position",
|
|
489
|
+
"block"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
kind: "component",
|
|
494
|
+
type: WrChartState,
|
|
495
|
+
selector: "wr-chart-state",
|
|
496
|
+
inputs: ["kind", "label"]
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
kind: "component",
|
|
500
|
+
type: WrChartTable,
|
|
501
|
+
selector: "wr-chart-table",
|
|
502
|
+
inputs: ["data"]
|
|
503
|
+
}
|
|
504
|
+
],
|
|
347
505
|
encapsulation: i0.ViewEncapsulation.None
|
|
348
506
|
});
|
|
349
507
|
};
|
|
@@ -358,11 +516,17 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
358
516
|
selector: "wr-calendar-heatmap",
|
|
359
517
|
encapsulation: ViewEncapsulation.None,
|
|
360
518
|
host: {
|
|
361
|
-
class: "wr-calendar-heatmap",
|
|
519
|
+
class: "wr-calendar-heatmap wr-chart--legend",
|
|
520
|
+
"[class.wr-calendar-heatmap--tinted]": "color() !== null",
|
|
521
|
+
"[style.--wr-calendar-heatmap-scale-color]": "color()",
|
|
362
522
|
"[attr.tabindex]": "scrollable() ? 0 : null"
|
|
363
523
|
},
|
|
364
|
-
imports: [
|
|
365
|
-
|
|
524
|
+
imports: [
|
|
525
|
+
WrChartScale,
|
|
526
|
+
WrChartState,
|
|
527
|
+
WrChartTable
|
|
528
|
+
],
|
|
529
|
+
template: "@let shown = state();\n@let key = legend();\n@let keyed = legendShown() && !shown;\n\n@if (keyed && legendPosition() === 'top') {\n <!-- The scale key, before the grid or after it so it is in the DOM where it is on\n screen. Hidden, as an axis' ticks are on every chart: the grid's name is what is\n announced, and the counts are in the data table. -->\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"top\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <!-- The pointer is heard here by listeners the component adds itself, and the reading\n day's ring is set by hand: nothing in this template follows the pointer, so a move\n across the year checks no square. A square's paint is its level's, a step of the\n sequential scale, or the track for a day of nothing. -->\n <div #days class=\"wr-calendar-heatmap__cells\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"cell.paint\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n [attr.data-level]=\"cell.level\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (shown) {\n <!-- Under the grid, in the scale key's place, and never inside the grid's `img`, which\n makes everything it holds presentational: the message is a live region. -->\n <div class=\"wr-calendar-heatmap__status\">\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n </div>\n} @else if (keyed && legendPosition() === 'bottom') {\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"bottom\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"
|
|
366
530
|
}]
|
|
367
531
|
}],
|
|
368
532
|
ctorParameters: () => [],
|
|
@@ -431,6 +595,62 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
431
595
|
required: false
|
|
432
596
|
}]
|
|
433
597
|
}],
|
|
598
|
+
showLegend: [{
|
|
599
|
+
type: i0.Input,
|
|
600
|
+
args: [{
|
|
601
|
+
isSignal: true,
|
|
602
|
+
alias: "showLegend",
|
|
603
|
+
required: false
|
|
604
|
+
}]
|
|
605
|
+
}],
|
|
606
|
+
legendPosition: [{
|
|
607
|
+
type: i0.Input,
|
|
608
|
+
args: [{
|
|
609
|
+
isSignal: true,
|
|
610
|
+
alias: "legendPosition",
|
|
611
|
+
required: false
|
|
612
|
+
}]
|
|
613
|
+
}],
|
|
614
|
+
loading: [{
|
|
615
|
+
type: i0.Input,
|
|
616
|
+
args: [{
|
|
617
|
+
isSignal: true,
|
|
618
|
+
alias: "loading",
|
|
619
|
+
required: false
|
|
620
|
+
}]
|
|
621
|
+
}],
|
|
622
|
+
error: [{
|
|
623
|
+
type: i0.Input,
|
|
624
|
+
args: [{
|
|
625
|
+
isSignal: true,
|
|
626
|
+
alias: "error",
|
|
627
|
+
required: false
|
|
628
|
+
}]
|
|
629
|
+
}],
|
|
630
|
+
emptyLabel: [{
|
|
631
|
+
type: i0.Input,
|
|
632
|
+
args: [{
|
|
633
|
+
isSignal: true,
|
|
634
|
+
alias: "emptyLabel",
|
|
635
|
+
required: false
|
|
636
|
+
}]
|
|
637
|
+
}],
|
|
638
|
+
loadingLabel: [{
|
|
639
|
+
type: i0.Input,
|
|
640
|
+
args: [{
|
|
641
|
+
isSignal: true,
|
|
642
|
+
alias: "loadingLabel",
|
|
643
|
+
required: false
|
|
644
|
+
}]
|
|
645
|
+
}],
|
|
646
|
+
errorLabel: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "errorLabel",
|
|
651
|
+
required: false
|
|
652
|
+
}]
|
|
653
|
+
}],
|
|
434
654
|
showLabels: [{
|
|
435
655
|
type: i0.Input,
|
|
436
656
|
args: [{
|