@antv/s2-vue 2.1.0-alpha.1 → 2.1.0-alpha.2
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/s2-vue.min.js +1 -1
- package/dist/s2-vue.min.js.map +1 -1
- package/esm/_virtual/_plugin-vue_export-helper.js +11 -0
- package/esm/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/esm/common/constant/options.d.ts +1 -1
- package/esm/common/constant/options.js +9 -6
- package/esm/common/constant/options.js.map +1 -1
- package/esm/components/drill-down/index.vue.d.ts +20 -20
- package/esm/components/drill-down/index.vue.js +75 -197
- package/esm/components/drill-down/index.vue.js.map +1 -1
- package/esm/components/drill-down/index.vue2.js +83 -0
- package/esm/components/drill-down/index.vue2.js.map +1 -0
- package/esm/components/pagination/index.vue.d.ts +4 -4
- package/esm/components/pagination/index.vue.js +29 -82
- package/esm/components/pagination/index.vue.js.map +1 -1
- package/esm/components/pagination/index.vue2.js +39 -0
- package/esm/components/pagination/index.vue2.js.map +1 -0
- package/esm/components/sheets/base-sheet.vue.d.ts +234 -246
- package/esm/components/sheets/base-sheet.vue.js +39 -112
- package/esm/components/sheets/base-sheet.vue.js.map +1 -1
- package/esm/components/sheets/base-sheet.vue2.js +52 -0
- package/esm/components/sheets/base-sheet.vue2.js.map +1 -0
- package/esm/components/sheets/chart-sheet.vue.d.ts +218 -230
- package/esm/components/sheets/chart-sheet.vue.js +15 -111
- package/esm/components/sheets/chart-sheet.vue.js.map +1 -1
- package/esm/components/sheets/chart-sheet.vue2.js +73 -0
- package/esm/components/sheets/chart-sheet.vue2.js.map +1 -0
- package/esm/components/sheets/editable-sheet.vue.js +27 -176
- package/esm/components/sheets/editable-sheet.vue.js.map +1 -1
- package/esm/components/sheets/editable-sheet.vue2.js +130 -0
- package/esm/components/sheets/editable-sheet.vue2.js.map +1 -0
- package/esm/components/sheets/grid-analysis-sheet/custom-cell.js +11 -16
- package/esm/components/sheets/grid-analysis-sheet/custom-cell.js.map +1 -1
- package/esm/components/sheets/grid-analysis-sheet/index.vue.d.ts +218 -230
- package/esm/components/sheets/grid-analysis-sheet/index.vue.js +15 -74
- package/esm/components/sheets/grid-analysis-sheet/index.vue.js.map +1 -1
- package/esm/components/sheets/grid-analysis-sheet/index.vue2.js +43 -0
- package/esm/components/sheets/grid-analysis-sheet/index.vue2.js.map +1 -0
- package/esm/components/sheets/grid-analysis-sheet/theme.d.ts +1 -1
- package/esm/components/sheets/grid-analysis-sheet/theme.js +44 -40
- package/esm/components/sheets/grid-analysis-sheet/theme.js.map +1 -1
- package/esm/components/sheets/index.vue.d.ts +189 -189
- package/esm/components/sheets/index.vue.js +10 -88
- package/esm/components/sheets/index.vue.js.map +1 -1
- package/esm/components/sheets/index.vue2.js +50 -0
- package/esm/components/sheets/index.vue2.js.map +1 -0
- package/esm/components/sheets/pivot-chart-sheet.vue.d.ts +215 -227
- package/esm/components/sheets/pivot-chart-sheet.vue.js +11 -55
- package/esm/components/sheets/pivot-chart-sheet.vue.js.map +1 -1
- package/esm/components/sheets/pivot-chart-sheet.vue2.js +22 -0
- package/esm/components/sheets/pivot-chart-sheet.vue2.js.map +1 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts +217 -229
- package/esm/components/sheets/pivot-sheet.vue.js +14 -105
- package/esm/components/sheets/pivot-sheet.vue.js.map +1 -1
- package/esm/components/sheets/pivot-sheet.vue2.js +92 -0
- package/esm/components/sheets/pivot-sheet.vue2.js.map +1 -0
- package/esm/components/sheets/strategy-sheet/custom-col-cell.d.ts +1 -1
- package/esm/components/sheets/strategy-sheet/custom-col-cell.js +25 -25
- package/esm/components/sheets/strategy-sheet/custom-col-cell.js.map +1 -1
- package/esm/components/sheets/strategy-sheet/custom-data-cell.js +11 -15
- package/esm/components/sheets/strategy-sheet/custom-data-cell.js.map +1 -1
- package/esm/components/sheets/strategy-sheet/custom-data-set.d.ts +1 -1
- package/esm/components/sheets/strategy-sheet/custom-data-set.js +41 -14
- package/esm/components/sheets/strategy-sheet/custom-data-set.js.map +1 -1
- package/esm/components/sheets/strategy-sheet/index.vue.d.ts +208 -220
- package/esm/components/sheets/strategy-sheet/index.vue.js +15 -97
- package/esm/components/sheets/strategy-sheet/index.vue.js.map +1 -1
- package/esm/components/sheets/strategy-sheet/index.vue2.js +65 -0
- package/esm/components/sheets/strategy-sheet/index.vue2.js.map +1 -0
- package/esm/components/sheets/table-sheet.vue.d.ts +188 -188
- package/esm/components/sheets/table-sheet.vue.js +11 -52
- package/esm/components/sheets/table-sheet.vue.js.map +1 -1
- package/esm/components/sheets/table-sheet.vue2.js +19 -0
- package/esm/components/sheets/table-sheet.vue2.js.map +1 -0
- package/esm/components/tooltip/components/detail.vue.d.ts +4 -4
- package/esm/components/tooltip/components/detail.vue.js +26 -45
- package/esm/components/tooltip/components/detail.vue.js.map +1 -1
- package/esm/components/tooltip/components/detail.vue2.js +15 -0
- package/esm/components/tooltip/components/detail.vue2.js.map +1 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts +4 -4
- package/esm/components/tooltip/components/head-info.vue.js +27 -53
- package/esm/components/tooltip/components/head-info.vue.js.map +1 -1
- package/esm/components/tooltip/components/head-info.vue2.js +16 -0
- package/esm/components/tooltip/components/head-info.vue2.js.map +1 -0
- package/esm/components/tooltip/components/infos.vue.d.ts +4 -4
- package/esm/components/tooltip/components/infos.vue.js +12 -40
- package/esm/components/tooltip/components/infos.vue.js.map +1 -1
- package/esm/components/tooltip/components/infos.vue2.js +16 -0
- package/esm/components/tooltip/components/infos.vue2.js.map +1 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts +7 -7
- package/esm/components/tooltip/components/operator/index.vue.js +68 -142
- package/esm/components/tooltip/components/operator/index.vue.js.map +1 -1
- package/esm/components/tooltip/components/operator/index.vue2.js +39 -0
- package/esm/components/tooltip/components/operator/index.vue2.js.map +1 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts +6 -6
- package/esm/components/tooltip/components/operator/menu.vue.js +28 -138
- package/esm/components/tooltip/components/operator/menu.vue.js.map +1 -1
- package/esm/components/tooltip/components/operator/menu.vue2.js +66 -0
- package/esm/components/tooltip/components/operator/menu.vue2.js.map +1 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts +5 -5
- package/esm/components/tooltip/components/operator/title.vue.js +15 -45
- package/esm/components/tooltip/components/operator/title.vue.js.map +1 -1
- package/esm/components/tooltip/components/operator/title.vue2.js +21 -0
- package/esm/components/tooltip/components/operator/title.vue2.js.map +1 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts +4 -4
- package/esm/components/tooltip/components/simple-tips.vue.js +19 -46
- package/esm/components/tooltip/components/simple-tips.vue.js.map +1 -1
- package/esm/components/tooltip/components/simple-tips.vue2.js +16 -0
- package/esm/components/tooltip/components/simple-tips.vue2.js.map +1 -0
- package/esm/components/tooltip/components/summary.vue.d.ts +5 -5
- package/esm/components/tooltip/components/summary.vue.js +34 -62
- package/esm/components/tooltip/components/summary.vue.js.map +1 -1
- package/esm/components/tooltip/components/summary.vue2.js +32 -0
- package/esm/components/tooltip/components/summary.vue2.js.map +1 -0
- package/esm/components/tooltip/custom-tooltip.js +56 -31
- package/esm/components/tooltip/custom-tooltip.js.map +1 -1
- package/esm/components/tooltip/index.vue.d.ts +5 -5
- package/esm/components/tooltip/index.vue.js +50 -116
- package/esm/components/tooltip/index.vue.js.map +1 -1
- package/esm/components/tooltip/index.vue2.js +42 -0
- package/esm/components/tooltip/index.vue2.js.map +1 -0
- package/esm/components/tooltip/interface.d.ts +1 -1
- package/esm/hooks/useEvents.d.ts +3 -3
- package/esm/hooks/useEvents.js +296 -122
- package/esm/hooks/useEvents.js.map +1 -1
- package/esm/hooks/useExpose.d.ts +2 -2
- package/esm/hooks/useExpose.js +14 -11
- package/esm/hooks/useExpose.js.map +1 -1
- package/esm/hooks/useLoading.d.ts +2 -2
- package/esm/hooks/useLoading.js +22 -20
- package/esm/hooks/useLoading.js.map +1 -1
- package/esm/hooks/usePagination.d.ts +16 -16
- package/esm/hooks/usePagination.js +94 -68
- package/esm/hooks/usePagination.js.map +1 -1
- package/esm/hooks/useResize.d.ts +3 -3
- package/esm/hooks/useResize.js +22 -19
- package/esm/hooks/useResize.js.map +1 -1
- package/esm/hooks/useSheetUpdate.d.ts +3 -3
- package/esm/hooks/useSheetUpdate.js +86 -59
- package/esm/hooks/useSheetUpdate.js.map +1 -1
- package/esm/hooks/useSpreadSheet.d.ts +23 -23
- package/esm/hooks/useSpreadSheet.js +89 -61
- package/esm/hooks/useSpreadSheet.js.map +1 -1
- package/esm/icons/calendar-icon.vue.d.ts +1 -1
- package/esm/icons/calendar-icon.vue.js +25 -31
- package/esm/icons/calendar-icon.vue.js.map +1 -1
- package/esm/icons/calendar-icon.vue2.js +8 -0
- package/esm/icons/calendar-icon.vue2.js.map +1 -0
- package/esm/icons/location-icon.vue.d.ts +1 -1
- package/esm/icons/location-icon.vue.js +25 -31
- package/esm/icons/location-icon.vue.js.map +1 -1
- package/esm/icons/location-icon.vue2.js +8 -0
- package/esm/icons/location-icon.vue2.js.map +1 -0
- package/esm/icons/text-icon.vue.d.ts +1 -1
- package/esm/icons/text-icon.vue.js +25 -31
- package/esm/icons/text-icon.vue.js.map +1 -1
- package/esm/icons/text-icon.vue2.js +8 -0
- package/esm/icons/text-icon.vue2.js.map +1 -0
- package/esm/index.d.ts +1 -2
- package/esm/index.js +38 -5
- package/esm/index.js.map +1 -1
- package/esm/interface.d.ts +4 -4
- package/esm/style.css +323 -0
- package/esm/utils/extendLocale.js +2 -2
- package/esm/utils/extendLocale.js.map +1 -1
- package/esm/utils/initPropAndEmits.d.ts +12 -146
- package/esm/utils/initPropAndEmits.js +159 -154
- package/esm/utils/initPropAndEmits.js.map +1 -1
- package/esm/utils/options.d.ts +1 -1
- package/esm/utils/options.js +7 -4
- package/esm/utils/options.js.map +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +10 -0
- package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/lib/common/constant/options.js +8 -8
- package/lib/common/constant/options.js.map +1 -1
- package/lib/components/drill-down/index.vue.js +73 -199
- package/lib/components/drill-down/index.vue.js.map +1 -1
- package/lib/components/drill-down/index.vue2.js +82 -0
- package/lib/components/drill-down/index.vue2.js.map +1 -0
- package/lib/components/pagination/index.vue.js +27 -83
- package/lib/components/pagination/index.vue.js.map +1 -1
- package/lib/components/pagination/index.vue2.js +38 -0
- package/lib/components/pagination/index.vue2.js.map +1 -0
- package/lib/components/sheets/base-sheet.vue.js +37 -114
- package/lib/components/sheets/base-sheet.vue.js.map +1 -1
- package/lib/components/sheets/base-sheet.vue2.js +51 -0
- package/lib/components/sheets/base-sheet.vue2.js.map +1 -0
- package/lib/components/sheets/chart-sheet.vue.js +13 -113
- package/lib/components/sheets/chart-sheet.vue.js.map +1 -1
- package/lib/components/sheets/chart-sheet.vue2.js +72 -0
- package/lib/components/sheets/chart-sheet.vue2.js.map +1 -0
- package/lib/components/sheets/editable-sheet.vue.js +25 -178
- package/lib/components/sheets/editable-sheet.vue.js.map +1 -1
- package/lib/components/sheets/editable-sheet.vue2.js +129 -0
- package/lib/components/sheets/editable-sheet.vue2.js.map +1 -0
- package/lib/components/sheets/grid-analysis-sheet/custom-cell.js +9 -18
- package/lib/components/sheets/grid-analysis-sheet/custom-cell.js.map +1 -1
- package/lib/components/sheets/grid-analysis-sheet/index.vue.js +13 -76
- package/lib/components/sheets/grid-analysis-sheet/index.vue.js.map +1 -1
- package/lib/components/sheets/grid-analysis-sheet/index.vue2.js +42 -0
- package/lib/components/sheets/grid-analysis-sheet/index.vue2.js.map +1 -0
- package/lib/components/sheets/grid-analysis-sheet/theme.js +43 -42
- package/lib/components/sheets/grid-analysis-sheet/theme.js.map +1 -1
- package/lib/components/sheets/index.vue.js +8 -90
- package/lib/components/sheets/index.vue.js.map +1 -1
- package/lib/components/sheets/index.vue2.js +49 -0
- package/lib/components/sheets/index.vue2.js.map +1 -0
- package/lib/components/sheets/pivot-chart-sheet.vue.js +9 -57
- package/lib/components/sheets/pivot-chart-sheet.vue.js.map +1 -1
- package/lib/components/sheets/pivot-chart-sheet.vue2.js +21 -0
- package/lib/components/sheets/pivot-chart-sheet.vue2.js.map +1 -0
- package/lib/components/sheets/pivot-sheet.vue.js +12 -107
- package/lib/components/sheets/pivot-sheet.vue.js.map +1 -1
- package/lib/components/sheets/pivot-sheet.vue2.js +91 -0
- package/lib/components/sheets/pivot-sheet.vue2.js.map +1 -0
- package/lib/components/sheets/strategy-sheet/custom-col-cell.js +23 -27
- package/lib/components/sheets/strategy-sheet/custom-col-cell.js.map +1 -1
- package/lib/components/sheets/strategy-sheet/custom-data-cell.js +9 -17
- package/lib/components/sheets/strategy-sheet/custom-data-cell.js.map +1 -1
- package/lib/components/sheets/strategy-sheet/custom-data-set.js +39 -16
- package/lib/components/sheets/strategy-sheet/custom-data-set.js.map +1 -1
- package/lib/components/sheets/strategy-sheet/index.vue.js +13 -99
- package/lib/components/sheets/strategy-sheet/index.vue.js.map +1 -1
- package/lib/components/sheets/strategy-sheet/index.vue2.js +64 -0
- package/lib/components/sheets/strategy-sheet/index.vue2.js.map +1 -0
- package/lib/components/sheets/table-sheet.vue.js +9 -54
- package/lib/components/sheets/table-sheet.vue.js.map +1 -1
- package/lib/components/sheets/table-sheet.vue2.js +18 -0
- package/lib/components/sheets/table-sheet.vue2.js.map +1 -0
- package/lib/components/tooltip/components/detail.vue.js +24 -46
- package/lib/components/tooltip/components/detail.vue.js.map +1 -1
- package/lib/components/tooltip/components/detail.vue2.js +14 -0
- package/lib/components/tooltip/components/detail.vue2.js.map +1 -0
- package/lib/components/tooltip/components/head-info.vue.js +25 -54
- package/lib/components/tooltip/components/head-info.vue.js.map +1 -1
- package/lib/components/tooltip/components/head-info.vue2.js +15 -0
- package/lib/components/tooltip/components/head-info.vue2.js.map +1 -0
- package/lib/components/tooltip/components/infos.vue.js +10 -41
- package/lib/components/tooltip/components/infos.vue.js.map +1 -1
- package/lib/components/tooltip/components/infos.vue2.js +15 -0
- package/lib/components/tooltip/components/infos.vue2.js.map +1 -0
- package/lib/components/tooltip/components/operator/index.vue.js +66 -144
- package/lib/components/tooltip/components/operator/index.vue.js.map +1 -1
- package/lib/components/tooltip/components/operator/index.vue2.js +38 -0
- package/lib/components/tooltip/components/operator/index.vue2.js.map +1 -0
- package/lib/components/tooltip/components/operator/menu.vue.js +26 -140
- package/lib/components/tooltip/components/operator/menu.vue.js.map +1 -1
- package/lib/components/tooltip/components/operator/menu.vue2.js +65 -0
- package/lib/components/tooltip/components/operator/menu.vue2.js.map +1 -0
- package/lib/components/tooltip/components/operator/title.vue.js +13 -46
- package/lib/components/tooltip/components/operator/title.vue.js.map +1 -1
- package/lib/components/tooltip/components/operator/title.vue2.js +20 -0
- package/lib/components/tooltip/components/operator/title.vue2.js.map +1 -0
- package/lib/components/tooltip/components/simple-tips.vue.js +17 -47
- package/lib/components/tooltip/components/simple-tips.vue.js.map +1 -1
- package/lib/components/tooltip/components/simple-tips.vue2.js +15 -0
- package/lib/components/tooltip/components/simple-tips.vue2.js.map +1 -0
- package/lib/components/tooltip/components/summary.vue.js +32 -63
- package/lib/components/tooltip/components/summary.vue.js.map +1 -1
- package/lib/components/tooltip/components/summary.vue2.js +31 -0
- package/lib/components/tooltip/components/summary.vue2.js.map +1 -0
- package/lib/components/tooltip/custom-tooltip.js +54 -34
- package/lib/components/tooltip/custom-tooltip.js.map +1 -1
- package/lib/components/tooltip/index.vue.js +48 -118
- package/lib/components/tooltip/index.vue.js.map +1 -1
- package/lib/components/tooltip/index.vue2.js +41 -0
- package/lib/components/tooltip/index.vue2.js.map +1 -0
- package/lib/hooks/useEvents.js +293 -123
- package/lib/hooks/useEvents.js.map +1 -1
- package/lib/hooks/useExpose.js +11 -12
- package/lib/hooks/useExpose.js.map +1 -1
- package/lib/hooks/useLoading.js +19 -21
- package/lib/hooks/useLoading.js.map +1 -1
- package/lib/hooks/usePagination.js +91 -69
- package/lib/hooks/usePagination.js.map +1 -1
- package/lib/hooks/useResize.js +19 -20
- package/lib/hooks/useResize.js.map +1 -1
- package/lib/hooks/useSheetUpdate.js +83 -60
- package/lib/hooks/useSheetUpdate.js.map +1 -1
- package/lib/hooks/useSpreadSheet.js +87 -63
- package/lib/hooks/useSpreadSheet.js.map +1 -1
- package/lib/icons/calendar-icon.vue.js +23 -32
- package/lib/icons/calendar-icon.vue.js.map +1 -1
- package/lib/icons/calendar-icon.vue2.js +7 -0
- package/lib/icons/calendar-icon.vue2.js.map +1 -0
- package/lib/icons/location-icon.vue.js +23 -32
- package/lib/icons/location-icon.vue.js.map +1 -1
- package/lib/icons/location-icon.vue2.js +7 -0
- package/lib/icons/location-icon.vue2.js.map +1 -0
- package/lib/icons/text-icon.vue.js +23 -32
- package/lib/icons/text-icon.vue.js.map +1 -1
- package/lib/icons/text-icon.vue2.js +7 -0
- package/lib/icons/text-icon.vue2.js.map +1 -0
- package/lib/index.js +37 -8
- package/lib/index.js.map +1 -1
- package/lib/style.css +323 -0
- package/lib/utils/extendLocale.js +3 -4
- package/lib/utils/extendLocale.js.map +1 -1
- package/lib/utils/initPropAndEmits.js +153 -155
- package/lib/utils/initPropAndEmits.js.map +1 -1
- package/lib/utils/options.js +5 -6
- package/lib/utils/options.js.map +1 -1
- package/package.json +5 -4
- package/esm/common/constant/index.js +0 -2
- package/esm/common/constant/index.js.map +0 -1
- package/esm/components/index.js +0 -19
- package/esm/components/index.js.map +0 -1
- package/esm/components/tooltip/components/operator/index.js +0 -4
- package/esm/components/tooltip/components/operator/index.js.map +0 -1
- package/esm/components/tooltip/interface.js +0 -2
- package/esm/components/tooltip/interface.js.map +0 -1
- package/esm/interface.js +0 -2
- package/esm/interface.js.map +0 -1
- package/lib/common/constant/index.d.ts +0 -1
- package/lib/common/constant/index.js +0 -5
- package/lib/common/constant/index.js.map +0 -1
- package/lib/common/constant/options.d.ts +0 -2
- package/lib/components/drill-down/index.vue.d.ts +0 -126
- package/lib/components/index.d.ts +0 -15
- package/lib/components/index.js +0 -40
- package/lib/components/index.js.map +0 -1
- package/lib/components/pagination/index.vue.d.ts +0 -44
- package/lib/components/sheets/base-sheet.vue.d.ts +0 -401
- package/lib/components/sheets/chart-sheet.vue.d.ts +0 -342
- package/lib/components/sheets/editable-sheet.vue.d.ts +0 -2
- package/lib/components/sheets/grid-analysis-sheet/custom-cell.d.ts +0 -12
- package/lib/components/sheets/grid-analysis-sheet/index.vue.d.ts +0 -333
- package/lib/components/sheets/grid-analysis-sheet/theme.d.ts +0 -4
- package/lib/components/sheets/index.vue.d.ts +0 -261
- package/lib/components/sheets/pivot-chart-sheet.vue.d.ts +0 -330
- package/lib/components/sheets/pivot-sheet.vue.d.ts +0 -332
- package/lib/components/sheets/strategy-sheet/custom-col-cell.d.ts +0 -12
- package/lib/components/sheets/strategy-sheet/custom-data-cell.d.ts +0 -11
- package/lib/components/sheets/strategy-sheet/custom-data-set.d.ts +0 -5
- package/lib/components/sheets/strategy-sheet/index.vue.d.ts +0 -333
- package/lib/components/sheets/table-sheet.vue.d.ts +0 -260
- package/lib/components/tooltip/components/detail.vue.d.ts +0 -6
- package/lib/components/tooltip/components/head-info.vue.d.ts +0 -6
- package/lib/components/tooltip/components/infos.vue.d.ts +0 -6
- package/lib/components/tooltip/components/operator/index.d.ts +0 -3
- package/lib/components/tooltip/components/operator/index.js +0 -13
- package/lib/components/tooltip/components/operator/index.js.map +0 -1
- package/lib/components/tooltip/components/operator/index.vue.d.ts +0 -14
- package/lib/components/tooltip/components/operator/menu.vue.d.ts +0 -21
- package/lib/components/tooltip/components/operator/title.vue.d.ts +0 -10
- package/lib/components/tooltip/components/simple-tips.vue.d.ts +0 -6
- package/lib/components/tooltip/components/summary.vue.d.ts +0 -11
- package/lib/components/tooltip/custom-tooltip.d.ts +0 -6
- package/lib/components/tooltip/index.vue.d.ts +0 -13
- package/lib/components/tooltip/interface.d.ts +0 -8
- package/lib/components/tooltip/interface.js +0 -3
- package/lib/components/tooltip/interface.js.map +0 -1
- package/lib/hooks/useEvents.d.ts +0 -4
- package/lib/hooks/useExpose.d.ts +0 -5
- package/lib/hooks/useLoading.d.ts +0 -6
- package/lib/hooks/usePagination.d.ts +0 -70
- package/lib/hooks/useResize.d.ts +0 -7
- package/lib/hooks/useSheetUpdate.d.ts +0 -13
- package/lib/hooks/useSpreadSheet.d.ts +0 -75
- package/lib/icons/calendar-icon.vue.d.ts +0 -2
- package/lib/icons/location-icon.vue.d.ts +0 -2
- package/lib/icons/text-icon.vue.d.ts +0 -2
- package/lib/index.d.ts +0 -4
- package/lib/interface.d.ts +0 -47
- package/lib/interface.js +0 -3
- package/lib/interface.js.map +0 -1
- package/lib/utils/extendLocale.d.ts +0 -1
- package/lib/utils/initPropAndEmits.d.ts +0 -209
- package/lib/utils/options.d.ts +0 -2
package/dist/s2-vue.min.js
CHANGED
|
@@ -24,5 +24,5 @@ __p += '`),Z&&(w+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+w+`return __p
|
|
27
|
-
}`;var G=ba(function(){return Q(s,D+"return "+w).apply(l,f)});if(G.source=w,Xi(G))throw G;return G}function C1(n){return j(n).toLowerCase()}function E1(n){return j(n).toUpperCase()}function S1(n,e,t){if(n=j(n),n&&(t||e===l))return qo(n);if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Jn(e),s=Zo(r,i),f=Jo(r,i)+1;return ye(r,s,f).join("")}function m1(n,e,t){if(n=j(n),n&&(t||e===l))return n.slice(0,jo(n)+1);if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Jo(r,Jn(e))+1;return ye(r,0,i).join("")}function L1(n,e,t){if(n=j(n),n&&(t||e===l))return n.replace(Xr,"");if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Zo(r,Jn(e));return ye(r,i).join("")}function w1(n,e){var t=_s,r=ds;if(sn(e)){var i="separator"in e?e.separator:i;t="length"in e?z(e.length):t,r="omission"in e?Fn(e.omission):r}n=j(n);var s=n.length;if(Ge(n)){var f=Jn(n);s=f.length}if(t>=s)return n;var p=t-Xe(r);if(p<1)return r;var _=f?ye(f,0,p).join(""):n.slice(0,p);if(i===l)return _+r;if(f&&(p+=_.length-p),Ki(i)){if(n.slice(p).search(i)){var E,S=_;for(i.global||(i=ui(i.source,j(Co.exec(i))+"g")),i.lastIndex=0;E=i.exec(S);)var w=E.index;_=_.slice(0,w===l?p:w)}}else if(n.indexOf(Fn(i),p)!=p){var v=_.lastIndexOf(i);v>-1&&(_=_.slice(0,v))}return _+r}function O1(n){return n=j(n),n&&Ms.test(n)?n.replace(ho,Qf):n}var T1=Qe(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),qi=Wl("toUpperCase");function Ua(n,e,t){return n=j(n),e=t?l:e,e===l?Yf(n)?ec(n):kf(n):n.match(e)||[]}var ba=X(function(n,e){try{return $n(n,l,e)}catch(t){return Xi(t)?t:new U(t)}}),v1=pe(function(n,e){return Wn(e,function(t){t=ie(t),fe(n,t,Hi(n[t],n))}),n});function y1(n){var e=n==null?0:n.length,t=M();return n=e?an(n,function(r){if(typeof r[1]!="function")throw new zn(O);return[t(r[0]),r[1]]}):[],X(function(r){for(var i=-1;++i<e;){var s=n[i];if($n(s[0],this,r))return $n(s[1],this,r)}})}function I1(n){return Qc(Gn(n,y))}function Zi(n){return function(){return n}}function A1(n,e){return n==null||n!==n?e:n}var R1=Hl(),D1=Hl(!0);function Pn(n){return n}function Ji(n){return Sl(typeof n=="function"?n:Gn(n,y))}function B1(n){return Ll(Gn(n,y))}function P1(n,e){return wl(n,Gn(e,y))}var M1=X(function(n,e){return function(t){return Lt(t,n,e)}}),$1=X(function(n,e){return function(t){return Lt(n,t,e)}});function Qi(n,e,t){var r=En(e),i=ir(e,r);t==null&&!(sn(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=ir(e,En(e)));var s=!(sn(t)&&"chain"in t)||!!t.chain,f=_e(n);return Wn(i,function(p){var _=e[p];n[p]=_,f&&(n.prototype[p]=function(){var E=this.__chain__;if(s||E){var S=n(this.__wrapped__),w=S.__actions__=Rn(this.__actions__);return w.push({func:_,args:arguments,thisArg:n}),S.__chain__=E,S}return _.apply(n,me([this.value()],arguments))})}),n}function x1(){return Sn._===this&&(Sn._=ac),this}function ji(){}function F1(n){return n=z(n),X(function(e){return Ol(e,n)})}var N1=Di(an),k1=Di(Go),U1=Di(ei);function Wa(n){return Ni(n)?ti(ie(n)):dp(n)}function b1(n){return function(e){return n==null?l:xe(n,e)}}var W1=Xl(),z1=Xl(!0);function no(){return[]}function eo(){return!1}function H1(){return{}}function G1(){return""}function X1(){return!0}function K1(n,e){if(n=z(n),n<1||n>Ee)return[];var t=ee,r=Ln(n,ee);e=M(e),n-=ee;for(var i=oi(r,e);++t<n;)e(t);return i}function Y1(n){return b(n)?an(n,ie):Nn(n)?[n]:Rn(aa(j(n)))}function V1(n){var e=++oc;return j(n)+e}var q1=fr(function(n,e){return n+e},0),Z1=Bi("ceil"),J1=fr(function(n,e){return n/e},1),Q1=Bi("floor");function j1(n){return n&&n.length?rr(n,Pn,gi):l}function ng(n,e){return n&&n.length?rr(n,M(e,2),gi):l}function eg(n){return Yo(n,Pn)}function tg(n,e){return Yo(n,M(e,2))}function rg(n){return n&&n.length?rr(n,Pn,mi):l}function ig(n,e){return n&&n.length?rr(n,M(e,2),mi):l}var og=fr(function(n,e){return n*e},1),lg=Bi("round"),ag=fr(function(n,e){return n-e},0);function ug(n){return n&&n.length?ii(n,Pn):0}function sg(n,e){return n&&n.length?ii(n,M(e,2)):0}return u.after=B_,u.ary=Ea,u.assign=Ed,u.assignIn=Pa,u.assignInWith=Or,u.assignWith=Sd,u.at=md,u.before=Sa,u.bind=Hi,u.bindAll=v1,u.bindKey=ma,u.castArray=H_,u.chain=da,u.chunk=Qp,u.compact=jp,u.concat=nh,u.cond=y1,u.conforms=I1,u.constant=Zi,u.countBy=u_,u.create=Ld,u.curry=La,u.curryRight=wa,u.debounce=Oa,u.defaults=wd,u.defaultsDeep=Od,u.defer=P_,u.delay=M_,u.difference=eh,u.differenceBy=th,u.differenceWith=rh,u.drop=ih,u.dropRight=oh,u.dropRightWhile=lh,u.dropWhile=ah,u.fill=uh,u.filter=f_,u.flatMap=h_,u.flatMapDeep=__,u.flatMapDepth=d_,u.flatten=ca,u.flattenDeep=sh,u.flattenDepth=fh,u.flip=$_,u.flow=R1,u.flowRight=D1,u.fromPairs=ch,u.functions=Dd,u.functionsIn=Bd,u.groupBy=g_,u.initial=hh,u.intersection=_h,u.intersectionBy=dh,u.intersectionWith=gh,u.invert=Md,u.invertBy=$d,u.invokeMap=E_,u.iteratee=Ji,u.keyBy=S_,u.keys=En,u.keysIn=Bn,u.map=Cr,u.mapKeys=Fd,u.mapValues=Nd,u.matches=B1,u.matchesProperty=P1,u.memoize=Sr,u.merge=kd,u.mergeWith=Ma,u.method=M1,u.methodOf=$1,u.mixin=Qi,u.negate=mr,u.nthArg=F1,u.omit=Ud,u.omitBy=bd,u.once=x_,u.orderBy=m_,u.over=N1,u.overArgs=F_,u.overEvery=k1,u.overSome=U1,u.partial=Gi,u.partialRight=Ta,u.partition=L_,u.pick=Wd,u.pickBy=$a,u.property=Wa,u.propertyOf=b1,u.pull=mh,u.pullAll=ha,u.pullAllBy=Lh,u.pullAllWith=wh,u.pullAt=Oh,u.range=W1,u.rangeRight=z1,u.rearg=N_,u.reject=T_,u.remove=Th,u.rest=k_,u.reverse=Wi,u.sampleSize=y_,u.set=Hd,u.setWith=Gd,u.shuffle=I_,u.slice=vh,u.sortBy=D_,u.sortedUniq=Ph,u.sortedUniqBy=Mh,u.split=h1,u.spread=U_,u.tail=$h,u.take=xh,u.takeRight=Fh,u.takeRightWhile=Nh,u.takeWhile=kh,u.tap=jh,u.throttle=b_,u.thru=gr,u.toArray=Ra,u.toPairs=xa,u.toPairsIn=Fa,u.toPath=Y1,u.toPlainObject=Ba,u.transform=Xd,u.unary=W_,u.union=Uh,u.unionBy=bh,u.unionWith=Wh,u.uniq=zh,u.uniqBy=Hh,u.uniqWith=Gh,u.unset=Kd,u.unzip=zi,u.unzipWith=_a,u.update=Yd,u.updateWith=Vd,u.values=et,u.valuesIn=qd,u.without=Xh,u.words=Ua,u.wrap=z_,u.xor=Kh,u.xorBy=Yh,u.xorWith=Vh,u.zip=qh,u.zipObject=Zh,u.zipObjectDeep=Jh,u.zipWith=Qh,u.entries=xa,u.entriesIn=Fa,u.extend=Pa,u.extendWith=Or,Qi(u,u),u.add=q1,u.attempt=ba,u.camelCase=jd,u.capitalize=Na,u.ceil=Z1,u.clamp=Zd,u.clone=G_,u.cloneDeep=K_,u.cloneDeepWith=Y_,u.cloneWith=X_,u.conformsTo=V_,u.deburr=ka,u.defaultTo=A1,u.divide=J1,u.endsWith=n1,u.eq=jn,u.escape=e1,u.escapeRegExp=t1,u.every=s_,u.find=c_,u.findIndex=sa,u.findKey=Td,u.findLast=p_,u.findLastIndex=fa,u.findLastKey=vd,u.floor=Q1,u.forEach=ga,u.forEachRight=Ca,u.forIn=yd,u.forInRight=Id,u.forOwn=Ad,u.forOwnRight=Rd,u.get=Yi,u.gt=q_,u.gte=Z_,u.has=Pd,u.hasIn=Vi,u.head=pa,u.identity=Pn,u.includes=C_,u.indexOf=ph,u.inRange=Jd,u.invoke=xd,u.isArguments=ke,u.isArray=b,u.isArrayBuffer=J_,u.isArrayLike=Dn,u.isArrayLikeObject=cn,u.isBoolean=Q_,u.isBuffer=Ie,u.isDate=j_,u.isElement=nd,u.isEmpty=ed,u.isEqual=td,u.isEqualWith=rd,u.isError=Xi,u.isFinite=id,u.isFunction=_e,u.isInteger=va,u.isLength=Lr,u.isMap=ya,u.isMatch=od,u.isMatchWith=ld,u.isNaN=ad,u.isNative=ud,u.isNil=fd,u.isNull=sd,u.isNumber=Ia,u.isObject=sn,u.isObjectLike=fn,u.isPlainObject=It,u.isRegExp=Ki,u.isSafeInteger=cd,u.isSet=Aa,u.isString=wr,u.isSymbol=Nn,u.isTypedArray=nt,u.isUndefined=pd,u.isWeakMap=hd,u.isWeakSet=_d,u.join=Ch,u.kebabCase=r1,u.last=Kn,u.lastIndexOf=Eh,u.lowerCase=i1,u.lowerFirst=o1,u.lt=dd,u.lte=gd,u.max=j1,u.maxBy=ng,u.mean=eg,u.meanBy=tg,u.min=rg,u.minBy=ig,u.stubArray=no,u.stubFalse=eo,u.stubObject=H1,u.stubString=G1,u.stubTrue=X1,u.multiply=og,u.nth=Sh,u.noConflict=x1,u.noop=ji,u.now=Er,u.pad=l1,u.padEnd=a1,u.padStart=u1,u.parseInt=s1,u.random=Qd,u.reduce=w_,u.reduceRight=O_,u.repeat=f1,u.replace=c1,u.result=zd,u.round=lg,u.runInContext=h,u.sample=v_,u.size=A_,u.snakeCase=p1,u.some=R_,u.sortedIndex=yh,u.sortedIndexBy=Ih,u.sortedIndexOf=Ah,u.sortedLastIndex=Rh,u.sortedLastIndexBy=Dh,u.sortedLastIndexOf=Bh,u.startCase=_1,u.startsWith=d1,u.subtract=ag,u.sum=ug,u.sumBy=sg,u.template=g1,u.times=K1,u.toFinite=de,u.toInteger=z,u.toLength=Da,u.toLower=C1,u.toNumber=Yn,u.toSafeInteger=Cd,u.toString=j,u.toUpper=E1,u.trim=S1,u.trimEnd=m1,u.trimStart=L1,u.truncate=w1,u.unescape=O1,u.uniqueId=V1,u.upperCase=T1,u.upperFirst=qi,u.each=ga,u.eachRight=Ca,u.first=pa,Qi(u,function(){var n={};return te(u,function(e,t){nn.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=T,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Wn(["drop","take"],function(n,e){V.prototype[n]=function(t){t=t===l?1:Cn(z(t),0);var r=this.__filtered__&&!e?new V(this):this.clone();return r.__filtered__?r.__takeCount__=Ln(t,r.__takeCount__):r.__views__.push({size:Ln(t,ee),type:n+(r.__dir__<0?"Right":"")}),r},V.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Wn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==fo||t==Ss;V.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:M(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Wn(["head","last"],function(n,e){var t="take"+(e?"Right":"");V.prototype[n]=function(){return this[t](1).value()[0]}}),Wn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");V.prototype[n]=function(){return this.__filtered__?new V(this):this[t](1)}}),V.prototype.compact=function(){return this.filter(Pn)},V.prototype.find=function(n){return this.filter(n).head()},V.prototype.findLast=function(n){return this.reverse().find(n)},V.prototype.invokeMap=X(function(n,e){return typeof n=="function"?new V(this):this.map(function(t){return Lt(t,n,e)})}),V.prototype.reject=function(n){return this.filter(mr(M(n)))},V.prototype.slice=function(n,e){n=z(n);var t=this;return t.__filtered__&&(n>0||e<0)?new V(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==l&&(e=z(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},V.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},V.prototype.toArray=function(){return this.take(ee)},te(V.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var f=this.__wrapped__,p=r?[1]:arguments,_=f instanceof V,E=p[0],S=_||b(f),w=function(Y){var Z=i.apply(u,me([Y],p));return r&&v?Z[0]:Z};S&&t&&typeof E=="function"&&E.length!=1&&(_=S=!1);var v=this.__chain__,D=!!this.__actions__.length,$=s&&!v,G=_&&!D;if(!s&&S){f=G?f:new V(this);var x=n.apply(f,p);return x.__actions__.push({func:gr,args:[w],thisArg:l}),new Hn(x,v)}return $&&G?n.apply(this,p):(x=this.thru(w),$?r?x.value()[0]:x.value():x)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(n){var e=zt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(b(s)?s:[],i)}return this[t](function(f){return e.apply(b(f)?f:[],i)})}}),te(V.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";nn.call(qe,r)||(qe[r]=[]),qe[r].push({name:e,func:t})}}),qe[sr(l,tn).name]=[{name:"wrapper",func:l}],V.prototype.clone=Oc,V.prototype.reverse=Tc,V.prototype.value=vc,u.prototype.at=n_,u.prototype.chain=e_,u.prototype.commit=t_,u.prototype.next=r_,u.prototype.plant=o_,u.prototype.reverse=l_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=a_,u.prototype.first=u.prototype.head,_t&&(u.prototype[_t]=i_),u},Ke=tc();De?((De.exports=Ke)._=Ke,Jr._=Ke):Sn._=Ke}).call(ot)}(Dt,Dt.exports);var hn=Dt.exports;const ja=o.defineComponent({name:"TooltipSummary",props:["summaries"],setup(a){return{summaryInfo:o.computed(()=>hn.reduce(a.summaries,(l,T)=>(l.count+=hn.size(T==null?void 0:T.selectedData),(T.value||T.name)&&l.summaries.push(T),l),{count:0,summaries:[]})),i18n:d.i18n,TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS}},components:{}});function nu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary`)},[o.createElementVNode("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-item`)},[o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-selected`)},o.toDisplayString(a.summaryInfo.count)+" "+o.toDisplayString(a.i18n("项")),3),o.createTextVNode(" "+o.toDisplayString(a.i18n("已选择")),1)],2),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.summaryInfo.summaries,O=>(o.openBlock(),o.createElementBlock("div",{key:`${O.name}-${O.value}`,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-item`)},[o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-key`)},o.toDisplayString(O.name)+" ("+o.toDisplayString(a.i18n("总和"))+") ",3),o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-val ${a.TOOLTIP_PREFIX_CLS}-bold`)},o.toDisplayString(O.value),3)],2))),128))],2)}const eu=on(ja,[["render",nu]]),tu=o.defineComponent({name:"TooltipOperatorTitle",props:["menu"],setup(a){const c=o.computed(()=>d.getIcon(a.menu.icon));return{TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS,icon:c}}}),ru=["innerHTML"];function iu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("span",null,[a.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:a.icon,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-icon`)},null,10,ru)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-text`)},o.toDisplayString(a.menu.label),3)])}const to=on(tu,[["render",iu]]),ou=o.defineComponent({name:"TooltipOperatorMenu",props:["menu","cell"],setup(a){const{menu:c,cell:l}=a;return{onMenuTitleClick:()=>{var m,L;(L=(m=a.menu).onClick)==null||L.call(m,c,l)},isEmpty:hn.isEmpty,TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS}},components:{MenuItem:In.Menu.Item,SubMenu:In.Menu.SubMenu,TooltipOperatorTitle:to}});function lu(a,c,l,T,m,L){const O=o.resolveComponent("TooltipOperatorTitle"),R=o.resolveComponent("TooltipOperatorMenu"),B=o.resolveComponent("MenuItem"),H=o.resolveComponent("SubMenu");return o.openBlock(),o.createElementBlock(o.Fragment,null,[a.isEmpty(a.menu.children)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(H,{key:a.menu.key,popupClassName:`${a.TOOLTIP_PREFIX_CLS}-operator-submenu-popup`,onTitleClick:a.onMenuTitleClick},{title:o.withCtx(()=>[o.createVNode(O,{menu:a.menu,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menu.children,A=>{var y;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A.key},[(y=A==null?void 0:A.children)!=null&&y.length?(o.openBlock(),o.createBlock(R,{key:0,menu:A,cell:a.cell},null,8,["menu","cell"])):(o.openBlock(),o.createBlock(B,{title:A.label,key:A.key},{default:o.withCtx(()=>[o.createVNode(O,{menu:A,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),_:2},1032,["title"]))],64)}),128))]),_:1},8,["popupClassName","onTitleClick"])),a.isEmpty(a.menu.children)?(o.openBlock(),o.createBlock(B,{title:a.menu.label,key:a.menu.key},{default:o.withCtx(()=>[o.createVNode(O,{menu:a.menu,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),_:1},8,["title"])):o.createCommentVNode("",!0)],64)}const au=on(ou,[["render",lu]]),uu=o.defineComponent({name:"TooltipOperator",props:["menu","onlyShowOperator","cell"],setup(a){const{menu:c,cell:l}=a,T=L=>{var O;(O=c==null?void 0:c.onClick)==null||O.call(c,L,l)},m=L=>()=>{L==null||L.onClick(L,l)};return{TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS,onMenuClick:T,onMenuTitleClick:m,menus:c==null?void 0:c.items}},components:{Menu:In.Menu,Dropdown:In.Dropdown,TooltipOperatorTitle:to,TooltipOperatorMenu:au}});function su(a,c,l,T,m,L){const O=o.resolveComponent("TooltipOperatorMenu"),R=o.resolveComponent("Menu"),B=o.resolveComponent("TooltipOperatorTitle"),H=o.resolveComponent("Dropdown");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator`)},[a.onlyShowOperator?(o.openBlock(),o.createBlock(R,{key:0,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:a.onMenuClick},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menus,A=>(o.openBlock(),o.createBlock(O,{key:A.key,menu:A,cell:a.cell},null,8,["menu","cell"]))),128))]),_:1},8,["class","onClick"])):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(a.menus,A=>(o.openBlock(),o.createBlock(H,{key:A.key,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-dropdown`)},{overlay:o.withCtx(()=>{var y;return[(y=A==null?void 0:A.children)!=null&&y.length?(o.openBlock(),o.createBlock(R,{key:0,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:a.onMenuClick},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menus,F=>(o.openBlock(),o.createBlock(O,{key:F.key,menu:F,cell:a.cell},null,8,["menu","cell"]))),128))]),_:2},1032,["class","onClick"])):o.createCommentVNode("",!0)]}),default:o.withCtx(()=>[o.createVNode(B,{menu:A,onClick:y=>a.onMenuTitleClick(A)},null,8,["menu","onClick"])]),_:2},1032,["class"]))),128))],2)}const fu=on(uu,[["render",su]]),cu=o.defineComponent({name:"TooltipComponent",props:["data","options","cell","position","event","content"],setup(a){const{operator:c,onlyShowOperator:l}=d.getTooltipDefaultOptions(a.options);return{operator:c,onlyShowOperator:l}},components:{TooltipDetail:rt,TooltipHeadInfo:Ka,TooltipInfos:qa,TooltipSimpleTips:Qa,TooltipSummary:eu,TooltipOperator:fu}});function pu(a,c,l,T,m,L){var F,N,k,J,W,tn,Mn,un,_n,dn,On,An,Vn,Ue;const O=o.resolveComponent("TooltipOperator"),R=o.resolveComponent("TooltipSimpleTips"),B=o.resolveComponent("TooltipSummary"),H=o.resolveComponent("TooltipHeadInfo"),A=o.resolveComponent("TooltipDetail"),y=o.resolveComponent("TooltipInfos");return a.onlyShowOperator?(o.openBlock(),o.createBlock(O,{key:0,menu:(F=a.operator)==null?void 0:F.menu,onlyShowOperator:!0,cell:a.cell},null,8,["menu","cell"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(O,{menu:(N=a.operator)==null?void 0:N.menu,onlyShowOperator:!1,cell:a.cell},null,8,["menu","cell"]),a.content?o.renderSlot(a.$slots,"content",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(R,{name:(k=a.data)==null?void 0:k.name,tips:(J=a.data)==null?void 0:J.tips},null,8,["name","tips"]),(tn=(W=a.data)==null?void 0:W.summaries)!=null&&tn.length?(o.openBlock(),o.createBlock(B,{key:0,summaries:(Mn=a.data)==null?void 0:Mn.summaries},null,8,["summaries"])):o.createCommentVNode("",!0),o.createVNode(H,{rows:((_n=(un=a.data)==null?void 0:un.headInfo)==null?void 0:_n.rows)||[],cols:((On=(dn=a.data)==null?void 0:dn.headInfo)==null?void 0:On.cols)||[]},null,8,["rows","cols"]),o.createVNode(A,{list:((An=a.data)==null?void 0:An.details)||[]},null,8,["list"]),(Vn=a.data)!=null&&Vn.infos?(o.openBlock(),o.createBlock(y,{key:1,infos:(Ue=a.data)==null?void 0:Ue.infos},null,8,["infos"])):o.createCommentVNode("",!0)],64))],64))}const hu=on(cu,[["render",pu]]);class ro extends d.BaseTooltip{constructor(c){super(c)}renderContent(){var R,B;const{tooltip:c}=this.spreadsheet.options,l=this.options,T=this.spreadsheet.getCell((R=l.event)==null?void 0:R.target),m=(B=l.content)!=null?B:c==null?void 0:c.content,L=At(tt({},l),{cell:T,content:m}),O=o.createVNode(hu,L,{content:()=>m});o.render(null,this.container),o.render(O,this.container)}destroy(){super.destroy(),this.container&&o.render(null,this.container)}}const yr=1,Ir=10,_u=(a,c)=>{var A,y;const{options:{pagination:l},showPagination:T}=c,m=o.ref((A=l==null?void 0:l.current)!=null?A:yr),L=o.ref((y=l==null?void 0:l.pageSize)!=null?y:Ir),O=o.ref(0),R=F=>{m.value=F},B=F=>{L.value=F},H=o.computed(()=>T&&!hn.isEmpty(l));return o.watch([m,L],()=>Tr(this,null,function*(){if(!a.value)return;const F=hn.isEmpty(l)?null:{current:m.value,pageSize:L.value};a.value.updatePagination(F),yield a.value.render(!1)})),o.watch([()=>l,a],()=>{var F,N,k,J,W;m.value=(F=l==null?void 0:l.current)!=null?F:yr,L.value=(N=l==null?void 0:l.pageSize)!=null?N:Ir,O.value=(W=(J=(k=a.value)==null?void 0:k.facet)==null?void 0:J.viewCellHeights.getTotalLength())!=null?W:0},{immediate:!0}),o.watch(a,(F,N,k)=>{if(!a.value)return;const J=W=>{hn.isEmpty(l)||(O.value=W.total)};a.value.on(d.S2Event.LAYOUT_PAGINATION,J),k(()=>{var W;(W=a.value)==null||W.off(d.S2Event.LAYOUT_PAGINATION,J)})}),{customOptions:hn.omit(l,["current","pageSize","total"]),visible:H,current:m,pageSize:L,total:O,change:R,showSizeChange:B}},du=`${d.S2_PREFIX_CLS}-pagination`,gu=o.defineComponent({name:"s2-pagination",props:{current:{type:Number,default:yr},total:{type:Number,default:0},pageSize:{type:Number,default:Ir},customOptions:Object},emits:["change","showSizeChange"],setup:a=>({showQuickJumper:o.computed(()=>a.total/a.pageSize>5),PRE_CLASS:du,i18n:d.i18n}),components:{AntDPagination:In.Pagination}});function Cu(a,c,l,T,m,L){const O=o.resolveComponent("AntDPagination");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(a.PRE_CLASS)},[o.createVNode(O,o.mergeProps({size:"small","default-current":1,showSizeChanger:!0,showQuickJumper:a.showQuickJumper},a.customOptions,{current:a.current,total:a.total,pageSize:a.pageSize,onShowSizeChange:c[0]||(c[0]=(R,B)=>a.$emit("showSizeChange",B)),onChange:c[1]||(c[1]=R=>a.$emit("change",R))}),null,16,["showQuickJumper","current","total","pageSize"]),o.createElementVNode("span",{class:o.normalizeClass(`${a.PRE_CLASS}-count`)},o.toDisplayString(a.i18n("共计"))+" "+o.toDisplayString(a.total||" - ")+" "+o.toDisplayString(a.i18n("条")),3)],2)}const Eu=on(gu,[["render",Cu]]),Su={tooltip:{render:a=>new ro(a)}},mu=(...a)=>d.getBaseSheetComponentOptions(Su,...a),q=(a,c,l,T)=>{var L;const m=O=>{const R=d.getBaseCellData(O);c(T,R)};(L=a.value)==null||L.on(l,m)},P=(a,c,l,T)=>{var L;const m=(...O)=>{c(T,...O)};(L=a.value)==null||L.on(l,m)},Lu=(a,c)=>{o.onMounted(()=>{a.value&&(q(a,c,d.S2Event.ROW_CELL_HOVER,"rowCellHover"),q(a,c,d.S2Event.ROW_CELL_CLICK,"rowCellClick"),q(a,c,d.S2Event.ROW_CELL_DOUBLE_CLICK,"rowCellDoubleClick"),q(a,c,d.S2Event.ROW_CELL_CONTEXT_MENU,"rowCellContextMenu"),q(a,c,d.S2Event.ROW_CELL_MOUSE_DOWN,"rowCellMouseDown"),q(a,c,d.S2Event.ROW_CELL_MOUSE_UP,"rowCellMouseUp"),q(a,c,d.S2Event.ROW_CELL_MOUSE_MOVE,"rowCellMouseMove"),P(a,c,d.S2Event.ROW_CELL_COLLAPSED,"rowCellCollapsed"),P(a,c,d.S2Event.ROW_CELL_ALL_COLLAPSED,"rowCellAllCollapsed"),P(a,c,d.S2Event.ROW_CELL_SCROLL,"rowCellScroll"),P(a,c,d.S2Event.ROW_CELL_RENDER,"rowCellRender"),P(a,c,d.S2Event.ROW_CELL_SELECTED,"rowCellSelected"),q(a,c,d.S2Event.COL_CELL_HOVER,"colCellHover"),q(a,c,d.S2Event.COL_CELL_CLICK,"colCellClick"),q(a,c,d.S2Event.COL_CELL_DOUBLE_CLICK,"colCellDoubleClick"),q(a,c,d.S2Event.COL_CELL_CONTEXT_MENU,"colCellContextMenu"),q(a,c,d.S2Event.COL_CELL_MOUSE_DOWN,"colCellMouseDown"),q(a,c,d.S2Event.COL_CELL_MOUSE_UP,"colCellMouseUp"),q(a,c,d.S2Event.COL_CELL_MOUSE_MOVE,"colCellMouseMove"),P(a,c,d.S2Event.COL_CELL_EXPANDED,"colCellExpanded"),P(a,c,d.S2Event.COL_CELL_HIDDEN,"colCellHidden"),P(a,c,d.S2Event.COL_CELL_RENDER,"colCellRender"),P(a,c,d.S2Event.COL_CELL_SELECTED,"colCellSelected"),q(a,c,d.S2Event.DATA_CELL_HOVER,"dataCellHover"),q(a,c,d.S2Event.DATA_CELL_CLICK,"dataCellClick"),q(a,c,d.S2Event.DATA_CELL_DOUBLE_CLICK,"dataCellDoubleClick"),q(a,c,d.S2Event.DATA_CELL_CONTEXT_MENU,"dataCellContextMenu"),q(a,c,d.S2Event.DATA_CELL_MOUSE_DOWN,"dataCellMouseDown"),q(a,c,d.S2Event.DATA_CELL_MOUSE_UP,"dataCellMouseUp"),q(a,c,d.S2Event.DATA_CELL_MOUSE_MOVE,"dataCellMouseMove"),P(a,c,d.S2Event.DATA_CELL_BRUSH_SELECTION,"dataCellBrushSelection"),P(a,c,d.S2Event.DATA_CELL_SELECT_MOVE,"dataCellSelectMove"),P(a,c,d.S2Event.DATA_CELL_RENDER,"dataCellRender"),P(a,c,d.S2Event.DATA_CELL_SELECTED,"dataCellSelected"),q(a,c,d.S2Event.CORNER_CELL_HOVER,"cornerCellHover"),q(a,c,d.S2Event.CORNER_CELL_CLICK,"cornerCellClick"),q(a,c,d.S2Event.CORNER_CELL_DOUBLE_CLICK,"cornerCellDoubleClick"),q(a,c,d.S2Event.CORNER_CELL_CONTEXT_MENU,"cornerCellContextMenu"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_DOWN,"cornerCellMouseDown"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_UP,"cornerCellMouseUp"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_MOVE,"cornerCellMouseMove"),P(a,c,d.S2Event.CORNER_CELL_RENDER,"cornerCellRender"),P(a,c,d.S2Event.CORNER_CELL_SELECTED,"cornerCellSelected"),q(a,c,d.S2Event.MERGED_CELLS_HOVER,"mergedCellsHover"),q(a,c,d.S2Event.MERGED_CELLS_CLICK,"mergedCellsClick"),q(a,c,d.S2Event.MERGED_CELLS_DOUBLE_CLICK,"mergedCellsDoubleClick"),q(a,c,d.S2Event.MERGED_CELLS_CONTEXT_MENU,"mergedCellsContextMenu"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_DOWN,"mergedCellsMouseDown"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_UP,"mergedCellsMouseUp"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_MOVE,"mergedCellsMouseMove"),P(a,c,d.S2Event.MERGED_CELLS_RENDER,"mergedCellsRender"),P(a,c,d.S2Event.SERIES_NUMBER_CELL_RENDER,"seriesNumberCellRender"),P(a,c,d.S2Event.RANGE_SORT,"rangeSort"),P(a,c,d.S2Event.RANGE_SORTED,"rangeSorted"),P(a,c,d.S2Event.RANGE_FILTER,"rangeFilter"),P(a,c,d.S2Event.RANGE_FILTERED,"rangeFiltered"),P(a,c,d.S2Event.LAYOUT_AFTER_HEADER_LAYOUT,"layoutAfterHeaderLayout"),P(a,c,d.S2Event.LAYOUT_PAGINATION,"layoutPagination"),P(a,c,d.S2Event.LAYOUT_BEFORE_RENDER,"beforeRender"),P(a,c,d.S2Event.LAYOUT_AFTER_RENDER,"afterRender"),P(a,c,d.S2Event.LAYOUT_DESTROY,"destroy"),P(a,c,d.S2Event.LAYOUT_RESIZE,"layoutResize"),P(a,c,d.S2Event.LAYOUT_RESIZE_SERIES_WIDTH,"layoutResizeSeriesWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_ROW_WIDTH,"layoutResizeRowWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_ROW_HEIGHT,"layoutResizeRowHeight"),P(a,c,d.S2Event.LAYOUT_RESIZE_COL_WIDTH,"layoutResizeColWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_COL_HEIGHT,"layoutResizeColHeight"),P(a,c,d.S2Event.LAYOUT_RESIZE_TREE_WIDTH,"layoutResizeTreeWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_DOWN,"layoutResizeMouseDown"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_UP,"layoutResizeMouseUp"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_MOVE,"layoutResizeMouseMove"),P(a,c,d.S2Event.GLOBAL_KEYBOARD_DOWN,"keyBoardDown"),P(a,c,d.S2Event.GLOBAL_KEYBOARD_UP,"keyBoardUp"),P(a,c,d.S2Event.GLOBAL_COPIED,"copied"),P(a,c,d.S2Event.GLOBAL_ACTION_ICON_HOVER,"actionIconHover"),P(a,c,d.S2Event.GLOBAL_ACTION_ICON_CLICK,"actionIconClick"),P(a,c,d.S2Event.GLOBAL_CONTEXT_MENU,"contextMenu"),P(a,c,d.S2Event.GLOBAL_HOVER,"mouseHover"),P(a,c,d.S2Event.GLOBAL_CLICK,"click"),P(a,c,d.S2Event.GLOBAL_DOUBLE_CLICK,"doubleClick"),P(a,c,d.S2Event.GLOBAL_SELECTED,"selected"),P(a,c,d.S2Event.GLOBAL_MOUSE_UP,"mouseUp"),P(a,c,d.S2Event.GLOBAL_RESET,"reset"),P(a,c,d.S2Event.GLOBAL_LINK_FIELD_JUMP,"linkFieldJump"),P(a,c,d.S2Event.GLOBAL_SCROLL,"scroll"),P(a,c,d.S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER,"layoutAfterRealDataCellRender"),P(a,c,d.S2Event.ROW_CELL_BRUSH_SELECTION,"rowCellBrushSelection"),P(a,c,d.S2Event.COL_CELL_BRUSH_SELECTION,"colCellBrushSelection"))})},wu=(a,c)=>{var m;const l=o.ref((m=c.value)!=null?m:!1),T=L=>{l.value=L};return o.watch(c,L=>{l.value=L!=null?L:!1}),o.watch(a,L=>{L==null||L.on(d.S2Event.LAYOUT_BEFORE_RENDER,()=>{T(!0)}),L==null||L.on(d.S2Event.LAYOUT_AFTER_RENDER,()=>{T(!1)})}),{loading:l,setLoading:T}},Ou=(a,c,l)=>{const T=o.ref();o.watch([a,()=>c.adaptive],([m,L],O,R)=>{m&&(T.value=d.createResizeObserver({s2:m,adaptive:L,wrapper:l.wrapperRef.value,container:l.containerRef.value}),R(()=>{var B;(B=T.value)==null||B.call(T)}))})},Tu=(a,c,l)=>{const T=o.reactive({rerender:!1,reloadData:!1,rebuildDataset:!1});o.watch(()=>c.options,(m,L)=>{var O,R;T.rerender=!0,Object.is(L==null?void 0:L.hierarchyType,m==null?void 0:m.hierarchyType)||(T.reloadData=!0,T.rebuildDataset=!0),(O=a.value)==null||O.setOptions(m),(R=a.value)==null||R.changeSheetSize(m==null?void 0:m.width,m==null?void 0:m.height)},{deep:o.isProxy(c.options)}),o.watch(()=>c.dataCfg,(m,L)=>{var O,R,B,H,A,y,F;((R=(O=L==null?void 0:L.fields)==null?void 0:O.columns)==null?void 0:R.length)!==((H=(B=m==null?void 0:m.fields)==null?void 0:B.columns)==null?void 0:H.length)&&((y=(A=a.value)==null?void 0:A.facet)==null||y.clearInitColLeafNodes()),T.rerender=!0,T.reloadData=!0,(F=a.value)==null||F.setDataCfg(m)},{deep:o.isProxy(c.dataCfg)}),o.watch(()=>c.themeCfg,m=>{var L;T.rerender=!0,(L=a.value)==null||L.setThemeCfg(m)},{deep:o.isProxy(c.themeCfg)}),o.watch(T,m=>Tr(this,null,function*(){var R,B,H,A,y;if(!m.rerender)return;(R=l==null?void 0:l.before)==null||R.call(l);const L={reloadData:m.reloadData,rebuildDataSet:m.rebuildDataset},O=((B=c==null?void 0:c.onUpdate)==null?void 0:B.call(c,L))||L;yield(H=a.value)==null?void 0:H.render(O),(A=c==null?void 0:c.onUpdateAfterRender)==null||A.call(c,O),(y=l==null?void 0:l.after)==null||y.call(l),m.rerender=!1,m.reloadData=!1,m.rebuildDataset=!1}))};function vu(a,c){const{dataCfg:l,options:T,themeCfg:m,sheetType:L,spreadsheet:O,onMounted:R}=a,B=o.toRef(a,"loading"),H=o.ref(),A=o.ref(),y=o.shallowRef(),{loading:F,setLoading:N}=wu(y,B),k=_u(y,a),J=tn=>{const Mn=o.toRaw(l),un=o.toRaw(T),_n=mu(un);return O?O(tn,Mn,_n):L==="table"||L==="editable"?new d.TableSheet(tn,Mn,_n):new d.PivotSheet(tn,Mn,_n)},W=()=>Tr(this,null,function*(){N(!0),y.value=J(A.value),y.value.setThemeCfg(o.toRaw(m)),yield y.value.render(),N(!1),R==null||R(y.value)});return o.onMounted(W),Lu(y,c),Tu(y,a,{before(){N(!0)},after(){N(!1)}}),Ou(y,a,{wrapperRef:H,containerRef:A}),o.onBeforeUnmount(()=>{var tn;N(!1),(tn=y.value)==null||tn.destroy()}),{wrapperRef:H,containerRef:A,s2Ref:y,loading:F,setLoading:N,pagination:k}}const Ae=()=>({sheetType:String,dataCfg:Object,themeCfg:Object,showPagination:{type:[Object,Boolean],default:!1},loading:Boolean,partDrillDown:Object,header:Object,options:{type:Object,default:{}},adaptive:{type:[Object,Boolean],default:!1},spreadsheet:Function,onMounted:Function,onUpdate:Function,onUpdateAfterRender:Function}),yu=()=>({className:String,title:{type:String,default:d.i18n("选择下钻维度")},searchText:{type:String,default:d.i18n("搜索字段")},clearText:{type:String,default:d.i18n("恢复默认")},extra:Node,dataSet:{type:Array,default:[]},drillFields:Array,disabledFields:Array,getDrillFields:Function,setDrillFields:Function}),Iu=()=>["getDrillFields","setDrillFields"],Au=()=>["spreadsheet","rowCellHover","rowCellClick","rowCellDoubleClick","rowCellContextMenu","rowCellMouseDown","rowCellMouseUp","rowCellMouseMove","rowCellCollapsed","rowCellAllCollapsed","rowCellScroll","colCellHover","colCellClick","colCellDoubleClick","colCellContextMenu","colCellMouseDown","colCellMouseUp","colCellMouseMove","colCellExpanded","colCellHidden","dataCellHover","dataCellClick","dataCellDoubleClick","dataCellContextMenu","dataCellMouseDown","dataCellMouseUp","dataCellMouseMove","dataCellBrushSelection","dataCellSelectMove","cornerCellHover","cornerCellClick","cornerCellDoubleClick","cornerCellContextMenu","cornerCellMouseDown","cornerCellMouseUp","cornerCellMouseMove","mergedCellsHover","mergedCellsClick","mergedCellsDoubleClick","mergedCellsContextMenu","mergedCellsMouseDown","mergedCellsMouseUp","mergedCellsMouseMove","rangeSort","rangeSorted","rangeFilter","rangeFiltered","layoutAfterHeaderLayout","layoutPagination","beforeRender","afterRender","mounted","destroy","layoutResize","layoutResizeSeriesWidth","layoutResizeRowWidth","layoutResizeRowHeight","layoutResizeColWidth","layoutResizeColHeight","layoutResizeTreeWidth","layoutResizeMouseDown","layoutResizeMouseUp","layoutResizeMouseMove","keyBoardDown","keyBoardUp","copied","actionIconHover","actionIconClick","contextMenu","mouseHover","mouseUp","mouseMove","mouseDown","selected","reset","linkFieldJump","click","doubleClick","scroll","hover","layoutAfterRealDataCellRender","rowCellBrushSelection","colCellBrushSelection"],Ru=o.defineComponent({name:"BaseSheet",props:Ae(),emits:Au(),setup(a,c){const{wrapperRef:l,containerRef:T,s2Ref:m,loading:L,pagination:O}=vu(a,c.emit);c.expose({get instance(){return m.value}});const R=H=>{var A,y;a.showPagination&&!hn.isBoolean(a.showPagination)&&((y=(A=a.showPagination).onChange)==null||y.call(A,H)),O.change(H)},B=H=>{var A,y;a.showPagination&&!hn.isBoolean(a.showPagination)&&((y=(A=a.showPagination).onShowSizeChange)==null||y.call(A,H)),O.showSizeChange(H)};return{S2_PREFIX_CLS:d.S2_PREFIX_CLS,wrapperRef:l,containerRef:T,s2Ref:m,loading:L,pagination:O,handlePageChange:R,handlePageSizeChange:B}},components:{Spin:In.Spin,S2Pagination:Eu}});function Du(a,c,l,T,m,L){const O=o.resolveComponent("S2Pagination"),R=o.resolveComponent("Spin");return o.openBlock(),o.createBlock(R,{wrapperClassName:a.S2_PREFIX_CLS+"-spin",spinning:a.loading},{default:o.withCtx(()=>[o.createElementVNode("div",{ref:"wrapperRef",class:o.normalizeClass(a.S2_PREFIX_CLS+"-wrapper")},[o.createElementVNode("div",{ref:"containerRef",class:o.normalizeClass(a.S2_PREFIX_CLS+"-container")},null,2),a.pagination.visible.value?(o.openBlock(),o.createBlock(O,{key:0,current:a.pagination.current.value,pageSize:a.pagination.pageSize.value,total:a.pagination.total.value,customOptions:a.pagination.customOptions,onChange:a.handlePageChange,onShowSizeChange:a.handlePageSizeChange},null,8,["current","pageSize","total","customOptions","onChange","onShowSizeChange"])):o.createCommentVNode("",!0),o.renderSlot(a.$slots,"editCell")],2)]),_:3},8,["wrapperClassName","spinning"])}const Ce=on(Ru,[["render",Du]]),le=a=>{const c=o.shallowRef();return a({get instance(){var l;return(l=c.value)==null?void 0:l.instance}}),c},Bu=o.defineComponent({name:"ChartSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m}=o.toRefs(a),L=o.computed(()=>{const R={style:{rowCell:{width:100},dataCell:{width:400,height:400}},tooltip:{enable:!0}},B={showDefaultHeaderActionIcon:!1,interaction:{hoverFocus:!1,brushSelection:{dataCell:!1}}};return d.customMerge(R,T.value,B)}),O=o.computed(()=>{const R={dataCell:{cell:{interactionState:{hoverFocus:{borderOpacity:0},selected:{borderOpacity:0}}}}};return d.customMerge(R,m==null?void 0:m.value)});return{s2Ref:l,s2Options:L,themeCfg:O}},components:{BaseSheet:Ce}});function Pu(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.themeCfg}),null,16,["options","themeCfg"])}const Ar=on(Bu,[["render",Pu]]);class io extends d.DataCell{drawTextShape(){if(this.isMultiData())return d.drawCustomContent(this);super.drawTextShape()}}const oo=12,lo={dataCell:{text:{fontSize:oo,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 0.85)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},minorText:{fontSize:11,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 0.45)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},derivedMeasureText:{mainUp:"#F46649",mainDown:"#2AA491",minorUp:"#f9ae9e",minorDown:"#a9dad2"},bolderText:{fontSize:oo,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 1)",fontWeight:d.isWindows()?"bold":520,textBaseline:"middle",textAlign:"left"}}},Mu=o.defineComponent({name:"GridAnalysisSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m}=o.toRefs(a),L=o.computed(()=>{const R={dataCell:(B,H)=>new io(B,H),showDefaultHeaderActionIcon:!1,style:{colCell:{hideValue:!0}}};return d.customMerge(T==null?void 0:T.value,R)}),O=o.computed(()=>d.customMerge(m==null?void 0:m.value,{theme:lo}));return{s2Ref:l,s2Options:L,s2ThemeCfg:O}},components:{BaseSheet:Ce}});function $u(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.s2ThemeCfg}),null,16,["options","themeCfg"])}const Rr=on(Mu,[["render",$u]]),xu=o.defineComponent({name:"PivotChartSheet",props:Ae(),emits:[],setup(a,c){return{s2Ref:le(c.expose)}},components:{BaseSheet:Ce}});function Fu(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref"}),null,16)}const Dr=on(xu,[["render",Fu]]),Nu=o.defineComponent({name:"LocationIcon"}),ku={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},Uu=[o.createElementVNode("path",{d:"M511.804 222.338c-57.117 0-105.737 20.061-145.86 60.184-40.122 40.123-60.184 88.569-60.184 145.337 0 56.769 20.062 105.214 60.185 145.337 40.122 40.123 88.742 60.185 145.859 60.185 57.116 0 105.736-20.062 145.859-60.185 40.123-40.123 60.184-88.568 60.184-145.337 0-56.768-20.061-105.214-60.184-145.337-40.123-40.123-88.743-60.184-145.86-60.184z m0 338.619c-36.729 0-68.007-12.925-93.835-38.774-25.827-25.85-38.752-57.127-38.773-93.834-0.022-36.707 12.902-68.16 38.773-94.357 25.872-26.197 57.15-39.285 93.835-39.263 36.685 0.022 67.963 13.11 93.834 39.263 25.871 26.154 38.796 57.606 38.774 94.357-0.022 36.75-12.946 68.028-38.774 93.834-25.828 25.806-57.106 38.73-93.834 38.774z m366.165-295.766c-21.084-42.168-50.327-79.223-87.73-111.165-37.404-31.941-79.898-57.105-127.484-75.491C614.472 60.845 564.155 52 511.804 52c-52.352 0-103.006 8.845-151.963 26.535-46.911 18.364-89.069 43.528-126.472 75.491-37.403 31.964-66.647 69.019-87.731 111.165C123.879 308.71 113 353.923 113 400.835c0 65.95 15.982 132.924 47.945 200.92 26.524 56.441 63.58 112.198 111.165 167.27 62.556 73.435 134.632 138.71 216.227 195.827 6.81 4.765 14.459 7.148 22.945 7.148 8.485 0 16.47-2.383 23.956-7.148 81.595-57.79 153.67-123.067 216.227-195.828 47.608-55.767 84.663-111.524 111.165-167.27 31.963-67.995 47.945-134.969 47.945-200.919 0-46.912-10.88-92.126-32.638-135.644h0.032z m-40.797 136.656c0 55.07-13.6 111.513-40.798 169.326-23.129 49.631-56.452 99.948-99.97 150.95-52.351 61.208-113.885 117.65-184.6 169.326-70.716-51.676-132.25-108.118-184.6-169.326-42.844-51.002-76.167-101.319-99.971-150.95-27.198-57.791-40.797-114.57-40.797-170.338 0-36.032 8.159-70.716 24.478-104.05 16.994-32.638 40.45-61.882 70.368-87.73 30.592-26.525 65.276-47.26 104.05-62.209 40.797-14.97 82.954-22.455 126.472-22.455 43.517 0 85.675 7.485 126.472 22.455 38.752 14.97 73.436 35.706 104.05 62.208 30.593 25.85 54.048 55.093 70.367 87.731 16.32 34.009 24.479 69.03 24.479 105.062z",fill:"currentColor"},null,-1)];function bu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",ku,Uu)}const Wu=on(Nu,[["render",bu]]),zu=o.defineComponent({name:"TextIcon"}),Hu={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},Gu=[o.createElementVNode("path",{d:"M86.016 805.888H0L143.872 275.968h79.36l144.896 529.92H276.992l-29.696-109.056H115.2s-29.696 109.056-29.184 109.056zM225.28 613.376L181.248 455.68 138.24 613.376h87.04zM519.168 430.08c24.576-16.384 47.616-25.088 69.12-25.088 30.72 0 58.368 14.848 81.92 44.032 24.064 29.184 35.328 72.192 35.328 128.512 0 44.032-7.168 83.456-22.528 118.272-14.848 34.816-35.328 62.976-60.416 83.456-26.112 20.992-57.856 31.232-95.232 31.232-15.36-0.512-31.232-1.536-46.592-3.584-4.096-0.512-8.704-1.024-12.8-1.536h-66.56V256h81.92v206.336c11.264-12.8 23.04-23.552 35.84-32.256z m-35.328 157.184v135.168c13.824 3.072 26.112 4.608 37.376 4.608 27.648 0 50.176-11.776 69.12-36.352 19.456-25.088 28.672-59.392 28.672-104.96 0-32.256-5.12-55.296-14.848-70.144-9.216-13.824-18.432-19.968-28.672-19.968-12.288 0-27.136 7.68-44.544 24.064-16.896 16.896-32.768 39.424-47.104 67.584zM1013.76 794.624c-36.864 14.336-71.68 20.992-104.96 20.992-32.768 0.512-64.512-9.216-91.648-27.136-27.136-18.432-48.64-44.032-62.464-73.728-14.848-30.72-22.528-65.536-22.528-104.448 0-58.88 16.896-108.032 51.2-146.944 33.792-38.912 75.264-58.88 123.392-58.88 34.304 0 70.144 7.168 108.032 21.504l10.24 4.096v95.232l-20.992-10.752c-34.816-17.92-65.536-26.624-92.16-26.624-16.896 0-32.768 4.608-47.104 13.824-13.824 8.704-25.088 23.04-32.768 42.496-8.192 19.968-12.288 41.472-12.288 63.488 0 28.672 7.68 55.808 24.064 82.432 14.848 24.576 37.888 36.352 71.168 36.352 10.752 0 21.504-1.024 31.744-2.56 9.728-1.536 29.696-8.192 58.88-18.944l19.456-7.68v92.672l-11.264 4.608z",fill:"currentColor"},null,-1)];function Xu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",Hu,Gu)}const Ku=on(zu,[["render",Xu]]),Yu=o.defineComponent({name:"CalendarIcon"}),Vu={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},qu=[o.createElementVNode("path",{d:"M950.016 898.016l-206.016-204.992Q832 586.016 832 448.032q0-159.008-112.512-271.488T448 64.032 176.512 176.544 64 448.032t112.512 271.488T448 832.032q138.016 0 244.992-88l206.016 206.016q10.016 10.016 24.992 10.016t26.016-10.016q10.016-11.008 10.016-26.016t-10.016-26.016zM568.992 736Q512 760 448 760T327.008 736q-56-24-99.488-67.488t-66.496-99.488q-24.992-56.992-24.992-120.992t24.992-120.992q23.008-56 66.496-99.488t99.488-67.488Q384 136.064 448 136.064t120.992 24q56 24 99.488 67.488t67.488 99.488q24 56.992 24 120.992t-24 120.992q-24 56-67.488 99.488T568.992 736z",fill:"currentColor"},null,-1)];function Zu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",Vu,qu)}const Ju=on(Yu,[["render",Zu]]),Qu=o.defineComponent({name:"DrillDown",props:yu(),emits:Iu(),methods:{},components:{Button:In.Button,Input:In.Input,Empty:In.Empty,Menu:In.Menu,MenuItem:In.MenuItem,LocationIcon:Wu,TextIcon:Ku,CalendarIcon:Ju},setup(a){const{dataSet:c,disabledFields:l,getDrillFields:T,setDrillFields:m,className:L}=a,O=()=>c.map(F=>(F.disabled=!!(l&&l.includes(F.value)),F)),R=o.ref(O()),B=o.ref([]);return{options:R,handleSearch:F=>{const{value:N}=F.target;if(!N)R.value=[...c];else{const k=new RegExp(N,"gi"),J=c.filter(W=>k.test(W.name));R.value=[...J]}},handleSelect:F=>{const N=F==null?void 0:F.selectedKeys;B.value=N,T&&T(N),m&&m(N)},handleClear:F=>{F.stopPropagation(),B.value=[],T&&T([]),m&&m([])},className:L,selected:B,isEmpty:hn.isEmpty,DRILL_DOWN_PRE_CLASS:d.DRILL_DOWN_PRE_CLASS}}});function ju(a,c,l,T,m,L){const O=o.resolveComponent("Button"),R=o.resolveComponent("Input"),B=o.resolveComponent("Empty"),H=o.resolveComponent("TextIcon"),A=o.resolveComponent("CalendarIcon"),y=o.resolveComponent("LocationIcon"),F=o.resolveComponent("MenuItem"),N=o.resolveComponent("Menu");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([a.DRILL_DOWN_PRE_CLASS,a.className])},[o.createElementVNode("header",{class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-header`)},[o.createElementVNode("div",null,o.toDisplayString(a.title),1),o.createVNode(O,{type:"link",onClick:a.handleClear},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.clearText),1)]),_:1},8,["onClick"])],2),o.createVNode(R,{class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-search`),placeholder:a.searchText,onChange:a.handleSearch,onPressEnter:a.handleSearch,allowClear:!0},null,8,["class","placeholder","onChange","onPressEnter"]),a.isEmpty(a.options)?(o.openBlock(),o.createBlock(B,{key:0,imageStyle:{height:"64px"},class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-empty`)},null,8,["class"])):o.createCommentVNode("",!0),o.createVNode(N,{class:"`${DRILL_DOWN_PRE_CLASS}-menu`",selectedKeys:a.selected,"onUpdate:selectedKeys":c[0]||(c[0]=k=>a.selected=k),onSelect:a.handleSelect},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.options,k=>(o.openBlock(),o.createBlock(F,{key:k.value,disabled:k.disabled,class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-menu-item`)},{icon:o.withCtx(()=>[k.type==="text"?(o.openBlock(),o.createBlock(H,{key:0})):o.createCommentVNode("",!0),k.type==="date"?(o.openBlock(),o.createBlock(A,{key:1})):o.createCommentVNode("",!0),k.type==="location"?(o.openBlock(),o.createBlock(y,{key:2})):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.createTextVNode(" "+o.toDisplayString(k==null?void 0:k.name),1)]),_:2},1032,["disabled","class"]))),128))]),_:1},8,["selectedKeys","onSelect"])],2)}const ns=on(Qu,[["render",ju],["__scopeId","data-v-67a7b729"]]),es=o.defineComponent({name:"PivotSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T}=o.toRefs(a),{dataCfg:m,partDrillDown:L}=o.toRefs(a),O=o.ref([]),R=A=>{var F,N,k,J,W,tn;const y=(F=l==null?void 0:l.value)==null?void 0:F.instance;O.value=A,y==null||y.hideTooltip(),hn.isEmpty(A)?y==null||y.clearDrillDownData((N=y==null?void 0:y.store.get("drillDownNode"))==null?void 0:N.id):d.handleDrillDown({rows:(J=(k=m.value)==null?void 0:k.fields.rows)!=null?J:[],drillFields:A,fetchData:(W=L.value)==null?void 0:W.fetchData,drillItemsNum:(tn=L.value)==null?void 0:tn.drillItemsNum,spreadsheet:y})},B=A=>{var N,k;const{event:y,disabledFields:F}=A;if(y){const J=(N=l==null?void 0:l.value)==null?void 0:N.instance,W=o.createVNode(ns,At(tt({},(k=L.value)==null?void 0:k.drillConfig),{setDrillFields:R,drillFields:O.value,disabledFields:F}));J==null||J.showTooltip({position:{x:y.clientX,y:y.clientY},event:y,content:W})}},H=o.computed(()=>d.buildDrillDownOptions(T.value,L.value,A=>B(A)));return{s2Ref:l,options:H}},components:{BaseSheet:Ce}});function ts(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.options}),null,16,["options"])}const Br=on(es,[["render",ts]]);class ao extends d.ColCell{constructor(c,l,T){super(c,l,T)}drawTextShape(){const c=this.getMeta(),l=d.safeJsonParse(c==null?void 0:c.value);if(!hn.isArray(l))return super.drawTextShape();const{formattedValue:T}=this.getFormattedFieldValue(),m=T!==(c==null?void 0:c.value)?[[T]]:[l];d.drawCustomContent(this,{values:m},!1)}}class uo extends d.DataCell{drawTextShape(){if(this.isMultiData())return d.drawCustomContent(this);super.drawTextShape()}}class so extends d.CustomGridPivotDataSet{getExistValuesByDataItem(c){const l=hn.keys(c).filter(T=>hn.isObject(c[T]));return hn.isEmpty(l)&&l.push(d.EMPTY_EXTRA_FIELD_PLACEHOLDER),l}processDataCfg(c){const l=super.processDataCfg(c),T=this.processMeta(c.meta,d.i18n("数值"));return At(tt({},l),{meta:T,fields:At(tt({},l.fields),{rows:[...c.fields.rows||[],d.EXTRA_FIELD]})})}}const rs=o.defineComponent({name:"StrategySheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m,dataCfg:L}=o.toRefs(a),O=o.computed(()=>{var H,A;if(hn.isEmpty(L.value))return null;const B=hn.size((A=(H=L.value)==null?void 0:H.fields)==null?void 0:A.values)===1;return{hierarchyType:"tree",dataCell:(y,F)=>new uo(y,F),colCell:(y,F,N)=>new ao(y,F,N),dataSet:y=>new so(y),showDefaultHeaderActionIcon:!1,style:{colCell:{hideValue:B}},interaction:{autoResetSheetStyle:!0,brushSelection:!1,selectedCellMove:!1,multiSelection:!1,rangeSelection:!1},tooltip:{operation:{hiddenColumns:!0}}}}),R=o.computed(()=>d.customMerge(O.value,T==null?void 0:T.value));return{s2Ref:l,s2Options:R,themeCfg:m}},components:{BaseSheet:Ce}});function is(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.themeCfg}),null,16,["options","themeCfg"])}const Pr=on(rs,[["render",is]]),os=o.defineComponent({name:"TableSheet",props:[],emits:[],setup(a,c){return{s2Ref:le(c.expose)}},components:{BaseSheet:Ce}});function ls(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,{ref:"s2Ref"},null,512)}const Mr=on(os,[["render",ls]]);function as(a){return tt({},a)}const us=o.defineComponent({name:"EditableSheet",props:Ae(),emits:[],setup(a,c){var F;const l=le(c.expose),{options:T}=o.toRefs(a),m=o.ref(null),L=o.ref(null),O=o.ref(""),R=o.computed(()=>as(T.value)),B=o.reactive({width:0,height:0,left:0,top:0,display:"none",zIndex:1e3,position:"absolute"});function H(){var Vn;const N=(Vn=l.value)==null?void 0:Vn.instance,k=L.value;if(!N||!k){B.display="none";return}const J=N.facet.getScrollOffset();let W=hn.pick(k.getMeta(),["x","y","width","height"]);(hn.isNil(W.x)||hn.isNil(W.y))&&(W={x:0,y:0,width:0,height:0});const tn=N.facet.getColNodes()[0],Mn=(tn==null?void 0:tn.height)||0;W.x-=J.scrollX||0,W.y-=(J.scrollY||0)-Mn;const{x:un,y:_n,width:dn,height:On}=W,An=_n>=0&&_n<=N.facet.getCanvasSize().height&&un>=0&&un<=N.facet.getCanvasSize().width;B.width=dn?`${dn}px`:"0px",B.height=On?`${On}px`:"0px",B.left=un?`${un}px`:"0px",B.top=_n?`${_n}px`:"0px",B.display=L.value&&An?"block":"none"}o.watch([L,(F=l.value)==null?void 0:F.instance.facet.getScrollOffset()],()=>{H()});const A=N=>{L.value=N.target,O.value=N.target.getActualText(),setTimeout(()=>{var k;(k=m.value)==null||k.focus()},100)};function y(){var dn,On;const N=m.value,k=L.value,J=(dn=l.value)==null?void 0:dn.instance;if(!J||!k||!N)return;const{rowIndex:W,valueField:tn,id:Mn}=k.getMeta(),un=N.value,_n=J.dataSet.getDisplayDataSet();_n[W][tn]=un,(On=J.dataSet.displayFormattedValueMap)==null||On.set(Mn,un),J.render(),L.value=null}return{setInputStyle:H,s2Ref:l,options:R,inputStyle:B,onDataCellDbClick:A,inputRef:m,onSave:y,inputValue:O,Input:In.Input}},components:{BaseSheet:Ce}});function ss(a,c,l,T,m,L){const O=o.resolveComponent("Input"),R=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(R,o.mergeProps({onDataCellDoubleClick:a.onDataCellDbClick,onScroll:a.setInputStyle,onDataCellClick:a.onSave,ref:"s2Ref"},a.$props,{options:a.options}),{editCell:o.withCtx(()=>[o.createVNode(O,{onBlur:a.onSave,value:a.inputValue,ref:"inputRef",style:o.normalizeStyle(a.inputStyle)},null,8,["onBlur","value","style"])]),_:1},16,["onDataCellDoubleClick","onScroll","onDataCellClick","options"])}const $r=on(us,[["render",ss]]),fs=o.defineComponent({name:"Sheet",props:[],emits:[],setup(a,c){const l=le(c.expose),T=o.computed(()=>{switch(c.attrs.sheetType){case"table":return Mr;case"editable":return $r;case"chart":return Ar;case"gridAnalysis":return Rr;case"strategy":return Pr;case"pivotChart":return Dr;default:return Br}});return{s2Ref:l,sheetType:T}},components:{PivotSheet:Br,TableSheet:Mr,EditableSheet:$r,ChartSheet:Ar,GridAnalysisSheet:Rr,StrategySheet:Pr,PivotChartSheet:Dr}});function cs(a,c,l,T,m,L){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.sheetType),{ref:"s2Ref"},null,512)}const ps=on(fs,[["render",cs]]),hs="@antv/s2-vue-v2.1.0-alpha.1";K.BaseSheet=Ce,K.ChartSheet=Ar,K.CustomTooltip=ro,K.EditableSheet=$r,K.GridAnalysisSheet=Rr,K.GridAnalysisSheetDataCell=io,K.GridAnalysisTheme=lo,K.PivotChartSheet=Dr,K.PivotSheet=Br,K.SheetComponent=ps,K.StrategySheet=Pr,K.StrategySheetColCell=ao,K.StrategySheetDataCell=uo,K.StrategySheetDataSet=so,K.TableSheet=Mr,K.useExpose=le,K.version=hs,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
}`;var G=ba(function(){return Q(s,D+"return "+w).apply(l,f)});if(G.source=w,Xi(G))throw G;return G}function C1(n){return j(n).toLowerCase()}function E1(n){return j(n).toUpperCase()}function S1(n,e,t){if(n=j(n),n&&(t||e===l))return qo(n);if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Jn(e),s=Zo(r,i),f=Jo(r,i)+1;return ye(r,s,f).join("")}function m1(n,e,t){if(n=j(n),n&&(t||e===l))return n.slice(0,jo(n)+1);if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Jo(r,Jn(e))+1;return ye(r,0,i).join("")}function L1(n,e,t){if(n=j(n),n&&(t||e===l))return n.replace(Xr,"");if(!n||!(e=Fn(e)))return n;var r=Jn(n),i=Zo(r,Jn(e));return ye(r,i).join("")}function w1(n,e){var t=_s,r=ds;if(sn(e)){var i="separator"in e?e.separator:i;t="length"in e?z(e.length):t,r="omission"in e?Fn(e.omission):r}n=j(n);var s=n.length;if(Ge(n)){var f=Jn(n);s=f.length}if(t>=s)return n;var p=t-Xe(r);if(p<1)return r;var _=f?ye(f,0,p).join(""):n.slice(0,p);if(i===l)return _+r;if(f&&(p+=_.length-p),Ki(i)){if(n.slice(p).search(i)){var E,S=_;for(i.global||(i=ui(i.source,j(Co.exec(i))+"g")),i.lastIndex=0;E=i.exec(S);)var w=E.index;_=_.slice(0,w===l?p:w)}}else if(n.indexOf(Fn(i),p)!=p){var v=_.lastIndexOf(i);v>-1&&(_=_.slice(0,v))}return _+r}function O1(n){return n=j(n),n&&Ms.test(n)?n.replace(ho,Qf):n}var T1=Qe(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),qi=Wl("toUpperCase");function Ua(n,e,t){return n=j(n),e=t?l:e,e===l?Yf(n)?ec(n):kf(n):n.match(e)||[]}var ba=X(function(n,e){try{return $n(n,l,e)}catch(t){return Xi(t)?t:new U(t)}}),v1=pe(function(n,e){return Wn(e,function(t){t=ie(t),fe(n,t,Hi(n[t],n))}),n});function y1(n){var e=n==null?0:n.length,t=M();return n=e?an(n,function(r){if(typeof r[1]!="function")throw new zn(O);return[t(r[0]),r[1]]}):[],X(function(r){for(var i=-1;++i<e;){var s=n[i];if($n(s[0],this,r))return $n(s[1],this,r)}})}function I1(n){return Qc(Gn(n,y))}function Zi(n){return function(){return n}}function A1(n,e){return n==null||n!==n?e:n}var R1=Hl(),D1=Hl(!0);function Pn(n){return n}function Ji(n){return Sl(typeof n=="function"?n:Gn(n,y))}function B1(n){return Ll(Gn(n,y))}function P1(n,e){return wl(n,Gn(e,y))}var M1=X(function(n,e){return function(t){return Lt(t,n,e)}}),$1=X(function(n,e){return function(t){return Lt(n,t,e)}});function Qi(n,e,t){var r=En(e),i=ir(e,r);t==null&&!(sn(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=ir(e,En(e)));var s=!(sn(t)&&"chain"in t)||!!t.chain,f=_e(n);return Wn(i,function(p){var _=e[p];n[p]=_,f&&(n.prototype[p]=function(){var E=this.__chain__;if(s||E){var S=n(this.__wrapped__),w=S.__actions__=Rn(this.__actions__);return w.push({func:_,args:arguments,thisArg:n}),S.__chain__=E,S}return _.apply(n,me([this.value()],arguments))})}),n}function x1(){return Sn._===this&&(Sn._=ac),this}function ji(){}function F1(n){return n=z(n),X(function(e){return Ol(e,n)})}var N1=Di(an),k1=Di(Go),U1=Di(ei);function Wa(n){return Ni(n)?ti(ie(n)):dp(n)}function b1(n){return function(e){return n==null?l:xe(n,e)}}var W1=Xl(),z1=Xl(!0);function no(){return[]}function eo(){return!1}function H1(){return{}}function G1(){return""}function X1(){return!0}function K1(n,e){if(n=z(n),n<1||n>Ee)return[];var t=ee,r=Ln(n,ee);e=M(e),n-=ee;for(var i=oi(r,e);++t<n;)e(t);return i}function Y1(n){return b(n)?an(n,ie):Nn(n)?[n]:Rn(aa(j(n)))}function V1(n){var e=++oc;return j(n)+e}var q1=fr(function(n,e){return n+e},0),Z1=Bi("ceil"),J1=fr(function(n,e){return n/e},1),Q1=Bi("floor");function j1(n){return n&&n.length?rr(n,Pn,gi):l}function ng(n,e){return n&&n.length?rr(n,M(e,2),gi):l}function eg(n){return Yo(n,Pn)}function tg(n,e){return Yo(n,M(e,2))}function rg(n){return n&&n.length?rr(n,Pn,mi):l}function ig(n,e){return n&&n.length?rr(n,M(e,2),mi):l}var og=fr(function(n,e){return n*e},1),lg=Bi("round"),ag=fr(function(n,e){return n-e},0);function ug(n){return n&&n.length?ii(n,Pn):0}function sg(n,e){return n&&n.length?ii(n,M(e,2)):0}return u.after=B_,u.ary=Ea,u.assign=Ed,u.assignIn=Pa,u.assignInWith=Or,u.assignWith=Sd,u.at=md,u.before=Sa,u.bind=Hi,u.bindAll=v1,u.bindKey=ma,u.castArray=H_,u.chain=da,u.chunk=Qp,u.compact=jp,u.concat=nh,u.cond=y1,u.conforms=I1,u.constant=Zi,u.countBy=u_,u.create=Ld,u.curry=La,u.curryRight=wa,u.debounce=Oa,u.defaults=wd,u.defaultsDeep=Od,u.defer=P_,u.delay=M_,u.difference=eh,u.differenceBy=th,u.differenceWith=rh,u.drop=ih,u.dropRight=oh,u.dropRightWhile=lh,u.dropWhile=ah,u.fill=uh,u.filter=f_,u.flatMap=h_,u.flatMapDeep=__,u.flatMapDepth=d_,u.flatten=ca,u.flattenDeep=sh,u.flattenDepth=fh,u.flip=$_,u.flow=R1,u.flowRight=D1,u.fromPairs=ch,u.functions=Dd,u.functionsIn=Bd,u.groupBy=g_,u.initial=hh,u.intersection=_h,u.intersectionBy=dh,u.intersectionWith=gh,u.invert=Md,u.invertBy=$d,u.invokeMap=E_,u.iteratee=Ji,u.keyBy=S_,u.keys=En,u.keysIn=Bn,u.map=Cr,u.mapKeys=Fd,u.mapValues=Nd,u.matches=B1,u.matchesProperty=P1,u.memoize=Sr,u.merge=kd,u.mergeWith=Ma,u.method=M1,u.methodOf=$1,u.mixin=Qi,u.negate=mr,u.nthArg=F1,u.omit=Ud,u.omitBy=bd,u.once=x_,u.orderBy=m_,u.over=N1,u.overArgs=F_,u.overEvery=k1,u.overSome=U1,u.partial=Gi,u.partialRight=Ta,u.partition=L_,u.pick=Wd,u.pickBy=$a,u.property=Wa,u.propertyOf=b1,u.pull=mh,u.pullAll=ha,u.pullAllBy=Lh,u.pullAllWith=wh,u.pullAt=Oh,u.range=W1,u.rangeRight=z1,u.rearg=N_,u.reject=T_,u.remove=Th,u.rest=k_,u.reverse=Wi,u.sampleSize=y_,u.set=Hd,u.setWith=Gd,u.shuffle=I_,u.slice=vh,u.sortBy=D_,u.sortedUniq=Ph,u.sortedUniqBy=Mh,u.split=h1,u.spread=U_,u.tail=$h,u.take=xh,u.takeRight=Fh,u.takeRightWhile=Nh,u.takeWhile=kh,u.tap=jh,u.throttle=b_,u.thru=gr,u.toArray=Ra,u.toPairs=xa,u.toPairsIn=Fa,u.toPath=Y1,u.toPlainObject=Ba,u.transform=Xd,u.unary=W_,u.union=Uh,u.unionBy=bh,u.unionWith=Wh,u.uniq=zh,u.uniqBy=Hh,u.uniqWith=Gh,u.unset=Kd,u.unzip=zi,u.unzipWith=_a,u.update=Yd,u.updateWith=Vd,u.values=et,u.valuesIn=qd,u.without=Xh,u.words=Ua,u.wrap=z_,u.xor=Kh,u.xorBy=Yh,u.xorWith=Vh,u.zip=qh,u.zipObject=Zh,u.zipObjectDeep=Jh,u.zipWith=Qh,u.entries=xa,u.entriesIn=Fa,u.extend=Pa,u.extendWith=Or,Qi(u,u),u.add=q1,u.attempt=ba,u.camelCase=jd,u.capitalize=Na,u.ceil=Z1,u.clamp=Zd,u.clone=G_,u.cloneDeep=K_,u.cloneDeepWith=Y_,u.cloneWith=X_,u.conformsTo=V_,u.deburr=ka,u.defaultTo=A1,u.divide=J1,u.endsWith=n1,u.eq=jn,u.escape=e1,u.escapeRegExp=t1,u.every=s_,u.find=c_,u.findIndex=sa,u.findKey=Td,u.findLast=p_,u.findLastIndex=fa,u.findLastKey=vd,u.floor=Q1,u.forEach=ga,u.forEachRight=Ca,u.forIn=yd,u.forInRight=Id,u.forOwn=Ad,u.forOwnRight=Rd,u.get=Yi,u.gt=q_,u.gte=Z_,u.has=Pd,u.hasIn=Vi,u.head=pa,u.identity=Pn,u.includes=C_,u.indexOf=ph,u.inRange=Jd,u.invoke=xd,u.isArguments=ke,u.isArray=b,u.isArrayBuffer=J_,u.isArrayLike=Dn,u.isArrayLikeObject=cn,u.isBoolean=Q_,u.isBuffer=Ie,u.isDate=j_,u.isElement=nd,u.isEmpty=ed,u.isEqual=td,u.isEqualWith=rd,u.isError=Xi,u.isFinite=id,u.isFunction=_e,u.isInteger=va,u.isLength=Lr,u.isMap=ya,u.isMatch=od,u.isMatchWith=ld,u.isNaN=ad,u.isNative=ud,u.isNil=fd,u.isNull=sd,u.isNumber=Ia,u.isObject=sn,u.isObjectLike=fn,u.isPlainObject=It,u.isRegExp=Ki,u.isSafeInteger=cd,u.isSet=Aa,u.isString=wr,u.isSymbol=Nn,u.isTypedArray=nt,u.isUndefined=pd,u.isWeakMap=hd,u.isWeakSet=_d,u.join=Ch,u.kebabCase=r1,u.last=Kn,u.lastIndexOf=Eh,u.lowerCase=i1,u.lowerFirst=o1,u.lt=dd,u.lte=gd,u.max=j1,u.maxBy=ng,u.mean=eg,u.meanBy=tg,u.min=rg,u.minBy=ig,u.stubArray=no,u.stubFalse=eo,u.stubObject=H1,u.stubString=G1,u.stubTrue=X1,u.multiply=og,u.nth=Sh,u.noConflict=x1,u.noop=ji,u.now=Er,u.pad=l1,u.padEnd=a1,u.padStart=u1,u.parseInt=s1,u.random=Qd,u.reduce=w_,u.reduceRight=O_,u.repeat=f1,u.replace=c1,u.result=zd,u.round=lg,u.runInContext=h,u.sample=v_,u.size=A_,u.snakeCase=p1,u.some=R_,u.sortedIndex=yh,u.sortedIndexBy=Ih,u.sortedIndexOf=Ah,u.sortedLastIndex=Rh,u.sortedLastIndexBy=Dh,u.sortedLastIndexOf=Bh,u.startCase=_1,u.startsWith=d1,u.subtract=ag,u.sum=ug,u.sumBy=sg,u.template=g1,u.times=K1,u.toFinite=de,u.toInteger=z,u.toLength=Da,u.toLower=C1,u.toNumber=Yn,u.toSafeInteger=Cd,u.toString=j,u.toUpper=E1,u.trim=S1,u.trimEnd=m1,u.trimStart=L1,u.truncate=w1,u.unescape=O1,u.uniqueId=V1,u.upperCase=T1,u.upperFirst=qi,u.each=ga,u.eachRight=Ca,u.first=pa,Qi(u,function(){var n={};return te(u,function(e,t){nn.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=T,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Wn(["drop","take"],function(n,e){V.prototype[n]=function(t){t=t===l?1:Cn(z(t),0);var r=this.__filtered__&&!e?new V(this):this.clone();return r.__filtered__?r.__takeCount__=Ln(t,r.__takeCount__):r.__views__.push({size:Ln(t,ee),type:n+(r.__dir__<0?"Right":"")}),r},V.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Wn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==fo||t==Ss;V.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:M(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Wn(["head","last"],function(n,e){var t="take"+(e?"Right":"");V.prototype[n]=function(){return this[t](1).value()[0]}}),Wn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");V.prototype[n]=function(){return this.__filtered__?new V(this):this[t](1)}}),V.prototype.compact=function(){return this.filter(Pn)},V.prototype.find=function(n){return this.filter(n).head()},V.prototype.findLast=function(n){return this.reverse().find(n)},V.prototype.invokeMap=X(function(n,e){return typeof n=="function"?new V(this):this.map(function(t){return Lt(t,n,e)})}),V.prototype.reject=function(n){return this.filter(mr(M(n)))},V.prototype.slice=function(n,e){n=z(n);var t=this;return t.__filtered__&&(n>0||e<0)?new V(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==l&&(e=z(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},V.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},V.prototype.toArray=function(){return this.take(ee)},te(V.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var f=this.__wrapped__,p=r?[1]:arguments,_=f instanceof V,E=p[0],S=_||b(f),w=function(Y){var Z=i.apply(u,me([Y],p));return r&&v?Z[0]:Z};S&&t&&typeof E=="function"&&E.length!=1&&(_=S=!1);var v=this.__chain__,D=!!this.__actions__.length,$=s&&!v,G=_&&!D;if(!s&&S){f=G?f:new V(this);var x=n.apply(f,p);return x.__actions__.push({func:gr,args:[w],thisArg:l}),new Hn(x,v)}return $&&G?n.apply(this,p):(x=this.thru(w),$?r?x.value()[0]:x.value():x)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(n){var e=zt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(b(s)?s:[],i)}return this[t](function(f){return e.apply(b(f)?f:[],i)})}}),te(V.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";nn.call(qe,r)||(qe[r]=[]),qe[r].push({name:e,func:t})}}),qe[sr(l,tn).name]=[{name:"wrapper",func:l}],V.prototype.clone=Oc,V.prototype.reverse=Tc,V.prototype.value=vc,u.prototype.at=n_,u.prototype.chain=e_,u.prototype.commit=t_,u.prototype.next=r_,u.prototype.plant=o_,u.prototype.reverse=l_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=a_,u.prototype.first=u.prototype.head,_t&&(u.prototype[_t]=i_),u},Ke=tc();De?((De.exports=Ke)._=Ke,Jr._=Ke):Sn._=Ke}).call(ot)}(Dt,Dt.exports);var hn=Dt.exports;const ja=o.defineComponent({name:"TooltipSummary",props:["summaries"],setup(a){return{summaryInfo:o.computed(()=>hn.reduce(a.summaries,(l,T)=>(l.count+=hn.size(T==null?void 0:T.selectedData),(T.value||T.name)&&l.summaries.push(T),l),{count:0,summaries:[]})),i18n:d.i18n,TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS}},components:{}});function nu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary`)},[o.createElementVNode("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-item`)},[o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-selected`)},o.toDisplayString(a.summaryInfo.count)+" "+o.toDisplayString(a.i18n("项")),3),o.createTextVNode(" "+o.toDisplayString(a.i18n("已选择")),1)],2),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.summaryInfo.summaries,O=>(o.openBlock(),o.createElementBlock("div",{key:`${O.name}-${O.value}`,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-item`)},[o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-key`)},o.toDisplayString(O.name)+" ("+o.toDisplayString(a.i18n("总和"))+") ",3),o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-summary-val ${a.TOOLTIP_PREFIX_CLS}-bold`)},o.toDisplayString(O.value),3)],2))),128))],2)}const eu=on(ja,[["render",nu]]),tu=o.defineComponent({name:"TooltipOperatorTitle",props:["menu"],setup(a){const c=o.computed(()=>d.getIcon(a.menu.icon));return{TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS,icon:c}}}),ru=["innerHTML"];function iu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("span",null,[a.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:a.icon,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-icon`)},null,10,ru)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-text`)},o.toDisplayString(a.menu.label),3)])}const to=on(tu,[["render",iu]]),ou=o.defineComponent({name:"TooltipOperatorMenu",props:["menu","cell"],setup(a){const{menu:c,cell:l}=a;return{onMenuTitleClick:()=>{var m,L;(L=(m=a.menu).onClick)==null||L.call(m,c,l)},isEmpty:hn.isEmpty,TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS}},components:{MenuItem:In.Menu.Item,SubMenu:In.Menu.SubMenu,TooltipOperatorTitle:to}});function lu(a,c,l,T,m,L){const O=o.resolveComponent("TooltipOperatorTitle"),R=o.resolveComponent("TooltipOperatorMenu"),B=o.resolveComponent("MenuItem"),H=o.resolveComponent("SubMenu");return o.openBlock(),o.createElementBlock(o.Fragment,null,[a.isEmpty(a.menu.children)?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(H,{key:a.menu.key,popupClassName:`${a.TOOLTIP_PREFIX_CLS}-operator-submenu-popup`,onTitleClick:a.onMenuTitleClick},{title:o.withCtx(()=>[o.createVNode(O,{menu:a.menu,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menu.children,A=>{var y;return o.openBlock(),o.createElementBlock(o.Fragment,{key:A.key},[(y=A==null?void 0:A.children)!=null&&y.length?(o.openBlock(),o.createBlock(R,{key:0,menu:A,cell:a.cell},null,8,["menu","cell"])):(o.openBlock(),o.createBlock(B,{title:A.label,key:A.key},{default:o.withCtx(()=>[o.createVNode(O,{menu:A,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),_:2},1032,["title"]))],64)}),128))]),_:1},8,["popupClassName","onTitleClick"])),a.isEmpty(a.menu.children)?(o.openBlock(),o.createBlock(B,{title:a.menu.label,key:a.menu.key},{default:o.withCtx(()=>[o.createVNode(O,{menu:a.menu,onClick:a.onMenuTitleClick},null,8,["menu","onClick"])]),_:1},8,["title"])):o.createCommentVNode("",!0)],64)}const au=on(ou,[["render",lu]]),uu=o.defineComponent({name:"TooltipOperator",props:["menu","onlyShowOperator","cell"],setup(a){const{menu:c,cell:l}=a,T=L=>{var O;(O=c==null?void 0:c.onClick)==null||O.call(c,L,l)},m=L=>()=>{L==null||L.onClick(L,l)};return{TOOLTIP_PREFIX_CLS:d.TOOLTIP_PREFIX_CLS,onMenuClick:T,onMenuTitleClick:m,menus:c==null?void 0:c.items}},components:{Menu:In.Menu,Dropdown:In.Dropdown,TooltipOperatorTitle:to,TooltipOperatorMenu:au}});function su(a,c,l,T,m,L){const O=o.resolveComponent("TooltipOperatorMenu"),R=o.resolveComponent("Menu"),B=o.resolveComponent("TooltipOperatorTitle"),H=o.resolveComponent("Dropdown");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator`)},[a.onlyShowOperator?(o.openBlock(),o.createBlock(R,{key:0,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:a.onMenuClick},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menus,A=>(o.openBlock(),o.createBlock(O,{key:A.key,menu:A,cell:a.cell},null,8,["menu","cell"]))),128))]),_:1},8,["class","onClick"])):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(a.menus,A=>(o.openBlock(),o.createBlock(H,{key:A.key,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-dropdown`)},{overlay:o.withCtx(()=>{var y;return[(y=A==null?void 0:A.children)!=null&&y.length?(o.openBlock(),o.createBlock(R,{key:0,class:o.normalizeClass(`${a.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:a.onMenuClick},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.menus,F=>(o.openBlock(),o.createBlock(O,{key:F.key,menu:F,cell:a.cell},null,8,["menu","cell"]))),128))]),_:2},1032,["class","onClick"])):o.createCommentVNode("",!0)]}),default:o.withCtx(()=>[o.createVNode(B,{menu:A,onClick:y=>a.onMenuTitleClick(A)},null,8,["menu","onClick"])]),_:2},1032,["class"]))),128))],2)}const fu=on(uu,[["render",su]]),cu=o.defineComponent({name:"TooltipComponent",props:["data","options","cell","position","event","content"],setup(a){const{operator:c,onlyShowOperator:l}=d.getTooltipDefaultOptions(a.options);return{operator:c,onlyShowOperator:l}},components:{TooltipDetail:rt,TooltipHeadInfo:Ka,TooltipInfos:qa,TooltipSimpleTips:Qa,TooltipSummary:eu,TooltipOperator:fu}});function pu(a,c,l,T,m,L){var F,N,k,J,W,tn,Mn,un,_n,dn,On,An,Vn,Ue;const O=o.resolveComponent("TooltipOperator"),R=o.resolveComponent("TooltipSimpleTips"),B=o.resolveComponent("TooltipSummary"),H=o.resolveComponent("TooltipHeadInfo"),A=o.resolveComponent("TooltipDetail"),y=o.resolveComponent("TooltipInfos");return a.onlyShowOperator?(o.openBlock(),o.createBlock(O,{key:0,menu:(F=a.operator)==null?void 0:F.menu,onlyShowOperator:!0,cell:a.cell},null,8,["menu","cell"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(O,{menu:(N=a.operator)==null?void 0:N.menu,onlyShowOperator:!1,cell:a.cell},null,8,["menu","cell"]),a.content?o.renderSlot(a.$slots,"content",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(R,{name:(k=a.data)==null?void 0:k.name,tips:(J=a.data)==null?void 0:J.tips},null,8,["name","tips"]),(tn=(W=a.data)==null?void 0:W.summaries)!=null&&tn.length?(o.openBlock(),o.createBlock(B,{key:0,summaries:(Mn=a.data)==null?void 0:Mn.summaries},null,8,["summaries"])):o.createCommentVNode("",!0),o.createVNode(H,{rows:((_n=(un=a.data)==null?void 0:un.headInfo)==null?void 0:_n.rows)||[],cols:((On=(dn=a.data)==null?void 0:dn.headInfo)==null?void 0:On.cols)||[]},null,8,["rows","cols"]),o.createVNode(A,{list:((An=a.data)==null?void 0:An.details)||[]},null,8,["list"]),(Vn=a.data)!=null&&Vn.infos?(o.openBlock(),o.createBlock(y,{key:1,infos:(Ue=a.data)==null?void 0:Ue.infos},null,8,["infos"])):o.createCommentVNode("",!0)],64))],64))}const hu=on(cu,[["render",pu]]);class ro extends d.BaseTooltip{constructor(c){super(c)}renderContent(){var R,B;const{tooltip:c}=this.spreadsheet.options,l=this.options,T=this.spreadsheet.getCell((R=l.event)==null?void 0:R.target),m=(B=l.content)!=null?B:c==null?void 0:c.content,L=At(tt({},l),{cell:T,content:m}),O=o.createVNode(hu,L,{content:()=>m});o.render(null,this.container),o.render(O,this.container)}destroy(){super.destroy(),this.container&&o.render(null,this.container)}}const yr=1,Ir=10,_u=(a,c)=>{var A,y;const{options:{pagination:l},showPagination:T}=c,m=o.ref((A=l==null?void 0:l.current)!=null?A:yr),L=o.ref((y=l==null?void 0:l.pageSize)!=null?y:Ir),O=o.ref(0),R=F=>{m.value=F},B=F=>{L.value=F},H=o.computed(()=>T&&!hn.isEmpty(l));return o.watch([m,L],()=>Tr(this,null,function*(){if(!a.value)return;const F=hn.isEmpty(l)?null:{current:m.value,pageSize:L.value};a.value.updatePagination(F),yield a.value.render(!1)})),o.watch([()=>l,a],()=>{var F,N,k,J,W;m.value=(F=l==null?void 0:l.current)!=null?F:yr,L.value=(N=l==null?void 0:l.pageSize)!=null?N:Ir,O.value=(W=(J=(k=a.value)==null?void 0:k.facet)==null?void 0:J.viewCellHeights.getTotalLength())!=null?W:0},{immediate:!0}),o.watch(a,(F,N,k)=>{if(!a.value)return;const J=W=>{hn.isEmpty(l)||(O.value=W.total)};a.value.on(d.S2Event.LAYOUT_PAGINATION,J),k(()=>{var W;(W=a.value)==null||W.off(d.S2Event.LAYOUT_PAGINATION,J)})}),{customOptions:hn.omit(l,["current","pageSize","total"]),visible:H,current:m,pageSize:L,total:O,change:R,showSizeChange:B}},du=`${d.S2_PREFIX_CLS}-pagination`,gu=o.defineComponent({name:"s2-pagination",props:{current:{type:Number,default:yr},total:{type:Number,default:0},pageSize:{type:Number,default:Ir},customOptions:Object},emits:["change","showSizeChange"],setup:a=>({showQuickJumper:o.computed(()=>a.total/a.pageSize>5),PRE_CLASS:du,i18n:d.i18n}),components:{AntDPagination:In.Pagination}});function Cu(a,c,l,T,m,L){const O=o.resolveComponent("AntDPagination");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(a.PRE_CLASS)},[o.createVNode(O,o.mergeProps({size:"small","default-current":1,showSizeChanger:!0,showQuickJumper:a.showQuickJumper},a.customOptions,{current:a.current,total:a.total,pageSize:a.pageSize,onShowSizeChange:c[0]||(c[0]=(R,B)=>a.$emit("showSizeChange",B)),onChange:c[1]||(c[1]=R=>a.$emit("change",R))}),null,16,["showQuickJumper","current","total","pageSize"]),o.createElementVNode("span",{class:o.normalizeClass(`${a.PRE_CLASS}-count`)},o.toDisplayString(a.i18n("共计"))+" "+o.toDisplayString(a.total||" - ")+" "+o.toDisplayString(a.i18n("条")),3)],2)}const Eu=on(gu,[["render",Cu]]),Su={tooltip:{render:a=>new ro(a)}},mu=(...a)=>d.getBaseSheetComponentOptions(Su,...a),q=(a,c,l,T)=>{var L;const m=O=>{const R=d.getBaseCellData(O);c(T,R)};(L=a.value)==null||L.on(l,m)},P=(a,c,l,T)=>{var L;const m=(...O)=>{c(T,...O)};(L=a.value)==null||L.on(l,m)},Lu=(a,c)=>{o.onMounted(()=>{a.value&&(q(a,c,d.S2Event.ROW_CELL_HOVER,"rowCellHover"),q(a,c,d.S2Event.ROW_CELL_CLICK,"rowCellClick"),q(a,c,d.S2Event.ROW_CELL_DOUBLE_CLICK,"rowCellDoubleClick"),q(a,c,d.S2Event.ROW_CELL_CONTEXT_MENU,"rowCellContextMenu"),q(a,c,d.S2Event.ROW_CELL_MOUSE_DOWN,"rowCellMouseDown"),q(a,c,d.S2Event.ROW_CELL_MOUSE_UP,"rowCellMouseUp"),q(a,c,d.S2Event.ROW_CELL_MOUSE_MOVE,"rowCellMouseMove"),P(a,c,d.S2Event.ROW_CELL_COLLAPSED,"rowCellCollapsed"),P(a,c,d.S2Event.ROW_CELL_ALL_COLLAPSED,"rowCellAllCollapsed"),P(a,c,d.S2Event.ROW_CELL_SCROLL,"rowCellScroll"),P(a,c,d.S2Event.ROW_CELL_RENDER,"rowCellRender"),P(a,c,d.S2Event.ROW_CELL_SELECTED,"rowCellSelected"),q(a,c,d.S2Event.COL_CELL_HOVER,"colCellHover"),q(a,c,d.S2Event.COL_CELL_CLICK,"colCellClick"),q(a,c,d.S2Event.COL_CELL_DOUBLE_CLICK,"colCellDoubleClick"),q(a,c,d.S2Event.COL_CELL_CONTEXT_MENU,"colCellContextMenu"),q(a,c,d.S2Event.COL_CELL_MOUSE_DOWN,"colCellMouseDown"),q(a,c,d.S2Event.COL_CELL_MOUSE_UP,"colCellMouseUp"),q(a,c,d.S2Event.COL_CELL_MOUSE_MOVE,"colCellMouseMove"),P(a,c,d.S2Event.COL_CELL_EXPANDED,"colCellExpanded"),P(a,c,d.S2Event.COL_CELL_HIDDEN,"colCellHidden"),P(a,c,d.S2Event.COL_CELL_RENDER,"colCellRender"),P(a,c,d.S2Event.COL_CELL_SELECTED,"colCellSelected"),q(a,c,d.S2Event.DATA_CELL_HOVER,"dataCellHover"),q(a,c,d.S2Event.DATA_CELL_CLICK,"dataCellClick"),q(a,c,d.S2Event.DATA_CELL_DOUBLE_CLICK,"dataCellDoubleClick"),q(a,c,d.S2Event.DATA_CELL_CONTEXT_MENU,"dataCellContextMenu"),q(a,c,d.S2Event.DATA_CELL_MOUSE_DOWN,"dataCellMouseDown"),q(a,c,d.S2Event.DATA_CELL_MOUSE_UP,"dataCellMouseUp"),q(a,c,d.S2Event.DATA_CELL_MOUSE_MOVE,"dataCellMouseMove"),P(a,c,d.S2Event.DATA_CELL_BRUSH_SELECTION,"dataCellBrushSelection"),P(a,c,d.S2Event.DATA_CELL_SELECT_MOVE,"dataCellSelectMove"),P(a,c,d.S2Event.DATA_CELL_RENDER,"dataCellRender"),P(a,c,d.S2Event.DATA_CELL_SELECTED,"dataCellSelected"),q(a,c,d.S2Event.CORNER_CELL_HOVER,"cornerCellHover"),q(a,c,d.S2Event.CORNER_CELL_CLICK,"cornerCellClick"),q(a,c,d.S2Event.CORNER_CELL_DOUBLE_CLICK,"cornerCellDoubleClick"),q(a,c,d.S2Event.CORNER_CELL_CONTEXT_MENU,"cornerCellContextMenu"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_DOWN,"cornerCellMouseDown"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_UP,"cornerCellMouseUp"),q(a,c,d.S2Event.CORNER_CELL_MOUSE_MOVE,"cornerCellMouseMove"),P(a,c,d.S2Event.CORNER_CELL_RENDER,"cornerCellRender"),P(a,c,d.S2Event.CORNER_CELL_SELECTED,"cornerCellSelected"),q(a,c,d.S2Event.MERGED_CELLS_HOVER,"mergedCellsHover"),q(a,c,d.S2Event.MERGED_CELLS_CLICK,"mergedCellsClick"),q(a,c,d.S2Event.MERGED_CELLS_DOUBLE_CLICK,"mergedCellsDoubleClick"),q(a,c,d.S2Event.MERGED_CELLS_CONTEXT_MENU,"mergedCellsContextMenu"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_DOWN,"mergedCellsMouseDown"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_UP,"mergedCellsMouseUp"),q(a,c,d.S2Event.MERGED_CELLS_MOUSE_MOVE,"mergedCellsMouseMove"),P(a,c,d.S2Event.MERGED_CELLS_RENDER,"mergedCellsRender"),P(a,c,d.S2Event.SERIES_NUMBER_CELL_RENDER,"seriesNumberCellRender"),P(a,c,d.S2Event.RANGE_SORT,"rangeSort"),P(a,c,d.S2Event.RANGE_SORTED,"rangeSorted"),P(a,c,d.S2Event.RANGE_FILTER,"rangeFilter"),P(a,c,d.S2Event.RANGE_FILTERED,"rangeFiltered"),P(a,c,d.S2Event.LAYOUT_AFTER_HEADER_LAYOUT,"layoutAfterHeaderLayout"),P(a,c,d.S2Event.LAYOUT_PAGINATION,"layoutPagination"),P(a,c,d.S2Event.LAYOUT_BEFORE_RENDER,"beforeRender"),P(a,c,d.S2Event.LAYOUT_AFTER_RENDER,"afterRender"),P(a,c,d.S2Event.LAYOUT_DESTROY,"destroy"),P(a,c,d.S2Event.LAYOUT_RESIZE,"layoutResize"),P(a,c,d.S2Event.LAYOUT_RESIZE_SERIES_WIDTH,"layoutResizeSeriesWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_ROW_WIDTH,"layoutResizeRowWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_ROW_HEIGHT,"layoutResizeRowHeight"),P(a,c,d.S2Event.LAYOUT_RESIZE_COL_WIDTH,"layoutResizeColWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_COL_HEIGHT,"layoutResizeColHeight"),P(a,c,d.S2Event.LAYOUT_RESIZE_TREE_WIDTH,"layoutResizeTreeWidth"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_DOWN,"layoutResizeMouseDown"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_UP,"layoutResizeMouseUp"),P(a,c,d.S2Event.LAYOUT_RESIZE_MOUSE_MOVE,"layoutResizeMouseMove"),P(a,c,d.S2Event.GLOBAL_KEYBOARD_DOWN,"keyBoardDown"),P(a,c,d.S2Event.GLOBAL_KEYBOARD_UP,"keyBoardUp"),P(a,c,d.S2Event.GLOBAL_COPIED,"copied"),P(a,c,d.S2Event.GLOBAL_ACTION_ICON_HOVER,"actionIconHover"),P(a,c,d.S2Event.GLOBAL_ACTION_ICON_CLICK,"actionIconClick"),P(a,c,d.S2Event.GLOBAL_CONTEXT_MENU,"contextMenu"),P(a,c,d.S2Event.GLOBAL_HOVER,"mouseHover"),P(a,c,d.S2Event.GLOBAL_CLICK,"click"),P(a,c,d.S2Event.GLOBAL_DOUBLE_CLICK,"doubleClick"),P(a,c,d.S2Event.GLOBAL_SELECTED,"selected"),P(a,c,d.S2Event.GLOBAL_MOUSE_UP,"mouseUp"),P(a,c,d.S2Event.GLOBAL_RESET,"reset"),P(a,c,d.S2Event.GLOBAL_LINK_FIELD_JUMP,"linkFieldJump"),P(a,c,d.S2Event.GLOBAL_SCROLL,"scroll"),P(a,c,d.S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER,"layoutAfterRealDataCellRender"),P(a,c,d.S2Event.ROW_CELL_BRUSH_SELECTION,"rowCellBrushSelection"),P(a,c,d.S2Event.COL_CELL_BRUSH_SELECTION,"colCellBrushSelection"))})},wu=(a,c)=>{var m;const l=o.ref((m=c.value)!=null?m:!1),T=L=>{l.value=L};return o.watch(c,L=>{l.value=L!=null?L:!1}),o.watch(a,L=>{L==null||L.on(d.S2Event.LAYOUT_BEFORE_RENDER,()=>{T(!0)}),L==null||L.on(d.S2Event.LAYOUT_AFTER_RENDER,()=>{T(!1)})}),{loading:l,setLoading:T}},Ou=(a,c,l)=>{const T=o.ref();o.watch([a,()=>c.adaptive],([m,L],O,R)=>{m&&(T.value=d.createResizeObserver({s2:m,adaptive:L,wrapper:l.wrapperRef.value,container:l.containerRef.value}),R(()=>{var B;(B=T.value)==null||B.call(T)}))})},Tu=(a,c,l)=>{const T=o.reactive({rerender:!1,reloadData:!1,rebuildDataset:!1});o.watch(()=>c.options,(m,L)=>{var O,R;T.rerender=!0,Object.is(L==null?void 0:L.hierarchyType,m==null?void 0:m.hierarchyType)||(T.reloadData=!0,T.rebuildDataset=!0),(O=a.value)==null||O.setOptions(m),(R=a.value)==null||R.changeSheetSize(m==null?void 0:m.width,m==null?void 0:m.height)},{deep:o.isProxy(c.options)}),o.watch(()=>c.dataCfg,(m,L)=>{var O,R,B,H,A,y,F;((R=(O=L==null?void 0:L.fields)==null?void 0:O.columns)==null?void 0:R.length)!==((H=(B=m==null?void 0:m.fields)==null?void 0:B.columns)==null?void 0:H.length)&&((y=(A=a.value)==null?void 0:A.facet)==null||y.clearInitColLeafNodes()),T.rerender=!0,T.reloadData=!0,(F=a.value)==null||F.setDataCfg(m)},{deep:o.isProxy(c.dataCfg)}),o.watch(()=>c.themeCfg,m=>{var L;T.rerender=!0,(L=a.value)==null||L.setThemeCfg(m)},{deep:o.isProxy(c.themeCfg)}),o.watch(T,m=>Tr(this,null,function*(){var R,B,H,A,y;if(!m.rerender)return;(R=l==null?void 0:l.before)==null||R.call(l);const L={reloadData:m.reloadData,rebuildDataSet:m.rebuildDataset},O=((B=c==null?void 0:c.onUpdate)==null?void 0:B.call(c,L))||L;yield(H=a.value)==null?void 0:H.render(O),(A=c==null?void 0:c.onUpdateAfterRender)==null||A.call(c,O),(y=l==null?void 0:l.after)==null||y.call(l),m.rerender=!1,m.reloadData=!1,m.rebuildDataset=!1}))};function vu(a,c){const{dataCfg:l,options:T,themeCfg:m,sheetType:L,spreadsheet:O,onMounted:R}=a,B=o.toRef(a,"loading"),H=o.ref(),A=o.ref(),y=o.shallowRef(),{loading:F,setLoading:N}=wu(y,B),k=_u(y,a),J=tn=>{const Mn=o.toRaw(l),un=o.toRaw(T),_n=mu(un);return O?O(tn,Mn,_n):L==="table"||L==="editable"?new d.TableSheet(tn,Mn,_n):new d.PivotSheet(tn,Mn,_n)},W=()=>Tr(this,null,function*(){N(!0),y.value=J(A.value),y.value.setThemeCfg(o.toRaw(m)),yield y.value.render(),N(!1),R==null||R(y.value)});return o.onMounted(W),Lu(y,c),Tu(y,a,{before(){N(!0)},after(){N(!1)}}),Ou(y,a,{wrapperRef:H,containerRef:A}),o.onBeforeUnmount(()=>{var tn;N(!1),(tn=y.value)==null||tn.destroy()}),{wrapperRef:H,containerRef:A,s2Ref:y,loading:F,setLoading:N,pagination:k}}const Ae=()=>({sheetType:String,dataCfg:Object,themeCfg:Object,showPagination:{type:[Object,Boolean],default:!1},loading:Boolean,partDrillDown:Object,header:Object,options:{type:Object,default:{}},adaptive:{type:[Object,Boolean],default:!1},spreadsheet:Function,onMounted:Function,onUpdate:Function,onUpdateAfterRender:Function}),yu=()=>({className:String,title:{type:String,default:d.i18n("选择下钻维度")},searchText:{type:String,default:d.i18n("搜索字段")},clearText:{type:String,default:d.i18n("恢复默认")},extra:Node,dataSet:{type:Array,default:[]},drillFields:Array,disabledFields:Array,getDrillFields:Function,setDrillFields:Function}),Iu=()=>["getDrillFields","setDrillFields"],Au=()=>["spreadsheet","rowCellHover","rowCellClick","rowCellDoubleClick","rowCellContextMenu","rowCellMouseDown","rowCellMouseUp","rowCellMouseMove","rowCellCollapsed","rowCellAllCollapsed","rowCellScroll","colCellHover","colCellClick","colCellDoubleClick","colCellContextMenu","colCellMouseDown","colCellMouseUp","colCellMouseMove","colCellExpanded","colCellHidden","dataCellHover","dataCellClick","dataCellDoubleClick","dataCellContextMenu","dataCellMouseDown","dataCellMouseUp","dataCellMouseMove","dataCellBrushSelection","dataCellSelectMove","cornerCellHover","cornerCellClick","cornerCellDoubleClick","cornerCellContextMenu","cornerCellMouseDown","cornerCellMouseUp","cornerCellMouseMove","mergedCellsHover","mergedCellsClick","mergedCellsDoubleClick","mergedCellsContextMenu","mergedCellsMouseDown","mergedCellsMouseUp","mergedCellsMouseMove","rangeSort","rangeSorted","rangeFilter","rangeFiltered","layoutAfterHeaderLayout","layoutPagination","beforeRender","afterRender","mounted","destroy","layoutResize","layoutResizeSeriesWidth","layoutResizeRowWidth","layoutResizeRowHeight","layoutResizeColWidth","layoutResizeColHeight","layoutResizeTreeWidth","layoutResizeMouseDown","layoutResizeMouseUp","layoutResizeMouseMove","keyBoardDown","keyBoardUp","copied","actionIconHover","actionIconClick","contextMenu","mouseHover","mouseUp","mouseMove","mouseDown","selected","reset","linkFieldJump","click","doubleClick","scroll","hover","layoutAfterRealDataCellRender","rowCellBrushSelection","colCellBrushSelection"],Ru=o.defineComponent({name:"BaseSheet",props:Ae(),emits:Au(),setup(a,c){const{wrapperRef:l,containerRef:T,s2Ref:m,loading:L,pagination:O}=vu(a,c.emit);c.expose({get instance(){return m.value}});const R=H=>{var A,y;a.showPagination&&!hn.isBoolean(a.showPagination)&&((y=(A=a.showPagination).onChange)==null||y.call(A,H)),O.change(H)},B=H=>{var A,y;a.showPagination&&!hn.isBoolean(a.showPagination)&&((y=(A=a.showPagination).onShowSizeChange)==null||y.call(A,H)),O.showSizeChange(H)};return{S2_PREFIX_CLS:d.S2_PREFIX_CLS,wrapperRef:l,containerRef:T,s2Ref:m,loading:L,pagination:O,handlePageChange:R,handlePageSizeChange:B}},components:{Spin:In.Spin,S2Pagination:Eu}});function Du(a,c,l,T,m,L){const O=o.resolveComponent("S2Pagination"),R=o.resolveComponent("Spin");return o.openBlock(),o.createBlock(R,{wrapperClassName:a.S2_PREFIX_CLS+"-spin",spinning:a.loading},{default:o.withCtx(()=>[o.createElementVNode("div",{ref:"wrapperRef",class:o.normalizeClass(a.S2_PREFIX_CLS+"-wrapper")},[o.createElementVNode("div",{ref:"containerRef",class:o.normalizeClass(a.S2_PREFIX_CLS+"-container")},null,2),a.pagination.visible.value?(o.openBlock(),o.createBlock(O,{key:0,current:a.pagination.current.value,pageSize:a.pagination.pageSize.value,total:a.pagination.total.value,customOptions:a.pagination.customOptions,onChange:a.handlePageChange,onShowSizeChange:a.handlePageSizeChange},null,8,["current","pageSize","total","customOptions","onChange","onShowSizeChange"])):o.createCommentVNode("",!0),o.renderSlot(a.$slots,"editCell")],2)]),_:3},8,["wrapperClassName","spinning"])}const Ce=on(Ru,[["render",Du]]),le=a=>{const c=o.shallowRef();return a({get instance(){var l;return(l=c.value)==null?void 0:l.instance}}),c},Bu=o.defineComponent({name:"ChartSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m}=o.toRefs(a),L=o.computed(()=>{const R={style:{rowCell:{width:100},dataCell:{width:400,height:400}},tooltip:{enable:!0}},B={showDefaultHeaderActionIcon:!1,interaction:{hoverFocus:!1,brushSelection:{dataCell:!1}}};return d.customMerge(R,T.value,B)}),O=o.computed(()=>{const R={dataCell:{cell:{interactionState:{hoverFocus:{borderOpacity:0},selected:{borderOpacity:0}}}}};return d.customMerge(R,m==null?void 0:m.value)});return{s2Ref:l,s2Options:L,themeCfg:O}},components:{BaseSheet:Ce}});function Pu(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.themeCfg}),null,16,["options","themeCfg"])}const Ar=on(Bu,[["render",Pu]]);class io extends d.DataCell{drawTextShape(){if(this.isMultiData())return d.drawCustomContent(this);super.drawTextShape()}}const oo=12,lo={dataCell:{text:{fontSize:oo,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 0.85)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},minorText:{fontSize:11,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 0.45)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},derivedMeasureText:{mainUp:"#F46649",mainDown:"#2AA491",minorUp:"#f9ae9e",minorDown:"#a9dad2"},bolderText:{fontSize:oo,fontFamily:d.FONT_FAMILY,fill:"rgba(0, 0, 0, 1)",fontWeight:d.isWindows()?"bold":520,textBaseline:"middle",textAlign:"left"}}},Mu=o.defineComponent({name:"GridAnalysisSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m}=o.toRefs(a),L=o.computed(()=>{const R={dataCell:(B,H)=>new io(B,H),showDefaultHeaderActionIcon:!1,style:{colCell:{hideValue:!0}}};return d.customMerge(T==null?void 0:T.value,R)}),O=o.computed(()=>d.customMerge(m==null?void 0:m.value,{theme:lo}));return{s2Ref:l,s2Options:L,s2ThemeCfg:O}},components:{BaseSheet:Ce}});function $u(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.s2ThemeCfg}),null,16,["options","themeCfg"])}const Rr=on(Mu,[["render",$u]]),xu=o.defineComponent({name:"PivotChartSheet",props:Ae(),emits:[],setup(a,c){return{s2Ref:le(c.expose)}},components:{BaseSheet:Ce}});function Fu(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref"}),null,16)}const Dr=on(xu,[["render",Fu]]),Nu=o.defineComponent({name:"LocationIcon"}),ku={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},Uu=[o.createElementVNode("path",{d:"M511.804 222.338c-57.117 0-105.737 20.061-145.86 60.184-40.122 40.123-60.184 88.569-60.184 145.337 0 56.769 20.062 105.214 60.185 145.337 40.122 40.123 88.742 60.185 145.859 60.185 57.116 0 105.736-20.062 145.859-60.185 40.123-40.123 60.184-88.568 60.184-145.337 0-56.768-20.061-105.214-60.184-145.337-40.123-40.123-88.743-60.184-145.86-60.184z m0 338.619c-36.729 0-68.007-12.925-93.835-38.774-25.827-25.85-38.752-57.127-38.773-93.834-0.022-36.707 12.902-68.16 38.773-94.357 25.872-26.197 57.15-39.285 93.835-39.263 36.685 0.022 67.963 13.11 93.834 39.263 25.871 26.154 38.796 57.606 38.774 94.357-0.022 36.75-12.946 68.028-38.774 93.834-25.828 25.806-57.106 38.73-93.834 38.774z m366.165-295.766c-21.084-42.168-50.327-79.223-87.73-111.165-37.404-31.941-79.898-57.105-127.484-75.491C614.472 60.845 564.155 52 511.804 52c-52.352 0-103.006 8.845-151.963 26.535-46.911 18.364-89.069 43.528-126.472 75.491-37.403 31.964-66.647 69.019-87.731 111.165C123.879 308.71 113 353.923 113 400.835c0 65.95 15.982 132.924 47.945 200.92 26.524 56.441 63.58 112.198 111.165 167.27 62.556 73.435 134.632 138.71 216.227 195.827 6.81 4.765 14.459 7.148 22.945 7.148 8.485 0 16.47-2.383 23.956-7.148 81.595-57.79 153.67-123.067 216.227-195.828 47.608-55.767 84.663-111.524 111.165-167.27 31.963-67.995 47.945-134.969 47.945-200.919 0-46.912-10.88-92.126-32.638-135.644h0.032z m-40.797 136.656c0 55.07-13.6 111.513-40.798 169.326-23.129 49.631-56.452 99.948-99.97 150.95-52.351 61.208-113.885 117.65-184.6 169.326-70.716-51.676-132.25-108.118-184.6-169.326-42.844-51.002-76.167-101.319-99.971-150.95-27.198-57.791-40.797-114.57-40.797-170.338 0-36.032 8.159-70.716 24.478-104.05 16.994-32.638 40.45-61.882 70.368-87.73 30.592-26.525 65.276-47.26 104.05-62.209 40.797-14.97 82.954-22.455 126.472-22.455 43.517 0 85.675 7.485 126.472 22.455 38.752 14.97 73.436 35.706 104.05 62.208 30.593 25.85 54.048 55.093 70.367 87.731 16.32 34.009 24.479 69.03 24.479 105.062z",fill:"currentColor"},null,-1)];function bu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",ku,Uu)}const Wu=on(Nu,[["render",bu]]),zu=o.defineComponent({name:"TextIcon"}),Hu={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},Gu=[o.createElementVNode("path",{d:"M86.016 805.888H0L143.872 275.968h79.36l144.896 529.92H276.992l-29.696-109.056H115.2s-29.696 109.056-29.184 109.056zM225.28 613.376L181.248 455.68 138.24 613.376h87.04zM519.168 430.08c24.576-16.384 47.616-25.088 69.12-25.088 30.72 0 58.368 14.848 81.92 44.032 24.064 29.184 35.328 72.192 35.328 128.512 0 44.032-7.168 83.456-22.528 118.272-14.848 34.816-35.328 62.976-60.416 83.456-26.112 20.992-57.856 31.232-95.232 31.232-15.36-0.512-31.232-1.536-46.592-3.584-4.096-0.512-8.704-1.024-12.8-1.536h-66.56V256h81.92v206.336c11.264-12.8 23.04-23.552 35.84-32.256z m-35.328 157.184v135.168c13.824 3.072 26.112 4.608 37.376 4.608 27.648 0 50.176-11.776 69.12-36.352 19.456-25.088 28.672-59.392 28.672-104.96 0-32.256-5.12-55.296-14.848-70.144-9.216-13.824-18.432-19.968-28.672-19.968-12.288 0-27.136 7.68-44.544 24.064-16.896 16.896-32.768 39.424-47.104 67.584zM1013.76 794.624c-36.864 14.336-71.68 20.992-104.96 20.992-32.768 0.512-64.512-9.216-91.648-27.136-27.136-18.432-48.64-44.032-62.464-73.728-14.848-30.72-22.528-65.536-22.528-104.448 0-58.88 16.896-108.032 51.2-146.944 33.792-38.912 75.264-58.88 123.392-58.88 34.304 0 70.144 7.168 108.032 21.504l10.24 4.096v95.232l-20.992-10.752c-34.816-17.92-65.536-26.624-92.16-26.624-16.896 0-32.768 4.608-47.104 13.824-13.824 8.704-25.088 23.04-32.768 42.496-8.192 19.968-12.288 41.472-12.288 63.488 0 28.672 7.68 55.808 24.064 82.432 14.848 24.576 37.888 36.352 71.168 36.352 10.752 0 21.504-1.024 31.744-2.56 9.728-1.536 29.696-8.192 58.88-18.944l19.456-7.68v92.672l-11.264 4.608z",fill:"currentColor"},null,-1)];function Xu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",Hu,Gu)}const Ku=on(zu,[["render",Xu]]),Yu=o.defineComponent({name:"CalendarIcon"}),Vu={class:"antv-s2-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12.6",height:"12.6"},qu=[o.createElementVNode("path",{d:"M950.016 898.016l-206.016-204.992Q832 586.016 832 448.032q0-159.008-112.512-271.488T448 64.032 176.512 176.544 64 448.032t112.512 271.488T448 832.032q138.016 0 244.992-88l206.016 206.016q10.016 10.016 24.992 10.016t26.016-10.016q10.016-11.008 10.016-26.016t-10.016-26.016zM568.992 736Q512 760 448 760T327.008 736q-56-24-99.488-67.488t-66.496-99.488q-24.992-56.992-24.992-120.992t24.992-120.992q23.008-56 66.496-99.488t99.488-67.488Q384 136.064 448 136.064t120.992 24q56 24 99.488 67.488t67.488 99.488q24 56.992 24 120.992t-24 120.992q-24 56-67.488 99.488T568.992 736z",fill:"currentColor"},null,-1)];function Zu(a,c,l,T,m,L){return o.openBlock(),o.createElementBlock("svg",Vu,qu)}const Ju=on(Yu,[["render",Zu]]),Qu=o.defineComponent({name:"DrillDown",props:yu(),emits:Iu(),methods:{},components:{Button:In.Button,Input:In.Input,Empty:In.Empty,Menu:In.Menu,MenuItem:In.MenuItem,LocationIcon:Wu,TextIcon:Ku,CalendarIcon:Ju},setup(a){const{dataSet:c,disabledFields:l,getDrillFields:T,setDrillFields:m,className:L}=a,O=()=>c.map(F=>(F.disabled=!!(l&&l.includes(F.value)),F)),R=o.ref(O()),B=o.ref([]);return{options:R,handleSearch:F=>{const{value:N}=F.target;if(!N)R.value=[...c];else{const k=new RegExp(N,"gi"),J=c.filter(W=>k.test(W.name));R.value=[...J]}},handleSelect:F=>{const N=F==null?void 0:F.selectedKeys;B.value=N,T&&T(N),m&&m(N)},handleClear:F=>{F.stopPropagation(),B.value=[],T&&T([]),m&&m([])},className:L,selected:B,isEmpty:hn.isEmpty,DRILL_DOWN_PRE_CLASS:d.DRILL_DOWN_PRE_CLASS}}});function ju(a,c,l,T,m,L){const O=o.resolveComponent("Button"),R=o.resolveComponent("Input"),B=o.resolveComponent("Empty"),H=o.resolveComponent("TextIcon"),A=o.resolveComponent("CalendarIcon"),y=o.resolveComponent("LocationIcon"),F=o.resolveComponent("MenuItem"),N=o.resolveComponent("Menu");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([a.DRILL_DOWN_PRE_CLASS,a.className])},[o.createElementVNode("header",{class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-header`)},[o.createElementVNode("div",null,o.toDisplayString(a.title),1),o.createVNode(O,{type:"link",onClick:a.handleClear},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.clearText),1)]),_:1},8,["onClick"])],2),o.createVNode(R,{class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-search`),placeholder:a.searchText,onChange:a.handleSearch,onPressEnter:a.handleSearch,allowClear:!0},null,8,["class","placeholder","onChange","onPressEnter"]),a.isEmpty(a.options)?(o.openBlock(),o.createBlock(B,{key:0,imageStyle:{height:"64px"},class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-empty`)},null,8,["class"])):o.createCommentVNode("",!0),o.createVNode(N,{class:"`${DRILL_DOWN_PRE_CLASS}-menu`",selectedKeys:a.selected,"onUpdate:selectedKeys":c[0]||(c[0]=k=>a.selected=k),onSelect:a.handleSelect},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.options,k=>(o.openBlock(),o.createBlock(F,{key:k.value,disabled:k.disabled,class:o.normalizeClass(`${a.DRILL_DOWN_PRE_CLASS}-menu-item`)},{icon:o.withCtx(()=>[k.type==="text"?(o.openBlock(),o.createBlock(H,{key:0})):o.createCommentVNode("",!0),k.type==="date"?(o.openBlock(),o.createBlock(A,{key:1})):o.createCommentVNode("",!0),k.type==="location"?(o.openBlock(),o.createBlock(y,{key:2})):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.createTextVNode(" "+o.toDisplayString(k==null?void 0:k.name),1)]),_:2},1032,["disabled","class"]))),128))]),_:1},8,["selectedKeys","onSelect"])],2)}const ns=on(Qu,[["render",ju],["__scopeId","data-v-67a7b729"]]),es=o.defineComponent({name:"PivotSheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T}=o.toRefs(a),{dataCfg:m,partDrillDown:L}=o.toRefs(a),O=o.ref([]),R=A=>{var F,N,k,J,W,tn;const y=(F=l==null?void 0:l.value)==null?void 0:F.instance;O.value=A,y==null||y.hideTooltip(),hn.isEmpty(A)?y==null||y.clearDrillDownData((N=y==null?void 0:y.store.get("drillDownNode"))==null?void 0:N.id):d.handleDrillDown({rows:(J=(k=m.value)==null?void 0:k.fields.rows)!=null?J:[],drillFields:A,fetchData:(W=L.value)==null?void 0:W.fetchData,drillItemsNum:(tn=L.value)==null?void 0:tn.drillItemsNum,spreadsheet:y})},B=A=>{var N,k;const{event:y,disabledFields:F}=A;if(y){const J=(N=l==null?void 0:l.value)==null?void 0:N.instance,W=o.createVNode(ns,At(tt({},(k=L.value)==null?void 0:k.drillConfig),{setDrillFields:R,drillFields:O.value,disabledFields:F}));J==null||J.showTooltip({position:{x:y.clientX,y:y.clientY},event:y,content:W})}},H=o.computed(()=>d.buildDrillDownOptions(T.value,L.value,A=>B(A)));return{s2Ref:l,options:H}},components:{BaseSheet:Ce}});function ts(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.options}),null,16,["options"])}const Br=on(es,[["render",ts]]);class ao extends d.ColCell{constructor(c,l,T){super(c,l,T)}drawTextShape(){const c=this.getMeta(),l=d.safeJsonParse(c==null?void 0:c.value);if(!hn.isArray(l))return super.drawTextShape();const{formattedValue:T}=this.getFormattedFieldValue(),m=T!==(c==null?void 0:c.value)?[[T]]:[l];d.drawCustomContent(this,{values:m},!1)}}class uo extends d.DataCell{drawTextShape(){if(this.isMultiData())return d.drawCustomContent(this);super.drawTextShape()}}class so extends d.CustomGridPivotDataSet{getExistValuesByDataItem(c){const l=hn.keys(c).filter(T=>hn.isObject(c[T]));return hn.isEmpty(l)&&l.push(d.EMPTY_EXTRA_FIELD_PLACEHOLDER),l}processDataCfg(c){const l=super.processDataCfg(c),T=this.processMeta(c.meta,d.i18n("数值"));return At(tt({},l),{meta:T,fields:At(tt({},l.fields),{rows:[...c.fields.rows||[],d.EXTRA_FIELD]})})}}const rs=o.defineComponent({name:"StrategySheet",props:Ae(),emits:[],setup(a,c){const l=le(c.expose),{options:T,themeCfg:m,dataCfg:L}=o.toRefs(a),O=o.computed(()=>{var H,A;if(hn.isEmpty(L.value))return null;const B=hn.size((A=(H=L.value)==null?void 0:H.fields)==null?void 0:A.values)===1;return{hierarchyType:"tree",dataCell:(y,F)=>new uo(y,F),colCell:(y,F,N)=>new ao(y,F,N),dataSet:y=>new so(y),showDefaultHeaderActionIcon:!1,style:{colCell:{hideValue:B}},interaction:{autoResetSheetStyle:!0,brushSelection:!1,selectedCellMove:!1,multiSelection:!1,rangeSelection:!1},tooltip:{operation:{hiddenColumns:!0}}}}),R=o.computed(()=>d.customMerge(O.value,T==null?void 0:T.value));return{s2Ref:l,s2Options:R,themeCfg:m}},components:{BaseSheet:Ce}});function is(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,o.mergeProps(a.$props,{ref:"s2Ref",options:a.s2Options,themeCfg:a.themeCfg}),null,16,["options","themeCfg"])}const Pr=on(rs,[["render",is]]),os=o.defineComponent({name:"TableSheet",props:[],emits:[],setup(a,c){return{s2Ref:le(c.expose)}},components:{BaseSheet:Ce}});function ls(a,c,l,T,m,L){const O=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(O,{ref:"s2Ref"},null,512)}const Mr=on(os,[["render",ls]]);function as(a){return tt({},a)}const us=o.defineComponent({name:"EditableSheet",props:Ae(),emits:[],setup(a,c){var F;const l=le(c.expose),{options:T}=o.toRefs(a),m=o.ref(null),L=o.ref(null),O=o.ref(""),R=o.computed(()=>as(T.value)),B=o.reactive({width:0,height:0,left:0,top:0,display:"none",zIndex:1e3,position:"absolute"});function H(){var Vn;const N=(Vn=l.value)==null?void 0:Vn.instance,k=L.value;if(!N||!k){B.display="none";return}const J=N.facet.getScrollOffset();let W=hn.pick(k.getMeta(),["x","y","width","height"]);(hn.isNil(W.x)||hn.isNil(W.y))&&(W={x:0,y:0,width:0,height:0});const tn=N.facet.getColNodes()[0],Mn=(tn==null?void 0:tn.height)||0;W.x-=J.scrollX||0,W.y-=(J.scrollY||0)-Mn;const{x:un,y:_n,width:dn,height:On}=W,An=_n>=0&&_n<=N.facet.getCanvasSize().height&&un>=0&&un<=N.facet.getCanvasSize().width;B.width=dn?`${dn}px`:"0px",B.height=On?`${On}px`:"0px",B.left=un?`${un}px`:"0px",B.top=_n?`${_n}px`:"0px",B.display=L.value&&An?"block":"none"}o.watch([L,(F=l.value)==null?void 0:F.instance.facet.getScrollOffset()],()=>{H()});const A=N=>{L.value=N.target,O.value=N.target.getActualText(),setTimeout(()=>{var k;(k=m.value)==null||k.focus()},100)};function y(){var dn,On;const N=m.value,k=L.value,J=(dn=l.value)==null?void 0:dn.instance;if(!J||!k||!N)return;const{rowIndex:W,valueField:tn,id:Mn}=k.getMeta(),un=N.value,_n=J.dataSet.getDisplayDataSet();_n[W][tn]=un,(On=J.dataSet.displayFormattedValueMap)==null||On.set(Mn,un),J.render(),L.value=null}return{setInputStyle:H,s2Ref:l,options:R,inputStyle:B,onDataCellDbClick:A,inputRef:m,onSave:y,inputValue:O,Input:In.Input}},components:{BaseSheet:Ce}});function ss(a,c,l,T,m,L){const O=o.resolveComponent("Input"),R=o.resolveComponent("BaseSheet");return o.openBlock(),o.createBlock(R,o.mergeProps({onDataCellDoubleClick:a.onDataCellDbClick,onScroll:a.setInputStyle,onDataCellClick:a.onSave,ref:"s2Ref"},a.$props,{options:a.options}),{editCell:o.withCtx(()=>[o.createVNode(O,{onBlur:a.onSave,value:a.inputValue,ref:"inputRef",style:o.normalizeStyle(a.inputStyle)},null,8,["onBlur","value","style"])]),_:1},16,["onDataCellDoubleClick","onScroll","onDataCellClick","options"])}const $r=on(us,[["render",ss]]),fs=o.defineComponent({name:"Sheet",props:[],emits:[],setup(a,c){const l=le(c.expose),T=o.computed(()=>{switch(c.attrs.sheetType){case"table":return Mr;case"editable":return $r;case"chart":return Ar;case"gridAnalysis":return Rr;case"strategy":return Pr;case"pivotChart":return Dr;default:return Br}});return{s2Ref:l,sheetType:T}},components:{PivotSheet:Br,TableSheet:Mr,EditableSheet:$r,ChartSheet:Ar,GridAnalysisSheet:Rr,StrategySheet:Pr,PivotChartSheet:Dr}});function cs(a,c,l,T,m,L){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.sheetType),{ref:"s2Ref"},null,512)}const ps=on(fs,[["render",cs]]),hs="@antv/s2-vue-v2.1.0-alpha.2";K.BaseSheet=Ce,K.ChartSheet=Ar,K.CustomTooltip=ro,K.EditableSheet=$r,K.GridAnalysisSheet=Rr,K.GridAnalysisSheetDataCell=io,K.GridAnalysisTheme=lo,K.PivotChartSheet=Dr,K.PivotSheet=Br,K.SheetComponent=ps,K.StrategySheet=Pr,K.StrategySheetColCell=ao,K.StrategySheetDataCell=uo,K.StrategySheetDataSet=so,K.TableSheet=Mr,K.useExpose=le,K.version=hs,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|
|
28
28
|
//# sourceMappingURL=s2-vue.min.js.map
|