@wirabyte/ui 0.0.0-stage → 1.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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/accordion/accordion.component.d.ts +126 -0
- package/accordion/accordion.module.d.ts +9 -0
- package/accordion/accordion.types.d.ts +10 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/public-api.d.ts +3 -0
- package/alert/alert-dialog.base.d.ts +79 -0
- package/alert/alert-dialog.component.d.ts +8 -0
- package/alert/alert.module.d.ts +8 -0
- package/alert/alert.service.d.ts +76 -0
- package/alert/alert.types.d.ts +87 -0
- package/alert/index.d.ts +5 -0
- package/alert/public-api.d.ts +5 -0
- package/animate/animate.directive.d.ts +34 -0
- package/animate/animate.module.d.ts +11 -0
- package/animate/animate.service.d.ts +36 -0
- package/animate/animate.styles.d.ts +2 -0
- package/animate/animate.types.d.ts +20 -0
- package/animate/index.d.ts +5 -0
- package/animate/public-api.d.ts +4 -0
- package/api/index.d.ts +5 -0
- package/api/public-api.d.ts +15 -0
- package/api/shared.module.d.ts +8 -0
- package/asidemenu/asidemenu.component.d.ts +221 -0
- package/asidemenu/asidemenu.module.d.ts +9 -0
- package/asidemenu/index.d.ts +5 -0
- package/asidemenu/public-api.d.ts +2 -0
- package/autocomplete/autocomplete.base.d.ts +181 -0
- package/autocomplete/autocomplete.component.d.ts +10 -0
- package/autocomplete/autocomplete.module.d.ts +9 -0
- package/autocomplete/autocomplete.types.d.ts +10 -0
- package/autocomplete/index.d.ts +5 -0
- package/autocomplete/public-api.d.ts +4 -0
- package/avatar/avatar.component.d.ts +38 -0
- package/avatar/avatar.module.d.ts +8 -0
- package/avatar/avatar.types.d.ts +2 -0
- package/avatar/index.d.ts +5 -0
- package/avatar/public-api.d.ts +3 -0
- package/badge/badge.component.d.ts +20 -0
- package/badge/badge.directive.d.ts +32 -0
- package/badge/badge.module.d.ts +9 -0
- package/badge/badge.styles.d.ts +2 -0
- package/badge/badge.types.d.ts +3 -0
- package/badge/index.d.ts +5 -0
- package/badge/public-api.d.ts +4 -0
- package/blockui/blockui.component.d.ts +41 -0
- package/blockui/blockui.module.d.ts +8 -0
- package/blockui/index.d.ts +5 -0
- package/blockui/public-api.d.ts +2 -0
- package/bottombar/bottombar.component.d.ts +79 -0
- package/bottombar/bottombar.module.d.ts +9 -0
- package/bottombar/index.d.ts +5 -0
- package/bottombar/public-api.d.ts +2 -0
- package/breadcrumb/breadcrumb.component.d.ts +41 -0
- package/breadcrumb/breadcrumb.module.d.ts +8 -0
- package/breadcrumb/index.d.ts +5 -0
- package/breadcrumb/public-api.d.ts +2 -0
- package/button/button-class.d.ts +8 -0
- package/button/button.component.d.ts +69 -0
- package/button/button.directive.d.ts +53 -0
- package/button/button.module.d.ts +9 -0
- package/button/button.styles.d.ts +2 -0
- package/button/button.types.d.ts +8 -0
- package/button/index.d.ts +5 -0
- package/button/public-api.d.ts +7 -0
- package/card/card-slots.d.ts +11 -0
- package/card/card.component.d.ts +41 -0
- package/card/card.module.d.ts +10 -0
- package/card/card.types.d.ts +5 -0
- package/card/index.d.ts +5 -0
- package/card/public-api.d.ts +4 -0
- package/carousel/carousel.component.d.ts +169 -0
- package/carousel/carousel.module.d.ts +10 -0
- package/carousel/carousel.types.d.ts +21 -0
- package/carousel/index.d.ts +5 -0
- package/carousel/public-api.d.ts +3 -0
- package/chart/chart.component.d.ts +11 -0
- package/chart/chart.module.d.ts +8 -0
- package/chart/index.d.ts +5 -0
- package/chart/public-api.d.ts +3 -0
- package/chartjs/chartjs.base.d.ts +70 -0
- package/chartjs/chartjs.component.d.ts +10 -0
- package/chartjs/chartjs.module.d.ts +8 -0
- package/chartjs/chartjs.types.d.ts +8 -0
- package/chartjs/index.d.ts +5 -0
- package/chartjs/public-api.d.ts +4 -0
- package/checkbox/checkbox.component.d.ts +59 -0
- package/checkbox/checkbox.module.d.ts +8 -0
- package/checkbox/checkbox.styles.d.ts +2 -0
- package/checkbox/checkbox.types.d.ts +4 -0
- package/checkbox/index.d.ts +5 -0
- package/checkbox/public-api.d.ts +5 -0
- package/chip/chip.component.d.ts +36 -0
- package/chip/chip.module.d.ts +8 -0
- package/chip/index.d.ts +5 -0
- package/chip/public-api.d.ts +2 -0
- package/colorpicker/colorpicker.component.d.ts +87 -0
- package/colorpicker/colorpicker.module.d.ts +8 -0
- package/colorpicker/index.d.ts +5 -0
- package/colorpicker/public-api.d.ts +2 -0
- package/config/forms.d.ts +17 -0
- package/config/index.d.ts +5 -0
- package/config/initializer.d.ts +3 -0
- package/config/menu-item.d.ts +52 -0
- package/config/options.d.ts +48 -0
- package/config/popup.d.ts +48 -0
- package/config/provide.d.ts +23 -0
- package/config/public-api.d.ts +17 -0
- package/config/ripple.d.ts +2 -0
- package/config/scroll-lock.d.ts +5 -0
- package/config/severity.d.ts +5 -0
- package/config/style-loader.d.ts +12 -0
- package/config/template.d.ts +19 -0
- package/config/theme.service.d.ts +46 -0
- package/config/version-guard.d.ts +14 -0
- package/config/version.d.ts +6 -0
- package/config/wu-config.service.d.ts +24 -0
- package/confirmdialog/confirmation.service.d.ts +25 -0
- package/confirmdialog/confirmdialog.base.d.ts +110 -0
- package/confirmdialog/confirmdialog.component.d.ts +11 -0
- package/confirmdialog/confirmdialog.module.d.ts +9 -0
- package/confirmdialog/confirmdialog.types.d.ts +37 -0
- package/confirmdialog/index.d.ts +5 -0
- package/confirmdialog/public-api.d.ts +5 -0
- package/contextmenu/contextmenu.component.d.ts +47 -0
- package/contextmenu/contextmenu.module.d.ts +8 -0
- package/contextmenu/index.d.ts +5 -0
- package/contextmenu/public-api.d.ts +2 -0
- package/core/carousel.d.ts +27 -0
- package/core/catalog.d.ts +446 -0
- package/core/chart/format.d.ts +19 -0
- package/core/chart/index.d.ts +6 -0
- package/core/chart/kinds.d.ts +78 -0
- package/core/chart/model.d.ts +500 -0
- package/core/chart/more.d.ts +33 -0
- package/core/chart/paths.d.ts +41 -0
- package/core/chart/scale.d.ts +22 -0
- package/core/color.d.ts +31 -0
- package/core/colorpicker.d.ts +23 -0
- package/core/compat.d.ts +11 -0
- package/core/config.d.ts +64 -0
- package/core/date.d.ts +130 -0
- package/core/datepicker.d.ts +184 -0
- package/core/dock.d.ts +6 -0
- package/core/editor.d.ts +117 -0
- package/core/errorpage.d.ts +15 -0
- package/core/excel.d.ts +239 -0
- package/core/exporters.d.ts +18 -0
- package/core/families.d.ts +13 -0
- package/core/fileupload.d.ts +24 -0
- package/core/flow/changes.d.ts +63 -0
- package/core/flow/edges.d.ts +52 -0
- package/core/flow/export.d.ts +56 -0
- package/core/flow/geometry.d.ts +117 -0
- package/core/flow/graph.d.ts +104 -0
- package/core/flow/history.d.ts +54 -0
- package/core/flow/index.d.ts +13 -0
- package/core/flow/interaction.d.ts +140 -0
- package/core/flow/layout.d.ts +57 -0
- package/core/flow/paths.d.ts +76 -0
- package/core/flow/text.d.ts +18 -0
- package/core/flow/types.d.ts +217 -0
- package/core/flow/viewport.d.ts +48 -0
- package/core/i18n.d.ts +24 -0
- package/core/imagecompare.d.ts +12 -0
- package/core/imagecropper.d.ts +183 -0
- package/core/index.d.ts +39 -0
- package/core/inputotp.d.ts +20 -0
- package/core/knob.d.ts +28 -0
- package/core/mask.d.ts +43 -0
- package/core/menu.d.ts +29 -0
- package/core/number.d.ts +66 -0
- package/core/organizationchart.d.ts +39 -0
- package/core/overrides.d.ts +109 -0
- package/core/picklist.d.ts +81 -0
- package/core/select.d.ts +44 -0
- package/core/splitter.d.ts +17 -0
- package/core/table.d.ts +48 -0
- package/core/terminal.d.ts +12 -0
- package/core/thai/buddhist.d.ts +22 -0
- package/core/thai/locale.d.ts +358 -0
- package/core/thai/text.d.ts +32 -0
- package/core/thai/thai-id.d.ts +6 -0
- package/core/tokens.d.ts +69 -0
- package/core/tree.d.ts +50 -0
- package/core/validation.d.ts +18 -0
- package/datepicker/datepicker.component.d.ts +275 -0
- package/datepicker/datepicker.module.d.ts +8 -0
- package/datepicker/datepicker.types.d.ts +10 -0
- package/datepicker/index.d.ts +5 -0
- package/datepicker/public-api.d.ts +3 -0
- package/dialog/dialog.base.d.ts +147 -0
- package/dialog/dialog.component.d.ts +11 -0
- package/dialog/dialog.module.d.ts +10 -0
- package/dialog/dialog.service.d.ts +104 -0
- package/dialog/dialog.types.d.ts +3 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/public-api.d.ts +5 -0
- package/divider/divider.component.d.ts +20 -0
- package/divider/divider.module.d.ts +8 -0
- package/divider/divider.types.d.ts +4 -0
- package/divider/index.d.ts +5 -0
- package/divider/public-api.d.ts +3 -0
- package/dock/dock.component.d.ts +88 -0
- package/dock/dock.module.d.ts +9 -0
- package/dock/index.d.ts +5 -0
- package/dock/public-api.d.ts +2 -0
- package/dragdrop/dragdrop.directive.d.ts +65 -0
- package/dragdrop/dragdrop.module.d.ts +8 -0
- package/dragdrop/dragdrop.styles.d.ts +2 -0
- package/dragdrop/index.d.ts +5 -0
- package/dragdrop/public-api.d.ts +2 -0
- package/drawer/drawer.component.d.ts +102 -0
- package/drawer/drawer.module.d.ts +8 -0
- package/drawer/index.d.ts +5 -0
- package/drawer/public-api.d.ts +5 -0
- package/editor/editor-content.directive.d.ts +10 -0
- package/editor/editor-icon.directive.d.ts +8 -0
- package/editor/editor.base.d.ts +367 -0
- package/editor/editor.component.d.ts +11 -0
- package/editor/editor.dom.d.ts +91 -0
- package/editor/editor.icons.d.ts +13 -0
- package/editor/editor.module.d.ts +10 -0
- package/editor/editor.styles.d.ts +2 -0
- package/editor/editor.types.d.ts +92 -0
- package/editor/index.d.ts +5 -0
- package/editor/public-api.d.ts +6 -0
- package/emptystate/emptystate.component.d.ts +44 -0
- package/emptystate/emptystate.module.d.ts +8 -0
- package/emptystate/index.d.ts +5 -0
- package/emptystate/public-api.d.ts +2 -0
- package/errorpage/errorpage.component.d.ts +73 -0
- package/errorpage/errorpage.module.d.ts +8 -0
- package/errorpage/index.d.ts +5 -0
- package/errorpage/public-api.d.ts +2 -0
- package/esm2020/accordion/accordion.component.mjs +376 -0
- package/esm2020/accordion/accordion.module.mjs +19 -0
- package/esm2020/accordion/accordion.types.mjs +17 -0
- package/esm2020/accordion/public-api.mjs +4 -0
- package/esm2020/accordion/wirabyte-ui-accordion.mjs +5 -0
- package/esm2020/alert/alert-dialog.base.mjs +355 -0
- package/esm2020/alert/alert-dialog.component.mjs +21 -0
- package/esm2020/alert/alert.module.mjs +17 -0
- package/esm2020/alert/alert.service.mjs +142 -0
- package/esm2020/alert/alert.types.mjs +2 -0
- package/esm2020/alert/public-api.mjs +6 -0
- package/esm2020/alert/wirabyte-ui-alert.mjs +5 -0
- package/esm2020/animate/animate.directive.mjs +71 -0
- package/esm2020/animate/animate.module.mjs +21 -0
- package/esm2020/animate/animate.service.mjs +183 -0
- package/esm2020/animate/animate.styles.mjs +3 -0
- package/esm2020/animate/animate.types.mjs +2 -0
- package/esm2020/animate/public-api.mjs +5 -0
- package/esm2020/animate/wirabyte-ui-animate.mjs +5 -0
- package/esm2020/api/public-api.mjs +11 -0
- package/esm2020/api/shared.module.mjs +17 -0
- package/esm2020/api/wirabyte-ui-api.mjs +5 -0
- package/esm2020/asidemenu/asidemenu.component.mjs +811 -0
- package/esm2020/asidemenu/asidemenu.module.mjs +18 -0
- package/esm2020/asidemenu/public-api.mjs +3 -0
- package/esm2020/asidemenu/wirabyte-ui-asidemenu.mjs +5 -0
- package/esm2020/autocomplete/autocomplete.base.mjs +567 -0
- package/esm2020/autocomplete/autocomplete.component.mjs +24 -0
- package/esm2020/autocomplete/autocomplete.module.mjs +18 -0
- package/esm2020/autocomplete/autocomplete.types.mjs +2 -0
- package/esm2020/autocomplete/public-api.mjs +5 -0
- package/esm2020/autocomplete/wirabyte-ui-autocomplete.mjs +5 -0
- package/esm2020/avatar/avatar.component.mjs +81 -0
- package/esm2020/avatar/avatar.module.mjs +17 -0
- package/esm2020/avatar/avatar.types.mjs +2 -0
- package/esm2020/avatar/public-api.mjs +4 -0
- package/esm2020/avatar/wirabyte-ui-avatar.mjs +5 -0
- package/esm2020/badge/badge.component.mjs +52 -0
- package/esm2020/badge/badge.directive.mjs +111 -0
- package/esm2020/badge/badge.module.mjs +18 -0
- package/esm2020/badge/badge.styles.mjs +3 -0
- package/esm2020/badge/badge.types.mjs +2 -0
- package/esm2020/badge/public-api.mjs +5 -0
- package/esm2020/badge/wirabyte-ui-badge.mjs +5 -0
- package/esm2020/blockui/blockui.component.mjs +152 -0
- package/esm2020/blockui/blockui.module.mjs +17 -0
- package/esm2020/blockui/public-api.mjs +3 -0
- package/esm2020/blockui/wirabyte-ui-blockui.mjs +5 -0
- package/esm2020/bottombar/bottombar.component.mjs +209 -0
- package/esm2020/bottombar/bottombar.module.mjs +18 -0
- package/esm2020/bottombar/public-api.mjs +3 -0
- package/esm2020/bottombar/wirabyte-ui-bottombar.mjs +5 -0
- package/esm2020/breadcrumb/breadcrumb.component.mjs +86 -0
- package/esm2020/breadcrumb/breadcrumb.module.mjs +17 -0
- package/esm2020/breadcrumb/public-api.mjs +3 -0
- package/esm2020/breadcrumb/wirabyte-ui-breadcrumb.mjs +5 -0
- package/esm2020/button/button-class.mjs +26 -0
- package/esm2020/button/button.component.mjs +175 -0
- package/esm2020/button/button.directive.mjs +193 -0
- package/esm2020/button/button.module.mjs +18 -0
- package/esm2020/button/button.styles.mjs +3 -0
- package/esm2020/button/button.types.mjs +2 -0
- package/esm2020/button/public-api.mjs +8 -0
- package/esm2020/button/wirabyte-ui-button.mjs +5 -0
- package/esm2020/card/card-slots.mjs +27 -0
- package/esm2020/card/card.component.mjs +88 -0
- package/esm2020/card/card.module.mjs +19 -0
- package/esm2020/card/card.types.mjs +2 -0
- package/esm2020/card/public-api.mjs +5 -0
- package/esm2020/card/wirabyte-ui-card.mjs +5 -0
- package/esm2020/carousel/carousel.component.mjs +617 -0
- package/esm2020/carousel/carousel.module.mjs +19 -0
- package/esm2020/carousel/carousel.types.mjs +2 -0
- package/esm2020/carousel/public-api.mjs +4 -0
- package/esm2020/carousel/wirabyte-ui-carousel.mjs +5 -0
- package/esm2020/chart/chart.component.mjs +42 -0
- package/esm2020/chart/chart.module.mjs +17 -0
- package/esm2020/chart/public-api.mjs +3 -0
- package/esm2020/chart/wirabyte-ui-chart.mjs +5 -0
- package/esm2020/chartjs/chartjs.base.mjs +204 -0
- package/esm2020/chartjs/chartjs.component.mjs +41 -0
- package/esm2020/chartjs/chartjs.module.mjs +17 -0
- package/esm2020/chartjs/chartjs.types.mjs +2 -0
- package/esm2020/chartjs/public-api.mjs +5 -0
- package/esm2020/chartjs/wirabyte-ui-chartjs.mjs +5 -0
- package/esm2020/checkbox/checkbox.component.mjs +140 -0
- package/esm2020/checkbox/checkbox.module.mjs +17 -0
- package/esm2020/checkbox/checkbox.styles.mjs +3 -0
- package/esm2020/checkbox/checkbox.types.mjs +2 -0
- package/esm2020/checkbox/public-api.mjs +6 -0
- package/esm2020/checkbox/wirabyte-ui-checkbox.mjs +5 -0
- package/esm2020/chip/chip.component.mjs +76 -0
- package/esm2020/chip/chip.module.mjs +17 -0
- package/esm2020/chip/public-api.mjs +3 -0
- package/esm2020/chip/wirabyte-ui-chip.mjs +5 -0
- package/esm2020/colorpicker/colorpicker.component.mjs +308 -0
- package/esm2020/colorpicker/colorpicker.module.mjs +17 -0
- package/esm2020/colorpicker/public-api.mjs +3 -0
- package/esm2020/colorpicker/wirabyte-ui-colorpicker.mjs +5 -0
- package/esm2020/config/forms.mjs +38 -0
- package/esm2020/config/initializer.mjs +6 -0
- package/esm2020/config/menu-item.mjs +2 -0
- package/esm2020/config/options.mjs +3 -0
- package/esm2020/config/popup.mjs +153 -0
- package/esm2020/config/provide.mjs +45 -0
- package/esm2020/config/public-api.mjs +17 -0
- package/esm2020/config/ripple.mjs +13 -0
- package/esm2020/config/scroll-lock.mjs +31 -0
- package/esm2020/config/severity.mjs +9 -0
- package/esm2020/config/style-loader.mjs +32 -0
- package/esm2020/config/template.mjs +46 -0
- package/esm2020/config/theme.service.mjs +161 -0
- package/esm2020/config/version-guard.mjs +43 -0
- package/esm2020/config/version.mjs +3 -0
- package/esm2020/config/wirabyte-ui-config.mjs +5 -0
- package/esm2020/config/wu-config.service.mjs +50 -0
- package/esm2020/confirmdialog/confirmation.service.mjs +78 -0
- package/esm2020/confirmdialog/confirmdialog.base.mjs +274 -0
- package/esm2020/confirmdialog/confirmdialog.component.mjs +22 -0
- package/esm2020/confirmdialog/confirmdialog.module.mjs +18 -0
- package/esm2020/confirmdialog/confirmdialog.types.mjs +8 -0
- package/esm2020/confirmdialog/public-api.mjs +6 -0
- package/esm2020/confirmdialog/wirabyte-ui-confirmdialog.mjs +5 -0
- package/esm2020/contextmenu/contextmenu.component.mjs +159 -0
- package/esm2020/contextmenu/contextmenu.module.mjs +17 -0
- package/esm2020/contextmenu/public-api.mjs +3 -0
- package/esm2020/contextmenu/wirabyte-ui-contextmenu.mjs +5 -0
- package/esm2020/core/carousel.mjs +62 -0
- package/esm2020/core/catalog.mjs +203 -0
- package/esm2020/core/chart/format.mjs +66 -0
- package/esm2020/core/chart/index.mjs +7 -0
- package/esm2020/core/chart/kinds.mjs +1336 -0
- package/esm2020/core/chart/model.mjs +713 -0
- package/esm2020/core/chart/more.mjs +311 -0
- package/esm2020/core/chart/paths.mjs +160 -0
- package/esm2020/core/chart/scale.mjs +58 -0
- package/esm2020/core/color.mjs +94 -0
- package/esm2020/core/colorpicker.mjs +73 -0
- package/esm2020/core/compat.mjs +149 -0
- package/esm2020/core/config.mjs +163 -0
- package/esm2020/core/date.mjs +317 -0
- package/esm2020/core/datepicker.mjs +526 -0
- package/esm2020/core/dock.mjs +14 -0
- package/esm2020/core/editor.mjs +271 -0
- package/esm2020/core/errorpage.mjs +47 -0
- package/esm2020/core/excel.mjs +809 -0
- package/esm2020/core/exporters.mjs +241 -0
- package/esm2020/core/families.mjs +1756 -0
- package/esm2020/core/fileupload.mjs +48 -0
- package/esm2020/core/flow/changes.mjs +205 -0
- package/esm2020/core/flow/edges.mjs +87 -0
- package/esm2020/core/flow/export.mjs +231 -0
- package/esm2020/core/flow/geometry.mjs +309 -0
- package/esm2020/core/flow/graph.mjs +314 -0
- package/esm2020/core/flow/history.mjs +105 -0
- package/esm2020/core/flow/index.mjs +14 -0
- package/esm2020/core/flow/interaction.mjs +246 -0
- package/esm2020/core/flow/layout.mjs +586 -0
- package/esm2020/core/flow/paths.mjs +252 -0
- package/esm2020/core/flow/text.mjs +68 -0
- package/esm2020/core/flow/types.mjs +7 -0
- package/esm2020/core/flow/viewport.mjs +133 -0
- package/esm2020/core/i18n.mjs +78 -0
- package/esm2020/core/imagecompare.mjs +28 -0
- package/esm2020/core/imagecropper.mjs +483 -0
- package/esm2020/core/index.mjs +40 -0
- package/esm2020/core/inputotp.mjs +50 -0
- package/esm2020/core/knob.mjs +106 -0
- package/esm2020/core/mask.mjs +112 -0
- package/esm2020/core/menu.mjs +77 -0
- package/esm2020/core/number.mjs +131 -0
- package/esm2020/core/organizationchart.mjs +84 -0
- package/esm2020/core/overrides.mjs +169 -0
- package/esm2020/core/picklist.mjs +248 -0
- package/esm2020/core/select.mjs +161 -0
- package/esm2020/core/splitter.mjs +63 -0
- package/esm2020/core/table.mjs +174 -0
- package/esm2020/core/terminal.mjs +29 -0
- package/esm2020/core/thai/buddhist.mjs +129 -0
- package/esm2020/core/thai/locale.mjs +652 -0
- package/esm2020/core/thai/text.mjs +164 -0
- package/esm2020/core/thai/thai-id.mjs +22 -0
- package/esm2020/core/tokens.mjs +314 -0
- package/esm2020/core/tree.mjs +137 -0
- package/esm2020/core/validation.mjs +43 -0
- package/esm2020/core/wirabyte-ui-core.mjs +5 -0
- package/esm2020/datepicker/datepicker.component.mjs +921 -0
- package/esm2020/datepicker/datepicker.module.mjs +17 -0
- package/esm2020/datepicker/datepicker.types.mjs +2 -0
- package/esm2020/datepicker/public-api.mjs +4 -0
- package/esm2020/datepicker/wirabyte-ui-datepicker.mjs +5 -0
- package/esm2020/dialog/dialog.base.mjs +433 -0
- package/esm2020/dialog/dialog.component.mjs +18 -0
- package/esm2020/dialog/dialog.module.mjs +19 -0
- package/esm2020/dialog/dialog.service.mjs +237 -0
- package/esm2020/dialog/dialog.types.mjs +2 -0
- package/esm2020/dialog/public-api.mjs +6 -0
- package/esm2020/dialog/wirabyte-ui-dialog.mjs +5 -0
- package/esm2020/divider/divider.component.mjs +56 -0
- package/esm2020/divider/divider.module.mjs +17 -0
- package/esm2020/divider/divider.types.mjs +2 -0
- package/esm2020/divider/public-api.mjs +4 -0
- package/esm2020/divider/wirabyte-ui-divider.mjs +5 -0
- package/esm2020/dock/dock.component.mjs +287 -0
- package/esm2020/dock/dock.module.mjs +18 -0
- package/esm2020/dock/public-api.mjs +3 -0
- package/esm2020/dock/wirabyte-ui-dock.mjs +5 -0
- package/esm2020/dragdrop/dragdrop.directive.mjs +206 -0
- package/esm2020/dragdrop/dragdrop.module.mjs +17 -0
- package/esm2020/dragdrop/dragdrop.styles.mjs +3 -0
- package/esm2020/dragdrop/public-api.mjs +3 -0
- package/esm2020/dragdrop/wirabyte-ui-dragdrop.mjs +5 -0
- package/esm2020/drawer/drawer.component.mjs +300 -0
- package/esm2020/drawer/drawer.module.mjs +17 -0
- package/esm2020/drawer/public-api.mjs +6 -0
- package/esm2020/drawer/wirabyte-ui-drawer.mjs +5 -0
- package/esm2020/editor/editor-content.directive.mjs +24 -0
- package/esm2020/editor/editor-icon.directive.mjs +24 -0
- package/esm2020/editor/editor.base.mjs +2082 -0
- package/esm2020/editor/editor.component.mjs +20 -0
- package/esm2020/editor/editor.dom.mjs +787 -0
- package/esm2020/editor/editor.icons.mjs +106 -0
- package/esm2020/editor/editor.module.mjs +19 -0
- package/esm2020/editor/editor.styles.mjs +3 -0
- package/esm2020/editor/editor.types.mjs +6 -0
- package/esm2020/editor/public-api.mjs +7 -0
- package/esm2020/editor/wirabyte-ui-editor.mjs +5 -0
- package/esm2020/emptystate/emptystate.component.mjs +78 -0
- package/esm2020/emptystate/emptystate.module.mjs +17 -0
- package/esm2020/emptystate/public-api.mjs +3 -0
- package/esm2020/emptystate/wirabyte-ui-emptystate.mjs +5 -0
- package/esm2020/errorpage/errorpage.component.mjs +163 -0
- package/esm2020/errorpage/errorpage.module.mjs +17 -0
- package/esm2020/errorpage/public-api.mjs +3 -0
- package/esm2020/errorpage/wirabyte-ui-errorpage.mjs +5 -0
- package/esm2020/excel/excel.mjs +35 -0
- package/esm2020/excel/public-api.mjs +3 -0
- package/esm2020/excel/wirabyte-ui-excel.mjs +5 -0
- package/esm2020/fieldset/fieldset.component.mjs +74 -0
- package/esm2020/fieldset/fieldset.module.mjs +18 -0
- package/esm2020/fieldset/public-api.mjs +3 -0
- package/esm2020/fieldset/wirabyte-ui-fieldset.mjs +5 -0
- package/esm2020/fileupload/fileupload.base.mjs +563 -0
- package/esm2020/fileupload/fileupload.component.mjs +19 -0
- package/esm2020/fileupload/fileupload.module.mjs +18 -0
- package/esm2020/fileupload/fileupload.types.mjs +2 -0
- package/esm2020/fileupload/public-api.mjs +5 -0
- package/esm2020/fileupload/wirabyte-ui-fileupload.mjs +5 -0
- package/esm2020/floatlabel/floatlabel.component.mjs +53 -0
- package/esm2020/floatlabel/floatlabel.module.mjs +17 -0
- package/esm2020/floatlabel/floatlabel.types.mjs +2 -0
- package/esm2020/floatlabel/public-api.mjs +4 -0
- package/esm2020/floatlabel/wirabyte-ui-floatlabel.mjs +5 -0
- package/esm2020/flow/flow-background.component.mjs +183 -0
- package/esm2020/flow/flow-controls.component.mjs +267 -0
- package/esm2020/flow/flow-handle.component.mjs +130 -0
- package/esm2020/flow/flow-history.directive.mjs +129 -0
- package/esm2020/flow/flow-host.mjs +7 -0
- package/esm2020/flow/flow-minimap.component.mjs +322 -0
- package/esm2020/flow/flow-node-outlet.mjs +148 -0
- package/esm2020/flow/flow-node-resizer.component.mjs +208 -0
- package/esm2020/flow/flow-node-toolbar.component.mjs +119 -0
- package/esm2020/flow/flow-panel.component.mjs +37 -0
- package/esm2020/flow/flow-templates.mjs +100 -0
- package/esm2020/flow/flow.component.mjs +3245 -0
- package/esm2020/flow/flow.module.mjs +76 -0
- package/esm2020/flow/flow.types.mjs +7 -0
- package/esm2020/flow/public-api.mjs +17 -0
- package/esm2020/flow/wirabyte-ui-flow.mjs +5 -0
- package/esm2020/galleria/galleria.component.mjs +480 -0
- package/esm2020/galleria/galleria.module.mjs +17 -0
- package/esm2020/galleria/public-api.mjs +3 -0
- package/esm2020/galleria/wirabyte-ui-galleria.mjs +5 -0
- package/esm2020/i18n/i18n.module.mjs +37 -0
- package/esm2020/i18n/i18n.service.mjs +148 -0
- package/esm2020/i18n/i18n.types.mjs +3 -0
- package/esm2020/i18n/language-switch.component.mjs +91 -0
- package/esm2020/i18n/public-api.mjs +7 -0
- package/esm2020/i18n/translate.pipe.mjs +52 -0
- package/esm2020/i18n/wirabyte-ui-i18n.mjs +5 -0
- package/esm2020/iconfield/iconfield.component.mjs +73 -0
- package/esm2020/iconfield/iconfield.module.mjs +17 -0
- package/esm2020/iconfield/public-api.mjs +3 -0
- package/esm2020/iconfield/wirabyte-ui-iconfield.mjs +5 -0
- package/esm2020/image/image.base.mjs +183 -0
- package/esm2020/image/image.component.mjs +14 -0
- package/esm2020/image/image.module.mjs +18 -0
- package/esm2020/image/public-api.mjs +4 -0
- package/esm2020/image/wirabyte-ui-image.mjs +5 -0
- package/esm2020/imagecompare/imagecompare.component.mjs +200 -0
- package/esm2020/imagecompare/imagecompare.module.mjs +18 -0
- package/esm2020/imagecompare/public-api.mjs +3 -0
- package/esm2020/imagecompare/wirabyte-ui-imagecompare.mjs +5 -0
- package/esm2020/imagecropper/imagecropper.component.mjs +1253 -0
- package/esm2020/imagecropper/imagecropper.module.mjs +17 -0
- package/esm2020/imagecropper/imagecropper.types.mjs +6 -0
- package/esm2020/imagecropper/public-api.mjs +5 -0
- package/esm2020/imagecropper/wirabyte-ui-imagecropper.mjs +5 -0
- package/esm2020/inplace/inplace.component.mjs +145 -0
- package/esm2020/inplace/inplace.module.mjs +17 -0
- package/esm2020/inplace/public-api.mjs +3 -0
- package/esm2020/inplace/wirabyte-ui-inplace.mjs +5 -0
- package/esm2020/inputgroup/inputgroup.component.mjs +61 -0
- package/esm2020/inputgroup/inputgroup.module.mjs +17 -0
- package/esm2020/inputgroup/public-api.mjs +3 -0
- package/esm2020/inputgroup/wirabyte-ui-inputgroup.mjs +5 -0
- package/esm2020/inputmask/inputmask.base.mjs +319 -0
- package/esm2020/inputmask/inputmask.component.mjs +23 -0
- package/esm2020/inputmask/inputmask.module.mjs +17 -0
- package/esm2020/inputmask/public-api.mjs +4 -0
- package/esm2020/inputmask/wirabyte-ui-inputmask.mjs +5 -0
- package/esm2020/inputnumber/inputnumber.component.mjs +364 -0
- package/esm2020/inputnumber/inputnumber.module.mjs +17 -0
- package/esm2020/inputnumber/inputnumber.types.mjs +2 -0
- package/esm2020/inputnumber/public-api.mjs +4 -0
- package/esm2020/inputnumber/wirabyte-ui-inputnumber.mjs +5 -0
- package/esm2020/inputotp/inputotp.component.mjs +344 -0
- package/esm2020/inputotp/inputotp.module.mjs +18 -0
- package/esm2020/inputotp/inputotp.types.mjs +2 -0
- package/esm2020/inputotp/public-api.mjs +4 -0
- package/esm2020/inputotp/wirabyte-ui-inputotp.mjs +5 -0
- package/esm2020/inputtext/inputtext.directive.mjs +62 -0
- package/esm2020/inputtext/inputtext.module.mjs +17 -0
- package/esm2020/inputtext/inputtext.styles.mjs +3 -0
- package/esm2020/inputtext/inputtext.types.mjs +2 -0
- package/esm2020/inputtext/public-api.mjs +6 -0
- package/esm2020/inputtext/wirabyte-ui-inputtext.mjs +5 -0
- package/esm2020/keyfilter/keyfilter.directive.mjs +131 -0
- package/esm2020/keyfilter/keyfilter.module.mjs +17 -0
- package/esm2020/keyfilter/public-api.mjs +3 -0
- package/esm2020/keyfilter/wirabyte-ui-keyfilter.mjs +5 -0
- package/esm2020/knob/knob.component.mjs +207 -0
- package/esm2020/knob/knob.module.mjs +17 -0
- package/esm2020/knob/public-api.mjs +3 -0
- package/esm2020/knob/wirabyte-ui-knob.mjs +5 -0
- package/esm2020/listbox/listbox.component.mjs +520 -0
- package/esm2020/listbox/listbox.module.mjs +17 -0
- package/esm2020/listbox/public-api.mjs +3 -0
- package/esm2020/listbox/wirabyte-ui-listbox.mjs +5 -0
- package/esm2020/menu/menu.base.mjs +320 -0
- package/esm2020/menu/menu.component.mjs +19 -0
- package/esm2020/menu/menu.module.mjs +18 -0
- package/esm2020/menu/public-api.mjs +4 -0
- package/esm2020/menu/wirabyte-ui-menu.mjs +5 -0
- package/esm2020/menubar/menubar.base.mjs +568 -0
- package/esm2020/menubar/menubar.component.mjs +19 -0
- package/esm2020/menubar/menubar.module.mjs +18 -0
- package/esm2020/menubar/public-api.mjs +4 -0
- package/esm2020/menubar/wirabyte-ui-menubar.mjs +5 -0
- package/esm2020/message/message.component.mjs +107 -0
- package/esm2020/message/message.module.mjs +20 -0
- package/esm2020/message/message.types.mjs +2 -0
- package/esm2020/message/messages.base.mjs +109 -0
- package/esm2020/message/messages.component.mjs +62 -0
- package/esm2020/message/public-api.mjs +6 -0
- package/esm2020/message/wirabyte-ui-message.mjs +5 -0
- package/esm2020/metergroup/metergroup.component.mjs +146 -0
- package/esm2020/metergroup/metergroup.module.mjs +17 -0
- package/esm2020/metergroup/metergroup.types.mjs +26 -0
- package/esm2020/metergroup/public-api.mjs +4 -0
- package/esm2020/metergroup/wirabyte-ui-metergroup.mjs +5 -0
- package/esm2020/multiselect/multiselect.base.mjs +732 -0
- package/esm2020/multiselect/multiselect.component.mjs +26 -0
- package/esm2020/multiselect/multiselect.module.mjs +18 -0
- package/esm2020/multiselect/multiselect.styles.mjs +3 -0
- package/esm2020/multiselect/multiselect.types.mjs +2 -0
- package/esm2020/multiselect/public-api.mjs +6 -0
- package/esm2020/multiselect/wirabyte-ui-multiselect.mjs +5 -0
- package/esm2020/navbar/navbar.component.mjs +460 -0
- package/esm2020/navbar/navbar.module.mjs +18 -0
- package/esm2020/navbar/public-api.mjs +3 -0
- package/esm2020/navbar/wirabyte-ui-navbar.mjs +5 -0
- package/esm2020/orderlist/orderlist.base.mjs +411 -0
- package/esm2020/orderlist/orderlist.component.mjs +17 -0
- package/esm2020/orderlist/orderlist.module.mjs +18 -0
- package/esm2020/orderlist/orderlist.types.mjs +2 -0
- package/esm2020/orderlist/public-api.mjs +5 -0
- package/esm2020/orderlist/wirabyte-ui-orderlist.mjs +5 -0
- package/esm2020/organizationchart/organizationchart.component.mjs +200 -0
- package/esm2020/organizationchart/organizationchart.module.mjs +18 -0
- package/esm2020/organizationchart/organizationchart.types.mjs +2 -0
- package/esm2020/organizationchart/public-api.mjs +4 -0
- package/esm2020/organizationchart/wirabyte-ui-organizationchart.mjs +5 -0
- package/esm2020/paginator/paginator.base.mjs +188 -0
- package/esm2020/paginator/paginator.component.mjs +20 -0
- package/esm2020/paginator/paginator.module.mjs +17 -0
- package/esm2020/paginator/paginator.types.mjs +2 -0
- package/esm2020/paginator/public-api.mjs +5 -0
- package/esm2020/paginator/wirabyte-ui-paginator.mjs +5 -0
- package/esm2020/panel/panel.component.mjs +108 -0
- package/esm2020/panel/panel.module.mjs +19 -0
- package/esm2020/panel/panel.types.mjs +2 -0
- package/esm2020/panel/public-api.mjs +4 -0
- package/esm2020/panel/wirabyte-ui-panel.mjs +5 -0
- package/esm2020/panelmenu/panelmenu.base.mjs +181 -0
- package/esm2020/panelmenu/panelmenu.component.mjs +15 -0
- package/esm2020/panelmenu/panelmenu.module.mjs +18 -0
- package/esm2020/panelmenu/public-api.mjs +4 -0
- package/esm2020/panelmenu/wirabyte-ui-panelmenu.mjs +5 -0
- package/esm2020/password/password.component.mjs +233 -0
- package/esm2020/password/password.module.mjs +17 -0
- package/esm2020/password/password.types.mjs +14 -0
- package/esm2020/password/public-api.mjs +4 -0
- package/esm2020/password/wirabyte-ui-password.mjs +5 -0
- package/esm2020/picklist/list-drag.mjs +259 -0
- package/esm2020/picklist/picklist.base.mjs +649 -0
- package/esm2020/picklist/picklist.component.mjs +17 -0
- package/esm2020/picklist/picklist.module.mjs +18 -0
- package/esm2020/picklist/picklist.styles.mjs +3 -0
- package/esm2020/picklist/picklist.types.mjs +2 -0
- package/esm2020/picklist/public-api.mjs +8 -0
- package/esm2020/picklist/wirabyte-ui-picklist.mjs +5 -0
- package/esm2020/popover/popover.base.mjs +171 -0
- package/esm2020/popover/popover.component.mjs +17 -0
- package/esm2020/popover/popover.module.mjs +18 -0
- package/esm2020/popover/public-api.mjs +4 -0
- package/esm2020/popover/wirabyte-ui-popover.mjs +5 -0
- package/esm2020/presets/public-api.mjs +5 -0
- package/esm2020/presets/wirabyte-ui-presets.mjs +5 -0
- package/esm2020/progressbar/progressbar.component.mjs +117 -0
- package/esm2020/progressbar/progressbar.module.mjs +17 -0
- package/esm2020/progressbar/progressbar.types.mjs +19 -0
- package/esm2020/progressbar/public-api.mjs +4 -0
- package/esm2020/progressbar/wirabyte-ui-progressbar.mjs +5 -0
- package/esm2020/progressspinner/progressspinner.component.mjs +109 -0
- package/esm2020/progressspinner/progressspinner.module.mjs +17 -0
- package/esm2020/progressspinner/progressspinner.types.mjs +27 -0
- package/esm2020/progressspinner/public-api.mjs +4 -0
- package/esm2020/progressspinner/wirabyte-ui-progressspinner.mjs +5 -0
- package/esm2020/public-api.mjs +3 -0
- package/esm2020/radiobutton/public-api.mjs +7 -0
- package/esm2020/radiobutton/radio-registry.mjs +40 -0
- package/esm2020/radiobutton/radiobutton.component.mjs +125 -0
- package/esm2020/radiobutton/radiobutton.module.mjs +17 -0
- package/esm2020/radiobutton/radiobutton.styles.mjs +3 -0
- package/esm2020/radiobutton/radiobutton.types.mjs +2 -0
- package/esm2020/radiobutton/wirabyte-ui-radiobutton.mjs +5 -0
- package/esm2020/rating/public-api.mjs +4 -0
- package/esm2020/rating/rating.component.mjs +107 -0
- package/esm2020/rating/rating.module.mjs +17 -0
- package/esm2020/rating/rating.types.mjs +2 -0
- package/esm2020/rating/wirabyte-ui-rating.mjs +5 -0
- package/esm2020/result/public-api.mjs +3 -0
- package/esm2020/result/result.component.mjs +72 -0
- package/esm2020/result/result.module.mjs +17 -0
- package/esm2020/result/wirabyte-ui-result.mjs +5 -0
- package/esm2020/ripple/public-api.mjs +3 -0
- package/esm2020/ripple/ripple.directive.mjs +43 -0
- package/esm2020/ripple/ripple.module.mjs +17 -0
- package/esm2020/ripple/ripple.styles.mjs +3 -0
- package/esm2020/ripple/wirabyte-ui-ripple.mjs +5 -0
- package/esm2020/scroller/public-api.mjs +6 -0
- package/esm2020/scroller/scroller.component.mjs +305 -0
- package/esm2020/scroller/scroller.module.mjs +17 -0
- package/esm2020/scroller/wirabyte-ui-scroller.mjs +5 -0
- package/esm2020/scrollpanel/public-api.mjs +3 -0
- package/esm2020/scrollpanel/scrollpanel.component.mjs +67 -0
- package/esm2020/scrollpanel/scrollpanel.module.mjs +17 -0
- package/esm2020/scrollpanel/wirabyte-ui-scrollpanel.mjs +5 -0
- package/esm2020/select/public-api.mjs +7 -0
- package/esm2020/select/select.base.mjs +667 -0
- package/esm2020/select/select.component.mjs +26 -0
- package/esm2020/select/select.module.mjs +17 -0
- package/esm2020/select/select.styles.mjs +3 -0
- package/esm2020/select/select.types.mjs +2 -0
- package/esm2020/select/wirabyte-ui-select.mjs +5 -0
- package/esm2020/selectbutton/public-api.mjs +4 -0
- package/esm2020/selectbutton/selectbutton.component.mjs +174 -0
- package/esm2020/selectbutton/selectbutton.module.mjs +18 -0
- package/esm2020/selectbutton/selectbutton.types.mjs +2 -0
- package/esm2020/selectbutton/wirabyte-ui-selectbutton.mjs +5 -0
- package/esm2020/sitefooter/public-api.mjs +3 -0
- package/esm2020/sitefooter/sitefooter.component.mjs +139 -0
- package/esm2020/sitefooter/sitefooter.module.mjs +18 -0
- package/esm2020/sitefooter/wirabyte-ui-sitefooter.mjs +5 -0
- package/esm2020/skeleton/public-api.mjs +4 -0
- package/esm2020/skeleton/skeleton.component.mjs +51 -0
- package/esm2020/skeleton/skeleton.module.mjs +17 -0
- package/esm2020/skeleton/skeleton.types.mjs +2 -0
- package/esm2020/skeleton/wirabyte-ui-skeleton.mjs +5 -0
- package/esm2020/slider/public-api.mjs +3 -0
- package/esm2020/slider/slider.component.mjs +247 -0
- package/esm2020/slider/slider.module.mjs +17 -0
- package/esm2020/slider/wirabyte-ui-slider.mjs +5 -0
- package/esm2020/splitbutton/public-api.mjs +3 -0
- package/esm2020/splitbutton/splitbutton.component.mjs +180 -0
- package/esm2020/splitbutton/splitbutton.module.mjs +17 -0
- package/esm2020/splitbutton/wirabyte-ui-splitbutton.mjs +5 -0
- package/esm2020/splitter/public-api.mjs +5 -0
- package/esm2020/splitter/splitter-panel.component.mjs +32 -0
- package/esm2020/splitter/splitter.component.mjs +372 -0
- package/esm2020/splitter/splitter.module.mjs +19 -0
- package/esm2020/splitter/splitter.types.mjs +2 -0
- package/esm2020/splitter/wirabyte-ui-splitter.mjs +5 -0
- package/esm2020/stepper/public-api.mjs +4 -0
- package/esm2020/stepper/stepper.base.mjs +392 -0
- package/esm2020/stepper/stepper.component.mjs +191 -0
- package/esm2020/stepper/stepper.module.mjs +19 -0
- package/esm2020/stepper/wirabyte-ui-stepper.mjs +5 -0
- package/esm2020/steps/public-api.mjs +4 -0
- package/esm2020/steps/steps.base.mjs +148 -0
- package/esm2020/steps/steps.component.mjs +15 -0
- package/esm2020/steps/steps.module.mjs +17 -0
- package/esm2020/steps/wirabyte-ui-steps.mjs +5 -0
- package/esm2020/table/public-api.mjs +10 -0
- package/esm2020/table/table-celleditor.component.mjs +34 -0
- package/esm2020/table/table-filter.component.mjs +123 -0
- package/esm2020/table/table.base.mjs +1443 -0
- package/esm2020/table/table.celleditor.mjs +42 -0
- package/esm2020/table/table.component.mjs +21 -0
- package/esm2020/table/table.directives.mjs +1117 -0
- package/esm2020/table/table.filter.mjs +346 -0
- package/esm2020/table/table.module.mjs +99 -0
- package/esm2020/table/table.types.mjs +3 -0
- package/esm2020/table/wirabyte-ui-table.mjs +5 -0
- package/esm2020/tabmenu/public-api.mjs +3 -0
- package/esm2020/tabmenu/wirabyte-ui-tabmenu.mjs +5 -0
- package/esm2020/tabs/public-api.mjs +9 -0
- package/esm2020/tabs/tabmenu.base.mjs +196 -0
- package/esm2020/tabs/tabmenu.component.mjs +18 -0
- package/esm2020/tabs/tabmenu.module.mjs +18 -0
- package/esm2020/tabs/tabs.component.mjs +477 -0
- package/esm2020/tabs/tabs.module.mjs +20 -0
- package/esm2020/tabs/tabs.styles.mjs +3 -0
- package/esm2020/tabs/tabs.types.mjs +50 -0
- package/esm2020/tabs/wirabyte-ui-tabs.mjs +5 -0
- package/esm2020/tag/public-api.mjs +4 -0
- package/esm2020/tag/tag.component.mjs +52 -0
- package/esm2020/tag/tag.module.mjs +17 -0
- package/esm2020/tag/tag.types.mjs +2 -0
- package/esm2020/tag/wirabyte-ui-tag.mjs +5 -0
- package/esm2020/terminal/public-api.mjs +6 -0
- package/esm2020/terminal/terminal.component.mjs +150 -0
- package/esm2020/terminal/terminal.module.mjs +17 -0
- package/esm2020/terminal/terminal.service.mjs +35 -0
- package/esm2020/terminal/wirabyte-ui-terminal.mjs +5 -0
- package/esm2020/textarea/public-api.mjs +3 -0
- package/esm2020/textarea/textarea.directive.mjs +87 -0
- package/esm2020/textarea/textarea.module.mjs +17 -0
- package/esm2020/textarea/wirabyte-ui-textarea.mjs +5 -0
- package/esm2020/thai/public-api.mjs +4 -0
- package/esm2020/thai/thai.module.mjs +18 -0
- package/esm2020/thai/thai.pipes.mjs +115 -0
- package/esm2020/thai/wirabyte-ui-thai.mjs +5 -0
- package/esm2020/tieredmenu/public-api.mjs +3 -0
- package/esm2020/tieredmenu/tieredmenu.component.mjs +385 -0
- package/esm2020/tieredmenu/tieredmenu.module.mjs +17 -0
- package/esm2020/tieredmenu/wirabyte-ui-tieredmenu.mjs +5 -0
- package/esm2020/timeline/public-api.mjs +4 -0
- package/esm2020/timeline/timeline.base.mjs +66 -0
- package/esm2020/timeline/timeline.component.mjs +46 -0
- package/esm2020/timeline/timeline.module.mjs +18 -0
- package/esm2020/timeline/wirabyte-ui-timeline.mjs +5 -0
- package/esm2020/toast/message.service.mjs +34 -0
- package/esm2020/toast/public-api.mjs +6 -0
- package/esm2020/toast/toast.base.mjs +227 -0
- package/esm2020/toast/toast.component.mjs +17 -0
- package/esm2020/toast/toast.module.mjs +18 -0
- package/esm2020/toast/toast.types.mjs +2 -0
- package/esm2020/toast/wirabyte-ui-toast.mjs +5 -0
- package/esm2020/togglebutton/public-api.mjs +4 -0
- package/esm2020/togglebutton/togglebutton.component.mjs +129 -0
- package/esm2020/togglebutton/togglebutton.module.mjs +17 -0
- package/esm2020/togglebutton/togglebutton.types.mjs +2 -0
- package/esm2020/togglebutton/wirabyte-ui-togglebutton.mjs +5 -0
- package/esm2020/toggleswitch/public-api.mjs +4 -0
- package/esm2020/toggleswitch/toggleswitch.component.mjs +123 -0
- package/esm2020/toggleswitch/toggleswitch.module.mjs +17 -0
- package/esm2020/toggleswitch/toggleswitch.types.mjs +2 -0
- package/esm2020/toggleswitch/wirabyte-ui-toggleswitch.mjs +5 -0
- package/esm2020/toolbar/public-api.mjs +3 -0
- package/esm2020/toolbar/toolbar.component.mjs +67 -0
- package/esm2020/toolbar/toolbar.module.mjs +18 -0
- package/esm2020/toolbar/wirabyte-ui-toolbar.mjs +5 -0
- package/esm2020/tooltip/public-api.mjs +4 -0
- package/esm2020/tooltip/tooltip.directive.mjs +370 -0
- package/esm2020/tooltip/tooltip.module.mjs +17 -0
- package/esm2020/tooltip/tooltip.styles.mjs +3 -0
- package/esm2020/tooltip/tooltip.types.mjs +2 -0
- package/esm2020/tooltip/wirabyte-ui-tooltip.mjs +5 -0
- package/esm2020/tree/public-api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +453 -0
- package/esm2020/tree/tree.module.mjs +17 -0
- package/esm2020/tree/wirabyte-ui-tree.mjs +5 -0
- package/esm2020/treeselect/public-api.mjs +3 -0
- package/esm2020/treeselect/treeselect.component.mjs +410 -0
- package/esm2020/treeselect/treeselect.module.mjs +17 -0
- package/esm2020/treeselect/wirabyte-ui-treeselect.mjs +5 -0
- package/esm2020/validation/field-error.component.mjs +84 -0
- package/esm2020/validation/public-api.mjs +4 -0
- package/esm2020/validation/validation.module.mjs +19 -0
- package/esm2020/validation/validators.mjs +84 -0
- package/esm2020/validation/wirabyte-ui-validation.mjs +5 -0
- package/esm2020/wirabyte-ui.mjs +5 -0
- package/excel/excel.d.ts +24 -0
- package/excel/index.d.ts +5 -0
- package/excel/public-api.d.ts +3 -0
- package/fesm2015/wirabyte-ui-accordion.mjs +416 -0
- package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-alert.mjs +555 -0
- package/fesm2015/wirabyte-ui-alert.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-animate.mjs +280 -0
- package/fesm2015/wirabyte-ui-animate.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-api.mjs +34 -0
- package/fesm2015/wirabyte-ui-api.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-asidemenu.mjs +848 -0
- package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-autocomplete.mjs +619 -0
- package/fesm2015/wirabyte-ui-autocomplete.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-avatar.mjs +103 -0
- package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-badge.mjs +185 -0
- package/fesm2015/wirabyte-ui-badge.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-blockui.mjs +176 -0
- package/fesm2015/wirabyte-ui-blockui.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-bottombar.mjs +237 -0
- package/fesm2015/wirabyte-ui-bottombar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-breadcrumb.mjs +109 -0
- package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-button.mjs +415 -0
- package/fesm2015/wirabyte-ui-button.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-card.mjs +134 -0
- package/fesm2015/wirabyte-ui-card.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-carousel.mjs +647 -0
- package/fesm2015/wirabyte-ui-carousel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chart.mjs +63 -0
- package/fesm2015/wirabyte-ui-chart.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chartjs.mjs +268 -0
- package/fesm2015/wirabyte-ui-chartjs.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-checkbox.mjs +164 -0
- package/fesm2015/wirabyte-ui-checkbox.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chip.mjs +97 -0
- package/fesm2015/wirabyte-ui-chip.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-colorpicker.mjs +333 -0
- package/fesm2015/wirabyte-ui-colorpicker.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-config.mjs +624 -0
- package/fesm2015/wirabyte-ui-config.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-confirmdialog.mjs +421 -0
- package/fesm2015/wirabyte-ui-confirmdialog.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-contextmenu.mjs +185 -0
- package/fesm2015/wirabyte-ui-contextmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-core.mjs +13312 -0
- package/fesm2015/wirabyte-ui-core.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-datepicker.mjs +951 -0
- package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dialog.mjs +707 -0
- package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-divider.mjs +77 -0
- package/fesm2015/wirabyte-ui-divider.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dock.mjs +317 -0
- package/fesm2015/wirabyte-ui-dock.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dragdrop.mjs +232 -0
- package/fesm2015/wirabyte-ui-dragdrop.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-drawer.mjs +326 -0
- package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-editor.mjs +3099 -0
- package/fesm2015/wirabyte-ui-editor.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-emptystate.mjs +101 -0
- package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-errorpage.mjs +187 -0
- package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-excel.mjs +49 -0
- package/fesm2015/wirabyte-ui-excel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-fieldset.mjs +95 -0
- package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-fileupload.mjs +607 -0
- package/fesm2015/wirabyte-ui-fileupload.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-floatlabel.mjs +74 -0
- package/fesm2015/wirabyte-ui-floatlabel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-flow.mjs +4967 -0
- package/fesm2015/wirabyte-ui-flow.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-galleria.mjs +506 -0
- package/fesm2015/wirabyte-ui-galleria.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-i18n.mjs +330 -0
- package/fesm2015/wirabyte-ui-i18n.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-iconfield.mjs +94 -0
- package/fesm2015/wirabyte-ui-iconfield.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-image.mjs +218 -0
- package/fesm2015/wirabyte-ui-image.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-imagecompare.mjs +224 -0
- package/fesm2015/wirabyte-ui-imagecompare.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-imagecropper.mjs +1301 -0
- package/fesm2015/wirabyte-ui-imagecropper.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inplace.mjs +167 -0
- package/fesm2015/wirabyte-ui-inplace.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputgroup.mjs +82 -0
- package/fesm2015/wirabyte-ui-inputgroup.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputmask.mjs +367 -0
- package/fesm2015/wirabyte-ui-inputmask.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputnumber.mjs +388 -0
- package/fesm2015/wirabyte-ui-inputnumber.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputotp.mjs +370 -0
- package/fesm2015/wirabyte-ui-inputotp.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputtext.mjs +85 -0
- package/fesm2015/wirabyte-ui-inputtext.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-keyfilter.mjs +155 -0
- package/fesm2015/wirabyte-ui-keyfilter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-knob.mjs +229 -0
- package/fesm2015/wirabyte-ui-knob.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-listbox.mjs +543 -0
- package/fesm2015/wirabyte-ui-listbox.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-menu.mjs +365 -0
- package/fesm2015/wirabyte-ui-menu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-menubar.mjs +614 -0
- package/fesm2015/wirabyte-ui-menubar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-message.mjs +291 -0
- package/fesm2015/wirabyte-ui-message.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-metergroup.mjs +192 -0
- package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-multiselect.mjs +795 -0
- package/fesm2015/wirabyte-ui-multiselect.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-navbar.mjs +491 -0
- package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-orderlist.mjs +450 -0
- package/fesm2015/wirabyte-ui-orderlist.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-organizationchart.mjs +225 -0
- package/fesm2015/wirabyte-ui-organizationchart.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-paginator.mjs +226 -0
- package/fesm2015/wirabyte-ui-paginator.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-panel.mjs +130 -0
- package/fesm2015/wirabyte-ui-panel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-panelmenu.mjs +216 -0
- package/fesm2015/wirabyte-ui-panelmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-password.mjs +271 -0
- package/fesm2015/wirabyte-ui-password.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-picklist.mjs +954 -0
- package/fesm2015/wirabyte-ui-picklist.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-popover.mjs +210 -0
- package/fesm2015/wirabyte-ui-popover.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-presets.mjs +10 -0
- package/fesm2015/wirabyte-ui-presets.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-progressbar.mjs +156 -0
- package/fesm2015/wirabyte-ui-progressbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-progressspinner.mjs +158 -0
- package/fesm2015/wirabyte-ui-progressspinner.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-radiobutton.mjs +186 -0
- package/fesm2015/wirabyte-ui-radiobutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-rating.mjs +129 -0
- package/fesm2015/wirabyte-ui-rating.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-result.mjs +95 -0
- package/fesm2015/wirabyte-ui-result.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-ripple.mjs +67 -0
- package/fesm2015/wirabyte-ui-ripple.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-scroller.mjs +330 -0
- package/fesm2015/wirabyte-ui-scroller.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-scrollpanel.mjs +90 -0
- package/fesm2015/wirabyte-ui-scrollpanel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-select.mjs +730 -0
- package/fesm2015/wirabyte-ui-select.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-selectbutton.mjs +195 -0
- package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-sitefooter.mjs +166 -0
- package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-skeleton.mjs +72 -0
- package/fesm2015/wirabyte-ui-skeleton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-slider.mjs +271 -0
- package/fesm2015/wirabyte-ui-slider.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-splitbutton.mjs +202 -0
- package/fesm2015/wirabyte-ui-splitbutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-splitter.mjs +431 -0
- package/fesm2015/wirabyte-ui-splitter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-stepper.mjs +607 -0
- package/fesm2015/wirabyte-ui-stepper.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-steps.mjs +182 -0
- package/fesm2015/wirabyte-ui-steps.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-table.mjs +3223 -0
- package/fesm2015/wirabyte-ui-table.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tabmenu.mjs +8 -0
- package/fesm2015/wirabyte-ui-tabmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tabs.mjs +790 -0
- package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tag.mjs +73 -0
- package/fesm2015/wirabyte-ui-tag.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-terminal.mjs +207 -0
- package/fesm2015/wirabyte-ui-terminal.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-textarea.mjs +108 -0
- package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-thai.mjs +138 -0
- package/fesm2015/wirabyte-ui-thai.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tieredmenu.mjs +417 -0
- package/fesm2015/wirabyte-ui-tieredmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-timeline.mjs +130 -0
- package/fesm2015/wirabyte-ui-timeline.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toast.mjs +294 -0
- package/fesm2015/wirabyte-ui-toast.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-togglebutton.mjs +151 -0
- package/fesm2015/wirabyte-ui-togglebutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toggleswitch.mjs +144 -0
- package/fesm2015/wirabyte-ui-toggleswitch.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toolbar.mjs +88 -0
- package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tooltip.mjs +398 -0
- package/fesm2015/wirabyte-ui-tooltip.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tree.mjs +480 -0
- package/fesm2015/wirabyte-ui-tree.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-treeselect.mjs +438 -0
- package/fesm2015/wirabyte-ui-treeselect.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-validation.mjs +189 -0
- package/fesm2015/wirabyte-ui-validation.mjs.map +1 -0
- package/fesm2015/wirabyte-ui.mjs +9 -0
- package/fesm2015/wirabyte-ui.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-accordion.mjs +414 -0
- package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-alert.mjs +529 -0
- package/fesm2020/wirabyte-ui-alert.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-animate.mjs +276 -0
- package/fesm2020/wirabyte-ui-animate.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-api.mjs +34 -0
- package/fesm2020/wirabyte-ui-api.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-asidemenu.mjs +832 -0
- package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-autocomplete.mjs +608 -0
- package/fesm2020/wirabyte-ui-autocomplete.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-avatar.mjs +102 -0
- package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-badge.mjs +183 -0
- package/fesm2020/wirabyte-ui-badge.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-blockui.mjs +173 -0
- package/fesm2020/wirabyte-ui-blockui.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-bottombar.mjs +230 -0
- package/fesm2020/wirabyte-ui-bottombar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-breadcrumb.mjs +107 -0
- package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-button.mjs +412 -0
- package/fesm2020/wirabyte-ui-button.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-card.mjs +134 -0
- package/fesm2020/wirabyte-ui-card.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-carousel.mjs +638 -0
- package/fesm2020/wirabyte-ui-carousel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chart.mjs +63 -0
- package/fesm2020/wirabyte-ui-chart.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chartjs.mjs +262 -0
- package/fesm2020/wirabyte-ui-chartjs.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-checkbox.mjs +164 -0
- package/fesm2020/wirabyte-ui-checkbox.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chip.mjs +97 -0
- package/fesm2020/wirabyte-ui-chip.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-colorpicker.mjs +329 -0
- package/fesm2020/wirabyte-ui-colorpicker.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-config.mjs +621 -0
- package/fesm2020/wirabyte-ui-config.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-confirmdialog.mjs +395 -0
- package/fesm2020/wirabyte-ui-confirmdialog.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-contextmenu.mjs +180 -0
- package/fesm2020/wirabyte-ui-contextmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-core.mjs +13367 -0
- package/fesm2020/wirabyte-ui-core.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-datepicker.mjs +942 -0
- package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dialog.mjs +698 -0
- package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-divider.mjs +77 -0
- package/fesm2020/wirabyte-ui-divider.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dock.mjs +308 -0
- package/fesm2020/wirabyte-ui-dock.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dragdrop.mjs +229 -0
- package/fesm2020/wirabyte-ui-dragdrop.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-drawer.mjs +321 -0
- package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-editor.mjs +3056 -0
- package/fesm2020/wirabyte-ui-editor.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-emptystate.mjs +99 -0
- package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-errorpage.mjs +184 -0
- package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-excel.mjs +43 -0
- package/fesm2020/wirabyte-ui-excel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-fieldset.mjs +95 -0
- package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-fileupload.mjs +599 -0
- package/fesm2020/wirabyte-ui-fileupload.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-floatlabel.mjs +74 -0
- package/fesm2020/wirabyte-ui-floatlabel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-flow.mjs +4920 -0
- package/fesm2020/wirabyte-ui-flow.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-galleria.mjs +501 -0
- package/fesm2020/wirabyte-ui-galleria.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-i18n.mjs +321 -0
- package/fesm2020/wirabyte-ui-i18n.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-iconfield.mjs +94 -0
- package/fesm2020/wirabyte-ui-iconfield.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-image.mjs +214 -0
- package/fesm2020/wirabyte-ui-image.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-imagecompare.mjs +221 -0
- package/fesm2020/wirabyte-ui-imagecompare.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-imagecropper.mjs +1279 -0
- package/fesm2020/wirabyte-ui-imagecropper.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inplace.mjs +166 -0
- package/fesm2020/wirabyte-ui-inplace.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputgroup.mjs +82 -0
- package/fesm2020/wirabyte-ui-inputgroup.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputmask.mjs +360 -0
- package/fesm2020/wirabyte-ui-inputmask.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputnumber.mjs +385 -0
- package/fesm2020/wirabyte-ui-inputnumber.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputotp.mjs +365 -0
- package/fesm2020/wirabyte-ui-inputotp.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputtext.mjs +85 -0
- package/fesm2020/wirabyte-ui-inputtext.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-keyfilter.mjs +152 -0
- package/fesm2020/wirabyte-ui-keyfilter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-knob.mjs +228 -0
- package/fesm2020/wirabyte-ui-knob.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-listbox.mjs +541 -0
- package/fesm2020/wirabyte-ui-listbox.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-menu.mjs +356 -0
- package/fesm2020/wirabyte-ui-menu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-menubar.mjs +604 -0
- package/fesm2020/wirabyte-ui-menubar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-message.mjs +291 -0
- package/fesm2020/wirabyte-ui-message.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-metergroup.mjs +192 -0
- package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-multiselect.mjs +778 -0
- package/fesm2020/wirabyte-ui-multiselect.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-navbar.mjs +481 -0
- package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-orderlist.mjs +445 -0
- package/fesm2020/wirabyte-ui-orderlist.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-organizationchart.mjs +221 -0
- package/fesm2020/wirabyte-ui-organizationchart.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-paginator.mjs +226 -0
- package/fesm2020/wirabyte-ui-paginator.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-panel.mjs +130 -0
- package/fesm2020/wirabyte-ui-panel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-panelmenu.mjs +213 -0
- package/fesm2020/wirabyte-ui-panelmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-password.mjs +267 -0
- package/fesm2020/wirabyte-ui-password.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-picklist.mjs +944 -0
- package/fesm2020/wirabyte-ui-picklist.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-popover.mjs +205 -0
- package/fesm2020/wirabyte-ui-popover.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-presets.mjs +10 -0
- package/fesm2020/wirabyte-ui-presets.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-progressbar.mjs +156 -0
- package/fesm2020/wirabyte-ui-progressbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-progressspinner.mjs +156 -0
- package/fesm2020/wirabyte-ui-progressspinner.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-radiobutton.mjs +186 -0
- package/fesm2020/wirabyte-ui-radiobutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-rating.mjs +128 -0
- package/fesm2020/wirabyte-ui-rating.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-result.mjs +93 -0
- package/fesm2020/wirabyte-ui-result.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-ripple.mjs +66 -0
- package/fesm2020/wirabyte-ui-ripple.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-scroller.mjs +326 -0
- package/fesm2020/wirabyte-ui-scroller.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-scrollpanel.mjs +88 -0
- package/fesm2020/wirabyte-ui-scrollpanel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-select.mjs +713 -0
- package/fesm2020/wirabyte-ui-select.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-selectbutton.mjs +195 -0
- package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-sitefooter.mjs +160 -0
- package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-skeleton.mjs +72 -0
- package/fesm2020/wirabyte-ui-skeleton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-slider.mjs +268 -0
- package/fesm2020/wirabyte-ui-slider.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-splitbutton.mjs +201 -0
- package/fesm2020/wirabyte-ui-splitbutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-splitter.mjs +422 -0
- package/fesm2020/wirabyte-ui-splitter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-stepper.mjs +602 -0
- package/fesm2020/wirabyte-ui-stepper.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-steps.mjs +180 -0
- package/fesm2020/wirabyte-ui-steps.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-table.mjs +3201 -0
- package/fesm2020/wirabyte-ui-table.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tabmenu.mjs +8 -0
- package/fesm2020/wirabyte-ui-tabmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tabs.mjs +769 -0
- package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tag.mjs +73 -0
- package/fesm2020/wirabyte-ui-tag.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-terminal.mjs +203 -0
- package/fesm2020/wirabyte-ui-terminal.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-textarea.mjs +108 -0
- package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-thai.mjs +138 -0
- package/fesm2020/wirabyte-ui-thai.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tieredmenu.mjs +406 -0
- package/fesm2020/wirabyte-ui-tieredmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-timeline.mjs +130 -0
- package/fesm2020/wirabyte-ui-timeline.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toast.mjs +291 -0
- package/fesm2020/wirabyte-ui-toast.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-togglebutton.mjs +150 -0
- package/fesm2020/wirabyte-ui-togglebutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toggleswitch.mjs +144 -0
- package/fesm2020/wirabyte-ui-toggleswitch.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toolbar.mjs +88 -0
- package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tooltip.mjs +393 -0
- package/fesm2020/wirabyte-ui-tooltip.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tree.mjs +474 -0
- package/fesm2020/wirabyte-ui-tree.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-treeselect.mjs +431 -0
- package/fesm2020/wirabyte-ui-treeselect.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-validation.mjs +186 -0
- package/fesm2020/wirabyte-ui-validation.mjs.map +1 -0
- package/fesm2020/wirabyte-ui.mjs +9 -0
- package/fesm2020/wirabyte-ui.mjs.map +1 -0
- package/fieldset/fieldset.component.d.ts +35 -0
- package/fieldset/fieldset.module.d.ts +9 -0
- package/fieldset/index.d.ts +5 -0
- package/fieldset/public-api.d.ts +2 -0
- package/fileupload/fileupload.base.d.ts +175 -0
- package/fileupload/fileupload.component.d.ts +11 -0
- package/fileupload/fileupload.module.d.ts +9 -0
- package/fileupload/fileupload.types.d.ts +54 -0
- package/fileupload/index.d.ts +5 -0
- package/fileupload/public-api.d.ts +4 -0
- package/floatlabel/floatlabel.component.d.ts +21 -0
- package/floatlabel/floatlabel.module.d.ts +8 -0
- package/floatlabel/floatlabel.types.d.ts +1 -0
- package/floatlabel/index.d.ts +5 -0
- package/floatlabel/public-api.d.ts +3 -0
- package/flow/flow-background.component.d.ts +49 -0
- package/flow/flow-controls.component.d.ts +47 -0
- package/flow/flow-handle.component.d.ts +48 -0
- package/flow/flow-history.directive.d.ts +42 -0
- package/flow/flow-host.d.ts +48 -0
- package/flow/flow-minimap.component.d.ts +79 -0
- package/flow/flow-node-outlet.d.ts +46 -0
- package/flow/flow-node-resizer.component.d.ts +57 -0
- package/flow/flow-node-toolbar.component.d.ts +38 -0
- package/flow/flow-panel.component.d.ts +11 -0
- package/flow/flow-templates.d.ts +47 -0
- package/flow/flow.component.d.ts +633 -0
- package/flow/flow.module.d.ts +21 -0
- package/flow/flow.types.d.ts +210 -0
- package/flow/index.d.ts +5 -0
- package/flow/public-api.d.ts +16 -0
- package/galleria/galleria.component.d.ts +163 -0
- package/galleria/galleria.module.d.ts +8 -0
- package/galleria/index.d.ts +5 -0
- package/galleria/public-api.d.ts +2 -0
- package/i18n/i18n.module.d.ts +22 -0
- package/i18n/i18n.service.d.ts +54 -0
- package/i18n/i18n.types.d.ts +33 -0
- package/i18n/index.d.ts +5 -0
- package/i18n/language-switch.component.d.ts +50 -0
- package/i18n/public-api.d.ts +6 -0
- package/i18n/translate.pipe.d.ts +25 -0
- package/iconfield/iconfield.component.d.ts +30 -0
- package/iconfield/iconfield.module.d.ts +8 -0
- package/iconfield/index.d.ts +5 -0
- package/iconfield/public-api.d.ts +2 -0
- package/image/image.base.d.ts +83 -0
- package/image/image.component.d.ts +7 -0
- package/image/image.module.d.ts +9 -0
- package/image/index.d.ts +5 -0
- package/image/public-api.d.ts +3 -0
- package/imagecompare/imagecompare.component.d.ts +67 -0
- package/imagecompare/imagecompare.module.d.ts +9 -0
- package/imagecompare/index.d.ts +5 -0
- package/imagecompare/public-api.d.ts +2 -0
- package/imagecropper/imagecropper.component.d.ts +309 -0
- package/imagecropper/imagecropper.module.d.ts +8 -0
- package/imagecropper/imagecropper.types.d.ts +79 -0
- package/imagecropper/index.d.ts +5 -0
- package/imagecropper/public-api.d.ts +4 -0
- package/index.d.ts +5 -0
- package/inplace/index.d.ts +5 -0
- package/inplace/inplace.component.d.ts +59 -0
- package/inplace/inplace.module.d.ts +8 -0
- package/inplace/public-api.d.ts +2 -0
- package/inputgroup/index.d.ts +5 -0
- package/inputgroup/inputgroup.component.d.ts +26 -0
- package/inputgroup/inputgroup.module.d.ts +8 -0
- package/inputgroup/public-api.d.ts +2 -0
- package/inputmask/index.d.ts +5 -0
- package/inputmask/inputmask.base.d.ts +115 -0
- package/inputmask/inputmask.component.d.ts +10 -0
- package/inputmask/inputmask.module.d.ts +8 -0
- package/inputmask/public-api.d.ts +3 -0
- package/inputnumber/index.d.ts +5 -0
- package/inputnumber/inputnumber.component.d.ts +132 -0
- package/inputnumber/inputnumber.module.d.ts +8 -0
- package/inputnumber/inputnumber.types.d.ts +7 -0
- package/inputnumber/public-api.d.ts +3 -0
- package/inputotp/index.d.ts +5 -0
- package/inputotp/inputotp.component.d.ts +105 -0
- package/inputotp/inputotp.module.d.ts +9 -0
- package/inputotp/inputotp.types.d.ts +22 -0
- package/inputotp/public-api.d.ts +3 -0
- package/inputtext/index.d.ts +5 -0
- package/inputtext/inputtext.directive.d.ts +25 -0
- package/inputtext/inputtext.module.d.ts +8 -0
- package/inputtext/inputtext.styles.d.ts +2 -0
- package/inputtext/inputtext.types.d.ts +3 -0
- package/inputtext/public-api.d.ts +5 -0
- package/keyfilter/index.d.ts +5 -0
- package/keyfilter/keyfilter.directive.d.ts +29 -0
- package/keyfilter/keyfilter.module.d.ts +8 -0
- package/keyfilter/public-api.d.ts +2 -0
- package/knob/index.d.ts +5 -0
- package/knob/knob.component.d.ts +94 -0
- package/knob/knob.module.d.ts +8 -0
- package/knob/public-api.d.ts +2 -0
- package/listbox/index.d.ts +5 -0
- package/listbox/listbox.component.d.ts +186 -0
- package/listbox/listbox.module.d.ts +8 -0
- package/listbox/public-api.d.ts +2 -0
- package/menu/index.d.ts +5 -0
- package/menu/menu.base.d.ts +95 -0
- package/menu/menu.component.d.ts +11 -0
- package/menu/menu.module.d.ts +9 -0
- package/menu/public-api.d.ts +4 -0
- package/menubar/index.d.ts +5 -0
- package/menubar/menubar.base.d.ts +135 -0
- package/menubar/menubar.component.d.ts +11 -0
- package/menubar/menubar.module.d.ts +9 -0
- package/menubar/public-api.d.ts +4 -0
- package/message/index.d.ts +5 -0
- package/message/message.component.d.ts +50 -0
- package/message/message.module.d.ts +11 -0
- package/message/message.types.d.ts +5 -0
- package/message/messages.base.d.ts +50 -0
- package/message/messages.component.d.ts +7 -0
- package/message/public-api.d.ts +5 -0
- package/metergroup/index.d.ts +5 -0
- package/metergroup/metergroup.component.d.ts +59 -0
- package/metergroup/metergroup.module.d.ts +8 -0
- package/metergroup/metergroup.types.d.ts +42 -0
- package/metergroup/public-api.d.ts +3 -0
- package/multiselect/index.d.ts +5 -0
- package/multiselect/multiselect.base.d.ts +222 -0
- package/multiselect/multiselect.component.d.ts +11 -0
- package/multiselect/multiselect.module.d.ts +9 -0
- package/multiselect/multiselect.styles.d.ts +2 -0
- package/multiselect/multiselect.types.d.ts +20 -0
- package/multiselect/public-api.d.ts +5 -0
- package/navbar/index.d.ts +5 -0
- package/navbar/navbar.component.d.ts +172 -0
- package/navbar/navbar.module.d.ts +9 -0
- package/navbar/public-api.d.ts +2 -0
- package/orderlist/index.d.ts +5 -0
- package/orderlist/orderlist.base.d.ts +136 -0
- package/orderlist/orderlist.component.d.ts +10 -0
- package/orderlist/orderlist.module.d.ts +9 -0
- package/orderlist/orderlist.types.d.ts +10 -0
- package/orderlist/public-api.d.ts +4 -0
- package/organizationchart/index.d.ts +5 -0
- package/organizationchart/organizationchart.component.d.ts +76 -0
- package/organizationchart/organizationchart.module.d.ts +9 -0
- package/organizationchart/organizationchart.types.d.ts +10 -0
- package/organizationchart/public-api.d.ts +4 -0
- package/package.json +891 -3
- package/paginator/index.d.ts +5 -0
- package/paginator/paginator.base.d.ts +95 -0
- package/paginator/paginator.component.d.ts +10 -0
- package/paginator/paginator.module.d.ts +8 -0
- package/paginator/paginator.types.d.ts +7 -0
- package/paginator/public-api.d.ts +4 -0
- package/panel/index.d.ts +5 -0
- package/panel/panel.component.d.ts +51 -0
- package/panel/panel.module.d.ts +10 -0
- package/panel/panel.types.d.ts +2 -0
- package/panel/public-api.d.ts +3 -0
- package/panelmenu/index.d.ts +5 -0
- package/panelmenu/panelmenu.base.d.ts +53 -0
- package/panelmenu/panelmenu.component.d.ts +7 -0
- package/panelmenu/panelmenu.module.d.ts +9 -0
- package/panelmenu/public-api.d.ts +3 -0
- package/password/index.d.ts +5 -0
- package/password/password.component.d.ts +90 -0
- package/password/password.module.d.ts +8 -0
- package/password/password.types.d.ts +6 -0
- package/password/public-api.d.ts +3 -0
- package/picklist/index.d.ts +5 -0
- package/picklist/list-drag.d.ts +49 -0
- package/picklist/picklist.base.d.ts +217 -0
- package/picklist/picklist.component.d.ts +10 -0
- package/picklist/picklist.module.d.ts +9 -0
- package/picklist/picklist.styles.d.ts +2 -0
- package/picklist/picklist.types.d.ts +21 -0
- package/picklist/public-api.d.ts +7 -0
- package/popover/index.d.ts +5 -0
- package/popover/popover.base.d.ts +61 -0
- package/popover/popover.component.d.ts +10 -0
- package/popover/popover.module.d.ts +9 -0
- package/popover/public-api.d.ts +3 -0
- package/presets/index.d.ts +5 -0
- package/presets/public-api.d.ts +2 -0
- package/progressbar/index.d.ts +5 -0
- package/progressbar/progressbar.component.d.ts +62 -0
- package/progressbar/progressbar.module.d.ts +8 -0
- package/progressbar/progressbar.types.d.ts +16 -0
- package/progressbar/public-api.d.ts +3 -0
- package/progressspinner/index.d.ts +5 -0
- package/progressspinner/progressspinner.component.d.ts +50 -0
- package/progressspinner/progressspinner.module.d.ts +8 -0
- package/progressspinner/progressspinner.types.d.ts +9 -0
- package/progressspinner/public-api.d.ts +3 -0
- package/public-api.d.ts +2 -0
- package/radiobutton/index.d.ts +5 -0
- package/radiobutton/public-api.d.ts +6 -0
- package/radiobutton/radio-registry.d.ts +23 -0
- package/radiobutton/radiobutton.component.d.ts +57 -0
- package/radiobutton/radiobutton.module.d.ts +8 -0
- package/radiobutton/radiobutton.styles.d.ts +2 -0
- package/radiobutton/radiobutton.types.d.ts +4 -0
- package/rating/index.d.ts +5 -0
- package/rating/public-api.d.ts +3 -0
- package/rating/rating.component.d.ts +47 -0
- package/rating/rating.module.d.ts +8 -0
- package/rating/rating.types.d.ts +4 -0
- package/result/index.d.ts +5 -0
- package/result/public-api.d.ts +2 -0
- package/result/result.component.d.ts +39 -0
- package/result/result.module.d.ts +8 -0
- package/ripple/index.d.ts +5 -0
- package/ripple/public-api.d.ts +2 -0
- package/ripple/ripple.directive.d.ts +15 -0
- package/ripple/ripple.module.d.ts +8 -0
- package/ripple/ripple.styles.d.ts +2 -0
- package/schematics/collection.json +21 -0
- package/schematics/core/carousel.cjs +70 -0
- package/schematics/core/catalog.cjs +206 -0
- package/schematics/core/chart/format.cjs +68 -0
- package/schematics/core/chart/index.cjs +32 -0
- package/schematics/core/chart/kinds.cjs +1355 -0
- package/schematics/core/chart/model.cjs +717 -0
- package/schematics/core/chart/more.cjs +317 -0
- package/schematics/core/chart/paths.cjs +170 -0
- package/schematics/core/chart/scale.cjs +63 -0
- package/schematics/core/color.cjs +106 -0
- package/schematics/core/colorpicker.cjs +79 -0
- package/schematics/core/compat.cjs +152 -0
- package/schematics/core/config.cjs +172 -0
- package/schematics/core/date.cjs +346 -0
- package/schematics/core/datepicker.cjs +530 -0
- package/schematics/core/dock.cjs +16 -0
- package/schematics/core/editor.cjs +281 -0
- package/schematics/core/errorpage.cjs +52 -0
- package/schematics/core/excel.cjs +826 -0
- package/schematics/core/exporters.cjs +249 -0
- package/schematics/core/families.cjs +1758 -0
- package/schematics/core/fileupload.cjs +54 -0
- package/schematics/core/flow/changes.cjs +215 -0
- package/schematics/core/flow/edges.cjs +95 -0
- package/schematics/core/flow/export.cjs +236 -0
- package/schematics/core/flow/geometry.cjs +338 -0
- package/schematics/core/flow/graph.cjs +338 -0
- package/schematics/core/flow/history.cjs +109 -0
- package/schematics/core/flow/index.cjs +29 -0
- package/schematics/core/flow/interaction.cjs +264 -0
- package/schematics/core/flow/layout.cjs +592 -0
- package/schematics/core/flow/paths.cjs +268 -0
- package/schematics/core/flow/text.cjs +74 -0
- package/schematics/core/flow/types.cjs +7 -0
- package/schematics/core/flow/viewport.cjs +151 -0
- package/schematics/core/i18n.cjs +85 -0
- package/schematics/core/imagecompare.cjs +32 -0
- package/schematics/core/imagecropper.cjs +515 -0
- package/schematics/core/index.cjs +55 -0
- package/schematics/core/inputotp.cjs +56 -0
- package/schematics/core/knob.cjs +114 -0
- package/schematics/core/mask.cjs +122 -0
- package/schematics/core/menu.cjs +88 -0
- package/schematics/core/number.cjs +141 -0
- package/schematics/core/organizationchart.cjs +91 -0
- package/schematics/core/overrides.cjs +179 -0
- package/schematics/core/picklist.cjs +262 -0
- package/schematics/core/select.cjs +172 -0
- package/schematics/core/splitter.cjs +69 -0
- package/schematics/core/table.cjs +183 -0
- package/schematics/core/terminal.cjs +34 -0
- package/schematics/core/thai/buddhist.cjs +135 -0
- package/schematics/core/thai/locale.cjs +654 -0
- package/schematics/core/thai/text.cjs +173 -0
- package/schematics/core/thai/thai-id.cjs +26 -0
- package/schematics/core/tokens.cjs +335 -0
- package/schematics/core/tree.cjs +144 -0
- package/schematics/core/validation.cjs +46 -0
- package/schematics/from-primeng/index.cjs +221 -0
- package/schematics/from-primeng/mapping.cjs +195 -0
- package/schematics/from-primeng/schema.cjs +2 -0
- package/schematics/from-primeng/schema.json +17 -0
- package/schematics/migration.json +4 -0
- package/schematics/ng-add/index.cjs +318 -0
- package/schematics/ng-add/schema.cjs +2 -0
- package/schematics/ng-add/schema.json +325 -0
- package/schematics/utils/ast.cjs +185 -0
- package/schematics/utils/workspace.cjs +115 -0
- package/scroller/index.d.ts +5 -0
- package/scroller/public-api.d.ts +5 -0
- package/scroller/scroller.component.d.ts +135 -0
- package/scroller/scroller.module.d.ts +8 -0
- package/scrollpanel/index.d.ts +5 -0
- package/scrollpanel/public-api.d.ts +2 -0
- package/scrollpanel/scrollpanel.component.d.ts +27 -0
- package/scrollpanel/scrollpanel.module.d.ts +8 -0
- package/select/index.d.ts +5 -0
- package/select/public-api.d.ts +6 -0
- package/select/select.base.d.ts +217 -0
- package/select/select.component.d.ts +11 -0
- package/select/select.module.d.ts +8 -0
- package/select/select.styles.d.ts +2 -0
- package/select/select.types.d.ts +9 -0
- package/selectbutton/index.d.ts +5 -0
- package/selectbutton/public-api.d.ts +3 -0
- package/selectbutton/selectbutton.component.d.ts +70 -0
- package/selectbutton/selectbutton.module.d.ts +9 -0
- package/selectbutton/selectbutton.types.d.ts +9 -0
- package/sitefooter/index.d.ts +5 -0
- package/sitefooter/public-api.d.ts +2 -0
- package/sitefooter/sitefooter.component.d.ts +69 -0
- package/sitefooter/sitefooter.module.d.ts +9 -0
- package/skeleton/index.d.ts +5 -0
- package/skeleton/public-api.d.ts +3 -0
- package/skeleton/skeleton.component.d.ts +22 -0
- package/skeleton/skeleton.module.d.ts +8 -0
- package/skeleton/skeleton.types.d.ts +2 -0
- package/slider/index.d.ts +5 -0
- package/slider/public-api.d.ts +2 -0
- package/slider/slider.component.d.ts +79 -0
- package/slider/slider.module.d.ts +8 -0
- package/splitbutton/index.d.ts +5 -0
- package/splitbutton/public-api.d.ts +2 -0
- package/splitbutton/splitbutton.component.d.ts +75 -0
- package/splitbutton/splitbutton.module.d.ts +8 -0
- package/splitter/index.d.ts +5 -0
- package/splitter/public-api.d.ts +4 -0
- package/splitter/splitter-panel.component.d.ts +20 -0
- package/splitter/splitter.component.d.ts +109 -0
- package/splitter/splitter.module.d.ts +10 -0
- package/splitter/splitter.types.d.ts +8 -0
- package/stepper/index.d.ts +5 -0
- package/stepper/public-api.d.ts +3 -0
- package/stepper/stepper.base.d.ts +200 -0
- package/stepper/stepper.component.d.ts +41 -0
- package/stepper/stepper.module.d.ts +9 -0
- package/steps/index.d.ts +5 -0
- package/steps/public-api.d.ts +3 -0
- package/steps/steps.base.d.ts +52 -0
- package/steps/steps.component.d.ts +7 -0
- package/steps/steps.module.d.ts +8 -0
- package/table/index.d.ts +5 -0
- package/table/public-api.d.ts +9 -0
- package/table/table-celleditor.component.d.ts +14 -0
- package/table/table-filter.component.d.ts +11 -0
- package/table/table.base.d.ts +410 -0
- package/table/table.celleditor.d.ts +20 -0
- package/table/table.component.d.ts +12 -0
- package/table/table.directives.d.ts +330 -0
- package/table/table.filter.d.ts +131 -0
- package/table/table.module.d.ts +12 -0
- package/table/table.types.d.ts +180 -0
- package/tabmenu/index.d.ts +5 -0
- package/tabmenu/public-api.d.ts +2 -0
- package/tabs/index.d.ts +5 -0
- package/tabs/public-api.d.ts +8 -0
- package/tabs/tabmenu.base.d.ts +59 -0
- package/tabs/tabmenu.component.d.ts +10 -0
- package/tabs/tabmenu.module.d.ts +9 -0
- package/tabs/tabs.component.d.ts +147 -0
- package/tabs/tabs.module.d.ts +10 -0
- package/tabs/tabs.styles.d.ts +2 -0
- package/tabs/tabs.types.d.ts +21 -0
- package/tag/index.d.ts +5 -0
- package/tag/public-api.d.ts +3 -0
- package/tag/tag.component.d.ts +24 -0
- package/tag/tag.module.d.ts +8 -0
- package/tag/tag.types.d.ts +2 -0
- package/terminal/index.d.ts +5 -0
- package/terminal/public-api.d.ts +5 -0
- package/terminal/terminal.component.d.ts +58 -0
- package/terminal/terminal.module.d.ts +8 -0
- package/terminal/terminal.service.d.ts +20 -0
- package/textarea/index.d.ts +5 -0
- package/textarea/public-api.d.ts +2 -0
- package/textarea/textarea.directive.d.ts +33 -0
- package/textarea/textarea.module.d.ts +8 -0
- package/thai/index.d.ts +5 -0
- package/thai/public-api.d.ts +3 -0
- package/thai/thai.module.d.ts +8 -0
- package/thai/thai.pipes.d.ts +57 -0
- package/theme/_api.scss +71 -0
- package/theme/_color.scss +153 -0
- package/theme/_data.scss +9283 -0
- package/theme/_index.scss +424 -0
- package/theme/_version.scss +2 -0
- package/themes/arun-blue/theme.css +1446 -0
- package/themes/arun-green/theme.css +1446 -0
- package/themes/arun-orange/theme.css +1445 -0
- package/themes/arun-purple/theme.css +1446 -0
- package/themes/md-dark-deeppurple/theme.css +1309 -0
- package/themes/md-dark-indigo/theme.css +1309 -0
- package/themes/md-light-deeppurple/theme.css +1418 -0
- package/themes/md-light-indigo/theme.css +1418 -0
- package/themes/ratri-blue/theme.css +1309 -0
- package/themes/ratri-green/theme.css +1309 -0
- package/themes/ratri-orange/theme.css +1309 -0
- package/themes/ratri-purple/theme.css +1309 -0
- package/themes/sayan-blue/theme.css +1309 -0
- package/themes/sayan-green/theme.css +1309 -0
- package/themes/sayan-orange/theme.css +1309 -0
- package/themes/sayan-purple/theme.css +1309 -0
- package/themes/sila-dark-blue/theme.css +1309 -0
- package/themes/sila-dark-indigo/theme.css +1309 -0
- package/themes/sila-dark-purple/theme.css +1309 -0
- package/themes/sila-dark-teal/theme.css +1309 -0
- package/themes/sila-light-blue/theme.css +1446 -0
- package/themes/sila-light-indigo/theme.css +1446 -0
- package/themes/sila-light-purple/theme.css +1446 -0
- package/themes/sila-light-teal/theme.css +1446 -0
- package/themes/sila-light-wira/theme.css +1446 -0
- package/tieredmenu/index.d.ts +5 -0
- package/tieredmenu/public-api.d.ts +2 -0
- package/tieredmenu/tieredmenu.component.d.ts +90 -0
- package/tieredmenu/tieredmenu.module.d.ts +8 -0
- package/timeline/index.d.ts +5 -0
- package/timeline/public-api.d.ts +3 -0
- package/timeline/timeline.base.d.ts +36 -0
- package/timeline/timeline.component.d.ts +7 -0
- package/timeline/timeline.module.d.ts +9 -0
- package/toast/index.d.ts +5 -0
- package/toast/message.service.d.ts +19 -0
- package/toast/public-api.d.ts +5 -0
- package/toast/toast.base.d.ts +84 -0
- package/toast/toast.component.d.ts +10 -0
- package/toast/toast.module.d.ts +9 -0
- package/toast/toast.types.d.ts +28 -0
- package/togglebutton/index.d.ts +5 -0
- package/togglebutton/public-api.d.ts +3 -0
- package/togglebutton/togglebutton.component.d.ts +56 -0
- package/togglebutton/togglebutton.module.d.ts +8 -0
- package/togglebutton/togglebutton.types.d.ts +4 -0
- package/toggleswitch/index.d.ts +5 -0
- package/toggleswitch/public-api.d.ts +3 -0
- package/toggleswitch/toggleswitch.component.d.ts +52 -0
- package/toggleswitch/toggleswitch.module.d.ts +8 -0
- package/toggleswitch/toggleswitch.types.d.ts +4 -0
- package/toolbar/index.d.ts +5 -0
- package/toolbar/public-api.d.ts +2 -0
- package/toolbar/toolbar.component.d.ts +29 -0
- package/toolbar/toolbar.module.d.ts +9 -0
- package/tooltip/index.d.ts +5 -0
- package/tooltip/public-api.d.ts +3 -0
- package/tooltip/tooltip.directive.d.ts +87 -0
- package/tooltip/tooltip.module.d.ts +8 -0
- package/tooltip/tooltip.styles.d.ts +2 -0
- package/tooltip/tooltip.types.d.ts +14 -0
- package/tree/index.d.ts +5 -0
- package/tree/public-api.d.ts +2 -0
- package/tree/tree.component.d.ts +149 -0
- package/tree/tree.module.d.ts +8 -0
- package/treeselect/index.d.ts +5 -0
- package/treeselect/public-api.d.ts +2 -0
- package/treeselect/treeselect.component.d.ts +140 -0
- package/treeselect/treeselect.module.d.ts +8 -0
- package/utils/_index.scss +532 -0
- package/utils/_palettes.scss +23 -0
- package/utils/utils.css +9280 -0
- package/utils/utils.min.css +1 -0
- package/validation/field-error.component.d.ts +39 -0
- package/validation/index.d.ts +5 -0
- package/validation/public-api.d.ts +3 -0
- package/validation/validation.module.d.ts +9 -0
- package/validation/validators.d.ts +33 -0
|
@@ -0,0 +1,1355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHART_VARIANTS = void 0;
|
|
4
|
+
exports.relaxLabels = relaxLabels;
|
|
5
|
+
exports.streamModel = streamModel;
|
|
6
|
+
exports.waterfallModel = waterfallModel;
|
|
7
|
+
exports.dumbbellModel = dumbbellModel;
|
|
8
|
+
exports.timeTicks = timeTicks;
|
|
9
|
+
exports.timelineModel = timelineModel;
|
|
10
|
+
exports.funnelModel = funnelModel;
|
|
11
|
+
exports.boxStats = boxStats;
|
|
12
|
+
exports.boxplotModel = boxplotModel;
|
|
13
|
+
exports.histogramModel = histogramModel;
|
|
14
|
+
exports.sunburstModel = sunburstModel;
|
|
15
|
+
exports.unitModel = unitModel;
|
|
16
|
+
exports.slopeModel = slopeModel;
|
|
17
|
+
exports.chartHit = chartHit;
|
|
18
|
+
exports.chartVariants = chartVariants;
|
|
19
|
+
exports.chartMovesValues = chartMovesValues;
|
|
20
|
+
exports.chartSwapTypes = chartSwapTypes;
|
|
21
|
+
/**
|
|
22
|
+
* wu-chart: stream, waterfall, dumbbell, timeline, funnel, box plot, histogram, sunburst / icicle, unit (waffle, dots,
|
|
23
|
+
* people) and slope charts. They draw with plain shapes (`model.shapes`) and texts (`model.texts`), each hover target
|
|
24
|
+
* carries its own tooltip and is found with `chartHit()`, and `variant` picks a look. `chartSwapTypes()` lists the kinds
|
|
25
|
+
* the same data can be shown as (the chart's type switcher).
|
|
26
|
+
*/
|
|
27
|
+
const format_1 = require("./format.cjs");
|
|
28
|
+
const more_1 = require("./more.cjs");
|
|
29
|
+
const paths_1 = require("./paths.cjs");
|
|
30
|
+
const scale_1 = require("./scale.cjs");
|
|
31
|
+
const num = (v) => (typeof v === 'number' && Number.isFinite(v) ? v : null);
|
|
32
|
+
const approx = (text, size) => text.length * size * 0.56;
|
|
33
|
+
const UP = 'var(--wu-chart-up)';
|
|
34
|
+
const DOWN = 'var(--wu-chart-down)';
|
|
35
|
+
const TOTAL = 'var(--wu-chart-total)';
|
|
36
|
+
const MUTED = 'var(--wu-chart-muted)';
|
|
37
|
+
const TURN = Math.PI * 2;
|
|
38
|
+
const r2 = (n) => Math.round(n * 100) / 100;
|
|
39
|
+
const WORDS = {
|
|
40
|
+
th: {
|
|
41
|
+
change: 'เปลี่ยนแปลง',
|
|
42
|
+
running: 'ยอดสะสม',
|
|
43
|
+
total: 'รวม',
|
|
44
|
+
min: 'ต่ำสุด',
|
|
45
|
+
q1: 'ควอไทล์ 1',
|
|
46
|
+
median: 'มัธยฐาน',
|
|
47
|
+
q3: 'ควอไทล์ 3',
|
|
48
|
+
max: 'สูงสุด',
|
|
49
|
+
mean: 'ค่าเฉลี่ย',
|
|
50
|
+
count: 'จำนวน',
|
|
51
|
+
start: 'เริ่ม',
|
|
52
|
+
end: 'สิ้นสุด',
|
|
53
|
+
length: 'ระยะเวลา',
|
|
54
|
+
ofFirst: 'ของขั้นแรก',
|
|
55
|
+
ofPrevious: 'ของขั้นก่อน',
|
|
56
|
+
share: 'สัดส่วน',
|
|
57
|
+
difference: 'ส่วนต่าง',
|
|
58
|
+
days: 'วัน',
|
|
59
|
+
hours: 'ชม.',
|
|
60
|
+
minutes: 'นาที',
|
|
61
|
+
},
|
|
62
|
+
en: {
|
|
63
|
+
change: 'Change',
|
|
64
|
+
running: 'Running total',
|
|
65
|
+
total: 'Total',
|
|
66
|
+
min: 'Min',
|
|
67
|
+
q1: 'Q1',
|
|
68
|
+
median: 'Median',
|
|
69
|
+
q3: 'Q3',
|
|
70
|
+
max: 'Max',
|
|
71
|
+
mean: 'Mean',
|
|
72
|
+
count: 'Count',
|
|
73
|
+
start: 'Start',
|
|
74
|
+
end: 'End',
|
|
75
|
+
length: 'Length',
|
|
76
|
+
ofFirst: 'of the first',
|
|
77
|
+
ofPrevious: 'of the previous',
|
|
78
|
+
share: 'Share',
|
|
79
|
+
difference: 'Difference',
|
|
80
|
+
days: 'days',
|
|
81
|
+
hours: 'h',
|
|
82
|
+
minutes: 'min',
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
function kit(o) {
|
|
86
|
+
const fontSize = o.fontSize || 12;
|
|
87
|
+
const lang = String(o.formatOptions?.lang || 'th');
|
|
88
|
+
return {
|
|
89
|
+
fontSize,
|
|
90
|
+
lineH: fontSize * 1.4,
|
|
91
|
+
measure: o.measure || approx,
|
|
92
|
+
fmt: (v) => (0, format_1.formatChartValue)(v, o.format, o.formatOptions),
|
|
93
|
+
pct: (v) => (0, format_1.formatChartValue)(v, 'percent', { lang, decimals: v > 0 && v < 0.1 ? 1 : 0 }),
|
|
94
|
+
words: lang.toLowerCase().startsWith('en') ? WORDS.en : WORDS.th,
|
|
95
|
+
lang,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
const colorOf = (s, i, palette) => s?.color || palette[i % palette.length];
|
|
99
|
+
const valuesOf = (s) => (s ? s.data.map((v) => num(v)) : []);
|
|
100
|
+
/** Moves label centres apart so no two are closer than `gap`, inside `lo` … `hi`, staying near where they were. */
|
|
101
|
+
function relaxLabels(ys, gap, lo, hi) {
|
|
102
|
+
const order = ys.map((y, i) => ({ y, i })).sort((a, b) => a.y - b.y);
|
|
103
|
+
const out = order.map((p) => p.y);
|
|
104
|
+
for (let pass = 0; pass < 3; pass++) {
|
|
105
|
+
if (out.length && out[0] < lo)
|
|
106
|
+
out[0] = lo;
|
|
107
|
+
for (let k = 1; k < out.length; k++)
|
|
108
|
+
if (out[k] - out[k - 1] < gap)
|
|
109
|
+
out[k] = out[k - 1] + gap;
|
|
110
|
+
if (out.length && out[out.length - 1] > hi) {
|
|
111
|
+
out[out.length - 1] = hi;
|
|
112
|
+
for (let k = out.length - 2; k >= 0; k--)
|
|
113
|
+
if (out[k + 1] - out[k] < gap)
|
|
114
|
+
out[k] = out[k + 1] - gap;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const res = new Array(ys.length);
|
|
118
|
+
order.forEach((p, k) => (res[p.i] = out[k]));
|
|
119
|
+
return res;
|
|
120
|
+
}
|
|
121
|
+
function axes(o, model, spec) {
|
|
122
|
+
const { width, height } = model;
|
|
123
|
+
const { fontSize, lineH, measure } = kit(o);
|
|
124
|
+
const pad = 8;
|
|
125
|
+
const across = !!spec.across;
|
|
126
|
+
const count = Math.max(2, Math.min(10, Math.floor((across ? width : height) / (across ? 90 : 44))));
|
|
127
|
+
let scale;
|
|
128
|
+
if (spec.ticks)
|
|
129
|
+
scale = { min: spec.lo, max: spec.hi, ticks: spec.ticks };
|
|
130
|
+
else {
|
|
131
|
+
scale = (0, scale_1.niceScale)(o.min ?? spec.lo, o.max ?? spec.hi, count, !!spec.zero);
|
|
132
|
+
if (o.min !== undefined)
|
|
133
|
+
scale.min = o.min;
|
|
134
|
+
if (o.max !== undefined)
|
|
135
|
+
scale.max = o.max;
|
|
136
|
+
const given = o.scales?.left;
|
|
137
|
+
if (given && Number.isFinite(given.min) && Number.isFinite(given.max) && given.max > given.min)
|
|
138
|
+
scale = { min: given.min, max: given.max, ticks: [...given.ticks] };
|
|
139
|
+
scale.ticks = scale.ticks.filter((t) => t >= scale.min - 1e-9 && t <= scale.max + 1e-9);
|
|
140
|
+
}
|
|
141
|
+
model.scales = { left: { min: scale.min, max: scale.max, ticks: [...scale.ticks] }, right: null };
|
|
142
|
+
const showVal = spec.valueAxis !== false;
|
|
143
|
+
const widest = (t) => t.reduce((w, s) => Math.max(w, measure(s, fontSize)), 0);
|
|
144
|
+
const valTexts = showVal ? scale.ticks.map(spec.fmt) : [];
|
|
145
|
+
const top = pad + (o.showValues && !across ? lineH : fontSize / 2);
|
|
146
|
+
let left = pad;
|
|
147
|
+
let bottom = pad;
|
|
148
|
+
let right = pad;
|
|
149
|
+
if (across) {
|
|
150
|
+
if (spec.cats.length)
|
|
151
|
+
left += Math.min(width * 0.35, widest(spec.cats)) + pad;
|
|
152
|
+
if (showVal)
|
|
153
|
+
bottom += lineH + 4;
|
|
154
|
+
right += Math.max(spec.farRoom ?? 0, valTexts.length ? measure(valTexts[valTexts.length - 1], fontSize) / 2 : 0);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
if (showVal)
|
|
158
|
+
left += widest(valTexts) + pad;
|
|
159
|
+
if (spec.cats.length || spec.numericX)
|
|
160
|
+
bottom += lineH + 4;
|
|
161
|
+
}
|
|
162
|
+
if (o.xTitle)
|
|
163
|
+
bottom += lineH + 2;
|
|
164
|
+
if (o.yTitle)
|
|
165
|
+
left += lineH + 2;
|
|
166
|
+
const plot = { x: left, y: top, w: Math.max(10, width - left - right), h: Math.max(10, height - top - bottom) };
|
|
167
|
+
model.plot = plot;
|
|
168
|
+
const n = spec.cats.length;
|
|
169
|
+
const b = (0, scale_1.bands)(Math.max(1, n), across ? plot.y : plot.x, across ? plot.y + plot.h : plot.x + plot.w, spec.padding ?? 0.3);
|
|
170
|
+
const cat = (k) => spec.edge && n > 1 ? (across ? plot.y + (plot.h * k) / (n - 1) : plot.x + (plot.w * k) / (n - 1)) : b.offset(k) + b.width / 2;
|
|
171
|
+
const val = across ? (v) => (0, scale_1.scaleLinear)(v, scale.min, scale.max, plot.x, plot.x + plot.w) : (v) => (0, scale_1.scaleLinear)(v, scale.min, scale.max, plot.y + plot.h, plot.y);
|
|
172
|
+
const grid = o.grid !== false && spec.grid !== false;
|
|
173
|
+
for (const t of scale.ticks) {
|
|
174
|
+
const at = val(t);
|
|
175
|
+
if (across) {
|
|
176
|
+
if (grid)
|
|
177
|
+
model.grid.push({ x1: at, y1: plot.y, x2: at, y2: plot.y + plot.h });
|
|
178
|
+
if (showVal)
|
|
179
|
+
model.xTicks.push({ x: at, y: plot.y + plot.h + pad / 2, text: spec.fmt(t), anchor: 'middle', baseline: 'hanging' });
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
if (grid)
|
|
183
|
+
model.grid.push({ x1: plot.x, y1: at, x2: plot.x + plot.w, y2: at });
|
|
184
|
+
if (showVal)
|
|
185
|
+
model.yTicks.push({ x: plot.x - pad / 2, y: at, text: spec.fmt(t), anchor: 'end', baseline: 'middle' });
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (showVal && scale.min < 0 && scale.max > 0) {
|
|
189
|
+
const z = val(0);
|
|
190
|
+
model.zero = across ? { x1: z, y1: plot.y, x2: z, y2: plot.y + plot.h } : { x1: plot.x, y1: z, x2: plot.x + plot.w, y2: z };
|
|
191
|
+
}
|
|
192
|
+
const nxr = spec.numericX;
|
|
193
|
+
const nx = (v) => (nxr ? (0, scale_1.scaleLinear)(v, nxr.min, nxr.max, plot.x, plot.x + plot.w) : plot.x);
|
|
194
|
+
if (nxr) {
|
|
195
|
+
const space = plot.w / Math.max(1, nxr.ticks.length - 1);
|
|
196
|
+
const every = Math.max(1, Math.ceil((widest(nxr.ticks.map(nxr.fmt)) + pad) / Math.max(1, space)));
|
|
197
|
+
nxr.ticks.forEach((t, k) => {
|
|
198
|
+
if (k % every === 0)
|
|
199
|
+
model.xTicks.push({ x: nx(t), y: plot.y + plot.h + pad / 2, text: nxr.fmt(t), anchor: 'middle', baseline: 'hanging' });
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
else if (n) {
|
|
203
|
+
if (across) {
|
|
204
|
+
const every = Math.max(1, Math.ceil((lineH + 2) / Math.max(1, b.step)));
|
|
205
|
+
for (let k = 0; k < n; k += every)
|
|
206
|
+
model.yTicks.push({ x: plot.x - pad / 2, y: cat(k), text: spec.cats[k], anchor: 'end', baseline: 'middle' });
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
const space = spec.edge && n > 1 ? plot.w / (n - 1) : b.step;
|
|
210
|
+
const every = Math.max(1, Math.ceil((widest(spec.cats) + pad) / Math.max(1, space)));
|
|
211
|
+
for (let k = 0; k < n; k += every) {
|
|
212
|
+
const anchor = spec.edge && n > 1 && k === 0 ? 'start' : spec.edge && n > 1 && k === n - 1 ? 'end' : 'middle';
|
|
213
|
+
model.xTicks.push({ x: cat(k), y: plot.y + plot.h + pad / 2, text: spec.cats[k], anchor, baseline: 'hanging' });
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (o.xTitle)
|
|
218
|
+
model.titles.push({ x: plot.x + plot.w / 2, y: height - pad, text: o.xTitle, anchor: 'middle', baseline: 'auto' });
|
|
219
|
+
if (o.yTitle)
|
|
220
|
+
model.titles.push({ x: pad + fontSize * 0.7, y: plot.y + plot.h / 2, text: o.yTitle, anchor: 'middle', baseline: 'middle', rotate: -90 });
|
|
221
|
+
return { plot, val, cat, offset: b.offset, bw: b.width, step: b.step, nx, min: scale.min, max: scale.max };
|
|
222
|
+
}
|
|
223
|
+
/** A hover target over a whole category (band or point), with the pointer guide when `cross`. */
|
|
224
|
+
function categoryTarget(a, k, across, key, tip, cross = false, count = 0, edge = false) {
|
|
225
|
+
const c = a.cat(k);
|
|
226
|
+
const half = edge && count > 1 ? (across ? a.plot.h : a.plot.w) / (count - 1) / 2 : a.step / 2;
|
|
227
|
+
if (across)
|
|
228
|
+
return { index: k, key, tip, x: a.plot.x, y: c - half, w: a.plot.w, h: half * 2, cx: a.plot.x + a.plot.w, cy: c, cross };
|
|
229
|
+
const x0 = Math.max(a.plot.x, c - half);
|
|
230
|
+
const x1 = Math.min(a.plot.x + a.plot.w, c + half);
|
|
231
|
+
return { index: k, key, tip, x: x0, y: a.plot.y, w: x1 - x0, h: a.plot.h, cx: c, cy: a.plot.y, cross };
|
|
232
|
+
}
|
|
233
|
+
// ---------------------------------------------------------------- stream
|
|
234
|
+
/** Stacked areas around a middle line: `'silhouette'` (default, even about the middle), `'wiggle'` (least sway) or `'expand'` (shares, 0–100%). */
|
|
235
|
+
function streamModel(o, model, palette) {
|
|
236
|
+
const k = kit(o);
|
|
237
|
+
const variant = o.variant === 'wiggle' || o.variant === 'expand' ? o.variant : 'silhouette';
|
|
238
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
239
|
+
const all = o.series || [];
|
|
240
|
+
model.legend = all.map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'box' }));
|
|
241
|
+
const shown = all.map((s, i) => ({ s, i, v: valuesOf(s).map((x) => Math.max(0, x ?? 0)) })).filter((p) => !p.s.hidden);
|
|
242
|
+
const count = Math.max(labels.length, ...shown.map((p) => p.v.length), 0);
|
|
243
|
+
const totals = Array.from({ length: count }, (_, j) => shown.reduce((sum, p) => sum + (p.v[j] || 0), 0));
|
|
244
|
+
model.empty = !totals.some((t) => t > 0);
|
|
245
|
+
const share = variant === 'expand';
|
|
246
|
+
const val = (p, j) => (share ? (totals[j] ? (p.v[j] || 0) / totals[j] : 0) : p.v[j] || 0);
|
|
247
|
+
// The baseline of the lowest layer at each label.
|
|
248
|
+
const base = new Array(count).fill(0);
|
|
249
|
+
if (variant === 'silhouette')
|
|
250
|
+
for (let j = 0; j < count; j++)
|
|
251
|
+
base[j] = -totals[j] / 2;
|
|
252
|
+
if (variant === 'wiggle') {
|
|
253
|
+
for (let j = 1; j < count; j++) {
|
|
254
|
+
let s1 = 0;
|
|
255
|
+
let s2 = 0;
|
|
256
|
+
shown.forEach((p, i) => {
|
|
257
|
+
const now = p.v[j] || 0;
|
|
258
|
+
let s3 = ((p.v[j] || 0) - (p.v[j - 1] || 0)) / 2;
|
|
259
|
+
for (let q = 0; q < i; q++)
|
|
260
|
+
s3 += (shown[q].v[j] || 0) - (shown[q].v[j - 1] || 0);
|
|
261
|
+
s1 += now;
|
|
262
|
+
s2 += s3 * now;
|
|
263
|
+
});
|
|
264
|
+
base[j] = base[j - 1] - (s1 ? s2 / s1 : 0);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
let lo = 0;
|
|
268
|
+
let hi = share ? 1 : 0;
|
|
269
|
+
if (!share) {
|
|
270
|
+
lo = Infinity;
|
|
271
|
+
hi = -Infinity;
|
|
272
|
+
for (let j = 0; j < count; j++) {
|
|
273
|
+
lo = Math.min(lo, base[j]);
|
|
274
|
+
hi = Math.max(hi, base[j] + totals[j]);
|
|
275
|
+
}
|
|
276
|
+
if (!(lo < hi))
|
|
277
|
+
[lo, hi] = [0, 1];
|
|
278
|
+
// Growing in or changing: the axis it ends with.
|
|
279
|
+
const given = o.scales?.left;
|
|
280
|
+
if (given && given.max > given.min)
|
|
281
|
+
[lo, hi] = [given.min, given.max];
|
|
282
|
+
}
|
|
283
|
+
const a = axes(o, model, {
|
|
284
|
+
cats: labels.slice(0, count),
|
|
285
|
+
edge: true,
|
|
286
|
+
lo,
|
|
287
|
+
hi,
|
|
288
|
+
zero: share,
|
|
289
|
+
fmt: share ? k.pct : k.fmt,
|
|
290
|
+
ticks: share ? [0, 0.25, 0.5, 0.75, 1] : [],
|
|
291
|
+
valueAxis: share,
|
|
292
|
+
grid: share,
|
|
293
|
+
});
|
|
294
|
+
if (!share)
|
|
295
|
+
model.scales = { left: { min: lo, max: hi, ticks: [] }, right: null };
|
|
296
|
+
const lower = [...base];
|
|
297
|
+
shown.forEach((p) => {
|
|
298
|
+
const up = [];
|
|
299
|
+
const down = [];
|
|
300
|
+
let thick = { at: -1, px: 0, y: 0 };
|
|
301
|
+
for (let j = 0; j < count; j++) {
|
|
302
|
+
const y0 = lower[j];
|
|
303
|
+
const y1 = y0 + val(p, j);
|
|
304
|
+
lower[j] = y1;
|
|
305
|
+
const x = a.cat(j);
|
|
306
|
+
up.push({ x, y: a.val(y1) });
|
|
307
|
+
down.push({ x, y: a.val(y0) });
|
|
308
|
+
const px = Math.abs(a.val(y0) - a.val(y1));
|
|
309
|
+
if (px > thick.px)
|
|
310
|
+
thick = { at: j, px, y: (a.val(y0) + a.val(y1)) / 2 };
|
|
311
|
+
}
|
|
312
|
+
const color = colorOf(p.s, p.i, palette);
|
|
313
|
+
model.shapes.push({ key: `st${p.i}`, kind: 'path', d: (0, paths_1.bandPath)(up, down, 'smooth'), fill: color, opacity: 0.88, className: 'wu-chart-stream', hover: `s${p.i}` });
|
|
314
|
+
// The name inside the layer, where it is thickest.
|
|
315
|
+
const name = p.s.name ?? '';
|
|
316
|
+
if (name && thick.at >= 0 && thick.px >= k.fontSize + 6) {
|
|
317
|
+
const w = k.measure(name, k.fontSize);
|
|
318
|
+
const x = Math.min(Math.max(a.cat(thick.at), a.plot.x + w / 2 + 4), a.plot.x + a.plot.w - w / 2 - 4);
|
|
319
|
+
model.texts.push({ x, y: thick.y, text: name, anchor: 'middle', baseline: 'middle', tone: 'inside', strong: true, hover: `s${p.i}` });
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
for (let j = 0; j < count; j++) {
|
|
323
|
+
const rows = shown.map((p) => ({ color: colorOf(p.s, p.i, palette), name: p.s.name ?? '', value: share ? `${k.pct(val(p, j))} · ${k.fmt(p.v[j] || 0)}` : k.fmt(p.v[j] || 0) }));
|
|
324
|
+
if (!share && shown.length > 1)
|
|
325
|
+
rows.push({ color: 'transparent', name: k.words.total, value: k.fmt(totals[j]) });
|
|
326
|
+
model.hover.push(categoryTarget(a, j, false, `c${j}`, { title: labels[j] ?? '', rows: rows.reverse() }, true, count, true));
|
|
327
|
+
}
|
|
328
|
+
return model;
|
|
329
|
+
}
|
|
330
|
+
// ---------------------------------------------------------------- waterfall
|
|
331
|
+
/**
|
|
332
|
+
* Changes adding up to a total: each value moves the running total up (green) or down (red); a `null` draws a total bar.
|
|
333
|
+
* `'bars'` (default) floats each change from where the last one ended, joined by dashed lines; `'steps'` draws the
|
|
334
|
+
* running total as a step line over pale change bars.
|
|
335
|
+
*/
|
|
336
|
+
function waterfallModel(o, model, palette) {
|
|
337
|
+
const k = kit(o);
|
|
338
|
+
const steps = o.variant === 'steps';
|
|
339
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
340
|
+
const s = (o.series || []).find((x) => !x.hidden);
|
|
341
|
+
const raw = s ? s.data : [];
|
|
342
|
+
const count = Math.max(labels.length, raw.length);
|
|
343
|
+
model.legend = [];
|
|
344
|
+
const parts = [];
|
|
345
|
+
let run = 0;
|
|
346
|
+
for (let j = 0; j < count; j++) {
|
|
347
|
+
const v = num(raw[j]);
|
|
348
|
+
if (v === null)
|
|
349
|
+
parts.push({ from: 0, to: run, total: true, change: run });
|
|
350
|
+
else {
|
|
351
|
+
parts.push({ from: run, to: run + v, total: false, change: v });
|
|
352
|
+
run += v;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
model.empty = !parts.some((p) => p.to !== p.from);
|
|
356
|
+
let lo = 0;
|
|
357
|
+
let hi = 0;
|
|
358
|
+
for (const p of parts) {
|
|
359
|
+
lo = Math.min(lo, p.from, p.to);
|
|
360
|
+
hi = Math.max(hi, p.from, p.to);
|
|
361
|
+
}
|
|
362
|
+
const a = axes(o, model, { cats: labels.slice(0, count), lo, hi, zero: true, fmt: k.fmt, padding: 0.32 });
|
|
363
|
+
const signed = (v) => (v > 0 ? '+' : v < 0 ? '−' : '') + k.fmt(Math.abs(v));
|
|
364
|
+
const showValues = o.showValues ?? true;
|
|
365
|
+
const line = [];
|
|
366
|
+
parts.forEach((p, j) => {
|
|
367
|
+
const color = p.total ? TOTAL : p.change >= 0 ? UP : DOWN;
|
|
368
|
+
const x = a.offset(j);
|
|
369
|
+
const y0 = a.val(Math.max(p.from, p.to));
|
|
370
|
+
const y1 = a.val(Math.min(p.from, p.to));
|
|
371
|
+
const h = Math.max(1, y1 - y0);
|
|
372
|
+
model.shapes.push({ key: `w${j}`, kind: 'rect', x, y: y0, w: a.bw, h, rx: 3, fill: color, opacity: steps && !p.total ? 0.32 : 1, hover: `c${j}` });
|
|
373
|
+
if (steps) {
|
|
374
|
+
line.push({ x, y: a.val(p.to) }, { x: x + a.bw, y: a.val(p.to) });
|
|
375
|
+
}
|
|
376
|
+
else if (j < parts.length - 1) {
|
|
377
|
+
// Dashed joint from this bar's end to the next bar.
|
|
378
|
+
const y = a.val(p.to);
|
|
379
|
+
model.shapes.push({ key: `wj${j}`, kind: 'line', x: x + a.bw, y, x2: a.offset(j + 1), y2: y, stroke: MUTED, strokeWidth: 1, dashed: true, className: 'wu-chart-connector' });
|
|
380
|
+
}
|
|
381
|
+
if (showValues) {
|
|
382
|
+
const up = p.total || p.change >= 0;
|
|
383
|
+
model.valueLabels.push({ x: x + a.bw / 2, y: up ? y0 - 4 : y1 + 4, text: p.total ? k.fmt(p.to) : signed(p.change), anchor: 'middle', baseline: up ? 'auto' : 'hanging' });
|
|
384
|
+
}
|
|
385
|
+
const rows = p.total
|
|
386
|
+
? [{ color, name: k.words.total, value: k.fmt(p.to) }]
|
|
387
|
+
: [
|
|
388
|
+
{ color, name: k.words.change, value: signed(p.change) },
|
|
389
|
+
{ color: TOTAL, name: k.words.running, value: k.fmt(p.to) },
|
|
390
|
+
];
|
|
391
|
+
model.hover.push(categoryTarget(a, j, false, `c${j}`, { title: labels[j] ?? '', rows }));
|
|
392
|
+
});
|
|
393
|
+
if (steps && line.length) {
|
|
394
|
+
model.shapes.push({ key: 'wline', kind: 'path', d: (0, paths_1.linePath)(line), stroke: TOTAL, strokeWidth: 2.5, className: 'wu-chart-line-shape' });
|
|
395
|
+
parts.forEach((p, j) => {
|
|
396
|
+
if (p.total)
|
|
397
|
+
model.shapes.push({ key: `wd${j}`, kind: 'circle', x: a.cat(j), y: a.val(p.to), r: 4.5, fill: 'var(--wu-chart-dot-fill)', stroke: TOTAL, strokeWidth: 2.5 });
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return model;
|
|
401
|
+
}
|
|
402
|
+
// ---------------------------------------------------------------- dumbbell
|
|
403
|
+
/**
|
|
404
|
+
* Two values per row (the first two series), from one to the other: `'dots'` (default; a line fading from one colour
|
|
405
|
+
* to the other), `'arrow'` (green when it went up, red when down) or `'range'` (a pale bar between the dots).
|
|
406
|
+
*/
|
|
407
|
+
function dumbbellModel(o, model, palette) {
|
|
408
|
+
const k = kit(o);
|
|
409
|
+
const variant = o.variant === 'arrow' || o.variant === 'range' ? o.variant : 'dots';
|
|
410
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
411
|
+
const all = o.series || [];
|
|
412
|
+
model.legend = all.slice(0, 2).map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'dot' }));
|
|
413
|
+
const [sa, sb] = [all[0], all[1]];
|
|
414
|
+
const va = sa && !sa.hidden ? valuesOf(sa) : [];
|
|
415
|
+
const vb = sb && !sb.hidden ? valuesOf(sb) : [];
|
|
416
|
+
const count = Math.max(labels.length, va.length, vb.length);
|
|
417
|
+
let lo = Infinity;
|
|
418
|
+
let hi = -Infinity;
|
|
419
|
+
for (const v of [...va, ...vb]) {
|
|
420
|
+
if (v === null)
|
|
421
|
+
continue;
|
|
422
|
+
lo = Math.min(lo, v);
|
|
423
|
+
hi = Math.max(hi, v);
|
|
424
|
+
}
|
|
425
|
+
model.empty = !(lo <= hi);
|
|
426
|
+
if (model.empty)
|
|
427
|
+
[lo, hi] = [0, 1];
|
|
428
|
+
const ca = colorOf(sa, 0, palette);
|
|
429
|
+
const cb = colorOf(sb, 1, palette);
|
|
430
|
+
const a = axes(o, model, { cats: labels.slice(0, count), across: true, lo, hi, zero: false, fmt: k.fmt, padding: 0.4, farRoom: o.showValues ? 40 : 0 });
|
|
431
|
+
for (let j = 0; j < count; j++) {
|
|
432
|
+
const x0v = va[j] ?? null;
|
|
433
|
+
const x1v = vb[j] ?? null;
|
|
434
|
+
const y = a.cat(j);
|
|
435
|
+
const rows = [];
|
|
436
|
+
if (x0v !== null)
|
|
437
|
+
rows.push({ color: ca, name: sa?.name ?? '', value: k.fmt(x0v) });
|
|
438
|
+
if (x1v !== null)
|
|
439
|
+
rows.push({ color: cb, name: sb?.name ?? '', value: k.fmt(x1v) });
|
|
440
|
+
if (x0v !== null && x1v !== null) {
|
|
441
|
+
const x0 = a.val(x0v);
|
|
442
|
+
const x1 = a.val(x1v);
|
|
443
|
+
const diff = x1v - x0v;
|
|
444
|
+
rows.push({ color: diff >= 0 ? UP : DOWN, name: k.words.difference, value: (diff > 0 ? '+' : diff < 0 ? '−' : '') + k.fmt(Math.abs(diff)) });
|
|
445
|
+
if (variant === 'range') {
|
|
446
|
+
const h = Math.max(6, Math.min(16, a.bw * 0.5));
|
|
447
|
+
model.shapes.push({ key: `dr${j}`, kind: 'rect', x: Math.min(x0, x1), y: y - h / 2, w: Math.max(1, Math.abs(x1 - x0)), h, rx: h / 2, fill: cb, opacity: 0.22, enter: 'grow-x', hover: `r${j}` });
|
|
448
|
+
}
|
|
449
|
+
else if (variant === 'arrow') {
|
|
450
|
+
const color = diff >= 0 ? UP : DOWN;
|
|
451
|
+
const dir = x1 >= x0 ? 1 : -1;
|
|
452
|
+
const tip = x1 - dir * 2;
|
|
453
|
+
if (Math.abs(x1 - x0) > 10) {
|
|
454
|
+
model.shapes.push({ key: `dl${j}`, kind: 'line', x: x0, y, x2: tip - dir * 8, y2: y, stroke: color, strokeWidth: 3, hover: `r${j}` });
|
|
455
|
+
model.shapes.push({ key: `da${j}`, kind: 'path', d: `M${r2(tip)} ${r2(y)}L${r2(tip - dir * 11)} ${r2(y - 6)}L${r2(tip - dir * 11)} ${r2(y + 6)}Z`, fill: color, hover: `r${j}` });
|
|
456
|
+
}
|
|
457
|
+
model.shapes.push({ key: `dp${j}`, kind: 'circle', x: x0, y, r: 4.5, fill: 'var(--wu-chart-dot-fill)', stroke: color, strokeWidth: 2.5, hover: `r${j}` });
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
model.shapes.push({
|
|
461
|
+
key: `dl${j}`,
|
|
462
|
+
kind: 'line',
|
|
463
|
+
x: x0,
|
|
464
|
+
y,
|
|
465
|
+
x2: x1,
|
|
466
|
+
y2: y,
|
|
467
|
+
stroke: ca,
|
|
468
|
+
strokeWidth: 3,
|
|
469
|
+
gradient: Math.abs(x1 - x0) > 1 ? { x1: x0, y1: y, x2: x1, y2: y, from: ca, to: cb } : undefined,
|
|
470
|
+
hover: `r${j}`,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
if (o.showValues) {
|
|
474
|
+
const [left, right] = x0 <= x1 ? [x0v, x1v] : [x1v, x0v];
|
|
475
|
+
model.valueLabels.push({ x: Math.min(x0, x1) - 9, y, text: k.fmt(left), anchor: 'end', baseline: 'middle' });
|
|
476
|
+
model.valueLabels.push({ x: Math.max(x0, x1) + 9, y, text: k.fmt(right), anchor: 'start', baseline: 'middle' });
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if (variant !== 'arrow') {
|
|
480
|
+
if (x0v !== null)
|
|
481
|
+
model.shapes.push({ key: `da${j}`, kind: 'circle', x: a.val(x0v), y, r: 6, fill: ca, stroke: 'var(--wu-chart-dot-fill)', strokeWidth: 2, enter: 'pop', hover: `r${j}` });
|
|
482
|
+
if (x1v !== null)
|
|
483
|
+
model.shapes.push({ key: `db${j}`, kind: 'circle', x: a.val(x1v), y, r: 6, fill: cb, stroke: 'var(--wu-chart-dot-fill)', strokeWidth: 2, enter: 'pop', delay: 120, hover: `r${j}` });
|
|
484
|
+
}
|
|
485
|
+
if (rows.length)
|
|
486
|
+
model.hover.push(categoryTarget(a, j, true, `r${j}`, { title: labels[j] ?? '', rows }));
|
|
487
|
+
}
|
|
488
|
+
return model;
|
|
489
|
+
}
|
|
490
|
+
// ---------------------------------------------------------------- timeline
|
|
491
|
+
const MINUTE = 60000;
|
|
492
|
+
const HOUR = 60 * MINUTE;
|
|
493
|
+
const DAY = 24 * HOUR;
|
|
494
|
+
const TIME_STEPS = [MINUTE, 5 * MINUTE, 15 * MINUTE, 30 * MINUTE, HOUR, 3 * HOUR, 6 * HOUR, 12 * HOUR, DAY, 2 * DAY, 7 * DAY, 14 * DAY, 30 * DAY, 91 * DAY, 182 * DAY, 365 * DAY];
|
|
495
|
+
/** Round ticks for a time axis from `lo` to `hi` (ms): minutes, hours, local midnights, Mondays-agnostic weeks or the 1st of months. */
|
|
496
|
+
function timeTicks(lo, hi, count = 6) {
|
|
497
|
+
const span = Math.max(1, hi - lo);
|
|
498
|
+
const step = TIME_STEPS.find((s) => span / s <= count) ?? 365 * DAY * Math.ceil(span / (count * 365 * DAY));
|
|
499
|
+
const ticks = [];
|
|
500
|
+
if (step >= 30 * DAY) {
|
|
501
|
+
const months = Math.max(1, Math.round(step / (30 * DAY)));
|
|
502
|
+
const d = new Date(lo);
|
|
503
|
+
d.setHours(0, 0, 0, 0);
|
|
504
|
+
d.setDate(1);
|
|
505
|
+
if (d.getTime() < lo)
|
|
506
|
+
d.setMonth(d.getMonth() + 1);
|
|
507
|
+
while (d.getMonth() % months !== 0)
|
|
508
|
+
d.setMonth(d.getMonth() + 1);
|
|
509
|
+
for (let i = 0; d.getTime() <= hi && i < 400; i++) {
|
|
510
|
+
ticks.push(d.getTime());
|
|
511
|
+
d.setMonth(d.getMonth() + months);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
else if (step >= DAY) {
|
|
515
|
+
const days = Math.round(step / DAY);
|
|
516
|
+
const d = new Date(lo);
|
|
517
|
+
d.setHours(0, 0, 0, 0);
|
|
518
|
+
if (d.getTime() < lo)
|
|
519
|
+
d.setDate(d.getDate() + 1);
|
|
520
|
+
for (let i = 0; d.getTime() <= hi && i < 400; i++) {
|
|
521
|
+
ticks.push(d.getTime());
|
|
522
|
+
d.setDate(d.getDate() + days);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
const offset = -new Date(lo).getTimezoneOffset() * MINUTE;
|
|
527
|
+
for (let t = Math.ceil((lo + offset) / step) * step - offset, i = 0; t <= hi && i < 400; t += step, i++)
|
|
528
|
+
ticks.push(t);
|
|
529
|
+
}
|
|
530
|
+
return { ticks, step };
|
|
531
|
+
}
|
|
532
|
+
const toMs = (v) => {
|
|
533
|
+
if (v instanceof Date)
|
|
534
|
+
return Number.isFinite(v.getTime()) ? v.getTime() : null;
|
|
535
|
+
if (typeof v === 'string') {
|
|
536
|
+
const t = Date.parse(v);
|
|
537
|
+
return Number.isFinite(t) ? t : null;
|
|
538
|
+
}
|
|
539
|
+
return num(v);
|
|
540
|
+
};
|
|
541
|
+
function dateFormat(lang, options) {
|
|
542
|
+
const locale = lang.toLowerCase().startsWith('en') ? 'en-GB' : lang.toLowerCase().startsWith('th') ? 'th-TH' : lang;
|
|
543
|
+
const f = new Intl.DateTimeFormat(locale, options);
|
|
544
|
+
return (v) => f.format(new Date(v));
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Bars from start to end on rows (a Gantt chart): `series[i].data` are `{ row, start, end, name?, color? }`, dates or
|
|
548
|
+
* numbers. Bars that overlap on a row take lanes. `'bars'` (default; names inside) or `'thin'` (a slim bar with round ends,
|
|
549
|
+
* the name above).
|
|
550
|
+
*/
|
|
551
|
+
function timelineModel(o, model, palette) {
|
|
552
|
+
const k = kit(o);
|
|
553
|
+
const thin = o.variant === 'thin';
|
|
554
|
+
const all = o.series || [];
|
|
555
|
+
model.legend = all.length > 1 ? all.map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'box' })) : [];
|
|
556
|
+
const items = [];
|
|
557
|
+
let time = o.format === 'date';
|
|
558
|
+
all.forEach((s, si) => {
|
|
559
|
+
if (s.hidden)
|
|
560
|
+
return;
|
|
561
|
+
s.data.forEach((d, i) => {
|
|
562
|
+
if (!d || typeof d !== 'object')
|
|
563
|
+
return;
|
|
564
|
+
const r = d;
|
|
565
|
+
const start = toMs(r.start);
|
|
566
|
+
const end = toMs(r.end);
|
|
567
|
+
if (start === null || end === null)
|
|
568
|
+
return;
|
|
569
|
+
if (typeof r.start !== 'number' || typeof r.end !== 'number')
|
|
570
|
+
time = true;
|
|
571
|
+
items.push({ row: String(r.row ?? r.x ?? ''), start: Math.min(start, end), end: Math.max(start, end), name: r.name ?? '', color: r.color || (all.length > 1 || s.color ? colorOf(s, si, palette) : ''), series: si, i, lane: 0 });
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
const rows = o.labels && o.labels.length ? o.labels.map(String) : [...new Set(items.map((it) => it.row))];
|
|
575
|
+
// One series: a colour per row.
|
|
576
|
+
for (const it of items)
|
|
577
|
+
if (!it.color)
|
|
578
|
+
it.color = palette[Math.max(0, rows.indexOf(it.row)) % palette.length];
|
|
579
|
+
model.empty = !items.length;
|
|
580
|
+
let lo = items.length ? Math.min(...items.map((it) => it.start)) : 0;
|
|
581
|
+
let hi = items.length ? Math.max(...items.map((it) => it.end)) : 1;
|
|
582
|
+
if (!(lo < hi))
|
|
583
|
+
hi = lo + 1;
|
|
584
|
+
// Lanes: a bar takes the first lane on its row that is free by its start.
|
|
585
|
+
const lanes = new Map();
|
|
586
|
+
for (const row of rows) {
|
|
587
|
+
const ends = [];
|
|
588
|
+
items
|
|
589
|
+
.filter((it) => it.row === row)
|
|
590
|
+
.sort((p, q) => p.start - q.start)
|
|
591
|
+
.forEach((it) => {
|
|
592
|
+
let lane = ends.findIndex((e) => e <= it.start);
|
|
593
|
+
if (lane < 0)
|
|
594
|
+
lane = ends.length;
|
|
595
|
+
ends[lane] = it.end;
|
|
596
|
+
it.lane = lane;
|
|
597
|
+
});
|
|
598
|
+
lanes.set(row, Math.max(1, ends.length));
|
|
599
|
+
}
|
|
600
|
+
let fmt = k.fmt;
|
|
601
|
+
let ticks;
|
|
602
|
+
let full = k.fmt;
|
|
603
|
+
if (time) {
|
|
604
|
+
const t = timeTicks(lo, hi, Math.max(2, Math.floor(model.width / 110)));
|
|
605
|
+
ticks = t.ticks;
|
|
606
|
+
fmt = t.step < DAY ? dateFormat(k.lang, { hour: '2-digit', minute: '2-digit' }) : t.step >= 30 * DAY ? dateFormat(k.lang, { month: 'short', year: '2-digit' }) : dateFormat(k.lang, { day: 'numeric', month: 'short' });
|
|
607
|
+
full = dateFormat(k.lang, t.step < DAY ? { day: 'numeric', month: 'short', hour: '2-digit', minute: '2-digit' } : { day: 'numeric', month: 'short', year: 'numeric' });
|
|
608
|
+
}
|
|
609
|
+
const a = axes(o, model, { cats: rows, across: true, lo, hi, fmt, ticks, padding: thin ? 0.2 : 0.28, zero: false });
|
|
610
|
+
const length = (ms) => !time ? k.fmt(ms) : ms >= DAY ? `${r2(ms / DAY)} ${k.words.days}` : ms >= HOUR ? `${r2(ms / HOUR)} ${k.words.hours}` : `${Math.round(ms / MINUTE)} ${k.words.minutes}`;
|
|
611
|
+
items.forEach((it, n) => {
|
|
612
|
+
const row = rows.indexOf(it.row);
|
|
613
|
+
if (row < 0)
|
|
614
|
+
return;
|
|
615
|
+
const laneCount = lanes.get(it.row) || 1;
|
|
616
|
+
const laneH = a.bw / laneCount;
|
|
617
|
+
const y = a.offset(row) + it.lane * laneH;
|
|
618
|
+
const x0 = a.val(it.start);
|
|
619
|
+
const x1 = a.val(it.end);
|
|
620
|
+
const w = Math.max(2, x1 - x0);
|
|
621
|
+
const key = `t${n}`;
|
|
622
|
+
const tip = {
|
|
623
|
+
title: it.name || it.row,
|
|
624
|
+
rows: [
|
|
625
|
+
{ color: it.color, name: k.words.start, value: full(it.start) },
|
|
626
|
+
{ color: it.color, name: k.words.end, value: full(it.end) },
|
|
627
|
+
{ color: it.color, name: k.words.length, value: length(it.end - it.start) },
|
|
628
|
+
],
|
|
629
|
+
};
|
|
630
|
+
if (thin) {
|
|
631
|
+
const cy = y + laneH * 0.62;
|
|
632
|
+
model.shapes.push({ key: `${key}b`, kind: 'rect', x: x0, y: cy - 3, w, h: 6, rx: 3, fill: it.color, enter: 'grow-x', delay: n * 40, hover: key });
|
|
633
|
+
model.shapes.push({ key: `${key}s`, kind: 'circle', x: x0, y: cy, r: 5, fill: 'var(--wu-chart-dot-fill)', stroke: it.color, strokeWidth: 2.5, enter: 'pop', delay: n * 40, hover: key });
|
|
634
|
+
model.shapes.push({ key: `${key}e`, kind: 'circle', x: x0 + w, y: cy, r: 5, fill: it.color, stroke: 'var(--wu-chart-dot-fill)', strokeWidth: 2, enter: 'pop', delay: n * 40 + 200, hover: key });
|
|
635
|
+
if (it.name)
|
|
636
|
+
model.texts.push({ x: x0, y: cy - 10, text: it.name, anchor: 'start', baseline: 'auto', strong: true, hover: key });
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
const h = Math.max(4, laneH - 3);
|
|
640
|
+
model.shapes.push({ key, kind: 'rect', x: x0, y: y + 1.5, w, h, rx: Math.min(6, h / 3), fill: it.color, enter: 'grow-x', delay: n * 40, hover: key });
|
|
641
|
+
if (it.name) {
|
|
642
|
+
const tw = k.measure(it.name, k.fontSize);
|
|
643
|
+
if (tw + 12 <= w)
|
|
644
|
+
model.texts.push({ x: x0 + 8, y: y + 1.5 + h / 2, text: it.name, anchor: 'start', baseline: 'middle', tone: 'inside', strong: true, hover: key });
|
|
645
|
+
else if (x1 + 6 + tw <= a.plot.x + a.plot.w)
|
|
646
|
+
model.texts.push({ x: x1 + 6, y: y + 1.5 + h / 2, text: it.name, anchor: 'start', baseline: 'middle', hover: key });
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
model.hover.push({ index: it.i, series: it.series, key, tip, x: x0, y, w, h: laneH, cx: x0 + w / 2, cy: y, value: it.end - it.start, label: it.name || it.row });
|
|
650
|
+
});
|
|
651
|
+
return model;
|
|
652
|
+
}
|
|
653
|
+
// ---------------------------------------------------------------- funnel
|
|
654
|
+
/**
|
|
655
|
+
* Stages getting smaller, a value per label: `'funnel'` (default; smooth sides narrowing to the next stage), `'bars'`
|
|
656
|
+
* (centred bars, the share kept between them) or `'pyramid'` (a triangle cut into stages by value).
|
|
657
|
+
*/
|
|
658
|
+
function funnelModel(o, model, palette) {
|
|
659
|
+
const k = kit(o);
|
|
660
|
+
const variant = o.variant === 'bars' || o.variant === 'pyramid' ? o.variant : 'funnel';
|
|
661
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
662
|
+
const s = (o.series || [])[0];
|
|
663
|
+
const hidden = new Set(o.hiddenSlices || []);
|
|
664
|
+
const values = valuesOf(s).map((v) => Math.max(0, v ?? 0));
|
|
665
|
+
const stageColor = (j) => s?.colors?.[j] || palette[j % palette.length];
|
|
666
|
+
model.legend = values.map((_, j) => ({ index: j, name: labels[j] ?? '', color: stageColor(j), hidden: hidden.has(j), shape: 'box' }));
|
|
667
|
+
model.dimOthers = true;
|
|
668
|
+
const stages = values.map((v, j) => ({ v, j })).filter((p) => !hidden.has(p.j) && p.v > 0);
|
|
669
|
+
model.empty = !stages.length;
|
|
670
|
+
if (model.empty)
|
|
671
|
+
return model;
|
|
672
|
+
const { width, height } = model;
|
|
673
|
+
const pad = 8;
|
|
674
|
+
const nameW = Math.min(width * 0.3, Math.max(0, ...stages.map((p) => k.measure(labels[p.j] ?? '', k.fontSize)))) + pad * 2;
|
|
675
|
+
const plot = { x: nameW, y: pad, w: Math.max(10, width - nameW - pad), h: Math.max(10, height - pad * 2) };
|
|
676
|
+
model.plot = plot;
|
|
677
|
+
const given = o.scales?.left;
|
|
678
|
+
const top = given && given.max > 0 ? given.max : Math.max(...stages.map((p) => p.v));
|
|
679
|
+
model.scales = { left: { min: 0, max: Math.max(...stages.map((p) => p.v)), ticks: [] }, right: null };
|
|
680
|
+
const first = stages[0].v || 1;
|
|
681
|
+
const n = stages.length;
|
|
682
|
+
const cx = plot.x + plot.w / 2;
|
|
683
|
+
const gap = Math.min(6, plot.h / n / 6);
|
|
684
|
+
const segH = (plot.h - gap * (n - 1)) / n;
|
|
685
|
+
const total = stages.reduce((sum, p) => sum + p.v, 0);
|
|
686
|
+
let acc = 0;
|
|
687
|
+
stages.forEach((p, i) => {
|
|
688
|
+
const color = stageColor(p.j);
|
|
689
|
+
const key = `f${p.j}`;
|
|
690
|
+
let y0 = plot.y + i * (segH + gap);
|
|
691
|
+
let y1 = y0 + segH;
|
|
692
|
+
let d;
|
|
693
|
+
let widthAt = 0;
|
|
694
|
+
if (variant === 'pyramid') {
|
|
695
|
+
// A triangle from the apex down, cut at heights by value.
|
|
696
|
+
y0 = plot.y + (acc / total) * plot.h + (i ? gap / 2 : 0);
|
|
697
|
+
acc += p.v;
|
|
698
|
+
y1 = plot.y + (acc / total) * plot.h - (i < n - 1 ? gap / 2 : 0);
|
|
699
|
+
const half = (y) => (plot.w / 2) * ((y - plot.y) / plot.h);
|
|
700
|
+
const [h0, h1] = [half(y0), half(y1)];
|
|
701
|
+
widthAt = h1 + h0;
|
|
702
|
+
d = `M${r2(cx - h0)} ${r2(y0)}H${r2(cx + h0)}L${r2(cx + h1)} ${r2(y1)}H${r2(cx - h1)}Z`;
|
|
703
|
+
}
|
|
704
|
+
else if (variant === 'bars') {
|
|
705
|
+
const w = Math.max(4, (plot.w * p.v) / top);
|
|
706
|
+
widthAt = w;
|
|
707
|
+
const h = segH * 0.78;
|
|
708
|
+
y0 += (segH - h) / 2;
|
|
709
|
+
y1 = y0 + h;
|
|
710
|
+
d = (0, paths_1.barPath)(cx - w / 2, y0, w, h, 0, 'top');
|
|
711
|
+
model.shapes.push({ key, kind: 'rect', x: cx - w / 2, y: y0, w, h, rx: Math.min(10, h / 3), fill: color, enter: 'grow-x', delay: i * 70, hover: key });
|
|
712
|
+
if (i < n - 1) {
|
|
713
|
+
const next = stages[i + 1].v;
|
|
714
|
+
model.texts.push({ x: cx, y: y1 + (segH - h) / 2 + gap / 2, text: `↓ ${k.pct(p.v ? next / p.v : 0)}`, anchor: 'middle', baseline: 'middle', tone: 'muted' });
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
// Smooth sides from this stage's width to the next one's.
|
|
719
|
+
const w0 = Math.max(4, (plot.w * p.v) / top);
|
|
720
|
+
const w1 = i < n - 1 ? Math.max(4, (plot.w * stages[i + 1].v) / top) : w0 * 0.72;
|
|
721
|
+
widthAt = Math.min(w0, w1);
|
|
722
|
+
const m = segH * 0.5;
|
|
723
|
+
d =
|
|
724
|
+
`M${r2(cx - w0 / 2)} ${r2(y0)}H${r2(cx + w0 / 2)}` +
|
|
725
|
+
`C${r2(cx + w0 / 2)} ${r2(y0 + m)} ${r2(cx + w1 / 2)} ${r2(y1 - m)} ${r2(cx + w1 / 2)} ${r2(y1)}` +
|
|
726
|
+
`H${r2(cx - w1 / 2)}C${r2(cx - w1 / 2)} ${r2(y1 - m)} ${r2(cx - w0 / 2)} ${r2(y0 + m)} ${r2(cx - w0 / 2)} ${r2(y0)}Z`;
|
|
727
|
+
}
|
|
728
|
+
if (variant !== 'bars')
|
|
729
|
+
model.shapes.push({ key, kind: 'path', d, fill: color, enter: 'fade', delay: i * 70, hover: key });
|
|
730
|
+
const midY = (y0 + y1) / 2;
|
|
731
|
+
const value = k.fmt(p.v);
|
|
732
|
+
const share = k.pct(p.v / first);
|
|
733
|
+
model.texts.push({ x: plot.x - pad, y: midY, text: labels[p.j] ?? '', anchor: 'end', baseline: 'middle', hover: key });
|
|
734
|
+
const inside = `${value} · ${share}`;
|
|
735
|
+
if (k.measure(inside, k.fontSize) + 12 <= widthAt && y1 - y0 >= k.fontSize + 4)
|
|
736
|
+
model.texts.push({ x: cx, y: midY, text: inside, anchor: 'middle', baseline: 'middle', tone: 'inside', strong: true, hover: key });
|
|
737
|
+
else if (k.measure(value, k.fontSize) + 10 <= widthAt && y1 - y0 >= k.fontSize + 2)
|
|
738
|
+
model.texts.push({ x: cx, y: midY, text: value, anchor: 'middle', baseline: 'middle', tone: 'inside', strong: true, hover: key });
|
|
739
|
+
const prev = i ? stages[i - 1].v : 0;
|
|
740
|
+
const rows = [{ color, name: labels[p.j] ?? '', value }, { color, name: k.words.ofFirst, value: share }];
|
|
741
|
+
if (i)
|
|
742
|
+
rows.push({ color, name: k.words.ofPrevious, value: k.pct(prev ? p.v / prev : 0) });
|
|
743
|
+
model.hover.push({ index: p.j, key, tip: { title: '', rows }, x: plot.x, y: y0, w: plot.w, h: Math.max(1, y1 - y0), cx, cy: y0, value: p.v, label: labels[p.j] ?? '' });
|
|
744
|
+
});
|
|
745
|
+
return model;
|
|
746
|
+
}
|
|
747
|
+
// ---------------------------------------------------------------- box plot
|
|
748
|
+
/** The five numbers (and outliers past 1.5 × the box) of raw values. */
|
|
749
|
+
function boxStats(values) {
|
|
750
|
+
const v = values.filter((x) => Number.isFinite(x)).sort((p, q) => p - q);
|
|
751
|
+
if (!v.length)
|
|
752
|
+
return { min: 0, q1: 0, median: 0, q3: 0, max: 0, outliers: [], mean: 0 };
|
|
753
|
+
const q = (p) => {
|
|
754
|
+
const at = (v.length - 1) * p;
|
|
755
|
+
const lo = Math.floor(at);
|
|
756
|
+
return v[lo] + (v[Math.min(v.length - 1, lo + 1)] - v[lo]) * (at - lo);
|
|
757
|
+
};
|
|
758
|
+
const q1 = q(0.25);
|
|
759
|
+
const q3 = q(0.75);
|
|
760
|
+
const reach = (q3 - q1) * 1.5;
|
|
761
|
+
const inside = v.filter((x) => x >= q1 - reach && x <= q3 + reach);
|
|
762
|
+
return {
|
|
763
|
+
min: inside[0] ?? v[0],
|
|
764
|
+
q1,
|
|
765
|
+
median: q(0.5),
|
|
766
|
+
q3,
|
|
767
|
+
max: inside[inside.length - 1] ?? v[v.length - 1],
|
|
768
|
+
outliers: v.filter((x) => x < q1 - reach || x > q3 + reach),
|
|
769
|
+
mean: v.reduce((a, b) => a + b, 0) / v.length,
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* The spread of values per label (raw values, or `{ min, q1, median, q3, max }`), a box per series: `'box'` (default;
|
|
774
|
+
* box, whiskers and outlier dots), `'violin'` (the shape of the values, from raw values) or `'points'` (every value as
|
|
775
|
+
* a dot over a light box).
|
|
776
|
+
*/
|
|
777
|
+
function boxplotModel(o, model, palette) {
|
|
778
|
+
const k = kit(o);
|
|
779
|
+
const variant = o.variant === 'violin' || o.variant === 'points' ? o.variant : 'box';
|
|
780
|
+
const across = !!o.horizontal;
|
|
781
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
782
|
+
const all = o.series || [];
|
|
783
|
+
model.legend = all.length > 1 ? all.map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'box' })) : [];
|
|
784
|
+
const shown = all.map((s, i) => ({ s, i })).filter((p) => !p.s.hidden);
|
|
785
|
+
const count = Math.max(labels.length, ...shown.map((p) => p.s.data.length), 0);
|
|
786
|
+
const boxes = shown.map((p) => Array.from({ length: count }, (_, j) => {
|
|
787
|
+
const d = p.s.data[j];
|
|
788
|
+
if (Array.isArray(d)) {
|
|
789
|
+
const raw = d.filter((x) => num(x) !== null);
|
|
790
|
+
return raw.length ? { stats: boxStats(raw), raw } : null;
|
|
791
|
+
}
|
|
792
|
+
if (d && typeof d === 'object' && num(d.median) !== null)
|
|
793
|
+
return { stats: d, raw: null };
|
|
794
|
+
return null;
|
|
795
|
+
}));
|
|
796
|
+
let lo = Infinity;
|
|
797
|
+
let hi = -Infinity;
|
|
798
|
+
for (const row of boxes) {
|
|
799
|
+
for (const b of row) {
|
|
800
|
+
if (!b)
|
|
801
|
+
continue;
|
|
802
|
+
for (const v of [b.stats.min, b.stats.max, ...(b.stats.outliers || [])]) {
|
|
803
|
+
lo = Math.min(lo, v);
|
|
804
|
+
hi = Math.max(hi, v);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
model.empty = !(lo <= hi);
|
|
809
|
+
if (model.empty)
|
|
810
|
+
[lo, hi] = [0, 1];
|
|
811
|
+
const a = axes(o, model, { cats: labels.slice(0, count), across, lo, hi, zero: false, fmt: k.fmt, padding: 0.3 });
|
|
812
|
+
const slot = a.bw / Math.max(1, shown.length);
|
|
813
|
+
// A point at category px `c` and value `v`.
|
|
814
|
+
const at = (c, v) => (across ? { x: a.val(v), y: c } : { x: c, y: a.val(v) });
|
|
815
|
+
const w = Math.min(slot * 0.62, 56);
|
|
816
|
+
const single = shown.length === 1;
|
|
817
|
+
for (let j = 0; j < count; j++) {
|
|
818
|
+
const rows = [];
|
|
819
|
+
shown.forEach((p, n) => {
|
|
820
|
+
const b = boxes[n][j];
|
|
821
|
+
if (!b)
|
|
822
|
+
return;
|
|
823
|
+
const st = b.stats;
|
|
824
|
+
const color = single && !p.s.color ? palette[j % palette.length] : colorOf(p.s, p.i, palette);
|
|
825
|
+
const c = a.offset(j) + slot * n + slot / 2;
|
|
826
|
+
const key = `b${p.i}-${j}`;
|
|
827
|
+
const hover = `c${j}`;
|
|
828
|
+
const delay = j * 60;
|
|
829
|
+
const box = (v0, v1, half) => {
|
|
830
|
+
const p0 = at(c - half, v0);
|
|
831
|
+
const p1 = at(c + half, v1);
|
|
832
|
+
return { x: Math.min(p0.x, p1.x), y: Math.min(p0.y, p1.y), w: Math.abs(p1.x - p0.x), h: Math.abs(p1.y - p0.y) };
|
|
833
|
+
};
|
|
834
|
+
const seg = (name, c0, v0, c1, v1, width, cls) => {
|
|
835
|
+
const p0 = at(c0, v0);
|
|
836
|
+
const p1 = at(c1, v1);
|
|
837
|
+
model.shapes.push({ key: `${key}${name}`, kind: 'line', x: p0.x, y: p0.y, x2: p1.x, y2: p1.y, stroke: color, strokeWidth: width, className: cls, enter: 'fade', delay, hover });
|
|
838
|
+
};
|
|
839
|
+
if (variant === 'violin' && b.raw && b.raw.length > 1) {
|
|
840
|
+
// Gaussian kernel density, Silverman's bandwidth, mirrored about the middle.
|
|
841
|
+
const v = b.raw;
|
|
842
|
+
const mean = v.reduce((x, y) => x + y, 0) / v.length;
|
|
843
|
+
const sd = Math.sqrt(v.reduce((x, y) => x + (y - mean) ** 2, 0) / (v.length - 1)) || (st.q3 - st.q1) / 1.34 || 1;
|
|
844
|
+
const bw = 1.06 * sd * Math.pow(v.length, -0.2);
|
|
845
|
+
const from = Math.min(...v);
|
|
846
|
+
const to = Math.max(...v);
|
|
847
|
+
const steps = 36;
|
|
848
|
+
const dens = Array.from({ length: steps + 1 }, (_, s) => {
|
|
849
|
+
const x = from + ((to - from) * s) / steps;
|
|
850
|
+
return { x, d: v.reduce((sum, y) => sum + Math.exp(-0.5 * ((x - y) / bw) ** 2), 0) };
|
|
851
|
+
});
|
|
852
|
+
const peak = Math.max(...dens.map((p2) => p2.d)) || 1;
|
|
853
|
+
const half = slot * 0.46;
|
|
854
|
+
const side = (sign) => dens.map((p2) => at(c + sign * (p2.d / peak) * half, p2.x));
|
|
855
|
+
const right = side(1);
|
|
856
|
+
const left = side(-1).reverse();
|
|
857
|
+
const d = [...right, ...left].map((p2, i) => `${i ? 'L' : 'M'}${r2(p2.x)} ${r2(p2.y)}`).join('') + 'Z';
|
|
858
|
+
model.shapes.push({ key: `${key}v`, kind: 'path', d, fill: color, opacity: 0.32, stroke: color, strokeWidth: 1.5, enter: 'fade', delay, hover });
|
|
859
|
+
const r = box(st.q1, st.q3, 3);
|
|
860
|
+
model.shapes.push({ key: `${key}q`, kind: 'rect', ...r, rx: 2, fill: color, enter: 'fade', delay, hover });
|
|
861
|
+
seg('w', c, st.min, c, st.max, 1.5, 'wu-chart-whisker');
|
|
862
|
+
const m = at(c, st.median);
|
|
863
|
+
model.shapes.push({ key: `${key}m`, kind: 'circle', x: m.x, y: m.y, r: 3.5, fill: 'var(--wu-chart-dot-fill)', stroke: color, strokeWidth: 2, enter: 'pop', delay, hover });
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
const faint = variant === 'points';
|
|
867
|
+
seg('w', c, st.min, c, st.q1, 1.5, 'wu-chart-whisker');
|
|
868
|
+
seg('W', c, st.q3, c, st.max, 1.5, 'wu-chart-whisker');
|
|
869
|
+
seg('l', c - w / 4, st.min, c + w / 4, st.min, 1.5, 'wu-chart-whisker');
|
|
870
|
+
seg('h', c - w / 4, st.max, c + w / 4, st.max, 1.5, 'wu-chart-whisker');
|
|
871
|
+
const r = box(st.q1, st.q3, w / 2);
|
|
872
|
+
model.shapes.push({ key: `${key}q`, kind: 'rect', ...r, rx: 4, fill: color, opacity: faint ? 0.12 : 0.28, stroke: color, strokeWidth: 1.5, enter: across ? 'grow-x' : 'grow', delay, hover });
|
|
873
|
+
seg('m', c - w / 2, st.median, c + w / 2, st.median, 3, 'wu-chart-median');
|
|
874
|
+
if (faint && b.raw) {
|
|
875
|
+
b.raw.forEach((v, i) => {
|
|
876
|
+
// A steady jitter, the same every time.
|
|
877
|
+
const jitter = ((((i + 1) * 7919) % 101) / 100 - 0.5) * w * 0.8;
|
|
878
|
+
const pt = at(c + jitter, v);
|
|
879
|
+
model.shapes.push({ key: `${key}p${i}`, kind: 'circle', x: pt.x, y: pt.y, r: 2.6, fill: color, opacity: 0.75, enter: 'pop', delay: delay + i * 6, hover });
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
else {
|
|
883
|
+
(st.outliers || []).forEach((v, i) => {
|
|
884
|
+
const pt = at(c, v);
|
|
885
|
+
model.shapes.push({ key: `${key}o${i}`, kind: 'circle', x: pt.x, y: pt.y, r: 3, fill: 'var(--wu-chart-dot-fill)', stroke: color, strokeWidth: 1.5, enter: 'pop', delay, hover });
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
if (single) {
|
|
890
|
+
rows.push({ color, name: k.words.max, value: k.fmt(st.max) }, { color, name: k.words.q3, value: k.fmt(st.q3) }, { color, name: k.words.median, value: k.fmt(st.median) }, { color, name: k.words.q1, value: k.fmt(st.q1) }, { color, name: k.words.min, value: k.fmt(st.min) });
|
|
891
|
+
}
|
|
892
|
+
else
|
|
893
|
+
rows.push({ color, name: p.s.name ?? '', value: `${k.fmt(st.median)} (${k.fmt(st.q1)} – ${k.fmt(st.q3)})` });
|
|
894
|
+
});
|
|
895
|
+
if (rows.length)
|
|
896
|
+
model.hover.push(categoryTarget(a, j, across, `c${j}`, { title: labels[j] ?? '', rows }));
|
|
897
|
+
}
|
|
898
|
+
return model;
|
|
899
|
+
}
|
|
900
|
+
// ---------------------------------------------------------------- histogram
|
|
901
|
+
/**
|
|
902
|
+
* How raw values spread, counted in bins on round edges (`bins`, default by Sturges' rule): `'bars'` (default; one
|
|
903
|
+
* series draws solid, several overlap see-through) or `'density'` (a smooth fading curve through the counts). One
|
|
904
|
+
* series also gets a dashed line at its mean.
|
|
905
|
+
*/
|
|
906
|
+
function histogramModel(o, model, palette) {
|
|
907
|
+
const k = kit(o);
|
|
908
|
+
const density = o.variant === 'density';
|
|
909
|
+
const all = o.series || [];
|
|
910
|
+
model.legend = all.length > 1 ? all.map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'box' })) : [];
|
|
911
|
+
const shown = all.map((s, i) => ({ s, i, v: valuesOf(s).filter((x) => x !== null) })).filter((p) => !p.s.hidden);
|
|
912
|
+
const values = shown.flatMap((p) => p.v);
|
|
913
|
+
model.empty = !values.length;
|
|
914
|
+
let lo = values.length ? Math.min(...values) : 0;
|
|
915
|
+
let hi = values.length ? Math.max(...values) : 1;
|
|
916
|
+
if (lo === hi)
|
|
917
|
+
[lo, hi] = [lo - 0.5, hi + 0.5];
|
|
918
|
+
const want = o.bins && o.bins > 0 ? Math.round(o.bins) : Math.max(5, Math.min(30, Math.ceil(Math.log2(Math.max(1, values.length / Math.max(1, shown.length)))) + 1));
|
|
919
|
+
const edges = (0, scale_1.niceScale)(lo, hi, want, false).ticks;
|
|
920
|
+
if (edges.length < 2)
|
|
921
|
+
edges.push(edges[0] + 1);
|
|
922
|
+
const binCount = edges.length - 1;
|
|
923
|
+
const binOf = (v) => {
|
|
924
|
+
for (let b = 0; b < binCount; b++)
|
|
925
|
+
if (v < edges[b + 1])
|
|
926
|
+
return b;
|
|
927
|
+
return binCount - 1;
|
|
928
|
+
};
|
|
929
|
+
const counts = shown.map((p) => {
|
|
930
|
+
const c = new Array(binCount).fill(0);
|
|
931
|
+
for (const v of p.v)
|
|
932
|
+
c[binOf(v)]++;
|
|
933
|
+
return c;
|
|
934
|
+
});
|
|
935
|
+
const top = Math.max(1, ...counts.flat());
|
|
936
|
+
const ints = (v) => (0, format_1.formatChartValue)(v, 'integer', o.formatOptions);
|
|
937
|
+
const a = axes(o, model, {
|
|
938
|
+
cats: [],
|
|
939
|
+
lo: 0,
|
|
940
|
+
hi: top,
|
|
941
|
+
zero: true,
|
|
942
|
+
fmt: ints,
|
|
943
|
+
numericX: { min: edges[0], max: edges[binCount], ticks: edges, fmt: k.fmt },
|
|
944
|
+
});
|
|
945
|
+
const overlap = shown.length > 1;
|
|
946
|
+
shown.forEach((p, n) => {
|
|
947
|
+
const color = colorOf(p.s, p.i, palette);
|
|
948
|
+
if (density) {
|
|
949
|
+
const pts = counts[n].map((c, b) => ({ x: a.nx((edges[b] + edges[b + 1]) / 2), y: a.val(c) }));
|
|
950
|
+
const ends = [{ x: a.nx(edges[0]), y: a.val(0) }, ...pts, { x: a.nx(edges[binCount]), y: a.val(0) }];
|
|
951
|
+
model.shapes.push({ key: `hd${p.i}`, kind: 'path', d: (0, paths_1.areaPath)(ends, a.val(0), 'smooth'), fill: color, fade: true, enter: 'fade', hover: `s${p.i}` });
|
|
952
|
+
model.shapes.push({ key: `hl${p.i}`, kind: 'path', d: (0, paths_1.linePath)(ends, 'smooth'), stroke: color, strokeWidth: 2.5, enter: 'draw', className: 'wu-chart-line-shape' });
|
|
953
|
+
}
|
|
954
|
+
else {
|
|
955
|
+
counts[n].forEach((c, b) => {
|
|
956
|
+
if (!c)
|
|
957
|
+
return;
|
|
958
|
+
const x0 = a.nx(edges[b]) + 1;
|
|
959
|
+
const x1 = a.nx(edges[b + 1]) - 1;
|
|
960
|
+
const y = a.val(c);
|
|
961
|
+
model.shapes.push({ key: `h${p.i}-${b}`, kind: 'path', d: (0, paths_1.barPath)(x0, y, Math.max(1, x1 - x0), a.val(0) - y, 3, 'top'), fill: color, opacity: overlap ? 0.55 : 1, enter: 'grow', delay: b * 25, hover: `h${b}` });
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
if (!overlap && p.v.length) {
|
|
965
|
+
const mean = p.v.reduce((x, y) => x + y, 0) / p.v.length;
|
|
966
|
+
const x = a.nx(mean);
|
|
967
|
+
model.references.push({ x1: x, y1: a.plot.y, x2: x, y2: a.plot.y + a.plot.h, color: 'var(--wu-chart-reference-color)', dashed: true, label: { x: x + 4, y: a.plot.y + 2, text: `${k.words.mean} ${k.fmt(mean)}`, anchor: 'start', baseline: 'hanging' } });
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
for (let b = 0; b < binCount; b++) {
|
|
971
|
+
const x0 = a.nx(edges[b]);
|
|
972
|
+
const x1 = a.nx(edges[b + 1]);
|
|
973
|
+
const rows = shown.map((p, n) => ({ color: colorOf(p.s, p.i, palette), name: overlap ? p.s.name ?? '' : k.words.count, value: ints(counts[n][b]) }));
|
|
974
|
+
model.hover.push({ index: b, key: `h${b}`, tip: { title: `${k.fmt(edges[b])} – ${k.fmt(edges[b + 1])}`, rows }, x: x0, y: a.plot.y, w: x1 - x0, h: a.plot.h, cx: (x0 + x1) / 2, cy: a.plot.y, cross: density });
|
|
975
|
+
}
|
|
976
|
+
return model;
|
|
977
|
+
}
|
|
978
|
+
// ---------------------------------------------------------------- sunburst and icicle
|
|
979
|
+
const nodeSum = (n) => {
|
|
980
|
+
const own = Math.max(0, num(n.value) ?? 0);
|
|
981
|
+
if (!n.children || !n.children.length)
|
|
982
|
+
return own;
|
|
983
|
+
return Math.max(own, n.children.reduce((sum, c) => sum + nodeSum(c), 0));
|
|
984
|
+
};
|
|
985
|
+
const nodeDepth = (n) => 1 + (n.children && n.children.length ? Math.max(...n.children.map(nodeDepth)) : 0);
|
|
986
|
+
/**
|
|
987
|
+
* A hierarchy (`series[0].data` are `{ name, value?, children? }` nodes) as rings from the middle out (`'sunburst'`,
|
|
988
|
+
* default; `startAngle` / `endAngle` make a half one) or as stacked columns (`'icicle'`). A click on a node with children
|
|
989
|
+
* goes into it (`focus`); the middle shows where you are.
|
|
990
|
+
*/
|
|
991
|
+
function sunburstModel(o, model, palette) {
|
|
992
|
+
const k = kit(o);
|
|
993
|
+
const icicle = o.variant === 'icicle';
|
|
994
|
+
const roots = (o.series || [])[0]?.data?.filter((n) => n && typeof n === 'object' && typeof n.name === 'string') || [];
|
|
995
|
+
model.legend = roots.map((n, i) => ({ index: i, name: n.name, color: n.color || palette[i % palette.length], hidden: (o.hiddenSlices || []).includes(i), shape: 'box' }));
|
|
996
|
+
model.dimOthers = true;
|
|
997
|
+
const hidden = new Set(o.hiddenSlices || []);
|
|
998
|
+
// The node in focus (by its path of names), its children drawn first.
|
|
999
|
+
const path = (o.focus || '').split('/').filter(Boolean);
|
|
1000
|
+
let level = roots.filter((_, i) => !hidden.has(i));
|
|
1001
|
+
let focusNode = null;
|
|
1002
|
+
const trail = [];
|
|
1003
|
+
for (const name of path) {
|
|
1004
|
+
const next = level.find((n) => n.name === name);
|
|
1005
|
+
if (!next || !next.children || !next.children.length)
|
|
1006
|
+
break;
|
|
1007
|
+
focusNode = next;
|
|
1008
|
+
trail.push(name);
|
|
1009
|
+
level = next.children;
|
|
1010
|
+
}
|
|
1011
|
+
const topColor = (name) => {
|
|
1012
|
+
const i = roots.findIndex((n) => n.name === name);
|
|
1013
|
+
return roots[i]?.color || palette[Math.max(0, i) % palette.length];
|
|
1014
|
+
};
|
|
1015
|
+
const total = level.reduce((sum, n) => sum + nodeSum(n), 0);
|
|
1016
|
+
const nodeTip = (v, keys, color) => ({ title: keys.join(' › '), rows: [{ color, name: k.pct(total ? v / total : 0), value: k.fmt(v) }] });
|
|
1017
|
+
model.empty = !(total > 0);
|
|
1018
|
+
const depth = Math.max(1, ...level.map(nodeDepth));
|
|
1019
|
+
const shade = (d) => [1, 0.78, 0.6, 0.46, 0.36][Math.min(4, d)];
|
|
1020
|
+
model.centerText = { value: k.fmt(total), label: focusNode ? focusNode.name : k.words.total };
|
|
1021
|
+
if (model.empty)
|
|
1022
|
+
return model;
|
|
1023
|
+
const sweep = Math.min(1, Math.max(0, o.sweep ?? 1));
|
|
1024
|
+
if (icicle) {
|
|
1025
|
+
const plot = { x: 2, y: 2, w: Math.max(0, model.width - 4), h: Math.max(0, model.height - 4) };
|
|
1026
|
+
model.plot = plot;
|
|
1027
|
+
const colW = plot.w / depth;
|
|
1028
|
+
const walk = (nodes, d, y0, h, keyPath, color) => {
|
|
1029
|
+
let y = y0;
|
|
1030
|
+
const sum = nodes.reduce((s2, n) => s2 + nodeSum(n), 0) || 1;
|
|
1031
|
+
nodes.forEach((n) => {
|
|
1032
|
+
const v = nodeSum(n);
|
|
1033
|
+
const nh = (h * v) / sum;
|
|
1034
|
+
const keys = [...keyPath, n.name];
|
|
1035
|
+
const key = keys.join('/');
|
|
1036
|
+
const c = n.color || color || topColor(keys[0]);
|
|
1037
|
+
const x = plot.x + d * colW;
|
|
1038
|
+
if (nh > 0.5) {
|
|
1039
|
+
model.shapes.push({ key: `i${key}`, kind: 'rect', x: x + 1, y: y + 1, w: Math.max(0, colW * sweep - 2), h: Math.max(0, nh - 2), rx: 4, fill: c, opacity: shade(trail.length + d), enter: 'fade', delay: d * 90, hover: key });
|
|
1040
|
+
if (nh >= k.fontSize + 8 && k.measure(n.name, k.fontSize) + 16 <= colW) {
|
|
1041
|
+
model.texts.push({ x: x + 9, y: y + 8, text: n.name, anchor: 'start', baseline: 'hanging', tone: 'inside', strong: true, hover: key });
|
|
1042
|
+
if (nh >= k.fontSize * 2.4 + 10)
|
|
1043
|
+
model.texts.push({ x: x + 9, y: y + 8 + k.fontSize * 1.35, text: k.fmt(v), anchor: 'start', baseline: 'hanging', tone: 'inside', hover: key });
|
|
1044
|
+
}
|
|
1045
|
+
model.hover.push({ index: 0, key, tip: nodeTip(v, keys, c), x: x + 1, y: y + 1, w: colW - 2, h: nh - 2, cx: x + colW / 2, cy: y, value: v, label: n.name, drill: !!(n.children && n.children.length) });
|
|
1046
|
+
}
|
|
1047
|
+
if (n.children && n.children.length)
|
|
1048
|
+
walk(n.children, d + 1, y, nh, keys, c);
|
|
1049
|
+
y += nh;
|
|
1050
|
+
});
|
|
1051
|
+
};
|
|
1052
|
+
walk(level, 0, plot.y, plot.h, trail, focusNode ? focusNode.color || topColor(trail[0]) : null);
|
|
1053
|
+
return model;
|
|
1054
|
+
}
|
|
1055
|
+
const { start, span, lift } = (0, more_1.arcSpan)(o);
|
|
1056
|
+
const fit = (0, paths_1.fitArc)(model.width, model.height, start, start + span, 6);
|
|
1057
|
+
const outer = fit.radius;
|
|
1058
|
+
const hole = outer * 0.26;
|
|
1059
|
+
const ring = (outer - hole) / depth;
|
|
1060
|
+
model.plot = { x: fit.cx - outer, y: fit.cy - outer, w: outer * 2, h: outer * 2 };
|
|
1061
|
+
model.center = { x: fit.cx, y: fit.cy, r: hole, lift };
|
|
1062
|
+
const walk = (nodes, d, a0, a1, keyPath, color) => {
|
|
1063
|
+
const sum = nodes.reduce((s2, n) => s2 + nodeSum(n), 0) || 1;
|
|
1064
|
+
let a = a0;
|
|
1065
|
+
nodes.forEach((n) => {
|
|
1066
|
+
const v = nodeSum(n);
|
|
1067
|
+
const sweepA = ((a1 - a0) * v) / sum;
|
|
1068
|
+
const keys = [...keyPath, n.name];
|
|
1069
|
+
const key = keys.join('/');
|
|
1070
|
+
const c = n.color || color || topColor(keys[0]);
|
|
1071
|
+
const r0 = hole + d * ring;
|
|
1072
|
+
const r1 = r0 + ring;
|
|
1073
|
+
if (sweepA > 0.002) {
|
|
1074
|
+
const gap = Math.min(0.012, sweepA / 4);
|
|
1075
|
+
model.shapes.push({ key: `u${key}`, kind: 'path', d: (0, paths_1.arcPath)(fit.cx, fit.cy, r0 + 1, r1 - 1, a + gap / 2, a + sweepA - gap / 2), fill: c, opacity: shade(trail.length + d), className: 'wu-chart-sun', hover: key });
|
|
1076
|
+
// The name along the middle of the slice, when the slice is wide and tall enough.
|
|
1077
|
+
const mid = a + sweepA / 2;
|
|
1078
|
+
const tw = k.measure(n.name, k.fontSize);
|
|
1079
|
+
if (tw + 8 <= ring && sweepA * (r0 + ring / 2) >= k.fontSize + 4) {
|
|
1080
|
+
const p = (0, paths_1.polar)(fit.cx, fit.cy, r0 + ring / 2, mid);
|
|
1081
|
+
let deg = (mid * 180) / Math.PI - 90;
|
|
1082
|
+
if (Math.cos(mid - Math.PI / 2) < 0)
|
|
1083
|
+
deg += 180;
|
|
1084
|
+
model.texts.push({ x: p.x, y: p.y, text: n.name, anchor: 'middle', baseline: 'middle', tone: 'inside', strong: true, rotate: r2(((deg % 360) + 360) % 360), hover: key });
|
|
1085
|
+
}
|
|
1086
|
+
else if (tw + 10 <= sweepA * (r0 + ring / 2) && ring >= k.fontSize + 6) {
|
|
1087
|
+
const p = (0, paths_1.polar)(fit.cx, fit.cy, r0 + ring / 2, mid);
|
|
1088
|
+
model.texts.push({ x: p.x, y: p.y, text: n.name, anchor: 'middle', baseline: 'middle', tone: 'inside', strong: true, hover: key });
|
|
1089
|
+
}
|
|
1090
|
+
model.hover.push({
|
|
1091
|
+
index: 0,
|
|
1092
|
+
key,
|
|
1093
|
+
tip: nodeTip(v, keys, c),
|
|
1094
|
+
arc: { cx: fit.cx, cy: fit.cy, r0, r1, a0: a, a1: a + sweepA },
|
|
1095
|
+
x: fit.cx,
|
|
1096
|
+
y: fit.cy,
|
|
1097
|
+
w: 0,
|
|
1098
|
+
h: 0,
|
|
1099
|
+
cx: (0, paths_1.polar)(fit.cx, fit.cy, r1, mid).x,
|
|
1100
|
+
cy: (0, paths_1.polar)(fit.cx, fit.cy, r1, mid).y,
|
|
1101
|
+
value: v,
|
|
1102
|
+
label: n.name,
|
|
1103
|
+
drill: !!(n.children && n.children.length),
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
if (n.children && n.children.length)
|
|
1107
|
+
walk(n.children, d + 1, a, a + sweepA, keys, c);
|
|
1108
|
+
a += sweepA;
|
|
1109
|
+
});
|
|
1110
|
+
};
|
|
1111
|
+
walk(level, 0, start, start + span * sweep, trail, focusNode ? focusNode.color || topColor(trail[0]) : null);
|
|
1112
|
+
return model;
|
|
1113
|
+
}
|
|
1114
|
+
// ---------------------------------------------------------------- unit
|
|
1115
|
+
/** A person, `s` px square, top-left at (x, y): a round head over round shoulders. */
|
|
1116
|
+
function person(x, y, s) {
|
|
1117
|
+
const hr = s * 0.17;
|
|
1118
|
+
const hx = x + s / 2;
|
|
1119
|
+
const hy = y + s * 0.22;
|
|
1120
|
+
const l = x + s * 0.2;
|
|
1121
|
+
const r = x + s * 0.8;
|
|
1122
|
+
const t = y + s * 0.47;
|
|
1123
|
+
const b = y + s * 0.98;
|
|
1124
|
+
const rr = (r - l) / 2;
|
|
1125
|
+
return (`M${r2(hx - hr)} ${r2(hy)}a${r2(hr)} ${r2(hr)} 0 1 0 ${r2(hr * 2)} 0a${r2(hr)} ${r2(hr)} 0 1 0 ${r2(-hr * 2)} 0Z` +
|
|
1126
|
+
`M${r2(l)} ${r2(b)}V${r2(t + rr)}A${r2(rr)} ${r2(rr)} 0 0 1 ${r2(r)} ${r2(t + rr)}V${r2(b)}Z`);
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Shares as a grid of units, a value per label: `'waffle'` (default; 10 × 10 squares, one per percent), `'dots'` (the
|
|
1130
|
+
* same as dots) or `'people'` (50 figures, each 2%). Units fill row by row in label order, coming in as a ripple.
|
|
1131
|
+
*/
|
|
1132
|
+
function unitModel(o, model, palette) {
|
|
1133
|
+
const k = kit(o);
|
|
1134
|
+
const variant = o.variant === 'dots' || o.variant === 'people' ? o.variant : 'waffle';
|
|
1135
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
1136
|
+
const s = (o.series || [])[0];
|
|
1137
|
+
const hidden = new Set(o.hiddenSlices || []);
|
|
1138
|
+
const values = valuesOf(s).map((v) => Math.max(0, v ?? 0));
|
|
1139
|
+
const colorAt = (j) => s?.colors?.[j] || palette[j % palette.length];
|
|
1140
|
+
model.legend = values.map((_, j) => ({ index: j, name: labels[j] ?? '', color: colorAt(j), hidden: hidden.has(j), shape: variant === 'waffle' ? 'box' : 'dot' }));
|
|
1141
|
+
model.dimOthers = true;
|
|
1142
|
+
const shown = values.map((v, j) => ({ v, j })).filter((p) => !hidden.has(p.j) && p.v > 0);
|
|
1143
|
+
const total = shown.reduce((sum, p) => sum + p.v, 0);
|
|
1144
|
+
model.empty = !(total > 0);
|
|
1145
|
+
if (model.empty)
|
|
1146
|
+
return model;
|
|
1147
|
+
const cols = 10;
|
|
1148
|
+
const rows = variant === 'people' ? 5 : 10;
|
|
1149
|
+
const units = cols * rows;
|
|
1150
|
+
// Largest remainders: whole units adding up to the grid.
|
|
1151
|
+
const exact = shown.map((p) => (p.v / total) * units);
|
|
1152
|
+
const counts = exact.map(Math.floor);
|
|
1153
|
+
let left = units - counts.reduce((a, b) => a + b, 0);
|
|
1154
|
+
exact
|
|
1155
|
+
.map((e, i) => ({ i, f: e - Math.floor(e) }))
|
|
1156
|
+
.sort((p, q) => q.f - p.f)
|
|
1157
|
+
.forEach((p) => {
|
|
1158
|
+
if (left-- > 0)
|
|
1159
|
+
counts[p.i]++;
|
|
1160
|
+
});
|
|
1161
|
+
const size = Math.min((model.width - 8) / cols, (model.height - 8) / rows);
|
|
1162
|
+
const x0 = (model.width - size * cols) / 2;
|
|
1163
|
+
const y0 = (model.height - size * rows) / 2;
|
|
1164
|
+
model.plot = { x: x0, y: y0, w: size * cols, h: size * rows };
|
|
1165
|
+
const gap = size * (variant === 'people' ? 0.06 : 0.12);
|
|
1166
|
+
let n = 0;
|
|
1167
|
+
shown.forEach((p, i) => {
|
|
1168
|
+
const color = colorAt(p.j);
|
|
1169
|
+
const key = `u${p.j}`;
|
|
1170
|
+
const tip = { title: labels[p.j] ?? '', rows: [{ color, name: k.pct(p.v / total), value: k.fmt(p.v) }] };
|
|
1171
|
+
for (let c = 0; c < counts[i]; c++, n++) {
|
|
1172
|
+
const x = x0 + (n % cols) * size;
|
|
1173
|
+
const y = y0 + Math.floor(n / cols) * size;
|
|
1174
|
+
const inner = size - gap;
|
|
1175
|
+
const shape = variant === 'people'
|
|
1176
|
+
? { key: `${key}-${c}`, kind: 'path', d: person(x + gap / 2, y + gap / 2, inner), fill: color, enter: 'pop', delay: n * 14, hover: key }
|
|
1177
|
+
: variant === 'dots'
|
|
1178
|
+
? { key: `${key}-${c}`, kind: 'circle', x: x + size / 2, y: y + size / 2, r: inner / 2, fill: color, enter: 'pop', delay: n * 9, hover: key }
|
|
1179
|
+
: { key: `${key}-${c}`, kind: 'rect', x: x + gap / 2, y: y + gap / 2, w: inner, h: inner, rx: inner * 0.18, fill: color, enter: 'pop', delay: n * 9, hover: key };
|
|
1180
|
+
model.shapes.push(shape);
|
|
1181
|
+
model.hover.push({ index: p.j, key, tip, x, y, w: size, h: size, cx: x + size / 2, cy: y, value: p.v, label: labels[p.j] ?? '' });
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
return model;
|
|
1185
|
+
}
|
|
1186
|
+
// ---------------------------------------------------------------- slope
|
|
1187
|
+
/**
|
|
1188
|
+
* How each series changed between labels (usually two: before and after), names and values beside the ends:
|
|
1189
|
+
* `'lines'` (default; each series its colour) or `'highlight'` (up green, down red, no change grey).
|
|
1190
|
+
*/
|
|
1191
|
+
function slopeModel(o, model, palette) {
|
|
1192
|
+
const k = kit(o);
|
|
1193
|
+
const highlight = o.variant === 'highlight';
|
|
1194
|
+
const labels = (o.labels || []).map((l) => String(l ?? ''));
|
|
1195
|
+
const all = o.series || [];
|
|
1196
|
+
model.legend = highlight ? [] : all.map((s, i) => ({ index: i, name: s.name ?? '', color: colorOf(s, i, palette), hidden: !!s.hidden, shape: 'line' }));
|
|
1197
|
+
model.dimOthers = true;
|
|
1198
|
+
const shown = all.map((s, i) => ({ s, i, v: valuesOf(s) })).filter((p) => !p.s.hidden);
|
|
1199
|
+
const count = Math.max(2, labels.length, ...shown.map((p) => p.v.length));
|
|
1200
|
+
let lo = Infinity;
|
|
1201
|
+
let hi = -Infinity;
|
|
1202
|
+
for (const p of shown) {
|
|
1203
|
+
for (const v of p.v) {
|
|
1204
|
+
if (v === null)
|
|
1205
|
+
continue;
|
|
1206
|
+
lo = Math.min(lo, v);
|
|
1207
|
+
hi = Math.max(hi, v);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
model.empty = !(lo <= hi);
|
|
1211
|
+
if (model.empty)
|
|
1212
|
+
return model;
|
|
1213
|
+
if (lo === hi)
|
|
1214
|
+
[lo, hi] = [lo - 1, hi + 1];
|
|
1215
|
+
const given = o.scales?.left;
|
|
1216
|
+
const [min, max] = given && given.max > given.min ? [given.min, given.max] : [lo, hi];
|
|
1217
|
+
model.scales = { left: { min: lo, max: hi, ticks: [] }, right: null };
|
|
1218
|
+
const firstOf = (p) => p.v.find((v) => v !== null) ?? null;
|
|
1219
|
+
const lastOf = (p) => [...p.v].reverse().find((v) => v !== null) ?? null;
|
|
1220
|
+
const text = (p, v, side) => {
|
|
1221
|
+
const name = p.s.name ?? '';
|
|
1222
|
+
const value = v === null ? '' : k.fmt(v);
|
|
1223
|
+
return side === 'left' ? `${name} ${value}` : `${value} ${name}`;
|
|
1224
|
+
};
|
|
1225
|
+
const pad = 8;
|
|
1226
|
+
const leftW = Math.min(model.width * 0.32, Math.max(0, ...shown.map((p) => k.measure(text(p, firstOf(p), 'left'), k.fontSize)))) + pad * 2;
|
|
1227
|
+
const rightW = Math.min(model.width * 0.32, Math.max(0, ...shown.map((p) => k.measure(text(p, lastOf(p), 'right'), k.fontSize)))) + pad * 2;
|
|
1228
|
+
const top = pad + k.lineH + 6;
|
|
1229
|
+
const plot = { x: leftW, y: top, w: Math.max(10, model.width - leftW - rightW), h: Math.max(10, model.height - top - pad - k.fontSize / 2) };
|
|
1230
|
+
model.plot = plot;
|
|
1231
|
+
const xOf = (j) => plot.x + (plot.w * j) / (count - 1);
|
|
1232
|
+
const yOf = (v) => (0, scale_1.scaleLinear)(v, min, max, plot.y + plot.h, plot.y);
|
|
1233
|
+
for (let j = 0; j < count; j++) {
|
|
1234
|
+
const x = xOf(j);
|
|
1235
|
+
model.grid.push({ x1: x, y1: plot.y - 4, x2: x, y2: plot.y + plot.h + 4 });
|
|
1236
|
+
model.texts.push({ x, y: pad, text: labels[j] ?? '', anchor: j === 0 ? 'end' : j === count - 1 ? 'start' : 'middle', baseline: 'hanging', strong: true });
|
|
1237
|
+
}
|
|
1238
|
+
const colorFor = (p) => {
|
|
1239
|
+
if (!highlight)
|
|
1240
|
+
return colorOf(p.s, p.i, palette);
|
|
1241
|
+
const [a, b] = [firstOf(p), lastOf(p)];
|
|
1242
|
+
return a === null || b === null || a === b ? MUTED : b > a ? UP : DOWN;
|
|
1243
|
+
};
|
|
1244
|
+
const gapY = k.fontSize + 3;
|
|
1245
|
+
const lefts = relaxLabels(shown.map((p) => yOf(firstOf(p) ?? 0)), gapY, plot.y, plot.y + plot.h);
|
|
1246
|
+
const rights = relaxLabels(shown.map((p) => yOf(lastOf(p) ?? 0)), gapY, plot.y, plot.y + plot.h);
|
|
1247
|
+
shown.forEach((p, n) => {
|
|
1248
|
+
const color = colorFor(p);
|
|
1249
|
+
const key = `l${p.i}`;
|
|
1250
|
+
const pts = p.v.map((v, j) => (v === null ? null : { x: xOf(j), y: yOf(v) }));
|
|
1251
|
+
model.shapes.push({ key, kind: 'path', d: (0, paths_1.linePath)(pts), stroke: color, strokeWidth: 2.5, className: 'wu-chart-line-shape', enter: 'draw', delay: n * 50, hover: key });
|
|
1252
|
+
pts.forEach((pt, j) => {
|
|
1253
|
+
if (pt)
|
|
1254
|
+
model.shapes.push({ key: `${key}d${j}`, kind: 'circle', x: pt.x, y: pt.y, r: 4.5, fill: 'var(--wu-chart-dot-fill)', stroke: color, strokeWidth: 2.5, enter: 'pop', delay: n * 50 + j * 250, hover: key });
|
|
1255
|
+
});
|
|
1256
|
+
const [a, b] = [firstOf(p), lastOf(p)];
|
|
1257
|
+
model.texts.push({ x: plot.x - 10, y: lefts[n], text: text(p, a, 'left'), anchor: 'end', baseline: 'middle', color: highlight ? undefined : color, hover: key });
|
|
1258
|
+
model.texts.push({ x: plot.x + plot.w + 10, y: rights[n], text: text(p, b, 'right'), anchor: 'start', baseline: 'middle', color: highlight ? undefined : color, hover: key });
|
|
1259
|
+
const rows = p.v.map((v, j) => ({ color, name: labels[j] ?? '', value: v === null ? '–' : k.fmt(v) }));
|
|
1260
|
+
if (a !== null && b !== null && a !== 0)
|
|
1261
|
+
rows.push({ color, name: k.words.change, value: `${b >= a ? '+' : '−'}${k.pct(Math.abs((b - a) / a))}` });
|
|
1262
|
+
const line = pts.filter((pt) => !!pt);
|
|
1263
|
+
model.hover.push({ index: n, series: p.i, key, tip: { title: p.s.name ?? '', rows }, points: line, x: plot.x, y: plot.y, w: 0, h: 0, cx: line[line.length - 1]?.x ?? 0, cy: line[line.length - 1]?.y ?? 0 });
|
|
1264
|
+
});
|
|
1265
|
+
return model;
|
|
1266
|
+
}
|
|
1267
|
+
// ---------------------------------------------------------------- hit test and type switching
|
|
1268
|
+
/** The hover target under (x, y): ring slices by angle and radius, lines by distance, boxes by being inside, points by distance. */
|
|
1269
|
+
function chartHit(model, x, y) {
|
|
1270
|
+
let best = null;
|
|
1271
|
+
let bestD = Infinity;
|
|
1272
|
+
for (const h of model.hover) {
|
|
1273
|
+
if (h.arc) {
|
|
1274
|
+
const { cx, cy, r0, r1, a0, a1 } = h.arc;
|
|
1275
|
+
const r = Math.hypot(x - cx, y - cy);
|
|
1276
|
+
if (r < r0 || r > r1)
|
|
1277
|
+
continue;
|
|
1278
|
+
const turn = (((Math.atan2(x - cx, cy - y) - a0) % TURN) + TURN) % TURN;
|
|
1279
|
+
if (turn <= a1 - a0)
|
|
1280
|
+
return h;
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
if (h.points && h.points.length > 1) {
|
|
1284
|
+
for (let i = 1; i < h.points.length; i++) {
|
|
1285
|
+
const d = segmentDistance(x, y, h.points[i - 1], h.points[i]);
|
|
1286
|
+
if (d < 10 && d < bestD) {
|
|
1287
|
+
best = h;
|
|
1288
|
+
bestD = d;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
continue;
|
|
1292
|
+
}
|
|
1293
|
+
if (h.w > 0 && h.h > 0) {
|
|
1294
|
+
if (x >= h.x && x <= h.x + h.w && y >= h.y && y <= h.y + h.h)
|
|
1295
|
+
return h;
|
|
1296
|
+
continue;
|
|
1297
|
+
}
|
|
1298
|
+
const d = Math.hypot(x - h.cx, y - h.cy);
|
|
1299
|
+
if (d < 14 && d < bestD) {
|
|
1300
|
+
best = h;
|
|
1301
|
+
bestD = d;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
return best;
|
|
1305
|
+
}
|
|
1306
|
+
function segmentDistance(x, y, a, b) {
|
|
1307
|
+
const dx = b.x - a.x;
|
|
1308
|
+
const dy = b.y - a.y;
|
|
1309
|
+
const len = dx * dx + dy * dy;
|
|
1310
|
+
const t = len ? Math.max(0, Math.min(1, ((x - a.x) * dx + (y - a.y) * dy) / len)) : 0;
|
|
1311
|
+
return Math.hypot(x - (a.x + t * dx), y - (a.y + t * dy));
|
|
1312
|
+
}
|
|
1313
|
+
/** The looks (`variant`) of each kind, the default first; kinds with one look have none. */
|
|
1314
|
+
exports.CHART_VARIANTS = {
|
|
1315
|
+
heatmap: ['square', 'circle', 'hex'],
|
|
1316
|
+
stream: ['silhouette', 'wiggle', 'expand'],
|
|
1317
|
+
waterfall: ['bars', 'steps'],
|
|
1318
|
+
dumbbell: ['dots', 'arrow', 'range'],
|
|
1319
|
+
timeline: ['bars', 'thin'],
|
|
1320
|
+
funnel: ['funnel', 'bars', 'pyramid'],
|
|
1321
|
+
boxplot: ['box', 'violin', 'points'],
|
|
1322
|
+
histogram: ['bars', 'density'],
|
|
1323
|
+
sunburst: ['sunburst', 'icicle'],
|
|
1324
|
+
unit: ['waffle', 'dots', 'people'],
|
|
1325
|
+
slope: ['lines', 'highlight'],
|
|
1326
|
+
};
|
|
1327
|
+
/** The looks of a kind (the chart's look picker), the default first. */
|
|
1328
|
+
function chartVariants(type) {
|
|
1329
|
+
return exports.CHART_VARIANTS[type] ?? [];
|
|
1330
|
+
}
|
|
1331
|
+
/** Kinds whose values do not move from the old to the new (raw values, ranges, nodes, units): they come in with their shapes' own entrance. */
|
|
1332
|
+
function chartMovesValues(type) {
|
|
1333
|
+
return !['timeline', 'boxplot', 'histogram', 'sunburst', 'unit', 'dumbbell', 'slope', 'scatter'].includes(type);
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* The kinds the same data can switch to (the type switcher): numbers per label for several series (bar, line, area,
|
|
1337
|
+
* stream, radar, heatmap, slope, dumbbell, treemap), for one series (also pie, doughnut, polar area, funnel, treemap,
|
|
1338
|
+
* unit), raw values (histogram, box plot). Timeline, sunburst, scatter, waterfall and radial bars stay as they are.
|
|
1339
|
+
*/
|
|
1340
|
+
function chartSwapTypes(type, series, labels) {
|
|
1341
|
+
const list = series || [];
|
|
1342
|
+
const count = Math.max(labels?.length ?? 0, ...list.map((s) => s.data.length), 0);
|
|
1343
|
+
const numbers = list.length > 0 && list.every((s) => s.data.every((v) => v === null || v === undefined || typeof v === 'number'));
|
|
1344
|
+
const raw = list.length > 0 && list.every((s) => s.data.every((v) => v === null || Array.isArray(v)));
|
|
1345
|
+
let kinds = [type];
|
|
1346
|
+
if (type === 'histogram' && numbers)
|
|
1347
|
+
kinds = ['histogram'];
|
|
1348
|
+
else if (type === 'boxplot' && raw)
|
|
1349
|
+
kinds = ['boxplot'];
|
|
1350
|
+
else if (numbers && list.length === 1)
|
|
1351
|
+
kinds = ['bar', 'line', 'area', 'pie', 'doughnut', 'polarArea', 'funnel', 'treemap', 'unit', ...(count >= 3 ? ['radar'] : [])];
|
|
1352
|
+
else if (numbers && list.length > 1)
|
|
1353
|
+
kinds = ['bar', 'line', 'area', 'stream', ...(count >= 3 ? ['radar'] : []), 'heatmap', ...(count >= 2 ? ['slope'] : []), 'dumbbell', 'treemap'];
|
|
1354
|
+
return kinds.includes(type) ? kinds : [type];
|
|
1355
|
+
}
|