greeks-live-ui 0.0.21 → 0.0.22
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/index.css +1 -1
- package/dist/index.full.min.mjs +110 -110
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +39 -39
- package/es/components/chart/index.d.ts +28 -28
- package/es/components/chart/src/chart.vue.d.ts +28 -28
- package/es/components/chart-panel/index.d.ts +10 -10
- package/es/components/chart-panel/src/chart-panel.vue.d.ts +10 -10
- package/es/components/demo/index.d.ts +28 -28
- package/es/components/demo/src/demo.vue.d.ts +28 -28
- package/es/components/panel-atm-iv/index.d.ts +2 -2
- package/es/components/panel-atm-iv/src/panel-atm-iv.vue.d.ts +2 -2
- package/es/components/panel-historical-delivery-price/index.d.ts +2 -2
- package/es/components/panel-historical-delivery-price/src/panel-historical-delivery-price.vue.d.ts +2 -2
- package/es/components/panel-implied-volatility-surface/index.d.ts +2 -2
- package/es/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface.vue.d.ts +2 -2
- package/es/components/panel-iv-skew/index.d.ts +1 -1
- package/es/components/panel-iv-skew/src/panel-iv-skew.vue.d.ts +1 -1
- package/es/components/panel-max-pain-price/index.d.ts +2 -2
- package/es/components/panel-max-pain-price/src/panel-max-pain-price.vue.d.ts +2 -2
- package/es/components/panel-option-flow/index.d.ts +1 -1
- package/es/components/panel-option-flow/src/panel-option-flow.vue.d.ts +1 -1
- package/es/components/panel-option-open-interest/index.d.ts +1 -1
- package/es/components/panel-option-open-interest/src/panel-option-open-interest.vue.d.ts +1 -1
- package/es/components/panel-option-trade-volume/index.d.ts +1 -1
- package/es/components/panel-option-trade-volume/src/panel-option-trade-volume.vue.d.ts +1 -1
- package/es/components/panel-rv/index.d.ts +12 -12
- package/es/components/panel-rv/src/panel-rv.vue.d.ts +12 -12
- package/es/components/panel-skew/index.d.ts +2 -2
- package/es/components/panel-skew/src/panel-skew.vue.d.ts +2 -2
- package/es/components/panel-volatility-term-structure/index.d.ts +2 -2
- package/es/components/panel-volatility-term-structure/src/panel-volatility-term-structure.vue.d.ts +2 -2
- package/es/components/panel-vrp/index.d.ts +2 -2
- package/es/components/panel-vrp/src/panel-vrp.vue.d.ts +2 -2
- package/es/hooks/use-floating/index.d.ts +8 -8
- package/es/index.mjs +21 -21
- package/es/packages/components/button1/index.mjs +2 -2
- package/es/packages/components/button1/src/button1.mjs +72 -5
- package/es/packages/components/button1/src/button1.mjs.map +1 -1
- package/es/packages/components/button1/src/button12.mjs +5 -72
- package/es/packages/components/button1/src/button12.mjs.map +1 -1
- package/es/packages/components/chart-panel/index.mjs +2 -2
- package/es/packages/components/chart-panel/src/chart-panel.mjs +38 -273
- package/es/packages/components/chart-panel/src/chart-panel.mjs.map +1 -1
- package/es/packages/components/chart-panel/src/chart-panel2.mjs +273 -38
- package/es/packages/components/chart-panel/src/chart-panel2.mjs.map +1 -1
- package/es/packages/components/chart-table/index.mjs +2 -2
- package/es/packages/components/chart-table/src/chart-table.mjs +144 -15
- package/es/packages/components/chart-table/src/chart-table.mjs.map +1 -1
- package/es/packages/components/chart-table/src/chart-table2.mjs +15 -144
- package/es/packages/components/chart-table/src/chart-table2.mjs.map +1 -1
- package/es/packages/components/checkbox/index.mjs +2 -2
- package/es/packages/components/checkbox/src/checkbox.mjs +31 -5
- package/es/packages/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/packages/components/checkbox/src/checkbox2.mjs +5 -31
- package/es/packages/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/packages/components/checkbox-group/index.mjs +2 -2
- package/es/packages/components/checkbox-group/src/checkbox-group.mjs +5 -31
- package/es/packages/components/checkbox-group/src/checkbox-group.mjs.map +1 -1
- package/es/packages/components/checkbox-group/src/checkbox-group2.mjs +31 -5
- package/es/packages/components/checkbox-group/src/checkbox-group2.mjs.map +1 -1
- package/es/packages/components/dropdown/index.mjs +2 -2
- package/es/packages/components/dropdown/src/dropdown.mjs +34 -5
- package/es/packages/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/packages/components/dropdown/src/dropdown2.mjs +5 -34
- package/es/packages/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/packages/components/dropdown-button/index.mjs +2 -2
- package/es/packages/components/dropdown-button/src/dropdown-button.mjs +5 -39
- package/es/packages/components/dropdown-button/src/dropdown-button.mjs.map +1 -1
- package/es/packages/components/dropdown-button/src/dropdown-button2.mjs +39 -5
- package/es/packages/components/dropdown-button/src/dropdown-button2.mjs.map +1 -1
- package/es/packages/components/icon/index.mjs +2 -2
- package/es/packages/components/icon/src/icon.mjs +48 -15
- package/es/packages/components/icon/src/icon.mjs.map +1 -1
- package/es/packages/components/icon/src/icon2.mjs +15 -48
- package/es/packages/components/icon/src/icon2.mjs.map +1 -1
- package/es/packages/components/icon/src/iconfont/iconfont.mjs +1 -1
- package/es/packages/components/icon/src/iconfont/iconfont.mjs.map +1 -1
- package/es/packages/components/index.mjs +21 -21
- package/es/packages/components/input-number/index.mjs +2 -2
- package/es/packages/components/input-number/src/input-number.mjs +5 -31
- package/es/packages/components/input-number/src/input-number.mjs.map +1 -1
- package/es/packages/components/input-number/src/input-number2.mjs +31 -5
- package/es/packages/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/packages/components/menu/index.mjs +2 -2
- package/es/packages/components/menu/src/menu.mjs +31 -5
- package/es/packages/components/menu/src/menu.mjs.map +1 -1
- package/es/packages/components/menu/src/menu2.mjs +5 -31
- package/es/packages/components/menu/src/menu2.mjs.map +1 -1
- package/es/packages/components/panel/index.mjs +2 -2
- package/es/packages/components/panel/src/panel.mjs +5 -82
- package/es/packages/components/panel/src/panel.mjs.map +1 -1
- package/es/packages/components/panel/src/panel2.mjs +82 -5
- package/es/packages/components/panel/src/panel2.mjs.map +1 -1
- package/es/packages/components/panel-atm-iv/index.mjs +2 -2
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv.mjs +886 -21
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv.mjs.map +1 -1
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv2.mjs +21 -886
- package/es/packages/components/panel-atm-iv/src/panel-atm-iv2.mjs.map +1 -1
- package/es/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price2.mjs +3 -3
- package/es/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price2.mjs.map +1 -1
- package/es/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface2.mjs +3 -3
- package/es/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface2.mjs.map +1 -1
- package/es/packages/components/panel-iv-skew/index.mjs +2 -2
- package/es/packages/components/panel-iv-skew/src/panel-iv-skew.mjs +22 -398
- package/es/packages/components/panel-iv-skew/src/panel-iv-skew.mjs.map +1 -1
- package/es/packages/components/panel-iv-skew/src/panel-iv-skew2.mjs +398 -22
- package/es/packages/components/panel-iv-skew/src/panel-iv-skew2.mjs.map +1 -1
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price.mjs +3 -3
- package/es/packages/components/panel-max-pain-price/src/panel-max-pain-price.mjs.map +1 -1
- package/es/packages/components/panel-option-flow/index.mjs +2 -2
- package/es/packages/components/panel-option-flow/src/panel-option-flow.mjs +430 -22
- package/es/packages/components/panel-option-flow/src/panel-option-flow.mjs.map +1 -1
- package/es/packages/components/panel-option-flow/src/panel-option-flow2.mjs +22 -430
- package/es/packages/components/panel-option-flow/src/panel-option-flow2.mjs.map +1 -1
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest.mjs +3 -3
- package/es/packages/components/panel-option-open-interest/src/panel-option-open-interest.mjs.map +1 -1
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.mjs +3 -3
- package/es/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.mjs.map +1 -1
- package/es/packages/components/panel-rv/src/panel-rv2.mjs +4 -4
- package/es/packages/components/panel-rv/src/panel-rv2.mjs.map +1 -1
- package/es/packages/components/panel-rv-calc/index.mjs +2 -2
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc.mjs +507 -8
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc.mjs.map +1 -1
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc2.mjs +8 -507
- package/es/packages/components/panel-rv-calc/src/panel-rv-calc2.mjs.map +1 -1
- package/es/packages/components/panel-skew/index.mjs +2 -2
- package/es/packages/components/panel-skew/src/panel-skew.mjs +672 -21
- package/es/packages/components/panel-skew/src/panel-skew.mjs.map +1 -1
- package/es/packages/components/panel-skew/src/panel-skew2.mjs +21 -672
- package/es/packages/components/panel-skew/src/panel-skew2.mjs.map +1 -1
- package/es/packages/components/panel-volatility-term-structure/index.mjs +2 -2
- package/es/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure.mjs +365 -22
- package/es/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure.mjs.map +1 -1
- package/es/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.mjs +22 -365
- package/es/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.mjs.map +1 -1
- package/es/packages/components/panel-vrp/index.mjs +2 -2
- package/es/packages/components/panel-vrp/src/panel-vrp.mjs +413 -22
- package/es/packages/components/panel-vrp/src/panel-vrp.mjs.map +1 -1
- package/es/packages/components/panel-vrp/src/panel-vrp2.mjs +22 -413
- package/es/packages/components/panel-vrp/src/panel-vrp2.mjs.map +1 -1
- package/es/packages/components/radio/index.mjs +2 -2
- package/es/packages/components/radio/src/radio-button.mjs +1 -1
- package/es/packages/components/radio/src/radio-group.mjs +1 -1
- package/es/packages/components/radio/src/radio.mjs +5 -31
- package/es/packages/components/radio/src/radio.mjs.map +1 -1
- package/es/packages/components/radio/src/radio2.mjs +31 -5
- package/es/packages/components/radio/src/radio2.mjs.map +1 -1
- package/es/packages/components/radio-dropdown/index.mjs +2 -2
- package/es/packages/components/radio-dropdown/src/radio-dropdown.mjs +15 -204
- package/es/packages/components/radio-dropdown/src/radio-dropdown.mjs.map +1 -1
- package/es/packages/components/radio-dropdown/src/radio-dropdown2.mjs +204 -15
- package/es/packages/components/radio-dropdown/src/radio-dropdown2.mjs.map +1 -1
- package/es/packages/components/toggle-button/index.mjs +2 -2
- package/es/packages/components/toggle-button/src/toggle-button.mjs +12 -51
- package/es/packages/components/toggle-button/src/toggle-button.mjs.map +1 -1
- package/es/packages/components/toggle-button/src/toggle-button2.mjs +51 -12
- package/es/packages/components/toggle-button/src/toggle-button2.mjs.map +1 -1
- package/es/utils/vue/vnode.d.ts +6 -6
- package/lib/components/chart/index.d.ts +28 -28
- package/lib/components/chart/src/chart.vue.d.ts +28 -28
- package/lib/components/chart-panel/index.d.ts +10 -10
- package/lib/components/chart-panel/src/chart-panel.vue.d.ts +10 -10
- package/lib/components/demo/index.d.ts +28 -28
- package/lib/components/demo/src/demo.vue.d.ts +28 -28
- package/lib/components/panel-atm-iv/index.d.ts +2 -2
- package/lib/components/panel-atm-iv/src/panel-atm-iv.vue.d.ts +2 -2
- package/lib/components/panel-historical-delivery-price/index.d.ts +2 -2
- package/lib/components/panel-historical-delivery-price/src/panel-historical-delivery-price.vue.d.ts +2 -2
- package/lib/components/panel-implied-volatility-surface/index.d.ts +2 -2
- package/lib/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface.vue.d.ts +2 -2
- package/lib/components/panel-iv-skew/index.d.ts +1 -1
- package/lib/components/panel-iv-skew/src/panel-iv-skew.vue.d.ts +1 -1
- package/lib/components/panel-max-pain-price/index.d.ts +2 -2
- package/lib/components/panel-max-pain-price/src/panel-max-pain-price.vue.d.ts +2 -2
- package/lib/components/panel-option-flow/index.d.ts +1 -1
- package/lib/components/panel-option-flow/src/panel-option-flow.vue.d.ts +1 -1
- package/lib/components/panel-option-open-interest/index.d.ts +1 -1
- package/lib/components/panel-option-open-interest/src/panel-option-open-interest.vue.d.ts +1 -1
- package/lib/components/panel-option-trade-volume/index.d.ts +1 -1
- package/lib/components/panel-option-trade-volume/src/panel-option-trade-volume.vue.d.ts +1 -1
- package/lib/components/panel-rv/index.d.ts +12 -12
- package/lib/components/panel-rv/src/panel-rv.vue.d.ts +12 -12
- package/lib/components/panel-skew/index.d.ts +2 -2
- package/lib/components/panel-skew/src/panel-skew.vue.d.ts +2 -2
- package/lib/components/panel-volatility-term-structure/index.d.ts +2 -2
- package/lib/components/panel-volatility-term-structure/src/panel-volatility-term-structure.vue.d.ts +2 -2
- package/lib/components/panel-vrp/index.d.ts +2 -2
- package/lib/components/panel-vrp/src/panel-vrp.vue.d.ts +2 -2
- package/lib/hooks/use-floating/index.d.ts +8 -8
- package/lib/index.js +21 -21
- package/lib/packages/components/button1/index.js +2 -2
- package/lib/packages/components/button1/src/button1.js +72 -6
- package/lib/packages/components/button1/src/button1.js.map +1 -1
- package/lib/packages/components/button1/src/button12.js +6 -72
- package/lib/packages/components/button1/src/button12.js.map +1 -1
- package/lib/packages/components/chart/index.js +2 -2
- package/lib/packages/components/chart/src/chart.js +89 -13
- package/lib/packages/components/chart/src/chart.js.map +1 -1
- package/lib/packages/components/chart/src/chart2.js +13 -89
- package/lib/packages/components/chart/src/chart2.js.map +1 -1
- package/lib/packages/components/chart-panel/index.js +2 -2
- package/lib/packages/components/chart-panel/src/chart-panel.js +39 -273
- package/lib/packages/components/chart-panel/src/chart-panel.js.map +1 -1
- package/lib/packages/components/chart-panel/src/chart-panel2.js +273 -39
- package/lib/packages/components/chart-panel/src/chart-panel2.js.map +1 -1
- package/lib/packages/components/chart-table/index.js +2 -2
- package/lib/packages/components/chart-table/src/chart-table.js +16 -144
- package/lib/packages/components/chart-table/src/chart-table.js.map +1 -1
- package/lib/packages/components/chart-table/src/chart-table2.js +144 -16
- package/lib/packages/components/chart-table/src/chart-table2.js.map +1 -1
- package/lib/packages/components/checkbox-group/index.js +2 -2
- package/lib/packages/components/checkbox-group/src/checkbox-group.js +6 -31
- package/lib/packages/components/checkbox-group/src/checkbox-group.js.map +1 -1
- package/lib/packages/components/checkbox-group/src/checkbox-group2.js +31 -6
- package/lib/packages/components/checkbox-group/src/checkbox-group2.js.map +1 -1
- package/lib/packages/components/dropdown-button/index.js +2 -2
- package/lib/packages/components/dropdown-button/src/dropdown-button.js +6 -39
- package/lib/packages/components/dropdown-button/src/dropdown-button.js.map +1 -1
- package/lib/packages/components/dropdown-button/src/dropdown-button2.js +39 -6
- package/lib/packages/components/dropdown-button/src/dropdown-button2.js.map +1 -1
- package/lib/packages/components/icon/index.js +2 -2
- package/lib/packages/components/icon/src/icon.js +16 -48
- package/lib/packages/components/icon/src/icon.js.map +1 -1
- package/lib/packages/components/icon/src/icon2.js +48 -16
- package/lib/packages/components/icon/src/icon2.js.map +1 -1
- package/lib/packages/components/icon/src/iconfont/iconfont.js +1 -1
- package/lib/packages/components/icon/src/iconfont/iconfont.js.map +1 -1
- package/lib/packages/components/index.js +21 -21
- package/lib/packages/components/input-number/index.js +2 -2
- package/lib/packages/components/input-number/src/input-number.js +6 -31
- package/lib/packages/components/input-number/src/input-number.js.map +1 -1
- package/lib/packages/components/input-number/src/input-number2.js +31 -6
- package/lib/packages/components/input-number/src/input-number2.js.map +1 -1
- package/lib/packages/components/menu/index.js +2 -2
- package/lib/packages/components/menu/src/menu.js +31 -6
- package/lib/packages/components/menu/src/menu.js.map +1 -1
- package/lib/packages/components/menu/src/menu2.js +6 -31
- package/lib/packages/components/menu/src/menu2.js.map +1 -1
- package/lib/packages/components/menu-item/index.js +2 -2
- package/lib/packages/components/menu-item/src/menu-item.js +6 -31
- package/lib/packages/components/menu-item/src/menu-item.js.map +1 -1
- package/lib/packages/components/menu-item/src/menu-item2.js +31 -6
- package/lib/packages/components/menu-item/src/menu-item2.js.map +1 -1
- package/lib/packages/components/page-turner/index.js +2 -2
- package/lib/packages/components/page-turner/src/page-turner.js +13 -67
- package/lib/packages/components/page-turner/src/page-turner.js.map +1 -1
- package/lib/packages/components/page-turner/src/page-turner2.js +67 -13
- package/lib/packages/components/page-turner/src/page-turner2.js.map +1 -1
- package/lib/packages/components/panel-atm-iv/index.js +2 -2
- package/lib/packages/components/panel-atm-iv/src/panel-atm-iv.js +22 -886
- package/lib/packages/components/panel-atm-iv/src/panel-atm-iv.js.map +1 -1
- package/lib/packages/components/panel-atm-iv/src/panel-atm-iv2.js +886 -22
- package/lib/packages/components/panel-atm-iv/src/panel-atm-iv2.js.map +1 -1
- package/lib/packages/components/panel-historical-delivery-price/index.js +2 -2
- package/lib/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price.js +412 -23
- package/lib/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price.js.map +1 -1
- package/lib/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price2.js +23 -412
- package/lib/packages/components/panel-historical-delivery-price/src/panel-historical-delivery-price2.js.map +1 -1
- package/lib/packages/components/panel-implied-volatility-surface/index.js +2 -2
- package/lib/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface.js +279 -23
- package/lib/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface.js.map +1 -1
- package/lib/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface2.js +23 -279
- package/lib/packages/components/panel-implied-volatility-surface/src/panel-implied-volatility-surface2.js.map +1 -1
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew2.js +3 -3
- package/lib/packages/components/panel-iv-skew/src/panel-iv-skew2.js.map +1 -1
- package/lib/packages/components/panel-max-pain-price/src/panel-max-pain-price.js +3 -3
- package/lib/packages/components/panel-max-pain-price/src/panel-max-pain-price.js.map +1 -1
- package/lib/packages/components/panel-option-flow/index.js +2 -2
- package/lib/packages/components/panel-option-flow/src/panel-option-flow.js +430 -23
- package/lib/packages/components/panel-option-flow/src/panel-option-flow.js.map +1 -1
- package/lib/packages/components/panel-option-flow/src/panel-option-flow2.js +23 -430
- package/lib/packages/components/panel-option-flow/src/panel-option-flow2.js.map +1 -1
- package/lib/packages/components/panel-option-open-interest/index.js +2 -2
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest.js +23 -378
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest.js.map +1 -1
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest2.js +378 -23
- package/lib/packages/components/panel-option-open-interest/src/panel-option-open-interest2.js.map +1 -1
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.js +3 -3
- package/lib/packages/components/panel-option-trade-volume/src/panel-option-trade-volume.js.map +1 -1
- package/lib/packages/components/panel-rv/index.js +2 -2
- package/lib/packages/components/panel-rv/src/panel-rv.js +23 -741
- package/lib/packages/components/panel-rv/src/panel-rv.js.map +1 -1
- package/lib/packages/components/panel-rv/src/panel-rv2.js +741 -23
- package/lib/packages/components/panel-rv/src/panel-rv2.js.map +1 -1
- package/lib/packages/components/panel-rv-calc/index.js +2 -2
- package/lib/packages/components/panel-rv-calc/src/panel-rv-calc.js +507 -9
- package/lib/packages/components/panel-rv-calc/src/panel-rv-calc.js.map +1 -1
- package/lib/packages/components/panel-rv-calc/src/panel-rv-calc2.js +9 -507
- package/lib/packages/components/panel-rv-calc/src/panel-rv-calc2.js.map +1 -1
- package/lib/packages/components/panel-skew/src/panel-skew.js +3 -3
- package/lib/packages/components/panel-skew/src/panel-skew.js.map +1 -1
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.js +3 -3
- package/lib/packages/components/panel-volatility-term-structure/src/panel-volatility-term-structure2.js.map +1 -1
- package/lib/packages/components/panel-vrp/src/panel-vrp2.js +3 -3
- package/lib/packages/components/panel-vrp/src/panel-vrp2.js.map +1 -1
- package/lib/packages/components/spin/index.js +2 -2
- package/lib/packages/components/spin/src/spin.js +6 -31
- package/lib/packages/components/spin/src/spin.js.map +1 -1
- package/lib/packages/components/spin/src/spin2.js +31 -6
- package/lib/packages/components/spin/src/spin2.js.map +1 -1
- package/lib/packages/components/toggle-button/index.js +2 -2
- package/lib/packages/components/toggle-button/src/toggle-button.js +13 -51
- package/lib/packages/components/toggle-button/src/toggle-button.js.map +1 -1
- package/lib/packages/components/toggle-button/src/toggle-button2.js +51 -13
- package/lib/packages/components/toggle-button/src/toggle-button2.js.map +1 -1
- package/lib/packages/components/tooltip/index.js +2 -2
- package/lib/packages/components/tooltip/src/tooltip.js +8 -33
- package/lib/packages/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/packages/components/tooltip/src/tooltip2.js +33 -8
- package/lib/packages/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/utils/vue/vnode.d.ts +6 -6
- package/package.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/g-antd.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/antd.scss +27 -2
- package/web-types.json +1 -1
|
@@ -2,750 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
require('../../../
|
|
7
|
-
var panelRv = require('./panel-rv2.js');
|
|
8
|
-
var chartHelp = require('../../../utils/chartHelp.js');
|
|
9
|
-
var dataLab = require('../../../utils/dataLab.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
-
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
13
|
-
var index$2 = require('../../../hooks/use-device-type/index.js');
|
|
14
|
-
var index$3 = require('../../../hooks/use-theme/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
15
7
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const _hoisted_4 = {
|
|
20
|
-
key: 2,
|
|
21
|
-
class: "echart",
|
|
22
|
-
ref: "echart"
|
|
8
|
+
const panelRvEmits = {
|
|
9
|
+
"update:currency": (currency) => true,
|
|
10
|
+
"update:exchange": (exchange) => true
|
|
23
11
|
};
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
value: "1D",
|
|
42
|
-
label: "1 D",
|
|
43
|
-
days: 1,
|
|
44
|
-
color: "#7630F7"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: "1W",
|
|
48
|
-
label: "1 W",
|
|
49
|
-
days: 7,
|
|
50
|
-
color: "#23C343"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
value: "1M",
|
|
54
|
-
label: "1 M",
|
|
55
|
-
days: 30,
|
|
56
|
-
color: "#FFD600"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
value: "2M",
|
|
60
|
-
label: "2 M",
|
|
61
|
-
days: 60,
|
|
62
|
-
color: "#FF8D1F"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: "3M",
|
|
66
|
-
label: "3 M",
|
|
67
|
-
days: 90,
|
|
68
|
-
color: "#FF3B30"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
value: "6M",
|
|
72
|
-
label: "6 M",
|
|
73
|
-
days: 180,
|
|
74
|
-
color: "#007AFF"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
value: "1Y",
|
|
78
|
-
label: "1 Y",
|
|
79
|
-
days: 365,
|
|
80
|
-
color: "#00C7BE"
|
|
81
|
-
}
|
|
82
|
-
];
|
|
83
|
-
const periodList = vue.computed(() => {
|
|
84
|
-
let list = [
|
|
85
|
-
{
|
|
86
|
-
value: "ALL",
|
|
87
|
-
label: "All",
|
|
88
|
-
days: 0,
|
|
89
|
-
color: "#00B42A"
|
|
90
|
-
},
|
|
91
|
-
...legendList
|
|
92
|
-
];
|
|
93
|
-
if (isMobile.value) {
|
|
94
|
-
list = list.slice(1);
|
|
95
|
-
}
|
|
96
|
-
return list;
|
|
97
|
-
});
|
|
98
|
-
const initShowType = "table";
|
|
99
|
-
const state = vue.reactive({
|
|
100
|
-
loadingFlag: false,
|
|
101
|
-
showType: initShowType,
|
|
102
|
-
isToolTipShow: false,
|
|
103
|
-
toolTipTitle: "",
|
|
104
|
-
exchange: props.exchange || props.defaultExchange || "Deribit",
|
|
105
|
-
currency: props.currency || props.defaultCurrency || "BTC",
|
|
106
|
-
period: "3M",
|
|
107
|
-
periodDateRange: "",
|
|
108
|
-
chartData: [],
|
|
109
|
-
tableData: [],
|
|
110
|
-
legendMap: {}
|
|
111
|
-
});
|
|
112
|
-
const currency = vue.computed({
|
|
113
|
-
get: () => props.currency || state.currency || "BTC",
|
|
114
|
-
set: (newVal) => {
|
|
115
|
-
props.currency ? emit("update:currency", newVal) : state.currency = newVal;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
const exchange = vue.computed({
|
|
119
|
-
get: () => props.exchange || state.exchange || "Deribit",
|
|
120
|
-
set: (newVal) => {
|
|
121
|
-
props.exchange ? emit("update:exchange", newVal) : state.exchange = newVal;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
vue.watch(currency, () => {
|
|
125
|
-
fetchData();
|
|
126
|
-
});
|
|
127
|
-
vue.watch(exchange, () => {
|
|
128
|
-
fetchData();
|
|
129
|
-
});
|
|
130
|
-
const fetchData = () => {
|
|
131
|
-
state.loadingFlag = true;
|
|
132
|
-
dataLab.getRv({
|
|
133
|
-
currency: currency.value,
|
|
134
|
-
gap: state.showType === "table" ? "3M" : state.period
|
|
135
|
-
}).then((res) => {
|
|
136
|
-
if (res && res.code === 200) {
|
|
137
|
-
state.chartData = res.data || [];
|
|
138
|
-
getTableData();
|
|
139
|
-
getLegendData();
|
|
140
|
-
}
|
|
141
|
-
}).finally(() => {
|
|
142
|
-
state.loadingFlag = false;
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
vue.onMounted(() => {
|
|
146
|
-
handleChangePeriod(state.period);
|
|
147
|
-
});
|
|
148
|
-
const handleChangePeriod = (value) => {
|
|
149
|
-
const selectedPeriod = periodList.value.find((v) => v.value === value);
|
|
150
|
-
if (!selectedPeriod)
|
|
151
|
-
return;
|
|
152
|
-
state.periodDateRange = chartHelp.showDateRange(selectedPeriod.days);
|
|
153
|
-
fetchData();
|
|
154
|
-
};
|
|
155
|
-
const handleToggleTableChart = () => {
|
|
156
|
-
state.showType = state.showType === initShowType ? "chart" : "table";
|
|
157
|
-
fetchData();
|
|
158
|
-
};
|
|
159
|
-
const handleToggleCalc = () => {
|
|
160
|
-
state.showType = state.showType === "calc" ? initShowType : "calc";
|
|
161
|
-
};
|
|
162
|
-
const handleTipShow = (isShow) => {
|
|
163
|
-
state.isToolTipShow = isShow;
|
|
164
|
-
!isShow && (state.toolTipTitle = "");
|
|
165
|
-
};
|
|
166
|
-
const getTableData = () => {
|
|
167
|
-
let data = state.chartData || [];
|
|
168
|
-
let day1 = 864e5;
|
|
169
|
-
let data0 = data[data.length - 1];
|
|
170
|
-
let dataDate1 = chartHelp.formatDateForNumber(data0.timestamp - day1);
|
|
171
|
-
let dataDate2 = chartHelp.formatDateForNumber(data0.timestamp - day1 * 2);
|
|
172
|
-
let dataDate7 = chartHelp.formatDateForNumber(data0.timestamp - day1 * 7);
|
|
173
|
-
let dataDate15 = chartHelp.formatDateForNumber(data0.timestamp - day1 * 14);
|
|
174
|
-
let dataDate30 = chartHelp.formatDateForNumber(data0.timestamp - day1 * 30);
|
|
175
|
-
let map = {};
|
|
176
|
-
data.forEach((item) => {
|
|
177
|
-
let date = chartHelp.formatDateForNumber(item.timestamp);
|
|
178
|
-
if (date === dataDate1) {
|
|
179
|
-
map[date] = item;
|
|
180
|
-
} else if (date === dataDate2) {
|
|
181
|
-
map[date] = item;
|
|
182
|
-
} else if (date === dataDate7) {
|
|
183
|
-
map[date] = item;
|
|
184
|
-
} else if (date === dataDate15) {
|
|
185
|
-
map[date] = item;
|
|
186
|
-
} else if (date === dataDate30) {
|
|
187
|
-
map[date] = item;
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
let list = Object.values(map).sort(
|
|
191
|
-
(prev, next) => next.timestamp - prev.timestamp
|
|
192
|
-
);
|
|
193
|
-
const data0Data = data0.data;
|
|
194
|
-
let dataMap1 = { expire: "1 day", atm: data0Data[0].hv };
|
|
195
|
-
let dataMap2 = { expire: "1 week", atm: data0Data[1].hv };
|
|
196
|
-
let dataMap3 = { expire: "1 month", atm: data0Data[2].hv };
|
|
197
|
-
let dataMap4 = { expire: "2 month", atm: data0Data[3].hv };
|
|
198
|
-
let dataMap5 = { expire: "3 month", atm: data0Data[4].hv };
|
|
199
|
-
let dataMap6 = { expire: "6 month", atm: data0Data[5].hv };
|
|
200
|
-
let dataMap7 = { expire: "1 year", atm: data0Data[6].hv };
|
|
201
|
-
for (let i = 0; i < list.length; i++) {
|
|
202
|
-
let item = list[i];
|
|
203
|
-
let key;
|
|
204
|
-
switch (i) {
|
|
205
|
-
case 0:
|
|
206
|
-
key = "chg1";
|
|
207
|
-
break;
|
|
208
|
-
case 1:
|
|
209
|
-
key = "chg2";
|
|
210
|
-
break;
|
|
211
|
-
case 2:
|
|
212
|
-
key = "chg7";
|
|
213
|
-
break;
|
|
214
|
-
case 3:
|
|
215
|
-
key = "chg14";
|
|
216
|
-
break;
|
|
217
|
-
case 4:
|
|
218
|
-
key = "chg30";
|
|
219
|
-
break;
|
|
220
|
-
default:
|
|
221
|
-
continue;
|
|
222
|
-
}
|
|
223
|
-
item.data.forEach((item2) => {
|
|
224
|
-
if (item2.day === 1) {
|
|
225
|
-
dataMap1[key] = data0Data[0].hv - item2.hv;
|
|
226
|
-
} else if (item2.day === 7) {
|
|
227
|
-
dataMap2[key] = data0Data[1].hv - item2.hv;
|
|
228
|
-
} else if (item2.day === 30) {
|
|
229
|
-
dataMap3[key] = data0Data[2].hv - item2.hv;
|
|
230
|
-
} else if (item2.day === 60) {
|
|
231
|
-
dataMap4[key] = data0Data[3].hv - item2.hv;
|
|
232
|
-
} else if (item2.day === 90) {
|
|
233
|
-
dataMap5[key] = data0Data[4].hv - item2.hv;
|
|
234
|
-
} else if (item2.day === 180) {
|
|
235
|
-
dataMap6[key] = data0Data[5].hv - item2.hv;
|
|
236
|
-
} else if (item2.day === 365) {
|
|
237
|
-
dataMap7[key] = data0Data[6].hv - item2.hv;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
state.tableData = [
|
|
242
|
-
dataMap1,
|
|
243
|
-
dataMap2,
|
|
244
|
-
dataMap3,
|
|
245
|
-
dataMap4,
|
|
246
|
-
dataMap5,
|
|
247
|
-
dataMap6,
|
|
248
|
-
dataMap7
|
|
249
|
-
];
|
|
250
|
-
};
|
|
251
|
-
const getLegendValue = (days) => {
|
|
252
|
-
var _a;
|
|
253
|
-
const r = Number((_a = days[days.length - 1]) == null ? void 0 : _a.toFixed(2));
|
|
254
|
-
return r >= 0 ? `+${r}%` : `${r}%`;
|
|
255
|
-
};
|
|
256
|
-
const getLegendData = () => {
|
|
257
|
-
const { days1, days7, days30, days60, days90, days180, days365 } = getEchartData();
|
|
258
|
-
state.legendMap = {
|
|
259
|
-
"1D": getLegendValue(days1),
|
|
260
|
-
"1W": getLegendValue(days7),
|
|
261
|
-
"1M": getLegendValue(days30),
|
|
262
|
-
"2M": getLegendValue(days60),
|
|
263
|
-
"3M": getLegendValue(days90),
|
|
264
|
-
"6M": getLegendValue(days180),
|
|
265
|
-
"1Y": getLegendValue(days365)
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
const getEchartData = () => {
|
|
269
|
-
let data = [...state.chartData];
|
|
270
|
-
let date = [];
|
|
271
|
-
let days1 = [];
|
|
272
|
-
let days7 = [];
|
|
273
|
-
let days30 = [];
|
|
274
|
-
let days60 = [];
|
|
275
|
-
let days90 = [];
|
|
276
|
-
let days180 = [];
|
|
277
|
-
let days365 = [];
|
|
278
|
-
data.forEach((item) => {
|
|
279
|
-
let set = /* @__PURE__ */ new Set([
|
|
280
|
-
"days1",
|
|
281
|
-
"days7",
|
|
282
|
-
"days30",
|
|
283
|
-
"days60",
|
|
284
|
-
"days90",
|
|
285
|
-
"days180",
|
|
286
|
-
"days365"
|
|
287
|
-
]);
|
|
288
|
-
item.data.forEach((item2) => {
|
|
289
|
-
if (item2.day === 1) {
|
|
290
|
-
set.delete("days1");
|
|
291
|
-
days1.push(chartHelp.numberFormat(item2.hv, 2));
|
|
292
|
-
} else if (item2.day === 7) {
|
|
293
|
-
set.delete("days7");
|
|
294
|
-
days7.push(chartHelp.numberFormat(item2.hv, 2));
|
|
295
|
-
} else if (item2.day === 30) {
|
|
296
|
-
set.delete("days30");
|
|
297
|
-
days30.push(chartHelp.numberFormat(item2.hv, 2));
|
|
298
|
-
} else if (item2.day === 60) {
|
|
299
|
-
set.delete("days60");
|
|
300
|
-
days60.push(chartHelp.numberFormat(item2.hv, 2));
|
|
301
|
-
} else if (item2.day === 90) {
|
|
302
|
-
set.delete("days90");
|
|
303
|
-
days90.push(chartHelp.numberFormat(item2.hv, 2));
|
|
304
|
-
} else if (item2.day === 180) {
|
|
305
|
-
set.delete("days180");
|
|
306
|
-
days180.push(chartHelp.numberFormat(item2.hv, 2));
|
|
307
|
-
} else if (item2.day === 365) {
|
|
308
|
-
set.delete("days365");
|
|
309
|
-
days365.push(chartHelp.numberFormat(item2.hv, 2));
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
let arr = [...set];
|
|
313
|
-
arr.forEach((item3) => {
|
|
314
|
-
if (item3 === "days1") {
|
|
315
|
-
days1.push("");
|
|
316
|
-
} else if (item3 === "days7") {
|
|
317
|
-
days7.push("");
|
|
318
|
-
} else if (item3 === "days30") {
|
|
319
|
-
days30.push("");
|
|
320
|
-
} else if (item3 === "days60") {
|
|
321
|
-
days60.push("");
|
|
322
|
-
} else if (item3 === "days90") {
|
|
323
|
-
days90.push("");
|
|
324
|
-
} else if (item3 === "days180") {
|
|
325
|
-
days180.push("");
|
|
326
|
-
} else if (item3 === "days365") {
|
|
327
|
-
days365.push("");
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
date.push(chartHelp.timestampFormat(item.timestamp, "{y}-{m}-{d}") || "");
|
|
331
|
-
});
|
|
332
|
-
return {
|
|
333
|
-
date,
|
|
334
|
-
days1,
|
|
335
|
-
days7,
|
|
336
|
-
days30,
|
|
337
|
-
days60,
|
|
338
|
-
days90,
|
|
339
|
-
days180,
|
|
340
|
-
days365
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
const getEchartOption = (params) => {
|
|
344
|
-
const { date, days1, days7, days30, days60, days90, days180, days365 } = params;
|
|
345
|
-
const option = {
|
|
346
|
-
color: legendList.map((v) => v.color),
|
|
347
|
-
tooltip: {
|
|
348
|
-
trigger: "axis",
|
|
349
|
-
axisPointer: {
|
|
350
|
-
type: "cross",
|
|
351
|
-
label: {
|
|
352
|
-
show: isMobile.value ? true : false,
|
|
353
|
-
backgroundColor: "#DEE2E6",
|
|
354
|
-
color: "#343A40",
|
|
355
|
-
padding: [4, 6, 4, 6],
|
|
356
|
-
margin: 9
|
|
357
|
-
},
|
|
358
|
-
crossStyle: {
|
|
359
|
-
color: "#8B959F"
|
|
360
|
-
},
|
|
361
|
-
lineStyle: {
|
|
362
|
-
color: "#8B959F"
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
backgroundColor: isDark.value ? "#E9ECEF" : "#292F3D",
|
|
366
|
-
padding: isMobile.value ? 0 : [6, 8, 5, 6],
|
|
367
|
-
textStyle: {
|
|
368
|
-
color: isDark.value ? "#000000" : "#FFFFFF",
|
|
369
|
-
fontSize: 12,
|
|
370
|
-
lineHeight: 16,
|
|
371
|
-
fontWeight: 400
|
|
372
|
-
},
|
|
373
|
-
formatter: (params2) => {
|
|
374
|
-
let content = "";
|
|
375
|
-
state.toolTipTitle = chartHelp.getTooltipDate(params2[0].axisValueLabel, "en-US");
|
|
376
|
-
content += `<div class="chart-tooltip-box"><div style="margin-bottom:4px;">${state.toolTipTitle}</div> `;
|
|
377
|
-
params2.forEach(
|
|
378
|
-
(param) => {
|
|
379
|
-
content += `
|
|
380
|
-
<div class="chart-tooltip">
|
|
381
|
-
<div>
|
|
382
|
-
<span class="chart-tooltip-line" style="background-color:${param.color};"></span>
|
|
383
|
-
<span>${param.seriesName}</span>
|
|
384
|
-
</div>
|
|
385
|
-
<span>${param.value.toFixed(2)}</span>
|
|
386
|
-
</div>
|
|
387
|
-
`;
|
|
388
|
-
}
|
|
389
|
-
);
|
|
390
|
-
return content + "</div>";
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
axisPointer: {
|
|
394
|
-
type: "line",
|
|
395
|
-
label: {
|
|
396
|
-
show: true,
|
|
397
|
-
backgroundColor: "#DEE2E6",
|
|
398
|
-
color: "#343A40",
|
|
399
|
-
fontSize: 10,
|
|
400
|
-
padding: [4, 6, 4, 8]
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
legend: {
|
|
404
|
-
show: !isMobile.value,
|
|
405
|
-
left: 0,
|
|
406
|
-
icon: "rect",
|
|
407
|
-
itemWidth: 14,
|
|
408
|
-
itemHeight: 2,
|
|
409
|
-
itemGap: 20,
|
|
410
|
-
textStyle: {
|
|
411
|
-
color: "#596169",
|
|
412
|
-
fontSize: 12
|
|
413
|
-
},
|
|
414
|
-
lineStyle: {
|
|
415
|
-
inactiveColor: isDark.value ? "#2B2F32" : "#DEE2E6"
|
|
416
|
-
},
|
|
417
|
-
inactiveColor: isDark.value ? "#495057" : "#BDC4CB",
|
|
418
|
-
formatter: function(name) {
|
|
419
|
-
try {
|
|
420
|
-
switch (name) {
|
|
421
|
-
case "1 D":
|
|
422
|
-
return name + ` (${days1[days1.length - 1].toFixed(2)}%)`;
|
|
423
|
-
case "1 W":
|
|
424
|
-
return name + ` (${days7[days7.length - 1].toFixed(2)}%)`;
|
|
425
|
-
case "1 M":
|
|
426
|
-
return name + ` (${days30[days30.length - 1].toFixed(2)}%)`;
|
|
427
|
-
case "2 M":
|
|
428
|
-
return name + ` (${days60[days60.length - 1].toFixed(2)}%)`;
|
|
429
|
-
case "3 M":
|
|
430
|
-
return name + ` (${days90[days90.length - 1].toFixed(2)}%)`;
|
|
431
|
-
case "6 M":
|
|
432
|
-
return name + ` (${days180[days180.length - 1].toFixed(2)}%)`;
|
|
433
|
-
case "1 Y":
|
|
434
|
-
return name + ` (${days365[days365.length - 1].toFixed(2)}%)`;
|
|
435
|
-
}
|
|
436
|
-
} catch (e) {
|
|
437
|
-
return name;
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
selected: {
|
|
441
|
-
"1 D": false,
|
|
442
|
-
"1 W": false,
|
|
443
|
-
"1 M": true,
|
|
444
|
-
"2 M": false,
|
|
445
|
-
"3 M": true,
|
|
446
|
-
"6 M": true,
|
|
447
|
-
"1 Y": false
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
xAxis: {
|
|
451
|
-
type: "category",
|
|
452
|
-
data: date,
|
|
453
|
-
axisTick: {
|
|
454
|
-
show: false
|
|
455
|
-
},
|
|
456
|
-
axisLabel: {
|
|
457
|
-
color: isDark.value ? "#CED4DA" : "#343A40",
|
|
458
|
-
fontWeight: 400,
|
|
459
|
-
fontSize: 10
|
|
460
|
-
},
|
|
461
|
-
axisLine: {
|
|
462
|
-
show: false,
|
|
463
|
-
lineStyle: {
|
|
464
|
-
color: isDark.value ? "#CED4DA" : "#343A40"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
splitLine: {
|
|
468
|
-
show: !isMobile.value && !isDark.value,
|
|
469
|
-
lineStyle: {
|
|
470
|
-
color: "#F1F1F1",
|
|
471
|
-
width: 1,
|
|
472
|
-
type: "solid"
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
yAxis: {
|
|
477
|
-
type: "value",
|
|
478
|
-
scale: true,
|
|
479
|
-
axisLabel: {
|
|
480
|
-
show: true,
|
|
481
|
-
color: isDark.value ? "#CED4DA" : "#343A40",
|
|
482
|
-
fontWeight: 400,
|
|
483
|
-
fontSize: 10
|
|
484
|
-
},
|
|
485
|
-
name: "IV(%)",
|
|
486
|
-
nameLocation: "end",
|
|
487
|
-
nameGap: isMobile.value ? -30 : 20,
|
|
488
|
-
nameRotate: isMobile.value ? 90 : 0,
|
|
489
|
-
nameTextStyle: {
|
|
490
|
-
color: isDark.value ? "#8B959F" : "#8B959F",
|
|
491
|
-
fontWeight: 400,
|
|
492
|
-
fontSize: 10
|
|
493
|
-
},
|
|
494
|
-
axisLine: {
|
|
495
|
-
lineStyle: {
|
|
496
|
-
color: isDark.value ? "#CED4DA" : "#343A40"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
splitLine: {
|
|
500
|
-
lineStyle: {
|
|
501
|
-
color: isDark.value ? "#2B2F32" : "#F1F1F1",
|
|
502
|
-
width: 1,
|
|
503
|
-
type: "solid"
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
grid: {
|
|
508
|
-
top: isPC.value ? 60 : 20,
|
|
509
|
-
left: "left",
|
|
510
|
-
right: 27,
|
|
511
|
-
bottom: 0,
|
|
512
|
-
containLabel: true
|
|
513
|
-
},
|
|
514
|
-
series: [
|
|
515
|
-
{
|
|
516
|
-
name: "1 D",
|
|
517
|
-
key: 1,
|
|
518
|
-
type: "line",
|
|
519
|
-
symbol: "none",
|
|
520
|
-
data: days1
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
name: "1 W",
|
|
524
|
-
key: 7,
|
|
525
|
-
type: "line",
|
|
526
|
-
symbol: "none",
|
|
527
|
-
data: days7
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
name: "1 M",
|
|
531
|
-
key: 30,
|
|
532
|
-
type: "line",
|
|
533
|
-
symbol: "none",
|
|
534
|
-
data: days30
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
name: "2 M",
|
|
538
|
-
key: 60,
|
|
539
|
-
type: "line",
|
|
540
|
-
symbol: "none",
|
|
541
|
-
data: days60
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
name: "3 M",
|
|
545
|
-
key: 90,
|
|
546
|
-
type: "line",
|
|
547
|
-
symbol: "none",
|
|
548
|
-
data: days90
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
name: "6 M",
|
|
552
|
-
key: 180,
|
|
553
|
-
type: "line",
|
|
554
|
-
symbol: "none",
|
|
555
|
-
data: days180
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
name: "1 Y",
|
|
559
|
-
key: 365,
|
|
560
|
-
type: "line",
|
|
561
|
-
symbol: "none",
|
|
562
|
-
data: days365
|
|
563
|
-
}
|
|
564
|
-
]
|
|
565
|
-
};
|
|
566
|
-
if (isMobile.value) {
|
|
567
|
-
option.series = option.series.map((v) => ({ ...v, symbol: "circle" }));
|
|
568
|
-
}
|
|
569
|
-
return option;
|
|
570
|
-
};
|
|
571
|
-
const setOption = () => {
|
|
572
|
-
return getEchartOption(getEchartData());
|
|
573
|
-
};
|
|
574
|
-
return (_ctx, _cache) => {
|
|
575
|
-
const _component_g_icon = vue.resolveComponent("g-icon");
|
|
576
|
-
const _component_g_tooltip = vue.resolveComponent("g-tooltip");
|
|
577
|
-
const _component_g_select_option = vue.resolveComponent("g-select-option");
|
|
578
|
-
const _component_g_select = vue.resolveComponent("g-select");
|
|
579
|
-
const _component_g_chart_table = vue.resolveComponent("g-chart-table");
|
|
580
|
-
const _component_g_panel_rv_calc = vue.resolveComponent("g-panel-rv-calc");
|
|
581
|
-
const _component_g_chart = vue.resolveComponent("g-chart");
|
|
582
|
-
const _component_g_chart_panel = vue.resolveComponent("g-chart-panel");
|
|
583
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
584
|
-
"div",
|
|
585
|
-
{
|
|
586
|
-
class: vue.normalizeClass([vue.unref(ns).b()])
|
|
587
|
-
},
|
|
588
|
-
[
|
|
589
|
-
vue.createVNode(_component_g_chart_panel, {
|
|
590
|
-
currency: vue.unref(currency),
|
|
591
|
-
"onUpdate:currency": _cache[3] || (_cache[3] = ($event) => vue.isRef(currency) ? currency.value = $event : null),
|
|
592
|
-
exchange: vue.unref(exchange),
|
|
593
|
-
"onUpdate:exchange": _cache[4] || (_cache[4] = ($event) => vue.isRef(exchange) ? exchange.value = $event : null),
|
|
594
|
-
loading: state.loadingFlag,
|
|
595
|
-
operations: ["calc", "toggle"],
|
|
596
|
-
showType: state.showType,
|
|
597
|
-
onToggle: handleToggleTableChart,
|
|
598
|
-
onCalc: handleToggleCalc,
|
|
599
|
-
onRefresh: fetchData
|
|
600
|
-
}, vue.createSlots({
|
|
601
|
-
title: vue.withCtx(() => [
|
|
602
|
-
vue.createVNode(_component_g_tooltip, { placement: "bottom" }, {
|
|
603
|
-
title: vue.withCtx(() => [
|
|
604
|
-
vue.createElementVNode("div", {
|
|
605
|
-
innerHTML: vue.unref(t)("message.realizedVolatilityTips")
|
|
606
|
-
}, null, 8, _hoisted_2)
|
|
607
|
-
]),
|
|
608
|
-
default: vue.withCtx(() => [
|
|
609
|
-
_hoisted_1,
|
|
610
|
-
vue.createVNode(_component_g_icon, { type: "info_question_circle" })
|
|
611
|
-
]),
|
|
612
|
-
_: 1
|
|
613
|
-
})
|
|
614
|
-
]),
|
|
615
|
-
body: vue.withCtx(() => [
|
|
616
|
-
state.showType === "table" ? (vue.openBlock(), vue.createBlock(_component_g_chart_table, {
|
|
617
|
-
key: 0,
|
|
618
|
-
tableData: state.tableData,
|
|
619
|
-
name: "RV"
|
|
620
|
-
}, null, 8, ["tableData"])) : vue.createCommentVNode("v-if", true),
|
|
621
|
-
state.showType === "calc" ? (vue.openBlock(), vue.createBlock(_component_g_panel_rv_calc, {
|
|
622
|
-
key: 1,
|
|
623
|
-
currency: vue.unref(currency)
|
|
624
|
-
}, null, 8, ["currency"])) : vue.createCommentVNode("v-if", true),
|
|
625
|
-
state.showType === "chart" ? (vue.openBlock(), vue.createElementBlock(
|
|
626
|
-
"div",
|
|
627
|
-
_hoisted_4,
|
|
628
|
-
[
|
|
629
|
-
vue.createElementVNode(
|
|
630
|
-
"div",
|
|
631
|
-
{
|
|
632
|
-
class: vue.normalizeClass({
|
|
633
|
-
"h5-legend-box-hover": state.isToolTipShow,
|
|
634
|
-
"h5-legend-box": true,
|
|
635
|
-
"pc-hide": true
|
|
636
|
-
})
|
|
637
|
-
},
|
|
638
|
-
[
|
|
639
|
-
vue.createElementVNode(
|
|
640
|
-
"h6",
|
|
641
|
-
_hoisted_5,
|
|
642
|
-
vue.toDisplayString(state.toolTipTitle),
|
|
643
|
-
1
|
|
644
|
-
),
|
|
645
|
-
vue.createElementVNode("div", _hoisted_6, [
|
|
646
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
647
|
-
vue.Fragment,
|
|
648
|
-
null,
|
|
649
|
-
vue.renderList(vue.unref(legendList), (legendItem) => {
|
|
650
|
-
var _a, _b, _c, _d;
|
|
651
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
652
|
-
key: legendItem.label
|
|
653
|
-
}, [
|
|
654
|
-
vue.createElementVNode(
|
|
655
|
-
"span",
|
|
656
|
-
{
|
|
657
|
-
style: vue.normalizeStyle({ backgroundColor: legendItem.color }),
|
|
658
|
-
class: "legend-line"
|
|
659
|
-
},
|
|
660
|
-
null,
|
|
661
|
-
4
|
|
662
|
-
),
|
|
663
|
-
vue.createElementVNode("div", null, [
|
|
664
|
-
vue.createElementVNode(
|
|
665
|
-
"div",
|
|
666
|
-
null,
|
|
667
|
-
vue.toDisplayString(legendItem.label),
|
|
668
|
-
1
|
|
669
|
-
),
|
|
670
|
-
vue.createElementVNode(
|
|
671
|
-
"p",
|
|
672
|
-
{
|
|
673
|
-
class: vue.normalizeClass({
|
|
674
|
-
"positive-text": (_b = (_a = state.legendMap) == null ? void 0 : _a[legendItem.value]) == null ? void 0 : _b.includes("+"),
|
|
675
|
-
"negative-text": (_d = (_c = state.legendMap) == null ? void 0 : _c[legendItem.value]) == null ? void 0 : _d.includes("-")
|
|
676
|
-
})
|
|
677
|
-
},
|
|
678
|
-
vue.toDisplayString(state.legendMap[legendItem.value]),
|
|
679
|
-
3
|
|
680
|
-
)
|
|
681
|
-
])
|
|
682
|
-
]);
|
|
683
|
-
}),
|
|
684
|
-
128
|
|
685
|
-
))
|
|
686
|
-
])
|
|
687
|
-
],
|
|
688
|
-
2
|
|
689
|
-
),
|
|
690
|
-
vue.createVNode(_component_g_chart, {
|
|
691
|
-
class: "skew-chart",
|
|
692
|
-
option: setOption(),
|
|
693
|
-
onShowTip: _cache[1] || (_cache[1] = ($event) => handleTipShow(true)),
|
|
694
|
-
onHideTip: _cache[2] || (_cache[2] = ($event) => handleTipShow(false))
|
|
695
|
-
}, null, 8, ["option"])
|
|
696
|
-
],
|
|
697
|
-
512
|
|
698
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
699
|
-
]),
|
|
700
|
-
_: 2
|
|
701
|
-
}, [
|
|
702
|
-
state.showType === "chart" ? {
|
|
703
|
-
name: "tool",
|
|
704
|
-
fn: vue.withCtx(() => [
|
|
705
|
-
vue.createVNode(_component_g_select, {
|
|
706
|
-
value: state.period,
|
|
707
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.period = $event),
|
|
708
|
-
onChange: handleChangePeriod,
|
|
709
|
-
size: vue.unref(isPC) ? "small" : "medium"
|
|
710
|
-
}, {
|
|
711
|
-
default: vue.withCtx(() => [
|
|
712
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
713
|
-
vue.Fragment,
|
|
714
|
-
null,
|
|
715
|
-
vue.renderList(vue.unref(periodList), (periodItem) => {
|
|
716
|
-
return vue.openBlock(), vue.createBlock(_component_g_select_option, {
|
|
717
|
-
value: periodItem.value
|
|
718
|
-
}, {
|
|
719
|
-
default: vue.withCtx(() => [
|
|
720
|
-
vue.createTextVNode(
|
|
721
|
-
vue.toDisplayString(periodItem.label),
|
|
722
|
-
1
|
|
723
|
-
)
|
|
724
|
-
]),
|
|
725
|
-
_: 2
|
|
726
|
-
}, 1032, ["value"]);
|
|
727
|
-
}),
|
|
728
|
-
256
|
|
729
|
-
))
|
|
730
|
-
]),
|
|
731
|
-
_: 1
|
|
732
|
-
}, 8, ["value", "size"]),
|
|
733
|
-
vue.createElementVNode(
|
|
734
|
-
"span",
|
|
735
|
-
_hoisted_3,
|
|
736
|
-
vue.toDisplayString(state.periodDateRange),
|
|
737
|
-
1
|
|
738
|
-
)
|
|
739
|
-
])
|
|
740
|
-
} : void 0
|
|
741
|
-
]), 1032, ["currency", "exchange", "loading", "showType"])
|
|
742
|
-
],
|
|
743
|
-
2
|
|
744
|
-
);
|
|
745
|
-
};
|
|
12
|
+
const panelRvProps = runtime.buildProps({
|
|
13
|
+
defaultCurrency: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false
|
|
16
|
+
},
|
|
17
|
+
defaultExchange: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
currency: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false
|
|
24
|
+
},
|
|
25
|
+
exchange: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false
|
|
746
28
|
}
|
|
747
29
|
});
|
|
748
|
-
var PanelRv = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/luobowen/Desktop/greeks/greeks-live-ui/packages/components/panel-rv/src/panel-rv.vue"]]);
|
|
749
30
|
|
|
750
|
-
exports
|
|
31
|
+
exports.panelRvEmits = panelRvEmits;
|
|
32
|
+
exports.panelRvProps = panelRvProps;
|
|
751
33
|
//# sourceMappingURL=panel-rv.js.map
|