instaui 0.1.18__py2.py3-none-any.whl → 0.2.0__py2.py3-none-any.whl
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.
- instaui/components/component.py +4 -7
- instaui/components/element.py +0 -16
- instaui/components/html/button.py +2 -2
- instaui/components/html/input.py +2 -2
- instaui/components/html/select.py +3 -2
- instaui/components/html/textarea.py +2 -2
- instaui/components/match.py +4 -6
- instaui/components/mixins.py +12 -0
- instaui/components/vfor.py +2 -4
- instaui/components/vif.py +2 -4
- instaui/event/js_event.py +0 -2
- instaui/event/vue_event.py +0 -3
- instaui/event/web_event.py +25 -5
- instaui/fastapi_server/middlewares.py +12 -0
- instaui/fastapi_server/server.py +5 -1
- instaui/js/fn.py +5 -1
- instaui/pre_setup.py +45 -0
- instaui/runtime/_app.py +7 -3
- instaui/runtime/scope.py +74 -33
- instaui/spa_router/_route_model.py +5 -6
- instaui/static/insta-ui.esm-browser.prod.js +1523 -1504
- instaui/static/insta-ui.js.map +1 -1
- instaui/static/templates/web.html +5 -3
- instaui/static/templates/webview.html +4 -2
- instaui/static/templates/zero.html +4 -2
- instaui/template/web_template.py +1 -0
- instaui/template/webview_template.py +1 -0
- instaui/template/zero_template.py +1 -0
- instaui/ui/__init__.py +2 -0
- instaui/ui/__init__.pyi +2 -0
- instaui/ui_functions/server.py +10 -1
- instaui/vars/data.py +5 -7
- instaui/vars/js_computed.py +6 -22
- instaui/vars/mixin_types/element_binding.py +1 -13
- instaui/vars/ref.py +5 -7
- instaui/vars/vue_computed.py +6 -21
- instaui/vars/web_computed.py +6 -23
- instaui/watch/js_watch.py +0 -2
- instaui/watch/web_watch.py +11 -2
- instaui/webview/resource.py +2 -0
- instaui/zero/func.py +2 -0
- {instaui-0.1.18.dist-info → instaui-0.2.0.dist-info}/METADATA +4 -3
- {instaui-0.1.18.dist-info → instaui-0.2.0.dist-info}/RECORD +45 -44
- instaui/webview/func.py +0 -114
- {instaui-0.1.18.dist-info → instaui-0.2.0.dist-info}/WHEEL +0 -0
- {instaui-0.1.18.dist-info → instaui-0.2.0.dist-info}/licenses/LICENSE +0 -0
@@ -5,6 +5,7 @@ instaui/html_tools.py,sha256=VJDnOdPPDzXi_u6bMj5_fqdFjGXG3-HgXQsvD0gfauc,2577
|
|
5
5
|
instaui/inject.py,sha256=NeTcsxoPdo12kZCvGjFU9NNHsVWnsPJfIcNY5_sPGYc,727
|
6
6
|
instaui/launch_collector.py,sha256=_YmF3hsNWe-ZxMp_amqUBHkhB6fOuTPfX16BVwn25xg,1731
|
7
7
|
instaui/page_info.py,sha256=aJtfLp2h05tCuLzxk2pZ6a9ztyxSdI-g3NBRxbqpS6E,269
|
8
|
+
instaui/pre_setup.py,sha256=oSwbkOkxkjLS1qP7mU4nY4S7UPXPk0Tdik2tY6WGnZY,1350
|
8
9
|
instaui/skip.py,sha256=uqhqusgeChVoivKFMoZd-XePYrlSoLvUzRZDBcUgFmA,149
|
9
10
|
instaui/version.py,sha256=to8l16EjNe4jmzK316s5ZIotjv554tqF0VfwA1tBhQk,87
|
10
11
|
instaui/_helper/observable_helper.py,sha256=U30PmA8jZ9q48GI_FMNPRYUTKNdl4SsMTAFoq94eRFs,1447
|
@@ -105,29 +106,30 @@ instaui/arco/static/instaui-arco.js,sha256=PktbvZE6yids2NyfSKo81g--fCo-AiNEdOgvv
|
|
105
106
|
instaui/common/jsonable.py,sha256=efzn_IvfrsaNKjc3B3UzshoMvsqSsB-jnD2Aia8YMYM,902
|
106
107
|
instaui/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
107
108
|
instaui/components/column.py,sha256=t_kDAelb-5_aqx4hv19sOm8zcQpRmn-slTMcwZfMOLk,848
|
108
|
-
instaui/components/component.py,sha256
|
109
|
+
instaui/components/component.py,sha256=-wRHA159i6LYC3Lw3wOZRUpaqbKn9WPw0r8wljyaZgI,1250
|
109
110
|
instaui/components/content.py,sha256=f6dm0GukYJk4RRNJzuvOGqBrStLWkJQbLkV7M5fJ63k,1094
|
110
111
|
instaui/components/directive.py,sha256=bHSOWXNhzWRVNqLXwhc_hY3R3g-JAQ5DWIqpZkI6_wI,1411
|
111
|
-
instaui/components/element.py,sha256=
|
112
|
+
instaui/components/element.py,sha256=XS87h5oWYcye1S2omEDw6uPj4i-RREEI7gIJNDgUbOg,17122
|
112
113
|
instaui/components/grid.py,sha256=h9Lzxqiw4HB-8VG2JGHVz-KGn4bHTtsibtUb8UCgHO4,7529
|
113
114
|
instaui/components/label.py,sha256=Fp7malMB2i6MjJjZnxdIl2tg6rb33-1PdgxEhGecoTM,118
|
114
|
-
instaui/components/match.py,sha256
|
115
|
+
instaui/components/match.py,sha256=rQ74OV9V5rJvK8taHfpD-VDPXF0raxvNKjD_5nWnjXM,2778
|
116
|
+
instaui/components/mixins.py,sha256=4AMZU_9uf9daV0bKS28opZRRM5_Bp89yNLQ_dhpDCTo,350
|
115
117
|
instaui/components/row.py,sha256=c0dxJwt955EF7PXlrFpqIoQNZ59tJm-UvZlx_zjeuBg,570
|
116
118
|
instaui/components/slot.py,sha256=RT0eU7wH7ffFDkl5ucfrNXB1nbsKDq688Hp920TZaoo,2287
|
117
119
|
instaui/components/transition_group.py,sha256=H9zx9NTlCoQnBArWfmxmh7CMKb5hZn8vKrFe4OFxPrE,201
|
118
120
|
instaui/components/value_element.py,sha256=wRIAaR3_Cq9qLNJw2KPhWt7dJmclj1mrttzlGpb01Y0,1412
|
119
|
-
instaui/components/vfor.py,sha256=
|
120
|
-
instaui/components/vif.py,sha256=
|
121
|
+
instaui/components/vfor.py,sha256=uUaePBf-Z2utV0C0j0KuMe5eebAUA6vG-2q77qOZ_UI,4033
|
122
|
+
instaui/components/vif.py,sha256=vn-tZ_ejVm5S5NjR1s9HPVCRXKPbi-tAzUBkz4PTdxs,1237
|
121
123
|
instaui/components/html/__init__.py,sha256=B1BDIbeHexH3dEg1Gwx3HwZgR0JnxWhNcNlVUp5VeE4,1137
|
122
124
|
instaui/components/html/_mixins.py,sha256=5dcSM9h1PswIKL6_eiqUxqW4H2OCuyNeCuRZq3gDGOc,876
|
123
125
|
instaui/components/html/_preset.py,sha256=c5rTj3r8W7UP0UHFLUW-ZSPedIa-gzrsU1goi60l20Q,94
|
124
|
-
instaui/components/html/button.py,sha256=
|
126
|
+
instaui/components/html/button.py,sha256=fNxAAjn5Wyf9PWYs7imFO7YekdTAyl7Fq5ct9tTchy4,892
|
125
127
|
instaui/components/html/checkbox.py,sha256=29BTpovcJvrN2uQY280dn8KTyspwBBvLeKSxUv3CxjU,1066
|
126
128
|
instaui/components/html/date.py,sha256=MOodsG83JDtb_8l26QWRb7taiPHUAJI6wjt_AjSAJT0,833
|
127
129
|
instaui/components/html/div.py,sha256=fF9rBlOBIl-tDvml1DtJK9lFfFY0SBcP5bn36pluis4,167
|
128
130
|
instaui/components/html/form.py,sha256=C-QVtwX18zH8ZuVK93weGwlRWfSyTGWY_CYIdGcaslU,169
|
129
131
|
instaui/components/html/heading.py,sha256=nYGfUIJFNjeVV_RRwCRuEMblWAEZT-CjNX8eAmtbaaU,1260
|
130
|
-
instaui/components/html/input.py,sha256=
|
132
|
+
instaui/components/html/input.py,sha256=2rQtXptHL2X7i4Ppyi-OnSs7NLiLOKY96xSQd8SEBAQ,966
|
131
133
|
instaui/components/html/label.py,sha256=iJPI5HzTulEs-38hpNiSi_D4klpVx0WexsBtKGUcSC0,557
|
132
134
|
instaui/components/html/li.py,sha256=2IS8eudUX4McHjyxT1SOu91xviC2D1NNdYKLjznZ-IA,416
|
133
135
|
instaui/components/html/link.py,sha256=eNC2f-twFZUhw_rL-Ggff2Lo8NRU33oF8CfWW_9-ktI,670
|
@@ -135,10 +137,10 @@ instaui/components/html/number.py,sha256=Y2oIzTMHKWMWpufG55tFz0npEoEFvLhTWpZbMJ8
|
|
135
137
|
instaui/components/html/paragraph.py,sha256=TNMtI9dyQb6hYKE5vGAsSXiOiEqkx7BM6CEoJrg6nz8,914
|
136
138
|
instaui/components/html/radio.py,sha256=yZxwLnzWhDMn8D_z98aVuXpQR-FO6q8zeUa80Ut8wig,1013
|
137
139
|
instaui/components/html/range.py,sha256=cLGoo3QaARG9YDnh6g3UYtc1yueI5dfMa9-4e-feSn4,1644
|
138
|
-
instaui/components/html/select.py,sha256=
|
140
|
+
instaui/components/html/select.py,sha256=C6LK6vZZsMgy5GZk2HvqG7XwfdXcycQLn043eUwogA4,2121
|
139
141
|
instaui/components/html/span.py,sha256=RJnccwnYEh8PUZ36VTBCKzBNV74M3SMohAejb0ck0UI,440
|
140
142
|
instaui/components/html/table.py,sha256=1n46pPOMKkFfEsHB0Qwep-ELShm-jeeCSOfznfY1mSc,1492
|
141
|
-
instaui/components/html/textarea.py,sha256=
|
143
|
+
instaui/components/html/textarea.py,sha256=Zx8r9fBz74_73-RGW5lWHXQvWkIjWiNAwXrcZtLs3Vw,972
|
142
144
|
instaui/components/html/ul.py,sha256=YbP2kH0Utlwr194uvVlCNQk1Xfl-5O24nVsDHSM0dqg,545
|
143
145
|
instaui/components/markdown/markdown.js,sha256=ZlwxvQJ_0Fq1R-j-unfQTWMRswJ8GsYgLvd-wxVISGc,682
|
144
146
|
instaui/components/markdown/markdown.py,sha256=2_ECsZPJ2P5hdP5-Kna0KwoFtHEzk8hgtTZ9rPX5Mds,978
|
@@ -161,9 +163,9 @@ instaui/components/timer/timer.py,sha256=49J_xHd5Ck4Ma9uhLXFigGq7kZZWuIdYmFYmWkJ
|
|
161
163
|
instaui/dependencies/component_dependency.py,sha256=V9L9YmM0_d1bQFMea3aH8qYG_mvGsAVPhmz0UHZa3PQ,672
|
162
164
|
instaui/dependencies/plugin_dependency.py,sha256=6u562ihKbiL3DE4hBrGjauS2nzYEC2glOVN0fwEVNVc,806
|
163
165
|
instaui/event/event_mixin.py,sha256=cN0Wh95e1wX183mGnGFm8BK_aEHWJ8WNx3Upy75mU_4,286
|
164
|
-
instaui/event/js_event.py,sha256=
|
165
|
-
instaui/event/vue_event.py,sha256=
|
166
|
-
instaui/event/web_event.py,sha256=
|
166
|
+
instaui/event/js_event.py,sha256=CGegLXP3QldJp0jN-lNY0XSG8fLuaitFqKkgGEfI7yE,2868
|
167
|
+
instaui/event/vue_event.py,sha256=NRwEcAromivjyPtgMq5SEqHqx8GEc1OJZsRL2Nj43RY,2187
|
168
|
+
instaui/event/web_event.py,sha256=PyqOqp8DFf5qf6OJ-qPEHiwTvKQ6qDhg4WFSlM_4YGo,4452
|
167
169
|
instaui/experimental/__init__.py,sha256=nKvudMaBaDsxflSZQ00ck8Cc4hmrF0f6Xzs4mhIYa08,75
|
168
170
|
instaui/experimental/debug.py,sha256=UGUWgNZ3ShanpuxfuPdx52TgQrkO9hByABYMnPZEIiE,1325
|
169
171
|
instaui/extra_libs/_echarts.py,sha256=HCF4mxmzVyKRtxHuehiqf7kmBq7G14_dc2m9XQEM-fQ,78
|
@@ -175,23 +177,23 @@ instaui/fastapi_server/_uvicorn.py,sha256=n-es5ajWepXb6xF9EP0ft2lrEbsyLGWMUE7uVq
|
|
175
177
|
instaui/fastapi_server/debug_mode_router.py,sha256=EcYtPxI4FMnUqZcn-CZhZiMLgciHVNZpSRfiSIDRChc,1547
|
176
178
|
instaui/fastapi_server/dependency_router.py,sha256=KZISD-0N1a40uXEsjOYlMTOJbItJ4Nyyb5W1VxXvOBA,898
|
177
179
|
instaui/fastapi_server/event_router.py,sha256=_b0UNaPiwGwk7ElcF7XQnZfraPyWG2Miv9-wg-RI-PU,1648
|
178
|
-
instaui/fastapi_server/middlewares.py,sha256=
|
180
|
+
instaui/fastapi_server/middlewares.py,sha256=IXxTG12P58FS5m5m4ocLcUFizDVs1CR61z22nwMH8AI,1096
|
179
181
|
instaui/fastapi_server/request_context.py,sha256=EV5ZG4zgI_NPlTxinqO4AIREj6rbb1-HcjKCMa2Unfs,521
|
180
182
|
instaui/fastapi_server/resource.py,sha256=2788yiuRjE3GRLqyukuL-x6qN0TSUNzNCm6S51ulNTk,887
|
181
|
-
instaui/fastapi_server/server.py,sha256=
|
183
|
+
instaui/fastapi_server/server.py,sha256=ENBZeSFif4EJAeRK1WXftdW40M6YbIGYy9k3WZs1rm8,10109
|
182
184
|
instaui/fastapi_server/watch_router.py,sha256=KC8AbGNpH2x11PHQMPgc9N5WOlqW05i6r0PTU5A35rI,1599
|
183
185
|
instaui/handlers/_utils.py,sha256=uO7WgbNhrykJwDwSEXQxsqsuCR37nx8ehL_urXm-Tks,2830
|
184
186
|
instaui/handlers/event_handler.py,sha256=hjxi_nDh0yjk9EmRgew1USXk-Egd4pR8YnUiOcJbbnc,1761
|
185
187
|
instaui/handlers/watch_handler.py,sha256=Ay4lubEdRnZcWSqWLwxQyS_uWiF0gu-E9PrNGCAHvL0,1600
|
186
|
-
instaui/js/fn.py,sha256=
|
188
|
+
instaui/js/fn.py,sha256=sTB1OONh1PgbkFaiuhIjBxkZy6JT0cgmXabFuOznrfM,1359
|
187
189
|
instaui/runtime/__init__.py,sha256=4aYTDsKaloRMQns8ttdfSx5xLmcN0Ot6tMqELbjIDZg,667
|
188
|
-
instaui/runtime/_app.py,sha256=
|
190
|
+
instaui/runtime/_app.py,sha256=8KUu0Qwp_O8tUfDtILxmXbijsllRx9snhc7hdlwkND8,7785
|
189
191
|
instaui/runtime/_inner_helper.py,sha256=Aw7S_KtCuOlpd8NP2RuQvNTL1GJtpxQGLsKdc3VXQFY,326
|
190
192
|
instaui/runtime/_link_manager.py,sha256=sVdqm3gdCl6i9UXa8WwckfYVf1vmESm7hvdagT_-OZI,2271
|
191
193
|
instaui/runtime/context.py,sha256=MXwyKnX1X13peHOUbYzwAMflaA1WoQrNkGbi5C_0ErU,1086
|
192
194
|
instaui/runtime/dataclass.py,sha256=dr3hN4YjFXPzckRX9HR87t1-gPjT9RNq9YV-0uJnjHo,587
|
193
195
|
instaui/runtime/resource.py,sha256=8I47HZHRHIzIDrYcfSiHA2RWwb3-ZIsVFMsat8jgV-8,2363
|
194
|
-
instaui/runtime/scope.py,sha256=
|
196
|
+
instaui/runtime/scope.py,sha256=CtjXNV5Ap43hxn6tN5XJxA2jxQYvlmVLbFS56J5rVhw,6329
|
195
197
|
instaui/runtime/ui_state_scope.py,sha256=g48VpQj0BboooUrPr5VIWvcQoJe0bIQARMwRyVEE0I8,314
|
196
198
|
instaui/settings/__init__.py,sha256=nK_xDrlq7CPjm9x3EKsKUW5qWBg_1d-xbqAp_i5G8cc,70
|
197
199
|
instaui/settings/__settings.py,sha256=DWzRvs9bBqjoNA2MvGAyz3GRrSV8H6lMLF1H3iJyoyA,385
|
@@ -202,23 +204,23 @@ instaui/spa_router/_components.py,sha256=vPo4JuRtbD_5ll0LkGwU1p8l_pxNfCSdFLDzMXs
|
|
202
204
|
instaui/spa_router/_file_base_utils.py,sha256=fdZJxi8h9oEf9olks4m-0rTe9Fqn7lq3uIDyFFt07xU,8805
|
203
205
|
instaui/spa_router/_functions.py,sha256=6EDwXLHnmRrB_CUcbRNPblfOUPF8orob9PXrWm2RfSI,3227
|
204
206
|
instaui/spa_router/_install.py,sha256=X9p7wtuGxo6B5F47UTY4ndOSRzENXkoK1XdkNo3F_YA,291
|
205
|
-
instaui/spa_router/_route_model.py,sha256=
|
207
|
+
instaui/spa_router/_route_model.py,sha256=qtRDoTqWjEWxV5bFDsLGgw6c5mET-o9Ks5oDnU1Czd8,3997
|
206
208
|
instaui/spa_router/_router_box.py,sha256=Ez0vWWEYH_FHuFDvcAVhhfrlMRnDpT0_7tjmMZRMWZg,1163
|
207
209
|
instaui/spa_router/_router_output.py,sha256=Nc6N8yO_9IrUbaYbPZMkOX_9VlwBKzyXMahaPp5GFGg,528
|
208
210
|
instaui/spa_router/_router_param_var.py,sha256=KCy54xBZxGMqLO3Zlbzr6XV8ts-M6jCOKunL2gz5IUc,1455
|
209
211
|
instaui/spa_router/_types.py,sha256=KuGuv5C6qivwllfdmV5qrvM0S_GWJ6u8OOTkCNmJImU,81
|
210
212
|
instaui/spa_router/templates/page_routes,sha256=8VjM_8f6pjFb01QbU9z5HNqpcNRdCiX3X0OqNHLq8fo,1355
|
211
213
|
instaui/static/insta-ui.css,sha256=EFA-_5bytZzwbe9w_kaAskE-bpdtwKbBRAyS4iw7NvU,292
|
212
|
-
instaui/static/insta-ui.esm-browser.prod.js,sha256=
|
214
|
+
instaui/static/insta-ui.esm-browser.prod.js,sha256=h227I7Wp8LdU2N0yQ12AwpCh3baI7UvsJVg_dy6JsQc,110065
|
213
215
|
instaui/static/insta-ui.ico,sha256=08FJg4qWolvOjfodoh8IJLStslrvd8sDyuRcTUDq5ak,1150
|
214
|
-
instaui/static/insta-ui.js.map,sha256=
|
216
|
+
instaui/static/insta-ui.js.map,sha256=uA-8ZZFO5zZxLEC4t5HeK40RnI-n-bJ7L2QBbqatZrU,663681
|
215
217
|
instaui/static/instaui-tools-browser.js,sha256=cLHKNXYaYMZriMxV-yKGAHTrHSdNRUlDVZmv6uc6mMw,14455
|
216
218
|
instaui/static/vue.esm-browser.prod.js,sha256=vwQkXANuVYQuEFc0VgiokJdhNyMmvxMKyb1FmrYrNb4,162662
|
217
219
|
instaui/static/vue.global.prod.js,sha256=YO-UVLcXWjFOKfGU2uRrIMYpliGY2y48OmEjV464Z7M,157933
|
218
220
|
instaui/static/vue.runtime.esm-browser.prod.js,sha256=74FfP_s9pycfQXWAiGWx6SbjV_oJvMwZLFBkEXeW1Ek,102024
|
219
|
-
instaui/static/templates/web.html,sha256=
|
220
|
-
instaui/static/templates/webview.html,sha256=
|
221
|
-
instaui/static/templates/zero.html,sha256=
|
221
|
+
instaui/static/templates/web.html,sha256=UBsqe0qoAVxop7aVwZtVMqLmyl6ayHKFz9FDsFpjdj8,1928
|
222
|
+
instaui/static/templates/webview.html,sha256=h4f8FFpOm4ifjwoQZcQXWAMIDlCo_z3mFTfGfGFTGtw,1979
|
223
|
+
instaui/static/templates/zero.html,sha256=th7_14a5ZGmcxS5aVHlZNA4XLabyxNCdrhdmRE29B2g,1807
|
222
224
|
instaui/static/templates/debug/sse.html,sha256=qw5pzfjbU_XM-hA_SJCt2F8Imbvp17tW5l2dwoSZYjY,3391
|
223
225
|
instaui/systems/file_system.py,sha256=q8k_mSHhldkSRYXT73T9s8zvERZZo9HL1U2-4mwau-I,163
|
224
226
|
instaui/systems/func_system.py,sha256=CER3Qm5luetdskMNVhJslvZK-QKbLe_n1aIGCe_i6Lc,3174
|
@@ -233,34 +235,34 @@ instaui/tailwind/static/tailwindcss-v4.min.js,sha256=9Ob5VKFT6th87AlCG5pJ90ICCZS
|
|
233
235
|
instaui/template/__init__.py,sha256=fuua3uCOCmhWb7Q6Sc6pUxfwlxYJTXkdWB1V2fubyyc,141
|
234
236
|
instaui/template/_utils.py,sha256=wNIGDWr3z2PpmKsgShYISbCnII4AbKfsLIX_DRWlRbU,670
|
235
237
|
instaui/template/env.py,sha256=ZqVsqpfSY1mupbgpBSkvOJytNui8xfNR5kNNC9rv4Ps,150
|
236
|
-
instaui/template/web_template.py,sha256=
|
237
|
-
instaui/template/webview_template.py,sha256=
|
238
|
-
instaui/template/zero_template.py,sha256=
|
239
|
-
instaui/ui/__init__.py,sha256=
|
240
|
-
instaui/ui/__init__.pyi,sha256=
|
238
|
+
instaui/template/web_template.py,sha256=AAdxFBmJl7_ofVrDGWcRsBLB2cth3SNffL2ZNhr6fdo,1621
|
239
|
+
instaui/template/webview_template.py,sha256=8NhsfWDqtX4EjA92aTilKT-1vMrlgp95sV3svRAHzco,1575
|
240
|
+
instaui/template/zero_template.py,sha256=5WKIJ23RFXPN9rR_L6DLxZ-i2ZBBcJKmjjc1CitiRXM,3532
|
241
|
+
instaui/ui/__init__.py,sha256=2qBJh8DFwDpklvzVJ-TBBjlfzAH1RECAlTmawN2MP3s,4867
|
242
|
+
instaui/ui/__init__.pyi,sha256=nrMq_VnVwwRrBhgauvjmDJLZlfldBBXvI5BeHGAQcNc,4947
|
241
243
|
instaui/ui/events.py,sha256=lfhiINwn-Kh0MezsSeLJPttWm6G1aWiwyk3TRo0NrlA,809
|
242
244
|
instaui/ui_functions/input_slient_data.py,sha256=0A5DegIt_MqdZgbj1RiVFNmB_RUqgov9FYtkw6VX0DE,511
|
243
|
-
instaui/ui_functions/server.py,sha256=
|
245
|
+
instaui/ui_functions/server.py,sha256=thMkBT2BDOd18FIz4ilfIgO6EJGD19l0sumlOnYbzIM,914
|
244
246
|
instaui/ui_functions/str_format.py,sha256=ECWttA4LlNHlvdT_73wGF_I68soWNEXTP_Hosmxt-m4,1139
|
245
247
|
instaui/ui_functions/ui_page.py,sha256=WVm1qoQ9IxE3kWKKnAU8WVI8drsqxxlLucYKfEZ712s,367
|
246
248
|
instaui/ui_functions/ui_types.py,sha256=J5tqFFkoZJMuoLeTqU52KNgw3kdB_IfcrhaBmyI6NAA,505
|
247
249
|
instaui/vars/_types.py,sha256=wthCk1fcxj1SZ5y6b84W9gFpoi8j2PYnfmaPj4Am72s,308
|
248
|
-
instaui/vars/data.py,sha256=
|
250
|
+
instaui/vars/data.py,sha256=zetw3wloheoh45gyuXQ_FZsy_UE6JIt04sYrM5RkFHs,1799
|
249
251
|
instaui/vars/element_ref.py,sha256=qC-Kb1hBGz_Y6WKjKxRvYR8jdvWW4VeAAGzJ2wSrGgI,1059
|
250
252
|
instaui/vars/event_context.py,sha256=3ML6nyF6Q1hbFvdeu6E2QVOIVcWe1P9FtlCR0dgBGjo,1308
|
251
253
|
instaui/vars/event_extend.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
252
|
-
instaui/vars/js_computed.py,sha256=
|
254
|
+
instaui/vars/js_computed.py,sha256=MTCafS01I2CDJBoaz1NCmTy1QHVs74-S-LDiJEt-Cp4,3715
|
253
255
|
instaui/vars/path_var.py,sha256=znIvxaNHwQzXflEqwB2xjrI7Bk5_QjwYlhdl4qvtyws,2811
|
254
|
-
instaui/vars/ref.py,sha256=
|
256
|
+
instaui/vars/ref.py,sha256=aGihjRDdEoles_RVFnmufaPu0g2Rv6IokW1xP3EndPo,2906
|
255
257
|
instaui/vars/slot_prop.py,sha256=qBVQ0Ze0T8-Wsy__8qEuqVESIrLX69Bmy21Kuxrg_GQ,1198
|
256
258
|
instaui/vars/state.py,sha256=x6qeTliE1J7qoFmAG7huJ-sNQ4VcFgy0IlJoNodqRe0,3190
|
257
259
|
instaui/vars/types.py,sha256=K0QTajlzHaDvFoVMCHAhY_rVvrBm3FsC92BFPOgdBog,511
|
258
260
|
instaui/vars/vfor_item.py,sha256=cVrpErh8OrycYjDLm7PTuE2kIcC2M6ThAQlwvTXG8x0,5490
|
259
|
-
instaui/vars/vue_computed.py,sha256=
|
260
|
-
instaui/vars/web_computed.py,sha256=
|
261
|
+
instaui/vars/vue_computed.py,sha256=XIgwnVuIaC8RZsgH3LYW88cpqcaIcO5V6UWR_sJ2fks,2557
|
262
|
+
instaui/vars/web_computed.py,sha256=l84nUW_EVzDXmw-vwyz9k_2PSyUvSpNXiP9N6RohH3s,6058
|
261
263
|
instaui/vars/web_view_computed.py,sha256=bFFVE9jRKczNy4HhmegWoC6KOL_Nrej-ag37DAIDzaA,36
|
262
264
|
instaui/vars/mixin_types/common_type.py,sha256=4KduANLCUCeGTA1ClEsbFzEzd8Mgve3693Wxf9H7Gmw,176
|
263
|
-
instaui/vars/mixin_types/element_binding.py,sha256=
|
265
|
+
instaui/vars/mixin_types/element_binding.py,sha256=4suqqLT3zn5y7LvqVo2QrEgI1uUFS_5sv8vtTUCzkTc,235
|
264
266
|
instaui/vars/mixin_types/observable.py,sha256=h2cox7BwQtLOWqCTaWnNU0TsgYJKuoNUuuEqwj-KXpU,141
|
265
267
|
instaui/vars/mixin_types/pathable.py,sha256=40H5f1gCDtKs4Qor0C-moB821T7Df8DOgUcntjxgums,302
|
266
268
|
instaui/vars/mixin_types/py_binding.py,sha256=VIVSrHrjcltsP5ADKHtMSZBpi2qKyameXqoEevdfqk8,237
|
@@ -268,19 +270,18 @@ instaui/vars/mixin_types/str_format_binding.py,sha256=i2jXm1RKddPnGrCxEyz0tkDrBU
|
|
268
270
|
instaui/vars/mixin_types/var_type.py,sha256=FQj1TEkjT7HopDPztt0-J6eQVGHjem3KBFsjZwvcvYg,57
|
269
271
|
instaui/watch/_types.py,sha256=HJ_eAID0NsEJ_S8PhcYWxpVWhYLjjqKlbNWwqdqS4IU,73
|
270
272
|
instaui/watch/_utils.py,sha256=mTITHG8hp0pyfQXUERQKXMDna5Au02bhuASCV32eXHI,124
|
271
|
-
instaui/watch/js_watch.py,sha256=
|
273
|
+
instaui/watch/js_watch.py,sha256=8lVINBauHBRiDX3-F1V6V5_1CN9j1EMCROjcD9LRCD8,4230
|
272
274
|
instaui/watch/vue_watch.py,sha256=Vd3nsRyf9ufrXLFTjaSvglwnkoWyE32fOV0qOogWPt4,2013
|
273
|
-
instaui/watch/web_watch.py,sha256=
|
275
|
+
instaui/watch/web_watch.py,sha256=CgiDoHsMmJChrYViRRuhl2zQ9Ij6Avc4ZaVzbXjWJ_c,6578
|
274
276
|
instaui/webview/__init__.py,sha256=_L8B0Ym7i1Q8eonQ81fC54EXn7oZuc6zE1KqeAEPHEg,65
|
275
277
|
instaui/webview/_utils.py,sha256=pqARVv37h-8p7CLOpvqLV8O_az4EV2VD9G-beUVqjD8,172
|
276
278
|
instaui/webview/api.py,sha256=9xuG3EKpmOOy1dvIrS9C9z9ukQDRnIdZLrGFD5FLyvU,2071
|
277
|
-
instaui/webview/func.py,sha256=Igrf7U5qL5jJvhwIRJ3JqRjXxX_S2O_nQ9oy1HLFtYo,3422
|
278
279
|
instaui/webview/index.py,sha256=lPA1sVd5YzqFW62yvvRqeI0M53oNCoVwweGAakZOu1k,5820
|
279
|
-
instaui/webview/resource.py,sha256=
|
280
|
+
instaui/webview/resource.py,sha256=AEYoMQG-k1JX6h2SDLeVuCgyKk03iq27V-S_oO9GxDA,5662
|
280
281
|
instaui/zero/__init__.py,sha256=N0LuRUAcaurxHSspcEDuwZg62W2S3qL4VtrMKxOivBE,49
|
281
|
-
instaui/zero/func.py,sha256=
|
282
|
+
instaui/zero/func.py,sha256=O0tZnlahKhp8pQ9plMicQtjp3itHA6lliZwMmfDbLnc,3668
|
282
283
|
instaui/zero/scope.py,sha256=HGohYOqnpRGVkkoz_gvR6-DgCc48AtJAcDwbOnnGHLM,3753
|
283
|
-
instaui-0.
|
284
|
-
instaui-0.
|
285
|
-
instaui-0.
|
286
|
-
instaui-0.
|
284
|
+
instaui-0.2.0.dist-info/METADATA,sha256=pV0-u5rup0Xj09eUkEfAD5O6hys0t_yImiF8-Y31c5M,3650
|
285
|
+
instaui-0.2.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
286
|
+
instaui-0.2.0.dist-info/licenses/LICENSE,sha256=_JjnAWrikJ6qkwT7PazeFNRlcIu8q_RH3mYcHTxEF5c,1094
|
287
|
+
instaui-0.2.0.dist-info/RECORD,,
|
instaui/webview/func.py
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
import itertools
|
3
|
-
from pathlib import Path
|
4
|
-
import instaui.consts as consts
|
5
|
-
from instaui.runtime._app import get_app_slot, get_default_app_slot
|
6
|
-
from instaui.template import render_zero_html
|
7
|
-
from instaui.template import zero_template
|
8
|
-
from instaui.html_tools import to_config_data
|
9
|
-
from instaui.runtime.dataclass import JsLink
|
10
|
-
from instaui.runtime.resource import HtmlResource
|
11
|
-
|
12
|
-
|
13
|
-
def get_template_model():
|
14
|
-
system_slot = get_app_slot()
|
15
|
-
|
16
|
-
merge_global_resources = (system_slot.meta or {}).get(
|
17
|
-
"merge_global_resources", True
|
18
|
-
)
|
19
|
-
|
20
|
-
default_app_slot = get_default_app_slot()
|
21
|
-
html_resource = system_slot._html_resource
|
22
|
-
default_html_resource = (
|
23
|
-
default_app_slot._html_resource
|
24
|
-
if merge_global_resources
|
25
|
-
else _empty_html_resource()
|
26
|
-
)
|
27
|
-
|
28
|
-
config_data = to_config_data()
|
29
|
-
|
30
|
-
model = zero_template.ZeroTemplateModel(
|
31
|
-
vue_js_code=consts.VUE_ES_JS_PATH,
|
32
|
-
instaui_js_code=consts.APP_ES_JS_PATH,
|
33
|
-
css_links=[
|
34
|
-
consts.APP_CSS_PATH,
|
35
|
-
],
|
36
|
-
config_dict=config_data,
|
37
|
-
favicon=html_resource.favicon
|
38
|
-
or default_html_resource.favicon
|
39
|
-
or consts.FAVICON_PATH,
|
40
|
-
title=html_resource.title or default_html_resource.title or consts.PAGE_TITLE,
|
41
|
-
)
|
42
|
-
|
43
|
-
# register custom components
|
44
|
-
for component in system_slot._component_dependencies:
|
45
|
-
if not component.esm:
|
46
|
-
continue
|
47
|
-
|
48
|
-
model.vue_app_component.append(
|
49
|
-
zero_template.ZeroVueAppComponent(
|
50
|
-
name=component.tag_name,
|
51
|
-
url=component.esm,
|
52
|
-
)
|
53
|
-
)
|
54
|
-
|
55
|
-
if component.css:
|
56
|
-
for css_link in component.css:
|
57
|
-
model.css_links.append(css_link)
|
58
|
-
|
59
|
-
if component.externals:
|
60
|
-
for name, url in component.externals.items():
|
61
|
-
if url.is_file():
|
62
|
-
model.add_extra_import_map(name, url)
|
63
|
-
|
64
|
-
# register custom plugins
|
65
|
-
for plugin in set(
|
66
|
-
itertools.chain(
|
67
|
-
system_slot._plugin_dependencies, default_app_slot._plugin_dependencies
|
68
|
-
)
|
69
|
-
):
|
70
|
-
if not plugin.esm:
|
71
|
-
continue
|
72
|
-
|
73
|
-
model.vue_app_use.append(plugin.name)
|
74
|
-
|
75
|
-
model.add_extra_import_map(plugin.name, plugin.esm)
|
76
|
-
|
77
|
-
if plugin.css:
|
78
|
-
for css_link in plugin.css:
|
79
|
-
model.css_links.append(css_link)
|
80
|
-
|
81
|
-
# css file link to web static link
|
82
|
-
for link in html_resource.get_valid_css_links(
|
83
|
-
default_html_resource._css_links_manager
|
84
|
-
):
|
85
|
-
if isinstance(link, Path):
|
86
|
-
model.css_links.append(link)
|
87
|
-
|
88
|
-
# js file link to web static link
|
89
|
-
for info in html_resource.get_valid_js_links(
|
90
|
-
default_html_resource._js_links_manager
|
91
|
-
):
|
92
|
-
if isinstance(info.link, Path):
|
93
|
-
model.js_links.append(JsLink(info.link))
|
94
|
-
|
95
|
-
for js_code in itertools.chain(
|
96
|
-
html_resource._script_tags, default_html_resource._script_tags
|
97
|
-
):
|
98
|
-
model.script_tags.append(js_code)
|
99
|
-
|
100
|
-
for sylte_code in itertools.chain(
|
101
|
-
html_resource._style_tags, default_html_resource._style_tags
|
102
|
-
):
|
103
|
-
model.style_tags.append(sylte_code)
|
104
|
-
|
105
|
-
return model
|
106
|
-
|
107
|
-
|
108
|
-
def to_html_str():
|
109
|
-
model = get_template_model()
|
110
|
-
return render_zero_html(model)
|
111
|
-
|
112
|
-
|
113
|
-
def _empty_html_resource():
|
114
|
-
return HtmlResource()
|
File without changes
|
File without changes
|