binbot-charts 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TVChartContainer.d.mts +45 -0
- package/dist/TVChartContainer.d.ts +45 -0
- package/dist/TVChartContainer.js +752 -0
- package/dist/TVChartContainer.js.map +1 -0
- package/dist/TVChartContainer.mjs +735 -0
- package/dist/TVChartContainer.mjs.map +1 -0
- package/package.json +4 -2
- package/dist/public/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
- package/dist/public/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
- package/dist/public/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
- package/dist/public/charting_library/bundles/11.df012db70159a159d927.js +0 -1
- package/dist/public/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
- package/dist/public/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
- package/dist/public/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
- package/dist/public/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
- package/dist/public/charting_library/bundles/16.680572949c1125757d35.js +0 -1
- package/dist/public/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
- package/dist/public/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
- package/dist/public/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
- package/dist/public/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
- package/dist/public/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
- package/dist/public/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
- package/dist/public/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
- package/dist/public/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
- package/dist/public/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
- package/dist/public/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
- package/dist/public/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
- package/dist/public/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
- package/dist/public/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
- package/dist/public/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
- package/dist/public/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
- package/dist/public/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
- package/dist/public/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
- package/dist/public/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
- package/dist/public/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
- package/dist/public/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
- package/dist/public/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
- package/dist/public/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
- package/dist/public/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
- package/dist/public/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
- package/dist/public/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
- package/dist/public/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
- package/dist/public/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
- package/dist/public/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
- package/dist/public/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
- package/dist/public/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
- package/dist/public/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
- package/dist/public/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
- package/dist/public/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
- package/dist/public/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
- package/dist/public/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
- package/dist/public/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
- package/dist/public/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
- package/dist/public/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
- package/dist/public/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
- package/dist/public/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
- package/dist/public/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
- package/dist/public/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
- package/dist/public/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
- package/dist/public/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
- package/dist/public/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
- package/dist/public/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
- package/dist/public/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
- package/dist/public/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
- package/dist/public/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
- package/dist/public/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
- package/dist/public/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
- package/dist/public/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
- package/dist/public/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
- package/dist/public/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
- package/dist/public/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
- package/dist/public/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
- package/dist/public/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
- package/dist/public/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
- package/dist/public/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
- package/dist/public/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
- package/dist/public/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
- package/dist/public/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
- package/dist/public/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
- package/dist/public/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
- package/dist/public/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
- package/dist/public/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
- package/dist/public/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
- package/dist/public/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
- package/dist/public/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
- package/dist/public/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
- package/dist/public/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
- package/dist/public/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
- package/dist/public/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
- package/dist/public/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
- package/dist/public/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
- package/dist/public/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
- package/dist/public/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
- package/dist/public/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
- package/dist/public/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
- package/dist/public/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
- package/dist/public/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
- package/dist/public/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
- package/dist/public/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
- package/dist/public/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
- package/dist/public/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
- package/dist/public/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
- package/dist/public/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
- package/dist/public/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
- package/dist/public/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
- package/dist/public/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
- package/dist/public/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
- package/dist/public/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
- package/dist/public/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
- package/dist/public/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
- package/dist/public/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
- package/dist/public/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
- package/dist/public/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
- package/dist/public/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
- package/dist/public/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
- package/dist/public/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
- package/dist/public/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
- package/dist/public/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
- package/dist/public/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
- package/dist/public/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
- package/dist/public/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
- package/dist/public/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
- package/dist/public/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
- package/dist/public/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
- package/dist/public/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
- package/dist/public/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
- package/dist/public/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
- package/dist/public/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
- package/dist/public/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
- package/dist/public/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
- package/dist/public/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
- package/dist/public/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
- package/dist/public/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
- package/dist/public/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
- package/dist/public/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
- package/dist/public/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
- package/dist/public/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
- package/dist/public/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
- package/dist/public/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
- package/dist/public/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
- package/dist/public/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
- package/dist/public/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
- package/dist/public/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
- package/dist/public/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
- package/dist/public/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
- package/dist/public/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
- package/dist/public/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
- package/dist/public/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
- package/dist/public/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
- package/dist/public/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
- package/dist/public/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
- package/dist/public/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
- package/dist/public/charting_library/charting_library.cjs.js +0 -98
- package/dist/public/charting_library/charting_library.esm.js +0 -101
- package/dist/public/charting_library/charting_library.js +0 -99
- package/dist/public/charting_library/charting_library.standalone.js +0 -99
- package/dist/src/App.js +0 -81
- package/dist/src/charting_library/bundles/0.d46f0b5e9380d7893de5.js +0 -112
- package/dist/src/charting_library/bundles/1.f02c87d35fbc8ffcaedb.js +0 -1
- package/dist/src/charting_library/bundles/10.21e665b7935d5bc4ba64.js +0 -322
- package/dist/src/charting_library/bundles/11.df012db70159a159d927.js +0 -1
- package/dist/src/charting_library/bundles/12.37750b21f6d8d35c6e6e.js +0 -1
- package/dist/src/charting_library/bundles/13.699469c73d09b7add56d.js +0 -1
- package/dist/src/charting_library/bundles/14.d1148b38d59df9ca5061.js +0 -1
- package/dist/src/charting_library/bundles/15.44f2acca80348a1da1a6.js +0 -89
- package/dist/src/charting_library/bundles/16.680572949c1125757d35.js +0 -1
- package/dist/src/charting_library/bundles/17.404a01f527881dfff424.js +0 -1
- package/dist/src/charting_library/bundles/18.78de69cfba051874e071.js +0 -120
- package/dist/src/charting_library/bundles/19.048f7f5d36fef428ca8d.js +0 -1
- package/dist/src/charting_library/bundles/2.60931787a6734697ac13.js +0 -118
- package/dist/src/charting_library/bundles/20.bc09ed47c5a62e1bc5c2.js +0 -128
- package/dist/src/charting_library/bundles/21.4c7b5cccb67a95e7e782.js +0 -1
- package/dist/src/charting_library/bundles/22.ca4300bcf614d8d5f4ab.js +0 -1
- package/dist/src/charting_library/bundles/23.256ba98e6a03200bdeba.js +0 -1
- package/dist/src/charting_library/bundles/24.bc4fafedb1730259aa10.js +0 -1
- package/dist/src/charting_library/bundles/25.7416db26ed3dcc87c05a.js +0 -611
- package/dist/src/charting_library/bundles/26.3aeec391d4e6e19989ee.js +0 -1
- package/dist/src/charting_library/bundles/27.e3ec08b1fb9df5f36ada.js +0 -69
- package/dist/src/charting_library/bundles/28.9f103042c27ea2df422f.js +0 -1
- package/dist/src/charting_library/bundles/29.3df8712b85d45a626aa0.js +0 -1
- package/dist/src/charting_library/bundles/3.76c398b01b707e5b251c.js +0 -1
- package/dist/src/charting_library/bundles/30.0b732ccb122d160480b6.js +0 -231
- package/dist/src/charting_library/bundles/31.8d2b7a538755fd1bb760.js +0 -166
- package/dist/src/charting_library/bundles/32.13ce02217cf8f9dd6d90.js +0 -121
- package/dist/src/charting_library/bundles/33.4d0dd1f7001fc02099bb.js +0 -1
- package/dist/src/charting_library/bundles/34.c9baa59add71a1e48fd2.js +0 -1
- package/dist/src/charting_library/bundles/35.ed9e360f9686ad3a9497.js +0 -1
- package/dist/src/charting_library/bundles/36.1882d1a8d312a0e193e9.js +0 -1
- package/dist/src/charting_library/bundles/37.90129e4904155350d6a1.js +0 -199
- package/dist/src/charting_library/bundles/38.41f3d509b61c8af47de3.js +0 -74
- package/dist/src/charting_library/bundles/39.bc1e9ce938fd5152831f.js +0 -1
- package/dist/src/charting_library/bundles/4.c7430b8d89cddcf51345.js +0 -1
- package/dist/src/charting_library/bundles/40.b59f41ba4cacbfb8acc3.js +0 -29
- package/dist/src/charting_library/bundles/41.a19b0ae5d68f855d2753.js +0 -1
- package/dist/src/charting_library/bundles/42.494986b0981f6d116fef.js +0 -1
- package/dist/src/charting_library/bundles/43.619c5ed4a592cc2965a4.js +0 -1
- package/dist/src/charting_library/bundles/44.0a7df307e4f397763ce8.js +0 -363
- package/dist/src/charting_library/bundles/45.db9dbd3e9bfeca5333da.js +0 -1
- package/dist/src/charting_library/bundles/46.f1d4cfe6d6f830b4a011.js +0 -114
- package/dist/src/charting_library/bundles/47.a3da3f774c90bd22798e.js +0 -95
- package/dist/src/charting_library/bundles/48.a93f9cb8b1bcc0e0f21e.js +0 -1
- package/dist/src/charting_library/bundles/49.bacd609f7eb77a4a4b68.js +0 -1
- package/dist/src/charting_library/bundles/5.5e97b270ab80d99e9085.js +0 -62
- package/dist/src/charting_library/bundles/50.b282667dddcb7fe1569a.js +0 -1
- package/dist/src/charting_library/bundles/51.11871c50951db825ace3.js +0 -1
- package/dist/src/charting_library/bundles/52.0379a85baae3ab43b15c.js +0 -1
- package/dist/src/charting_library/bundles/53.1d3ec98cfb8e19affb1c.js +0 -76
- package/dist/src/charting_library/bundles/54.bb5888ae55ea0a253a5b.js +0 -203
- package/dist/src/charting_library/bundles/55.3c35a629db21ab961f11.js +0 -303
- package/dist/src/charting_library/bundles/56.b3e69145c0fee614443d.js +0 -95
- package/dist/src/charting_library/bundles/57.236996ec416da4c1f683.js +0 -108
- package/dist/src/charting_library/bundles/58.7ffac4ba908b95705e63.js +0 -61
- package/dist/src/charting_library/bundles/59.397cb6699b74d64072a8.js +0 -1
- package/dist/src/charting_library/bundles/6.2d67b0ae77825dbd455d.js +0 -1
- package/dist/src/charting_library/bundles/60.6b5eced2ef8fa856be88.js +0 -1
- package/dist/src/charting_library/bundles/61.38a3040c925fadff7b64.js +0 -118
- package/dist/src/charting_library/bundles/62.63b309f5f8da9ca013b8.js +0 -61
- package/dist/src/charting_library/bundles/63.8255c7f5191bcafcee7c.js +0 -1
- package/dist/src/charting_library/bundles/64.ec4b4d03b28c77658dde.js +0 -1
- package/dist/src/charting_library/bundles/65.f895a78b4e04257983ff.js +0 -1
- package/dist/src/charting_library/bundles/66.2979e9b7c35e7bf03a37.js +0 -1
- package/dist/src/charting_library/bundles/67.25fd4b78c8c514988aeb.js +0 -1
- package/dist/src/charting_library/bundles/68.8b4124c875484d11fd94.js +0 -1
- package/dist/src/charting_library/bundles/69.43756a5c7477730eb0c4.js +0 -1
- package/dist/src/charting_library/bundles/7.2c7c4f8a49c6380227de.js +0 -68
- package/dist/src/charting_library/bundles/70.cb9d1bb5a00896c1bb97.js +0 -1
- package/dist/src/charting_library/bundles/71.6a9d0842f5e48f68399c.js +0 -1
- package/dist/src/charting_library/bundles/72.e3925aaf38d2c8997638.js +0 -1
- package/dist/src/charting_library/bundles/73.8ca1a096c5bdc2e5fb8a.js +0 -1
- package/dist/src/charting_library/bundles/74.34dcc0d3cd1bbfa5e951.js +0 -1
- package/dist/src/charting_library/bundles/75.1c9a3a6524248ddf88bf.js +0 -1
- package/dist/src/charting_library/bundles/76.5d20bed213399f326603.js +0 -1
- package/dist/src/charting_library/bundles/77.3e4ccccc7d3eb03c488f.js +0 -1
- package/dist/src/charting_library/bundles/78.1d1d47a915b06f1496fb.js +0 -1
- package/dist/src/charting_library/bundles/79.86e92b77f8cf32e6bc37.js +0 -1
- package/dist/src/charting_library/bundles/8.ffab20b86db484062268.js +0 -1
- package/dist/src/charting_library/bundles/80.b5bc6acec3b531a510a9.js +0 -1
- package/dist/src/charting_library/bundles/81.e6a1f76017a44b03480b.js +0 -1
- package/dist/src/charting_library/bundles/82.8c2919e6c8f54e36e9e6.js +0 -1
- package/dist/src/charting_library/bundles/83.f3e53bb5a5940e084955.js +0 -1
- package/dist/src/charting_library/bundles/84.8acc496b4deeeeefb5af.js +0 -1
- package/dist/src/charting_library/bundles/85.39c78fbeaabae306f343.js +0 -1
- package/dist/src/charting_library/bundles/86.4bbbb9e6262243419986.js +0 -1
- package/dist/src/charting_library/bundles/87.cf03fa0a76bfcadd157d.js +0 -1
- package/dist/src/charting_library/bundles/88.d1e3aec63ece25f6b8a9.js +0 -1
- package/dist/src/charting_library/bundles/89.d8aa43b4b9378722d572.js +0 -1
- package/dist/src/charting_library/bundles/9.84ecbc930e51cb26d06a.js +0 -1
- package/dist/src/charting_library/bundles/90.ce47bb68fc3fc88b5590.js +0 -1
- package/dist/src/charting_library/bundles/91.a9b79ef7ba0a62311a53.js +0 -1
- package/dist/src/charting_library/bundles/92.76d5ca7ebec10a1a7a12.js +0 -1
- package/dist/src/charting_library/bundles/93.6de56ef1975f4a31e542.js +0 -1
- package/dist/src/charting_library/bundles/94.231bea5fb12b806ef287.js +0 -1
- package/dist/src/charting_library/bundles/95.6f7da80aac5cf2bf77d6.js +0 -1
- package/dist/src/charting_library/bundles/96.43bb935eee30715afff7.js +0 -1
- package/dist/src/charting_library/bundles/add-compare-dialog.f980c19f222ff9cb8fe6.js +0 -263
- package/dist/src/charting_library/bundles/change-interval-dialog.e928f8dec65c9244cafe.js +0 -52
- package/dist/src/charting_library/bundles/chart-bottom-toolbar.b2e895a5fd3f204fb6b6.js +0 -399
- package/dist/src/charting_library/bundles/chart-event-hint.94e94e93f9fdee936b66.js +0 -97
- package/dist/src/charting_library/bundles/chart-screenshot-hint.14bfec43c52bc3d28f82.js +0 -49
- package/dist/src/charting_library/bundles/chart-widget-gui.226991e9f53aba124fc2.js +0 -1199
- package/dist/src/charting_library/bundles/compare-model.0e6bbdc5f5942c9a716e.js +0 -181
- package/dist/src/charting_library/bundles/context-menu-renderer.7f6f59270ef0f3afa2ed.js +0 -107
- package/dist/src/charting_library/bundles/currency-label-menu.a7a0c0e44d64b092f2cc.js +0 -131
- package/dist/src/charting_library/bundles/custom-intervals-add-dialog.bb64431fb1c6d852f9f1.js +0 -71
- package/dist/src/charting_library/bundles/drawing-toolbar.8cc497633535648562e7.js +0 -250
- package/dist/src/charting_library/bundles/export-data.c819cfa996e2815ff11d.js +0 -78
- package/dist/src/charting_library/bundles/floating-toolbars.d78a058b82ab09013aac.js +0 -508
- package/dist/src/charting_library/bundles/full-tooltips-popup.96fc751e06523b742440.js +0 -92
- package/dist/src/charting_library/bundles/general-chart-properties-dialog.b08948e0c90aebf07ebd.js +0 -85
- package/dist/src/charting_library/bundles/general-property-page.32bdfdbafbd81d9e83c6.js +0 -104
- package/dist/src/charting_library/bundles/go-to-date-dialog-impl.3481c4fcfde2f4d46426.js +0 -361
- package/dist/src/charting_library/bundles/hammerjs.e5489031ed611f47bf09.js +0 -224
- package/dist/src/charting_library/bundles/header-toolbar.4bff61e047f9b8379494.js +0 -228
- package/dist/src/charting_library/bundles/library.8b0dd8732414a2bcbcb1.js +0 -26194
- package/dist/src/charting_library/bundles/line-tools-icons.090f39d92664af3915a5.js +0 -60
- package/dist/src/charting_library/bundles/load-chart-dialog.6cc1a47b17698c0108cb.js +0 -101
- package/dist/src/charting_library/bundles/lollipop-tooltip-renderer.6705b971a2e73c26ecad.js +0 -116
- package/dist/src/charting_library/bundles/lt-pane-views.4d2ee6c5330cd3760eb0.js +0 -4029
- package/dist/src/charting_library/bundles/lt-property-pages-with-definitions.a5e8283e77afa66b5636.js +0 -735
- package/dist/src/charting_library/bundles/manage-drawings-dialog.1c0c3737002fa63fe6a6.js +0 -16
- package/dist/src/charting_library/bundles/moment.78e587a83a009ca48cda.js +0 -369
- package/dist/src/charting_library/bundles/new-confirm-inputs-dialog.00d79c2263e005170345.js +0 -130
- package/dist/src/charting_library/bundles/new-edit-object-dialog.0ed1c3834cfc0e834aed.js +0 -405
- package/dist/src/charting_library/bundles/object-tree-dialog.8e2b7eb9ba2f1dbfbc11.js +0 -1807
- package/dist/src/charting_library/bundles/react.9f2899b40ad0e104f6c9.js +0 -3715
- package/dist/src/charting_library/bundles/redux.43c3f6d214bcf2d1fbd1.js +0 -354
- package/dist/src/charting_library/bundles/restricted-toolset.08fefbae2bc0877b0ef2.js +0 -566
- package/dist/src/charting_library/bundles/runtime.dfe30490f666a6b5d4fe.js +0 -79
- package/dist/src/charting_library/bundles/series-icons-map.ec8043f64d8b06dbce29.js +0 -8
- package/dist/src/charting_library/bundles/series-pane-views.eefe35e1c508ac16c102.js +0 -52
- package/dist/src/charting_library/bundles/share-chart-to-social-utils.c225af2051efd23269e0.js +0 -5
- package/dist/src/charting_library/bundles/show-theme-save-dialog.f81ebf1b2ce08f4399fd.js +0 -11
- package/dist/src/charting_library/bundles/simple-dialog.bd79f02afd512f0f36dd.js +0 -189
- package/dist/src/charting_library/bundles/source-properties-editor.e858d44541ebb6f974a2.js +0 -39
- package/dist/src/charting_library/bundles/study-market.3efd7bf7bc6e6fc7db2d.js +0 -174
- package/dist/src/charting_library/bundles/study-pane-views.9a873dcf74adedf7600b.js +0 -204
- package/dist/src/charting_library/bundles/study-property-pages-with-definitions.ca4fc2ef5a4deff8c0bb.js +0 -125
- package/dist/src/charting_library/bundles/study-template-dialog.fe56a9893a3695e93531.js +0 -320
- package/dist/src/charting_library/bundles/symbol-info-dialog-impl.17daedab6f893acdeae4.js +0 -123
- package/dist/src/charting_library/bundles/symbol-search-dialog.fd3311eee8604f807c80.js +0 -35
- package/dist/src/charting_library/bundles/take-chart-image-impl.c0e6073dcac3041eecf2.js +0 -74
- package/dist/src/charting_library/bundles/vendors.6f5e0d8d267cb3e63ee0.js +0 -1304
- package/dist/src/charting_library/charting_library.cjs.js +0 -98
- package/dist/src/charting_library/charting_library.esm.js +0 -101
- package/dist/src/charting_library/charting_library.js +0 -99
- package/dist/src/charting_library/charting_library.standalone.js +0 -515
- package/dist/src/components/TVChartContainer.js +0 -122
- package/dist/src/components/datafeed.js +0 -199
- package/dist/src/components/helpers.js +0 -58
- package/dist/src/components/index.js +0 -7
- package/dist/src/components/streaming.js +0 -92
- package/dist/src/index.js +0 -14
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
(window.webpackJsonp = window.webpackJsonp || []).push([["floating-toolbars"], { "+KIV": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"/></svg>'; }, "0ZwQ": function (t, e, i) {
|
|
13
|
-
"use strict";
|
|
14
|
-
var o = i("8+VR"), n = i("9uLv"), s = i("Vdly"), r = i("aIyQ"), a = i.n(r), l = i("hY0g"), c = i.n(l), d = i("cZRT");
|
|
15
|
-
class h extends d.a {
|
|
16
|
-
_startLoading() { return i.e("hammerjs").then(i.bind(null, "be1f")).then(t => t.HammerJS); }
|
|
17
|
-
}
|
|
18
|
-
var u = i("VVxS");
|
|
19
|
-
i("Eyy1");
|
|
20
|
-
function p(t, e = !1) { const i = getComputedStyle(t), o = [i.height]; return "border-box" !== i.boxSizing && o.push(i.paddingTop, i.paddingBottom, i.borderTopWidth, i.borderBottomWidth), e && o.push(i.marginTop, i.marginBottom), o.reduce((t, e) => t + (parseFloat(e) || 0), 0); }
|
|
21
|
-
function g(t, e = !1) { const i = getComputedStyle(t), o = [i.width]; return "border-box" !== i.boxSizing && o.push(i.paddingLeft, i.paddingRight, i.borderLeftWidth, i.borderRightWidth), e && o.push(i.marginLeft, i.marginRight), o.reduce((t, e) => t + (parseFloat(e) || 0), 0); }
|
|
22
|
-
var _ = i("qFKp");
|
|
23
|
-
class m {
|
|
24
|
-
constructor(t) {
|
|
25
|
-
var e, i;
|
|
26
|
-
this._helper = null, this._handleDragStart = t => { var e; if (null !== this._helper)
|
|
27
|
-
return; if (!(t.target instanceof Element && this._handle.contains(t.target)))
|
|
28
|
-
return; const i = this._source; i.classList.add("ui-draggable-dragging"); const o = this._getEventTarget(); o.addEventListener("pointermove", this._handleDragMove), o.addEventListener("pointerup", this._handleDragStop), o.addEventListener("pointercancel", this._handleDragStop), o.setPointerCapture(t.pointerId); const [n, s] = [g(i), p(i)]; this._helper = { pointer: t.pointerId, startX: t.clientX, startY: t.clientY, startTop: parseFloat(i.style.top) || 0, startLeft: parseFloat(i.style.left) || 0, nextTop: null, nextLeft: null, raf: null, size: [n, s], containment: this._containment instanceof HTMLElement ? [parseInt(getComputedStyle(this._containment).borderLeftWidth) + parseInt(getComputedStyle(this._containment).paddingLeft), parseInt(getComputedStyle(this._containment).borderTopWidth) + parseInt(getComputedStyle(this._containment).paddingTop), this._containment.offsetWidth - parseInt(getComputedStyle(this._containment).borderRightWidth) - parseInt(getComputedStyle(this._containment).paddingRight) - parseInt(getComputedStyle(i).marginLeft) - parseInt(getComputedStyle(i).marginRight) - n, this._containment.offsetHeight - parseInt(getComputedStyle(this._containment).borderBottomWidth) - parseInt(getComputedStyle(this._containment).paddingBottom) - parseInt(getComputedStyle(i).marginTop) - parseInt(getComputedStyle(i).marginBottom) - s] : "window" === this._containment ? [window.scrollX, window.scrollY, window.scrollX + document.documentElement.offsetWidth - n, window.scrollY + document.documentElement.offsetHeight - s] : null }, null === (e = this._start) || void 0 === e || e.call(this); }, this._handleDragMove = t => {
|
|
29
|
-
var e;
|
|
30
|
-
if (null === this._helper || this._helper.pointer !== t.pointerId)
|
|
31
|
-
return;
|
|
32
|
-
const i = this._source, o = this._helper.nextTop, n = this._helper.nextLeft, s = "y" === this._axis || !1 === this._axis || 0 !== t.movementY;
|
|
33
|
-
if (s) {
|
|
34
|
-
const e = this._helper.startTop;
|
|
35
|
-
isFinite(e) && (this._helper.nextTop = t.clientY - this._helper.startY + e);
|
|
36
|
-
}
|
|
37
|
-
const r = "x" === this._axis || !1 === this._axis || 0 !== t.movementX;
|
|
38
|
-
if (r) {
|
|
39
|
-
const e = this._helper.startLeft;
|
|
40
|
-
isFinite(e) && (this._helper.nextLeft = t.clientX - this._helper.startX + e);
|
|
41
|
-
}
|
|
42
|
-
if (null !== this._helper.containment) {
|
|
43
|
-
const [t, e, i, o] = this._helper.containment;
|
|
44
|
-
s && this._helper.nextTop && (this._helper.nextTop = Math.min(this._helper.nextTop, o), this._helper.nextTop = Math.max(this._helper.nextTop, e)), r && this._helper.nextLeft && (this._helper.nextLeft = Math.min(this._helper.nextLeft, i), this._helper.nextLeft = Math.max(this._helper.nextLeft, t));
|
|
45
|
-
}
|
|
46
|
-
null !== this._helper.raf || o === this._helper.nextTop && n === this._helper.nextLeft || (this._helper.raf = requestAnimationFrame(() => { null !== this._helper && (null !== this._helper.nextTop && (i.style.top = this._helper.nextTop + "px", this._helper.nextTop = null), null !== this._helper.nextLeft && (i.style.left = this._helper.nextLeft + "px", this._helper.nextLeft = null), this._helper.raf = null); })), null === (e = this._drag) || void 0 === e || e.call(this);
|
|
47
|
-
}, this._handleDragStop = t => { var e; if (null === this._helper || this._helper.pointer !== t.pointerId)
|
|
48
|
-
return; this._source.classList.remove("ui-draggable-dragging"); const i = this._getEventTarget(); i.removeEventListener("pointermove", this._handleDragMove), i.removeEventListener("pointerup", this._handleDragStop), i.removeEventListener("pointercancel", this._handleDragStop), i.releasePointerCapture(this._helper.pointer), this._helper = null, null === (e = this._stop) || void 0 === e || e.call(this); };
|
|
49
|
-
const o = this._source = t.source;
|
|
50
|
-
o.classList.add("ui-draggable");
|
|
51
|
-
const n = this._handle = null !== (e = t.handle ? o.querySelector(t.handle) : null) && void 0 !== e ? e : o;
|
|
52
|
-
n.style.touchAction = "none", n.classList.add("ui-draggable-handle");
|
|
53
|
-
this._getEventTarget().addEventListener("pointerdown", this._handleDragStart), this._start = t.start, this._stop = t.stop, this._drag = t.drag, this._axis = null !== (i = t.axis) && void 0 !== i && i, this._containment = t.containment;
|
|
54
|
-
}
|
|
55
|
-
destroy() { const t = this._source; t.classList.remove("ui-draggable"), t.classList.remove("ui-draggable-dragging"); this._handle.style.touchAction = ""; const e = this._getEventTarget(); e.removeEventListener("pointerdown", this._handleDragStart), e.removeEventListener("pointermove", this._handleDragMove), e.removeEventListener("pointerup", this._handleDragStop), e.removeEventListener("pointercancel", this._handleDragStop), null !== this._helper && (this._helper.raf && cancelAnimationFrame(this._helper.raf), e.releasePointerCapture(this._helper.pointer), this._helper = null); }
|
|
56
|
-
_getEventTarget() { return _.CheckMobile.iOS() || Object(_.isMac)() && o.touch ? window.document.documentElement : this._handle; }
|
|
57
|
-
}
|
|
58
|
-
var b = i("gWrr"), v = i("JWMC"), w = i("qAO1");
|
|
59
|
-
i("PwLo");
|
|
60
|
-
i.d(e, "a", (function () { return f; })), i.d(e, "b", (function () { return C; }));
|
|
61
|
-
const f = "floating-toolbar-react-widgets", y = `<div class="tv-floating-toolbar i-closed i-hidden"><div class="tv-floating-toolbar__widget-wrapper"><div class="tv-floating-toolbar__drag js-drag">${w}</div><div class="tv-floating-toolbar__content js-content"></div><div class="${f}"></div></div></div>`;
|
|
62
|
-
class C {
|
|
63
|
-
constructor(t) {
|
|
64
|
-
this._widget = document.createElement("div"), this._isVertical = !1,
|
|
65
|
-
this._hiddingTimeoutId = null, this._visibility = new c.a(!1), this._windowResizeListener = this._onWindowResize.bind(this), this._reorderedDelegate = new a.a, this._responsiveResizeFunction = null, this._showTimeStamp = null, this._draggable = null, this._preventClickUntilAnimation = t => { null !== this._showTimeStamp && performance.now() - this._showTimeStamp < this.hideDuration() && t.stopPropagation(); }, C._toolbars.push(this), this._options = t, this._widget = Object(b.b)(y), this._content = this._widget.getElementsByClassName("js-content").item(0), this._reactWidgetsContainer = this._widget.getElementsByClassName(f).item(0), this._setZIndex(C._startZIndex + C._toolbars.length - 1), this._options.addClass && (this._widget.className += " " + this._options.addClass), this._options["data-name"] && (this._widget.dataset.name = this._options["data-name"]), this._options.layout && "auto" !== this._options.layout && (this._isVertical = "vertical" === this._options.layout, this._updateLayoutType(), this._updateAxisOption()), this._widget.addEventListener("click", this._preventClickUntilAnimation, !0);
|
|
66
|
-
}
|
|
67
|
-
destroy() { this.hide(!0), C._toolbars.splice(C._toolbars.indexOf(this), 1), this._widget.removeEventListener("click", this._preventClickUntilAnimation, !0), document.body.contains(this._widget) && document.body.removeChild(this._widget), null !== this._draggable && this._draggable.destroy(), this._widget.innerHTML = "", this._responsiveResizeFunction = null; }
|
|
68
|
-
setResponsiveResizeFunc(t) { this._responsiveResizeFunction = t; }
|
|
69
|
-
isVisible() { return this._visibility.value(); }
|
|
70
|
-
visibility() { return this._visibility.readonly(); }
|
|
71
|
-
isVertical() { return this._isVertical; }
|
|
72
|
-
show() { this.isVisible() || (document.body.contains(this._widget) || (this._init(), document.body.appendChild(this._widget)), this._setHiddingTimeout(null), window.addEventListener("resize", this._windowResizeListener), this.raise(), this._visibility.setValue(!0), this._showTimeStamp = performance.now(), this._widget.classList.contains("i-hidden") ? (this._widget.classList.remove("i-hidden"), setTimeout(() => { this.isVisible() && this._widget.classList.remove("i-closed"); })) : this._widget.classList.remove("i-closed"), this._onWindowResize()); }
|
|
73
|
-
hide(t = !1) { if (!this.isVisible())
|
|
74
|
-
return; const e = this._widget.classList.contains("i-closed"); if (this._widget.classList.add("i-closed"), this._visibility.setValue(!1), t || e)
|
|
75
|
-
this._setHiddingTimeout(null), this._widget.classList.add("i-hidden");
|
|
76
|
-
else {
|
|
77
|
-
const t = setTimeout(() => { this._setHiddingTimeout(null), this._widget.classList.add("i-hidden"); }, this.hideDuration());
|
|
78
|
-
this._setHiddingTimeout(t);
|
|
79
|
-
} window.removeEventListener("resize", this._windowResizeListener); }
|
|
80
|
-
raise() { C._toolbars.length + C._startZIndex !== this._zIndex() && (C._toolbars.splice(C._toolbars.indexOf(this), 1), C._toolbars.push(this), C._updateAllZIndexes()); }
|
|
81
|
-
hideDuration() { return .75 * n.b; }
|
|
82
|
-
addWidget(t, e = {}) {
|
|
83
|
-
const i = this.widgetsCount();
|
|
84
|
-
if (void 0 === e.index && (e.index = i), e.index < 0 || e.index > i)
|
|
85
|
-
throw new Error(`Index must be in [0, ${i}]`);
|
|
86
|
-
const o = document.createElement("div");
|
|
87
|
-
o.className = "tv-floating-toolbar__widget js-widget", o.appendChild(t);
|
|
88
|
-
const n = e.index === i ? null : this._content.childNodes.item(e.index);
|
|
89
|
-
this._content.insertBefore(o, n),
|
|
90
|
-
this._onWindowResize();
|
|
91
|
-
}
|
|
92
|
-
getReactWidgetContainer() { return this._reactWidgetsContainer; }
|
|
93
|
-
removeWidget(t) { const e = this._findWrapperForWidget(t); e && (this._content.removeChild(e), this._onWindowResize()); }
|
|
94
|
-
widgetsCount() { return this._content.childNodes.length; }
|
|
95
|
-
showWidget(t) { const e = this._findWrapperForWidget(t); e && e.classList.remove("i-hidden"); }
|
|
96
|
-
hideWidget(t) { const e = this._findWrapperForWidget(t); e && e.classList.add("i-hidden"); }
|
|
97
|
-
removeWidgets() { for (; this._content.firstChild;)
|
|
98
|
-
this._content.removeChild(this._content.firstChild); this._onWindowResize(); }
|
|
99
|
-
onWidgetsReordered() { return this._reorderedDelegate; }
|
|
100
|
-
onContextMenu(t) { if (o.mobiletouch) {
|
|
101
|
-
(new h).load().then(e => { const i = new e(this._widget); i.get("press").set({ time: 500 }), i.on("press", e => { this._preventWidgetTouchEndEvent(), t(e.srcEvent); }); });
|
|
102
|
-
}
|
|
103
|
-
else
|
|
104
|
-
this._widget.addEventListener("contextmenu", t); }
|
|
105
|
-
checkPosition() { const t = this._getCorrectedWidgetRect(), e = { left: t.left, top: t.top }; this._correctPosition(e), t.left === e.left && t.top === e.top || (this._widget.style.left = e.left + "px", this._widget.style.top = e.top + "px"); }
|
|
106
|
-
_determineCurrentLayoutVertical(t) { const e = this._isVertical ? t.height : t.width; return window.innerWidth < e && window.innerWidth < window.innerHeight; }
|
|
107
|
-
_getWidget() { return this._widget; }
|
|
108
|
-
_findWrapperForWidget(t) { const e = this._content.getElementsByClassName("js-widget"); for (let i = 0; i < e.length; ++i) {
|
|
109
|
-
const o = e.item(i);
|
|
110
|
-
if (o.contains(t))
|
|
111
|
-
return o;
|
|
112
|
-
} return null; }
|
|
113
|
-
_onVerticalChanged(t, e) { }
|
|
114
|
-
_setHiddingTimeout(t) { null !== this._hiddingTimeoutId && clearTimeout(this._hiddingTimeoutId), this._hiddingTimeoutId = t; }
|
|
115
|
-
_preventWidgetTouchEndEvent() { const t = e => { e.preventDefault(), this._widget.removeEventListener("touchend", t); }; this._widget.addEventListener("touchend", t); }
|
|
116
|
-
_updateLayoutType() { this._widget.classList.toggle("i-vertical", this._isVertical); }
|
|
117
|
-
_updateAxisOption() { 0; }
|
|
118
|
-
_onWindowResize() { if ("auto" === (this._options.layout || "auto")) {
|
|
119
|
-
const t = this._isVertical, e = this._getCorrectedWidgetRect();
|
|
120
|
-
this._isVertical = this._determineCurrentLayoutVertical(e), this._updateLayoutType(), t !== this._isVertical && (this._onVerticalChanged(this._isVertical, t), this._updateAxisOption());
|
|
121
|
-
} this.checkPosition(), this._resizeResponsive(); }
|
|
122
|
-
_resizeResponsive() { if (null === this._responsiveResizeFunction)
|
|
123
|
-
return; let t = this._options.layout || "auto"; "auto" === t && (t = this._isVertical ? "vertical" : "horizontal"); const e = "vertical" === t ? this._widget.clientHeight : this._widget.clientWidth, i = ("vertical" === t ? window.innerHeight : window.innerWidth) - e; this._responsiveResizeFunction(e, i, t); }
|
|
124
|
-
_correctPosition(t) { const e = this._getCorrectedWidgetRect(); t.left + e.width > window.innerWidth && (t.left = Math.max(0, window.innerWidth - e.width)), t.top + e.height > window.innerHeight && (t.top = Math.max(0, window.innerHeight - e.height)), t.left = Math.max(0, t.left), t.top = Math.max(0, t.top); }
|
|
125
|
-
_setZIndex(t) { this._widget.style.zIndex = String(t); }
|
|
126
|
-
_zIndex() { return Number(this._widget.style.zIndex); }
|
|
127
|
-
_loadPosition() {
|
|
128
|
-
let t;
|
|
129
|
-
if ("device" === this._options.positionStorageType) {
|
|
130
|
-
const e = u.TVLocalStorage.getItem(this._options.positionSettingsKey);
|
|
131
|
-
t = null !== e ? JSON.parse(e) : this._options.defaultPosition;
|
|
132
|
-
}
|
|
133
|
-
else
|
|
134
|
-
t = Object(s.getJSON)(this._options.positionSettingsKey, this._options.defaultPosition);
|
|
135
|
-
this._widget.style.left = Math.round(t.left) + "px", this._widget.style.top = Math.round(t.top) + "px", this._onWindowResize();
|
|
136
|
-
}
|
|
137
|
-
_savePosition() { const t = this._widget.getBoundingClientRect(); if ("device" === this._options.positionStorageType)
|
|
138
|
-
try {
|
|
139
|
-
u.TVLocalStorage.setItem(this._options.positionSettingsKey, JSON.stringify({ left: t.left, top: t.top }));
|
|
140
|
-
}
|
|
141
|
-
catch (t) { }
|
|
142
|
-
else
|
|
143
|
-
Object(s.setJSON)(this._options.positionSettingsKey, { left: t.left, top: t.top }); }
|
|
144
|
-
_init() { this._loadPosition(), this._draggable = new m({ source: this._widget, containment: "window", handle: ".js-drag", stop: this._savePosition.bind(this) }), this._widget.addEventListener("pointerdown", this.raise.bind(this)); }
|
|
145
|
-
_initSortable() { let t = -1; lazyJqueryUI(this._content).sortable({ start: (e, i) => { t = i.item.index(); }, stop: (e, i) => { const o = i.item.index(); t !== o && (Object(v.trackEvent)("Floating Toolbar", "User Sort"), this._reorderedDelegate.fire(t, o)); }, tolerance: "pointer", distance: 5, containment: !!this._options.dragOnlyInsideToolbar && "parent", scroll: !1, placeholder: "sortable-placeholder", forcePlaceholderSize: !0 }), this._updateAxisOption(); }
|
|
146
|
-
_getCorrectedWidgetRect() { const t = this._widget.getBoundingClientRect(); if (this._widget.classList.contains("i-closed")) {
|
|
147
|
-
const e = 1 / .925 - 1, i = t.width * e, o = t.height * e;
|
|
148
|
-
return { bottom: t.bottom + o / 2, height: t.height + o, left: t.left - i / 2, right: t.right + i / 2, top: t.top - o / 2, width: t.width + i };
|
|
149
|
-
} return t; }
|
|
150
|
-
static _updateAllZIndexes() { C._toolbars.forEach((t, e) => { t._setZIndex(C._startZIndex + e); }); }
|
|
151
|
-
}
|
|
152
|
-
C._startZIndex = 20, C._toolbars = [];
|
|
153
|
-
}, "0fuu": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="none"><path stroke="currentColor" d="M13.5 6.5l-3-3-7 7 7.59 7.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82L13.5 6.5zm0 0v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v6"/><path fill="currentColor" d="M0 16.5C0 15 2.5 12 2.5 12S5 15 5 16.5 4 19 2.5 19 0 18 0 16.5z"/><circle fill="currentColor" cx="9.5" cy="9.5" r="1.5"/></svg>'; }, "2F1E": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 4" width="18" height="4"><rect width="18" height="4" fill="currentColor" rx="2"/></svg>'; }, "4QAy": function (t, e, i) { }, "5hRh": function (t, e, i) {
|
|
154
|
-
"use strict";
|
|
155
|
-
i.d(e, "a", (function () { return n; }));
|
|
156
|
-
var o = i("q1tI");
|
|
157
|
-
const n = t => { const [e, i] = Object(o.useState)(t.value()); return Object(o.useEffect)(() => { const e = t => { i(t.value()); }; e(t); const o = {}; return t.subscribe(o, e), () => t.unsubscribe(o, e); }, [t]), e; };
|
|
158
|
-
}, ADFN: function (t, e, i) { }, EvtC: function (t, e, i) { t.exports = { button: "button-2YcRd2gv" }; }, HWhk: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'; }, IhRv: function (t, e, i) {
|
|
159
|
-
"use strict";
|
|
160
|
-
i.r(e),
|
|
161
|
-
i.d(e, "ColorPickerButton", (function () { return b; }));
|
|
162
|
-
var o = i("q1tI"), n = i.n(o), s = i("TSYQ"), r = i.n(s), a = i("Eyy1"), l = i("Iivm"), c = i("eJTA"), d = i("Tmoa"), h = i("V3OP"), u = i("htM8"), p = i("wLjq"), g = i("82wv"), _ = i("5hRh"), m = i("X1vi");
|
|
163
|
-
function b(t) { const { property: e, icon: i, model: s, title: b, className: v } = t, w = Object(_.a)(e), f = Object(o.useRef)(null), y = w ? Object(c.parseRgba)(w)[3] : void 0, C = "" === w, x = String(T()).toLowerCase() === p.c, [W, P, S] = Object(h.a)(); return n.a.createElement(g.a, { className: v, content: n.a.createElement("div", { className: m.wrap }, n.a.createElement(l.a, { className: m.icon, icon: i }), n.a.createElement("div", { className: m.colorBg }, n.a.createElement("div", { className: r()(m.color, C && m.multicolor, x && m.white), style: C ? void 0 : { backgroundColor: w } }))), arrow: !1, title: b, ref: f, "data-name": t["data-name"], menuDataName: t["data-name"] + "-menu" }, n.a.createElement(u.a, { color: T(), opacity: y, onColorChange: function (t, e) { const i = w ? Object(d.alphaToTransparency)(Object(c.parseRgba)(w)[3]) : 0; L(Object(d["generateColor"])(String(t), i, true)), e || Object(a.ensureNotNull)(f.current).close(); }, onOpacityChange: function (t) { L(Object(d.generateColor)(w, Object(d.alphaToTransparency)(t), !0)); }, selectOpacity: void 0 !== y, selectCustom: !0, customColors: W, onAddColor: function (t) { P(t), Object(a.ensureNotNull)(f.current).close(); }, onRemoveCustomColor: S })); function T() { return w ? Object(c.rgbToHexString)(Object(c.parseRgb)(w)) : null; } function L(t) { s.setProperty(e, t, b); } }
|
|
164
|
-
}, Lnv9: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><rect width="18" height="2" rx="1" x="5" y="14"/><rect width="18" height="1" rx=".5" x="5" y="20"/><rect width="18" height="3" rx="1.5" x="5" y="7"/></svg>'; }, O5Oz: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 1" width="18" height="1"><rect width="18" height="1" fill="currentColor" rx=".5"/></svg>'; }, PwLo: function (t, e, i) { }, SAe1: function (t, e, i) {
|
|
165
|
-
"use strict";
|
|
166
|
-
i.d(e, "a", (function () { return r; }));
|
|
167
|
-
var o = i("q1tI"), n = i("rzV7"), s = i.n(n);
|
|
168
|
-
class r extends o.Component {
|
|
169
|
-
constructor(t) { super(t), this._handleMediaChange = () => { const t = l(this.state.queries, (t, e) => e.matches); let e = !1; for (const i in t)
|
|
170
|
-
if (t.hasOwnProperty(i) && this.state.matches[i] !== t[i]) {
|
|
171
|
-
e = !0;
|
|
172
|
-
break;
|
|
173
|
-
} e && this.setState({ matches: t }); }; const { rules: e } = this.props; this.state = a(e); }
|
|
174
|
-
shouldComponentUpdate(t, e) { return !s()(t, this.props) || (!s()(e.rules, this.state.rules) || !s()(e.matches, this.state.matches)); }
|
|
175
|
-
componentDidMount() { this._migrate(null, this.state.queries); }
|
|
176
|
-
componentDidUpdate(t, e) { s()(t.rules, this.props.rules) || this._migrate(e.queries, this.state.queries); }
|
|
177
|
-
componentWillUnmount() { this._migrate(this.state.queries, null); }
|
|
178
|
-
render() { return this.props.children(this.state.matches); }
|
|
179
|
-
static getDerivedStateFromProps(t, e) { if (s()(t.rules, e.rules))
|
|
180
|
-
return null; const { rules: i } = t; return a(i); }
|
|
181
|
-
_migrate(t, e) { null !== t && l(t, (t, e) => { e.removeListener(this._handleMediaChange); }), null !== e && l(e, (t, e) => { e.addListener(this._handleMediaChange); }); }
|
|
182
|
-
}
|
|
183
|
-
function a(t) { const e = l(t, (t, e) => window.matchMedia(e)); return { queries: e, matches: l(e, (t, e) => e.matches), rules: Object.assign({}, t) }; }
|
|
184
|
-
function l(t, e) { const i = {}; for (const o in t)
|
|
185
|
-
t.hasOwnProperty(o) && (i[o] = e(o, t[o])); return i; }
|
|
186
|
-
}, UXdH: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'; }, Ve4Q: function (t, e, i) {
|
|
187
|
-
"use strict";
|
|
188
|
-
i.r(e);
|
|
189
|
-
var o = i("q1tI"), n = i.n(o), s = i("i8i4"), r = i.n(s), a = i("YFKU"), l = i("Kxc7"), c = i("hY0g"), d = i.n(c), h = i("ogJP"), u = i("CW80"), p = i("mMWL"), g = i("j3hX"), _ = i("Eyy1"), m = i("tc+8"), b = i.n(m);
|
|
190
|
-
class v extends b.a {
|
|
191
|
-
constructor(t, e, i) { super(), this._listenersMappers = [], this._isProcess = !1, this._baseProperty = t, this._undoModel = e, this._undoText = i; }
|
|
192
|
-
destroy() { this._baseProperty.destroy(); }
|
|
193
|
-
value() { return this._baseProperty.value(); }
|
|
194
|
-
setValue(t) { this._isProcess = !0, this._baseProperty.setValue(t, void 0, { applyValue: (t, e) => this._undoModel.setProperty(t, e, this._undoText) }), this._isProcess = !1, this._listenersMappers.forEach(t => { t.method.call(t.obj, this); }); }
|
|
195
|
-
subscribe(t, e) { const i = i => { this._isProcess || e.call(t, this); }, o = { obj: t, method: e, callback: i }; this._listenersMappers.push(o), this._baseProperty.subscribe(t, i); }
|
|
196
|
-
unsubscribe(t, e) { var i; const o = Object(_.ensureDefined)(null === (i = this._listenersMappers.find(i => i.obj === t && i.method === e)) || void 0 === i ? void 0 : i.callback); this._baseProperty.unsubscribe(t, o); }
|
|
197
|
-
unsubscribeAll(t) { this._baseProperty.unsubscribeAll(t); }
|
|
198
|
-
}
|
|
199
|
-
var w = i("turx"), f = i("SAe1"), y = i("0ZwQ"), C = i("uhCe");
|
|
200
|
-
const x = y.a + "__button";
|
|
201
|
-
function W(t) { const { templateButton: e, propertyButtons: i, commonButtons: o, isDrawingFinished: s, activeChartWidget: r } = t, a = r.hasModel() && r.model().selection().dataSources(); return a && a.length ? n.a.createElement(f.a, { rules: { isSmallWidth: C.a.TabletSmall, isSmallHeight: "screen and (max-height: 428px)" } }, ({ isSmallWidth: t, isSmallHeight: e }) => n.a.createElement(n.a.Fragment, null, l(), s && n.a.createElement(n.a.Fragment, null, Boolean(i.length) && i.map((i, o) => n.a.createElement(i.component, Object.assign(Object.assign({}, i.props), { key: `${i.props.title}_${o}`, className: x, isSmallScreen: t || e }))), Boolean(o.length) && o.map((i, o) => { const s = t || e; return s ? i.showForSmallScreen ? n.a.createElement(i.component, Object.assign(Object.assign({}, i.props), { isSmallScreen: s, key: `${i.props.title}_${o}`, className: x })) : null : n.a.createElement(i.component, Object.assign(Object.assign({}, i.props), { key: `${i.props.title}_${o}`, className: x })); })))) : l(); function l() { return null === e ? null : n.a.createElement(e.component, Object.assign(Object.assign({}, e.props), { isDrawingFinished: s, className: x })); } }
|
|
202
|
-
var P = i("JWMC"), S = i("p0W+"), T = i("Xxuz");
|
|
203
|
-
function L(t) { const { title: e, activeChartWidget: i, className: o } = t; return n.a.createElement(S.a, { className: o, icon: T, title: e, onClick: function () { Object(P.trackEvent)("GUI", "Context action on drawings", "Settings"), i.showChartPropertiesForSource(i.model().selection().lineDataSources()[0], void 0, { onWidget: i.onWidget() }); }, "data-name": "settings" }); }
|
|
204
|
-
var E = i("5hRh"), B = i("TSYQ"), k = i("4rU7"), O = i("ucyy");
|
|
205
|
-
function V(t) { const { className: e } = t, i = __rest(t, ["className"]); return n.a.createElement(k.a, Object.assign({ className: B(e, O.button), tooltipPosition: "horizontal" }, i)); }
|
|
206
|
-
var I = i("43BO"), M = i("Uh5y");
|
|
207
|
-
function R(t) {
|
|
208
|
-
const { activeChartWidget: e, className: i } = t, o = e.model().selection().lineDataSources()[0].properties().frozen, s = Object(E.a)(o), r = s ? {
|
|
209
|
-
title: Object(a.t)("Unlock"), icon: I
|
|
210
|
-
} : { title: Object(a.t)("Lock"), icon: M };
|
|
211
|
-
return n.a.createElement(V, Object.assign({ className: i, isActive: Boolean(s), onClick: function () { Object(P.trackEvent)("GUI", "Context action on drawings", "Lock"), e.toggleLockSelectedObject(); }, "data-name": Boolean(s) ? "unlock" : "lock" }, r));
|
|
212
|
-
}
|
|
213
|
-
var N = i("aVjL");
|
|
214
|
-
function j(t) { const { title: e, activeChartWidget: i, className: o } = t; return n.a.createElement(S.a, { className: o, icon: N, title: e, "data-name": "remove", onClick: function () { Object(P.trackEvent)("GUI", "Context action on drawings", "Remove"), i.removeSelectedSources(); } }); }
|
|
215
|
-
var F = i("Iivm"), A = i("8+VR"), D = i("/3z9"), z = i("lxNp"), H = i("82wv"), U = i("IAAr"), G = i("7KDR"), Q = i("ycI/"), q = i("5VQP"), K = i("HZKX"), Y = i("HWhk"), Z = i("9dnG"), $ = i("dmHa");
|
|
216
|
-
function X(t) {
|
|
217
|
-
const { title: e, activeChartWidget: s, isSmallScreen: r, className: l } = t, c = s.model(), d = c.selection().lineDataSources(), [h, u] = Object(o.useState)([]), p = Object(o.useRef)(null), g = Object(o.useMemo)(() => new K.ActionsProvider(s), [s]);
|
|
218
|
-
return n.a.createElement(n.a.Fragment, null, n.a.createElement(Q.a, { keyCode: 27, eventType: "keyup", handler: function () { Object(_.ensureNotNull)(p.current).close(); } }), n.a.createElement(H.a, { className: l, ref: p, arrow: !1, onOpen: r ? void 0 : function () { const t = [new G.Action({ label: Object(a.t)("Visual order"), icon: Z, subItems: m(), name: "visual-order" })], e = function () { const t = [], e = D.isMacKeyboard ? " +" : "", o = d.filter(t => t.cloneable()); o.length > 0 && t.push(new G.Action({ name: "clone", icon: i("+KIV"), shortcutHint: D.humanReadableModifiers(z.Modifiers.Mod) + e + " Drag", label: Object(a.t)("Clone"), onExecute: () => { c.cloneLineTools(o, !1), Object(P.trackEvent)("GUI", "Context action on drawings", "Clone"); } })); const n = d.filter(t => t.copiable()); if (n.length > 0) {
|
|
219
|
-
const i = { name: "copy", label: Object(a.t)("Copy"), shortcutHint: D.humanReadableModifiers(z.Modifiers.Mod) + e + " C", onExecute: () => { s.chartWidgetCollection().clipboard.uiRequestCopy(n); } };
|
|
220
|
-
t.push(new G.Action(i, "Copy"));
|
|
221
|
-
} if (!function () { if (!(null == s ? void 0 : s.isMultipleLayout()))
|
|
222
|
-
return !1; return d.some(t => t.isSynchronizable()); }())
|
|
223
|
-
return t; d.filter(t => !!t.linkKey().value()).length ? t.push(new G.Action({ name: "stop-sync", label: Object(a.t)("Stop syncing"), onExecute: () => { c.unlinkLines && c.unlinkLines(d); } })) : t.push(new G.Action({ name: "sync", label: Object(a.t)("Sync to all charts"), onExecute: () => { c.copyToOtherCharts(d); } })); return t; }(); e.length && t.push(new G.Separator, ...e); t.push(new G.Separator, new G.Action({ label: Object(a.t)("Hide"), icon: $, onExecute: () => { s.hideSelectedObject(); }, name: "hide" })), u(J(t)); }, onClick: r ? function (t) { g.contextMenuActionsForSources(d).then(e => { window.matchMedia(C.a.TabletSmall).matches ? q.ContextMenuManager.createMenu(J(e), { mode: "drawer", "data-name": "more-menu" }).then(e => e.show(t)) : u(J(e)); }); } : void 0, title: e, content: n.a.createElement(F.a, { icon: Y }), "data-name": "more", menuDataName: "more-menu" }, n.a.createElement(U.a, { parentIsOpened: !0, items: h })));
|
|
224
|
-
function m() {
|
|
225
|
-
const t = [], e = c.availableZOrderOperations(d), i = new G.Action({ name: "bring-to-front", label: Object(a.t)("Bring to Front"), onExecute: () => { c.bringToFront(d); }, disabled: 1 === d.length && !e.bringToFrontEnabled }), o = new G.Action({
|
|
226
|
-
name: "send-to-back", label: Object(a.t)("Send to Back"), onExecute: () => { c.sendToBack(d); }, disabled: 1 === d.length && !e.sendToBackEnabled
|
|
227
|
-
}), n = new G.Action({ name: "bring-forward", label: Object(a.t)("Bring Forward"), onExecute: () => { c.bringForward(d); }, disabled: 1 === d.length && !e.bringForwardEnabled }), s = new G.Action({ name: "send-backward", label: Object(a.t)("Send Backward"), onExecute: () => { c.sendBackward(d); }, disabled: 1 === d.length && !e.sendBackwardEnabled });
|
|
228
|
-
return t.push(i, o, n, s), t;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
function J(t) { return A.touch && !window.matchMedia("(pointer:fine)").matches ? t.filter(t => "Copy" !== t.id) : t; }
|
|
232
|
-
var tt = i("972a"), et = i("bQEj"), it = i("UXdH"), ot = i("ZSM+");
|
|
233
|
-
function nt(t) { const { property: e, model: i, title: s, className: r } = t, l = Object(E.a)(e), c = Object(o.useMemo)(() => [new G.Action({ icon: et, label: Object(a.t)("Line"), active: tt.b.Solid === l, onExecute: () => i.setProperty(e, tt.b.Solid, s) }), new G.Action({ icon: it, label: Object(a.t)("Dashed line"), active: tt.b.Dashed === l, onExecute: () => i.setProperty(e, tt.b.Dashed, s) }), new G.Action({ icon: ot, label: Object(a.t)("Dotted line"), active: tt.b.Dotted === l, onExecute: () => i.setProperty(e, tt.b.Dotted, s) })], [i, e, l]); return n.a.createElement(H.a, { className: r, arrow: !1, content: n.a.createElement(F.a, { icon: st(l) }), title: s, "data-name": t["data-name"], menuDataName: t["data-name"] + "-menu" }, n.a.createElement(U.a, { items: c })); }
|
|
234
|
-
function st(t) { switch (t) {
|
|
235
|
-
case tt.b.Solid: return et;
|
|
236
|
-
case tt.b.Dashed: return it;
|
|
237
|
-
case tt.b.Dotted: return ot;
|
|
238
|
-
default: return "";
|
|
239
|
-
} }
|
|
240
|
-
const rt = [10, 11, 12, 14, 16, 20, 24, 28, 32, 40];
|
|
241
|
-
function at(t) { const { property: e, model: i, title: o, className: s } = t, r = Object(E.a)(e), a = rt.map(t => new G.Action({ label: t.toString(), onExecute: () => i.setProperty(e, t, o), active: t === r })); return n.a.createElement(H.a, { arrow: !1, content: r, className: s, title: o, "data-name": t["data-name"], menuDataName: t["data-name"] + "-menu" }, n.a.createElement(U.a, { items: a })); }
|
|
242
|
-
var lt = i("aIyQ"), ct = i.n(lt);
|
|
243
|
-
i("m/4m"), i("ADFN");
|
|
244
|
-
class dt extends y.b {
|
|
245
|
-
constructor(t) { super(dt._prepareOptions(t)), this._onWidgetStateChangedDelegate = new ct.a, this._statedWidgets = [], this._currentPopup = null, this._onWindowClickedListener = this._onWindowClicked.bind(this); }
|
|
246
|
-
show() { super.show(), document.addEventListener("mousedown", this._onWindowClickedListener); }
|
|
247
|
-
hide(t) { super.hide(t), document.removeEventListener("mousedown", this._onWindowClickedListener); }
|
|
248
|
-
destroy() { this._closePopup(), super.destroy(); }
|
|
249
|
-
addGroupedWidget(t, e = {}) { Object(_.assert)(t.states.length > 0 && -1 !== dt._getStateIndexById(t, t.currentStateId), `Argument is invalid (count: ${t.states.length}, state: ${t.currentStateId})`); const i = document.createElement("div"); i.className = "tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip", t.widgetAddClass && i.classList.add(t.widgetAddClass), i.setAttribute("title", t.tooltip); const o = { isEnabled: !0, statedWidget: t, toolbarWidget: i }, n = this._onWidgetClicked.bind(this, o); o.clickListener = n, i.addEventListener("click", n), this._updateWidgetPreview(o), this.addWidget(i, e), this._statedWidgets.push(o); }
|
|
250
|
-
findGroupedWidget(t) { const e = this._statedWidgets.length; for (let i = 0; i < e; ++i) {
|
|
251
|
-
if (this._statedWidgets[i].statedWidget.id === t)
|
|
252
|
-
return i;
|
|
253
|
-
} return -1; }
|
|
254
|
-
removeGroupedWidget(t) { const e = this._statedWidgets.length; for (let i = 0; i < e; ++i) {
|
|
255
|
-
const e = this._statedWidgets[i];
|
|
256
|
-
if (e.statedWidget.id === t)
|
|
257
|
-
return this._isPopupCreatedForWidget(t) && this._closePopup(), void 0 !== e.clickListener && e.toolbarWidget.removeEventListener("click", e.clickListener), this.removeWidget(e.toolbarWidget), this._statedWidgets.splice(i, 1), void this._updatePopupPosition();
|
|
258
|
-
} Object(_.assert)(!1, `Unknown groupId(${t})`); }
|
|
259
|
-
updateGroupedWidget(t, e) { this._closePopup(); const i = this._ensuredGetWidgetDataForId(t); i.statedWidget.currentStateId = e.currentStateId, i.statedWidget.states = e.states, this._updateWidgetPreview(i); }
|
|
260
|
-
setGroupedWidgetEnabled(t, e) { const i = this._ensuredGetWidgetDataForId(t); i.isEnabled = e, i.toolbarWidget.classList.toggle("i-disabled", !e); }
|
|
261
|
-
setGroupedWidgetState(t, e) { const i = this._ensuredGetWidgetDataForId(t); Object(_.assert)(-1 !== dt._getStateIndexById(i.statedWidget, e), `Unknown stateId (${e})`), i.statedWidget.currentStateId = e, this._updateSubWidgetsState(i.statedWidget), this._updateWidgetPreview(i); }
|
|
262
|
-
onWidgetStateChanged() { return this._onWidgetStateChangedDelegate; }
|
|
263
|
-
_onVerticalChanged(t, e) { this._updatePopupPosition(); }
|
|
264
|
-
_ensuredGetWidgetDataForId(t) { for (const e of this._statedWidgets)
|
|
265
|
-
if (e.statedWidget.id === t)
|
|
266
|
-
return e; throw new Error(`Unknown groupId(${t})`); }
|
|
267
|
-
_onWidgetClicked(t, e) { const i = this._currentPopup && this._isPopupCreatedForWidget(t.statedWidget.id); this._closePopup(), !i && t.isEnabled && this._createPopup(t); }
|
|
268
|
-
_createPopup(t) { const e = { createdFor: t.toolbarWidget, element: document.createElement("div"), stateWidgetId: t.statedWidget.id, widgets: [] }; e.element.className += "tv-grouped-floating-toolbar__popup js-popup"; const i = t.statedWidget.states.length; t.statedWidget.states.forEach((o, n) => { const s = this._createSubWidget(t, o), r = this._onSubWidgetClicked.bind(this, t, o.id); s.addEventListener("click", r), e.widgets.push({ clickListener: r, stateWidget: o, widget: s }), s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-" + n), s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-" + (i - n + 1)), o.readonly || e.element.appendChild(s); }), this._currentPopup = e, this._updateSubWidgetsState(t.statedWidget), t.toolbarWidget.classList.add("i-dropped"), this._getWidget().appendChild(this._currentPopup.element), Promise.resolve().then(() => { this._currentPopup && this._currentPopup.element.classList.add("i-opened"); }), this._updatePopupPosition(); }
|
|
269
|
-
_closePopup() { if (this._statedWidgets.forEach(t => { t.toolbarWidget.classList.remove("i-dropped"); }), !this._currentPopup)
|
|
270
|
-
return; const t = this._currentPopup.widgets, e = this._currentPopup.element; this._currentPopup = null, t.forEach(t => { t.widget.removeEventListener("click", t.clickListener); }), e.classList.remove("i-opened"), e.addEventListener("transitionend", t => { t.target === e && this._getWidget().removeChild(e); }); }
|
|
271
|
-
_updateWidgetPreview(t) {
|
|
272
|
-
const e = dt._getStateIndexById(t.statedWidget, t.statedWidget.currentStateId);
|
|
273
|
-
Object(_.assert)(-1 !== e, "Unknown state id: " + t.statedWidget.currentStateId);
|
|
274
|
-
const i = t.statedWidget.states[e].widget.cloneNode(!0);
|
|
275
|
-
t.toolbarWidget.firstChild ? t.toolbarWidget.replaceChild(i, t.toolbarWidget.firstChild) : (t.toolbarWidget.appendChild(i), t.toolbarWidget.appendChild(dt._createCaret()));
|
|
276
|
-
}
|
|
277
|
-
_updateSubWidgetsState(t) { this._currentPopup && this._isPopupCreatedForWidget(t.id) && this._currentPopup.widgets.forEach(e => { e.widget.classList.toggle(dt._activeSubWidgetClass, e.stateWidget.id === t.currentStateId); }); }
|
|
278
|
-
_updatePopupPosition() { if (!this._currentPopup)
|
|
279
|
-
return; const t = this._currentPopup.createdFor, e = this._getWidget().getBoundingClientRect(), i = this._findWrapperForWidget(t); if (!i || !this._currentPopup)
|
|
280
|
-
throw new Error("Toolbar has no wrapper for preview's widget or there is no popup"); const o = i.getBoundingClientRect(), n = this._currentPopup.element.getBoundingClientRect(), s = this._currentPopup.element; if (this.isVertical())
|
|
281
|
-
s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"), s.style.top = o.top - e.top + 1 + "px", s.style.left = "", e.left > window.innerWidth - e.right ? s.classList.add("tv-grouped-floating-toolbar__popup--at-left") : s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");
|
|
282
|
-
else {
|
|
283
|
-
s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");
|
|
284
|
-
let t = 0;
|
|
285
|
-
o.left + n.width > window.innerWidth ? e.left + n.width > window.innerWidth && (t = e.width - n.width) : t = o.left - e.left + 1, s.style.left = t + "px", e.bottom + n.height > window.innerHeight ? s.classList.add("tv-grouped-floating-toolbar__popup--at-top") : (s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"), s.style.top = "");
|
|
286
|
-
} }
|
|
287
|
-
_isPopupCreatedForWidget(t) { return Boolean(this._currentPopup && this._currentPopup.stateWidgetId === t); }
|
|
288
|
-
_createSubWidget(t, e) { const i = document.createElement("div"); return i.className += "tv-grouped-floating-toolbar__sub-widget", t.statedWidget.stateWidgetAddClass && i.classList.add(t.statedWidget.stateWidgetAddClass), i.appendChild(e.widget), i; }
|
|
289
|
-
_onSubWidgetClicked(t, e) { this._closePopup(), t.statedWidget.currentStateId !== e && (this.setGroupedWidgetState(t.statedWidget.id, e), this._onWidgetStateChangedDelegate.fire(t.statedWidget.id, e)); }
|
|
290
|
-
_onWindowClicked(t) { if (this.isVisible() && this._currentPopup && !dt._isEventInElement(t, this._currentPopup.element)) {
|
|
291
|
-
for (let e = 0; e < this._statedWidgets.length; ++e)
|
|
292
|
-
if (dt._isEventInElement(t, this._statedWidgets[e].toolbarWidget))
|
|
293
|
-
return;
|
|
294
|
-
this._closePopup();
|
|
295
|
-
} }
|
|
296
|
-
static _getStateIndexById(t, e) { for (let i = 0; i < t.states.length; ++i)
|
|
297
|
-
if (t.states[i].id === e)
|
|
298
|
-
return i; return -1; }
|
|
299
|
-
static _createCaret() { const t = document.createElement("div"); return t.className = "tv-caret tv-caret--small tv-caret--colored tv-grouped-floating-toolbar__caret", t; }
|
|
300
|
-
static _prepareOptions(t) { return t.addClass ? t.addClass += " tv-grouped-floating-toolbar" : t.addClass = " tv-grouped-floating-toolbar", t; }
|
|
301
|
-
static _isEventInElement(t, e) { return t.target === e || e.contains(t.target); }
|
|
302
|
-
}
|
|
303
|
-
dt._activeSubWidgetClass = "tv-grouped-floating-toolbar__sub-widget--current";
|
|
304
|
-
var ht = i("yMne"), ut = i("GxN8");
|
|
305
|
-
i.d(e, "LineToolPropertiesWidgetBase", (function () { return pt; }));
|
|
306
|
-
class pt {
|
|
307
|
-
constructor(t) {
|
|
308
|
-
this._isDrawingFinished = new d.a(!0), this._currentTool = null, this._updateVisibilityTimeout = null, this._lineWidthsProperty = null, this._lineColorsProperty = null,
|
|
309
|
-
this._currentProperties = null, this._container = null, this._toolbarRendered = !1, this._templatesButton = null, this._propertyButtons = [], this._commonButtons = [], this._handleSourceEdit = t => { p.isDirectionalMovementActive.value() || (t ? this._floatingToolbar.hide(!0) : this._toolbarRendered && this._floatingToolbar.show()); }, this._chartWidgetCollection = t, this._floatingToolbar = new dt({ defaultPosition: { top: ht.b + 15, left: window.innerWidth / 2 }, positionSettingsKey: "properties_toolbar.position", positionStorageType: "device", layout: "horizontal", "data-name": "drawing-toolbar" }), this._container = this._floatingToolbar.getReactWidgetContainer(), p.isToolMovingNow.subscribe(this._handleSourceEdit), p.isToolEditingNow.subscribe(this._handleSourceEdit);
|
|
310
|
-
}
|
|
311
|
-
activeChartWidget() { return this._chartWidgetCollection.activeChartWidget.value(); }
|
|
312
|
-
selectedSources() { return this._chartWidgetCollection.selectedSources.value(); }
|
|
313
|
-
hide() { this._updateVisibilityTimeout && clearTimeout(this._updateVisibilityTimeout), this._updateVisibilityTimeout = setTimeout(() => { Object(u.unsetNewToolProperties)(), this._floatingToolbar.hide(!0), this._isToolbarRendered() && this._unmountToolbar(), this._clearProperties(), this._clearCommonButtons(); }, 0); }
|
|
314
|
-
_clearProperties() { this._clearPropertyButtons(), this._lineWidthsProperty && (this._lineWidthsProperty.destroy(), this._lineWidthsProperty = null), this._lineColorsProperty && (this._lineColorsProperty.destroy(), this._lineColorsProperty = null), this._currentProperties && (this._currentProperties = null); }
|
|
315
|
-
_show() { this._updateVisibilityTimeout && clearTimeout(this._updateVisibilityTimeout), this._updateVisibilityTimeout = setTimeout(() => { this._renderToolbar(), this._floatingToolbar.show(), this._floatingToolbar.checkPosition(); }, 0); }
|
|
316
|
-
_addPropertyButton(t) { this._propertyButtons.push(t), this._renderToolbar(); }
|
|
317
|
-
_addCommonButton(t) { this._commonButtons.push(t), this._renderToolbar(); }
|
|
318
|
-
_addTemplatesButton(t) { this._templatesButton = t; }
|
|
319
|
-
_renderToolbar() { null !== this._container && this.activeChartWidget() && this.activeChartWidget().hasModel() && (r.a.render(n.a.createElement(W, { templateButton: this._templatesButton, propertyButtons: this._propertyButtons, commonButtons: this._commonButtons, isDrawingFinished: this._isDrawingFinished.value(), activeChartWidget: this.activeChartWidget() }), this._container), this._toolbarRendered = !0); }
|
|
320
|
-
_unmountToolbar() { null !== this._container && (r.a.unmountComponentAtNode(this._container), this._toolbarRendered = !1); }
|
|
321
|
-
_clearTemplatesButton() { this._templatesButton = null; }
|
|
322
|
-
_clearPropertyButtons() { this._propertyButtons = []; }
|
|
323
|
-
_clearCommonButtons() { this._commonButtons = []; }
|
|
324
|
-
_isToolbarRendered() { return this._toolbarRendered; }
|
|
325
|
-
_createSettingsButton() { if (this.selectedSources().length > 1)
|
|
326
|
-
return; const t = { component: L, props: { title: Object(a.t)("Settings"), activeChartWidget: this.activeChartWidget() } }; this._addCommonButton(t); }
|
|
327
|
-
_createLockButton() { const t = { component: R, props: { title: "Lock", activeChartWidget: this.activeChartWidget() } }; this._addCommonButton(t); }
|
|
328
|
-
_createRemoveButton() { const t = { component: j, props: { title: Object(a.t)("Remove"), activeChartWidget: this.activeChartWidget() }, showForSmallScreen: !0 }; this._addCommonButton(t); }
|
|
329
|
-
_createDotsButton() { this._addCommonButton({ component: X, props: { title: Object(a.t)("More"), activeChartWidget: this.activeChartWidget() }, showForSmallScreen: !0 }); }
|
|
330
|
-
_createAlertButton() { }
|
|
331
|
-
_createSourceActions() { this._createLockButton(); }
|
|
332
|
-
_createLineStyleButton(t) { const e = this.selectedSources(); if (0 === e.length)
|
|
333
|
-
return !1; const i = e[0]; if (!Object(ut.a)(i))
|
|
334
|
-
return !1; const o = { component: nt, props: { property: i.properties().linestyle || t, title: Object(a.t)("Style"), model: this.activeChartWidget().model(), "data-name": "style" } }; return this._addPropertyButton(o), !0; }
|
|
335
|
-
_createFontSizeButton(t) { const e = this.selectedSources(); if (0 === e.length)
|
|
336
|
-
return !1; const i = e[0]; if (!Object(ut.a)(i))
|
|
337
|
-
return !1; const o = { component: at, props: { property: i.properties().fontsize || t, title: Object(a.t)("Font Size"), model: this.activeChartWidget().model(), "data-name": "font-size" } }; return this._addPropertyButton(o), !0; }
|
|
338
|
-
_createCommonButtons() { this._commonButtons.length && this._clearCommonButtons(), l.enabled("property_pages") && this._createSettingsButton(), this._createSourceActions(), this._createRemoveButton(), this._createDotsButton(); }
|
|
339
|
-
_prepareProperties(t) { const e = this.selectedSources().filter(e => Object(u.isLineTool)(e) && e.properties()[t]); if (!(e.filter(e => e.properties()[t].visible()).length < 1))
|
|
340
|
-
return e.map(e => e.properties()[t]).filter(h.notNull); }
|
|
341
|
-
_createProperty(t, e, i, o) { if (e) {
|
|
342
|
-
const t = this._prepareProperties(i);
|
|
343
|
-
if (!t)
|
|
344
|
-
return;
|
|
345
|
-
const e = this.activeChartWidget().model();
|
|
346
|
-
return this._isWidthProperty(t[0]) ? new v(new g.MultipleLineWidthsProperty(t), e, o) : new w.b(new g.MultipleLineColorsProperty(t), e, o);
|
|
347
|
-
} if (t && t.visible())
|
|
348
|
-
return this._isWidthProperty(t) ? new g.MultipleLineWidthsProperty([t]) : new w.a(new g.MultipleLineColorsProperty([t])); }
|
|
349
|
-
_shouldShowBackgroundProperty(t, e) { return !e || !e.fillBackground || !!e.fillBackground.value(); }
|
|
350
|
-
_isDrawingToolExcludingTweet(t) { return Boolean(null == t ? void 0 : t.toLowerCase().includes("linetool")) && "LineToolTweet" !== t; }
|
|
351
|
-
_isWidthProperty(t) { return t instanceof g.LineToolWidthsProperty; }
|
|
352
|
-
}
|
|
353
|
-
}, "W0/v": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" d="M1.5 11.5l-.7.7a1 1 0 0 0-.3.71v3.59h3.59a1 1 0 0 0 .7-.3l.71-.7m-4-4l9-9m-9 9l2 2m2 2l9-9m-9 9l-2-2m11-7l1.3-1.3a1 1 0 0 0 0-1.4l-2.6-2.6a1 1 0 0 0-1.4 0l-1.3 1.3m4 4l-4-4m-7 11l9-9"/></svg>'; }, X1vi: function (t, e, i) { t.exports = { wrap: "wrap-2EG6_6QR", icon: "icon-2EG6_6QR", colorBg: "colorBg-2EG6_6QR", color: "color-2EG6_6QR", multicolor: "multicolor-2EG6_6QR", white: "white-2EG6_6QR" }; }, Xxuz: function (t, e) {
|
|
354
|
-
t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentcolor" fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5V7.05l.4.09c.9.18 1.73.53 2.46 1.02l.34.23.29-.3.81-.8c.2-.2.52-.2.71 0l.7.7.36-.35-.35.35c.2.2.2.51 0 .7l-.82.82-.29.29.23.34c.49.73.84 1.57 1.02 2.46l.08.4H22.5c.28 0 .5.22.5.5v1a.5.5 0 0 1-.5.5H20.95l-.09.4c-.18.9-.53 1.73-1.02 2.46l-.23.34.3.29.8.81c.2.2.2.52 0 .71l-.7.7a.5.5 0 0 1-.7 0l-.82-.8-.29-.3-.34.23c-.73.49-1.57.84-2.46 1.02l-.4.08V22.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V20.95l-.4-.09a6.96 6.96 0 0 1-2.46-1.02l-.34-.23-.29.3-.81.8.35.36-.35-.35a.5.5 0 0 1-.71 0l-.7-.71a.5.5 0 0 1 0-.7l-.36-.36.35.35.82-.81.29-.29-.23-.34a6.96 6.96 0 0 1-1.02-2.46l-.08-.4H5.5a.5.5 0 0 1-.5-.5v-1c0-.28.22-.5.5-.5H7.05l.09-.4c.18-.9.53-1.73 1.02-2.46l.23-.34-.3-.29-.8-.81a.5.5 0 0 1 0-.71l.7-.7c.2-.2.51-.2.7 0l.82.8.29.3.34-.23a6.96 6.96 0 0 1 2.46-1.02l.4-.08V5.5zm.5-1.5c-.83 0-1.5.67-1.5 1.5v.75c-.73.2-1.43.48-2.06.86l-.54-.53a1.5 1.5 0 0 0-2.12 0l-.7.7a1.5 1.5 0 0 0 0 2.12l.53.54A7.95 7.95 0 0 0 6.25 12H5.5c-.83 0-1.5.67-1.5 1.5v1c0 .83.67 1.5 1.5 1.5h.75c.2.73.48 1.43.86 2.06l-.53.54a1.5 1.5 0 0 0 0 2.12l.7.7a1.5 1.5 0 0 0 2.12 0l.54-.53c.63.38 1.33.67 2.06.86v.75c0 .83.67 1.5 1.5 1.5h1c.83 0 1.5-.67 1.5-1.5v-.75a7.95 7.95 0 0 0 2.06-.86l.54.53a1.5 1.5 0 0 0 2.12 0l.7-.7a1.5 1.5 0 0 0 0-2.12l-.53-.54c.38-.63.67-1.33.86-2.06h.75c.83 0 1.5-.67 1.5-1.5v-1c0-.83-.67-1.5-1.5-1.5h-.75a7.95 7.95 0 0 0-.86-2.06l.53-.54a1.5 1.5 0 0 0 0-2.12l-.7-.7a1.5 1.5 0 0 0-2.12 0l-.54.53A7.95 7.95 0 0 0 16 6.25V5.5c0-.83-.67-1.5-1.5-1.5h-1zM12 14a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm2-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/></svg>';
|
|
355
|
-
}, "ZSM+": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><circle cx="9" cy="14" r="1"/><circle cx="4" cy="14" r="1"/><circle cx="14" cy="14" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="24" cy="14" r="1"/></svg>'; }, ZWNO: function (t, e, i) {
|
|
356
|
-
"use strict";
|
|
357
|
-
function o(t) { let e = 0; return t.isTop && t.isLeft || (e += 1), t.isTop && t.isRight || (e += 2), t.isBottom && t.isLeft || (e += 8), t.isBottom && t.isRight || (e += 4), e; }
|
|
358
|
-
i.d(e, "a", (function () { return o; }));
|
|
359
|
-
}, bQEj: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'; }, dRg2: function (t, e, i) { t.exports = { item: "item-3Te2Sp8a", withIcon: "withIcon-3Te2Sp8a", icon: "icon-3Te2Sp8a", labelRow: "labelRow-3Te2Sp8a", multiWidth: "multiWidth-3Te2Sp8a", buttonWrap: "buttonWrap-3Te2Sp8a", buttonLabel: "buttonLabel-3Te2Sp8a" }; }, gmn6: function (t, e, i) {
|
|
360
|
-
"use strict";
|
|
361
|
-
i.r(e), i.d(e, "FavoriteDrawingToolbar", (function () { return g; }));
|
|
362
|
-
i("YFKU");
|
|
363
|
-
var o = i("0ZwQ"), n = i("b2d7"), s = i("8+VR"), r = i("gWrr"), a = i("7KDR"), l = i("5VQP"), c = i("mMWL"), d = i("MP+M"), h = i("Vdly"), u = i("hY0g"), p = i.n(u);
|
|
364
|
-
i("4QAy");
|
|
365
|
-
class g extends o.b {
|
|
366
|
-
constructor(t) {
|
|
367
|
-
super({ allowSortable: !s.mobiletouch, dragOnlyInsideToolbar: !0, defaultPosition: t, positionSettingsKey: "chart.favoriteDrawingsPosition", positionStorageType: "device" }),
|
|
368
|
-
this._linetoolsWidgets = {}, this._canBeShownValue = new p.a(!1), this._attachHandlers(), this._loadVisibilityState(), this._hideAction = this._createHideToolbarAction();
|
|
369
|
-
}
|
|
370
|
-
show() { this._canBeShownValue.value() && (h.setValue("ChartFavoriteDrawingToolbarWidget.visible", !0), this.isVisible() || this._renderAllLinetools(), super.show()); }
|
|
371
|
-
hide() { h.setValue("ChartFavoriteDrawingToolbarWidget.visible", !1), super.hide(); }
|
|
372
|
-
canBeShown() { return this._canBeShownValue.readonly(); }
|
|
373
|
-
_onFavoriteAdded(t) { this._canBeShownValue.setValue(!0), this.addWidget(this._createLinetoolWidget(t)), this.show(); }
|
|
374
|
-
_onFavoriteRemoved(t) { this.removeWidget(this._linetoolsWidgets[t]), delete this._linetoolsWidgets[t], 0 === n.a.favoritesCount() && (this._canBeShownValue.setValue(!1), this.hide()); }
|
|
375
|
-
_onFavoriteMoved() { this._renderAllLinetools(); }
|
|
376
|
-
_onSelectedLinetoolChanged(t) { Object.keys(this._linetoolsWidgets).forEach(e => { this._linetoolsWidgets[e].classList.toggle("i-active", t === e); }); }
|
|
377
|
-
_createLinetoolWidget(t) { const e = `<span class="tv-favorited-drawings-toolbar__widget ${t === c.tool.value() ? "i-active" : ""}" title="${d.a[t].localizedName}">${d.a[t].icon}</span>`, i = Object(r.b)(e); return i.addEventListener("click", e => { e.preventDefault(), c.tool.value() !== t && c.tool.setValue(t); }), this._linetoolsWidgets[t] = i, i; }
|
|
378
|
-
_renderAllLinetools() { this._linetoolsWidgets = {}, this.removeWidgets(), n.a.favorites().filter(t => d.a[t]).forEach(t => { this.addWidget(this._createLinetoolWidget(t)); }); }
|
|
379
|
-
_attachHandlers() { n.a.favoriteAdded.subscribe(this, this._onFavoriteAdded), n.a.favoriteRemoved.subscribe(this, this._onFavoriteRemoved), n.a.favoriteMoved.subscribe(this, this._onFavoriteMoved), n.a.favoritesSynced.subscribe(null, () => { this._loadVisibilityState(), this._renderAllLinetools(); }), this.onWidgetsReordered().subscribe(this, (t, e) => { if (n.a.favoriteMoved.unsubscribe(this, this._onFavoriteMoved), !n.a.moveFavorite(n.a.favorite(t), e))
|
|
380
|
-
throw new Error("Something went wrong"); n.a.favoriteMoved.subscribe(this, this._onFavoriteMoved); }), this.onContextMenu(t => { t.preventDefault(), l.ContextMenuManager.createMenu([this._hideAction]).then(e => { e.show(t); }); }), c.tool.subscribe(this._onSelectedLinetoolChanged.bind(this)); }
|
|
381
|
-
_createHideToolbarAction() { return new a.Action({ label: window.t("Hide Favorite Drawing Tools Toolbar"), onExecute: () => { this.hide(); } }); }
|
|
382
|
-
_loadVisibilityState() { const t = n.a.favoritesCount() > 0; this._canBeShownValue.setValue(t); h.getBool("ChartFavoriteDrawingToolbarWidget.visible", !0) && t ? this.show() : this.hide(); }
|
|
383
|
-
}
|
|
384
|
-
}, "m/4m": function (t, e, i) { }, mQbF: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 15" width="13" height="15" fill="none"><path stroke="currentColor" d="M4 14.5h2.5m2.5 0H6.5m0 0V.5m0 0h-5a1 1 0 0 0-1 1V4m6-3.5h5a1 1 0 0 1 1 1V4"/></svg>'; }, myiL: function (t, e, i) {
|
|
385
|
-
"use strict";
|
|
386
|
-
i.r(e), i.d(e, "LineWidthButton", (function () { return f; }));
|
|
387
|
-
var o = i("q1tI"), n = i.n(o), s = i("TSYQ"), r = i("Eyy1"), a = i("Iivm"), l = i("82wv"), c = i("5hRh"), d = i("N5tr"), h = i("nPPD"), u = i("O5Oz"), p = i("xnr+"), g = i("n3oB"), _ = i("2F1E"), m = i("Lnv9"), b = i("dRg2");
|
|
388
|
-
const v = Object(h.a)(d.a, b), w = [{ value: 1, icon: u }, { value: 2, icon: p }, { value: 3, icon: g }, { value: 4, icon: _ }];
|
|
389
|
-
function f(t) { const { multipleProperty: e, title: i, model: o, className: h, isSmallScreen: u } = t, p = Object(c.a)(Object(r.ensureDefined)(e)), g = "mixed" === p || !p, _ = function (t) { const e = w.find(e => e.value === t); if (!e)
|
|
390
|
-
return m; return e.icon; }(p); return n.a.createElement(l.a, { className: h, arrow: !1, title: i, "data-name": t["data-name"], menuDataName: t["data-name"] + "-menu", content: n.a.createElement("div", null, g ? n.a.createElement("div", { className: b.multiWidth }, n.a.createElement(a.a, { icon: m })) : n.a.createElement("div", { className: b.buttonWrap }, !u && n.a.createElement(a.a, { icon: _ }), n.a.createElement("div", { className: s(!u && b.buttonLabel) }, p + "px"))) }, w.map(({ value: t, icon: e }) => n.a.createElement(d.b, { key: t, theme: v, label: t + "px", icon: e, isActive: t === p, onClick: f, onClickArg: t }))); function f(t) { t && e && (o.beginUndoMacro(i), e.setValue(t, void 0, { applyValue: (t, e) => { o.setProperty(t, e, i); } }), o.endUndoMacro()); } }
|
|
391
|
-
}, n3oB: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 3" width="18" height="3"><rect width="18" height="3" fill="currentColor" rx="1.5"/></svg>'; }, "p0W+": function (t, e, i) {
|
|
392
|
-
"use strict";
|
|
393
|
-
i.d(e, "a", (function () { return a; }));
|
|
394
|
-
var o = i("q1tI"), n = i("TSYQ"), s = i("tU7i"), r = i("EvtC");
|
|
395
|
-
const a = o.forwardRef((t, e) => { const { className: i } = t, a = __rest(t, ["className"]); return o.createElement(s.b, Object.assign(Object.assign({}, a), { ref: e, className: n(i, r.button) })); });
|
|
396
|
-
}, qAO1: function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="currentColor"><rect width="2" height="2" rx="1"/><rect width="2" height="2" rx="1" y="5"/><rect width="2" height="2" rx="1" y="10"/><rect width="2" height="2" rx="1" x="6"/><rect width="2" height="2" rx="1" x="6" y="5"/><rect width="2" height="2" rx="1" x="6" y="10"/></svg>'; }, rzV7: function (t, e, i) {
|
|
397
|
-
"use strict";
|
|
398
|
-
var o = Object.prototype.hasOwnProperty;
|
|
399
|
-
function n(t, e) { return t === e ? 0 !== t || 0 !== e || 1 / t == 1 / e : t != t && e != e; }
|
|
400
|
-
t.exports = function (t, e) { if (n(t, e))
|
|
401
|
-
return !0; if ("object" != typeof t || null === t || "object" != typeof e || null === e)
|
|
402
|
-
return !1; var i = Object.keys(t), s = Object.keys(e); if (i.length !== s.length)
|
|
403
|
-
return !1; for (var r = 0; r < i.length; r++)
|
|
404
|
-
if (!o.call(e, i[r]) || !n(t[i[r]], e[i[r]]))
|
|
405
|
-
return !1; return !0; };
|
|
406
|
-
}, tPkB: function (t, e, i) {
|
|
407
|
-
"use strict";
|
|
408
|
-
var o = i("YFKU").t, n = i("mMWL"), s = i("Ve4Q").LineToolPropertiesWidgetBase, r = i("e92V").isLineDrawnWithPressedButton, a = i("CW80").isLineTool;
|
|
409
|
-
const l = i("IhRv").ColorPickerButton, c = i("myiL").LineWidthButton;
|
|
410
|
-
i("CW80").setNewToolProperties;
|
|
411
|
-
var d = i("W0/v"), h = i("0fuu"), u = i("mQbF"), p = window.t("Color");
|
|
412
|
-
class g extends s {
|
|
413
|
-
constructor(t) { super(t), this._hasAlertWathcedValue = null, this._templatesButton = null, this.attachHandlers(); }
|
|
414
|
-
attachHandlers() { n.tool.subscribe(this.onToolChanged.bind(this), { callWithLast: !0 }), n.iconTool.subscribe(this.onIconToolChanged.bind(this)), this._chartWidgetCollection.selectedSources.subscribe(this.onSourceChanged.bind(this)); }
|
|
415
|
-
onIconToolChanged() { this.onToolChanged(n.tool.value()); }
|
|
416
|
-
onToolChanged(t, e) {
|
|
417
|
-
this._currentTool = t;
|
|
418
|
-
const i = this.selectedSources();
|
|
419
|
-
this._isDrawingToolExcludingTweet(t) ? (this._isDrawingFinished.setValue(!1), this._updateVisibility()) : i && i.length ? (i.length > 1 && this._isDrawingFinished.setValue(!0),
|
|
420
|
-
this.onSourceChanged(this.selectedSources())) : this.hide();
|
|
421
|
-
}
|
|
422
|
-
findSourceOnWidget(t) { for (var e = 0; e < this.activeChartWidget().model().panes().length; e++)
|
|
423
|
-
for (var i = this.activeChartWidget().model().panes()[e].sourcesByGroup().all(), o = 0; o < i.length; o++)
|
|
424
|
-
if (i[o] === t)
|
|
425
|
-
return i[o]; }
|
|
426
|
-
onSourceChanged(t) { if (this._hasAlertWathcedValue && (this._hasAlertWathcedValue.destroy(), this._hasAlertWathcedValue = null), t && t.length && (1 !== t.length || a(t[0])))
|
|
427
|
-
if (this._createCommonButtons(), 1 === t.length) {
|
|
428
|
-
var e = t[0];
|
|
429
|
-
e.isAvailableInFloatingWidget() && this.findSourceOnWidget(e) ? (!e.userEditEnabled() || !r(e.toolname) && this.activeChartWidget().model().lineBeingCreated() || (this._isDrawingFinished.setValue(!0), e.canHasAlert() && (this._hasAlertWathcedValue = e.hasAlert.spawn())), this.showPropertiesOf(e.toolname, e.properties(), !0), this.showTemplatesOf({ source: e }), this._toolbarVisible = !0, this._updateVisibility()) : this.hide();
|
|
430
|
-
}
|
|
431
|
-
else
|
|
432
|
-
this._clearProperties(), this._templatesButton && (this._clearTemplatesButton(), this._templatesButton = null), this._updateVisibility(), this._createWidthsButton(void 0, !0), this._createColorsButton(void 0, !0), this._createBackgroundsButton(void 0, !0), this._createTextColorsButton(void 0, !0);
|
|
433
|
-
else
|
|
434
|
-
this.hide(); }
|
|
435
|
-
_createWidthsButton(t, e) { if (this._lineWidthsProperty && (this._lineWidthsProperty.destroy(), this._lineWidthsProperty = null), this._lineWidthsProperty = this._createProperty(t, e, "linesWidths", "Set Line tool(s) line width"), !this._lineWidthsProperty)
|
|
436
|
-
return !0; var i = window.t("Line tool width"); e && (1 !== this.selectedSources().filter((function (t) { return a(t) && t.properties().linesWidths; })).length && (i = window.t("Line tool widths"))); return this._addPropertyButton({ component: c, props: { title: i, multipleProperty: this._lineWidthsProperty, model: this.activeChartWidget().model(), "data-name": "line-tool-width" } }), !0; }
|
|
437
|
-
_createColorsButton(t, e) { return this._lineColorsProperty && (this._lineColorsProperty.destroy(), this._lineColorsProperty = null), this._lineColorsProperty = this._createProperty(t, e, "linesColors", "Set Line tool(s) color"), !this._lineColorsProperty || (this._addPropertyButton({ component: l, props: { icon: d, title: window.t("Line tool colors"), property: this._lineColorsProperty, model: this.activeChartWidget().model(), "data-name": "line-tool-color" } }), !0); }
|
|
438
|
-
_createBackgroundsButton(t, e) { return this._backgroundsProperty && (this._backgroundsProperty.destroy(), this._backgroundsProperty = null), this._backgroundsProperty = this._createProperty(t, e, "backgroundsColors", "Set Line background(s) color"), !this._backgroundsProperty || (this._addPropertyButton({ component: l, props: { icon: h, title: window.t("Line tool backgrounds"), property: this._backgroundsProperty, model: this.activeChartWidget().model(), "data-name": "background-color" } }), !0); }
|
|
439
|
-
_createTextColorsButton(t, e) {
|
|
440
|
-
return this._textColorsProperty && (this._textColorsProperty.destroy(), this._textColorsProperty = null), this._textColorsProperty = this._createProperty(t, e, "textsColors", "Set Line tool(s) text color"), !this._textColorsProperty || (this._addPropertyButton({ component: l, props: { icon: u, title: window.t("Line tool text colors"), property: this._textColorsProperty,
|
|
441
|
-
model: this.activeChartWidget().model(), "data-name": "text-color" } }), !0);
|
|
442
|
-
}
|
|
443
|
-
showTemplatesOf(t) { }
|
|
444
|
-
templatesList() { return this._templatesList; }
|
|
445
|
-
_getPossibleProperty(t) { for (var e = [], i = this._defaultToolProperties(), o = 0; o < i.length; o++) {
|
|
446
|
-
var n = i[o];
|
|
447
|
-
n.name in t && e.push(n);
|
|
448
|
-
} return e; }
|
|
449
|
-
showPropertiesOf(t, e, i) { this._toolExceptionCases || (this._toolExceptionCases = this._createToolExceptionCases()); var o = this._toolExceptionCases[t] || this._getPossibleProperty(e); if (this._clearProperties(), this._propertiesVisible = !1, o.length) {
|
|
450
|
-
for (var n = {}, s = 0; s < o.length; s++) {
|
|
451
|
-
for (var r = o[s], a = e, c = r.name.split("."), d = 0; d < c.length; ++d)
|
|
452
|
-
a = a && a[c[d]];
|
|
453
|
-
var h = r.showIf;
|
|
454
|
-
if ("function" != typeof h || h(a, e)) {
|
|
455
|
-
var u = r.factory;
|
|
456
|
-
if (u && u.call(this, a, i))
|
|
457
|
-
continue;
|
|
458
|
-
if (!a)
|
|
459
|
-
continue;
|
|
460
|
-
if (this._propertiesVisible = !0, "combobox" !== r.inputType) {
|
|
461
|
-
const t = { component: l, props: { icon: r.iconSvgCode, title: r.title, "data-name": r.dataName, property: a, model: this.activeChartWidget().model() } };
|
|
462
|
-
this._addPropertyButton(t);
|
|
463
|
-
continue;
|
|
464
|
-
}
|
|
465
|
-
n[r.name] = a;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
this._currentProperties = n;
|
|
469
|
-
} }
|
|
470
|
-
_updateVisibility() { this._isDrawingFinished.value() && (this._toolbarVisible || this._propertiesVisible) ? this._show() : this.hide(); }
|
|
471
|
-
refresh() { this.onSourceChanged(this.selectedSources()); }
|
|
472
|
-
_defaultToolProperties() { return [{ name: "linesColors", inputType: "colorPicker", iconSvgCode: d, title: p, factory: g.prototype._createColorsButton, dataName: "line-tool-color" }, { name: "backgroundsColors", inputType: "colorPicker", iconSvgCode: h, title: o("Background Color"), factory: g.prototype._createBackgroundsButton, dataName: "background-color", showIf: this._shouldShowBackgroundProperty }, { name: "textsColors", title: o("Text color"), inputType: "colorPicker", iconSvgCode: u, factory: g.prototype._createTextColorsButton, dataName: "text-color" }, { name: "linesWidths", inputType: "combobox", factory: g.prototype._createWidthsButton }, { name: "linestyle", title: o("Style"), inputType: "combobox", factory: g.prototype._createLineStyleButton }]; }
|
|
473
|
-
_riskPropertiesExceptionCases() { return [{ name: "textcolor", title: o("Text color"), inputType: "colorPicker", iconSvgCode: u, dataName: "text-color" }, { name: "profitBackground", title: o("Profit Background Color"), inputType: "colorPicker", iconSvgCode: h, dataName: "background-color" }, { name: "stopBackground", title: o("Stop Background Color"), inputType: "colorPicker", iconSvgCode: h, dataName: "background-color" }]; }
|
|
474
|
-
_rangeExceptionCases() { return [{ name: "linecolor", inputType: "colorPicker", iconSvgCode: d, title: p, dataName: "line-tool-color" }, { name: "backgroundColor", inputType: "colorPicker", iconSvgCode: h, title: o("Background Color"), dataName: "background-color", showIf: this._shouldShowBackgroundProperty }, { name: "linesWidths", inputType: "combobox", factory: g.prototype._createWidthsButton }]; }
|
|
475
|
-
_brushPropertiesExceptionCase() { return [{ name: "linesColors", inputType: "colorPicker", iconSvgCode: d, title: o("Color"), factory: g.prototype._createColorsButton, dataName: "line-tool-color" }, { name: "backgroundsColors", inputType: "colorPicker", iconSvgCode: h, title: o("Background Color"), dataName: "background-color", factory: g.prototype._createBackgroundsButton }, { name: "linesWidths", inputType: "combobox", factory: g.prototype._createWidthsButton }]; }
|
|
476
|
-
_bezierPropertiesExceptionCases() { return [{ name: "linesColors", inputType: "colorPicker", iconSvgCode: d, title: o("Color"), factory: g.prototype._createColorsButton, dataName: "line-tool-color" }, { name: "backgroundsColors", inputType: "colorPicker", iconSvgCode: h, dataName: "background-color", title: o("Background Color"), factory: g.prototype._createBackgroundsButton, showIf: this._shouldShowBackgroundProperty }, { name: "linesWidths", inputType: "combobox", factory: g.prototype._createWidthsButton }, { name: "linestyle", title: o("Style"), inputType: "combobox", factory: g.prototype._createLineStyleButton }]; }
|
|
477
|
-
_textPropertiesExceptionCases() { return [{ name: "color", title: o("Text color"), inputType: "colorPicker", iconSvgCode: u, dataName: "text-color" }, { name: "backgroundColor", title: o("Background Color"), inputType: "colorPicker", iconSvgCode: h, dataName: "background-color", showIf: this._shouldShowBackgroundProperty }, { name: "fontsize", title: o("Font Size"), inputType: "combobox", factory: g.prototype._createFontSizeButton }]; }
|
|
478
|
-
_notePropertiesExceptionCases() { return [{ name: "markerColor", title: o("Marker Color"), inputType: "colorPicker", iconSvgCode: d, dataName: "line-tool-color" }, { name: "textColor", title: o("Text color"), inputType: "colorPicker", iconSvgCode: u, dataName: "text-color" }, { name: "fontSize", title: o("Font Size"), inputType: "combobox", factory: g.prototype._createFontSizeButton }]; }
|
|
479
|
-
_createToolExceptionCases() { return { LineToolRegressionTrend: [], LineToolBrush: g.prototype._brushPropertiesExceptionCase(), LineToolBezierQuadro: g.prototype._bezierPropertiesExceptionCases(), LineToolBezierCubic: g.prototype._bezierPropertiesExceptionCases(), LineToolText: g.prototype._textPropertiesExceptionCases(), LineToolTextAbsolute: g.prototype._textPropertiesExceptionCases(), LineToolBalloon: g.prototype._textPropertiesExceptionCases(), LineToolCallout: g.prototype._textPropertiesExceptionCases(), LineToolPriceLabel: g.prototype._textPropertiesExceptionCases(), LineToolDateRange: g.prototype._rangeExceptionCases(), LineToolPriceRange: g.prototype._rangeExceptionCases(), LineToolDateAndPriceRange: g.prototype._rangeExceptionCases(), LineToolNote: g.prototype._notePropertiesExceptionCases(), LineToolNoteAbsolute: g.prototype._notePropertiesExceptionCases(), LineToolRiskRewardLong: g.prototype._riskPropertiesExceptionCases(), LineToolRiskRewardShort: g.prototype._riskPropertiesExceptionCases(), LineToolBarsPattern: [{ name: "color", title: p, inputType: "colorPicker", iconSvgCode: h, dataName: "background-color" }], LineToolProjection: [{ name: "color1", title: o("Background color 1"), inputType: "colorPicker", iconSvgCode: h, dataName: "background-color" }, { name: "color2", title: o("Background color 2"), inputType: "colorPicker", iconSvgCode: h, dataName: "background-color" }, { name: "linesWidths", inputType: "combobox", factory: g.prototype._createWidthsButton }], LineToolSignpost: [{ name: "fontSize", title: o("Font Size"), inputType: "combobox" }, { name: "linesColors", inputType: "colorPicker", iconSvgCode: h, dataName: "background-color", title: p, factory: g.prototype._createBackgroundsButton, showIf: function (t, e) { return e && e.showImage.value(); } }] }; }
|
|
480
|
-
}
|
|
481
|
-
t.exports = g;
|
|
482
|
-
}, turx: function (t, e, i) {
|
|
483
|
-
"use strict";
|
|
484
|
-
i.d(e, "b", (function () { return a; })), i.d(e, "a", (function () { return l; }));
|
|
485
|
-
var o = i("Eyy1"), n = i("tc+8"), s = i.n(n);
|
|
486
|
-
class r extends s.a {
|
|
487
|
-
constructor(t) { super(), this._listenersMappers = [], this._isProcess = !1, this._baseProperty = t; }
|
|
488
|
-
destroy() { this._baseProperty.destroy(); }
|
|
489
|
-
value() { const t = this._baseProperty.value(); return "mixed" === t ? "" : t; }
|
|
490
|
-
visible() { return this._baseProperty.visible(); }
|
|
491
|
-
setValue(t) { this._isProcess = !0, this._baseProperty.setValue("" === t ? "mixed" : t, void 0, { applyValue: this._applyValue.bind(this) }), this._isProcess = !1, this._listenersMappers.forEach(t => { t.method.call(t.obj, this); }); }
|
|
492
|
-
subscribe(t, e) { const i = i => { this._isProcess || e.call(t, this); }, o = { obj: t, method: e, callback: i }; this._listenersMappers.push(o), this._baseProperty.subscribe(t, i); }
|
|
493
|
-
unsubscribe(t, e) { var i; const n = Object(o.ensureDefined)(null === (i = this._listenersMappers.find(i => i.obj === t && i.method === e)) || void 0 === i ? void 0 : i.callback); this._baseProperty.unsubscribe(t, n); }
|
|
494
|
-
unsubscribeAll(t) { this._baseProperty.unsubscribeAll(t); }
|
|
495
|
-
}
|
|
496
|
-
class a extends r {
|
|
497
|
-
constructor(t, e, i) { super(t), this._undoModel = e, this._undoText = i; }
|
|
498
|
-
_applyValue(t, e) { this._undoModel.setProperty(t, e, this._undoText); }
|
|
499
|
-
}
|
|
500
|
-
class l extends r {
|
|
501
|
-
_applyValue(t, e) { t.setValue(e); }
|
|
502
|
-
}
|
|
503
|
-
}, ucyy: function (t, e, i) { t.exports = { button: "button-1gEXpG61" }; }, wwkJ: function (t, e, i) {
|
|
504
|
-
"use strict";
|
|
505
|
-
i.d(e, "a", (function () { return n; }));
|
|
506
|
-
var o = i("q1tI");
|
|
507
|
-
const n = i.n(o).a.createContext({ isGrouped: !1, cellState: { isTop: !0, isRight: !0, isBottom: !0, isLeft: !0 } });
|
|
508
|
-
}, "xnr+": function (t, e) { t.exports = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 2" width="18" height="2"><rect width="18" height="2" fill="currentColor" rx="1"/></svg>'; } }]);
|