instaui 0.1.8__py3-none-any.whl → 0.1.10__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/_helper/observable_helper.py +11 -1
- instaui/arco/components/select.py +4 -1
- instaui/arco/static/instaui-arco.css +1 -1
- instaui/arco/static/instaui-arco.js +55771 -55771
- instaui/components/echarts/echarts.js +7 -5
- instaui/components/echarts/echarts.py +1 -1
- instaui/components/element.py +12 -22
- instaui/components/grid.py +63 -11
- instaui/components/html/paragraph.py +10 -0
- instaui/components/html/select.py +0 -5
- instaui/components/html/table.py +1 -1
- instaui/components/label.py +5 -0
- instaui/components/row.py +0 -3
- instaui/components/shiki_code/static/shiki-style.css +179 -179
- instaui/event/js_event.py +24 -0
- instaui/event/vue_event.py +66 -0
- instaui/event/web_event.py +36 -25
- instaui/experimental/__init__.py +1 -2
- instaui/handlers/_utils.py +27 -5
- instaui/shadcn_classless/static/shadcn-classless.css +403 -403
- instaui/spa_router/_file_base_utils.py +20 -16
- instaui/static/insta-ui.css +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +3683 -3663
- instaui/static/insta-ui.js.map +1 -1
- instaui/systems/func_system.py +15 -0
- instaui/template/webview_template.py +0 -2
- instaui/ui/__init__.py +5 -1
- instaui/ui/__init__.pyi +5 -1
- instaui/ui_functions/ui_page.py +3 -3
- instaui/vars/js_computed.py +25 -1
- instaui/vars/state.py +15 -0
- instaui/vars/web_computed.py +42 -0
- instaui/watch/js_watch.py +37 -1
- instaui/watch/web_watch.py +53 -0
- instaui/webview/__init__.py +1 -0
- instaui/webview/index.py +0 -1
- instaui-0.1.10.dist-info/METADATA +153 -0
- {instaui-0.1.8.dist-info → instaui-0.1.10.dist-info}/RECORD +70 -73
- {instaui-0.1.8.dist-info → instaui-0.1.10.dist-info}/WHEEL +1 -1
- instaui/experimental/link_sql/__init__.py +0 -3
- instaui/experimental/link_sql/_base.py +0 -23
- instaui/experimental/link_sql/_duckdb.py +0 -221
- instaui/experimental/link_sql/_types.py +0 -15
- instaui/experimental/link_sql/data_source.js +0 -50
- instaui-0.1.8.dist-info/METADATA +0 -160
- {instaui-0.1.8.dist-info → instaui-0.1.10.dist-info/licenses}/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import typing
|
2
2
|
from instaui.vars.mixin_types.observable import ObservableMixin
|
3
|
-
from instaui.vars.mixin_types.py_binding import CanInputMixin
|
3
|
+
from instaui.vars.mixin_types.py_binding import CanInputMixin, CanOutputMixin
|
4
4
|
from instaui.ui_functions.input_slient_data import InputSilentData
|
5
5
|
|
6
6
|
from instaui.vars.mixin_types.common_type import TObservableInput
|
@@ -33,3 +33,13 @@ def analyze_observable_inputs(inputs: typing.List[TObservableInput]):
|
|
33
33
|
result_inputs.append(input)
|
34
34
|
|
35
35
|
return result_inputs, slients, datas
|
36
|
+
|
37
|
+
|
38
|
+
def auto_made_inputs_to_slient(
|
39
|
+
inputs: typing.Optional[typing.Sequence[TObservableInput]],
|
40
|
+
outputs: typing.Optional[typing.Sequence[CanOutputMixin]],
|
41
|
+
):
|
42
|
+
if inputs is None or outputs is None:
|
43
|
+
return inputs
|
44
|
+
|
45
|
+
return [InputSilentData(input) if input in outputs else input for input in inputs]
|
@@ -10,6 +10,9 @@ from instaui.arco import component_types
|
|
10
10
|
from instaui.event.event_mixin import EventMixin
|
11
11
|
from ._utils import handle_props, try_setup_vmodel
|
12
12
|
|
13
|
+
|
14
|
+
_TSelectValue = typing.Union[str, int, typing.Sequence[str], typing.Sequence[int]]
|
15
|
+
|
13
16
|
_OPTIONS_TRANSLATE_JS: typing.Final = r"""(options)=>{
|
14
17
|
if (Array.isArray(options)){
|
15
18
|
const obj = {};
|
@@ -27,7 +30,7 @@ class Select(Element):
|
|
27
30
|
def __init__(
|
28
31
|
self,
|
29
32
|
options: TMaybeRef[typing.Union[typing.Sequence, typing.Dict]],
|
30
|
-
value: typing.Optional[TMaybeRef[
|
33
|
+
value: typing.Optional[TMaybeRef[_TSelectValue]] = None,
|
31
34
|
**kwargs: Unpack[component_types.TSelect],
|
32
35
|
):
|
33
36
|
super().__init__("a-select")
|