@sme.up/ketchup 9.2.0 → 9.3.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/dist/cjs/bar.helpers-f46a5a83.js +372 -0
- package/dist/cjs/f-button-4caf541a.js +105 -0
- package/dist/cjs/{f-button-declarations-3fd791a8.js → f-button-declarations-51ef6d9a.js} +5 -5
- package/dist/cjs/f-cell-979c26ea.js +670 -0
- package/dist/cjs/f-checkbox-41864e53.js +29 -0
- package/dist/cjs/f-chip-8957940b.js +133 -0
- package/dist/cjs/f-image-e16fe10d.js +115 -0
- package/dist/cjs/f-paginator-utils-f2dd0322.js +1577 -0
- package/dist/cjs/f-text-field-2fac8078.js +216 -0
- package/dist/cjs/{f-text-field-mdc-4fda9705.js → f-text-field-mdc-08a06162.js} +19 -19
- package/dist/cjs/{index-d8e5eb5f.js → index-8f2f4159.js} +27 -7
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +182 -181
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +14562 -14561
- package/dist/cjs/kup-box.cjs.entry.js +1231 -1230
- package/dist/cjs/kup-calendar.cjs.entry.js +376 -375
- package/dist/cjs/kup-card-list.cjs.entry.js +233 -232
- package/dist/cjs/kup-cell.cjs.entry.js +153 -152
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1317 -0
- package/dist/cjs/kup-dashboard.cjs.entry.js +369 -368
- package/dist/cjs/kup-dates-0e59b05d.js +782 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +122 -121
- package/dist/cjs/kup-echart.cjs.entry.js +1192 -1191
- package/dist/cjs/kup-family-tree.cjs.entry.js +400 -399
- package/dist/cjs/kup-gantt_10.cjs.entry.js +1076 -0
- package/dist/cjs/kup-grid.cjs.entry.js +82 -81
- package/dist/cjs/kup-iframe.cjs.entry.js +80 -79
- package/dist/cjs/kup-image-list.cjs.entry.js +224 -223
- package/dist/cjs/kup-lazy.cjs.entry.js +162 -161
- package/dist/cjs/kup-magic-box.cjs.entry.js +270 -269
- package/dist/cjs/{kup-manager-7334c396.js → kup-manager-c63f4fb9.js} +5770 -6516
- package/dist/cjs/kup-nav-bar.cjs.entry.js +110 -109
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +352 -351
- package/dist/cjs/kup-photo-frame.cjs.entry.js +126 -125
- package/dist/cjs/kup-planner-declarations-d3dec885.js +93 -0
- package/dist/cjs/kup-planner-renderer-helper-c2394940.js +410 -0
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +278 -0
- package/dist/cjs/kup-planner-time-formatter-a74e70f0.js +93 -0
- package/dist/cjs/kup-planner.cjs.entry.js +718 -13596
- package/dist/cjs/kup-probe.cjs.entry.js +228 -227
- package/dist/cjs/kup-qlik.cjs.entry.js +126 -125
- package/dist/cjs/kup-snackbar.cjs.entry.js +102 -101
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/index.js +16 -0
- package/dist/collection/assets/planner-example-1.js +6337 -0
- package/dist/collection/assets/planner-example-2.js +5650 -0
- package/dist/collection/assets/planner-example-3.js +6548 -0
- package/dist/collection/assets/planner-example-4.js +28473 -0
- package/dist/collection/assets/planner.js +3255 -4900
- package/dist/collection/collection-manifest.json +16 -1
- package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +3 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +423 -423
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +882 -882
- package/dist/collection/components/kup-badge/kup-badge-declarations.js +3 -3
- package/dist/collection/components/kup-badge/kup-badge.js +262 -262
- package/dist/collection/components/kup-box/kup-box-declarations.js +26 -26
- package/dist/collection/components/kup-box/kup-box-state.js +13 -13
- package/dist/collection/components/kup-box/kup-box.js +2068 -2068
- package/dist/collection/components/kup-button/kup-button-declarations.js +11 -11
- package/dist/collection/components/kup-button/kup-button.js +560 -560
- package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +6 -6
- package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +141 -141
- package/dist/collection/components/kup-button-list/kup-button-list.js +497 -497
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +17 -17
- package/dist/collection/components/kup-calendar/kup-calendar.js +681 -681
- package/dist/collection/components/kup-card/box/kup-card-box.js +161 -161
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +6 -6
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +324 -324
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +250 -250
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +141 -141
- package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +3 -3
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +98 -98
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +44 -44
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +135 -135
- package/dist/collection/components/kup-card/free/kup-card-free.js +6 -6
- package/dist/collection/components/kup-card/kup-card-declarations.js +53 -53
- package/dist/collection/components/kup-card/kup-card-helper.js +155 -155
- package/dist/collection/components/kup-card/kup-card.js +767 -767
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +174 -174
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +474 -474
- package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +16 -16
- package/dist/collection/components/kup-card-list/kup-card-list.js +676 -676
- package/dist/collection/components/kup-cell/kup-cell-declarations.js +4 -4
- package/dist/collection/components/kup-cell/kup-cell.js +382 -382
- package/dist/collection/components/kup-chart/kup-chart-builder.js +80 -80
- package/dist/collection/components/kup-chart/kup-chart-declarations.js +36 -36
- package/dist/collection/components/kup-chart/kup-chart.js +1043 -1043
- package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +6 -6
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +417 -417
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +5 -5
- package/dist/collection/components/kup-chip/kup-chip.js +538 -538
- package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +5 -5
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +511 -511
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +8 -8
- package/dist/collection/components/kup-combobox/kup-combobox.js +796 -796
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +3 -3
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +562 -562
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +95 -95
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +729 -729
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +33 -33
- package/dist/collection/components/kup-data-table/kup-data-table.js +5398 -5398
- package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +8 -8
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +796 -796
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +7 -7
- package/dist/collection/components/kup-dialog/kup-dialog.js +451 -451
- package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +2 -2
- package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +6 -6
- package/dist/collection/components/kup-drawer/kup-drawer.js +374 -374
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +11 -11
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +776 -776
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +40 -40
- package/dist/collection/components/kup-echart/kup-echart.js +1606 -1606
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +8 -8
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +789 -789
- package/dist/collection/components/kup-form/kup-form-declarations.js +16 -16
- package/dist/collection/components/kup-form/kup-form.js +694 -694
- package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +19 -19
- package/dist/collection/components/kup-gauge/kup-gauge.js +730 -730
- package/dist/collection/components/kup-grid/kup-grid-declarations.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.js +238 -238
- package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +3 -3
- package/dist/collection/components/kup-iframe/kup-iframe.js +268 -268
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +167 -167
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +16 -16
- package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +221 -221
- package/dist/collection/components/kup-image/kup-image-declarations.js +9 -9
- package/dist/collection/components/kup-image/kup-image.js +471 -471
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +3 -3
- package/dist/collection/components/kup-image-list/kup-image-list-state.js +7 -7
- package/dist/collection/components/kup-image-list/kup-image-list.js +502 -502
- package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +7 -7
- package/dist/collection/components/kup-lazy/kup-lazy.js +417 -417
- package/dist/collection/components/kup-list/kup-list-declarations.js +18 -18
- package/dist/collection/components/kup-list/kup-list-helper.js +105 -105
- package/dist/collection/components/kup-list/kup-list.js +914 -914
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +10 -10
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +405 -405
- package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +7 -7
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +304 -304
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +9 -9
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +847 -847
- package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +3 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +359 -359
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +69 -66
- package/dist/collection/components/kup-planner/kup-planner-helper.js +39 -39
- package/dist/collection/components/kup-planner/kup-planner-state.js +14 -14
- package/dist/collection/components/kup-planner/kup-planner.css +4 -482
- package/dist/collection/components/kup-planner/kup-planner.js +1777 -1675
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +117 -0
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +79 -0
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +280 -0
- package/dist/collection/components/kup-planner/utils/custom-tool-tip.js +5 -0
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +88 -0
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +328 -0
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +48 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +40 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2302 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +31 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +466 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +60 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +1186 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +36 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +177 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-adapted-types.js +1 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +396 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +321 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-time-formatter.js +87 -0
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +30 -0
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +49 -0
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +215 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +112 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +226 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +67 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +638 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +82 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +30 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +362 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +31 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +170 -0
- package/dist/collection/components/kup-probe/kup-probe.js +335 -335
- package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +7 -7
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +346 -346
- package/dist/collection/components/kup-qlik/kup-qlik.js +311 -311
- package/dist/collection/components/kup-radio/kup-radio-declarations.js +5 -5
- package/dist/collection/components/kup-radio/kup-radio.js +392 -392
- package/dist/collection/components/kup-rating/kup-rating-declarations.js +4 -4
- package/dist/collection/components/kup-rating/kup-rating.js +296 -296
- package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +5 -5
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +380 -380
- package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +8 -8
- package/dist/collection/components/kup-spinner/kup-spinner.js +449 -449
- package/dist/collection/components/kup-state/mock-store.js +10 -10
- package/dist/collection/components/kup-switch/kup-switch-declarations.js +5 -5
- package/dist/collection/components/kup-switch/kup-switch.js +387 -387
- package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +3 -3
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +423 -423
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +30 -30
- package/dist/collection/components/kup-text-field/kup-text-field.js +1220 -1220
- package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +7 -7
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +914 -914
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +28 -28
- package/dist/collection/components/kup-tree/kup-tree-faker.js +233 -233
- package/dist/collection/components/kup-tree/kup-tree-state.js +13 -13
- package/dist/collection/components/kup-tree/kup-tree.js +2424 -2424
- package/dist/collection/f-components/f-button/f-button-declarations.js +5 -5
- package/dist/collection/f-components/f-button/f-button.js +76 -76
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +125 -125
- package/dist/collection/f-components/f-cell/f-cell.js +407 -407
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +10 -10
- package/dist/collection/f-components/f-chip/f-chip-declarations.js +4 -4
- package/dist/collection/f-components/f-chip/f-chip.js +82 -82
- package/dist/collection/f-components/f-image/f-image-declarations.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +79 -79
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +21 -21
- package/dist/collection/f-components/f-paginator/f-paginator.js +65 -65
- package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +70 -70
- package/dist/collection/f-components/f-radio/f-radio.js +21 -21
- package/dist/collection/f-components/f-rating/f-rating.js +17 -17
- package/dist/collection/f-components/f-switch/f-switch.js +6 -6
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +19 -19
- package/dist/collection/f-components/f-text-field/f-text-field.js +165 -165
- package/dist/collection/index.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +47 -47
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +220 -220
- package/dist/collection/managers/kup-data/kup-data-declarations.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +107 -107
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +11 -11
- package/dist/collection/managers/kup-data/kup-data.js +468 -468
- package/dist/collection/managers/kup-dates/kup-dates-declarations.js +19 -19
- package/dist/collection/managers/kup-dates/kup-dates.js +637 -605
- package/dist/collection/managers/kup-debug/kup-debug-declarations.js +8 -8
- package/dist/collection/managers/kup-debug/kup-debug.js +626 -626
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +9 -9
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +232 -232
- package/dist/collection/managers/kup-interact/kup-interact-declarations.js +11 -11
- package/dist/collection/managers/kup-interact/kup-interact.js +374 -374
- package/dist/collection/managers/kup-language/kup-language-declarations.js +127 -127
- package/dist/collection/managers/kup-language/kup-language.js +132 -132
- package/dist/collection/managers/kup-manager/kup-manager.js +257 -257
- package/dist/collection/managers/kup-math/kup-math-declarations.js +7 -7
- package/dist/collection/managers/kup-math/kup-math-helper.js +19 -19
- package/dist/collection/managers/kup-math/kup-math.js +374 -374
- package/dist/collection/managers/kup-objects/kup-objects.js +379 -379
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +4 -4
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +301 -301
- package/dist/collection/managers/kup-search/kup-search.js +65 -65
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +134 -134
- package/dist/collection/managers/kup-theme/kup-theme.js +696 -696
- package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +3 -3
- package/dist/collection/managers/kup-toolbar/kup-toolbar.js +93 -93
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +198 -198
- package/dist/collection/types/GenericTypes.js +47 -47
- package/dist/collection/utils/cell-utils.js +115 -115
- package/dist/collection/utils/filters/filters-column-menu.js +339 -339
- package/dist/collection/utils/filters/filters-declarations.js +4 -4
- package/dist/collection/utils/filters/filters-rows.js +215 -215
- package/dist/collection/utils/filters/filters-tree-items.js +96 -96
- package/dist/collection/utils/filters/filters.js +257 -257
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +14 -14
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +710 -710
- package/dist/collection/utils/utils.js +37 -37
- package/dist/components/custom-task-list-header.js +44 -0
- package/dist/components/custom-task-list-table.js +121 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.d.ts +2 -2
- package/dist/components/kup-accordion.js +331 -331
- package/dist/components/kup-autocomplete.d.ts +2 -2
- package/dist/components/kup-autocomplete2.js +21534 -21533
- package/dist/components/kup-badge.d.ts +2 -2
- package/dist/components/kup-box.d.ts +2 -2
- package/dist/components/kup-box2.js +1416 -1416
- package/dist/components/kup-button-list.d.ts +2 -2
- package/dist/components/kup-button.d.ts +2 -2
- package/dist/components/kup-calendar.d.ts +2 -2
- package/dist/components/kup-calendar.js +534 -533
- package/dist/components/kup-card-list.d.ts +2 -2
- package/dist/components/kup-card-list.js +401 -401
- package/dist/components/kup-card.d.ts +2 -2
- package/dist/components/kup-cell.d.ts +2 -2
- package/dist/components/kup-cell.js +303 -303
- package/dist/components/kup-chart.d.ts +2 -2
- package/dist/components/kup-checkbox.d.ts +2 -2
- package/dist/components/kup-chip.d.ts +2 -2
- package/dist/components/kup-color-picker.d.ts +2 -2
- package/dist/components/kup-combobox.d.ts +2 -2
- package/dist/components/kup-custom-task-list-header.d.ts +11 -0
- package/dist/components/kup-custom-task-list-header.js +6 -0
- package/dist/components/kup-custom-task-list-table.d.ts +11 -0
- package/dist/components/kup-custom-task-list-table.js +6 -0
- package/dist/components/kup-dashboard.d.ts +2 -2
- package/dist/components/kup-dashboard.js +520 -520
- package/dist/components/kup-data-table.d.ts +2 -2
- package/dist/components/kup-date-picker.d.ts +2 -2
- package/dist/components/kup-dates.js +777 -0
- package/dist/components/kup-dialog.d.ts +2 -2
- package/dist/components/kup-drawer.d.ts +2 -2
- package/dist/components/kup-drawer.js +278 -278
- package/dist/components/kup-dropdown-button.d.ts +2 -2
- package/dist/components/kup-echart.d.ts +2 -2
- package/dist/components/kup-echart2.js +1358 -1358
- package/dist/components/kup-family-tree.d.ts +2 -2
- package/dist/components/kup-family-tree.js +564 -564
- package/dist/components/kup-form.d.ts +2 -2
- package/dist/components/kup-gantt-calendar.d.ts +11 -0
- package/dist/components/kup-gantt-calendar.js +6 -0
- package/dist/components/kup-gantt-calendar2.js +323 -0
- package/dist/components/kup-gantt.d.ts +11 -0
- package/dist/components/kup-gantt.js +6 -0
- package/dist/components/kup-gantt2.js +822 -0
- package/dist/components/kup-gauge.d.ts +2 -2
- package/dist/components/kup-grid-renderer.d.ts +11 -0
- package/dist/components/kup-grid-renderer.js +6 -0
- package/dist/components/kup-grid-renderer2.js +1416 -0
- package/dist/components/kup-grid.d.ts +2 -2
- package/dist/components/kup-grid2.js +236 -236
- package/dist/components/kup-horizontal-scroll.d.ts +11 -0
- package/dist/components/kup-horizontal-scroll.js +6 -0
- package/dist/components/kup-horizontal-scroll2.js +77 -0
- package/dist/components/kup-iframe.d.ts +2 -2
- package/dist/components/kup-iframe.js +234 -234
- package/dist/components/kup-image-list.d.ts +2 -2
- package/dist/components/kup-image-list.js +377 -377
- package/dist/components/kup-image.d.ts +2 -2
- package/dist/components/kup-lazy.d.ts +2 -2
- package/dist/components/kup-lazy.js +319 -319
- package/dist/components/kup-list.d.ts +2 -2
- package/dist/components/kup-magic-box.d.ts +2 -2
- package/dist/components/kup-magic-box.js +432 -432
- package/dist/components/kup-manager.js +5748 -6491
- package/dist/components/kup-nav-bar.d.ts +2 -2
- package/dist/components/kup-nav-bar.js +263 -263
- package/dist/components/kup-numeric-picker.d.ts +2 -2
- package/dist/components/kup-numeric-picker.js +514 -514
- package/dist/components/kup-photo-frame.d.ts +2 -2
- package/dist/components/kup-photo-frame.js +281 -281
- package/dist/components/kup-planner-renderer-helper.js +399 -0
- package/dist/components/kup-planner-renderer.d.ts +11 -0
- package/dist/components/kup-planner-renderer.js +6 -0
- package/dist/components/kup-planner-renderer2.js +390 -0
- package/dist/components/kup-planner.d.ts +2 -2
- package/dist/components/kup-planner.js +1005 -13792
- package/dist/components/kup-probe.d.ts +2 -2
- package/dist/components/kup-probe.js +379 -379
- package/dist/components/kup-progress-bar.d.ts +2 -2
- package/dist/components/kup-qlik.d.ts +2 -2
- package/dist/components/kup-qlik.js +282 -282
- package/dist/components/kup-radio.d.ts +2 -2
- package/dist/components/kup-rating.d.ts +2 -2
- package/dist/components/kup-snackbar.d.ts +2 -2
- package/dist/components/kup-snackbar.js +257 -257
- package/dist/components/kup-spinner.d.ts +2 -2
- package/dist/components/kup-standard-tooltip.d.ts +11 -0
- package/dist/components/kup-standard-tooltip.js +6 -0
- package/dist/components/kup-standard-tooltip2.js +37 -0
- package/dist/components/kup-switch.d.ts +2 -2
- package/dist/components/kup-switcher.d.ts +11 -0
- package/dist/components/kup-switcher.js +6 -0
- package/dist/components/kup-switcher2.js +36 -0
- package/dist/components/kup-tab-bar.d.ts +2 -2
- package/dist/components/kup-task-gantt.d.ts +11 -0
- package/dist/components/kup-task-gantt.js +6 -0
- package/dist/components/kup-task-gantt2.js +91 -0
- package/dist/components/kup-task-list-header.d.ts +11 -0
- package/dist/components/kup-task-list-header.js +6 -0
- package/dist/components/kup-task-list-header2.js +55 -0
- package/dist/components/kup-task-list-table.d.ts +11 -0
- package/dist/components/kup-task-list-table.js +6 -0
- package/dist/components/kup-task-list-table2.js +79 -0
- package/dist/components/kup-task-list.d.ts +11 -0
- package/dist/components/kup-task-list.js +6 -0
- package/dist/components/kup-task-list2.js +260 -0
- package/dist/components/kup-text-field.d.ts +2 -2
- package/dist/components/kup-time-picker.d.ts +2 -2
- package/dist/components/kup-tooltip.d.ts +11 -0
- package/dist/components/kup-tooltip.js +6 -0
- package/dist/components/kup-tooltip2.js +127 -0
- package/dist/components/kup-tree.d.ts +2 -2
- package/dist/components/kup-vertical-scroll.d.ts +11 -0
- package/dist/components/kup-vertical-scroll.js +6 -0
- package/dist/components/kup-vertical-scroll2.js +77 -0
- package/dist/esm/bar.helpers-0898efb9.js +363 -0
- package/dist/esm/f-button-5ccc2e50.js +103 -0
- package/dist/esm/{f-button-declarations-8a009df1.js → f-button-declarations-9bdc6f26.js} +5 -5
- package/dist/esm/f-cell-6f4290b2.js +664 -0
- package/dist/esm/f-checkbox-43481de2.js +27 -0
- package/dist/esm/f-chip-465aa432.js +131 -0
- package/dist/esm/f-image-c5063342.js +113 -0
- package/dist/esm/f-paginator-utils-6903534b.js +1564 -0
- package/dist/esm/f-text-field-28b2b26d.js +214 -0
- package/dist/esm/{f-text-field-mdc-1143cf21.js → f-text-field-mdc-c88bf688.js} +19 -19
- package/dist/esm/{index-99c17b08.js → index-59f83f91.js} +27 -8
- package/dist/esm/index.js +4 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +182 -181
- package/dist/esm/kup-autocomplete_27.entry.js +14562 -14561
- package/dist/esm/kup-box.entry.js +1231 -1230
- package/dist/esm/kup-calendar.entry.js +376 -375
- package/dist/esm/kup-card-list.entry.js +233 -232
- package/dist/esm/kup-cell.entry.js +153 -152
- package/dist/esm/kup-custom-task-list-header_4.entry.js +1310 -0
- package/dist/esm/kup-dashboard.entry.js +369 -368
- package/dist/esm/kup-dates-15f89ea2.js +777 -0
- package/dist/esm/kup-drawer.entry.js +122 -121
- package/dist/esm/kup-echart.entry.js +1192 -1191
- package/dist/esm/kup-family-tree.entry.js +400 -399
- package/dist/esm/kup-gantt_10.entry.js +1063 -0
- package/dist/esm/kup-grid.entry.js +82 -81
- package/dist/esm/kup-iframe.entry.js +80 -79
- package/dist/esm/kup-image-list.entry.js +224 -223
- package/dist/esm/kup-lazy.entry.js +162 -161
- package/dist/esm/kup-magic-box.entry.js +270 -269
- package/dist/esm/{kup-manager-9a9d2dbb.js → kup-manager-bfea4e6f.js} +5749 -6492
- package/dist/esm/kup-nav-bar.entry.js +110 -109
- package/dist/esm/kup-numeric-picker.entry.js +352 -351
- package/dist/esm/kup-photo-frame.entry.js +126 -125
- package/dist/esm/kup-planner-declarations-b9345758.js +88 -0
- package/dist/esm/kup-planner-renderer-helper-2143d119.js +399 -0
- package/dist/esm/kup-planner-renderer.entry.js +274 -0
- package/dist/esm/kup-planner-time-formatter-a68e05ba.js +89 -0
- package/dist/esm/kup-planner.entry.js +718 -13596
- package/dist/esm/kup-probe.entry.js +228 -227
- package/dist/esm/kup-qlik.entry.js +126 -125
- package/dist/esm/kup-snackbar.entry.js +102 -101
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-01a0b54c.js +1 -0
- package/dist/ketchup/{p-6a7df3d2.js → p-097500fe.js} +1 -1
- package/dist/ketchup/p-0cb5e9ae.entry.js +1 -0
- package/dist/ketchup/p-0f91d4de.entry.js +1 -0
- package/dist/ketchup/p-1872c92e.entry.js +1 -0
- package/dist/ketchup/p-20aa95ae.entry.js +1 -0
- package/dist/ketchup/{p-4e696daf.js → p-21c640a5.js} +1 -1
- package/dist/ketchup/p-4bc3b3a6.js +29 -0
- package/dist/ketchup/{p-ea56edbe.js → p-4c1ec006.js} +1 -1
- package/dist/ketchup/p-51f9b230.entry.js +1 -0
- package/dist/ketchup/p-612b46da.entry.js +1 -0
- package/dist/ketchup/p-69287f4a.entry.js +1 -0
- package/dist/ketchup/p-71acfd3c.entry.js +1 -0
- package/dist/ketchup/p-7a72c4fa.entry.js +1 -0
- package/dist/ketchup/p-7c5a1357.entry.js +1 -0
- package/dist/ketchup/p-829d7060.entry.js +1 -0
- package/dist/ketchup/p-84be8f0b.js +1 -0
- package/dist/ketchup/p-85279516.entry.js +9 -0
- package/dist/ketchup/p-8591ac0b.entry.js +1 -0
- package/dist/ketchup/p-8c3ad5ef.entry.js +1 -0
- package/dist/ketchup/p-8e180c01.entry.js +1 -0
- package/dist/ketchup/p-8e3b6de8.js +1 -0
- package/dist/ketchup/p-8ecdd076.entry.js +1 -0
- package/dist/ketchup/p-903d1b10.entry.js +1 -0
- package/dist/ketchup/p-924b841b.js +1 -0
- package/dist/ketchup/p-95272714.entry.js +1 -0
- package/dist/ketchup/p-b07ffd18.entry.js +16 -0
- package/dist/ketchup/p-c23731ca.js +1 -0
- package/dist/ketchup/p-cd9a4274.js +2 -0
- package/dist/ketchup/{p-34e4a985.js → p-ce9ef2d5.js} +1 -1
- package/dist/ketchup/{p-f1f82eef.entry.js → p-d7b8295a.entry.js} +1 -1
- package/dist/ketchup/p-db93bc06.entry.js +1 -0
- package/dist/ketchup/p-e46470a6.entry.js +1 -0
- package/dist/ketchup/p-e841c2ae.js +1 -0
- package/dist/ketchup/p-eae42bff.entry.js +1 -0
- package/dist/ketchup/p-ee6305f5.js +1 -0
- package/dist/ketchup/p-f1efab38.entry.js +1 -0
- package/dist/ketchup/p-f2df4ce9.entry.js +1 -0
- package/dist/ketchup/{p-7a876328.js → p-f51dbf68.js} +1 -1
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +5 -5
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +75 -75
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +18 -18
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +113 -113
- package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +3 -3
- package/dist/types/components/kup-badge/kup-badge.d.ts +47 -47
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +70 -70
- package/dist/types/components/kup-box/kup-box-state.d.ts +7 -7
- package/dist/types/components/kup-box/kup-box.d.ts +262 -262
- package/dist/types/components/kup-button/kup-button-declarations.d.ts +12 -12
- package/dist/types/components/kup-button/kup-button.d.ts +105 -105
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +11 -11
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +75 -75
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +32 -32
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +123 -123
- package/dist/types/components/kup-card/kup-card.d.ts +154 -154
- package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +20 -20
- package/dist/types/components/kup-card-list/kup-card-list.d.ts +107 -107
- package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +4 -4
- package/dist/types/components/kup-cell/kup-cell.d.ts +62 -62
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +2 -2
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +99 -99
- package/dist/types/components/kup-chart/kup-chart.d.ts +164 -164
- package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +8 -8
- package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +80 -80
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +8 -8
- package/dist/types/components/kup-chip/kup-chip.d.ts +82 -82
- package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +6 -6
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +83 -83
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +12 -12
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +89 -89
- package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +28 -28
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +74 -74
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +156 -156
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +31 -31
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +441 -441
- package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +9 -9
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +105 -105
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +12 -12
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +72 -72
- package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +2 -2
- package/dist/types/components/kup-drawer/kup-drawer.d.ts +70 -70
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +12 -12
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +154 -154
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +48 -48
- package/dist/types/components/kup-echart/kup-echart.d.ts +103 -103
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +20 -20
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -82
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +40 -40
- package/dist/types/components/kup-form/kup-form.d.ts +78 -78
- package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +19 -19
- package/dist/types/components/kup-gauge/kup-gauge.d.ts +144 -144
- package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +3 -3
- package/dist/types/components/kup-grid/kup-grid.d.ts +45 -45
- package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +3 -3
- package/dist/types/components/kup-iframe/kup-iframe.d.ts +45 -45
- package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +19 -19
- package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +25 -25
- package/dist/types/components/kup-image/kup-image-declarations.d.ts +10 -10
- package/dist/types/components/kup-image/kup-image.d.ts +96 -96
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +4 -4
- package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +3 -3
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +64 -64
- package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +7 -7
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +73 -73
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +23 -23
- package/dist/types/components/kup-list/kup-list.d.ts +122 -122
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +10 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +60 -60
- package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +7 -7
- package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +60 -60
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +10 -10
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +116 -116
- package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +3 -3
- package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +57 -57
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +592 -96
- package/dist/types/components/kup-planner/kup-planner-state.d.ts +9 -9
- package/dist/types/components/kup-planner/kup-planner.d.ts +269 -259
- package/dist/types/components/kup-planner/utils/custom-task-list-header.d.ts +8 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +14 -0
- package/dist/types/components/kup-planner/utils/custom-tool-tip.d.ts +2 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +33 -0
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +127 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +27 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +59 -0
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +17 -0
- package/dist/types/components/kup-planner/utils/kup-planner-adapted-types.d.ts +28 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +36 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +33 -0
- package/dist/types/components/kup-planner/utils/kup-planner-time-formatter.d.ts +20 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +5 -0
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +20 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-header.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-table.d.ts +16 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +40 -0
- package/dist/types/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-tooltip/kup-tooltip.d.ts +26 -0
- package/dist/types/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.d.ts +16 -0
- package/dist/types/components/kup-probe/kup-probe.d.ts +70 -70
- package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +7 -7
- package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +65 -65
- package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +13 -13
- package/dist/types/components/kup-qlik/kup-qlik.d.ts +96 -96
- package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +6 -6
- package/dist/types/components/kup-radio/kup-radio.d.ts +75 -75
- package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +5 -5
- package/dist/types/components/kup-rating/kup-rating.d.ts +52 -52
- package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +5 -5
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +78 -78
- package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +8 -8
- package/dist/types/components/kup-spinner/kup-spinner.d.ts +75 -75
- package/dist/types/components/kup-state/kup-state.d.ts +1 -1
- package/dist/types/components/kup-state/kup-store.d.ts +2 -2
- package/dist/types/components/kup-state/mock-store.d.ts +5 -5
- package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +6 -6
- package/dist/types/components/kup-switch/kup-switch.d.ts +75 -75
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -6
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +72 -72
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +31 -31
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +258 -258
- package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +8 -8
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +120 -120
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +56 -56
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +15 -15
- package/dist/types/components/kup-tree/kup-tree-state.d.ts +9 -9
- package/dist/types/components/kup-tree/kup-tree.d.ts +351 -351
- package/dist/types/components.d.ts +637 -4
- package/dist/types/f-components/f-button/f-button-declarations.d.ts +24 -24
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +117 -117
- package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +9 -9
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +12 -12
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +14 -14
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +12 -12
- package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +10 -10
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +11 -11
- package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +4 -4
- package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +8 -8
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +38 -38
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +3 -3
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +88 -88
- package/dist/types/managers/kup-data/kup-data.d.ts +76 -76
- package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -19
- package/dist/types/managers/kup-dates/kup-dates.d.ts +217 -192
- package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +18 -18
- package/dist/types/managers/kup-debug/kup-debug.d.ts +87 -87
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +19 -19
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +53 -53
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +37 -37
- package/dist/types/managers/kup-interact/kup-interact.d.ts +95 -95
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +133 -133
- package/dist/types/managers/kup-language/kup-language.d.ts +44 -44
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +63 -63
- package/dist/types/managers/kup-manager/kup-manager.d.ts +67 -67
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +16 -16
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +1 -1
- package/dist/types/managers/kup-math/kup-math.d.ts +132 -132
- package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +4 -4
- package/dist/types/managers/kup-objects/kup-objects.d.ts +201 -201
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +16 -16
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +55 -55
- package/dist/types/managers/kup-search/kup-search-declarations.d.ts +1 -1
- package/dist/types/managers/kup-search/kup-search.d.ts +13 -13
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +99 -99
- package/dist/types/managers/kup-theme/kup-theme.d.ts +119 -119
- package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +3 -3
- package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +32 -32
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +4 -4
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +43 -43
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/dist/types/types/GenericTypes.d.ts +74 -74
- package/dist/types/utils/filters/filters-column-menu.d.ts +86 -86
- package/dist/types/utils/filters/filters-declarations.d.ts +13 -13
- package/dist/types/utils/filters/filters-rows.d.ts +17 -17
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/filters/filters.d.ts +62 -62
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +14 -14
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +126 -126
- package/package.json +12 -16
- package/dist/cjs/f-button-9ccadd52.js +0 -105
- package/dist/cjs/f-cell-3130506f.js +0 -670
- package/dist/cjs/f-checkbox-9d2635d9.js +0 -29
- package/dist/cjs/f-chip-beb7af58.js +0 -133
- package/dist/cjs/f-image-66a3c3c1.js +0 -115
- package/dist/cjs/f-paginator-utils-c475e07f.js +0 -1576
- package/dist/cjs/f-text-field-c74856ff.js +0 -216
- package/dist/esm/f-button-0bce6587.js +0 -103
- package/dist/esm/f-cell-88d375e1.js +0 -664
- package/dist/esm/f-checkbox-31219c42.js +0 -27
- package/dist/esm/f-chip-ef0d4130.js +0 -131
- package/dist/esm/f-image-727453df.js +0 -113
- package/dist/esm/f-paginator-utils-4524e41c.js +0 -1563
- package/dist/esm/f-text-field-7b4d622c.js +0 -214
- package/dist/ketchup/p-042e1ed0.entry.js +0 -1
- package/dist/ketchup/p-0dc763af.entry.js +0 -1
- package/dist/ketchup/p-1ae879af.entry.js +0 -1
- package/dist/ketchup/p-1db0c862.entry.js +0 -1
- package/dist/ketchup/p-20458088.js +0 -30
- package/dist/ketchup/p-20c1a69f.entry.js +0 -1
- package/dist/ketchup/p-267dd24a.entry.js +0 -9
- package/dist/ketchup/p-2849af6f.js +0 -1
- package/dist/ketchup/p-30938d5a.entry.js +0 -1
- package/dist/ketchup/p-4067c71b.js +0 -2
- package/dist/ketchup/p-61f71872.entry.js +0 -1
- package/dist/ketchup/p-6b33f5de.entry.js +0 -1
- package/dist/ketchup/p-7f64b612.entry.js +0 -1
- package/dist/ketchup/p-90db42e6.entry.js +0 -1
- package/dist/ketchup/p-9cc1c76b.entry.js +0 -1
- package/dist/ketchup/p-9d3d8690.js +0 -1
- package/dist/ketchup/p-b4ba27da.entry.js +0 -1
- package/dist/ketchup/p-c046fd1c.entry.js +0 -1
- package/dist/ketchup/p-c120043a.entry.js +0 -1
- package/dist/ketchup/p-d520d757.entry.js +0 -1
- package/dist/ketchup/p-e9bc0749.entry.js +0 -1
- package/dist/ketchup/p-edd88921.entry.js +0 -1
- package/dist/ketchup/p-f67ee60f.entry.js +0 -25
- package/dist/ketchup/p-f6844304.entry.js +0 -1
- package/dist/ketchup/p-f8213d22.entry.js +0 -1
- /package/dist/ketchup/{p-cd2af1a6.js → p-b3577066.js} +0 -0
- /package/dist/ketchup/{p-b00f3575.js → p-c634eb82.js} +0 -0
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
5
|
+
const index = require('./index-8f2f4159.js');
|
|
6
|
+
const kupManager = require('./kup-manager-c63f4fb9.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
+
require('./kup-dates-0e59b05d.js');
|
|
8
9
|
|
|
9
10
|
/*! *****************************************************************************
|
|
10
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -93963,1284 +93964,1284 @@ use(installLabelLayout);
|
|
|
93963
93964
|
*/
|
|
93964
93965
|
var KupEchartProps;
|
|
93965
93966
|
(function (KupEchartProps) {
|
|
93966
|
-
|
|
93967
|
-
|
|
93968
|
-
|
|
93969
|
-
|
|
93970
|
-
|
|
93971
|
-
|
|
93972
|
-
|
|
93973
|
-
|
|
93974
|
-
|
|
93975
|
-
|
|
93976
|
-
|
|
93977
|
-
|
|
93978
|
-
|
|
93979
|
-
|
|
93967
|
+
KupEchartProps["axis"] = "Sets the axis of the chart.";
|
|
93968
|
+
KupEchartProps["chartTitle"] = "Title of the graph.";
|
|
93969
|
+
KupEchartProps["colors"] = "Overrides theme's colors.";
|
|
93970
|
+
KupEchartProps["consistencyCheck"] = "When true, performs checks in order to properly initialize props which could be missing (i.e.: axis). For performances purposes, this prop will run only once when the component is initially created.";
|
|
93971
|
+
KupEchartProps["customStyle"] = "Custom style of the component.";
|
|
93972
|
+
KupEchartProps["data"] = "The actual data of the chart.";
|
|
93973
|
+
KupEchartProps["legend"] = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.";
|
|
93974
|
+
KupEchartProps["map"] = "Choose which map you want to view, supported values: \"europe\", \"africa\", \"asia\", \"oceania\", \"america\" and \"world\". It's possible to supply a custom JSON too.";
|
|
93975
|
+
KupEchartProps["series"] = "The data series to be displayed. They must be of the same type.";
|
|
93976
|
+
KupEchartProps["sizeX"] = "The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.).";
|
|
93977
|
+
KupEchartProps["sizeY"] = "The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.).";
|
|
93978
|
+
KupEchartProps["types"] = "The type of the chart. Supported formats: Line, Pie, Map, Scatter.";
|
|
93979
|
+
KupEchartProps["xAxis"] = "Customization options for the x Axis.";
|
|
93980
|
+
KupEchartProps["yAxis"] = "Customization options for the y Axis.";
|
|
93980
93981
|
})(KupEchartProps || (KupEchartProps = {}));
|
|
93981
93982
|
var KupEchartLegendPlacement;
|
|
93982
93983
|
(function (KupEchartLegendPlacement) {
|
|
93983
|
-
|
|
93984
|
-
|
|
93985
|
-
|
|
93986
|
-
|
|
93987
|
-
|
|
93984
|
+
KupEchartLegendPlacement["BOTTOM"] = "bottom";
|
|
93985
|
+
KupEchartLegendPlacement["LEFT"] = "left";
|
|
93986
|
+
KupEchartLegendPlacement["HIDDEN"] = "hidden";
|
|
93987
|
+
KupEchartLegendPlacement["RIGHT"] = "right";
|
|
93988
|
+
KupEchartLegendPlacement["TOP"] = "top";
|
|
93988
93989
|
})(KupEchartLegendPlacement || (KupEchartLegendPlacement = {}));
|
|
93989
93990
|
var KupEchartMaps;
|
|
93990
93991
|
(function (KupEchartMaps) {
|
|
93991
|
-
|
|
93992
|
-
|
|
93993
|
-
|
|
93994
|
-
|
|
93995
|
-
|
|
93996
|
-
|
|
93997
|
-
|
|
93992
|
+
KupEchartMaps["AFRICA"] = "africa";
|
|
93993
|
+
KupEchartMaps["AMERICA"] = "america";
|
|
93994
|
+
KupEchartMaps["ASIA"] = "asia";
|
|
93995
|
+
KupEchartMaps["EUROPE"] = "europe";
|
|
93996
|
+
KupEchartMaps["ITALY"] = "italy";
|
|
93997
|
+
KupEchartMaps["OCEANIA"] = "oceania";
|
|
93998
|
+
KupEchartMaps["WORLD"] = "world";
|
|
93998
93999
|
})(KupEchartMaps || (KupEchartMaps = {}));
|
|
93999
94000
|
var KupEchartTypes;
|
|
94000
94001
|
(function (KupEchartTypes) {
|
|
94001
|
-
|
|
94002
|
-
|
|
94003
|
-
|
|
94004
|
-
|
|
94005
|
-
|
|
94006
|
-
|
|
94007
|
-
|
|
94008
|
-
|
|
94009
|
-
|
|
94010
|
-
|
|
94011
|
-
|
|
94012
|
-
|
|
94013
|
-
|
|
94014
|
-
|
|
94002
|
+
KupEchartTypes["AREA"] = "Area";
|
|
94003
|
+
KupEchartTypes["BAR"] = "Bar";
|
|
94004
|
+
KupEchartTypes["HBAR"] = "HBar";
|
|
94005
|
+
KupEchartTypes["GAUSSIAN"] = "Gaussian";
|
|
94006
|
+
KupEchartTypes["LINE"] = "Line";
|
|
94007
|
+
KupEchartTypes["MAP"] = "Map";
|
|
94008
|
+
KupEchartTypes["PIE"] = "Pie";
|
|
94009
|
+
KupEchartTypes["SCATTER"] = "Scatter";
|
|
94010
|
+
KupEchartTypes["FUNNEL"] = "Funnel";
|
|
94011
|
+
KupEchartTypes["RADAR"] = "Radar";
|
|
94012
|
+
KupEchartTypes["BUBBLE"] = "Bubble";
|
|
94013
|
+
KupEchartTypes["SANKEY"] = "Sankey";
|
|
94014
|
+
KupEchartTypes["CANDLE"] = "Candle";
|
|
94015
|
+
KupEchartTypes["CALENDAR"] = "Calendar";
|
|
94015
94016
|
})(KupEchartTypes || (KupEchartTypes = {}));
|
|
94016
94017
|
|
|
94017
94018
|
const kupEchartCss = ":host{display:block;height:var(--kup_echart_height, 100%);min-height:var(--kup_echart_height, 100%);min-width:var(--kup_echart_width, 100%);width:var(--kup_echart_width, 100%)}#kup-component{width:100%;height:100%;position:relative}";
|
|
94018
94019
|
|
|
94019
94020
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
94020
|
-
|
|
94021
|
-
|
|
94022
|
-
|
|
94023
|
-
|
|
94024
|
-
|
|
94021
|
+
if (kind === "a" && !f)
|
|
94022
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
94023
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
94024
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
94025
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
94025
94026
|
};
|
|
94026
94027
|
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
94027
|
-
|
|
94028
|
-
|
|
94029
|
-
|
|
94030
|
-
|
|
94031
|
-
|
|
94032
|
-
|
|
94033
|
-
|
|
94028
|
+
if (kind === "m")
|
|
94029
|
+
throw new TypeError("Private method is not writable");
|
|
94030
|
+
if (kind === "a" && !f)
|
|
94031
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
94032
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
94033
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
94034
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
94034
94035
|
};
|
|
94035
94036
|
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_candleChart, _KupEchart_calendarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
94036
94037
|
const KupEchart = class {
|
|
94037
|
-
|
|
94038
|
-
|
|
94039
|
-
|
|
94040
|
-
|
|
94038
|
+
constructor(hostRef) {
|
|
94039
|
+
index.registerInstance(this, hostRef);
|
|
94040
|
+
this.kupEchartClick = index.createEvent(this, "kup-echart-click", 6);
|
|
94041
|
+
_KupEchart_instances.add(this);
|
|
94042
|
+
/*-------------------------------------------------*/
|
|
94043
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
94044
|
+
/*-------------------------------------------------*/
|
|
94045
|
+
_KupEchart_chartContainer.set(this, void 0);
|
|
94046
|
+
_KupEchart_chartEl.set(this, void 0);
|
|
94047
|
+
_KupEchart_gaussianDatasets.set(this, void 0);
|
|
94048
|
+
_KupEchart_kupManager.set(this, kupManager.kupManagerInstance());
|
|
94049
|
+
_KupEchart_mapObj.set(this, {});
|
|
94050
|
+
_KupEchart_resizeTimeout.set(this, void 0);
|
|
94051
|
+
_KupEchart_sortedDataset.set(this, null);
|
|
94052
|
+
_KupEchart_themeBorder.set(this, null);
|
|
94053
|
+
_KupEchart_themeBackground.set(this, null);
|
|
94054
|
+
_KupEchart_minColorHeatMap.set(this, null);
|
|
94055
|
+
_KupEchart_maxColorHeatMap.set(this, null);
|
|
94056
|
+
_KupEchart_themeFont.set(this, null);
|
|
94057
|
+
_KupEchart_themeText.set(this, null);
|
|
94058
|
+
this.axis = '';
|
|
94059
|
+
this.colors = [];
|
|
94060
|
+
this.consistencyCheck = false;
|
|
94061
|
+
this.chartTitle = null;
|
|
94062
|
+
this.customStyle = '';
|
|
94063
|
+
this.data = null;
|
|
94064
|
+
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
94065
|
+
this.map = null;
|
|
94066
|
+
this.series = [];
|
|
94067
|
+
this.sizeX = '100%';
|
|
94068
|
+
this.sizeY = '100%';
|
|
94069
|
+
this.types = [KupEchartTypes.LINE];
|
|
94070
|
+
this.xAxis = null;
|
|
94071
|
+
this.yAxis = null;
|
|
94072
|
+
}
|
|
94041
94073
|
/*-------------------------------------------------*/
|
|
94042
|
-
/*
|
|
94074
|
+
/* P u b l i c M e t h o d s */
|
|
94043
94075
|
/*-------------------------------------------------*/
|
|
94044
|
-
|
|
94045
|
-
|
|
94046
|
-
|
|
94047
|
-
|
|
94048
|
-
|
|
94049
|
-
|
|
94050
|
-
|
|
94051
|
-
_KupEchart_themeBorder.set(this, null);
|
|
94052
|
-
_KupEchart_themeBackground.set(this, null);
|
|
94053
|
-
_KupEchart_minColorHeatMap.set(this, null);
|
|
94054
|
-
_KupEchart_maxColorHeatMap.set(this, null);
|
|
94055
|
-
_KupEchart_themeFont.set(this, null);
|
|
94056
|
-
_KupEchart_themeText.set(this, null);
|
|
94057
|
-
this.axis = '';
|
|
94058
|
-
this.colors = [];
|
|
94059
|
-
this.consistencyCheck = false;
|
|
94060
|
-
this.chartTitle = null;
|
|
94061
|
-
this.customStyle = '';
|
|
94062
|
-
this.data = null;
|
|
94063
|
-
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
94064
|
-
this.map = null;
|
|
94065
|
-
this.series = [];
|
|
94066
|
-
this.sizeX = '100%';
|
|
94067
|
-
this.sizeY = '100%';
|
|
94068
|
-
this.types = [KupEchartTypes.LINE];
|
|
94069
|
-
this.xAxis = null;
|
|
94070
|
-
this.yAxis = null;
|
|
94071
|
-
}
|
|
94072
|
-
/*-------------------------------------------------*/
|
|
94073
|
-
/* P u b l i c M e t h o d s */
|
|
94074
|
-
/*-------------------------------------------------*/
|
|
94075
|
-
/**
|
|
94076
|
-
* Used to retrieve component's props values.
|
|
94077
|
-
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
94078
|
-
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
94079
|
-
*/
|
|
94080
|
-
async getProps(descriptions) {
|
|
94081
|
-
return kupManager.getProps(this, KupEchartProps, descriptions);
|
|
94082
|
-
}
|
|
94083
|
-
/**
|
|
94084
|
-
* This method is used to trigger a new render of the component.
|
|
94085
|
-
*/
|
|
94086
|
-
async refresh() {
|
|
94087
|
-
index.forceUpdate(this);
|
|
94088
|
-
}
|
|
94089
|
-
/**
|
|
94090
|
-
* This method is invoked by KupManager whenever the component changes size.
|
|
94091
|
-
*/
|
|
94092
|
-
async resizeCallback() {
|
|
94093
|
-
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
94094
|
-
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
94095
|
-
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
94096
|
-
const xMin = this.rootElement.clientWidth - 5;
|
|
94097
|
-
const xMax = this.rootElement.clientWidth + 5;
|
|
94098
|
-
const yMin = this.rootElement.clientHeight - 5;
|
|
94099
|
-
const yMax = this.rootElement.clientHeight + 5;
|
|
94100
|
-
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
94101
|
-
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
94102
|
-
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
94103
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
94104
|
-
}
|
|
94105
|
-
}
|
|
94106
|
-
}, 300), "f");
|
|
94107
|
-
}
|
|
94108
|
-
/**
|
|
94109
|
-
* Sets the props to the component.
|
|
94110
|
-
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
94111
|
-
*/
|
|
94112
|
-
async setProps(props) {
|
|
94113
|
-
kupManager.setProps(this, KupEchartProps, props);
|
|
94114
|
-
}
|
|
94115
|
-
/*-------------------------------------------------*/
|
|
94116
|
-
/* L i f e c y c l e H o o k s */
|
|
94117
|
-
/*-------------------------------------------------*/
|
|
94118
|
-
componentWillLoad() {
|
|
94119
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
94120
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
94121
|
-
if (this.consistencyCheck) {
|
|
94122
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
94123
|
-
}
|
|
94124
|
-
}
|
|
94125
|
-
componentDidLoad() {
|
|
94126
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.observe(this.rootElement);
|
|
94127
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, true);
|
|
94128
|
-
}
|
|
94129
|
-
componentWillRender() {
|
|
94130
|
-
__classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.BACKGROUND], "f");
|
|
94131
|
-
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.BORDER], "f");
|
|
94132
|
-
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
94133
|
-
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.TEXT], "f");
|
|
94134
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
94135
|
-
}
|
|
94136
|
-
componentDidRender() {
|
|
94137
|
-
if (this.data && this.data.columns && this.data.rows) {
|
|
94138
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_initChart).call(this);
|
|
94076
|
+
/**
|
|
94077
|
+
* Used to retrieve component's props values.
|
|
94078
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
94079
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
94080
|
+
*/
|
|
94081
|
+
async getProps(descriptions) {
|
|
94082
|
+
return kupManager.getProps(this, KupEchartProps, descriptions);
|
|
94139
94083
|
}
|
|
94140
|
-
|
|
94141
|
-
|
|
94084
|
+
/**
|
|
94085
|
+
* This method is used to trigger a new render of the component.
|
|
94086
|
+
*/
|
|
94087
|
+
async refresh() {
|
|
94088
|
+
index.forceUpdate(this);
|
|
94142
94089
|
}
|
|
94143
|
-
|
|
94144
|
-
|
|
94145
|
-
|
|
94146
|
-
|
|
94147
|
-
|
|
94148
|
-
|
|
94149
|
-
|
|
94150
|
-
|
|
94151
|
-
|
|
94152
|
-
|
|
94153
|
-
|
|
94154
|
-
|
|
94155
|
-
|
|
94156
|
-
|
|
94157
|
-
|
|
94158
|
-
}
|
|
94159
|
-
|
|
94160
|
-
|
|
94161
|
-
|
|
94162
|
-
|
|
94163
|
-
|
|
94164
|
-
|
|
94165
|
-
|
|
94166
|
-
|
|
94167
|
-
|
|
94168
|
-
|
|
94169
|
-
|
|
94170
|
-
|
|
94171
|
-
|
|
94172
|
-
|
|
94173
|
-
|
|
94174
|
-
|
|
94175
|
-
|
|
94176
|
-
|
|
94177
|
-
break;
|
|
94178
|
-
case KupEchartTypes.MAP:
|
|
94179
|
-
let stringifiedMap = '';
|
|
94180
|
-
if (this.map) {
|
|
94181
|
-
if (this.map.features) {
|
|
94182
|
-
stringifiedMap = JSON.stringify(this.map);
|
|
94090
|
+
/**
|
|
94091
|
+
* This method is invoked by KupManager whenever the component changes size.
|
|
94092
|
+
*/
|
|
94093
|
+
async resizeCallback() {
|
|
94094
|
+
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
94095
|
+
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
94096
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
94097
|
+
const xMin = this.rootElement.clientWidth - 5;
|
|
94098
|
+
const xMax = this.rootElement.clientWidth + 5;
|
|
94099
|
+
const yMin = this.rootElement.clientHeight - 5;
|
|
94100
|
+
const yMax = this.rootElement.clientHeight + 5;
|
|
94101
|
+
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
94102
|
+
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
94103
|
+
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
94104
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
94105
|
+
}
|
|
94106
|
+
}
|
|
94107
|
+
}, 300), "f");
|
|
94108
|
+
}
|
|
94109
|
+
/**
|
|
94110
|
+
* Sets the props to the component.
|
|
94111
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
94112
|
+
*/
|
|
94113
|
+
async setProps(props) {
|
|
94114
|
+
kupManager.setProps(this, KupEchartProps, props);
|
|
94115
|
+
}
|
|
94116
|
+
/*-------------------------------------------------*/
|
|
94117
|
+
/* L i f e c y c l e H o o k s */
|
|
94118
|
+
/*-------------------------------------------------*/
|
|
94119
|
+
componentWillLoad() {
|
|
94120
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
94121
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
94122
|
+
if (this.consistencyCheck) {
|
|
94123
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
94183
94124
|
}
|
|
94184
|
-
|
|
94185
|
-
|
|
94125
|
+
}
|
|
94126
|
+
componentDidLoad() {
|
|
94127
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.observe(this.rootElement);
|
|
94128
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, true);
|
|
94129
|
+
}
|
|
94130
|
+
componentWillRender() {
|
|
94131
|
+
__classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.BACKGROUND], "f");
|
|
94132
|
+
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.BORDER], "f");
|
|
94133
|
+
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
94134
|
+
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.TEXT], "f");
|
|
94135
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
94136
|
+
}
|
|
94137
|
+
componentDidRender() {
|
|
94138
|
+
if (this.data && this.data.columns && this.data.rows) {
|
|
94139
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_initChart).call(this);
|
|
94186
94140
|
}
|
|
94187
94141
|
else {
|
|
94188
|
-
|
|
94142
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Insufficient data.(' + this.data + ')', kupManager.KupDebugCategory.WARNING);
|
|
94189
94143
|
}
|
|
94190
|
-
|
|
94191
|
-
|
|
94192
|
-
|
|
94193
|
-
|
|
94194
|
-
|
|
94195
|
-
|
|
94196
|
-
|
|
94197
|
-
|
|
94198
|
-
case KupEchartTypes.PIE:
|
|
94199
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setPieOptions).call(this);
|
|
94200
|
-
break;
|
|
94201
|
-
case KupEchartTypes.FUNNEL:
|
|
94202
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
|
|
94203
|
-
break;
|
|
94204
|
-
case KupEchartTypes.RADAR:
|
|
94205
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
94206
|
-
break;
|
|
94207
|
-
case KupEchartTypes.BUBBLE:
|
|
94208
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
94209
|
-
break;
|
|
94210
|
-
case KupEchartTypes.SANKEY:
|
|
94211
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
94212
|
-
break;
|
|
94213
|
-
case KupEchartTypes.CANDLE:
|
|
94214
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
94215
|
-
break;
|
|
94216
|
-
case KupEchartTypes.CALENDAR:
|
|
94217
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
94218
|
-
break;
|
|
94219
|
-
default:
|
|
94220
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
94221
|
-
break;
|
|
94222
|
-
}
|
|
94223
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
94224
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
94225
|
-
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94226
|
-
title: e.seriesName,
|
|
94227
|
-
})[0];
|
|
94228
|
-
let row = null;
|
|
94229
|
-
if (e.seriesType === 'map') {
|
|
94230
|
-
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
94231
|
-
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
94232
|
-
})[0];
|
|
94144
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, true);
|
|
94145
|
+
}
|
|
94146
|
+
render() {
|
|
94147
|
+
const style = {
|
|
94148
|
+
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
94149
|
+
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
94150
|
+
};
|
|
94151
|
+
return (index.h(index.Host, { style: style }, index.h("style", null, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { id: GenericVariables.componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
94233
94152
|
}
|
|
94234
|
-
|
|
94235
|
-
|
|
94153
|
+
disconnectedCallback() {
|
|
94154
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.unregister(this);
|
|
94155
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.unobserve(this.rootElement);
|
|
94236
94156
|
}
|
|
94237
|
-
|
|
94238
|
-
|
|
94157
|
+
static get assetsDirs() { return ["assets/maps"]; }
|
|
94158
|
+
get rootElement() { return index.getElement(this); }
|
|
94159
|
+
};
|
|
94160
|
+
_KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _KupEchart_gaussianDatasets = new WeakMap(), _KupEchart_kupManager = new WeakMap(), _KupEchart_mapObj = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(), _KupEchart_sortedDataset = new WeakMap(), _KupEchart_themeBorder = new WeakMap(), _KupEchart_themeBackground = new WeakMap(), _KupEchart_minColorHeatMap = new WeakMap(), _KupEchart_maxColorHeatMap = new WeakMap(), _KupEchart_themeFont = new WeakMap(), _KupEchart_themeText = new WeakMap(), _KupEchart_instances = new WeakSet(), _KupEchart_initChart = function _KupEchart_initChart() {
|
|
94161
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
94162
|
+
dispose(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f"));
|
|
94163
|
+
}
|
|
94164
|
+
if (this.types && this.types.length > 0) {
|
|
94165
|
+
__classPrivateFieldSet(this, _KupEchart_chartEl, init$1(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f")), "f");
|
|
94166
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createChart).call(this);
|
|
94167
|
+
}
|
|
94168
|
+
else {
|
|
94169
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, "Can't intialize chart without specifiying at least 1 type.", kupManager.KupDebugCategory.WARNING);
|
|
94170
|
+
}
|
|
94171
|
+
}, _KupEchart_createChart = async function _KupEchart_createChart() {
|
|
94172
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, null, "f");
|
|
94173
|
+
let options = null;
|
|
94174
|
+
const firstType = this.types[0];
|
|
94175
|
+
switch (firstType) {
|
|
94176
|
+
case KupEchartTypes.GAUSSIAN:
|
|
94177
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setGaussianOptions).call(this);
|
|
94178
|
+
break;
|
|
94179
|
+
case KupEchartTypes.MAP:
|
|
94180
|
+
let stringifiedMap = '';
|
|
94181
|
+
if (this.map) {
|
|
94182
|
+
if (this.map.features) {
|
|
94183
|
+
stringifiedMap = JSON.stringify(this.map);
|
|
94184
|
+
}
|
|
94185
|
+
else if (Object.values(KupEchartMaps).includes(this.map)) {
|
|
94186
|
+
stringifiedMap = await (await fetch(index.getAssetPath(`./assets/maps/${this.map}.json`))).text();
|
|
94187
|
+
}
|
|
94188
|
+
else {
|
|
94189
|
+
stringifiedMap = this.map;
|
|
94190
|
+
}
|
|
94191
|
+
}
|
|
94192
|
+
if (!stringifiedMap) {
|
|
94193
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, "Couldn't fetch map JSON.", kupManager.KupDebugCategory.WARNING);
|
|
94194
|
+
return;
|
|
94195
|
+
}
|
|
94196
|
+
registerMap$1(this.rootElement.id ? this.rootElement.id : '', stringifiedMap);
|
|
94197
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setMapOptions).call(this, stringifiedMap);
|
|
94198
|
+
break;
|
|
94199
|
+
case KupEchartTypes.PIE:
|
|
94200
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setPieOptions).call(this);
|
|
94201
|
+
break;
|
|
94202
|
+
case KupEchartTypes.FUNNEL:
|
|
94203
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
|
|
94204
|
+
break;
|
|
94205
|
+
case KupEchartTypes.RADAR:
|
|
94206
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
94207
|
+
break;
|
|
94208
|
+
case KupEchartTypes.BUBBLE:
|
|
94209
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
94210
|
+
break;
|
|
94211
|
+
case KupEchartTypes.SANKEY:
|
|
94212
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
94213
|
+
break;
|
|
94214
|
+
case KupEchartTypes.CANDLE:
|
|
94215
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
94216
|
+
break;
|
|
94217
|
+
case KupEchartTypes.CALENDAR:
|
|
94218
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
94219
|
+
break;
|
|
94220
|
+
default:
|
|
94221
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
94222
|
+
break;
|
|
94239
94223
|
}
|
|
94240
|
-
this.
|
|
94241
|
-
|
|
94242
|
-
|
|
94243
|
-
|
|
94244
|
-
|
|
94245
|
-
|
|
94246
|
-
|
|
94224
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
94225
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
94226
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94227
|
+
title: e.seriesName,
|
|
94228
|
+
})[0];
|
|
94229
|
+
let row = null;
|
|
94230
|
+
if (e.seriesType === 'map') {
|
|
94231
|
+
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
94232
|
+
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
94233
|
+
})[0];
|
|
94234
|
+
}
|
|
94235
|
+
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
94236
|
+
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
94237
|
+
}
|
|
94238
|
+
else if (!Array.isArray(e.data)) {
|
|
94239
|
+
row = this.data.rows[e.dataIndex];
|
|
94240
|
+
}
|
|
94241
|
+
this.kupEchartClick.emit({
|
|
94242
|
+
comp: this,
|
|
94243
|
+
id: this.rootElement.id,
|
|
94244
|
+
column: column,
|
|
94245
|
+
row: row,
|
|
94246
|
+
x: Array.isArray(e.data) ? e.data[0] : e.name,
|
|
94247
|
+
y: Array.isArray(e.data) ? e.data[1] : e.value,
|
|
94248
|
+
});
|
|
94247
94249
|
});
|
|
94248
|
-
});
|
|
94249
94250
|
}, _KupEchart_funnelChart = function _KupEchart_funnelChart() {
|
|
94250
|
-
|
|
94251
|
-
|
|
94252
|
-
|
|
94253
|
-
|
|
94254
|
-
|
|
94255
|
-
|
|
94256
|
-
|
|
94257
|
-
|
|
94258
|
-
|
|
94259
|
-
|
|
94260
|
-
|
|
94261
|
-
|
|
94262
|
-
|
|
94251
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
94252
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94253
|
+
const cellsSum = {};
|
|
94254
|
+
const data = [];
|
|
94255
|
+
let highest = 0;
|
|
94256
|
+
for (let key in y) {
|
|
94257
|
+
for (let j = 0; j < y[key].length; j++) {
|
|
94258
|
+
if (cellsSum[x[j]]) {
|
|
94259
|
+
cellsSum[x[j]] += parseFloat(y[key][j]);
|
|
94260
|
+
}
|
|
94261
|
+
else {
|
|
94262
|
+
cellsSum[x[j]] = parseFloat(y[key][j]);
|
|
94263
|
+
}
|
|
94264
|
+
}
|
|
94263
94265
|
}
|
|
94264
|
-
|
|
94265
|
-
|
|
94266
|
-
|
|
94267
|
-
|
|
94268
|
-
|
|
94266
|
+
for (let key in cellsSum) {
|
|
94267
|
+
const value = cellsSum[key];
|
|
94268
|
+
if (value > highest) {
|
|
94269
|
+
highest = value;
|
|
94270
|
+
}
|
|
94269
94271
|
}
|
|
94270
|
-
|
|
94271
|
-
|
|
94272
|
-
|
|
94273
|
-
|
|
94274
|
-
|
|
94275
|
-
|
|
94276
|
-
});
|
|
94277
|
-
}
|
|
94278
|
-
return {
|
|
94279
|
-
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(cellsSum).length),
|
|
94280
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94281
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94282
|
-
const name = value.data.name;
|
|
94283
|
-
const percentage = value.data
|
|
94284
|
-
.value;
|
|
94285
|
-
return `${name}: <strong>${cellsSum[name]}</strong> (${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(percentage)}%)`;
|
|
94286
|
-
} }),
|
|
94287
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, cellsSum),
|
|
94288
|
-
series: [
|
|
94289
|
-
{
|
|
94290
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94291
|
-
name: this.axis,
|
|
94292
|
-
})[0].title,
|
|
94293
|
-
type: 'funnel',
|
|
94294
|
-
gap: 2,
|
|
94295
|
-
label: {
|
|
94296
|
-
show: true,
|
|
94297
|
-
position: 'right',
|
|
94298
|
-
},
|
|
94299
|
-
labelLine: {
|
|
94300
|
-
lineStyle: {
|
|
94301
|
-
width: 1,
|
|
94302
|
-
type: 'solid',
|
|
94303
|
-
},
|
|
94304
|
-
},
|
|
94305
|
-
itemStyle: {
|
|
94306
|
-
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94307
|
-
borderWidth: 1,
|
|
94308
|
-
},
|
|
94309
|
-
left: '10%',
|
|
94310
|
-
right: '10%',
|
|
94311
|
-
width: '80%',
|
|
94312
|
-
data,
|
|
94313
|
-
},
|
|
94314
|
-
],
|
|
94315
|
-
};
|
|
94316
|
-
}, _KupEchart_radarChart = function _KupEchart_radarChart() {
|
|
94317
|
-
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
94318
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94319
|
-
const data = [], transposedData = [], transposedIndicator = [];
|
|
94320
|
-
for (const [_index, values] of x.entries()) {
|
|
94321
|
-
data.push({ name: values, value: [] });
|
|
94322
|
-
}
|
|
94323
|
-
for (const key in y) {
|
|
94324
|
-
transposedData.push({
|
|
94325
|
-
name: key,
|
|
94326
|
-
value: y[key],
|
|
94327
|
-
});
|
|
94328
|
-
for (const values in y[key]) {
|
|
94329
|
-
data[values].value.push(y[key][values]);
|
|
94330
|
-
}
|
|
94331
|
-
}
|
|
94332
|
-
for (let index = 0; index < data.length; index++) {
|
|
94333
|
-
const dataEl = data[index];
|
|
94334
|
-
const key = dataEl.name;
|
|
94335
|
-
const foundEl = transposedIndicator.find((d) => d.name === key);
|
|
94336
|
-
const max = Math.floor(Math.max(...dataEl.value) * 1.05);
|
|
94337
|
-
if (!foundEl) {
|
|
94338
|
-
transposedIndicator.push({
|
|
94339
|
-
name: key,
|
|
94340
|
-
max,
|
|
94341
|
-
});
|
|
94272
|
+
for (const key in cellsSum) {
|
|
94273
|
+
const value = cellsSum[key];
|
|
94274
|
+
data.push({
|
|
94275
|
+
name: key,
|
|
94276
|
+
value: ((100 * value) / highest).toFixed(2),
|
|
94277
|
+
});
|
|
94342
94278
|
}
|
|
94343
|
-
|
|
94344
|
-
|
|
94279
|
+
return {
|
|
94280
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(cellsSum).length),
|
|
94281
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94282
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94283
|
+
const name = value.data.name;
|
|
94284
|
+
const percentage = value.data
|
|
94285
|
+
.value;
|
|
94286
|
+
return `${name}: <strong>${cellsSum[name]}</strong> (${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(percentage)}%)`;
|
|
94287
|
+
} }),
|
|
94288
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, cellsSum),
|
|
94289
|
+
series: [
|
|
94290
|
+
{
|
|
94291
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94292
|
+
name: this.axis,
|
|
94293
|
+
})[0].title,
|
|
94294
|
+
type: 'funnel',
|
|
94295
|
+
gap: 2,
|
|
94296
|
+
label: {
|
|
94297
|
+
show: true,
|
|
94298
|
+
position: 'right',
|
|
94299
|
+
},
|
|
94300
|
+
labelLine: {
|
|
94301
|
+
lineStyle: {
|
|
94302
|
+
width: 1,
|
|
94303
|
+
type: 'solid',
|
|
94304
|
+
},
|
|
94305
|
+
},
|
|
94306
|
+
itemStyle: {
|
|
94307
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94308
|
+
borderWidth: 1,
|
|
94309
|
+
},
|
|
94310
|
+
left: '10%',
|
|
94311
|
+
right: '10%',
|
|
94312
|
+
width: '80%',
|
|
94313
|
+
data,
|
|
94314
|
+
},
|
|
94315
|
+
],
|
|
94316
|
+
};
|
|
94317
|
+
}, _KupEchart_radarChart = function _KupEchart_radarChart() {
|
|
94318
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
94319
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94320
|
+
const data = [], transposedData = [], transposedIndicator = [];
|
|
94321
|
+
for (const [_index, values] of x.entries()) {
|
|
94322
|
+
data.push({ name: values, value: [] });
|
|
94323
|
+
}
|
|
94324
|
+
for (const key in y) {
|
|
94325
|
+
transposedData.push({
|
|
94326
|
+
name: key,
|
|
94327
|
+
value: y[key],
|
|
94328
|
+
});
|
|
94329
|
+
for (const values in y[key]) {
|
|
94330
|
+
data[values].value.push(y[key][values]);
|
|
94331
|
+
}
|
|
94332
|
+
}
|
|
94333
|
+
for (let index = 0; index < data.length; index++) {
|
|
94334
|
+
const dataEl = data[index];
|
|
94335
|
+
const key = dataEl.name;
|
|
94336
|
+
const foundEl = transposedIndicator.find((d) => d.name === key);
|
|
94337
|
+
const max = Math.floor(Math.max(...dataEl.value) * 1.05);
|
|
94338
|
+
if (!foundEl) {
|
|
94339
|
+
transposedIndicator.push({
|
|
94340
|
+
name: key,
|
|
94341
|
+
max,
|
|
94342
|
+
});
|
|
94343
|
+
}
|
|
94344
|
+
else {
|
|
94345
|
+
foundEl.max = foundEl.max > max ? foundEl.max : max;
|
|
94346
|
+
}
|
|
94345
94347
|
}
|
|
94346
|
-
|
|
94347
|
-
|
|
94348
|
-
|
|
94349
|
-
|
|
94350
|
-
|
|
94351
|
-
|
|
94352
|
-
indicator: transposedIndicator,
|
|
94353
|
-
},
|
|
94354
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94355
|
-
series: [
|
|
94356
|
-
{
|
|
94357
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94358
|
-
name: this.axis,
|
|
94359
|
-
})[0].title,
|
|
94360
|
-
type: 'radar',
|
|
94361
|
-
data: transposedData,
|
|
94362
|
-
},
|
|
94363
|
-
],
|
|
94364
|
-
};
|
|
94365
|
-
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
94366
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
94367
|
-
let year = [];
|
|
94368
|
-
const content = this.data.columns.map((data) => data.title);
|
|
94369
|
-
if (content && content.length) {
|
|
94370
|
-
for (let i = 0; i < y[content[0]].length; i++) {
|
|
94371
|
-
const arr = [];
|
|
94372
|
-
for (let j = 0; j < content.length; j++) {
|
|
94373
|
-
arr.push(y[content[j]][i]);
|
|
94374
|
-
// last value always be a year
|
|
94375
|
-
if (j === content.length - 1) {
|
|
94376
|
-
year.push(y[content[j]][i]);
|
|
94377
|
-
}
|
|
94378
|
-
}
|
|
94379
|
-
temp.push(arr);
|
|
94380
|
-
}
|
|
94381
|
-
}
|
|
94382
|
-
year = [...new Set(year)];
|
|
94383
|
-
year.forEach((e, i) => {
|
|
94384
|
-
let k = [];
|
|
94385
|
-
temp.forEach((data) => {
|
|
94386
|
-
if (data.includes(e))
|
|
94387
|
-
k.push(data);
|
|
94388
|
-
});
|
|
94389
|
-
data.push(k);
|
|
94390
|
-
legend[e] = i;
|
|
94391
|
-
});
|
|
94392
|
-
data.forEach((el, i) => {
|
|
94393
|
-
series.push({
|
|
94394
|
-
name: year[i],
|
|
94395
|
-
data: el,
|
|
94396
|
-
type: 'scatter',
|
|
94397
|
-
symbolSize: function (data) {
|
|
94398
|
-
return Math.sqrt(data[2]) / 5e2;
|
|
94399
|
-
},
|
|
94400
|
-
emphasis: {
|
|
94401
|
-
focus: 'series',
|
|
94402
|
-
label: {
|
|
94403
|
-
show: true,
|
|
94404
|
-
formatter: function (param) {
|
|
94405
|
-
return param.data[3];
|
|
94406
|
-
},
|
|
94407
|
-
position: 'top',
|
|
94348
|
+
return {
|
|
94349
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
94350
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94351
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
94352
|
+
radar: {
|
|
94353
|
+
indicator: transposedIndicator,
|
|
94408
94354
|
},
|
|
94409
|
-
|
|
94410
|
-
|
|
94411
|
-
|
|
94412
|
-
|
|
94413
|
-
|
|
94414
|
-
|
|
94415
|
-
|
|
94416
|
-
|
|
94417
|
-
|
|
94418
|
-
|
|
94355
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94356
|
+
series: [
|
|
94357
|
+
{
|
|
94358
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94359
|
+
name: this.axis,
|
|
94360
|
+
})[0].title,
|
|
94361
|
+
type: 'radar',
|
|
94362
|
+
data: transposedData,
|
|
94363
|
+
},
|
|
94364
|
+
],
|
|
94365
|
+
};
|
|
94366
|
+
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
94367
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
94368
|
+
let year = [];
|
|
94369
|
+
const content = this.data.columns.map((data) => data.title);
|
|
94370
|
+
if (content && content.length) {
|
|
94371
|
+
for (let i = 0; i < y[content[0]].length; i++) {
|
|
94372
|
+
const arr = [];
|
|
94373
|
+
for (let j = 0; j < content.length; j++) {
|
|
94374
|
+
arr.push(y[content[j]][i]);
|
|
94375
|
+
// last value always be a year
|
|
94376
|
+
if (j === content.length - 1) {
|
|
94377
|
+
year.push(y[content[j]][i]);
|
|
94378
|
+
}
|
|
94379
|
+
}
|
|
94380
|
+
temp.push(arr);
|
|
94381
|
+
}
|
|
94382
|
+
}
|
|
94383
|
+
year = [...new Set(year)];
|
|
94384
|
+
year.forEach((e, i) => {
|
|
94385
|
+
let k = [];
|
|
94386
|
+
temp.forEach((data) => {
|
|
94387
|
+
if (data.includes(e))
|
|
94388
|
+
k.push(data);
|
|
94419
94389
|
});
|
|
94420
|
-
|
|
94421
|
-
|
|
94422
|
-
|
|
94390
|
+
data.push(k);
|
|
94391
|
+
legend[e] = i;
|
|
94392
|
+
});
|
|
94393
|
+
data.forEach((el, i) => {
|
|
94394
|
+
series.push({
|
|
94395
|
+
name: year[i],
|
|
94396
|
+
data: el,
|
|
94397
|
+
type: 'scatter',
|
|
94398
|
+
symbolSize: function (data) {
|
|
94399
|
+
return Math.sqrt(data[2]) / 5e2;
|
|
94400
|
+
},
|
|
94401
|
+
emphasis: {
|
|
94402
|
+
focus: 'series',
|
|
94403
|
+
label: {
|
|
94404
|
+
show: true,
|
|
94405
|
+
formatter: function (param) {
|
|
94406
|
+
return param.data[3];
|
|
94407
|
+
},
|
|
94408
|
+
position: 'top',
|
|
94409
|
+
},
|
|
94410
|
+
},
|
|
94423
94411
|
});
|
|
94424
|
-
|
|
94425
|
-
|
|
94426
|
-
|
|
94427
|
-
|
|
94428
|
-
|
|
94429
|
-
|
|
94412
|
+
});
|
|
94413
|
+
return {
|
|
94414
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94415
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94416
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94417
|
+
const name = value.data;
|
|
94418
|
+
const data = content.map((e, i) => {
|
|
94419
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
94420
|
+
});
|
|
94421
|
+
let showContent = '';
|
|
94422
|
+
data.forEach((r) => {
|
|
94423
|
+
showContent += r;
|
|
94424
|
+
});
|
|
94425
|
+
return `<ul>${showContent}</ul> `;
|
|
94426
|
+
} }),
|
|
94427
|
+
xAxis: {
|
|
94428
|
+
splitLine: {
|
|
94429
|
+
lineStyle: {
|
|
94430
|
+
type: 'dashed',
|
|
94431
|
+
},
|
|
94432
|
+
},
|
|
94430
94433
|
},
|
|
94431
|
-
|
|
94432
|
-
|
|
94433
|
-
|
|
94434
|
-
|
|
94435
|
-
|
|
94436
|
-
|
|
94434
|
+
yAxis: {
|
|
94435
|
+
splitLine: {
|
|
94436
|
+
lineStyle: {
|
|
94437
|
+
type: 'dashed',
|
|
94438
|
+
},
|
|
94439
|
+
},
|
|
94440
|
+
scale: true,
|
|
94437
94441
|
},
|
|
94438
|
-
|
|
94439
|
-
|
|
94440
|
-
}
|
|
94441
|
-
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
94442
|
-
series: series,
|
|
94443
|
-
};
|
|
94442
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
94443
|
+
series: series,
|
|
94444
|
+
};
|
|
94444
94445
|
}, _KupEchart_sankeyChart = function _KupEchart_sankeyChart() {
|
|
94445
|
-
|
|
94446
|
-
|
|
94447
|
-
|
|
94448
|
-
|
|
94449
|
-
|
|
94450
|
-
|
|
94451
|
-
|
|
94452
|
-
|
|
94453
|
-
|
|
94454
|
-
|
|
94455
|
-
|
|
94456
|
-
|
|
94457
|
-
|
|
94458
|
-
|
|
94459
|
-
|
|
94460
|
-
|
|
94461
|
-
|
|
94462
|
-
|
|
94463
|
-
|
|
94464
|
-
|
|
94465
|
-
|
|
94466
|
-
|
|
94467
|
-
|
|
94468
|
-
|
|
94469
|
-
|
|
94470
|
-
|
|
94471
|
-
|
|
94472
|
-
|
|
94473
|
-
|
|
94474
|
-
|
|
94475
|
-
|
|
94476
|
-
|
|
94477
|
-
|
|
94478
|
-
|
|
94479
|
-
|
|
94446
|
+
const links = [], y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), keys = Object.keys(y);
|
|
94447
|
+
// Assuming all arrays in the question object have the same length
|
|
94448
|
+
const arrayLength = y[keys[0]].length;
|
|
94449
|
+
for (let i = 0; i < arrayLength; i++) {
|
|
94450
|
+
const entry = {};
|
|
94451
|
+
entry['source'] = y[keys[0]][i];
|
|
94452
|
+
entry['target'] = y[keys[1]][i];
|
|
94453
|
+
entry['value'] = parseInt(y[keys[2]][i]);
|
|
94454
|
+
links.push(entry);
|
|
94455
|
+
}
|
|
94456
|
+
const data = Array.from(new Set([
|
|
94457
|
+
...links.map((link) => link.source),
|
|
94458
|
+
...links.map((link) => link.target),
|
|
94459
|
+
])).map((name) => ({ name }));
|
|
94460
|
+
const legend = {};
|
|
94461
|
+
data.forEach((e, i) => {
|
|
94462
|
+
legend[e.name] = i;
|
|
94463
|
+
});
|
|
94464
|
+
return {
|
|
94465
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94466
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94467
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
94468
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94469
|
+
series: {
|
|
94470
|
+
type: 'sankey',
|
|
94471
|
+
layout: 'none',
|
|
94472
|
+
emphasis: {
|
|
94473
|
+
focus: 'adjacency',
|
|
94474
|
+
},
|
|
94475
|
+
data,
|
|
94476
|
+
links,
|
|
94477
|
+
right: '10%',
|
|
94478
|
+
left: '10%',
|
|
94479
|
+
},
|
|
94480
|
+
};
|
|
94480
94481
|
}, _KupEchart_candleChart = function _KupEchart_candleChart() {
|
|
94481
|
-
|
|
94482
|
-
|
|
94483
|
-
|
|
94484
|
-
|
|
94485
|
-
|
|
94486
|
-
|
|
94487
|
-
|
|
94488
|
-
|
|
94489
|
-
|
|
94490
|
-
|
|
94491
|
-
|
|
94492
|
-
|
|
94493
|
-
|
|
94494
|
-
|
|
94495
|
-
|
|
94496
|
-
|
|
94497
|
-
|
|
94498
|
-
|
|
94499
|
-
|
|
94500
|
-
|
|
94501
|
-
|
|
94502
|
-
|
|
94503
|
-
|
|
94504
|
-
|
|
94505
|
-
|
|
94506
|
-
|
|
94507
|
-
|
|
94508
|
-
|
|
94509
|
-
|
|
94510
|
-
|
|
94511
|
-
|
|
94512
|
-
|
|
94513
|
-
|
|
94514
|
-
|
|
94515
|
-
|
|
94516
|
-
|
|
94517
|
-
|
|
94518
|
-
|
|
94519
|
-
|
|
94520
|
-
|
|
94521
|
-
|
|
94522
|
-
|
|
94523
|
-
|
|
94524
|
-
|
|
94525
|
-
|
|
94526
|
-
|
|
94527
|
-
|
|
94528
|
-
|
|
94529
|
-
|
|
94482
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), answer = [], itemStyle = {
|
|
94483
|
+
color: 'red',
|
|
94484
|
+
borderColor: 'red',
|
|
94485
|
+
color0: 'green',
|
|
94486
|
+
borderColor0: 'green',
|
|
94487
|
+
};
|
|
94488
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
94489
|
+
get: function (target, prop) {
|
|
94490
|
+
// Convert the property name to lowercase
|
|
94491
|
+
const lowercaseProp = prop.toLowerCase();
|
|
94492
|
+
// Search for the property case-insensitively
|
|
94493
|
+
for (let key in target) {
|
|
94494
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
94495
|
+
return target[key];
|
|
94496
|
+
}
|
|
94497
|
+
}
|
|
94498
|
+
// Property not found, return undefined
|
|
94499
|
+
return undefined;
|
|
94500
|
+
},
|
|
94501
|
+
});
|
|
94502
|
+
const date = caseInsensitiveObj['date'];
|
|
94503
|
+
for (let i = 0; i < caseInsensitiveObj['Open'].length; i++) {
|
|
94504
|
+
answer.push([
|
|
94505
|
+
parseInt(caseInsensitiveObj['close'][i]),
|
|
94506
|
+
parseInt(caseInsensitiveObj['Open'][i]),
|
|
94507
|
+
parseInt(caseInsensitiveObj['Low'][i]),
|
|
94508
|
+
parseInt(caseInsensitiveObj['High'][i]),
|
|
94509
|
+
]);
|
|
94510
|
+
}
|
|
94511
|
+
let legend = {};
|
|
94512
|
+
date.forEach((e, i) => {
|
|
94513
|
+
legend[e] = i;
|
|
94514
|
+
});
|
|
94515
|
+
return {
|
|
94516
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94517
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94518
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94519
|
+
xAxis: {
|
|
94520
|
+
data: date,
|
|
94521
|
+
},
|
|
94522
|
+
yAxis: {},
|
|
94523
|
+
series: [
|
|
94524
|
+
{
|
|
94525
|
+
type: 'candlestick',
|
|
94526
|
+
data: answer,
|
|
94527
|
+
itemStyle: itemStyle,
|
|
94528
|
+
},
|
|
94529
|
+
],
|
|
94530
|
+
};
|
|
94530
94531
|
}, _KupEchart_calendarChart = function _KupEchart_calendarChart() {
|
|
94531
|
-
|
|
94532
|
-
|
|
94533
|
-
|
|
94534
|
-
|
|
94535
|
-
|
|
94536
|
-
|
|
94537
|
-
|
|
94538
|
-
|
|
94539
|
-
|
|
94540
|
-
|
|
94541
|
-
|
|
94542
|
-
|
|
94543
|
-
|
|
94544
|
-
},
|
|
94545
|
-
});
|
|
94546
|
-
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
94547
|
-
date.forEach((element, i) => {
|
|
94548
|
-
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
94549
|
-
});
|
|
94550
|
-
return {
|
|
94551
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94552
|
-
const name = value.data;
|
|
94553
|
-
const data = keys.map((e, i) => {
|
|
94554
|
-
return `<li> ${e}: ${name[i]} </li>`;
|
|
94555
|
-
});
|
|
94556
|
-
let showContent = '';
|
|
94557
|
-
data.forEach((r) => {
|
|
94558
|
-
showContent += r;
|
|
94559
|
-
});
|
|
94560
|
-
return `<ul>${showContent}</ul> `;
|
|
94561
|
-
} }),
|
|
94562
|
-
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
94563
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94564
|
-
visualMap: {
|
|
94565
|
-
show: false,
|
|
94566
|
-
min: 0,
|
|
94567
|
-
max: 10000,
|
|
94568
|
-
},
|
|
94569
|
-
calendar: {
|
|
94570
|
-
range: year,
|
|
94571
|
-
itemStyle: {
|
|
94572
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94573
|
-
},
|
|
94574
|
-
dayLabel: {
|
|
94575
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94576
|
-
},
|
|
94577
|
-
yearLabel: {
|
|
94578
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94579
|
-
},
|
|
94580
|
-
monthLabel: {
|
|
94581
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94582
|
-
},
|
|
94583
|
-
splitLine: {
|
|
94584
|
-
show: true,
|
|
94585
|
-
lineStyle: {
|
|
94586
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94532
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94533
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
94534
|
+
get: function (target, prop) {
|
|
94535
|
+
// Convert the property name to lowercase
|
|
94536
|
+
const lowercaseProp = prop.toLowerCase();
|
|
94537
|
+
// Search for the property case-insensitively
|
|
94538
|
+
for (let key in target) {
|
|
94539
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
94540
|
+
return target[key];
|
|
94541
|
+
}
|
|
94542
|
+
}
|
|
94543
|
+
// Property not found, return undefined
|
|
94544
|
+
return undefined;
|
|
94587
94545
|
},
|
|
94588
|
-
|
|
94589
|
-
|
|
94590
|
-
|
|
94591
|
-
|
|
94592
|
-
|
|
94593
|
-
|
|
94594
|
-
|
|
94595
|
-
|
|
94546
|
+
});
|
|
94547
|
+
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
94548
|
+
date.forEach((element, i) => {
|
|
94549
|
+
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
94550
|
+
});
|
|
94551
|
+
return {
|
|
94552
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94553
|
+
const name = value.data;
|
|
94554
|
+
const data = keys.map((e, i) => {
|
|
94555
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
94556
|
+
});
|
|
94557
|
+
let showContent = '';
|
|
94558
|
+
data.forEach((r) => {
|
|
94559
|
+
showContent += r;
|
|
94560
|
+
});
|
|
94561
|
+
return `<ul>${showContent}</ul> `;
|
|
94562
|
+
} }),
|
|
94563
|
+
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
94564
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94565
|
+
visualMap: {
|
|
94566
|
+
show: false,
|
|
94567
|
+
min: 0,
|
|
94568
|
+
max: 10000,
|
|
94569
|
+
},
|
|
94570
|
+
calendar: {
|
|
94571
|
+
range: year,
|
|
94572
|
+
itemStyle: {
|
|
94573
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94574
|
+
},
|
|
94575
|
+
dayLabel: {
|
|
94576
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94577
|
+
},
|
|
94578
|
+
yearLabel: {
|
|
94579
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94580
|
+
},
|
|
94581
|
+
monthLabel: {
|
|
94582
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94583
|
+
},
|
|
94584
|
+
splitLine: {
|
|
94585
|
+
show: true,
|
|
94586
|
+
lineStyle: {
|
|
94587
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94588
|
+
},
|
|
94589
|
+
},
|
|
94590
|
+
},
|
|
94591
|
+
series: {
|
|
94592
|
+
type: 'heatmap',
|
|
94593
|
+
coordinateSystem: 'calendar',
|
|
94594
|
+
data: answer,
|
|
94595
|
+
},
|
|
94596
|
+
};
|
|
94596
94597
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
94597
|
-
|
|
94598
|
-
|
|
94599
|
-
|
|
94600
|
-
|
|
94601
|
-
|
|
94602
|
-
|
|
94603
|
-
|
|
94604
|
-
|
|
94605
|
-
|
|
94606
|
-
|
|
94607
|
-
|
|
94608
|
-
|
|
94609
|
-
|
|
94610
|
-
|
|
94611
|
-
}
|
|
94612
|
-
}
|
|
94613
|
-
}
|
|
94614
|
-
else {
|
|
94615
|
-
for (let i = 0; i < dataset.rows.length; i++) {
|
|
94616
|
-
const cells = dataset.rows[i].cells;
|
|
94617
|
-
const treatedCells = {};
|
|
94618
|
-
const title = kupManager.getColumnByName(dataset.columns, this.axis).title;
|
|
94619
|
-
treatedCells[title] = cells[this.axis];
|
|
94620
|
-
x.push(treatedCells[title].value);
|
|
94621
|
-
}
|
|
94622
|
-
}
|
|
94623
|
-
return x;
|
|
94624
|
-
}, _KupEchart_createY = function _KupEchart_createY() {
|
|
94625
|
-
const y = {};
|
|
94626
|
-
if (this.series && this.series.length > 0) {
|
|
94627
|
-
for (const row of this.data.rows) {
|
|
94628
|
-
for (const key of Object.keys(row.cells)) {
|
|
94629
|
-
if (key != this.axis) {
|
|
94630
|
-
if (this.series.includes(key)) {
|
|
94631
|
-
const cell = row.cells[key];
|
|
94632
|
-
const value = cell.value;
|
|
94633
|
-
const column = kupManager.getColumnByName(this.data.columns, key);
|
|
94634
|
-
if (column) {
|
|
94635
|
-
const title = column.title;
|
|
94636
|
-
if (!y[title]) {
|
|
94637
|
-
y[title] = [];
|
|
94638
|
-
}
|
|
94639
|
-
y[title].push(value);
|
|
94598
|
+
const x = [];
|
|
94599
|
+
if (!dataset)
|
|
94600
|
+
dataset = this.data;
|
|
94601
|
+
if (!this.axis) {
|
|
94602
|
+
for (let i = 0; i < dataset.rows.length; i++) {
|
|
94603
|
+
const cells = dataset.rows[i].cells;
|
|
94604
|
+
const treatedCells = {};
|
|
94605
|
+
for (const key in cells) {
|
|
94606
|
+
const cell = cells[key];
|
|
94607
|
+
const title = kupManager.getColumnByName(dataset.columns, key).title;
|
|
94608
|
+
treatedCells[title] = cell;
|
|
94609
|
+
}
|
|
94610
|
+
if (treatedCells[0]) {
|
|
94611
|
+
x.push(treatedCells[0].value);
|
|
94640
94612
|
}
|
|
94641
|
-
}
|
|
94642
94613
|
}
|
|
94643
|
-
}
|
|
94644
94614
|
}
|
|
94645
|
-
|
|
94646
|
-
|
|
94647
|
-
|
|
94648
|
-
|
|
94649
|
-
|
|
94650
|
-
|
|
94651
|
-
|
|
94652
|
-
const column = kupManager.getColumnByName(this.data.columns, key);
|
|
94653
|
-
if (column) {
|
|
94654
|
-
const title = column.title;
|
|
94655
|
-
if (!y[title]) {
|
|
94656
|
-
y[title] = [];
|
|
94657
|
-
}
|
|
94658
|
-
y[title].push(value);
|
|
94659
|
-
}
|
|
94615
|
+
else {
|
|
94616
|
+
for (let i = 0; i < dataset.rows.length; i++) {
|
|
94617
|
+
const cells = dataset.rows[i].cells;
|
|
94618
|
+
const treatedCells = {};
|
|
94619
|
+
const title = kupManager.getColumnByName(dataset.columns, this.axis).title;
|
|
94620
|
+
treatedCells[title] = cells[this.axis];
|
|
94621
|
+
x.push(treatedCells[title].value);
|
|
94660
94622
|
}
|
|
94661
|
-
}
|
|
94662
94623
|
}
|
|
94663
|
-
|
|
94664
|
-
|
|
94665
|
-
|
|
94666
|
-
|
|
94667
|
-
|
|
94668
|
-
|
|
94669
|
-
|
|
94670
|
-
|
|
94671
|
-
|
|
94672
|
-
|
|
94673
|
-
|
|
94674
|
-
|
|
94675
|
-
|
|
94676
|
-
|
|
94677
|
-
|
|
94678
|
-
|
|
94679
|
-
|
|
94680
|
-
|
|
94681
|
-
|
|
94682
|
-
|
|
94683
|
-
|
|
94684
|
-
data: data,
|
|
94685
|
-
[this.legend]: 0,
|
|
94686
|
-
textStyle: {
|
|
94687
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94688
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94689
|
-
},
|
|
94690
|
-
};
|
|
94691
|
-
}, _KupEchart_setTitle = function _KupEchart_setTitle() {
|
|
94692
|
-
return {
|
|
94693
|
-
text: this.chartTitle ? this.chartTitle.value : undefined,
|
|
94694
|
-
[this.chartTitle && this.chartTitle.position
|
|
94695
|
-
? this.chartTitle.position
|
|
94696
|
-
: 'left']: 0,
|
|
94697
|
-
textStyle: {
|
|
94698
|
-
color: this.chartTitle && this.chartTitle.color
|
|
94699
|
-
? this.chartTitle.color
|
|
94700
|
-
: 'black',
|
|
94701
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94702
|
-
fontSize: this.chartTitle && this.chartTitle.size
|
|
94703
|
-
? this.chartTitle.size
|
|
94704
|
-
: 16,
|
|
94705
|
-
},
|
|
94706
|
-
};
|
|
94707
|
-
}, _KupEchart_setTooltip = function _KupEchart_setTooltip() {
|
|
94708
|
-
return {
|
|
94709
|
-
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94710
|
-
textStyle: {
|
|
94711
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94712
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94713
|
-
},
|
|
94714
|
-
};
|
|
94715
|
-
}, _KupEchart_setVisualMap = function _KupEchart_setVisualMap(max, min, colors, hasNumericValues) {
|
|
94716
|
-
const opts = {
|
|
94717
|
-
visualMap: {
|
|
94718
|
-
show: false,
|
|
94719
|
-
},
|
|
94720
|
-
};
|
|
94721
|
-
const colorRange = !hasNumericValues
|
|
94722
|
-
? undefined
|
|
94723
|
-
: colors.length > 0
|
|
94724
|
-
? {
|
|
94725
|
-
inRange: { color: colors },
|
|
94726
|
-
min: min,
|
|
94727
|
-
max: max,
|
|
94728
|
-
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
94729
|
-
}
|
|
94730
|
-
: {
|
|
94731
|
-
inRange: {
|
|
94732
|
-
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
94733
|
-
},
|
|
94734
|
-
min: min,
|
|
94735
|
-
max: max,
|
|
94736
|
-
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
94737
|
-
};
|
|
94738
|
-
if (colorRange) {
|
|
94739
|
-
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
94740
|
-
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
94741
|
-
}, min: min, max: max, show: true });
|
|
94742
|
-
}
|
|
94743
|
-
return opts;
|
|
94744
|
-
}, _KupEchart_setMapOptions = function _KupEchart_setMapOptions(map) {
|
|
94745
|
-
const computedColors = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, 3);
|
|
94746
|
-
const mapJson = JSON.parse(map);
|
|
94747
|
-
const isoA2 = [];
|
|
94748
|
-
const names = [];
|
|
94749
|
-
for (let index = 0; index < mapJson.features.length; index++) {
|
|
94750
|
-
const feature = mapJson.features[index];
|
|
94751
|
-
isoA2.push(feature.properties.iso_a2);
|
|
94752
|
-
names.push(feature.properties.name);
|
|
94753
|
-
}
|
|
94754
|
-
const y = {};
|
|
94755
|
-
let objKey;
|
|
94756
|
-
if (this.axis) {
|
|
94757
|
-
for (const row of this.data.rows) {
|
|
94758
|
-
objKey = row.cells[this.axis].value.trim();
|
|
94759
|
-
if (!y[objKey]) {
|
|
94760
|
-
y[objKey] = [];
|
|
94761
|
-
}
|
|
94762
|
-
for (const key of Object.keys(row.cells)) {
|
|
94763
|
-
const cell = row.cells[key];
|
|
94764
|
-
const value = cell.value.trim();
|
|
94765
|
-
if (!this.axis.includes(key)) {
|
|
94766
|
-
if (this.series &&
|
|
94767
|
-
this.series.length > 0 &&
|
|
94768
|
-
!this.series.includes(key)) {
|
|
94769
|
-
continue;
|
|
94770
|
-
}
|
|
94771
|
-
y[objKey].push(value);
|
|
94624
|
+
return x;
|
|
94625
|
+
}, _KupEchart_createY = function _KupEchart_createY() {
|
|
94626
|
+
const y = {};
|
|
94627
|
+
if (this.series && this.series.length > 0) {
|
|
94628
|
+
for (const row of this.data.rows) {
|
|
94629
|
+
for (const key of Object.keys(row.cells)) {
|
|
94630
|
+
if (key != this.axis) {
|
|
94631
|
+
if (this.series.includes(key)) {
|
|
94632
|
+
const cell = row.cells[key];
|
|
94633
|
+
const value = cell.value;
|
|
94634
|
+
const column = kupManager.getColumnByName(this.data.columns, key);
|
|
94635
|
+
if (column) {
|
|
94636
|
+
const title = column.title;
|
|
94637
|
+
if (!y[title]) {
|
|
94638
|
+
y[title] = [];
|
|
94639
|
+
}
|
|
94640
|
+
y[title].push(value);
|
|
94641
|
+
}
|
|
94642
|
+
}
|
|
94643
|
+
}
|
|
94644
|
+
}
|
|
94772
94645
|
}
|
|
94773
|
-
}
|
|
94774
94646
|
}
|
|
94775
|
-
|
|
94776
|
-
|
|
94777
|
-
|
|
94778
|
-
|
|
94779
|
-
|
|
94780
|
-
|
|
94781
|
-
|
|
94782
|
-
|
|
94783
|
-
|
|
94784
|
-
|
|
94785
|
-
|
|
94786
|
-
|
|
94787
|
-
|
|
94788
|
-
|
|
94789
|
-
|
|
94790
|
-
|
|
94791
|
-
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
94792
|
-
if (n > max) {
|
|
94793
|
-
max = n;
|
|
94794
|
-
}
|
|
94795
|
-
if (n < min) {
|
|
94796
|
-
min = n;
|
|
94647
|
+
else {
|
|
94648
|
+
for (const row of this.data.rows) {
|
|
94649
|
+
for (const key of Object.keys(row.cells)) {
|
|
94650
|
+
if (key !== this.axis) {
|
|
94651
|
+
const cell = row.cells[key];
|
|
94652
|
+
const value = cell.value;
|
|
94653
|
+
const column = kupManager.getColumnByName(this.data.columns, key);
|
|
94654
|
+
if (column) {
|
|
94655
|
+
const title = column.title;
|
|
94656
|
+
if (!y[title]) {
|
|
94657
|
+
y[title] = [];
|
|
94658
|
+
}
|
|
94659
|
+
y[title].push(value);
|
|
94660
|
+
}
|
|
94661
|
+
}
|
|
94662
|
+
}
|
|
94797
94663
|
}
|
|
94798
|
-
}
|
|
94799
|
-
}
|
|
94800
|
-
const keyIsName = names.includes(key);
|
|
94801
|
-
if (n !== null) {
|
|
94802
|
-
data.push({
|
|
94803
|
-
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
94804
|
-
value: n ? n : undefined,
|
|
94805
|
-
});
|
|
94806
|
-
if (color) {
|
|
94807
|
-
colors.push(color);
|
|
94808
|
-
}
|
|
94809
|
-
hasNumericValues = true;
|
|
94810
94664
|
}
|
|
94811
|
-
|
|
94812
|
-
|
|
94813
|
-
|
|
94814
|
-
|
|
94665
|
+
return y;
|
|
94666
|
+
}, _KupEchart_setAxisColors = function _KupEchart_setAxisColors() {
|
|
94667
|
+
return {
|
|
94668
|
+
axisLabel: {
|
|
94669
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94670
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94815
94671
|
},
|
|
94816
|
-
|
|
94817
|
-
|
|
94818
|
-
|
|
94819
|
-
|
|
94820
|
-
|
|
94821
|
-
|
|
94822
|
-
|
|
94823
|
-
const tipCb = (params) => {
|
|
94824
|
-
const value = params.value;
|
|
94825
|
-
if (isNaN(value) ||
|
|
94826
|
-
value === null ||
|
|
94827
|
-
value === undefined) {
|
|
94828
|
-
return null;
|
|
94672
|
+
axisLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") } },
|
|
94673
|
+
axisTick: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
94674
|
+
splitLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
94675
|
+
};
|
|
94676
|
+
}, _KupEchart_setLegend = function _KupEchart_setLegend(y) {
|
|
94677
|
+
if (this.legend === KupEchartLegendPlacement.HIDDEN) {
|
|
94678
|
+
return null;
|
|
94829
94679
|
}
|
|
94830
|
-
|
|
94831
|
-
|
|
94832
|
-
|
|
94833
|
-
'</div>');
|
|
94680
|
+
const data = [];
|
|
94681
|
+
for (let key in y) {
|
|
94682
|
+
data.push(key);
|
|
94834
94683
|
}
|
|
94835
|
-
|
|
94836
|
-
let axisColumn = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94837
|
-
name: this.axis,
|
|
94838
|
-
});
|
|
94839
|
-
let serieTitle = axisColumn && axisColumn.length > 0
|
|
94840
|
-
? axisColumn[0].title
|
|
94841
|
-
: 'No title';
|
|
94842
|
-
const echartOption = Object.assign({ emphasis: {
|
|
94843
|
-
label: {
|
|
94844
|
-
show: true,
|
|
94845
|
-
},
|
|
94846
|
-
}, title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this), tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { formatter: tipCb, showDelay: 0, trigger: 'item', transitionDuration: 0.2 }), series: [
|
|
94847
|
-
{
|
|
94684
|
+
return {
|
|
94848
94685
|
data: data,
|
|
94849
|
-
|
|
94850
|
-
|
|
94851
|
-
areaColor: null,
|
|
94852
|
-
borderWidth: 1.5,
|
|
94853
|
-
},
|
|
94854
|
-
label: {
|
|
94686
|
+
[this.legend]: 0,
|
|
94687
|
+
textStyle: {
|
|
94855
94688
|
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94856
94689
|
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94857
|
-
show: true,
|
|
94858
|
-
},
|
|
94859
94690
|
},
|
|
94860
|
-
|
|
94861
|
-
|
|
94862
|
-
|
|
94863
|
-
|
|
94864
|
-
|
|
94865
|
-
|
|
94866
|
-
|
|
94867
|
-
|
|
94868
|
-
|
|
94869
|
-
|
|
94870
|
-
|
|
94871
|
-
|
|
94691
|
+
};
|
|
94692
|
+
}, _KupEchart_setTitle = function _KupEchart_setTitle() {
|
|
94693
|
+
return {
|
|
94694
|
+
text: this.chartTitle ? this.chartTitle.value : undefined,
|
|
94695
|
+
[this.chartTitle && this.chartTitle.position
|
|
94696
|
+
? this.chartTitle.position
|
|
94697
|
+
: 'left']: 0,
|
|
94698
|
+
textStyle: {
|
|
94699
|
+
color: this.chartTitle && this.chartTitle.color
|
|
94700
|
+
? this.chartTitle.color
|
|
94701
|
+
: 'black',
|
|
94702
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94703
|
+
fontSize: this.chartTitle && this.chartTitle.size
|
|
94704
|
+
? this.chartTitle.size
|
|
94705
|
+
: 16,
|
|
94872
94706
|
},
|
|
94873
|
-
|
|
94874
|
-
|
|
94875
|
-
|
|
94876
|
-
|
|
94877
|
-
|
|
94878
|
-
areaColor: computedColors[0],
|
|
94879
|
-
},
|
|
94880
|
-
label: {
|
|
94707
|
+
};
|
|
94708
|
+
}, _KupEchart_setTooltip = function _KupEchart_setTooltip() {
|
|
94709
|
+
return {
|
|
94710
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94711
|
+
textStyle: {
|
|
94881
94712
|
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94882
94713
|
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94883
|
-
show: true,
|
|
94884
|
-
},
|
|
94885
94714
|
},
|
|
94886
|
-
|
|
94887
|
-
|
|
94888
|
-
|
|
94889
|
-
|
|
94890
|
-
|
|
94891
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94892
|
-
const data = [];
|
|
94893
|
-
for (let key in y) {
|
|
94894
|
-
let sum = 0;
|
|
94895
|
-
for (let j = 0; j < y[key].length; j++) {
|
|
94896
|
-
sum = sum + parseFloat(y[key][j]);
|
|
94897
|
-
}
|
|
94898
|
-
data.push({
|
|
94899
|
-
name: key,
|
|
94900
|
-
value: sum,
|
|
94901
|
-
});
|
|
94902
|
-
}
|
|
94903
|
-
return {
|
|
94904
|
-
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
94905
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
94906
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94907
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
94908
|
-
series: [
|
|
94909
|
-
{
|
|
94910
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94911
|
-
name: this.axis,
|
|
94912
|
-
})[0].title,
|
|
94913
|
-
type: 'pie',
|
|
94914
|
-
data: data,
|
|
94915
|
-
emphasis: {
|
|
94916
|
-
itemStyle: {
|
|
94917
|
-
shadowBlur: 10,
|
|
94918
|
-
shadowOffsetX: 0,
|
|
94919
|
-
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
94920
|
-
},
|
|
94715
|
+
};
|
|
94716
|
+
}, _KupEchart_setVisualMap = function _KupEchart_setVisualMap(max, min, colors, hasNumericValues) {
|
|
94717
|
+
const opts = {
|
|
94718
|
+
visualMap: {
|
|
94719
|
+
show: false,
|
|
94921
94720
|
},
|
|
94922
|
-
|
|
94923
|
-
|
|
94924
|
-
|
|
94925
|
-
|
|
94926
|
-
|
|
94927
|
-
|
|
94928
|
-
|
|
94929
|
-
|
|
94930
|
-
|
|
94931
|
-
|
|
94932
|
-
|
|
94933
|
-
|
|
94934
|
-
|
|
94935
|
-
|
|
94936
|
-
|
|
94937
|
-
|
|
94721
|
+
};
|
|
94722
|
+
const colorRange = !hasNumericValues
|
|
94723
|
+
? undefined
|
|
94724
|
+
: colors.length > 0
|
|
94725
|
+
? {
|
|
94726
|
+
inRange: { color: colors },
|
|
94727
|
+
min: min,
|
|
94728
|
+
max: max,
|
|
94729
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
94730
|
+
}
|
|
94731
|
+
: {
|
|
94732
|
+
inRange: {
|
|
94733
|
+
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
94734
|
+
},
|
|
94735
|
+
min: min,
|
|
94736
|
+
max: max,
|
|
94737
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
94738
|
+
};
|
|
94739
|
+
if (colorRange) {
|
|
94740
|
+
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
94741
|
+
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
94742
|
+
}, min: min, max: max, show: true });
|
|
94938
94743
|
}
|
|
94939
|
-
|
|
94940
|
-
|
|
94744
|
+
return opts;
|
|
94745
|
+
}, _KupEchart_setMapOptions = function _KupEchart_setMapOptions(map) {
|
|
94746
|
+
const computedColors = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, 3);
|
|
94747
|
+
const mapJson = JSON.parse(map);
|
|
94748
|
+
const isoA2 = [];
|
|
94749
|
+
const names = [];
|
|
94750
|
+
for (let index = 0; index < mapJson.features.length; index++) {
|
|
94751
|
+
const feature = mapJson.features[index];
|
|
94752
|
+
isoA2.push(feature.properties.iso_a2);
|
|
94753
|
+
names.push(feature.properties.name);
|
|
94754
|
+
}
|
|
94755
|
+
const y = {};
|
|
94756
|
+
let objKey;
|
|
94757
|
+
if (this.axis) {
|
|
94758
|
+
for (const row of this.data.rows) {
|
|
94759
|
+
objKey = row.cells[this.axis].value.trim();
|
|
94760
|
+
if (!y[objKey]) {
|
|
94761
|
+
y[objKey] = [];
|
|
94762
|
+
}
|
|
94763
|
+
for (const key of Object.keys(row.cells)) {
|
|
94764
|
+
const cell = row.cells[key];
|
|
94765
|
+
const value = cell.value.trim();
|
|
94766
|
+
if (!this.axis.includes(key)) {
|
|
94767
|
+
if (this.series &&
|
|
94768
|
+
this.series.length > 0 &&
|
|
94769
|
+
!this.series.includes(key)) {
|
|
94770
|
+
continue;
|
|
94771
|
+
}
|
|
94772
|
+
y[objKey].push(value);
|
|
94773
|
+
}
|
|
94774
|
+
}
|
|
94775
|
+
}
|
|
94941
94776
|
}
|
|
94942
|
-
|
|
94943
|
-
const
|
|
94944
|
-
|
|
94945
|
-
|
|
94946
|
-
|
|
94947
|
-
|
|
94948
|
-
|
|
94949
|
-
|
|
94950
|
-
else {
|
|
94951
|
-
values = [];
|
|
94777
|
+
const colors = [];
|
|
94778
|
+
const data = [];
|
|
94779
|
+
let hasNumericValues = false;
|
|
94780
|
+
let min = 0;
|
|
94781
|
+
let max = 0;
|
|
94782
|
+
for (let key in y) {
|
|
94783
|
+
let color = null;
|
|
94784
|
+
let n = null;
|
|
94952
94785
|
for (let index = 0; index < y[key].length; index++) {
|
|
94953
|
-
|
|
94954
|
-
|
|
94786
|
+
const value = y[key][index];
|
|
94787
|
+
const hexColor = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(value).hexColor;
|
|
94788
|
+
if (hexColor) {
|
|
94789
|
+
color = hexColor;
|
|
94790
|
+
}
|
|
94791
|
+
else {
|
|
94792
|
+
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
94793
|
+
if (n > max) {
|
|
94794
|
+
max = n;
|
|
94795
|
+
}
|
|
94796
|
+
if (n < min) {
|
|
94797
|
+
min = n;
|
|
94798
|
+
}
|
|
94799
|
+
}
|
|
94955
94800
|
}
|
|
94956
|
-
|
|
94957
|
-
|
|
94958
|
-
|
|
94959
|
-
|
|
94960
|
-
|
|
94961
|
-
|
|
94962
|
-
|
|
94963
|
-
|
|
94964
|
-
|
|
94965
|
-
|
|
94966
|
-
|
|
94967
|
-
|
|
94801
|
+
const keyIsName = names.includes(key);
|
|
94802
|
+
if (n !== null) {
|
|
94803
|
+
data.push({
|
|
94804
|
+
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
94805
|
+
value: n ? n : undefined,
|
|
94806
|
+
});
|
|
94807
|
+
if (color) {
|
|
94808
|
+
colors.push(color);
|
|
94809
|
+
}
|
|
94810
|
+
hasNumericValues = true;
|
|
94811
|
+
}
|
|
94812
|
+
else if (color) {
|
|
94813
|
+
data.push({
|
|
94814
|
+
itemStyle: {
|
|
94815
|
+
color: color,
|
|
94816
|
+
},
|
|
94817
|
+
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
94818
|
+
});
|
|
94819
|
+
}
|
|
94820
|
+
__classPrivateFieldGet(this, _KupEchart_mapObj, "f")[keyIsName
|
|
94821
|
+
? names[names.indexOf(key)]
|
|
94822
|
+
: names[isoA2.indexOf(key)]] = key;
|
|
94968
94823
|
}
|
|
94969
|
-
const
|
|
94970
|
-
|
|
94971
|
-
|
|
94824
|
+
const tipCb = (params) => {
|
|
94825
|
+
const value = params.value;
|
|
94826
|
+
if (isNaN(value) ||
|
|
94827
|
+
value === null ||
|
|
94828
|
+
value === undefined) {
|
|
94829
|
+
return null;
|
|
94830
|
+
}
|
|
94831
|
+
else {
|
|
94832
|
+
return ("<div style='min-width: 60px; text-align: center'>" +
|
|
94833
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value) +
|
|
94834
|
+
'</div>');
|
|
94835
|
+
}
|
|
94836
|
+
};
|
|
94837
|
+
let axisColumn = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94838
|
+
name: this.axis,
|
|
94839
|
+
});
|
|
94840
|
+
let serieTitle = axisColumn && axisColumn.length > 0
|
|
94841
|
+
? axisColumn[0].title
|
|
94842
|
+
: 'No title';
|
|
94843
|
+
const echartOption = Object.assign({ emphasis: {
|
|
94844
|
+
label: {
|
|
94845
|
+
show: true,
|
|
94846
|
+
},
|
|
94847
|
+
}, title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this), tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { formatter: tipCb, showDelay: 0, trigger: 'item', transitionDuration: 0.2 }), series: [
|
|
94848
|
+
{
|
|
94849
|
+
data: data,
|
|
94850
|
+
emphasis: {
|
|
94851
|
+
itemStyle: {
|
|
94852
|
+
areaColor: null,
|
|
94853
|
+
borderWidth: 1.5,
|
|
94854
|
+
},
|
|
94855
|
+
label: {
|
|
94856
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94857
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94858
|
+
show: true,
|
|
94859
|
+
},
|
|
94860
|
+
},
|
|
94861
|
+
itemStyle: {
|
|
94862
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94863
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94864
|
+
},
|
|
94865
|
+
label: {
|
|
94866
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
94867
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f"),
|
|
94868
|
+
borderRadius: 4,
|
|
94869
|
+
borderWidth: 1,
|
|
94870
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94871
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94872
|
+
padding: 4,
|
|
94873
|
+
},
|
|
94874
|
+
map: this.rootElement.id ? this.rootElement.id : '',
|
|
94875
|
+
name: serieTitle,
|
|
94876
|
+
roam: true,
|
|
94877
|
+
select: {
|
|
94878
|
+
itemStyle: {
|
|
94879
|
+
areaColor: computedColors[0],
|
|
94880
|
+
},
|
|
94881
|
+
label: {
|
|
94882
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
94883
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
94884
|
+
show: true,
|
|
94885
|
+
},
|
|
94886
|
+
},
|
|
94887
|
+
type: 'map',
|
|
94888
|
+
},
|
|
94889
|
+
] }, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setVisualMap).call(this, max, min, colors, hasNumericValues));
|
|
94890
|
+
return echartOption;
|
|
94891
|
+
}, _KupEchart_setPieOptions = function _KupEchart_setPieOptions() {
|
|
94892
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94893
|
+
const data = [];
|
|
94894
|
+
for (let key in y) {
|
|
94895
|
+
let sum = 0;
|
|
94896
|
+
for (let j = 0; j < y[key].length; j++) {
|
|
94897
|
+
sum = sum + parseFloat(y[key][j]);
|
|
94898
|
+
}
|
|
94899
|
+
data.push({
|
|
94900
|
+
name: key,
|
|
94901
|
+
value: sum,
|
|
94902
|
+
});
|
|
94972
94903
|
}
|
|
94973
|
-
|
|
94974
|
-
|
|
94975
|
-
|
|
94976
|
-
|
|
94977
|
-
|
|
94978
|
-
|
|
94979
|
-
|
|
94980
|
-
|
|
94981
|
-
|
|
94982
|
-
|
|
94983
|
-
|
|
94984
|
-
|
|
94985
|
-
|
|
94986
|
-
|
|
94987
|
-
|
|
94988
|
-
|
|
94989
|
-
|
|
94990
|
-
|
|
94991
|
-
|
|
94992
|
-
|
|
94993
|
-
|
|
94994
|
-
|
|
94995
|
-
|
|
94996
|
-
|
|
94997
|
-
|
|
94998
|
-
|
|
94999
|
-
|
|
95000
|
-
|
|
95001
|
-
|
|
95002
|
-
|
|
95003
|
-
|
|
95004
|
-
|
|
95005
|
-
|
|
95006
|
-
|
|
95007
|
-
|
|
95008
|
-
|
|
94904
|
+
return {
|
|
94905
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
94906
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
94907
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94908
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
94909
|
+
series: [
|
|
94910
|
+
{
|
|
94911
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
94912
|
+
name: this.axis,
|
|
94913
|
+
})[0].title,
|
|
94914
|
+
type: 'pie',
|
|
94915
|
+
data: data,
|
|
94916
|
+
emphasis: {
|
|
94917
|
+
itemStyle: {
|
|
94918
|
+
shadowBlur: 10,
|
|
94919
|
+
shadowOffsetX: 0,
|
|
94920
|
+
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
94921
|
+
},
|
|
94922
|
+
},
|
|
94923
|
+
},
|
|
94924
|
+
],
|
|
94925
|
+
};
|
|
94926
|
+
}, _KupEchart_setGaussianOptions = function _KupEchart_setGaussianOptions() {
|
|
94927
|
+
let x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
94928
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
94929
|
+
const series = [];
|
|
94930
|
+
const mixedSeries = this.types.filter((i) => i != KupEchartTypes.GAUSSIAN).length > 0;
|
|
94931
|
+
const needSortDataset = this.types.filter((j) => j != KupEchartTypes.GAUSSIAN).length == 1;
|
|
94932
|
+
__classPrivateFieldSet(this, _KupEchart_gaussianDatasets, {}, "f");
|
|
94933
|
+
let i = 0;
|
|
94934
|
+
const color = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length);
|
|
94935
|
+
for (const key in y) {
|
|
94936
|
+
let type;
|
|
94937
|
+
if (this.types[i]) {
|
|
94938
|
+
type = this.types[i];
|
|
94939
|
+
}
|
|
94940
|
+
else {
|
|
94941
|
+
type = KupEchartTypes.GAUSSIAN;
|
|
94942
|
+
}
|
|
94943
|
+
let values = null;
|
|
94944
|
+
const column = this.data.columns.find((col) => col.title === key);
|
|
94945
|
+
if (type == KupEchartTypes.GAUSSIAN) {
|
|
94946
|
+
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
94947
|
+
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.distinct(this.data, [column.name]);
|
|
94948
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getUnivocalValue(newDataset, column);
|
|
94949
|
+
__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column.name] = newDataset;
|
|
95009
94950
|
}
|
|
95010
94951
|
else {
|
|
95011
|
-
|
|
94952
|
+
values = [];
|
|
94953
|
+
for (let index = 0; index < y[key].length; index++) {
|
|
94954
|
+
const element = y[key][index];
|
|
94955
|
+
values.push({ value: element });
|
|
94956
|
+
}
|
|
95012
94957
|
}
|
|
95013
|
-
|
|
95014
|
-
|
|
95015
|
-
|
|
95016
|
-
|
|
95017
|
-
|
|
95018
|
-
|
|
94958
|
+
}
|
|
94959
|
+
else {
|
|
94960
|
+
if (needSortDataset) {
|
|
94961
|
+
// if there is only one series other than the Gaussian then I apply the sorting algorithm that arranges the data in "mountain"
|
|
94962
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.sort(this.data, 'normalDistribution', column.name), "f");
|
|
94963
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), column);
|
|
94964
|
+
x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this, __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"));
|
|
94965
|
+
}
|
|
94966
|
+
else {
|
|
94967
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(this.data, column);
|
|
94968
|
+
}
|
|
94969
|
+
}
|
|
94970
|
+
const justValues = new Array();
|
|
94971
|
+
for (let i = 0; i < values.length; i++) {
|
|
94972
|
+
justValues.push(values[i].value);
|
|
94973
|
+
}
|
|
94974
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, justValues, key, color[i], mixedSeries, needSortDataset);
|
|
94975
|
+
i++;
|
|
94976
|
+
}
|
|
94977
|
+
// "any" because type is mismanaged inside echarts library
|
|
94978
|
+
const tipCb = (params) => {
|
|
94979
|
+
params.sort((a, b) => a.seriesIndex - b.seriesIndex);
|
|
94980
|
+
const wrapper = '<div style="display: flex; flex-direction: column">';
|
|
94981
|
+
let format = wrapper;
|
|
94982
|
+
let count = 0;
|
|
94983
|
+
for (let index = 0; index < params.length; index++) {
|
|
94984
|
+
const param = params[index];
|
|
94985
|
+
if (this.types[param.seriesIndex] == undefined ||
|
|
94986
|
+
this.types[param.seriesIndex] == KupEchartTypes.GAUSSIAN) {
|
|
94987
|
+
const value = param.value[0];
|
|
94988
|
+
const x = `<div style="color: ${param.color};"><span style="margin-right: 5px;"><strong>x:</strong></span><span>${param.value[0]}</span></div>`;
|
|
94989
|
+
if (!index) {
|
|
94990
|
+
format += x;
|
|
94991
|
+
}
|
|
94992
|
+
const column = this.data.columns.find((col) => col.title === param.seriesName).name;
|
|
94993
|
+
const filters = {
|
|
94994
|
+
columns: [column],
|
|
94995
|
+
range: {
|
|
94996
|
+
max: value + (value / 100) * 50,
|
|
94997
|
+
min: value - (value / 100) * 50,
|
|
94998
|
+
},
|
|
94999
|
+
};
|
|
95000
|
+
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
95001
|
+
? __classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
95002
|
+
: this.data, filters);
|
|
95003
|
+
for (let index = 0; index < rows.length; index++) {
|
|
95004
|
+
const row = rows[index];
|
|
95005
|
+
const cells = row.cells;
|
|
95006
|
+
if (cells[this.axis] || cells[column].title) {
|
|
95007
|
+
let title = '';
|
|
95008
|
+
if (cells[this.axis]) {
|
|
95009
|
+
title = cells[this.axis].value;
|
|
95010
|
+
}
|
|
95011
|
+
else {
|
|
95012
|
+
title = cells[column].title;
|
|
95013
|
+
}
|
|
95014
|
+
const remainder = count % 4;
|
|
95015
|
+
if (!remainder) {
|
|
95016
|
+
if (count) {
|
|
95017
|
+
format += `</div>`;
|
|
95018
|
+
}
|
|
95019
|
+
format += `<div style="display: flex; flex-direction: row;">`;
|
|
95020
|
+
}
|
|
95021
|
+
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
95022
|
+
format += `<span ${style}><strong>${title}</strong>: ${cells[column].value}</span>`;
|
|
95023
|
+
count++;
|
|
95024
|
+
}
|
|
95025
|
+
}
|
|
95026
|
+
if (format !== wrapper)
|
|
95027
|
+
format += '</div>';
|
|
95028
|
+
}
|
|
95029
|
+
else {
|
|
95030
|
+
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
95031
|
+
format += `<div ${style}><strong>${param.name}</strong>: ${param.value}</div>`;
|
|
95019
95032
|
}
|
|
95020
|
-
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
95021
|
-
format += `<span ${style}><strong>${title}</strong>: ${cells[column].value}</span>`;
|
|
95022
|
-
count++;
|
|
95023
|
-
}
|
|
95024
95033
|
}
|
|
95025
|
-
if (format
|
|
95026
|
-
|
|
95027
|
-
|
|
95028
|
-
|
|
95029
|
-
|
|
95030
|
-
|
|
95031
|
-
|
|
95034
|
+
if (format === wrapper) {
|
|
95035
|
+
return null;
|
|
95036
|
+
}
|
|
95037
|
+
else {
|
|
95038
|
+
return format;
|
|
95039
|
+
}
|
|
95040
|
+
};
|
|
95041
|
+
// list of x-axis, one for the non-Gaussian series which appears on the left and one for the Gaussian series on the right.
|
|
95042
|
+
const xAxisTmp = [
|
|
95043
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: x.length > 0 ? x : null, type: 'category' }), this.xAxis),
|
|
95044
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value', max: 'dataMax', min: 'dataMin' }), this.xAxis),
|
|
95045
|
+
];
|
|
95046
|
+
// list of y-axis, one for the non-Gaussian series which appears at the bottom and one for the Gaussian series at the top.
|
|
95047
|
+
const yAxisTmp = [
|
|
95048
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
95049
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
95050
|
+
];
|
|
95051
|
+
// If the series are not mixed, then I eliminate the extra axis
|
|
95052
|
+
if (!mixedSeries) {
|
|
95053
|
+
xAxisTmp.splice(0, 1);
|
|
95054
|
+
yAxisTmp.splice(0, 1);
|
|
95032
95055
|
}
|
|
95033
|
-
|
|
95034
|
-
|
|
95056
|
+
return {
|
|
95057
|
+
color,
|
|
95058
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
95059
|
+
series: series,
|
|
95060
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
95061
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis', formatter: tipCb }),
|
|
95062
|
+
xAxis: xAxisTmp,
|
|
95063
|
+
yAxis: yAxisTmp,
|
|
95064
|
+
};
|
|
95065
|
+
}, _KupEchart_addSeries = function _KupEchart_addSeries(type, series, values, key, color, mixedSeries = false, needSortDataset = false) {
|
|
95066
|
+
switch (type) {
|
|
95067
|
+
case KupEchartTypes.GAUSSIAN:
|
|
95068
|
+
series.push({
|
|
95069
|
+
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
95070
|
+
name: key,
|
|
95071
|
+
showSymbol: false,
|
|
95072
|
+
smooth: true,
|
|
95073
|
+
type: 'line',
|
|
95074
|
+
xAxisIndex: mixedSeries ? 1 : 0,
|
|
95075
|
+
yAxisIndex: mixedSeries ? 1 : 0,
|
|
95076
|
+
});
|
|
95077
|
+
break;
|
|
95078
|
+
case KupEchartTypes.BAR:
|
|
95079
|
+
case KupEchartTypes.HBAR:
|
|
95080
|
+
series.push({
|
|
95081
|
+
data: values,
|
|
95082
|
+
name: key,
|
|
95083
|
+
type: 'bar',
|
|
95084
|
+
barWidth: needSortDataset ? '100%' : undefined,
|
|
95085
|
+
});
|
|
95086
|
+
break;
|
|
95087
|
+
case KupEchartTypes.SCATTER:
|
|
95088
|
+
series.push({
|
|
95089
|
+
data: values,
|
|
95090
|
+
name: key,
|
|
95091
|
+
type: 'scatter',
|
|
95092
|
+
});
|
|
95093
|
+
break;
|
|
95094
|
+
case KupEchartTypes.AREA:
|
|
95095
|
+
case KupEchartTypes.LINE:
|
|
95096
|
+
default:
|
|
95097
|
+
series.push({
|
|
95098
|
+
data: values,
|
|
95099
|
+
name: key,
|
|
95100
|
+
type: 'line',
|
|
95101
|
+
areaStyle: type === KupEchartTypes.AREA
|
|
95102
|
+
? {
|
|
95103
|
+
color: new LinearGradient(0, 0, 0, 0.25, [
|
|
95104
|
+
{
|
|
95105
|
+
offset: 0,
|
|
95106
|
+
color: `rgba(${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(color).rgbValues}, 0.375)`,
|
|
95107
|
+
},
|
|
95108
|
+
]),
|
|
95109
|
+
}
|
|
95110
|
+
: undefined,
|
|
95111
|
+
});
|
|
95112
|
+
break;
|
|
95113
|
+
}
|
|
95114
|
+
}, _KupEchart_setOptions = function _KupEchart_setOptions() {
|
|
95115
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
95116
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
95117
|
+
let i = 0;
|
|
95118
|
+
const series = [];
|
|
95119
|
+
const color = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length);
|
|
95120
|
+
for (const key in y) {
|
|
95121
|
+
const values = y[key];
|
|
95122
|
+
let type;
|
|
95123
|
+
if (this.types[i]) {
|
|
95124
|
+
type = this.types[i];
|
|
95125
|
+
}
|
|
95126
|
+
else {
|
|
95127
|
+
type = KupEchartTypes.LINE;
|
|
95128
|
+
}
|
|
95129
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, values, key, color[i]);
|
|
95130
|
+
i++;
|
|
95131
|
+
}
|
|
95132
|
+
const isHorizontal = !!(KupEchartTypes.HBAR === this.types[0]);
|
|
95133
|
+
return {
|
|
95134
|
+
color,
|
|
95135
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
95136
|
+
series: series,
|
|
95137
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
95138
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis' }),
|
|
95139
|
+
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category' }), this.xAxis),
|
|
95140
|
+
yAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value' }), this.yAxis),
|
|
95141
|
+
};
|
|
95142
|
+
}, _KupEchart_setColors = function _KupEchart_setColors(requiredNumber) {
|
|
95143
|
+
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
95144
|
+
let key = '--kup-chart-color-';
|
|
95145
|
+
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
95146
|
+
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
95147
|
+
}
|
|
95148
|
+
if (this.colors && this.colors[0]) {
|
|
95149
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
95035
95150
|
}
|
|
95036
95151
|
else {
|
|
95037
|
-
|
|
95152
|
+
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
95153
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
95038
95154
|
}
|
|
95039
|
-
|
|
95040
|
-
|
|
95041
|
-
const xAxisTmp = [
|
|
95042
|
-
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: x.length > 0 ? x : null, type: 'category' }), this.xAxis),
|
|
95043
|
-
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value', max: 'dataMax', min: 'dataMin' }), this.xAxis),
|
|
95044
|
-
];
|
|
95045
|
-
// list of y-axis, one for the non-Gaussian series which appears at the bottom and one for the Gaussian series at the top.
|
|
95046
|
-
const yAxisTmp = [
|
|
95047
|
-
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
95048
|
-
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
95049
|
-
];
|
|
95050
|
-
// If the series are not mixed, then I eliminate the extra axis
|
|
95051
|
-
if (!mixedSeries) {
|
|
95052
|
-
xAxisTmp.splice(0, 1);
|
|
95053
|
-
yAxisTmp.splice(0, 1);
|
|
95054
|
-
}
|
|
95055
|
-
return {
|
|
95056
|
-
color,
|
|
95057
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
95058
|
-
series: series,
|
|
95059
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
95060
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis', formatter: tipCb }),
|
|
95061
|
-
xAxis: xAxisTmp,
|
|
95062
|
-
yAxis: yAxisTmp,
|
|
95063
|
-
};
|
|
95064
|
-
}, _KupEchart_addSeries = function _KupEchart_addSeries(type, series, values, key, color, mixedSeries = false, needSortDataset = false) {
|
|
95065
|
-
switch (type) {
|
|
95066
|
-
case KupEchartTypes.GAUSSIAN:
|
|
95067
|
-
series.push({
|
|
95068
|
-
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
95069
|
-
name: key,
|
|
95070
|
-
showSymbol: false,
|
|
95071
|
-
smooth: true,
|
|
95072
|
-
type: 'line',
|
|
95073
|
-
xAxisIndex: mixedSeries ? 1 : 0,
|
|
95074
|
-
yAxisIndex: mixedSeries ? 1 : 0,
|
|
95075
|
-
});
|
|
95076
|
-
break;
|
|
95077
|
-
case KupEchartTypes.BAR:
|
|
95078
|
-
case KupEchartTypes.HBAR:
|
|
95079
|
-
series.push({
|
|
95080
|
-
data: values,
|
|
95081
|
-
name: key,
|
|
95082
|
-
type: 'bar',
|
|
95083
|
-
barWidth: needSortDataset ? '100%' : undefined,
|
|
95084
|
-
});
|
|
95085
|
-
break;
|
|
95086
|
-
case KupEchartTypes.SCATTER:
|
|
95087
|
-
series.push({
|
|
95088
|
-
data: values,
|
|
95089
|
-
name: key,
|
|
95090
|
-
type: 'scatter',
|
|
95091
|
-
});
|
|
95092
|
-
break;
|
|
95093
|
-
case KupEchartTypes.AREA:
|
|
95094
|
-
case KupEchartTypes.LINE:
|
|
95095
|
-
default:
|
|
95096
|
-
series.push({
|
|
95097
|
-
data: values,
|
|
95098
|
-
name: key,
|
|
95099
|
-
type: 'line',
|
|
95100
|
-
areaStyle: type === KupEchartTypes.AREA
|
|
95101
|
-
? {
|
|
95102
|
-
color: new LinearGradient(0, 0, 0, 0.25, [
|
|
95103
|
-
{
|
|
95104
|
-
offset: 0,
|
|
95105
|
-
color: `rgba(${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(color).rgbValues}, 0.375)`,
|
|
95106
|
-
},
|
|
95107
|
-
]),
|
|
95108
|
-
}
|
|
95109
|
-
: undefined,
|
|
95110
|
-
});
|
|
95111
|
-
break;
|
|
95112
|
-
}
|
|
95113
|
-
}, _KupEchart_setOptions = function _KupEchart_setOptions() {
|
|
95114
|
-
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
95115
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
95116
|
-
let i = 0;
|
|
95117
|
-
const series = [];
|
|
95118
|
-
const color = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length);
|
|
95119
|
-
for (const key in y) {
|
|
95120
|
-
const values = y[key];
|
|
95121
|
-
let type;
|
|
95122
|
-
if (this.types[i]) {
|
|
95123
|
-
type = this.types[i];
|
|
95155
|
+
if (this.colors && this.colors[1]) {
|
|
95156
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
95124
95157
|
}
|
|
95125
95158
|
else {
|
|
95126
|
-
|
|
95159
|
+
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
95160
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
95127
95161
|
}
|
|
95128
|
-
|
|
95129
|
-
|
|
95130
|
-
}
|
|
95131
|
-
const isHorizontal = !!(KupEchartTypes.HBAR === this.types[0]);
|
|
95132
|
-
return {
|
|
95133
|
-
color,
|
|
95134
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
95135
|
-
series: series,
|
|
95136
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
95137
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis' }),
|
|
95138
|
-
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category' }), this.xAxis),
|
|
95139
|
-
yAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value' }), this.yAxis),
|
|
95140
|
-
};
|
|
95141
|
-
}, _KupEchart_setColors = function _KupEchart_setColors(requiredNumber) {
|
|
95142
|
-
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
95143
|
-
let key = '--kup-chart-color-';
|
|
95144
|
-
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
95145
|
-
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
95146
|
-
}
|
|
95147
|
-
if (this.colors && this.colors[0]) {
|
|
95148
|
-
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
95149
|
-
}
|
|
95150
|
-
else {
|
|
95151
|
-
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
95152
|
-
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
95153
|
-
}
|
|
95154
|
-
if (this.colors && this.colors[1]) {
|
|
95155
|
-
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
95156
|
-
}
|
|
95157
|
-
else {
|
|
95158
|
-
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
95159
|
-
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
95160
|
-
}
|
|
95161
|
-
for (let index = colorArray.length; requiredNumber && index < requiredNumber; index++) {
|
|
95162
|
-
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.randomColor(128));
|
|
95163
|
-
}
|
|
95164
|
-
return colorArray;
|
|
95165
|
-
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
95166
|
-
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
95167
|
-
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
95168
|
-
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
95169
|
-
// The first visible and non-numerical column will be used as axis.
|
|
95170
|
-
if (!gaussianCount &&
|
|
95171
|
-
(!this.axis ||
|
|
95172
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
95173
|
-
name: this.axis,
|
|
95174
|
-
}).length)) {
|
|
95175
|
-
for (let index = 0; index < this.data.columns.length; index++) {
|
|
95176
|
-
const column = this.data.columns[index];
|
|
95177
|
-
if (column.visible &&
|
|
95178
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
95179
|
-
this.axis = column.name;
|
|
95180
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', kupManager.KupDebugCategory.WARNING);
|
|
95181
|
-
break;
|
|
95182
|
-
}
|
|
95162
|
+
for (let index = colorArray.length; requiredNumber && index < requiredNumber; index++) {
|
|
95163
|
+
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.randomColor(128));
|
|
95183
95164
|
}
|
|
95184
|
-
|
|
95185
|
-
|
|
95186
|
-
|
|
95187
|
-
|
|
95188
|
-
|
|
95189
|
-
|
|
95190
|
-
|
|
95191
|
-
|
|
95192
|
-
|
|
95193
|
-
|
|
95194
|
-
|
|
95195
|
-
|
|
95196
|
-
|
|
95197
|
-
|
|
95198
|
-
|
|
95199
|
-
|
|
95200
|
-
|
|
95201
|
-
|
|
95202
|
-
|
|
95203
|
-
|
|
95165
|
+
return colorArray;
|
|
95166
|
+
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
95167
|
+
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
95168
|
+
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
95169
|
+
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
95170
|
+
// The first visible and non-numerical column will be used as axis.
|
|
95171
|
+
if (!gaussianCount &&
|
|
95172
|
+
(!this.axis ||
|
|
95173
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
95174
|
+
name: this.axis,
|
|
95175
|
+
}).length)) {
|
|
95176
|
+
for (let index = 0; index < this.data.columns.length; index++) {
|
|
95177
|
+
const column = this.data.columns[index];
|
|
95178
|
+
if (column.visible &&
|
|
95179
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
95180
|
+
this.axis = column.name;
|
|
95181
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', kupManager.KupDebugCategory.WARNING);
|
|
95182
|
+
break;
|
|
95183
|
+
}
|
|
95184
|
+
}
|
|
95204
95185
|
}
|
|
95205
|
-
|
|
95206
|
-
|
|
95207
|
-
|
|
95208
|
-
|
|
95209
|
-
|
|
95210
|
-
|
|
95211
|
-
|
|
95212
|
-
|
|
95213
|
-
|
|
95214
|
-
|
|
95215
|
-
|
|
95216
|
-
this.
|
|
95217
|
-
|
|
95186
|
+
// Automatically copies columns when there are multiple types and no specified series.
|
|
95187
|
+
// Also 1 types must be GAUSSIAN.
|
|
95188
|
+
if ((!this.series || !this.series.length) &&
|
|
95189
|
+
gaussianCount === 1 &&
|
|
95190
|
+
nonGaussianCount > 0 &&
|
|
95191
|
+
this.data.columns &&
|
|
95192
|
+
((this.data.columns.length === 1 && !this.axis) ||
|
|
95193
|
+
(this.data.columns.length === 2 && this.axis))) {
|
|
95194
|
+
const series = !this.axis
|
|
95195
|
+
? this.data.columns[0]
|
|
95196
|
+
: this.data.columns.filter((col) => col.name !== this.axis)[0];
|
|
95197
|
+
for (let index = 0; index < this.types.length; index++) {
|
|
95198
|
+
const type = this.types[index];
|
|
95199
|
+
if (type !== KupEchartTypes.GAUSSIAN) {
|
|
95200
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, kupManager.KupDataNewColumnTypes.DUPLICATE, {
|
|
95201
|
+
columns: [series.name],
|
|
95202
|
+
newColumn: Object.assign(Object.assign({}, series), { name: series.name + '_' + index, title: series.title + ` (${type})` }),
|
|
95203
|
+
});
|
|
95204
|
+
}
|
|
95205
|
+
}
|
|
95218
95206
|
}
|
|
95219
|
-
|
|
95220
|
-
|
|
95221
|
-
|
|
95222
|
-
|
|
95223
|
-
|
|
95224
|
-
|
|
95225
|
-
|
|
95226
|
-
|
|
95227
|
-
|
|
95228
|
-
|
|
95229
|
-
|
|
95230
|
-
|
|
95231
|
-
|
|
95232
|
-
const
|
|
95233
|
-
|
|
95234
|
-
|
|
95235
|
-
|
|
95236
|
-
|
|
95237
|
-
|
|
95238
|
-
|
|
95239
|
-
|
|
95240
|
-
|
|
95241
|
-
|
|
95207
|
+
// Checks for multiple series with the same column name, creating duplicate columns in case they are present.
|
|
95208
|
+
// When there are more types than series, new series will be automatically added to match chart types.
|
|
95209
|
+
if (this.series &&
|
|
95210
|
+
this.types &&
|
|
95211
|
+
this.series.length &&
|
|
95212
|
+
this.types.length &&
|
|
95213
|
+
this.data.columns) {
|
|
95214
|
+
if (this.types.length > this.series.length) {
|
|
95215
|
+
const lastSerie = this.series[this.series.length - 1];
|
|
95216
|
+
for (let index = this.series.length; index < this.types.length; index++) {
|
|
95217
|
+
this.series.push(lastSerie);
|
|
95218
|
+
}
|
|
95219
|
+
}
|
|
95220
|
+
const occurrences = {};
|
|
95221
|
+
for (let index = 0; index < this.series.length; index++) {
|
|
95222
|
+
const serie = this.series[index];
|
|
95223
|
+
if (Object.keys(occurrences).includes(serie)) {
|
|
95224
|
+
occurrences[serie].push(index);
|
|
95225
|
+
}
|
|
95226
|
+
else {
|
|
95227
|
+
occurrences[serie] = [index];
|
|
95228
|
+
}
|
|
95229
|
+
}
|
|
95230
|
+
for (const key in occurrences) {
|
|
95231
|
+
const indexes = occurrences[key];
|
|
95232
|
+
for (let index = 1; indexes.length > 1 && index < indexes.length; index++) {
|
|
95233
|
+
const seriesIndex = indexes[index];
|
|
95234
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, { name: this.series[seriesIndex] })[0];
|
|
95235
|
+
const newName = column.name + '_' + index;
|
|
95236
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, kupManager.KupDataNewColumnTypes.DUPLICATE, {
|
|
95237
|
+
columns: [column.name],
|
|
95238
|
+
newColumn: Object.assign(Object.assign({}, column), { name: newName, title: column.title +
|
|
95239
|
+
` (${this.types[seriesIndex]})` }),
|
|
95240
|
+
});
|
|
95241
|
+
this.series[seriesIndex] = newName;
|
|
95242
|
+
}
|
|
95243
|
+
}
|
|
95242
95244
|
}
|
|
95243
|
-
}
|
|
95244
95245
|
};
|
|
95245
95246
|
KupEchart.style = kupEchartCss;
|
|
95246
95247
|
|