@marimo-team/islands 0.15.2 → 0.15.3
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.
- package/dist/{ConnectedDataExplorerComponent-C39nQwtD.js → ConnectedDataExplorerComponent-DfvW3rBn.js} +323 -328
- package/dist/{ImageComparisonComponent-BhkiyswP.js → ImageComparisonComponent-XaJshw7d.js} +13 -13
- package/dist/{_baseUniq-DdHL34FO.js → _baseUniq-dN9WKF9m.js} +67 -67
- package/dist/any-language-editor-CpFniVi-.js +27 -0
- package/dist/{arc-BXrety1g.js → arc-BOhn-m2C.js} +1 -1
- package/dist/{architectureDiagram-KFL7JDKH-BMy6ywCF.js → architectureDiagram-W76B3OCA-Bpg85ZKv.js} +144 -144
- package/dist/assets/{worker-COGufAQn.js → worker-Y-Q4G-N2.js} +30 -26
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/{blockDiagram-ZYB65J3Q-DYT2-nlI.js → blockDiagram-QIGZ2CNN-DS1kOHlW.js} +10 -10
- package/dist/{c4Diagram-AAMF2YG6-ZiQzioe6.js → c4Diagram-FPNF74CW-CyRVKssw.js} +8 -8
- package/dist/{channel-CeuXqUAU.js → channel-BilGXox7.js} +1 -1
- package/dist/{chunk-ANTBXLJU-BvYnIrdq.js → chunk-4BX2VUAB-CZR39zCO.js} +1 -1
- package/dist/{chunk-WVR4S24B-DXj8yaUk.js → chunk-55IACEB6-BIH-MYov.js} +1 -1
- package/dist/{chunk-GLLZNHP4-CyFsosAe.js → chunk-FMBD7UC4-4PZXFZE8.js} +1 -1
- package/dist/{chunk-JBRWN2VN-DA_EEhy2.js → chunk-K7UQS3LO-CEvWKznk.js} +117 -117
- package/dist/{chunk-NRVI72HA-BYx2jMlI.js → chunk-QN33PNHL-D5LO5Jq_.js} +1 -1
- package/dist/{chunk-FHKO5MBM-DfCztBk8.js → chunk-QZHKN3VN-6gwUonWI.js} +1 -1
- package/dist/{chunk-LXBSTHXV-Se7vdY6J.js → chunk-TVAH2DTR-3gm06QdU.js} +7 -7
- package/dist/{chunk-OMD6QJNC-CqgcPMgL.js → chunk-TZMSLE5B-Cm8Iy9bO.js} +1 -1
- package/dist/{classDiagram-v2-QTMF73CY-B19A3G1l.js → classDiagram-KNZD7YFC-DC529O_z.js} +2 -2
- package/dist/{classDiagram-3BZAVTQC-B19A3G1l.js → classDiagram-v2-RKCZMP56-DC529O_z.js} +2 -2
- package/dist/{clone-78au0tn1.js → clone-CLoRX3j6.js} +1 -1
- package/dist/cose-bilkent-S5V4N54A-qf5DlS6Y.js +2609 -0
- package/dist/{cytoscape.esm-BYnVVhJX.js → cytoscape.esm-DfdJODL8.js} +34 -34
- package/dist/{dagre-2BBEFEWP-BfEn3ZUV.js → dagre-5GWH7T2D-Ceocls0m.js} +6 -6
- package/dist/{data-grid-overlay-editor-CH_qLkV2.js → data-grid-overlay-editor-AqDS_UKe.js} +11 -11
- package/dist/{diagram-4IRLE6MV-CL8xidnG.js → diagram-N5W7TBWH-CP66oSiv.js} +59 -60
- package/dist/{diagram-RP2FKANI-B1BPcUew.js → diagram-QEK2KX5R-_YD4kxxi.js} +15 -15
- package/dist/{diagram-GUPCWM2R-CZ5cfqlq.js → diagram-S2PKOQOG-Cnj8T-OP.js} +10 -10
- package/dist/dockerfile-Cm8cRYCN.js +194 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/{erDiagram-HZWUO2LU-BEAIww50.js → erDiagram-AWTI2OKA-CGnvoHx6.js} +8 -8
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/{flowDiagram-THRYKUMA-Czs2UAI2.js → flowDiagram-PVAE7QVJ-DG-pr9R9.js} +9 -9
- package/dist/{ganttDiagram-WV7ZQ7D5-ByYIAVFO.js → ganttDiagram-OWAHRB6G-JmChtxvn.js} +34 -34
- package/dist/{gitGraphDiagram-OJR772UL-BcpDsiyB.js → gitGraphDiagram-NY62KEGX-D8wLfOPd.js} +4 -4
- package/dist/{glide-data-editor-CmN6FVyi.js → glide-data-editor-9nC3iCIZ.js} +33 -33
- package/dist/{graph-77W6heli.js → graph-CoRe7vAN.js} +3 -3
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/{index-Bfk9dnyS.js → index-6qYeHHjQ.js} +33090 -32892
- package/dist/{index-BOojn38D.js → index-BpzLh4Qe.js} +7711 -7711
- package/dist/{index-CmozKMxx.js → index-BthgsgYX.js} +6 -6
- package/dist/{index-pBmAzQJl.js → index-MCx5v1x0.js} +2 -2
- package/dist/index-jkm77Jrz.js +98 -0
- package/dist/{infoDiagram-6WOFNB3A-CfzLHHVP.js → infoDiagram-STP46IZ2-BlXxvOrR.js} +2 -2
- package/dist/{journeyDiagram-FFXJYRFH-ndAcpkGn.js → journeyDiagram-BIP6EPQ6-CNRYs_Fc.js} +24 -26
- package/dist/{kanban-definition-KOZQBZVT-DcQYzNvc.js → kanban-definition-6OIFK2YF-B9HeMAuP.js} +14 -14
- package/dist/{layout-XySVHJgD.js → layout-m2vOUiW1.js} +81 -81
- package/dist/{linear-PbooOqg7.js → linear-DU6Q5CX3.js} +35 -35
- package/dist/{main-B5yML0bw.js → main-BD2KGFpU.js} +74594 -68034
- package/dist/main.js +1 -1
- package/dist/{mermaid-Cg5IX6Nv.js → mermaid-HVCtvbyx.js} +6160 -7493
- package/dist/min-DcGMA4e_.js +80 -0
- package/dist/mindmap-definition-Q6HEUPPD-BW8UmIDQ.js +785 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/{number-overlay-editor-DUhfZqtP.js → number-overlay-editor-D8Hl0Syo.js} +19 -19
- package/dist/{pieDiagram-DBDJKBY4-DTOlNsja.js → pieDiagram-ADFJNKIX-Bg-3zg5U.js} +17 -17
- package/dist/{quadrantDiagram-YPSRARAO-BX2d8VS-.js → quadrantDiagram-LMRXKWRM-BO4IG6Yz.js} +6 -6
- package/dist/{react-plotly-Dcyw-3Sa.js → react-plotly-dkvHVuRb.js} +3577 -3577
- package/dist/{requirementDiagram-EGVEC5DT-D1T5u-wG.js → requirementDiagram-4UW4RH46-5sdTguSM.js} +7 -7
- package/dist/{sankeyDiagram-HRAUVNP4-G6xDfnp-.js → sankeyDiagram-GR3RE2ED-Buhlv9OI.js} +5 -5
- package/dist/sequenceDiagram-C3RYC4MD-C3qsM2UP.js +2519 -0
- package/dist/{slides-component-BJLlPJSr.js → slides-component-D209A0-s.js} +66 -66
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/{stateDiagram-UUKSUZ4H-CYXbjaom.js → stateDiagram-KXAO66HF-CopJ7G6P.js} +5 -5
- package/dist/{stateDiagram-v2-EYPG3UTE-Br1HYKT6.js → stateDiagram-v2-UMBNRL4Z-CejL8AKf.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/{time-B9SZnSen.js → time-BwSBitlN.js} +58 -58
- package/dist/{timeline-definition-3HZDQTIS-DeK_ZRD0.js → timeline-definition-XQNQX7LJ-DzMNTX-C.js} +10 -12
- package/dist/{timer-BYwnU4DF.js → timer-B0-z63CM.js} +16 -16
- package/dist/{treemap-75Q7IDZK-CKP4vV_0.js → treemap-75Q7IDZK-zeJG07dk.js} +14 -14
- package/dist/{vega-component-CpgdqX2d.js → vega-component-CUkiTayd.js} +30 -30
- package/dist/{xychartDiagram-FDP5SA34-AMEPsx_R.js → xychartDiagram-6GGTOJPD-DiENNXMS.js} +7 -7
- package/package.json +39 -39
- package/src/__mocks__/notebook.ts +3 -0
- package/src/__mocks__/requests.ts +3 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/chat-utils.test.ts +26 -211
- package/src/components/ai/ai-model-dropdown.tsx +25 -9
- package/src/components/app-config/ai-config.tsx +7 -0
- package/src/components/chat/chat-components.tsx +71 -0
- package/src/components/chat/chat-panel.tsx +481 -291
- package/src/components/chat/chat-utils.ts +50 -0
- package/src/components/chat/markdown-renderer.tsx +3 -7
- package/src/components/chat/tool-call-accordion.tsx +5 -5
- package/src/components/datasources/__tests__/utils.test.ts +6 -0
- package/src/components/datasources/column-preview.tsx +1 -3
- package/src/components/editor/actions/useNotebookActions.tsx +1 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +20 -15
- package/src/components/editor/ai/ai-completion-editor.tsx +22 -3
- package/src/components/editor/ai/completion-handlers.tsx +2 -4
- package/src/components/editor/ai/completion-utils.ts +85 -11
- package/src/components/editor/alerts/startup-logs-alert.tsx +72 -0
- package/src/components/editor/chrome/panels/datasources-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/documentation-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/error-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/outline-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -2
- package/src/components/editor/chrome/panels/scratchpad-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/secrets-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/tracing-panel.tsx +3 -1
- package/src/components/editor/chrome/panels/variable-panel.tsx +3 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +38 -28
- package/src/components/editor/controls/command-palette-button.tsx +1 -1
- package/src/components/editor/controls/command-palette.tsx +5 -4
- package/src/components/editor/controls/state.ts +4 -0
- package/src/components/editor/package-alert.tsx +108 -58
- package/src/components/editor/renderers/CellArray.tsx +2 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +0 -1
- package/src/components/pages/edit-page.tsx +7 -3
- package/src/core/ai/chat-utils.ts +26 -43
- package/src/core/ai/config.ts +1 -1
- package/src/core/ai/context/__tests__/registry.test.ts +277 -3
- package/src/core/ai/context/context.ts +11 -1
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +378 -0
- package/src/core/ai/context/providers/__tests__/error.test.ts +3 -2
- package/src/core/ai/context/providers/__tests__/file.test.ts +119 -0
- package/src/core/ai/context/providers/cell-output.ts +349 -0
- package/src/core/ai/context/providers/common.ts +5 -1
- package/src/core/ai/context/providers/file.ts +287 -0
- package/src/core/ai/context/registry.ts +79 -0
- package/src/core/ai/state.ts +22 -5
- package/src/core/alerts/state.ts +71 -3
- package/src/core/cells/cell.ts +2 -2
- package/src/core/cells/cells.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/cells/runs.ts +6 -5
- package/src/core/codemirror/ai/resources.ts +47 -5
- package/src/core/codemirror/ai/state.ts +12 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +45 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +1 -0
- package/src/core/codemirror/theme/dark.ts +1 -1
- package/src/core/config/capabilities.ts +1 -1
- package/src/core/datasets/__tests__/data-source.test.ts +24 -0
- package/src/core/errors/__tests__/errors.test.ts +2 -0
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/islands/main.ts +1 -0
- package/src/core/kernel/messages.ts +12 -6
- package/src/core/layout/layout.ts +3 -3
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.ts +1 -0
- package/src/core/network/types.ts +4 -1
- package/src/core/wasm/bridge.ts +18 -2
- package/src/core/wasm/worker/bootstrap.ts +3 -1
- package/src/core/wasm/worker/getMarimoWheel.ts +3 -8
- package/src/core/wasm/worker/types.ts +3 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +7 -1
- package/src/css/app/Cell.css +42 -21
- package/src/css/app/codemirror.css +5 -1
- package/src/css/globals.css +3 -0
- package/src/css/md.css +1 -1
- package/src/plugins/impl/MicrophonePlugin.tsx +2 -2
- package/src/plugins/impl/chat/ChatPlugin.tsx +2 -9
- package/src/plugins/impl/chat/chat-ui.tsx +129 -110
- package/src/plugins/impl/chat/types.ts +5 -8
- package/src/plugins/impl/code/__tests__/language.test.ts +15 -0
- package/src/plugins/impl/code/any-language-editor.tsx +11 -8
- package/src/plugins/layout/MimeRenderPlugin.tsx +3 -6
- package/src/stories/cell.stories.tsx +6 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +215 -0
- package/src/theme/useTheme.ts +11 -6
- package/src/utils/__tests__/blob.test.ts +37 -0
- package/src/utils/arrays.ts +13 -0
- package/src/utils/fileToBase64.ts +21 -6
- package/src/utils/json/base64.ts +5 -2
- package/src/utils/numbers.ts +9 -7
- package/dist/any-language-editor-DC5170DQ.js +0 -45
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/css-BkF-NPzE.js +0 -1553
- package/dist/index-5ZH_qS8j.js +0 -288
- package/dist/index-U4yn89qO.js +0 -341
- package/dist/javascript-C2yteZeJ.js +0 -691
- package/dist/min-DS5Jz-hg.js +0 -80
- package/dist/mindmap-definition-LNHGMQRG-0aOVaMR8.js +0 -3234
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/pug-CwAQJzGR.js +0 -248
- package/dist/python-BkR3uSy8.js +0 -313
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/sequenceDiagram-WFGC7UMF-DMhHzllb.js +0 -2284
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
function n(_) {
|
|
2
|
+
for (var t = {}, i = _.split(" "), e = 0; e < i.length; ++e) t[i[e]] = true;
|
|
3
|
+
return t;
|
|
4
|
+
}
|
|
5
|
+
var p = n(
|
|
6
|
+
/* ngxDirectiveControl */
|
|
7
|
+
"break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"
|
|
8
|
+
), u = n(
|
|
9
|
+
/* ngxDirectiveBlock */
|
|
10
|
+
"http mail events server types location upstream charset_map limit_except if geo map"
|
|
11
|
+
), f = n(
|
|
12
|
+
/* ngxDirectiveImportant */
|
|
13
|
+
"include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"
|
|
14
|
+
), s;
|
|
15
|
+
function r(_, t) {
|
|
16
|
+
return s = t, _;
|
|
17
|
+
}
|
|
18
|
+
function a(_, t) {
|
|
19
|
+
_.eatWhile(/[\w\$_]/);
|
|
20
|
+
var i = _.current();
|
|
21
|
+
if (p.propertyIsEnumerable(i))
|
|
22
|
+
return "keyword";
|
|
23
|
+
if (u.propertyIsEnumerable(i))
|
|
24
|
+
return "controlKeyword";
|
|
25
|
+
if (f.propertyIsEnumerable(i))
|
|
26
|
+
return "controlKeyword";
|
|
27
|
+
var e = _.next();
|
|
28
|
+
if (e == "@")
|
|
29
|
+
return _.eatWhile(/[\w\\\-]/), r("meta", _.current());
|
|
30
|
+
if (e == "/" && _.eat("*"))
|
|
31
|
+
return t.tokenize = c, c(_, t);
|
|
32
|
+
if (e == "<" && _.eat("!"))
|
|
33
|
+
return t.tokenize = l, l(_, t);
|
|
34
|
+
if (e == "=") r(null, "compare");
|
|
35
|
+
else return (e == "~" || e == "|") && _.eat("=") ? r(null, "compare") : e == '"' || e == "'" ? (t.tokenize = d(e), t.tokenize(_, t)) : e == "#" ? (_.skipToEnd(), r("comment", "comment")) : e == "!" ? (_.match(/^\s*\w*/), r("keyword", "important")) : /\d/.test(e) ? (_.eatWhile(/[\w.%]/), r("number", "unit")) : /[,.+>*\/]/.test(e) ? r(null, "select-op") : /[;{}:\[\]]/.test(e) ? r(null, e) : (_.eatWhile(/[\w\\\-]/), r("variable", "variable"));
|
|
36
|
+
}
|
|
37
|
+
function c(_, t) {
|
|
38
|
+
for (var i = false, e; (e = _.next()) != null; ) {
|
|
39
|
+
if (i && e == "/") {
|
|
40
|
+
t.tokenize = a;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
i = e == "*";
|
|
44
|
+
}
|
|
45
|
+
return r("comment", "comment");
|
|
46
|
+
}
|
|
47
|
+
function l(_, t) {
|
|
48
|
+
for (var i = 0, e; (e = _.next()) != null; ) {
|
|
49
|
+
if (i >= 2 && e == ">") {
|
|
50
|
+
t.tokenize = a;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
i = e == "-" ? i + 1 : 0;
|
|
54
|
+
}
|
|
55
|
+
return r("comment", "comment");
|
|
56
|
+
}
|
|
57
|
+
function d(_) {
|
|
58
|
+
return function(t, i) {
|
|
59
|
+
for (var e = false, o; (o = t.next()) != null && !(o == _ && !e); )
|
|
60
|
+
e = !e && o == "\\";
|
|
61
|
+
return e || (i.tokenize = a), r("string", "string");
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const m = {
|
|
65
|
+
name: "nginx",
|
|
66
|
+
startState: function() {
|
|
67
|
+
return {
|
|
68
|
+
tokenize: a,
|
|
69
|
+
baseIndent: 0,
|
|
70
|
+
stack: []
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
token: function(_, t) {
|
|
74
|
+
if (_.eatSpace()) return null;
|
|
75
|
+
s = null;
|
|
76
|
+
var i = t.tokenize(_, t), e = t.stack[t.stack.length - 1];
|
|
77
|
+
return s == "hash" && e == "rule" ? i = "atom" : i == "variable" && (e == "rule" ? i = "number" : (!e || e == "@media{") && (i = "tag")), e == "rule" && /^[\{\};]$/.test(s) && t.stack.pop(), s == "{" ? e == "@media" ? t.stack[t.stack.length - 1] = "@media{" : t.stack.push("{") : s == "}" ? t.stack.pop() : s == "@media" ? t.stack.push("@media") : e == "{" && s != "comment" && t.stack.push("rule"), i;
|
|
78
|
+
},
|
|
79
|
+
indent: function(_, t, i) {
|
|
80
|
+
var e = _.stack.length;
|
|
81
|
+
return /^\}/.test(t) && (e -= _.stack[_.stack.length - 1] == "rule" ? 2 : 1), _.baseIndent + e * i.unit;
|
|
82
|
+
},
|
|
83
|
+
languageData: {
|
|
84
|
+
indentOnInput: /^\s*\}$/
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
m as nginx
|
|
89
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as Te } from "./glide-data-editor-
|
|
1
|
+
import { w as X, r as T } from "./main-BD2KGFpU.js";
|
|
2
|
+
import { s as Te } from "./glide-data-editor-9nC3iCIZ.js";
|
|
3
3
|
const Be = /* @__PURE__ */ Te("div")({
|
|
4
4
|
name: "NumberOverlayEditorStyle",
|
|
5
5
|
class: "gdg-n15fjm3e",
|
|
@@ -163,12 +163,12 @@ function Ue(e) {
|
|
|
163
163
|
lastValue: ""
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function $e(e) {
|
|
167
167
|
var t = e.currentValue, r = e.formattedValue, n = e.currentValueIndex, a = e.formattedValueIndex;
|
|
168
168
|
return t[n] === r[a];
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
l === void 0 && (l =
|
|
170
|
+
function Ge(e, t, r, n, a, i, l) {
|
|
171
|
+
l === void 0 && (l = $e);
|
|
172
172
|
var m = a.findIndex(function(k) {
|
|
173
173
|
return k;
|
|
174
174
|
}), S = e.slice(0, m);
|
|
@@ -265,7 +265,7 @@ function He(e) {
|
|
|
265
265
|
B === void 0 && (B = Ze);
|
|
266
266
|
var F = e.isValidInputCharacter;
|
|
267
267
|
F === void 0 && (F = ae);
|
|
268
|
-
var k = e.isCharacterSame, j = Se(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), z = Ne(g, S, !!p, l, m, h), P = z[0], V = P.formattedValue, L = P.numAsString, W = z[1], M = T.useRef(), U = T.useRef({ formattedValue: V, numAsString: L }),
|
|
268
|
+
var k = e.isCharacterSame, j = Se(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), z = Ne(g, S, !!p, l, m, h), P = z[0], V = P.formattedValue, L = P.numAsString, W = z[1], M = T.useRef(), U = T.useRef({ formattedValue: V, numAsString: L }), $ = function(o, u) {
|
|
269
269
|
U.current = { formattedValue: o.formattedValue, numAsString: o.value }, W(o, u);
|
|
270
270
|
}, J = T.useState(false), ee = J[0], d = J[1], f = T.useRef(null), N = T.useRef({
|
|
271
271
|
setCaretTimeout: null,
|
|
@@ -290,21 +290,21 @@ function He(e) {
|
|
|
290
290
|
}, O = function(o, u, v) {
|
|
291
291
|
return me(o, u, B(o), v);
|
|
292
292
|
}, Q = function(o, u, v) {
|
|
293
|
-
var w = B(u), _ =
|
|
293
|
+
var w = B(u), _ = Ge(u, V, o, v, w, F, k);
|
|
294
294
|
return _ = me(u, _, w), _;
|
|
295
295
|
}, oe = function(o) {
|
|
296
296
|
var u = o.formattedValue;
|
|
297
297
|
u === void 0 && (u = "");
|
|
298
298
|
var v = o.input, w = o.source, _ = o.event, D = o.numAsString, b;
|
|
299
299
|
if (v) {
|
|
300
|
-
var K = o.inputValue || v.value,
|
|
301
|
-
v.value = u, b = Q(K, u,
|
|
300
|
+
var K = o.inputValue || v.value, G = ce(v);
|
|
301
|
+
v.value = u, b = Q(K, u, G), b !== void 0 && E(v, b, u);
|
|
302
302
|
}
|
|
303
|
-
u !== V &&
|
|
303
|
+
u !== V && $(A(u, D), { event: _, source: w });
|
|
304
304
|
};
|
|
305
305
|
T.useEffect(function() {
|
|
306
306
|
var o = U.current, u = o.formattedValue, v = o.numAsString;
|
|
307
|
-
(V !== u || L !== v) &&
|
|
307
|
+
(V !== u || L !== v) && $(A(V, L), {
|
|
308
308
|
event: void 0,
|
|
309
309
|
source: re.props
|
|
310
310
|
});
|
|
@@ -320,8 +320,8 @@ function He(e) {
|
|
|
320
320
|
var ue = function(o, u, v) {
|
|
321
321
|
var w = u.target, _ = M.current ? Pe(M.current, w.selectionEnd) : Ve(V, o), D = Object.assign(Object.assign({}, _), { lastValue: V }), b = m(o, D), K = R(b);
|
|
322
322
|
if (b = m(K, void 0), c && !c(A(K, b))) {
|
|
323
|
-
var
|
|
324
|
-
return
|
|
323
|
+
var G = u.target, Z = ce(G), fe = Q(o, V, Z);
|
|
324
|
+
return G.value = V, E(G, fe, V), false;
|
|
325
325
|
}
|
|
326
326
|
return oe({
|
|
327
327
|
formattedValue: K,
|
|
@@ -345,13 +345,13 @@ function He(e) {
|
|
|
345
345
|
v === "ArrowLeft" || v === "Backspace" ? b = Math.max(w - 1, 0) : v === "ArrowRight" ? b = Math.min(w + 1, D.length) : v === "Delete" && (b = w);
|
|
346
346
|
var K = 0;
|
|
347
347
|
v === "Delete" && w === _ && (K = 1);
|
|
348
|
-
var
|
|
349
|
-
if (b === void 0 || w !== _ &&
|
|
348
|
+
var G = v === "ArrowLeft" || v === "ArrowRight";
|
|
349
|
+
if (b === void 0 || w !== _ && !G) {
|
|
350
350
|
y(o), le(u, K);
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
353
|
var Z = b;
|
|
354
|
-
if (
|
|
354
|
+
if (G) {
|
|
355
355
|
var fe = v === "ArrowLeft" ? "left" : "right";
|
|
356
356
|
Z = O(D, b, fe), Z !== b && o.preventDefault();
|
|
357
357
|
} else v === "Delete" && !F(D[b]) ? Z = O(D, b, "right") : v === "Backspace" && !F(D[b]) && (Z = O(D, b, "left"));
|
|
@@ -458,7 +458,7 @@ function Ye(e, t, r) {
|
|
|
458
458
|
e = e.replace(new RegExp(xe(s), "g"), function(f, N) {
|
|
459
459
|
return N === U ? "." : "";
|
|
460
460
|
});
|
|
461
|
-
var
|
|
461
|
+
var $ = se(e, a), J = $.beforeDecimal, ee = $.afterDecimal, d = $.addNegation;
|
|
462
462
|
return p.end - p.start < S.end - S.start && J === "" && I && !parseFloat(ee) && (e = d ? "-" : ""), e;
|
|
463
463
|
}
|
|
464
464
|
function et(e, t) {
|
|
@@ -518,7 +518,7 @@ function rt(e) {
|
|
|
518
518
|
N === "Backspace" && E[0] === "-" && R === p.length + 1 && r && H(f, 1), m && S && (N === "Backspace" && E[R - 1] === C ? (H(f, R - 1), d.preventDefault()) : N === "Delete" && E[R] === C && d.preventDefault()), (g == null ? void 0 : g.includes(N)) && E[R] === C && H(f, R + 1);
|
|
519
519
|
var O = l === true ? "," : l;
|
|
520
520
|
N === "Backspace" && E[R - 1] === O && H(f, R - 1), N === "Delete" && E[R] === O && H(f, R + 1), a(d);
|
|
521
|
-
},
|
|
521
|
+
}, $ = function(d) {
|
|
522
522
|
var f = L;
|
|
523
523
|
if (f.match(/\d/g) || (f = ""), n || (f = ke(f)), S && m && (f = ge(f, m, S)), f !== L) {
|
|
524
524
|
var N = he(f, e);
|
|
@@ -552,7 +552,7 @@ function rt(e) {
|
|
|
552
552
|
return et(d, e);
|
|
553
553
|
},
|
|
554
554
|
onKeyDown: U,
|
|
555
|
-
onBlur:
|
|
555
|
+
onBlur: $
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
function at(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as j } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { p as ie } from "./treemap-75Q7IDZK-
|
|
4
|
-
import { d as I } from "./arc-
|
|
1
|
+
import { _ as p, g as j, s as q, a as H, b as K, t as Z, q as J, l as F, c as Q, F as X, K as Y, P as ee, e as te, z as ae, H as re } from "./mermaid-HVCtvbyx.js";
|
|
2
|
+
import { p as ne } from "./chunk-4BX2VUAB-CZR39zCO.js";
|
|
3
|
+
import { p as ie } from "./treemap-75Q7IDZK-zeJG07dk.js";
|
|
4
|
+
import { d as I } from "./arc-BOhn-m2C.js";
|
|
5
5
|
import { o as se } from "./ordinal-CYN5qNoq.js";
|
|
6
|
-
import { a as S, t as z, n as le } from "./timer-
|
|
6
|
+
import { a as S, t as z, n as le } from "./timer-B0-z63CM.js";
|
|
7
7
|
function oe(e, a) {
|
|
8
8
|
return a < e ? -1 : a > e ? 1 : a >= e ? 0 : NaN;
|
|
9
9
|
}
|
|
@@ -45,11 +45,11 @@ function ue() {
|
|
|
45
45
|
return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
|
|
46
46
|
}, l;
|
|
47
47
|
}
|
|
48
|
-
var pe =
|
|
48
|
+
var pe = re.pie, G = {
|
|
49
49
|
sections: /* @__PURE__ */ new Map(),
|
|
50
50
|
showData: false
|
|
51
51
|
}, T = G.sections, N = G.showData, de = structuredClone(pe), ge = /* @__PURE__ */ p(() => structuredClone(de), "getConfig"), fe = /* @__PURE__ */ p(() => {
|
|
52
|
-
T = /* @__PURE__ */ new Map(), N = G.showData,
|
|
52
|
+
T = /* @__PURE__ */ new Map(), N = G.showData, ae();
|
|
53
53
|
}, "clear"), he = /* @__PURE__ */ p(({ label: e, value: a }) => {
|
|
54
54
|
if (a < 0)
|
|
55
55
|
throw new Error(
|
|
@@ -61,18 +61,18 @@ var pe = ne.pie, G = {
|
|
|
61
61
|
}, "setShowData"), Se = /* @__PURE__ */ p(() => N, "getShowData"), L = {
|
|
62
62
|
getConfig: ge,
|
|
63
63
|
clear: fe,
|
|
64
|
-
setDiagramTitle:
|
|
65
|
-
getDiagramTitle:
|
|
66
|
-
setAccTitle:
|
|
67
|
-
getAccTitle:
|
|
68
|
-
setAccDescription:
|
|
69
|
-
getAccDescription:
|
|
64
|
+
setDiagramTitle: J,
|
|
65
|
+
getDiagramTitle: Z,
|
|
66
|
+
setAccTitle: K,
|
|
67
|
+
getAccTitle: H,
|
|
68
|
+
setAccDescription: q,
|
|
69
|
+
getAccDescription: j,
|
|
70
70
|
addSection: he,
|
|
71
71
|
getSections: me,
|
|
72
72
|
setShowData: ve,
|
|
73
73
|
getShowData: Se
|
|
74
74
|
}, xe = /* @__PURE__ */ p((e, a) => {
|
|
75
|
-
|
|
75
|
+
ne(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
|
|
76
76
|
}, "populateDb"), ye = {
|
|
77
77
|
parse: /* @__PURE__ */ p(async (e) => {
|
|
78
78
|
const a = await ie("pie", e);
|
|
@@ -112,10 +112,10 @@ var pe = ne.pie, G = {
|
|
|
112
112
|
}, "createPieArcs"), Ce = /* @__PURE__ */ p((e, a, f, x) => {
|
|
113
113
|
F.debug(`rendering pie chart
|
|
114
114
|
` + e);
|
|
115
|
-
const s = x.db, o =
|
|
115
|
+
const s = x.db, o = Q(), l = X(s.getConfig(), o.pie), t = 40, n = 18, c = 4, d = 450, y = d, m = Y(a), u = m.append("g");
|
|
116
116
|
u.attr("transform", "translate(" + y / 2 + "," + d / 2 + ")");
|
|
117
117
|
const { themeVariables: i } = o;
|
|
118
|
-
let [v] =
|
|
118
|
+
let [v] = ee(i.pieOuterStrokeWidth);
|
|
119
119
|
v ?? (v = 2);
|
|
120
120
|
const w = l.textPosition, h = Math.min(y, d) / 2 - t, C = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
|
|
121
121
|
u.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
|
|
@@ -150,7 +150,7 @@ var pe = ne.pie, G = {
|
|
|
150
150
|
const _ = Math.max(
|
|
151
151
|
...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
|
|
152
152
|
), O = y + t + n + c + _;
|
|
153
|
-
m.attr("viewBox", `0 0 ${O} ${d}`),
|
|
153
|
+
m.attr("viewBox", `0 0 ${O} ${d}`), te(m, d, O, l.useMaxWidth);
|
|
154
154
|
}, "draw"), $e = { draw: Ce }, Fe = {
|
|
155
155
|
parser: ye,
|
|
156
156
|
db: L,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { _ as r, s as be, g as Se, t as te, q as _e, a as Ae, b as ke, c as Et, l as qt, d as vt, e as Fe, z as Pe, H as D, M as ve, i as Ce } from "./mermaid-
|
|
3
|
-
import { l as $t } from "./linear-
|
|
4
|
-
var Ct = function() {
|
|
2
|
+
import { _ as r, s as be, g as Se, t as te, q as _e, a as Ae, b as ke, c as Et, l as qt, d as vt, e as Fe, z as Pe, H as D, M as ve, i as Ce } from "./mermaid-HVCtvbyx.js";
|
|
3
|
+
import { l as $t } from "./linear-DU6Q5CX3.js";
|
|
4
|
+
var Ct = (function() {
|
|
5
5
|
var t = /* @__PURE__ */ r(function(M, s, l, u) {
|
|
6
6
|
for (l = l || {}, u = M.length; u--; l[M[u]] = s) ;
|
|
7
7
|
return l;
|
|
@@ -188,7 +188,7 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Pt =
|
|
|
188
188
|
}
|
|
189
189
|
return true;
|
|
190
190
|
}, "parse")
|
|
191
|
-
}, pe = /* @__PURE__ */ function() {
|
|
191
|
+
}, pe = /* @__PURE__ */ (function() {
|
|
192
192
|
var M = {
|
|
193
193
|
EOF: 1,
|
|
194
194
|
parseError: /* @__PURE__ */ r(function(l, u) {
|
|
@@ -479,13 +479,13 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Pt =
|
|
|
479
479
|
conditions: { class_name: { rules: [28], inclusive: false }, point_y: { rules: [33], inclusive: false }, point_x: { rules: [32], inclusive: false }, point_start: { rules: [30, 31], inclusive: false }, acc_descr_multiline: { rules: [11, 12], inclusive: false }, acc_descr: { rules: [9], inclusive: false }, acc_title: { rules: [7], inclusive: false }, title: { rules: [5], inclusive: false }, md_string: { rules: [22, 23], inclusive: false }, string: { rules: [25, 26], inclusive: false }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: true } }
|
|
480
480
|
};
|
|
481
481
|
return M;
|
|
482
|
-
}();
|
|
482
|
+
})();
|
|
483
483
|
_t.lexer = pe;
|
|
484
484
|
function ft() {
|
|
485
485
|
this.yy = {};
|
|
486
486
|
}
|
|
487
487
|
return r(ft, "Parser"), ft.prototype = _t, _t.Parser = ft, new ft();
|
|
488
|
-
}();
|
|
488
|
+
})();
|
|
489
489
|
Ct.parser = Ct;
|
|
490
490
|
var Le = Ct, V = ve(), Ee = (_a = class {
|
|
491
491
|
constructor() {
|