instaui 0.1.19__py2.py3-none-any.whl → 0.2.1__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/arco/component_types.py +389 -182
- instaui/arco/components/input.py +1 -1
- instaui/arco/components/typography.py +1 -1
- instaui/boot_info.py +2 -2
- instaui/components/component.py +9 -7
- instaui/components/element.py +11 -8
- instaui/components/html/button.py +2 -2
- instaui/components/html/input.py +2 -2
- instaui/components/html/range.py +2 -2
- instaui/components/html/select.py +3 -2
- instaui/components/html/textarea.py +2 -2
- instaui/components/html/ul.py +2 -2
- instaui/components/match.py +2 -2
- instaui/components/mixins.py +16 -0
- instaui/components/vfor.py +8 -6
- instaui/event/web_event.py +25 -2
- instaui/fastapi_server/_utils.py +5 -21
- instaui/fastapi_server/dependency_router.py +5 -1
- instaui/fastapi_server/event_router.py +5 -5
- instaui/fastapi_server/middlewares.py +12 -0
- instaui/fastapi_server/request_context.py +5 -4
- instaui/fastapi_server/server.py +5 -1
- instaui/fastapi_server/watch_router.py +2 -2
- instaui/js/fn.py +5 -1
- instaui/patch_update.py +54 -0
- instaui/pre_setup.py +45 -0
- instaui/response.py +64 -0
- instaui/runtime/_app.py +5 -1
- instaui/spa_router/_file_base_utils.py +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +1400 -1391
- 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 +31 -6
- instaui/ui/__init__.pyi +4 -0
- instaui/ui_functions/server.py +10 -1
- instaui/ui_functions/ui_types.py +6 -2
- instaui/vars/mixin_types/element_binding.py +5 -1
- instaui/vars/mixin_types/observable.py +1 -1
- instaui/vars/vue_computed.py +5 -2
- instaui/watch/web_watch.py +11 -0
- instaui/webview/api.py +2 -23
- instaui/webview/resource.py +2 -0
- instaui/zero/func.py +2 -0
- {instaui-0.1.19.dist-info → instaui-0.2.1.dist-info}/METADATA +4 -3
- {instaui-0.1.19.dist-info → instaui-0.2.1.dist-info}/RECORD +52 -49
- instaui/webview/func.py +0 -114
- {instaui-0.1.19.dist-info → instaui-0.2.1.dist-info}/WHEEL +0 -0
- {instaui-0.1.19.dist-info → instaui-0.2.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +1,13 @@
|
|
1
1
|
instaui/__init__.py,sha256=AUc9WcEoBimqYCunwNghawZKuhup_qYd1bor5Go1qmA,161
|
2
|
-
instaui/boot_info.py,sha256=
|
2
|
+
instaui/boot_info.py,sha256=wNThKm6cT9685JotP8MH_4oImsQQyDtMr1YjEDsQ2kQ,905
|
3
3
|
instaui/consts.py,sha256=3le1YZTV2PM_jXgvEDWlBeGEJz8QIZ2StvA9MZpem_g,967
|
4
4
|
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/patch_update.py,sha256=btyiuUHdYv-U_7931HRACnFMw-ZBdg_RTVZFWogR6G4,1871
|
9
|
+
instaui/pre_setup.py,sha256=oSwbkOkxkjLS1qP7mU4nY4S7UPXPk0Tdik2tY6WGnZY,1350
|
10
|
+
instaui/response.py,sha256=ByRHHY3tDAzOKLWK1ZJbBbGbsGnjnKSawt_ozOrBzso,1704
|
8
11
|
instaui/skip.py,sha256=uqhqusgeChVoivKFMoZd-XePYrlSoLvUzRZDBcUgFmA,149
|
9
12
|
instaui/version.py,sha256=to8l16EjNe4jmzK316s5ZIotjv554tqF0VfwA1tBhQk,87
|
10
13
|
instaui/_helper/observable_helper.py,sha256=U30PmA8jZ9q48GI_FMNPRYUTKNdl4SsMTAFoq94eRFs,1447
|
@@ -13,7 +16,7 @@ instaui/action/cookie.py,sha256=UD4QbgxX3Ty5gXrE4_PmLjrQWV819qEtXO17c7h6Vc8,551
|
|
13
16
|
instaui/action/url_location.py,sha256=zyTAJpA-3GBBe7WAiP2IDKQxeQhu0LNgBOxwEzcDaDk,823
|
14
17
|
instaui/arco/__init__.py,sha256=_QuzxGbuQKuq9hjem65NKqYwiKDAP_3ZVPHy75Idw_s,6155
|
15
18
|
instaui/arco/_settings.py,sha256=iuWQb-sGNlw4fBxf-Ufj-YGnBXaGVJIDMgPuVg9ZJ38,771
|
16
|
-
instaui/arco/component_types.py,sha256=
|
19
|
+
instaui/arco/component_types.py,sha256=Eoz7h0HvwbyemhVFu7LGMXmqTyo1Cg-eJ4cU9Q8sjA0,41182
|
17
20
|
instaui/arco/setup.py,sha256=iKyb7oDXSkpPUmYNF_4H4wzIG-dZMWjOys97wr6EsG4,996
|
18
21
|
instaui/arco/types.py,sha256=3p55fBzYbpw633WmyFS7WdMcosBLme39VT4C1fbtQcg,341
|
19
22
|
instaui/arco/_use_tools/locale.py,sha256=30-3dYbTV0aIoA3cMAH-TWreDZA94bf0LrKbJl5vCzk,1295
|
@@ -45,7 +48,7 @@ instaui/arco/components/empty.py,sha256=Y3QnWMffnYIUZ3vFFI1RpiAKFdpI3JH4DpZVm98p
|
|
45
48
|
instaui/arco/components/form.py,sha256=42M2WZPx_2N8KTVE7GyM2j5PboB5etNuKk9TUDtVf9k,1272
|
46
49
|
instaui/arco/components/icon.py,sha256=r3ft8SWRMxCWHB8hXYJ8XWhaQyLDw1WMbTGeNNYpqnY,529
|
47
50
|
instaui/arco/components/image.py,sha256=AtlSE7rzzUAWbviGRQsxg6byEihr0DmSh3fWk2dO3E0,972
|
48
|
-
instaui/arco/components/input.py,sha256=
|
51
|
+
instaui/arco/components/input.py,sha256=MolWFMB1y6Ml-iXi15W3neTtFZGgSH3q2CgvsFSV47c,2442
|
49
52
|
instaui/arco/components/input_number.py,sha256=-gO0cgVKEXsVlCo6p7-SFuqNKLEDeWYCGOl4uG4HQZM,2233
|
50
53
|
instaui/arco/components/input_password.py,sha256=FcZbumYLYGh-s6cOMbfBTGcsPoKBXU_gGupudCKG9Fo,1090
|
51
54
|
instaui/arco/components/input_search.py,sha256=oHimoUc3TeJbsfE_YYZqWY92RmKcUj9UDlh9DH2oOYU,965
|
@@ -92,7 +95,7 @@ instaui/arco/components/transfer.py,sha256=d0YcKEwcMF23Pd3TBJIoB_BeH7HKE4OX-qj8W
|
|
92
95
|
instaui/arco/components/tree.py,sha256=aa3EVlyM1RHJ_3_d_0mp21y365_FLcwRHOePaDJ8bcQ,2597
|
93
96
|
instaui/arco/components/tree_select.py,sha256=xXSSBFOjS_q0QPux97bP7YivWHTBdoUMiiN7xkN0-IU,2097
|
94
97
|
instaui/arco/components/trigger.py,sha256=YYnxkAKEDGKjWOECEgmO7_AjTKhPEwAMycfgvKBD5Qw,1482
|
95
|
-
instaui/arco/components/typography.py,sha256
|
98
|
+
instaui/arco/components/typography.py,sha256=-PMY_AHAyGS5ty_s4Ywqig1oO-gkbHgTrwZJs7GEXeM,3662
|
96
99
|
instaui/arco/components/upload.py,sha256=LOsFbkz4PaUEkSKnNdf6qM5KTs1EekInhy897JqRC1E,1684
|
97
100
|
instaui/arco/components/verification_code.py,sha256=ticp_XwPoSRGLPUd3wwKCH-ZEuwHCk-aI-fIHTOgipA,1432
|
98
101
|
instaui/arco/components/watermark.py,sha256=kCgkmvSqsup7BBTTOfHrqGOVStvZsHtUDenoRgoYQq0,391
|
@@ -105,41 +108,42 @@ instaui/arco/static/instaui-arco.js,sha256=PktbvZE6yids2NyfSKo81g--fCo-AiNEdOgvv
|
|
105
108
|
instaui/common/jsonable.py,sha256=efzn_IvfrsaNKjc3B3UzshoMvsqSsB-jnD2Aia8YMYM,902
|
106
109
|
instaui/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
107
110
|
instaui/components/column.py,sha256=t_kDAelb-5_aqx4hv19sOm8zcQpRmn-slTMcwZfMOLk,848
|
108
|
-
instaui/components/component.py,sha256=
|
111
|
+
instaui/components/component.py,sha256=JRL-v9nGA6RwJhyXZ1G7rKiEovWjNHPxT5EJefHVjaQ,1293
|
109
112
|
instaui/components/content.py,sha256=f6dm0GukYJk4RRNJzuvOGqBrStLWkJQbLkV7M5fJ63k,1094
|
110
113
|
instaui/components/directive.py,sha256=bHSOWXNhzWRVNqLXwhc_hY3R3g-JAQ5DWIqpZkI6_wI,1411
|
111
|
-
instaui/components/element.py,sha256=
|
114
|
+
instaui/components/element.py,sha256=HfxRTg4s5K2IzaUaPvUCWMogXUHjfFGG4TDuJxTCKyw,17167
|
112
115
|
instaui/components/grid.py,sha256=h9Lzxqiw4HB-8VG2JGHVz-KGn4bHTtsibtUb8UCgHO4,7529
|
113
116
|
instaui/components/label.py,sha256=Fp7malMB2i6MjJjZnxdIl2tg6rb33-1PdgxEhGecoTM,118
|
114
|
-
instaui/components/match.py,sha256=
|
117
|
+
instaui/components/match.py,sha256=B8g80ujc8WtZeMChXNkYIFPdz2_JKkLqIyuOPh7vkJ4,2784
|
118
|
+
instaui/components/mixins.py,sha256=a_IX0TIYKkWdcuTjb90ENM7KlidxXcBgsTV67TvGLOw,544
|
115
119
|
instaui/components/row.py,sha256=c0dxJwt955EF7PXlrFpqIoQNZ59tJm-UvZlx_zjeuBg,570
|
116
120
|
instaui/components/slot.py,sha256=RT0eU7wH7ffFDkl5ucfrNXB1nbsKDq688Hp920TZaoo,2287
|
117
121
|
instaui/components/transition_group.py,sha256=H9zx9NTlCoQnBArWfmxmh7CMKb5hZn8vKrFe4OFxPrE,201
|
118
122
|
instaui/components/value_element.py,sha256=wRIAaR3_Cq9qLNJw2KPhWt7dJmclj1mrttzlGpb01Y0,1412
|
119
|
-
instaui/components/vfor.py,sha256=
|
123
|
+
instaui/components/vfor.py,sha256=wWFghRVS9jfPAisNuyFqG8bPrHFYIXnYkS7NmhtAuL4,4048
|
120
124
|
instaui/components/vif.py,sha256=vn-tZ_ejVm5S5NjR1s9HPVCRXKPbi-tAzUBkz4PTdxs,1237
|
121
125
|
instaui/components/html/__init__.py,sha256=B1BDIbeHexH3dEg1Gwx3HwZgR0JnxWhNcNlVUp5VeE4,1137
|
122
126
|
instaui/components/html/_mixins.py,sha256=5dcSM9h1PswIKL6_eiqUxqW4H2OCuyNeCuRZq3gDGOc,876
|
123
127
|
instaui/components/html/_preset.py,sha256=c5rTj3r8W7UP0UHFLUW-ZSPedIa-gzrsU1goi60l20Q,94
|
124
|
-
instaui/components/html/button.py,sha256=
|
128
|
+
instaui/components/html/button.py,sha256=fNxAAjn5Wyf9PWYs7imFO7YekdTAyl7Fq5ct9tTchy4,892
|
125
129
|
instaui/components/html/checkbox.py,sha256=29BTpovcJvrN2uQY280dn8KTyspwBBvLeKSxUv3CxjU,1066
|
126
130
|
instaui/components/html/date.py,sha256=MOodsG83JDtb_8l26QWRb7taiPHUAJI6wjt_AjSAJT0,833
|
127
131
|
instaui/components/html/div.py,sha256=fF9rBlOBIl-tDvml1DtJK9lFfFY0SBcP5bn36pluis4,167
|
128
132
|
instaui/components/html/form.py,sha256=C-QVtwX18zH8ZuVK93weGwlRWfSyTGWY_CYIdGcaslU,169
|
129
133
|
instaui/components/html/heading.py,sha256=nYGfUIJFNjeVV_RRwCRuEMblWAEZT-CjNX8eAmtbaaU,1260
|
130
|
-
instaui/components/html/input.py,sha256=
|
134
|
+
instaui/components/html/input.py,sha256=2rQtXptHL2X7i4Ppyi-OnSs7NLiLOKY96xSQd8SEBAQ,966
|
131
135
|
instaui/components/html/label.py,sha256=iJPI5HzTulEs-38hpNiSi_D4klpVx0WexsBtKGUcSC0,557
|
132
136
|
instaui/components/html/li.py,sha256=2IS8eudUX4McHjyxT1SOu91xviC2D1NNdYKLjznZ-IA,416
|
133
137
|
instaui/components/html/link.py,sha256=eNC2f-twFZUhw_rL-Ggff2Lo8NRU33oF8CfWW_9-ktI,670
|
134
138
|
instaui/components/html/number.py,sha256=Y2oIzTMHKWMWpufG55tFz0npEoEFvLhTWpZbMJ8J07s,1069
|
135
139
|
instaui/components/html/paragraph.py,sha256=TNMtI9dyQb6hYKE5vGAsSXiOiEqkx7BM6CEoJrg6nz8,914
|
136
140
|
instaui/components/html/radio.py,sha256=yZxwLnzWhDMn8D_z98aVuXpQR-FO6q8zeUa80Ut8wig,1013
|
137
|
-
instaui/components/html/range.py,sha256=
|
138
|
-
instaui/components/html/select.py,sha256=
|
141
|
+
instaui/components/html/range.py,sha256=jjdrfUVRvMPSZcmwYalS1tG1DI94nNr8VPJG-RjcTUk,1650
|
142
|
+
instaui/components/html/select.py,sha256=C6LK6vZZsMgy5GZk2HvqG7XwfdXcycQLn043eUwogA4,2121
|
139
143
|
instaui/components/html/span.py,sha256=RJnccwnYEh8PUZ36VTBCKzBNV74M3SMohAejb0ck0UI,440
|
140
144
|
instaui/components/html/table.py,sha256=1n46pPOMKkFfEsHB0Qwep-ELShm-jeeCSOfznfY1mSc,1492
|
141
|
-
instaui/components/html/textarea.py,sha256=
|
142
|
-
instaui/components/html/ul.py,sha256=
|
145
|
+
instaui/components/html/textarea.py,sha256=Zx8r9fBz74_73-RGW5lWHXQvWkIjWiNAwXrcZtLs3Vw,972
|
146
|
+
instaui/components/html/ul.py,sha256=wk4o2MKp6lX4KSxdY42FVP_qan8a9SEfSpYdTbrLOsQ,545
|
143
147
|
instaui/components/markdown/markdown.js,sha256=ZlwxvQJ_0Fq1R-j-unfQTWMRswJ8GsYgLvd-wxVISGc,682
|
144
148
|
instaui/components/markdown/markdown.py,sha256=2_ECsZPJ2P5hdP5-Kna0KwoFtHEzk8hgtTZ9rPX5Mds,978
|
145
149
|
instaui/components/markdown/static/github-markdown.css,sha256=_uphCFXVa_Hhwyfs7ps-wcpBuzA7_RhkiX7DuxuLIzI,42536
|
@@ -163,29 +167,29 @@ instaui/dependencies/plugin_dependency.py,sha256=6u562ihKbiL3DE4hBrGjauS2nzYEC2g
|
|
163
167
|
instaui/event/event_mixin.py,sha256=cN0Wh95e1wX183mGnGFm8BK_aEHWJ8WNx3Upy75mU_4,286
|
164
168
|
instaui/event/js_event.py,sha256=CGegLXP3QldJp0jN-lNY0XSG8fLuaitFqKkgGEfI7yE,2868
|
165
169
|
instaui/event/vue_event.py,sha256=NRwEcAromivjyPtgMq5SEqHqx8GEc1OJZsRL2Nj43RY,2187
|
166
|
-
instaui/event/web_event.py,sha256=
|
170
|
+
instaui/event/web_event.py,sha256=PyqOqp8DFf5qf6OJ-qPEHiwTvKQ6qDhg4WFSlM_4YGo,4452
|
167
171
|
instaui/experimental/__init__.py,sha256=nKvudMaBaDsxflSZQ00ck8Cc4hmrF0f6Xzs4mhIYa08,75
|
168
172
|
instaui/experimental/debug.py,sha256=UGUWgNZ3ShanpuxfuPdx52TgQrkO9hByABYMnPZEIiE,1325
|
169
173
|
instaui/extra_libs/_echarts.py,sha256=HCF4mxmzVyKRtxHuehiqf7kmBq7G14_dc2m9XQEM-fQ,78
|
170
174
|
instaui/extra_libs/_import_error.py,sha256=qwmDoCoGutqjQpVmvtH5iUkrtyuiTTPZXgEMZzYBAG4,294
|
171
175
|
instaui/extra_libs/_mermaid.py,sha256=2b0EymPyHUUBrNadvhK7lRtInh9K-7pzQJFZhj_WkNQ,89
|
172
176
|
instaui/extra_libs/_shiki_code.py,sha256=UTC7gvTF8BEgVerhkL45xwpZKY9tPN2_Ddbe0jxFYjQ,79
|
173
|
-
instaui/fastapi_server/_utils.py,sha256=
|
177
|
+
instaui/fastapi_server/_utils.py,sha256=gSExmZYxpVs8Pxzt06fPObbBG8771PVHL5n5hGfld-w,756
|
174
178
|
instaui/fastapi_server/_uvicorn.py,sha256=n-es5ajWepXb6xF9EP0ft2lrEbsyLGWMUE7uVqpkUAs,1174
|
175
179
|
instaui/fastapi_server/debug_mode_router.py,sha256=EcYtPxI4FMnUqZcn-CZhZiMLgciHVNZpSRfiSIDRChc,1547
|
176
|
-
instaui/fastapi_server/dependency_router.py,sha256=
|
177
|
-
instaui/fastapi_server/event_router.py,sha256=
|
178
|
-
instaui/fastapi_server/middlewares.py,sha256=
|
179
|
-
instaui/fastapi_server/request_context.py,sha256=
|
180
|
+
instaui/fastapi_server/dependency_router.py,sha256=_PqNdVc2PSSRUJ3ziU4kBEkCDE4wHl7a6BCtyiYTL90,950
|
181
|
+
instaui/fastapi_server/event_router.py,sha256=MAgmEVQ9KkhYd9UNZxmKfFcvHHJVUnb-ZFJS__kRhkY,1658
|
182
|
+
instaui/fastapi_server/middlewares.py,sha256=IXxTG12P58FS5m5m4ocLcUFizDVs1CR61z22nwMH8AI,1096
|
183
|
+
instaui/fastapi_server/request_context.py,sha256=SFhV6Nx8hyUJauqHrTc01bNMfqx1OUppe9mDEtlu2SQ,527
|
180
184
|
instaui/fastapi_server/resource.py,sha256=2788yiuRjE3GRLqyukuL-x6qN0TSUNzNCm6S51ulNTk,887
|
181
|
-
instaui/fastapi_server/server.py,sha256=
|
182
|
-
instaui/fastapi_server/watch_router.py,sha256=
|
185
|
+
instaui/fastapi_server/server.py,sha256=ENBZeSFif4EJAeRK1WXftdW40M6YbIGYy9k3WZs1rm8,10109
|
186
|
+
instaui/fastapi_server/watch_router.py,sha256=uWTOdbczLfayjh42y0uk1lq0sdMl1pTNs6JsaGDmGxI,1607
|
183
187
|
instaui/handlers/_utils.py,sha256=uO7WgbNhrykJwDwSEXQxsqsuCR37nx8ehL_urXm-Tks,2830
|
184
188
|
instaui/handlers/event_handler.py,sha256=hjxi_nDh0yjk9EmRgew1USXk-Egd4pR8YnUiOcJbbnc,1761
|
185
189
|
instaui/handlers/watch_handler.py,sha256=Ay4lubEdRnZcWSqWLwxQyS_uWiF0gu-E9PrNGCAHvL0,1600
|
186
|
-
instaui/js/fn.py,sha256=
|
190
|
+
instaui/js/fn.py,sha256=sTB1OONh1PgbkFaiuhIjBxkZy6JT0cgmXabFuOznrfM,1359
|
187
191
|
instaui/runtime/__init__.py,sha256=4aYTDsKaloRMQns8ttdfSx5xLmcN0Ot6tMqELbjIDZg,667
|
188
|
-
instaui/runtime/_app.py,sha256=
|
192
|
+
instaui/runtime/_app.py,sha256=8KUu0Qwp_O8tUfDtILxmXbijsllRx9snhc7hdlwkND8,7785
|
189
193
|
instaui/runtime/_inner_helper.py,sha256=Aw7S_KtCuOlpd8NP2RuQvNTL1GJtpxQGLsKdc3VXQFY,326
|
190
194
|
instaui/runtime/_link_manager.py,sha256=sVdqm3gdCl6i9UXa8WwckfYVf1vmESm7hvdagT_-OZI,2271
|
191
195
|
instaui/runtime/context.py,sha256=MXwyKnX1X13peHOUbYzwAMflaA1WoQrNkGbi5C_0ErU,1086
|
@@ -199,7 +203,7 @@ instaui/shadcn_classless/_index.py,sha256=8gjLIh4J1ezFsQr3hvqS76gY_nhdgiNpexY-EN
|
|
199
203
|
instaui/shadcn_classless/static/shadcn-classless.css,sha256=ThJK_nVoBTOoyuz2I-w7dgUgXyZRI_HIupHgaz5Pl0Q,10876
|
200
204
|
instaui/spa_router/__init__.py,sha256=DGSf0YD6wZFj22kmPSyJWUmm_Lx3_YFg32iOa096T7Y,519
|
201
205
|
instaui/spa_router/_components.py,sha256=vPo4JuRtbD_5ll0LkGwU1p8l_pxNfCSdFLDzMXsoEpw,896
|
202
|
-
instaui/spa_router/_file_base_utils.py,sha256=
|
206
|
+
instaui/spa_router/_file_base_utils.py,sha256=tBf8AKIapPg5miqEwvElbItGUQq6jB4owyZY4Ig_Bbk,8806
|
203
207
|
instaui/spa_router/_functions.py,sha256=6EDwXLHnmRrB_CUcbRNPblfOUPF8orob9PXrWm2RfSI,3227
|
204
208
|
instaui/spa_router/_install.py,sha256=X9p7wtuGxo6B5F47UTY4ndOSRzENXkoK1XdkNo3F_YA,291
|
205
209
|
instaui/spa_router/_route_model.py,sha256=qtRDoTqWjEWxV5bFDsLGgw6c5mET-o9Ks5oDnU1Czd8,3997
|
@@ -209,16 +213,16 @@ instaui/spa_router/_router_param_var.py,sha256=KCy54xBZxGMqLO3Zlbzr6XV8ts-M6jCOK
|
|
209
213
|
instaui/spa_router/_types.py,sha256=KuGuv5C6qivwllfdmV5qrvM0S_GWJ6u8OOTkCNmJImU,81
|
210
214
|
instaui/spa_router/templates/page_routes,sha256=8VjM_8f6pjFb01QbU9z5HNqpcNRdCiX3X0OqNHLq8fo,1355
|
211
215
|
instaui/static/insta-ui.css,sha256=EFA-_5bytZzwbe9w_kaAskE-bpdtwKbBRAyS4iw7NvU,292
|
212
|
-
instaui/static/insta-ui.esm-browser.prod.js,sha256=
|
216
|
+
instaui/static/insta-ui.esm-browser.prod.js,sha256=O_xMSzWgCfZpuaKDraJsgMTqADrPZjKv-8kk0UjRWpI,110423
|
213
217
|
instaui/static/insta-ui.ico,sha256=08FJg4qWolvOjfodoh8IJLStslrvd8sDyuRcTUDq5ak,1150
|
214
|
-
instaui/static/insta-ui.js.map,sha256=
|
218
|
+
instaui/static/insta-ui.js.map,sha256=0SseMn_3-DXjl5FxdDYURIgP8AnWxiz1shqJxoyo5mc,665032
|
215
219
|
instaui/static/instaui-tools-browser.js,sha256=cLHKNXYaYMZriMxV-yKGAHTrHSdNRUlDVZmv6uc6mMw,14455
|
216
220
|
instaui/static/vue.esm-browser.prod.js,sha256=vwQkXANuVYQuEFc0VgiokJdhNyMmvxMKyb1FmrYrNb4,162662
|
217
221
|
instaui/static/vue.global.prod.js,sha256=YO-UVLcXWjFOKfGU2uRrIMYpliGY2y48OmEjV464Z7M,157933
|
218
222
|
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=
|
223
|
+
instaui/static/templates/web.html,sha256=UBsqe0qoAVxop7aVwZtVMqLmyl6ayHKFz9FDsFpjdj8,1928
|
224
|
+
instaui/static/templates/webview.html,sha256=h4f8FFpOm4ifjwoQZcQXWAMIDlCo_z3mFTfGfGFTGtw,1979
|
225
|
+
instaui/static/templates/zero.html,sha256=th7_14a5ZGmcxS5aVHlZNA4XLabyxNCdrhdmRE29B2g,1807
|
222
226
|
instaui/static/templates/debug/sse.html,sha256=qw5pzfjbU_XM-hA_SJCt2F8Imbvp17tW5l2dwoSZYjY,3391
|
223
227
|
instaui/systems/file_system.py,sha256=q8k_mSHhldkSRYXT73T9s8zvERZZo9HL1U2-4mwau-I,163
|
224
228
|
instaui/systems/func_system.py,sha256=CER3Qm5luetdskMNVhJslvZK-QKbLe_n1aIGCe_i6Lc,3174
|
@@ -233,17 +237,17 @@ instaui/tailwind/static/tailwindcss-v4.min.js,sha256=9Ob5VKFT6th87AlCG5pJ90ICCZS
|
|
233
237
|
instaui/template/__init__.py,sha256=fuua3uCOCmhWb7Q6Sc6pUxfwlxYJTXkdWB1V2fubyyc,141
|
234
238
|
instaui/template/_utils.py,sha256=wNIGDWr3z2PpmKsgShYISbCnII4AbKfsLIX_DRWlRbU,670
|
235
239
|
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=
|
240
|
+
instaui/template/web_template.py,sha256=AAdxFBmJl7_ofVrDGWcRsBLB2cth3SNffL2ZNhr6fdo,1621
|
241
|
+
instaui/template/webview_template.py,sha256=8NhsfWDqtX4EjA92aTilKT-1vMrlgp95sV3svRAHzco,1575
|
242
|
+
instaui/template/zero_template.py,sha256=5WKIJ23RFXPN9rR_L6DLxZ-i2ZBBcJKmjjc1CitiRXM,3532
|
243
|
+
instaui/ui/__init__.py,sha256=wjV_9KqwPsjvrMVRpLaHYhSrBLfVafQrr0Gv_XYxi5Y,5043
|
244
|
+
instaui/ui/__init__.pyi,sha256=3UlTbATEPzmV5tExpszSCNQ6eh81BvrVvqyGFMQWXlk,5009
|
241
245
|
instaui/ui/events.py,sha256=lfhiINwn-Kh0MezsSeLJPttWm6G1aWiwyk3TRo0NrlA,809
|
242
246
|
instaui/ui_functions/input_slient_data.py,sha256=0A5DegIt_MqdZgbj1RiVFNmB_RUqgov9FYtkw6VX0DE,511
|
243
|
-
instaui/ui_functions/server.py,sha256=
|
247
|
+
instaui/ui_functions/server.py,sha256=thMkBT2BDOd18FIz4ilfIgO6EJGD19l0sumlOnYbzIM,914
|
244
248
|
instaui/ui_functions/str_format.py,sha256=ECWttA4LlNHlvdT_73wGF_I68soWNEXTP_Hosmxt-m4,1139
|
245
249
|
instaui/ui_functions/ui_page.py,sha256=WVm1qoQ9IxE3kWKKnAU8WVI8drsqxxlLucYKfEZ712s,367
|
246
|
-
instaui/ui_functions/ui_types.py,sha256=
|
250
|
+
instaui/ui_functions/ui_types.py,sha256=5LpSSEsyxd6ldeZJ0A3fzDoaylqhV1Or0qBRx-VOuvg,531
|
247
251
|
instaui/vars/_types.py,sha256=wthCk1fcxj1SZ5y6b84W9gFpoi8j2PYnfmaPj4Am72s,308
|
248
252
|
instaui/vars/data.py,sha256=zetw3wloheoh45gyuXQ_FZsy_UE6JIt04sYrM5RkFHs,1799
|
249
253
|
instaui/vars/element_ref.py,sha256=qC-Kb1hBGz_Y6WKjKxRvYR8jdvWW4VeAAGzJ2wSrGgI,1059
|
@@ -256,12 +260,12 @@ instaui/vars/slot_prop.py,sha256=qBVQ0Ze0T8-Wsy__8qEuqVESIrLX69Bmy21Kuxrg_GQ,119
|
|
256
260
|
instaui/vars/state.py,sha256=x6qeTliE1J7qoFmAG7huJ-sNQ4VcFgy0IlJoNodqRe0,3190
|
257
261
|
instaui/vars/types.py,sha256=K0QTajlzHaDvFoVMCHAhY_rVvrBm3FsC92BFPOgdBog,511
|
258
262
|
instaui/vars/vfor_item.py,sha256=cVrpErh8OrycYjDLm7PTuE2kIcC2M6ThAQlwvTXG8x0,5490
|
259
|
-
instaui/vars/vue_computed.py,sha256=
|
263
|
+
instaui/vars/vue_computed.py,sha256=U99NQVWv1GS0aRdDtT39LTDhkACnNl7NbfgAwtgsUVg,2600
|
260
264
|
instaui/vars/web_computed.py,sha256=l84nUW_EVzDXmw-vwyz9k_2PSyUvSpNXiP9N6RohH3s,6058
|
261
265
|
instaui/vars/web_view_computed.py,sha256=bFFVE9jRKczNy4HhmegWoC6KOL_Nrej-ag37DAIDzaA,36
|
262
266
|
instaui/vars/mixin_types/common_type.py,sha256=4KduANLCUCeGTA1ClEsbFzEzd8Mgve3693Wxf9H7Gmw,176
|
263
|
-
instaui/vars/mixin_types/element_binding.py,sha256=
|
264
|
-
instaui/vars/mixin_types/observable.py,sha256=
|
267
|
+
instaui/vars/mixin_types/element_binding.py,sha256=KUJY7s-Qem6Cwd_g0nC7A3RWwbMqt56EdB70OQpupj8,345
|
268
|
+
instaui/vars/mixin_types/observable.py,sha256=jWT4xeL2NMQ4iLGsV141gcC9_ZMbt6nJVm9ztxuw6h4,143
|
265
269
|
instaui/vars/mixin_types/pathable.py,sha256=40H5f1gCDtKs4Qor0C-moB821T7Df8DOgUcntjxgums,302
|
266
270
|
instaui/vars/mixin_types/py_binding.py,sha256=VIVSrHrjcltsP5ADKHtMSZBpi2qKyameXqoEevdfqk8,237
|
267
271
|
instaui/vars/mixin_types/str_format_binding.py,sha256=i2jXm1RKddPnGrCxEyz0tkDrBU2FfjR0EviQ0RKZsbY,257
|
@@ -270,17 +274,16 @@ instaui/watch/_types.py,sha256=HJ_eAID0NsEJ_S8PhcYWxpVWhYLjjqKlbNWwqdqS4IU,73
|
|
270
274
|
instaui/watch/_utils.py,sha256=mTITHG8hp0pyfQXUERQKXMDna5Au02bhuASCV32eXHI,124
|
271
275
|
instaui/watch/js_watch.py,sha256=8lVINBauHBRiDX3-F1V6V5_1CN9j1EMCROjcD9LRCD8,4230
|
272
276
|
instaui/watch/vue_watch.py,sha256=Vd3nsRyf9ufrXLFTjaSvglwnkoWyE32fOV0qOogWPt4,2013
|
273
|
-
instaui/watch/web_watch.py,sha256=
|
277
|
+
instaui/watch/web_watch.py,sha256=CgiDoHsMmJChrYViRRuhl2zQ9Ij6Avc4ZaVzbXjWJ_c,6578
|
274
278
|
instaui/webview/__init__.py,sha256=_L8B0Ym7i1Q8eonQ81fC54EXn7oZuc6zE1KqeAEPHEg,65
|
275
279
|
instaui/webview/_utils.py,sha256=pqARVv37h-8p7CLOpvqLV8O_az4EV2VD9G-beUVqjD8,172
|
276
|
-
instaui/webview/api.py,sha256=
|
277
|
-
instaui/webview/func.py,sha256=Igrf7U5qL5jJvhwIRJ3JqRjXxX_S2O_nQ9oy1HLFtYo,3422
|
280
|
+
instaui/webview/api.py,sha256=_d5Sr5oJMvpuefKPPxrVjqY60CVNjDosFvlNgsiovCE,1493
|
278
281
|
instaui/webview/index.py,sha256=lPA1sVd5YzqFW62yvvRqeI0M53oNCoVwweGAakZOu1k,5820
|
279
|
-
instaui/webview/resource.py,sha256=
|
282
|
+
instaui/webview/resource.py,sha256=AEYoMQG-k1JX6h2SDLeVuCgyKk03iq27V-S_oO9GxDA,5662
|
280
283
|
instaui/zero/__init__.py,sha256=N0LuRUAcaurxHSspcEDuwZg62W2S3qL4VtrMKxOivBE,49
|
281
|
-
instaui/zero/func.py,sha256=
|
284
|
+
instaui/zero/func.py,sha256=O0tZnlahKhp8pQ9plMicQtjp3itHA6lliZwMmfDbLnc,3668
|
282
285
|
instaui/zero/scope.py,sha256=HGohYOqnpRGVkkoz_gvR6-DgCc48AtJAcDwbOnnGHLM,3753
|
283
|
-
instaui-0.1.
|
284
|
-
instaui-0.1.
|
285
|
-
instaui-0.1.
|
286
|
-
instaui-0.1.
|
286
|
+
instaui-0.2.1.dist-info/METADATA,sha256=LkB0S31Uz-WY_2SAarbm_tjKitUsxrYGZXy-YDO8Qvk,3650
|
287
|
+
instaui-0.2.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
288
|
+
instaui-0.2.1.dist-info/licenses/LICENSE,sha256=_JjnAWrikJ6qkwT7PazeFNRlcIu8q_RH3mYcHTxEF5c,1094
|
289
|
+
instaui-0.2.1.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
|