-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path__init__.py
More file actions
74 lines (61 loc) · 2.07 KB
/
Copy path__init__.py
File metadata and controls
74 lines (61 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from __future__ import print_function as _
import os as _os
import sys as _sys
import json
import dash as _dash
# noinspection PyUnresolvedReferences
from ._imports_ import *
from ._imports_ import __all__
from dash_ag_grid import themes
if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
print('Dash was not successfully imported. '
'Make sure you don\'t have a file '
'named \n"dash.py" in your current directory.', file=_sys.stderr)
_sys.exit(1)
from ._version import __version__, grid_version, get_package_info
package = get_package_info()
package_name = package['name'].replace(' ', '_').replace('-', '_')
_current_path = _os.path.dirname(_os.path.abspath(__file__))
_this_module = _sys.modules[__name__]
_unpkg = f'https://unpkg.com/dash-ag-grid@{__version__}/dash_ag_grid/'
_js_dist = [
{
'relative_package_path': 'dash_ag_grid.min.js',
'external_url': f'{_unpkg}dash_ag_grid.min.js',
'namespace': package_name
},
{
'relative_package_path': 'dash_ag_grid.min.js.map',
'namespace': package_name,
'external_url': f'{_unpkg}dash_ag_grid.min.js.map',
'dynamic': True
},
{
'relative_package_path': 'async-community.js',
'namespace': package_name,
'external_url': f'{_unpkg}async-community.js',
'async': True
},
{
'relative_package_path': 'async-community.js.map',
'namespace': package_name,
'external_url': f'{_unpkg}async-community.js.map',
'dynamic': True
},
{
'relative_package_path': 'async-enterprise.js',
'namespace': package_name,
'external_url': f'{_unpkg}async-enterprise.js',
'async': True
},
{
'relative_package_path': 'async-enterprise.js.map',
'namespace': package_name,
'external_url': f'{_unpkg}async-enterprise.js.map',
'dynamic': True
},
]
_css_dist = []
for _component in __all__:
setattr(locals()[_component], '_js_dist', _js_dist)
setattr(locals()[_component], '_css_dist', _css_dist)