@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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
7
|
};
|
|
8
8
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
if (kind === "m")
|
|
10
|
+
throw new TypeError("Private method is not writable");
|
|
11
|
+
if (kind === "a" && !f)
|
|
12
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
14
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
17
|
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;
|
|
18
18
|
import { forceUpdate, getAssetPath, Host, h, } from "@stencil/core";
|
|
@@ -26,1682 +26,1682 @@ import { componentWrapperId } from "../../variables/GenericVariables";
|
|
|
26
26
|
import { getColumnByName } from "../../utils/cell-utils";
|
|
27
27
|
import { KupDataNewColumnTypes, } from "../../managers/kup-data/kup-data-declarations";
|
|
28
28
|
export class KupEchart {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
constructor() {
|
|
30
|
+
_KupEchart_instances.add(this);
|
|
31
|
+
/*-------------------------------------------------*/
|
|
32
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
33
|
+
/*-------------------------------------------------*/
|
|
34
|
+
_KupEchart_chartContainer.set(this, void 0);
|
|
35
|
+
_KupEchart_chartEl.set(this, void 0);
|
|
36
|
+
_KupEchart_gaussianDatasets.set(this, void 0);
|
|
37
|
+
_KupEchart_kupManager.set(this, kupManagerInstance());
|
|
38
|
+
_KupEchart_mapObj.set(this, {});
|
|
39
|
+
_KupEchart_resizeTimeout.set(this, void 0);
|
|
40
|
+
_KupEchart_sortedDataset.set(this, null);
|
|
41
|
+
_KupEchart_themeBorder.set(this, null);
|
|
42
|
+
_KupEchart_themeBackground.set(this, null);
|
|
43
|
+
_KupEchart_minColorHeatMap.set(this, null);
|
|
44
|
+
_KupEchart_maxColorHeatMap.set(this, null);
|
|
45
|
+
_KupEchart_themeFont.set(this, null);
|
|
46
|
+
_KupEchart_themeText.set(this, null);
|
|
47
|
+
this.axis = '';
|
|
48
|
+
this.colors = [];
|
|
49
|
+
this.consistencyCheck = false;
|
|
50
|
+
this.chartTitle = null;
|
|
51
|
+
this.customStyle = '';
|
|
52
|
+
this.data = null;
|
|
53
|
+
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
54
|
+
this.map = null;
|
|
55
|
+
this.series = [];
|
|
56
|
+
this.sizeX = '100%';
|
|
57
|
+
this.sizeY = '100%';
|
|
58
|
+
this.types = [KupEchartTypes.LINE];
|
|
59
|
+
this.xAxis = null;
|
|
60
|
+
this.yAxis = null;
|
|
61
|
+
}
|
|
62
|
+
/*-------------------------------------------------*/
|
|
63
|
+
/* P u b l i c M e t h o d s */
|
|
64
|
+
/*-------------------------------------------------*/
|
|
65
|
+
/**
|
|
66
|
+
* Used to retrieve component's props values.
|
|
67
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
68
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
69
|
+
*/
|
|
70
|
+
async getProps(descriptions) {
|
|
71
|
+
return getProps(this, KupEchartProps, descriptions);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* This method is used to trigger a new render of the component.
|
|
75
|
+
*/
|
|
76
|
+
async refresh() {
|
|
77
|
+
forceUpdate(this);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* This method is invoked by KupManager whenever the component changes size.
|
|
81
|
+
*/
|
|
82
|
+
async resizeCallback() {
|
|
83
|
+
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
84
|
+
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
85
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
86
|
+
const xMin = this.rootElement.clientWidth - 5;
|
|
87
|
+
const xMax = this.rootElement.clientWidth + 5;
|
|
88
|
+
const yMin = this.rootElement.clientHeight - 5;
|
|
89
|
+
const yMax = this.rootElement.clientHeight + 5;
|
|
90
|
+
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
91
|
+
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
92
|
+
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
93
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}, 300), "f");
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Sets the props to the component.
|
|
100
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
101
|
+
*/
|
|
102
|
+
async setProps(props) {
|
|
103
|
+
setProps(this, KupEchartProps, props);
|
|
104
|
+
}
|
|
31
105
|
/*-------------------------------------------------*/
|
|
32
|
-
/*
|
|
106
|
+
/* L i f e c y c l e H o o k s */
|
|
33
107
|
/*-------------------------------------------------*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
_KupEchart_resizeTimeout.set(this, void 0);
|
|
40
|
-
_KupEchart_sortedDataset.set(this, null);
|
|
41
|
-
_KupEchart_themeBorder.set(this, null);
|
|
42
|
-
_KupEchart_themeBackground.set(this, null);
|
|
43
|
-
_KupEchart_minColorHeatMap.set(this, null);
|
|
44
|
-
_KupEchart_maxColorHeatMap.set(this, null);
|
|
45
|
-
_KupEchart_themeFont.set(this, null);
|
|
46
|
-
_KupEchart_themeText.set(this, null);
|
|
47
|
-
this.axis = '';
|
|
48
|
-
this.colors = [];
|
|
49
|
-
this.consistencyCheck = false;
|
|
50
|
-
this.chartTitle = null;
|
|
51
|
-
this.customStyle = '';
|
|
52
|
-
this.data = null;
|
|
53
|
-
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
54
|
-
this.map = null;
|
|
55
|
-
this.series = [];
|
|
56
|
-
this.sizeX = '100%';
|
|
57
|
-
this.sizeY = '100%';
|
|
58
|
-
this.types = [KupEchartTypes.LINE];
|
|
59
|
-
this.xAxis = null;
|
|
60
|
-
this.yAxis = null;
|
|
61
|
-
}
|
|
62
|
-
/*-------------------------------------------------*/
|
|
63
|
-
/* P u b l i c M e t h o d s */
|
|
64
|
-
/*-------------------------------------------------*/
|
|
65
|
-
/**
|
|
66
|
-
* Used to retrieve component's props values.
|
|
67
|
-
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
68
|
-
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
69
|
-
*/
|
|
70
|
-
async getProps(descriptions) {
|
|
71
|
-
return getProps(this, KupEchartProps, descriptions);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* This method is used to trigger a new render of the component.
|
|
75
|
-
*/
|
|
76
|
-
async refresh() {
|
|
77
|
-
forceUpdate(this);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* This method is invoked by KupManager whenever the component changes size.
|
|
81
|
-
*/
|
|
82
|
-
async resizeCallback() {
|
|
83
|
-
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
84
|
-
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
85
|
-
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
86
|
-
const xMin = this.rootElement.clientWidth - 5;
|
|
87
|
-
const xMax = this.rootElement.clientWidth + 5;
|
|
88
|
-
const yMin = this.rootElement.clientHeight - 5;
|
|
89
|
-
const yMax = this.rootElement.clientHeight + 5;
|
|
90
|
-
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
91
|
-
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
92
|
-
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
93
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
108
|
+
componentWillLoad() {
|
|
109
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
110
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
111
|
+
if (this.consistencyCheck) {
|
|
112
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
94
113
|
}
|
|
95
|
-
}
|
|
96
|
-
}, 300), "f");
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Sets the props to the component.
|
|
100
|
-
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
101
|
-
*/
|
|
102
|
-
async setProps(props) {
|
|
103
|
-
setProps(this, KupEchartProps, props);
|
|
104
|
-
}
|
|
105
|
-
/*-------------------------------------------------*/
|
|
106
|
-
/* L i f e c y c l e H o o k s */
|
|
107
|
-
/*-------------------------------------------------*/
|
|
108
|
-
componentWillLoad() {
|
|
109
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
110
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
111
|
-
if (this.consistencyCheck) {
|
|
112
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, true);
|
|
118
|
-
}
|
|
119
|
-
componentWillRender() {
|
|
120
|
-
__classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BACKGROUND], "f");
|
|
121
|
-
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BORDER], "f");
|
|
122
|
-
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
123
|
-
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.TEXT], "f");
|
|
124
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
125
|
-
}
|
|
126
|
-
componentDidRender() {
|
|
127
|
-
if (this.data && this.data.columns && this.data.rows) {
|
|
128
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_initChart).call(this);
|
|
115
|
+
componentDidLoad() {
|
|
116
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.observe(this.rootElement);
|
|
117
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, true);
|
|
129
118
|
}
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
componentWillRender() {
|
|
120
|
+
__classPrivateFieldSet(this, _KupEchart_themeBackground, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BACKGROUND], "f");
|
|
121
|
+
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BORDER], "f");
|
|
122
|
+
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
123
|
+
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.TEXT], "f");
|
|
124
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
132
125
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"references": {}
|
|
189
|
-
},
|
|
190
|
-
"required": false,
|
|
191
|
-
"optional": false,
|
|
192
|
-
"docs": {
|
|
193
|
-
"tags": [{
|
|
194
|
-
"name": "default",
|
|
195
|
-
"text": "[]"
|
|
196
|
-
}],
|
|
197
|
-
"text": "Overrides theme's colors."
|
|
198
|
-
},
|
|
199
|
-
"defaultValue": "[]"
|
|
200
|
-
},
|
|
201
|
-
"consistencyCheck": {
|
|
202
|
-
"type": "boolean",
|
|
203
|
-
"mutable": false,
|
|
204
|
-
"complexType": {
|
|
205
|
-
"original": "boolean",
|
|
206
|
-
"resolved": "boolean",
|
|
207
|
-
"references": {}
|
|
208
|
-
},
|
|
209
|
-
"required": false,
|
|
210
|
-
"optional": false,
|
|
211
|
-
"docs": {
|
|
212
|
-
"tags": [{
|
|
213
|
-
"name": "default",
|
|
214
|
-
"text": "false"
|
|
215
|
-
}],
|
|
216
|
-
"text": "When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).\r\nFor performances purposes, this prop will run only once when the component is initially created."
|
|
217
|
-
},
|
|
218
|
-
"attribute": "consistency-check",
|
|
219
|
-
"reflect": false,
|
|
220
|
-
"defaultValue": "false"
|
|
221
|
-
},
|
|
222
|
-
"chartTitle": {
|
|
223
|
-
"type": "unknown",
|
|
224
|
-
"mutable": false,
|
|
225
|
-
"complexType": {
|
|
226
|
-
"original": "KupEchartTitle",
|
|
227
|
-
"resolved": "KupEchartTitle",
|
|
228
|
-
"references": {
|
|
229
|
-
"KupEchartTitle": {
|
|
230
|
-
"location": "import",
|
|
231
|
-
"path": "./kup-echart-declarations",
|
|
232
|
-
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartTitle"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"required": false,
|
|
237
|
-
"optional": false,
|
|
238
|
-
"docs": {
|
|
239
|
-
"tags": [{
|
|
240
|
-
"name": "default",
|
|
241
|
-
"text": "null"
|
|
242
|
-
}],
|
|
243
|
-
"text": "Title of the graph."
|
|
244
|
-
},
|
|
245
|
-
"defaultValue": "null"
|
|
246
|
-
},
|
|
247
|
-
"customStyle": {
|
|
248
|
-
"type": "string",
|
|
249
|
-
"mutable": false,
|
|
250
|
-
"complexType": {
|
|
251
|
-
"original": "string",
|
|
252
|
-
"resolved": "string",
|
|
253
|
-
"references": {}
|
|
254
|
-
},
|
|
255
|
-
"required": false,
|
|
256
|
-
"optional": false,
|
|
257
|
-
"docs": {
|
|
258
|
-
"tags": [{
|
|
259
|
-
"name": "default",
|
|
260
|
-
"text": "\"\""
|
|
261
|
-
}, {
|
|
262
|
-
"name": "see",
|
|
263
|
-
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
264
|
-
}],
|
|
265
|
-
"text": "Custom style of the component."
|
|
266
|
-
},
|
|
267
|
-
"attribute": "custom-style",
|
|
268
|
-
"reflect": false,
|
|
269
|
-
"defaultValue": "''"
|
|
270
|
-
},
|
|
271
|
-
"data": {
|
|
272
|
-
"type": "unknown",
|
|
273
|
-
"mutable": false,
|
|
274
|
-
"complexType": {
|
|
275
|
-
"original": "KupDataDataset",
|
|
276
|
-
"resolved": "KupDataDataset",
|
|
277
|
-
"references": {
|
|
278
|
-
"KupDataDataset": {
|
|
279
|
-
"location": "import",
|
|
280
|
-
"path": "../../managers/kup-data/kup-data-declarations",
|
|
281
|
-
"id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"required": false,
|
|
286
|
-
"optional": false,
|
|
287
|
-
"docs": {
|
|
288
|
-
"tags": [{
|
|
289
|
-
"name": "default",
|
|
290
|
-
"text": "null"
|
|
291
|
-
}],
|
|
292
|
-
"text": "The actual data of the chart."
|
|
293
|
-
},
|
|
294
|
-
"defaultValue": "null"
|
|
295
|
-
},
|
|
296
|
-
"legend": {
|
|
297
|
-
"type": "string",
|
|
298
|
-
"mutable": false,
|
|
299
|
-
"complexType": {
|
|
300
|
-
"original": "KupEchartLegendPlacement",
|
|
301
|
-
"resolved": "KupEchartLegendPlacement.BOTTOM | KupEchartLegendPlacement.HIDDEN | KupEchartLegendPlacement.LEFT | KupEchartLegendPlacement.RIGHT | KupEchartLegendPlacement.TOP",
|
|
302
|
-
"references": {
|
|
303
|
-
"KupEchartLegendPlacement": {
|
|
304
|
-
"location": "import",
|
|
305
|
-
"path": "./kup-echart-declarations",
|
|
306
|
-
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartLegendPlacement"
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"required": false,
|
|
311
|
-
"optional": false,
|
|
312
|
-
"docs": {
|
|
313
|
-
"tags": [{
|
|
314
|
-
"name": "default",
|
|
315
|
-
"text": "KupEchartLegendPlacement.RIGHT"
|
|
316
|
-
}],
|
|
317
|
-
"text": "Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work."
|
|
318
|
-
},
|
|
319
|
-
"attribute": "legend",
|
|
320
|
-
"reflect": false,
|
|
321
|
-
"defaultValue": "KupEchartLegendPlacement.RIGHT"
|
|
322
|
-
},
|
|
323
|
-
"map": {
|
|
324
|
-
"type": "string",
|
|
325
|
-
"mutable": false,
|
|
326
|
-
"complexType": {
|
|
327
|
-
"original": "KupEchartMaps | string | GeoJSON",
|
|
328
|
-
"resolved": "Feature<Geometry, { [name: string]: any; }> | FeatureCollection<Geometry, { [name: string]: any; }> | GeometryCollection<Geometry> | LineString | MultiLineString | MultiPoint | MultiPolygon | Point | Polygon | string",
|
|
329
|
-
"references": {
|
|
330
|
-
"KupEchartMaps": {
|
|
331
|
-
"location": "import",
|
|
332
|
-
"path": "./kup-echart-declarations",
|
|
333
|
-
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartMaps"
|
|
126
|
+
componentDidRender() {
|
|
127
|
+
if (this.data && this.data.columns && this.data.rows) {
|
|
128
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_initChart).call(this);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Insufficient data.(' + this.data + ')', KupDebugCategory.WARNING);
|
|
132
|
+
}
|
|
133
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, true);
|
|
134
|
+
}
|
|
135
|
+
render() {
|
|
136
|
+
const style = {
|
|
137
|
+
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
138
|
+
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
139
|
+
};
|
|
140
|
+
return (h(Host, { style: style }, h("style", null, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
141
|
+
}
|
|
142
|
+
disconnectedCallback() {
|
|
143
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.unregister(this);
|
|
144
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.unobserve(this.rootElement);
|
|
145
|
+
}
|
|
146
|
+
static get is() { return "kup-echart"; }
|
|
147
|
+
static get encapsulation() { return "shadow"; }
|
|
148
|
+
static get originalStyleUrls() {
|
|
149
|
+
return {
|
|
150
|
+
"$": ["kup-echart.scss"]
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
static get styleUrls() {
|
|
154
|
+
return {
|
|
155
|
+
"$": ["kup-echart.css"]
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static get assetsDirs() { return ["assets/maps"]; }
|
|
159
|
+
static get properties() {
|
|
160
|
+
return {
|
|
161
|
+
"axis": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": true,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "string",
|
|
166
|
+
"resolved": "string",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [{
|
|
173
|
+
"name": "default",
|
|
174
|
+
"text": "\"\""
|
|
175
|
+
}],
|
|
176
|
+
"text": "Sets the axis of the chart."
|
|
177
|
+
},
|
|
178
|
+
"attribute": "axis",
|
|
179
|
+
"reflect": false,
|
|
180
|
+
"defaultValue": "''"
|
|
334
181
|
},
|
|
335
|
-
"
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
182
|
+
"colors": {
|
|
183
|
+
"type": "unknown",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string[]",
|
|
187
|
+
"resolved": "string[]",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [{
|
|
194
|
+
"name": "default",
|
|
195
|
+
"text": "[]"
|
|
196
|
+
}],
|
|
197
|
+
"text": "Overrides theme's colors."
|
|
198
|
+
},
|
|
199
|
+
"defaultValue": "[]"
|
|
200
|
+
},
|
|
201
|
+
"consistencyCheck": {
|
|
202
|
+
"type": "boolean",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "boolean",
|
|
206
|
+
"resolved": "boolean",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": false,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [{
|
|
213
|
+
"name": "default",
|
|
214
|
+
"text": "false"
|
|
215
|
+
}],
|
|
216
|
+
"text": "When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).\r\nFor performances purposes, this prop will run only once when the component is initially created."
|
|
217
|
+
},
|
|
218
|
+
"attribute": "consistency-check",
|
|
219
|
+
"reflect": false,
|
|
220
|
+
"defaultValue": "false"
|
|
221
|
+
},
|
|
222
|
+
"chartTitle": {
|
|
223
|
+
"type": "unknown",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "KupEchartTitle",
|
|
227
|
+
"resolved": "KupEchartTitle",
|
|
228
|
+
"references": {
|
|
229
|
+
"KupEchartTitle": {
|
|
230
|
+
"location": "import",
|
|
231
|
+
"path": "./kup-echart-declarations",
|
|
232
|
+
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartTitle"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [{
|
|
240
|
+
"name": "default",
|
|
241
|
+
"text": "null"
|
|
242
|
+
}],
|
|
243
|
+
"text": "Title of the graph."
|
|
244
|
+
},
|
|
245
|
+
"defaultValue": "null"
|
|
246
|
+
},
|
|
247
|
+
"customStyle": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "string",
|
|
252
|
+
"resolved": "string",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [{
|
|
259
|
+
"name": "default",
|
|
260
|
+
"text": "\"\""
|
|
261
|
+
}, {
|
|
262
|
+
"name": "see",
|
|
263
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
264
|
+
}],
|
|
265
|
+
"text": "Custom style of the component."
|
|
266
|
+
},
|
|
267
|
+
"attribute": "custom-style",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "''"
|
|
270
|
+
},
|
|
271
|
+
"data": {
|
|
272
|
+
"type": "unknown",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "KupDataDataset",
|
|
276
|
+
"resolved": "KupDataDataset",
|
|
277
|
+
"references": {
|
|
278
|
+
"KupDataDataset": {
|
|
279
|
+
"location": "import",
|
|
280
|
+
"path": "../../managers/kup-data/kup-data-declarations",
|
|
281
|
+
"id": "src/managers/kup-data/kup-data-declarations.ts::KupDataDataset"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": false,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [{
|
|
289
|
+
"name": "default",
|
|
290
|
+
"text": "null"
|
|
291
|
+
}],
|
|
292
|
+
"text": "The actual data of the chart."
|
|
293
|
+
},
|
|
294
|
+
"defaultValue": "null"
|
|
295
|
+
},
|
|
296
|
+
"legend": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "KupEchartLegendPlacement",
|
|
301
|
+
"resolved": "KupEchartLegendPlacement.BOTTOM | KupEchartLegendPlacement.HIDDEN | KupEchartLegendPlacement.LEFT | KupEchartLegendPlacement.RIGHT | KupEchartLegendPlacement.TOP",
|
|
302
|
+
"references": {
|
|
303
|
+
"KupEchartLegendPlacement": {
|
|
304
|
+
"location": "import",
|
|
305
|
+
"path": "./kup-echart-declarations",
|
|
306
|
+
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartLegendPlacement"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": false,
|
|
311
|
+
"optional": false,
|
|
312
|
+
"docs": {
|
|
313
|
+
"tags": [{
|
|
314
|
+
"name": "default",
|
|
315
|
+
"text": "KupEchartLegendPlacement.RIGHT"
|
|
316
|
+
}],
|
|
317
|
+
"text": "Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work."
|
|
318
|
+
},
|
|
319
|
+
"attribute": "legend",
|
|
320
|
+
"reflect": false,
|
|
321
|
+
"defaultValue": "KupEchartLegendPlacement.RIGHT"
|
|
322
|
+
},
|
|
323
|
+
"map": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "KupEchartMaps | string | GeoJSON",
|
|
328
|
+
"resolved": "Feature<Geometry, { [name: string]: any; }> | FeatureCollection<Geometry, { [name: string]: any; }> | GeometryCollection<Geometry> | LineString | MultiLineString | MultiPoint | MultiPolygon | Point | Polygon | string",
|
|
329
|
+
"references": {
|
|
330
|
+
"KupEchartMaps": {
|
|
331
|
+
"location": "import",
|
|
332
|
+
"path": "./kup-echart-declarations",
|
|
333
|
+
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartMaps"
|
|
334
|
+
},
|
|
335
|
+
"GeoJSON": {
|
|
336
|
+
"location": "import",
|
|
337
|
+
"path": "geojson",
|
|
338
|
+
"id": "../../node_modules/@types/geojson/index.d.ts::GeoJSON"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": false,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [{
|
|
346
|
+
"name": "default",
|
|
347
|
+
"text": "null"
|
|
348
|
+
}],
|
|
349
|
+
"text": "Choose which map you want to view, supported values: \"europe\", \"africa\", \"asia\", \"oceania\", \"america\", \"italy\" and \"world\". It's possible to supply a custom JSON too."
|
|
350
|
+
},
|
|
351
|
+
"attribute": "map",
|
|
352
|
+
"reflect": false,
|
|
353
|
+
"defaultValue": "null"
|
|
354
|
+
},
|
|
355
|
+
"series": {
|
|
356
|
+
"type": "unknown",
|
|
357
|
+
"mutable": false,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "string[]",
|
|
360
|
+
"resolved": "string[]",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [{
|
|
367
|
+
"name": "default",
|
|
368
|
+
"text": "[]"
|
|
369
|
+
}],
|
|
370
|
+
"text": "The data series to be displayed. They must be of the same type."
|
|
371
|
+
},
|
|
372
|
+
"defaultValue": "[]"
|
|
373
|
+
},
|
|
374
|
+
"sizeX": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [{
|
|
386
|
+
"name": "default",
|
|
387
|
+
"text": "\"100%\""
|
|
388
|
+
}],
|
|
389
|
+
"text": "The width of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vw, etc.)."
|
|
390
|
+
},
|
|
391
|
+
"attribute": "size-x",
|
|
392
|
+
"reflect": false,
|
|
393
|
+
"defaultValue": "'100%'"
|
|
394
|
+
},
|
|
395
|
+
"sizeY": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "string",
|
|
400
|
+
"resolved": "string",
|
|
401
|
+
"references": {}
|
|
402
|
+
},
|
|
403
|
+
"required": false,
|
|
404
|
+
"optional": false,
|
|
405
|
+
"docs": {
|
|
406
|
+
"tags": [{
|
|
407
|
+
"name": "default",
|
|
408
|
+
"text": "\"100%\""
|
|
409
|
+
}],
|
|
410
|
+
"text": "The height of the chart, defaults to 100%. Accepts any valid CSS format (px, %, vh, etc.)."
|
|
411
|
+
},
|
|
412
|
+
"attribute": "size-y",
|
|
413
|
+
"reflect": false,
|
|
414
|
+
"defaultValue": "'100%'"
|
|
415
|
+
},
|
|
416
|
+
"types": {
|
|
417
|
+
"type": "unknown",
|
|
418
|
+
"mutable": false,
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "KupEchartTypes[]",
|
|
421
|
+
"resolved": "KupEchartTypes[]",
|
|
422
|
+
"references": {
|
|
423
|
+
"KupEchartTypes": {
|
|
424
|
+
"location": "import",
|
|
425
|
+
"path": "./kup-echart-declarations",
|
|
426
|
+
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartTypes"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"required": false,
|
|
431
|
+
"optional": false,
|
|
432
|
+
"docs": {
|
|
433
|
+
"tags": [{
|
|
434
|
+
"name": "default",
|
|
435
|
+
"text": "[KupEchartTypes.LINE]"
|
|
436
|
+
}],
|
|
437
|
+
"text": "The type of the chart. Supported formats: Bar, Gaussian, Line, Pie, Map and Scatter."
|
|
438
|
+
},
|
|
439
|
+
"defaultValue": "[KupEchartTypes.LINE]"
|
|
440
|
+
},
|
|
441
|
+
"xAxis": {
|
|
442
|
+
"type": "unknown",
|
|
443
|
+
"mutable": false,
|
|
444
|
+
"complexType": {
|
|
445
|
+
"original": "XAXisComponentOption",
|
|
446
|
+
"resolved": "AxisBaseOptionCommon & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"xAxis\"; } | CategoryAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"xAxis\"; } | LogAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"xAxis\"; } | TimeAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"xAxis\"; } | ValueAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"xAxis\"; }",
|
|
447
|
+
"references": {
|
|
448
|
+
"XAXisComponentOption": {
|
|
449
|
+
"location": "import",
|
|
450
|
+
"path": "echarts",
|
|
451
|
+
"id": ""
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": false,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [{
|
|
459
|
+
"name": "default",
|
|
460
|
+
"text": "null"
|
|
461
|
+
}],
|
|
462
|
+
"text": "Customization options for the x Axis."
|
|
463
|
+
},
|
|
464
|
+
"defaultValue": "null"
|
|
465
|
+
},
|
|
466
|
+
"yAxis": {
|
|
467
|
+
"type": "unknown",
|
|
468
|
+
"mutable": false,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "YAXisComponentOption",
|
|
471
|
+
"resolved": "AxisBaseOptionCommon & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"yAxis\"; } | CategoryAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"yAxis\"; } | LogAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"yAxis\"; } | TimeAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"yAxis\"; } | ValueAxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; } & { mainType?: \"yAxis\"; }",
|
|
472
|
+
"references": {
|
|
473
|
+
"YAXisComponentOption": {
|
|
474
|
+
"location": "import",
|
|
475
|
+
"path": "echarts",
|
|
476
|
+
"id": ""
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": false,
|
|
481
|
+
"optional": false,
|
|
482
|
+
"docs": {
|
|
483
|
+
"tags": [{
|
|
484
|
+
"name": "default",
|
|
485
|
+
"text": "null"
|
|
486
|
+
}],
|
|
487
|
+
"text": "Customization options for the y Axis."
|
|
488
|
+
},
|
|
489
|
+
"defaultValue": "null"
|
|
427
490
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
static get events() {
|
|
494
|
+
return [{
|
|
495
|
+
"method": "kupEchartClick",
|
|
496
|
+
"name": "kup-echart-click",
|
|
497
|
+
"bubbles": true,
|
|
498
|
+
"cancelable": false,
|
|
499
|
+
"composed": true,
|
|
500
|
+
"docs": {
|
|
501
|
+
"tags": [],
|
|
502
|
+
"text": ""
|
|
503
|
+
},
|
|
504
|
+
"complexType": {
|
|
505
|
+
"original": "KupEchartClickEventPayload",
|
|
506
|
+
"resolved": "KupEchartClickEventPayload",
|
|
507
|
+
"references": {
|
|
508
|
+
"KupEchartClickEventPayload": {
|
|
509
|
+
"location": "import",
|
|
510
|
+
"path": "./kup-echart-declarations",
|
|
511
|
+
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartClickEventPayload"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}];
|
|
516
|
+
}
|
|
517
|
+
static get methods() {
|
|
518
|
+
return {
|
|
519
|
+
"getProps": {
|
|
520
|
+
"complexType": {
|
|
521
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
522
|
+
"parameters": [{
|
|
523
|
+
"tags": [{
|
|
524
|
+
"name": "param",
|
|
525
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
526
|
+
}],
|
|
527
|
+
"text": "- When provided and true, the result will be the list of props with their description."
|
|
528
|
+
}],
|
|
529
|
+
"references": {
|
|
530
|
+
"Promise": {
|
|
531
|
+
"location": "global",
|
|
532
|
+
"id": "global::Promise"
|
|
533
|
+
},
|
|
534
|
+
"GenericObject": {
|
|
535
|
+
"location": "import",
|
|
536
|
+
"path": "../../types/GenericTypes",
|
|
537
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"return": "Promise<GenericObject>"
|
|
541
|
+
},
|
|
542
|
+
"docs": {
|
|
543
|
+
"text": "Used to retrieve component's props values.",
|
|
544
|
+
"tags": [{
|
|
545
|
+
"name": "param",
|
|
546
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
547
|
+
}, {
|
|
548
|
+
"name": "returns",
|
|
549
|
+
"text": "List of props as object, each key will be a prop."
|
|
550
|
+
}]
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"refresh": {
|
|
554
|
+
"complexType": {
|
|
555
|
+
"signature": "() => Promise<void>",
|
|
556
|
+
"parameters": [],
|
|
557
|
+
"references": {
|
|
558
|
+
"Promise": {
|
|
559
|
+
"location": "global",
|
|
560
|
+
"id": "global::Promise"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"return": "Promise<void>"
|
|
564
|
+
},
|
|
565
|
+
"docs": {
|
|
566
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
567
|
+
"tags": []
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"resizeCallback": {
|
|
571
|
+
"complexType": {
|
|
572
|
+
"signature": "() => Promise<void>",
|
|
573
|
+
"parameters": [],
|
|
574
|
+
"references": {
|
|
575
|
+
"Promise": {
|
|
576
|
+
"location": "global",
|
|
577
|
+
"id": "global::Promise"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"return": "Promise<void>"
|
|
581
|
+
},
|
|
582
|
+
"docs": {
|
|
583
|
+
"text": "This method is invoked by KupManager whenever the component changes size.",
|
|
584
|
+
"tags": []
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"setProps": {
|
|
588
|
+
"complexType": {
|
|
589
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
590
|
+
"parameters": [{
|
|
591
|
+
"tags": [{
|
|
592
|
+
"name": "param",
|
|
593
|
+
"text": "props - Object containing props that will be set to the component."
|
|
594
|
+
}],
|
|
595
|
+
"text": "- Object containing props that will be set to the component."
|
|
596
|
+
}],
|
|
597
|
+
"references": {
|
|
598
|
+
"Promise": {
|
|
599
|
+
"location": "global",
|
|
600
|
+
"id": "global::Promise"
|
|
601
|
+
},
|
|
602
|
+
"GenericObject": {
|
|
603
|
+
"location": "import",
|
|
604
|
+
"path": "../../types/GenericTypes",
|
|
605
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"return": "Promise<void>"
|
|
609
|
+
},
|
|
610
|
+
"docs": {
|
|
611
|
+
"text": "Sets the props to the component.",
|
|
612
|
+
"tags": [{
|
|
613
|
+
"name": "param",
|
|
614
|
+
"text": "props - Object containing props that will be set to the component."
|
|
615
|
+
}]
|
|
616
|
+
}
|
|
452
617
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
static get elementRef() { return "rootElement"; }
|
|
621
|
+
}
|
|
622
|
+
_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() {
|
|
623
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
624
|
+
echarts.dispose(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f"));
|
|
625
|
+
}
|
|
626
|
+
if (this.types && this.types.length > 0) {
|
|
627
|
+
__classPrivateFieldSet(this, _KupEchart_chartEl, echarts.init(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f")), "f");
|
|
628
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createChart).call(this);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, "Can't intialize chart without specifiying at least 1 type.", KupDebugCategory.WARNING);
|
|
632
|
+
}
|
|
633
|
+
}, _KupEchart_createChart = async function _KupEchart_createChart() {
|
|
634
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, null, "f");
|
|
635
|
+
let options = null;
|
|
636
|
+
const firstType = this.types[0];
|
|
637
|
+
switch (firstType) {
|
|
638
|
+
case KupEchartTypes.GAUSSIAN:
|
|
639
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setGaussianOptions).call(this);
|
|
640
|
+
break;
|
|
641
|
+
case KupEchartTypes.MAP:
|
|
642
|
+
let stringifiedMap = '';
|
|
643
|
+
if (this.map) {
|
|
644
|
+
if (this.map.features) {
|
|
645
|
+
stringifiedMap = JSON.stringify(this.map);
|
|
646
|
+
}
|
|
647
|
+
else if (Object.values(KupEchartMaps).includes(this.map)) {
|
|
648
|
+
stringifiedMap = await (await fetch(getAssetPath(`./assets/maps/${this.map}.json`))).text();
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
stringifiedMap = this.map;
|
|
652
|
+
}
|
|
477
653
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"optional": false,
|
|
482
|
-
"docs": {
|
|
483
|
-
"tags": [{
|
|
484
|
-
"name": "default",
|
|
485
|
-
"text": "null"
|
|
486
|
-
}],
|
|
487
|
-
"text": "Customization options for the y Axis."
|
|
488
|
-
},
|
|
489
|
-
"defaultValue": "null"
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
static get events() {
|
|
494
|
-
return [{
|
|
495
|
-
"method": "kupEchartClick",
|
|
496
|
-
"name": "kup-echart-click",
|
|
497
|
-
"bubbles": true,
|
|
498
|
-
"cancelable": false,
|
|
499
|
-
"composed": true,
|
|
500
|
-
"docs": {
|
|
501
|
-
"tags": [],
|
|
502
|
-
"text": ""
|
|
503
|
-
},
|
|
504
|
-
"complexType": {
|
|
505
|
-
"original": "KupEchartClickEventPayload",
|
|
506
|
-
"resolved": "KupEchartClickEventPayload",
|
|
507
|
-
"references": {
|
|
508
|
-
"KupEchartClickEventPayload": {
|
|
509
|
-
"location": "import",
|
|
510
|
-
"path": "./kup-echart-declarations",
|
|
511
|
-
"id": "src/components/kup-echart/kup-echart-declarations.tsx::KupEchartClickEventPayload"
|
|
654
|
+
if (!stringifiedMap) {
|
|
655
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, "Couldn't fetch map JSON.", KupDebugCategory.WARNING);
|
|
656
|
+
return;
|
|
512
657
|
}
|
|
513
|
-
|
|
658
|
+
echarts.registerMap(this.rootElement.id ? this.rootElement.id : '', stringifiedMap);
|
|
659
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setMapOptions).call(this, stringifiedMap);
|
|
660
|
+
break;
|
|
661
|
+
case KupEchartTypes.PIE:
|
|
662
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setPieOptions).call(this);
|
|
663
|
+
break;
|
|
664
|
+
case KupEchartTypes.FUNNEL:
|
|
665
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
|
|
666
|
+
break;
|
|
667
|
+
case KupEchartTypes.RADAR:
|
|
668
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
669
|
+
break;
|
|
670
|
+
case KupEchartTypes.BUBBLE:
|
|
671
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
672
|
+
break;
|
|
673
|
+
case KupEchartTypes.SANKEY:
|
|
674
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
675
|
+
break;
|
|
676
|
+
case KupEchartTypes.CANDLE:
|
|
677
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
678
|
+
break;
|
|
679
|
+
case KupEchartTypes.CALENDAR:
|
|
680
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
681
|
+
break;
|
|
682
|
+
default:
|
|
683
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
687
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
688
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
689
|
+
title: e.seriesName,
|
|
690
|
+
})[0];
|
|
691
|
+
let row = null;
|
|
692
|
+
if (e.seriesType === 'map') {
|
|
693
|
+
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
694
|
+
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
695
|
+
})[0];
|
|
514
696
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
static get methods() {
|
|
518
|
-
return {
|
|
519
|
-
"getProps": {
|
|
520
|
-
"complexType": {
|
|
521
|
-
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
522
|
-
"parameters": [{
|
|
523
|
-
"tags": [{
|
|
524
|
-
"name": "param",
|
|
525
|
-
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
526
|
-
}],
|
|
527
|
-
"text": "- When provided and true, the result will be the list of props with their description."
|
|
528
|
-
}],
|
|
529
|
-
"references": {
|
|
530
|
-
"Promise": {
|
|
531
|
-
"location": "global",
|
|
532
|
-
"id": "global::Promise"
|
|
533
|
-
},
|
|
534
|
-
"GenericObject": {
|
|
535
|
-
"location": "import",
|
|
536
|
-
"path": "../../types/GenericTypes",
|
|
537
|
-
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
"return": "Promise<GenericObject>"
|
|
541
|
-
},
|
|
542
|
-
"docs": {
|
|
543
|
-
"text": "Used to retrieve component's props values.",
|
|
544
|
-
"tags": [{
|
|
545
|
-
"name": "param",
|
|
546
|
-
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
547
|
-
}, {
|
|
548
|
-
"name": "returns",
|
|
549
|
-
"text": "List of props as object, each key will be a prop."
|
|
550
|
-
}]
|
|
697
|
+
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
698
|
+
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
551
699
|
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
"complexType": {
|
|
555
|
-
"signature": "() => Promise<void>",
|
|
556
|
-
"parameters": [],
|
|
557
|
-
"references": {
|
|
558
|
-
"Promise": {
|
|
559
|
-
"location": "global",
|
|
560
|
-
"id": "global::Promise"
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
"return": "Promise<void>"
|
|
564
|
-
},
|
|
565
|
-
"docs": {
|
|
566
|
-
"text": "This method is used to trigger a new render of the component.",
|
|
567
|
-
"tags": []
|
|
700
|
+
else if (!Array.isArray(e.data)) {
|
|
701
|
+
row = this.data.rows[e.dataIndex];
|
|
568
702
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
703
|
+
this.kupEchartClick.emit({
|
|
704
|
+
comp: this,
|
|
705
|
+
id: this.rootElement.id,
|
|
706
|
+
column: column,
|
|
707
|
+
row: row,
|
|
708
|
+
x: Array.isArray(e.data) ? e.data[0] : e.name,
|
|
709
|
+
y: Array.isArray(e.data) ? e.data[1] : e.value,
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
}, _KupEchart_funnelChart = function _KupEchart_funnelChart() {
|
|
713
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
714
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
715
|
+
const cellsSum = {};
|
|
716
|
+
const data = [];
|
|
717
|
+
let highest = 0;
|
|
718
|
+
for (let key in y) {
|
|
719
|
+
for (let j = 0; j < y[key].length; j++) {
|
|
720
|
+
if (cellsSum[x[j]]) {
|
|
721
|
+
cellsSum[x[j]] += parseFloat(y[key][j]);
|
|
578
722
|
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
},
|
|
582
|
-
"docs": {
|
|
583
|
-
"text": "This method is invoked by KupManager whenever the component changes size.",
|
|
584
|
-
"tags": []
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
"setProps": {
|
|
588
|
-
"complexType": {
|
|
589
|
-
"signature": "(props: GenericObject) => Promise<void>",
|
|
590
|
-
"parameters": [{
|
|
591
|
-
"tags": [{
|
|
592
|
-
"name": "param",
|
|
593
|
-
"text": "props - Object containing props that will be set to the component."
|
|
594
|
-
}],
|
|
595
|
-
"text": "- Object containing props that will be set to the component."
|
|
596
|
-
}],
|
|
597
|
-
"references": {
|
|
598
|
-
"Promise": {
|
|
599
|
-
"location": "global",
|
|
600
|
-
"id": "global::Promise"
|
|
601
|
-
},
|
|
602
|
-
"GenericObject": {
|
|
603
|
-
"location": "import",
|
|
604
|
-
"path": "../../types/GenericTypes",
|
|
605
|
-
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
723
|
+
else {
|
|
724
|
+
cellsSum[x[j]] = parseFloat(y[key][j]);
|
|
606
725
|
}
|
|
607
|
-
},
|
|
608
|
-
"return": "Promise<void>"
|
|
609
|
-
},
|
|
610
|
-
"docs": {
|
|
611
|
-
"text": "Sets the props to the component.",
|
|
612
|
-
"tags": [{
|
|
613
|
-
"name": "param",
|
|
614
|
-
"text": "props - Object containing props that will be set to the component."
|
|
615
|
-
}]
|
|
616
726
|
}
|
|
617
|
-
|
|
727
|
+
}
|
|
728
|
+
for (let key in cellsSum) {
|
|
729
|
+
const value = cellsSum[key];
|
|
730
|
+
if (value > highest) {
|
|
731
|
+
highest = value;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
for (const key in cellsSum) {
|
|
735
|
+
const value = cellsSum[key];
|
|
736
|
+
data.push({
|
|
737
|
+
name: key,
|
|
738
|
+
value: ((100 * value) / highest).toFixed(2),
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
return {
|
|
742
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(cellsSum).length),
|
|
743
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
744
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
745
|
+
const name = value.data.name;
|
|
746
|
+
const percentage = value.data
|
|
747
|
+
.value;
|
|
748
|
+
return `${name}: <strong>${cellsSum[name]}</strong> (${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(percentage)}%)`;
|
|
749
|
+
} }),
|
|
750
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, cellsSum),
|
|
751
|
+
series: [
|
|
752
|
+
{
|
|
753
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
754
|
+
name: this.axis,
|
|
755
|
+
})[0].title,
|
|
756
|
+
type: 'funnel',
|
|
757
|
+
gap: 2,
|
|
758
|
+
label: {
|
|
759
|
+
show: true,
|
|
760
|
+
position: 'right',
|
|
761
|
+
},
|
|
762
|
+
labelLine: {
|
|
763
|
+
lineStyle: {
|
|
764
|
+
width: 1,
|
|
765
|
+
type: 'solid',
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
itemStyle: {
|
|
769
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
770
|
+
borderWidth: 1,
|
|
771
|
+
},
|
|
772
|
+
left: '10%',
|
|
773
|
+
right: '10%',
|
|
774
|
+
width: '80%',
|
|
775
|
+
data,
|
|
776
|
+
},
|
|
777
|
+
],
|
|
618
778
|
};
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}, _KupEchart_createChart = async function _KupEchart_createChart() {
|
|
634
|
-
__classPrivateFieldSet(this, _KupEchart_sortedDataset, null, "f");
|
|
635
|
-
let options = null;
|
|
636
|
-
const firstType = this.types[0];
|
|
637
|
-
switch (firstType) {
|
|
638
|
-
case KupEchartTypes.GAUSSIAN:
|
|
639
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setGaussianOptions).call(this);
|
|
640
|
-
break;
|
|
641
|
-
case KupEchartTypes.MAP:
|
|
642
|
-
let stringifiedMap = '';
|
|
643
|
-
if (this.map) {
|
|
644
|
-
if (this.map.features) {
|
|
645
|
-
stringifiedMap = JSON.stringify(this.map);
|
|
779
|
+
}, _KupEchart_radarChart = function _KupEchart_radarChart() {
|
|
780
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
781
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
782
|
+
const data = [], transposedData = [], transposedIndicator = [];
|
|
783
|
+
for (const [_index, values] of x.entries()) {
|
|
784
|
+
data.push({ name: values, value: [] });
|
|
785
|
+
}
|
|
786
|
+
for (const key in y) {
|
|
787
|
+
transposedData.push({
|
|
788
|
+
name: key,
|
|
789
|
+
value: y[key],
|
|
790
|
+
});
|
|
791
|
+
for (const values in y[key]) {
|
|
792
|
+
data[values].value.push(y[key][values]);
|
|
646
793
|
}
|
|
647
|
-
|
|
648
|
-
|
|
794
|
+
}
|
|
795
|
+
for (let index = 0; index < data.length; index++) {
|
|
796
|
+
const dataEl = data[index];
|
|
797
|
+
const key = dataEl.name;
|
|
798
|
+
const foundEl = transposedIndicator.find((d) => d.name === key);
|
|
799
|
+
const max = Math.floor(Math.max(...dataEl.value) * 1.05);
|
|
800
|
+
if (!foundEl) {
|
|
801
|
+
transposedIndicator.push({
|
|
802
|
+
name: key,
|
|
803
|
+
max,
|
|
804
|
+
});
|
|
649
805
|
}
|
|
650
806
|
else {
|
|
651
|
-
|
|
807
|
+
foundEl.max = foundEl.max > max ? foundEl.max : max;
|
|
652
808
|
}
|
|
653
|
-
}
|
|
654
|
-
if (!stringifiedMap) {
|
|
655
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, "Couldn't fetch map JSON.", KupDebugCategory.WARNING);
|
|
656
|
-
return;
|
|
657
|
-
}
|
|
658
|
-
echarts.registerMap(this.rootElement.id ? this.rootElement.id : '', stringifiedMap);
|
|
659
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setMapOptions).call(this, stringifiedMap);
|
|
660
|
-
break;
|
|
661
|
-
case KupEchartTypes.PIE:
|
|
662
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setPieOptions).call(this);
|
|
663
|
-
break;
|
|
664
|
-
case KupEchartTypes.FUNNEL:
|
|
665
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_funnelChart).call(this);
|
|
666
|
-
break;
|
|
667
|
-
case KupEchartTypes.RADAR:
|
|
668
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
669
|
-
break;
|
|
670
|
-
case KupEchartTypes.BUBBLE:
|
|
671
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
672
|
-
break;
|
|
673
|
-
case KupEchartTypes.SANKEY:
|
|
674
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
675
|
-
break;
|
|
676
|
-
case KupEchartTypes.CANDLE:
|
|
677
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_candleChart).call(this);
|
|
678
|
-
break;
|
|
679
|
-
case KupEchartTypes.CALENDAR:
|
|
680
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_calendarChart).call(this);
|
|
681
|
-
break;
|
|
682
|
-
default:
|
|
683
|
-
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
684
|
-
break;
|
|
685
|
-
}
|
|
686
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
687
|
-
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
688
|
-
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
689
|
-
title: e.seriesName,
|
|
690
|
-
})[0];
|
|
691
|
-
let row = null;
|
|
692
|
-
if (e.seriesType === 'map') {
|
|
693
|
-
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
694
|
-
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
695
|
-
})[0];
|
|
696
809
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
810
|
+
return {
|
|
811
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
812
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
813
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
814
|
+
radar: {
|
|
815
|
+
indicator: transposedIndicator,
|
|
816
|
+
},
|
|
817
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
818
|
+
series: [
|
|
819
|
+
{
|
|
820
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
821
|
+
name: this.axis,
|
|
822
|
+
})[0].title,
|
|
823
|
+
type: 'radar',
|
|
824
|
+
data: transposedData,
|
|
825
|
+
},
|
|
826
|
+
],
|
|
827
|
+
};
|
|
828
|
+
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
829
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
830
|
+
let year = [];
|
|
831
|
+
const content = this.data.columns.map((data) => data.title);
|
|
832
|
+
if (content && content.length) {
|
|
833
|
+
for (let i = 0; i < y[content[0]].length; i++) {
|
|
834
|
+
const arr = [];
|
|
835
|
+
for (let j = 0; j < content.length; j++) {
|
|
836
|
+
arr.push(y[content[j]][i]);
|
|
837
|
+
// last value always be a year
|
|
838
|
+
if (j === content.length - 1) {
|
|
839
|
+
year.push(y[content[j]][i]);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
temp.push(arr);
|
|
843
|
+
}
|
|
702
844
|
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
845
|
+
year = [...new Set(year)];
|
|
846
|
+
year.forEach((e, i) => {
|
|
847
|
+
let k = [];
|
|
848
|
+
temp.forEach((data) => {
|
|
849
|
+
if (data.includes(e))
|
|
850
|
+
k.push(data);
|
|
851
|
+
});
|
|
852
|
+
data.push(k);
|
|
853
|
+
legend[e] = i;
|
|
710
854
|
});
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
if (value > highest) {
|
|
731
|
-
highest = value;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
for (const key in cellsSum) {
|
|
735
|
-
const value = cellsSum[key];
|
|
736
|
-
data.push({
|
|
737
|
-
name: key,
|
|
738
|
-
value: ((100 * value) / highest).toFixed(2),
|
|
855
|
+
data.forEach((el, i) => {
|
|
856
|
+
series.push({
|
|
857
|
+
name: year[i],
|
|
858
|
+
data: el,
|
|
859
|
+
type: 'scatter',
|
|
860
|
+
symbolSize: function (data) {
|
|
861
|
+
return Math.sqrt(data[2]) / 5e2;
|
|
862
|
+
},
|
|
863
|
+
emphasis: {
|
|
864
|
+
focus: 'series',
|
|
865
|
+
label: {
|
|
866
|
+
show: true,
|
|
867
|
+
formatter: function (param) {
|
|
868
|
+
return param.data[3];
|
|
869
|
+
},
|
|
870
|
+
position: 'top',
|
|
871
|
+
},
|
|
872
|
+
},
|
|
873
|
+
});
|
|
739
874
|
});
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
875
|
+
return {
|
|
876
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
877
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
878
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
879
|
+
const name = value.data;
|
|
880
|
+
const data = content.map((e, i) => {
|
|
881
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
882
|
+
});
|
|
883
|
+
let showContent = '';
|
|
884
|
+
data.forEach((r) => {
|
|
885
|
+
showContent += r;
|
|
886
|
+
});
|
|
887
|
+
return `<ul>${showContent}</ul> `;
|
|
888
|
+
} }),
|
|
889
|
+
xAxis: {
|
|
890
|
+
splitLine: {
|
|
891
|
+
lineStyle: {
|
|
892
|
+
type: 'dashed',
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
},
|
|
896
|
+
yAxis: {
|
|
897
|
+
splitLine: {
|
|
898
|
+
lineStyle: {
|
|
899
|
+
type: 'dashed',
|
|
900
|
+
},
|
|
901
|
+
},
|
|
902
|
+
scale: true,
|
|
761
903
|
},
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
904
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
905
|
+
series: series,
|
|
906
|
+
};
|
|
907
|
+
}, _KupEchart_sankeyChart = function _KupEchart_sankeyChart() {
|
|
908
|
+
const links = [], y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), keys = Object.keys(y);
|
|
909
|
+
// Assuming all arrays in the question object have the same length
|
|
910
|
+
const arrayLength = y[keys[0]].length;
|
|
911
|
+
for (let i = 0; i < arrayLength; i++) {
|
|
912
|
+
const entry = {};
|
|
913
|
+
entry['source'] = y[keys[0]][i];
|
|
914
|
+
entry['target'] = y[keys[1]][i];
|
|
915
|
+
entry['value'] = parseInt(y[keys[2]][i]);
|
|
916
|
+
links.push(entry);
|
|
917
|
+
}
|
|
918
|
+
const data = Array.from(new Set([
|
|
919
|
+
...links.map((link) => link.source),
|
|
920
|
+
...links.map((link) => link.target),
|
|
921
|
+
])).map((name) => ({ name }));
|
|
922
|
+
const legend = {};
|
|
923
|
+
data.forEach((e, i) => {
|
|
924
|
+
legend[e.name] = i;
|
|
925
|
+
});
|
|
926
|
+
return {
|
|
927
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
928
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
929
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
930
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
931
|
+
series: {
|
|
932
|
+
type: 'sankey',
|
|
933
|
+
layout: 'none',
|
|
934
|
+
emphasis: {
|
|
935
|
+
focus: 'adjacency',
|
|
936
|
+
},
|
|
937
|
+
data,
|
|
938
|
+
links,
|
|
939
|
+
right: '10%',
|
|
940
|
+
left: '10%',
|
|
767
941
|
},
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
942
|
+
};
|
|
943
|
+
}, _KupEchart_candleChart = function _KupEchart_candleChart() {
|
|
944
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), answer = [], itemStyle = {
|
|
945
|
+
color: 'red',
|
|
946
|
+
borderColor: 'red',
|
|
947
|
+
color0: 'green',
|
|
948
|
+
borderColor0: 'green',
|
|
949
|
+
};
|
|
950
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
951
|
+
get: function (target, prop) {
|
|
952
|
+
// Convert the property name to lowercase
|
|
953
|
+
const lowercaseProp = prop.toLowerCase();
|
|
954
|
+
// Search for the property case-insensitively
|
|
955
|
+
for (let key in target) {
|
|
956
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
957
|
+
return target[key];
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
// Property not found, return undefined
|
|
961
|
+
return undefined;
|
|
771
962
|
},
|
|
772
|
-
left: '10%',
|
|
773
|
-
right: '10%',
|
|
774
|
-
width: '80%',
|
|
775
|
-
data,
|
|
776
|
-
},
|
|
777
|
-
],
|
|
778
|
-
};
|
|
779
|
-
}, _KupEchart_radarChart = function _KupEchart_radarChart() {
|
|
780
|
-
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
781
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
782
|
-
const data = [], transposedData = [], transposedIndicator = [];
|
|
783
|
-
for (const [_index, values] of x.entries()) {
|
|
784
|
-
data.push({ name: values, value: [] });
|
|
785
|
-
}
|
|
786
|
-
for (const key in y) {
|
|
787
|
-
transposedData.push({
|
|
788
|
-
name: key,
|
|
789
|
-
value: y[key],
|
|
790
963
|
});
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
const max = Math.floor(Math.max(...dataEl.value) * 1.05);
|
|
800
|
-
if (!foundEl) {
|
|
801
|
-
transposedIndicator.push({
|
|
802
|
-
name: key,
|
|
803
|
-
max,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
else {
|
|
807
|
-
foundEl.max = foundEl.max > max ? foundEl.max : max;
|
|
964
|
+
const date = caseInsensitiveObj['date'];
|
|
965
|
+
for (let i = 0; i < caseInsensitiveObj['Open'].length; i++) {
|
|
966
|
+
answer.push([
|
|
967
|
+
parseInt(caseInsensitiveObj['close'][i]),
|
|
968
|
+
parseInt(caseInsensitiveObj['Open'][i]),
|
|
969
|
+
parseInt(caseInsensitiveObj['Low'][i]),
|
|
970
|
+
parseInt(caseInsensitiveObj['High'][i]),
|
|
971
|
+
]);
|
|
808
972
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
813
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
814
|
-
radar: {
|
|
815
|
-
indicator: transposedIndicator,
|
|
816
|
-
},
|
|
817
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
818
|
-
series: [
|
|
819
|
-
{
|
|
820
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
821
|
-
name: this.axis,
|
|
822
|
-
})[0].title,
|
|
823
|
-
type: 'radar',
|
|
824
|
-
data: transposedData,
|
|
825
|
-
},
|
|
826
|
-
],
|
|
827
|
-
};
|
|
828
|
-
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
829
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
830
|
-
let year = [];
|
|
831
|
-
const content = this.data.columns.map((data) => data.title);
|
|
832
|
-
if (content && content.length) {
|
|
833
|
-
for (let i = 0; i < y[content[0]].length; i++) {
|
|
834
|
-
const arr = [];
|
|
835
|
-
for (let j = 0; j < content.length; j++) {
|
|
836
|
-
arr.push(y[content[j]][i]);
|
|
837
|
-
// last value always be a year
|
|
838
|
-
if (j === content.length - 1) {
|
|
839
|
-
year.push(y[content[j]][i]);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
temp.push(arr);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
year = [...new Set(year)];
|
|
846
|
-
year.forEach((e, i) => {
|
|
847
|
-
let k = [];
|
|
848
|
-
temp.forEach((data) => {
|
|
849
|
-
if (data.includes(e))
|
|
850
|
-
k.push(data);
|
|
973
|
+
let legend = {};
|
|
974
|
+
date.forEach((e, i) => {
|
|
975
|
+
legend[e] = i;
|
|
851
976
|
});
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
977
|
+
return {
|
|
978
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
979
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
980
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
981
|
+
xAxis: {
|
|
982
|
+
data: date,
|
|
983
|
+
},
|
|
984
|
+
yAxis: {},
|
|
985
|
+
series: [
|
|
986
|
+
{
|
|
987
|
+
type: 'candlestick',
|
|
988
|
+
data: answer,
|
|
989
|
+
itemStyle: itemStyle,
|
|
990
|
+
},
|
|
991
|
+
],
|
|
992
|
+
};
|
|
993
|
+
}, _KupEchart_calendarChart = function _KupEchart_calendarChart() {
|
|
994
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
995
|
+
let caseInsensitiveObj = new Proxy(y, {
|
|
996
|
+
get: function (target, prop) {
|
|
997
|
+
// Convert the property name to lowercase
|
|
998
|
+
const lowercaseProp = prop.toLowerCase();
|
|
999
|
+
// Search for the property case-insensitively
|
|
1000
|
+
for (let key in target) {
|
|
1001
|
+
if (key.toLowerCase() === lowercaseProp) {
|
|
1002
|
+
return target[key];
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
// Property not found, return undefined
|
|
1006
|
+
return undefined;
|
|
871
1007
|
},
|
|
872
|
-
},
|
|
873
1008
|
});
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1009
|
+
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
1010
|
+
date.forEach((element, i) => {
|
|
1011
|
+
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
1012
|
+
});
|
|
1013
|
+
return {
|
|
1014
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
1015
|
+
const name = value.data;
|
|
1016
|
+
const data = keys.map((e, i) => {
|
|
1017
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
1018
|
+
});
|
|
1019
|
+
let showContent = '';
|
|
1020
|
+
data.forEach((r) => {
|
|
1021
|
+
showContent += r;
|
|
1022
|
+
});
|
|
1023
|
+
return `<ul>${showContent}</ul> `;
|
|
1024
|
+
} }),
|
|
1025
|
+
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
1026
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1027
|
+
visualMap: {
|
|
1028
|
+
show: false,
|
|
1029
|
+
min: 0,
|
|
1030
|
+
max: 10000,
|
|
893
1031
|
},
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1032
|
+
calendar: {
|
|
1033
|
+
range: year,
|
|
1034
|
+
itemStyle: {
|
|
1035
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1036
|
+
},
|
|
1037
|
+
dayLabel: {
|
|
1038
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1039
|
+
},
|
|
1040
|
+
yearLabel: {
|
|
1041
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1042
|
+
},
|
|
1043
|
+
monthLabel: {
|
|
1044
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1045
|
+
},
|
|
1046
|
+
splitLine: {
|
|
1047
|
+
show: true,
|
|
1048
|
+
lineStyle: {
|
|
1049
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1050
|
+
},
|
|
1051
|
+
},
|
|
900
1052
|
},
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
series: series,
|
|
906
|
-
};
|
|
907
|
-
}, _KupEchart_sankeyChart = function _KupEchart_sankeyChart() {
|
|
908
|
-
const links = [], y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), keys = Object.keys(y);
|
|
909
|
-
// Assuming all arrays in the question object have the same length
|
|
910
|
-
const arrayLength = y[keys[0]].length;
|
|
911
|
-
for (let i = 0; i < arrayLength; i++) {
|
|
912
|
-
const entry = {};
|
|
913
|
-
entry['source'] = y[keys[0]][i];
|
|
914
|
-
entry['target'] = y[keys[1]][i];
|
|
915
|
-
entry['value'] = parseInt(y[keys[2]][i]);
|
|
916
|
-
links.push(entry);
|
|
917
|
-
}
|
|
918
|
-
const data = Array.from(new Set([
|
|
919
|
-
...links.map((link) => link.source),
|
|
920
|
-
...links.map((link) => link.target),
|
|
921
|
-
])).map((name) => ({ name }));
|
|
922
|
-
const legend = {};
|
|
923
|
-
data.forEach((e, i) => {
|
|
924
|
-
legend[e.name] = i;
|
|
925
|
-
});
|
|
926
|
-
return {
|
|
927
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
928
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
929
|
-
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
930
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
931
|
-
series: {
|
|
932
|
-
type: 'sankey',
|
|
933
|
-
layout: 'none',
|
|
934
|
-
emphasis: {
|
|
935
|
-
focus: 'adjacency',
|
|
936
|
-
},
|
|
937
|
-
data,
|
|
938
|
-
links,
|
|
939
|
-
right: '10%',
|
|
940
|
-
left: '10%',
|
|
941
|
-
},
|
|
942
|
-
};
|
|
943
|
-
}, _KupEchart_candleChart = function _KupEchart_candleChart() {
|
|
944
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), answer = [], itemStyle = {
|
|
945
|
-
color: 'red',
|
|
946
|
-
borderColor: 'red',
|
|
947
|
-
color0: 'green',
|
|
948
|
-
borderColor0: 'green',
|
|
949
|
-
};
|
|
950
|
-
let caseInsensitiveObj = new Proxy(y, {
|
|
951
|
-
get: function (target, prop) {
|
|
952
|
-
// Convert the property name to lowercase
|
|
953
|
-
const lowercaseProp = prop.toLowerCase();
|
|
954
|
-
// Search for the property case-insensitively
|
|
955
|
-
for (let key in target) {
|
|
956
|
-
if (key.toLowerCase() === lowercaseProp) {
|
|
957
|
-
return target[key];
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
// Property not found, return undefined
|
|
961
|
-
return undefined;
|
|
962
|
-
},
|
|
963
|
-
});
|
|
964
|
-
const date = caseInsensitiveObj['date'];
|
|
965
|
-
for (let i = 0; i < caseInsensitiveObj['Open'].length; i++) {
|
|
966
|
-
answer.push([
|
|
967
|
-
parseInt(caseInsensitiveObj['close'][i]),
|
|
968
|
-
parseInt(caseInsensitiveObj['Open'][i]),
|
|
969
|
-
parseInt(caseInsensitiveObj['Low'][i]),
|
|
970
|
-
parseInt(caseInsensitiveObj['High'][i]),
|
|
971
|
-
]);
|
|
972
|
-
}
|
|
973
|
-
let legend = {};
|
|
974
|
-
date.forEach((e, i) => {
|
|
975
|
-
legend[e] = i;
|
|
976
|
-
});
|
|
977
|
-
return {
|
|
978
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
979
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
980
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
981
|
-
xAxis: {
|
|
982
|
-
data: date,
|
|
983
|
-
},
|
|
984
|
-
yAxis: {},
|
|
985
|
-
series: [
|
|
986
|
-
{
|
|
987
|
-
type: 'candlestick',
|
|
988
|
-
data: answer,
|
|
989
|
-
itemStyle: itemStyle,
|
|
990
|
-
},
|
|
991
|
-
],
|
|
992
|
-
};
|
|
993
|
-
}, _KupEchart_calendarChart = function _KupEchart_calendarChart() {
|
|
994
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
995
|
-
let caseInsensitiveObj = new Proxy(y, {
|
|
996
|
-
get: function (target, prop) {
|
|
997
|
-
// Convert the property name to lowercase
|
|
998
|
-
const lowercaseProp = prop.toLowerCase();
|
|
999
|
-
// Search for the property case-insensitively
|
|
1000
|
-
for (let key in target) {
|
|
1001
|
-
if (key.toLowerCase() === lowercaseProp) {
|
|
1002
|
-
return target[key];
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
// Property not found, return undefined
|
|
1006
|
-
return undefined;
|
|
1007
|
-
},
|
|
1008
|
-
});
|
|
1009
|
-
const date = caseInsensitiveObj['Date'], answer = [], keys = Object.keys(y), year = new Date(date[0]).getFullYear(), arrayLength = date.length;
|
|
1010
|
-
date.forEach((element, i) => {
|
|
1011
|
-
answer.push([element, caseInsensitiveObj['Value'][i]]);
|
|
1012
|
-
});
|
|
1013
|
-
return {
|
|
1014
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
1015
|
-
const name = value.data;
|
|
1016
|
-
const data = keys.map((e, i) => {
|
|
1017
|
-
return `<li> ${e}: ${name[i]} </li>`;
|
|
1018
|
-
});
|
|
1019
|
-
let showContent = '';
|
|
1020
|
-
data.forEach((r) => {
|
|
1021
|
-
showContent += r;
|
|
1022
|
-
});
|
|
1023
|
-
return `<ul>${showContent}</ul> `;
|
|
1024
|
-
} }),
|
|
1025
|
-
gradientColor: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
1026
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1027
|
-
visualMap: {
|
|
1028
|
-
show: false,
|
|
1029
|
-
min: 0,
|
|
1030
|
-
max: 10000,
|
|
1031
|
-
},
|
|
1032
|
-
calendar: {
|
|
1033
|
-
range: year,
|
|
1034
|
-
itemStyle: {
|
|
1035
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1036
|
-
},
|
|
1037
|
-
dayLabel: {
|
|
1038
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1039
|
-
},
|
|
1040
|
-
yearLabel: {
|
|
1041
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1042
|
-
},
|
|
1043
|
-
monthLabel: {
|
|
1044
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1045
|
-
},
|
|
1046
|
-
splitLine: {
|
|
1047
|
-
show: true,
|
|
1048
|
-
lineStyle: {
|
|
1049
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1053
|
+
series: {
|
|
1054
|
+
type: 'heatmap',
|
|
1055
|
+
coordinateSystem: 'calendar',
|
|
1056
|
+
data: answer,
|
|
1050
1057
|
},
|
|
1051
|
-
|
|
1052
|
-
},
|
|
1053
|
-
series: {
|
|
1054
|
-
type: 'heatmap',
|
|
1055
|
-
coordinateSystem: 'calendar',
|
|
1056
|
-
data: answer,
|
|
1057
|
-
},
|
|
1058
|
-
};
|
|
1058
|
+
};
|
|
1059
1059
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1060
|
+
const x = [];
|
|
1061
|
+
if (!dataset)
|
|
1062
|
+
dataset = this.data;
|
|
1063
|
+
if (!this.axis) {
|
|
1064
|
+
for (let i = 0; i < dataset.rows.length; i++) {
|
|
1065
|
+
const cells = dataset.rows[i].cells;
|
|
1066
|
+
const treatedCells = {};
|
|
1067
|
+
for (const key in cells) {
|
|
1068
|
+
const cell = cells[key];
|
|
1069
|
+
const title = getColumnByName(dataset.columns, key).title;
|
|
1070
|
+
treatedCells[title] = cell;
|
|
1071
|
+
}
|
|
1072
|
+
if (treatedCells[0]) {
|
|
1073
|
+
x.push(treatedCells[0].value);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1075
1076
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1077
|
+
else {
|
|
1078
|
+
for (let i = 0; i < dataset.rows.length; i++) {
|
|
1079
|
+
const cells = dataset.rows[i].cells;
|
|
1080
|
+
const treatedCells = {};
|
|
1081
|
+
const title = getColumnByName(dataset.columns, this.axis).title;
|
|
1082
|
+
treatedCells[title] = cells[this.axis];
|
|
1083
|
+
x.push(treatedCells[title].value);
|
|
1084
|
+
}
|
|
1084
1085
|
}
|
|
1085
|
-
|
|
1086
|
-
return x;
|
|
1086
|
+
return x;
|
|
1087
1087
|
}, _KupEchart_createY = function _KupEchart_createY() {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1088
|
+
const y = {};
|
|
1089
|
+
if (this.series && this.series.length > 0) {
|
|
1090
|
+
for (const row of this.data.rows) {
|
|
1091
|
+
for (const key of Object.keys(row.cells)) {
|
|
1092
|
+
if (key != this.axis) {
|
|
1093
|
+
if (this.series.includes(key)) {
|
|
1094
|
+
const cell = row.cells[key];
|
|
1095
|
+
const value = cell.value;
|
|
1096
|
+
const column = getColumnByName(this.data.columns, key);
|
|
1097
|
+
if (column) {
|
|
1098
|
+
const title = column.title;
|
|
1099
|
+
if (!y[title]) {
|
|
1100
|
+
y[title] = [];
|
|
1101
|
+
}
|
|
1102
|
+
y[title].push(value);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1103
1106
|
}
|
|
1104
|
-
}
|
|
1105
1107
|
}
|
|
1106
|
-
}
|
|
1107
1108
|
}
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1109
|
+
else {
|
|
1110
|
+
for (const row of this.data.rows) {
|
|
1111
|
+
for (const key of Object.keys(row.cells)) {
|
|
1112
|
+
if (key !== this.axis) {
|
|
1113
|
+
const cell = row.cells[key];
|
|
1114
|
+
const value = cell.value;
|
|
1115
|
+
const column = getColumnByName(this.data.columns, key);
|
|
1116
|
+
if (column) {
|
|
1117
|
+
const title = column.title;
|
|
1118
|
+
if (!y[title]) {
|
|
1119
|
+
y[title] = [];
|
|
1120
|
+
}
|
|
1121
|
+
y[title].push(value);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1120
1124
|
}
|
|
1121
|
-
y[title].push(value);
|
|
1122
|
-
}
|
|
1123
1125
|
}
|
|
1124
|
-
}
|
|
1125
1126
|
}
|
|
1126
|
-
|
|
1127
|
-
return y;
|
|
1127
|
+
return y;
|
|
1128
1128
|
}, _KupEchart_setAxisColors = function _KupEchart_setAxisColors() {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
},
|
|
1134
|
-
axisLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") } },
|
|
1135
|
-
axisTick: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
1136
|
-
splitLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
1137
|
-
};
|
|
1138
|
-
}, _KupEchart_setLegend = function _KupEchart_setLegend(y) {
|
|
1139
|
-
if (this.legend === KupEchartLegendPlacement.HIDDEN) {
|
|
1140
|
-
return null;
|
|
1141
|
-
}
|
|
1142
|
-
const data = [];
|
|
1143
|
-
for (let key in y) {
|
|
1144
|
-
data.push(key);
|
|
1145
|
-
}
|
|
1146
|
-
return {
|
|
1147
|
-
data: data,
|
|
1148
|
-
[this.legend]: 0,
|
|
1149
|
-
textStyle: {
|
|
1150
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1151
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1152
|
-
},
|
|
1153
|
-
};
|
|
1154
|
-
}, _KupEchart_setTitle = function _KupEchart_setTitle() {
|
|
1155
|
-
return {
|
|
1156
|
-
text: this.chartTitle ? this.chartTitle.value : undefined,
|
|
1157
|
-
[this.chartTitle && this.chartTitle.position
|
|
1158
|
-
? this.chartTitle.position
|
|
1159
|
-
: 'left']: 0,
|
|
1160
|
-
textStyle: {
|
|
1161
|
-
color: this.chartTitle && this.chartTitle.color
|
|
1162
|
-
? this.chartTitle.color
|
|
1163
|
-
: 'black',
|
|
1164
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1165
|
-
fontSize: this.chartTitle && this.chartTitle.size
|
|
1166
|
-
? this.chartTitle.size
|
|
1167
|
-
: 16,
|
|
1168
|
-
},
|
|
1169
|
-
};
|
|
1170
|
-
}, _KupEchart_setTooltip = function _KupEchart_setTooltip() {
|
|
1171
|
-
return {
|
|
1172
|
-
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1173
|
-
textStyle: {
|
|
1174
|
-
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1175
|
-
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1176
|
-
},
|
|
1177
|
-
};
|
|
1178
|
-
}, _KupEchart_setVisualMap = function _KupEchart_setVisualMap(max, min, colors, hasNumericValues) {
|
|
1179
|
-
const opts = {
|
|
1180
|
-
visualMap: {
|
|
1181
|
-
show: false,
|
|
1182
|
-
},
|
|
1183
|
-
};
|
|
1184
|
-
const colorRange = !hasNumericValues
|
|
1185
|
-
? undefined
|
|
1186
|
-
: colors.length > 0
|
|
1187
|
-
? {
|
|
1188
|
-
inRange: { color: colors },
|
|
1189
|
-
min: min,
|
|
1190
|
-
max: max,
|
|
1191
|
-
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
1192
|
-
}
|
|
1193
|
-
: {
|
|
1194
|
-
inRange: {
|
|
1195
|
-
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
1196
|
-
},
|
|
1197
|
-
min: min,
|
|
1198
|
-
max: max,
|
|
1199
|
-
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
1200
|
-
};
|
|
1201
|
-
if (colorRange) {
|
|
1202
|
-
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
1203
|
-
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
1204
|
-
}, min: min, max: max, show: true });
|
|
1205
|
-
}
|
|
1206
|
-
return opts;
|
|
1207
|
-
}, _KupEchart_setMapOptions = function _KupEchart_setMapOptions(map) {
|
|
1208
|
-
const computedColors = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, 3);
|
|
1209
|
-
const mapJson = JSON.parse(map);
|
|
1210
|
-
const isoA2 = [];
|
|
1211
|
-
const names = [];
|
|
1212
|
-
for (let index = 0; index < mapJson.features.length; index++) {
|
|
1213
|
-
const feature = mapJson.features[index];
|
|
1214
|
-
isoA2.push(feature.properties.iso_a2);
|
|
1215
|
-
names.push(feature.properties.name);
|
|
1216
|
-
}
|
|
1217
|
-
const y = {};
|
|
1218
|
-
let objKey;
|
|
1219
|
-
if (this.axis) {
|
|
1220
|
-
for (const row of this.data.rows) {
|
|
1221
|
-
objKey = row.cells[this.axis].value.trim();
|
|
1222
|
-
if (!y[objKey]) {
|
|
1223
|
-
y[objKey] = [];
|
|
1224
|
-
}
|
|
1225
|
-
for (const key of Object.keys(row.cells)) {
|
|
1226
|
-
const cell = row.cells[key];
|
|
1227
|
-
const value = cell.value.trim();
|
|
1228
|
-
if (!this.axis.includes(key)) {
|
|
1229
|
-
if (this.series &&
|
|
1230
|
-
this.series.length > 0 &&
|
|
1231
|
-
!this.series.includes(key)) {
|
|
1232
|
-
continue;
|
|
1233
|
-
}
|
|
1234
|
-
y[objKey].push(value);
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
const colors = [];
|
|
1240
|
-
const data = [];
|
|
1241
|
-
let hasNumericValues = false;
|
|
1242
|
-
let min = 0;
|
|
1243
|
-
let max = 0;
|
|
1244
|
-
for (let key in y) {
|
|
1245
|
-
let color = null;
|
|
1246
|
-
let n = null;
|
|
1247
|
-
for (let index = 0; index < y[key].length; index++) {
|
|
1248
|
-
const value = y[key][index];
|
|
1249
|
-
const hexColor = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(value).hexColor;
|
|
1250
|
-
if (hexColor) {
|
|
1251
|
-
color = hexColor;
|
|
1252
|
-
}
|
|
1253
|
-
else {
|
|
1254
|
-
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
1255
|
-
if (n > max) {
|
|
1256
|
-
max = n;
|
|
1257
|
-
}
|
|
1258
|
-
if (n < min) {
|
|
1259
|
-
min = n;
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
const keyIsName = names.includes(key);
|
|
1264
|
-
if (n !== null) {
|
|
1265
|
-
data.push({
|
|
1266
|
-
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
1267
|
-
value: n ? n : undefined,
|
|
1268
|
-
});
|
|
1269
|
-
if (color) {
|
|
1270
|
-
colors.push(color);
|
|
1271
|
-
}
|
|
1272
|
-
hasNumericValues = true;
|
|
1273
|
-
}
|
|
1274
|
-
else if (color) {
|
|
1275
|
-
data.push({
|
|
1276
|
-
itemStyle: {
|
|
1277
|
-
color: color,
|
|
1129
|
+
return {
|
|
1130
|
+
axisLabel: {
|
|
1131
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1132
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1278
1133
|
},
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
const tipCb = (params) => {
|
|
1287
|
-
const value = params.value;
|
|
1288
|
-
if (isNaN(value) ||
|
|
1289
|
-
value === null ||
|
|
1290
|
-
value === undefined) {
|
|
1291
|
-
return null;
|
|
1134
|
+
axisLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") } },
|
|
1135
|
+
axisTick: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
1136
|
+
splitLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
1137
|
+
};
|
|
1138
|
+
}, _KupEchart_setLegend = function _KupEchart_setLegend(y) {
|
|
1139
|
+
if (this.legend === KupEchartLegendPlacement.HIDDEN) {
|
|
1140
|
+
return null;
|
|
1292
1141
|
}
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
'</div>');
|
|
1142
|
+
const data = [];
|
|
1143
|
+
for (let key in y) {
|
|
1144
|
+
data.push(key);
|
|
1297
1145
|
}
|
|
1298
|
-
|
|
1299
|
-
let axisColumn = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1300
|
-
name: this.axis,
|
|
1301
|
-
});
|
|
1302
|
-
let serieTitle = axisColumn && axisColumn.length > 0
|
|
1303
|
-
? axisColumn[0].title
|
|
1304
|
-
: 'No title';
|
|
1305
|
-
const echartOption = Object.assign({ emphasis: {
|
|
1306
|
-
label: {
|
|
1307
|
-
show: true,
|
|
1308
|
-
},
|
|
1309
|
-
}, 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: [
|
|
1310
|
-
{
|
|
1146
|
+
return {
|
|
1311
1147
|
data: data,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
areaColor: null,
|
|
1315
|
-
borderWidth: 1.5,
|
|
1316
|
-
},
|
|
1317
|
-
label: {
|
|
1148
|
+
[this.legend]: 0,
|
|
1149
|
+
textStyle: {
|
|
1318
1150
|
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1319
1151
|
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1320
|
-
show: true,
|
|
1321
|
-
},
|
|
1322
|
-
},
|
|
1323
|
-
itemStyle: {
|
|
1324
|
-
areaColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1325
|
-
borderColor: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1326
1152
|
},
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1153
|
+
};
|
|
1154
|
+
}, _KupEchart_setTitle = function _KupEchart_setTitle() {
|
|
1155
|
+
return {
|
|
1156
|
+
text: this.chartTitle ? this.chartTitle.value : undefined,
|
|
1157
|
+
[this.chartTitle && this.chartTitle.position
|
|
1158
|
+
? this.chartTitle.position
|
|
1159
|
+
: 'left']: 0,
|
|
1160
|
+
textStyle: {
|
|
1161
|
+
color: this.chartTitle && this.chartTitle.color
|
|
1162
|
+
? this.chartTitle.color
|
|
1163
|
+
: 'black',
|
|
1164
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1165
|
+
fontSize: this.chartTitle && this.chartTitle.size
|
|
1166
|
+
? this.chartTitle.size
|
|
1167
|
+
: 16,
|
|
1335
1168
|
},
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
areaColor: computedColors[0],
|
|
1342
|
-
},
|
|
1343
|
-
label: {
|
|
1169
|
+
};
|
|
1170
|
+
}, _KupEchart_setTooltip = function _KupEchart_setTooltip() {
|
|
1171
|
+
return {
|
|
1172
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1173
|
+
textStyle: {
|
|
1344
1174
|
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1345
1175
|
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1346
|
-
show: true,
|
|
1347
|
-
},
|
|
1348
1176
|
},
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
1355
|
-
const data = [];
|
|
1356
|
-
for (let key in y) {
|
|
1357
|
-
let sum = 0;
|
|
1358
|
-
for (let j = 0; j < y[key].length; j++) {
|
|
1359
|
-
sum = sum + parseFloat(y[key][j]);
|
|
1360
|
-
}
|
|
1361
|
-
data.push({
|
|
1362
|
-
name: key,
|
|
1363
|
-
value: sum,
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
return {
|
|
1367
|
-
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
1368
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1369
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1370
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
1371
|
-
series: [
|
|
1372
|
-
{
|
|
1373
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1374
|
-
name: this.axis,
|
|
1375
|
-
})[0].title,
|
|
1376
|
-
type: 'pie',
|
|
1377
|
-
data: data,
|
|
1378
|
-
emphasis: {
|
|
1379
|
-
itemStyle: {
|
|
1380
|
-
shadowBlur: 10,
|
|
1381
|
-
shadowOffsetX: 0,
|
|
1382
|
-
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
1383
|
-
},
|
|
1177
|
+
};
|
|
1178
|
+
}, _KupEchart_setVisualMap = function _KupEchart_setVisualMap(max, min, colors, hasNumericValues) {
|
|
1179
|
+
const opts = {
|
|
1180
|
+
visualMap: {
|
|
1181
|
+
show: false,
|
|
1384
1182
|
},
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1183
|
+
};
|
|
1184
|
+
const colorRange = !hasNumericValues
|
|
1185
|
+
? undefined
|
|
1186
|
+
: colors.length > 0
|
|
1187
|
+
? {
|
|
1188
|
+
inRange: { color: colors },
|
|
1189
|
+
min: min,
|
|
1190
|
+
max: max,
|
|
1191
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
1192
|
+
}
|
|
1193
|
+
: {
|
|
1194
|
+
inRange: {
|
|
1195
|
+
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
1196
|
+
},
|
|
1197
|
+
min: min,
|
|
1198
|
+
max: max,
|
|
1199
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
1200
|
+
};
|
|
1201
|
+
if (colorRange) {
|
|
1202
|
+
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
1203
|
+
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
1204
|
+
}, min: min, max: max, show: true });
|
|
1401
1205
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1206
|
+
return opts;
|
|
1207
|
+
}, _KupEchart_setMapOptions = function _KupEchart_setMapOptions(map) {
|
|
1208
|
+
const computedColors = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, 3);
|
|
1209
|
+
const mapJson = JSON.parse(map);
|
|
1210
|
+
const isoA2 = [];
|
|
1211
|
+
const names = [];
|
|
1212
|
+
for (let index = 0; index < mapJson.features.length; index++) {
|
|
1213
|
+
const feature = mapJson.features[index];
|
|
1214
|
+
isoA2.push(feature.properties.iso_a2);
|
|
1215
|
+
names.push(feature.properties.name);
|
|
1404
1216
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1217
|
+
const y = {};
|
|
1218
|
+
let objKey;
|
|
1219
|
+
if (this.axis) {
|
|
1220
|
+
for (const row of this.data.rows) {
|
|
1221
|
+
objKey = row.cells[this.axis].value.trim();
|
|
1222
|
+
if (!y[objKey]) {
|
|
1223
|
+
y[objKey] = [];
|
|
1224
|
+
}
|
|
1225
|
+
for (const key of Object.keys(row.cells)) {
|
|
1226
|
+
const cell = row.cells[key];
|
|
1227
|
+
const value = cell.value.trim();
|
|
1228
|
+
if (!this.axis.includes(key)) {
|
|
1229
|
+
if (this.series &&
|
|
1230
|
+
this.series.length > 0 &&
|
|
1231
|
+
!this.series.includes(key)) {
|
|
1232
|
+
continue;
|
|
1233
|
+
}
|
|
1234
|
+
y[objKey].push(value);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1418
1237
|
}
|
|
1419
|
-
}
|
|
1420
1238
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1239
|
+
const colors = [];
|
|
1240
|
+
const data = [];
|
|
1241
|
+
let hasNumericValues = false;
|
|
1242
|
+
let min = 0;
|
|
1243
|
+
let max = 0;
|
|
1244
|
+
for (let key in y) {
|
|
1245
|
+
let color = null;
|
|
1246
|
+
let n = null;
|
|
1247
|
+
for (let index = 0; index < y[key].length; index++) {
|
|
1248
|
+
const value = y[key][index];
|
|
1249
|
+
const hexColor = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(value).hexColor;
|
|
1250
|
+
if (hexColor) {
|
|
1251
|
+
color = hexColor;
|
|
1252
|
+
}
|
|
1253
|
+
else {
|
|
1254
|
+
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
1255
|
+
if (n > max) {
|
|
1256
|
+
max = n;
|
|
1257
|
+
}
|
|
1258
|
+
if (n < min) {
|
|
1259
|
+
min = n;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
const keyIsName = names.includes(key);
|
|
1264
|
+
if (n !== null) {
|
|
1265
|
+
data.push({
|
|
1266
|
+
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
1267
|
+
value: n ? n : undefined,
|
|
1268
|
+
});
|
|
1269
|
+
if (color) {
|
|
1270
|
+
colors.push(color);
|
|
1271
|
+
}
|
|
1272
|
+
hasNumericValues = true;
|
|
1273
|
+
}
|
|
1274
|
+
else if (color) {
|
|
1275
|
+
data.push({
|
|
1276
|
+
itemStyle: {
|
|
1277
|
+
color: color,
|
|
1278
|
+
},
|
|
1279
|
+
name: keyIsName ? key : names[isoA2.indexOf(key)],
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
__classPrivateFieldGet(this, _KupEchart_mapObj, "f")[keyIsName
|
|
1283
|
+
? names[names.indexOf(key)]
|
|
1284
|
+
: names[isoA2.indexOf(key)]] = key;
|
|
1431
1285
|
}
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
|
|
1286
|
+
const tipCb = (params) => {
|
|
1287
|
+
const value = params.value;
|
|
1288
|
+
if (isNaN(value) ||
|
|
1289
|
+
value === null ||
|
|
1290
|
+
value === undefined) {
|
|
1291
|
+
return null;
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
return ("<div style='min-width: 60px; text-align: center'>" +
|
|
1295
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value) +
|
|
1296
|
+
'</div>');
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
let axisColumn = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1300
|
+
name: this.axis,
|
|
1301
|
+
});
|
|
1302
|
+
let serieTitle = axisColumn && axisColumn.length > 0
|
|
1303
|
+
? axisColumn[0].title
|
|
1304
|
+
: 'No title';
|
|
1305
|
+
const echartOption = Object.assign({ emphasis: {
|
|
1306
|
+
label: {
|
|
1307
|
+
show: true,
|
|
1308
|
+
},
|
|
1309
|
+
}, 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: [
|
|
1310
|
+
{
|
|
1311
|
+
data: data,
|
|
1312
|
+
emphasis: {
|
|
1313
|
+
itemStyle: {
|
|
1314
|
+
areaColor: null,
|
|
1315
|
+
borderWidth: 1.5,
|
|
1316
|
+
},
|
|
1317
|
+
label: {
|
|
1318
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1319
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1320
|
+
show: true,
|
|
1321
|
+
},
|
|
1322
|
+
},
|
|
1323
|
+
itemStyle: {
|
|
1324
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1325
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1326
|
+
},
|
|
1327
|
+
label: {
|
|
1328
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
1329
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f"),
|
|
1330
|
+
borderRadius: 4,
|
|
1331
|
+
borderWidth: 1,
|
|
1332
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1333
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1334
|
+
padding: 4,
|
|
1335
|
+
},
|
|
1336
|
+
map: this.rootElement.id ? this.rootElement.id : '',
|
|
1337
|
+
name: serieTitle,
|
|
1338
|
+
roam: true,
|
|
1339
|
+
select: {
|
|
1340
|
+
itemStyle: {
|
|
1341
|
+
areaColor: computedColors[0],
|
|
1342
|
+
},
|
|
1343
|
+
label: {
|
|
1344
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
1345
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
1346
|
+
show: true,
|
|
1347
|
+
},
|
|
1348
|
+
},
|
|
1349
|
+
type: 'map',
|
|
1350
|
+
},
|
|
1351
|
+
] }, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setVisualMap).call(this, max, min, colors, hasNumericValues));
|
|
1352
|
+
return echartOption;
|
|
1353
|
+
}, _KupEchart_setPieOptions = function _KupEchart_setPieOptions() {
|
|
1354
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
1355
|
+
const data = [];
|
|
1356
|
+
for (let key in y) {
|
|
1357
|
+
let sum = 0;
|
|
1358
|
+
for (let j = 0; j < y[key].length; j++) {
|
|
1359
|
+
sum = sum + parseFloat(y[key][j]);
|
|
1360
|
+
}
|
|
1361
|
+
data.push({
|
|
1362
|
+
name: key,
|
|
1363
|
+
value: sum,
|
|
1364
|
+
});
|
|
1435
1365
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1366
|
+
return {
|
|
1367
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length),
|
|
1368
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1369
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1370
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
1371
|
+
series: [
|
|
1372
|
+
{
|
|
1373
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1374
|
+
name: this.axis,
|
|
1375
|
+
})[0].title,
|
|
1376
|
+
type: 'pie',
|
|
1377
|
+
data: data,
|
|
1378
|
+
emphasis: {
|
|
1379
|
+
itemStyle: {
|
|
1380
|
+
shadowBlur: 10,
|
|
1381
|
+
shadowOffsetX: 0,
|
|
1382
|
+
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
1383
|
+
},
|
|
1384
|
+
},
|
|
1385
|
+
},
|
|
1386
|
+
],
|
|
1387
|
+
};
|
|
1388
|
+
}, _KupEchart_setGaussianOptions = function _KupEchart_setGaussianOptions() {
|
|
1389
|
+
let x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
1390
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
1391
|
+
const series = [];
|
|
1392
|
+
const mixedSeries = this.types.filter((i) => i != KupEchartTypes.GAUSSIAN).length > 0;
|
|
1393
|
+
const needSortDataset = this.types.filter((j) => j != KupEchartTypes.GAUSSIAN).length == 1;
|
|
1394
|
+
__classPrivateFieldSet(this, _KupEchart_gaussianDatasets, {}, "f");
|
|
1395
|
+
let i = 0;
|
|
1396
|
+
const color = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length);
|
|
1397
|
+
for (const key in y) {
|
|
1398
|
+
let type;
|
|
1399
|
+
if (this.types[i]) {
|
|
1400
|
+
type = this.types[i];
|
|
1453
1401
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
: this.data, filters);
|
|
1465
|
-
for (let index = 0; index < rows.length; index++) {
|
|
1466
|
-
const row = rows[index];
|
|
1467
|
-
const cells = row.cells;
|
|
1468
|
-
if (cells[this.axis] || cells[column].title) {
|
|
1469
|
-
let title = '';
|
|
1470
|
-
if (cells[this.axis]) {
|
|
1471
|
-
title = cells[this.axis].value;
|
|
1402
|
+
else {
|
|
1403
|
+
type = KupEchartTypes.GAUSSIAN;
|
|
1404
|
+
}
|
|
1405
|
+
let values = null;
|
|
1406
|
+
const column = this.data.columns.find((col) => col.title === key);
|
|
1407
|
+
if (type == KupEchartTypes.GAUSSIAN) {
|
|
1408
|
+
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
1409
|
+
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.distinct(this.data, [column.name]);
|
|
1410
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getUnivocalValue(newDataset, column);
|
|
1411
|
+
__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column.name] = newDataset;
|
|
1472
1412
|
}
|
|
1473
1413
|
else {
|
|
1474
|
-
|
|
1414
|
+
values = [];
|
|
1415
|
+
for (let index = 0; index < y[key].length; index++) {
|
|
1416
|
+
const element = y[key][index];
|
|
1417
|
+
values.push({ value: element });
|
|
1418
|
+
}
|
|
1475
1419
|
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1420
|
+
}
|
|
1421
|
+
else {
|
|
1422
|
+
if (needSortDataset) {
|
|
1423
|
+
// if there is only one series other than the Gaussian then I apply the sorting algorithm that arranges the data in "mountain"
|
|
1424
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.sort(this.data, 'normalDistribution', column.name), "f");
|
|
1425
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), column);
|
|
1426
|
+
x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this, __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"));
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(this.data, column);
|
|
1482
1430
|
}
|
|
1483
|
-
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
1484
|
-
format += `<span ${style}><strong>${title}</strong>: ${cells[column].value}</span>`;
|
|
1485
|
-
count++;
|
|
1486
|
-
}
|
|
1487
1431
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
if (format === wrapper) {
|
|
1497
|
-
return null;
|
|
1432
|
+
const justValues = new Array();
|
|
1433
|
+
for (let i = 0; i < values.length; i++) {
|
|
1434
|
+
justValues.push(values[i].value);
|
|
1435
|
+
}
|
|
1436
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, justValues, key, color[i], mixedSeries, needSortDataset);
|
|
1437
|
+
i++;
|
|
1498
1438
|
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1439
|
+
// "any" because type is mismanaged inside echarts library
|
|
1440
|
+
const tipCb = (params) => {
|
|
1441
|
+
params.sort((a, b) => a.seriesIndex - b.seriesIndex);
|
|
1442
|
+
const wrapper = '<div style="display: flex; flex-direction: column">';
|
|
1443
|
+
let format = wrapper;
|
|
1444
|
+
let count = 0;
|
|
1445
|
+
for (let index = 0; index < params.length; index++) {
|
|
1446
|
+
const param = params[index];
|
|
1447
|
+
if (this.types[param.seriesIndex] == undefined ||
|
|
1448
|
+
this.types[param.seriesIndex] == KupEchartTypes.GAUSSIAN) {
|
|
1449
|
+
const value = param.value[0];
|
|
1450
|
+
const x = `<div style="color: ${param.color};"><span style="margin-right: 5px;"><strong>x:</strong></span><span>${param.value[0]}</span></div>`;
|
|
1451
|
+
if (!index) {
|
|
1452
|
+
format += x;
|
|
1453
|
+
}
|
|
1454
|
+
const column = this.data.columns.find((col) => col.title === param.seriesName).name;
|
|
1455
|
+
const filters = {
|
|
1456
|
+
columns: [column],
|
|
1457
|
+
range: {
|
|
1458
|
+
max: value + (value / 100) * 50,
|
|
1459
|
+
min: value - (value / 100) * 50,
|
|
1460
|
+
},
|
|
1461
|
+
};
|
|
1462
|
+
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
1463
|
+
? __classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
1464
|
+
: this.data, filters);
|
|
1465
|
+
for (let index = 0; index < rows.length; index++) {
|
|
1466
|
+
const row = rows[index];
|
|
1467
|
+
const cells = row.cells;
|
|
1468
|
+
if (cells[this.axis] || cells[column].title) {
|
|
1469
|
+
let title = '';
|
|
1470
|
+
if (cells[this.axis]) {
|
|
1471
|
+
title = cells[this.axis].value;
|
|
1472
|
+
}
|
|
1473
|
+
else {
|
|
1474
|
+
title = cells[column].title;
|
|
1475
|
+
}
|
|
1476
|
+
const remainder = count % 4;
|
|
1477
|
+
if (!remainder) {
|
|
1478
|
+
if (count) {
|
|
1479
|
+
format += `</div>`;
|
|
1480
|
+
}
|
|
1481
|
+
format += `<div style="display: flex; flex-direction: row;">`;
|
|
1482
|
+
}
|
|
1483
|
+
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
1484
|
+
format += `<span ${style}><strong>${title}</strong>: ${cells[column].value}</span>`;
|
|
1485
|
+
count++;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
if (format !== wrapper)
|
|
1489
|
+
format += '</div>';
|
|
1490
|
+
}
|
|
1491
|
+
else {
|
|
1492
|
+
const style = `style="color: ${param.color}; margin-right: 5px"`;
|
|
1493
|
+
format += `<div ${style}><strong>${param.name}</strong>: ${param.value}</div>`;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
if (format === wrapper) {
|
|
1497
|
+
return null;
|
|
1498
|
+
}
|
|
1499
|
+
else {
|
|
1500
|
+
return format;
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
// list of x-axis, one for the non-Gaussian series which appears on the left and one for the Gaussian series on the right.
|
|
1504
|
+
const xAxisTmp = [
|
|
1505
|
+
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),
|
|
1506
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value', max: 'dataMax', min: 'dataMin' }), this.xAxis),
|
|
1507
|
+
];
|
|
1508
|
+
// list of y-axis, one for the non-Gaussian series which appears at the bottom and one for the Gaussian series at the top.
|
|
1509
|
+
const yAxisTmp = [
|
|
1510
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
1511
|
+
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
1512
|
+
];
|
|
1513
|
+
// If the series are not mixed, then I eliminate the extra axis
|
|
1514
|
+
if (!mixedSeries) {
|
|
1515
|
+
xAxisTmp.splice(0, 1);
|
|
1516
|
+
yAxisTmp.splice(0, 1);
|
|
1501
1517
|
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
1512
|
-
];
|
|
1513
|
-
// If the series are not mixed, then I eliminate the extra axis
|
|
1514
|
-
if (!mixedSeries) {
|
|
1515
|
-
xAxisTmp.splice(0, 1);
|
|
1516
|
-
yAxisTmp.splice(0, 1);
|
|
1517
|
-
}
|
|
1518
|
-
return {
|
|
1519
|
-
color,
|
|
1520
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1521
|
-
series: series,
|
|
1522
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1523
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis', formatter: tipCb }),
|
|
1524
|
-
xAxis: xAxisTmp,
|
|
1525
|
-
yAxis: yAxisTmp,
|
|
1526
|
-
};
|
|
1518
|
+
return {
|
|
1519
|
+
color,
|
|
1520
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1521
|
+
series: series,
|
|
1522
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1523
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis', formatter: tipCb }),
|
|
1524
|
+
xAxis: xAxisTmp,
|
|
1525
|
+
yAxis: yAxisTmp,
|
|
1526
|
+
};
|
|
1527
1527
|
}, _KupEchart_addSeries = function _KupEchart_addSeries(type, series, values, key, color, mixedSeries = false, needSortDataset = false) {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1528
|
+
switch (type) {
|
|
1529
|
+
case KupEchartTypes.GAUSSIAN:
|
|
1530
|
+
series.push({
|
|
1531
|
+
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
1532
|
+
name: key,
|
|
1533
|
+
showSymbol: false,
|
|
1534
|
+
smooth: true,
|
|
1535
|
+
type: 'line',
|
|
1536
|
+
xAxisIndex: mixedSeries ? 1 : 0,
|
|
1537
|
+
yAxisIndex: mixedSeries ? 1 : 0,
|
|
1538
|
+
});
|
|
1539
|
+
break;
|
|
1540
|
+
case KupEchartTypes.BAR:
|
|
1541
|
+
case KupEchartTypes.HBAR:
|
|
1542
|
+
series.push({
|
|
1543
|
+
data: values,
|
|
1544
|
+
name: key,
|
|
1545
|
+
type: 'bar',
|
|
1546
|
+
barWidth: needSortDataset ? '100%' : undefined,
|
|
1547
|
+
});
|
|
1548
|
+
break;
|
|
1549
|
+
case KupEchartTypes.SCATTER:
|
|
1550
|
+
series.push({
|
|
1551
|
+
data: values,
|
|
1552
|
+
name: key,
|
|
1553
|
+
type: 'scatter',
|
|
1554
|
+
});
|
|
1555
|
+
break;
|
|
1556
|
+
case KupEchartTypes.AREA:
|
|
1557
|
+
case KupEchartTypes.LINE:
|
|
1558
|
+
default:
|
|
1559
|
+
series.push({
|
|
1560
|
+
data: values,
|
|
1561
|
+
name: key,
|
|
1562
|
+
type: 'line',
|
|
1563
|
+
areaStyle: type === KupEchartTypes.AREA
|
|
1564
|
+
? {
|
|
1565
|
+
color: new echarts.graphic.LinearGradient(0, 0, 0, 0.25, [
|
|
1566
|
+
{
|
|
1567
|
+
offset: 0,
|
|
1568
|
+
color: `rgba(${__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(color).rgbValues}, 0.375)`,
|
|
1569
|
+
},
|
|
1570
|
+
]),
|
|
1571
|
+
}
|
|
1572
|
+
: undefined,
|
|
1573
|
+
});
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
1576
|
}, _KupEchart_setOptions = function _KupEchart_setOptions() {
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1577
|
+
const x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this);
|
|
1578
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this);
|
|
1579
|
+
let i = 0;
|
|
1580
|
+
const series = [];
|
|
1581
|
+
const color = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, Object.keys(y).length);
|
|
1582
|
+
for (const key in y) {
|
|
1583
|
+
const values = y[key];
|
|
1584
|
+
let type;
|
|
1585
|
+
if (this.types[i]) {
|
|
1586
|
+
type = this.types[i];
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
type = KupEchartTypes.LINE;
|
|
1590
|
+
}
|
|
1591
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, values, key, color[i]);
|
|
1592
|
+
i++;
|
|
1593
|
+
}
|
|
1594
|
+
const isHorizontal = !!(KupEchartTypes.HBAR === this.types[0]);
|
|
1595
|
+
return {
|
|
1596
|
+
color,
|
|
1597
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1598
|
+
series: series,
|
|
1599
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1600
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis' }),
|
|
1601
|
+
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),
|
|
1602
|
+
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),
|
|
1603
|
+
};
|
|
1604
|
+
}, _KupEchart_setColors = function _KupEchart_setColors(requiredNumber) {
|
|
1605
|
+
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
1606
|
+
let key = '--kup-chart-color-';
|
|
1607
|
+
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
1608
|
+
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
1609
|
+
}
|
|
1610
|
+
if (this.colors && this.colors[0]) {
|
|
1611
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
1587
1612
|
}
|
|
1588
1613
|
else {
|
|
1589
|
-
|
|
1614
|
+
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
1615
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
1590
1616
|
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}
|
|
1594
|
-
const isHorizontal = !!(KupEchartTypes.HBAR === this.types[0]);
|
|
1595
|
-
return {
|
|
1596
|
-
color,
|
|
1597
|
-
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
1598
|
-
series: series,
|
|
1599
|
-
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
1600
|
-
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'axis' }),
|
|
1601
|
-
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),
|
|
1602
|
-
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),
|
|
1603
|
-
};
|
|
1604
|
-
}, _KupEchart_setColors = function _KupEchart_setColors(requiredNumber) {
|
|
1605
|
-
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
1606
|
-
let key = '--kup-chart-color-';
|
|
1607
|
-
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
1608
|
-
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
1609
|
-
}
|
|
1610
|
-
if (this.colors && this.colors[0]) {
|
|
1611
|
-
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
1612
|
-
}
|
|
1613
|
-
else {
|
|
1614
|
-
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
1615
|
-
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
1616
|
-
}
|
|
1617
|
-
if (this.colors && this.colors[1]) {
|
|
1618
|
-
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
1619
|
-
}
|
|
1620
|
-
else {
|
|
1621
|
-
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
1622
|
-
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
1623
|
-
}
|
|
1624
|
-
for (let index = colorArray.length; requiredNumber && index < requiredNumber; index++) {
|
|
1625
|
-
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.randomColor(128));
|
|
1626
|
-
}
|
|
1627
|
-
return colorArray;
|
|
1628
|
-
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
1629
|
-
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
1630
|
-
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
1631
|
-
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
1632
|
-
// The first visible and non-numerical column will be used as axis.
|
|
1633
|
-
if (!gaussianCount &&
|
|
1634
|
-
(!this.axis ||
|
|
1635
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1636
|
-
name: this.axis,
|
|
1637
|
-
}).length)) {
|
|
1638
|
-
for (let index = 0; index < this.data.columns.length; index++) {
|
|
1639
|
-
const column = this.data.columns[index];
|
|
1640
|
-
if (column.visible &&
|
|
1641
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
1642
|
-
this.axis = column.name;
|
|
1643
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', KupDebugCategory.WARNING);
|
|
1644
|
-
break;
|
|
1645
|
-
}
|
|
1617
|
+
if (this.colors && this.colors[1]) {
|
|
1618
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
1646
1619
|
}
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
if ((!this.series || !this.series.length) &&
|
|
1651
|
-
gaussianCount === 1 &&
|
|
1652
|
-
nonGaussianCount > 0 &&
|
|
1653
|
-
this.data.columns &&
|
|
1654
|
-
((this.data.columns.length === 1 && !this.axis) ||
|
|
1655
|
-
(this.data.columns.length === 2 && this.axis))) {
|
|
1656
|
-
const series = !this.axis
|
|
1657
|
-
? this.data.columns[0]
|
|
1658
|
-
: this.data.columns.filter((col) => col.name !== this.axis)[0];
|
|
1659
|
-
for (let index = 0; index < this.types.length; index++) {
|
|
1660
|
-
const type = this.types[index];
|
|
1661
|
-
if (type !== KupEchartTypes.GAUSSIAN) {
|
|
1662
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, KupDataNewColumnTypes.DUPLICATE, {
|
|
1663
|
-
columns: [series.name],
|
|
1664
|
-
newColumn: Object.assign(Object.assign({}, series), { name: series.name + '_' + index, title: series.title + ` (${type})` }),
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1620
|
+
else {
|
|
1621
|
+
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
1622
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
1667
1623
|
}
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
// When there are more types than series, new series will be automatically added to match chart types.
|
|
1671
|
-
if (this.series &&
|
|
1672
|
-
this.types &&
|
|
1673
|
-
this.series.length &&
|
|
1674
|
-
this.types.length &&
|
|
1675
|
-
this.data.columns) {
|
|
1676
|
-
if (this.types.length > this.series.length) {
|
|
1677
|
-
const lastSerie = this.series[this.series.length - 1];
|
|
1678
|
-
for (let index = this.series.length; index < this.types.length; index++) {
|
|
1679
|
-
this.series.push(lastSerie);
|
|
1680
|
-
}
|
|
1624
|
+
for (let index = colorArray.length; requiredNumber && index < requiredNumber; index++) {
|
|
1625
|
+
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.randomColor(128));
|
|
1681
1626
|
}
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1627
|
+
return colorArray;
|
|
1628
|
+
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
1629
|
+
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
1630
|
+
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
1631
|
+
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
1632
|
+
// The first visible and non-numerical column will be used as axis.
|
|
1633
|
+
if (!gaussianCount &&
|
|
1634
|
+
(!this.axis ||
|
|
1635
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
1636
|
+
name: this.axis,
|
|
1637
|
+
}).length)) {
|
|
1638
|
+
for (let index = 0; index < this.data.columns.length; index++) {
|
|
1639
|
+
const column = this.data.columns[index];
|
|
1640
|
+
if (column.visible &&
|
|
1641
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
1642
|
+
this.axis = column.name;
|
|
1643
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', KupDebugCategory.WARNING);
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1691
1647
|
}
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
this.
|
|
1704
|
-
|
|
1648
|
+
// Automatically copies columns when there are multiple types and no specified series.
|
|
1649
|
+
// Also 1 types must be GAUSSIAN.
|
|
1650
|
+
if ((!this.series || !this.series.length) &&
|
|
1651
|
+
gaussianCount === 1 &&
|
|
1652
|
+
nonGaussianCount > 0 &&
|
|
1653
|
+
this.data.columns &&
|
|
1654
|
+
((this.data.columns.length === 1 && !this.axis) ||
|
|
1655
|
+
(this.data.columns.length === 2 && this.axis))) {
|
|
1656
|
+
const series = !this.axis
|
|
1657
|
+
? this.data.columns[0]
|
|
1658
|
+
: this.data.columns.filter((col) => col.name !== this.axis)[0];
|
|
1659
|
+
for (let index = 0; index < this.types.length; index++) {
|
|
1660
|
+
const type = this.types[index];
|
|
1661
|
+
if (type !== KupEchartTypes.GAUSSIAN) {
|
|
1662
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, KupDataNewColumnTypes.DUPLICATE, {
|
|
1663
|
+
columns: [series.name],
|
|
1664
|
+
newColumn: Object.assign(Object.assign({}, series), { name: series.name + '_' + index, title: series.title + ` (${type})` }),
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
// Checks for multiple series with the same column name, creating duplicate columns in case they are present.
|
|
1670
|
+
// When there are more types than series, new series will be automatically added to match chart types.
|
|
1671
|
+
if (this.series &&
|
|
1672
|
+
this.types &&
|
|
1673
|
+
this.series.length &&
|
|
1674
|
+
this.types.length &&
|
|
1675
|
+
this.data.columns) {
|
|
1676
|
+
if (this.types.length > this.series.length) {
|
|
1677
|
+
const lastSerie = this.series[this.series.length - 1];
|
|
1678
|
+
for (let index = this.series.length; index < this.types.length; index++) {
|
|
1679
|
+
this.series.push(lastSerie);
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
const occurrences = {};
|
|
1683
|
+
for (let index = 0; index < this.series.length; index++) {
|
|
1684
|
+
const serie = this.series[index];
|
|
1685
|
+
if (Object.keys(occurrences).includes(serie)) {
|
|
1686
|
+
occurrences[serie].push(index);
|
|
1687
|
+
}
|
|
1688
|
+
else {
|
|
1689
|
+
occurrences[serie] = [index];
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
for (const key in occurrences) {
|
|
1693
|
+
const indexes = occurrences[key];
|
|
1694
|
+
for (let index = 1; indexes.length > 1 && index < indexes.length; index++) {
|
|
1695
|
+
const seriesIndex = indexes[index];
|
|
1696
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, { name: this.series[seriesIndex] })[0];
|
|
1697
|
+
const newName = column.name + '_' + index;
|
|
1698
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, KupDataNewColumnTypes.DUPLICATE, {
|
|
1699
|
+
columns: [column.name],
|
|
1700
|
+
newColumn: Object.assign(Object.assign({}, column), { name: newName, title: column.title +
|
|
1701
|
+
` (${this.types[seriesIndex]})` }),
|
|
1702
|
+
});
|
|
1703
|
+
this.series[seriesIndex] = newName;
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1705
1706
|
}
|
|
1706
|
-
}
|
|
1707
1707
|
};
|