@wirabyte/ui 2.0.0-beta.0 → 3.0.0-beta.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/fesm2022/wirabyte-ui-accordion.mjs +49 -49
- package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-alert.mjs +14 -14
- package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-animate.mjs +10 -10
- package/fesm2022/wirabyte-ui-animate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-api.mjs +4 -4
- package/fesm2022/wirabyte-ui-asidemenu.mjs +8 -8
- package/fesm2022/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-autocomplete.mjs +10 -10
- package/fesm2022/wirabyte-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-avatar.mjs +24 -24
- package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-badge.mjs +20 -20
- package/fesm2022/wirabyte-ui-badge.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-blockui.mjs +8 -8
- package/fesm2022/wirabyte-ui-blockui.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-bottombar.mjs +8 -8
- package/fesm2022/wirabyte-ui-bottombar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-breadcrumb.mjs +8 -8
- package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-button.mjs +38 -38
- package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-card.mjs +34 -34
- package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-carousel.mjs +8 -8
- package/fesm2022/wirabyte-ui-carousel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chart.mjs +1243 -40
- package/fesm2022/wirabyte-ui-chart.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chartjs.mjs +10 -10
- package/fesm2022/wirabyte-ui-chartjs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-checkbox.mjs +29 -29
- package/fesm2022/wirabyte-ui-checkbox.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-chip.mjs +20 -20
- package/fesm2022/wirabyte-ui-chip.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-colorpicker.mjs +8 -8
- package/fesm2022/wirabyte-ui-colorpicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-config.mjs +20 -20
- package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-confirmdialog.mjs +14 -14
- package/fesm2022/wirabyte-ui-confirmdialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-contextmenu.mjs +7 -7
- package/fesm2022/wirabyte-ui-contextmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-datepicker.mjs +83 -83
- package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dialog.mjs +21 -21
- package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-divider.mjs +16 -16
- package/fesm2022/wirabyte-ui-divider.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dock.mjs +8 -8
- package/fesm2022/wirabyte-ui-dock.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-dragdrop.mjs +10 -10
- package/fesm2022/wirabyte-ui-dragdrop.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-drawer.mjs +8 -8
- package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-editor.mjs +17 -17
- package/fesm2022/wirabyte-ui-editor.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-emptystate.mjs +7 -7
- package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-errorpage.mjs +8 -8
- package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fieldset.mjs +21 -21
- package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-fileupload.mjs +11 -11
- package/fesm2022/wirabyte-ui-fileupload.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-floatlabel.mjs +7 -7
- package/fesm2022/wirabyte-ui-floatlabel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-flow.mjs +51 -51
- package/fesm2022/wirabyte-ui-flow.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-galleria.mjs +8 -8
- package/fesm2022/wirabyte-ui-galleria.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-i18n.mjs +17 -17
- package/fesm2022/wirabyte-ui-i18n.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-iconfield.mjs +10 -10
- package/fesm2022/wirabyte-ui-iconfield.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-image.mjs +11 -11
- package/fesm2022/wirabyte-ui-image.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-imagecompare.mjs +8 -8
- package/fesm2022/wirabyte-ui-imagecompare.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-imagecropper.mjs +8 -8
- package/fesm2022/wirabyte-ui-imagecropper.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inplace.mjs +7 -7
- package/fesm2022/wirabyte-ui-inplace.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputgroup.mjs +10 -10
- package/fesm2022/wirabyte-ui-inputgroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputmask.mjs +10 -10
- package/fesm2022/wirabyte-ui-inputmask.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputnumber.mjs +60 -60
- package/fesm2022/wirabyte-ui-inputnumber.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputotp.mjs +7 -7
- package/fesm2022/wirabyte-ui-inputotp.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-inputtext.mjs +12 -12
- package/fesm2022/wirabyte-ui-inputtext.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-keyfilter.mjs +7 -7
- package/fesm2022/wirabyte-ui-keyfilter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-knob.mjs +8 -8
- package/fesm2022/wirabyte-ui-knob.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-listbox.mjs +8 -8
- package/fesm2022/wirabyte-ui-listbox.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-menu.mjs +11 -11
- package/fesm2022/wirabyte-ui-menu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-menubar.mjs +11 -11
- package/fesm2022/wirabyte-ui-menubar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-message.mjs +30 -30
- package/fesm2022/wirabyte-ui-message.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-metergroup.mjs +35 -35
- package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-multiselect.mjs +11 -11
- package/fesm2022/wirabyte-ui-multiselect.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-navbar.mjs +8 -8
- package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-orderlist.mjs +10 -10
- package/fesm2022/wirabyte-ui-orderlist.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-organizationchart.mjs +8 -8
- package/fesm2022/wirabyte-ui-organizationchart.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-paginator.mjs +11 -11
- package/fesm2022/wirabyte-ui-paginator.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panel.mjs +26 -26
- package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-panelmenu.mjs +11 -11
- package/fesm2022/wirabyte-ui-panelmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-password.mjs +48 -48
- package/fesm2022/wirabyte-ui-password.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-picklist.mjs +11 -11
- package/fesm2022/wirabyte-ui-picklist.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-popover.mjs +11 -11
- package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-presets.mjs +2 -2
- package/fesm2022/wirabyte-ui-presets.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-progressbar.mjs +32 -32
- package/fesm2022/wirabyte-ui-progressbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-progressspinner.mjs +28 -28
- package/fesm2022/wirabyte-ui-progressspinner.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-radiobutton.mjs +28 -28
- package/fesm2022/wirabyte-ui-radiobutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-rating.mjs +25 -25
- package/fesm2022/wirabyte-ui-rating.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-result.mjs +7 -7
- package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-ripple.mjs +7 -7
- package/fesm2022/wirabyte-ui-ripple.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scroller.mjs +8 -8
- package/fesm2022/wirabyte-ui-scroller.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-scrollpanel.mjs +7 -7
- package/fesm2022/wirabyte-ui-scrollpanel.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-select.mjs +11 -11
- package/fesm2022/wirabyte-ui-select.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-selectbutton.mjs +33 -33
- package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-sitefooter.mjs +7 -7
- package/fesm2022/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-skeleton.mjs +19 -19
- package/fesm2022/wirabyte-ui-skeleton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-slider.mjs +8 -8
- package/fesm2022/wirabyte-ui-slider.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-splitbutton.mjs +7 -7
- package/fesm2022/wirabyte-ui-splitbutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-splitter.mjs +11 -11
- package/fesm2022/wirabyte-ui-splitter.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-stepper.mjs +42 -42
- package/fesm2022/wirabyte-ui-stepper.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-steps.mjs +11 -11
- package/fesm2022/wirabyte-ui-steps.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-table.mjs +86 -86
- package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tabs.mjs +74 -74
- package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tag.mjs +17 -17
- package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-terminal.mjs +10 -10
- package/fesm2022/wirabyte-ui-terminal.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-textarea.mjs +13 -13
- package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-thai.mjs +22 -22
- package/fesm2022/wirabyte-ui-tieredmenu.mjs +8 -8
- package/fesm2022/wirabyte-ui-tieredmenu.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-timeline.mjs +10 -10
- package/fesm2022/wirabyte-ui-timeline.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toast.mjs +14 -14
- package/fesm2022/wirabyte-ui-toast.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-togglebutton.mjs +30 -30
- package/fesm2022/wirabyte-ui-togglebutton.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toggleswitch.mjs +27 -27
- package/fesm2022/wirabyte-ui-toggleswitch.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-toolbar.mjs +7 -7
- package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tooltip.mjs +7 -7
- package/fesm2022/wirabyte-ui-tooltip.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-tree.mjs +8 -8
- package/fesm2022/wirabyte-ui-tree.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-treeselect.mjs +7 -7
- package/fesm2022/wirabyte-ui-treeselect.mjs.map +1 -1
- package/fesm2022/wirabyte-ui-validation.mjs +16 -16
- package/fesm2022/wirabyte-ui-validation.mjs.map +1 -1
- package/fesm2022/wirabyte-ui.mjs +2 -2
- package/fesm2022/wirabyte-ui.mjs.map +1 -1
- package/package.json +123 -326
- package/schematics/ng-add/schema.json +27 -2
- package/theme/_version.scss +1 -1
- package/themes/glass/amber.css +1181 -0
- package/themes/glass/blue.css +1181 -0
- package/themes/glass/cyan.css +1181 -0
- package/themes/glass/emerald.css +1181 -0
- package/themes/glass/fuchsia.css +1181 -0
- package/themes/glass/green.css +1181 -0
- package/themes/glass/indigo.css +1181 -0
- package/themes/glass/lime.css +1181 -0
- package/themes/glass/orange.css +1181 -0
- package/themes/glass/pink.css +1181 -0
- package/themes/glass/purple.css +1181 -0
- package/themes/glass/red.css +1181 -0
- package/themes/glass/rose.css +1181 -0
- package/themes/glass/sky.css +1181 -0
- package/themes/glass/teal.css +1181 -0
- package/themes/glass/theme.css +1181 -0
- package/themes/glass/violet.css +1181 -0
- package/themes/glass/wira.css +1181 -0
- package/themes/glass/yellow.css +1181 -0
- package/themes/lanna/amber.css +1175 -0
- package/themes/lanna/blue.css +1175 -0
- package/themes/lanna/cyan.css +1175 -0
- package/themes/lanna/emerald.css +1175 -0
- package/themes/lanna/fuchsia.css +1175 -0
- package/themes/lanna/green.css +1175 -0
- package/themes/lanna/indigo.css +1175 -0
- package/themes/lanna/lime.css +1175 -0
- package/themes/lanna/orange.css +1175 -0
- package/themes/lanna/pink.css +1175 -0
- package/themes/lanna/purple.css +1175 -0
- package/themes/lanna/red.css +1175 -0
- package/themes/lanna/rose.css +1175 -0
- package/themes/lanna/sky.css +1175 -0
- package/themes/lanna/teal.css +1175 -0
- package/themes/lanna/theme.css +1175 -0
- package/themes/lanna/violet.css +1175 -0
- package/themes/lanna/wira.css +1175 -0
- package/themes/lanna/yellow.css +1175 -0
- package/themes/nakhon/amber.css +1175 -0
- package/themes/nakhon/blue.css +1175 -0
- package/themes/nakhon/cyan.css +1175 -0
- package/themes/nakhon/emerald.css +1175 -0
- package/themes/nakhon/fuchsia.css +1175 -0
- package/themes/nakhon/green.css +1175 -0
- package/themes/nakhon/indigo.css +1175 -0
- package/themes/nakhon/lime.css +1175 -0
- package/themes/nakhon/orange.css +1175 -0
- package/themes/nakhon/pink.css +1175 -0
- package/themes/nakhon/purple.css +1175 -0
- package/themes/nakhon/red.css +1175 -0
- package/themes/nakhon/rose.css +1175 -0
- package/themes/nakhon/sky.css +1175 -0
- package/themes/nakhon/teal.css +1175 -0
- package/themes/nakhon/theme.css +1175 -0
- package/themes/nakhon/violet.css +1175 -0
- package/themes/nakhon/wira.css +1175 -0
- package/themes/nakhon/yellow.css +1175 -0
- package/themes/siam/amber.css +1175 -0
- package/themes/siam/blue.css +1175 -0
- package/themes/siam/cyan.css +1175 -0
- package/themes/siam/emerald.css +1175 -0
- package/themes/siam/fuchsia.css +1175 -0
- package/themes/siam/green.css +1175 -0
- package/themes/siam/indigo.css +1175 -0
- package/themes/siam/lime.css +1175 -0
- package/themes/siam/orange.css +1175 -0
- package/themes/siam/pink.css +1175 -0
- package/themes/siam/purple.css +1175 -0
- package/themes/siam/red.css +1175 -0
- package/themes/siam/rose.css +1175 -0
- package/themes/siam/sky.css +1175 -0
- package/themes/siam/teal.css +1175 -0
- package/themes/siam/theme.css +1175 -0
- package/themes/siam/violet.css +1175 -0
- package/themes/siam/wira.css +1175 -0
- package/themes/siam/yellow.css +1175 -0
- package/themes/wira/amber.css +1175 -0
- package/themes/wira/blue.css +1175 -0
- package/themes/wira/cyan.css +1175 -0
- package/themes/wira/emerald.css +1175 -0
- package/themes/wira/fuchsia.css +1175 -0
- package/themes/wira/green.css +1175 -0
- package/themes/wira/indigo.css +1175 -0
- package/themes/wira/lime.css +1175 -0
- package/themes/wira/orange.css +1175 -0
- package/themes/wira/pink.css +1175 -0
- package/themes/wira/purple.css +1175 -0
- package/themes/wira/red.css +1175 -0
- package/themes/wira/rose.css +1175 -0
- package/themes/wira/sky.css +1175 -0
- package/themes/wira/teal.css +1175 -0
- package/themes/wira/theme.css +1175 -0
- package/themes/wira/violet.css +1175 -0
- package/themes/wira/wira.css +1175 -0
- package/themes/wira/yellow.css +1175 -0
- package/types/wirabyte-ui-accordion.d.ts +124 -0
- package/types/wirabyte-ui-alert.d.ts +254 -0
- package/types/wirabyte-ui-animate.d.ts +100 -0
- package/types/wirabyte-ui-api.d.ts +16 -0
- package/types/wirabyte-ui-asidemenu.d.ts +233 -0
- package/types/wirabyte-ui-autocomplete.d.ts +212 -0
- package/types/wirabyte-ui-avatar.d.ts +49 -0
- package/types/wirabyte-ui-badge.d.ts +66 -0
- package/types/wirabyte-ui-blockui.d.ts +51 -0
- package/types/wirabyte-ui-bottombar.d.ts +91 -0
- package/types/wirabyte-ui-breadcrumb.d.ts +52 -0
- package/types/wirabyte-ui-button.d.ts +132 -0
- package/types/wirabyte-ui-card.d.ts +66 -0
- package/types/wirabyte-ui-carousel.d.ts +202 -0
- package/types/wirabyte-ui-chart.d.ts +412 -0
- package/types/wirabyte-ui-chartjs.d.ts +98 -0
- package/types/wirabyte-ui-checkbox.d.ts +65 -0
- package/types/wirabyte-ui-chip.d.ts +40 -0
- package/types/wirabyte-ui-colorpicker.d.ts +98 -0
- package/types/wirabyte-ui-config.d.ts +330 -0
- package/types/wirabyte-ui-confirmdialog.d.ts +193 -0
- package/types/wirabyte-ui-contextmenu.d.ts +57 -0
- package/types/wirabyte-ui-core.d.ts +4296 -0
- package/types/wirabyte-ui-datepicker.d.ts +251 -0
- package/types/wirabyte-ui-dialog.d.ts +273 -0
- package/types/wirabyte-ui-divider.d.ts +34 -0
- package/types/wirabyte-ui-dock.d.ts +100 -0
- package/types/wirabyte-ui-dragdrop.d.ts +74 -0
- package/types/wirabyte-ui-drawer.d.ts +113 -0
- package/types/wirabyte-ui-editor.d.ts +500 -0
- package/types/wirabyte-ui-emptystate.d.ts +55 -0
- package/types/wirabyte-ui-errorpage.d.ts +84 -0
- package/types/wirabyte-ui-excel.d.ts +29 -0
- package/types/wirabyte-ui-fieldset.d.ts +40 -0
- package/types/wirabyte-ui-fileupload.d.ts +251 -0
- package/types/wirabyte-ui-floatlabel.d.ts +33 -0
- package/types/wirabyte-ui-flow.d.ts +1343 -0
- package/types/wirabyte-ui-galleria.d.ts +173 -0
- package/types/wirabyte-ui-i18n.d.ts +179 -0
- package/types/wirabyte-ui-iconfield.d.ts +40 -0
- package/types/wirabyte-ui-image.d.ts +100 -0
- package/types/wirabyte-ui-imagecompare.d.ts +78 -0
- package/types/wirabyte-ui-imagecropper.d.ts +396 -0
- package/types/wirabyte-ui-inplace.d.ts +69 -0
- package/types/wirabyte-ui-inputgroup.d.ts +36 -0
- package/types/wirabyte-ui-inputmask.d.ts +134 -0
- package/types/wirabyte-ui-inputnumber.d.ts +126 -0
- package/types/wirabyte-ui-inputotp.d.ts +139 -0
- package/types/wirabyte-ui-inputtext.d.ts +38 -0
- package/types/wirabyte-ui-keyfilter.d.ts +40 -0
- package/types/wirabyte-ui-knob.d.ts +104 -0
- package/types/wirabyte-ui-listbox.d.ts +197 -0
- package/types/wirabyte-ui-menu.d.ts +116 -0
- package/types/wirabyte-ui-menubar.d.ts +158 -0
- package/types/wirabyte-ui-message.d.ts +110 -0
- package/types/wirabyte-ui-metergroup.d.ts +107 -0
- package/types/wirabyte-ui-multiselect.d.ts +267 -0
- package/types/wirabyte-ui-navbar.d.ts +184 -0
- package/types/wirabyte-ui-orderlist.d.ts +166 -0
- package/types/wirabyte-ui-organizationchart.d.ts +98 -0
- package/types/wirabyte-ui-paginator.d.ts +122 -0
- package/types/wirabyte-ui-panel.d.ts +57 -0
- package/types/wirabyte-ui-panelmenu.d.ts +70 -0
- package/types/wirabyte-ui-password.d.ts +98 -0
- package/types/wirabyte-ui-picklist.d.ts +309 -0
- package/types/wirabyte-ui-popover.d.ts +81 -0
- package/types/wirabyte-ui-presets.d.ts +1 -0
- package/types/wirabyte-ui-progressbar.d.ts +75 -0
- package/types/wirabyte-ui-progressspinner.d.ts +65 -0
- package/types/wirabyte-ui-radiobutton.d.ts +89 -0
- package/types/wirabyte-ui-rating.d.ts +54 -0
- package/types/wirabyte-ui-result.d.ts +49 -0
- package/types/wirabyte-ui-ripple.d.ts +25 -0
- package/types/wirabyte-ui-scroller.d.ts +145 -0
- package/types/wirabyte-ui-scrollpanel.d.ts +37 -0
- package/types/wirabyte-ui-select.d.ts +250 -0
- package/types/wirabyte-ui-selectbutton.d.ts +80 -0
- package/types/wirabyte-ui-sitefooter.d.ts +81 -0
- package/types/wirabyte-ui-skeleton.d.ts +35 -0
- package/types/wirabyte-ui-slider.d.ts +90 -0
- package/types/wirabyte-ui-splitbutton.d.ts +85 -0
- package/types/wirabyte-ui-splitter.d.ts +146 -0
- package/types/wirabyte-ui-stepper.d.ts +251 -0
- package/types/wirabyte-ui-steps.d.ts +68 -0
- package/types/wirabyte-ui-table.d.ts +1108 -0
- package/types/wirabyte-ui-tabmenu.d.ts +1 -0
- package/types/wirabyte-ui-tabs.d.ts +229 -0
- package/types/wirabyte-ui-tag.d.ts +35 -0
- package/types/wirabyte-ui-terminal.d.ts +89 -0
- package/types/wirabyte-ui-textarea.d.ts +37 -0
- package/types/wirabyte-ui-thai.d.ts +67 -0
- package/types/wirabyte-ui-tieredmenu.d.ts +100 -0
- package/types/wirabyte-ui-timeline.d.ts +54 -0
- package/types/wirabyte-ui-toast.d.ts +151 -0
- package/types/wirabyte-ui-togglebutton.d.ts +62 -0
- package/types/wirabyte-ui-toggleswitch.d.ts +57 -0
- package/types/wirabyte-ui-toolbar.d.ts +40 -0
- package/types/wirabyte-ui-tooltip.d.ts +112 -0
- package/types/wirabyte-ui-tree.d.ts +160 -0
- package/types/wirabyte-ui-treeselect.d.ts +150 -0
- package/types/wirabyte-ui-validation.d.ts +81 -0
- package/types/wirabyte-ui.d.ts +4 -0
- package/accordion/accordion.component.d.ts +0 -102
- package/accordion/accordion.module.d.ts +0 -9
- package/accordion/accordion.types.d.ts +0 -10
- package/accordion/index.d.ts +0 -5
- package/accordion/public-api.d.ts +0 -3
- package/alert/alert-dialog.base.d.ts +0 -79
- package/alert/alert-dialog.component.d.ts +0 -8
- package/alert/alert.module.d.ts +0 -8
- package/alert/alert.service.d.ts +0 -73
- package/alert/alert.types.d.ts +0 -87
- package/alert/index.d.ts +0 -5
- package/alert/public-api.d.ts +0 -5
- package/animate/animate.directive.d.ts +0 -34
- package/animate/animate.module.d.ts +0 -11
- package/animate/animate.service.d.ts +0 -36
- package/animate/animate.styles.d.ts +0 -2
- package/animate/animate.types.d.ts +0 -20
- package/animate/index.d.ts +0 -5
- package/animate/public-api.d.ts +0 -4
- package/api/index.d.ts +0 -5
- package/api/public-api.d.ts +0 -15
- package/api/shared.module.d.ts +0 -8
- package/asidemenu/asidemenu.component.d.ts +0 -221
- package/asidemenu/asidemenu.module.d.ts +0 -9
- package/asidemenu/index.d.ts +0 -5
- package/asidemenu/public-api.d.ts +0 -2
- package/autocomplete/autocomplete.base.d.ts +0 -181
- package/autocomplete/autocomplete.component.d.ts +0 -10
- package/autocomplete/autocomplete.module.d.ts +0 -9
- package/autocomplete/autocomplete.types.d.ts +0 -10
- package/autocomplete/index.d.ts +0 -5
- package/autocomplete/public-api.d.ts +0 -4
- package/avatar/avatar.component.d.ts +0 -36
- package/avatar/avatar.module.d.ts +0 -8
- package/avatar/avatar.types.d.ts +0 -2
- package/avatar/index.d.ts +0 -5
- package/avatar/public-api.d.ts +0 -3
- package/badge/badge.component.d.ts +0 -20
- package/badge/badge.directive.d.ts +0 -32
- package/badge/badge.module.d.ts +0 -9
- package/badge/badge.styles.d.ts +0 -2
- package/badge/badge.types.d.ts +0 -3
- package/badge/index.d.ts +0 -5
- package/badge/public-api.d.ts +0 -4
- package/blockui/blockui.component.d.ts +0 -41
- package/blockui/blockui.module.d.ts +0 -8
- package/blockui/index.d.ts +0 -5
- package/blockui/public-api.d.ts +0 -2
- package/bottombar/bottombar.component.d.ts +0 -79
- package/bottombar/bottombar.module.d.ts +0 -9
- package/bottombar/index.d.ts +0 -5
- package/bottombar/public-api.d.ts +0 -2
- package/breadcrumb/breadcrumb.component.d.ts +0 -41
- package/breadcrumb/breadcrumb.module.d.ts +0 -8
- package/breadcrumb/index.d.ts +0 -5
- package/breadcrumb/public-api.d.ts +0 -2
- package/button/button-class.d.ts +0 -8
- package/button/button.component.d.ts +0 -49
- package/button/button.directive.d.ts +0 -53
- package/button/button.module.d.ts +0 -9
- package/button/button.styles.d.ts +0 -2
- package/button/button.types.d.ts +0 -8
- package/button/index.d.ts +0 -5
- package/button/public-api.d.ts +0 -7
- package/card/card-slots.d.ts +0 -11
- package/card/card.component.d.ts +0 -38
- package/card/card.module.d.ts +0 -10
- package/card/card.types.d.ts +0 -5
- package/card/index.d.ts +0 -5
- package/card/public-api.d.ts +0 -4
- package/carousel/carousel.component.d.ts +0 -169
- package/carousel/carousel.module.d.ts +0 -10
- package/carousel/carousel.types.d.ts +0 -21
- package/carousel/index.d.ts +0 -5
- package/carousel/public-api.d.ts +0 -3
- package/chart/chart.component.d.ts +0 -11
- package/chart/chart.module.d.ts +0 -8
- package/chart/index.d.ts +0 -5
- package/chart/public-api.d.ts +0 -3
- package/chartjs/chartjs.base.d.ts +0 -70
- package/chartjs/chartjs.component.d.ts +0 -10
- package/chartjs/chartjs.module.d.ts +0 -8
- package/chartjs/chartjs.types.d.ts +0 -8
- package/chartjs/index.d.ts +0 -5
- package/chartjs/public-api.d.ts +0 -4
- package/checkbox/checkbox.component.d.ts +0 -47
- package/checkbox/checkbox.module.d.ts +0 -8
- package/checkbox/checkbox.styles.d.ts +0 -2
- package/checkbox/checkbox.types.d.ts +0 -4
- package/checkbox/index.d.ts +0 -5
- package/checkbox/public-api.d.ts +0 -5
- package/chip/chip.component.d.ts +0 -30
- package/chip/chip.module.d.ts +0 -8
- package/chip/index.d.ts +0 -5
- package/chip/public-api.d.ts +0 -2
- package/colorpicker/colorpicker.component.d.ts +0 -87
- package/colorpicker/colorpicker.module.d.ts +0 -8
- package/colorpicker/index.d.ts +0 -5
- package/colorpicker/public-api.d.ts +0 -2
- package/config/forms.d.ts +0 -17
- package/config/index.d.ts +0 -5
- package/config/initializer.d.ts +0 -3
- package/config/menu-item.d.ts +0 -52
- package/config/options.d.ts +0 -48
- package/config/popup.d.ts +0 -48
- package/config/provide.d.ts +0 -23
- package/config/public-api.d.ts +0 -17
- package/config/ripple.d.ts +0 -2
- package/config/scroll-lock.d.ts +0 -5
- package/config/severity.d.ts +0 -5
- package/config/style-loader.d.ts +0 -12
- package/config/template.d.ts +0 -19
- package/config/theme.service.d.ts +0 -46
- package/config/version-guard.d.ts +0 -14
- package/config/version.d.ts +0 -6
- package/config/wu-config.service.d.ts +0 -24
- package/confirmdialog/confirmation.service.d.ts +0 -25
- package/confirmdialog/confirmdialog.base.d.ts +0 -110
- package/confirmdialog/confirmdialog.component.d.ts +0 -11
- package/confirmdialog/confirmdialog.module.d.ts +0 -9
- package/confirmdialog/confirmdialog.types.d.ts +0 -37
- package/confirmdialog/index.d.ts +0 -5
- package/confirmdialog/public-api.d.ts +0 -5
- package/contextmenu/contextmenu.component.d.ts +0 -47
- package/contextmenu/contextmenu.module.d.ts +0 -8
- package/contextmenu/index.d.ts +0 -5
- package/contextmenu/public-api.d.ts +0 -2
- package/core/carousel.d.ts +0 -27
- package/core/catalog.d.ts +0 -446
- package/core/chart/format.d.ts +0 -19
- package/core/chart/index.d.ts +0 -6
- package/core/chart/kinds.d.ts +0 -78
- package/core/chart/model.d.ts +0 -500
- package/core/chart/more.d.ts +0 -33
- package/core/chart/paths.d.ts +0 -41
- package/core/chart/scale.d.ts +0 -22
- package/core/color.d.ts +0 -31
- package/core/colorpicker.d.ts +0 -23
- package/core/compat.d.ts +0 -11
- package/core/config.d.ts +0 -64
- package/core/date.d.ts +0 -130
- package/core/datepicker.d.ts +0 -184
- package/core/dock.d.ts +0 -6
- package/core/editor.d.ts +0 -117
- package/core/errorpage.d.ts +0 -15
- package/core/excel.d.ts +0 -239
- package/core/exporters.d.ts +0 -18
- package/core/families.d.ts +0 -13
- package/core/fileupload.d.ts +0 -24
- package/core/flow/changes.d.ts +0 -63
- package/core/flow/edges.d.ts +0 -52
- package/core/flow/export.d.ts +0 -56
- package/core/flow/geometry.d.ts +0 -117
- package/core/flow/graph.d.ts +0 -104
- package/core/flow/history.d.ts +0 -54
- package/core/flow/index.d.ts +0 -13
- package/core/flow/interaction.d.ts +0 -140
- package/core/flow/layout.d.ts +0 -57
- package/core/flow/paths.d.ts +0 -76
- package/core/flow/text.d.ts +0 -18
- package/core/flow/types.d.ts +0 -217
- package/core/flow/viewport.d.ts +0 -48
- package/core/i18n.d.ts +0 -24
- package/core/imagecompare.d.ts +0 -12
- package/core/imagecropper.d.ts +0 -183
- package/core/index.d.ts +0 -39
- package/core/inputotp.d.ts +0 -20
- package/core/knob.d.ts +0 -28
- package/core/mask.d.ts +0 -43
- package/core/menu.d.ts +0 -29
- package/core/number.d.ts +0 -66
- package/core/organizationchart.d.ts +0 -39
- package/core/overrides.d.ts +0 -109
- package/core/picklist.d.ts +0 -81
- package/core/select.d.ts +0 -44
- package/core/splitter.d.ts +0 -17
- package/core/table.d.ts +0 -48
- package/core/terminal.d.ts +0 -12
- package/core/thai/buddhist.d.ts +0 -22
- package/core/thai/locale.d.ts +0 -358
- package/core/thai/text.d.ts +0 -32
- package/core/thai/thai-id.d.ts +0 -6
- package/core/tokens.d.ts +0 -69
- package/core/tree.d.ts +0 -50
- package/core/validation.d.ts +0 -18
- package/datepicker/datepicker.component.d.ts +0 -230
- package/datepicker/datepicker.module.d.ts +0 -8
- package/datepicker/datepicker.types.d.ts +0 -10
- package/datepicker/index.d.ts +0 -5
- package/datepicker/public-api.d.ts +0 -3
- package/dialog/dialog.base.d.ts +0 -147
- package/dialog/dialog.component.d.ts +0 -11
- package/dialog/dialog.module.d.ts +0 -10
- package/dialog/dialog.service.d.ts +0 -104
- package/dialog/dialog.types.d.ts +0 -3
- package/dialog/index.d.ts +0 -5
- package/dialog/public-api.d.ts +0 -5
- package/divider/divider.component.d.ts +0 -19
- package/divider/divider.module.d.ts +0 -8
- package/divider/divider.types.d.ts +0 -4
- package/divider/index.d.ts +0 -5
- package/divider/public-api.d.ts +0 -3
- package/dock/dock.component.d.ts +0 -88
- package/dock/dock.module.d.ts +0 -9
- package/dock/index.d.ts +0 -5
- package/dock/public-api.d.ts +0 -2
- package/dragdrop/dragdrop.directive.d.ts +0 -65
- package/dragdrop/dragdrop.module.d.ts +0 -8
- package/dragdrop/dragdrop.styles.d.ts +0 -2
- package/dragdrop/index.d.ts +0 -5
- package/dragdrop/public-api.d.ts +0 -2
- package/drawer/drawer.component.d.ts +0 -102
- package/drawer/drawer.module.d.ts +0 -8
- package/drawer/index.d.ts +0 -5
- package/drawer/public-api.d.ts +0 -5
- package/editor/editor-content.directive.d.ts +0 -10
- package/editor/editor-icon.directive.d.ts +0 -8
- package/editor/editor.base.d.ts +0 -367
- package/editor/editor.component.d.ts +0 -11
- package/editor/editor.dom.d.ts +0 -91
- package/editor/editor.icons.d.ts +0 -13
- package/editor/editor.module.d.ts +0 -10
- package/editor/editor.styles.d.ts +0 -2
- package/editor/editor.types.d.ts +0 -92
- package/editor/index.d.ts +0 -5
- package/editor/public-api.d.ts +0 -6
- package/emptystate/emptystate.component.d.ts +0 -44
- package/emptystate/emptystate.module.d.ts +0 -8
- package/emptystate/index.d.ts +0 -5
- package/emptystate/public-api.d.ts +0 -2
- package/errorpage/errorpage.component.d.ts +0 -73
- package/errorpage/errorpage.module.d.ts +0 -8
- package/errorpage/index.d.ts +0 -5
- package/errorpage/public-api.d.ts +0 -2
- package/esm2022/accordion/accordion.component.mjs +0 -285
- package/esm2022/accordion/accordion.module.mjs +0 -19
- package/esm2022/accordion/accordion.types.mjs +0 -17
- package/esm2022/accordion/public-api.mjs +0 -4
- package/esm2022/accordion/wirabyte-ui-accordion.mjs +0 -5
- package/esm2022/alert/alert-dialog.base.mjs +0 -355
- package/esm2022/alert/alert-dialog.component.mjs +0 -21
- package/esm2022/alert/alert.module.mjs +0 -17
- package/esm2022/alert/alert.service.mjs +0 -142
- package/esm2022/alert/alert.types.mjs +0 -2
- package/esm2022/alert/public-api.mjs +0 -6
- package/esm2022/alert/wirabyte-ui-alert.mjs +0 -5
- package/esm2022/animate/animate.directive.mjs +0 -71
- package/esm2022/animate/animate.module.mjs +0 -21
- package/esm2022/animate/animate.service.mjs +0 -183
- package/esm2022/animate/animate.styles.mjs +0 -3
- package/esm2022/animate/animate.types.mjs +0 -2
- package/esm2022/animate/public-api.mjs +0 -5
- package/esm2022/animate/wirabyte-ui-animate.mjs +0 -5
- package/esm2022/api/public-api.mjs +0 -11
- package/esm2022/api/shared.module.mjs +0 -17
- package/esm2022/api/wirabyte-ui-api.mjs +0 -5
- package/esm2022/asidemenu/asidemenu.component.mjs +0 -811
- package/esm2022/asidemenu/asidemenu.module.mjs +0 -18
- package/esm2022/asidemenu/public-api.mjs +0 -3
- package/esm2022/asidemenu/wirabyte-ui-asidemenu.mjs +0 -5
- package/esm2022/autocomplete/autocomplete.base.mjs +0 -567
- package/esm2022/autocomplete/autocomplete.component.mjs +0 -24
- package/esm2022/autocomplete/autocomplete.module.mjs +0 -18
- package/esm2022/autocomplete/autocomplete.types.mjs +0 -2
- package/esm2022/autocomplete/public-api.mjs +0 -5
- package/esm2022/autocomplete/wirabyte-ui-autocomplete.mjs +0 -5
- package/esm2022/avatar/avatar.component.mjs +0 -68
- package/esm2022/avatar/avatar.module.mjs +0 -17
- package/esm2022/avatar/avatar.types.mjs +0 -2
- package/esm2022/avatar/public-api.mjs +0 -4
- package/esm2022/avatar/wirabyte-ui-avatar.mjs +0 -5
- package/esm2022/badge/badge.component.mjs +0 -49
- package/esm2022/badge/badge.directive.mjs +0 -111
- package/esm2022/badge/badge.module.mjs +0 -18
- package/esm2022/badge/badge.styles.mjs +0 -3
- package/esm2022/badge/badge.types.mjs +0 -2
- package/esm2022/badge/public-api.mjs +0 -5
- package/esm2022/badge/wirabyte-ui-badge.mjs +0 -5
- package/esm2022/blockui/blockui.component.mjs +0 -152
- package/esm2022/blockui/blockui.module.mjs +0 -17
- package/esm2022/blockui/public-api.mjs +0 -3
- package/esm2022/blockui/wirabyte-ui-blockui.mjs +0 -5
- package/esm2022/bottombar/bottombar.component.mjs +0 -209
- package/esm2022/bottombar/bottombar.module.mjs +0 -18
- package/esm2022/bottombar/public-api.mjs +0 -3
- package/esm2022/bottombar/wirabyte-ui-bottombar.mjs +0 -5
- package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -86
- package/esm2022/breadcrumb/breadcrumb.module.mjs +0 -17
- package/esm2022/breadcrumb/public-api.mjs +0 -3
- package/esm2022/breadcrumb/wirabyte-ui-breadcrumb.mjs +0 -5
- package/esm2022/button/button-class.mjs +0 -26
- package/esm2022/button/button.component.mjs +0 -110
- package/esm2022/button/button.directive.mjs +0 -193
- package/esm2022/button/button.module.mjs +0 -18
- package/esm2022/button/button.styles.mjs +0 -3
- package/esm2022/button/button.types.mjs +0 -2
- package/esm2022/button/public-api.mjs +0 -8
- package/esm2022/button/wirabyte-ui-button.mjs +0 -5
- package/esm2022/card/card-slots.mjs +0 -27
- package/esm2022/card/card.component.mjs +0 -65
- package/esm2022/card/card.module.mjs +0 -19
- package/esm2022/card/card.types.mjs +0 -2
- package/esm2022/card/public-api.mjs +0 -5
- package/esm2022/card/wirabyte-ui-card.mjs +0 -5
- package/esm2022/carousel/carousel.component.mjs +0 -617
- package/esm2022/carousel/carousel.module.mjs +0 -19
- package/esm2022/carousel/carousel.types.mjs +0 -2
- package/esm2022/carousel/public-api.mjs +0 -4
- package/esm2022/carousel/wirabyte-ui-carousel.mjs +0 -5
- package/esm2022/chart/chart.component.mjs +0 -42
- package/esm2022/chart/chart.module.mjs +0 -17
- package/esm2022/chart/public-api.mjs +0 -3
- package/esm2022/chart/wirabyte-ui-chart.mjs +0 -5
- package/esm2022/chartjs/chartjs.base.mjs +0 -204
- package/esm2022/chartjs/chartjs.component.mjs +0 -41
- package/esm2022/chartjs/chartjs.module.mjs +0 -17
- package/esm2022/chartjs/chartjs.types.mjs +0 -2
- package/esm2022/chartjs/public-api.mjs +0 -5
- package/esm2022/chartjs/wirabyte-ui-chartjs.mjs +0 -5
- package/esm2022/checkbox/checkbox.component.mjs +0 -93
- package/esm2022/checkbox/checkbox.module.mjs +0 -17
- package/esm2022/checkbox/checkbox.styles.mjs +0 -3
- package/esm2022/checkbox/checkbox.types.mjs +0 -2
- package/esm2022/checkbox/public-api.mjs +0 -6
- package/esm2022/checkbox/wirabyte-ui-checkbox.mjs +0 -5
- package/esm2022/chip/chip.component.mjs +0 -59
- package/esm2022/chip/chip.module.mjs +0 -17
- package/esm2022/chip/public-api.mjs +0 -3
- package/esm2022/chip/wirabyte-ui-chip.mjs +0 -5
- package/esm2022/colorpicker/colorpicker.component.mjs +0 -308
- package/esm2022/colorpicker/colorpicker.module.mjs +0 -17
- package/esm2022/colorpicker/public-api.mjs +0 -3
- package/esm2022/colorpicker/wirabyte-ui-colorpicker.mjs +0 -5
- package/esm2022/config/forms.mjs +0 -38
- package/esm2022/config/initializer.mjs +0 -6
- package/esm2022/config/menu-item.mjs +0 -2
- package/esm2022/config/options.mjs +0 -3
- package/esm2022/config/popup.mjs +0 -153
- package/esm2022/config/provide.mjs +0 -45
- package/esm2022/config/public-api.mjs +0 -17
- package/esm2022/config/ripple.mjs +0 -13
- package/esm2022/config/scroll-lock.mjs +0 -31
- package/esm2022/config/severity.mjs +0 -9
- package/esm2022/config/style-loader.mjs +0 -32
- package/esm2022/config/template.mjs +0 -46
- package/esm2022/config/theme.service.mjs +0 -161
- package/esm2022/config/version-guard.mjs +0 -43
- package/esm2022/config/version.mjs +0 -3
- package/esm2022/config/wirabyte-ui-config.mjs +0 -5
- package/esm2022/config/wu-config.service.mjs +0 -50
- package/esm2022/confirmdialog/confirmation.service.mjs +0 -78
- package/esm2022/confirmdialog/confirmdialog.base.mjs +0 -274
- package/esm2022/confirmdialog/confirmdialog.component.mjs +0 -22
- package/esm2022/confirmdialog/confirmdialog.module.mjs +0 -18
- package/esm2022/confirmdialog/confirmdialog.types.mjs +0 -8
- package/esm2022/confirmdialog/public-api.mjs +0 -6
- package/esm2022/confirmdialog/wirabyte-ui-confirmdialog.mjs +0 -5
- package/esm2022/contextmenu/contextmenu.component.mjs +0 -159
- package/esm2022/contextmenu/contextmenu.module.mjs +0 -17
- package/esm2022/contextmenu/public-api.mjs +0 -3
- package/esm2022/contextmenu/wirabyte-ui-contextmenu.mjs +0 -5
- package/esm2022/core/carousel.mjs +0 -62
- package/esm2022/core/catalog.mjs +0 -203
- package/esm2022/core/chart/format.mjs +0 -66
- package/esm2022/core/chart/index.mjs +0 -7
- package/esm2022/core/chart/kinds.mjs +0 -1336
- package/esm2022/core/chart/model.mjs +0 -713
- package/esm2022/core/chart/more.mjs +0 -311
- package/esm2022/core/chart/paths.mjs +0 -160
- package/esm2022/core/chart/scale.mjs +0 -58
- package/esm2022/core/color.mjs +0 -94
- package/esm2022/core/colorpicker.mjs +0 -73
- package/esm2022/core/compat.mjs +0 -149
- package/esm2022/core/config.mjs +0 -163
- package/esm2022/core/date.mjs +0 -317
- package/esm2022/core/datepicker.mjs +0 -526
- package/esm2022/core/dock.mjs +0 -14
- package/esm2022/core/editor.mjs +0 -271
- package/esm2022/core/errorpage.mjs +0 -47
- package/esm2022/core/excel.mjs +0 -809
- package/esm2022/core/exporters.mjs +0 -241
- package/esm2022/core/families.mjs +0 -1756
- package/esm2022/core/fileupload.mjs +0 -48
- package/esm2022/core/flow/changes.mjs +0 -205
- package/esm2022/core/flow/edges.mjs +0 -87
- package/esm2022/core/flow/export.mjs +0 -231
- package/esm2022/core/flow/geometry.mjs +0 -309
- package/esm2022/core/flow/graph.mjs +0 -314
- package/esm2022/core/flow/history.mjs +0 -105
- package/esm2022/core/flow/index.mjs +0 -14
- package/esm2022/core/flow/interaction.mjs +0 -246
- package/esm2022/core/flow/layout.mjs +0 -586
- package/esm2022/core/flow/paths.mjs +0 -252
- package/esm2022/core/flow/text.mjs +0 -68
- package/esm2022/core/flow/types.mjs +0 -7
- package/esm2022/core/flow/viewport.mjs +0 -133
- package/esm2022/core/i18n.mjs +0 -78
- package/esm2022/core/imagecompare.mjs +0 -28
- package/esm2022/core/imagecropper.mjs +0 -483
- package/esm2022/core/index.mjs +0 -40
- package/esm2022/core/inputotp.mjs +0 -50
- package/esm2022/core/knob.mjs +0 -106
- package/esm2022/core/mask.mjs +0 -112
- package/esm2022/core/menu.mjs +0 -77
- package/esm2022/core/number.mjs +0 -131
- package/esm2022/core/organizationchart.mjs +0 -84
- package/esm2022/core/overrides.mjs +0 -169
- package/esm2022/core/picklist.mjs +0 -248
- package/esm2022/core/select.mjs +0 -161
- package/esm2022/core/splitter.mjs +0 -63
- package/esm2022/core/table.mjs +0 -174
- package/esm2022/core/terminal.mjs +0 -29
- package/esm2022/core/thai/buddhist.mjs +0 -129
- package/esm2022/core/thai/locale.mjs +0 -652
- package/esm2022/core/thai/text.mjs +0 -164
- package/esm2022/core/thai/thai-id.mjs +0 -22
- package/esm2022/core/tokens.mjs +0 -314
- package/esm2022/core/tree.mjs +0 -137
- package/esm2022/core/validation.mjs +0 -43
- package/esm2022/core/wirabyte-ui-core.mjs +0 -5
- package/esm2022/datepicker/datepicker.component.mjs +0 -715
- package/esm2022/datepicker/datepicker.module.mjs +0 -17
- package/esm2022/datepicker/datepicker.types.mjs +0 -2
- package/esm2022/datepicker/public-api.mjs +0 -4
- package/esm2022/datepicker/wirabyte-ui-datepicker.mjs +0 -5
- package/esm2022/dialog/dialog.base.mjs +0 -433
- package/esm2022/dialog/dialog.component.mjs +0 -18
- package/esm2022/dialog/dialog.module.mjs +0 -19
- package/esm2022/dialog/dialog.service.mjs +0 -237
- package/esm2022/dialog/dialog.types.mjs +0 -2
- package/esm2022/dialog/public-api.mjs +0 -6
- package/esm2022/dialog/wirabyte-ui-dialog.mjs +0 -5
- package/esm2022/divider/divider.component.mjs +0 -47
- package/esm2022/divider/divider.module.mjs +0 -17
- package/esm2022/divider/divider.types.mjs +0 -2
- package/esm2022/divider/public-api.mjs +0 -4
- package/esm2022/divider/wirabyte-ui-divider.mjs +0 -5
- package/esm2022/dock/dock.component.mjs +0 -287
- package/esm2022/dock/dock.module.mjs +0 -18
- package/esm2022/dock/public-api.mjs +0 -3
- package/esm2022/dock/wirabyte-ui-dock.mjs +0 -5
- package/esm2022/dragdrop/dragdrop.directive.mjs +0 -206
- package/esm2022/dragdrop/dragdrop.module.mjs +0 -17
- package/esm2022/dragdrop/dragdrop.styles.mjs +0 -3
- package/esm2022/dragdrop/public-api.mjs +0 -3
- package/esm2022/dragdrop/wirabyte-ui-dragdrop.mjs +0 -5
- package/esm2022/drawer/drawer.component.mjs +0 -300
- package/esm2022/drawer/drawer.module.mjs +0 -17
- package/esm2022/drawer/public-api.mjs +0 -6
- package/esm2022/drawer/wirabyte-ui-drawer.mjs +0 -5
- package/esm2022/editor/editor-content.directive.mjs +0 -24
- package/esm2022/editor/editor-icon.directive.mjs +0 -24
- package/esm2022/editor/editor.base.mjs +0 -2082
- package/esm2022/editor/editor.component.mjs +0 -20
- package/esm2022/editor/editor.dom.mjs +0 -787
- package/esm2022/editor/editor.icons.mjs +0 -106
- package/esm2022/editor/editor.module.mjs +0 -19
- package/esm2022/editor/editor.styles.mjs +0 -3
- package/esm2022/editor/editor.types.mjs +0 -6
- package/esm2022/editor/public-api.mjs +0 -7
- package/esm2022/editor/wirabyte-ui-editor.mjs +0 -5
- package/esm2022/emptystate/emptystate.component.mjs +0 -78
- package/esm2022/emptystate/emptystate.module.mjs +0 -17
- package/esm2022/emptystate/public-api.mjs +0 -3
- package/esm2022/emptystate/wirabyte-ui-emptystate.mjs +0 -5
- package/esm2022/errorpage/errorpage.component.mjs +0 -163
- package/esm2022/errorpage/errorpage.module.mjs +0 -17
- package/esm2022/errorpage/public-api.mjs +0 -3
- package/esm2022/errorpage/wirabyte-ui-errorpage.mjs +0 -5
- package/esm2022/excel/excel.mjs +0 -35
- package/esm2022/excel/public-api.mjs +0 -3
- package/esm2022/excel/wirabyte-ui-excel.mjs +0 -5
- package/esm2022/fieldset/fieldset.component.mjs +0 -53
- package/esm2022/fieldset/fieldset.module.mjs +0 -18
- package/esm2022/fieldset/public-api.mjs +0 -3
- package/esm2022/fieldset/wirabyte-ui-fieldset.mjs +0 -5
- package/esm2022/fileupload/fileupload.base.mjs +0 -563
- package/esm2022/fileupload/fileupload.component.mjs +0 -19
- package/esm2022/fileupload/fileupload.module.mjs +0 -18
- package/esm2022/fileupload/fileupload.types.mjs +0 -2
- package/esm2022/fileupload/public-api.mjs +0 -5
- package/esm2022/fileupload/wirabyte-ui-fileupload.mjs +0 -5
- package/esm2022/floatlabel/floatlabel.component.mjs +0 -53
- package/esm2022/floatlabel/floatlabel.module.mjs +0 -17
- package/esm2022/floatlabel/floatlabel.types.mjs +0 -2
- package/esm2022/floatlabel/public-api.mjs +0 -4
- package/esm2022/floatlabel/wirabyte-ui-floatlabel.mjs +0 -5
- package/esm2022/flow/flow-background.component.mjs +0 -183
- package/esm2022/flow/flow-controls.component.mjs +0 -267
- package/esm2022/flow/flow-handle.component.mjs +0 -130
- package/esm2022/flow/flow-history.directive.mjs +0 -129
- package/esm2022/flow/flow-host.mjs +0 -7
- package/esm2022/flow/flow-minimap.component.mjs +0 -322
- package/esm2022/flow/flow-node-outlet.mjs +0 -148
- package/esm2022/flow/flow-node-resizer.component.mjs +0 -208
- package/esm2022/flow/flow-node-toolbar.component.mjs +0 -119
- package/esm2022/flow/flow-panel.component.mjs +0 -37
- package/esm2022/flow/flow-templates.mjs +0 -100
- package/esm2022/flow/flow.component.mjs +0 -3245
- package/esm2022/flow/flow.module.mjs +0 -69
- package/esm2022/flow/flow.types.mjs +0 -7
- package/esm2022/flow/public-api.mjs +0 -17
- package/esm2022/flow/wirabyte-ui-flow.mjs +0 -5
- package/esm2022/galleria/galleria.component.mjs +0 -480
- package/esm2022/galleria/galleria.module.mjs +0 -17
- package/esm2022/galleria/public-api.mjs +0 -3
- package/esm2022/galleria/wirabyte-ui-galleria.mjs +0 -5
- package/esm2022/i18n/i18n.module.mjs +0 -37
- package/esm2022/i18n/i18n.service.mjs +0 -148
- package/esm2022/i18n/i18n.types.mjs +0 -3
- package/esm2022/i18n/language-switch.component.mjs +0 -91
- package/esm2022/i18n/public-api.mjs +0 -7
- package/esm2022/i18n/translate.pipe.mjs +0 -52
- package/esm2022/i18n/wirabyte-ui-i18n.mjs +0 -5
- package/esm2022/iconfield/iconfield.component.mjs +0 -73
- package/esm2022/iconfield/iconfield.module.mjs +0 -17
- package/esm2022/iconfield/public-api.mjs +0 -3
- package/esm2022/iconfield/wirabyte-ui-iconfield.mjs +0 -5
- package/esm2022/image/image.base.mjs +0 -183
- package/esm2022/image/image.component.mjs +0 -14
- package/esm2022/image/image.module.mjs +0 -18
- package/esm2022/image/public-api.mjs +0 -4
- package/esm2022/image/wirabyte-ui-image.mjs +0 -5
- package/esm2022/imagecompare/imagecompare.component.mjs +0 -200
- package/esm2022/imagecompare/imagecompare.module.mjs +0 -18
- package/esm2022/imagecompare/public-api.mjs +0 -3
- package/esm2022/imagecompare/wirabyte-ui-imagecompare.mjs +0 -5
- package/esm2022/imagecropper/imagecropper.component.mjs +0 -1253
- package/esm2022/imagecropper/imagecropper.module.mjs +0 -17
- package/esm2022/imagecropper/imagecropper.types.mjs +0 -6
- package/esm2022/imagecropper/public-api.mjs +0 -5
- package/esm2022/imagecropper/wirabyte-ui-imagecropper.mjs +0 -5
- package/esm2022/inplace/inplace.component.mjs +0 -145
- package/esm2022/inplace/inplace.module.mjs +0 -17
- package/esm2022/inplace/public-api.mjs +0 -3
- package/esm2022/inplace/wirabyte-ui-inplace.mjs +0 -5
- package/esm2022/inputgroup/inputgroup.component.mjs +0 -61
- package/esm2022/inputgroup/inputgroup.module.mjs +0 -17
- package/esm2022/inputgroup/public-api.mjs +0 -3
- package/esm2022/inputgroup/wirabyte-ui-inputgroup.mjs +0 -5
- package/esm2022/inputmask/inputmask.base.mjs +0 -319
- package/esm2022/inputmask/inputmask.component.mjs +0 -23
- package/esm2022/inputmask/inputmask.module.mjs +0 -17
- package/esm2022/inputmask/public-api.mjs +0 -4
- package/esm2022/inputmask/wirabyte-ui-inputmask.mjs +0 -5
- package/esm2022/inputnumber/inputnumber.component.mjs +0 -255
- package/esm2022/inputnumber/inputnumber.module.mjs +0 -17
- package/esm2022/inputnumber/inputnumber.types.mjs +0 -2
- package/esm2022/inputnumber/public-api.mjs +0 -4
- package/esm2022/inputnumber/wirabyte-ui-inputnumber.mjs +0 -5
- package/esm2022/inputotp/inputotp.component.mjs +0 -344
- package/esm2022/inputotp/inputotp.module.mjs +0 -18
- package/esm2022/inputotp/inputotp.types.mjs +0 -2
- package/esm2022/inputotp/public-api.mjs +0 -4
- package/esm2022/inputotp/wirabyte-ui-inputotp.mjs +0 -5
- package/esm2022/inputtext/inputtext.directive.mjs +0 -54
- package/esm2022/inputtext/inputtext.module.mjs +0 -17
- package/esm2022/inputtext/inputtext.styles.mjs +0 -3
- package/esm2022/inputtext/inputtext.types.mjs +0 -2
- package/esm2022/inputtext/public-api.mjs +0 -6
- package/esm2022/inputtext/wirabyte-ui-inputtext.mjs +0 -5
- package/esm2022/keyfilter/keyfilter.directive.mjs +0 -131
- package/esm2022/keyfilter/keyfilter.module.mjs +0 -17
- package/esm2022/keyfilter/public-api.mjs +0 -3
- package/esm2022/keyfilter/wirabyte-ui-keyfilter.mjs +0 -5
- package/esm2022/knob/knob.component.mjs +0 -207
- package/esm2022/knob/knob.module.mjs +0 -17
- package/esm2022/knob/public-api.mjs +0 -3
- package/esm2022/knob/wirabyte-ui-knob.mjs +0 -5
- package/esm2022/listbox/listbox.component.mjs +0 -520
- package/esm2022/listbox/listbox.module.mjs +0 -17
- package/esm2022/listbox/public-api.mjs +0 -3
- package/esm2022/listbox/wirabyte-ui-listbox.mjs +0 -5
- package/esm2022/menu/menu.base.mjs +0 -320
- package/esm2022/menu/menu.component.mjs +0 -19
- package/esm2022/menu/menu.module.mjs +0 -18
- package/esm2022/menu/public-api.mjs +0 -4
- package/esm2022/menu/wirabyte-ui-menu.mjs +0 -5
- package/esm2022/menubar/menubar.base.mjs +0 -568
- package/esm2022/menubar/menubar.component.mjs +0 -19
- package/esm2022/menubar/menubar.module.mjs +0 -18
- package/esm2022/menubar/public-api.mjs +0 -4
- package/esm2022/menubar/wirabyte-ui-menubar.mjs +0 -5
- package/esm2022/message/message.component.mjs +0 -78
- package/esm2022/message/message.module.mjs +0 -20
- package/esm2022/message/message.types.mjs +0 -2
- package/esm2022/message/messages.base.mjs +0 -109
- package/esm2022/message/messages.component.mjs +0 -66
- package/esm2022/message/public-api.mjs +0 -6
- package/esm2022/message/wirabyte-ui-message.mjs +0 -5
- package/esm2022/metergroup/metergroup.component.mjs +0 -87
- package/esm2022/metergroup/metergroup.module.mjs +0 -17
- package/esm2022/metergroup/metergroup.types.mjs +0 -26
- package/esm2022/metergroup/public-api.mjs +0 -4
- package/esm2022/metergroup/wirabyte-ui-metergroup.mjs +0 -5
- package/esm2022/multiselect/multiselect.base.mjs +0 -732
- package/esm2022/multiselect/multiselect.component.mjs +0 -26
- package/esm2022/multiselect/multiselect.module.mjs +0 -18
- package/esm2022/multiselect/multiselect.styles.mjs +0 -3
- package/esm2022/multiselect/multiselect.types.mjs +0 -2
- package/esm2022/multiselect/public-api.mjs +0 -6
- package/esm2022/multiselect/wirabyte-ui-multiselect.mjs +0 -5
- package/esm2022/navbar/navbar.component.mjs +0 -460
- package/esm2022/navbar/navbar.module.mjs +0 -18
- package/esm2022/navbar/public-api.mjs +0 -3
- package/esm2022/navbar/wirabyte-ui-navbar.mjs +0 -5
- package/esm2022/orderlist/orderlist.base.mjs +0 -411
- package/esm2022/orderlist/orderlist.component.mjs +0 -17
- package/esm2022/orderlist/orderlist.module.mjs +0 -18
- package/esm2022/orderlist/orderlist.types.mjs +0 -2
- package/esm2022/orderlist/public-api.mjs +0 -5
- package/esm2022/orderlist/wirabyte-ui-orderlist.mjs +0 -5
- package/esm2022/organizationchart/organizationchart.component.mjs +0 -200
- package/esm2022/organizationchart/organizationchart.module.mjs +0 -18
- package/esm2022/organizationchart/organizationchart.types.mjs +0 -2
- package/esm2022/organizationchart/public-api.mjs +0 -4
- package/esm2022/organizationchart/wirabyte-ui-organizationchart.mjs +0 -5
- package/esm2022/paginator/paginator.base.mjs +0 -188
- package/esm2022/paginator/paginator.component.mjs +0 -20
- package/esm2022/paginator/paginator.module.mjs +0 -17
- package/esm2022/paginator/paginator.types.mjs +0 -2
- package/esm2022/paginator/public-api.mjs +0 -5
- package/esm2022/paginator/wirabyte-ui-paginator.mjs +0 -5
- package/esm2022/panel/panel.component.mjs +0 -75
- package/esm2022/panel/panel.module.mjs +0 -19
- package/esm2022/panel/panel.types.mjs +0 -2
- package/esm2022/panel/public-api.mjs +0 -4
- package/esm2022/panel/wirabyte-ui-panel.mjs +0 -5
- package/esm2022/panelmenu/panelmenu.base.mjs +0 -181
- package/esm2022/panelmenu/panelmenu.component.mjs +0 -15
- package/esm2022/panelmenu/panelmenu.module.mjs +0 -18
- package/esm2022/panelmenu/public-api.mjs +0 -4
- package/esm2022/panelmenu/wirabyte-ui-panelmenu.mjs +0 -5
- package/esm2022/password/password.component.mjs +0 -171
- package/esm2022/password/password.module.mjs +0 -17
- package/esm2022/password/password.types.mjs +0 -14
- package/esm2022/password/public-api.mjs +0 -4
- package/esm2022/password/wirabyte-ui-password.mjs +0 -5
- package/esm2022/picklist/list-drag.mjs +0 -259
- package/esm2022/picklist/picklist.base.mjs +0 -649
- package/esm2022/picklist/picklist.component.mjs +0 -17
- package/esm2022/picklist/picklist.module.mjs +0 -18
- package/esm2022/picklist/picklist.styles.mjs +0 -3
- package/esm2022/picklist/picklist.types.mjs +0 -2
- package/esm2022/picklist/public-api.mjs +0 -8
- package/esm2022/picklist/wirabyte-ui-picklist.mjs +0 -5
- package/esm2022/popover/popover.base.mjs +0 -171
- package/esm2022/popover/popover.component.mjs +0 -17
- package/esm2022/popover/popover.module.mjs +0 -18
- package/esm2022/popover/public-api.mjs +0 -4
- package/esm2022/popover/wirabyte-ui-popover.mjs +0 -5
- package/esm2022/presets/public-api.mjs +0 -5
- package/esm2022/presets/wirabyte-ui-presets.mjs +0 -5
- package/esm2022/progressbar/progressbar.component.mjs +0 -75
- package/esm2022/progressbar/progressbar.module.mjs +0 -17
- package/esm2022/progressbar/progressbar.types.mjs +0 -19
- package/esm2022/progressbar/public-api.mjs +0 -4
- package/esm2022/progressbar/wirabyte-ui-progressbar.mjs +0 -5
- package/esm2022/progressspinner/progressspinner.component.mjs +0 -78
- package/esm2022/progressspinner/progressspinner.module.mjs +0 -17
- package/esm2022/progressspinner/progressspinner.types.mjs +0 -27
- package/esm2022/progressspinner/public-api.mjs +0 -4
- package/esm2022/progressspinner/wirabyte-ui-progressspinner.mjs +0 -5
- package/esm2022/public-api.mjs +0 -3
- package/esm2022/radiobutton/public-api.mjs +0 -7
- package/esm2022/radiobutton/radio-registry.mjs +0 -40
- package/esm2022/radiobutton/radiobutton.component.mjs +0 -88
- package/esm2022/radiobutton/radiobutton.module.mjs +0 -17
- package/esm2022/radiobutton/radiobutton.styles.mjs +0 -3
- package/esm2022/radiobutton/radiobutton.types.mjs +0 -2
- package/esm2022/radiobutton/wirabyte-ui-radiobutton.mjs +0 -5
- package/esm2022/rating/public-api.mjs +0 -4
- package/esm2022/rating/rating.component.mjs +0 -80
- package/esm2022/rating/rating.module.mjs +0 -17
- package/esm2022/rating/rating.types.mjs +0 -2
- package/esm2022/rating/wirabyte-ui-rating.mjs +0 -5
- package/esm2022/result/public-api.mjs +0 -3
- package/esm2022/result/result.component.mjs +0 -72
- package/esm2022/result/result.module.mjs +0 -17
- package/esm2022/result/wirabyte-ui-result.mjs +0 -5
- package/esm2022/ripple/public-api.mjs +0 -3
- package/esm2022/ripple/ripple.directive.mjs +0 -43
- package/esm2022/ripple/ripple.module.mjs +0 -17
- package/esm2022/ripple/ripple.styles.mjs +0 -3
- package/esm2022/ripple/wirabyte-ui-ripple.mjs +0 -5
- package/esm2022/scroller/public-api.mjs +0 -6
- package/esm2022/scroller/scroller.component.mjs +0 -305
- package/esm2022/scroller/scroller.module.mjs +0 -17
- package/esm2022/scroller/wirabyte-ui-scroller.mjs +0 -5
- package/esm2022/scrollpanel/public-api.mjs +0 -3
- package/esm2022/scrollpanel/scrollpanel.component.mjs +0 -67
- package/esm2022/scrollpanel/scrollpanel.module.mjs +0 -17
- package/esm2022/scrollpanel/wirabyte-ui-scrollpanel.mjs +0 -5
- package/esm2022/select/public-api.mjs +0 -7
- package/esm2022/select/select.base.mjs +0 -667
- package/esm2022/select/select.component.mjs +0 -26
- package/esm2022/select/select.module.mjs +0 -17
- package/esm2022/select/select.styles.mjs +0 -3
- package/esm2022/select/select.types.mjs +0 -2
- package/esm2022/select/wirabyte-ui-select.mjs +0 -5
- package/esm2022/selectbutton/public-api.mjs +0 -4
- package/esm2022/selectbutton/selectbutton.component.mjs +0 -125
- package/esm2022/selectbutton/selectbutton.module.mjs +0 -18
- package/esm2022/selectbutton/selectbutton.types.mjs +0 -2
- package/esm2022/selectbutton/wirabyte-ui-selectbutton.mjs +0 -5
- package/esm2022/sitefooter/public-api.mjs +0 -3
- package/esm2022/sitefooter/sitefooter.component.mjs +0 -139
- package/esm2022/sitefooter/sitefooter.module.mjs +0 -18
- package/esm2022/sitefooter/wirabyte-ui-sitefooter.mjs +0 -5
- package/esm2022/skeleton/public-api.mjs +0 -4
- package/esm2022/skeleton/skeleton.component.mjs +0 -42
- package/esm2022/skeleton/skeleton.module.mjs +0 -17
- package/esm2022/skeleton/skeleton.types.mjs +0 -2
- package/esm2022/skeleton/wirabyte-ui-skeleton.mjs +0 -5
- package/esm2022/slider/public-api.mjs +0 -3
- package/esm2022/slider/slider.component.mjs +0 -247
- package/esm2022/slider/slider.module.mjs +0 -17
- package/esm2022/slider/wirabyte-ui-slider.mjs +0 -5
- package/esm2022/splitbutton/public-api.mjs +0 -3
- package/esm2022/splitbutton/splitbutton.component.mjs +0 -180
- package/esm2022/splitbutton/splitbutton.module.mjs +0 -17
- package/esm2022/splitbutton/wirabyte-ui-splitbutton.mjs +0 -5
- package/esm2022/splitter/public-api.mjs +0 -5
- package/esm2022/splitter/splitter-panel.component.mjs +0 -32
- package/esm2022/splitter/splitter.component.mjs +0 -372
- package/esm2022/splitter/splitter.module.mjs +0 -19
- package/esm2022/splitter/splitter.types.mjs +0 -2
- package/esm2022/splitter/wirabyte-ui-splitter.mjs +0 -5
- package/esm2022/stepper/public-api.mjs +0 -4
- package/esm2022/stepper/stepper.base.mjs +0 -392
- package/esm2022/stepper/stepper.component.mjs +0 -209
- package/esm2022/stepper/stepper.module.mjs +0 -19
- package/esm2022/stepper/wirabyte-ui-stepper.mjs +0 -5
- package/esm2022/steps/public-api.mjs +0 -4
- package/esm2022/steps/steps.base.mjs +0 -148
- package/esm2022/steps/steps.component.mjs +0 -15
- package/esm2022/steps/steps.module.mjs +0 -17
- package/esm2022/steps/wirabyte-ui-steps.mjs +0 -5
- package/esm2022/table/public-api.mjs +0 -10
- package/esm2022/table/table-celleditor.component.mjs +0 -48
- package/esm2022/table/table-filter.component.mjs +0 -144
- package/esm2022/table/table.base.mjs +0 -1443
- package/esm2022/table/table.celleditor.mjs +0 -42
- package/esm2022/table/table.component.mjs +0 -21
- package/esm2022/table/table.directives.mjs +0 -1117
- package/esm2022/table/table.filter.mjs +0 -346
- package/esm2022/table/table.module.mjs +0 -93
- package/esm2022/table/table.types.mjs +0 -3
- package/esm2022/table/wirabyte-ui-table.mjs +0 -5
- package/esm2022/tabmenu/public-api.mjs +0 -3
- package/esm2022/tabmenu/wirabyte-ui-tabmenu.mjs +0 -5
- package/esm2022/tabs/public-api.mjs +0 -9
- package/esm2022/tabs/tabmenu.base.mjs +0 -196
- package/esm2022/tabs/tabmenu.component.mjs +0 -18
- package/esm2022/tabs/tabmenu.module.mjs +0 -18
- package/esm2022/tabs/tabs.component.mjs +0 -352
- package/esm2022/tabs/tabs.module.mjs +0 -20
- package/esm2022/tabs/tabs.styles.mjs +0 -3
- package/esm2022/tabs/tabs.types.mjs +0 -50
- package/esm2022/tabs/wirabyte-ui-tabs.mjs +0 -5
- package/esm2022/tag/public-api.mjs +0 -4
- package/esm2022/tag/tag.component.mjs +0 -42
- package/esm2022/tag/tag.module.mjs +0 -17
- package/esm2022/tag/tag.types.mjs +0 -2
- package/esm2022/tag/wirabyte-ui-tag.mjs +0 -5
- package/esm2022/terminal/public-api.mjs +0 -6
- package/esm2022/terminal/terminal.component.mjs +0 -150
- package/esm2022/terminal/terminal.module.mjs +0 -17
- package/esm2022/terminal/terminal.service.mjs +0 -35
- package/esm2022/terminal/wirabyte-ui-terminal.mjs +0 -5
- package/esm2022/textarea/public-api.mjs +0 -3
- package/esm2022/textarea/textarea.directive.mjs +0 -75
- package/esm2022/textarea/textarea.module.mjs +0 -17
- package/esm2022/textarea/wirabyte-ui-textarea.mjs +0 -5
- package/esm2022/thai/public-api.mjs +0 -4
- package/esm2022/thai/thai.module.mjs +0 -18
- package/esm2022/thai/thai.pipes.mjs +0 -115
- package/esm2022/thai/wirabyte-ui-thai.mjs +0 -5
- package/esm2022/tieredmenu/public-api.mjs +0 -3
- package/esm2022/tieredmenu/tieredmenu.component.mjs +0 -385
- package/esm2022/tieredmenu/tieredmenu.module.mjs +0 -17
- package/esm2022/tieredmenu/wirabyte-ui-tieredmenu.mjs +0 -5
- package/esm2022/timeline/public-api.mjs +0 -4
- package/esm2022/timeline/timeline.base.mjs +0 -66
- package/esm2022/timeline/timeline.component.mjs +0 -68
- package/esm2022/timeline/timeline.module.mjs +0 -18
- package/esm2022/timeline/wirabyte-ui-timeline.mjs +0 -5
- package/esm2022/toast/message.service.mjs +0 -34
- package/esm2022/toast/public-api.mjs +0 -6
- package/esm2022/toast/toast.base.mjs +0 -227
- package/esm2022/toast/toast.component.mjs +0 -17
- package/esm2022/toast/toast.module.mjs +0 -18
- package/esm2022/toast/toast.types.mjs +0 -2
- package/esm2022/toast/wirabyte-ui-toast.mjs +0 -5
- package/esm2022/togglebutton/public-api.mjs +0 -4
- package/esm2022/togglebutton/togglebutton.component.mjs +0 -93
- package/esm2022/togglebutton/togglebutton.module.mjs +0 -17
- package/esm2022/togglebutton/togglebutton.types.mjs +0 -2
- package/esm2022/togglebutton/wirabyte-ui-togglebutton.mjs +0 -5
- package/esm2022/toggleswitch/public-api.mjs +0 -4
- package/esm2022/toggleswitch/toggleswitch.component.mjs +0 -78
- package/esm2022/toggleswitch/toggleswitch.module.mjs +0 -17
- package/esm2022/toggleswitch/toggleswitch.types.mjs +0 -2
- package/esm2022/toggleswitch/wirabyte-ui-toggleswitch.mjs +0 -5
- package/esm2022/toolbar/public-api.mjs +0 -3
- package/esm2022/toolbar/toolbar.component.mjs +0 -67
- package/esm2022/toolbar/toolbar.module.mjs +0 -18
- package/esm2022/toolbar/wirabyte-ui-toolbar.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip.directive.mjs +0 -370
- package/esm2022/tooltip/tooltip.module.mjs +0 -17
- package/esm2022/tooltip/tooltip.styles.mjs +0 -3
- package/esm2022/tooltip/tooltip.types.mjs +0 -2
- package/esm2022/tooltip/wirabyte-ui-tooltip.mjs +0 -5
- package/esm2022/tree/public-api.mjs +0 -3
- package/esm2022/tree/tree.component.mjs +0 -453
- package/esm2022/tree/tree.module.mjs +0 -17
- package/esm2022/tree/wirabyte-ui-tree.mjs +0 -5
- package/esm2022/treeselect/public-api.mjs +0 -3
- package/esm2022/treeselect/treeselect.component.mjs +0 -410
- package/esm2022/treeselect/treeselect.module.mjs +0 -17
- package/esm2022/treeselect/wirabyte-ui-treeselect.mjs +0 -5
- package/esm2022/validation/field-error.component.mjs +0 -84
- package/esm2022/validation/public-api.mjs +0 -4
- package/esm2022/validation/validation.module.mjs +0 -19
- package/esm2022/validation/validators.mjs +0 -84
- package/esm2022/validation/wirabyte-ui-validation.mjs +0 -5
- package/esm2022/wirabyte-ui.mjs +0 -5
- package/excel/excel.d.ts +0 -24
- package/excel/index.d.ts +0 -5
- package/excel/public-api.d.ts +0 -3
- package/fieldset/fieldset.component.d.ts +0 -29
- package/fieldset/fieldset.module.d.ts +0 -9
- package/fieldset/index.d.ts +0 -5
- package/fieldset/public-api.d.ts +0 -2
- package/fileupload/fileupload.base.d.ts +0 -175
- package/fileupload/fileupload.component.d.ts +0 -11
- package/fileupload/fileupload.module.d.ts +0 -9
- package/fileupload/fileupload.types.d.ts +0 -54
- package/fileupload/index.d.ts +0 -5
- package/fileupload/public-api.d.ts +0 -4
- package/floatlabel/floatlabel.component.d.ts +0 -21
- package/floatlabel/floatlabel.module.d.ts +0 -8
- package/floatlabel/floatlabel.types.d.ts +0 -1
- package/floatlabel/index.d.ts +0 -5
- package/floatlabel/public-api.d.ts +0 -3
- package/flow/flow-background.component.d.ts +0 -49
- package/flow/flow-controls.component.d.ts +0 -47
- package/flow/flow-handle.component.d.ts +0 -48
- package/flow/flow-history.directive.d.ts +0 -42
- package/flow/flow-host.d.ts +0 -48
- package/flow/flow-minimap.component.d.ts +0 -79
- package/flow/flow-node-outlet.d.ts +0 -46
- package/flow/flow-node-resizer.component.d.ts +0 -57
- package/flow/flow-node-toolbar.component.d.ts +0 -38
- package/flow/flow-panel.component.d.ts +0 -11
- package/flow/flow-templates.d.ts +0 -47
- package/flow/flow.component.d.ts +0 -633
- package/flow/flow.module.d.ts +0 -21
- package/flow/flow.types.d.ts +0 -210
- package/flow/index.d.ts +0 -5
- package/flow/public-api.d.ts +0 -16
- package/galleria/galleria.component.d.ts +0 -163
- package/galleria/galleria.module.d.ts +0 -8
- package/galleria/index.d.ts +0 -5
- package/galleria/public-api.d.ts +0 -2
- package/i18n/i18n.module.d.ts +0 -22
- package/i18n/i18n.service.d.ts +0 -54
- package/i18n/i18n.types.d.ts +0 -33
- package/i18n/index.d.ts +0 -5
- package/i18n/language-switch.component.d.ts +0 -50
- package/i18n/public-api.d.ts +0 -6
- package/i18n/translate.pipe.d.ts +0 -25
- package/iconfield/iconfield.component.d.ts +0 -30
- package/iconfield/iconfield.module.d.ts +0 -8
- package/iconfield/index.d.ts +0 -5
- package/iconfield/public-api.d.ts +0 -2
- package/image/image.base.d.ts +0 -83
- package/image/image.component.d.ts +0 -7
- package/image/image.module.d.ts +0 -9
- package/image/index.d.ts +0 -5
- package/image/public-api.d.ts +0 -3
- package/imagecompare/imagecompare.component.d.ts +0 -67
- package/imagecompare/imagecompare.module.d.ts +0 -9
- package/imagecompare/index.d.ts +0 -5
- package/imagecompare/public-api.d.ts +0 -2
- package/imagecropper/imagecropper.component.d.ts +0 -309
- package/imagecropper/imagecropper.module.d.ts +0 -8
- package/imagecropper/imagecropper.types.d.ts +0 -79
- package/imagecropper/index.d.ts +0 -5
- package/imagecropper/public-api.d.ts +0 -4
- package/index.d.ts +0 -5
- package/inplace/index.d.ts +0 -5
- package/inplace/inplace.component.d.ts +0 -59
- package/inplace/inplace.module.d.ts +0 -8
- package/inplace/public-api.d.ts +0 -2
- package/inputgroup/index.d.ts +0 -5
- package/inputgroup/inputgroup.component.d.ts +0 -26
- package/inputgroup/inputgroup.module.d.ts +0 -8
- package/inputgroup/public-api.d.ts +0 -2
- package/inputmask/index.d.ts +0 -5
- package/inputmask/inputmask.base.d.ts +0 -115
- package/inputmask/inputmask.component.d.ts +0 -10
- package/inputmask/inputmask.module.d.ts +0 -8
- package/inputmask/public-api.d.ts +0 -3
- package/inputnumber/index.d.ts +0 -5
- package/inputnumber/inputnumber.component.d.ts +0 -108
- package/inputnumber/inputnumber.module.d.ts +0 -8
- package/inputnumber/inputnumber.types.d.ts +0 -7
- package/inputnumber/public-api.d.ts +0 -3
- package/inputotp/index.d.ts +0 -5
- package/inputotp/inputotp.component.d.ts +0 -105
- package/inputotp/inputotp.module.d.ts +0 -9
- package/inputotp/inputotp.types.d.ts +0 -22
- package/inputotp/public-api.d.ts +0 -3
- package/inputtext/index.d.ts +0 -5
- package/inputtext/inputtext.directive.d.ts +0 -21
- package/inputtext/inputtext.module.d.ts +0 -8
- package/inputtext/inputtext.styles.d.ts +0 -2
- package/inputtext/inputtext.types.d.ts +0 -3
- package/inputtext/public-api.d.ts +0 -5
- package/keyfilter/index.d.ts +0 -5
- package/keyfilter/keyfilter.directive.d.ts +0 -29
- package/keyfilter/keyfilter.module.d.ts +0 -8
- package/keyfilter/public-api.d.ts +0 -2
- package/knob/index.d.ts +0 -5
- package/knob/knob.component.d.ts +0 -94
- package/knob/knob.module.d.ts +0 -8
- package/knob/public-api.d.ts +0 -2
- package/listbox/index.d.ts +0 -5
- package/listbox/listbox.component.d.ts +0 -186
- package/listbox/listbox.module.d.ts +0 -8
- package/listbox/public-api.d.ts +0 -2
- package/menu/index.d.ts +0 -5
- package/menu/menu.base.d.ts +0 -95
- package/menu/menu.component.d.ts +0 -11
- package/menu/menu.module.d.ts +0 -9
- package/menu/public-api.d.ts +0 -4
- package/menubar/index.d.ts +0 -5
- package/menubar/menubar.base.d.ts +0 -135
- package/menubar/menubar.component.d.ts +0 -11
- package/menubar/menubar.module.d.ts +0 -9
- package/menubar/public-api.d.ts +0 -4
- package/message/index.d.ts +0 -5
- package/message/message.component.d.ts +0 -39
- package/message/message.module.d.ts +0 -11
- package/message/message.types.d.ts +0 -5
- package/message/messages.base.d.ts +0 -50
- package/message/messages.component.d.ts +0 -7
- package/message/public-api.d.ts +0 -5
- package/metergroup/index.d.ts +0 -5
- package/metergroup/metergroup.component.d.ts +0 -54
- package/metergroup/metergroup.module.d.ts +0 -8
- package/metergroup/metergroup.types.d.ts +0 -42
- package/metergroup/public-api.d.ts +0 -3
- package/multiselect/index.d.ts +0 -5
- package/multiselect/multiselect.base.d.ts +0 -222
- package/multiselect/multiselect.component.d.ts +0 -11
- package/multiselect/multiselect.module.d.ts +0 -9
- package/multiselect/multiselect.styles.d.ts +0 -2
- package/multiselect/multiselect.types.d.ts +0 -20
- package/multiselect/public-api.d.ts +0 -5
- package/navbar/index.d.ts +0 -5
- package/navbar/navbar.component.d.ts +0 -172
- package/navbar/navbar.module.d.ts +0 -9
- package/navbar/public-api.d.ts +0 -2
- package/orderlist/index.d.ts +0 -5
- package/orderlist/orderlist.base.d.ts +0 -136
- package/orderlist/orderlist.component.d.ts +0 -10
- package/orderlist/orderlist.module.d.ts +0 -9
- package/orderlist/orderlist.types.d.ts +0 -10
- package/orderlist/public-api.d.ts +0 -4
- package/organizationchart/index.d.ts +0 -5
- package/organizationchart/organizationchart.component.d.ts +0 -76
- package/organizationchart/organizationchart.module.d.ts +0 -9
- package/organizationchart/organizationchart.types.d.ts +0 -10
- package/organizationchart/public-api.d.ts +0 -4
- package/paginator/index.d.ts +0 -5
- package/paginator/paginator.base.d.ts +0 -95
- package/paginator/paginator.component.d.ts +0 -10
- package/paginator/paginator.module.d.ts +0 -8
- package/paginator/paginator.types.d.ts +0 -7
- package/paginator/public-api.d.ts +0 -4
- package/panel/index.d.ts +0 -5
- package/panel/panel.component.d.ts +0 -42
- package/panel/panel.module.d.ts +0 -10
- package/panel/panel.types.d.ts +0 -2
- package/panel/public-api.d.ts +0 -3
- package/panelmenu/index.d.ts +0 -5
- package/panelmenu/panelmenu.base.d.ts +0 -53
- package/panelmenu/panelmenu.component.d.ts +0 -7
- package/panelmenu/panelmenu.module.d.ts +0 -9
- package/panelmenu/public-api.d.ts +0 -3
- package/password/index.d.ts +0 -5
- package/password/password.component.d.ts +0 -79
- package/password/password.module.d.ts +0 -8
- package/password/password.types.d.ts +0 -6
- package/password/public-api.d.ts +0 -3
- package/picklist/index.d.ts +0 -5
- package/picklist/list-drag.d.ts +0 -49
- package/picklist/picklist.base.d.ts +0 -217
- package/picklist/picklist.component.d.ts +0 -10
- package/picklist/picklist.module.d.ts +0 -9
- package/picklist/picklist.styles.d.ts +0 -2
- package/picklist/picklist.types.d.ts +0 -21
- package/picklist/public-api.d.ts +0 -7
- package/popover/index.d.ts +0 -5
- package/popover/popover.base.d.ts +0 -61
- package/popover/popover.component.d.ts +0 -10
- package/popover/popover.module.d.ts +0 -9
- package/popover/public-api.d.ts +0 -3
- package/presets/index.d.ts +0 -5
- package/presets/public-api.d.ts +0 -2
- package/progressbar/index.d.ts +0 -5
- package/progressbar/progressbar.component.d.ts +0 -48
- package/progressbar/progressbar.module.d.ts +0 -8
- package/progressbar/progressbar.types.d.ts +0 -16
- package/progressbar/public-api.d.ts +0 -3
- package/progressspinner/index.d.ts +0 -5
- package/progressspinner/progressspinner.component.d.ts +0 -44
- package/progressspinner/progressspinner.module.d.ts +0 -8
- package/progressspinner/progressspinner.types.d.ts +0 -9
- package/progressspinner/public-api.d.ts +0 -3
- package/public-api.d.ts +0 -2
- package/radiobutton/index.d.ts +0 -5
- package/radiobutton/public-api.d.ts +0 -6
- package/radiobutton/radio-registry.d.ts +0 -23
- package/radiobutton/radiobutton.component.d.ts +0 -50
- package/radiobutton/radiobutton.module.d.ts +0 -8
- package/radiobutton/radiobutton.styles.d.ts +0 -2
- package/radiobutton/radiobutton.types.d.ts +0 -4
- package/rating/index.d.ts +0 -5
- package/rating/public-api.d.ts +0 -3
- package/rating/rating.component.d.ts +0 -39
- package/rating/rating.module.d.ts +0 -8
- package/rating/rating.types.d.ts +0 -4
- package/result/index.d.ts +0 -5
- package/result/public-api.d.ts +0 -2
- package/result/result.component.d.ts +0 -39
- package/result/result.module.d.ts +0 -8
- package/ripple/index.d.ts +0 -5
- package/ripple/public-api.d.ts +0 -2
- package/ripple/ripple.directive.d.ts +0 -15
- package/ripple/ripple.module.d.ts +0 -8
- package/ripple/ripple.styles.d.ts +0 -2
- package/scroller/index.d.ts +0 -5
- package/scroller/public-api.d.ts +0 -5
- package/scroller/scroller.component.d.ts +0 -135
- package/scroller/scroller.module.d.ts +0 -8
- package/scrollpanel/index.d.ts +0 -5
- package/scrollpanel/public-api.d.ts +0 -2
- package/scrollpanel/scrollpanel.component.d.ts +0 -27
- package/scrollpanel/scrollpanel.module.d.ts +0 -8
- package/select/index.d.ts +0 -5
- package/select/public-api.d.ts +0 -6
- package/select/select.base.d.ts +0 -217
- package/select/select.component.d.ts +0 -11
- package/select/select.module.d.ts +0 -8
- package/select/select.styles.d.ts +0 -2
- package/select/select.types.d.ts +0 -9
- package/selectbutton/index.d.ts +0 -5
- package/selectbutton/public-api.d.ts +0 -3
- package/selectbutton/selectbutton.component.d.ts +0 -59
- package/selectbutton/selectbutton.module.d.ts +0 -9
- package/selectbutton/selectbutton.types.d.ts +0 -9
- package/sitefooter/index.d.ts +0 -5
- package/sitefooter/public-api.d.ts +0 -2
- package/sitefooter/sitefooter.component.d.ts +0 -69
- package/sitefooter/sitefooter.module.d.ts +0 -9
- package/skeleton/index.d.ts +0 -5
- package/skeleton/public-api.d.ts +0 -3
- package/skeleton/skeleton.component.d.ts +0 -22
- package/skeleton/skeleton.module.d.ts +0 -8
- package/skeleton/skeleton.types.d.ts +0 -2
- package/slider/index.d.ts +0 -5
- package/slider/public-api.d.ts +0 -2
- package/slider/slider.component.d.ts +0 -79
- package/slider/slider.module.d.ts +0 -8
- package/splitbutton/index.d.ts +0 -5
- package/splitbutton/public-api.d.ts +0 -2
- package/splitbutton/splitbutton.component.d.ts +0 -75
- package/splitbutton/splitbutton.module.d.ts +0 -8
- package/splitter/index.d.ts +0 -5
- package/splitter/public-api.d.ts +0 -4
- package/splitter/splitter-panel.component.d.ts +0 -20
- package/splitter/splitter.component.d.ts +0 -109
- package/splitter/splitter.module.d.ts +0 -10
- package/splitter/splitter.types.d.ts +0 -8
- package/stepper/index.d.ts +0 -5
- package/stepper/public-api.d.ts +0 -3
- package/stepper/stepper.base.d.ts +0 -200
- package/stepper/stepper.component.d.ts +0 -41
- package/stepper/stepper.module.d.ts +0 -9
- package/steps/index.d.ts +0 -5
- package/steps/public-api.d.ts +0 -3
- package/steps/steps.base.d.ts +0 -52
- package/steps/steps.component.d.ts +0 -7
- package/steps/steps.module.d.ts +0 -8
- package/table/index.d.ts +0 -5
- package/table/public-api.d.ts +0 -9
- package/table/table-celleditor.component.d.ts +0 -14
- package/table/table-filter.component.d.ts +0 -11
- package/table/table.base.d.ts +0 -410
- package/table/table.celleditor.d.ts +0 -20
- package/table/table.component.d.ts +0 -12
- package/table/table.directives.d.ts +0 -330
- package/table/table.filter.d.ts +0 -131
- package/table/table.module.d.ts +0 -12
- package/table/table.types.d.ts +0 -180
- package/tabmenu/index.d.ts +0 -5
- package/tabmenu/public-api.d.ts +0 -2
- package/tabs/index.d.ts +0 -5
- package/tabs/public-api.d.ts +0 -8
- package/tabs/tabmenu.base.d.ts +0 -59
- package/tabs/tabmenu.component.d.ts +0 -10
- package/tabs/tabmenu.module.d.ts +0 -9
- package/tabs/tabs.component.d.ts +0 -120
- package/tabs/tabs.module.d.ts +0 -10
- package/tabs/tabs.styles.d.ts +0 -2
- package/tabs/tabs.types.d.ts +0 -21
- package/tag/index.d.ts +0 -5
- package/tag/public-api.d.ts +0 -3
- package/tag/tag.component.d.ts +0 -20
- package/tag/tag.module.d.ts +0 -8
- package/tag/tag.types.d.ts +0 -2
- package/terminal/index.d.ts +0 -5
- package/terminal/public-api.d.ts +0 -5
- package/terminal/terminal.component.d.ts +0 -58
- package/terminal/terminal.module.d.ts +0 -8
- package/terminal/terminal.service.d.ts +0 -20
- package/textarea/index.d.ts +0 -5
- package/textarea/public-api.d.ts +0 -2
- package/textarea/textarea.directive.d.ts +0 -27
- package/textarea/textarea.module.d.ts +0 -8
- package/thai/index.d.ts +0 -5
- package/thai/public-api.d.ts +0 -3
- package/thai/thai.module.d.ts +0 -8
- package/thai/thai.pipes.d.ts +0 -57
- package/tieredmenu/index.d.ts +0 -5
- package/tieredmenu/public-api.d.ts +0 -2
- package/tieredmenu/tieredmenu.component.d.ts +0 -90
- package/tieredmenu/tieredmenu.module.d.ts +0 -8
- package/timeline/index.d.ts +0 -5
- package/timeline/public-api.d.ts +0 -3
- package/timeline/timeline.base.d.ts +0 -36
- package/timeline/timeline.component.d.ts +0 -7
- package/timeline/timeline.module.d.ts +0 -9
- package/toast/index.d.ts +0 -5
- package/toast/message.service.d.ts +0 -19
- package/toast/public-api.d.ts +0 -5
- package/toast/toast.base.d.ts +0 -84
- package/toast/toast.component.d.ts +0 -10
- package/toast/toast.module.d.ts +0 -9
- package/toast/toast.types.d.ts +0 -28
- package/togglebutton/index.d.ts +0 -5
- package/togglebutton/public-api.d.ts +0 -3
- package/togglebutton/togglebutton.component.d.ts +0 -47
- package/togglebutton/togglebutton.module.d.ts +0 -8
- package/togglebutton/togglebutton.types.d.ts +0 -4
- package/toggleswitch/index.d.ts +0 -5
- package/toggleswitch/public-api.d.ts +0 -3
- package/toggleswitch/toggleswitch.component.d.ts +0 -42
- package/toggleswitch/toggleswitch.module.d.ts +0 -8
- package/toggleswitch/toggleswitch.types.d.ts +0 -4
- package/toolbar/index.d.ts +0 -5
- package/toolbar/public-api.d.ts +0 -2
- package/toolbar/toolbar.component.d.ts +0 -29
- package/toolbar/toolbar.module.d.ts +0 -9
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip.directive.d.ts +0 -87
- package/tooltip/tooltip.module.d.ts +0 -8
- package/tooltip/tooltip.styles.d.ts +0 -2
- package/tooltip/tooltip.types.d.ts +0 -14
- package/tree/index.d.ts +0 -5
- package/tree/public-api.d.ts +0 -2
- package/tree/tree.component.d.ts +0 -149
- package/tree/tree.module.d.ts +0 -8
- package/treeselect/index.d.ts +0 -5
- package/treeselect/public-api.d.ts +0 -2
- package/treeselect/treeselect.component.d.ts +0 -140
- package/treeselect/treeselect.module.d.ts +0 -8
- package/validation/field-error.component.d.ts +0 -39
- package/validation/index.d.ts +0 -5
- package/validation/public-api.d.ts +0 -3
- package/validation/validation.module.d.ts +0 -9
- package/validation/validators.d.ts +0 -33
|
@@ -1,53 +1,1256 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
4
|
-
import {
|
|
3
|
+
import { input, booleanAttribute, numberAttribute, output, linkedSignal, signal, inject, NgZone, ElementRef, PLATFORM_ID, viewChild, computed, DestroyRef, afterNextRender, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
4
|
+
import { WuConfig, ɵrefreshOnTranslation as _refreshOnTranslation, ɵassertSupportedAngular as _assertSupportedAngular, ɵWU_SKIP_VERSION_CHECK as _WU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';
|
|
5
|
+
import { chartSeriesFrom, chartSwapTypes, chartVariants, chartModel, formatChartValue, chartHit, chartMovesValues } from '@wirabyte/ui/core';
|
|
6
|
+
export { CHART_PALETTE, chartSeriesFrom, formatChartValue } from '@wirabyte/ui/core';
|
|
5
7
|
|
|
8
|
+
/** The look picker's names. */
|
|
9
|
+
const WU_CHART_LOOKS = {
|
|
10
|
+
square: { th: 'สี่เหลี่ยม', en: 'Squares' },
|
|
11
|
+
circle: { th: 'วงกลม', en: 'Circles' },
|
|
12
|
+
hex: { th: 'รังผึ้ง', en: 'Honeycomb' },
|
|
13
|
+
silhouette: { th: 'สมมาตร', en: 'Silhouette' },
|
|
14
|
+
wiggle: { th: 'ลื่นไหล', en: 'Wiggle' },
|
|
15
|
+
expand: { th: 'สัดส่วน', en: 'Shares' },
|
|
16
|
+
bars: { th: 'แท่ง', en: 'Bars' },
|
|
17
|
+
steps: { th: 'ขั้นบันได', en: 'Steps' },
|
|
18
|
+
dots: { th: 'จุด', en: 'Dots' },
|
|
19
|
+
arrow: { th: 'ลูกศร', en: 'Arrows' },
|
|
20
|
+
range: { th: 'ช่วง', en: 'Range' },
|
|
21
|
+
thin: { th: 'เส้นบาง', en: 'Thin' },
|
|
22
|
+
funnel: { th: 'กรวย', en: 'Funnel' },
|
|
23
|
+
pyramid: { th: 'พีระมิด', en: 'Pyramid' },
|
|
24
|
+
box: { th: 'กล่อง', en: 'Box' },
|
|
25
|
+
violin: { th: 'ไวโอลิน', en: 'Violin' },
|
|
26
|
+
points: { th: 'จุดข้อมูล', en: 'Points' },
|
|
27
|
+
density: { th: 'ความหนาแน่น', en: 'Density' },
|
|
28
|
+
sunburst: { th: 'ซันเบิร์สต์', en: 'Sunburst' },
|
|
29
|
+
icicle: { th: 'ไอซิเคิล', en: 'Icicle' },
|
|
30
|
+
waffle: { th: 'วาฟเฟิล', en: 'Waffle' },
|
|
31
|
+
people: { th: 'รูปคน', en: 'People' },
|
|
32
|
+
lines: { th: 'เส้น', en: 'Lines' },
|
|
33
|
+
highlight: { th: 'เน้นขึ้นลง', en: 'Up and down' },
|
|
34
|
+
};
|
|
35
|
+
/** The type switcher's buttons: a 24 × 24 stroked icon and a name per kind. */
|
|
36
|
+
const WU_CHART_KINDS = {
|
|
37
|
+
bar: { icon: 'M5 20V11M10 20V5M15 20v-7M20 20V8', th: 'แท่ง', en: 'Bar' },
|
|
38
|
+
line: { icon: 'M3 17l5-6 4 3 8-9', th: 'เส้น', en: 'Line' },
|
|
39
|
+
area: { icon: 'M3 18l5-7 4 3 8-8v12H3Z', th: 'พื้นที่', en: 'Area' },
|
|
40
|
+
pie: { icon: 'M12 3a9 9 0 1 0 9 9h-9ZM15 2.6A8 8 0 0 1 21.4 9H15Z', th: 'วงกลม', en: 'Pie' },
|
|
41
|
+
doughnut: { icon: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm0 5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z', th: 'โดนัท', en: 'Doughnut' },
|
|
42
|
+
polarArea: { icon: 'M12 12V3a9 9 0 0 1 8 5ZM12 12l6 6a8.5 8.5 0 0 1-12 0ZM12 12H5a7 7 0 0 1 7-7', th: 'วงกลมรัศมี', en: 'Polar area' },
|
|
43
|
+
radialBar: { icon: 'M12 3a9 9 0 1 1-9 9M12 7a5 5 0 1 1-5 5', th: 'วงแหวน', en: 'Radial bar' },
|
|
44
|
+
radar: { icon: 'M12 3l8.5 6.2-3.2 10H6.7l-3.2-10ZM12 8l4 3-1.5 5h-5L8 11Z', th: 'เรดาร์', en: 'Radar' },
|
|
45
|
+
scatter: { icon: 'M7 16h.01M11 11h.01M16 13h.01M14 7h.01M19 6h.01M5 20V4M5 20h15', th: 'จุด', en: 'Scatter' },
|
|
46
|
+
heatmap: { icon: 'M4 4h4v4H4ZM10 4h4v4h-4ZM16 4h4v4h-4ZM4 10h4v4H4ZM10 10h4v4h-4ZM16 10h4v4h-4ZM4 16h4v4H4ZM10 16h4v4h-4ZM16 16h4v4h-4Z', th: 'ตารางสี', en: 'Heatmap' },
|
|
47
|
+
treemap: { icon: 'M3 4h10v16H3ZM15 4h6v7h-6ZM15 13h6v7h-6Z', th: 'Treemap', en: 'Treemap' },
|
|
48
|
+
stream: { icon: 'M3 8c3-3 6 1 9-1s6-3 9-2M3 12c3-4 6 2 9-1s6-5 9-2M3 16c3-2 6 2 9 0s6-3 9-1', th: 'สตรีม', en: 'Stream' },
|
|
49
|
+
waterfall: { icon: 'M4 20V8h3v12M9 8V5h3v5M14 10v4h3v-4M19 20V14', th: 'น้ำตก', en: 'Waterfall' },
|
|
50
|
+
dumbbell: { icon: 'M4 7a2 2 0 1 0 4 0 2 2 0 0 0-4 0M16 7a2 2 0 1 0 4 0 2 2 0 0 0-4 0M8 7h8M4 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0M12 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0M8 17h4', th: 'ดัมเบล', en: 'Dumbbell' },
|
|
51
|
+
timeline: { icon: 'M4 6h9M8 12h11M6 18h7M4 3v18', th: 'ไทม์ไลน์', en: 'Timeline' },
|
|
52
|
+
funnel: { icon: 'M3 4h18l-6 8v6l-6 3v-9Z', th: 'กรวย', en: 'Funnel' },
|
|
53
|
+
boxplot: { icon: 'M12 3v4M12 17v4M9 3h6M9 21h6M7 7h10v10H7ZM7 12h10', th: 'กล่อง', en: 'Box plot' },
|
|
54
|
+
histogram: { icon: 'M4 20V13h4v7M8 20V7h4v13M12 20V10h4v10M16 20v-5h4v5', th: 'ฮิสโตแกรม', en: 'Histogram' },
|
|
55
|
+
sunburst: { icon: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM12 3v5M21 12h-5M12 16v5', th: 'ซันเบิร์สต์', en: 'Sunburst' },
|
|
56
|
+
unit: { icon: 'M5 5h3v3H5ZM10.5 5h3v3h-3ZM16 5h3v3h-3ZM5 10.5h3v3H5ZM10.5 10.5h3v3h-3ZM16 10.5h3v3h-3ZM5 16h3v3H5Z', th: 'หน่วย', en: 'Units' },
|
|
57
|
+
slope: { icon: 'M5 4v16M19 4v16M5 7l14 6M5 15l14-8', th: 'ความชัน', en: 'Slope' },
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** The theme's chart colours (`--wu-chart-1` … `-10`), so charts follow the preset and dark mode. */
|
|
61
|
+
const PALETTE = Array.from({ length: 10 }, (_, i) => `var(--wu-chart-${i + 1})`);
|
|
62
|
+
const ANIMATION_MS = 650;
|
|
63
|
+
let uid = 0;
|
|
64
|
+
const ease = (t) => 1 - Math.pow(1 - t, 3);
|
|
65
|
+
const TYPES = Object.keys(WU_CHART_KINDS);
|
|
66
|
+
/** Kinds that hide labels from the legend (not series), without zeroing data that is not numbers. */
|
|
67
|
+
const BY_LABELS = ['funnel', 'unit', 'sunburst'];
|
|
68
|
+
const GHOST_MS = 480;
|
|
69
|
+
const ALIASES = { donut: 'doughnut', bubble: 'scatter', radialbar: 'radialBar', polararea: 'polarArea', gauge: 'radialBar' };
|
|
70
|
+
const WORDS = {
|
|
71
|
+
th: { toolbar: 'เครื่องมือของกราฟ', zoomIn: 'ซูมเข้า', zoomOut: 'ซูมออก', reset: 'ดูทั้งหมด', download: 'ดาวน์โหลด', kinds: 'แบบของกราฟ', looks: 'ลักษณะ', back: 'ย้อนกลับ' },
|
|
72
|
+
en: { toolbar: 'Chart tools', zoomIn: 'Zoom in', zoomOut: 'Zoom out', reset: 'Show all', download: 'Download', kinds: 'Chart type', looks: 'Look', back: 'Back' },
|
|
73
|
+
};
|
|
74
|
+
/** Charts that share a `group`, to show the tooltip at the same label together. */
|
|
75
|
+
const GROUPS = new Map();
|
|
6
76
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* is
|
|
77
|
+
* WiraUI's own chart, drawn in SVG with no chart library: `<wu-chart type="bar" [labels]="months" [series]="[{ name: 'รายรับ', data: income }]">`.
|
|
78
|
+
* Bar (grouped, stacked, across), line (smooth, dashed, a second axis), area, pie, doughnut, radar and scatter / bubble,
|
|
79
|
+
* mixed per series. Text is real text in the page's font (Thai shapes properly); `font` and `fontSize` change it for
|
|
80
|
+
* one chart. Values read as numbers, percents, baht or Thai compact units (`format`). The legend shows and hides
|
|
81
|
+
* series, the tooltip follows the pointer or the arrow keys, values grow in when shown and move when they change, and
|
|
82
|
+
* a hidden table gives screen readers the numbers. Chart.js-shaped `[data]` / `[options]` work too, so Chart.js code
|
|
83
|
+
* (`<wu-chartjs>`, `<p-chart>`) moves over as it is; for Chart.js plugins keep `<wu-chartjs>`. Export with `toSVG()`, `toPNG()` or `download()`.
|
|
10
84
|
*/
|
|
11
|
-
class WuChart
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
85
|
+
class WuChart {
|
|
86
|
+
constructor() {
|
|
87
|
+
/**
|
|
88
|
+
* `bar` (default), `line`, `area`, `pie`, `doughnut`, `polarArea`, `radialBar`, `radar`, `scatter`, `heatmap`, `treemap`,
|
|
89
|
+
* `stream`, `waterfall`, `dumbbell`, `timeline`, `funnel`, `boxplot`, `histogram`, `sunburst`, `unit`, `slope`.
|
|
90
|
+
*/
|
|
91
|
+
this.type = input('bar', { ...(ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {}), transform: (v) => (TYPES.includes(v) ? v : ALIASES[String(v).toLowerCase()] || 'bar') });
|
|
92
|
+
/** Category labels (the x axis; slices of a pie). */
|
|
93
|
+
this.labels = input(...(ngDevMode ? [undefined, { debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
94
|
+
/** `[{ name, data, type?, color?, axis?, stack?, smooth?, dashed?, hidden? }]`. */
|
|
95
|
+
this.series = input(...(ngDevMode ? [undefined, { debugName: "series" }] : /* istanbul ignore next */ []));
|
|
96
|
+
/** Chart.js-shaped data instead: `{ labels, datasets }`. */
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
99
|
+
/** Chart.js-shaped options it understands (indexAxis, stacked scales, min / max, legend, title, cutout). */
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
101
|
+
this.options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
102
|
+
this.title = input(...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
103
|
+
this.subtitle = input(...(ngDevMode ? [undefined, { debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
104
|
+
/** Height of the drawing: px or any CSS length. Default 320px (pie and doughnut 280px). */
|
|
105
|
+
this.height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
|
|
106
|
+
this.legend = input(...(ngDevMode ? [undefined, { debugName: "legend" }] : /* istanbul ignore next */ []));
|
|
107
|
+
/** Font family of every text in the chart. Default: the theme's. */
|
|
108
|
+
this.font = input(...(ngDevMode ? [undefined, { debugName: "font" }] : /* istanbul ignore next */ []));
|
|
109
|
+
/** Size of axis and label text, px. Default 12. */
|
|
110
|
+
this.fontSize = input(12, { ...(ngDevMode ? { debugName: "fontSize" } : /* istanbul ignore next */ {}), transform: (v) => (Number(v) > 0 ? Number(v) : 12) });
|
|
111
|
+
this.horizontal = input(false, { ...(ngDevMode ? { debugName: "horizontal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
112
|
+
this.stacked = input(false, { ...(ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
113
|
+
this.smooth = input(false, { ...(ngDevMode ? { debugName: "smooth" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
114
|
+
/** `'straight'`, `'smooth'` or `'step'` lines (wins over `smooth`). */
|
|
115
|
+
this.curve = input(...(ngDevMode ? [undefined, { debugName: "curve" }] : /* istanbul ignore next */ []));
|
|
116
|
+
/** Areas fade down from the line's colour; false fills them flat. */
|
|
117
|
+
this.gradient = input(true, { ...(ngDevMode ? { debugName: "gradient" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
118
|
+
/** A small chart with no axes, grid, legend or text: a trend beside a number. */
|
|
119
|
+
this.sparkline = input(false, { ...(ngDevMode ? { debugName: "sparkline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
120
|
+
/** Values on the bars, points and slices. Default off (heatmap and waterfall: on). */
|
|
121
|
+
this.showValues = input(undefined, { ...(ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
|
|
122
|
+
/** The look of a kind, e.g. heatmap `'hex'`, funnel `'pyramid'`, box plot `'violin'`, unit `'people'` (see the docs). */
|
|
123
|
+
this.variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
124
|
+
/** Histogram bins. Default from the number of values. */
|
|
125
|
+
this.bins = input(undefined, { ...(ngDevMode ? { debugName: "bins" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
126
|
+
/**
|
|
127
|
+
* (Beta) A type switcher over the chart: `true` offers every kind the same data can be shown as, or name them
|
|
128
|
+
* (`['bar', 'line', 'area']`). The chart moves to the new kind with a cross-fade.
|
|
129
|
+
*/
|
|
130
|
+
this.swap = input(...(ngDevMode ? [undefined, { debugName: "swap" }] : /* istanbul ignore next */ []));
|
|
131
|
+
/** A look picker over the chart for kinds with several looks (heatmap, stream, funnel, box plot, …). */
|
|
132
|
+
this.looks = input(false, { ...(ngDevMode ? { debugName: "looks" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
133
|
+
/** Dots on line points; default when there are 40 or fewer. */
|
|
134
|
+
this.points = input(undefined, { ...(ngDevMode ? { debugName: "points" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
|
|
135
|
+
this.grid = input(true, { ...(ngDevMode ? { debugName: "grid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
136
|
+
this.tooltip = input(true, { ...(ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
137
|
+
this.animate = input(true, { ...(ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
138
|
+
/** How values read: `'number'`, `'integer'`, `'percent'`, `'currency'`, `'compact'` or a function. */
|
|
139
|
+
this.format = input('number', ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
|
|
140
|
+
/** Format of the right-hand axis. Default `format`. */
|
|
141
|
+
this.rightFormat = input(...(ngDevMode ? [undefined, { debugName: "rightFormat" }] : /* istanbul ignore next */ []));
|
|
142
|
+
this.currency = input('THB', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
143
|
+
this.decimals = input(undefined, { ...(ngDevMode ? { debugName: "decimals" } : /* istanbul ignore next */ {}), transform: (v) => (v === null || v === undefined || v === '' ? undefined : numberAttribute(v)) });
|
|
144
|
+
this.prefix = input(...(ngDevMode ? [undefined, { debugName: "prefix" }] : /* istanbul ignore next */ []));
|
|
145
|
+
this.suffix = input(...(ngDevMode ? [undefined, { debugName: "suffix" }] : /* istanbul ignore next */ []));
|
|
146
|
+
/** Language of numbers and built-in text. Default: the app's. */
|
|
147
|
+
this.lang = input(...(ngDevMode ? [undefined, { debugName: "lang" }] : /* istanbul ignore next */ []));
|
|
148
|
+
this.min = input(undefined, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
149
|
+
this.max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
150
|
+
this.beginAtZero = input(undefined, { ...(ngDevMode ? { debugName: "beginAtZero" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
|
|
151
|
+
this.rightMin = input(undefined, { ...(ngDevMode ? { debugName: "rightMin" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
152
|
+
this.rightMax = input(undefined, { ...(ngDevMode ? { debugName: "rightMax" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
153
|
+
this.xTitle = input(...(ngDevMode ? [undefined, { debugName: "xTitle" }] : /* istanbul ignore next */ []));
|
|
154
|
+
this.yTitle = input(...(ngDevMode ? [undefined, { debugName: "yTitle" }] : /* istanbul ignore next */ []));
|
|
155
|
+
this.y2Title = input(...(ngDevMode ? [undefined, { debugName: "y2Title" }] : /* istanbul ignore next */ []));
|
|
156
|
+
/** Horizontal lines at values: `[{ value: 80, label: 'เป้าหมาย' }]` (`to` shades a band). */
|
|
157
|
+
this.referenceLines = input(...(ngDevMode ? [undefined, { debugName: "referenceLines" }] : /* istanbul ignore next */ []));
|
|
158
|
+
/** Notes on bar, line and area charts: `{ y: [{ value, to?, label }], x: [{ at, to?, label }], points: [{ at, value, label }] }`. */
|
|
159
|
+
this.annotations = input(...(ngDevMode ? [undefined, { debugName: "annotations" }] : /* istanbul ignore next */ []));
|
|
160
|
+
/** Heatmap colours by value: `[{ from: 0, to: 10, color: '#…', name: 'ต่ำ' }]`. */
|
|
161
|
+
this.colorRanges = input(...(ngDevMode ? [undefined, { debugName: "colorRanges" }] : /* istanbul ignore next */ []));
|
|
162
|
+
/** Where pie, doughnut and radial bars start and end, degrees clockwise from 12 o'clock: -90 and 90 make a half circle (a gauge). */
|
|
163
|
+
this.startAngle = input(undefined, { ...(ngDevMode ? { debugName: "startAngle" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
164
|
+
this.endAngle = input(undefined, { ...(ngDevMode ? { debugName: "endAngle" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
165
|
+
/** Buttons over the chart: zoom (bar, line and area) and download as PNG, SVG or CSV. */
|
|
166
|
+
this.toolbar = input(false, { ...(ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
167
|
+
/** Drag across labels to zoom into them (bar, line and area). Default: on with the toolbar. */
|
|
168
|
+
this.zoom = input(undefined, { ...(ngDevMode ? { debugName: "zoom" } : /* istanbul ignore next */ {}), transform: (v) => (v === undefined || v === null ? undefined : booleanAttribute(v)) });
|
|
169
|
+
/** Charts with the same group show the tooltip at the same label together. */
|
|
170
|
+
this.group = input(...(ngDevMode ? [undefined, { debugName: "group" }] : /* istanbul ignore next */ []));
|
|
171
|
+
/** Name of the toolbar's downloads, without the extension. */
|
|
172
|
+
this.fileName = input('chart', ...(ngDevMode ? [{ debugName: "fileName" }] : /* istanbul ignore next */ []));
|
|
173
|
+
/** Colours for series (or slices) without their own, instead of the theme's. */
|
|
174
|
+
this.colors = input(...(ngDevMode ? [undefined, { debugName: "colors" }] : /* istanbul ignore next */ []));
|
|
175
|
+
this.barRadius = input(undefined, { ...(ngDevMode ? { debugName: "barRadius" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
176
|
+
/** Doughnut hole, 0–1 of the radius. Default 0.62. */
|
|
177
|
+
this.cutout = input(undefined, { ...(ngDevMode ? { debugName: "cutout" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
178
|
+
/** Doughnut middle: big text and the line under it. Default: the total and "รวม". */
|
|
179
|
+
this.centerValue = input(...(ngDevMode ? [undefined, { debugName: "centerValue" }] : /* istanbul ignore next */ []));
|
|
180
|
+
this.centerLabel = input(...(ngDevMode ? [undefined, { debugName: "centerLabel" }] : /* istanbul ignore next */ []));
|
|
181
|
+
/** Shown when there is nothing to draw. Default: the locale's "no data". */
|
|
182
|
+
this.emptyMessage = input(...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
183
|
+
this.ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
184
|
+
this.styleClass = input(...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
186
|
+
this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
187
|
+
/** A bar, point or slice was clicked (or chosen with Enter). */
|
|
188
|
+
this.pointClick = output();
|
|
189
|
+
/** The legend showed or hid a series (pie: a slice). */
|
|
190
|
+
this.seriesToggle = output();
|
|
191
|
+
/** Zoomed into labels `from` … `to` (indexes), or back to all of them (null). */
|
|
192
|
+
this.zoomChange = output();
|
|
193
|
+
/** The type switcher picked another kind. */
|
|
194
|
+
this.typeChange = output();
|
|
195
|
+
/** The look picker picked another look. */
|
|
196
|
+
this.variantChange = output();
|
|
197
|
+
/** The kind drawn: `type`, or what the switcher picked. */
|
|
198
|
+
this.kind = linkedSignal(() => this.type(), ...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
|
|
199
|
+
/** The look drawn: `variant`, or what the picker picked. */
|
|
200
|
+
this.chosenLook = linkedSignal(() => this.variant() || undefined, ...(ngDevMode ? [{ debugName: "chosenLook" }] : /* istanbul ignore next */ []));
|
|
201
|
+
this.id = `wu-chart-${++uid}`;
|
|
202
|
+
/** Series (pie: slices) hidden from the legend. */
|
|
203
|
+
this.hidden = signal(new Set(), ...(ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []));
|
|
204
|
+
/** The label (or slice) under the pointer or keyboard. */
|
|
205
|
+
this.hovered = signal(null, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
206
|
+
/** The newer kinds: the hover target under the pointer or keyboard (its key). */
|
|
207
|
+
this.hoverKey = signal(null, ...(ngDevMode ? [{ debugName: "hoverKey" }] : /* istanbul ignore next */ []));
|
|
208
|
+
/** Sunburst: the node drilled into (a path of names). */
|
|
209
|
+
this.focus = signal(null, ...(ngDevMode ? [{ debugName: "focus" }] : /* istanbul ignore next */ []));
|
|
210
|
+
/** The series whose legend item is under the pointer: the others fade. */
|
|
211
|
+
this.focusSeries = signal(null, ...(ngDevMode ? [{ debugName: "focusSeries" }] : /* istanbul ignore next */ []));
|
|
212
|
+
/** Pointer position in the drawing, for the tooltip. */
|
|
213
|
+
this.pointer = signal(null, ...(ngDevMode ? [{ debugName: "pointer" }] : /* istanbul ignore next */ []));
|
|
214
|
+
this.liveText = signal('', ...(ngDevMode ? [{ debugName: "liveText" }] : /* istanbul ignore next */ []));
|
|
215
|
+
/** The labels zoomed into (indexes, both included), or null for all. */
|
|
216
|
+
this.zoomed = signal(null, ...(ngDevMode ? [{ debugName: "zoomed" }] : /* istanbul ignore next */ []));
|
|
217
|
+
/** Labels being dragged across to zoom. */
|
|
218
|
+
this.selecting = signal(null, ...(ngDevMode ? [{ debugName: "selecting" }] : /* istanbul ignore next */ []));
|
|
219
|
+
/** The toolbar's download menu is open. */
|
|
220
|
+
this.menu = signal(false, ...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
|
|
221
|
+
this.config = inject(WuConfig);
|
|
222
|
+
this.zone = inject(NgZone);
|
|
223
|
+
this.host = inject(ElementRef).nativeElement;
|
|
224
|
+
this.browser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
225
|
+
this.body = viewChild('body', ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
|
|
226
|
+
this.svgRef = viewChild('svg', ...(ngDevMode ? [{ debugName: "svgRef" }] : /* istanbul ignore next */ []));
|
|
227
|
+
this.size = signal({ width: 0, height: 0 }, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
228
|
+
this.frame = signal(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
|
|
229
|
+
this.i18n = _refreshOnTranslation();
|
|
230
|
+
this.lang$ = signal(this.config.translation.code || 'th', ...(ngDevMode ? [{ debugName: "lang$" }] : /* istanbul ignore next */ []));
|
|
231
|
+
this.canvas = null;
|
|
232
|
+
this.fontFamily = '';
|
|
233
|
+
this.raf = 0;
|
|
234
|
+
/** The next frame shows without animating (zooming). */
|
|
235
|
+
this.instant = false;
|
|
236
|
+
/** The frame last animated to, so the data effect does not start it again. */
|
|
237
|
+
this.lastTarget = null;
|
|
238
|
+
/** The pointer dragged (a zoom), so the click that follows is not a click on data. */
|
|
239
|
+
this.dragged = false;
|
|
240
|
+
// ---------- inputs, read together ----------
|
|
241
|
+
/** Labels and series from whichever inputs were given, with Chart.js options folded in. */
|
|
242
|
+
this.source = computed(() => {
|
|
243
|
+
const series = this.series();
|
|
244
|
+
if (series)
|
|
245
|
+
return { labels: (this.labels() || []).map(String), series };
|
|
246
|
+
const from = chartSeriesFrom(this.data(), this.kind());
|
|
247
|
+
return { labels: (this.labels() || from.labels).map(String), series: from.series };
|
|
248
|
+
}, ...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
|
|
249
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
250
|
+
this.opt = computed(() => this.options() || {}, ...(ngDevMode ? [{ debugName: "opt" }] : /* istanbul ignore next */ []));
|
|
251
|
+
this.isPie = computed(() => this.kind() === 'pie' || this.kind() === 'doughnut', ...(ngDevMode ? [{ debugName: "isPie" }] : /* istanbul ignore next */ []));
|
|
252
|
+
/** One series, a value per label (pie, doughnut, polar area, radial bar): the legend shows and hides labels. */
|
|
253
|
+
this.isRound = computed(() => this.isPie() || this.kind() === 'polarArea' || this.kind() === 'radialBar', ...(ngDevMode ? [{ debugName: "isRound" }] : /* istanbul ignore next */ []));
|
|
254
|
+
/** Heatmap and treemap: the pointer and the keys go cell by cell. */
|
|
255
|
+
this.isCells = computed(() => this.kind() === 'heatmap' || this.kind() === 'treemap', ...(ngDevMode ? [{ debugName: "isCells" }] : /* istanbul ignore next */ []));
|
|
256
|
+
/** A heatmap coloured by `colorRanges`: the legend shows and hides ranges. */
|
|
257
|
+
this.byRanges = computed(() => this.kind() === 'heatmap' && !!this.colorRanges()?.length, ...(ngDevMode ? [{ debugName: "byRanges" }] : /* istanbul ignore next */ []));
|
|
258
|
+
this.zoomable = computed(() => (this.zoom() ?? this.toolbar()) && ['bar', 'line', 'area'].includes(this.kind()) && !this.isHorizontal() && !this.sparkline(), ...(ngDevMode ? [{ debugName: "zoomable" }] : /* istanbul ignore next */ []));
|
|
259
|
+
/** Kinds the switcher offers (none: no switcher). */
|
|
260
|
+
this.swapKinds = computed(() => {
|
|
261
|
+
const own = this.swap();
|
|
262
|
+
if (!own)
|
|
263
|
+
return [];
|
|
264
|
+
const { labels, series } = this.source();
|
|
265
|
+
const list = Array.isArray(own) ? own.filter((t) => TYPES.includes(t)) : chartSwapTypes(this.type(), series, labels);
|
|
266
|
+
return list.length > 1 ? list : [];
|
|
267
|
+
}, ...(ngDevMode ? [{ debugName: "swapKinds" }] : /* istanbul ignore next */ []));
|
|
268
|
+
this.kindsInfo = WU_CHART_KINDS;
|
|
269
|
+
/** Looks the picker offers for the kind drawn (none: no picker), and the one drawn. */
|
|
270
|
+
this.lookList = computed(() => (this.looks() ? chartVariants(this.kind()) : []), ...(ngDevMode ? [{ debugName: "lookList" }] : /* istanbul ignore next */ []));
|
|
271
|
+
this.activeLook = computed(() => {
|
|
272
|
+
const list = chartVariants(this.kind());
|
|
273
|
+
const now = this.chosenLook();
|
|
274
|
+
return now && list.includes(now) ? now : list[0];
|
|
275
|
+
}, ...(ngDevMode ? [{ debugName: "activeLook" }] : /* istanbul ignore next */ []));
|
|
276
|
+
this.words = computed(() => (this.language().toLowerCase().startsWith('th') ? WORDS.th : WORDS.en), ...(ngDevMode ? [{ debugName: "words" }] : /* istanbul ignore next */ []));
|
|
277
|
+
this.isHorizontal = computed(() => this.horizontal() || this.opt().indexAxis === 'y', ...(ngDevMode ? [{ debugName: "isHorizontal" }] : /* istanbul ignore next */ []));
|
|
278
|
+
this.isStacked = computed(() => this.stacked() || !!this.opt().scales?.x?.stacked || !!this.opt().scales?.y?.stacked, ...(ngDevMode ? [{ debugName: "isStacked" }] : /* istanbul ignore next */ []));
|
|
279
|
+
this.legendPos = computed(() => {
|
|
280
|
+
const own = this.legend();
|
|
281
|
+
if (own)
|
|
282
|
+
return own;
|
|
283
|
+
if (this.sparkline())
|
|
284
|
+
return 'none';
|
|
285
|
+
// One ring names itself in the middle.
|
|
286
|
+
if (this.kind() === 'radialBar' && this.source().labels.length < 2)
|
|
287
|
+
return 'none';
|
|
288
|
+
const l = this.opt().plugins?.legend;
|
|
289
|
+
if (l?.display === false)
|
|
290
|
+
return 'none';
|
|
291
|
+
if (l?.position === 'top' || l?.position === 'right' || l?.position === 'bottom')
|
|
292
|
+
return l.position;
|
|
293
|
+
if (l?.position === 'left')
|
|
294
|
+
return 'right';
|
|
295
|
+
return this.isRound() && this.kind() !== 'radialBar' ? 'right' : 'bottom';
|
|
296
|
+
}, ...(ngDevMode ? [{ debugName: "legendPos" }] : /* istanbul ignore next */ []));
|
|
297
|
+
this.heading = computed(() => this.title() || (typeof this.opt().plugins?.title?.text === 'string' ? this.opt().plugins.title.text : ''), ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
298
|
+
this.heightCss = computed(() => {
|
|
299
|
+
const h = this.height() ?? this.opt().height;
|
|
300
|
+
if (typeof h === 'number' || (typeof h === 'string' && /^\d+(\.\d+)?$/.test(h)))
|
|
301
|
+
return `${h}px`;
|
|
302
|
+
return h || (this.sparkline() ? '48px' : this.isRound() ? '280px' : '320px');
|
|
303
|
+
}, ...(ngDevMode ? [{ debugName: "heightCss" }] : /* istanbul ignore next */ []));
|
|
304
|
+
this.language = computed(() => this.lang() || this.lang$(), ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
|
|
305
|
+
/** The source, cut to the labels zoomed into. */
|
|
306
|
+
this.view = computed(() => {
|
|
307
|
+
const src = this.source();
|
|
308
|
+
const z = this.zoomable() ? this.zoomed() : null;
|
|
309
|
+
if (!z)
|
|
310
|
+
return src;
|
|
311
|
+
const [a, b] = z;
|
|
312
|
+
return { labels: src.labels.slice(a, b + 1), series: src.series.map((s) => ({ ...s, data: s.data.slice(a, b + 1) })) };
|
|
313
|
+
}, ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
314
|
+
/** What the chart should show now: the source with the legend's hidden series applied. */
|
|
315
|
+
this.target = computed(() => {
|
|
316
|
+
const { labels, series } = this.view();
|
|
317
|
+
const hidden = this.hidden();
|
|
318
|
+
if (this.byRanges() || BY_LABELS.includes(this.kind()))
|
|
319
|
+
return { labels, series, hiddenSlices: [...hidden] };
|
|
320
|
+
if (this.isRound()) {
|
|
321
|
+
const s = series[0];
|
|
322
|
+
const data = s ? s.data.map((v, k) => (hidden.has(k) ? 0 : Number(v) || 0)) : [];
|
|
323
|
+
return { labels, series: s ? [{ ...s, data }] : [], hiddenSlices: [...hidden] };
|
|
324
|
+
}
|
|
325
|
+
return { labels, series: series.map((s, i) => ({ ...s, hidden: !!s.hidden || hidden.has(i) })), hiddenSlices: [] };
|
|
326
|
+
}, ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
|
|
327
|
+
this.palette = computed(() => (this.colors()?.length ? this.colors() : PALETTE), ...(ngDevMode ? [{ debugName: "palette" }] : /* istanbul ignore next */ []));
|
|
328
|
+
/** Everything the drawing takes except the data and its size. */
|
|
329
|
+
this.look = computed(() => {
|
|
330
|
+
const o = this.opt();
|
|
331
|
+
const y = o.scales?.y || o.scales?.x || {};
|
|
332
|
+
return {
|
|
333
|
+
type: this.kind(),
|
|
334
|
+
measure: (t, size) => this.measure(t, size),
|
|
335
|
+
fontSize: this.fontSize(),
|
|
336
|
+
palette: this.palette(),
|
|
337
|
+
horizontal: this.isHorizontal(),
|
|
338
|
+
stacked: this.isStacked(),
|
|
339
|
+
smooth: this.smooth(),
|
|
340
|
+
min: this.min() ?? optionalNumber(y.min),
|
|
341
|
+
max: this.max() ?? optionalNumber(y.max),
|
|
342
|
+
beginAtZero: this.beginAtZero() ?? (typeof y.beginAtZero === 'boolean' ? y.beginAtZero : undefined),
|
|
343
|
+
rightMin: this.rightMin(),
|
|
344
|
+
rightMax: this.rightMax(),
|
|
345
|
+
showValues: this.showValues(),
|
|
346
|
+
points: this.points(),
|
|
347
|
+
grid: this.grid(),
|
|
348
|
+
xTitle: this.xTitle() || undefined,
|
|
349
|
+
yTitle: this.yTitle() || undefined,
|
|
350
|
+
y2Title: this.y2Title() || undefined,
|
|
351
|
+
referenceLines: this.referenceLines() || undefined,
|
|
352
|
+
format: this.format(),
|
|
353
|
+
rightFormat: this.rightFormat() || undefined,
|
|
354
|
+
formatOptions: this.formatOptions(),
|
|
355
|
+
barRadius: this.barRadius(),
|
|
356
|
+
cutout: this.cutout() ?? cutoutOf(o.cutout),
|
|
357
|
+
curve: this.curve() || undefined,
|
|
358
|
+
gradient: this.gradient(),
|
|
359
|
+
sparkline: this.sparkline(),
|
|
360
|
+
startAngle: this.startAngle() ?? optionalNumber(o.rotation),
|
|
361
|
+
// Chart.js: rotation (start) and circumference (how far), in degrees.
|
|
362
|
+
endAngle: this.endAngle() ?? (optionalNumber(o.circumference) !== undefined ? (this.startAngle() ?? optionalNumber(o.rotation) ?? 0) + Number(o.circumference) : undefined),
|
|
363
|
+
annotations: this.shiftedNotes(),
|
|
364
|
+
colorRanges: this.colorRanges() || undefined,
|
|
365
|
+
variant: this.chosenLook() || undefined,
|
|
366
|
+
bins: this.bins(),
|
|
367
|
+
focus: this.focus() || undefined,
|
|
368
|
+
};
|
|
369
|
+
}, ...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
|
|
370
|
+
/** Annotations that name a label by its index, moved with the zoom. */
|
|
371
|
+
this.shiftedNotes = computed(() => {
|
|
372
|
+
const a = this.annotations();
|
|
373
|
+
const z = this.zoomable() ? this.zoomed() : null;
|
|
374
|
+
if (!a || !z)
|
|
375
|
+
return a || undefined;
|
|
376
|
+
const at = (v) => (typeof v === 'number' ? (v - z[0]) : v);
|
|
377
|
+
return { y: a.y, x: a.x?.map((n) => ({ ...n, at: at(n.at), to: at(n.to) })), points: a.points?.map((n) => ({ ...n, at: at(n.at) })) };
|
|
378
|
+
}, ...(ngDevMode ? [{ debugName: "shiftedNotes" }] : /* istanbul ignore next */ []));
|
|
379
|
+
/** The drawing at the end of the animation: its axes stay put while the marks move. */
|
|
380
|
+
this.finalModel = computed(() => {
|
|
381
|
+
const { width, height } = this.size();
|
|
382
|
+
if (!width || !height)
|
|
383
|
+
return null;
|
|
384
|
+
const f = this.target();
|
|
385
|
+
return chartModel({ ...this.look(), labels: f.labels, series: f.series, hiddenSlices: f.hiddenSlices, width, height });
|
|
386
|
+
}, ...(ngDevMode ? [{ debugName: "finalModel" }] : /* istanbul ignore next */ []));
|
|
387
|
+
this.model = computed(() => {
|
|
388
|
+
const frame = this.frame();
|
|
389
|
+
const { width, height } = this.size();
|
|
390
|
+
if (!frame || !width || !height)
|
|
391
|
+
return null;
|
|
392
|
+
if (!this.animating() && frame === this.target())
|
|
393
|
+
return this.finalModel();
|
|
394
|
+
// Growing in: the final axes from the start. Changing: the axes slide from the old to the new.
|
|
395
|
+
const t = this.progress();
|
|
396
|
+
const end = this.finalModel()?.scales;
|
|
397
|
+
const from = this.scalesFrom();
|
|
398
|
+
const scales = end ? { left: slide(from?.left, end.left, t), right: slide(from?.right, end.right, t) } : undefined;
|
|
399
|
+
return chartModel({
|
|
400
|
+
...this.look(),
|
|
401
|
+
labels: frame.labels,
|
|
402
|
+
series: frame.series,
|
|
403
|
+
hiddenSlices: frame.hiddenSlices,
|
|
404
|
+
width,
|
|
405
|
+
height,
|
|
406
|
+
scales,
|
|
407
|
+
sweep: this.entering() ? t : 1,
|
|
408
|
+
});
|
|
409
|
+
}, ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
410
|
+
this.formatOptions = computed(() => ({
|
|
411
|
+
lang: this.language(),
|
|
412
|
+
currency: this.currency(),
|
|
413
|
+
decimals: this.decimals(),
|
|
414
|
+
prefix: this.prefix() || undefined,
|
|
415
|
+
suffix: this.suffix() || undefined,
|
|
416
|
+
}), ...(ngDevMode ? [{ debugName: "formatOptions" }] : /* istanbul ignore next */ []));
|
|
417
|
+
// ---------- what the template reads ----------
|
|
418
|
+
/** Legend items, with the hidden state the legend set (slices shrink before they go). */
|
|
419
|
+
this.legendItems = computed(() => {
|
|
420
|
+
const m = this.model();
|
|
421
|
+
const hidden = this.hidden();
|
|
422
|
+
return (m?.legend || []).map((item) => ({ ...item, hidden: item.hidden || hidden.has(item.index) }));
|
|
423
|
+
}, ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
|
|
424
|
+
this.classes = computed(() => [
|
|
425
|
+
'wu-chart',
|
|
426
|
+
`wu-chart-type-${this.kind()}`,
|
|
427
|
+
`wu-chart-legend-${this.legendPos()}`,
|
|
428
|
+
this.sparkline() ? 'wu-chart-sparkline' : '',
|
|
429
|
+
this.focusSeries() !== null ? 'wu-chart-focusing' : '',
|
|
430
|
+
this.entering() ? 'wu-chart-entering' : '',
|
|
431
|
+
this.styleClass() || '',
|
|
432
|
+
]
|
|
433
|
+
.filter(Boolean)
|
|
434
|
+
.join(' '), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
435
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
436
|
+
this.rootStyle = computed(() => {
|
|
437
|
+
const s = this.style();
|
|
438
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
439
|
+
return s && typeof s === 'object' ? s : null;
|
|
440
|
+
}, ...(ngDevMode ? [{ debugName: "rootStyle" }] : /* istanbul ignore next */ []));
|
|
441
|
+
this.empty = computed(() => {
|
|
442
|
+
const m = this.model();
|
|
443
|
+
return !!m && m.empty && !this.animating();
|
|
444
|
+
}, ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
445
|
+
this.emptyText = computed(() => this.emptyMessage() || this.config.translation.emptyMessage, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
446
|
+
this.animating = signal(false, ...(ngDevMode ? [{ debugName: "animating" }] : /* istanbul ignore next */ []));
|
|
447
|
+
/** How far the animation is, 0–1 (eased). */
|
|
448
|
+
this.progress = signal(1, ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
449
|
+
/** The axes shown when the animation began (null: growing in). */
|
|
450
|
+
this.scalesFrom = signal(null, ...(ngDevMode ? [{ debugName: "scalesFrom" }] : /* istanbul ignore next */ []));
|
|
451
|
+
/** Growing in the first time: the axes are final, pies fan out, values wait until the end. */
|
|
452
|
+
this.entering = signal(false, ...(ngDevMode ? [{ debugName: "entering" }] : /* istanbul ignore next */ []));
|
|
453
|
+
/** The doughnut's middle text (radial bars: the ring under the pointer, else the first). */
|
|
454
|
+
this.center = computed(() => {
|
|
455
|
+
const m = this.model();
|
|
456
|
+
if (!m?.center || m.empty)
|
|
457
|
+
return null;
|
|
458
|
+
const own = this.centerValue();
|
|
459
|
+
if (m.centerText) {
|
|
460
|
+
const band = this.hoverBand();
|
|
461
|
+
// The node pointed at, else the node drilled into (or the total).
|
|
462
|
+
const value = band ? formatChartValue(band.value ?? 0, this.format(), this.formatOptions()) : own !== undefined && own !== null ? String(own) : m.centerText.value;
|
|
463
|
+
const label = band ? band.label ?? '' : this.centerLabel() ?? m.centerText.label;
|
|
464
|
+
return { ...m.center, value, label, back: !!this.focus() && !band };
|
|
465
|
+
}
|
|
466
|
+
if (this.kind() === 'radialBar') {
|
|
467
|
+
const ring = m.rings.find((r) => r.index === this.hovered()) || m.rings[0];
|
|
468
|
+
if (!ring)
|
|
469
|
+
return null;
|
|
470
|
+
const value = own !== undefined && own !== null ? String(own) : formatChartValue(ring.percent, 'percent', { lang: this.language() });
|
|
471
|
+
return { ...m.center, value, label: this.centerLabel() ?? ring.label };
|
|
472
|
+
}
|
|
473
|
+
const total = this.target().series[0] ? this.target().series[0].data.reduce((sum, v) => sum + (Number(v) || 0), 0) : 0;
|
|
474
|
+
const value = own !== undefined && own !== null ? String(own) : formatChartValue(total, this.format(), this.formatOptions());
|
|
475
|
+
return { ...m.center, value, label: this.centerLabel() ?? this.config.translation.total };
|
|
476
|
+
}, ...(ngDevMode ? [{ debugName: "center" }] : /* istanbul ignore next */ []));
|
|
477
|
+
/** The tooltip: title, a row per series (or the slice) and where it goes. */
|
|
478
|
+
this.tip = computed(() => {
|
|
479
|
+
const m = this.model();
|
|
480
|
+
const i = this.hovered();
|
|
481
|
+
const at = this.pointer();
|
|
482
|
+
if (m?.generic) {
|
|
483
|
+
const band = this.hoverBand();
|
|
484
|
+
if (!band?.tip || !this.tooltip() || m.empty)
|
|
485
|
+
return null;
|
|
486
|
+
const x = at ? at.x : band.cx;
|
|
487
|
+
const y = at ? at.y : band.cy + band.h / 2;
|
|
488
|
+
return { title: band.tip.title, rows: band.tip.rows, x, y, flip: x > m.width / 2 };
|
|
489
|
+
}
|
|
490
|
+
if (!m || i === null || !this.tooltip() || m.empty)
|
|
491
|
+
return null;
|
|
492
|
+
const { labels, series } = this.target();
|
|
493
|
+
const fmt = (v, right) => formatChartValue(v, right ? this.rightFormat() || this.format() : this.format(), this.formatOptions());
|
|
494
|
+
let title = labels[i] ?? '';
|
|
495
|
+
const rows = [];
|
|
496
|
+
if (this.kind() === 'radialBar') {
|
|
497
|
+
const ring = m.rings.find((r) => r.index === i);
|
|
498
|
+
if (!ring)
|
|
499
|
+
return null;
|
|
500
|
+
title = '';
|
|
501
|
+
rows.push({ color: ring.color, name: ring.label, value: fmt(ring.value, false) });
|
|
502
|
+
}
|
|
503
|
+
else if (this.isRound()) {
|
|
504
|
+
const slice = m.slices.find((s) => s.index === i);
|
|
505
|
+
if (!slice)
|
|
506
|
+
return null;
|
|
507
|
+
rows.push({ color: slice.color, name: formatChartValue(slice.percent, 'percent', { lang: this.language() }), value: fmt(slice.value, false) });
|
|
508
|
+
}
|
|
509
|
+
else if (this.isCells()) {
|
|
510
|
+
const cell = m.cells.find((c) => c.index === i && c.series === this.hoveredSeries());
|
|
511
|
+
if (!cell)
|
|
512
|
+
return null;
|
|
513
|
+
const name = series[cell.series]?.name ?? '';
|
|
514
|
+
title = this.kind() === 'heatmap' || series.length > 1 ? name : '';
|
|
515
|
+
rows.push({ color: cell.color, name: cell.label, value: fmt(cell.value, false) });
|
|
516
|
+
}
|
|
517
|
+
else if (this.kind() === 'scatter') {
|
|
518
|
+
const dot = m.dots.find((d) => d.index === i && this.hoveredSeries() === d.series) || m.dots.find((d) => d.index === i);
|
|
519
|
+
if (!dot)
|
|
520
|
+
return null;
|
|
521
|
+
title = series[dot.series]?.name ?? '';
|
|
522
|
+
rows.push({ color: dot.color, name: 'x', value: fmt(dot.x ?? 0, false) }, { color: dot.color, name: 'y', value: fmt(dot.value, false) });
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
series.forEach((s, k) => {
|
|
526
|
+
if (s.hidden)
|
|
527
|
+
return;
|
|
528
|
+
const v = s.data[i];
|
|
529
|
+
if (typeof v !== 'number' || !Number.isFinite(v))
|
|
530
|
+
return;
|
|
531
|
+
rows.push({ color: m.legend[k]?.color || this.palette()[k % this.palette().length], name: s.name ?? '', value: fmt(v, s.axis === 'right') });
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
if (!rows.length)
|
|
535
|
+
return null;
|
|
536
|
+
const band = m.hover.find((h) => h.index === i && (h.series === undefined || h.series === this.hoveredSeries()));
|
|
537
|
+
const x = at ? at.x : band?.cx ?? 0;
|
|
538
|
+
const y = at ? at.y : band ? band.cy + (this.isRound() ? 0 : band.h / 2) : 0;
|
|
539
|
+
return { title, rows, x, y, flip: x > m.width / 2 };
|
|
540
|
+
}, ...(ngDevMode ? [{ debugName: "tip" }] : /* istanbul ignore next */ []));
|
|
541
|
+
/** The series of the hovered scatter dot, heatmap cell or treemap tile. */
|
|
542
|
+
this.hoveredSeries = signal(null, ...(ngDevMode ? [{ debugName: "hoveredSeries" }] : /* istanbul ignore next */ []));
|
|
543
|
+
/** The newer kinds: the hover target pointed at. */
|
|
544
|
+
this.hoverBand = computed(() => {
|
|
545
|
+
const m = this.model();
|
|
546
|
+
const key = this.hoverKey();
|
|
547
|
+
return m?.generic && key !== null ? m.hover.find((h) => h.key === key) ?? null : null;
|
|
548
|
+
}, ...(ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []));
|
|
549
|
+
/** The vertical (or horizontal) line through the hovered category. */
|
|
550
|
+
this.crosshair = computed(() => {
|
|
551
|
+
const m = this.model();
|
|
552
|
+
const i = this.hovered();
|
|
553
|
+
if (m?.generic) {
|
|
554
|
+
const band = this.hoverBand();
|
|
555
|
+
return band?.cross ? { x1: band.cx, y1: m.plot.y, x2: band.cx, y2: m.plot.y + m.plot.h } : null;
|
|
556
|
+
}
|
|
557
|
+
if (!m || i === null || this.isRound() || this.isCells() || this.kind() === 'radar' || this.kind() === 'scatter' || m.bars.length)
|
|
558
|
+
return null;
|
|
559
|
+
const band = m.hover.find((h) => h.index === i);
|
|
560
|
+
return band ? { x1: band.cx, y1: m.plot.y, x2: band.cx, y2: m.plot.y + m.plot.h } : null;
|
|
561
|
+
}, ...(ngDevMode ? [{ debugName: "crosshair" }] : /* istanbul ignore next */ []));
|
|
562
|
+
/** The box being dragged across to zoom. */
|
|
563
|
+
this.selection = computed(() => {
|
|
564
|
+
const m = this.model();
|
|
565
|
+
const sel = this.selecting();
|
|
566
|
+
if (!m || !sel)
|
|
567
|
+
return null;
|
|
568
|
+
const [a, b] = [Math.min(sel.from, sel.to), Math.max(sel.from, sel.to)];
|
|
569
|
+
const first = m.hover.find((h) => h.index === a);
|
|
570
|
+
const last = m.hover.find((h) => h.index === b);
|
|
571
|
+
return first && last ? { x: first.x, y: m.plot.y, w: last.x + last.w - first.x, h: m.plot.h } : null;
|
|
572
|
+
}, ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
|
|
573
|
+
/** Rows of the screen-reader table. */
|
|
574
|
+
this.table = computed(() => {
|
|
575
|
+
const { labels, series } = this.source();
|
|
576
|
+
const fmt = (v) => (typeof v === 'number' ? formatChartValue(v, this.format(), this.formatOptions()) : '');
|
|
577
|
+
if (this.kind() === 'scatter')
|
|
578
|
+
return { head: ['x', 'y'], rows: series.flatMap((s) => s.data.map((p) => [s.name ?? '', fmt(p?.x), fmt(p?.y)])) };
|
|
579
|
+
const count = Math.max(labels.length, ...series.map((s) => s.data.length), 0);
|
|
580
|
+
return {
|
|
581
|
+
head: series.map((s) => s.name ?? ''),
|
|
582
|
+
rows: Array.from({ length: count }, (_, k) => [labels[k] ?? '', ...series.map((s) => fmt(s.data[k]))]),
|
|
583
|
+
};
|
|
584
|
+
}, ...(ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []));
|
|
585
|
+
this.summary = computed(() => {
|
|
586
|
+
const own = this.ariaLabel() || this.heading();
|
|
587
|
+
const names = this.source().series.map((s) => s.name).filter(Boolean);
|
|
588
|
+
return [own, names.join(', ')].filter(Boolean).join(': ');
|
|
589
|
+
}, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
|
|
590
|
+
_assertSupportedAngular(inject(_WU_SKIP_VERSION_CHECK, { optional: true }));
|
|
591
|
+
const destroy = inject(DestroyRef);
|
|
592
|
+
const sub = this.config.translationChange.subscribe((t) => this.lang$.set(t.code || 'th'));
|
|
593
|
+
destroy.onDestroy(() => {
|
|
594
|
+
sub.unsubscribe();
|
|
595
|
+
this.i18n.unsubscribe();
|
|
596
|
+
if (this.raf)
|
|
597
|
+
cancelAnimationFrame(this.raf);
|
|
598
|
+
});
|
|
599
|
+
// Watch the drawing area's size.
|
|
600
|
+
afterNextRender(() => {
|
|
601
|
+
const el = this.body()?.nativeElement;
|
|
602
|
+
if (!el)
|
|
603
|
+
return;
|
|
604
|
+
const read = () => {
|
|
605
|
+
this.fontFamily = getComputedStyle(this.svgRef()?.nativeElement || el).fontFamily;
|
|
606
|
+
this.size.set({ width: Math.floor(el.clientWidth), height: Math.floor(el.clientHeight) });
|
|
607
|
+
};
|
|
608
|
+
read();
|
|
609
|
+
const doc = this.host.ownerDocument;
|
|
610
|
+
// Web fonts change text widths once they arrive.
|
|
611
|
+
doc.fonts?.ready?.then(() => read()).catch(() => undefined);
|
|
612
|
+
if (typeof ResizeObserver === 'undefined')
|
|
613
|
+
return;
|
|
614
|
+
const observer = new ResizeObserver(() => this.zone.run(read));
|
|
615
|
+
observer.observe(el);
|
|
616
|
+
destroy.onDestroy(() => observer.disconnect());
|
|
617
|
+
});
|
|
618
|
+
// Join the group, to show the tooltip together.
|
|
619
|
+
effect((onCleanup) => {
|
|
620
|
+
const name = this.group();
|
|
621
|
+
if (!name)
|
|
622
|
+
return;
|
|
623
|
+
let set = GROUPS.get(name);
|
|
624
|
+
if (!set)
|
|
625
|
+
GROUPS.set(name, (set = new Set()));
|
|
626
|
+
set.add(this);
|
|
627
|
+
onCleanup(() => {
|
|
628
|
+
set.delete(this);
|
|
629
|
+
if (!set.size)
|
|
630
|
+
GROUPS.delete(name);
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
// The app changed [type] or [variant]: move over the way the switcher does.
|
|
634
|
+
let seen = null;
|
|
635
|
+
effect(() => {
|
|
636
|
+
const now = [this.type(), this.variant()];
|
|
637
|
+
const before = seen;
|
|
638
|
+
seen = now;
|
|
639
|
+
if (!before || (before[0] === now[0] && before[1] === now[1]))
|
|
640
|
+
return;
|
|
641
|
+
untracked(() => this.transition(() => undefined, before[0] !== now[0]));
|
|
642
|
+
});
|
|
643
|
+
// Move to new data (or grow in the first time) over a few frames.
|
|
644
|
+
effect(() => {
|
|
645
|
+
const target = this.target();
|
|
646
|
+
if (target === this.lastTarget)
|
|
647
|
+
return;
|
|
648
|
+
untracked(() => this.animateTo(target));
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
lookName(look) {
|
|
652
|
+
const name = WU_CHART_LOOKS[look];
|
|
653
|
+
return name ? (this.language().toLowerCase().startsWith('th') ? name.th : name.en) : look;
|
|
654
|
+
}
|
|
655
|
+
dim(series) {
|
|
656
|
+
const f = this.focusSeries();
|
|
657
|
+
return f !== null && f !== series;
|
|
658
|
+
}
|
|
659
|
+
dimSlice(index) {
|
|
660
|
+
const f = this.focusSeries();
|
|
661
|
+
const h = this.hovered();
|
|
662
|
+
return (f !== null && f !== index) || (f === null && h !== null && h !== index);
|
|
663
|
+
}
|
|
664
|
+
dotR(d) {
|
|
665
|
+
return this.hovered() === d.index ? Math.max(d.r, 3.5) + 1.5 : d.r;
|
|
666
|
+
}
|
|
667
|
+
dy(t) {
|
|
668
|
+
return t.baseline === 'hanging' ? '0.9em' : t.baseline === 'middle' ? '0.35em' : null;
|
|
669
|
+
}
|
|
670
|
+
rotate(t) {
|
|
671
|
+
return t.rotate ? `rotate(${t.rotate} ${t.x} ${t.y})` : null;
|
|
672
|
+
}
|
|
673
|
+
sliceShift(s) {
|
|
674
|
+
return this.hovered() === s.index ? `translate(${s.dx}px, ${s.dy}px)` : null;
|
|
675
|
+
}
|
|
676
|
+
// ---------- pointer and keyboard ----------
|
|
677
|
+
move(event) {
|
|
678
|
+
const m = this.model();
|
|
679
|
+
const svg = this.svgRef()?.nativeElement;
|
|
680
|
+
if (!m || !svg || m.empty)
|
|
681
|
+
return;
|
|
682
|
+
const r = svg.getBoundingClientRect();
|
|
683
|
+
const x = event.clientX - r.left;
|
|
684
|
+
const y = event.clientY - r.top;
|
|
685
|
+
this.pointer.set({ x, y });
|
|
686
|
+
if (m.generic) {
|
|
687
|
+
this.hoverKey.set(chartHit(m, x, y)?.key ?? null);
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (this.isRound()) {
|
|
691
|
+
// Slices and rings light up as the pointer enters them; empty space around them lets go.
|
|
692
|
+
if (!event.target?.closest?.('.wu-chart-slice, .wu-chart-ring, .wu-chart-track'))
|
|
693
|
+
this.hovered.set(null);
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
if (this.isCells()) {
|
|
697
|
+
const cell = m.hover.find((h) => x >= h.x && x <= h.x + h.w && y >= h.y && y <= h.y + h.h);
|
|
698
|
+
this.hoveredSeries.set(cell?.series ?? null);
|
|
699
|
+
this.hovered.set(cell ? cell.index : null);
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
if (this.kind() === 'scatter') {
|
|
703
|
+
let best = null;
|
|
704
|
+
for (const d of m.dots) {
|
|
705
|
+
const dist = Math.hypot(d.cx - x, d.cy - y) - d.r;
|
|
706
|
+
if (dist < 16 && (!best || dist < best.d))
|
|
707
|
+
best = { index: d.index, series: d.series, d: dist };
|
|
708
|
+
}
|
|
709
|
+
this.hoveredSeries.set(best?.series ?? null);
|
|
710
|
+
this.hovered.set(best?.index ?? null);
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
if (this.kind() === 'radar') {
|
|
714
|
+
const cx = m.plot.x + m.plot.w / 2;
|
|
715
|
+
const cy = m.plot.y + m.plot.h / 2;
|
|
716
|
+
const count = m.hover.length;
|
|
717
|
+
const angle = (Math.atan2(x - cx, cy - y) + Math.PI * 2) % (Math.PI * 2);
|
|
718
|
+
this.hovered.set(count ? Math.round(angle / ((Math.PI * 2) / count)) % count : null);
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
const sel = this.selecting();
|
|
722
|
+
if (sel) {
|
|
723
|
+
const k = m.hover.find((h) => x >= h.x && x <= h.x + h.w)?.index;
|
|
724
|
+
if (k !== undefined && k !== sel.to) {
|
|
725
|
+
this.selecting.set({ from: sel.from, to: k });
|
|
726
|
+
this.dragged = true;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
const band = m.hover.find((h) => x >= h.x && x <= h.x + h.w && y >= h.y && y <= h.y + h.h);
|
|
730
|
+
this.hovered.set(band ? band.index : null);
|
|
731
|
+
this.share(band ? band.index : null);
|
|
732
|
+
}
|
|
733
|
+
hoverSlice(index) {
|
|
734
|
+
this.hovered.set(index);
|
|
735
|
+
}
|
|
736
|
+
leave() {
|
|
737
|
+
this.hoverKey.set(null);
|
|
738
|
+
this.hovered.set(null);
|
|
739
|
+
this.pointer.set(null);
|
|
740
|
+
this.hoveredSeries.set(null);
|
|
741
|
+
this.share(null);
|
|
742
|
+
}
|
|
743
|
+
/** Pointer down: start dragging across labels to zoom. */
|
|
744
|
+
down(event) {
|
|
745
|
+
const m = this.model();
|
|
746
|
+
const svg = this.svgRef()?.nativeElement;
|
|
747
|
+
if (!m || !svg || !this.zoomable() || event.button !== 0 || m.empty)
|
|
748
|
+
return;
|
|
749
|
+
const x = event.clientX - svg.getBoundingClientRect().left;
|
|
750
|
+
const k = m.hover.find((h) => x >= h.x && x <= h.x + h.w)?.index;
|
|
751
|
+
if (k === undefined)
|
|
752
|
+
return;
|
|
753
|
+
this.dragged = false;
|
|
754
|
+
this.selecting.set({ from: k, to: k });
|
|
755
|
+
svg.setPointerCapture?.(event.pointerId);
|
|
756
|
+
}
|
|
757
|
+
/** Pointer up: zoom into the labels dragged across. */
|
|
758
|
+
up() {
|
|
759
|
+
const sel = this.selecting();
|
|
760
|
+
this.selecting.set(null);
|
|
761
|
+
if (!sel || sel.from === sel.to)
|
|
762
|
+
return;
|
|
763
|
+
const offset = this.zoomed()?.[0] ?? 0;
|
|
764
|
+
this.setZoom(offset + Math.min(sel.from, sel.to), offset + Math.max(sel.from, sel.to));
|
|
765
|
+
}
|
|
766
|
+
click(event) {
|
|
767
|
+
if (this.dragged) {
|
|
768
|
+
this.dragged = false;
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
const m = this.model();
|
|
772
|
+
if (m?.generic) {
|
|
773
|
+
this.pick(event);
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
const target = event.target?.closest?.('[data-series]');
|
|
777
|
+
const series = target ? Number(target.getAttribute('data-series')) : this.firstShownSeries();
|
|
778
|
+
const index = target ? Number(target.getAttribute('data-index')) : this.hovered();
|
|
779
|
+
if (index === null || index === undefined || !Number.isFinite(index))
|
|
780
|
+
return;
|
|
781
|
+
this.emitClick(series, index, event);
|
|
782
|
+
}
|
|
783
|
+
/** ← → (↑ ↓ across) move between labels, Home / End, Enter or Space picks, Escape leaves. */
|
|
784
|
+
key(event) {
|
|
785
|
+
const m = this.model();
|
|
786
|
+
if (!m || m.empty)
|
|
787
|
+
return;
|
|
788
|
+
if (m.generic) {
|
|
789
|
+
this.keyGeneric(event, m);
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
// The stops the keys go through: labels, slices, rings, dots or cells.
|
|
793
|
+
const stops = this.isRound()
|
|
794
|
+
? (m.slices.length ? m.slices : m.rings).map((s) => ({ index: s.index }))
|
|
795
|
+
: this.kind() === 'scatter'
|
|
796
|
+
? m.dots.map((d) => ({ index: d.index, series: d.series }))
|
|
797
|
+
: m.hover.map((h) => ({ index: h.index, series: h.series }));
|
|
798
|
+
if (!stops.length)
|
|
799
|
+
return;
|
|
800
|
+
const now = this.hovered();
|
|
801
|
+
const at = now === null ? -1 : stops.findIndex((s) => s.index === now && (s.series === undefined || s.series === this.hoveredSeries()));
|
|
802
|
+
let next = null;
|
|
803
|
+
const back = this.isHorizontal() ? 'ArrowUp' : 'ArrowLeft';
|
|
804
|
+
const fwd = this.isHorizontal() ? 'ArrowDown' : 'ArrowRight';
|
|
805
|
+
if (event.key === fwd || (event.key === 'ArrowRight' && this.isHorizontal()) || (event.key === 'ArrowDown' && !this.isHorizontal()))
|
|
806
|
+
next = stops[Math.min(stops.length - 1, at + 1)];
|
|
807
|
+
else if (event.key === back || (event.key === 'ArrowLeft' && this.isHorizontal()) || (event.key === 'ArrowUp' && !this.isHorizontal()))
|
|
808
|
+
next = stops[Math.max(0, at <= 0 ? 0 : at - 1)];
|
|
809
|
+
else if (event.key === 'Home')
|
|
810
|
+
next = stops[0];
|
|
811
|
+
else if (event.key === 'End')
|
|
812
|
+
next = stops[stops.length - 1];
|
|
813
|
+
else if ((event.key === 'Enter' || event.key === ' ') && now !== null) {
|
|
814
|
+
event.preventDefault();
|
|
815
|
+
this.emitClick(this.isCells() ? this.hoveredSeries() ?? 0 : this.firstShownSeries(), now, event);
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
else if (event.key === 'Escape') {
|
|
819
|
+
this.leave();
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
else
|
|
823
|
+
return;
|
|
824
|
+
event.preventDefault();
|
|
825
|
+
this.pointer.set(null);
|
|
826
|
+
if (next.series !== undefined)
|
|
827
|
+
this.hoveredSeries.set(next.series);
|
|
828
|
+
this.hovered.set(next.index);
|
|
829
|
+
this.share(next.index);
|
|
830
|
+
const tip = this.tip();
|
|
831
|
+
this.liveText.set(tip ? [tip.title, ...tip.rows.map((r) => `${r.name} ${r.value}`)].filter(Boolean).join(', ') : '');
|
|
832
|
+
}
|
|
833
|
+
/** Legend click: show or hide a series (pie: a slice). */
|
|
834
|
+
toggle(index) {
|
|
835
|
+
const next = new Set(this.hidden());
|
|
836
|
+
if (next.has(index))
|
|
837
|
+
next.delete(index);
|
|
838
|
+
else
|
|
839
|
+
next.add(index);
|
|
840
|
+
this.hidden.set(next);
|
|
841
|
+
const item = this.model()?.legend.find((l) => l.index === index);
|
|
842
|
+
this.seriesToggle.emit({ index, name: item?.name ?? '', hidden: next.has(index) });
|
|
843
|
+
}
|
|
844
|
+
/** The newer kinds: ← → ↑ ↓ go target by target, Enter picks (a sunburst goes in), Escape leaves (and comes back out). */
|
|
845
|
+
keyGeneric(event, m) {
|
|
846
|
+
const keys = [...new Set(m.hover.map((h) => h.key).filter((k) => !!k))];
|
|
847
|
+
if (!keys.length)
|
|
848
|
+
return;
|
|
849
|
+
const at = keys.indexOf(this.hoverKey() ?? '');
|
|
850
|
+
let next = null;
|
|
851
|
+
if (event.key === 'ArrowRight' || event.key === 'ArrowDown')
|
|
852
|
+
next = keys[Math.min(keys.length - 1, at + 1)];
|
|
853
|
+
else if (event.key === 'ArrowLeft' || event.key === 'ArrowUp')
|
|
854
|
+
next = keys[Math.max(0, at - 1)];
|
|
855
|
+
else if (event.key === 'Home')
|
|
856
|
+
next = keys[0];
|
|
857
|
+
else if (event.key === 'End')
|
|
858
|
+
next = keys[keys.length - 1];
|
|
859
|
+
else if ((event.key === 'Enter' || event.key === ' ') && at >= 0) {
|
|
860
|
+
event.preventDefault();
|
|
861
|
+
this.pick(event);
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
else if (event.key === 'Escape') {
|
|
865
|
+
if (this.focus())
|
|
866
|
+
this.drillOut();
|
|
867
|
+
this.leave();
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
else
|
|
871
|
+
return;
|
|
872
|
+
event.preventDefault();
|
|
873
|
+
this.pointer.set(null);
|
|
874
|
+
this.hoverKey.set(next);
|
|
875
|
+
const tip = this.tip();
|
|
876
|
+
this.liveText.set(tip ? [tip.title, ...tip.rows.map((r) => `${r.name} ${r.value}`)].filter(Boolean).join(', ') : '');
|
|
877
|
+
}
|
|
878
|
+
/** A click (or Enter) on a newer kind: a sunburst node with children goes in, the middle comes back out; else `(pointClick)`. */
|
|
879
|
+
pick(event) {
|
|
880
|
+
const m = this.model();
|
|
881
|
+
const band = this.hoverBand();
|
|
882
|
+
const at = this.pointer();
|
|
883
|
+
if (m?.center && m.centerText && at && !band && Math.hypot(at.x - m.center.x, at.y - m.center.y) <= m.center.r) {
|
|
884
|
+
this.drillOut();
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
if (!band)
|
|
888
|
+
return;
|
|
889
|
+
if (band.drill && band.key) {
|
|
890
|
+
this.drillTo(band.key);
|
|
891
|
+
this.liveText.set(band.label ?? '');
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
this.pointClick.emit({ series: band.series ?? 0, seriesName: '', index: band.index, label: band.label ?? band.tip?.title ?? '', value: band.value ?? NaN, originalEvent: event });
|
|
895
|
+
}
|
|
896
|
+
/** Sunburst: one level back out. */
|
|
897
|
+
drillOut() {
|
|
898
|
+
const path = (this.focus() || '').split('/').filter(Boolean);
|
|
899
|
+
path.pop();
|
|
900
|
+
this.drillTo(path.length ? path.join('/') : null);
|
|
901
|
+
}
|
|
902
|
+
/** Sunburst: show `key` in the middle, its rings fanning out again. */
|
|
903
|
+
drillTo(key) {
|
|
904
|
+
this.hoverKey.set(null);
|
|
905
|
+
this.focus.set(key);
|
|
906
|
+
this.frame.set(null);
|
|
907
|
+
this.animateTo(this.target());
|
|
908
|
+
}
|
|
909
|
+
/** Shape classes: its own, how it comes in, and lit or faded by the pointer. */
|
|
910
|
+
shapeClass(s, dimOthers) {
|
|
911
|
+
const key = this.hoverKey();
|
|
912
|
+
const lit = !!key && !!s.hover && (key === s.hover || key.startsWith(s.hover + '/'));
|
|
913
|
+
return [
|
|
914
|
+
'wu-chart-shape',
|
|
915
|
+
s.className || '',
|
|
916
|
+
s.enter ? `wu-chart-in-${s.enter}` : '',
|
|
917
|
+
s.dashed ? 'wu-chart-dashed' : '',
|
|
918
|
+
lit ? 'wu-chart-lit' : '',
|
|
919
|
+
dimOthers && key && s.hover && !lit ? 'wu-chart-dim' : '',
|
|
920
|
+
]
|
|
921
|
+
.filter(Boolean)
|
|
922
|
+
.join(' ');
|
|
923
|
+
}
|
|
924
|
+
/** The type switcher: draw the same data as another kind, cross-fading from the old drawing. */
|
|
925
|
+
setKind(next) {
|
|
926
|
+
if (next === this.kind())
|
|
927
|
+
return;
|
|
928
|
+
this.transition(() => {
|
|
929
|
+
this.kind.set(next);
|
|
930
|
+
this.typeChange.emit(next);
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
/** The look picker: draw the same kind another way, cross-fading. */
|
|
934
|
+
setLook(next) {
|
|
935
|
+
if (next === this.activeLook())
|
|
936
|
+
return;
|
|
937
|
+
this.transition(() => {
|
|
938
|
+
this.chosenLook.set(next);
|
|
939
|
+
this.variantChange.emit(next);
|
|
940
|
+
}, false);
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* A new kind or look: the old drawing stays on top a moment, fading out, while the new one comes in under it as the
|
|
944
|
+
* first time. `fresh` also forgets what the legend hid, the zoom and a sunburst's drill (they belong to the old kind).
|
|
945
|
+
*/
|
|
946
|
+
transition(apply, fresh = true) {
|
|
947
|
+
const svg = this.svgRef()?.nativeElement;
|
|
948
|
+
const body = this.body()?.nativeElement;
|
|
949
|
+
const motion = this.browser && this.animate() && !this.host.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
950
|
+
if (motion && svg && body) {
|
|
951
|
+
// The old drawing stays on top a moment, fading out, while the new one comes in under it.
|
|
952
|
+
const ghost = svg.cloneNode(true);
|
|
953
|
+
ghost.removeAttribute('tabindex');
|
|
954
|
+
ghost.removeAttribute('role');
|
|
955
|
+
ghost.removeAttribute('aria-label');
|
|
956
|
+
ghost.removeAttribute('aria-labelledby');
|
|
957
|
+
ghost.setAttribute('aria-hidden', 'true');
|
|
958
|
+
ghost.classList.add('wu-chart-ghost');
|
|
959
|
+
body.appendChild(ghost);
|
|
960
|
+
setTimeout(() => ghost.remove(), GHOST_MS);
|
|
961
|
+
}
|
|
962
|
+
this.leave();
|
|
963
|
+
if (fresh) {
|
|
964
|
+
this.hidden.set(new Set());
|
|
965
|
+
this.focus.set(null);
|
|
966
|
+
this.zoomed.set(null);
|
|
967
|
+
}
|
|
968
|
+
apply();
|
|
969
|
+
// Come in as the first time.
|
|
970
|
+
this.frame.set(null);
|
|
971
|
+
this.animateTo(this.target());
|
|
972
|
+
}
|
|
973
|
+
// ---------- toolbar ----------
|
|
974
|
+
zoomIn() {
|
|
975
|
+
const [a, b] = this.zoomed() || [0, this.labelCount() - 1];
|
|
976
|
+
const cut = Math.max(1, Math.floor((b - a) / 4));
|
|
977
|
+
if (b - cut > a + cut)
|
|
978
|
+
this.setZoom(a + cut, b - cut);
|
|
979
|
+
}
|
|
980
|
+
zoomOut() {
|
|
981
|
+
const z = this.zoomed();
|
|
982
|
+
if (!z)
|
|
983
|
+
return;
|
|
984
|
+
const grow = Math.max(1, Math.ceil((z[1] - z[0]) / 2));
|
|
985
|
+
this.setZoom(z[0] - grow, z[1] + grow);
|
|
986
|
+
}
|
|
987
|
+
resetZoom() {
|
|
988
|
+
if (this.zoomed())
|
|
989
|
+
this.setZoom(0, this.labelCount() - 1);
|
|
990
|
+
}
|
|
991
|
+
/** The toolbar's download menu: save as PNG, SVG or CSV. */
|
|
992
|
+
save(format) {
|
|
993
|
+
this.menu.set(false);
|
|
994
|
+
void this.download(this.fileName() || 'chart', format);
|
|
995
|
+
}
|
|
996
|
+
/** Focus left the toolbar: close its menu. */
|
|
997
|
+
toolbarOut(event) {
|
|
998
|
+
const into = event.relatedTarget;
|
|
999
|
+
if (!into || !event.currentTarget.contains(into))
|
|
1000
|
+
this.menu.set(false);
|
|
1001
|
+
}
|
|
1002
|
+
/** Another chart of the group points at `index`: show the same label here. */
|
|
1003
|
+
ɵfollow(index) {
|
|
1004
|
+
if (this.isRound() || this.isCells())
|
|
1005
|
+
return;
|
|
1006
|
+
this.pointer.set(null);
|
|
1007
|
+
this.hovered.set(index);
|
|
1008
|
+
}
|
|
1009
|
+
// ---------- public ----------
|
|
1010
|
+
/** The chart as an SVG document, colours and fonts written in (for files and e-mail). */
|
|
1011
|
+
toSVG() {
|
|
1012
|
+
const svg = this.svgRef()?.nativeElement;
|
|
1013
|
+
if (!svg)
|
|
1014
|
+
return '';
|
|
1015
|
+
const clone = svg.cloneNode(true);
|
|
1016
|
+
const live = [svg, ...Array.from(svg.querySelectorAll('*'))];
|
|
1017
|
+
const copies = [clone, ...Array.from(clone.querySelectorAll('*'))];
|
|
1018
|
+
const props = ['fill', 'fill-opacity', 'stroke', 'stroke-width', 'stroke-dasharray', 'stroke-opacity', 'stroke-linecap', 'stop-color', 'stop-opacity', 'opacity', 'font-family', 'font-size', 'font-weight', 'transform'];
|
|
1019
|
+
live.forEach((el, i) => {
|
|
1020
|
+
const css = getComputedStyle(el);
|
|
1021
|
+
const copy = copies[i];
|
|
1022
|
+
for (const p of props) {
|
|
1023
|
+
const v = css.getPropertyValue(p);
|
|
1024
|
+
if (v && !(p === 'transform' && v === 'none'))
|
|
1025
|
+
copy.style.setProperty(p, v);
|
|
1026
|
+
}
|
|
1027
|
+
copy.removeAttribute('class');
|
|
1028
|
+
copy.removeAttribute('tabindex');
|
|
1029
|
+
});
|
|
1030
|
+
clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
1031
|
+
return new XMLSerializer().serializeToString(clone);
|
|
1032
|
+
}
|
|
1033
|
+
/** The chart as a PNG data URL, `scale` times the size on screen, on `background` (default: the theme's card colour). */
|
|
1034
|
+
async toPNG(scale = 2, background) {
|
|
1035
|
+
const m = this.model();
|
|
1036
|
+
const svg = this.toSVG();
|
|
1037
|
+
if (!m || !svg)
|
|
1038
|
+
return '';
|
|
1039
|
+
const img = new Image();
|
|
1040
|
+
img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg);
|
|
1041
|
+
await img.decode();
|
|
1042
|
+
const canvas = this.host.ownerDocument.createElement('canvas');
|
|
1043
|
+
canvas.width = Math.round(m.width * scale);
|
|
1044
|
+
canvas.height = Math.round(m.height * scale);
|
|
1045
|
+
const ctx = canvas.getContext('2d');
|
|
1046
|
+
if (!ctx)
|
|
1047
|
+
return '';
|
|
1048
|
+
ctx.fillStyle = background || getComputedStyle(this.host).getPropertyValue('--wu-card-bg').trim() || '#ffffff';
|
|
1049
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1050
|
+
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
|
1051
|
+
return canvas.toDataURL('image/png');
|
|
1052
|
+
}
|
|
1053
|
+
/** The numbers as CSV: a row per label, a column per series (scatter: series, x, y). Excel opens it with Thai intact. */
|
|
1054
|
+
toCSV() {
|
|
1055
|
+
const { labels, series } = this.source();
|
|
1056
|
+
const cell = (v) => {
|
|
1057
|
+
const t = v === null || v === undefined ? '' : String(v);
|
|
1058
|
+
return /[",\r\n]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
|
|
1059
|
+
};
|
|
1060
|
+
let rows;
|
|
1061
|
+
if (this.kind() === 'scatter') {
|
|
1062
|
+
rows = [['', 'x', 'y'], ...series.flatMap((s) => s.data.map((p) => [s.name ?? '', p?.x, p?.y]))];
|
|
1063
|
+
}
|
|
1064
|
+
else {
|
|
1065
|
+
const count = Math.max(labels.length, ...series.map((s) => s.data.length), 0);
|
|
1066
|
+
rows = [['', ...series.map((s) => s.name ?? '')], ...Array.from({ length: count }, (_, k) => [labels[k] ?? '', ...series.map((s) => s.data[k])])];
|
|
1067
|
+
}
|
|
1068
|
+
return rows.map((r) => r.map(cell).join(',')).join('\r\n');
|
|
1069
|
+
}
|
|
1070
|
+
/** Saves the chart as `<fileName>.png`, `.svg` or `.csv` (the numbers). */
|
|
1071
|
+
async download(fileName = 'chart', format = 'png') {
|
|
1072
|
+
const doc = this.host.ownerDocument;
|
|
1073
|
+
const url = format === 'csv'
|
|
1074
|
+
? 'data:text/csv;charset=utf-8,' + encodeURIComponent('\ufeff' + this.toCSV())
|
|
1075
|
+
: format === 'svg'
|
|
1076
|
+
? 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(this.toSVG())
|
|
1077
|
+
: await this.toPNG();
|
|
1078
|
+
if (!url)
|
|
1079
|
+
return;
|
|
1080
|
+
const a = doc.createElement('a');
|
|
1081
|
+
a.href = url;
|
|
1082
|
+
a.download = `${fileName}.${format}`;
|
|
1083
|
+
a.style.display = 'none';
|
|
1084
|
+
doc.body.appendChild(a);
|
|
1085
|
+
a.click();
|
|
1086
|
+
a.remove();
|
|
1087
|
+
}
|
|
1088
|
+
/** Draws again (after changing `series` in place). */
|
|
1089
|
+
refresh() {
|
|
1090
|
+
this.lastTarget = this.target();
|
|
1091
|
+
this.frame.set(this.lastTarget);
|
|
1092
|
+
}
|
|
1093
|
+
// ---------- internals ----------
|
|
1094
|
+
labelCount() {
|
|
1095
|
+
const { labels, series } = this.source();
|
|
1096
|
+
return Math.max(labels.length, ...series.map((s) => s.data.length), 0);
|
|
1097
|
+
}
|
|
1098
|
+
/** Zoom into labels `a` … `b` (all of them: back out), at once. */
|
|
1099
|
+
setZoom(a, b) {
|
|
1100
|
+
const last = this.labelCount() - 1;
|
|
1101
|
+
const from = Math.max(0, Math.min(a, b));
|
|
1102
|
+
const to = Math.min(last, Math.max(a, b));
|
|
1103
|
+
const all = from <= 0 && to >= last;
|
|
1104
|
+
if (to <= from && !all)
|
|
1105
|
+
return;
|
|
1106
|
+
this.instant = true;
|
|
1107
|
+
this.leave();
|
|
1108
|
+
this.zoomed.set(all ? null : [from, to]);
|
|
1109
|
+
this.zoomChange.emit(all ? null : { from, to });
|
|
1110
|
+
}
|
|
1111
|
+
/** Point the group's other charts at `index`. */
|
|
1112
|
+
share(index) {
|
|
1113
|
+
const name = this.group();
|
|
1114
|
+
if (!name)
|
|
1115
|
+
return;
|
|
1116
|
+
for (const other of GROUPS.get(name) || [])
|
|
1117
|
+
if (other !== this)
|
|
1118
|
+
other.ɵfollow(index);
|
|
1119
|
+
}
|
|
1120
|
+
firstShownSeries() {
|
|
1121
|
+
const i = this.source().series.findIndex((s, k) => !s.hidden && !this.hidden().has(k));
|
|
1122
|
+
return Math.max(0, i);
|
|
1123
|
+
}
|
|
1124
|
+
emitClick(series, index, event) {
|
|
1125
|
+
const { labels, series: all } = this.target();
|
|
1126
|
+
const s = all[series];
|
|
1127
|
+
if (!s)
|
|
1128
|
+
return;
|
|
1129
|
+
const raw = s.data[index];
|
|
1130
|
+
const value = typeof raw === 'number' ? raw : raw && typeof raw === 'object' ? Number(raw.y) : NaN;
|
|
1131
|
+
if (!Number.isFinite(value))
|
|
1132
|
+
return;
|
|
1133
|
+
// The index in the whole data, not in the zoomed part.
|
|
1134
|
+
const offset = this.zoomable() ? this.zoomed()?.[0] ?? 0 : 0;
|
|
1135
|
+
this.pointClick.emit({ series, seriesName: s.name ?? '', index: index + offset, label: labels[index] ?? '', value, originalEvent: event });
|
|
1136
|
+
}
|
|
1137
|
+
measure(text, size) {
|
|
1138
|
+
if (!this.browser)
|
|
1139
|
+
return text.length * size * 0.56;
|
|
1140
|
+
if (!this.canvas)
|
|
1141
|
+
this.canvas = this.host.ownerDocument.createElement('canvas').getContext('2d');
|
|
1142
|
+
if (!this.canvas)
|
|
1143
|
+
return text.length * size * 0.56;
|
|
1144
|
+
this.canvas.font = `${size}px ${this.font() || this.fontFamily || 'sans-serif'}`;
|
|
1145
|
+
return this.canvas.measureText(text).width;
|
|
1146
|
+
}
|
|
1147
|
+
animateTo(target) {
|
|
1148
|
+
this.lastTarget = target;
|
|
1149
|
+
if (this.raf)
|
|
1150
|
+
cancelAnimationFrame(this.raf);
|
|
1151
|
+
const from = this.frame();
|
|
1152
|
+
const instant = this.instant;
|
|
1153
|
+
this.instant = false;
|
|
1154
|
+
const still = instant ||
|
|
1155
|
+
!this.browser ||
|
|
1156
|
+
!this.animate() ||
|
|
1157
|
+
typeof requestAnimationFrame === 'undefined' ||
|
|
1158
|
+
!!this.host.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
|
|
1159
|
+
// Raw values, ranges, nodes and units do not move value by value: their shapes come in on their own, and the
|
|
1160
|
+
// sunburst fans out.
|
|
1161
|
+
const moves = chartMovesValues(this.kind());
|
|
1162
|
+
if (still || (!moves && this.kind() !== 'sunburst')) {
|
|
1163
|
+
this.raf = 0;
|
|
1164
|
+
this.animating.set(false);
|
|
1165
|
+
this.entering.set(false);
|
|
1166
|
+
this.progress.set(1);
|
|
1167
|
+
this.frame.set(target);
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
|
+
// New labels start from nothing; the same labels move from where they are.
|
|
1171
|
+
const start = from && from.labels.length === target.labels.length ? from : null;
|
|
1172
|
+
// A pie fans out with its final slices, cells and tiles come in as they are; everything else moves its values.
|
|
1173
|
+
const fan = !moves || (!start && ((this.isRound() && this.kind() !== 'radialBar') || this.isCells()));
|
|
1174
|
+
const at = (t) => (t >= 1 || fan ? target : between(start, target, t));
|
|
1175
|
+
this.scalesFrom.set(start ? this.model()?.scales ?? null : null);
|
|
1176
|
+
this.entering.set(!start);
|
|
1177
|
+
this.progress.set(0);
|
|
1178
|
+
this.animating.set(true);
|
|
1179
|
+
const t0 = performance.now();
|
|
1180
|
+
const step = () => {
|
|
1181
|
+
const t = Math.min(1, (performance.now() - t0) / ANIMATION_MS);
|
|
1182
|
+
this.progress.set(ease(t));
|
|
1183
|
+
this.frame.set(at(ease(t)));
|
|
1184
|
+
if (t < 1) {
|
|
1185
|
+
this.raf = requestAnimationFrame(step);
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1188
|
+
this.raf = 0;
|
|
1189
|
+
this.animating.set(false);
|
|
1190
|
+
this.entering.set(false);
|
|
1191
|
+
this.scalesFrom.set(null);
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
this.frame.set(at(0));
|
|
1195
|
+
this.raf = requestAnimationFrame(step);
|
|
1196
|
+
}
|
|
1197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChart, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1198
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuChart, isStandalone: true, selector: "wu-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, font: { classPropertyName: "font", publicName: "font", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, stacked: { classPropertyName: "stacked", publicName: "stacked", isSignal: true, isRequired: false, transformFunction: null }, smooth: { classPropertyName: "smooth", publicName: "smooth", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, gradient: { classPropertyName: "gradient", publicName: "gradient", isSignal: true, isRequired: false, transformFunction: null }, sparkline: { classPropertyName: "sparkline", publicName: "sparkline", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, bins: { classPropertyName: "bins", publicName: "bins", isSignal: true, isRequired: false, transformFunction: null }, swap: { classPropertyName: "swap", publicName: "swap", isSignal: true, isRequired: false, transformFunction: null }, looks: { classPropertyName: "looks", publicName: "looks", isSignal: true, isRequired: false, transformFunction: null }, points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: false, transformFunction: null }, grid: { classPropertyName: "grid", publicName: "grid", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, rightFormat: { classPropertyName: "rightFormat", publicName: "rightFormat", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, decimals: { classPropertyName: "decimals", publicName: "decimals", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, lang: { classPropertyName: "lang", publicName: "lang", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, beginAtZero: { classPropertyName: "beginAtZero", publicName: "beginAtZero", isSignal: true, isRequired: false, transformFunction: null }, rightMin: { classPropertyName: "rightMin", publicName: "rightMin", isSignal: true, isRequired: false, transformFunction: null }, rightMax: { classPropertyName: "rightMax", publicName: "rightMax", isSignal: true, isRequired: false, transformFunction: null }, xTitle: { classPropertyName: "xTitle", publicName: "xTitle", isSignal: true, isRequired: false, transformFunction: null }, yTitle: { classPropertyName: "yTitle", publicName: "yTitle", isSignal: true, isRequired: false, transformFunction: null }, y2Title: { classPropertyName: "y2Title", publicName: "y2Title", isSignal: true, isRequired: false, transformFunction: null }, referenceLines: { classPropertyName: "referenceLines", publicName: "referenceLines", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, colorRanges: { classPropertyName: "colorRanges", publicName: "colorRanges", isSignal: true, isRequired: false, transformFunction: null }, startAngle: { classPropertyName: "startAngle", publicName: "startAngle", isSignal: true, isRequired: false, transformFunction: null }, endAngle: { classPropertyName: "endAngle", publicName: "endAngle", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, fileName: { classPropertyName: "fileName", publicName: "fileName", isSignal: true, isRequired: false, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: false, transformFunction: null }, barRadius: { classPropertyName: "barRadius", publicName: "barRadius", isSignal: true, isRequired: false, transformFunction: null }, cutout: { classPropertyName: "cutout", publicName: "cutout", isSignal: true, isRequired: false, transformFunction: null }, centerValue: { classPropertyName: "centerValue", publicName: "centerValue", isSignal: true, isRequired: false, transformFunction: null }, centerLabel: { classPropertyName: "centerLabel", publicName: "centerLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClick: "pointClick", seriesToggle: "seriesToggle", zoomChange: "zoomChange", typeChange: "typeChange", variantChange: "variantChange" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-chart-host" }, viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }, { propertyName: "svgRef", first: true, predicate: ["svg"], descendants: true, isSignal: true }], exportAs: ["wuChart"], ngImport: i0, template: "<div [class]=\"classes()\" [style]=\"rootStyle()\" [style.font-family]=\"font() || null\" [style.--wu-chart-font-size]=\"fontSize() + 'px'\">\n @if (heading() || subtitle() || toolbar() || swapKinds().length || lookList().length) {\n <div class=\"wu-chart-head\">\n <div class=\"wu-chart-heading\">\n @if (heading()) {\n <div class=\"wu-chart-title\" [id]=\"id + '-title'\">{{ heading() }}</div>\n }\n @if (subtitle()) {\n <div class=\"wu-chart-subtitle\">{{ subtitle() }}</div>\n }\n </div>\n @if (lookList().length) {\n <div class=\"wu-chart-looks\" role=\"radiogroup\" [attr.aria-label]=\"words().looks\">\n @for (l of lookList(); track l) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-look-item\"\n [class.wu-chart-look-on]=\"activeLook() === l\"\n [attr.aria-checked]=\"activeLook() === l\"\n [attr.data-look]=\"l\"\n (click)=\"setLook(l)\"\n >{{ lookName(l) }}</button>\n }\n </div>\n }\n @if (swapKinds().length) {\n <div class=\"wu-chart-swap\" role=\"radiogroup\" [attr.aria-label]=\"words().kinds\">\n @for (t of swapKinds(); track t) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-swap-item\"\n [class.wu-chart-swap-on]=\"kind() === t\"\n [attr.aria-checked]=\"kind() === t\"\n [attr.aria-label]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.title]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.data-kind]=\"t\"\n (click)=\"setKind(t)\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path [attr.d]=\"kindsInfo[t].icon\"></path></svg>\n </button>\n }\n </div>\n }\n @if (toolbar()) {\n <div class=\"wu-chart-toolbar\" role=\"toolbar\" [attr.aria-label]=\"words().toolbar\" (focusout)=\"toolbarOut($event)\" (keydown.escape)=\"menu.set(false)\">\n @if (zoomable()) {\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomIn\" [attr.title]=\"words().zoomIn\" (click)=\"zoomIn()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M11 8v6M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomOut\" [attr.title]=\"words().zoomOut\" [disabled]=\"!zoomed()\" (click)=\"zoomOut()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().reset\" [attr.title]=\"words().reset\" [disabled]=\"!zoomed()\" (click)=\"resetZoom()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3M4.5 4.5v4h4\"></path></svg>\n </button>\n }\n <span class=\"wu-chart-tool-wrap\">\n <button\n type=\"button\"\n class=\"wu-chart-tool\"\n [attr.aria-label]=\"words().download\"\n [attr.title]=\"words().download\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menu()\"\n (click)=\"menu.set(!menu())\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 4v11M7 10l5 5 5-5M5 19.5h14\"></path></svg>\n </button>\n @if (menu()) {\n <span class=\"wu-chart-menu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"save('png')\">PNG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('svg')\">SVG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('csv')\">CSV</button>\n </span>\n }\n </span>\n </div>\n }\n </div>\n }\n\n <div class=\"wu-chart-main\">\n <div #body class=\"wu-chart-body\" [style.height]=\"heightCss()\">\n @if (model(); as m) {\n <svg\n #svg\n class=\"wu-chart-svg\"\n [attr.width]=\"m.width\"\n [attr.height]=\"m.height\"\n [attr.viewBox]=\"'0 0 ' + m.width + ' ' + m.height\"\n role=\"img\"\n tabindex=\"0\"\n [class.wu-chart-zoomable]=\"zoomable()\"\n [attr.aria-label]=\"summary() || null\"\n [attr.aria-labelledby]=\"!ariaLabel() && heading() ? id + '-title' : null\"\n (pointermove)=\"move($event)\"\n (pointerdown)=\"down($event)\"\n (pointerup)=\"up()\"\n (pointercancel)=\"up()\"\n (pointerleave)=\"leave()\"\n (click)=\"click($event)\"\n (keydown)=\"key($event)\"\n (blur)=\"leave()\"\n >\n <defs>\n @for (s of m.shapes; track s.key) {\n @if (s.gradient; as g) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\">\n <stop offset=\"0\" [style.stop-color]=\"g.from\"></stop>\n <stop offset=\"1\" [style.stop-color]=\"g.to\"></stop>\n </linearGradient>\n } @else if (s.fade) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"s.fill\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"s.fill\"></stop>\n </linearGradient>\n }\n }\n @for (l of m.lines; track l.key) {\n @if (l.gradient) {\n <linearGradient [attr.id]=\"id + '-' + l.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"l.color\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"l.color\"></stop>\n </linearGradient>\n }\n }\n </defs>\n @for (b of m.bands; track $index) {\n <rect class=\"wu-chart-band\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"b.color\"></rect>\n }\n <g class=\"wu-chart-grid\">\n @for (g of m.grid; track $index) {\n <line [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\"></line>\n }\n </g>\n @if (m.zero; as z) {\n <line class=\"wu-chart-zero\" [attr.x1]=\"z.x1\" [attr.y1]=\"z.y1\" [attr.x2]=\"z.x2\" [attr.y2]=\"z.y2\"></line>\n }\n\n @if (m.radar; as r) {\n <g class=\"wu-chart-web\">\n @for (d of r.rings; track $index) {\n <path [attr.d]=\"d\"></path>\n }\n @for (s of r.spokes; track $index) {\n <line [attr.x1]=\"s.x1\" [attr.y1]=\"s.y1\" [attr.x2]=\"s.x2\" [attr.y2]=\"s.y2\"></line>\n }\n </g>\n @for (s of r.shapes; track s.key) {\n <path class=\"wu-chart-radar\" [attr.d]=\"s.d\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" [class.wu-chart-dim]=\"dim(s.series)\"></path>\n }\n }\n\n @for (l of m.lines; track l.key) {\n @if (l.area) {\n <path\n class=\"wu-chart-area\"\n [class.wu-chart-area-fade]=\"l.gradient\"\n [attr.d]=\"l.area\"\n [style.fill]=\"l.gradient ? 'url(#' + id + '-' + l.key + ')' : l.color\"\n [class.wu-chart-dim]=\"dim(l.series)\"\n ></path>\n }\n }\n @for (b of m.bars; track b.key) {\n <path\n class=\"wu-chart-bar\"\n [attr.d]=\"b.d\"\n [style.fill]=\"b.color\"\n [attr.data-series]=\"b.series\"\n [attr.data-index]=\"b.index\"\n [class.wu-chart-dim]=\"dim(b.series) || (hovered() !== null && hovered() !== b.index)\"\n ></path>\n }\n @for (c of m.cells; track c.key) {\n @if (c.d) {\n <path\n class=\"wu-chart-cell\"\n [attr.d]=\"c.d\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n ></path>\n } @else {\n <rect\n class=\"wu-chart-cell\"\n rx=\"4\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n [attr.width]=\"c.w\"\n [attr.height]=\"c.h\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n [class.wu-chart-dim]=\"!colorRanges()?.length && dim(c.series)\"\n ></rect>\n }\n }\n @for (s of m.shapes; track s.key) {\n @switch (s.kind) {\n @case ('rect') {\n <rect\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x]=\"s.x\"\n [attr.y]=\"s.y\"\n [attr.width]=\"s.w\"\n [attr.height]=\"s.h\"\n [attr.rx]=\"s.rx ?? null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></rect>\n }\n @case ('circle') {\n <circle\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.cx]=\"s.x\"\n [attr.cy]=\"s.y\"\n [attr.r]=\"s.r\"\n [style.fill]=\"s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></circle>\n }\n @case ('line') {\n <line\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x1]=\"s.x\"\n [attr.y1]=\"s.y\"\n [attr.x2]=\"s.x2\"\n [attr.y2]=\"s.y2\"\n [style.stroke]=\"s.gradient ? 'url(#' + id + '-' + s.key + ')' : s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></line>\n }\n @default {\n <path\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.d]=\"s.d\"\n [attr.pathLength]=\"s.enter === 'draw' ? 1 : null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? 'none'\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></path>\n }\n }\n }\n @for (c of m.cells; track c.key) {\n @for (t of c.texts; track $index) {\n <text\n class=\"wu-chart-cell-text\"\n [class.wu-chart-cell-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-cell-name]=\"t.strong\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n >{{ t.text }}</text>\n }\n }\n @for (g of m.rings; track g.key) {\n <path class=\"wu-chart-track\" [class.wu-chart-round]=\"g.round\" [attr.d]=\"g.track\" [style.stroke-width]=\"g.width\" (pointerenter)=\"hoverSlice(g.index)\"></path>\n @if (g.d) {\n <path\n class=\"wu-chart-ring\"\n [class.wu-chart-round]=\"g.round\"\n [attr.d]=\"g.d\"\n [style.stroke]=\"g.color\"\n [style.stroke-width]=\"g.width\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"g.index\"\n [class.wu-chart-dim]=\"dimSlice(g.index)\"\n (pointerenter)=\"hoverSlice(g.index)\"\n ></path>\n }\n }\n @if (crosshair(); as c) {\n <line class=\"wu-chart-crosshair\" [attr.x1]=\"c.x1\" [attr.y1]=\"c.y1\" [attr.x2]=\"c.x2\" [attr.y2]=\"c.y2\"></line>\n }\n @for (l of m.lines; track l.key) {\n <path class=\"wu-chart-line\" [attr.d]=\"l.d\" [style.stroke]=\"l.color\" [class.wu-chart-dashed]=\"l.dashed\" [class.wu-chart-dim]=\"dim(l.series)\"></path>\n }\n @for (s of m.slices; track s.key) {\n <path\n class=\"wu-chart-slice\"\n [attr.d]=\"s.d\"\n [style.fill]=\"s.color\"\n [style.transform]=\"sliceShift(s)\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"s.index\"\n [class.wu-chart-dim]=\"dimSlice(s.index)\"\n (pointerenter)=\"hoverSlice(s.index)\"\n ></path>\n }\n @for (d of m.dots; track d.key) {\n @if (d.r > 0 || hovered() === d.index) {\n <circle\n class=\"wu-chart-dot\"\n [class.wu-chart-bubble]=\"kind() === 'scatter'\"\n [attr.cx]=\"d.cx\"\n [attr.cy]=\"d.cy\"\n [attr.r]=\"dotR(d)\"\n [style.stroke]=\"d.color\"\n [style.fill]=\"kind() === 'scatter' ? d.color : null\"\n [attr.data-series]=\"d.series\"\n [attr.data-index]=\"d.index\"\n [class.wu-chart-dim]=\"dim(d.series)\"\n ></circle>\n }\n }\n\n @if (m.radar; as r) {\n @for (t of r.ringLabels; track $index) {\n <text class=\"wu-chart-tick wu-chart-ring-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (k of m.marks; track $index) {\n <circle class=\"wu-chart-mark\" [attr.cx]=\"k.x\" [attr.cy]=\"k.y\" r=\"5\" [style.stroke]=\"k.color\"></circle>\n @if (k.box; as b) {\n <rect class=\"wu-chart-mark-box\" rx=\"6\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"k.color\"></rect>\n }\n @if (k.label; as t) {\n <text class=\"wu-chart-mark-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (b of m.bands; track $index) {\n @if (b.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"b.color\">{{ t.text }}</text>\n }\n }\n @for (r of m.references; track $index) {\n <line class=\"wu-chart-reference\" [class.wu-chart-dashed]=\"r.dashed\" [attr.x1]=\"r.x1\" [attr.y1]=\"r.y1\" [attr.x2]=\"r.x2\" [attr.y2]=\"r.y2\" [style.stroke]=\"r.color\"></line>\n @if (r.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"r.color\">{{ t.text }}</text>\n }\n }\n\n @for (t of m.texts; track $index) {\n <text\n class=\"wu-chart-text\"\n [class.wu-chart-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-text-muted]=\"t.tone === 'muted'\"\n [class.wu-chart-text-strong]=\"t.strong\"\n [class.wu-chart-dim]=\"m.dimOthers && hoverKey() && t.hover && hoverKey() !== t.hover && !hoverKey()!.startsWith(t.hover + '/')\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n [attr.transform]=\"rotate(t)\"\n [style.fill]=\"t.color ?? null\"\n >{{ t.text }}</text>\n }\n @for (t of m.valueLabels; track $index) {\n <text class=\"wu-chart-value\" [class.wu-chart-value-inside]=\"t.tone === 'inside'\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.xTicks; track $index) {\n <text class=\"wu-chart-tick\" [class.wu-chart-tick-active]=\"kind() === 'radar' && hovered() === $index\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.yTicks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.y2Ticks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.titles; track $index) {\n <text class=\"wu-chart-axis-title\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [attr.transform]=\"rotate(t)\">{{ t.text }}</text>\n }\n @if (selection(); as s) {\n <rect class=\"wu-chart-selection\" [attr.x]=\"s.x\" [attr.y]=\"s.y\" [attr.width]=\"s.w\" [attr.height]=\"s.h\"></rect>\n }\n </svg>\n\n @if (center(); as c) {\n <div class=\"wu-chart-center\" [class.wu-chart-center-lift]=\"c.lift\" [style.left.px]=\"c.x\" [style.top.px]=\"c.y\" [style.width.px]=\"c.r * 1.5\" aria-hidden=\"true\">\n <span class=\"wu-chart-center-value\">{{ c.value }}</span>\n <span class=\"wu-chart-center-label\">{{ c.label }}</span>\n @if ($any(c).back) {\n <span class=\"wu-chart-center-back\">\u2190 {{ words().back }}</span>\n }\n </div>\n }\n @if (tip(); as t) {\n <div class=\"wu-chart-tooltip\" [class.wu-chart-tooltip-flip]=\"t.flip\" [style.left.px]=\"t.x\" [style.top.px]=\"t.y\" aria-hidden=\"true\">\n @if (t.title) {\n <div class=\"wu-chart-tooltip-title\">{{ t.title }}</div>\n }\n @for (row of t.rows; track $index) {\n <div class=\"wu-chart-tooltip-row\">\n <span class=\"wu-chart-swatch\" [style.background]=\"row.color\"></span>\n <span class=\"wu-chart-tooltip-name\">{{ row.name }}</span>\n <span class=\"wu-chart-tooltip-value\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n @if (empty()) {\n <div class=\"wu-chart-empty\">{{ emptyText() }}</div>\n }\n }\n </div>\n\n @if (legendPos() !== 'none' && legendItems().length) {\n <ul class=\"wu-chart-legend\">\n @for (item of legendItems(); track item.index) {\n <li>\n <button\n type=\"button\"\n class=\"wu-chart-legend-item\"\n [class.wu-chart-legend-off]=\"item.hidden\"\n [attr.aria-pressed]=\"!item.hidden\"\n (click)=\"toggle(item.index)\"\n (pointerenter)=\"focusSeries.set(item.index)\"\n (pointerleave)=\"focusSeries.set(null)\"\n (focus)=\"focusSeries.set(item.index)\"\n (blur)=\"focusSeries.set(null)\"\n >\n <span class=\"wu-chart-swatch\" [class.wu-chart-swatch-line]=\"item.shape === 'line'\" [class.wu-chart-swatch-dot]=\"item.shape === 'dot'\" [style.background]=\"item.color\"></span>\n <span class=\"wu-chart-legend-name\">{{ item.name }}</span>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n\n <div class=\"wu-chart-sr\">\n <table [id]=\"id + '-table'\">\n @if (heading()) {\n <caption>{{ heading() }}</caption>\n }\n <thead>\n <tr>\n <th></th>\n @for (h of table().head; track $index) {\n <th scope=\"col\">{{ h }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of table().rows; track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div class=\"wu-chart-sr\" aria-live=\"polite\">{{ liveText() }}</div>\n</div>\n", styles: ["@layer wiraui.components{wu-chart{display:block;min-width:0}.wu-chart{position:relative;display:flex;flex-direction:column;gap:var(--wu-chart-gap);color:var(--wu-chart-text);font-family:var(--wu-chart-font-family);font-size:var(--wu-chart-font-size);line-height:var(--wu-line-height)}.wu-chart-title{color:var(--wu-chart-title-color);font-size:var(--wu-chart-title-size);font-weight:var(--wu-chart-title-weight)}.wu-chart-subtitle{color:var(--wu-chart-text)}.wu-chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--wu-chart-gap)}.wu-chart-heading{min-width:0}.wu-chart-toolbar{display:flex;flex:none;gap:.125rem;margin-left:auto}.wu-chart-tool-wrap{position:relative;display:inline-flex}.wu-chart-tool{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition)}.wu-chart-tool svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-chart-tool:hover:not(:disabled){background:var(--wu-hover-bg);color:var(--wu-chart-title-color)}.wu-chart-tool:disabled{opacity:.4;cursor:default}.wu-chart-tool:focus-visible,.wu-chart-menu button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-menu{position:absolute;top:calc(100% + .25rem);right:0;z-index:2;display:flex;flex-direction:column;min-width:6rem;padding:.25rem;border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow)}.wu-chart-menu button{padding:.375rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-tooltip-color);font:inherit;text-align:left;cursor:pointer}.wu-chart-menu button:hover{background:var(--wu-hover-bg)}.wu-chart-main{display:flex;flex-direction:column;gap:var(--wu-chart-gap);min-width:0}.wu-chart-legend-top .wu-chart-legend{order:-1}.wu-chart-legend-right .wu-chart-main{flex-direction:row;flex-wrap:wrap;align-items:center}.wu-chart-legend-right .wu-chart-body{flex:1 1 16rem}.wu-chart-legend-right .wu-chart-legend{flex:0 1 auto;flex-direction:column;align-items:flex-start}.wu-chart-body{position:relative;min-width:0;width:100%}.wu-chart-svg{display:block;max-width:100%;overflow:visible;font-family:inherit;border-radius:var(--wu-radius-sm);outline-color:transparent;-webkit-user-select:none;user-select:none}.wu-chart-zoomable{cursor:crosshair;touch-action:pan-y}.wu-chart-selection{fill:var(--wu-chart-selection);stroke:var(--wu-chart-mark-color);stroke-width:1;stroke-dasharray:4 3;pointer-events:none}.wu-chart-svg:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-chart-grid line,.wu-chart-web path,.wu-chart-web line{fill:none;stroke:var(--wu-chart-grid);stroke-width:1;shape-rendering:crispEdges}.wu-chart-web path,.wu-chart-web line{shape-rendering:auto}.wu-chart-zero{stroke:var(--wu-chart-axis);stroke-width:1;shape-rendering:crispEdges}.wu-chart-tick,.wu-chart-axis-title,.wu-chart-value,.wu-chart-reference-label{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size)}.wu-chart-axis-title{font-weight:600}.wu-chart-ring-label{paint-order:stroke;stroke:var(--wu-chart-dot-fill);stroke-width:3px;stroke-linejoin:round;pointer-events:none}.wu-chart-tick-active{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-value{fill:var(--wu-chart-value-color);font-weight:600;pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-entering .wu-chart-value{opacity:0}.wu-chart-value-inside{fill:var(--wu-chart-value-inside-color);paint-order:stroke;stroke:#00000040;stroke-width:2px}.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot{transition:opacity var(--wu-transition),transform var(--wu-transition)}.wu-chart-bar{cursor:pointer}.wu-chart-slice{cursor:pointer;stroke:var(--wu-chart-slice-border);stroke-width:1.5}.wu-chart-area{opacity:var(--wu-chart-area-opacity)}.wu-chart-area-fade{opacity:1}.wu-chart-fade-from{stop-opacity:var(--wu-chart-gradient-from)}.wu-chart-fade-to{stop-opacity:var(--wu-chart-gradient-to)}.wu-chart-area-fade.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-track,.wu-chart-ring{fill:none}.wu-chart-track{stroke:var(--wu-chart-track)}.wu-chart-ring{cursor:pointer;transition:opacity var(--wu-transition)}.wu-chart-round{stroke-linecap:round}.wu-chart-cell{cursor:pointer;transform-box:fill-box;transform-origin:center;animation:wu-chart-cell-in .45s ease-out backwards;transition:opacity var(--wu-transition),fill-opacity var(--wu-transition)}.wu-chart-cell-active{stroke:var(--wu-chart-title-color);stroke-width:2}.wu-chart-cell-text{fill:var(--wu-chart-value-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none;animation:wu-chart-fade-in .45s ease-out backwards}.wu-chart-cell-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-cell-name{font-weight:700}@keyframes wu-chart-cell-in{0%{opacity:0;transform:scale(.85)}}@keyframes wu-chart-fade-in{0%{opacity:0}}.wu-chart-shape{transition:opacity var(--wu-transition),filter var(--wu-transition)}.wu-chart-lit{filter:brightness(1.08) saturate(1.1)}.wu-chart-stream{stroke:var(--wu-chart-slice-border);stroke-width:1}.wu-chart-sun{stroke:var(--wu-chart-slice-border);stroke-width:1;cursor:pointer}.wu-chart-line-shape{fill:none;stroke-linecap:round;stroke-linejoin:round}.wu-chart-connector,.wu-chart-whisker,.wu-chart-median{stroke-linecap:round}line.wu-chart-shape{stroke-linecap:round}.wu-chart-text{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size);pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-text-strong{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-text-muted{fill:var(--wu-chart-muted);font-weight:600}.wu-chart-in-grow,.wu-chart-in-grow-x,.wu-chart-in-pop{transform-box:fill-box}.wu-chart-in-grow{transform-origin:center bottom;animation:wu-chart-grow .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-grow-x{transform-origin:left center;animation:wu-chart-grow-x .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-pop{transform-origin:center;animation:wu-chart-pop .45s cubic-bezier(.3,1.5,.6,1) backwards}.wu-chart-in-fade{animation:wu-chart-fade-in .5s ease-out backwards}.wu-chart-in-draw{stroke-dasharray:1;animation:wu-chart-draw .9s ease-out backwards}@keyframes wu-chart-grow{0%{transform:scaleY(0)}}@keyframes wu-chart-grow-x{0%{transform:scaleX(0)}}@keyframes wu-chart-pop{0%{opacity:0;transform:scale(.4)}}@keyframes wu-chart-draw{0%{stroke-dashoffset:1}}.wu-chart-swap{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;min-width:0;gap:.125rem;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-swap+.wu-chart-toolbar,.wu-chart-looks+.wu-chart-swap,.wu-chart-looks+.wu-chart-toolbar{margin-left:0}.wu-chart-looks{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;gap:.125rem;min-width:0;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-look-item{min-height:1.75rem;padding:.125rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-look-item:hover{color:var(--wu-chart-title-color)}.wu-chart-look-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-look-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-swap-item{display:inline-flex;align-items:center;justify-content:center;width:1.875rem;height:1.75rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-swap-item svg{width:1.0625rem;height:1.0625rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-chart-swap-item:hover{color:var(--wu-chart-title-color)}.wu-chart-swap-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-swap-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-ghost{position:absolute;top:0;left:0;pointer-events:none;animation:wu-chart-ghost-out .48s ease-in forwards}@keyframes wu-chart-ghost-out{to{opacity:0;filter:blur(2px);transform:scale(.97)}}.wu-chart-center-back{margin-top:.125rem;color:var(--wu-chart-mark-color);font-size:.75em;font-weight:600}.wu-chart-band{fill-opacity:var(--wu-chart-band-opacity);pointer-events:none}.wu-chart-mark{fill:var(--wu-chart-dot-fill);stroke-width:2.5;pointer-events:none}.wu-chart-mark-box{pointer-events:none}.wu-chart-mark-label{fill:var(--wu-chart-value-inside-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none}.wu-chart-line{fill:none;stroke-width:var(--wu-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.wu-chart-dashed{stroke-dasharray:6 5}.wu-chart-radar{fill-opacity:var(--wu-chart-area-opacity);stroke-width:var(--wu-chart-line-width);stroke-linejoin:round}.wu-chart-dot{fill:var(--wu-chart-dot-fill);stroke-width:2;cursor:pointer}.wu-chart-bubble{fill-opacity:.7;stroke-width:1.5}.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-area.wu-chart-dim{opacity:calc(var(--wu-chart-area-opacity) * var(--wu-chart-dim-opacity))}.wu-chart-crosshair{stroke:var(--wu-chart-crosshair);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.wu-chart-reference{stroke-width:1.5}.wu-chart-reference-label{font-weight:600}.wu-chart-center{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.wu-chart-center-value{color:var(--wu-chart-title-color);font-size:var(--wu-chart-center-size);font-weight:700;line-height:1.2;overflow-wrap:anywhere}.wu-chart-center-label{color:var(--wu-chart-text)}.wu-chart-center-lift{transform:translate(-50%,calc(-100% - .25rem))}.wu-chart-sparkline{gap:0}.wu-chart-tooltip{position:absolute;z-index:1;min-width:8rem;max-width:18rem;padding:var(--wu-chart-tooltip-padding);border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-tooltip-color);transform:translate(14px,-50%);pointer-events:none;white-space:nowrap}.wu-chart-tooltip-flip{transform:translate(calc(-100% - 14px),-50%)}.wu-chart-tooltip-title{margin-bottom:.25rem;font-weight:600}.wu-chart-tooltip-row{display:flex;align-items:center;gap:.5rem}.wu-chart-tooltip-name{flex:1;overflow:hidden;text-overflow:ellipsis}.wu-chart-tooltip-value{font-weight:600;font-variant-numeric:tabular-nums}.wu-chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .75rem;margin:0;padding:0;list-style:none}.wu-chart-legend-item{display:inline-flex;align-items:center;gap:.4rem;min-height:1.75rem;padding:.125rem .375rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-legend-color);font:inherit;cursor:pointer;transition:opacity var(--wu-transition),background var(--wu-transition)}.wu-chart-legend-item:hover{background:var(--wu-hover-bg)}.wu-chart-legend-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-legend-off{opacity:.45}.wu-chart-legend-off .wu-chart-legend-name{text-decoration:line-through}.wu-chart-swatch{flex:none;width:.75rem;height:.75rem;border-radius:3px}.wu-chart-swatch-line{height:3px;border-radius:2px}.wu-chart-swatch-dot{border-radius:50%}.wu-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--wu-chart-text)}.wu-chart-sr{position:absolute!important;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot,.wu-chart-ring,.wu-chart-legend-item{transition:none}.wu-chart-cell,.wu-chart-cell-text,.wu-chart-shape,.wu-chart-ghost{animation:none}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
26
1199
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChart, decorators: [{
|
|
28
1201
|
type: Component,
|
|
29
|
-
args: [{ selector: 'wu-chart', standalone: true, exportAs: 'wuChart', imports: [NgClass, NgStyle], template: `
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1202
|
+
args: [{ selector: 'wu-chart', standalone: true, exportAs: 'wuChart', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-chart-host', '[attr.title]': 'null' }, template: "<div [class]=\"classes()\" [style]=\"rootStyle()\" [style.font-family]=\"font() || null\" [style.--wu-chart-font-size]=\"fontSize() + 'px'\">\n @if (heading() || subtitle() || toolbar() || swapKinds().length || lookList().length) {\n <div class=\"wu-chart-head\">\n <div class=\"wu-chart-heading\">\n @if (heading()) {\n <div class=\"wu-chart-title\" [id]=\"id + '-title'\">{{ heading() }}</div>\n }\n @if (subtitle()) {\n <div class=\"wu-chart-subtitle\">{{ subtitle() }}</div>\n }\n </div>\n @if (lookList().length) {\n <div class=\"wu-chart-looks\" role=\"radiogroup\" [attr.aria-label]=\"words().looks\">\n @for (l of lookList(); track l) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-look-item\"\n [class.wu-chart-look-on]=\"activeLook() === l\"\n [attr.aria-checked]=\"activeLook() === l\"\n [attr.data-look]=\"l\"\n (click)=\"setLook(l)\"\n >{{ lookName(l) }}</button>\n }\n </div>\n }\n @if (swapKinds().length) {\n <div class=\"wu-chart-swap\" role=\"radiogroup\" [attr.aria-label]=\"words().kinds\">\n @for (t of swapKinds(); track t) {\n <button\n type=\"button\"\n role=\"radio\"\n class=\"wu-chart-swap-item\"\n [class.wu-chart-swap-on]=\"kind() === t\"\n [attr.aria-checked]=\"kind() === t\"\n [attr.aria-label]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.title]=\"language().startsWith('th') ? kindsInfo[t].th : kindsInfo[t].en\"\n [attr.data-kind]=\"t\"\n (click)=\"setKind(t)\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path [attr.d]=\"kindsInfo[t].icon\"></path></svg>\n </button>\n }\n </div>\n }\n @if (toolbar()) {\n <div class=\"wu-chart-toolbar\" role=\"toolbar\" [attr.aria-label]=\"words().toolbar\" (focusout)=\"toolbarOut($event)\" (keydown.escape)=\"menu.set(false)\">\n @if (zoomable()) {\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomIn\" [attr.title]=\"words().zoomIn\" (click)=\"zoomIn()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M11 8v6M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().zoomOut\" [attr.title]=\"words().zoomOut\" [disabled]=\"!zoomed()\" (click)=\"zoomOut()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M11 4a7 7 0 1 0 0 14 7 7 0 1 0 0-14ZM20 20l-4.2-4.2M8 11h6\"></path></svg>\n </button>\n <button type=\"button\" class=\"wu-chart-tool\" [attr.aria-label]=\"words().reset\" [attr.title]=\"words().reset\" [disabled]=\"!zoomed()\" (click)=\"resetZoom()\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3M4.5 4.5v4h4\"></path></svg>\n </button>\n }\n <span class=\"wu-chart-tool-wrap\">\n <button\n type=\"button\"\n class=\"wu-chart-tool\"\n [attr.aria-label]=\"words().download\"\n [attr.title]=\"words().download\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"menu()\"\n (click)=\"menu.set(!menu())\"\n >\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 4v11M7 10l5 5 5-5M5 19.5h14\"></path></svg>\n </button>\n @if (menu()) {\n <span class=\"wu-chart-menu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"save('png')\">PNG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('svg')\">SVG</button>\n <button type=\"button\" role=\"menuitem\" (click)=\"save('csv')\">CSV</button>\n </span>\n }\n </span>\n </div>\n }\n </div>\n }\n\n <div class=\"wu-chart-main\">\n <div #body class=\"wu-chart-body\" [style.height]=\"heightCss()\">\n @if (model(); as m) {\n <svg\n #svg\n class=\"wu-chart-svg\"\n [attr.width]=\"m.width\"\n [attr.height]=\"m.height\"\n [attr.viewBox]=\"'0 0 ' + m.width + ' ' + m.height\"\n role=\"img\"\n tabindex=\"0\"\n [class.wu-chart-zoomable]=\"zoomable()\"\n [attr.aria-label]=\"summary() || null\"\n [attr.aria-labelledby]=\"!ariaLabel() && heading() ? id + '-title' : null\"\n (pointermove)=\"move($event)\"\n (pointerdown)=\"down($event)\"\n (pointerup)=\"up()\"\n (pointercancel)=\"up()\"\n (pointerleave)=\"leave()\"\n (click)=\"click($event)\"\n (keydown)=\"key($event)\"\n (blur)=\"leave()\"\n >\n <defs>\n @for (s of m.shapes; track s.key) {\n @if (s.gradient; as g) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" gradientUnits=\"userSpaceOnUse\" [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\">\n <stop offset=\"0\" [style.stop-color]=\"g.from\"></stop>\n <stop offset=\"1\" [style.stop-color]=\"g.to\"></stop>\n </linearGradient>\n } @else if (s.fade) {\n <linearGradient [attr.id]=\"id + '-' + s.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"s.fill\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"s.fill\"></stop>\n </linearGradient>\n }\n }\n @for (l of m.lines; track l.key) {\n @if (l.gradient) {\n <linearGradient [attr.id]=\"id + '-' + l.key\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" class=\"wu-chart-fade-from\" [style.stop-color]=\"l.color\"></stop>\n <stop offset=\"1\" class=\"wu-chart-fade-to\" [style.stop-color]=\"l.color\"></stop>\n </linearGradient>\n }\n }\n </defs>\n @for (b of m.bands; track $index) {\n <rect class=\"wu-chart-band\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"b.color\"></rect>\n }\n <g class=\"wu-chart-grid\">\n @for (g of m.grid; track $index) {\n <line [attr.x1]=\"g.x1\" [attr.y1]=\"g.y1\" [attr.x2]=\"g.x2\" [attr.y2]=\"g.y2\"></line>\n }\n </g>\n @if (m.zero; as z) {\n <line class=\"wu-chart-zero\" [attr.x1]=\"z.x1\" [attr.y1]=\"z.y1\" [attr.x2]=\"z.x2\" [attr.y2]=\"z.y2\"></line>\n }\n\n @if (m.radar; as r) {\n <g class=\"wu-chart-web\">\n @for (d of r.rings; track $index) {\n <path [attr.d]=\"d\"></path>\n }\n @for (s of r.spokes; track $index) {\n <line [attr.x1]=\"s.x1\" [attr.y1]=\"s.y1\" [attr.x2]=\"s.x2\" [attr.y2]=\"s.y2\"></line>\n }\n </g>\n @for (s of r.shapes; track s.key) {\n <path class=\"wu-chart-radar\" [attr.d]=\"s.d\" [style.fill]=\"s.color\" [style.stroke]=\"s.color\" [class.wu-chart-dim]=\"dim(s.series)\"></path>\n }\n }\n\n @for (l of m.lines; track l.key) {\n @if (l.area) {\n <path\n class=\"wu-chart-area\"\n [class.wu-chart-area-fade]=\"l.gradient\"\n [attr.d]=\"l.area\"\n [style.fill]=\"l.gradient ? 'url(#' + id + '-' + l.key + ')' : l.color\"\n [class.wu-chart-dim]=\"dim(l.series)\"\n ></path>\n }\n }\n @for (b of m.bars; track b.key) {\n <path\n class=\"wu-chart-bar\"\n [attr.d]=\"b.d\"\n [style.fill]=\"b.color\"\n [attr.data-series]=\"b.series\"\n [attr.data-index]=\"b.index\"\n [class.wu-chart-dim]=\"dim(b.series) || (hovered() !== null && hovered() !== b.index)\"\n ></path>\n }\n @for (c of m.cells; track c.key) {\n @if (c.d) {\n <path\n class=\"wu-chart-cell\"\n [attr.d]=\"c.d\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n ></path>\n } @else {\n <rect\n class=\"wu-chart-cell\"\n rx=\"4\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n [attr.width]=\"c.w\"\n [attr.height]=\"c.h\"\n [style.fill]=\"c.color\"\n [style.fill-opacity]=\"c.opacity\"\n [attr.data-series]=\"c.series\"\n [attr.data-index]=\"c.index\"\n [class.wu-chart-cell-active]=\"hovered() === c.index && hoveredSeries() === c.series\"\n [class.wu-chart-dim]=\"!colorRanges()?.length && dim(c.series)\"\n ></rect>\n }\n }\n @for (s of m.shapes; track s.key) {\n @switch (s.kind) {\n @case ('rect') {\n <rect\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x]=\"s.x\"\n [attr.y]=\"s.y\"\n [attr.width]=\"s.w\"\n [attr.height]=\"s.h\"\n [attr.rx]=\"s.rx ?? null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></rect>\n }\n @case ('circle') {\n <circle\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.cx]=\"s.x\"\n [attr.cy]=\"s.y\"\n [attr.r]=\"s.r\"\n [style.fill]=\"s.fill ?? null\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></circle>\n }\n @case ('line') {\n <line\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.x1]=\"s.x\"\n [attr.y1]=\"s.y\"\n [attr.x2]=\"s.x2\"\n [attr.y2]=\"s.y2\"\n [style.stroke]=\"s.gradient ? 'url(#' + id + '-' + s.key + ')' : s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></line>\n }\n @default {\n <path\n [attr.class]=\"shapeClass(s, m.dimOthers)\"\n [attr.d]=\"s.d\"\n [attr.pathLength]=\"s.enter === 'draw' ? 1 : null\"\n [style.fill]=\"s.fade ? 'url(#' + id + '-' + s.key + ')' : s.fill ?? 'none'\"\n [style.fill-opacity]=\"s.opacity ?? null\"\n [style.stroke]=\"s.stroke ?? null\"\n [style.stroke-width]=\"s.strokeWidth ?? null\"\n [style.animation-delay.ms]=\"s.delay ?? null\"\n ></path>\n }\n }\n }\n @for (c of m.cells; track c.key) {\n @for (t of c.texts; track $index) {\n <text\n class=\"wu-chart-cell-text\"\n [class.wu-chart-cell-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-cell-name]=\"t.strong\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n >{{ t.text }}</text>\n }\n }\n @for (g of m.rings; track g.key) {\n <path class=\"wu-chart-track\" [class.wu-chart-round]=\"g.round\" [attr.d]=\"g.track\" [style.stroke-width]=\"g.width\" (pointerenter)=\"hoverSlice(g.index)\"></path>\n @if (g.d) {\n <path\n class=\"wu-chart-ring\"\n [class.wu-chart-round]=\"g.round\"\n [attr.d]=\"g.d\"\n [style.stroke]=\"g.color\"\n [style.stroke-width]=\"g.width\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"g.index\"\n [class.wu-chart-dim]=\"dimSlice(g.index)\"\n (pointerenter)=\"hoverSlice(g.index)\"\n ></path>\n }\n }\n @if (crosshair(); as c) {\n <line class=\"wu-chart-crosshair\" [attr.x1]=\"c.x1\" [attr.y1]=\"c.y1\" [attr.x2]=\"c.x2\" [attr.y2]=\"c.y2\"></line>\n }\n @for (l of m.lines; track l.key) {\n <path class=\"wu-chart-line\" [attr.d]=\"l.d\" [style.stroke]=\"l.color\" [class.wu-chart-dashed]=\"l.dashed\" [class.wu-chart-dim]=\"dim(l.series)\"></path>\n }\n @for (s of m.slices; track s.key) {\n <path\n class=\"wu-chart-slice\"\n [attr.d]=\"s.d\"\n [style.fill]=\"s.color\"\n [style.transform]=\"sliceShift(s)\"\n [attr.data-series]=\"0\"\n [attr.data-index]=\"s.index\"\n [class.wu-chart-dim]=\"dimSlice(s.index)\"\n (pointerenter)=\"hoverSlice(s.index)\"\n ></path>\n }\n @for (d of m.dots; track d.key) {\n @if (d.r > 0 || hovered() === d.index) {\n <circle\n class=\"wu-chart-dot\"\n [class.wu-chart-bubble]=\"kind() === 'scatter'\"\n [attr.cx]=\"d.cx\"\n [attr.cy]=\"d.cy\"\n [attr.r]=\"dotR(d)\"\n [style.stroke]=\"d.color\"\n [style.fill]=\"kind() === 'scatter' ? d.color : null\"\n [attr.data-series]=\"d.series\"\n [attr.data-index]=\"d.index\"\n [class.wu-chart-dim]=\"dim(d.series)\"\n ></circle>\n }\n }\n\n @if (m.radar; as r) {\n @for (t of r.ringLabels; track $index) {\n <text class=\"wu-chart-tick wu-chart-ring-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (k of m.marks; track $index) {\n <circle class=\"wu-chart-mark\" [attr.cx]=\"k.x\" [attr.cy]=\"k.y\" r=\"5\" [style.stroke]=\"k.color\"></circle>\n @if (k.box; as b) {\n <rect class=\"wu-chart-mark-box\" rx=\"6\" [attr.x]=\"b.x\" [attr.y]=\"b.y\" [attr.width]=\"b.w\" [attr.height]=\"b.h\" [style.fill]=\"k.color\"></rect>\n }\n @if (k.label; as t) {\n <text class=\"wu-chart-mark-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n }\n @for (b of m.bands; track $index) {\n @if (b.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"b.color\">{{ t.text }}</text>\n }\n }\n @for (r of m.references; track $index) {\n <line class=\"wu-chart-reference\" [class.wu-chart-dashed]=\"r.dashed\" [attr.x1]=\"r.x1\" [attr.y1]=\"r.y1\" [attr.x2]=\"r.x2\" [attr.y2]=\"r.y2\" [style.stroke]=\"r.color\"></line>\n @if (r.label; as t) {\n <text class=\"wu-chart-reference-label\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [style.fill]=\"r.color\">{{ t.text }}</text>\n }\n }\n\n @for (t of m.texts; track $index) {\n <text\n class=\"wu-chart-text\"\n [class.wu-chart-text-inside]=\"t.tone === 'inside'\"\n [class.wu-chart-text-muted]=\"t.tone === 'muted'\"\n [class.wu-chart-text-strong]=\"t.strong\"\n [class.wu-chart-dim]=\"m.dimOthers && hoverKey() && t.hover && hoverKey() !== t.hover && !hoverKey()!.startsWith(t.hover + '/')\"\n [attr.x]=\"t.x\"\n [attr.y]=\"t.y\"\n [attr.dy]=\"dy(t)\"\n [attr.text-anchor]=\"t.anchor\"\n [attr.transform]=\"rotate(t)\"\n [style.fill]=\"t.color ?? null\"\n >{{ t.text }}</text>\n }\n @for (t of m.valueLabels; track $index) {\n <text class=\"wu-chart-value\" [class.wu-chart-value-inside]=\"t.tone === 'inside'\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.xTicks; track $index) {\n <text class=\"wu-chart-tick\" [class.wu-chart-tick-active]=\"kind() === 'radar' && hovered() === $index\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.yTicks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.y2Ticks; track $index) {\n <text class=\"wu-chart-tick\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\">{{ t.text }}</text>\n }\n @for (t of m.titles; track $index) {\n <text class=\"wu-chart-axis-title\" [attr.x]=\"t.x\" [attr.y]=\"t.y\" [attr.dy]=\"dy(t)\" [attr.text-anchor]=\"t.anchor\" [attr.transform]=\"rotate(t)\">{{ t.text }}</text>\n }\n @if (selection(); as s) {\n <rect class=\"wu-chart-selection\" [attr.x]=\"s.x\" [attr.y]=\"s.y\" [attr.width]=\"s.w\" [attr.height]=\"s.h\"></rect>\n }\n </svg>\n\n @if (center(); as c) {\n <div class=\"wu-chart-center\" [class.wu-chart-center-lift]=\"c.lift\" [style.left.px]=\"c.x\" [style.top.px]=\"c.y\" [style.width.px]=\"c.r * 1.5\" aria-hidden=\"true\">\n <span class=\"wu-chart-center-value\">{{ c.value }}</span>\n <span class=\"wu-chart-center-label\">{{ c.label }}</span>\n @if ($any(c).back) {\n <span class=\"wu-chart-center-back\">\u2190 {{ words().back }}</span>\n }\n </div>\n }\n @if (tip(); as t) {\n <div class=\"wu-chart-tooltip\" [class.wu-chart-tooltip-flip]=\"t.flip\" [style.left.px]=\"t.x\" [style.top.px]=\"t.y\" aria-hidden=\"true\">\n @if (t.title) {\n <div class=\"wu-chart-tooltip-title\">{{ t.title }}</div>\n }\n @for (row of t.rows; track $index) {\n <div class=\"wu-chart-tooltip-row\">\n <span class=\"wu-chart-swatch\" [style.background]=\"row.color\"></span>\n <span class=\"wu-chart-tooltip-name\">{{ row.name }}</span>\n <span class=\"wu-chart-tooltip-value\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n @if (empty()) {\n <div class=\"wu-chart-empty\">{{ emptyText() }}</div>\n }\n }\n </div>\n\n @if (legendPos() !== 'none' && legendItems().length) {\n <ul class=\"wu-chart-legend\">\n @for (item of legendItems(); track item.index) {\n <li>\n <button\n type=\"button\"\n class=\"wu-chart-legend-item\"\n [class.wu-chart-legend-off]=\"item.hidden\"\n [attr.aria-pressed]=\"!item.hidden\"\n (click)=\"toggle(item.index)\"\n (pointerenter)=\"focusSeries.set(item.index)\"\n (pointerleave)=\"focusSeries.set(null)\"\n (focus)=\"focusSeries.set(item.index)\"\n (blur)=\"focusSeries.set(null)\"\n >\n <span class=\"wu-chart-swatch\" [class.wu-chart-swatch-line]=\"item.shape === 'line'\" [class.wu-chart-swatch-dot]=\"item.shape === 'dot'\" [style.background]=\"item.color\"></span>\n <span class=\"wu-chart-legend-name\">{{ item.name }}</span>\n </button>\n </li>\n }\n </ul>\n }\n </div>\n\n <div class=\"wu-chart-sr\">\n <table [id]=\"id + '-table'\">\n @if (heading()) {\n <caption>{{ heading() }}</caption>\n }\n <thead>\n <tr>\n <th></th>\n @for (h of table().head; track $index) {\n <th scope=\"col\">{{ h }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of table().rows; track $index) {\n <tr>\n @for (cell of row; track $index; let first = $first) {\n @if (first) {\n <th scope=\"row\">{{ cell }}</th>\n } @else {\n <td>{{ cell }}</td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n <div class=\"wu-chart-sr\" aria-live=\"polite\">{{ liveText() }}</div>\n</div>\n", styles: ["@layer wiraui.components{wu-chart{display:block;min-width:0}.wu-chart{position:relative;display:flex;flex-direction:column;gap:var(--wu-chart-gap);color:var(--wu-chart-text);font-family:var(--wu-chart-font-family);font-size:var(--wu-chart-font-size);line-height:var(--wu-line-height)}.wu-chart-title{color:var(--wu-chart-title-color);font-size:var(--wu-chart-title-size);font-weight:var(--wu-chart-title-weight)}.wu-chart-subtitle{color:var(--wu-chart-text)}.wu-chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--wu-chart-gap)}.wu-chart-heading{min-width:0}.wu-chart-toolbar{display:flex;flex:none;gap:.125rem;margin-left:auto}.wu-chart-tool-wrap{position:relative;display:inline-flex}.wu-chart-tool{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition)}.wu-chart-tool svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.wu-chart-tool:hover:not(:disabled){background:var(--wu-hover-bg);color:var(--wu-chart-title-color)}.wu-chart-tool:disabled{opacity:.4;cursor:default}.wu-chart-tool:focus-visible,.wu-chart-menu button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-menu{position:absolute;top:calc(100% + .25rem);right:0;z-index:2;display:flex;flex-direction:column;min-width:6rem;padding:.25rem;border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow)}.wu-chart-menu button{padding:.375rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-tooltip-color);font:inherit;text-align:left;cursor:pointer}.wu-chart-menu button:hover{background:var(--wu-hover-bg)}.wu-chart-main{display:flex;flex-direction:column;gap:var(--wu-chart-gap);min-width:0}.wu-chart-legend-top .wu-chart-legend{order:-1}.wu-chart-legend-right .wu-chart-main{flex-direction:row;flex-wrap:wrap;align-items:center}.wu-chart-legend-right .wu-chart-body{flex:1 1 16rem}.wu-chart-legend-right .wu-chart-legend{flex:0 1 auto;flex-direction:column;align-items:flex-start}.wu-chart-body{position:relative;min-width:0;width:100%}.wu-chart-svg{display:block;max-width:100%;overflow:visible;font-family:inherit;border-radius:var(--wu-radius-sm);outline-color:transparent;-webkit-user-select:none;user-select:none}.wu-chart-zoomable{cursor:crosshair;touch-action:pan-y}.wu-chart-selection{fill:var(--wu-chart-selection);stroke:var(--wu-chart-mark-color);stroke-width:1;stroke-dasharray:4 3;pointer-events:none}.wu-chart-svg:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-chart-grid line,.wu-chart-web path,.wu-chart-web line{fill:none;stroke:var(--wu-chart-grid);stroke-width:1;shape-rendering:crispEdges}.wu-chart-web path,.wu-chart-web line{shape-rendering:auto}.wu-chart-zero{stroke:var(--wu-chart-axis);stroke-width:1;shape-rendering:crispEdges}.wu-chart-tick,.wu-chart-axis-title,.wu-chart-value,.wu-chart-reference-label{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size)}.wu-chart-axis-title{font-weight:600}.wu-chart-ring-label{paint-order:stroke;stroke:var(--wu-chart-dot-fill);stroke-width:3px;stroke-linejoin:round;pointer-events:none}.wu-chart-tick-active{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-value{fill:var(--wu-chart-value-color);font-weight:600;pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-entering .wu-chart-value{opacity:0}.wu-chart-value-inside{fill:var(--wu-chart-value-inside-color);paint-order:stroke;stroke:#00000040;stroke-width:2px}.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot{transition:opacity var(--wu-transition),transform var(--wu-transition)}.wu-chart-bar{cursor:pointer}.wu-chart-slice{cursor:pointer;stroke:var(--wu-chart-slice-border);stroke-width:1.5}.wu-chart-area{opacity:var(--wu-chart-area-opacity)}.wu-chart-area-fade{opacity:1}.wu-chart-fade-from{stop-opacity:var(--wu-chart-gradient-from)}.wu-chart-fade-to{stop-opacity:var(--wu-chart-gradient-to)}.wu-chart-area-fade.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-track,.wu-chart-ring{fill:none}.wu-chart-track{stroke:var(--wu-chart-track)}.wu-chart-ring{cursor:pointer;transition:opacity var(--wu-transition)}.wu-chart-round{stroke-linecap:round}.wu-chart-cell{cursor:pointer;transform-box:fill-box;transform-origin:center;animation:wu-chart-cell-in .45s ease-out backwards;transition:opacity var(--wu-transition),fill-opacity var(--wu-transition)}.wu-chart-cell-active{stroke:var(--wu-chart-title-color);stroke-width:2}.wu-chart-cell-text{fill:var(--wu-chart-value-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none;animation:wu-chart-fade-in .45s ease-out backwards}.wu-chart-cell-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-cell-name{font-weight:700}@keyframes wu-chart-cell-in{0%{opacity:0;transform:scale(.85)}}@keyframes wu-chart-fade-in{0%{opacity:0}}.wu-chart-shape{transition:opacity var(--wu-transition),filter var(--wu-transition)}.wu-chart-lit{filter:brightness(1.08) saturate(1.1)}.wu-chart-stream{stroke:var(--wu-chart-slice-border);stroke-width:1}.wu-chart-sun{stroke:var(--wu-chart-slice-border);stroke-width:1;cursor:pointer}.wu-chart-line-shape{fill:none;stroke-linecap:round;stroke-linejoin:round}.wu-chart-connector,.wu-chart-whisker,.wu-chart-median{stroke-linecap:round}line.wu-chart-shape{stroke-linecap:round}.wu-chart-text{fill:var(--wu-chart-text);font-size:var(--wu-chart-font-size);pointer-events:none;transition:opacity var(--wu-transition)}.wu-chart-text-strong{fill:var(--wu-chart-title-color);font-weight:600}.wu-chart-text-inside{fill:var(--wu-chart-value-inside-color)}.wu-chart-text-muted{fill:var(--wu-chart-muted);font-weight:600}.wu-chart-in-grow,.wu-chart-in-grow-x,.wu-chart-in-pop{transform-box:fill-box}.wu-chart-in-grow{transform-origin:center bottom;animation:wu-chart-grow .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-grow-x{transform-origin:left center;animation:wu-chart-grow-x .6s cubic-bezier(.2,.8,.2,1) backwards}.wu-chart-in-pop{transform-origin:center;animation:wu-chart-pop .45s cubic-bezier(.3,1.5,.6,1) backwards}.wu-chart-in-fade{animation:wu-chart-fade-in .5s ease-out backwards}.wu-chart-in-draw{stroke-dasharray:1;animation:wu-chart-draw .9s ease-out backwards}@keyframes wu-chart-grow{0%{transform:scaleY(0)}}@keyframes wu-chart-grow-x{0%{transform:scaleX(0)}}@keyframes wu-chart-pop{0%{opacity:0;transform:scale(.4)}}@keyframes wu-chart-draw{0%{stroke-dashoffset:1}}.wu-chart-swap{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;min-width:0;gap:.125rem;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-swap+.wu-chart-toolbar,.wu-chart-looks+.wu-chart-swap,.wu-chart-looks+.wu-chart-toolbar{margin-left:0}.wu-chart-looks{display:inline-flex;flex:0 1 auto;flex-wrap:wrap;gap:.125rem;min-width:0;margin-left:auto;padding:.1875rem;border-radius:var(--wu-radius-md);background:var(--wu-chart-track)}.wu-chart-look-item{min-height:1.75rem;padding:.125rem .625rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-look-item:hover{color:var(--wu-chart-title-color)}.wu-chart-look-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-look-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-swap-item{display:inline-flex;align-items:center;justify-content:center;width:1.875rem;height:1.75rem;padding:0;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-toolbar-color);cursor:pointer;transition:background var(--wu-transition),color var(--wu-transition),box-shadow var(--wu-transition)}.wu-chart-swap-item svg{width:1.0625rem;height:1.0625rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-chart-swap-item:hover{color:var(--wu-chart-title-color)}.wu-chart-swap-on{background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-mark-color)}.wu-chart-swap-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-ghost{position:absolute;top:0;left:0;pointer-events:none;animation:wu-chart-ghost-out .48s ease-in forwards}@keyframes wu-chart-ghost-out{to{opacity:0;filter:blur(2px);transform:scale(.97)}}.wu-chart-center-back{margin-top:.125rem;color:var(--wu-chart-mark-color);font-size:.75em;font-weight:600}.wu-chart-band{fill-opacity:var(--wu-chart-band-opacity);pointer-events:none}.wu-chart-mark{fill:var(--wu-chart-dot-fill);stroke-width:2.5;pointer-events:none}.wu-chart-mark-box{pointer-events:none}.wu-chart-mark-label{fill:var(--wu-chart-value-inside-color);font-size:var(--wu-chart-font-size);font-weight:600;pointer-events:none}.wu-chart-line{fill:none;stroke-width:var(--wu-chart-line-width);stroke-linecap:round;stroke-linejoin:round}.wu-chart-dashed{stroke-dasharray:6 5}.wu-chart-radar{fill-opacity:var(--wu-chart-area-opacity);stroke-width:var(--wu-chart-line-width);stroke-linejoin:round}.wu-chart-dot{fill:var(--wu-chart-dot-fill);stroke-width:2;cursor:pointer}.wu-chart-bubble{fill-opacity:.7;stroke-width:1.5}.wu-chart-dim{opacity:var(--wu-chart-dim-opacity)}.wu-chart-area.wu-chart-dim{opacity:calc(var(--wu-chart-area-opacity) * var(--wu-chart-dim-opacity))}.wu-chart-crosshair{stroke:var(--wu-chart-crosshair);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.wu-chart-reference{stroke-width:1.5}.wu-chart-reference-label{font-weight:600}.wu-chart-center{position:absolute;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.wu-chart-center-value{color:var(--wu-chart-title-color);font-size:var(--wu-chart-center-size);font-weight:700;line-height:1.2;overflow-wrap:anywhere}.wu-chart-center-label{color:var(--wu-chart-text)}.wu-chart-center-lift{transform:translate(-50%,calc(-100% - .25rem))}.wu-chart-sparkline{gap:0}.wu-chart-tooltip{position:absolute;z-index:1;min-width:8rem;max-width:18rem;padding:var(--wu-chart-tooltip-padding);border:1px solid var(--wu-chart-tooltip-border);border-radius:var(--wu-chart-tooltip-radius);background:var(--wu-chart-tooltip-bg);box-shadow:var(--wu-chart-tooltip-shadow);color:var(--wu-chart-tooltip-color);transform:translate(14px,-50%);pointer-events:none;white-space:nowrap}.wu-chart-tooltip-flip{transform:translate(calc(-100% - 14px),-50%)}.wu-chart-tooltip-title{margin-bottom:.25rem;font-weight:600}.wu-chart-tooltip-row{display:flex;align-items:center;gap:.5rem}.wu-chart-tooltip-name{flex:1;overflow:hidden;text-overflow:ellipsis}.wu-chart-tooltip-value{font-weight:600;font-variant-numeric:tabular-nums}.wu-chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .75rem;margin:0;padding:0;list-style:none}.wu-chart-legend-item{display:inline-flex;align-items:center;gap:.4rem;min-height:1.75rem;padding:.125rem .375rem;border:0;border-radius:var(--wu-radius-sm);background:transparent;color:var(--wu-chart-legend-color);font:inherit;cursor:pointer;transition:opacity var(--wu-transition),background var(--wu-transition)}.wu-chart-legend-item:hover{background:var(--wu-hover-bg)}.wu-chart-legend-item:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:0;box-shadow:var(--wu-control-focus-shadow)}.wu-chart-legend-off{opacity:.45}.wu-chart-legend-off .wu-chart-legend-name{text-decoration:line-through}.wu-chart-swatch{flex:none;width:.75rem;height:.75rem;border-radius:3px}.wu-chart-swatch-line{height:3px;border-radius:2px}.wu-chart-swatch-dot{border-radius:50%}.wu-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--wu-chart-text)}.wu-chart-sr{position:absolute!important;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.wu-chart-bar,.wu-chart-slice,.wu-chart-area,.wu-chart-line,.wu-chart-radar,.wu-chart-dot,.wu-chart-ring,.wu-chart-legend-item{transition:none}.wu-chart-cell,.wu-chart-cell-text,.wu-chart-shape,.wu-chart-ghost{animation:none}}}\n"] }]
|
|
1203
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], font: [{ type: i0.Input, args: [{ isSignal: true, alias: "font", required: false }] }], fontSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSize", required: false }] }], horizontal: [{ type: i0.Input, args: [{ isSignal: true, alias: "horizontal", required: false }] }], stacked: [{ type: i0.Input, args: [{ isSignal: true, alias: "stacked", required: false }] }], smooth: [{ type: i0.Input, args: [{ isSignal: true, alias: "smooth", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], gradient: [{ type: i0.Input, args: [{ isSignal: true, alias: "gradient", required: false }] }], sparkline: [{ type: i0.Input, args: [{ isSignal: true, alias: "sparkline", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], bins: [{ type: i0.Input, args: [{ isSignal: true, alias: "bins", required: false }] }], swap: [{ type: i0.Input, args: [{ isSignal: true, alias: "swap", required: false }] }], looks: [{ type: i0.Input, args: [{ isSignal: true, alias: "looks", required: false }] }], points: [{ type: i0.Input, args: [{ isSignal: true, alias: "points", required: false }] }], grid: [{ type: i0.Input, args: [{ isSignal: true, alias: "grid", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], rightFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightFormat", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], lang: [{ type: i0.Input, args: [{ isSignal: true, alias: "lang", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], beginAtZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "beginAtZero", required: false }] }], rightMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightMin", required: false }] }], rightMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightMax", required: false }] }], xTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "xTitle", required: false }] }], yTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "yTitle", required: false }] }], y2Title: [{ type: i0.Input, args: [{ isSignal: true, alias: "y2Title", required: false }] }], referenceLines: [{ type: i0.Input, args: [{ isSignal: true, alias: "referenceLines", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], colorRanges: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorRanges", required: false }] }], startAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAngle", required: false }] }], endAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "endAngle", required: false }] }], toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], zoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoom", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: false }] }], colors: [{ type: i0.Input, args: [{ isSignal: true, alias: "colors", required: false }] }], barRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "barRadius", required: false }] }], cutout: [{ type: i0.Input, args: [{ isSignal: true, alias: "cutout", required: false }] }], centerValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerValue", required: false }] }], centerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerLabel", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], pointClick: [{ type: i0.Output, args: ["pointClick"] }], seriesToggle: [{ type: i0.Output, args: ["seriesToggle"] }], zoomChange: [{ type: i0.Output, args: ["zoomChange"] }], typeChange: [{ type: i0.Output, args: ["typeChange"] }], variantChange: [{ type: i0.Output, args: ["variantChange"] }], body: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }], svgRef: [{ type: i0.ViewChild, args: ['svg', { isSignal: true }] }] } });
|
|
1204
|
+
/** An axis part-way (`t` 0–1) from `from` to `to`; the ticks are the final ones, moving into place. */
|
|
1205
|
+
function slide(from, to, t) {
|
|
1206
|
+
if (!to)
|
|
1207
|
+
return undefined;
|
|
1208
|
+
if (!from)
|
|
1209
|
+
return to;
|
|
1210
|
+
return { min: from.min + (to.min - from.min) * t, max: from.max + (to.max - from.max) * t, ticks: to.ticks };
|
|
1211
|
+
}
|
|
1212
|
+
function optionalNumber(v) {
|
|
1213
|
+
return v === null || v === undefined || v === '' || !Number.isFinite(Number(v)) ? undefined : Number(v);
|
|
1214
|
+
}
|
|
1215
|
+
/** Chart.js `cutout: '60%'` → 0.6. */
|
|
1216
|
+
function cutoutOf(v) {
|
|
1217
|
+
if (typeof v === 'number')
|
|
1218
|
+
return v > 1 ? undefined : v;
|
|
1219
|
+
if (typeof v === 'string' && /%$/.test(v))
|
|
1220
|
+
return Number(v.slice(0, -1)) / 100;
|
|
1221
|
+
return undefined;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* The frame part-way (`t` 0–1) from `from` to `to`: shown values move from where they were (or from 0), a series being
|
|
1225
|
+
* hidden shrinks to nothing before it goes, and pie slices being hidden shrink the same way (their value is 0 in `to`).
|
|
1226
|
+
*/
|
|
1227
|
+
function between(from, to, t) {
|
|
1228
|
+
const series = to.series.map((s, i) => {
|
|
1229
|
+
const prev = from?.series[i];
|
|
1230
|
+
const wasShown = !!prev && !prev.hidden;
|
|
1231
|
+
if (s.hidden && !wasShown)
|
|
1232
|
+
return s;
|
|
1233
|
+
const data = s.data.map((v, k) => {
|
|
1234
|
+
const p = wasShown ? prev.data[k] : 0;
|
|
1235
|
+
const a = typeof p === 'number' && Number.isFinite(p) ? p : 0;
|
|
1236
|
+
if (s.hidden)
|
|
1237
|
+
return a * (1 - t);
|
|
1238
|
+
return typeof v === 'number' ? a + (v - a) * t : v;
|
|
1239
|
+
});
|
|
1240
|
+
return { ...s, data, hidden: false };
|
|
1241
|
+
});
|
|
1242
|
+
// Slices hidden before and after stay hidden; ones on their way out shrink first.
|
|
1243
|
+
const hiddenSlices = from ? from.hiddenSlices.filter((k) => to.hiddenSlices.includes(k)) : to.hiddenSlices;
|
|
1244
|
+
return { labels: to.labels, series, hiddenSlices };
|
|
1245
|
+
}
|
|
43
1246
|
|
|
44
1247
|
/** For NgModule apps. Standalone apps can import `WuChart` directly. */
|
|
45
1248
|
class WuChartModule {
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
48
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1250
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, imports: [WuChart], exports: [WuChart] }); }
|
|
1251
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule }); }
|
|
49
1252
|
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuChartModule, decorators: [{
|
|
51
1254
|
type: NgModule,
|
|
52
1255
|
args: [{
|
|
53
1256
|
imports: [WuChart],
|