writer 0.8.3rc4__py3-none-any.whl → 1.25.1rc1__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.
- writer/__init__.py +1 -1
- writer/abstract.py +1 -1
- writer/{ai.py → ai/__init__.py} +867 -163
- writer/app_runner.py +596 -241
- writer/app_templates/default/.wf/components-blueprints_blueprint-0-0decp3w5erhvl0nw.jsonl +11 -0
- writer/app_templates/default/.wf/components-blueprints_root.jsonl +1 -0
- writer/app_templates/default/.wf/components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl +27 -0
- writer/app_templates/default/.wf/components-root.jsonl +1 -0
- writer/app_templates/default/.wf/components-workflows_root.jsonl +1 -0
- writer/app_templates/default/.wf/components-workflows_workflow-0-lfltcky7l1fsm6j2.jsonl +1 -0
- writer/app_templates/default/.wf/metadata.json +3 -0
- writer/app_templates/default/README.md +3 -0
- writer/app_templates/default/main.py +16 -0
- writer/app_templates/default/requirements.txt +1 -0
- writer/app_templates/default/static/README.md +8 -0
- writer/app_templates/default/static/agent_builder_demo.png +0 -0
- writer/app_templates/default/static/favicon.png +0 -0
- writer/app_templates/hello/.wf/components-blueprints_blueprint-0-t84xyhxau9ej3823.jsonl +18 -0
- writer/app_templates/hello/.wf/components-blueprints_root.jsonl +1 -0
- writer/app_templates/hello/.wf/components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl +15 -0
- writer/app_templates/hello/.wf/components-root.jsonl +1 -0
- writer/app_templates/hello/.wf/metadata.json +3 -0
- writer/app_templates/hello/main.py +16 -0
- writer/app_templates/hello/static/README.md +8 -0
- writer/app_templates/hello/static/favicon.png +0 -0
- writer/app_templates/hello/static/welcome.svg +40 -0
- writer/auth.py +7 -2
- writer/autogen.py +352 -0
- writer/blocks/__init__.py +51 -17
- writer/blocks/addtostatelist.py +10 -9
- writer/blocks/apitrigger.py +45 -0
- writer/blocks/base_block.py +332 -21
- writer/blocks/base_trigger.py +14 -0
- writer/blocks/calleventhandler.py +39 -35
- writer/blocks/changepage.py +48 -0
- writer/blocks/code.py +102 -0
- writer/blocks/crontrigger.py +49 -0
- writer/blocks/foreach.py +70 -53
- writer/blocks/httprequest.py +112 -99
- writer/blocks/ifelse.py +71 -0
- writer/blocks/logmessage.py +34 -39
- writer/blocks/parsejson.py +30 -29
- writer/blocks/returnvalue.py +7 -7
- writer/blocks/runblueprint.py +63 -0
- writer/blocks/setstate.py +43 -33
- writer/blocks/sharedblueprint.py +86 -0
- writer/blocks/uieventtrigger.py +49 -0
- writer/blocks/writeraddchatmessage.py +50 -12
- writer/blocks/writeraddtokg.py +38 -11
- writer/blocks/writeraskkg.py +123 -0
- writer/blocks/writerchat.py +80 -61
- writer/blocks/writerchatreply.py +279 -0
- writer/blocks/writerchatreplywithtoolconfig.py +393 -0
- writer/blocks/writerclassification.py +78 -39
- writer/blocks/writercompletion.py +49 -44
- writer/blocks/writerfileapi.py +85 -0
- writer/blocks/writerinitchat.py +24 -12
- writer/blocks/writerkeyvaluestorage.py +106 -0
- writer/blocks/writernocodeapp.py +35 -37
- writer/blocks/writerparsepdf.py +73 -0
- writer/blocks/writerstructuredoutput.py +105 -0
- writer/blocks/writertoolcalling.py +251 -0
- writer/blocks/writervision.py +141 -0
- writer/blocks/writerwebsearch.py +175 -0
- writer/blueprints.py +839 -0
- writer/command_line.py +52 -16
- writer/core.py +562 -290
- writer/core_ui.py +6 -2
- writer/evaluator.py +98 -46
- writer/journal.py +227 -0
- writer/keyvalue_storage.py +93 -0
- writer/logs.py +277 -0
- writer/serve.py +625 -327
- writer/ss_types.py +101 -12
- writer/static/assets/Arrow.dom-GBJpMYQS.js +1 -0
- writer/static/assets/BaseMarkdown-Wrvby5J8.js +1 -0
- writer/static/assets/BlueprintToolbar-BuXNRxWT.js +1 -0
- writer/static/assets/BlueprintToolbar-wpfX0jo_.css +1 -0
- writer/static/assets/BuilderApp-PTOI76jZ.js +8 -0
- writer/static/assets/BuilderApp-WimUfNZr.css +1 -0
- writer/static/assets/BuilderApplicationSelect-DXzy4e_h.js +7 -0
- writer/static/assets/BuilderApplicationSelect-XaM1D5fv.css +1 -0
- writer/static/assets/BuilderBlueprintLibraryPanel-Ckrhknlh.css +1 -0
- writer/static/assets/BuilderBlueprintLibraryPanel-DBDzhTlc.js +1 -0
- writer/static/assets/BuilderEmbeddedCodeEditor-B0bcjlhk.css +1 -0
- writer/static/assets/BuilderEmbeddedCodeEditor-Dn7eDICN.js +726 -0
- writer/static/assets/BuilderGraphSelect-C-LRsO8W.js +7 -0
- writer/static/assets/BuilderGraphSelect-D7B61d5s.css +1 -0
- writer/static/assets/BuilderInsertionLabel-BhyL9wgn.js +1 -0
- writer/static/assets/BuilderInsertionLabel-_YS5WPfq.css +1 -0
- writer/static/assets/BuilderInsertionOverlay-D2XS0ij9.css +1 -0
- writer/static/assets/BuilderInsertionOverlay-MkAIVruY.js +1 -0
- writer/static/assets/BuilderJournal-A0LcEwGI.js +7 -0
- writer/static/assets/BuilderJournal-DHv3Pvvm.css +1 -0
- writer/static/assets/BuilderModelSelect-CdSo_sih.js +7 -0
- writer/static/assets/BuilderModelSelect-Dc4IPLp2.css +1 -0
- writer/static/assets/BuilderSettings-BDwZBveu.js +16 -0
- writer/static/assets/BuilderSettings-lZkOXEYw.css +1 -0
- writer/static/assets/BuilderSettingsArtifactAPITriggerDetails-3O6jKBXD.js +4 -0
- writer/static/assets/BuilderSettingsArtifactAPITriggerDetails-DnX66iRg.css +1 -0
- writer/static/assets/BuilderSettingsDeploySharedBlueprint-BR_3ptsd.js +1 -0
- writer/static/assets/BuilderSettingsDeploySharedBlueprint-KJTl8gxP.css +1 -0
- writer/static/assets/BuilderSettingsHandlers-CBtEQFSo.js +1 -0
- writer/static/assets/BuilderSettingsHandlers-DJPeASfz.css +1 -0
- writer/static/assets/BuilderSidebarComponentTree-DLltgas5.js +1 -0
- writer/static/assets/BuilderSidebarComponentTree-DYu1F793.css +1 -0
- writer/static/assets/BuilderSidebarToolkit-CApZNTAq.js +7 -0
- writer/static/assets/BuilderSidebarToolkit-CwqbjRv8.css +1 -0
- writer/static/assets/BuilderTemplateEditor-CYSDeWgV.css +1 -0
- writer/static/assets/BuilderTemplateEditor-DnRDRcA0.js +87 -0
- writer/static/assets/BuilderVault-2vGoV0sx.js +1 -0
- writer/static/assets/BuilderVault-Cx6oQSES.css +1 -0
- writer/static/assets/ComponentRenderer-72hqvEvI.css +1 -0
- writer/static/assets/ComponentRenderer-D4Pj1i3s.js +1 -0
- writer/static/assets/SharedCopyClipboardButton-BipJKGtz.css +1 -0
- writer/static/assets/SharedCopyClipboardButton-DNI9kLe6.js +1 -0
- writer/static/assets/WdsCheckbox-DKvpPA4D.css +1 -0
- writer/static/assets/WdsCheckbox-edQcn1cf.js +1 -0
- writer/static/assets/WdsDropdownMenu-CzzPN9Wg.css +1 -0
- writer/static/assets/WdsDropdownMenu-DQnrRBNV.js +1 -0
- writer/static/assets/WdsFieldWrapper-Cmufx5Nj.js +1 -0
- writer/static/assets/WdsFieldWrapper-CsemOh8D.css +1 -0
- writer/static/assets/WdsTabs-DKj7BqI0.css +1 -0
- writer/static/assets/WdsTabs-DcfY_zn5.js +1 -0
- writer/static/assets/abap-D8nrxEjS.js +6 -0
- writer/static/assets/apex-BrXDlLUW.js +6 -0
- writer/static/assets/art-paper-D70v1WMA.svg +180 -0
- writer/static/assets/azcli-CElzELwZ.js +6 -0
- writer/static/assets/bat-CUsyEhik.js +6 -0
- writer/static/assets/bicep-BtxyJn6H.js +7 -0
- writer/static/assets/cameligo-ClBCoF8h.js +6 -0
- writer/static/assets/clojure-B9TqLHAk.js +6 -0
- writer/static/assets/codicon-BA2IlpFX.ttf +0 -0
- writer/static/assets/coffee-DYsfeylR.js +6 -0
- writer/static/assets/cpp-VVGvvgir.js +6 -0
- writer/static/assets/csharp-Z6z2stHy.js +6 -0
- writer/static/assets/csp-DgZoLDI1.js +6 -0
- writer/static/assets/css-KqQ96-gC.js +8 -0
- writer/static/assets/css.worker-DvNUQFd1.js +84 -0
- writer/static/assets/cssMode-BYq4oZGq.js +9 -0
- writer/static/assets/cypher-CYoSlgTu.js +6 -0
- writer/static/assets/dart-BGDl7St1.js +6 -0
- writer/static/assets/dockerfile-CuCtxA7T.js +6 -0
- writer/static/assets/ecl-BCTFAUpS.js +6 -0
- writer/static/assets/editor.worker-BVwmgLrR.js +11 -0
- writer/static/assets/elixir-C7hRTYZ9.js +6 -0
- writer/static/assets/flow9-Bi_qi707.js +6 -0
- writer/static/assets/freemarker2-CnNourkO.js +8 -0
- writer/static/assets/fsharp-CxaaEKKi.js +6 -0
- writer/static/assets/go-DUImKuGY.js +6 -0
- writer/static/assets/graphql-D5sGVkLV.js +6 -0
- writer/static/assets/handlebars-Bm22yapJ.js +6 -0
- writer/static/assets/hcl-zD_CCkZ1.js +6 -0
- writer/static/assets/html-CAKAfoZF.js +6 -0
- writer/static/assets/html.worker-BJMlcbMU.js +458 -0
- writer/static/assets/htmlMode-BGZ97n-V.js +9 -0
- writer/static/assets/index-5u5REPT4.js +16 -0
- writer/static/assets/index-BKNuk68o.css +1 -0
- writer/static/assets/index-BQNXU3IR.js +17 -0
- writer/static/assets/index-BQr1pfrb.js +1 -0
- writer/static/assets/index-DHXAd5Yn.js +4 -0
- writer/static/assets/index-Zki-pfO-.js +8525 -0
- writer/static/assets/index.esm-B1ZQtduY.js +17 -0
- writer/static/assets/ini-8kKHd4ZL.js +6 -0
- writer/static/assets/java-De1axCfe.js +6 -0
- writer/static/assets/javascript-X1f02eyK.js +6 -0
- writer/static/assets/json.worker-BwvX8PuZ.js +42 -0
- writer/static/assets/jsonMode-hT0bNgT8.js +11 -0
- writer/static/assets/julia-D3ApGBxz.js +6 -0
- writer/static/assets/kotlin-GbSrCElU.js +6 -0
- writer/static/assets/less-DNUaDNdz.js +7 -0
- writer/static/assets/lexon-Bg9QKxBu.js +6 -0
- writer/static/assets/liquid-KmCCiJw2.js +6 -0
- writer/static/assets/lua-Crkvc3mc.js +6 -0
- writer/static/assets/m3-DsrzVyM1.js +6 -0
- writer/static/assets/mapbox-gl-C0cyFYYW.js +2329 -0
- writer/static/assets/markdown-CY5IOZuu.js +6 -0
- writer/static/assets/marked.esm-273vDTCT.js +45 -0
- writer/static/assets/mdx-DtRFauUw.js +6 -0
- writer/static/assets/mips-BE8RsGBA.js +6 -0
- writer/static/assets/msdax-N5ajIiFQ.js +6 -0
- writer/static/assets/mysql-DRxbB97D.js +6 -0
- writer/static/assets/objective-c-BHUZy23s.js +6 -0
- writer/static/assets/pascal-BemVzBTY.js +6 -0
- writer/static/assets/pascaligo-BACCcnx_.js +6 -0
- writer/static/assets/pdf-B6-yWJ-Y.js +12 -0
- writer/static/assets/pdf.worker.min-CyUfim15.mjs +21 -0
- writer/static/assets/perl-CuU66Ptk.js +6 -0
- writer/static/assets/pgsql-CQ6TMH2r.js +6 -0
- writer/static/assets/php-BvyzZa65.js +6 -0
- writer/static/assets/pla-DrIuu9u1.js +6 -0
- writer/static/assets/plotly.min-DutuuatZ.js +4030 -0
- writer/static/assets/poppins-latin-300-italic-4WBEAciR.woff +0 -0
- writer/static/assets/poppins-latin-300-italic-EWCPeN2Y.woff2 +0 -0
- writer/static/assets/poppins-latin-300-normal-DCNuMXUj.woff +0 -0
- writer/static/assets/poppins-latin-300-normal-Dku2WoCh.woff2 +0 -0
- writer/static/assets/poppins-latin-400-italic-B4GYq972.woff2 +0 -0
- writer/static/assets/poppins-latin-400-italic-BPejoDS-.woff +0 -0
- writer/static/assets/poppins-latin-400-normal-BOb3E3N0.woff +0 -0
- writer/static/assets/poppins-latin-400-normal-cpxAROuN.woff2 +0 -0
- writer/static/assets/poppins-latin-500-italic-Ce_qjtl5.woff +0 -0
- writer/static/assets/poppins-latin-500-italic-o28Otv0U.woff2 +0 -0
- writer/static/assets/poppins-latin-500-normal-C8OXljZJ.woff2 +0 -0
- writer/static/assets/poppins-latin-500-normal-DGXqpDMm.woff +0 -0
- writer/static/assets/poppins-latin-600-italic-BhOZippK.woff +0 -0
- writer/static/assets/poppins-latin-600-italic-CZ4wqKBi.woff2 +0 -0
- writer/static/assets/poppins-latin-600-normal-BJdTmd5m.woff +0 -0
- writer/static/assets/poppins-latin-600-normal-zEkxB9Mr.woff2 +0 -0
- writer/static/assets/poppins-latin-700-italic-CW91C-LJ.woff +0 -0
- writer/static/assets/poppins-latin-700-italic-RKf6esGj.woff2 +0 -0
- writer/static/assets/poppins-latin-700-normal-BVuQR_eA.woff +0 -0
- writer/static/assets/poppins-latin-700-normal-Qrb0O0WB.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-italic-CBzyU4Pf.woff +0 -0
- writer/static/assets/poppins-latin-ext-300-italic-DdDvTq5-.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-normal-7Zg2msWE.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-300-normal-C9p7gvmA.woff +0 -0
- writer/static/assets/poppins-latin-ext-400-italic-BiCGV3eO.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-400-italic-gsPYOGqV.woff +0 -0
- writer/static/assets/poppins-latin-ext-400-normal-CIpeJEZw.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-400-normal-Ce_uWq1Z.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-italic-CwrTHwbn.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-500-italic-jdc8Bv4M.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-normal-Bl1-S02S.woff +0 -0
- writer/static/assets/poppins-latin-ext-500-normal-H4Q0z8D2.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-italic-BqeDa496.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-italic-C7MQPb_A.woff +0 -0
- writer/static/assets/poppins-latin-ext-600-normal-Cn4C8475.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-600-normal-DB6FJURc.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-italic-BAdhB_WS.woff2 +0 -0
- writer/static/assets/poppins-latin-ext-700-italic-WKTwQMp8.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-normal-CE2WFKmF.woff +0 -0
- writer/static/assets/poppins-latin-ext-700-normal-DDaViAzG.woff2 +0 -0
- writer/static/assets/postiats-BR_hrfni.js +6 -0
- writer/static/assets/powerquery-CKDUeRmd.js +6 -0
- writer/static/assets/powershell-Dsa4rhA_.js +6 -0
- writer/static/assets/protobuf-CGsvhooB.js +7 -0
- writer/static/assets/pug-D2p3uOX2.js +6 -0
- writer/static/assets/python-DVhxg746.js +6 -0
- writer/static/assets/qsharp-B7F3HtPF.js +6 -0
- writer/static/assets/r-3aLoi2fs.js +6 -0
- writer/static/assets/razor-DR5Ns_BC.js +6 -0
- writer/static/assets/redis-jqFeRM5s.js +6 -0
- writer/static/assets/redshift-BriwQgXR.js +6 -0
- writer/static/assets/restructuredtext-hbBFZ0w9.js +6 -0
- writer/static/assets/ruby-ByThyB2Q.js +6 -0
- writer/static/assets/rust-DIEZMp5R.js +6 -0
- writer/static/assets/sb-C6Gjjw_x.js +6 -0
- writer/static/assets/scala-DZNw3jJB.js +6 -0
- writer/static/assets/scheme-55eqh71t.js +6 -0
- writer/static/assets/scss-D-OVkc4F.js +8 -0
- writer/static/assets/serialization-DJC7NP0N.js +20 -0
- writer/static/assets/shell-DSpi8_qN.js +6 -0
- writer/static/assets/solidity-BHddiNFS.js +6 -0
- writer/static/assets/sophia-D6taVZFb.js +6 -0
- writer/static/assets/sparql-LA0C7mUc.js +6 -0
- writer/static/assets/sql-C3-3IcFM.js +6 -0
- writer/static/assets/st-C4g7059C.js +6 -0
- writer/static/assets/swift-DNI1vH3h.js +8 -0
- writer/static/assets/systemverilog-DL_FVbcQ.js +6 -0
- writer/static/assets/tcl-DVJXmIwd.js +6 -0
- writer/static/assets/ts.worker-CwG1rUES.js +37021 -0
- writer/static/assets/tsMode-BNUEZzir.js +16 -0
- writer/static/assets/twig-BVWDLtw5.js +6 -0
- writer/static/assets/typescript-CRVt7Hx0.js +6 -0
- writer/static/assets/useBlueprintRun-C00bCxh-.js +1 -0
- writer/static/assets/useKeyValueEditor-nDmI7cTJ.js +1 -0
- writer/static/assets/useListResources-DLkZhRSJ.js +1 -0
- writer/static/assets/vb-Btz91-7U.js +6 -0
- writer/static/assets/vega-embed.module-SNP5iNdJ.js +201 -0
- writer/static/assets/wgsl-D8V_buCG.js +303 -0
- writer/static/assets/xml-C_6-t1tb.js +6 -0
- writer/static/assets/yaml-DIw8G7jk.js +6 -0
- writer/static/components/annotatedtext.svg +4 -0
- writer/static/components/avatar.svg +4 -0
- writer/static/components/blueprints_addtostatelist.svg +4 -0
- writer/static/components/blueprints_apitrigger.svg +4 -0
- writer/static/components/blueprints_calleventhandler.svg +9 -0
- writer/static/components/blueprints_category_Logic.svg +4 -0
- writer/static/components/blueprints_category_Other.svg +4 -0
- writer/static/components/blueprints_category_Triggers.svg +4 -0
- writer/static/components/blueprints_category_Writer.svg +25 -0
- writer/static/components/blueprints_code.svg +9 -0
- writer/static/components/blueprints_crontrigger.svg +6 -0
- writer/static/components/blueprints_foreach.svg +4 -0
- writer/static/components/blueprints_httprequest.svg +11 -0
- writer/static/components/blueprints_logmessage.svg +11 -0
- writer/static/components/blueprints_parsejson.svg +4 -0
- writer/static/components/blueprints_returnvalue.svg +4 -0
- writer/static/components/blueprints_runblueprint.svg +4 -0
- writer/static/components/blueprints_setstate.svg +4 -0
- writer/static/components/blueprints_uieventtrigger.svg +4 -0
- writer/static/components/blueprints_writeraddchatmessage.svg +19 -0
- writer/static/components/blueprints_writeraddtokg.svg +19 -0
- writer/static/components/blueprints_writerchat.svg +11 -0
- writer/static/components/blueprints_writerchatreply.svg +19 -0
- writer/static/components/blueprints_writerclassification.svg +24 -0
- writer/static/components/blueprints_writercompletion.svg +14 -0
- writer/static/components/blueprints_writerinitchat.svg +11 -0
- writer/static/components/blueprints_writernocodeapp.svg +14 -0
- writer/static/components/button.svg +4 -0
- writer/static/components/category_Content.svg +4 -0
- writer/static/components/category_Embed.svg +4 -0
- writer/static/components/category_Input.svg +5 -0
- writer/static/components/category_Layout.svg +9 -0
- writer/static/components/category_Other.svg +4 -0
- writer/static/components/chatbot.svg +4 -0
- writer/static/components/checkboxinput.svg +4 -0
- writer/static/components/colorinput.svg +11 -0
- writer/static/components/column.svg +4 -0
- writer/static/components/columns.svg +4 -0
- writer/static/components/dataframe.svg +4 -0
- writer/static/components/dateinput.svg +4 -0
- writer/static/components/dropdowninput.svg +5 -0
- writer/static/components/fileinput.svg +4 -0
- writer/static/components/googlemaps.svg +4 -0
- writer/static/components/header.svg +4 -0
- writer/static/components/heading.svg +9 -0
- writer/static/components/horizontalstack.svg +4 -0
- writer/static/components/html.svg +9 -0
- writer/static/components/icon.svg +4 -0
- writer/static/components/iframe.svg +4 -0
- writer/static/components/image.svg +11 -0
- writer/static/components/jsonviewer.svg +4 -0
- writer/static/components/link.svg +12 -0
- writer/static/components/mapbox.svg +4 -0
- writer/static/components/message.svg +4 -0
- writer/static/components/metric.svg +4 -0
- writer/static/components/multiselectinput.svg +4 -0
- writer/static/components/numberinput.svg +4 -0
- writer/static/components/page.svg +50 -0
- writer/static/components/pagination.svg +4 -0
- writer/static/components/pdf.svg +4 -0
- writer/static/components/plotlygraph.svg +7 -0
- writer/static/components/progressbar.svg +5 -0
- writer/static/components/radioinput.svg +4 -0
- writer/static/components/rangeinput.svg +4 -0
- writer/static/components/ratinginput.svg +4 -0
- writer/static/components/repeater.svg +4 -0
- writer/static/components/reuse.svg +4 -0
- writer/static/components/section.svg +4 -0
- writer/static/components/selectinput.svg +5 -0
- writer/static/components/separator.svg +4 -0
- writer/static/components/sidebar.svg +4 -0
- writer/static/components/sliderinput.svg +4 -0
- writer/static/components/step.svg +4 -0
- writer/static/components/steps.svg +4 -0
- writer/static/components/switchinput.svg +4 -0
- writer/static/components/tab.svg +4 -0
- writer/static/components/tabs.svg +4 -0
- writer/static/components/tags.svg +11 -0
- writer/static/components/text.svg +4 -0
- writer/static/components/textareainput.svg +11 -0
- writer/static/components/textinput.svg +4 -0
- writer/static/components/timeinput.svg +4 -0
- writer/static/components/timer.svg +4 -0
- writer/static/components/vegalitechart.svg +7 -0
- writer/static/components/videoplayer.svg +11 -0
- writer/static/components/webcamcapture.svg +4 -0
- writer/static/favicon.png +0 -0
- writer/static/index.html +84 -0
- writer/static/status/cancelled.svg +5 -0
- writer/static/status/error.svg +5 -0
- writer/static/status/skipped.svg +4 -0
- writer/static/status/stopped.svg +4 -0
- writer/static/status/success.svg +4 -0
- writer/sync.py +431 -0
- writer/ui.py +2268 -0
- writer/vault.py +48 -0
- writer/wf_project.py +90 -66
- writer-1.25.1rc1.dist-info/METADATA +92 -0
- writer-1.25.1rc1.dist-info/RECORD +382 -0
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info}/WHEEL +1 -1
- writer/blocks/runworkflow.py +0 -59
- writer/workflows.py +0 -183
- writer-0.8.3rc4.dist-info/METADATA +0 -117
- writer-0.8.3rc4.dist-info/RECORD +0 -44
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info}/entry_points.txt +0 -0
- {writer-0.8.3rc4.dist-info → writer-1.25.1rc1.dist-info/licenses}/LICENSE.txt +0 -0
writer/ui.py
ADDED
|
@@ -0,0 +1,2268 @@
|
|
|
1
|
+
# This file is auto-generated by src/ui/tools/generator_python_ui.mjs.
|
|
2
|
+
# Any manual changes made to this file may be overwritten
|
|
3
|
+
from typing import TypedDict, Union, Optional, Dict, Callable
|
|
4
|
+
from writer.ui_manager import WriterUI
|
|
5
|
+
from writer.core_ui import Component
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
RootProps = TypedDict('RootProps', {
|
|
9
|
+
"appName": str,
|
|
10
|
+
"cssClasses": str,
|
|
11
|
+
"buttonColor": str,
|
|
12
|
+
"buttonShadow": str,
|
|
13
|
+
"accentColor": str,
|
|
14
|
+
"contentPadding": str,
|
|
15
|
+
"primaryTextColor": str,
|
|
16
|
+
"buttonTextColor": str,
|
|
17
|
+
"emptinessColor": str,
|
|
18
|
+
"containerShadow": str,
|
|
19
|
+
"secondaryTextColor": str,
|
|
20
|
+
"separatorColor": str,
|
|
21
|
+
"contentVAlign": str,
|
|
22
|
+
"contentHAlign": str,
|
|
23
|
+
"contentWidth": str
|
|
24
|
+
}, total=False)
|
|
25
|
+
|
|
26
|
+
RootEventHandlers = TypedDict('RootEventHandlers', {
|
|
27
|
+
"wf-app-open": Union[str, Callable],
|
|
28
|
+
"wf-hashchange": Union[str, Callable]
|
|
29
|
+
}, total=False)
|
|
30
|
+
|
|
31
|
+
PageProps = TypedDict('PageProps', {
|
|
32
|
+
"key": str,
|
|
33
|
+
"pageMode": str,
|
|
34
|
+
"accentColor": str,
|
|
35
|
+
"primaryTextColor": str,
|
|
36
|
+
"secondaryTextColor": str,
|
|
37
|
+
"emptinessColor": str,
|
|
38
|
+
"containerBackgroundColor": str,
|
|
39
|
+
"containerShadow": str,
|
|
40
|
+
"separatorColor": str,
|
|
41
|
+
"buttonColor": str,
|
|
42
|
+
"buttonTextColor": str,
|
|
43
|
+
"buttonShadow": str,
|
|
44
|
+
"cssClasses": str
|
|
45
|
+
}, total=False)
|
|
46
|
+
|
|
47
|
+
PageEventHandlers = TypedDict('PageEventHandlers', {
|
|
48
|
+
"wf-keydown": Union[str, Callable],
|
|
49
|
+
"wf-page-open": Union[str, Callable]
|
|
50
|
+
}, total=False)
|
|
51
|
+
|
|
52
|
+
SidebarProps = TypedDict('SidebarProps', {
|
|
53
|
+
"startCollapsed": str,
|
|
54
|
+
"sidebarBackgroundColor": str,
|
|
55
|
+
"accentColor": str,
|
|
56
|
+
"primaryTextColor": str,
|
|
57
|
+
"secondaryTextColor": str,
|
|
58
|
+
"containerBackgroundColor": str,
|
|
59
|
+
"containerShadow": str,
|
|
60
|
+
"separatorColor": str,
|
|
61
|
+
"buttonColor": str,
|
|
62
|
+
"buttonTextColor": str,
|
|
63
|
+
"buttonShadow": str,
|
|
64
|
+
"cssClasses": str
|
|
65
|
+
}, total=False)
|
|
66
|
+
|
|
67
|
+
SidebarEventHandlers = TypedDict('SidebarEventHandlers', {
|
|
68
|
+
}, total=False)
|
|
69
|
+
|
|
70
|
+
ButtonProps = TypedDict('ButtonProps', {
|
|
71
|
+
"text": str,
|
|
72
|
+
"lucideIcon": str,
|
|
73
|
+
"isDisabled": str,
|
|
74
|
+
"buttonColor": str,
|
|
75
|
+
"buttonTextColor": str,
|
|
76
|
+
"buttonShadow": str,
|
|
77
|
+
"separatorColor": str,
|
|
78
|
+
"cssClasses": str
|
|
79
|
+
}, total=False)
|
|
80
|
+
|
|
81
|
+
ButtonEventHandlers = TypedDict('ButtonEventHandlers', {
|
|
82
|
+
"wf-click": Union[str, Callable]
|
|
83
|
+
}, total=False)
|
|
84
|
+
|
|
85
|
+
TextProps = TypedDict('TextProps', {
|
|
86
|
+
"text": str,
|
|
87
|
+
"useMarkdown": str,
|
|
88
|
+
"alignment": str,
|
|
89
|
+
"quickCopy": str,
|
|
90
|
+
"primaryTextColor": str,
|
|
91
|
+
"cssClasses": str
|
|
92
|
+
}, total=False)
|
|
93
|
+
|
|
94
|
+
TextEventHandlers = TypedDict('TextEventHandlers', {
|
|
95
|
+
"wf-click": Union[str, Callable]
|
|
96
|
+
}, total=False)
|
|
97
|
+
|
|
98
|
+
SectionProps = TypedDict('SectionProps', {
|
|
99
|
+
"title": str,
|
|
100
|
+
"isCollapsible": str,
|
|
101
|
+
"startCollapsed": str,
|
|
102
|
+
"accentColor": str,
|
|
103
|
+
"primaryTextColor": str,
|
|
104
|
+
"secondaryTextColor": str,
|
|
105
|
+
"containerBackgroundColor": str,
|
|
106
|
+
"containerShadow": str,
|
|
107
|
+
"separatorColor": str,
|
|
108
|
+
"buttonColor": str,
|
|
109
|
+
"buttonTextColor": str,
|
|
110
|
+
"buttonShadow": str,
|
|
111
|
+
"contentPadding": str,
|
|
112
|
+
"contentHAlign": str,
|
|
113
|
+
"cssClasses": str
|
|
114
|
+
}, total=False)
|
|
115
|
+
|
|
116
|
+
SectionEventHandlers = TypedDict('SectionEventHandlers', {
|
|
117
|
+
}, total=False)
|
|
118
|
+
|
|
119
|
+
HeaderProps = TypedDict('HeaderProps', {
|
|
120
|
+
"text": str,
|
|
121
|
+
"primaryTextColor": str,
|
|
122
|
+
"cssClasses": str
|
|
123
|
+
}, total=False)
|
|
124
|
+
|
|
125
|
+
HeaderEventHandlers = TypedDict('HeaderEventHandlers', {
|
|
126
|
+
}, total=False)
|
|
127
|
+
|
|
128
|
+
HeadingProps = TypedDict('HeadingProps', {
|
|
129
|
+
"text": str,
|
|
130
|
+
"headingType": str,
|
|
131
|
+
"alignment": str,
|
|
132
|
+
"primaryTextColor": str,
|
|
133
|
+
"cssClasses": str
|
|
134
|
+
}, total=False)
|
|
135
|
+
|
|
136
|
+
HeadingEventHandlers = TypedDict('HeadingEventHandlers', {
|
|
137
|
+
}, total=False)
|
|
138
|
+
|
|
139
|
+
DataFrameProps = TypedDict('DataFrameProps', {
|
|
140
|
+
"dataframe": str,
|
|
141
|
+
"showIndex": str,
|
|
142
|
+
"enableSearch": str,
|
|
143
|
+
"enableRecordAdd": str,
|
|
144
|
+
"enableRecordUpdate": str,
|
|
145
|
+
"enableDownload": str,
|
|
146
|
+
"actions": Union[Dict, str],
|
|
147
|
+
"useMarkdown": str,
|
|
148
|
+
"displayRowCount": Union[float, str],
|
|
149
|
+
"wrapText": str,
|
|
150
|
+
"primaryTextColor": str,
|
|
151
|
+
"secondaryTextColor": str,
|
|
152
|
+
"accentColor": str,
|
|
153
|
+
"separatorColor": str,
|
|
154
|
+
"dataframeBackgroundColor": str,
|
|
155
|
+
"fontStyle": str,
|
|
156
|
+
"cssClasses": str
|
|
157
|
+
}, total=False)
|
|
158
|
+
|
|
159
|
+
DataFrameEventHandlers = TypedDict('DataFrameEventHandlers', {
|
|
160
|
+
"wf-dataframe-add": Union[str, Callable],
|
|
161
|
+
"wf-dataframe-update": Union[str, Callable],
|
|
162
|
+
"wf-dataframe-action": Union[str, Callable]
|
|
163
|
+
}, total=False)
|
|
164
|
+
|
|
165
|
+
HTMLElementProps = TypedDict('HTMLElementProps', {
|
|
166
|
+
"element": str,
|
|
167
|
+
"styles": Union[Dict, str],
|
|
168
|
+
"attrs": Union[Dict, str],
|
|
169
|
+
"htmlInside": str,
|
|
170
|
+
"cssClasses": str
|
|
171
|
+
}, total=False)
|
|
172
|
+
|
|
173
|
+
HTMLElementEventHandlers = TypedDict('HTMLElementEventHandlers', {
|
|
174
|
+
}, total=False)
|
|
175
|
+
|
|
176
|
+
PaginationProps = TypedDict('PaginationProps', {
|
|
177
|
+
"page": Union[float, str],
|
|
178
|
+
"pageSize": Union[float, str],
|
|
179
|
+
"totalItems": Union[float, str],
|
|
180
|
+
"pageSizeOptions": str,
|
|
181
|
+
"pageSizeShowAll": str,
|
|
182
|
+
"jumpTo": str
|
|
183
|
+
}, total=False)
|
|
184
|
+
|
|
185
|
+
PaginationEventHandlers = TypedDict('PaginationEventHandlers', {
|
|
186
|
+
"wf-change-page": Union[str, Callable],
|
|
187
|
+
"wf-change-page-size": Union[str, Callable]
|
|
188
|
+
}, total=False)
|
|
189
|
+
|
|
190
|
+
RepeaterProps = TypedDict('RepeaterProps', {
|
|
191
|
+
"repeaterObject": Union[Dict, str],
|
|
192
|
+
"keyVariable": str,
|
|
193
|
+
"valueVariable": str
|
|
194
|
+
}, total=False)
|
|
195
|
+
|
|
196
|
+
RepeaterEventHandlers = TypedDict('RepeaterEventHandlers', {
|
|
197
|
+
}, total=False)
|
|
198
|
+
|
|
199
|
+
ColumnProps = TypedDict('ColumnProps', {
|
|
200
|
+
"title": str,
|
|
201
|
+
"width": Union[float, str],
|
|
202
|
+
"isSticky": str,
|
|
203
|
+
"isCollapsible": str,
|
|
204
|
+
"startCollapsed": str,
|
|
205
|
+
"separatorColor": str,
|
|
206
|
+
"contentPadding": str,
|
|
207
|
+
"contentHAlign": str,
|
|
208
|
+
"contentVAlign": str,
|
|
209
|
+
"cssClasses": str
|
|
210
|
+
}, total=False)
|
|
211
|
+
|
|
212
|
+
ColumnEventHandlers = TypedDict('ColumnEventHandlers', {
|
|
213
|
+
}, total=False)
|
|
214
|
+
|
|
215
|
+
ColumnContainerProps = TypedDict('ColumnContainerProps', {
|
|
216
|
+
"cssClasses": str
|
|
217
|
+
}, total=False)
|
|
218
|
+
|
|
219
|
+
ColumnContainerEventHandlers = TypedDict('ColumnContainerEventHandlers', {
|
|
220
|
+
}, total=False)
|
|
221
|
+
|
|
222
|
+
TabProps = TypedDict('TabProps', {
|
|
223
|
+
"name": str,
|
|
224
|
+
"contentPadding": str,
|
|
225
|
+
"contentHAlign": str,
|
|
226
|
+
"cssClasses": str
|
|
227
|
+
}, total=False)
|
|
228
|
+
|
|
229
|
+
TabEventHandlers = TypedDict('TabEventHandlers', {
|
|
230
|
+
}, total=False)
|
|
231
|
+
|
|
232
|
+
TabContainerProps = TypedDict('TabContainerProps', {
|
|
233
|
+
"accentColor": str,
|
|
234
|
+
"primaryTextColor": str,
|
|
235
|
+
"secondaryTextColor": str,
|
|
236
|
+
"containerBackgroundColor": str,
|
|
237
|
+
"containerShadow": str,
|
|
238
|
+
"separatorColor": str,
|
|
239
|
+
"buttonColor": str,
|
|
240
|
+
"buttonTextColor": str,
|
|
241
|
+
"buttonShadow": str,
|
|
242
|
+
"cssClasses": str
|
|
243
|
+
}, total=False)
|
|
244
|
+
|
|
245
|
+
TabContainerEventHandlers = TypedDict('TabContainerEventHandlers', {
|
|
246
|
+
"wf-tab-change": Union[str, Callable]
|
|
247
|
+
}, total=False)
|
|
248
|
+
|
|
249
|
+
LinkProps = TypedDict('LinkProps', {
|
|
250
|
+
"url": str,
|
|
251
|
+
"target": str,
|
|
252
|
+
"rel": str,
|
|
253
|
+
"text": str,
|
|
254
|
+
"primaryTextColor": str,
|
|
255
|
+
"cssClasses": str
|
|
256
|
+
}, total=False)
|
|
257
|
+
|
|
258
|
+
LinkEventHandlers = TypedDict('LinkEventHandlers', {
|
|
259
|
+
}, total=False)
|
|
260
|
+
|
|
261
|
+
HorizontalStackProps = TypedDict('HorizontalStackProps', {
|
|
262
|
+
"contentPadding": str,
|
|
263
|
+
"contentHAlign": str,
|
|
264
|
+
"contentVAlign": str,
|
|
265
|
+
"cssClasses": str
|
|
266
|
+
}, total=False)
|
|
267
|
+
|
|
268
|
+
HorizontalStackEventHandlers = TypedDict('HorizontalStackEventHandlers', {
|
|
269
|
+
}, total=False)
|
|
270
|
+
|
|
271
|
+
SeparatorProps = TypedDict('SeparatorProps', {
|
|
272
|
+
"separatorColor": str,
|
|
273
|
+
"cssClasses": str
|
|
274
|
+
}, total=False)
|
|
275
|
+
|
|
276
|
+
SeparatorEventHandlers = TypedDict('SeparatorEventHandlers', {
|
|
277
|
+
}, total=False)
|
|
278
|
+
|
|
279
|
+
ImageProps = TypedDict('ImageProps', {
|
|
280
|
+
"src": str,
|
|
281
|
+
"caption": str,
|
|
282
|
+
"maxWidth": Union[float, str],
|
|
283
|
+
"maxHeight": Union[float, str],
|
|
284
|
+
"secondaryTextColor": str,
|
|
285
|
+
"cssClasses": str
|
|
286
|
+
}, total=False)
|
|
287
|
+
|
|
288
|
+
ImageEventHandlers = TypedDict('ImageEventHandlers', {
|
|
289
|
+
"wf-click": Union[str, Callable]
|
|
290
|
+
}, total=False)
|
|
291
|
+
|
|
292
|
+
PDFProps = TypedDict('PDFProps', {
|
|
293
|
+
"source": str,
|
|
294
|
+
"highlights": Union[Dict, str],
|
|
295
|
+
"selectedMatch": Union[float, str],
|
|
296
|
+
"page": Union[float, str],
|
|
297
|
+
"controls": str,
|
|
298
|
+
"containerBackgroundColor": str,
|
|
299
|
+
"separatorColor": str,
|
|
300
|
+
"primaryTextColor": str,
|
|
301
|
+
"cssClasses": str
|
|
302
|
+
}, total=False)
|
|
303
|
+
|
|
304
|
+
PDFEventHandlers = TypedDict('PDFEventHandlers', {
|
|
305
|
+
}, total=False)
|
|
306
|
+
|
|
307
|
+
IFrameProps = TypedDict('IFrameProps', {
|
|
308
|
+
"src": str,
|
|
309
|
+
"referrerPolicy": str,
|
|
310
|
+
"separatorColor": str,
|
|
311
|
+
"cssClasses": str
|
|
312
|
+
}, total=False)
|
|
313
|
+
|
|
314
|
+
IFrameEventHandlers = TypedDict('IFrameEventHandlers', {
|
|
315
|
+
"wf-load": Union[str, Callable]
|
|
316
|
+
}, total=False)
|
|
317
|
+
|
|
318
|
+
GoogleMapsProps = TypedDict('GoogleMapsProps', {
|
|
319
|
+
"apiKey": str,
|
|
320
|
+
"mapId": str,
|
|
321
|
+
"mapType": str,
|
|
322
|
+
"zoom": Union[float, str],
|
|
323
|
+
"lat": Union[float, str],
|
|
324
|
+
"lng": Union[float, str],
|
|
325
|
+
"markers": Union[Dict, str],
|
|
326
|
+
"cssClasses": str
|
|
327
|
+
}, total=False)
|
|
328
|
+
|
|
329
|
+
GoogleMapsEventHandlers = TypedDict('GoogleMapsEventHandlers', {
|
|
330
|
+
"gmap-marker-click": Union[str, Callable],
|
|
331
|
+
"gmap-click": Union[str, Callable]
|
|
332
|
+
}, total=False)
|
|
333
|
+
|
|
334
|
+
MapboxProps = TypedDict('MapboxProps', {
|
|
335
|
+
"accessToken": str,
|
|
336
|
+
"mapStyle": str,
|
|
337
|
+
"zoom": Union[float, str],
|
|
338
|
+
"lat": Union[float, str],
|
|
339
|
+
"lng": Union[float, str],
|
|
340
|
+
"markers": Union[Dict, str],
|
|
341
|
+
"controls": str,
|
|
342
|
+
"cssClasses": str
|
|
343
|
+
}, total=False)
|
|
344
|
+
|
|
345
|
+
MapboxEventHandlers = TypedDict('MapboxEventHandlers', {
|
|
346
|
+
"mapbox-marker-click": Union[str, Callable],
|
|
347
|
+
"mapbox-click": Union[str, Callable]
|
|
348
|
+
}, total=False)
|
|
349
|
+
|
|
350
|
+
TimerProps = TypedDict('TimerProps', {
|
|
351
|
+
"intervalMs": Union[float, str],
|
|
352
|
+
"isActive": str,
|
|
353
|
+
"accentColor": str,
|
|
354
|
+
"cssClasses": str
|
|
355
|
+
}, total=False)
|
|
356
|
+
|
|
357
|
+
TimerEventHandlers = TypedDict('TimerEventHandlers', {
|
|
358
|
+
"wf-tick": Union[str, Callable]
|
|
359
|
+
}, total=False)
|
|
360
|
+
|
|
361
|
+
TextInputProps = TypedDict('TextInputProps', {
|
|
362
|
+
"label": str,
|
|
363
|
+
"placeholder": str,
|
|
364
|
+
"passwordMode": str,
|
|
365
|
+
"accentColor": str,
|
|
366
|
+
"cssClasses": str
|
|
367
|
+
}, total=False)
|
|
368
|
+
|
|
369
|
+
TextInputEventHandlers = TypedDict('TextInputEventHandlers', {
|
|
370
|
+
"wf-change": Union[str, Callable],
|
|
371
|
+
"wf-change-finish": Union[str, Callable]
|
|
372
|
+
}, total=False)
|
|
373
|
+
|
|
374
|
+
TextInputBindings = TypedDict('TextInputBindings', {
|
|
375
|
+
"wf-change": str
|
|
376
|
+
}, total=False)
|
|
377
|
+
|
|
378
|
+
TextareaInputProps = TypedDict('TextareaInputProps', {
|
|
379
|
+
"label": str,
|
|
380
|
+
"placeholder": str,
|
|
381
|
+
"rows": Union[float, str],
|
|
382
|
+
"cssClasses": str
|
|
383
|
+
}, total=False)
|
|
384
|
+
|
|
385
|
+
TextareaInputEventHandlers = TypedDict('TextareaInputEventHandlers', {
|
|
386
|
+
"wf-change": Union[str, Callable],
|
|
387
|
+
"wf-change-finish": Union[str, Callable]
|
|
388
|
+
}, total=False)
|
|
389
|
+
|
|
390
|
+
TextareaInputBindings = TypedDict('TextareaInputBindings', {
|
|
391
|
+
"wf-change": str
|
|
392
|
+
}, total=False)
|
|
393
|
+
|
|
394
|
+
NumberInputProps = TypedDict('NumberInputProps', {
|
|
395
|
+
"label": str,
|
|
396
|
+
"placeholder": str,
|
|
397
|
+
"minValue": Union[float, str],
|
|
398
|
+
"maxValue": Union[float, str],
|
|
399
|
+
"valueStep": Union[float, str],
|
|
400
|
+
"cssClasses": str
|
|
401
|
+
}, total=False)
|
|
402
|
+
|
|
403
|
+
NumberInputEventHandlers = TypedDict('NumberInputEventHandlers', {
|
|
404
|
+
"wf-number-change": Union[str, Callable],
|
|
405
|
+
"wf-number-change-finish": Union[str, Callable]
|
|
406
|
+
}, total=False)
|
|
407
|
+
|
|
408
|
+
NumberInputBindings = TypedDict('NumberInputBindings', {
|
|
409
|
+
"wf-number-change": str
|
|
410
|
+
}, total=False)
|
|
411
|
+
|
|
412
|
+
SliderInputProps = TypedDict('SliderInputProps', {
|
|
413
|
+
"label": str,
|
|
414
|
+
"minValue": Union[float, str],
|
|
415
|
+
"maxValue": Union[float, str],
|
|
416
|
+
"stepSize": Union[float, str],
|
|
417
|
+
"accentColor": str,
|
|
418
|
+
"popoverColor": str,
|
|
419
|
+
"popoverBackgroundColor": str,
|
|
420
|
+
"cssClasses": str
|
|
421
|
+
}, total=False)
|
|
422
|
+
|
|
423
|
+
SliderInputEventHandlers = TypedDict('SliderInputEventHandlers', {
|
|
424
|
+
"wf-number-change": Union[str, Callable]
|
|
425
|
+
}, total=False)
|
|
426
|
+
|
|
427
|
+
SliderInputBindings = TypedDict('SliderInputBindings', {
|
|
428
|
+
"wf-number-change": str
|
|
429
|
+
}, total=False)
|
|
430
|
+
|
|
431
|
+
SliderRangeInputProps = TypedDict('SliderRangeInputProps', {
|
|
432
|
+
"label": str,
|
|
433
|
+
"minValue": Union[float, str],
|
|
434
|
+
"maxValue": Union[float, str],
|
|
435
|
+
"stepSize": Union[float, str],
|
|
436
|
+
"accentColor": str,
|
|
437
|
+
"popoverColor": str,
|
|
438
|
+
"popoverBackgroundColor": str,
|
|
439
|
+
"cssClasses": str
|
|
440
|
+
}, total=False)
|
|
441
|
+
|
|
442
|
+
SliderRangeInputEventHandlers = TypedDict('SliderRangeInputEventHandlers', {
|
|
443
|
+
"wf-range-change": Union[str, Callable]
|
|
444
|
+
}, total=False)
|
|
445
|
+
|
|
446
|
+
SliderRangeInputBindings = TypedDict('SliderRangeInputBindings', {
|
|
447
|
+
"wf-range-change": str
|
|
448
|
+
}, total=False)
|
|
449
|
+
|
|
450
|
+
ColorInputProps = TypedDict('ColorInputProps', {
|
|
451
|
+
"label": str,
|
|
452
|
+
"colorList": Union[Dict, str],
|
|
453
|
+
"cssClasses": str
|
|
454
|
+
}, total=False)
|
|
455
|
+
|
|
456
|
+
ColorInputEventHandlers = TypedDict('ColorInputEventHandlers', {
|
|
457
|
+
"wf-change": Union[str, Callable],
|
|
458
|
+
"wf-change-finish": Union[str, Callable]
|
|
459
|
+
}, total=False)
|
|
460
|
+
|
|
461
|
+
ColorInputBindings = TypedDict('ColorInputBindings', {
|
|
462
|
+
"wf-change": str
|
|
463
|
+
}, total=False)
|
|
464
|
+
|
|
465
|
+
DateInputProps = TypedDict('DateInputProps', {
|
|
466
|
+
"label": str,
|
|
467
|
+
"cssClasses": str
|
|
468
|
+
}, total=False)
|
|
469
|
+
|
|
470
|
+
DateInputEventHandlers = TypedDict('DateInputEventHandlers', {
|
|
471
|
+
"wf-date-change": Union[str, Callable]
|
|
472
|
+
}, total=False)
|
|
473
|
+
|
|
474
|
+
DateInputBindings = TypedDict('DateInputBindings', {
|
|
475
|
+
"wf-date-change": str
|
|
476
|
+
}, total=False)
|
|
477
|
+
|
|
478
|
+
TimeInputProps = TypedDict('TimeInputProps', {
|
|
479
|
+
"label": str,
|
|
480
|
+
"cssClasses": str
|
|
481
|
+
}, total=False)
|
|
482
|
+
|
|
483
|
+
TimeInputEventHandlers = TypedDict('TimeInputEventHandlers', {
|
|
484
|
+
"wf-time-change": Union[str, Callable]
|
|
485
|
+
}, total=False)
|
|
486
|
+
|
|
487
|
+
TimeInputBindings = TypedDict('TimeInputBindings', {
|
|
488
|
+
"wf-time-change": str
|
|
489
|
+
}, total=False)
|
|
490
|
+
|
|
491
|
+
RadioInputProps = TypedDict('RadioInputProps', {
|
|
492
|
+
"label": str,
|
|
493
|
+
"options": Union[Dict, str],
|
|
494
|
+
"orientation": str,
|
|
495
|
+
"primaryTextColor": str,
|
|
496
|
+
"accentColor": str,
|
|
497
|
+
"cssClasses": str
|
|
498
|
+
}, total=False)
|
|
499
|
+
|
|
500
|
+
RadioInputEventHandlers = TypedDict('RadioInputEventHandlers', {
|
|
501
|
+
"wf-option-change": Union[str, Callable]
|
|
502
|
+
}, total=False)
|
|
503
|
+
|
|
504
|
+
RadioInputBindings = TypedDict('RadioInputBindings', {
|
|
505
|
+
"wf-option-change": str
|
|
506
|
+
}, total=False)
|
|
507
|
+
|
|
508
|
+
CheckboxInputProps = TypedDict('CheckboxInputProps', {
|
|
509
|
+
"label": str,
|
|
510
|
+
"options": Union[Dict, str],
|
|
511
|
+
"orientation": str,
|
|
512
|
+
"primaryTextColor": str,
|
|
513
|
+
"accentColor": str,
|
|
514
|
+
"cssClasses": str
|
|
515
|
+
}, total=False)
|
|
516
|
+
|
|
517
|
+
CheckboxInputEventHandlers = TypedDict('CheckboxInputEventHandlers', {
|
|
518
|
+
"wf-options-change": Union[str, Callable]
|
|
519
|
+
}, total=False)
|
|
520
|
+
|
|
521
|
+
CheckboxInputBindings = TypedDict('CheckboxInputBindings', {
|
|
522
|
+
"wf-options-change": str
|
|
523
|
+
}, total=False)
|
|
524
|
+
|
|
525
|
+
DropdownInputProps = TypedDict('DropdownInputProps', {
|
|
526
|
+
"label": str,
|
|
527
|
+
"options": Union[Dict, str],
|
|
528
|
+
"cssClasses": str
|
|
529
|
+
}, total=False)
|
|
530
|
+
|
|
531
|
+
DropdownInputEventHandlers = TypedDict('DropdownInputEventHandlers', {
|
|
532
|
+
"wf-option-change": Union[str, Callable]
|
|
533
|
+
}, total=False)
|
|
534
|
+
|
|
535
|
+
DropdownInputBindings = TypedDict('DropdownInputBindings', {
|
|
536
|
+
"wf-option-change": str
|
|
537
|
+
}, total=False)
|
|
538
|
+
|
|
539
|
+
SelectInputProps = TypedDict('SelectInputProps', {
|
|
540
|
+
"label": str,
|
|
541
|
+
"allowMultiSelect": str,
|
|
542
|
+
"options": Union[Dict, str],
|
|
543
|
+
"placeholder": str,
|
|
544
|
+
"maximumCount": Union[float, str],
|
|
545
|
+
"accentColor": str,
|
|
546
|
+
"primaryTextColor": str,
|
|
547
|
+
"chipTextColor": str,
|
|
548
|
+
"containerBackgroundColor": str,
|
|
549
|
+
"separatorColor": str,
|
|
550
|
+
"cssClasses": str
|
|
551
|
+
}, total=False)
|
|
552
|
+
|
|
553
|
+
SelectInputEventHandlers = TypedDict('SelectInputEventHandlers', {
|
|
554
|
+
"wf-option-change": Union[str, Callable],
|
|
555
|
+
"wf-options-change": Union[str, Callable]
|
|
556
|
+
}, total=False)
|
|
557
|
+
|
|
558
|
+
SelectInputBindings = TypedDict('SelectInputBindings', {
|
|
559
|
+
"wf-option-change": str,
|
|
560
|
+
"wf-options-change": str
|
|
561
|
+
}, total=False)
|
|
562
|
+
|
|
563
|
+
MultiselectInputProps = TypedDict('MultiselectInputProps', {
|
|
564
|
+
"label": str,
|
|
565
|
+
"options": Union[Dict, str],
|
|
566
|
+
"placeholder": str,
|
|
567
|
+
"maximumCount": Union[float, str],
|
|
568
|
+
"accentColor": str,
|
|
569
|
+
"chipTextColor": str,
|
|
570
|
+
"primaryTextColor": str,
|
|
571
|
+
"containerBackgroundColor": str,
|
|
572
|
+
"separatorColor": str,
|
|
573
|
+
"cssClasses": str
|
|
574
|
+
}, total=False)
|
|
575
|
+
|
|
576
|
+
MultiselectInputEventHandlers = TypedDict('MultiselectInputEventHandlers', {
|
|
577
|
+
"wf-options-change": Union[str, Callable]
|
|
578
|
+
}, total=False)
|
|
579
|
+
|
|
580
|
+
MultiselectInputBindings = TypedDict('MultiselectInputBindings', {
|
|
581
|
+
"wf-options-change": str
|
|
582
|
+
}, total=False)
|
|
583
|
+
|
|
584
|
+
FileInputProps = TypedDict('FileInputProps', {
|
|
585
|
+
"label": str,
|
|
586
|
+
"allowFileTypes": str,
|
|
587
|
+
"allowMultipleFiles": str,
|
|
588
|
+
"cssClasses": str
|
|
589
|
+
}, total=False)
|
|
590
|
+
|
|
591
|
+
FileInputEventHandlers = TypedDict('FileInputEventHandlers', {
|
|
592
|
+
"wf-file-change": Union[str, Callable]
|
|
593
|
+
}, total=False)
|
|
594
|
+
|
|
595
|
+
FileInputBindings = TypedDict('FileInputBindings', {
|
|
596
|
+
"wf-file-change": str
|
|
597
|
+
}, total=False)
|
|
598
|
+
|
|
599
|
+
WebcamCaptureProps = TypedDict('WebcamCaptureProps', {
|
|
600
|
+
"refreshRate": Union[float, str],
|
|
601
|
+
"buttonColor": str,
|
|
602
|
+
"buttonTextColor": str,
|
|
603
|
+
"buttonShadow": str,
|
|
604
|
+
"separatorColor": str,
|
|
605
|
+
"cssClasses": str
|
|
606
|
+
}, total=False)
|
|
607
|
+
|
|
608
|
+
WebcamCaptureEventHandlers = TypedDict('WebcamCaptureEventHandlers', {
|
|
609
|
+
"wf-webcam": Union[str, Callable]
|
|
610
|
+
}, total=False)
|
|
611
|
+
|
|
612
|
+
VegaLiteChartProps = TypedDict('VegaLiteChartProps', {
|
|
613
|
+
"spec": Union[Dict, str],
|
|
614
|
+
"cssClasses": str
|
|
615
|
+
}, total=False)
|
|
616
|
+
|
|
617
|
+
VegaLiteChartEventHandlers = TypedDict('VegaLiteChartEventHandlers', {
|
|
618
|
+
}, total=False)
|
|
619
|
+
|
|
620
|
+
PlotlyGraphProps = TypedDict('PlotlyGraphProps', {
|
|
621
|
+
"spec": Union[Dict, str],
|
|
622
|
+
"cssClasses": str
|
|
623
|
+
}, total=False)
|
|
624
|
+
|
|
625
|
+
PlotlyGraphEventHandlers = TypedDict('PlotlyGraphEventHandlers', {
|
|
626
|
+
"plotly-click": Union[str, Callable],
|
|
627
|
+
"plotly-selected": Union[str, Callable],
|
|
628
|
+
"plotly-deselect": Union[str, Callable]
|
|
629
|
+
}, total=False)
|
|
630
|
+
|
|
631
|
+
MetricProps = TypedDict('MetricProps', {
|
|
632
|
+
"name": str,
|
|
633
|
+
"metricValue": str,
|
|
634
|
+
"description": str,
|
|
635
|
+
"note": str,
|
|
636
|
+
"primaryTextColor": str,
|
|
637
|
+
"secondaryTextColor": str,
|
|
638
|
+
"positiveColor": str,
|
|
639
|
+
"neutralColor": str,
|
|
640
|
+
"negativeColor": str,
|
|
641
|
+
"cssClasses": str
|
|
642
|
+
}, total=False)
|
|
643
|
+
|
|
644
|
+
MetricEventHandlers = TypedDict('MetricEventHandlers', {
|
|
645
|
+
}, total=False)
|
|
646
|
+
|
|
647
|
+
MessageProps = TypedDict('MessageProps', {
|
|
648
|
+
"message": str,
|
|
649
|
+
"successColor": str,
|
|
650
|
+
"errorColor": str,
|
|
651
|
+
"warningColor": str,
|
|
652
|
+
"infoColor": str,
|
|
653
|
+
"loadingColor": str,
|
|
654
|
+
"primaryTextColor": str,
|
|
655
|
+
"cssClasses": str
|
|
656
|
+
}, total=False)
|
|
657
|
+
|
|
658
|
+
MessageEventHandlers = TypedDict('MessageEventHandlers', {
|
|
659
|
+
}, total=False)
|
|
660
|
+
|
|
661
|
+
VideoPlayerProps = TypedDict('VideoPlayerProps', {
|
|
662
|
+
"src": str,
|
|
663
|
+
"controls": str,
|
|
664
|
+
"autoplay": str,
|
|
665
|
+
"loop": str,
|
|
666
|
+
"muted": str,
|
|
667
|
+
"cssClasses": str
|
|
668
|
+
}, total=False)
|
|
669
|
+
|
|
670
|
+
VideoPlayerEventHandlers = TypedDict('VideoPlayerEventHandlers', {
|
|
671
|
+
}, total=False)
|
|
672
|
+
|
|
673
|
+
ChatbotProps = TypedDict('ChatbotProps', {
|
|
674
|
+
"conversation": Union[Dict, str],
|
|
675
|
+
"assistantInitials": str,
|
|
676
|
+
"userInitials": str,
|
|
677
|
+
"useMarkdown": str,
|
|
678
|
+
"enableFileUpload": str,
|
|
679
|
+
"enableImagePaste": str,
|
|
680
|
+
"placeholder": str,
|
|
681
|
+
"assistantRoleColor": str,
|
|
682
|
+
"userRoleColor": str,
|
|
683
|
+
"avatarBackgroundColor": str,
|
|
684
|
+
"avatarTextColor": str,
|
|
685
|
+
"accentColor": str,
|
|
686
|
+
"containerBackgroundColor": str,
|
|
687
|
+
"primaryTextColor": str,
|
|
688
|
+
"secondaryTextColor": str,
|
|
689
|
+
"separatorColor": str,
|
|
690
|
+
"buttonColor": str,
|
|
691
|
+
"buttonTextColor": str,
|
|
692
|
+
"cssClasses": str
|
|
693
|
+
}, total=False)
|
|
694
|
+
|
|
695
|
+
ChatbotEventHandlers = TypedDict('ChatbotEventHandlers', {
|
|
696
|
+
"wf-chatbot-message": Union[str, Callable],
|
|
697
|
+
"wf-chatbot-action-click": Union[str, Callable],
|
|
698
|
+
"wf-file-change": Union[str, Callable]
|
|
699
|
+
}, total=False)
|
|
700
|
+
|
|
701
|
+
StepProps = TypedDict('StepProps', {
|
|
702
|
+
"name": str,
|
|
703
|
+
"contentPadding": str,
|
|
704
|
+
"isCompleted": str,
|
|
705
|
+
"contentHAlign": str,
|
|
706
|
+
"cssClasses": str
|
|
707
|
+
}, total=False)
|
|
708
|
+
|
|
709
|
+
StepEventHandlers = TypedDict('StepEventHandlers', {
|
|
710
|
+
}, total=False)
|
|
711
|
+
|
|
712
|
+
StepContainerProps = TypedDict('StepContainerProps', {
|
|
713
|
+
"accentColor": str,
|
|
714
|
+
"primaryTextColor": str,
|
|
715
|
+
"secondaryTextColor": str,
|
|
716
|
+
"containerBackgroundColor": str,
|
|
717
|
+
"containerShadow": str,
|
|
718
|
+
"separatorColor": str,
|
|
719
|
+
"buttonColor": str,
|
|
720
|
+
"buttonTextColor": str,
|
|
721
|
+
"buttonShadow": str,
|
|
722
|
+
"cssClasses": str
|
|
723
|
+
}, total=False)
|
|
724
|
+
|
|
725
|
+
StepContainerEventHandlers = TypedDict('StepContainerEventHandlers', {
|
|
726
|
+
}, total=False)
|
|
727
|
+
|
|
728
|
+
RatingInputProps = TypedDict('RatingInputProps', {
|
|
729
|
+
"label": str,
|
|
730
|
+
"feedback": str,
|
|
731
|
+
"minValue": Union[float, str],
|
|
732
|
+
"maxValue": Union[float, str],
|
|
733
|
+
"valueStep": Union[float, str],
|
|
734
|
+
"accentColor": str,
|
|
735
|
+
"primaryTextColor": str,
|
|
736
|
+
"cssClasses": str
|
|
737
|
+
}, total=False)
|
|
738
|
+
|
|
739
|
+
RatingInputEventHandlers = TypedDict('RatingInputEventHandlers', {
|
|
740
|
+
"wf-number-change": Union[str, Callable]
|
|
741
|
+
}, total=False)
|
|
742
|
+
|
|
743
|
+
RatingInputBindings = TypedDict('RatingInputBindings', {
|
|
744
|
+
"wf-number-change": str
|
|
745
|
+
}, total=False)
|
|
746
|
+
|
|
747
|
+
TagsProps = TypedDict('TagsProps', {
|
|
748
|
+
"tags": Union[Dict, str],
|
|
749
|
+
"referenceColor": str,
|
|
750
|
+
"seed": Union[float, str],
|
|
751
|
+
"rotateHue": str,
|
|
752
|
+
"primaryTextColor": str,
|
|
753
|
+
"cssClasses": str
|
|
754
|
+
}, total=False)
|
|
755
|
+
|
|
756
|
+
TagsEventHandlers = TypedDict('TagsEventHandlers', {
|
|
757
|
+
"wf-tag-click": Union[str, Callable]
|
|
758
|
+
}, total=False)
|
|
759
|
+
|
|
760
|
+
SwitchInputProps = TypedDict('SwitchInputProps', {
|
|
761
|
+
"label": str,
|
|
762
|
+
"accentColor": str,
|
|
763
|
+
"primaryTextColor": str,
|
|
764
|
+
"separatorColor": str,
|
|
765
|
+
"cssClasses": str
|
|
766
|
+
}, total=False)
|
|
767
|
+
|
|
768
|
+
SwitchInputEventHandlers = TypedDict('SwitchInputEventHandlers', {
|
|
769
|
+
"wf-toggle": Union[str, Callable]
|
|
770
|
+
}, total=False)
|
|
771
|
+
|
|
772
|
+
SwitchInputBindings = TypedDict('SwitchInputBindings', {
|
|
773
|
+
"wf-toggle": str
|
|
774
|
+
}, total=False)
|
|
775
|
+
|
|
776
|
+
ReuseComponentProps = TypedDict('ReuseComponentProps', {
|
|
777
|
+
"proxyId": str
|
|
778
|
+
}, total=False)
|
|
779
|
+
|
|
780
|
+
ReuseComponentEventHandlers = TypedDict('ReuseComponentEventHandlers', {
|
|
781
|
+
}, total=False)
|
|
782
|
+
|
|
783
|
+
AvatarProps = TypedDict('AvatarProps', {
|
|
784
|
+
"name": str,
|
|
785
|
+
"imageSrc": str,
|
|
786
|
+
"caption": str,
|
|
787
|
+
"size": str,
|
|
788
|
+
"orientation": str,
|
|
789
|
+
"primaryTextColor": str,
|
|
790
|
+
"secondaryTextColor": str,
|
|
791
|
+
"separatorColor": str,
|
|
792
|
+
"cssClasses": str
|
|
793
|
+
}, total=False)
|
|
794
|
+
|
|
795
|
+
AvatarEventHandlers = TypedDict('AvatarEventHandlers', {
|
|
796
|
+
"wf-click": Union[str, Callable]
|
|
797
|
+
}, total=False)
|
|
798
|
+
|
|
799
|
+
AnnotatedtextProps = TypedDict('AnnotatedtextProps', {
|
|
800
|
+
"text": Union[Dict, str],
|
|
801
|
+
"referenceColor": str,
|
|
802
|
+
"seed": Union[float, str],
|
|
803
|
+
"rotateHue": str,
|
|
804
|
+
"useMarkdown": str,
|
|
805
|
+
"copyButtons": str,
|
|
806
|
+
"buttonColor": str,
|
|
807
|
+
"buttonTextColor": str,
|
|
808
|
+
"primaryTextColor": str,
|
|
809
|
+
"cssClasses": str
|
|
810
|
+
}, total=False)
|
|
811
|
+
|
|
812
|
+
AnnotatedtextEventHandlers = TypedDict('AnnotatedtextEventHandlers', {
|
|
813
|
+
}, total=False)
|
|
814
|
+
|
|
815
|
+
JSONViewerProps = TypedDict('JSONViewerProps', {
|
|
816
|
+
"data": Union[Dict, str],
|
|
817
|
+
"initialDepth": Union[float, str],
|
|
818
|
+
"hideRoot": str,
|
|
819
|
+
"copy": str,
|
|
820
|
+
"jsonViewerIndentationSpacing": str,
|
|
821
|
+
"secondaryTextColor": str,
|
|
822
|
+
"separatorColor": str,
|
|
823
|
+
"cssClasses": str
|
|
824
|
+
}, total=False)
|
|
825
|
+
|
|
826
|
+
JSONViewerEventHandlers = TypedDict('JSONViewerEventHandlers', {
|
|
827
|
+
}, total=False)
|
|
828
|
+
|
|
829
|
+
BlueprintsRootProps = TypedDict('BlueprintsRootProps', {
|
|
830
|
+
}, total=False)
|
|
831
|
+
|
|
832
|
+
BlueprintsRootEventHandlers = TypedDict('BlueprintsRootEventHandlers', {
|
|
833
|
+
}, total=False)
|
|
834
|
+
|
|
835
|
+
BlueprintProps = TypedDict('BlueprintProps', {
|
|
836
|
+
"key": str
|
|
837
|
+
}, total=False)
|
|
838
|
+
|
|
839
|
+
BlueprintEventHandlers = TypedDict('BlueprintEventHandlers', {
|
|
840
|
+
}, total=False)
|
|
841
|
+
|
|
842
|
+
ProgressBarProps = TypedDict('ProgressBarProps', {
|
|
843
|
+
"label": str,
|
|
844
|
+
"value": Union[float, str],
|
|
845
|
+
"min": Union[float, str],
|
|
846
|
+
"max": Union[float, str],
|
|
847
|
+
"displayPercentage": str,
|
|
848
|
+
"accentColor": str,
|
|
849
|
+
"primaryTextColor": str,
|
|
850
|
+
"separatorColor": str,
|
|
851
|
+
"cssClasses": str
|
|
852
|
+
}, total=False)
|
|
853
|
+
|
|
854
|
+
ProgressBarEventHandlers = TypedDict('ProgressBarEventHandlers', {
|
|
855
|
+
"wf-click": Union[str, Callable]
|
|
856
|
+
}, total=False)
|
|
857
|
+
|
|
858
|
+
NoteProps = TypedDict('NoteProps', {
|
|
859
|
+
"parentInstancePath": str,
|
|
860
|
+
"content": str,
|
|
861
|
+
"createdAt": str,
|
|
862
|
+
"createdBy": Union[float, str]
|
|
863
|
+
}, total=False)
|
|
864
|
+
|
|
865
|
+
NoteEventHandlers = TypedDict('NoteEventHandlers', {
|
|
866
|
+
}, total=False)
|
|
867
|
+
|
|
868
|
+
class WriterUIManager(WriterUI):
|
|
869
|
+
"""The WriterUIManager class is intended to include dynamically-
|
|
870
|
+
generated methods corresponding to UI components defined in the Vue
|
|
871
|
+
frontend during the build process.
|
|
872
|
+
|
|
873
|
+
This class serves as a bridge for programmatically interacting with the
|
|
874
|
+
frontend, allowing methods to adapt to changes in the UI components without
|
|
875
|
+
manual updates.
|
|
876
|
+
"""
|
|
877
|
+
|
|
878
|
+
# Hardcoded classes for proof-of-concept purposes
|
|
879
|
+
|
|
880
|
+
@staticmethod
|
|
881
|
+
def Root(
|
|
882
|
+
content: RootProps = {},
|
|
883
|
+
*,
|
|
884
|
+
id: Optional[str] = None,
|
|
885
|
+
position: Optional[int] = None,
|
|
886
|
+
parentId: Optional[str] = None,
|
|
887
|
+
handlers: Optional[RootEventHandlers] = None,
|
|
888
|
+
visible: Optional[Union[bool, str]] = None,
|
|
889
|
+
) -> Component:
|
|
890
|
+
"""
|
|
891
|
+
The root component of the application, which serves as the starting point of the component hierarchy.
|
|
892
|
+
"""
|
|
893
|
+
component = WriterUI.create_container_component(
|
|
894
|
+
'root',
|
|
895
|
+
content=content,
|
|
896
|
+
id=id,
|
|
897
|
+
position=position,
|
|
898
|
+
parentId=parentId,
|
|
899
|
+
handlers=handlers,
|
|
900
|
+
visible=visible)
|
|
901
|
+
return component
|
|
902
|
+
|
|
903
|
+
@staticmethod
|
|
904
|
+
def Page(
|
|
905
|
+
content: PageProps = {},
|
|
906
|
+
*,
|
|
907
|
+
id: Optional[str] = None,
|
|
908
|
+
position: Optional[int] = None,
|
|
909
|
+
parentId: Optional[str] = None,
|
|
910
|
+
handlers: Optional[PageEventHandlers] = None,
|
|
911
|
+
visible: Optional[Union[bool, str]] = None,
|
|
912
|
+
) -> Component:
|
|
913
|
+
"""
|
|
914
|
+
A container component representing a single page within the application.
|
|
915
|
+
"""
|
|
916
|
+
component = WriterUI.create_container_component(
|
|
917
|
+
'page',
|
|
918
|
+
content=content,
|
|
919
|
+
id=id,
|
|
920
|
+
position=position,
|
|
921
|
+
parentId=parentId,
|
|
922
|
+
handlers=handlers,
|
|
923
|
+
visible=visible)
|
|
924
|
+
return component
|
|
925
|
+
|
|
926
|
+
@staticmethod
|
|
927
|
+
def Sidebar(
|
|
928
|
+
content: SidebarProps = {},
|
|
929
|
+
*,
|
|
930
|
+
id: Optional[str] = None,
|
|
931
|
+
position: Optional[int] = None,
|
|
932
|
+
parentId: Optional[str] = None,
|
|
933
|
+
handlers: Optional[SidebarEventHandlers] = None,
|
|
934
|
+
visible: Optional[Union[bool, str]] = None,
|
|
935
|
+
) -> Component:
|
|
936
|
+
"""
|
|
937
|
+
A container component that organizes its children in a sidebar. Its parent must be a Page component.
|
|
938
|
+
"""
|
|
939
|
+
component = WriterUI.create_container_component(
|
|
940
|
+
'sidebar',
|
|
941
|
+
content=content,
|
|
942
|
+
id=id,
|
|
943
|
+
position=position,
|
|
944
|
+
parentId=parentId,
|
|
945
|
+
handlers=handlers,
|
|
946
|
+
visible=visible)
|
|
947
|
+
return component
|
|
948
|
+
|
|
949
|
+
@staticmethod
|
|
950
|
+
def Button(
|
|
951
|
+
content: ButtonProps = {},
|
|
952
|
+
*,
|
|
953
|
+
id: Optional[str] = None,
|
|
954
|
+
position: Optional[int] = None,
|
|
955
|
+
parentId: Optional[str] = None,
|
|
956
|
+
handlers: Optional[ButtonEventHandlers] = None,
|
|
957
|
+
visible: Optional[Union[bool, str]] = None,
|
|
958
|
+
) -> Component:
|
|
959
|
+
"""
|
|
960
|
+
A standalone button component that can be linked to a click event handler.
|
|
961
|
+
"""
|
|
962
|
+
component = WriterUI.create_component(
|
|
963
|
+
'button',
|
|
964
|
+
content=content,
|
|
965
|
+
id=id,
|
|
966
|
+
position=position,
|
|
967
|
+
parentId=parentId,
|
|
968
|
+
handlers=handlers,
|
|
969
|
+
visible=visible)
|
|
970
|
+
return component
|
|
971
|
+
|
|
972
|
+
@staticmethod
|
|
973
|
+
def Text(
|
|
974
|
+
content: TextProps = {},
|
|
975
|
+
*,
|
|
976
|
+
id: Optional[str] = None,
|
|
977
|
+
position: Optional[int] = None,
|
|
978
|
+
parentId: Optional[str] = None,
|
|
979
|
+
handlers: Optional[TextEventHandlers] = None,
|
|
980
|
+
visible: Optional[Union[bool, str]] = None,
|
|
981
|
+
) -> Component:
|
|
982
|
+
"""
|
|
983
|
+
A component to display plain text or formatted text using Markdown syntax.
|
|
984
|
+
"""
|
|
985
|
+
component = WriterUI.create_component(
|
|
986
|
+
'text',
|
|
987
|
+
content=content,
|
|
988
|
+
id=id,
|
|
989
|
+
position=position,
|
|
990
|
+
parentId=parentId,
|
|
991
|
+
handlers=handlers,
|
|
992
|
+
visible=visible)
|
|
993
|
+
return component
|
|
994
|
+
|
|
995
|
+
@staticmethod
|
|
996
|
+
def Section(
|
|
997
|
+
content: SectionProps = {},
|
|
998
|
+
*,
|
|
999
|
+
id: Optional[str] = None,
|
|
1000
|
+
position: Optional[int] = None,
|
|
1001
|
+
parentId: Optional[str] = None,
|
|
1002
|
+
handlers: Optional[SectionEventHandlers] = None,
|
|
1003
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1004
|
+
) -> Component:
|
|
1005
|
+
"""
|
|
1006
|
+
A container component that divides the layout into sections, with an optional title.
|
|
1007
|
+
"""
|
|
1008
|
+
component = WriterUI.create_container_component(
|
|
1009
|
+
'section',
|
|
1010
|
+
content=content,
|
|
1011
|
+
id=id,
|
|
1012
|
+
position=position,
|
|
1013
|
+
parentId=parentId,
|
|
1014
|
+
handlers=handlers,
|
|
1015
|
+
visible=visible)
|
|
1016
|
+
return component
|
|
1017
|
+
|
|
1018
|
+
@staticmethod
|
|
1019
|
+
def Header(
|
|
1020
|
+
content: HeaderProps = {},
|
|
1021
|
+
*,
|
|
1022
|
+
id: Optional[str] = None,
|
|
1023
|
+
position: Optional[int] = None,
|
|
1024
|
+
parentId: Optional[str] = None,
|
|
1025
|
+
handlers: Optional[HeaderEventHandlers] = None,
|
|
1026
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1027
|
+
) -> Component:
|
|
1028
|
+
"""
|
|
1029
|
+
A container component that typically contains the main navigation elements.
|
|
1030
|
+
"""
|
|
1031
|
+
component = WriterUI.create_container_component(
|
|
1032
|
+
'header',
|
|
1033
|
+
content=content,
|
|
1034
|
+
id=id,
|
|
1035
|
+
position=position,
|
|
1036
|
+
parentId=parentId,
|
|
1037
|
+
handlers=handlers,
|
|
1038
|
+
visible=visible)
|
|
1039
|
+
return component
|
|
1040
|
+
|
|
1041
|
+
@staticmethod
|
|
1042
|
+
def Heading(
|
|
1043
|
+
content: HeadingProps = {},
|
|
1044
|
+
*,
|
|
1045
|
+
id: Optional[str] = None,
|
|
1046
|
+
position: Optional[int] = None,
|
|
1047
|
+
parentId: Optional[str] = None,
|
|
1048
|
+
handlers: Optional[HeadingEventHandlers] = None,
|
|
1049
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1050
|
+
) -> Component:
|
|
1051
|
+
"""
|
|
1052
|
+
A text component used to display headings or titles in different sizes and styles.
|
|
1053
|
+
"""
|
|
1054
|
+
component = WriterUI.create_component(
|
|
1055
|
+
'heading',
|
|
1056
|
+
content=content,
|
|
1057
|
+
id=id,
|
|
1058
|
+
position=position,
|
|
1059
|
+
parentId=parentId,
|
|
1060
|
+
handlers=handlers,
|
|
1061
|
+
visible=visible)
|
|
1062
|
+
return component
|
|
1063
|
+
|
|
1064
|
+
@staticmethod
|
|
1065
|
+
def DataFrame(
|
|
1066
|
+
content: DataFrameProps = {},
|
|
1067
|
+
*,
|
|
1068
|
+
id: Optional[str] = None,
|
|
1069
|
+
position: Optional[int] = None,
|
|
1070
|
+
parentId: Optional[str] = None,
|
|
1071
|
+
handlers: Optional[DataFrameEventHandlers] = None,
|
|
1072
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1073
|
+
) -> Component:
|
|
1074
|
+
"""
|
|
1075
|
+
A component to display Pandas DataFrames.
|
|
1076
|
+
"""
|
|
1077
|
+
component = WriterUI.create_component(
|
|
1078
|
+
'dataframe',
|
|
1079
|
+
content=content,
|
|
1080
|
+
id=id,
|
|
1081
|
+
position=position,
|
|
1082
|
+
parentId=parentId,
|
|
1083
|
+
handlers=handlers,
|
|
1084
|
+
visible=visible)
|
|
1085
|
+
return component
|
|
1086
|
+
|
|
1087
|
+
@staticmethod
|
|
1088
|
+
def HTMLElement(
|
|
1089
|
+
content: HTMLElementProps = {},
|
|
1090
|
+
*,
|
|
1091
|
+
id: Optional[str] = None,
|
|
1092
|
+
position: Optional[int] = None,
|
|
1093
|
+
parentId: Optional[str] = None,
|
|
1094
|
+
handlers: Optional[HTMLElementEventHandlers] = None,
|
|
1095
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1096
|
+
) -> Component:
|
|
1097
|
+
"""
|
|
1098
|
+
A generic component that creates customisable HTML elements, which can serve as containers for other components.
|
|
1099
|
+
"""
|
|
1100
|
+
component = WriterUI.create_container_component(
|
|
1101
|
+
'html',
|
|
1102
|
+
content=content,
|
|
1103
|
+
id=id,
|
|
1104
|
+
position=position,
|
|
1105
|
+
parentId=parentId,
|
|
1106
|
+
handlers=handlers,
|
|
1107
|
+
visible=visible)
|
|
1108
|
+
return component
|
|
1109
|
+
|
|
1110
|
+
@staticmethod
|
|
1111
|
+
def Pagination(
|
|
1112
|
+
content: PaginationProps = {},
|
|
1113
|
+
*,
|
|
1114
|
+
id: Optional[str] = None,
|
|
1115
|
+
position: Optional[int] = None,
|
|
1116
|
+
parentId: Optional[str] = None,
|
|
1117
|
+
handlers: Optional[PaginationEventHandlers] = None,
|
|
1118
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1119
|
+
) -> Component:
|
|
1120
|
+
"""
|
|
1121
|
+
A component that can help you paginate records, for example from a Repeater or a DataFrame.
|
|
1122
|
+
"""
|
|
1123
|
+
component = WriterUI.create_component(
|
|
1124
|
+
'pagination',
|
|
1125
|
+
content=content,
|
|
1126
|
+
id=id,
|
|
1127
|
+
position=position,
|
|
1128
|
+
parentId=parentId,
|
|
1129
|
+
handlers=handlers,
|
|
1130
|
+
visible=visible)
|
|
1131
|
+
return component
|
|
1132
|
+
|
|
1133
|
+
@staticmethod
|
|
1134
|
+
def Repeater(
|
|
1135
|
+
content: RepeaterProps = {},
|
|
1136
|
+
*,
|
|
1137
|
+
id: Optional[str] = None,
|
|
1138
|
+
position: Optional[int] = None,
|
|
1139
|
+
parentId: Optional[str] = None,
|
|
1140
|
+
handlers: Optional[RepeaterEventHandlers] = None,
|
|
1141
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1142
|
+
) -> Component:
|
|
1143
|
+
"""
|
|
1144
|
+
A container component that repeats its child components based on a dictionary.
|
|
1145
|
+
"""
|
|
1146
|
+
component = WriterUI.create_container_component(
|
|
1147
|
+
'repeater',
|
|
1148
|
+
content=content,
|
|
1149
|
+
id=id,
|
|
1150
|
+
position=position,
|
|
1151
|
+
parentId=parentId,
|
|
1152
|
+
handlers=handlers,
|
|
1153
|
+
visible=visible)
|
|
1154
|
+
return component
|
|
1155
|
+
|
|
1156
|
+
@staticmethod
|
|
1157
|
+
def Column(
|
|
1158
|
+
content: ColumnProps = {},
|
|
1159
|
+
*,
|
|
1160
|
+
id: Optional[str] = None,
|
|
1161
|
+
position: Optional[int] = None,
|
|
1162
|
+
parentId: Optional[str] = None,
|
|
1163
|
+
handlers: Optional[ColumnEventHandlers] = None,
|
|
1164
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1165
|
+
) -> Component:
|
|
1166
|
+
"""
|
|
1167
|
+
A layout component that organizes its child components in columns. Must be inside a Column container component.
|
|
1168
|
+
"""
|
|
1169
|
+
component = WriterUI.create_container_component(
|
|
1170
|
+
'column',
|
|
1171
|
+
content=content,
|
|
1172
|
+
id=id,
|
|
1173
|
+
position=position,
|
|
1174
|
+
parentId=parentId,
|
|
1175
|
+
handlers=handlers,
|
|
1176
|
+
visible=visible)
|
|
1177
|
+
return component
|
|
1178
|
+
|
|
1179
|
+
@staticmethod
|
|
1180
|
+
def ColumnContainer(
|
|
1181
|
+
content: ColumnContainerProps = {},
|
|
1182
|
+
*,
|
|
1183
|
+
id: Optional[str] = None,
|
|
1184
|
+
position: Optional[int] = None,
|
|
1185
|
+
parentId: Optional[str] = None,
|
|
1186
|
+
handlers: Optional[ColumnContainerEventHandlers] = None,
|
|
1187
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1188
|
+
) -> Component:
|
|
1189
|
+
"""
|
|
1190
|
+
Serves as container for Column components
|
|
1191
|
+
"""
|
|
1192
|
+
component = WriterUI.create_container_component(
|
|
1193
|
+
'columns',
|
|
1194
|
+
content=content,
|
|
1195
|
+
id=id,
|
|
1196
|
+
position=position,
|
|
1197
|
+
parentId=parentId,
|
|
1198
|
+
handlers=handlers,
|
|
1199
|
+
visible=visible)
|
|
1200
|
+
return component
|
|
1201
|
+
|
|
1202
|
+
@staticmethod
|
|
1203
|
+
def Tab(
|
|
1204
|
+
content: TabProps = {},
|
|
1205
|
+
*,
|
|
1206
|
+
id: Optional[str] = None,
|
|
1207
|
+
position: Optional[int] = None,
|
|
1208
|
+
parentId: Optional[str] = None,
|
|
1209
|
+
handlers: Optional[TabEventHandlers] = None,
|
|
1210
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1211
|
+
) -> Component:
|
|
1212
|
+
"""
|
|
1213
|
+
A container component that displays its child components as a tab inside a Tab container.
|
|
1214
|
+
"""
|
|
1215
|
+
component = WriterUI.create_container_component(
|
|
1216
|
+
'tab',
|
|
1217
|
+
content=content,
|
|
1218
|
+
id=id,
|
|
1219
|
+
position=position,
|
|
1220
|
+
parentId=parentId,
|
|
1221
|
+
handlers=handlers,
|
|
1222
|
+
visible=visible)
|
|
1223
|
+
return component
|
|
1224
|
+
|
|
1225
|
+
@staticmethod
|
|
1226
|
+
def TabContainer(
|
|
1227
|
+
content: TabContainerProps = {},
|
|
1228
|
+
*,
|
|
1229
|
+
id: Optional[str] = None,
|
|
1230
|
+
position: Optional[int] = None,
|
|
1231
|
+
parentId: Optional[str] = None,
|
|
1232
|
+
handlers: Optional[TabContainerEventHandlers] = None,
|
|
1233
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1234
|
+
) -> Component:
|
|
1235
|
+
"""
|
|
1236
|
+
A container component for organising and displaying Tab components in a tabbed interface.
|
|
1237
|
+
"""
|
|
1238
|
+
component = WriterUI.create_container_component(
|
|
1239
|
+
'tabs',
|
|
1240
|
+
content=content,
|
|
1241
|
+
id=id,
|
|
1242
|
+
position=position,
|
|
1243
|
+
parentId=parentId,
|
|
1244
|
+
handlers=handlers,
|
|
1245
|
+
visible=visible)
|
|
1246
|
+
return component
|
|
1247
|
+
|
|
1248
|
+
@staticmethod
|
|
1249
|
+
def Link(
|
|
1250
|
+
content: LinkProps = {},
|
|
1251
|
+
*,
|
|
1252
|
+
id: Optional[str] = None,
|
|
1253
|
+
position: Optional[int] = None,
|
|
1254
|
+
parentId: Optional[str] = None,
|
|
1255
|
+
handlers: Optional[LinkEventHandlers] = None,
|
|
1256
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1257
|
+
) -> Component:
|
|
1258
|
+
"""
|
|
1259
|
+
A component to create a hyperlink.
|
|
1260
|
+
"""
|
|
1261
|
+
component = WriterUI.create_component(
|
|
1262
|
+
'link',
|
|
1263
|
+
content=content,
|
|
1264
|
+
id=id,
|
|
1265
|
+
position=position,
|
|
1266
|
+
parentId=parentId,
|
|
1267
|
+
handlers=handlers,
|
|
1268
|
+
visible=visible)
|
|
1269
|
+
return component
|
|
1270
|
+
|
|
1271
|
+
@staticmethod
|
|
1272
|
+
def HorizontalStack(
|
|
1273
|
+
content: HorizontalStackProps = {},
|
|
1274
|
+
*,
|
|
1275
|
+
id: Optional[str] = None,
|
|
1276
|
+
position: Optional[int] = None,
|
|
1277
|
+
parentId: Optional[str] = None,
|
|
1278
|
+
handlers: Optional[HorizontalStackEventHandlers] = None,
|
|
1279
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1280
|
+
) -> Component:
|
|
1281
|
+
"""
|
|
1282
|
+
A layout component that stacks its child components horizontally, wrapping them to the next row if necessary.
|
|
1283
|
+
"""
|
|
1284
|
+
component = WriterUI.create_container_component(
|
|
1285
|
+
'horizontalstack',
|
|
1286
|
+
content=content,
|
|
1287
|
+
id=id,
|
|
1288
|
+
position=position,
|
|
1289
|
+
parentId=parentId,
|
|
1290
|
+
handlers=handlers,
|
|
1291
|
+
visible=visible)
|
|
1292
|
+
return component
|
|
1293
|
+
|
|
1294
|
+
@staticmethod
|
|
1295
|
+
def Separator(
|
|
1296
|
+
content: SeparatorProps = {},
|
|
1297
|
+
*,
|
|
1298
|
+
id: Optional[str] = None,
|
|
1299
|
+
position: Optional[int] = None,
|
|
1300
|
+
parentId: Optional[str] = None,
|
|
1301
|
+
handlers: Optional[SeparatorEventHandlers] = None,
|
|
1302
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1303
|
+
) -> Component:
|
|
1304
|
+
"""
|
|
1305
|
+
A visual component to create a separation between adjacent elements.
|
|
1306
|
+
"""
|
|
1307
|
+
component = WriterUI.create_component(
|
|
1308
|
+
'separator',
|
|
1309
|
+
content=content,
|
|
1310
|
+
id=id,
|
|
1311
|
+
position=position,
|
|
1312
|
+
parentId=parentId,
|
|
1313
|
+
handlers=handlers,
|
|
1314
|
+
visible=visible)
|
|
1315
|
+
return component
|
|
1316
|
+
|
|
1317
|
+
@staticmethod
|
|
1318
|
+
def Image(
|
|
1319
|
+
content: ImageProps = {},
|
|
1320
|
+
*,
|
|
1321
|
+
id: Optional[str] = None,
|
|
1322
|
+
position: Optional[int] = None,
|
|
1323
|
+
parentId: Optional[str] = None,
|
|
1324
|
+
handlers: Optional[ImageEventHandlers] = None,
|
|
1325
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1326
|
+
) -> Component:
|
|
1327
|
+
"""
|
|
1328
|
+
A component to display images.
|
|
1329
|
+
"""
|
|
1330
|
+
component = WriterUI.create_component(
|
|
1331
|
+
'image',
|
|
1332
|
+
content=content,
|
|
1333
|
+
id=id,
|
|
1334
|
+
position=position,
|
|
1335
|
+
parentId=parentId,
|
|
1336
|
+
handlers=handlers,
|
|
1337
|
+
visible=visible)
|
|
1338
|
+
return component
|
|
1339
|
+
|
|
1340
|
+
@staticmethod
|
|
1341
|
+
def PDF(
|
|
1342
|
+
content: PDFProps = {},
|
|
1343
|
+
*,
|
|
1344
|
+
id: Optional[str] = None,
|
|
1345
|
+
position: Optional[int] = None,
|
|
1346
|
+
parentId: Optional[str] = None,
|
|
1347
|
+
handlers: Optional[PDFEventHandlers] = None,
|
|
1348
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1349
|
+
) -> Component:
|
|
1350
|
+
"""
|
|
1351
|
+
A component to embed PDF documents.
|
|
1352
|
+
"""
|
|
1353
|
+
component = WriterUI.create_component(
|
|
1354
|
+
'pdf',
|
|
1355
|
+
content=content,
|
|
1356
|
+
id=id,
|
|
1357
|
+
position=position,
|
|
1358
|
+
parentId=parentId,
|
|
1359
|
+
handlers=handlers,
|
|
1360
|
+
visible=visible)
|
|
1361
|
+
return component
|
|
1362
|
+
|
|
1363
|
+
@staticmethod
|
|
1364
|
+
def IFrame(
|
|
1365
|
+
content: IFrameProps = {},
|
|
1366
|
+
*,
|
|
1367
|
+
id: Optional[str] = None,
|
|
1368
|
+
position: Optional[int] = None,
|
|
1369
|
+
parentId: Optional[str] = None,
|
|
1370
|
+
handlers: Optional[IFrameEventHandlers] = None,
|
|
1371
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1372
|
+
) -> Component:
|
|
1373
|
+
"""
|
|
1374
|
+
A component to embed an external resource in an iframe.
|
|
1375
|
+
"""
|
|
1376
|
+
component = WriterUI.create_component(
|
|
1377
|
+
'iframe',
|
|
1378
|
+
content=content,
|
|
1379
|
+
id=id,
|
|
1380
|
+
position=position,
|
|
1381
|
+
parentId=parentId,
|
|
1382
|
+
handlers=handlers,
|
|
1383
|
+
visible=visible)
|
|
1384
|
+
return component
|
|
1385
|
+
|
|
1386
|
+
@staticmethod
|
|
1387
|
+
def GoogleMaps(
|
|
1388
|
+
content: GoogleMapsProps = {},
|
|
1389
|
+
*,
|
|
1390
|
+
id: Optional[str] = None,
|
|
1391
|
+
position: Optional[int] = None,
|
|
1392
|
+
parentId: Optional[str] = None,
|
|
1393
|
+
handlers: Optional[GoogleMapsEventHandlers] = None,
|
|
1394
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1395
|
+
) -> Component:
|
|
1396
|
+
"""
|
|
1397
|
+
A component to embed a Google Map. It can be used to display a map with markers.
|
|
1398
|
+
"""
|
|
1399
|
+
component = WriterUI.create_component(
|
|
1400
|
+
'googlemaps',
|
|
1401
|
+
content=content,
|
|
1402
|
+
id=id,
|
|
1403
|
+
position=position,
|
|
1404
|
+
parentId=parentId,
|
|
1405
|
+
handlers=handlers,
|
|
1406
|
+
visible=visible)
|
|
1407
|
+
return component
|
|
1408
|
+
|
|
1409
|
+
@staticmethod
|
|
1410
|
+
def Mapbox(
|
|
1411
|
+
content: MapboxProps = {},
|
|
1412
|
+
*,
|
|
1413
|
+
id: Optional[str] = None,
|
|
1414
|
+
position: Optional[int] = None,
|
|
1415
|
+
parentId: Optional[str] = None,
|
|
1416
|
+
handlers: Optional[MapboxEventHandlers] = None,
|
|
1417
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1418
|
+
) -> Component:
|
|
1419
|
+
"""
|
|
1420
|
+
A component to embed a Mapbox map. It can be used to display a map with markers.
|
|
1421
|
+
"""
|
|
1422
|
+
component = WriterUI.create_component(
|
|
1423
|
+
'mapbox',
|
|
1424
|
+
content=content,
|
|
1425
|
+
id=id,
|
|
1426
|
+
position=position,
|
|
1427
|
+
parentId=parentId,
|
|
1428
|
+
handlers=handlers,
|
|
1429
|
+
visible=visible)
|
|
1430
|
+
return component
|
|
1431
|
+
|
|
1432
|
+
@staticmethod
|
|
1433
|
+
def Timer(
|
|
1434
|
+
content: TimerProps = {},
|
|
1435
|
+
*,
|
|
1436
|
+
id: Optional[str] = None,
|
|
1437
|
+
position: Optional[int] = None,
|
|
1438
|
+
parentId: Optional[str] = None,
|
|
1439
|
+
handlers: Optional[TimerEventHandlers] = None,
|
|
1440
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1441
|
+
) -> Component:
|
|
1442
|
+
"""
|
|
1443
|
+
A component that emits an event repeatedly at specified time intervals, enabling time-based refresh.
|
|
1444
|
+
"""
|
|
1445
|
+
component = WriterUI.create_component(
|
|
1446
|
+
'timer',
|
|
1447
|
+
content=content,
|
|
1448
|
+
id=id,
|
|
1449
|
+
position=position,
|
|
1450
|
+
parentId=parentId,
|
|
1451
|
+
handlers=handlers,
|
|
1452
|
+
visible=visible)
|
|
1453
|
+
return component
|
|
1454
|
+
|
|
1455
|
+
@staticmethod
|
|
1456
|
+
def TextInput(
|
|
1457
|
+
content: TextInputProps = {},
|
|
1458
|
+
*,
|
|
1459
|
+
id: Optional[str] = None,
|
|
1460
|
+
position: Optional[int] = None,
|
|
1461
|
+
parentId: Optional[str] = None,
|
|
1462
|
+
handlers: Optional[TextInputEventHandlers] = None,
|
|
1463
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1464
|
+
binding: Optional[TextInputBindings] = None,
|
|
1465
|
+
) -> Component:
|
|
1466
|
+
"""
|
|
1467
|
+
A user input component that allows users to enter single-line text values.
|
|
1468
|
+
"""
|
|
1469
|
+
component = WriterUI.create_component(
|
|
1470
|
+
'textinput',
|
|
1471
|
+
content=content,
|
|
1472
|
+
id=id,
|
|
1473
|
+
position=position,
|
|
1474
|
+
parentId=parentId,
|
|
1475
|
+
handlers=handlers,
|
|
1476
|
+
visible=visible,
|
|
1477
|
+
binding=binding)
|
|
1478
|
+
return component
|
|
1479
|
+
|
|
1480
|
+
@staticmethod
|
|
1481
|
+
def TextareaInput(
|
|
1482
|
+
content: TextareaInputProps = {},
|
|
1483
|
+
*,
|
|
1484
|
+
id: Optional[str] = None,
|
|
1485
|
+
position: Optional[int] = None,
|
|
1486
|
+
parentId: Optional[str] = None,
|
|
1487
|
+
handlers: Optional[TextareaInputEventHandlers] = None,
|
|
1488
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1489
|
+
binding: Optional[TextareaInputBindings] = None,
|
|
1490
|
+
) -> Component:
|
|
1491
|
+
"""
|
|
1492
|
+
A user input component that allows users to enter multi-line text values.
|
|
1493
|
+
"""
|
|
1494
|
+
component = WriterUI.create_component(
|
|
1495
|
+
'textareainput',
|
|
1496
|
+
content=content,
|
|
1497
|
+
id=id,
|
|
1498
|
+
position=position,
|
|
1499
|
+
parentId=parentId,
|
|
1500
|
+
handlers=handlers,
|
|
1501
|
+
visible=visible,
|
|
1502
|
+
binding=binding)
|
|
1503
|
+
return component
|
|
1504
|
+
|
|
1505
|
+
@staticmethod
|
|
1506
|
+
def NumberInput(
|
|
1507
|
+
content: NumberInputProps = {},
|
|
1508
|
+
*,
|
|
1509
|
+
id: Optional[str] = None,
|
|
1510
|
+
position: Optional[int] = None,
|
|
1511
|
+
parentId: Optional[str] = None,
|
|
1512
|
+
handlers: Optional[NumberInputEventHandlers] = None,
|
|
1513
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1514
|
+
binding: Optional[NumberInputBindings] = None,
|
|
1515
|
+
) -> Component:
|
|
1516
|
+
"""
|
|
1517
|
+
A user input component that allows users to enter numeric values.
|
|
1518
|
+
"""
|
|
1519
|
+
component = WriterUI.create_component(
|
|
1520
|
+
'numberinput',
|
|
1521
|
+
content=content,
|
|
1522
|
+
id=id,
|
|
1523
|
+
position=position,
|
|
1524
|
+
parentId=parentId,
|
|
1525
|
+
handlers=handlers,
|
|
1526
|
+
visible=visible,
|
|
1527
|
+
binding=binding)
|
|
1528
|
+
return component
|
|
1529
|
+
|
|
1530
|
+
@staticmethod
|
|
1531
|
+
def SliderInput(
|
|
1532
|
+
content: SliderInputProps = {},
|
|
1533
|
+
*,
|
|
1534
|
+
id: Optional[str] = None,
|
|
1535
|
+
position: Optional[int] = None,
|
|
1536
|
+
parentId: Optional[str] = None,
|
|
1537
|
+
handlers: Optional[SliderInputEventHandlers] = None,
|
|
1538
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1539
|
+
binding: Optional[SliderInputBindings] = None,
|
|
1540
|
+
) -> Component:
|
|
1541
|
+
"""
|
|
1542
|
+
A user input component that allows users to select numeric values using a slider with optional constraints like min, max, and step.
|
|
1543
|
+
"""
|
|
1544
|
+
component = WriterUI.create_component(
|
|
1545
|
+
'sliderinput',
|
|
1546
|
+
content=content,
|
|
1547
|
+
id=id,
|
|
1548
|
+
position=position,
|
|
1549
|
+
parentId=parentId,
|
|
1550
|
+
handlers=handlers,
|
|
1551
|
+
visible=visible,
|
|
1552
|
+
binding=binding)
|
|
1553
|
+
return component
|
|
1554
|
+
|
|
1555
|
+
@staticmethod
|
|
1556
|
+
def SliderRangeInput(
|
|
1557
|
+
content: SliderRangeInputProps = {},
|
|
1558
|
+
*,
|
|
1559
|
+
id: Optional[str] = None,
|
|
1560
|
+
position: Optional[int] = None,
|
|
1561
|
+
parentId: Optional[str] = None,
|
|
1562
|
+
handlers: Optional[SliderRangeInputEventHandlers] = None,
|
|
1563
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1564
|
+
binding: Optional[SliderRangeInputBindings] = None,
|
|
1565
|
+
) -> Component:
|
|
1566
|
+
"""
|
|
1567
|
+
A user input component that allows users to select numeric values range using a range slider with optional constraints like min, max, and step.
|
|
1568
|
+
"""
|
|
1569
|
+
component = WriterUI.create_component(
|
|
1570
|
+
'rangeinput',
|
|
1571
|
+
content=content,
|
|
1572
|
+
id=id,
|
|
1573
|
+
position=position,
|
|
1574
|
+
parentId=parentId,
|
|
1575
|
+
handlers=handlers,
|
|
1576
|
+
visible=visible,
|
|
1577
|
+
binding=binding)
|
|
1578
|
+
return component
|
|
1579
|
+
|
|
1580
|
+
@staticmethod
|
|
1581
|
+
def ColorInput(
|
|
1582
|
+
content: ColorInputProps = {},
|
|
1583
|
+
*,
|
|
1584
|
+
id: Optional[str] = None,
|
|
1585
|
+
position: Optional[int] = None,
|
|
1586
|
+
parentId: Optional[str] = None,
|
|
1587
|
+
handlers: Optional[ColorInputEventHandlers] = None,
|
|
1588
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1589
|
+
binding: Optional[ColorInputBindings] = None,
|
|
1590
|
+
) -> Component:
|
|
1591
|
+
"""
|
|
1592
|
+
A user input component that allows users to select a color using a color picker interface.
|
|
1593
|
+
"""
|
|
1594
|
+
component = WriterUI.create_component(
|
|
1595
|
+
'colorinput',
|
|
1596
|
+
content=content,
|
|
1597
|
+
id=id,
|
|
1598
|
+
position=position,
|
|
1599
|
+
parentId=parentId,
|
|
1600
|
+
handlers=handlers,
|
|
1601
|
+
visible=visible,
|
|
1602
|
+
binding=binding)
|
|
1603
|
+
return component
|
|
1604
|
+
|
|
1605
|
+
@staticmethod
|
|
1606
|
+
def DateInput(
|
|
1607
|
+
content: DateInputProps = {},
|
|
1608
|
+
*,
|
|
1609
|
+
id: Optional[str] = None,
|
|
1610
|
+
position: Optional[int] = None,
|
|
1611
|
+
parentId: Optional[str] = None,
|
|
1612
|
+
handlers: Optional[DateInputEventHandlers] = None,
|
|
1613
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1614
|
+
binding: Optional[DateInputBindings] = None,
|
|
1615
|
+
) -> Component:
|
|
1616
|
+
"""
|
|
1617
|
+
A user input component that allows users to select a date using a date picker interface.
|
|
1618
|
+
"""
|
|
1619
|
+
component = WriterUI.create_component(
|
|
1620
|
+
'dateinput',
|
|
1621
|
+
content=content,
|
|
1622
|
+
id=id,
|
|
1623
|
+
position=position,
|
|
1624
|
+
parentId=parentId,
|
|
1625
|
+
handlers=handlers,
|
|
1626
|
+
visible=visible,
|
|
1627
|
+
binding=binding)
|
|
1628
|
+
return component
|
|
1629
|
+
|
|
1630
|
+
@staticmethod
|
|
1631
|
+
def TimeInput(
|
|
1632
|
+
content: TimeInputProps = {},
|
|
1633
|
+
*,
|
|
1634
|
+
id: Optional[str] = None,
|
|
1635
|
+
position: Optional[int] = None,
|
|
1636
|
+
parentId: Optional[str] = None,
|
|
1637
|
+
handlers: Optional[TimeInputEventHandlers] = None,
|
|
1638
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1639
|
+
binding: Optional[TimeInputBindings] = None,
|
|
1640
|
+
) -> Component:
|
|
1641
|
+
"""
|
|
1642
|
+
A user input component that allows users to select a time.
|
|
1643
|
+
"""
|
|
1644
|
+
component = WriterUI.create_component(
|
|
1645
|
+
'timeinput',
|
|
1646
|
+
content=content,
|
|
1647
|
+
id=id,
|
|
1648
|
+
position=position,
|
|
1649
|
+
parentId=parentId,
|
|
1650
|
+
handlers=handlers,
|
|
1651
|
+
visible=visible,
|
|
1652
|
+
binding=binding)
|
|
1653
|
+
return component
|
|
1654
|
+
|
|
1655
|
+
@staticmethod
|
|
1656
|
+
def RadioInput(
|
|
1657
|
+
content: RadioInputProps = {},
|
|
1658
|
+
*,
|
|
1659
|
+
id: Optional[str] = None,
|
|
1660
|
+
position: Optional[int] = None,
|
|
1661
|
+
parentId: Optional[str] = None,
|
|
1662
|
+
handlers: Optional[RadioInputEventHandlers] = None,
|
|
1663
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1664
|
+
binding: Optional[RadioInputBindings] = None,
|
|
1665
|
+
) -> Component:
|
|
1666
|
+
"""
|
|
1667
|
+
A user input component that allows users to choose a single value from a list of options using radio buttons.
|
|
1668
|
+
"""
|
|
1669
|
+
component = WriterUI.create_component(
|
|
1670
|
+
'radioinput',
|
|
1671
|
+
content=content,
|
|
1672
|
+
id=id,
|
|
1673
|
+
position=position,
|
|
1674
|
+
parentId=parentId,
|
|
1675
|
+
handlers=handlers,
|
|
1676
|
+
visible=visible,
|
|
1677
|
+
binding=binding)
|
|
1678
|
+
return component
|
|
1679
|
+
|
|
1680
|
+
@staticmethod
|
|
1681
|
+
def CheckboxInput(
|
|
1682
|
+
content: CheckboxInputProps = {},
|
|
1683
|
+
*,
|
|
1684
|
+
id: Optional[str] = None,
|
|
1685
|
+
position: Optional[int] = None,
|
|
1686
|
+
parentId: Optional[str] = None,
|
|
1687
|
+
handlers: Optional[CheckboxInputEventHandlers] = None,
|
|
1688
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1689
|
+
binding: Optional[CheckboxInputBindings] = None,
|
|
1690
|
+
) -> Component:
|
|
1691
|
+
"""
|
|
1692
|
+
A user input component that allows users to choose multiple values from a list of options using checkboxes.
|
|
1693
|
+
"""
|
|
1694
|
+
component = WriterUI.create_component(
|
|
1695
|
+
'checkboxinput',
|
|
1696
|
+
content=content,
|
|
1697
|
+
id=id,
|
|
1698
|
+
position=position,
|
|
1699
|
+
parentId=parentId,
|
|
1700
|
+
handlers=handlers,
|
|
1701
|
+
visible=visible,
|
|
1702
|
+
binding=binding)
|
|
1703
|
+
return component
|
|
1704
|
+
|
|
1705
|
+
@staticmethod
|
|
1706
|
+
def DropdownInput(
|
|
1707
|
+
content: DropdownInputProps = {},
|
|
1708
|
+
*,
|
|
1709
|
+
id: Optional[str] = None,
|
|
1710
|
+
position: Optional[int] = None,
|
|
1711
|
+
parentId: Optional[str] = None,
|
|
1712
|
+
handlers: Optional[DropdownInputEventHandlers] = None,
|
|
1713
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1714
|
+
binding: Optional[DropdownInputBindings] = None,
|
|
1715
|
+
) -> Component:
|
|
1716
|
+
"""
|
|
1717
|
+
A user input component that allows users to select a single value from a list of options using a dropdown menu.
|
|
1718
|
+
"""
|
|
1719
|
+
component = WriterUI.create_component(
|
|
1720
|
+
'dropdowninput',
|
|
1721
|
+
content=content,
|
|
1722
|
+
id=id,
|
|
1723
|
+
position=position,
|
|
1724
|
+
parentId=parentId,
|
|
1725
|
+
handlers=handlers,
|
|
1726
|
+
visible=visible,
|
|
1727
|
+
binding=binding)
|
|
1728
|
+
return component
|
|
1729
|
+
|
|
1730
|
+
@staticmethod
|
|
1731
|
+
def SelectInput(
|
|
1732
|
+
content: SelectInputProps = {},
|
|
1733
|
+
*,
|
|
1734
|
+
id: Optional[str] = None,
|
|
1735
|
+
position: Optional[int] = None,
|
|
1736
|
+
parentId: Optional[str] = None,
|
|
1737
|
+
handlers: Optional[SelectInputEventHandlers] = None,
|
|
1738
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1739
|
+
binding: Optional[SelectInputBindings] = None,
|
|
1740
|
+
) -> Component:
|
|
1741
|
+
"""
|
|
1742
|
+
A user input component that allows users to select a single or multiples value(s) from a searchable list of options.
|
|
1743
|
+
"""
|
|
1744
|
+
component = WriterUI.create_component(
|
|
1745
|
+
'selectinput',
|
|
1746
|
+
content=content,
|
|
1747
|
+
id=id,
|
|
1748
|
+
position=position,
|
|
1749
|
+
parentId=parentId,
|
|
1750
|
+
handlers=handlers,
|
|
1751
|
+
visible=visible,
|
|
1752
|
+
binding=binding)
|
|
1753
|
+
return component
|
|
1754
|
+
|
|
1755
|
+
@staticmethod
|
|
1756
|
+
def MultiselectInput(
|
|
1757
|
+
content: MultiselectInputProps = {},
|
|
1758
|
+
*,
|
|
1759
|
+
id: Optional[str] = None,
|
|
1760
|
+
position: Optional[int] = None,
|
|
1761
|
+
parentId: Optional[str] = None,
|
|
1762
|
+
handlers: Optional[MultiselectInputEventHandlers] = None,
|
|
1763
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1764
|
+
binding: Optional[MultiselectInputBindings] = None,
|
|
1765
|
+
) -> Component:
|
|
1766
|
+
"""
|
|
1767
|
+
A user input component that allows users to select multiple values from a searchable list of options.
|
|
1768
|
+
"""
|
|
1769
|
+
component = WriterUI.create_component(
|
|
1770
|
+
'multiselectinput',
|
|
1771
|
+
content=content,
|
|
1772
|
+
id=id,
|
|
1773
|
+
position=position,
|
|
1774
|
+
parentId=parentId,
|
|
1775
|
+
handlers=handlers,
|
|
1776
|
+
visible=visible,
|
|
1777
|
+
binding=binding)
|
|
1778
|
+
return component
|
|
1779
|
+
|
|
1780
|
+
@staticmethod
|
|
1781
|
+
def FileInput(
|
|
1782
|
+
content: FileInputProps = {},
|
|
1783
|
+
*,
|
|
1784
|
+
id: Optional[str] = None,
|
|
1785
|
+
position: Optional[int] = None,
|
|
1786
|
+
parentId: Optional[str] = None,
|
|
1787
|
+
handlers: Optional[FileInputEventHandlers] = None,
|
|
1788
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1789
|
+
binding: Optional[FileInputBindings] = None,
|
|
1790
|
+
) -> Component:
|
|
1791
|
+
"""
|
|
1792
|
+
A user input component that allows users to upload files.
|
|
1793
|
+
"""
|
|
1794
|
+
component = WriterUI.create_component(
|
|
1795
|
+
'fileinput',
|
|
1796
|
+
content=content,
|
|
1797
|
+
id=id,
|
|
1798
|
+
position=position,
|
|
1799
|
+
parentId=parentId,
|
|
1800
|
+
handlers=handlers,
|
|
1801
|
+
visible=visible,
|
|
1802
|
+
binding=binding)
|
|
1803
|
+
return component
|
|
1804
|
+
|
|
1805
|
+
@staticmethod
|
|
1806
|
+
def WebcamCapture(
|
|
1807
|
+
content: WebcamCaptureProps = {},
|
|
1808
|
+
*,
|
|
1809
|
+
id: Optional[str] = None,
|
|
1810
|
+
position: Optional[int] = None,
|
|
1811
|
+
parentId: Optional[str] = None,
|
|
1812
|
+
handlers: Optional[WebcamCaptureEventHandlers] = None,
|
|
1813
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1814
|
+
) -> Component:
|
|
1815
|
+
"""
|
|
1816
|
+
A user input component that allows users to capture images using their webcam.
|
|
1817
|
+
"""
|
|
1818
|
+
component = WriterUI.create_component(
|
|
1819
|
+
'webcamcapture',
|
|
1820
|
+
content=content,
|
|
1821
|
+
id=id,
|
|
1822
|
+
position=position,
|
|
1823
|
+
parentId=parentId,
|
|
1824
|
+
handlers=handlers,
|
|
1825
|
+
visible=visible)
|
|
1826
|
+
return component
|
|
1827
|
+
|
|
1828
|
+
@staticmethod
|
|
1829
|
+
def VegaLiteChart(
|
|
1830
|
+
content: VegaLiteChartProps = {},
|
|
1831
|
+
*,
|
|
1832
|
+
id: Optional[str] = None,
|
|
1833
|
+
position: Optional[int] = None,
|
|
1834
|
+
parentId: Optional[str] = None,
|
|
1835
|
+
handlers: Optional[VegaLiteChartEventHandlers] = None,
|
|
1836
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1837
|
+
) -> Component:
|
|
1838
|
+
"""
|
|
1839
|
+
A component that displays Vega-Lite/Altair charts.
|
|
1840
|
+
"""
|
|
1841
|
+
component = WriterUI.create_component(
|
|
1842
|
+
'vegalitechart',
|
|
1843
|
+
content=content,
|
|
1844
|
+
id=id,
|
|
1845
|
+
position=position,
|
|
1846
|
+
parentId=parentId,
|
|
1847
|
+
handlers=handlers,
|
|
1848
|
+
visible=visible)
|
|
1849
|
+
return component
|
|
1850
|
+
|
|
1851
|
+
@staticmethod
|
|
1852
|
+
def PlotlyGraph(
|
|
1853
|
+
content: PlotlyGraphProps = {},
|
|
1854
|
+
*,
|
|
1855
|
+
id: Optional[str] = None,
|
|
1856
|
+
position: Optional[int] = None,
|
|
1857
|
+
parentId: Optional[str] = None,
|
|
1858
|
+
handlers: Optional[PlotlyGraphEventHandlers] = None,
|
|
1859
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1860
|
+
) -> Component:
|
|
1861
|
+
"""
|
|
1862
|
+
A component that displays Plotly graphs.
|
|
1863
|
+
"""
|
|
1864
|
+
component = WriterUI.create_component(
|
|
1865
|
+
'plotlygraph',
|
|
1866
|
+
content=content,
|
|
1867
|
+
id=id,
|
|
1868
|
+
position=position,
|
|
1869
|
+
parentId=parentId,
|
|
1870
|
+
handlers=handlers,
|
|
1871
|
+
visible=visible)
|
|
1872
|
+
return component
|
|
1873
|
+
|
|
1874
|
+
@staticmethod
|
|
1875
|
+
def Metric(
|
|
1876
|
+
content: MetricProps = {},
|
|
1877
|
+
*,
|
|
1878
|
+
id: Optional[str] = None,
|
|
1879
|
+
position: Optional[int] = None,
|
|
1880
|
+
parentId: Optional[str] = None,
|
|
1881
|
+
handlers: Optional[MetricEventHandlers] = None,
|
|
1882
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1883
|
+
) -> Component:
|
|
1884
|
+
"""
|
|
1885
|
+
A component that prominently displays a metric value and associated information.
|
|
1886
|
+
"""
|
|
1887
|
+
component = WriterUI.create_component(
|
|
1888
|
+
'metric',
|
|
1889
|
+
content=content,
|
|
1890
|
+
id=id,
|
|
1891
|
+
position=position,
|
|
1892
|
+
parentId=parentId,
|
|
1893
|
+
handlers=handlers,
|
|
1894
|
+
visible=visible)
|
|
1895
|
+
return component
|
|
1896
|
+
|
|
1897
|
+
@staticmethod
|
|
1898
|
+
def Message(
|
|
1899
|
+
content: MessageProps = {},
|
|
1900
|
+
*,
|
|
1901
|
+
id: Optional[str] = None,
|
|
1902
|
+
position: Optional[int] = None,
|
|
1903
|
+
parentId: Optional[str] = None,
|
|
1904
|
+
handlers: Optional[MessageEventHandlers] = None,
|
|
1905
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1906
|
+
) -> Component:
|
|
1907
|
+
"""
|
|
1908
|
+
A component that displays a message in various styles, including success, error, warning, and informational.
|
|
1909
|
+
"""
|
|
1910
|
+
component = WriterUI.create_component(
|
|
1911
|
+
'message',
|
|
1912
|
+
content=content,
|
|
1913
|
+
id=id,
|
|
1914
|
+
position=position,
|
|
1915
|
+
parentId=parentId,
|
|
1916
|
+
handlers=handlers,
|
|
1917
|
+
visible=visible)
|
|
1918
|
+
return component
|
|
1919
|
+
|
|
1920
|
+
@staticmethod
|
|
1921
|
+
def VideoPlayer(
|
|
1922
|
+
content: VideoPlayerProps = {},
|
|
1923
|
+
*,
|
|
1924
|
+
id: Optional[str] = None,
|
|
1925
|
+
position: Optional[int] = None,
|
|
1926
|
+
parentId: Optional[str] = None,
|
|
1927
|
+
handlers: Optional[VideoPlayerEventHandlers] = None,
|
|
1928
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1929
|
+
) -> Component:
|
|
1930
|
+
"""
|
|
1931
|
+
A Video player component that can play various video formats.
|
|
1932
|
+
"""
|
|
1933
|
+
component = WriterUI.create_component(
|
|
1934
|
+
'videoplayer',
|
|
1935
|
+
content=content,
|
|
1936
|
+
id=id,
|
|
1937
|
+
position=position,
|
|
1938
|
+
parentId=parentId,
|
|
1939
|
+
handlers=handlers,
|
|
1940
|
+
visible=visible)
|
|
1941
|
+
return component
|
|
1942
|
+
|
|
1943
|
+
@staticmethod
|
|
1944
|
+
def Chatbot(
|
|
1945
|
+
content: ChatbotProps = {},
|
|
1946
|
+
*,
|
|
1947
|
+
id: Optional[str] = None,
|
|
1948
|
+
position: Optional[int] = None,
|
|
1949
|
+
parentId: Optional[str] = None,
|
|
1950
|
+
handlers: Optional[ChatbotEventHandlers] = None,
|
|
1951
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1952
|
+
) -> Component:
|
|
1953
|
+
"""
|
|
1954
|
+
A chatbot component to build human-to-AI interactions.
|
|
1955
|
+
"""
|
|
1956
|
+
component = WriterUI.create_component(
|
|
1957
|
+
'chatbot',
|
|
1958
|
+
content=content,
|
|
1959
|
+
id=id,
|
|
1960
|
+
position=position,
|
|
1961
|
+
parentId=parentId,
|
|
1962
|
+
handlers=handlers,
|
|
1963
|
+
visible=visible)
|
|
1964
|
+
return component
|
|
1965
|
+
|
|
1966
|
+
@staticmethod
|
|
1967
|
+
def Step(
|
|
1968
|
+
content: StepProps = {},
|
|
1969
|
+
*,
|
|
1970
|
+
id: Optional[str] = None,
|
|
1971
|
+
position: Optional[int] = None,
|
|
1972
|
+
parentId: Optional[str] = None,
|
|
1973
|
+
handlers: Optional[StepEventHandlers] = None,
|
|
1974
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1975
|
+
) -> Component:
|
|
1976
|
+
"""
|
|
1977
|
+
A container component that displays its child components as a step inside a Step container.
|
|
1978
|
+
"""
|
|
1979
|
+
component = WriterUI.create_container_component(
|
|
1980
|
+
'step',
|
|
1981
|
+
content=content,
|
|
1982
|
+
id=id,
|
|
1983
|
+
position=position,
|
|
1984
|
+
parentId=parentId,
|
|
1985
|
+
handlers=handlers,
|
|
1986
|
+
visible=visible)
|
|
1987
|
+
return component
|
|
1988
|
+
|
|
1989
|
+
@staticmethod
|
|
1990
|
+
def StepContainer(
|
|
1991
|
+
content: StepContainerProps = {},
|
|
1992
|
+
*,
|
|
1993
|
+
id: Optional[str] = None,
|
|
1994
|
+
position: Optional[int] = None,
|
|
1995
|
+
parentId: Optional[str] = None,
|
|
1996
|
+
handlers: Optional[StepContainerEventHandlers] = None,
|
|
1997
|
+
visible: Optional[Union[bool, str]] = None,
|
|
1998
|
+
) -> Component:
|
|
1999
|
+
"""
|
|
2000
|
+
A container component for displaying Step components, allowing you to implement a stepped blueprint.
|
|
2001
|
+
"""
|
|
2002
|
+
component = WriterUI.create_container_component(
|
|
2003
|
+
'steps',
|
|
2004
|
+
content=content,
|
|
2005
|
+
id=id,
|
|
2006
|
+
position=position,
|
|
2007
|
+
parentId=parentId,
|
|
2008
|
+
handlers=handlers,
|
|
2009
|
+
visible=visible)
|
|
2010
|
+
return component
|
|
2011
|
+
|
|
2012
|
+
@staticmethod
|
|
2013
|
+
def RatingInput(
|
|
2014
|
+
content: RatingInputProps = {},
|
|
2015
|
+
*,
|
|
2016
|
+
id: Optional[str] = None,
|
|
2017
|
+
position: Optional[int] = None,
|
|
2018
|
+
parentId: Optional[str] = None,
|
|
2019
|
+
handlers: Optional[RatingInputEventHandlers] = None,
|
|
2020
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2021
|
+
binding: Optional[RatingInputBindings] = None,
|
|
2022
|
+
) -> Component:
|
|
2023
|
+
"""
|
|
2024
|
+
A user input component that allows users to provide a rating.
|
|
2025
|
+
"""
|
|
2026
|
+
component = WriterUI.create_component(
|
|
2027
|
+
'ratinginput',
|
|
2028
|
+
content=content,
|
|
2029
|
+
id=id,
|
|
2030
|
+
position=position,
|
|
2031
|
+
parentId=parentId,
|
|
2032
|
+
handlers=handlers,
|
|
2033
|
+
visible=visible,
|
|
2034
|
+
binding=binding)
|
|
2035
|
+
return component
|
|
2036
|
+
|
|
2037
|
+
@staticmethod
|
|
2038
|
+
def Tags(
|
|
2039
|
+
content: TagsProps = {},
|
|
2040
|
+
*,
|
|
2041
|
+
id: Optional[str] = None,
|
|
2042
|
+
position: Optional[int] = None,
|
|
2043
|
+
parentId: Optional[str] = None,
|
|
2044
|
+
handlers: Optional[TagsEventHandlers] = None,
|
|
2045
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2046
|
+
) -> Component:
|
|
2047
|
+
"""
|
|
2048
|
+
A component to display coloured tag pills.
|
|
2049
|
+
"""
|
|
2050
|
+
component = WriterUI.create_component(
|
|
2051
|
+
'tags',
|
|
2052
|
+
content=content,
|
|
2053
|
+
id=id,
|
|
2054
|
+
position=position,
|
|
2055
|
+
parentId=parentId,
|
|
2056
|
+
handlers=handlers,
|
|
2057
|
+
visible=visible)
|
|
2058
|
+
return component
|
|
2059
|
+
|
|
2060
|
+
@staticmethod
|
|
2061
|
+
def SwitchInput(
|
|
2062
|
+
content: SwitchInputProps = {},
|
|
2063
|
+
*,
|
|
2064
|
+
id: Optional[str] = None,
|
|
2065
|
+
position: Optional[int] = None,
|
|
2066
|
+
parentId: Optional[str] = None,
|
|
2067
|
+
handlers: Optional[SwitchInputEventHandlers] = None,
|
|
2068
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2069
|
+
binding: Optional[SwitchInputBindings] = None,
|
|
2070
|
+
) -> Component:
|
|
2071
|
+
"""
|
|
2072
|
+
A user input component with a simple on/off status.
|
|
2073
|
+
"""
|
|
2074
|
+
component = WriterUI.create_component(
|
|
2075
|
+
'switchinput',
|
|
2076
|
+
content=content,
|
|
2077
|
+
id=id,
|
|
2078
|
+
position=position,
|
|
2079
|
+
parentId=parentId,
|
|
2080
|
+
handlers=handlers,
|
|
2081
|
+
visible=visible,
|
|
2082
|
+
binding=binding)
|
|
2083
|
+
return component
|
|
2084
|
+
|
|
2085
|
+
@staticmethod
|
|
2086
|
+
def ReuseComponent(
|
|
2087
|
+
content: ReuseComponentProps = {},
|
|
2088
|
+
*,
|
|
2089
|
+
id: Optional[str] = None,
|
|
2090
|
+
position: Optional[int] = None,
|
|
2091
|
+
parentId: Optional[str] = None,
|
|
2092
|
+
handlers: Optional[ReuseComponentEventHandlers] = None,
|
|
2093
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2094
|
+
) -> Component:
|
|
2095
|
+
"""
|
|
2096
|
+
Those components are used to reuse other components. Reused components share the same state and are updated together.
|
|
2097
|
+
"""
|
|
2098
|
+
component = WriterUI.create_component(
|
|
2099
|
+
'reuse',
|
|
2100
|
+
content=content,
|
|
2101
|
+
id=id,
|
|
2102
|
+
position=position,
|
|
2103
|
+
parentId=parentId,
|
|
2104
|
+
handlers=handlers,
|
|
2105
|
+
visible=visible)
|
|
2106
|
+
return component
|
|
2107
|
+
|
|
2108
|
+
@staticmethod
|
|
2109
|
+
def Avatar(
|
|
2110
|
+
content: AvatarProps = {},
|
|
2111
|
+
*,
|
|
2112
|
+
id: Optional[str] = None,
|
|
2113
|
+
position: Optional[int] = None,
|
|
2114
|
+
parentId: Optional[str] = None,
|
|
2115
|
+
handlers: Optional[AvatarEventHandlers] = None,
|
|
2116
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2117
|
+
) -> Component:
|
|
2118
|
+
"""
|
|
2119
|
+
A component to display user avatars.
|
|
2120
|
+
"""
|
|
2121
|
+
component = WriterUI.create_container_component(
|
|
2122
|
+
'avatar',
|
|
2123
|
+
content=content,
|
|
2124
|
+
id=id,
|
|
2125
|
+
position=position,
|
|
2126
|
+
parentId=parentId,
|
|
2127
|
+
handlers=handlers,
|
|
2128
|
+
visible=visible)
|
|
2129
|
+
return component
|
|
2130
|
+
|
|
2131
|
+
@staticmethod
|
|
2132
|
+
def Annotatedtext(
|
|
2133
|
+
content: AnnotatedtextProps = {},
|
|
2134
|
+
*,
|
|
2135
|
+
id: Optional[str] = None,
|
|
2136
|
+
position: Optional[int] = None,
|
|
2137
|
+
parentId: Optional[str] = None,
|
|
2138
|
+
handlers: Optional[AnnotatedtextEventHandlers] = None,
|
|
2139
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2140
|
+
) -> Component:
|
|
2141
|
+
"""
|
|
2142
|
+
Shows text with annotations
|
|
2143
|
+
"""
|
|
2144
|
+
component = WriterUI.create_component(
|
|
2145
|
+
'annotatedtext',
|
|
2146
|
+
content=content,
|
|
2147
|
+
id=id,
|
|
2148
|
+
position=position,
|
|
2149
|
+
parentId=parentId,
|
|
2150
|
+
handlers=handlers,
|
|
2151
|
+
visible=visible)
|
|
2152
|
+
return component
|
|
2153
|
+
|
|
2154
|
+
@staticmethod
|
|
2155
|
+
def JSONViewer(
|
|
2156
|
+
content: JSONViewerProps = {},
|
|
2157
|
+
*,
|
|
2158
|
+
id: Optional[str] = None,
|
|
2159
|
+
position: Optional[int] = None,
|
|
2160
|
+
parentId: Optional[str] = None,
|
|
2161
|
+
handlers: Optional[JSONViewerEventHandlers] = None,
|
|
2162
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2163
|
+
) -> Component:
|
|
2164
|
+
"""
|
|
2165
|
+
A component to explore JSON data as a hierarchy.
|
|
2166
|
+
"""
|
|
2167
|
+
component = WriterUI.create_component(
|
|
2168
|
+
'jsonviewer',
|
|
2169
|
+
content=content,
|
|
2170
|
+
id=id,
|
|
2171
|
+
position=position,
|
|
2172
|
+
parentId=parentId,
|
|
2173
|
+
handlers=handlers,
|
|
2174
|
+
visible=visible)
|
|
2175
|
+
return component
|
|
2176
|
+
|
|
2177
|
+
@staticmethod
|
|
2178
|
+
def BlueprintsRoot(
|
|
2179
|
+
content: BlueprintsRootProps = {},
|
|
2180
|
+
*,
|
|
2181
|
+
id: Optional[str] = None,
|
|
2182
|
+
position: Optional[int] = None,
|
|
2183
|
+
parentId: Optional[str] = None,
|
|
2184
|
+
handlers: Optional[BlueprintsRootEventHandlers] = None,
|
|
2185
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2186
|
+
) -> Component:
|
|
2187
|
+
"""
|
|
2188
|
+
The root component of the application, which serves as the starting point of the component hierarchy.
|
|
2189
|
+
"""
|
|
2190
|
+
component = WriterUI.create_container_component(
|
|
2191
|
+
'blueprints_root',
|
|
2192
|
+
content=content,
|
|
2193
|
+
id=id,
|
|
2194
|
+
position=position,
|
|
2195
|
+
parentId=parentId,
|
|
2196
|
+
handlers=handlers,
|
|
2197
|
+
visible=visible)
|
|
2198
|
+
return component
|
|
2199
|
+
|
|
2200
|
+
@staticmethod
|
|
2201
|
+
def Blueprint(
|
|
2202
|
+
content: BlueprintProps = {},
|
|
2203
|
+
*,
|
|
2204
|
+
id: Optional[str] = None,
|
|
2205
|
+
position: Optional[int] = None,
|
|
2206
|
+
parentId: Optional[str] = None,
|
|
2207
|
+
handlers: Optional[BlueprintEventHandlers] = None,
|
|
2208
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2209
|
+
) -> Component:
|
|
2210
|
+
"""
|
|
2211
|
+
A container component representing a single blueprint within the application.
|
|
2212
|
+
"""
|
|
2213
|
+
component = WriterUI.create_container_component(
|
|
2214
|
+
'blueprints_blueprint',
|
|
2215
|
+
content=content,
|
|
2216
|
+
id=id,
|
|
2217
|
+
position=position,
|
|
2218
|
+
parentId=parentId,
|
|
2219
|
+
handlers=handlers,
|
|
2220
|
+
visible=visible)
|
|
2221
|
+
return component
|
|
2222
|
+
|
|
2223
|
+
@staticmethod
|
|
2224
|
+
def ProgressBar(
|
|
2225
|
+
content: ProgressBarProps = {},
|
|
2226
|
+
*,
|
|
2227
|
+
id: Optional[str] = None,
|
|
2228
|
+
position: Optional[int] = None,
|
|
2229
|
+
parentId: Optional[str] = None,
|
|
2230
|
+
handlers: Optional[ProgressBarEventHandlers] = None,
|
|
2231
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2232
|
+
) -> Component:
|
|
2233
|
+
"""
|
|
2234
|
+
A component to display a progression.
|
|
2235
|
+
"""
|
|
2236
|
+
component = WriterUI.create_container_component(
|
|
2237
|
+
'progressbar',
|
|
2238
|
+
content=content,
|
|
2239
|
+
id=id,
|
|
2240
|
+
position=position,
|
|
2241
|
+
parentId=parentId,
|
|
2242
|
+
handlers=handlers,
|
|
2243
|
+
visible=visible)
|
|
2244
|
+
return component
|
|
2245
|
+
|
|
2246
|
+
@staticmethod
|
|
2247
|
+
def Note(
|
|
2248
|
+
content: NoteProps = {},
|
|
2249
|
+
*,
|
|
2250
|
+
id: Optional[str] = None,
|
|
2251
|
+
position: Optional[int] = None,
|
|
2252
|
+
parentId: Optional[str] = None,
|
|
2253
|
+
handlers: Optional[NoteEventHandlers] = None,
|
|
2254
|
+
visible: Optional[Union[bool, str]] = None,
|
|
2255
|
+
) -> Component:
|
|
2256
|
+
"""
|
|
2257
|
+
Internal note displayed only in edit mode
|
|
2258
|
+
"""
|
|
2259
|
+
component = WriterUI.create_component(
|
|
2260
|
+
'note',
|
|
2261
|
+
content=content,
|
|
2262
|
+
id=id,
|
|
2263
|
+
position=position,
|
|
2264
|
+
parentId=parentId,
|
|
2265
|
+
handlers=handlers,
|
|
2266
|
+
visible=visible)
|
|
2267
|
+
return component
|
|
2268
|
+
|