vue-data-ui 3.20.0 → 3.20.1
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/package.json +120 -120
- package/dist/A11yDataTable-BCbtxMU6.js +0 -45
- package/dist/Arrow-D6j6ocXm.js +0 -116
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
- package/dist/BaseIcon-DfLoHNUj.js +0 -502
- package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
- package/dist/BaseScanner-Dr2a1Msy.js +0 -27
- package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
- package/dist/ColorPicker-Bjwxnvfh.js +0 -255
- package/dist/DataTable-B--IN22e.js +0 -150
- package/dist/Legend-Cz2uQ5gs.js +0 -114
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
- package/dist/PackageVersion-xcyrdRmY.js +0 -11
- package/dist/PenAndPaper-DqrClVfb.js +0 -461
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BPCJfphn.js +0 -141
- package/dist/Slicer-SHBj0VaV.js +0 -1144
- package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
- package/dist/SparkTooltip-CfE6yCad.js +0 -93
- package/dist/Title-NWp4qB4K.js +0 -87
- package/dist/Tooltip-BENq327o.js +0 -312
- package/dist/UserOptions-C1NgoGu6.js +0 -1411
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/canvas-lib-BOP_HS11.js +0 -79
- package/dist/components/arrow.js +0 -2
- package/dist/components/vue-ui-3d-bar.js +0 -2
- package/dist/components/vue-ui-accordion.js +0 -2
- package/dist/components/vue-ui-age-pyramid.js +0 -2
- package/dist/components/vue-ui-annotator.js +0 -2
- package/dist/components/vue-ui-bullet.js +0 -2
- package/dist/components/vue-ui-bump.js +0 -2
- package/dist/components/vue-ui-candlestick.js +0 -2
- package/dist/components/vue-ui-carousel-table.js +0 -2
- package/dist/components/vue-ui-chestnut.js +0 -2
- package/dist/components/vue-ui-chord.js +0 -2
- package/dist/components/vue-ui-circle-pack.js +0 -2
- package/dist/components/vue-ui-cursor.js +0 -2
- package/dist/components/vue-ui-dag.js +0 -2
- package/dist/components/vue-ui-dashboard.js +0 -2
- package/dist/components/vue-ui-digits.js +0 -2
- package/dist/components/vue-ui-donut-evolution.js +0 -2
- package/dist/components/vue-ui-donut.js +0 -2
- package/dist/components/vue-ui-dumbbell.js +0 -2
- package/dist/components/vue-ui-flow.js +0 -2
- package/dist/components/vue-ui-funnel.js +0 -2
- package/dist/components/vue-ui-galaxy.js +0 -2
- package/dist/components/vue-ui-gauge.js +0 -2
- package/dist/components/vue-ui-geo.js +0 -2
- package/dist/components/vue-ui-gizmo.js +0 -2
- package/dist/components/vue-ui-heatmap.js +0 -2
- package/dist/components/vue-ui-history-plot.js +0 -2
- package/dist/components/vue-ui-horizontal-bar.js +0 -2
- package/dist/components/vue-ui-icon.js +0 -2
- package/dist/components/vue-ui-kpi.js +0 -2
- package/dist/components/vue-ui-mini-loader.js +0 -2
- package/dist/components/vue-ui-molecule.js +0 -2
- package/dist/components/vue-ui-mood-radar.js +0 -2
- package/dist/components/vue-ui-nested-donuts.js +0 -2
- package/dist/components/vue-ui-onion.js +0 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
- package/dist/components/vue-ui-pattern-seed.js +0 -2
- package/dist/components/vue-ui-pattern.js +0 -2
- package/dist/components/vue-ui-quadrant.js +0 -2
- package/dist/components/vue-ui-quick-chart.js +0 -2
- package/dist/components/vue-ui-radar.js +0 -2
- package/dist/components/vue-ui-rating.js +0 -2
- package/dist/components/vue-ui-relation-circle.js +0 -2
- package/dist/components/vue-ui-ridgeline.js +0 -2
- package/dist/components/vue-ui-rings.js +0 -2
- package/dist/components/vue-ui-scatter.js +0 -2
- package/dist/components/vue-ui-skeleton.js +0 -2
- package/dist/components/vue-ui-smiley.js +0 -2
- package/dist/components/vue-ui-spark-trend.js +0 -2
- package/dist/components/vue-ui-sparkbar.js +0 -2
- package/dist/components/vue-ui-sparkgauge.js +0 -2
- package/dist/components/vue-ui-sparkhistogram.js +0 -2
- package/dist/components/vue-ui-sparkline.js +0 -2
- package/dist/components/vue-ui-sparkstackbar.js +0 -2
- package/dist/components/vue-ui-stackbar.js +0 -2
- package/dist/components/vue-ui-stackline.js +0 -2
- package/dist/components/vue-ui-strip-plot.js +0 -2
- package/dist/components/vue-ui-table-heatmap.js +0 -2
- package/dist/components/vue-ui-table-sparkline.js +0 -2
- package/dist/components/vue-ui-table.js +0 -2
- package/dist/components/vue-ui-thermometer.js +0 -2
- package/dist/components/vue-ui-timer.js +0 -2
- package/dist/components/vue-ui-tiremarks.js +0 -2
- package/dist/components/vue-ui-treemap.js +0 -2
- package/dist/components/vue-ui-vertical-bar.js +0 -2
- package/dist/components/vue-ui-waffle.js +0 -2
- package/dist/components/vue-ui-wheel.js +0 -2
- package/dist/components/vue-ui-word-cloud.js +0 -2
- package/dist/components/vue-ui-world.js +0 -2
- package/dist/components/vue-ui-xy-canvas.js +0 -2
- package/dist/components/vue-ui-xy.js +0 -2
- package/dist/dom-to-png-BYtB4BF3.js +0 -237
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/geoProjections-Czak6Jn1.js +0 -145
- package/dist/img-1cKsci8e.js +0 -74
- package/dist/labelUtils-CUctkYoA.js +0 -19
- package/dist/lib-DUeYQsS0.js +0 -1882
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-D0eZ99cP.js +0 -90
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/style.css +0 -2
- package/dist/types/arrow.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -551
- package/dist/types/vue-data-ui.d.ts +0 -17190
- package/dist/types/vue-ui-3d-bar.d.ts +0 -93
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
- package/dist/types/vue-ui-annotator.d.ts +0 -34
- package/dist/types/vue-ui-bullet.d.ts +0 -85
- package/dist/types/vue-ui-bump.d.ts +0 -92
- package/dist/types/vue-ui-candlestick.d.ts +0 -106
- package/dist/types/vue-ui-carousel-table.d.ts +0 -59
- package/dist/types/vue-ui-chestnut.d.ts +0 -98
- package/dist/types/vue-ui-chord.d.ts +0 -110
- package/dist/types/vue-ui-circle-pack.d.ts +0 -126
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -125
- package/dist/types/vue-ui-dashboard.d.ts +0 -68
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
- package/dist/types/vue-ui-donut.d.ts +0 -123
- package/dist/types/vue-ui-dumbbell.d.ts +0 -94
- package/dist/types/vue-ui-flow.d.ts +0 -106
- package/dist/types/vue-ui-funnel.d.ts +0 -79
- package/dist/types/vue-ui-galaxy.d.ts +0 -114
- package/dist/types/vue-ui-gauge.d.ts +0 -89
- package/dist/types/vue-ui-geo.d.ts +0 -94
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -101
- package/dist/types/vue-ui-history-plot.d.ts +0 -114
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
- package/dist/types/vue-ui-icon.d.ts +0 -15
- package/dist/types/vue-ui-kpi.d.ts +0 -25
- package/dist/types/vue-ui-mini-loader.d.ts +0 -15
- package/dist/types/vue-ui-molecule.d.ts +0 -112
- package/dist/types/vue-ui-mood-radar.d.ts +0 -92
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
- package/dist/types/vue-ui-onion.d.ts +0 -106
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
- package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
- package/dist/types/vue-ui-pattern.d.ts +0 -15
- package/dist/types/vue-ui-quadrant.d.ts +0 -125
- package/dist/types/vue-ui-quick-chart.d.ts +0 -108
- package/dist/types/vue-ui-radar.d.ts +0 -116
- package/dist/types/vue-ui-rating.d.ts +0 -42
- package/dist/types/vue-ui-relation-circle.d.ts +0 -92
- package/dist/types/vue-ui-ridgeline.d.ts +0 -106
- package/dist/types/vue-ui-rings.d.ts +0 -98
- package/dist/types/vue-ui-scatter.d.ts +0 -97
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -28
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -49
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
- package/dist/types/vue-ui-sparkline.d.ts +0 -59
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
- package/dist/types/vue-ui-stackbar.d.ts +0 -118
- package/dist/types/vue-ui-stackline.d.ts +0 -114
- package/dist/types/vue-ui-strip-plot.d.ts +0 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
- package/dist/types/vue-ui-table.d.ts +0 -38
- package/dist/types/vue-ui-thermometer.d.ts +0 -70
- package/dist/types/vue-ui-timer.d.ts +0 -49
- package/dist/types/vue-ui-tiremarks.d.ts +0 -70
- package/dist/types/vue-ui-treemap.d.ts +0 -104
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -101
- package/dist/types/vue-ui-wheel.d.ts +0 -70
- package/dist/types/vue-ui-word-cloud.d.ts +0 -97
- package/dist/types/vue-ui-world.d.ts +0 -98
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
- package/dist/types/vue-ui-xy.d.ts +0 -146
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useConfig-DAyQk86L.js +0 -7479
- package/dist/useFitSvgText-CT3nmlaS.js +0 -63
- package/dist/useNestedProp-CNcoy38D.js +0 -10
- package/dist/useObjectBindings-BI7hP-BC.js +0 -189
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-C1Gqt_Sp.js +0 -49
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useSvgExport-SVIsDot8.js +0 -755
- package/dist/useTableResponsive-B24Uwt2E.js +0 -24
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-BmBRv27Y.js +0 -272
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-qpQv-4uP.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
- package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
- package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
- package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
- package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
- package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
- package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
- package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
- package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
- package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
- package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
- package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
- package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
- package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
- package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
- package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
- package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
- package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
- package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
- package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
- package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
- package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
- package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
- package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
- package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
- package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
- package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
- package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
- package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
- package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
- package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
- package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
- package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
- package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
- package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
- package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
- package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
- package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
- package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
- package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
- package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
- package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
- package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
- package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
- package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
- package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
- package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
- package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
- package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
- package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
- package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
- package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
- package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
- package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
- package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
- package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
- package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
- package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
- package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
- package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
- package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
- package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { nextTick as e, onBeforeUnmount as t, ref as n, watch as r } from "vue";
|
|
2
|
-
//#region src/useTableResponsive.js
|
|
3
|
-
function i(i, a) {
|
|
4
|
-
let o = n(!1), s = null;
|
|
5
|
-
function c() {
|
|
6
|
-
s &&= (s.disconnect(), null);
|
|
7
|
-
}
|
|
8
|
-
async function l() {
|
|
9
|
-
c(), await e();
|
|
10
|
-
let t = i.value;
|
|
11
|
-
t && (s = new ResizeObserver((e) => {
|
|
12
|
-
o.value = e[0].contentRect.width < a.value;
|
|
13
|
-
}), s.observe(t));
|
|
14
|
-
}
|
|
15
|
-
return r([i, a], () => {
|
|
16
|
-
l();
|
|
17
|
-
}, { immediate: !0 }), t(c), {
|
|
18
|
-
isResponsive: o,
|
|
19
|
-
start: l,
|
|
20
|
-
stop: c
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { i as t };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { computed as e } from "vue";
|
|
2
|
-
//#region src/useThemeCheck.js
|
|
3
|
-
function t() {
|
|
4
|
-
let t = e(() => (e) => !e || !e.theme ? !1 : [
|
|
5
|
-
"default",
|
|
6
|
-
"dark",
|
|
7
|
-
"celebration",
|
|
8
|
-
"celebrationNight",
|
|
9
|
-
"hack",
|
|
10
|
-
"zen",
|
|
11
|
-
"concrete",
|
|
12
|
-
"minimal",
|
|
13
|
-
"minimalDark"
|
|
14
|
-
].includes(e.theme));
|
|
15
|
-
function n(e) {
|
|
16
|
-
e?.debug && console.warn(`Vue Data UI - "${e?.theme}" is not a valid theme.\n\nAvailable themes:\n\n- default (or "")\n- dark\n- celebration\n- celebrationNight \n- hack\n- zen\n- concrete`);
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
isThemeValid: t,
|
|
20
|
-
warnInvalidTheme: n
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { t };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { nextTick as e, watch as t } from "vue";
|
|
2
|
-
//#region src/useTimeLabelCollider.js
|
|
3
|
-
function n({ timeLabelsEls: n, timeLabels: r, slicer: i, configRef: a, rotationPath: o, autoRotatePath: s, isAutoSize: c, setViewBox: l, forceResizeObserver: u, callback: d, targetClass: f = ".vue-data-ui-time-label", rotation: p = -30.0001, height: m = null, width: h = null }) {
|
|
4
|
-
function g(e, t) {
|
|
5
|
-
return t.reduce((e, t) => e && e[t], e);
|
|
6
|
-
}
|
|
7
|
-
function _(e, t, n) {
|
|
8
|
-
t.slice(0, -1).reduce((e, t) => e[t], e)[t.slice(-1)] = n;
|
|
9
|
-
}
|
|
10
|
-
function v(e) {
|
|
11
|
-
let t = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(e);
|
|
12
|
-
return t ? {
|
|
13
|
-
x: parseFloat(t[1]),
|
|
14
|
-
y: parseFloat(t[2])
|
|
15
|
-
} : {
|
|
16
|
-
x: 0,
|
|
17
|
-
y: 0
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
async function y() {
|
|
21
|
-
await e();
|
|
22
|
-
let t = n.value;
|
|
23
|
-
if (!t) return;
|
|
24
|
-
let r = Array.from(t.querySelectorAll(f)).map((e) => ({
|
|
25
|
-
...v(e.getAttribute("transform")),
|
|
26
|
-
width: e.getBBox().width
|
|
27
|
-
})), i = !1;
|
|
28
|
-
for (let e = 0; e < r.length && !i; e += 1) for (let t = e + 1; t < r.length; t += 1) {
|
|
29
|
-
let n = r[e], a = r[t];
|
|
30
|
-
if (!(n.x + n.width + 4 < a.x || a.x + a.width + 4 < n.x)) {
|
|
31
|
-
i = !0;
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
let s = g(a.value, o);
|
|
36
|
-
i && !s ? (_(a.value, o, p), d && d({ collision: i }), c.value && l && u && (l(), u())) : !i && s === p && (_(a.value, o, 0), d && d({ collision: i }));
|
|
37
|
-
}
|
|
38
|
-
function b(e, t) {
|
|
39
|
-
let n;
|
|
40
|
-
return (...r) => {
|
|
41
|
-
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
let x = b(y, 200);
|
|
45
|
-
return m && h && t([() => h.value, () => m.value], async ([e, t], [n, r]) => {
|
|
46
|
-
g(a.value, s) && (e !== n || t !== r ? x() : await y());
|
|
47
|
-
}), t([
|
|
48
|
-
() => r.value,
|
|
49
|
-
() => g(a.value, o),
|
|
50
|
-
() => i.value.start,
|
|
51
|
-
() => i.value.end
|
|
52
|
-
], async ([, , e, t], [, , n, r]) => {
|
|
53
|
-
g(a.value, s) && (e !== n || t !== r ? x() : await y());
|
|
54
|
-
}, { immediate: !0 }), { detectTimeLabelCollision: y };
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { n as t };
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
//#region src/useLocale.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return String(e || "").toLowerCase();
|
|
4
|
-
}
|
|
5
|
-
function t(e) {
|
|
6
|
-
let t = (t, n, r) => {
|
|
7
|
-
let i = new Intl.DateTimeFormat(e, { [n]: r });
|
|
8
|
-
return Array.from({ length: t }, (e, t) => {
|
|
9
|
-
let r = n === "month" ? new Date(2025, t, 1) : new Date(2025, 0, 5 + t);
|
|
10
|
-
return i.format(r);
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
return {
|
|
14
|
-
months: t(12, "month", "long"),
|
|
15
|
-
shortMonths: t(12, "month", "short"),
|
|
16
|
-
days: t(7, "weekday", "long"),
|
|
17
|
-
shortDays: t(7, "weekday", "short")
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var n = /* @__PURE__ */ new Map();
|
|
21
|
-
async function r(r) {
|
|
22
|
-
let i = e(r) || "en";
|
|
23
|
-
return n.has(i) || n.set(i, t(i)), {
|
|
24
|
-
key: i,
|
|
25
|
-
data: n.get(i)
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/useDateTime.js
|
|
30
|
-
function i({ useUTC: e = !1, min: t = void 0, max: n = void 0, locale: r = {
|
|
31
|
-
months: [],
|
|
32
|
-
shortMonths: [],
|
|
33
|
-
days: [],
|
|
34
|
-
shortDays: []
|
|
35
|
-
}, januaryAsYear: i = !1 }) {
|
|
36
|
-
let a = [
|
|
37
|
-
2,
|
|
38
|
-
4,
|
|
39
|
-
6,
|
|
40
|
-
9,
|
|
41
|
-
11
|
|
42
|
-
], o = [
|
|
43
|
-
0,
|
|
44
|
-
31,
|
|
45
|
-
59,
|
|
46
|
-
90,
|
|
47
|
-
120,
|
|
48
|
-
151,
|
|
49
|
-
181,
|
|
50
|
-
212,
|
|
51
|
-
243,
|
|
52
|
-
273,
|
|
53
|
-
304,
|
|
54
|
-
334
|
|
55
|
-
];
|
|
56
|
-
function s(e) {
|
|
57
|
-
return e % 12;
|
|
58
|
-
}
|
|
59
|
-
function c(e) {
|
|
60
|
-
return typeof e == "number" ? !0 : !isNaN(d(e));
|
|
61
|
-
}
|
|
62
|
-
function l(t) {
|
|
63
|
-
let n = Date.parse(t);
|
|
64
|
-
if (isNaN(n)) return t;
|
|
65
|
-
if (!e) return n;
|
|
66
|
-
let r = String(t).replace(/([+-]\d{2}:\d{2}|Z)$/, "");
|
|
67
|
-
return Date.parse(r + "Z");
|
|
68
|
-
}
|
|
69
|
-
function u(e) {
|
|
70
|
-
return new Date(e);
|
|
71
|
-
}
|
|
72
|
-
function d(e) {
|
|
73
|
-
return l(isNaN(Date.parse(e)) ? Date.parse(e.replace(/-/g, "/").replace(/[a-z]+/gi, " ")) : e);
|
|
74
|
-
}
|
|
75
|
-
function f(e) {
|
|
76
|
-
return Date.parse(e.replace(/-/g, "/").replace(/[a-z]+/gi, " "));
|
|
77
|
-
}
|
|
78
|
-
function p(t, n) {
|
|
79
|
-
let a = e, o = RegExp(`\\\\(${(/* @__PURE__ */ "yyyy.yy.y.MMMM.MMM.MM.M.dddd.ddd.dd.d.HH.H.hh.h.mm.m.ss.s.fff.ff.f.TT.T.tt.t.K".split(".")).join("|")})`, "g"), s = [];
|
|
80
|
-
n = n.replace(o, (e, t) => (s.push(t), `{{${s.length - 1}}}`));
|
|
81
|
-
let c = ["\0", ...r.months], l = ["", ...r.shortMonths], u = ["", ...r.days], d = ["", ...r.shortDays];
|
|
82
|
-
function f(e, t = 2) {
|
|
83
|
-
let n = String(e);
|
|
84
|
-
for (; n.length < t;) n = "0" + n;
|
|
85
|
-
return n;
|
|
86
|
-
}
|
|
87
|
-
let p = a ? t.getUTCFullYear() : t.getFullYear();
|
|
88
|
-
n = n.replace(/(^|[^\\])yyyy+/g, `$1${p}`).replace(/(^|[^\\])yy/g, `$1${String(p).substr(2, 2)}`).replace(/(^|[^\\])y/g, `$1${p}`);
|
|
89
|
-
let m = (a ? t.getUTCMonth() : t.getMonth()) + 1;
|
|
90
|
-
i && m === 1 && (c[1] = String(p), l[1] = String(p)), n = n.replace(/(^|[^\\])MMMM+/g, `$1${c[0]}`).replace(/(^|[^\\])MMM/g, `$1${l[0]}`).replace(/(^|[^\\])MM/g, `$1${f(m)}`).replace(/(^|[^\\])M/g, `$1${m}`);
|
|
91
|
-
let h = a ? t.getUTCDate() : t.getDate();
|
|
92
|
-
n = n.replace(/(^|[^\\])dddd+/g, `$1${u[0]}`).replace(/(^|[^\\])ddd/g, `$1${d[0]}`).replace(/(^|[^\\])dd/g, `$1${f(h)}`).replace(/(^|[^\\])d/g, `$1${h}`);
|
|
93
|
-
let g = a ? t.getUTCHours() : t.getHours();
|
|
94
|
-
n = n.replace(/(^|[^\\])HH+/g, `$1${f(g)}`).replace(/(^|[^\\])H/g, `$1${g}`);
|
|
95
|
-
let _ = g > 12 ? g - 12 : g === 0 ? 12 : g;
|
|
96
|
-
n = n.replace(/(^|[^\\])hh+/g, `$1${f(_)}`).replace(/(^|[^\\])h/g, `$1${_}`);
|
|
97
|
-
let v = a ? t.getUTCMinutes() : t.getMinutes();
|
|
98
|
-
n = n.replace(/(^|[^\\])mm+/g, `$1${f(v)}`).replace(/(^|[^\\])m/g, `$1${v}`);
|
|
99
|
-
let y = a ? t.getUTCSeconds() : t.getSeconds();
|
|
100
|
-
n = n.replace(/(^|[^\\])ss+/g, `$1${f(y)}`).replace(/(^|[^\\])s/g, `$1${y}`);
|
|
101
|
-
let b = a ? t.getUTCMilliseconds() : t.getMilliseconds();
|
|
102
|
-
n = n.replace(/(^|[^\\])fff+/g, `$1${f(b, 3)}`), b = Math.round(b / 10), n = n.replace(/(^|[^\\])ff/g, `$1${f(b)}`), b = Math.round(b / 10), n = n.replace(/(^|[^\\])f/g, `$1${b}`);
|
|
103
|
-
let x = g < 12 ? "AM" : "PM";
|
|
104
|
-
n = n.replace(/(^|[^\\])TT+/g, `$1${x}`).replace(/(^|[^\\])T/g, `$1${x.charAt(0)}`).replace(/(^|[^\\])tt+/g, `$1${x.toLowerCase()}`).replace(/(^|[^\\])t/g, `$1${x.toLowerCase().charAt(0)}`);
|
|
105
|
-
let S = -t.getTimezoneOffset(), C = a || !S ? "Z" : S > 0 ? "+" : "-";
|
|
106
|
-
if (!a) {
|
|
107
|
-
S = Math.abs(S);
|
|
108
|
-
let e = Math.floor(S / 60), t = S % 60;
|
|
109
|
-
C += f(e) + ":" + f(t);
|
|
110
|
-
}
|
|
111
|
-
n = n.replace(/(^|[^\\])K/g, `$1${C}`);
|
|
112
|
-
let w = (a ? t.getUTCDay() : t.getDay()) + 1;
|
|
113
|
-
return n = n.replace(new RegExp(u[0], "g"), u[w]).replace(new RegExp(d[0], "g"), d[w]).replace(new RegExp(c[0], "g"), c[m]).replace(new RegExp(l[0], "g"), l[m]), n = n.replace(/{{(\d+)}}/g, (e, t) => s[+t]), n;
|
|
114
|
-
}
|
|
115
|
-
function m(e, r) {
|
|
116
|
-
t !== void 0 && (e = t), n !== void 0 && (r = n);
|
|
117
|
-
let i = u(e), a = u(r), o = p(i, "yyyy MM dd HH mm ss fff").split(" "), s = p(a, "yyyy MM dd HH mm ss fff").split(" ");
|
|
118
|
-
return {
|
|
119
|
-
minMillisecond: parseInt(o[6], 10),
|
|
120
|
-
maxMillisecond: parseInt(s[6], 10),
|
|
121
|
-
minSecond: parseInt(o[5], 10),
|
|
122
|
-
maxSecond: parseInt(s[5], 10),
|
|
123
|
-
minMinute: parseInt(o[4], 10),
|
|
124
|
-
maxMinute: parseInt(s[4], 10),
|
|
125
|
-
minHour: parseInt(o[3], 10),
|
|
126
|
-
maxHour: parseInt(s[3], 10),
|
|
127
|
-
minDate: parseInt(o[2], 10),
|
|
128
|
-
maxDate: parseInt(s[2], 10),
|
|
129
|
-
minMonth: parseInt(o[1], 10) - 1,
|
|
130
|
-
maxMonth: parseInt(s[1], 10) - 1,
|
|
131
|
-
minYear: parseInt(o[0], 10),
|
|
132
|
-
maxYear: parseInt(s[0], 10)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function h(e) {
|
|
136
|
-
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
137
|
-
}
|
|
138
|
-
function g(e, t, n) {
|
|
139
|
-
return y(e, t) - n;
|
|
140
|
-
}
|
|
141
|
-
function _(e) {
|
|
142
|
-
return h(e) ? 366 : 365;
|
|
143
|
-
}
|
|
144
|
-
function v(e, t, n) {
|
|
145
|
-
let r = o[t] + n;
|
|
146
|
-
return t > 1 && h(e) && (r += 1), r;
|
|
147
|
-
}
|
|
148
|
-
function y(e, t) {
|
|
149
|
-
return e = s(e), a.includes(e) ? e === 2 ? h(t) ? 29 : 28 : 30 : 31;
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
isValidDate: c,
|
|
153
|
-
getTimeStamp: l,
|
|
154
|
-
getDate: u,
|
|
155
|
-
parseDate: d,
|
|
156
|
-
parseDateWithTimezone: f,
|
|
157
|
-
formatDate: p,
|
|
158
|
-
getTimeUnitsfromTimestamp: m,
|
|
159
|
-
isLeapYear: h,
|
|
160
|
-
calculateLastDaysOfMonth: g,
|
|
161
|
-
determineDaysOfYear: _,
|
|
162
|
-
determineRemainingDaysOfYear: v,
|
|
163
|
-
determineDaysOfMonths: y
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/useTimeLabels.js
|
|
168
|
-
var a = 1440 * 60;
|
|
169
|
-
async function o({ values: e, maxDatapoints: t, formatter: n, start: o, end: s }) {
|
|
170
|
-
let c = [];
|
|
171
|
-
if (!n.enable || e.length === 0) {
|
|
172
|
-
for (let t = o; t < s; t += 1) c.push({
|
|
173
|
-
text: String(e[t] ?? t),
|
|
174
|
-
absoluteIndex: t
|
|
175
|
-
});
|
|
176
|
-
return c;
|
|
177
|
-
}
|
|
178
|
-
let l = e.map((e) => {
|
|
179
|
-
let t = new Date(e).getTime();
|
|
180
|
-
return isNaN(t) ? e : t;
|
|
181
|
-
}).slice(o, s);
|
|
182
|
-
if (l.length === 0) return [];
|
|
183
|
-
let u = l[0], d = l[l.length - 1], f;
|
|
184
|
-
try {
|
|
185
|
-
({data: f} = await r(n.locale));
|
|
186
|
-
} catch {
|
|
187
|
-
({data: f} = await r("en"));
|
|
188
|
-
}
|
|
189
|
-
let p = i({
|
|
190
|
-
useUTC: n.useUTC,
|
|
191
|
-
min: u,
|
|
192
|
-
max: d,
|
|
193
|
-
locale: f,
|
|
194
|
-
januaryAsYear: n.januaryAsYear
|
|
195
|
-
}), m = (d - u) / (1e3 * a), h = m * 24, g = h * 60, _ = g * 60, v;
|
|
196
|
-
switch (!0) {
|
|
197
|
-
case m / 365 > 5:
|
|
198
|
-
v = "years";
|
|
199
|
-
break;
|
|
200
|
-
case m > 800:
|
|
201
|
-
v = "half_year";
|
|
202
|
-
break;
|
|
203
|
-
case m > 180:
|
|
204
|
-
v = "months";
|
|
205
|
-
break;
|
|
206
|
-
case m > 90:
|
|
207
|
-
v = "months_fortnight";
|
|
208
|
-
break;
|
|
209
|
-
case m > 60:
|
|
210
|
-
v = "months_days";
|
|
211
|
-
break;
|
|
212
|
-
case m > 30:
|
|
213
|
-
v = "week_days";
|
|
214
|
-
break;
|
|
215
|
-
case m > 2:
|
|
216
|
-
v = "days";
|
|
217
|
-
break;
|
|
218
|
-
case h > 2.4:
|
|
219
|
-
v = "hours";
|
|
220
|
-
break;
|
|
221
|
-
case g > 15:
|
|
222
|
-
v = "minutes_fives";
|
|
223
|
-
break;
|
|
224
|
-
case g > 5:
|
|
225
|
-
v = "minutes";
|
|
226
|
-
break;
|
|
227
|
-
case g > 1:
|
|
228
|
-
v = "seconds_tens";
|
|
229
|
-
break;
|
|
230
|
-
case _ > 20:
|
|
231
|
-
v = "seconds_fives";
|
|
232
|
-
break;
|
|
233
|
-
default:
|
|
234
|
-
v = "seconds";
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
let y;
|
|
238
|
-
y = v === "years" ? "year" : [
|
|
239
|
-
"half_year",
|
|
240
|
-
"months",
|
|
241
|
-
"months_fortnight",
|
|
242
|
-
"months_days",
|
|
243
|
-
"week_days"
|
|
244
|
-
].includes(v) ? "month" : v === "days" ? "day" : v === "hours" ? "hour" : ["minutes_fives", "minutes"].includes(v) ? "minute" : "second";
|
|
245
|
-
let b = n.options[y] ?? n.options.hour, x = n.options.year, S = n.options.month, C = n.options.day;
|
|
246
|
-
return l.forEach((e, t) => {
|
|
247
|
-
let r = new Date(e), i;
|
|
248
|
-
switch (y) {
|
|
249
|
-
case "year":
|
|
250
|
-
i = p.formatDate(r, x);
|
|
251
|
-
break;
|
|
252
|
-
case "month": {
|
|
253
|
-
let e = n.useUTC ? r.getUTCMonth() : r.getMonth();
|
|
254
|
-
i = n.januaryAsYear && e === 0 ? p.formatDate(r, x) : p.formatDate(r, S);
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
case "day":
|
|
258
|
-
i = p.formatDate(r, C);
|
|
259
|
-
break;
|
|
260
|
-
default: {
|
|
261
|
-
let e = n.useUTC ? r.getUTCHours() : r.getHours(), t = n.useUTC ? r.getUTCMinutes() : r.getMinutes();
|
|
262
|
-
i = e === 0 && t === 0 ? p.formatDate(r, C) : p.formatDate(r, b);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
c.push({
|
|
266
|
-
text: i,
|
|
267
|
-
absoluteIndex: o + t
|
|
268
|
-
});
|
|
269
|
-
}), c;
|
|
270
|
-
}
|
|
271
|
-
//#endregion
|
|
272
|
-
export { i as n, r, o as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { computed as e, ref as t } from "vue";
|
|
2
|
-
//#region src/useUserOptionState.js
|
|
3
|
-
function n({ config: n }) {
|
|
4
|
-
let r = e(() => n.userOptions.showOnChartHover), i = e(() => n.userOptions.keepStateOnChartLeave), a = t(!n.userOptions.showOnChartHover);
|
|
5
|
-
function o(e = !1) {
|
|
6
|
-
r.value && (a.value = e);
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
userOptionsVisible: a,
|
|
10
|
-
keepUserOptionState: i,
|
|
11
|
-
setUserOptionsVisibility: o
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { n as t };
|
package/dist/utils.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { I as e, U as t, it as n, k as r, n as i, r as a, rt as o, st as s, tt as c, z as l } from "./lib-DUeYQsS0.js";
|
|
2
|
-
import { i as u, n as d, r as f, t as p } from "./exposedLib-CI8ji8G-.js";
|
|
3
|
-
import { t as m } from "./patternUtils-CS7hn6at.js";
|
|
4
|
-
import { i as h, n as g, r as _, t as v } from "./useObjectBindings-BI7hP-BC.js";
|
|
5
|
-
//#region src/entries/utils.js
|
|
6
|
-
var y = {
|
|
7
|
-
applyDataCorrection: g,
|
|
8
|
-
getVueDataUiConfig: h,
|
|
9
|
-
getThemeConfig: _,
|
|
10
|
-
abbreviate: i,
|
|
11
|
-
createPatternDef: m,
|
|
12
|
-
createSmoothPath: r,
|
|
13
|
-
createStraightPath: e,
|
|
14
|
-
createTSpans: l,
|
|
15
|
-
createWordCloudDatasetFromPlainText: t,
|
|
16
|
-
formatSmallValue: c,
|
|
17
|
-
getCumulativeAverage: o,
|
|
18
|
-
getCumulativeMedian: n,
|
|
19
|
-
getPalette: s,
|
|
20
|
-
lightenColor: d,
|
|
21
|
-
darkenColor: p,
|
|
22
|
-
shiftColorHue: u,
|
|
23
|
-
mergeConfigs: f,
|
|
24
|
-
useObjectBindings: v,
|
|
25
|
-
adaptColorToBackground: a
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { i as abbreviate, a as adaptColorToBackground, g as applyDataCorrection, m as createPatternDef, r as createSmoothPath, e as createStraightPath, l as createTSpans, t as createWordCloudDatasetFromPlainText, p as darkenColor, y as default, c as formatSmallValue, o as getCumulativeAverage, n as getCumulativeMedian, s as getPalette, _ as getThemeConfig, h as getVueDataUiConfig, d as lightenColor, f as mergeConfigs, u as shiftColorHue, v as useObjectBindings };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/directives/vClickOutside.js
|
|
2
|
-
var e = {
|
|
3
|
-
beforeMount(e, t) {
|
|
4
|
-
e.clickOutsideEvent = function(n) {
|
|
5
|
-
e === n.target || e.contains(n.target) || t.value(n);
|
|
6
|
-
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
7
|
-
},
|
|
8
|
-
unmounted(e) {
|
|
9
|
-
document.removeEventListener("click", e.clickOutsideEvent);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { e as t };
|