ngwr 14.10.0 → 14.12.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/card/styles/_rules.scss +1 -1
- package/event-calendar/styles/_index.scss +14 -0
- package/fesm2022/ngwr-action-sheet-testing.mjs +111 -310
- package/fesm2022/ngwr-action-sheet-testing.mjs.map +1 -1
- package/fesm2022/ngwr-action-sheet.mjs +209 -89
- package/fesm2022/ngwr-action-sheet.mjs.map +1 -1
- package/fesm2022/ngwr-affix.mjs +122 -140
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-alert.mjs +204 -107
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +171 -113
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-aurora.mjs +278 -198
- package/fesm2022/ngwr-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +191 -190
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +140 -95
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +339 -204
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-bar-chart-testing.mjs +56 -120
- package/fesm2022/ngwr-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-bar-chart.mjs +204 -113
- package/fesm2022/ngwr-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-blur-text-testing.mjs +44 -198
- package/fesm2022/ngwr-blur-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-blur-text.mjs +322 -202
- package/fesm2022/ngwr-blur-text.mjs.map +1 -1
- package/fesm2022/ngwr-border-glow-testing.mjs +134 -318
- package/fesm2022/ngwr-border-glow-testing.mjs.map +1 -1
- package/fesm2022/ngwr-border-glow.mjs +440 -277
- package/fesm2022/ngwr-border-glow.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +256 -120
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +115 -63
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button-testing.mjs +39 -94
- package/fesm2022/ngwr-button-testing.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +404 -354
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap-testing.mjs +50 -96
- package/fesm2022/ngwr-calendar-heatmap-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap.mjs +360 -264
- package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-testing.mjs +181 -378
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +612 -790
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +216 -98
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +131 -374
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +459 -332
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs +227 -600
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +482 -418
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox-testing.mjs +45 -99
- package/fesm2022/ngwr-checkbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +461 -354
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text-testing.mjs +56 -223
- package/fesm2022/ngwr-circular-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text.mjs +226 -186
- package/fesm2022/ngwr-circular-text.mjs.map +1 -1
- package/fesm2022/ngwr-click-spark.mjs +303 -199
- package/fesm2022/ngwr-click-spark.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +95 -163
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse-testing.mjs +118 -365
- package/fesm2022/ngwr-collapse-testing.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +287 -227
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker-testing.mjs +223 -461
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +952 -976
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette-testing.mjs +236 -585
- package/fesm2022/ngwr-command-palette-testing.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +512 -443
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +252 -225
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-confetti.mjs +163 -181
- package/fesm2022/ngwr-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-config.mjs +31 -106
- package/fesm2022/ngwr-config.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs +233 -642
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +837 -1167
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +103 -140
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-counter.mjs +646 -460
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapters-fns.mjs +173 -266
- package/fesm2022/ngwr-date-adapters-fns.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapters-luxon.mjs +164 -236
- package/fesm2022/ngwr-date-adapters-luxon.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs +340 -700
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +2581 -2416
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +606 -861
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text-testing.mjs +57 -256
- package/fesm2022/ngwr-decrypt-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text.mjs +489 -409
- package/fesm2022/ngwr-decrypt-text.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +157 -154
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +188 -90
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +44 -87
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +391 -522
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +354 -271
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +151 -133
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-donut-chart-testing.mjs +48 -111
- package/fesm2022/ngwr-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-donut-chart.mjs +295 -190
- package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-drag-drop.mjs +411 -301
- package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
- package/fesm2022/ngwr-drawer-testing.mjs +97 -248
- package/fesm2022/ngwr-drawer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +862 -889
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +125 -288
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +613 -641
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor-testing.mjs +194 -640
- package/fesm2022/ngwr-editor-testing.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +2062 -2541
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +117 -72
- package/fesm2022/ngwr-empty.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar-testing.mjs +217 -439
- package/fesm2022/ngwr-event-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +906 -822
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-falling-text-testing.mjs +52 -216
- package/fesm2022/ngwr-falling-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-falling-text.mjs +375 -342
- package/fesm2022/ngwr-falling-text.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +138 -320
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +475 -328
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form-testing.mjs +145 -452
- package/fesm2022/ngwr-form-testing.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +512 -590
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-fuzzy-text-testing.mjs +36 -132
- package/fesm2022/ngwr-fuzzy-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-fuzzy-text.mjs +635 -421
- package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
- package/fesm2022/ngwr-gauge-testing.mjs +49 -98
- package/fesm2022/ngwr-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-gauge.mjs +297 -129
- package/fesm2022/ngwr-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-glitch-text-testing.mjs +61 -213
- package/fesm2022/ngwr-glitch-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-glitch-text.mjs +170 -73
- package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
- package/fesm2022/ngwr-gradient-text-testing.mjs +82 -251
- package/fesm2022/ngwr-gradient-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-gradient-text.mjs +215 -114
- package/fesm2022/ngwr-gradient-text.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +65 -233
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +882 -1046
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +307 -285
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +374 -464
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +374 -434
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +374 -453
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +374 -561
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +374 -434
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +374 -458
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +374 -457
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +374 -434
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +374 -434
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +374 -453
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +374 -438
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +374 -446
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +374 -450
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +374 -460
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +374 -443
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +374 -447
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +374 -434
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +374 -458
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +374 -455
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +374 -451
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-TW.mjs +374 -442
- package/fesm2022/ngwr-i18n-zh-TW.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +374 -433
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +415 -683
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon-adapters-feather.mjs +28 -77
- package/fesm2022/ngwr-icon-adapters-feather.mjs.map +1 -1
- package/fesm2022/ngwr-icon-adapters-lucide.mjs +32 -94
- package/fesm2022/ngwr-icon-adapters-lucide.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +371 -690
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper-testing.mjs +84 -227
- package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +577 -639
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number-testing.mjs +108 -305
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +511 -361
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp-testing.mjs +172 -420
- package/fesm2022/ngwr-input-otp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +400 -352
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +52 -100
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +356 -303
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +63 -45
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob-testing.mjs +101 -223
- package/fesm2022/ngwr-knob-testing.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +436 -303
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +362 -207
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox-testing.mjs +100 -221
- package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +335 -268
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-line-chart-testing.mjs +65 -133
- package/fesm2022/ngwr-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-line-chart.mjs +356 -281
- package/fesm2022/ngwr-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +251 -134
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs +26 -68
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +173 -186
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-markdown-testing.mjs +174 -505
- package/fesm2022/ngwr-markdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-markdown.mjs +1578 -2219
- package/fesm2022/ngwr-markdown.mjs.map +1 -1
- package/fesm2022/ngwr-marquee-testing.mjs +118 -331
- package/fesm2022/ngwr-marquee-testing.mjs.map +1 -1
- package/fesm2022/ngwr-marquee.mjs +411 -230
- package/fesm2022/ngwr-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-media.mjs +100 -127
- package/fesm2022/ngwr-media.mjs.map +1 -1
- package/fesm2022/ngwr-mention-testing.mjs +179 -506
- package/fesm2022/ngwr-mention-testing.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +668 -732
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +257 -329
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-meter-group-testing.mjs +56 -101
- package/fesm2022/ngwr-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-meter-group.mjs +206 -114
- package/fesm2022/ngwr-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +264 -576
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +107 -67
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +125 -388
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +505 -335
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +343 -382
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +182 -221
- package/fesm2022/ngwr-platform.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +112 -307
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +474 -277
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +114 -332
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +1106 -1311
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +124 -68
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +198 -185
- package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +1179 -1100
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio-testing.mjs +138 -389
- package/fesm2022/ngwr-radio-testing.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +351 -239
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating-testing.mjs +153 -390
- package/fesm2022/ngwr-rating-testing.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +296 -247
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-result.mjs +359 -114
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-rotating-text-testing.mjs +45 -215
- package/fesm2022/ngwr-rotating-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-rotating-text.mjs +402 -272
- package/fesm2022/ngwr-rotating-text.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +384 -213
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +95 -105
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented-testing.mjs +184 -593
- package/fesm2022/ngwr-segmented-testing.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +238 -251
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select-testing.mjs +139 -284
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +1810 -2098
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text-testing.mjs +83 -228
- package/fesm2022/ngwr-shiny-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text.mjs +304 -131
- package/fesm2022/ngwr-shiny-text.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +256 -205
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +101 -72
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs +191 -473
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +444 -443
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sparkline-testing.mjs +37 -74
- package/fesm2022/ngwr-sparkline-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sparkline.mjs +311 -196
- package/fesm2022/ngwr-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial-testing.mjs +135 -278
- package/fesm2022/ngwr-speed-dial-testing.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +242 -140
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +97 -60
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splash-cursor-testing.mjs +23 -87
- package/fesm2022/ngwr-splash-cursor-testing.mjs.map +1 -1
- package/fesm2022/ngwr-splash-cursor.mjs +980 -725
- package/fesm2022/ngwr-splash-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-split-text-testing.mjs +48 -218
- package/fesm2022/ngwr-split-text-testing.mjs.map +1 -1
- package/fesm2022/ngwr-split-text.mjs +365 -220
- package/fesm2022/ngwr-split-text.mjs.map +1 -1
- package/fesm2022/ngwr-splitter-testing.mjs +107 -241
- package/fesm2022/ngwr-splitter-testing.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +222 -184
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-spotlight-card-testing.mjs +105 -360
- package/fesm2022/ngwr-spotlight-card-testing.mjs.map +1 -1
- package/fesm2022/ngwr-spotlight-card.mjs +217 -135
- package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-squircle.mjs +410 -326
- package/fesm2022/ngwr-squircle.mjs.map +1 -1
- package/fesm2022/ngwr-star-border-testing.mjs +53 -168
- package/fesm2022/ngwr-star-border-testing.mjs.map +1 -1
- package/fesm2022/ngwr-star-border.mjs +160 -70
- package/fesm2022/ngwr-star-border.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +570 -389
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper-testing.mjs +158 -471
- package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +336 -215
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +217 -330
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch-testing.mjs +42 -75
- package/fesm2022/ngwr-switch-testing.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +212 -114
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +238 -572
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +1879 -1446
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +84 -153
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +217 -617
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +402 -425
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +84 -236
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +388 -264
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +247 -443
- package/fesm2022/ngwr-theme.mjs.map +1 -1
- package/fesm2022/ngwr-tilt-card-testing.mjs +79 -186
- package/fesm2022/ngwr-tilt-card-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tilt-card.mjs +257 -168
- package/fesm2022/ngwr-tilt-card.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +157 -70
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +59 -99
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +769 -691
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +73 -58
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +75 -171
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +333 -347
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer-testing.mjs +195 -534
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +444 -322
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +277 -754
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +884 -906
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typewriter-testing.mjs +50 -237
- package/fesm2022/ngwr-typewriter-testing.mjs.map +1 -1
- package/fesm2022/ngwr-typewriter.mjs +461 -242
- package/fesm2022/ngwr-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +142 -81
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +304 -613
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +179 -361
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +17 -47
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +259 -125
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-waves-testing.mjs +34 -125
- package/fesm2022/ngwr-waves-testing.mjs.map +1 -1
- package/fesm2022/ngwr-waves.mjs +816 -373
- package/fesm2022/ngwr-waves.mjs.map +1 -1
- package/fesm2022/ngwr-window-testing.mjs +171 -366
- package/fesm2022/ngwr-window-testing.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +1437 -1351
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs +0 -4
- package/i18n/ar.json +0 -1
- package/i18n/cs.json +0 -1
- package/i18n/de.json +0 -1
- package/i18n/en.json +0 -1
- package/i18n/es.json +0 -1
- package/i18n/fr.json +0 -1
- package/i18n/he.json +0 -1
- package/i18n/hi.json +0 -1
- package/i18n/id.json +0 -1
- package/i18n/it.json +0 -1
- package/i18n/ja.json +0 -1
- package/i18n/ko.json +0 -1
- package/i18n/nl.json +0 -1
- package/i18n/pl.json +0 -1
- package/i18n/pt.json +0 -1
- package/i18n/ru.json +0 -1
- package/i18n/sv.json +0 -1
- package/i18n/tr.json +0 -1
- package/i18n/uk.json +0 -1
- package/i18n/vi.json +0 -1
- package/i18n/zh-TW.json +0 -1
- package/i18n/zh.json +0 -1
- package/input-number/styles/_index.scss +33 -35
- package/llms-full.txt +3 -3
- package/loading-bar/styles/_rules.scss +1 -1
- package/package.json +2 -2
- package/segmented/styles/_index.scss +10 -3
- package/theme/_index.scss +84 -0
- package/theme/styles/_contrast.scss +1 -1
- package/theme/styles/_dark.scss +59 -3
- package/types/ngwr-action-sheet-testing.d.ts +174 -200
- package/types/ngwr-action-sheet.d.ts +83 -45
- package/types/ngwr-affix.d.ts +27 -22
- package/types/ngwr-alert.d.ts +93 -59
- package/types/ngwr-anchor.d.ts +52 -35
- package/types/ngwr-aurora.d.ts +53 -35
- package/types/ngwr-avatar.d.ts +97 -81
- package/types/ngwr-back-top.d.ts +36 -23
- package/types/ngwr-badge.d.ts +160 -105
- package/types/ngwr-bar-chart-testing.d.ts +40 -58
- package/types/ngwr-bar-chart.d.ts +86 -60
- package/types/ngwr-blur-text-testing.d.ts +103 -121
- package/types/ngwr-blur-text.d.ts +99 -60
- package/types/ngwr-border-glow-testing.d.ts +155 -173
- package/types/ngwr-border-glow.d.ts +93 -45
- package/types/ngwr-breadcrumbs.d.ts +60 -32
- package/types/ngwr-burger.d.ts +38 -23
- package/types/ngwr-button-testing.d.ts +41 -59
- package/types/ngwr-button.d.ts +213 -163
- package/types/ngwr-calendar-heatmap-testing.d.ts +38 -56
- package/types/ngwr-calendar-heatmap.d.ts +151 -105
- package/types/ngwr-calendar-testing.d.ts +198 -224
- package/types/ngwr-calendar.d.ts +285 -246
- package/types/ngwr-card.d.ts +41 -23
- package/types/ngwr-carousel-testing.d.ts +196 -214
- package/types/ngwr-carousel.d.ts +173 -122
- package/types/ngwr-cascader-testing.d.ts +338 -372
- package/types/ngwr-cascader.d.ts +235 -161
- package/types/ngwr-checkbox-testing.d.ts +45 -63
- package/types/ngwr-checkbox.d.ts +252 -183
- package/types/ngwr-circular-text-testing.d.ts +108 -126
- package/types/ngwr-circular-text.d.ts +53 -41
- package/types/ngwr-click-spark.d.ts +82 -50
- package/types/ngwr-clipboard.d.ts +40 -44
- package/types/ngwr-collapse-testing.d.ts +193 -219
- package/types/ngwr-collapse.d.ts +82 -71
- package/types/ngwr-color-picker-testing.d.ts +211 -237
- package/types/ngwr-color-picker.d.ts +353 -300
- package/types/ngwr-command-palette-testing.d.ts +311 -345
- package/types/ngwr-command-palette.d.ts +257 -197
- package/types/ngwr-compare.d.ts +102 -67
- package/types/ngwr-confetti.d.ts +51 -55
- package/types/ngwr-config.d.ts +44 -71
- package/types/ngwr-context-menu-testing.d.ts +301 -327
- package/types/ngwr-context-menu.d.ts +350 -310
- package/types/ngwr-cookie.d.ts +37 -41
- package/types/ngwr-counter.d.ts +223 -128
- package/types/ngwr-date-adapters-fns.d.ts +40 -59
- package/types/ngwr-date-adapters-luxon.d.ts +61 -72
- package/types/ngwr-date-picker-testing.d.ts +295 -339
- package/types/ngwr-date-picker.d.ts +771 -583
- package/types/ngwr-date.d.ts +229 -258
- package/types/ngwr-decrypt-text-testing.d.ts +140 -158
- package/types/ngwr-decrypt-text.d.ts +104 -62
- package/types/ngwr-density.d.ts +42 -57
- package/types/ngwr-descriptions.d.ts +50 -27
- package/types/ngwr-dialog-testing.d.ts +36 -54
- package/types/ngwr-dialog.d.ts +166 -190
- package/types/ngwr-directives.d.ts +82 -60
- package/types/ngwr-divider.d.ts +78 -62
- package/types/ngwr-donut-chart-testing.d.ts +36 -54
- package/types/ngwr-donut-chart.d.ts +102 -66
- package/types/ngwr-drag-drop.d.ts +139 -106
- package/types/ngwr-drawer-testing.d.ts +141 -159
- package/types/ngwr-drawer.d.ts +374 -316
- package/types/ngwr-dropdown-testing.d.ts +128 -154
- package/types/ngwr-dropdown.d.ts +260 -166
- package/types/ngwr-editor-testing.d.ts +312 -330
- package/types/ngwr-editor.d.ts +435 -344
- package/types/ngwr-empty.d.ts +41 -28
- package/types/ngwr-event-calendar-testing.d.ts +221 -243
- package/types/ngwr-event-calendar.d.ts +340 -298
- package/types/ngwr-falling-text-testing.d.ts +108 -126
- package/types/ngwr-falling-text.d.ts +57 -35
- package/types/ngwr-file-upload-testing.d.ts +134 -151
- package/types/ngwr-file-upload.d.ts +210 -128
- package/types/ngwr-form-testing.d.ts +255 -282
- package/types/ngwr-form.d.ts +324 -306
- package/types/ngwr-fuzzy-text-testing.d.ts +63 -81
- package/types/ngwr-fuzzy-text.d.ts +152 -65
- package/types/ngwr-gauge-testing.d.ts +43 -61
- package/types/ngwr-gauge.d.ts +113 -61
- package/types/ngwr-glitch-text-testing.d.ts +125 -143
- package/types/ngwr-glitch-text.d.ts +47 -24
- package/types/ngwr-gradient-text-testing.d.ts +114 -132
- package/types/ngwr-gradient-text.d.ts +51 -24
- package/types/ngwr-graph-testing.d.ts +89 -115
- package/types/ngwr-graph.d.ts +137 -124
- package/types/ngwr-hotkey.d.ts +85 -75
- package/types/ngwr-i18n-ar.d.ts +2 -5
- package/types/ngwr-i18n-cs.d.ts +2 -5
- package/types/ngwr-i18n-de.d.ts +2 -5
- package/types/ngwr-i18n-en.d.ts +2 -5
- package/types/ngwr-i18n-es.d.ts +2 -5
- package/types/ngwr-i18n-fr.d.ts +2 -5
- package/types/ngwr-i18n-he.d.ts +2 -5
- package/types/ngwr-i18n-hi.d.ts +2 -5
- package/types/ngwr-i18n-id.d.ts +2 -5
- package/types/ngwr-i18n-it.d.ts +2 -5
- package/types/ngwr-i18n-ja.d.ts +2 -5
- package/types/ngwr-i18n-ko.d.ts +2 -5
- package/types/ngwr-i18n-nl.d.ts +2 -5
- package/types/ngwr-i18n-pl.d.ts +2 -5
- package/types/ngwr-i18n-pt.d.ts +2 -5
- package/types/ngwr-i18n-ru.d.ts +2 -5
- package/types/ngwr-i18n-sv.d.ts +2 -5
- package/types/ngwr-i18n-tr.d.ts +2 -5
- package/types/ngwr-i18n-uk.d.ts +2 -5
- package/types/ngwr-i18n-vi.d.ts +2 -5
- package/types/ngwr-i18n-zh-TW.d.ts +2 -5
- package/types/ngwr-i18n-zh.d.ts +2 -5
- package/types/ngwr-i18n.d.ts +202 -246
- package/types/ngwr-icon-adapters-feather.d.ts +2 -11
- package/types/ngwr-icon-adapters-lucide.d.ts +2 -12
- package/types/ngwr-icon.d.ts +62 -84
- package/types/ngwr-image-cropper-testing.d.ts +116 -134
- package/types/ngwr-image-cropper.d.ts +287 -252
- package/types/ngwr-input-number-testing.d.ts +164 -182
- package/types/ngwr-input-number.d.ts +238 -150
- package/types/ngwr-input-otp-testing.d.ts +210 -244
- package/types/ngwr-input-otp.d.ts +175 -123
- package/types/ngwr-input-testing.d.ts +42 -60
- package/types/ngwr-input.d.ts +118 -94
- package/types/ngwr-keyboard.d.ts +14 -12
- package/types/ngwr-knob-testing.d.ts +106 -124
- package/types/ngwr-knob.d.ts +203 -129
- package/types/ngwr-layout.d.ts +57 -40
- package/types/ngwr-lightbox-testing.d.ts +101 -119
- package/types/ngwr-lightbox.d.ts +140 -87
- package/types/ngwr-line-chart-testing.d.ts +51 -69
- package/types/ngwr-line-chart.d.ts +171 -134
- package/types/ngwr-list.d.ts +55 -27
- package/types/ngwr-loading-bar-router.d.ts +2 -12
- package/types/ngwr-loading-bar.d.ts +45 -39
- package/types/ngwr-markdown-testing.d.ts +323 -350
- package/types/ngwr-markdown.d.ts +432 -318
- package/types/ngwr-marquee-testing.d.ts +190 -216
- package/types/ngwr-marquee.d.ts +127 -75
- package/types/ngwr-media.d.ts +25 -39
- package/types/ngwr-mention-testing.d.ts +274 -300
- package/types/ngwr-mention.d.ts +249 -164
- package/types/ngwr-meta.d.ts +93 -108
- package/types/ngwr-meter-group-testing.d.ts +33 -51
- package/types/ngwr-meter-group.d.ts +86 -60
- package/types/ngwr-overlay.d.ts +57 -132
- package/types/ngwr-page-header.d.ts +32 -19
- package/types/ngwr-pagination-testing.d.ts +215 -233
- package/types/ngwr-pagination.d.ts +213 -141
- package/types/ngwr-pipes.d.ts +67 -84
- package/types/ngwr-platform.d.ts +52 -57
- package/types/ngwr-popconfirm-testing.d.ts +181 -199
- package/types/ngwr-popconfirm.d.ts +151 -82
- package/types/ngwr-popover-testing.d.ts +183 -201
- package/types/ngwr-popover.d.ts +291 -207
- package/types/ngwr-progress.d.ts +38 -25
- package/types/ngwr-pull-to-refresh.d.ts +55 -40
- package/types/ngwr-qr.d.ts +79 -37
- package/types/ngwr-radio-testing.d.ts +208 -234
- package/types/ngwr-radio.d.ts +171 -125
- package/types/ngwr-rating-testing.d.ts +218 -244
- package/types/ngwr-rating.d.ts +154 -111
- package/types/ngwr-result.d.ts +85 -41
- package/types/ngwr-rotating-text-testing.d.ts +107 -125
- package/types/ngwr-rotating-text.d.ts +96 -52
- package/types/ngwr-schema-form.d.ts +57 -49
- package/types/ngwr-scroll.d.ts +27 -31
- package/types/ngwr-segmented-testing.d.ts +333 -359
- package/types/ngwr-segmented.d.ts +189 -165
- package/types/ngwr-select-testing.d.ts +128 -154
- package/types/ngwr-select.d.ts +1103 -906
- package/types/ngwr-shiny-text-testing.d.ts +82 -100
- package/types/ngwr-shiny-text.d.ts +83 -36
- package/types/ngwr-sidebar.d.ts +108 -93
- package/types/ngwr-skeleton.d.ts +34 -26
- package/types/ngwr-slider-testing.d.ts +228 -254
- package/types/ngwr-slider.d.ts +244 -186
- package/types/ngwr-sparkline-testing.d.ts +29 -47
- package/types/ngwr-sparkline.d.ts +130 -88
- package/types/ngwr-speed-dial-testing.d.ts +129 -155
- package/types/ngwr-speed-dial.d.ts +92 -57
- package/types/ngwr-spinner.d.ts +30 -23
- package/types/ngwr-splash-cursor-testing.d.ts +42 -60
- package/types/ngwr-splash-cursor.d.ts +129 -61
- package/types/ngwr-split-text-testing.d.ts +119 -137
- package/types/ngwr-split-text.d.ts +120 -71
- package/types/ngwr-splitter-testing.d.ts +114 -132
- package/types/ngwr-splitter.d.ts +85 -55
- package/types/ngwr-spotlight-card-testing.d.ts +177 -203
- package/types/ngwr-spotlight-card.d.ts +50 -32
- package/types/ngwr-squircle.d.ts +112 -70
- package/types/ngwr-star-border-testing.d.ts +74 -92
- package/types/ngwr-star-border.d.ts +42 -20
- package/types/ngwr-statistic.d.ts +210 -130
- package/types/ngwr-stepper-testing.d.ts +258 -284
- package/types/ngwr-stepper.d.ts +112 -75
- package/types/ngwr-storage.d.ts +96 -118
- package/types/ngwr-switch-testing.d.ts +26 -44
- package/types/ngwr-switch.d.ts +99 -62
- package/types/ngwr-table-testing.d.ts +291 -333
- package/types/ngwr-table.d.ts +930 -707
- package/types/ngwr-tabs-router.d.ts +21 -24
- package/types/ngwr-tabs-testing.d.ts +354 -380
- package/types/ngwr-tabs.d.ts +169 -155
- package/types/ngwr-textarea-testing.d.ts +123 -141
- package/types/ngwr-textarea.d.ts +166 -105
- package/types/ngwr-theme.d.ts +81 -163
- package/types/ngwr-tilt-card-testing.d.ts +94 -112
- package/types/ngwr-tilt-card.d.ts +64 -35
- package/types/ngwr-timeline.d.ts +36 -19
- package/types/ngwr-toast-testing.d.ts +37 -55
- package/types/ngwr-toast.d.ts +165 -209
- package/types/ngwr-toolbar.d.ts +17 -14
- package/types/ngwr-tour-testing.d.ts +84 -102
- package/types/ngwr-tour.d.ts +142 -144
- package/types/ngwr-transfer-testing.d.ts +293 -328
- package/types/ngwr-transfer.d.ts +228 -159
- package/types/ngwr-tree-testing.d.ts +428 -454
- package/types/ngwr-tree.d.ts +407 -296
- package/types/ngwr-typewriter-testing.d.ts +125 -143
- package/types/ngwr-typewriter.d.ts +137 -63
- package/types/ngwr-typography.d.ts +49 -27
- package/types/ngwr-utils.d.ts +100 -107
- package/types/ngwr-validators.d.ts +94 -104
- package/types/ngwr-version.d.ts +3 -14
- package/types/ngwr-virtual-scroll.d.ts +86 -58
- package/types/ngwr-waves-testing.d.ts +61 -79
- package/types/ngwr-waves.d.ts +116 -63
- package/types/ngwr-window-testing.d.ts +178 -204
- package/types/ngwr-window.d.ts +299 -325
- package/types/ngwr.d.ts +1 -2
- package/fesm2022/ngwr.mjs.map +0 -1
|
@@ -1,196 +1,301 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { useI18nText } from
|
|
5
|
-
import { useChartTooltip } from
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
*
|
|
10
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
11
|
-
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
12
|
-
*/
|
|
1
|
+
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, ViewEncapsulation, computed, input, viewChild } from "@angular/core";
|
|
4
|
+
import { useI18nText } from "ngwr/i18n";
|
|
5
|
+
import { useChartTooltip } from "ngwr/popover";
|
|
13
6
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
* @license
|
|
8
|
+
*
|
|
9
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
10
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
11
|
+
*/
|
|
18
12
|
function weight(value) {
|
|
19
|
-
|
|
13
|
+
return Number.isFinite(value) ? Math.max(0, value) : 0;
|
|
20
14
|
}
|
|
21
15
|
const FALLBACK_COLORS = [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
"var(--wr-color-primary)",
|
|
17
|
+
"var(--wr-color-secondary)",
|
|
18
|
+
"var(--wr-color-success)",
|
|
19
|
+
"var(--wr-color-warning)",
|
|
20
|
+
"var(--wr-color-danger)",
|
|
21
|
+
"var(--wr-color-medium)"
|
|
28
22
|
];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
23
|
+
var WrDonutChart = class WrDonutChart {
|
|
24
|
+
segments = input([], ...ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []);
|
|
25
|
+
ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
26
|
+
resolvedAriaLabel = useI18nText(this.ariaLabel, "donutChart.label", "Donut chart");
|
|
27
|
+
size = input(200, {
|
|
28
|
+
...ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {},
|
|
29
|
+
transform: (v) => Math.max(48, coerceNumberProperty(v, 200))
|
|
30
|
+
});
|
|
31
|
+
thickness = input(30, {
|
|
32
|
+
...ngDevMode ? { debugName: "thickness" } : /* istanbul ignore next */ {},
|
|
33
|
+
transform: (v) => Math.min(100, Math.max(0, coerceNumberProperty(v, 30)))
|
|
34
|
+
});
|
|
35
|
+
showLegend = input(true, {
|
|
36
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
37
|
+
transform: coerceBooleanProperty
|
|
38
|
+
});
|
|
39
|
+
centerValue = input("", ...ngDevMode ? [{ debugName: "centerValue" }] : /* istanbul ignore next */ []);
|
|
40
|
+
centerLabel = input("", ...ngDevMode ? [{ debugName: "centerLabel" }] : /* istanbul ignore next */ []);
|
|
41
|
+
tooltip = input(true, {
|
|
42
|
+
...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
|
|
43
|
+
transform: coerceBooleanProperty
|
|
44
|
+
});
|
|
45
|
+
svg = viewChild("svg", ...ngDevMode ? [{ debugName: "svg" }] : /* istanbul ignore next */ []);
|
|
46
|
+
outerR = 50;
|
|
47
|
+
innerR = computed(() => {
|
|
48
|
+
const thickness = this.thickness();
|
|
49
|
+
if (thickness === 0) return 0;
|
|
50
|
+
return this.outerR * (1 - thickness / 100);
|
|
51
|
+
}, ...ngDevMode ? [{ debugName: "innerR" }] : /* istanbul ignore next */ []);
|
|
52
|
+
total = computed(() => {
|
|
53
|
+
const sum = this.segments().reduce((acc, s) => acc + weight(s.value), 0);
|
|
54
|
+
return sum > 0 ? sum : 1;
|
|
55
|
+
}, ...ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []);
|
|
56
|
+
slices = computed(() => {
|
|
57
|
+
const total = this.total();
|
|
58
|
+
let cumulative = 0;
|
|
59
|
+
return this.segments().map((s, i) => {
|
|
60
|
+
const value = weight(s.value);
|
|
61
|
+
const startAngle = cumulative / total * Math.PI * 2;
|
|
62
|
+
cumulative += value;
|
|
63
|
+
const endAngle = cumulative / total * Math.PI * 2;
|
|
64
|
+
return {
|
|
65
|
+
label: s.label,
|
|
66
|
+
value,
|
|
67
|
+
color: s.color ?? FALLBACK_COLORS[i % FALLBACK_COLORS.length],
|
|
68
|
+
path: this.arcPath(startAngle, endAngle),
|
|
69
|
+
percent: value / total * 100,
|
|
70
|
+
midAngle: (startAngle + endAngle) / 2
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
}, ...ngDevMode ? [{ debugName: "slices" }] : /* istanbul ignore next */ []);
|
|
74
|
+
tip = useChartTooltip(this.tooltip, (index) => {
|
|
75
|
+
const slice = this.slices()[index];
|
|
76
|
+
const svg = this.svg()?.nativeElement;
|
|
77
|
+
if (!slice?.path || !svg) return null;
|
|
78
|
+
const box = svg.getBoundingClientRect();
|
|
79
|
+
const cos = Math.cos(slice.midAngle);
|
|
80
|
+
const sin = Math.sin(slice.midAngle);
|
|
81
|
+
const side = Math.abs(cos) > Math.abs(sin) ? cos > 0 ? "right" : "left" : sin > 0 ? "bottom" : "top";
|
|
82
|
+
return {
|
|
83
|
+
datum: {
|
|
84
|
+
label: slice.label,
|
|
85
|
+
value: String(slice.value),
|
|
86
|
+
color: slice.color
|
|
87
|
+
},
|
|
88
|
+
anchor: {
|
|
89
|
+
x: box.left + (50 + this.outerR * cos) / 100 * box.width,
|
|
90
|
+
y: box.top + (50 + this.outerR * sin) / 100 * box.height
|
|
91
|
+
},
|
|
92
|
+
side
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
arcPath(start, end) {
|
|
96
|
+
const cx = 50;
|
|
97
|
+
const cy = 50;
|
|
98
|
+
const ro = this.outerR;
|
|
99
|
+
const ri = this.innerR();
|
|
100
|
+
const sweep = end - start;
|
|
101
|
+
if (sweep <= 0) return "";
|
|
102
|
+
if (sweep >= Math.PI * 2 - 1e-6) {
|
|
103
|
+
const path = [
|
|
104
|
+
`M ${cx + ro} ${cy}`,
|
|
105
|
+
`A ${ro} ${ro} 0 1 1 ${cx - ro} ${cy}`,
|
|
106
|
+
`A ${ro} ${ro} 0 1 1 ${cx + ro} ${cy}`
|
|
107
|
+
];
|
|
108
|
+
if (ri > 0) path.push(`M ${cx + ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx - ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx + ri} ${cy}`);
|
|
109
|
+
return path.join(" ");
|
|
110
|
+
}
|
|
111
|
+
const largeArc = sweep > Math.PI ? 1 : 0;
|
|
112
|
+
const sox = cx + ro * Math.cos(start);
|
|
113
|
+
const soy = cy + ro * Math.sin(start);
|
|
114
|
+
const eox = cx + ro * Math.cos(end);
|
|
115
|
+
const eoy = cy + ro * Math.sin(end);
|
|
116
|
+
if (ri === 0) return `M ${cx} ${cy} L ${sox.toFixed(2)} ${soy.toFixed(2)} A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)} Z`;
|
|
117
|
+
const eix = cx + ri * Math.cos(end);
|
|
118
|
+
const eiy = cy + ri * Math.sin(end);
|
|
119
|
+
const six = cx + ri * Math.cos(start);
|
|
120
|
+
const siy = cy + ri * Math.sin(start);
|
|
121
|
+
return [
|
|
122
|
+
`M ${sox.toFixed(2)} ${soy.toFixed(2)}`,
|
|
123
|
+
`A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)}`,
|
|
124
|
+
`L ${eix.toFixed(2)} ${eiy.toFixed(2)}`,
|
|
125
|
+
`A ${ri} ${ri} 0 ${largeArc} 0 ${six.toFixed(2)} ${siy.toFixed(2)}`,
|
|
126
|
+
"Z"
|
|
127
|
+
].join(" ");
|
|
128
|
+
}
|
|
129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
130
|
+
minVersion: "12.0.0",
|
|
131
|
+
version: "22.2.3",
|
|
132
|
+
ngImport: i0,
|
|
133
|
+
type: WrDonutChart,
|
|
134
|
+
deps: [],
|
|
135
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
136
|
+
});
|
|
137
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
138
|
+
minVersion: "17.0.0",
|
|
139
|
+
version: "22.2.3",
|
|
140
|
+
type: WrDonutChart,
|
|
141
|
+
isStandalone: true,
|
|
142
|
+
selector: "wr-donut-chart",
|
|
143
|
+
inputs: {
|
|
144
|
+
segments: {
|
|
145
|
+
classPropertyName: "segments",
|
|
146
|
+
publicName: "segments",
|
|
147
|
+
isSignal: true,
|
|
148
|
+
isRequired: false,
|
|
149
|
+
transformFunction: null
|
|
150
|
+
},
|
|
151
|
+
ariaLabel: {
|
|
152
|
+
classPropertyName: "ariaLabel",
|
|
153
|
+
publicName: "ariaLabel",
|
|
154
|
+
isSignal: true,
|
|
155
|
+
isRequired: false,
|
|
156
|
+
transformFunction: null
|
|
157
|
+
},
|
|
158
|
+
size: {
|
|
159
|
+
classPropertyName: "size",
|
|
160
|
+
publicName: "size",
|
|
161
|
+
isSignal: true,
|
|
162
|
+
isRequired: false,
|
|
163
|
+
transformFunction: null
|
|
164
|
+
},
|
|
165
|
+
thickness: {
|
|
166
|
+
classPropertyName: "thickness",
|
|
167
|
+
publicName: "thickness",
|
|
168
|
+
isSignal: true,
|
|
169
|
+
isRequired: false,
|
|
170
|
+
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
showLegend: {
|
|
173
|
+
classPropertyName: "showLegend",
|
|
174
|
+
publicName: "showLegend",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
centerValue: {
|
|
180
|
+
classPropertyName: "centerValue",
|
|
181
|
+
publicName: "centerValue",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
centerLabel: {
|
|
187
|
+
classPropertyName: "centerLabel",
|
|
188
|
+
publicName: "centerLabel",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
tooltip: {
|
|
194
|
+
classPropertyName: "tooltip",
|
|
195
|
+
publicName: "tooltip",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
host: { classAttribute: "wr-donut-chart" },
|
|
202
|
+
viewQueries: [{
|
|
203
|
+
propertyName: "svg",
|
|
204
|
+
first: true,
|
|
205
|
+
predicate: ["svg"],
|
|
206
|
+
descendants: true,
|
|
207
|
+
isSignal: true
|
|
208
|
+
}],
|
|
209
|
+
ngImport: i0,
|
|
210
|
+
template: "<div class=\"wr-donut-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper. `img` is a\n children-presentational role, so with it out here WebKit dropped the whole\n subtree — including the centre value and label, which are real text and are\n the headline datum the legend does not carry. -->\n <svg #svg viewBox=\"0 0 100 100\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <!-- Every slice is stroked in the SURFACE colour, so adjacent arcs are\n separated by a visible gap rather than by the boundary between two\n fills. Without it the only thing dividing two slices is the colour\n change itself, and the default palette's entries sit within about\n 1.06:1 of each other in relative luminance — for a reader who cannot\n separate hue, two neighbours merge into one arc and the chart reads as\n having fewer slices than it has. A gap is a shape, and it survives\n greyscale, printing and a monochrome display. -->\n @for (slice of slices(); track $index) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n stroke=\"var(--wr-color-surface)\"\n stroke-width=\"1\"\n stroke-linejoin=\"round\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n />\n }\n </svg>\n @if (centerValue() || centerLabel()) {\n <div class=\"wr-donut-chart__center\">\n @if (centerValue()) {\n <div class=\"wr-donut-chart__center-value\">{{ centerValue() }}</div>\n }\n @if (centerLabel()) {\n <div class=\"wr-donut-chart__center-label\">{{ centerLabel() }}</div>\n }\n </div>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul class=\"wr-donut-chart__legend\">\n @for (slice of slices(); track $index) {\n <li class=\"wr-donut-chart__legend-item\">\n <span class=\"wr-donut-chart__swatch\" [style.background]=\"slice.color\"></span>\n <span class=\"wr-donut-chart__legend-label\">{{ slice.label }}</span>\n <span class=\"wr-donut-chart__legend-value\">{{ slice.value }}</span>\n </li>\n }\n </ul>\n}\n",
|
|
211
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
215
|
+
minVersion: "12.0.0",
|
|
216
|
+
version: "22.2.3",
|
|
217
|
+
ngImport: i0,
|
|
218
|
+
type: WrDonutChart,
|
|
219
|
+
decorators: [{
|
|
220
|
+
type: Component,
|
|
221
|
+
args: [{
|
|
222
|
+
selector: "wr-donut-chart",
|
|
223
|
+
encapsulation: ViewEncapsulation.None,
|
|
224
|
+
host: { class: "wr-donut-chart" },
|
|
225
|
+
template: "<div class=\"wr-donut-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper. `img` is a\n children-presentational role, so with it out here WebKit dropped the whole\n subtree — including the centre value and label, which are real text and are\n the headline datum the legend does not carry. -->\n <svg #svg viewBox=\"0 0 100 100\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <!-- Every slice is stroked in the SURFACE colour, so adjacent arcs are\n separated by a visible gap rather than by the boundary between two\n fills. Without it the only thing dividing two slices is the colour\n change itself, and the default palette's entries sit within about\n 1.06:1 of each other in relative luminance — for a reader who cannot\n separate hue, two neighbours merge into one arc and the chart reads as\n having fewer slices than it has. A gap is a shape, and it survives\n greyscale, printing and a monochrome display. -->\n @for (slice of slices(); track $index) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n stroke=\"var(--wr-color-surface)\"\n stroke-width=\"1\"\n stroke-linejoin=\"round\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n />\n }\n </svg>\n @if (centerValue() || centerLabel()) {\n <div class=\"wr-donut-chart__center\">\n @if (centerValue()) {\n <div class=\"wr-donut-chart__center-value\">{{ centerValue() }}</div>\n }\n @if (centerLabel()) {\n <div class=\"wr-donut-chart__center-label\">{{ centerLabel() }}</div>\n }\n </div>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul class=\"wr-donut-chart__legend\">\n @for (slice of slices(); track $index) {\n <li class=\"wr-donut-chart__legend-item\">\n <span class=\"wr-donut-chart__swatch\" [style.background]=\"slice.color\"></span>\n <span class=\"wr-donut-chart__legend-label\">{{ slice.label }}</span>\n <span class=\"wr-donut-chart__legend-value\">{{ slice.value }}</span>\n </li>\n }\n </ul>\n}\n"
|
|
226
|
+
}]
|
|
227
|
+
}],
|
|
228
|
+
propDecorators: {
|
|
229
|
+
segments: [{
|
|
230
|
+
type: i0.Input,
|
|
231
|
+
args: [{
|
|
232
|
+
isSignal: true,
|
|
233
|
+
alias: "segments",
|
|
234
|
+
required: false
|
|
235
|
+
}]
|
|
236
|
+
}],
|
|
237
|
+
ariaLabel: [{
|
|
238
|
+
type: i0.Input,
|
|
239
|
+
args: [{
|
|
240
|
+
isSignal: true,
|
|
241
|
+
alias: "ariaLabel",
|
|
242
|
+
required: false
|
|
243
|
+
}]
|
|
244
|
+
}],
|
|
245
|
+
size: [{
|
|
246
|
+
type: i0.Input,
|
|
247
|
+
args: [{
|
|
248
|
+
isSignal: true,
|
|
249
|
+
alias: "size",
|
|
250
|
+
required: false
|
|
251
|
+
}]
|
|
252
|
+
}],
|
|
253
|
+
thickness: [{
|
|
254
|
+
type: i0.Input,
|
|
255
|
+
args: [{
|
|
256
|
+
isSignal: true,
|
|
257
|
+
alias: "thickness",
|
|
258
|
+
required: false
|
|
259
|
+
}]
|
|
260
|
+
}],
|
|
261
|
+
showLegend: [{
|
|
262
|
+
type: i0.Input,
|
|
263
|
+
args: [{
|
|
264
|
+
isSignal: true,
|
|
265
|
+
alias: "showLegend",
|
|
266
|
+
required: false
|
|
267
|
+
}]
|
|
268
|
+
}],
|
|
269
|
+
centerValue: [{
|
|
270
|
+
type: i0.Input,
|
|
271
|
+
args: [{
|
|
272
|
+
isSignal: true,
|
|
273
|
+
alias: "centerValue",
|
|
274
|
+
required: false
|
|
275
|
+
}]
|
|
276
|
+
}],
|
|
277
|
+
centerLabel: [{
|
|
278
|
+
type: i0.Input,
|
|
279
|
+
args: [{
|
|
280
|
+
isSignal: true,
|
|
281
|
+
alias: "centerLabel",
|
|
282
|
+
required: false
|
|
283
|
+
}]
|
|
284
|
+
}],
|
|
285
|
+
tooltip: [{
|
|
286
|
+
type: i0.Input,
|
|
287
|
+
args: [{
|
|
288
|
+
isSignal: true,
|
|
289
|
+
alias: "tooltip",
|
|
290
|
+
required: false
|
|
291
|
+
}]
|
|
292
|
+
}],
|
|
293
|
+
svg: [{
|
|
294
|
+
type: i0.ViewChild,
|
|
295
|
+
args: ["svg", { isSignal: true }]
|
|
296
|
+
}]
|
|
297
|
+
}
|
|
298
|
+
});
|
|
195
299
|
export { WrDonutChart };
|
|
196
|
-
|
|
300
|
+
|
|
301
|
+
//# sourceMappingURL=ngwr-donut-chart.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-donut-chart.mjs","sources":["../../../projects/lib/donut-chart/donut-chart.ts","../../../projects/lib/donut-chart/donut-chart.html","../../../projects/lib/donut-chart/ngwr-donut-chart.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Component, type ElementRef, ViewEncapsulation, computed, input, viewChild } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\n\nimport type { WrDonutSegment } from './interfaces';\n\n/**\n * A segment's contribution to the ring. `Math.max(0, NaN)` is NaN, and the running total\n * carries it forward — so one non-finite datum used to take out its own arc AND every arc\n * after it, writing the literal text `NaN` into the path `d`.\n */\nfunction weight(value: number): number {\n return Number.isFinite(value) ? Math.max(0, value) : 0;\n}\n\nconst FALLBACK_COLORS = [\n 'var(--wr-color-primary)',\n 'var(--wr-color-secondary)',\n 'var(--wr-color-success)',\n 'var(--wr-color-warning)',\n 'var(--wr-color-danger)',\n 'var(--wr-color-medium)',\n];\n\n/**\n * Donut chart. Set `thickness` to 0 for a solid pie. Optional center\n * text via inputs.\n *\n * @example\n * ```html\n * <wr-donut-chart [segments]=\"[\n * { label: 'Used', value: 60 },\n * { label: 'Free', value: 40 }\n * ]\" centerLabel=\"Disk\" centerValue=\"60%\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/donut-chart\n */\n@Component({\n selector: 'wr-donut-chart',\n templateUrl: './donut-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-donut-chart' },\n})\nexport class WrDonutChart {\n readonly segments = input<readonly WrDonutSegment[]>([]);\n\n /**\n * Accessible name of the drawing. The arcs carry no text and the legend is optional, so\n * with `showLegend: false` this and the centre text are the whole of what a screen reader\n * gets. Falls back to `donutChart.label`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'donutChart.label', 'Donut chart');\n\n /** Diameter in CSS pixels. @default 200 */\n readonly size = input(200, { transform: (v: unknown): number => Math.max(48, coerceNumberProperty(v, 200)) });\n\n /** Inner-ring thickness as a percent of radius (0–100). `0` = solid pie. @default 30 */\n readonly thickness = input(30, {\n transform: (v: unknown): number => Math.min(100, Math.max(0, coerceNumberProperty(v, 30))),\n });\n\n /** Show the legend under the chart. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /** Bold value text in the center. */\n readonly centerValue = input<string>('');\n\n /** Smaller label under the value. */\n readonly centerLabel = input<string>('');\n\n /**\n * Show a tooltip with the slice's label and value on hover. Pointer only — the\n * legend prints the same numbers, and with `showLegend` off `ariaLabel` is where\n * to say them. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n private readonly svg = viewChild<ElementRef<SVGSVGElement>>('svg');\n\n // Drawn in a 100×100 viewBox.\n private readonly outerR = 50;\n\n protected readonly innerR = computed(() => {\n const thickness = this.thickness();\n // 0 = solid pie: fill all the way to the center, not a zero-width ring.\n if (thickness === 0) return 0;\n return this.outerR * (1 - thickness / 100);\n });\n\n protected readonly total = computed(() => {\n const sum = this.segments().reduce((acc, s) => acc + weight(s.value), 0);\n return sum > 0 ? sum : 1;\n });\n\n /** Resolved slices ready for the template — each carries its arc path. */\n protected readonly slices = computed(() => {\n const total = this.total();\n let cumulative = 0;\n return this.segments().map((s, i) => {\n const value = weight(s.value);\n const startAngle = (cumulative / total) * Math.PI * 2;\n cumulative += value;\n const endAngle = (cumulative / total) * Math.PI * 2;\n return {\n label: s.label,\n value,\n color: s.color ?? FALLBACK_COLORS[i % FALLBACK_COLORS.length],\n path: this.arcPath(startAngle, endAngle),\n percent: (value / total) * 100,\n midAngle: (startAngle + endAngle) / 2,\n };\n });\n });\n\n /**\n * One tooltip for the whole chart, pointing at the hovered slice: at the middle of\n * its OUTER arc, on the side that part of the ring faces — above for a slice whose\n * middle is in the top quarter, below for the bottom one, beside it for the two at\n * three and nine o'clock. From there the chip sits clear of the ring, and the way\n * onto it runs straight out of the slice that opened it, over nothing else.\n *\n * Not the slice's `<path>` element: its box is most of the ring for any slice past\n * a quarter, so the chip would point at the middle of the chart. And not the middle\n * of the band: a chip there lies over the ring, under a pointer resting on it —\n * measured in Chromium, the inner half of a lower slice landed on its own chip. A\n * tiny slice keeps its own mid-angle, so the arrow says which sliver it is.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index => {\n const slice = this.slices()[index];\n const svg = this.svg()?.nativeElement;\n if (!slice?.path || !svg) return null;\n const box = svg.getBoundingClientRect();\n // The drawing's y runs downwards, so a positive sine is the lower half.\n const cos = Math.cos(slice.midAngle);\n const sin = Math.sin(slice.midAngle);\n const side = Math.abs(cos) > Math.abs(sin) ? (cos > 0 ? 'right' : 'left') : sin > 0 ? 'bottom' : 'top';\n return {\n datum: { label: slice.label, value: String(slice.value), color: slice.color },\n anchor: {\n x: box.left + ((50 + this.outerR * cos) / 100) * box.width,\n y: box.top + ((50 + this.outerR * sin) / 100) * box.height,\n },\n side,\n };\n });\n\n // Helpers\n\n /** SVG path for one donut slice using outer and inner arcs. */\n private arcPath(start: number, end: number): string {\n const cx = 50;\n const cy = 50;\n const ro = this.outerR;\n const ri = this.innerR();\n const sweep = end - start;\n if (sweep <= 0) return '';\n // Full-circle slice — two halves so the arc can render.\n if (sweep >= Math.PI * 2 - 1e-6) {\n const path = [\n `M ${cx + ro} ${cy}`,\n `A ${ro} ${ro} 0 1 1 ${cx - ro} ${cy}`,\n `A ${ro} ${ro} 0 1 1 ${cx + ro} ${cy}`,\n ];\n if (ri > 0) {\n path.push(`M ${cx + ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx - ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx + ri} ${cy}`);\n }\n return path.join(' ');\n }\n const largeArc = sweep > Math.PI ? 1 : 0;\n const sox = cx + ro * Math.cos(start);\n const soy = cy + ro * Math.sin(start);\n const eox = cx + ro * Math.cos(end);\n const eoy = cy + ro * Math.sin(end);\n if (ri === 0) {\n return `M ${cx} ${cy} L ${sox.toFixed(2)} ${soy.toFixed(2)} A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)} Z`;\n }\n const eix = cx + ri * Math.cos(end);\n const eiy = cy + ri * Math.sin(end);\n const six = cx + ri * Math.cos(start);\n const siy = cy + ri * Math.sin(start);\n return [\n `M ${sox.toFixed(2)} ${soy.toFixed(2)}`,\n `A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)}`,\n `L ${eix.toFixed(2)} ${eiy.toFixed(2)}`,\n `A ${ri} ${ri} 0 ${largeArc} 0 ${six.toFixed(2)} ${siy.toFixed(2)}`,\n 'Z',\n ].join(' ');\n }\n}\n\nexport type { WrDonutSegment } from './interfaces';\n","<div class=\"wr-donut-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper. `img` is a\n children-presentational role, so with it out here WebKit dropped the whole\n subtree — including the centre value and label, which are real text and are\n the headline datum the legend does not carry. -->\n <svg #svg viewBox=\"0 0 100 100\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <!-- Every slice is stroked in the SURFACE colour, so adjacent arcs are\n separated by a visible gap rather than by the boundary between two\n fills. Without it the only thing dividing two slices is the colour\n change itself, and the default palette's entries sit within about\n 1.06:1 of each other in relative luminance — for a reader who cannot\n separate hue, two neighbours merge into one arc and the chart reads as\n having fewer slices than it has. A gap is a shape, and it survives\n greyscale, printing and a monochrome display. -->\n @for (slice of slices(); track $index) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n stroke=\"var(--wr-color-surface)\"\n stroke-width=\"1\"\n stroke-linejoin=\"round\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n />\n }\n </svg>\n @if (centerValue() || centerLabel()) {\n <div class=\"wr-donut-chart__center\">\n @if (centerValue()) {\n <div class=\"wr-donut-chart__center-value\">{{ centerValue() }}</div>\n }\n @if (centerLabel()) {\n <div class=\"wr-donut-chart__center-label\">{{ centerLabel() }}</div>\n }\n </div>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul class=\"wr-donut-chart__legend\">\n @for (slice of slices(); track $index) {\n <li class=\"wr-donut-chart__legend-item\">\n <span class=\"wr-donut-chart__swatch\" [style.background]=\"slice.color\"></span>\n <span class=\"wr-donut-chart__legend-label\">{{ slice.label }}</span>\n <span class=\"wr-donut-chart__legend-value\">{{ slice.value }}</span>\n </li>\n }\n </ul>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;AAKG;AAUH;;;;AAIG;AACH,SAAS,MAAM,CAAC,KAAa,EAAA;IAC3B,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;AACxD;AAEA,MAAM,eAAe,GAAG;IACtB,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;CACzB;AAED;;;;;;;;;;;;;AAaG;MAOU,YAAY,CAAA;IACd,QAAQ,GAAG,KAAK,CAA4B,EAAE;iFAAC;AAExD;;;;AAIG;IACM,SAAS,GAAG,KAAK,CAAgB,IAAI;kFAAC;IAE5B,iBAAiB,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE,aAAa,CAAC;;IAG5F,IAAI,GAAG,KAAK,CAA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AC,CAAA,CAAA,EAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAE;AACvC,YAAA,CAAA,EAAA,EAAK,EAAE,CAAA,CAAA,EAAI,EAAE,MAAM,QAAQ,CAAA,GAAA,EAAM,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAE;YACnE,GAAG;AACJ,SAAA,CAAC,IAAI,CAAC,GAAG,CAAC;IACb;uGAlJW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,qwCCrDzB,0rEAiDA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FDIa,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;+BACE,gBAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,QAC/B,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAA,QAAA,EAAA,0rEAAA,EAAA;20BAsC2B,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzFnE;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"ngwr-donut-chart.mjs","names":[],"sources":["../../../projects/lib/donut-chart/donut-chart.ts","../../../projects/lib/donut-chart/donut-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Component, type ElementRef, ViewEncapsulation, computed, input, viewChild } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\n\nimport type { WrDonutSegment } from './interfaces';\n\n/**\n * A segment's contribution to the ring. `Math.max(0, NaN)` is NaN, and the running total\n * carries it forward — so one non-finite datum used to take out its own arc AND every arc\n * after it, writing the literal text `NaN` into the path `d`.\n */\nfunction weight(value: number): number {\n return Number.isFinite(value) ? Math.max(0, value) : 0;\n}\n\nconst FALLBACK_COLORS = [\n 'var(--wr-color-primary)',\n 'var(--wr-color-secondary)',\n 'var(--wr-color-success)',\n 'var(--wr-color-warning)',\n 'var(--wr-color-danger)',\n 'var(--wr-color-medium)',\n];\n\n/**\n * Donut chart. Set `thickness` to 0 for a solid pie. Optional center\n * text via inputs.\n *\n * @example\n * ```html\n * <wr-donut-chart [segments]=\"[\n * { label: 'Used', value: 60 },\n * { label: 'Free', value: 40 }\n * ]\" centerLabel=\"Disk\" centerValue=\"60%\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/donut-chart\n */\n@Component({\n selector: 'wr-donut-chart',\n templateUrl: './donut-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-donut-chart' },\n})\nexport class WrDonutChart {\n readonly segments = input<readonly WrDonutSegment[]>([]);\n\n /**\n * Accessible name of the drawing. The arcs carry no text and the legend is optional, so\n * with `showLegend: false` this and the centre text are the whole of what a screen reader\n * gets. Falls back to `donutChart.label`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'donutChart.label', 'Donut chart');\n\n /** Diameter in CSS pixels. @default 200 */\n readonly size = input(200, { transform: (v: unknown): number => Math.max(48, coerceNumberProperty(v, 200)) });\n\n /** Inner-ring thickness as a percent of radius (0–100). `0` = solid pie. @default 30 */\n readonly thickness = input(30, {\n transform: (v: unknown): number => Math.min(100, Math.max(0, coerceNumberProperty(v, 30))),\n });\n\n /** Show the legend under the chart. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /** Bold value text in the center. */\n readonly centerValue = input<string>('');\n\n /** Smaller label under the value. */\n readonly centerLabel = input<string>('');\n\n /**\n * Show a tooltip with the slice's label and value on hover. Pointer only — the\n * legend prints the same numbers, and with `showLegend` off `ariaLabel` is where\n * to say them. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n private readonly svg = viewChild<ElementRef<SVGSVGElement>>('svg');\n\n // Drawn in a 100×100 viewBox.\n private readonly outerR = 50;\n\n protected readonly innerR = computed(() => {\n const thickness = this.thickness();\n // 0 = solid pie: fill all the way to the center, not a zero-width ring.\n if (thickness === 0) return 0;\n return this.outerR * (1 - thickness / 100);\n });\n\n protected readonly total = computed(() => {\n const sum = this.segments().reduce((acc, s) => acc + weight(s.value), 0);\n return sum > 0 ? sum : 1;\n });\n\n /** Resolved slices ready for the template — each carries its arc path. */\n protected readonly slices = computed(() => {\n const total = this.total();\n let cumulative = 0;\n return this.segments().map((s, i) => {\n const value = weight(s.value);\n const startAngle = (cumulative / total) * Math.PI * 2;\n cumulative += value;\n const endAngle = (cumulative / total) * Math.PI * 2;\n return {\n label: s.label,\n value,\n color: s.color ?? FALLBACK_COLORS[i % FALLBACK_COLORS.length],\n path: this.arcPath(startAngle, endAngle),\n percent: (value / total) * 100,\n midAngle: (startAngle + endAngle) / 2,\n };\n });\n });\n\n /**\n * One tooltip for the whole chart, pointing at the hovered slice: at the middle of\n * its OUTER arc, on the side that part of the ring faces — above for a slice whose\n * middle is in the top quarter, below for the bottom one, beside it for the two at\n * three and nine o'clock. From there the chip sits clear of the ring, and the way\n * onto it runs straight out of the slice that opened it, over nothing else.\n *\n * Not the slice's `<path>` element: its box is most of the ring for any slice past\n * a quarter, so the chip would point at the middle of the chart. And not the middle\n * of the band: a chip there lies over the ring, under a pointer resting on it —\n * measured in Chromium, the inner half of a lower slice landed on its own chip. A\n * tiny slice keeps its own mid-angle, so the arrow says which sliver it is.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index => {\n const slice = this.slices()[index];\n const svg = this.svg()?.nativeElement;\n if (!slice?.path || !svg) return null;\n const box = svg.getBoundingClientRect();\n // The drawing's y runs downwards, so a positive sine is the lower half.\n const cos = Math.cos(slice.midAngle);\n const sin = Math.sin(slice.midAngle);\n const side = Math.abs(cos) > Math.abs(sin) ? (cos > 0 ? 'right' : 'left') : sin > 0 ? 'bottom' : 'top';\n return {\n datum: { label: slice.label, value: String(slice.value), color: slice.color },\n anchor: {\n x: box.left + ((50 + this.outerR * cos) / 100) * box.width,\n y: box.top + ((50 + this.outerR * sin) / 100) * box.height,\n },\n side,\n };\n });\n\n // Helpers\n\n /** SVG path for one donut slice using outer and inner arcs. */\n private arcPath(start: number, end: number): string {\n const cx = 50;\n const cy = 50;\n const ro = this.outerR;\n const ri = this.innerR();\n const sweep = end - start;\n if (sweep <= 0) return '';\n // Full-circle slice — two halves so the arc can render.\n if (sweep >= Math.PI * 2 - 1e-6) {\n const path = [\n `M ${cx + ro} ${cy}`,\n `A ${ro} ${ro} 0 1 1 ${cx - ro} ${cy}`,\n `A ${ro} ${ro} 0 1 1 ${cx + ro} ${cy}`,\n ];\n if (ri > 0) {\n path.push(`M ${cx + ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx - ri} ${cy}`, `A ${ri} ${ri} 0 1 0 ${cx + ri} ${cy}`);\n }\n return path.join(' ');\n }\n const largeArc = sweep > Math.PI ? 1 : 0;\n const sox = cx + ro * Math.cos(start);\n const soy = cy + ro * Math.sin(start);\n const eox = cx + ro * Math.cos(end);\n const eoy = cy + ro * Math.sin(end);\n if (ri === 0) {\n return `M ${cx} ${cy} L ${sox.toFixed(2)} ${soy.toFixed(2)} A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)} Z`;\n }\n const eix = cx + ri * Math.cos(end);\n const eiy = cy + ri * Math.sin(end);\n const six = cx + ri * Math.cos(start);\n const siy = cy + ri * Math.sin(start);\n return [\n `M ${sox.toFixed(2)} ${soy.toFixed(2)}`,\n `A ${ro} ${ro} 0 ${largeArc} 1 ${eox.toFixed(2)} ${eoy.toFixed(2)}`,\n `L ${eix.toFixed(2)} ${eiy.toFixed(2)}`,\n `A ${ri} ${ri} 0 ${largeArc} 0 ${six.toFixed(2)} ${siy.toFixed(2)}`,\n 'Z',\n ].join(' ');\n }\n}\n\nexport type { WrDonutSegment } from './interfaces';\n","<div class=\"wr-donut-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper. `img` is a\n children-presentational role, so with it out here WebKit dropped the whole\n subtree — including the centre value and label, which are real text and are\n the headline datum the legend does not carry. -->\n <svg #svg viewBox=\"0 0 100 100\" role=\"img\" [attr.aria-label]=\"resolvedAriaLabel()\">\n <!-- Every slice is stroked in the SURFACE colour, so adjacent arcs are\n separated by a visible gap rather than by the boundary between two\n fills. Without it the only thing dividing two slices is the colour\n change itself, and the default palette's entries sit within about\n 1.06:1 of each other in relative luminance — for a reader who cannot\n separate hue, two neighbours merge into one arc and the chart reads as\n having fewer slices than it has. A gap is a shape, and it survives\n greyscale, printing and a monochrome display. -->\n @for (slice of slices(); track $index) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n stroke=\"var(--wr-color-surface)\"\n stroke-width=\"1\"\n stroke-linejoin=\"round\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n />\n }\n </svg>\n @if (centerValue() || centerLabel()) {\n <div class=\"wr-donut-chart__center\">\n @if (centerValue()) {\n <div class=\"wr-donut-chart__center-value\">{{ centerValue() }}</div>\n }\n @if (centerLabel()) {\n <div class=\"wr-donut-chart__center-label\">{{ centerLabel() }}</div>\n }\n </div>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul class=\"wr-donut-chart__legend\">\n @for (slice of slices(); track $index) {\n <li class=\"wr-donut-chart__legend-item\">\n <span class=\"wr-donut-chart__swatch\" [style.background]=\"slice.color\"></span>\n <span class=\"wr-donut-chart__legend-label\">{{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