@marimo-team/islands 0.14.18-dev9 → 0.15.1-dev10
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-sKkoI7J_.js → ConnectedDataExplorerComponent-BIDHfFwH.js} +2 -2
- package/dist/{ImageComparisonComponent-TPiJpnLF.js → ImageComparisonComponent-DNmskQsB.js} +1 -1
- package/dist/{_baseUniq-CNdqwfN5.js → _baseUniq-BerGWgvp.js} +54 -54
- package/dist/{any-language-editor-DYK8XIV9.js → any-language-editor-Doic3dKC.js} +1 -1
- package/dist/{architectureDiagram-SUXI7LT5-BiIH4UYX.js → architectureDiagram-KFL7JDKH-DX7Dfxnr.js} +2056 -2033
- package/dist/assets/{worker-CvLTHCt4.js → worker-COGufAQn.js} +701 -694
- package/dist/{blockDiagram-6J76NXCF-BpnWfh2V.js → blockDiagram-ZYB65J3Q-BJOFl2aM.js} +874 -867
- package/dist/{c4Diagram-6F6E4RAY-D29QE7hB.js → c4Diagram-AAMF2YG6-x0qS411O.js} +2 -2
- package/dist/{channel-Bcgertj0.js → channel-C6r9bPk3.js} +1 -1
- package/dist/{chunk-353BL4L5--CiHV6cN.js → chunk-ANTBXLJU-CvP1oYb6.js} +1 -1
- package/dist/{chunk-AACKK3MU-CBPZxRq5.js → chunk-FHKO5MBM-C8Qc-5zQ.js} +1 -1
- package/dist/{chunk-E2GYISFI-m0FySePo.js → chunk-GLLZNHP4-BQrm-sfi.js} +1 -1
- package/dist/{chunk-SZ463SBG-DKPaz0ti.js → chunk-JBRWN2VN-BaXj52HO.js} +101 -100
- package/dist/{chunk-OW32GOEJ-DWr9cx7S.js → chunk-LXBSTHXV-gjraHKLG.js} +3 -3
- package/dist/{chunk-SKB7J2MH-Dmp2cNaO.js → chunk-NRVI72HA-DMBGbqKL.js} +1 -1
- package/dist/{chunk-67H74DCK-BQWB3que.js → chunk-OMD6QJNC-BYhvZR0Q.js} +1 -1
- package/dist/{chunk-BFAMUDN2-Bc32Nopu.js → chunk-WVR4S24B-ZjtqNnTl.js} +1 -1
- package/dist/{classDiagram-v2-YAWTLIQI-GHh_bW8b.js → classDiagram-3BZAVTQC-DWYE4NoQ.js} +2 -2
- package/dist/{classDiagram-M3E45YP4-GHh_bW8b.js → classDiagram-v2-QTMF73CY-DWYE4NoQ.js} +2 -2
- package/dist/{clone-_N6EM6Op.js → clone-dxPIOZ-r.js} +1 -1
- package/dist/common-keywords-BefPf8TA.js +7 -0
- package/dist/{cytoscape.esm-DHKdpbSh.js → cytoscape.esm-BYnVVhJX.js} +4462 -4345
- package/dist/{dagre-JOIXM2OF-D3Ixmsdf.js → dagre-2BBEFEWP-CzHJ4OhK.js} +6 -6
- package/dist/{data-grid-overlay-editor-BZIlBk_2.js → data-grid-overlay-editor-XeDv35OR.js} +2 -2
- package/dist/{diagram-VMROVX33-Bcg30UDf.js → diagram-4IRLE6MV-BClcg9HA.js} +5 -5
- package/dist/diagram-GUPCWM2R-B_6JECpn.js +144 -0
- package/dist/{diagram-ZTM2IBQH-BhmyIBE-.js → diagram-RP2FKANI-B_7Xh4fv.js} +3 -3
- package/dist/duckdb-keywords-WTV2Iln-.js +7 -0
- package/dist/{erDiagram-3M52JZNH-y6YXLXuL.js → erDiagram-HZWUO2LU-DT9UvdxG.js} +4 -4
- package/dist/{flowDiagram-KYDEHFYC-xkSHpgfV.js → flowDiagram-THRYKUMA-mFTSeIk7.js} +61 -61
- package/dist/{ganttDiagram-EK5VF46D-CjlWOxxR.js → ganttDiagram-WV7ZQ7D5-BY3c9UTU.js} +562 -565
- package/dist/{gitGraphDiagram-GW3U2K7C-BOFtN_k5.js → gitGraphDiagram-OJR772UL-zoDq5W94.js} +4 -4
- package/dist/{glide-data-editor-DSqE1MGb.js → glide-data-editor-C_RlTnet.js} +3 -3
- package/dist/{graph-CYaaS8YP.js → graph-CufF5hzB.js} +3 -3
- package/dist/{index-B5bbjNeG.js → index-Bdw9CplZ.js} +1 -1
- package/dist/{index-CpWjEJkV.js → index-CO0vo1K7.js} +144 -144
- package/dist/index-CzG80T92.js +40315 -0
- package/dist/{index-CK3137W-.js → index-V6AHCVvK.js} +1 -1
- package/dist/{index-CGh27NE4.js → index-ezOrnRNU.js} +1 -1
- package/dist/{infoDiagram-LHK5PUON-C9568Giu.js → infoDiagram-6WOFNB3A-ChWW8LLZ.js} +2 -2
- package/dist/{journeyDiagram-EWQZEKCU-BCDjdWlE.js → journeyDiagram-FFXJYRFH-B5tIHsz4.js} +3 -3
- package/dist/{kanban-definition-ZSS6B67P-DJv26ypt.js → kanban-definition-KOZQBZVT-CT4S8AJD.js} +2 -2
- package/dist/{layout-CPN5719K.js → layout-DEnv2D-P.js} +35 -35
- package/dist/{linear-qwYbqeyR.js → linear-Bii2oeTZ.js} +19 -19
- package/dist/{main-BiZBHBEd.js → main-C81Qd2DK.js} +41523 -40156
- package/dist/main.js +1 -1
- package/dist/{mermaid-CLsxmXkQ.js → mermaid-CTBiBoaH.js} +4060 -3954
- package/dist/{min-CL5SEDkT.js → min-DqeIcY6U.js} +14 -14
- package/dist/{mindmap-definition-6CBA2TL7-Bbh3fuli.js → mindmap-definition-LNHGMQRG-BsmOiQJ4.js} +3 -3
- package/dist/{number-overlay-editor-D5mnbuyJ.js → number-overlay-editor-BHC5X-Lb.js} +2 -2
- package/dist/pieDiagram-DBDJKBY4-lxeLW5ty.js +162 -0
- package/dist/{quadrantDiagram-2OG54O6I-Cc8BnfHa.js → quadrantDiagram-YPSRARAO-CI2Xnnw_.js} +2 -2
- package/dist/{react-plotly-D3sBLSao.js → react-plotly-Dc87nM_n.js} +1 -1
- package/dist/{requirementDiagram-QOLK2EJ7-XP3SJztJ.js → requirementDiagram-EGVEC5DT-DnkoJ9T9.js} +3 -3
- package/dist/{sankeyDiagram-4UZDY2LN-CLfl4x5B.js → sankeyDiagram-HRAUVNP4-D_qWNV3j.js} +11 -9
- package/dist/{sequenceDiagram-SKLFT4DO-B6uZ2TLe.js → sequenceDiagram-WFGC7UMF-BWKW7aPY.js} +4 -4
- package/dist/{slides-component-Bb8CIGfJ.js → slides-component--9d0imfh.js} +26 -26
- package/dist/{stateDiagram-MI5ZYTHO-BkZswbX2.js → stateDiagram-UUKSUZ4H-CoPA3raY.js} +4 -4
- package/dist/{stateDiagram-v2-5AN5P6BG-DotZR8CQ.js → stateDiagram-v2-EYPG3UTE-6owwpkmY.js} +2 -2
- package/dist/{time-Bys_HZaY.js → time-B0f3H4v6.js} +2 -2
- package/dist/{timeline-definition-MYPXXCX6-bVR0nW5y.js → timeline-definition-3HZDQTIS-DogrRgC9.js} +1 -1
- package/dist/{treemap-75Q7IDZK-CmZmDu3A.js → treemap-75Q7IDZK-DlQO6GtH.js} +131 -131
- package/dist/{vega-component-DLlF3Y5o.js → vega-component-CyP-TV60.js} +2 -2
- package/dist/{xychartDiagram-H2YORKM3-C9HzjkZl.js → xychartDiagram-FDP5SA34-CRJjfJQa.js} +36 -34
- package/package.json +11 -6
- package/src/README.md +18 -0
- package/src/__mocks__/common.ts +160 -0
- package/src/__mocks__/notebook.ts +76 -0
- package/src/__mocks__/requests.ts +72 -0
- package/src/__mocks__/tracebacks.ts +32 -0
- package/src/__tests__/CellStatus.test.tsx +263 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +523 -0
- package/src/__tests__/chat-utils.test.ts +234 -0
- package/src/__tests__/lru.test.ts +74 -0
- package/src/__tests__/main.test.tsx +174 -0
- package/src/__tests__/setup.ts +17 -0
- package/src/__tests__/test-helpers.ts +24 -0
- package/src/assets/circle-check.ico +0 -0
- package/src/assets/circle-play.ico +0 -0
- package/src/assets/circle-x.ico +0 -0
- package/src/assets/gradient.png +0 -0
- package/src/assets/icon-16x16.png +0 -0
- package/src/assets/icon-32x32.png +0 -0
- package/src/assets/noise.png +0 -0
- package/src/components/ai/ai-model-dropdown.tsx +405 -0
- package/src/components/ai/ai-provider-icon.tsx +54 -0
- package/src/components/app-config/ai-config.tsx +855 -0
- package/src/components/app-config/app-config-button.tsx +100 -0
- package/src/components/app-config/app-config-form.tsx +307 -0
- package/src/components/app-config/common.tsx +48 -0
- package/src/components/app-config/constants.ts +13 -0
- package/src/components/app-config/incorrect-model-id.tsx +43 -0
- package/src/components/app-config/is-overridden.tsx +119 -0
- package/src/components/app-config/optional-features.tsx +251 -0
- package/src/components/app-config/state.ts +18 -0
- package/src/components/app-config/user-config-form.tsx +1361 -0
- package/src/components/audio/audio-recorder.tsx +63 -0
- package/src/components/buttons/clear-button.tsx +23 -0
- package/src/components/buttons/undo-button.tsx +35 -0
- package/src/components/chat/chat-panel.tsx +720 -0
- package/src/components/chat/markdown-renderer.tsx +217 -0
- package/src/components/chat/reasoning-accordion.tsx +50 -0
- package/src/components/chat/tool-call-accordion.tsx +118 -0
- package/src/components/data-table/SearchBar.tsx +66 -0
- package/src/components/data-table/TableActions.tsx +183 -0
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +1079 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +707 -0
- package/src/components/data-table/__tests__/column_formatting.test.ts +115 -0
- package/src/components/data-table/__tests__/columns.test.tsx +341 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +60 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +152 -0
- package/src/components/data-table/__tests__/types.test.ts +44 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +169 -0
- package/src/components/data-table/__tests__/useColumnPinning.test.ts +76 -0
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +187 -0
- package/src/components/data-table/cell-selection/feature.ts +123 -0
- package/src/components/data-table/cell-selection/types.ts +49 -0
- package/src/components/data-table/cell-styling/feature.ts +40 -0
- package/src/components/data-table/cell-styling/types.ts +26 -0
- package/src/components/data-table/charts/README.md +65 -0
- package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +47 -0
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +425 -0
- package/src/components/data-table/charts/__tests__/renderer.test.ts +20 -0
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +83 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +997 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +103 -0
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +162 -0
- package/src/components/data-table/charts/chart-spec/encodings.ts +173 -0
- package/src/components/data-table/charts/chart-spec/spec.ts +345 -0
- package/src/components/data-table/charts/chart-spec/tooltips.ts +168 -0
- package/src/components/data-table/charts/chart-spec/types.ts +77 -0
- package/src/components/data-table/charts/charts.tsx +492 -0
- package/src/components/data-table/charts/components/chart-items.tsx +369 -0
- package/src/components/data-table/charts/components/chart-states.tsx +37 -0
- package/src/components/data-table/charts/components/form-fields.tsx +872 -0
- package/src/components/data-table/charts/components/layouts.tsx +118 -0
- package/src/components/data-table/charts/constants.ts +159 -0
- package/src/components/data-table/charts/context.ts +20 -0
- package/src/components/data-table/charts/forms/common-chart.tsx +202 -0
- package/src/components/data-table/charts/forms/heatmap.tsx +44 -0
- package/src/components/data-table/charts/forms/pie.tsx +70 -0
- package/src/components/data-table/charts/lazy-chart.tsx +56 -0
- package/src/components/data-table/charts/schemas.ts +140 -0
- package/src/components/data-table/charts/storage.ts +88 -0
- package/src/components/data-table/charts/types.ts +124 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +227 -0
- package/src/components/data-table/column-formatting/feature.ts +247 -0
- package/src/components/data-table/column-formatting/types.ts +54 -0
- package/src/components/data-table/column-header.tsx +672 -0
- package/src/components/data-table/column-summary/chart-skeleton.tsx +57 -0
- package/src/components/data-table/column-summary/chart-spec-model.tsx +916 -0
- package/src/components/data-table/column-summary/column-summary.tsx +166 -0
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +242 -0
- package/src/components/data-table/column-summary/utils.ts +142 -0
- package/src/components/data-table/column-wrapping/feature.ts +62 -0
- package/src/components/data-table/column-wrapping/types.ts +29 -0
- package/src/components/data-table/columns.tsx +528 -0
- package/src/components/data-table/copy-column/feature.ts +27 -0
- package/src/components/data-table/copy-column/types.ts +19 -0
- package/src/components/data-table/data-table.tsx +298 -0
- package/src/components/data-table/date-popover.tsx +146 -0
- package/src/components/data-table/download-actions.tsx +186 -0
- package/src/components/data-table/filter-pills.tsx +120 -0
- package/src/components/data-table/filters.ts +202 -0
- package/src/components/data-table/focus-row/feature.ts +41 -0
- package/src/components/data-table/focus-row/types.ts +32 -0
- package/src/components/data-table/header-items.tsx +295 -0
- package/src/components/data-table/hooks/use-column-pinning.ts +51 -0
- package/src/components/data-table/hooks/use-panel-ownership.ts +98 -0
- package/src/components/data-table/loading-table.tsx +56 -0
- package/src/components/data-table/mime-cell.tsx +68 -0
- package/src/components/data-table/pagination.tsx +329 -0
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +907 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +316 -0
- package/src/components/data-table/range-focus/atoms.ts +380 -0
- package/src/components/data-table/range-focus/cell-selection-indicator.tsx +37 -0
- package/src/components/data-table/range-focus/provider.tsx +13 -0
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +119 -0
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +46 -0
- package/src/components/data-table/range-focus/utils.ts +105 -0
- package/src/components/data-table/renderers.tsx +247 -0
- package/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts +82 -0
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +58 -0
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +371 -0
- package/src/components/data-table/types.ts +81 -0
- package/src/components/data-table/uniformSample.tsx +19 -0
- package/src/components/data-table/url-detector.tsx +111 -0
- package/src/components/data-table/utils.ts +46 -0
- package/src/components/databases/display.tsx +66 -0
- package/src/components/databases/engine-variable.tsx +51 -0
- package/src/components/databases/icon.tsx +91 -0
- package/src/components/databases/icons/clickhouse.svg +1 -0
- package/src/components/databases/icons/databricks.svg +1 -0
- package/src/components/databases/icons/datafusion.png +0 -0
- package/src/components/databases/icons/duckdb.svg +1 -0
- package/src/components/databases/icons/googlebigquery.svg +1 -0
- package/src/components/databases/icons/iceberg.png +0 -0
- package/src/components/databases/icons/motherduck.svg +9 -0
- package/src/components/databases/icons/mysql.svg +1 -0
- package/src/components/databases/icons/postgresql.svg +1 -0
- package/src/components/databases/icons/redshift.svg +1 -0
- package/src/components/databases/icons/snowflake.svg +1 -0
- package/src/components/databases/icons/spark.svg +1 -0
- package/src/components/databases/icons/sqlalchemy.svg +1 -0
- package/src/components/databases/icons/sqlite.svg +1 -0
- package/src/components/databases/icons/timeplus.svg +17 -0
- package/src/components/databases/icons/trino.svg +1 -0
- package/src/components/datasets/icons.tsx +55 -0
- package/src/components/datasources/__tests__/install-package-button.test.tsx +85 -0
- package/src/components/datasources/__tests__/utils.test.ts +171 -0
- package/src/components/datasources/column-preview.tsx +269 -0
- package/src/components/datasources/components.tsx +100 -0
- package/src/components/datasources/datasources.tsx +799 -0
- package/src/components/datasources/install-package-button.tsx +46 -0
- package/src/components/datasources/utils.ts +62 -0
- package/src/components/debug/indicator.tsx +19 -0
- package/src/components/debugger/debugger-code.css +3 -0
- package/src/components/debugger/debugger-code.tsx +222 -0
- package/src/components/dependency-graph/custom-node.tsx +89 -0
- package/src/components/dependency-graph/dependency-graph-minimap.tsx +197 -0
- package/src/components/dependency-graph/dependency-graph-tree.tsx +181 -0
- package/src/components/dependency-graph/dependency-graph.css +17 -0
- package/src/components/dependency-graph/dependency-graph.tsx +66 -0
- package/src/components/dependency-graph/elements.ts +185 -0
- package/src/components/dependency-graph/panels.tsx +279 -0
- package/src/components/dependency-graph/types.ts +21 -0
- package/src/components/dependency-graph/utils/changes.ts +54 -0
- package/src/components/dependency-graph/utils/layout.ts +45 -0
- package/src/components/dependency-graph/utils/useFitToViewOnDimensionChange.ts +25 -0
- package/src/components/editor/Cell.tsx +1175 -0
- package/src/components/editor/Disconnected.tsx +72 -0
- package/src/components/editor/Output.tsx +462 -0
- package/src/components/editor/RecoveryButton.tsx +161 -0
- package/src/components/editor/SortableCell.tsx +161 -0
- package/src/components/editor/__tests__/data-attributes.test.tsx +173 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +183 -0
- package/src/components/editor/actions/name-cell-input.tsx +137 -0
- package/src/components/editor/actions/types.ts +53 -0
- package/src/components/editor/actions/useCellActionButton.tsx +422 -0
- package/src/components/editor/actions/useConfigActions.tsx +182 -0
- package/src/components/editor/actions/useCopyNotebook.tsx +41 -0
- package/src/components/editor/actions/useHideAllMarkdownCode.ts +53 -0
- package/src/components/editor/actions/useNotebookActions.tsx +556 -0
- package/src/components/editor/actions/useRestartKernel.tsx +36 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +379 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +428 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +261 -0
- package/src/components/editor/ai/completion-handlers.tsx +91 -0
- package/src/components/editor/ai/completion-utils.ts +95 -0
- package/src/components/editor/ai/merge-editor.css +9 -0
- package/src/components/editor/alerts/connecting-alert.tsx +46 -0
- package/src/components/editor/alerts/floating-alert.tsx +47 -0
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +61 -0
- package/src/components/editor/app-container.tsx +53 -0
- package/src/components/editor/boundary/ErrorBoundary.tsx +41 -0
- package/src/components/editor/cell/CellStatus.tsx +371 -0
- package/src/components/editor/cell/CreateCellButton.tsx +132 -0
- package/src/components/editor/cell/DeleteButton.tsx +58 -0
- package/src/components/editor/cell/PendingDeleteConfirmation.tsx +126 -0
- package/src/components/editor/cell/RunButton.tsx +109 -0
- package/src/components/editor/cell/StopButton.tsx +36 -0
- package/src/components/editor/cell/TinyCode.css +10 -0
- package/src/components/editor/cell/TinyCode.tsx +53 -0
- package/src/components/editor/cell/cell-actions.tsx +185 -0
- package/src/components/editor/cell/cell-context-menu.tsx +243 -0
- package/src/components/editor/cell/cell-status.css +21 -0
- package/src/components/editor/cell/code/cell-editor.tsx +546 -0
- package/src/components/editor/cell/code/icons.tsx +31 -0
- package/src/components/editor/cell/code/language-toggle.tsx +140 -0
- package/src/components/editor/cell/collapse.tsx +100 -0
- package/src/components/editor/cell/toolbar.tsx +89 -0
- package/src/components/editor/cell/useAddCell.ts +29 -0
- package/src/components/editor/cell/useDeleteCell.tsx +89 -0
- package/src/components/editor/cell/useRunCells.ts +86 -0
- package/src/components/editor/cell/useShouldShowInterrupt.ts +26 -0
- package/src/components/editor/cell/useSplitCell.tsx +41 -0
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +138 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +105 -0
- package/src/components/editor/chrome/panels/__tests__/write-secret-modal.test.ts +43 -0
- package/src/components/editor/chrome/panels/constants.ts +2 -0
- package/src/components/editor/chrome/panels/context-aware-panel/atoms.ts +28 -0
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +167 -0
- package/src/components/editor/chrome/panels/datasources-panel.tsx +6 -0
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +23 -0
- package/src/components/editor/chrome/panels/documentation-panel.tsx +29 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +28 -0
- package/src/components/editor/chrome/panels/error-panel.tsx +35 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +33 -0
- package/src/components/editor/chrome/panels/logs-panel.tsx +97 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +129 -0
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +172 -0
- package/src/components/editor/chrome/panels/outline-panel.css +6 -0
- package/src/components/editor/chrome/panels/outline-panel.tsx +39 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +635 -0
- package/src/components/editor/chrome/panels/packages-state.ts +5 -0
- package/src/components/editor/chrome/panels/scratchpad-panel.tsx +8 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +155 -0
- package/src/components/editor/chrome/panels/snippets-panel.css +11 -0
- package/src/components/editor/chrome/panels/snippets-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/tracing-panel.tsx +28 -0
- package/src/components/editor/chrome/panels/variable-panel.tsx +31 -0
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +190 -0
- package/src/components/editor/chrome/state.ts +102 -0
- package/src/components/editor/chrome/types.ts +133 -0
- package/src/components/editor/chrome/wrapper/__tests__/minimap-state.test.ts +209 -0
- package/src/components/editor/chrome/wrapper/__tests__/storage.test.ts +41 -0
- package/src/components/editor/chrome/wrapper/app-chrome.css +22 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +256 -0
- package/src/components/editor/chrome/wrapper/footer-item.tsx +43 -0
- package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +47 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +111 -0
- package/src/components/editor/chrome/wrapper/footer-items/copilot-status.tsx +125 -0
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +185 -0
- package/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx +21 -0
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +65 -0
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +370 -0
- package/src/components/editor/chrome/wrapper/footer.tsx +90 -0
- package/src/components/editor/chrome/wrapper/minimap-state.ts +164 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +443 -0
- package/src/components/editor/chrome/wrapper/panels.tsx +10 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +100 -0
- package/src/components/editor/chrome/wrapper/storage.ts +56 -0
- package/src/components/editor/chrome/wrapper/utils.ts +8 -0
- package/src/components/editor/code/readonly-python-code.tsx +160 -0
- package/src/components/editor/columns/__tests__/storage.test.ts +104 -0
- package/src/components/editor/columns/cell-column.tsx +105 -0
- package/src/components/editor/columns/sortable-column.tsx +175 -0
- package/src/components/editor/columns/storage.ts +56 -0
- package/src/components/editor/common.ts +20 -0
- package/src/components/editor/controls/Controls.tsx +225 -0
- package/src/components/editor/controls/command-palette-button.tsx +27 -0
- package/src/components/editor/controls/command-palette.tsx +210 -0
- package/src/components/editor/controls/keyboard-shortcuts.tsx +309 -0
- package/src/components/editor/controls/notebook-menu-dropdown.tsx +157 -0
- package/src/components/editor/controls/shutdown-button.tsx +70 -0
- package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +659 -0
- package/src/components/editor/database/__tests__/as-code.test.ts +598 -0
- package/src/components/editor/database/__tests__/secrets.test.ts +38 -0
- package/src/components/editor/database/add-database-form.tsx +395 -0
- package/src/components/editor/database/as-code.ts +786 -0
- package/src/components/editor/database/form-renderers.tsx +211 -0
- package/src/components/editor/database/schemas.ts +485 -0
- package/src/components/editor/database/secrets.ts +25 -0
- package/src/components/editor/documentation.css +139 -0
- package/src/components/editor/dynamic-favicon.tsx +126 -0
- package/src/components/editor/errors/auto-fix.tsx +61 -0
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +321 -0
- package/src/components/editor/file-tree/file-explorer.tsx +679 -0
- package/src/components/editor/file-tree/file-viewer.tsx +283 -0
- package/src/components/editor/file-tree/renderers.tsx +83 -0
- package/src/components/editor/file-tree/requesting-tree.tsx +228 -0
- package/src/components/editor/file-tree/state.tsx +26 -0
- package/src/components/editor/file-tree/types.ts +118 -0
- package/src/components/editor/file-tree/upload.tsx +101 -0
- package/src/components/editor/header/app-header.tsx +28 -0
- package/src/components/editor/header/filename-form.tsx +27 -0
- package/src/components/editor/header/filename-input.css +21 -0
- package/src/components/editor/header/filename-input.tsx +244 -0
- package/src/components/editor/header/status.tsx +72 -0
- package/src/components/editor/inputs/Inputs.css +118 -0
- package/src/components/editor/inputs/Inputs.styles.ts +66 -0
- package/src/components/editor/inputs/Inputs.tsx +34 -0
- package/src/components/editor/kiosk-mode.tsx +25 -0
- package/src/components/editor/links/cell-link-list.tsx +74 -0
- package/src/components/editor/links/cell-link.tsx +128 -0
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +466 -0
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1771 -0
- package/src/components/editor/navigation/__tests__/selection.test.ts +194 -0
- package/src/components/editor/navigation/clipboard.ts +205 -0
- package/src/components/editor/navigation/focus-utils.ts +48 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +499 -0
- package/src/components/editor/navigation/navigation.ts +704 -0
- package/src/components/editor/navigation/selection.ts +114 -0
- package/src/components/editor/navigation/state.ts +5 -0
- package/src/components/editor/navigation/vim-bindings.test.ts +109 -0
- package/src/components/editor/navigation/vim-bindings.ts +90 -0
- package/src/components/editor/notebook-banner.tsx +75 -0
- package/src/components/editor/output/CalloutOutput.styles.ts +22 -0
- package/src/components/editor/output/CalloutOutput.tsx +19 -0
- package/src/components/editor/output/ConsoleOutput.tsx +276 -0
- package/src/components/editor/output/EmotionCacheProvider.tsx +32 -0
- package/src/components/editor/output/HtmlOutput.tsx +25 -0
- package/src/components/editor/output/ImageOutput.tsx +25 -0
- package/src/components/editor/output/JsonOutput.tsx +424 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +511 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +233 -0
- package/src/components/editor/output/Outputs.css +102 -0
- package/src/components/editor/output/TextOutput.tsx +42 -0
- package/src/components/editor/output/VideoOutput.tsx +11 -0
- package/src/components/editor/output/__tests__/ansi.test.ts +39 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +269 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +105 -0
- package/src/components/editor/output/useWrapText.ts +14 -0
- package/src/components/editor/package-alert.tsx +596 -0
- package/src/components/editor/renderMimeIcon.tsx +38 -0
- package/src/components/editor/renderers/CellArray.tsx +352 -0
- package/src/components/editor/renderers/cells-renderer.tsx +96 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +650 -0
- package/src/components/editor/renderers/grid-layout/plugin.tsx +146 -0
- package/src/components/editor/renderers/grid-layout/styles.css +31 -0
- package/src/components/editor/renderers/grid-layout/types.ts +89 -0
- package/src/components/editor/renderers/layout-select.tsx +86 -0
- package/src/components/editor/renderers/plugins.ts +31 -0
- package/src/components/editor/renderers/slides-layout/plugin.tsx +31 -0
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +74 -0
- package/src/components/editor/renderers/slides-layout/types.ts +12 -0
- package/src/components/editor/renderers/types.ts +75 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useDelayVisibility.test.ts +87 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +123 -0
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +173 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/__tests__/sidebar.test.tsx +56 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sheet-sidebar.tsx +32 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar-slot.tsx +10 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css +20 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.tsx +30 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/state.ts +46 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +25 -0
- package/src/components/editor/renderers/vertical-layout/sidebar/wrapped-with-sidebar.tsx +38 -0
- package/src/components/editor/renderers/vertical-layout/useDelayVisibility.ts +32 -0
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +107 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +46 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +451 -0
- package/src/components/editor/stdin-blocking-alert.tsx +83 -0
- package/src/components/export/export-output-button.tsx +14 -0
- package/src/components/find-replace/find-replace.tsx +293 -0
- package/src/components/forms/__tests__/form-utils.test.ts +104 -0
- package/src/components/forms/form-utils.ts +90 -0
- package/src/components/forms/form.tsx +817 -0
- package/src/components/forms/options.ts +59 -0
- package/src/components/forms/switchable-multi-select.tsx +134 -0
- package/src/components/home/components.tsx +189 -0
- package/src/components/home/state.ts +30 -0
- package/src/components/icons/copy-icon.tsx +59 -0
- package/src/components/icons/github-copilot.tsx +17 -0
- package/src/components/icons/large-spinner.tsx +39 -0
- package/src/components/icons/loading-ellipsis.tsx +46 -0
- package/src/components/icons/multi-icon.css +9 -0
- package/src/components/icons/multi-icon.tsx +30 -0
- package/src/components/icons/spinner.tsx +38 -0
- package/src/components/layout/toolbar.tsx +26 -0
- package/src/components/modal/ImperativeModal.tsx +187 -0
- package/src/components/pages/edit-page.tsx +37 -0
- package/src/components/pages/home-page.tsx +514 -0
- package/src/components/pages/run-page.tsx +55 -0
- package/src/components/scratchpad/scratchpad-history.ts +28 -0
- package/src/components/scratchpad/scratchpad.tsx +280 -0
- package/src/components/shortcuts/renderShortcut.tsx +208 -0
- package/src/components/slides/slides-component.tsx +132 -0
- package/src/components/slides/slides.css +100 -0
- package/src/components/sort/SortableCellsProvider.tsx +242 -0
- package/src/components/static-html/share-modal.tsx +181 -0
- package/src/components/static-html/static-banner.tsx +164 -0
- package/src/components/terminal/terminal.tsx +110 -0
- package/src/components/terminal/xterm.css +3 -0
- package/src/components/tracing/tracing-spec.ts +118 -0
- package/src/components/tracing/tracing.test.tsx +66 -0
- package/src/components/tracing/tracing.tsx +410 -0
- package/src/components/ui/accordion.tsx +70 -0
- package/src/components/ui/alert-dialog.tsx +176 -0
- package/src/components/ui/alert.tsx +64 -0
- package/src/components/ui/aria-popover.tsx +43 -0
- package/src/components/ui/badge.tsx +41 -0
- package/src/components/ui/button.tsx +156 -0
- package/src/components/ui/calendar.tsx +231 -0
- package/src/components/ui/card.tsx +83 -0
- package/src/components/ui/checkbox.tsx +33 -0
- package/src/components/ui/combobox.tsx +278 -0
- package/src/components/ui/command.tsx +165 -0
- package/src/components/ui/context-menu.tsx +193 -0
- package/src/components/ui/date-input.tsx +127 -0
- package/src/components/ui/date-picker.tsx +188 -0
- package/src/components/ui/dialog.tsx +155 -0
- package/src/components/ui/draggable-popover.tsx +68 -0
- package/src/components/ui/dropdown-menu.tsx +190 -0
- package/src/components/ui/field.tsx +90 -0
- package/src/components/ui/form.tsx +224 -0
- package/src/components/ui/fullscreen.tsx +38 -0
- package/src/components/ui/input.tsx +208 -0
- package/src/components/ui/kbd.tsx +22 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/links.tsx +23 -0
- package/src/components/ui/menu-items.tsx +101 -0
- package/src/components/ui/native-select.tsx +39 -0
- package/src/components/ui/navigation.tsx +154 -0
- package/src/components/ui/number-field.tsx +99 -0
- package/src/components/ui/popover.tsx +63 -0
- package/src/components/ui/progress.tsx +28 -0
- package/src/components/ui/radio-group.tsx +44 -0
- package/src/components/ui/range-slider.tsx +102 -0
- package/src/components/ui/scroll-area.tsx +47 -0
- package/src/components/ui/select.tsx +167 -0
- package/src/components/ui/sheet.tsx +143 -0
- package/src/components/ui/skeleton.tsx +16 -0
- package/src/components/ui/slider.tsx +80 -0
- package/src/components/ui/switch.tsx +54 -0
- package/src/components/ui/table.tsx +122 -0
- package/src/components/ui/tabs.tsx +55 -0
- package/src/components/ui/textarea.tsx +104 -0
- package/src/components/ui/toast.tsx +133 -0
- package/src/components/ui/toaster.tsx +30 -0
- package/src/components/ui/toggle.tsx +49 -0
- package/src/components/ui/tooltip.tsx +87 -0
- package/src/components/ui/typography.tsx +207 -0
- package/src/components/ui/use-restore-focus.ts +28 -0
- package/src/components/ui/use-toast.ts +224 -0
- package/src/components/utils/delay-mount.tsx +81 -0
- package/src/components/utils/lazy-mount.tsx +24 -0
- package/src/components/variables/common.tsx +37 -0
- package/src/components/variables/variables-table.tsx +335 -0
- package/src/core/MarimoApp.tsx +103 -0
- package/src/core/ai/__tests__/model-registry.test.ts +357 -0
- package/src/core/ai/chat-utils.ts +71 -0
- package/src/core/ai/config.ts +76 -0
- package/src/core/ai/context/__tests__/registry.test.ts +516 -0
- package/src/core/ai/context/context.ts +16 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +291 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/variable.test.ts.snap +378 -0
- package/src/core/ai/context/providers/__tests__/tables.test.ts +271 -0
- package/src/core/ai/context/providers/__tests__/variable.test.ts +312 -0
- package/src/core/ai/context/providers/common.ts +7 -0
- package/src/core/ai/context/providers/tables.ts +208 -0
- package/src/core/ai/context/providers/variable.ts +72 -0
- package/src/core/ai/context/registry.ts +180 -0
- package/src/core/ai/ids/__tests__/ids.test.ts +193 -0
- package/src/core/ai/ids/ids.ts +71 -0
- package/src/core/ai/model-registry.ts +158 -0
- package/src/core/ai/state.ts +58 -0
- package/src/core/alerts/state.ts +75 -0
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +1312 -0
- package/src/core/cells/__tests__/add-missing-import.test.ts +78 -0
- package/src/core/cells/__tests__/cell.test.ts +193 -0
- package/src/core/cells/__tests__/cells.test.ts +2664 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +239 -0
- package/src/core/cells/__tests__/focus.test.ts +271 -0
- package/src/core/cells/__tests__/ids.test.ts +90 -0
- package/src/core/cells/__tests__/names.test.ts +62 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +202 -0
- package/src/core/cells/__tests__/runs.test.ts +453 -0
- package/src/core/cells/__tests__/session.test.ts +757 -0
- package/src/core/cells/__tests__/utils.test.ts +428 -0
- package/src/core/cells/actions.ts +21 -0
- package/src/core/cells/add-missing-import.ts +114 -0
- package/src/core/cells/cell.ts +243 -0
- package/src/core/cells/cells.ts +1751 -0
- package/src/core/cells/collapseConsoleOutputs.tsx +133 -0
- package/src/core/cells/effects.ts +42 -0
- package/src/core/cells/focus.ts +128 -0
- package/src/core/cells/ids.ts +124 -0
- package/src/core/cells/logs.ts +114 -0
- package/src/core/cells/names.ts +107 -0
- package/src/core/cells/outline.ts +30 -0
- package/src/core/cells/outputs.ts +34 -0
- package/src/core/cells/pending-delete-service.ts +183 -0
- package/src/core/cells/runs.ts +196 -0
- package/src/core/cells/scrollCellIntoView.ts +133 -0
- package/src/core/cells/session.ts +281 -0
- package/src/core/cells/types.ts +128 -0
- package/src/core/cells/utils.ts +141 -0
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +216 -0
- package/src/core/codemirror/__tests__/extensions.test.ts +117 -0
- package/src/core/codemirror/__tests__/format.test.ts +227 -0
- package/src/core/codemirror/__tests__/setup.test.ts +178 -0
- package/src/core/codemirror/ai/request.ts +72 -0
- package/src/core/codemirror/ai/resources.ts +90 -0
- package/src/core/codemirror/cells/extensions.ts +387 -0
- package/src/core/codemirror/cells/state.ts +32 -0
- package/src/core/codemirror/cells/traceback-decorations.ts +111 -0
- package/src/core/codemirror/cm.ts +272 -0
- package/src/core/codemirror/compat/__tests__/jupyter.test.ts +136 -0
- package/src/core/codemirror/compat/jupyter.tsx +244 -0
- package/src/core/codemirror/completion/Autocompleter.ts +172 -0
- package/src/core/codemirror/completion/__tests__/hints.test.ts +84 -0
- package/src/core/codemirror/completion/__tests__/keymap.test.ts +44 -0
- package/src/core/codemirror/completion/completer.ts +58 -0
- package/src/core/codemirror/completion/hints.ts +143 -0
- package/src/core/codemirror/completion/keymap.ts +70 -0
- package/src/core/codemirror/completion/utils.ts +18 -0
- package/src/core/codemirror/completion/variable-completions.ts +100 -0
- package/src/core/codemirror/config/extension.ts +63 -0
- package/src/core/codemirror/config/types.ts +10 -0
- package/src/core/codemirror/copilot/__tests__/copilot.test.ts +260 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +209 -0
- package/src/core/codemirror/copilot/__tests__/trim-utils.test.ts +291 -0
- package/src/core/codemirror/copilot/client.ts +123 -0
- package/src/core/codemirror/copilot/copilot-config.tsx +285 -0
- package/src/core/codemirror/copilot/extension.ts +285 -0
- package/src/core/codemirror/copilot/getCodes.ts +130 -0
- package/src/core/codemirror/copilot/language-server.ts +255 -0
- package/src/core/codemirror/copilot/state.ts +66 -0
- package/src/core/codemirror/copilot/trim-utils.ts +33 -0
- package/src/core/codemirror/copilot/types.ts +41 -0
- package/src/core/codemirror/editing/__tests__/commands.test.ts +106 -0
- package/src/core/codemirror/editing/__tests__/debugging.test.ts +193 -0
- package/src/core/codemirror/editing/commands.ts +25 -0
- package/src/core/codemirror/editing/debugging.ts +58 -0
- package/src/core/codemirror/editing/extensions.ts +4 -0
- package/src/core/codemirror/extensions.ts +95 -0
- package/src/core/codemirror/facet.ts +19 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +695 -0
- package/src/core/codemirror/find-replace/extension.ts +41 -0
- package/src/core/codemirror/find-replace/navigate.ts +221 -0
- package/src/core/codemirror/find-replace/query.ts +31 -0
- package/src/core/codemirror/find-replace/search-highlight.ts +148 -0
- package/src/core/codemirror/find-replace/state.ts +167 -0
- package/src/core/codemirror/format.ts +120 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +205 -0
- package/src/core/codemirror/go-to-definition/commands.ts +80 -0
- package/src/core/codemirror/go-to-definition/extension.ts +23 -0
- package/src/core/codemirror/go-to-definition/underline.ts +223 -0
- package/src/core/codemirror/go-to-definition/utils.ts +126 -0
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +43 -0
- package/src/core/codemirror/keymaps/__tests__/vimrc.test.ts +121 -0
- package/src/core/codemirror/keymaps/keymaps.ts +163 -0
- package/src/core/codemirror/keymaps/vim.ts +360 -0
- package/src/core/codemirror/keymaps/vimrc.ts +149 -0
- package/src/core/codemirror/language/LanguageAdapters.ts +23 -0
- package/src/core/codemirror/language/__tests__/ast.test.ts +124 -0
- package/src/core/codemirror/language/__tests__/extension.test.ts +260 -0
- package/src/core/codemirror/language/__tests__/indentOneTab.test.ts +31 -0
- package/src/core/codemirror/language/__tests__/markdown.test.ts +495 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +1640 -0
- package/src/core/codemirror/language/__tests__/utils.test.ts +166 -0
- package/src/core/codemirror/language/commands.ts +59 -0
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +163 -0
- package/src/core/codemirror/language/embedded/embedded-python.ts +131 -0
- package/src/core/codemirror/language/embedded/latex.ts +257 -0
- package/src/core/codemirror/language/extension.ts +322 -0
- package/src/core/codemirror/language/languages/markdown.ts +261 -0
- package/src/core/codemirror/language/languages/python.ts +329 -0
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
- package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +545 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
- package/src/core/codemirror/language/metadata.ts +71 -0
- package/src/core/codemirror/language/panel/markdown.tsx +63 -0
- package/src/core/codemirror/language/panel/panel.tsx +197 -0
- package/src/core/codemirror/language/panel/sql.tsx +132 -0
- package/src/core/codemirror/language/types.ts +41 -0
- package/src/core/codemirror/language/utils/ast.ts +84 -0
- package/src/core/codemirror/language/utils/indentOneTab.ts +9 -0
- package/src/core/codemirror/language/utils/quotes.ts +18 -0
- package/src/core/codemirror/language/utils.ts +78 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +860 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +235 -0
- package/src/core/codemirror/lsp/lens.ts +130 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +604 -0
- package/src/core/codemirror/lsp/transports.ts +31 -0
- package/src/core/codemirror/lsp/types.ts +55 -0
- package/src/core/codemirror/lsp/utils.ts +11 -0
- package/src/core/codemirror/markdown/__tests__/commands.test.ts +522 -0
- package/src/core/codemirror/markdown/commands.ts +478 -0
- package/src/core/codemirror/markdown/completions.ts +273 -0
- package/src/core/codemirror/markdown/extension.ts +106 -0
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +111 -0
- package/src/core/codemirror/misc/__tests__/paste.test.ts +239 -0
- package/src/core/codemirror/misc/dnd.ts +48 -0
- package/src/core/codemirror/misc/paste.ts +181 -0
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +132 -0
- package/src/core/codemirror/placeholder/extensions.ts +99 -0
- package/src/core/codemirror/react-dom/createPanel.tsx +39 -0
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +1222 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +608 -0
- package/src/core/codemirror/reactive-references/extension.ts +154 -0
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +55 -0
- package/src/core/codemirror/readonly/extension.ts +187 -0
- package/src/core/codemirror/rtc/extension.ts +450 -0
- package/src/core/codemirror/rtc/loro/awareness.ts +496 -0
- package/src/core/codemirror/rtc/loro/colors.ts +38 -0
- package/src/core/codemirror/rtc/loro/sync.ts +159 -0
- package/src/core/codemirror/theme/__tests__/light.test.ts +136 -0
- package/src/core/codemirror/theme/dark.ts +50 -0
- package/src/core/codemirror/theme/light.ts +58 -0
- package/src/core/codemirror/types.ts +5 -0
- package/src/core/codemirror/utils.ts +103 -0
- package/src/core/codemirror/vim/cursor-visibility.ts +58 -0
- package/src/core/config/__tests__/config-schema.test.ts +232 -0
- package/src/core/config/capabilities.ts +15 -0
- package/src/core/config/config-schema.ts +296 -0
- package/src/core/config/config.ts +113 -0
- package/src/core/config/feature-flag.tsx +58 -0
- package/src/core/config/if-capability.tsx +19 -0
- package/src/core/config/widths.ts +5 -0
- package/src/core/constants.ts +52 -0
- package/src/core/datasets/__tests__/all-tables.test.ts +466 -0
- package/src/core/datasets/__tests__/data-source.test.ts +461 -0
- package/src/core/datasets/data-source-connections.ts +334 -0
- package/src/core/datasets/engines.ts +11 -0
- package/src/core/datasets/request-registry.ts +34 -0
- package/src/core/datasets/state.ts +143 -0
- package/src/core/datasets/types.ts +38 -0
- package/src/core/debugger/state.ts +10 -0
- package/src/core/documentation/state.ts +13 -0
- package/src/core/dom/__tests__/htmlUtils.test.ts +22 -0
- package/src/core/dom/__tests__/outline.test.ts +370 -0
- package/src/core/dom/defineCustomElement.ts +23 -0
- package/src/core/dom/events.ts +94 -0
- package/src/core/dom/htmlUtils.ts +75 -0
- package/src/core/dom/outline.ts +123 -0
- package/src/core/dom/ui-element.css +8 -0
- package/src/core/dom/ui-element.ts +249 -0
- package/src/core/dom/uiregistry.ts +209 -0
- package/src/core/edit-app.tsx +189 -0
- package/src/core/errors/__tests__/errors.test.ts +62 -0
- package/src/core/errors/__tests__/utils.test.ts +108 -0
- package/src/core/errors/errors.ts +96 -0
- package/src/core/errors/state.ts +44 -0
- package/src/core/errors/utils.ts +67 -0
- package/src/core/export/hooks.ts +60 -0
- package/src/core/functions/FunctionRegistry.ts +18 -0
- package/src/core/hotkeys/__tests__/hotkeys.test.ts +74 -0
- package/src/core/hotkeys/__tests__/shortcuts.test.ts +166 -0
- package/src/core/hotkeys/actions.ts +38 -0
- package/src/core/hotkeys/hotkeys.ts +523 -0
- package/src/core/hotkeys/shortcuts.ts +146 -0
- package/src/core/islands/__tests__/parse.test.ts +89 -0
- package/src/core/islands/bridge.ts +196 -0
- package/src/core/islands/components/output-wrapper.tsx +154 -0
- package/src/core/islands/components/web-components.tsx +120 -0
- package/src/core/islands/islands.css +14 -0
- package/src/core/islands/main.ts +200 -0
- package/src/core/islands/parse.ts +161 -0
- package/src/core/islands/state.ts +30 -0
- package/src/core/islands/toast.ts +41 -0
- package/src/core/islands/utils.ts +5 -0
- package/src/core/islands/worker/controller.ts +52 -0
- package/src/core/islands/worker/worker.tsx +178 -0
- package/src/core/kernel/RuntimeState.ts +94 -0
- package/src/core/kernel/__tests__/RuntimeState.test.ts +57 -0
- package/src/core/kernel/__tests__/handlers.test.ts +61 -0
- package/src/core/kernel/__tests__/session.test.ts +10 -0
- package/src/core/kernel/handlers.ts +159 -0
- package/src/core/kernel/messages.ts +54 -0
- package/src/core/kernel/queryParamHandlers.ts +39 -0
- package/src/core/kernel/session.ts +50 -0
- package/src/core/layout/layout.ts +99 -0
- package/src/core/layout/useTogglePresenting.ts +50 -0
- package/src/core/meta/globals.ts +25 -0
- package/src/core/meta/state.ts +25 -0
- package/src/core/mime.ts +9 -0
- package/src/core/mode.ts +80 -0
- package/src/core/network/DeferredRequestRegistry.ts +71 -0
- package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +37 -0
- package/src/core/network/__tests__/api.test.ts +80 -0
- package/src/core/network/api.ts +145 -0
- package/src/core/network/auth.ts +13 -0
- package/src/core/network/connection.ts +33 -0
- package/src/core/network/requests-network.ts +398 -0
- package/src/core/network/requests-static.ts +88 -0
- package/src/core/network/requests-toasting.ts +91 -0
- package/src/core/network/requests.ts +24 -0
- package/src/core/network/resolve.ts +17 -0
- package/src/core/network/types.ts +188 -0
- package/src/core/packages/toast-components.tsx +88 -0
- package/src/core/packages/useInstallPackage.ts +46 -0
- package/src/core/rtc/state.ts +20 -0
- package/src/core/run-app.tsx +69 -0
- package/src/core/runtime/__tests__/config.test.ts +173 -0
- package/src/core/runtime/__tests__/createWsUrl.test.ts +61 -0
- package/src/core/runtime/__tests__/runtime.test.ts +603 -0
- package/src/core/runtime/config.ts +49 -0
- package/src/core/runtime/runtime.ts +277 -0
- package/src/core/runtime/types.ts +7 -0
- package/src/core/runtime/utils.ts +9 -0
- package/src/core/saving/file-state.ts +15 -0
- package/src/core/saving/filename.ts +55 -0
- package/src/core/saving/save-component.tsx +274 -0
- package/src/core/saving/state.ts +51 -0
- package/src/core/saving/useAutoSave.ts +68 -0
- package/src/core/secrets/request-registry.ts +16 -0
- package/src/core/slots/slots.ts +9 -0
- package/src/core/state/__tests__/jotai.test.ts +25 -0
- package/src/core/state/jotai.ts +69 -0
- package/src/core/state/observable.ts +23 -0
- package/src/core/static/__tests__/download-html.test.ts +41 -0
- package/src/core/static/__tests__/files.test.ts +494 -0
- package/src/core/static/__tests__/virtual-file-tracker.test.ts +92 -0
- package/src/core/static/download-html.ts +59 -0
- package/src/core/static/files.ts +150 -0
- package/src/core/static/static-state.ts +19 -0
- package/src/core/static/types.ts +8 -0
- package/src/core/static/virtual-file-tracker.ts +83 -0
- package/src/core/variables/__tests__/state.test.ts +148 -0
- package/src/core/variables/state.ts +81 -0
- package/src/core/variables/types.ts +22 -0
- package/src/core/vscode/vscode-bindings.ts +176 -0
- package/src/core/wasm/PyodideLoader.tsx +72 -0
- package/src/core/wasm/__tests__/router.test.ts +57 -0
- package/src/core/wasm/__tests__/share.test.ts +35 -0
- package/src/core/wasm/__tests__/state.test.ts +124 -0
- package/src/core/wasm/__tests__/store.test.ts +55 -0
- package/src/core/wasm/bridge.ts +622 -0
- package/src/core/wasm/router.ts +39 -0
- package/src/core/wasm/rpc.ts +32 -0
- package/src/core/wasm/share.ts +15 -0
- package/src/core/wasm/state.ts +21 -0
- package/src/core/wasm/store.ts +122 -0
- package/src/core/wasm/utils.ts +12 -0
- package/src/core/wasm/worker/bootstrap.ts +223 -0
- package/src/core/wasm/worker/constants.ts +2 -0
- package/src/core/wasm/worker/fs.ts +90 -0
- package/src/core/wasm/worker/getController.ts +16 -0
- package/src/core/wasm/worker/getFS.ts +9 -0
- package/src/core/wasm/worker/getMarimoWheel.ts +15 -0
- package/src/core/wasm/worker/getPyodideVersion.ts +10 -0
- package/src/core/wasm/worker/message-buffer.ts +32 -0
- package/src/core/wasm/worker/save-worker.ts +107 -0
- package/src/core/wasm/worker/tracer.ts +7 -0
- package/src/core/wasm/worker/types.ts +97 -0
- package/src/core/wasm/worker/worker.ts +375 -0
- package/src/core/websocket/StaticWebsocket.ts +61 -0
- package/src/core/websocket/connection-utils.ts +59 -0
- package/src/core/websocket/types.ts +43 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +386 -0
- package/src/core/websocket/useWebSocket.tsx +88 -0
- package/src/css/admonition.css +127 -0
- package/src/css/app/App.css +77 -0
- package/src/css/app/Cell.css +433 -0
- package/src/css/app/Header.css +25 -0
- package/src/css/app/codemirror-completions.css +308 -0
- package/src/css/app/codemirror.css +136 -0
- package/src/css/app/fonts.css +50 -0
- package/src/css/app/print.css +86 -0
- package/src/css/app/reset.css +18 -0
- package/src/css/codehilite.css +354 -0
- package/src/css/common.css +45 -0
- package/src/css/globals.css +176 -0
- package/src/css/index.css +10 -0
- package/src/css/katex-fonts.css +214 -0
- package/src/css/katex.min.css +1183 -0
- package/src/css/md-tooltip.css +52 -0
- package/src/css/md.css +365 -0
- package/src/css/progress.css +93 -0
- package/src/css/table.css +45 -0
- package/src/custom.d.ts +24 -0
- package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Main-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Math-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Script-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff2 +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff +0 -0
- package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
- package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
- package/src/hooks/__tests__/useBoolean.test.tsx +33 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +182 -0
- package/src/hooks/__tests__/useEffectSkipFirstRender.test.tsx +42 -0
- package/src/hooks/__tests__/useEventListener.test.tsx +148 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +76 -0
- package/src/hooks/__tests__/useInterval.test.tsx +70 -0
- package/src/hooks/__tests__/usePackageMetadata.test.tsx +219 -0
- package/src/hooks/__tests__/useResizeHandle.test.tsx +240 -0
- package/src/hooks/__tests__/useResizeObserver.test.tsx +86 -0
- package/src/hooks/__tests__/useTimer.test.tsx +62 -0
- package/src/hooks/debug.ts +116 -0
- package/src/hooks/useAsyncData.ts +392 -0
- package/src/hooks/useAudioRecorder.ts +89 -0
- package/src/hooks/useAutoGrowInputProps.ts +56 -0
- package/src/hooks/useBoolean.ts +26 -0
- package/src/hooks/useCellRenderCount.ts +15 -0
- package/src/hooks/useDebounce.ts +95 -0
- package/src/hooks/useDeepCompareMemoize.ts +22 -0
- package/src/hooks/useEffectSkipFirstRender.ts +24 -0
- package/src/hooks/useElapsedTime.ts +25 -0
- package/src/hooks/useEvent.ts +2 -0
- package/src/hooks/useEventListener.ts +68 -0
- package/src/hooks/useHotkey.ts +77 -0
- package/src/hooks/useInternalStateWithSync.ts +26 -0
- package/src/hooks/useInterval.ts +49 -0
- package/src/hooks/useIsDragging.tsx +39 -0
- package/src/hooks/useLifecycle.ts +20 -0
- package/src/hooks/useLocalStorage.ts +22 -0
- package/src/hooks/useNonce.ts +9 -0
- package/src/hooks/usePackageMetadata.ts +52 -0
- package/src/hooks/useRecentCommands.ts +25 -0
- package/src/hooks/useResizeHandle.ts +110 -0
- package/src/hooks/useResizeObserver.ts +101 -0
- package/src/hooks/useScript.ts +90 -0
- package/src/hooks/useSelectAllContent.ts +42 -0
- package/src/hooks/useTimer.ts +48 -0
- package/src/main.tsx +20 -0
- package/src/mount.tsx +331 -0
- package/src/plugins/core/BadPlugin.tsx +72 -0
- package/src/plugins/core/RenderHTML.tsx +136 -0
- package/src/plugins/core/__test__/RenderHTML.test.ts +146 -0
- package/src/plugins/core/builder.ts +59 -0
- package/src/plugins/core/registerReactComponent.tsx +535 -0
- package/src/plugins/core/rpc.ts +55 -0
- package/src/plugins/core/sidebar-element.tsx +104 -0
- package/src/plugins/impl/ButtonPlugin.tsx +95 -0
- package/src/plugins/impl/CheckboxPlugin.tsx +56 -0
- package/src/plugins/impl/CodeEditorPlugin.tsx +119 -0
- package/src/plugins/impl/DataEditorPlugin.tsx +181 -0
- package/src/plugins/impl/DataTablePlugin.tsx +948 -0
- package/src/plugins/impl/DatePickerPlugin.tsx +74 -0
- package/src/plugins/impl/DateRangePlugin.tsx +82 -0
- package/src/plugins/impl/DateTimePickerPlugin.tsx +76 -0
- package/src/plugins/impl/DictPlugin.tsx +80 -0
- package/src/plugins/impl/DropdownPlugin.tsx +102 -0
- package/src/plugins/impl/FileBrowserPlugin.tsx +500 -0
- package/src/plugins/impl/FileUploadPlugin.tsx +302 -0
- package/src/plugins/impl/FormPlugin.tsx +294 -0
- package/src/plugins/impl/MicrophonePlugin.tsx +58 -0
- package/src/plugins/impl/MultiselectPlugin.tsx +207 -0
- package/src/plugins/impl/NumberPlugin.tsx +84 -0
- package/src/plugins/impl/RadioPlugin.tsx +77 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +163 -0
- package/src/plugins/impl/RefreshPlugin.tsx +158 -0
- package/src/plugins/impl/SearchableSelect.tsx +122 -0
- package/src/plugins/impl/SliderPlugin.tsx +166 -0
- package/src/plugins/impl/SwitchPlugin.tsx +48 -0
- package/src/plugins/impl/TabsPlugin.tsx +83 -0
- package/src/plugins/impl/TextAreaPlugin.tsx +131 -0
- package/src/plugins/impl/TextInputPlugin.tsx +169 -0
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +178 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +41 -0
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +144 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +269 -0
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +181 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +370 -0
- package/src/plugins/impl/anywidget/model.ts +314 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +98 -0
- package/src/plugins/impl/chat/chat-ui.tsx +713 -0
- package/src/plugins/impl/chat/types.ts +39 -0
- package/src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx +6 -0
- package/src/plugins/impl/code/any-language-editor.tsx +68 -0
- package/src/plugins/impl/common/error-banner.tsx +111 -0
- package/src/plugins/impl/common/intent.ts +18 -0
- package/src/plugins/impl/common/labeled.tsx +69 -0
- package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +876 -0
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +452 -0
- package/src/plugins/impl/data-editor/components.tsx +179 -0
- package/src/plugins/impl/data-editor/data-utils.ts +123 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +651 -0
- package/src/plugins/impl/data-editor/glide-utils.ts +200 -0
- package/src/plugins/impl/data-editor/themes.ts +49 -0
- package/src/plugins/impl/data-editor/types.ts +44 -0
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +268 -0
- package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +31 -0
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +174 -0
- package/src/plugins/impl/data-explorer/components/icons.tsx +30 -0
- package/src/plugins/impl/data-explorer/components/query-form.tsx +296 -0
- package/src/plugins/impl/data-explorer/encoding.ts +107 -0
- package/src/plugins/impl/data-explorer/functions/function.ts +83 -0
- package/src/plugins/impl/data-explorer/functions/types.ts +32 -0
- package/src/plugins/impl/data-explorer/marks.ts +21 -0
- package/src/plugins/impl/data-explorer/queries/field-suggestion.ts +65 -0
- package/src/plugins/impl/data-explorer/queries/histograms.ts +41 -0
- package/src/plugins/impl/data-explorer/queries/queries.ts +204 -0
- package/src/plugins/impl/data-explorer/queries/removeUndefined.ts +11 -0
- package/src/plugins/impl/data-explorer/queries/types.ts +54 -0
- package/src/plugins/impl/data-explorer/queries/utils.ts +85 -0
- package/src/plugins/impl/data-explorer/spec.ts +28 -0
- package/src/plugins/impl/data-explorer/state/reducer.ts +92 -0
- package/src/plugins/impl/data-explorer/state/types.ts +28 -0
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +303 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +1600 -0
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +67 -0
- package/src/plugins/impl/data-frames/forms/context.ts +13 -0
- package/src/plugins/impl/data-frames/forms/datatype-icon.tsx +43 -0
- package/src/plugins/impl/data-frames/forms/renderers.tsx +518 -0
- package/src/plugins/impl/data-frames/panel.tsx +308 -0
- package/src/plugins/impl/data-frames/schema.ts +211 -0
- package/src/plugins/impl/data-frames/types.ts +91 -0
- package/src/plugins/impl/data-frames/utils/__tests__/getUpdatedColumnTypes.test.ts +191 -0
- package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +116 -0
- package/src/plugins/impl/data-frames/utils/getUpdatedColumnTypes.ts +67 -0
- package/src/plugins/impl/data-frames/utils/operators.ts +202 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +39 -0
- package/src/plugins/impl/multiselectFilterFn.tsx +22 -0
- package/src/plugins/impl/panel/PanelPlugin.tsx +266 -0
- package/src/plugins/impl/panel/__tests__/utils.test.ts +119 -0
- package/src/plugins/impl/panel/utils.ts +104 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +300 -0
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +73 -0
- package/src/plugins/impl/plotly/mapbox.css +359 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +58 -0
- package/src/plugins/impl/plotly/plotly.css +280 -0
- package/src/plugins/impl/vega/VegaPlugin.tsx +40 -0
- package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +1210 -0
- package/src/plugins/impl/vega/__tests__/encodings.test.ts +172 -0
- package/src/plugins/impl/vega/__tests__/loader.test.ts +73 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +575 -0
- package/src/plugins/impl/vega/__tests__/params.test.ts +52 -0
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +236 -0
- package/src/plugins/impl/vega/__tests__/vega.test.ts +603 -0
- package/src/plugins/impl/vega/batched.ts +41 -0
- package/src/plugins/impl/vega/encodings.ts +111 -0
- package/src/plugins/impl/vega/fix-relative-url.ts +15 -0
- package/src/plugins/impl/vega/formats.ts +25 -0
- package/src/plugins/impl/vega/loader.ts +320 -0
- package/src/plugins/impl/vega/make-selectable.ts +248 -0
- package/src/plugins/impl/vega/marks.ts +36 -0
- package/src/plugins/impl/vega/params.ts +192 -0
- package/src/plugins/impl/vega/resolve-data.ts +101 -0
- package/src/plugins/impl/vega/types.ts +32 -0
- package/src/plugins/impl/vega/utils.ts +46 -0
- package/src/plugins/impl/vega/vega-component.tsx +271 -0
- package/src/plugins/impl/vega/vega-loader.ts +53 -0
- package/src/plugins/impl/vega/vega.css +31 -0
- package/src/plugins/layout/AccordionPlugin.tsx +63 -0
- package/src/plugins/layout/CalloutPlugin.tsx +34 -0
- package/src/plugins/layout/DownloadPlugin.tsx +136 -0
- package/src/plugins/layout/ImageComparisonPlugin.tsx +35 -0
- package/src/plugins/layout/JsonOutputPlugin.tsx +47 -0
- package/src/plugins/layout/LazyPlugin.tsx +98 -0
- package/src/plugins/layout/MimeRenderPlugin.tsx +45 -0
- package/src/plugins/layout/NavigationMenuPlugin.tsx +219 -0
- package/src/plugins/layout/ProgressPlugin.tsx +175 -0
- package/src/plugins/layout/RoutesPlugin.tsx +81 -0
- package/src/plugins/layout/StatPlugin.tsx +100 -0
- package/src/plugins/layout/TexPlugin.tsx +102 -0
- package/src/plugins/layout/__test__/ProgressPlugin.test.ts +26 -0
- package/src/plugins/layout/carousel/CarouselPlugin.tsx +48 -0
- package/src/plugins/layout/mermaid/MermaidPlugin.tsx +26 -0
- package/src/plugins/layout/mermaid/mermaid.tsx +94 -0
- package/src/plugins/layout/navigation-menu.css +37 -0
- package/src/plugins/plugins.ts +116 -0
- package/src/plugins/stateless-plugin.ts +29 -0
- package/src/plugins/types.ts +82 -0
- package/src/stories/__fixtures__/vega.ts +225 -0
- package/src/stories/accordion.stories.tsx +100 -0
- package/src/stories/alert-dialog.mdx +42 -0
- package/src/stories/app-chrome.stories.tsx +26 -0
- package/src/stories/button.stories.tsx +90 -0
- package/src/stories/callout.stories.tsx +73 -0
- package/src/stories/cell-status.stories.tsx +145 -0
- package/src/stories/cell.stories.tsx +336 -0
- package/src/stories/checkbox.stories.tsx +44 -0
- package/src/stories/colors.stories.tsx +156 -0
- package/src/stories/combobox.stories.tsx +133 -0
- package/src/stories/context-menu.mdx +23 -0
- package/src/stories/data-explorer.stories.tsx +30 -0
- package/src/stories/data-table.stories.tsx +130 -0
- package/src/stories/dataframe.stories.tsx +46 -0
- package/src/stories/debugger.stories.tsx +34 -0
- package/src/stories/dialog.stories.tsx +80 -0
- package/src/stories/dropdown-menu.mdx +159 -0
- package/src/stories/editor-inputs.stories.tsx +47 -0
- package/src/stories/editor.stories.tsx +91 -0
- package/src/stories/file-upload.stories.tsx +103 -0
- package/src/stories/form-wrapper.stories.tsx +147 -0
- package/src/stories/input.stories.tsx +56 -0
- package/src/stories/label.mdx +9 -0
- package/src/stories/log-viewer.stories.tsx +74 -0
- package/src/stories/number-field.mdx +17 -0
- package/src/stories/number-field.stories.tsx +41 -0
- package/src/stories/progress-component.stories.tsx +74 -0
- package/src/stories/progress.stories.tsx +33 -0
- package/src/stories/radio-group.mdx +54 -0
- package/src/stories/select-native.stories.tsx +49 -0
- package/src/stories/select.stories.tsx +92 -0
- package/src/stories/slider.stories.tsx +27 -0
- package/src/stories/stat.stories.tsx +123 -0
- package/src/stories/switch.mdx +20 -0
- package/src/stories/switchable-multi-select.stories.tsx +31 -0
- package/src/stories/tabs.mdx +59 -0
- package/src/stories/textarea.stories.tsx +58 -0
- package/src/stories/theme.stories.tsx +111 -0
- package/src/stories/tooltip.mdx +32 -0
- package/src/stories/typography.stories.tsx +80 -0
- package/src/stories/variables.stories.tsx +58 -0
- package/src/stories/vega.stories.tsx +57 -0
- package/src/theme/ThemeProvider.tsx +32 -0
- package/src/theme/namespace.tsx +23 -0
- package/src/theme/useTheme.ts +89 -0
- package/src/utils/Deferred.ts +20 -0
- package/src/utils/Logger.ts +91 -0
- package/src/utils/__tests__/Deferred.test.ts +38 -0
- package/src/utils/__tests__/arrays.test.ts +130 -0
- package/src/utils/__tests__/batch-requests.test.ts +60 -0
- package/src/utils/__tests__/blob.test.ts +52 -0
- package/src/utils/__tests__/cell-urls.test.ts +92 -0
- package/src/utils/__tests__/createReducer.test.ts +184 -0
- package/src/utils/__tests__/data-views.test.ts +112 -0
- package/src/utils/__tests__/dates.test.ts +188 -0
- package/src/utils/__tests__/edit-distance.test.ts +302 -0
- package/src/utils/__tests__/errors.test.ts +54 -0
- package/src/utils/__tests__/filenames.test.ts +30 -0
- package/src/utils/__tests__/id-tree.test.ts +1994 -0
- package/src/utils/__tests__/json-parser.test.ts +79 -0
- package/src/utils/__tests__/local-storage.test.ts +77 -0
- package/src/utils/__tests__/lru.test.ts +74 -0
- package/src/utils/__tests__/maps.test.ts +91 -0
- package/src/utils/__tests__/math.test.ts +29 -0
- package/src/utils/__tests__/multi-map.test.ts +295 -0
- package/src/utils/__tests__/numbers.test.ts +76 -0
- package/src/utils/__tests__/path.test.ts +170 -0
- package/src/utils/__tests__/pluralize.test.ts +47 -0
- package/src/utils/__tests__/routes.test.ts +134 -0
- package/src/utils/__tests__/sets.test.ts +41 -0
- package/src/utils/__tests__/shallow-compare.test.ts +55 -0
- package/src/utils/__tests__/strings.test.ts +68 -0
- package/src/utils/__tests__/time.test.ts +61 -0
- package/src/utils/__tests__/timed-cache.test.ts +142 -0
- package/src/utils/__tests__/timeout.test.ts +153 -0
- package/src/utils/__tests__/traceback.test.ts +34 -0
- package/src/utils/__tests__/url.test.ts +100 -0
- package/src/utils/__tests__/urls.test.ts +10 -0
- package/src/utils/__tests__/versions.test.ts +63 -0
- package/src/utils/__tests__/waitForWs.test.ts +76 -0
- package/src/utils/arrays.ts +75 -0
- package/src/utils/assertExists.ts +12 -0
- package/src/utils/assertNever.ts +20 -0
- package/src/utils/batch-requests.ts +28 -0
- package/src/utils/blob.ts +45 -0
- package/src/utils/cell-urls.ts +31 -0
- package/src/utils/cn.ts +8 -0
- package/src/utils/copy.ts +17 -0
- package/src/utils/createReducer.ts +137 -0
- package/src/utils/data-views.ts +54 -0
- package/src/utils/dates.ts +145 -0
- package/src/utils/dereference.ts +10 -0
- package/src/utils/download.ts +47 -0
- package/src/utils/edit-distance.ts +141 -0
- package/src/utils/errors.ts +63 -0
- package/src/utils/events.ts +85 -0
- package/src/utils/fileToBase64.ts +30 -0
- package/src/utils/filenames.ts +29 -0
- package/src/utils/functions.ts +24 -0
- package/src/utils/id-tree.tsx +1032 -0
- package/src/utils/idle.ts +19 -0
- package/src/utils/invariant.ts +37 -0
- package/src/utils/json/__tests__/base64.test.ts +100 -0
- package/src/utils/json/base64.ts +51 -0
- package/src/utils/json/json-parser.ts +65 -0
- package/src/utils/lazy.ts +30 -0
- package/src/utils/links.ts +11 -0
- package/src/utils/localStorage.ts +132 -0
- package/src/utils/lru.ts +68 -0
- package/src/utils/maps.ts +65 -0
- package/src/utils/math.ts +6 -0
- package/src/utils/mergeRefs.ts +14 -0
- package/src/utils/multi-map.ts +71 -0
- package/src/utils/numbers.ts +124 -0
- package/src/utils/objects.ts +105 -0
- package/src/utils/once.ts +17 -0
- package/src/utils/pathUtils.test.ts +113 -0
- package/src/utils/pathUtils.ts +76 -0
- package/src/utils/paths.ts +67 -0
- package/src/utils/pluralize.ts +35 -0
- package/src/utils/python-poet/__tests__/poet.test.ts +286 -0
- package/src/utils/python-poet/poet.ts +196 -0
- package/src/utils/reload-safe.ts +15 -0
- package/src/utils/repl.ts +23 -0
- package/src/utils/routes.ts +36 -0
- package/src/utils/scroll.ts +38 -0
- package/src/utils/sets.ts +30 -0
- package/src/utils/shallow-compare.ts +30 -0
- package/src/utils/staticImplements.ts +7 -0
- package/src/utils/strings.ts +64 -0
- package/src/utils/time.ts +39 -0
- package/src/utils/timed-cache.ts +52 -0
- package/src/utils/timeout.ts +42 -0
- package/src/utils/traceback.ts +104 -0
- package/src/utils/tracer.ts +106 -0
- package/src/utils/typed.ts +17 -0
- package/src/utils/url.ts +12 -0
- package/src/utils/urls.ts +33 -0
- package/src/utils/uuid.ts +8 -0
- package/src/utils/versions.ts +66 -0
- package/src/utils/vitals.ts +30 -0
- package/src/utils/waitForWs.ts +31 -0
- package/dist/diagram-5UYTHUR4-CHaQuLxe.js +0 -137
- package/dist/pieDiagram-NIOCPIFQ-B2HPuDbO.js +0 -162
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as l, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, aq as U, l as Dt, k as we, j as _e, z as De, u as
|
|
2
|
-
import {
|
|
3
|
-
import { t as Ye, m as We, a as Ve, i as
|
|
4
|
-
import { l as
|
|
5
|
-
function
|
|
1
|
+
import { _ as l, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, aq as U, l as Dt, k as we, j as _e, z as De, u as Se } from "./mermaid-CTBiBoaH.js";
|
|
2
|
+
import { M as Wt, as as jt, ak as Ut, aj as Ce, aD as Ee, aE as Me, aF as Ae, aG as Ie, aH as Fe, aI as Le, ai as Zt, ah as $t, ag as Qt, a6 as Kt, af as Jt } from "./main-C81Qd2DK.js";
|
|
3
|
+
import { t as Ye, m as We, a as Ve, i as Oe } from "./time-B0f3H4v6.js";
|
|
4
|
+
import { l as Pe } from "./linear-Bii2oeTZ.js";
|
|
5
|
+
function ze(t) {
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
8
8
|
var vt = 1, Mt = 2, At = 3, pt = 4, te = 1e-6;
|
|
@@ -16,47 +16,47 @@ function Be(t) {
|
|
|
16
16
|
return (e) => +t(e);
|
|
17
17
|
}
|
|
18
18
|
function He(t, e) {
|
|
19
|
-
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (
|
|
19
|
+
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (i) => +t(i) + e;
|
|
20
20
|
}
|
|
21
21
|
function qe() {
|
|
22
22
|
return !this.__axis;
|
|
23
23
|
}
|
|
24
24
|
function oe(t, e) {
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
var q =
|
|
28
|
-
G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")),
|
|
25
|
+
var i = [], s = null, a = null, h = 6, u = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === vt || t === pt ? -1 : 1, p = t === pt || t === Mt ? "x" : "y", F = t === vt || t === At ? Re : Ne;
|
|
26
|
+
function S(x) {
|
|
27
|
+
var q = s ?? (e.ticks ? e.ticks.apply(e, i) : e.domain()), A = a ?? (e.tickFormat ? e.tickFormat.apply(e, i) : ze), T = Math.max(h, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? He : Be)(e.copy(), E), R = x.selection ? x.selection() : x, G = R.selectAll(".domain").data([null]), P = R.selectAll(".tick").data(q, e).order(), g = P.exit(), w = P.enter().append("g").attr("class", "tick"), b = P.select("line"), v = P.select("text");
|
|
28
|
+
G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), P = P.merge(w), b = b.merge(w.append("line").attr("stroke", "currentColor").attr(p + "2", C * h)), v = v.merge(w.append("text").attr("fill", "currentColor").attr(p, C * T).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), x !== R && (G = G.transition(x), P = P.transition(x), b = b.transition(x), v = v.transition(x), g = g.transition(x).attr("opacity", te).attr("transform", function(m) {
|
|
29
29
|
return isFinite(m = N(m)) ? F(m + E) : this.getAttribute("transform");
|
|
30
|
-
}),
|
|
31
|
-
var
|
|
32
|
-
return F((
|
|
33
|
-
})),
|
|
30
|
+
}), w.attr("opacity", te).attr("transform", function(m) {
|
|
31
|
+
var _ = this.parentNode.__axis;
|
|
32
|
+
return F((_ && isFinite(_ = _(m)) ? _ : N(m)) + E);
|
|
33
|
+
})), g.remove(), G.attr("d", t === pt || t === Mt ? u ? "M" + C * u + "," + L + "H" + E + "V" + Y + "H" + C * u : "M" + E + "," + L + "V" + Y : u ? "M" + L + "," + C * u + "V" + E + "H" + Y + "V" + C * u : "M" + L + "," + E + "H" + Y), P.attr("opacity", 1).attr("transform", function(m) {
|
|
34
34
|
return F(N(m) + E);
|
|
35
|
-
}),
|
|
35
|
+
}), b.attr(p + "2", C * h), v.attr(p, C * T).text(A), R.filter(qe).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Mt ? "start" : t === pt ? "end" : "middle"), R.each(function() {
|
|
36
36
|
this.__axis = N;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
return
|
|
40
|
-
return arguments.length ? (e =
|
|
41
|
-
},
|
|
42
|
-
return
|
|
43
|
-
},
|
|
44
|
-
return arguments.length ? (
|
|
45
|
-
},
|
|
46
|
-
return arguments.length ? (
|
|
47
|
-
},
|
|
48
|
-
return arguments.length ? (a =
|
|
49
|
-
},
|
|
50
|
-
return arguments.length ? (
|
|
51
|
-
},
|
|
52
|
-
return arguments.length ? (
|
|
53
|
-
},
|
|
54
|
-
return arguments.length ? (
|
|
55
|
-
},
|
|
56
|
-
return arguments.length ? (D = +
|
|
57
|
-
},
|
|
58
|
-
return arguments.length ? (E = +
|
|
59
|
-
},
|
|
39
|
+
return S.scale = function(x) {
|
|
40
|
+
return arguments.length ? (e = x, S) : e;
|
|
41
|
+
}, S.ticks = function() {
|
|
42
|
+
return i = Array.from(arguments), S;
|
|
43
|
+
}, S.tickArguments = function(x) {
|
|
44
|
+
return arguments.length ? (i = x == null ? [] : Array.from(x), S) : i.slice();
|
|
45
|
+
}, S.tickValues = function(x) {
|
|
46
|
+
return arguments.length ? (s = x == null ? null : Array.from(x), S) : s && s.slice();
|
|
47
|
+
}, S.tickFormat = function(x) {
|
|
48
|
+
return arguments.length ? (a = x, S) : a;
|
|
49
|
+
}, S.tickSize = function(x) {
|
|
50
|
+
return arguments.length ? (h = u = +x, S) : h;
|
|
51
|
+
}, S.tickSizeInner = function(x) {
|
|
52
|
+
return arguments.length ? (h = +x, S) : h;
|
|
53
|
+
}, S.tickSizeOuter = function(x) {
|
|
54
|
+
return arguments.length ? (u = +x, S) : u;
|
|
55
|
+
}, S.tickPadding = function(x) {
|
|
56
|
+
return arguments.length ? (D = +x, S) : D;
|
|
57
|
+
}, S.offset = function(x) {
|
|
58
|
+
return arguments.length ? (E = +x, S) : E;
|
|
59
|
+
}, S;
|
|
60
60
|
}
|
|
61
61
|
function Ge(t) {
|
|
62
62
|
return oe(vt, t);
|
|
@@ -67,27 +67,27 @@ function Xe(t) {
|
|
|
67
67
|
var xt = { exports: {} }, je = xt.exports, ee;
|
|
68
68
|
function Ue() {
|
|
69
69
|
return ee || (ee = 1, function(t, e) {
|
|
70
|
-
(function(
|
|
71
|
-
t.exports =
|
|
70
|
+
(function(i, s) {
|
|
71
|
+
t.exports = s();
|
|
72
72
|
})(je, function() {
|
|
73
|
-
var
|
|
74
|
-
return function(
|
|
75
|
-
var
|
|
76
|
-
return
|
|
73
|
+
var i = "day";
|
|
74
|
+
return function(s, a, h) {
|
|
75
|
+
var u = function(C) {
|
|
76
|
+
return C.add(4 - C.isoWeekday(), i);
|
|
77
77
|
}, D = a.prototype;
|
|
78
78
|
D.isoWeekYear = function() {
|
|
79
|
-
return
|
|
80
|
-
}, D.isoWeek = function(
|
|
81
|
-
if (!this.$utils().u(
|
|
82
|
-
var
|
|
79
|
+
return u(this).year();
|
|
80
|
+
}, D.isoWeek = function(C) {
|
|
81
|
+
if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), i);
|
|
82
|
+
var p, F, S, x, q = u(this), A = (p = this.isoWeekYear(), F = this.$u, S = (F ? h.utc : h)().year(p).startOf("year"), x = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (x += 7), S.add(x, i));
|
|
83
83
|
return q.diff(A, "week") + 1;
|
|
84
|
-
}, D.isoWeekday = function(
|
|
85
|
-
return this.$utils().u(
|
|
84
|
+
}, D.isoWeekday = function(C) {
|
|
85
|
+
return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
|
|
86
86
|
};
|
|
87
87
|
var E = D.startOf;
|
|
88
|
-
D.startOf = function(
|
|
89
|
-
var F = this.$utils(),
|
|
90
|
-
return F.p(
|
|
88
|
+
D.startOf = function(C, p) {
|
|
89
|
+
var F = this.$utils(), S = !!F.u(p) || p;
|
|
90
|
+
return F.p(C) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : E.bind(this)(C, p);
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
});
|
|
@@ -98,119 +98,119 @@ const $e = /* @__PURE__ */ Wt(Ze);
|
|
|
98
98
|
var Tt = { exports: {} }, Qe = Tt.exports, re;
|
|
99
99
|
function Ke() {
|
|
100
100
|
return re || (re = 1, function(t, e) {
|
|
101
|
-
(function(
|
|
102
|
-
t.exports =
|
|
101
|
+
(function(i, s) {
|
|
102
|
+
t.exports = s();
|
|
103
103
|
})(Qe, function() {
|
|
104
|
-
var
|
|
105
|
-
return (
|
|
106
|
-
},
|
|
104
|
+
var i = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, s = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, h = /\d\d/, u = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(T) {
|
|
105
|
+
return (T = +T) + (T > 68 ? 1900 : 2e3);
|
|
106
|
+
}, p = function(T) {
|
|
107
107
|
return function(M) {
|
|
108
|
-
this[
|
|
108
|
+
this[T] = +M;
|
|
109
109
|
};
|
|
110
|
-
}, F = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
110
|
+
}, F = [/[+-]\d\d:?(\d\d)?|Z/, function(T) {
|
|
111
111
|
(this.zone || (this.zone = {})).offset = function(M) {
|
|
112
112
|
if (!M || M === "Z") return 0;
|
|
113
113
|
var L = M.match(/([+-]|\d\d)/g), Y = 60 * L[1] + (+L[2] || 0);
|
|
114
114
|
return Y === 0 ? 0 : L[0] === "+" ? -Y : Y;
|
|
115
|
-
}(
|
|
116
|
-
}],
|
|
117
|
-
var M = E[
|
|
115
|
+
}(T);
|
|
116
|
+
}], S = function(T) {
|
|
117
|
+
var M = E[T];
|
|
118
118
|
return M && (M.indexOf ? M : M.s.concat(M.f));
|
|
119
|
-
},
|
|
119
|
+
}, x = function(T, M) {
|
|
120
120
|
var L, Y = E.meridiem;
|
|
121
121
|
if (Y) {
|
|
122
|
-
for (var N = 1; N <= 24; N += 1) if (
|
|
122
|
+
for (var N = 1; N <= 24; N += 1) if (T.indexOf(Y(N, 0, M)) > -1) {
|
|
123
123
|
L = N > 12;
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
} else L =
|
|
126
|
+
} else L = T === (M ? "pm" : "PM");
|
|
127
127
|
return L;
|
|
128
|
-
}, q = { A: [D, function(
|
|
129
|
-
this.afternoon =
|
|
130
|
-
}], a: [D, function(
|
|
131
|
-
this.afternoon =
|
|
132
|
-
}], Q: [a, function(
|
|
133
|
-
this.month = 3 * (
|
|
134
|
-
}], S: [a, function(
|
|
135
|
-
this.milliseconds = 100 * +
|
|
136
|
-
}], SS: [
|
|
137
|
-
this.milliseconds = 10 * +
|
|
138
|
-
}], SSS: [/\d{3}/, function(
|
|
139
|
-
this.milliseconds = +
|
|
140
|
-
}], s: [
|
|
141
|
-
var M = E.ordinal, L =
|
|
142
|
-
if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") ===
|
|
143
|
-
}], w: [
|
|
144
|
-
var M =
|
|
128
|
+
}, q = { A: [D, function(T) {
|
|
129
|
+
this.afternoon = x(T, false);
|
|
130
|
+
}], a: [D, function(T) {
|
|
131
|
+
this.afternoon = x(T, true);
|
|
132
|
+
}], Q: [a, function(T) {
|
|
133
|
+
this.month = 3 * (T - 1) + 1;
|
|
134
|
+
}], S: [a, function(T) {
|
|
135
|
+
this.milliseconds = 100 * +T;
|
|
136
|
+
}], SS: [h, function(T) {
|
|
137
|
+
this.milliseconds = 10 * +T;
|
|
138
|
+
}], SSS: [/\d{3}/, function(T) {
|
|
139
|
+
this.milliseconds = +T;
|
|
140
|
+
}], s: [u, p("seconds")], ss: [u, p("seconds")], m: [u, p("minutes")], mm: [u, p("minutes")], H: [u, p("hours")], h: [u, p("hours")], HH: [u, p("hours")], hh: [u, p("hours")], D: [u, p("day")], DD: [h, p("day")], Do: [D, function(T) {
|
|
141
|
+
var M = E.ordinal, L = T.match(/\d+/);
|
|
142
|
+
if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === T && (this.day = Y);
|
|
143
|
+
}], w: [u, p("week")], ww: [h, p("week")], M: [u, p("month")], MM: [h, p("month")], MMM: [D, function(T) {
|
|
144
|
+
var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
|
|
145
145
|
return Y.slice(0, 3);
|
|
146
|
-
})).indexOf(
|
|
146
|
+
})).indexOf(T) + 1;
|
|
147
147
|
if (L < 1) throw new Error();
|
|
148
148
|
this.month = L % 12 || L;
|
|
149
|
-
}], MMMM: [D, function(
|
|
150
|
-
var M =
|
|
149
|
+
}], MMMM: [D, function(T) {
|
|
150
|
+
var M = S("months").indexOf(T) + 1;
|
|
151
151
|
if (M < 1) throw new Error();
|
|
152
152
|
this.month = M % 12 || M;
|
|
153
|
-
}], Y: [/[+-]?\d+/,
|
|
154
|
-
this.year =
|
|
155
|
-
}], YYYY: [/\d{4}/,
|
|
156
|
-
function A(
|
|
153
|
+
}], Y: [/[+-]?\d+/, p("year")], YY: [h, function(T) {
|
|
154
|
+
this.year = C(T);
|
|
155
|
+
}], YYYY: [/\d{4}/, p("year")], Z: F, ZZ: F };
|
|
156
|
+
function A(T) {
|
|
157
157
|
var M, L;
|
|
158
|
-
M =
|
|
159
|
-
for (var Y = (
|
|
160
|
-
var
|
|
161
|
-
return
|
|
162
|
-
return
|
|
158
|
+
M = T, L = E && E.formats;
|
|
159
|
+
for (var Y = (T = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, v, m) {
|
|
160
|
+
var _ = m && m.toUpperCase();
|
|
161
|
+
return v || L[m] || i[m] || L[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, f, k) {
|
|
162
|
+
return f || k.slice(1);
|
|
163
163
|
});
|
|
164
|
-
})).match(
|
|
165
|
-
var G = Y[R],
|
|
166
|
-
Y[R] =
|
|
164
|
+
})).match(s), N = Y.length, R = 0; R < N; R += 1) {
|
|
165
|
+
var G = Y[R], P = q[G], g = P && P[0], w = P && P[1];
|
|
166
|
+
Y[R] = w ? { regex: g, parser: w } : G.replace(/^\[|\]$/g, "");
|
|
167
167
|
}
|
|
168
|
-
return function(
|
|
169
|
-
for (var
|
|
168
|
+
return function(b) {
|
|
169
|
+
for (var v = {}, m = 0, _ = 0; m < N; m += 1) {
|
|
170
170
|
var c = Y[m];
|
|
171
|
-
if (typeof c == "string")
|
|
171
|
+
if (typeof c == "string") _ += c.length;
|
|
172
172
|
else {
|
|
173
|
-
var
|
|
174
|
-
|
|
173
|
+
var f = c.regex, k = c.parser, d = b.slice(_), y = f.exec(d)[0];
|
|
174
|
+
k.call(v, y), b = b.replace(y, "");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
return function(
|
|
178
|
-
var o =
|
|
177
|
+
return function(n) {
|
|
178
|
+
var o = n.afternoon;
|
|
179
179
|
if (o !== void 0) {
|
|
180
|
-
var r =
|
|
181
|
-
o ? r < 12 && (
|
|
180
|
+
var r = n.hours;
|
|
181
|
+
o ? r < 12 && (n.hours += 12) : r === 12 && (n.hours = 0), delete n.afternoon;
|
|
182
182
|
}
|
|
183
|
-
}(
|
|
183
|
+
}(v), v;
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
return function(
|
|
187
|
-
L.p.customParseFormat = true,
|
|
186
|
+
return function(T, M, L) {
|
|
187
|
+
L.p.customParseFormat = true, T && T.parseTwoDigitYear && (C = T.parseTwoDigitYear);
|
|
188
188
|
var Y = M.prototype, N = Y.parse;
|
|
189
189
|
Y.parse = function(R) {
|
|
190
|
-
var G = R.date,
|
|
191
|
-
this.$u =
|
|
192
|
-
var
|
|
193
|
-
if (typeof
|
|
194
|
-
var
|
|
195
|
-
|
|
190
|
+
var G = R.date, P = R.utc, g = R.args;
|
|
191
|
+
this.$u = P;
|
|
192
|
+
var w = g[1];
|
|
193
|
+
if (typeof w == "string") {
|
|
194
|
+
var b = g[2] === true, v = g[3] === true, m = b || v, _ = g[2];
|
|
195
|
+
v && (_ = g[2]), E = this.$locale(), !b && _ && (E = L.Ls[_]), this.$d = function(d, y, n, o) {
|
|
196
196
|
try {
|
|
197
|
-
if (["x", "X"].indexOf(
|
|
198
|
-
var r = A(
|
|
199
|
-
|
|
200
|
-
var $, j = X || 0, nt =
|
|
201
|
-
return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) :
|
|
197
|
+
if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * d);
|
|
198
|
+
var r = A(y)(d), W = r.year, I = r.month, V = r.day, X = r.hours, O = r.minutes, z = r.seconds, Q = r.milliseconds, at = r.zone, st = r.week, dt = /* @__PURE__ */ new Date(), ft = V || (W || I ? 1 : dt.getDate()), ot = W || dt.getFullYear(), B = 0;
|
|
199
|
+
W && !I || (B = I > 0 ? I - 1 : dt.getMonth());
|
|
200
|
+
var $, j = X || 0, nt = O || 0, K = z || 0, rt = Q || 0;
|
|
201
|
+
return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) : n ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : ($ = new Date(ot, B, ft, j, nt, K, rt), st && ($ = o($).week(st).toDate()), $);
|
|
202
202
|
} catch {
|
|
203
203
|
return /* @__PURE__ */ new Date("");
|
|
204
204
|
}
|
|
205
|
-
}(G,
|
|
206
|
-
} else if (
|
|
207
|
-
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
this.$d =
|
|
205
|
+
}(G, w, P, L), this.init(), _ && _ !== true && (this.$L = this.locale(_).$L), m && G != this.format(w) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
|
|
206
|
+
} else if (w instanceof Array) for (var c = w.length, f = 1; f <= c; f += 1) {
|
|
207
|
+
g[1] = w[f - 1];
|
|
208
|
+
var k = L.apply(this, g);
|
|
209
|
+
if (k.isValid()) {
|
|
210
|
+
this.$d = k.$d, this.$L = k.$L, this.init();
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
f === c && (this.$d = /* @__PURE__ */ new Date(""));
|
|
214
214
|
}
|
|
215
215
|
else N.call(this, R);
|
|
216
216
|
};
|
|
@@ -223,15 +223,15 @@ const tr = /* @__PURE__ */ Wt(Je);
|
|
|
223
223
|
var bt = { exports: {} }, er = bt.exports, ne;
|
|
224
224
|
function rr() {
|
|
225
225
|
return ne || (ne = 1, function(t, e) {
|
|
226
|
-
(function(
|
|
227
|
-
t.exports =
|
|
226
|
+
(function(i, s) {
|
|
227
|
+
t.exports = s();
|
|
228
228
|
})(er, function() {
|
|
229
|
-
return function(
|
|
230
|
-
var a =
|
|
231
|
-
a.format = function(
|
|
229
|
+
return function(i, s) {
|
|
230
|
+
var a = s.prototype, h = a.format;
|
|
231
|
+
a.format = function(u) {
|
|
232
232
|
var D = this, E = this.$locale();
|
|
233
|
-
if (!this.isValid()) return
|
|
234
|
-
var
|
|
233
|
+
if (!this.isValid()) return h.bind(this)(u);
|
|
234
|
+
var C = this.$utils(), p = (u || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(F) {
|
|
235
235
|
switch (F) {
|
|
236
236
|
case "Q":
|
|
237
237
|
return Math.ceil((D.$M + 1) / 3);
|
|
@@ -245,13 +245,13 @@ function rr() {
|
|
|
245
245
|
return E.ordinal(D.week(), "W");
|
|
246
246
|
case "w":
|
|
247
247
|
case "ww":
|
|
248
|
-
return
|
|
248
|
+
return C.s(D.week(), F === "w" ? 1 : 2, "0");
|
|
249
249
|
case "W":
|
|
250
250
|
case "WW":
|
|
251
|
-
return
|
|
251
|
+
return C.s(D.isoWeek(), F === "W" ? 1 : 2, "0");
|
|
252
252
|
case "k":
|
|
253
253
|
case "kk":
|
|
254
|
-
return
|
|
254
|
+
return C.s(String(D.$H === 0 ? 24 : D.$H), F === "k" ? 1 : 2, "0");
|
|
255
255
|
case "X":
|
|
256
256
|
return Math.floor(D.$d.getTime() / 1e3);
|
|
257
257
|
case "x":
|
|
@@ -264,7 +264,7 @@ function rr() {
|
|
|
264
264
|
return F;
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return h.bind(this)(p);
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
270
|
});
|
|
@@ -273,178 +273,178 @@ function rr() {
|
|
|
273
273
|
var nr = rr();
|
|
274
274
|
const ir = /* @__PURE__ */ Wt(nr);
|
|
275
275
|
var It = function() {
|
|
276
|
-
var t = /* @__PURE__ */ l(function(
|
|
277
|
-
for (
|
|
278
|
-
return
|
|
279
|
-
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40],
|
|
276
|
+
var t = /* @__PURE__ */ l(function(_, c, f, k) {
|
|
277
|
+
for (f = f || {}, k = _.length; k--; f[_[k]] = c) ;
|
|
278
|
+
return f;
|
|
279
|
+
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], i = [1, 26], s = [1, 27], a = [1, 28], h = [1, 29], u = [1, 30], D = [1, 31], E = [1, 32], C = [1, 33], p = [1, 34], F = [1, 9], S = [1, 10], x = [1, 11], q = [1, 12], A = [1, 13], T = [1, 14], M = [1, 15], L = [1, 16], Y = [1, 19], N = [1, 20], R = [1, 21], G = [1, 22], P = [1, 23], g = [1, 25], w = [1, 35], b = {
|
|
280
280
|
trace: /* @__PURE__ */ l(function() {
|
|
281
281
|
}, "trace"),
|
|
282
282
|
yy: {},
|
|
283
283
|
symbols_: { error: 2, start: 3, gantt: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NL: 10, weekday: 11, weekday_monday: 12, weekday_tuesday: 13, weekday_wednesday: 14, weekday_thursday: 15, weekday_friday: 16, weekday_saturday: 17, weekday_sunday: 18, weekend: 19, weekend_friday: 20, weekend_saturday: 21, dateFormat: 22, inclusiveEndDates: 23, topAxis: 24, axisFormat: 25, tickInterval: 26, excludes: 27, includes: 28, todayMarker: 29, title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, section: 36, clickStatement: 37, taskTxt: 38, taskData: 39, click: 40, callbackname: 41, callbackargs: 42, href: 43, clickStatementDebug: 44, $accept: 0, $end: 1 },
|
|
284
284
|
terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 20: "weekend_friday", 21: "weekend_saturday", 22: "dateFormat", 23: "inclusiveEndDates", 24: "topAxis", 25: "axisFormat", 26: "tickInterval", 27: "excludes", 28: "includes", 29: "todayMarker", 30: "title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "section", 38: "taskTxt", 39: "taskData", 40: "click", 41: "callbackname", 42: "callbackargs", 43: "href" },
|
|
285
285
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [19, 1], [19, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [37, 2], [37, 3], [37, 3], [37, 4], [37, 3], [37, 4], [37, 2], [44, 2], [44, 3], [44, 3], [44, 4], [44, 3], [44, 4], [44, 2]],
|
|
286
|
-
performAction: /* @__PURE__ */ l(function(c,
|
|
287
|
-
var r =
|
|
288
|
-
switch (
|
|
286
|
+
performAction: /* @__PURE__ */ l(function(c, f, k, d, y, n, o) {
|
|
287
|
+
var r = n.length - 1;
|
|
288
|
+
switch (y) {
|
|
289
289
|
case 1:
|
|
290
|
-
return
|
|
290
|
+
return n[r - 1];
|
|
291
291
|
case 2:
|
|
292
292
|
this.$ = [];
|
|
293
293
|
break;
|
|
294
294
|
case 3:
|
|
295
|
-
|
|
295
|
+
n[r - 1].push(n[r]), this.$ = n[r - 1];
|
|
296
296
|
break;
|
|
297
297
|
case 4:
|
|
298
298
|
case 5:
|
|
299
|
-
this.$ =
|
|
299
|
+
this.$ = n[r];
|
|
300
300
|
break;
|
|
301
301
|
case 6:
|
|
302
302
|
case 7:
|
|
303
303
|
this.$ = [];
|
|
304
304
|
break;
|
|
305
305
|
case 8:
|
|
306
|
-
|
|
306
|
+
d.setWeekday("monday");
|
|
307
307
|
break;
|
|
308
308
|
case 9:
|
|
309
|
-
|
|
309
|
+
d.setWeekday("tuesday");
|
|
310
310
|
break;
|
|
311
311
|
case 10:
|
|
312
|
-
|
|
312
|
+
d.setWeekday("wednesday");
|
|
313
313
|
break;
|
|
314
314
|
case 11:
|
|
315
|
-
|
|
315
|
+
d.setWeekday("thursday");
|
|
316
316
|
break;
|
|
317
317
|
case 12:
|
|
318
|
-
|
|
318
|
+
d.setWeekday("friday");
|
|
319
319
|
break;
|
|
320
320
|
case 13:
|
|
321
|
-
|
|
321
|
+
d.setWeekday("saturday");
|
|
322
322
|
break;
|
|
323
323
|
case 14:
|
|
324
|
-
|
|
324
|
+
d.setWeekday("sunday");
|
|
325
325
|
break;
|
|
326
326
|
case 15:
|
|
327
|
-
|
|
327
|
+
d.setWeekend("friday");
|
|
328
328
|
break;
|
|
329
329
|
case 16:
|
|
330
|
-
|
|
330
|
+
d.setWeekend("saturday");
|
|
331
331
|
break;
|
|
332
332
|
case 17:
|
|
333
|
-
|
|
333
|
+
d.setDateFormat(n[r].substr(11)), this.$ = n[r].substr(11);
|
|
334
334
|
break;
|
|
335
335
|
case 18:
|
|
336
|
-
|
|
336
|
+
d.enableInclusiveEndDates(), this.$ = n[r].substr(18);
|
|
337
337
|
break;
|
|
338
338
|
case 19:
|
|
339
|
-
|
|
339
|
+
d.TopAxis(), this.$ = n[r].substr(8);
|
|
340
340
|
break;
|
|
341
341
|
case 20:
|
|
342
|
-
|
|
342
|
+
d.setAxisFormat(n[r].substr(11)), this.$ = n[r].substr(11);
|
|
343
343
|
break;
|
|
344
344
|
case 21:
|
|
345
|
-
|
|
345
|
+
d.setTickInterval(n[r].substr(13)), this.$ = n[r].substr(13);
|
|
346
346
|
break;
|
|
347
347
|
case 22:
|
|
348
|
-
|
|
348
|
+
d.setExcludes(n[r].substr(9)), this.$ = n[r].substr(9);
|
|
349
349
|
break;
|
|
350
350
|
case 23:
|
|
351
|
-
|
|
351
|
+
d.setIncludes(n[r].substr(9)), this.$ = n[r].substr(9);
|
|
352
352
|
break;
|
|
353
353
|
case 24:
|
|
354
|
-
|
|
354
|
+
d.setTodayMarker(n[r].substr(12)), this.$ = n[r].substr(12);
|
|
355
355
|
break;
|
|
356
356
|
case 27:
|
|
357
|
-
|
|
357
|
+
d.setDiagramTitle(n[r].substr(6)), this.$ = n[r].substr(6);
|
|
358
358
|
break;
|
|
359
359
|
case 28:
|
|
360
|
-
this.$ =
|
|
360
|
+
this.$ = n[r].trim(), d.setAccTitle(this.$);
|
|
361
361
|
break;
|
|
362
362
|
case 29:
|
|
363
363
|
case 30:
|
|
364
|
-
this.$ =
|
|
364
|
+
this.$ = n[r].trim(), d.setAccDescription(this.$);
|
|
365
365
|
break;
|
|
366
366
|
case 31:
|
|
367
|
-
|
|
367
|
+
d.addSection(n[r].substr(8)), this.$ = n[r].substr(8);
|
|
368
368
|
break;
|
|
369
369
|
case 33:
|
|
370
|
-
|
|
370
|
+
d.addTask(n[r - 1], n[r]), this.$ = "task";
|
|
371
371
|
break;
|
|
372
372
|
case 34:
|
|
373
|
-
this.$ =
|
|
373
|
+
this.$ = n[r - 1], d.setClickEvent(n[r - 1], n[r], null);
|
|
374
374
|
break;
|
|
375
375
|
case 35:
|
|
376
|
-
this.$ =
|
|
376
|
+
this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r - 1], n[r]);
|
|
377
377
|
break;
|
|
378
378
|
case 36:
|
|
379
|
-
this.$ =
|
|
379
|
+
this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r - 1], null), d.setLink(n[r - 2], n[r]);
|
|
380
380
|
break;
|
|
381
381
|
case 37:
|
|
382
|
-
this.$ =
|
|
382
|
+
this.$ = n[r - 3], d.setClickEvent(n[r - 3], n[r - 2], n[r - 1]), d.setLink(n[r - 3], n[r]);
|
|
383
383
|
break;
|
|
384
384
|
case 38:
|
|
385
|
-
this.$ =
|
|
385
|
+
this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r], null), d.setLink(n[r - 2], n[r - 1]);
|
|
386
386
|
break;
|
|
387
387
|
case 39:
|
|
388
|
-
this.$ =
|
|
388
|
+
this.$ = n[r - 3], d.setClickEvent(n[r - 3], n[r - 1], n[r]), d.setLink(n[r - 3], n[r - 2]);
|
|
389
389
|
break;
|
|
390
390
|
case 40:
|
|
391
|
-
this.$ =
|
|
391
|
+
this.$ = n[r - 1], d.setLink(n[r - 1], n[r]);
|
|
392
392
|
break;
|
|
393
393
|
case 41:
|
|
394
394
|
case 47:
|
|
395
|
-
this.$ =
|
|
395
|
+
this.$ = n[r - 1] + " " + n[r];
|
|
396
396
|
break;
|
|
397
397
|
case 42:
|
|
398
398
|
case 43:
|
|
399
399
|
case 45:
|
|
400
|
-
this.$ =
|
|
400
|
+
this.$ = n[r - 2] + " " + n[r - 1] + " " + n[r];
|
|
401
401
|
break;
|
|
402
402
|
case 44:
|
|
403
403
|
case 46:
|
|
404
|
-
this.$ =
|
|
404
|
+
this.$ = n[r - 3] + " " + n[r - 2] + " " + n[r - 1] + " " + n[r];
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
407
|
}, "anonymous"),
|
|
408
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12:
|
|
408
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: i, 13: s, 14: a, 15: h, 16: u, 17: D, 18: E, 19: 18, 20: C, 21: p, 22: F, 23: S, 24: x, 25: q, 26: A, 27: T, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: P, 37: 24, 38: g, 40: w }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: i, 13: s, 14: a, 15: h, 16: u, 17: D, 18: E, 19: 18, 20: C, 21: p, 22: F, 23: S, 24: x, 25: q, 26: A, 27: T, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: P, 37: 24, 38: g, 40: w }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
|
|
409
409
|
defaultActions: {},
|
|
410
|
-
parseError: /* @__PURE__ */ l(function(c,
|
|
411
|
-
if (
|
|
410
|
+
parseError: /* @__PURE__ */ l(function(c, f) {
|
|
411
|
+
if (f.recoverable)
|
|
412
412
|
this.trace(c);
|
|
413
413
|
else {
|
|
414
|
-
var
|
|
415
|
-
throw
|
|
414
|
+
var k = new Error(c);
|
|
415
|
+
throw k.hash = f, k;
|
|
416
416
|
}
|
|
417
417
|
}, "parseError"),
|
|
418
418
|
parse: /* @__PURE__ */ l(function(c) {
|
|
419
|
-
var
|
|
419
|
+
var f = this, k = [0], d = [], y = [null], n = [], o = this.table, r = "", W = 0, I = 0, V = 2, X = 1, O = n.slice.call(arguments, 1), z = Object.create(this.lexer), Q = { yy: {} };
|
|
420
420
|
for (var at in this.yy)
|
|
421
421
|
Object.prototype.hasOwnProperty.call(this.yy, at) && (Q.yy[at] = this.yy[at]);
|
|
422
|
-
|
|
423
|
-
var st =
|
|
424
|
-
|
|
425
|
-
var dt =
|
|
422
|
+
z.setInput(c, Q.yy), Q.yy.lexer = z, Q.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
|
|
423
|
+
var st = z.yylloc;
|
|
424
|
+
n.push(st);
|
|
425
|
+
var dt = z.options && z.options.ranges;
|
|
426
426
|
typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
427
427
|
function ft(Z) {
|
|
428
|
-
|
|
428
|
+
k.length = k.length - 2 * Z, y.length = y.length - Z, n.length = n.length - Z;
|
|
429
429
|
}
|
|
430
430
|
l(ft, "popStack");
|
|
431
431
|
function ot() {
|
|
432
432
|
var Z;
|
|
433
|
-
return Z =
|
|
433
|
+
return Z = d.pop() || z.lex() || X, typeof Z != "number" && (Z instanceof Array && (d = Z, Z = d.pop()), Z = f.symbols_[Z] || Z), Z;
|
|
434
434
|
}
|
|
435
435
|
l(ot, "lex");
|
|
436
436
|
for (var B, $, j, nt, K = {}, rt, J, Xt, yt; ; ) {
|
|
437
|
-
if ($ =
|
|
437
|
+
if ($ = k[k.length - 1], this.defaultActions[$] ? j = this.defaultActions[$] : ((B === null || typeof B > "u") && (B = ot()), j = o[$] && o[$][B]), typeof j > "u" || !j.length || !j[0]) {
|
|
438
438
|
var Et = "";
|
|
439
439
|
yt = [];
|
|
440
440
|
for (rt in o[$])
|
|
441
|
-
this.terminals_[rt] && rt >
|
|
442
|
-
|
|
443
|
-
` +
|
|
444
|
-
Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (
|
|
445
|
-
text:
|
|
441
|
+
this.terminals_[rt] && rt > V && yt.push("'" + this.terminals_[rt] + "'");
|
|
442
|
+
z.showPosition ? Et = "Parse error on line " + (W + 1) + `:
|
|
443
|
+
` + z.showPosition() + `
|
|
444
|
+
Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (W + 1) + ": Unexpected " + (B == X ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Et, {
|
|
445
|
+
text: z.match,
|
|
446
446
|
token: this.terminals_[B] || B,
|
|
447
|
-
line:
|
|
447
|
+
line: z.yylineno,
|
|
448
448
|
loc: st,
|
|
449
449
|
expected: yt
|
|
450
450
|
});
|
|
@@ -453,28 +453,28 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
453
453
|
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + B);
|
|
454
454
|
switch (j[0]) {
|
|
455
455
|
case 1:
|
|
456
|
-
|
|
456
|
+
k.push(B), y.push(z.yytext), n.push(z.yylloc), k.push(j[1]), B = null, I = z.yyleng, r = z.yytext, W = z.yylineno, st = z.yylloc;
|
|
457
457
|
break;
|
|
458
458
|
case 2:
|
|
459
|
-
if (J = this.productions_[j[1]][1], K.$ =
|
|
460
|
-
first_line:
|
|
461
|
-
last_line:
|
|
462
|
-
first_column:
|
|
463
|
-
last_column:
|
|
459
|
+
if (J = this.productions_[j[1]][1], K.$ = y[y.length - J], K._$ = {
|
|
460
|
+
first_line: n[n.length - (J || 1)].first_line,
|
|
461
|
+
last_line: n[n.length - 1].last_line,
|
|
462
|
+
first_column: n[n.length - (J || 1)].first_column,
|
|
463
|
+
last_column: n[n.length - 1].last_column
|
|
464
464
|
}, dt && (K._$.range = [
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
n[n.length - (J || 1)].range[0],
|
|
466
|
+
n[n.length - 1].range[1]
|
|
467
467
|
]), nt = this.performAction.apply(K, [
|
|
468
468
|
r,
|
|
469
469
|
I,
|
|
470
|
-
|
|
470
|
+
W,
|
|
471
471
|
Q.yy,
|
|
472
472
|
j[1],
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
].concat(
|
|
473
|
+
y,
|
|
474
|
+
n
|
|
475
|
+
].concat(O)), typeof nt < "u")
|
|
476
476
|
return nt;
|
|
477
|
-
J && (
|
|
477
|
+
J && (k = k.slice(0, -1 * J * 2), y = y.slice(0, -1 * J), n = n.slice(0, -1 * J)), k.push(this.productions_[j[1]][0]), y.push(K.$), n.push(K._$), Xt = o[k[k.length - 2]][k[k.length - 1]], k.push(Xt);
|
|
478
478
|
break;
|
|
479
479
|
case 3:
|
|
480
480
|
return true;
|
|
@@ -482,18 +482,18 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
482
482
|
}
|
|
483
483
|
return true;
|
|
484
484
|
}, "parse")
|
|
485
|
-
},
|
|
486
|
-
var
|
|
485
|
+
}, v = /* @__PURE__ */ function() {
|
|
486
|
+
var _ = {
|
|
487
487
|
EOF: 1,
|
|
488
|
-
parseError: /* @__PURE__ */ l(function(
|
|
488
|
+
parseError: /* @__PURE__ */ l(function(f, k) {
|
|
489
489
|
if (this.yy.parser)
|
|
490
|
-
this.yy.parser.parseError(
|
|
490
|
+
this.yy.parser.parseError(f, k);
|
|
491
491
|
else
|
|
492
|
-
throw new Error(
|
|
492
|
+
throw new Error(f);
|
|
493
493
|
}, "parseError"),
|
|
494
494
|
// resets the lexer, sets new input
|
|
495
|
-
setInput: /* @__PURE__ */ l(function(c,
|
|
496
|
-
return this.yy =
|
|
495
|
+
setInput: /* @__PURE__ */ l(function(c, f) {
|
|
496
|
+
return this.yy = f || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
497
497
|
first_line: 1,
|
|
498
498
|
first_column: 0,
|
|
499
499
|
last_line: 1,
|
|
@@ -504,22 +504,22 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
504
504
|
input: /* @__PURE__ */ l(function() {
|
|
505
505
|
var c = this._input[0];
|
|
506
506
|
this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
|
|
507
|
-
var
|
|
508
|
-
return
|
|
507
|
+
var f = c.match(/(?:\r\n?|\n).*/g);
|
|
508
|
+
return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
|
|
509
509
|
}, "input"),
|
|
510
510
|
// unshifts one char (or a string) into the input
|
|
511
511
|
unput: /* @__PURE__ */ l(function(c) {
|
|
512
|
-
var
|
|
513
|
-
this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
514
|
-
var
|
|
515
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
516
|
-
var
|
|
512
|
+
var f = c.length, k = c.split(/(?:\r\n?|\n)/g);
|
|
513
|
+
this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
|
|
514
|
+
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
515
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
|
|
516
|
+
var y = this.yylloc.range;
|
|
517
517
|
return this.yylloc = {
|
|
518
518
|
first_line: this.yylloc.first_line,
|
|
519
519
|
last_line: this.yylineno + 1,
|
|
520
520
|
first_column: this.yylloc.first_column,
|
|
521
|
-
last_column:
|
|
522
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
521
|
+
last_column: k ? (k.length === d.length ? this.yylloc.first_column : 0) + d[d.length - k.length].length - k[0].length : this.yylloc.first_column - f
|
|
522
|
+
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
|
|
523
523
|
}, "unput"),
|
|
524
524
|
// When called from action, caches matched text and appends it on next action
|
|
525
525
|
more: /* @__PURE__ */ l(function() {
|
|
@@ -554,14 +554,14 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
554
554
|
}, "upcomingInput"),
|
|
555
555
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
556
556
|
showPosition: /* @__PURE__ */ l(function() {
|
|
557
|
-
var c = this.pastInput(),
|
|
557
|
+
var c = this.pastInput(), f = new Array(c.length + 1).join("-");
|
|
558
558
|
return c + this.upcomingInput() + `
|
|
559
|
-
` +
|
|
559
|
+
` + f + "^";
|
|
560
560
|
}, "showPosition"),
|
|
561
561
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
562
|
-
test_match: /* @__PURE__ */ l(function(c,
|
|
563
|
-
var
|
|
564
|
-
if (this.options.backtrack_lexer && (
|
|
562
|
+
test_match: /* @__PURE__ */ l(function(c, f) {
|
|
563
|
+
var k, d, y;
|
|
564
|
+
if (this.options.backtrack_lexer && (y = {
|
|
565
565
|
yylineno: this.yylineno,
|
|
566
566
|
yylloc: {
|
|
567
567
|
first_line: this.yylloc.first_line,
|
|
@@ -580,16 +580,16 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
580
580
|
yy: this.yy,
|
|
581
581
|
conditionStack: this.conditionStack.slice(0),
|
|
582
582
|
done: this.done
|
|
583
|
-
}, this.options.ranges && (
|
|
583
|
+
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), d = c[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
584
584
|
first_line: this.yylloc.last_line,
|
|
585
585
|
last_line: this.yylineno + 1,
|
|
586
586
|
first_column: this.yylloc.last_column,
|
|
587
|
-
last_column:
|
|
588
|
-
}, this.yytext += c[0], this.match += c[0], this.matches = c, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(c[0].length), this.matched += c[0],
|
|
589
|
-
return
|
|
587
|
+
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
|
|
588
|
+
}, this.yytext += c[0], this.match += c[0], this.matches = c, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(c[0].length), this.matched += c[0], k = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), k)
|
|
589
|
+
return k;
|
|
590
590
|
if (this._backtrack) {
|
|
591
|
-
for (var
|
|
592
|
-
this[
|
|
591
|
+
for (var n in y)
|
|
592
|
+
this[n] = y[n];
|
|
593
593
|
return false;
|
|
594
594
|
}
|
|
595
595
|
return false;
|
|
@@ -599,22 +599,22 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
599
599
|
if (this.done)
|
|
600
600
|
return this.EOF;
|
|
601
601
|
this._input || (this.done = true);
|
|
602
|
-
var c,
|
|
602
|
+
var c, f, k, d;
|
|
603
603
|
this._more || (this.yytext = "", this.match = "");
|
|
604
|
-
for (var
|
|
605
|
-
if (
|
|
606
|
-
if (
|
|
607
|
-
if (c = this.test_match(
|
|
604
|
+
for (var y = this._currentRules(), n = 0; n < y.length; n++)
|
|
605
|
+
if (k = this._input.match(this.rules[y[n]]), k && (!f || k[0].length > f[0].length)) {
|
|
606
|
+
if (f = k, d = n, this.options.backtrack_lexer) {
|
|
607
|
+
if (c = this.test_match(k, y[n]), c !== false)
|
|
608
608
|
return c;
|
|
609
609
|
if (this._backtrack) {
|
|
610
|
-
|
|
610
|
+
f = false;
|
|
611
611
|
continue;
|
|
612
612
|
} else
|
|
613
613
|
return false;
|
|
614
614
|
} else if (!this.options.flex)
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return f ? (c = this.test_match(f, y[d]), c !== false ? c : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
618
618
|
` + this.showPosition(), {
|
|
619
619
|
text: "",
|
|
620
620
|
token: null,
|
|
@@ -623,37 +623,37 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
623
623
|
}, "next"),
|
|
624
624
|
// return next match that has a token
|
|
625
625
|
lex: /* @__PURE__ */ l(function() {
|
|
626
|
-
var
|
|
627
|
-
return
|
|
626
|
+
var f = this.next();
|
|
627
|
+
return f || this.lex();
|
|
628
628
|
}, "lex"),
|
|
629
629
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
630
|
-
begin: /* @__PURE__ */ l(function(
|
|
631
|
-
this.conditionStack.push(
|
|
630
|
+
begin: /* @__PURE__ */ l(function(f) {
|
|
631
|
+
this.conditionStack.push(f);
|
|
632
632
|
}, "begin"),
|
|
633
633
|
// pop the previously active lexer condition state off the condition stack
|
|
634
634
|
popState: /* @__PURE__ */ l(function() {
|
|
635
|
-
var
|
|
636
|
-
return
|
|
635
|
+
var f = this.conditionStack.length - 1;
|
|
636
|
+
return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
637
637
|
}, "popState"),
|
|
638
638
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
639
639
|
_currentRules: /* @__PURE__ */ l(function() {
|
|
640
640
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
641
641
|
}, "_currentRules"),
|
|
642
642
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
643
|
-
topState: /* @__PURE__ */ l(function(
|
|
644
|
-
return
|
|
643
|
+
topState: /* @__PURE__ */ l(function(f) {
|
|
644
|
+
return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
|
|
645
645
|
}, "topState"),
|
|
646
646
|
// alias for begin(condition)
|
|
647
|
-
pushState: /* @__PURE__ */ l(function(
|
|
648
|
-
this.begin(
|
|
647
|
+
pushState: /* @__PURE__ */ l(function(f) {
|
|
648
|
+
this.begin(f);
|
|
649
649
|
}, "pushState"),
|
|
650
650
|
// return the number of states currently on the stack
|
|
651
651
|
stateStackSize: /* @__PURE__ */ l(function() {
|
|
652
652
|
return this.conditionStack.length;
|
|
653
653
|
}, "stateStackSize"),
|
|
654
654
|
options: { "case-insensitive": true },
|
|
655
|
-
performAction: /* @__PURE__ */ l(function(
|
|
656
|
-
switch (
|
|
655
|
+
performAction: /* @__PURE__ */ l(function(f, k, d, y) {
|
|
656
|
+
switch (d) {
|
|
657
657
|
case 0:
|
|
658
658
|
return this.begin("open_directive"), "open_directive";
|
|
659
659
|
case 1:
|
|
@@ -775,33 +775,33 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
|
|
|
775
775
|
rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:weekend\s+friday\b)/i, /^(?:weekend\s+saturday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^\n]+)/i, /^(?:[^:\n]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
|
|
776
776
|
conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: false }, acc_descr: { rules: [4], inclusive: false }, acc_title: { rules: [2], inclusive: false }, callbackargs: { rules: [21, 22], inclusive: false }, callbackname: { rules: [18, 19, 20], inclusive: false }, href: { rules: [15, 16], inclusive: false }, click: { rules: [24, 25], inclusive: false }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], inclusive: true } }
|
|
777
777
|
};
|
|
778
|
-
return
|
|
778
|
+
return _;
|
|
779
779
|
}();
|
|
780
|
-
|
|
780
|
+
b.lexer = v;
|
|
781
781
|
function m() {
|
|
782
782
|
this.yy = {};
|
|
783
783
|
}
|
|
784
|
-
return l(m, "Parser"), m.prototype =
|
|
784
|
+
return l(m, "Parser"), m.prototype = b, b.Parser = m, new m();
|
|
785
785
|
}();
|
|
786
786
|
It.parser = It;
|
|
787
787
|
var ar = It;
|
|
788
788
|
U.extend($e);
|
|
789
789
|
U.extend(tr);
|
|
790
790
|
U.extend(ir);
|
|
791
|
-
var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "",
|
|
792
|
-
Rt = [],
|
|
791
|
+
var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Ot = void 0, Pt = "", ht = [], mt = [], zt = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone", "vert"], Bt = [], kt = false, Ht = false, qt = "sunday", Ct = "saturday", Ft = 0, sr = /* @__PURE__ */ l(function() {
|
|
792
|
+
Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, H = [], tt = "", Vt = "", Nt = "", Ot = void 0, Pt = "", ht = [], mt = [], kt = false, Ht = false, Ft = 0, zt = /* @__PURE__ */ new Map(), De(), qt = "sunday", Ct = "saturday";
|
|
793
793
|
}, "clear"), or = /* @__PURE__ */ l(function(t) {
|
|
794
794
|
Vt = t;
|
|
795
795
|
}, "setAxisFormat"), cr = /* @__PURE__ */ l(function() {
|
|
796
796
|
return Vt;
|
|
797
797
|
}, "getAxisFormat"), lr = /* @__PURE__ */ l(function(t) {
|
|
798
|
-
|
|
798
|
+
Ot = t;
|
|
799
799
|
}, "setTickInterval"), ur = /* @__PURE__ */ l(function() {
|
|
800
|
-
return
|
|
800
|
+
return Ot;
|
|
801
801
|
}, "getTickInterval"), dr = /* @__PURE__ */ l(function(t) {
|
|
802
|
-
|
|
802
|
+
Pt = t;
|
|
803
803
|
}, "setTodayMarker"), fr = /* @__PURE__ */ l(function() {
|
|
804
|
-
return
|
|
804
|
+
return Pt;
|
|
805
805
|
}, "getTodayMarker"), hr = /* @__PURE__ */ l(function(t) {
|
|
806
806
|
tt = t;
|
|
807
807
|
}, "setDateFormat"), mr = /* @__PURE__ */ l(function() {
|
|
@@ -827,160 +827,161 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
827
827
|
}, "setExcludes"), _r = /* @__PURE__ */ l(function() {
|
|
828
828
|
return mt;
|
|
829
829
|
}, "getExcludes"), Dr = /* @__PURE__ */ l(function() {
|
|
830
|
-
return
|
|
831
|
-
}, "getLinks"),
|
|
830
|
+
return zt;
|
|
831
|
+
}, "getLinks"), Sr = /* @__PURE__ */ l(function(t) {
|
|
832
832
|
ut = t, Rt.push(t);
|
|
833
|
-
}, "addSection"),
|
|
833
|
+
}, "addSection"), Cr = /* @__PURE__ */ l(function() {
|
|
834
834
|
return Rt;
|
|
835
835
|
}, "getSections"), Er = /* @__PURE__ */ l(function() {
|
|
836
836
|
let t = ae();
|
|
837
837
|
const e = 10;
|
|
838
|
-
let
|
|
839
|
-
for (; !t &&
|
|
840
|
-
t = ae(),
|
|
841
|
-
return
|
|
842
|
-
}, "getTasks"), le = /* @__PURE__ */ l(function(t, e,
|
|
843
|
-
|
|
838
|
+
let i = 0;
|
|
839
|
+
for (; !t && i < e; )
|
|
840
|
+
t = ae(), i++;
|
|
841
|
+
return St = H, St;
|
|
842
|
+
}, "getTasks"), le = /* @__PURE__ */ l(function(t, e, i, s) {
|
|
843
|
+
const a = t.format(e.trim()), h = t.format("YYYY-MM-DD");
|
|
844
|
+
return s.includes(a) || s.includes(h) ? false : i.includes("weekends") && (t.isoWeekday() === ie[Ct] || t.isoWeekday() === ie[Ct] + 1) || i.includes(t.format("dddd").toLowerCase()) ? true : i.includes(a) || i.includes(h);
|
|
844
845
|
}, "isInvalidDate"), Mr = /* @__PURE__ */ l(function(t) {
|
|
845
846
|
qt = t;
|
|
846
847
|
}, "setWeekday"), Ar = /* @__PURE__ */ l(function() {
|
|
847
848
|
return qt;
|
|
848
849
|
}, "getWeekday"), Ir = /* @__PURE__ */ l(function(t) {
|
|
849
|
-
|
|
850
|
-
}, "setWeekend"), ue = /* @__PURE__ */ l(function(t, e,
|
|
851
|
-
if (!
|
|
850
|
+
Ct = t;
|
|
851
|
+
}, "setWeekend"), ue = /* @__PURE__ */ l(function(t, e, i, s) {
|
|
852
|
+
if (!i.length || t.manualEndTime)
|
|
852
853
|
return;
|
|
853
854
|
let a;
|
|
854
855
|
t.startTime instanceof Date ? a = U(t.startTime) : a = U(t.startTime, e, true), a = a.add(1, "d");
|
|
855
|
-
let
|
|
856
|
-
t.endTime instanceof Date ?
|
|
857
|
-
const [
|
|
856
|
+
let h;
|
|
857
|
+
t.endTime instanceof Date ? h = U(t.endTime) : h = U(t.endTime, e, true);
|
|
858
|
+
const [u, D] = Fr(
|
|
858
859
|
a,
|
|
859
|
-
|
|
860
|
+
h,
|
|
860
861
|
e,
|
|
861
|
-
|
|
862
|
-
|
|
862
|
+
i,
|
|
863
|
+
s
|
|
863
864
|
);
|
|
864
|
-
t.endTime =
|
|
865
|
-
}, "checkTaskDates"), Fr = /* @__PURE__ */ l(function(t, e,
|
|
866
|
-
let
|
|
865
|
+
t.endTime = u.toDate(), t.renderEndTime = D;
|
|
866
|
+
}, "checkTaskDates"), Fr = /* @__PURE__ */ l(function(t, e, i, s, a) {
|
|
867
|
+
let h = false, u = null;
|
|
867
868
|
for (; t <= e; )
|
|
868
|
-
|
|
869
|
-
return [e,
|
|
870
|
-
}, "fixTaskDates"), Lt = /* @__PURE__ */ l(function(t, e,
|
|
871
|
-
|
|
872
|
-
const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(
|
|
869
|
+
h || (u = e.toDate()), h = le(t, i, s, a), h && (e = e.add(1, "d")), t = t.add(1, "d");
|
|
870
|
+
return [e, u];
|
|
871
|
+
}, "fixTaskDates"), Lt = /* @__PURE__ */ l(function(t, e, i) {
|
|
872
|
+
i = i.trim();
|
|
873
|
+
const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(i);
|
|
873
874
|
if (a !== null) {
|
|
874
|
-
let
|
|
875
|
+
let u = null;
|
|
875
876
|
for (const E of a.groups.ids.split(" ")) {
|
|
876
|
-
let
|
|
877
|
-
|
|
877
|
+
let C = it(E);
|
|
878
|
+
C !== void 0 && (!u || C.endTime > u.endTime) && (u = C);
|
|
878
879
|
}
|
|
879
|
-
if (
|
|
880
|
-
return
|
|
880
|
+
if (u)
|
|
881
|
+
return u.endTime;
|
|
881
882
|
const D = /* @__PURE__ */ new Date();
|
|
882
883
|
return D.setHours(0, 0, 0, 0), D;
|
|
883
884
|
}
|
|
884
|
-
let
|
|
885
|
-
if (
|
|
886
|
-
return
|
|
885
|
+
let h = U(i, e.trim(), true);
|
|
886
|
+
if (h.isValid())
|
|
887
|
+
return h.toDate();
|
|
887
888
|
{
|
|
888
|
-
Dt.debug("Invalid date:" +
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
889
|
+
Dt.debug("Invalid date:" + i), Dt.debug("With date format:" + e.trim());
|
|
890
|
+
const u = new Date(i);
|
|
891
|
+
if (u === void 0 || isNaN(u.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
|
|
891
892
|
// huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
|
|
892
893
|
// This can cause virtually infinite loops while rendering, so for the
|
|
893
894
|
// purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
|
|
894
895
|
// invalid.
|
|
895
|
-
|
|
896
|
-
throw new Error("Invalid date:" +
|
|
897
|
-
return
|
|
896
|
+
u.getFullYear() < -1e4 || u.getFullYear() > 1e4)
|
|
897
|
+
throw new Error("Invalid date:" + i);
|
|
898
|
+
return u;
|
|
898
899
|
}
|
|
899
900
|
}, "getStartDate"), de = /* @__PURE__ */ l(function(t) {
|
|
900
901
|
const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
|
|
901
902
|
return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
|
|
902
|
-
}, "parseDuration"), fe = /* @__PURE__ */ l(function(t, e,
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
if (
|
|
906
|
-
let
|
|
907
|
-
for (const
|
|
908
|
-
let
|
|
909
|
-
|
|
903
|
+
}, "parseDuration"), fe = /* @__PURE__ */ l(function(t, e, i, s = false) {
|
|
904
|
+
i = i.trim();
|
|
905
|
+
const h = /^until\s+(?<ids>[\d\w- ]+)/.exec(i);
|
|
906
|
+
if (h !== null) {
|
|
907
|
+
let p = null;
|
|
908
|
+
for (const S of h.groups.ids.split(" ")) {
|
|
909
|
+
let x = it(S);
|
|
910
|
+
x !== void 0 && (!p || x.startTime < p.startTime) && (p = x);
|
|
910
911
|
}
|
|
911
|
-
if (
|
|
912
|
-
return
|
|
912
|
+
if (p)
|
|
913
|
+
return p.startTime;
|
|
913
914
|
const F = /* @__PURE__ */ new Date();
|
|
914
915
|
return F.setHours(0, 0, 0, 0), F;
|
|
915
916
|
}
|
|
916
|
-
let
|
|
917
|
-
if (
|
|
918
|
-
return
|
|
917
|
+
let u = U(i, e.trim(), true);
|
|
918
|
+
if (u.isValid())
|
|
919
|
+
return s && (u = u.add(1, "d")), u.toDate();
|
|
919
920
|
let D = U(t);
|
|
920
|
-
const [E,
|
|
921
|
+
const [E, C] = de(i);
|
|
921
922
|
if (!Number.isNaN(E)) {
|
|
922
|
-
const
|
|
923
|
-
|
|
923
|
+
const p = D.add(E, C);
|
|
924
|
+
p.isValid() && (D = p);
|
|
924
925
|
}
|
|
925
926
|
return D.toDate();
|
|
926
927
|
}, "getEndDate"), wt = 0, lt = /* @__PURE__ */ l(function(t) {
|
|
927
928
|
return t === void 0 ? (wt = wt + 1, "task" + wt) : t;
|
|
928
929
|
}, "parseId"), Lr = /* @__PURE__ */ l(function(t, e) {
|
|
929
|
-
let
|
|
930
|
-
e.substr(0, 1) === ":" ?
|
|
931
|
-
const
|
|
932
|
-
Gt(
|
|
933
|
-
for (let
|
|
934
|
-
|
|
935
|
-
let
|
|
936
|
-
switch (
|
|
930
|
+
let i;
|
|
931
|
+
e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
|
|
932
|
+
const s = i.split(","), a = {};
|
|
933
|
+
Gt(s, a, ce);
|
|
934
|
+
for (let u = 0; u < s.length; u++)
|
|
935
|
+
s[u] = s[u].trim();
|
|
936
|
+
let h = "";
|
|
937
|
+
switch (s.length) {
|
|
937
938
|
case 1:
|
|
938
|
-
a.id = lt(), a.startTime = t.endTime,
|
|
939
|
+
a.id = lt(), a.startTime = t.endTime, h = s[0];
|
|
939
940
|
break;
|
|
940
941
|
case 2:
|
|
941
|
-
a.id = lt(), a.startTime = Lt(void 0, tt,
|
|
942
|
+
a.id = lt(), a.startTime = Lt(void 0, tt, s[0]), h = s[1];
|
|
942
943
|
break;
|
|
943
944
|
case 3:
|
|
944
|
-
a.id = lt(
|
|
945
|
+
a.id = lt(s[0]), a.startTime = Lt(void 0, tt, s[1]), h = s[2];
|
|
945
946
|
break;
|
|
946
947
|
}
|
|
947
|
-
return
|
|
948
|
+
return h && (a.endTime = fe(a.startTime, tt, h, kt), a.manualEndTime = U(h, "YYYY-MM-DD", true).isValid(), ue(a, tt, mt, ht)), a;
|
|
948
949
|
}, "compileData"), Yr = /* @__PURE__ */ l(function(t, e) {
|
|
949
|
-
let
|
|
950
|
-
e.substr(0, 1) === ":" ?
|
|
951
|
-
const
|
|
952
|
-
Gt(
|
|
953
|
-
for (let
|
|
954
|
-
|
|
955
|
-
switch (
|
|
950
|
+
let i;
|
|
951
|
+
e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
|
|
952
|
+
const s = i.split(","), a = {};
|
|
953
|
+
Gt(s, a, ce);
|
|
954
|
+
for (let h = 0; h < s.length; h++)
|
|
955
|
+
s[h] = s[h].trim();
|
|
956
|
+
switch (s.length) {
|
|
956
957
|
case 1:
|
|
957
958
|
a.id = lt(), a.startTime = {
|
|
958
959
|
type: "prevTaskEnd",
|
|
959
960
|
id: t
|
|
960
961
|
}, a.endTime = {
|
|
961
|
-
data:
|
|
962
|
+
data: s[0]
|
|
962
963
|
};
|
|
963
964
|
break;
|
|
964
965
|
case 2:
|
|
965
966
|
a.id = lt(), a.startTime = {
|
|
966
967
|
type: "getStartDate",
|
|
967
|
-
startData:
|
|
968
|
+
startData: s[0]
|
|
968
969
|
}, a.endTime = {
|
|
969
|
-
data:
|
|
970
|
+
data: s[1]
|
|
970
971
|
};
|
|
971
972
|
break;
|
|
972
973
|
case 3:
|
|
973
|
-
a.id = lt(
|
|
974
|
+
a.id = lt(s[0]), a.startTime = {
|
|
974
975
|
type: "getStartDate",
|
|
975
|
-
startData:
|
|
976
|
+
startData: s[1]
|
|
976
977
|
}, a.endTime = {
|
|
977
|
-
data:
|
|
978
|
+
data: s[2]
|
|
978
979
|
};
|
|
979
980
|
break;
|
|
980
981
|
}
|
|
981
982
|
return a;
|
|
982
983
|
}, "parseData"), Yt, _t, H = [], he = {}, Wr = /* @__PURE__ */ l(function(t, e) {
|
|
983
|
-
const
|
|
984
|
+
const i = {
|
|
984
985
|
section: ut,
|
|
985
986
|
type: ut,
|
|
986
987
|
processed: false,
|
|
@@ -989,95 +990,95 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
989
990
|
raw: { data: e },
|
|
990
991
|
task: t,
|
|
991
992
|
classes: []
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
const a = H.push(
|
|
995
|
-
_t =
|
|
993
|
+
}, s = Yr(_t, e);
|
|
994
|
+
i.raw.startTime = s.startTime, i.raw.endTime = s.endTime, i.id = s.id, i.prevTaskId = _t, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, i.order = Ft, Ft++;
|
|
995
|
+
const a = H.push(i);
|
|
996
|
+
_t = i.id, he[i.id] = a - 1;
|
|
996
997
|
}, "addTask"), it = /* @__PURE__ */ l(function(t) {
|
|
997
998
|
const e = he[t];
|
|
998
999
|
return H[e];
|
|
999
1000
|
}, "findTaskById"), Vr = /* @__PURE__ */ l(function(t, e) {
|
|
1000
|
-
const
|
|
1001
|
+
const i = {
|
|
1001
1002
|
section: ut,
|
|
1002
1003
|
type: ut,
|
|
1003
1004
|
description: t,
|
|
1004
1005
|
task: t,
|
|
1005
1006
|
classes: []
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1007
|
+
}, s = Lr(Yt, e);
|
|
1008
|
+
i.startTime = s.startTime, i.endTime = s.endTime, i.id = s.id, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, Yt = i, St.push(i);
|
|
1008
1009
|
}, "addTaskOrg"), ae = /* @__PURE__ */ l(function() {
|
|
1009
|
-
const t = /* @__PURE__ */ l(function(
|
|
1010
|
-
const
|
|
1010
|
+
const t = /* @__PURE__ */ l(function(i) {
|
|
1011
|
+
const s = H[i];
|
|
1011
1012
|
let a = "";
|
|
1012
|
-
switch (H[
|
|
1013
|
+
switch (H[i].raw.startTime.type) {
|
|
1013
1014
|
case "prevTaskEnd": {
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1015
|
+
const h = it(s.prevTaskId);
|
|
1016
|
+
s.startTime = h.endTime;
|
|
1016
1017
|
break;
|
|
1017
1018
|
}
|
|
1018
1019
|
case "getStartDate":
|
|
1019
|
-
a = Lt(void 0, tt, H[
|
|
1020
|
+
a = Lt(void 0, tt, H[i].raw.startTime.startData), a && (H[i].startTime = a);
|
|
1020
1021
|
break;
|
|
1021
1022
|
}
|
|
1022
|
-
return H[
|
|
1023
|
-
H[
|
|
1023
|
+
return H[i].startTime && (H[i].endTime = fe(
|
|
1024
|
+
H[i].startTime,
|
|
1024
1025
|
tt,
|
|
1025
|
-
H[
|
|
1026
|
+
H[i].raw.endTime.data,
|
|
1026
1027
|
kt
|
|
1027
|
-
), H[
|
|
1028
|
-
H[
|
|
1028
|
+
), H[i].endTime && (H[i].processed = true, H[i].manualEndTime = U(
|
|
1029
|
+
H[i].raw.endTime.data,
|
|
1029
1030
|
"YYYY-MM-DD",
|
|
1030
1031
|
true
|
|
1031
|
-
).isValid(), ue(H[
|
|
1032
|
+
).isValid(), ue(H[i], tt, mt, ht))), H[i].processed;
|
|
1032
1033
|
}, "compileTask");
|
|
1033
1034
|
let e = true;
|
|
1034
|
-
for (const [
|
|
1035
|
-
t(
|
|
1035
|
+
for (const [i, s] of H.entries())
|
|
1036
|
+
t(i), e = e && s.processed;
|
|
1036
1037
|
return e;
|
|
1037
|
-
}, "compileTasks"),
|
|
1038
|
-
let
|
|
1039
|
-
ct().securityLevel !== "loose" && (
|
|
1040
|
-
it(
|
|
1041
|
-
window.open(
|
|
1042
|
-
}),
|
|
1038
|
+
}, "compileTasks"), Or = /* @__PURE__ */ l(function(t, e) {
|
|
1039
|
+
let i = e;
|
|
1040
|
+
ct().securityLevel !== "loose" && (i = _e.sanitizeUrl(e)), t.split(",").forEach(function(s) {
|
|
1041
|
+
it(s) !== void 0 && (ke(s, () => {
|
|
1042
|
+
window.open(i, "_self");
|
|
1043
|
+
}), zt.set(s, i));
|
|
1043
1044
|
}), me(t, "clickable");
|
|
1044
1045
|
}, "setLink"), me = /* @__PURE__ */ l(function(t, e) {
|
|
1045
|
-
t.split(",").forEach(function(
|
|
1046
|
-
let
|
|
1047
|
-
|
|
1046
|
+
t.split(",").forEach(function(i) {
|
|
1047
|
+
let s = it(i);
|
|
1048
|
+
s !== void 0 && s.classes.push(e);
|
|
1048
1049
|
});
|
|
1049
|
-
}, "setClass"),
|
|
1050
|
+
}, "setClass"), Pr = /* @__PURE__ */ l(function(t, e, i) {
|
|
1050
1051
|
if (ct().securityLevel !== "loose" || e === void 0)
|
|
1051
1052
|
return;
|
|
1052
|
-
let
|
|
1053
|
-
if (typeof
|
|
1054
|
-
|
|
1055
|
-
for (let
|
|
1056
|
-
let
|
|
1057
|
-
|
|
1053
|
+
let s = [];
|
|
1054
|
+
if (typeof i == "string") {
|
|
1055
|
+
s = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1056
|
+
for (let h = 0; h < s.length; h++) {
|
|
1057
|
+
let u = s[h].trim();
|
|
1058
|
+
u.startsWith('"') && u.endsWith('"') && (u = u.substr(1, u.length - 2)), s[h] = u;
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1061
|
+
s.length === 0 && s.push(t), it(t) !== void 0 && ke(t, () => {
|
|
1062
|
+
Se.runFunc(e, ...s);
|
|
1062
1063
|
});
|
|
1063
1064
|
}, "setClickFun"), ke = /* @__PURE__ */ l(function(t, e) {
|
|
1064
1065
|
Bt.push(
|
|
1065
1066
|
function() {
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1067
|
+
const i = document.querySelector(`[id="${t}"]`);
|
|
1068
|
+
i !== null && i.addEventListener("click", function() {
|
|
1068
1069
|
e();
|
|
1069
1070
|
});
|
|
1070
1071
|
},
|
|
1071
1072
|
function() {
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1073
|
+
const i = document.querySelector(`[id="${t}-text"]`);
|
|
1074
|
+
i !== null && i.addEventListener("click", function() {
|
|
1074
1075
|
e();
|
|
1075
1076
|
});
|
|
1076
1077
|
}
|
|
1077
1078
|
);
|
|
1078
|
-
}, "pushFun"),
|
|
1079
|
-
t.split(",").forEach(function(
|
|
1080
|
-
|
|
1079
|
+
}, "pushFun"), zr = /* @__PURE__ */ l(function(t, e, i) {
|
|
1080
|
+
t.split(",").forEach(function(s) {
|
|
1081
|
+
Pr(s, e, i);
|
|
1081
1082
|
}), me(t, "clickable");
|
|
1082
1083
|
}, "setClickEvent"), Rr = /* @__PURE__ */ l(function(t) {
|
|
1083
1084
|
Bt.forEach(function(e) {
|
|
@@ -1106,8 +1107,8 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1106
1107
|
getDisplayMode: vr,
|
|
1107
1108
|
setAccDescription: ge,
|
|
1108
1109
|
getAccDescription: ye,
|
|
1109
|
-
addSection:
|
|
1110
|
-
getSections:
|
|
1110
|
+
addSection: Sr,
|
|
1111
|
+
getSections: Cr,
|
|
1111
1112
|
getTasks: Er,
|
|
1112
1113
|
addTask: Wr,
|
|
1113
1114
|
findTaskById: it,
|
|
@@ -1116,8 +1117,8 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1116
1117
|
getIncludes: br,
|
|
1117
1118
|
setExcludes: wr,
|
|
1118
1119
|
getExcludes: _r,
|
|
1119
|
-
setClickEvent:
|
|
1120
|
-
setLink:
|
|
1120
|
+
setClickEvent: zr,
|
|
1121
|
+
setLink: Or,
|
|
1121
1122
|
getLinks: Dr,
|
|
1122
1123
|
bindFunctions: Rr,
|
|
1123
1124
|
parseDuration: de,
|
|
@@ -1126,12 +1127,12 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
|
|
|
1126
1127
|
getWeekday: Ar,
|
|
1127
1128
|
setWeekend: Ir
|
|
1128
1129
|
};
|
|
1129
|
-
function Gt(t, e,
|
|
1130
|
-
let
|
|
1131
|
-
for (;
|
|
1132
|
-
|
|
1133
|
-
const
|
|
1134
|
-
t[0].match(
|
|
1130
|
+
function Gt(t, e, i) {
|
|
1131
|
+
let s = true;
|
|
1132
|
+
for (; s; )
|
|
1133
|
+
s = false, i.forEach(function(a) {
|
|
1134
|
+
const h = "^\\s*" + a + "\\s*$", u = new RegExp(h);
|
|
1135
|
+
t[0].match(u) && (e[a] = true, t.shift(1), s = true);
|
|
1135
1136
|
});
|
|
1136
1137
|
}
|
|
1137
1138
|
l(Gt, "getTaskTags");
|
|
@@ -1144,282 +1145,278 @@ var Br = /* @__PURE__ */ l(function() {
|
|
|
1144
1145
|
thursday: Ae,
|
|
1145
1146
|
friday: Me,
|
|
1146
1147
|
saturday: Ee,
|
|
1147
|
-
sunday:
|
|
1148
|
+
sunday: Ce
|
|
1148
1149
|
}, Hr = /* @__PURE__ */ l((t, e) => {
|
|
1149
|
-
let
|
|
1150
|
-
for (const
|
|
1151
|
-
for (let
|
|
1152
|
-
if (
|
|
1153
|
-
|
|
1150
|
+
let i = [...t].map(() => -1 / 0), s = [...t].sort((h, u) => h.startTime - u.startTime || h.order - u.order), a = 0;
|
|
1151
|
+
for (const h of s)
|
|
1152
|
+
for (let u = 0; u < i.length; u++)
|
|
1153
|
+
if (h.startTime >= i[u]) {
|
|
1154
|
+
i[u] = h.endTime, h.order = u + e, u > a && (a = u);
|
|
1154
1155
|
break;
|
|
1155
1156
|
}
|
|
1156
1157
|
return a;
|
|
1157
|
-
}, "getMaxIntersections"), et, qr = /* @__PURE__ */ l(function(t, e,
|
|
1158
|
-
const a = ct().gantt,
|
|
1159
|
-
let
|
|
1160
|
-
|
|
1161
|
-
const D =
|
|
1162
|
-
et =
|
|
1163
|
-
const
|
|
1158
|
+
}, "getMaxIntersections"), et, qr = /* @__PURE__ */ l(function(t, e, i, s) {
|
|
1159
|
+
const a = ct().gantt, h = ct().securityLevel;
|
|
1160
|
+
let u;
|
|
1161
|
+
h === "sandbox" && (u = gt("#i" + e));
|
|
1162
|
+
const D = h === "sandbox" ? gt(u.nodes()[0].contentDocument.body) : gt("body"), E = h === "sandbox" ? u.nodes()[0].contentDocument : document, C = E.getElementById(e);
|
|
1163
|
+
et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
|
|
1164
|
+
const p = s.db.getTasks();
|
|
1164
1165
|
let F = [];
|
|
1165
|
-
for (const
|
|
1166
|
-
F.push(
|
|
1167
|
-
F =
|
|
1168
|
-
const
|
|
1169
|
-
let
|
|
1170
|
-
if (
|
|
1171
|
-
const
|
|
1172
|
-
for (const
|
|
1173
|
-
|
|
1174
|
-
let
|
|
1175
|
-
for (const
|
|
1176
|
-
const
|
|
1177
|
-
|
|
1166
|
+
for (const g of p)
|
|
1167
|
+
F.push(g.type);
|
|
1168
|
+
F = P(F);
|
|
1169
|
+
const S = {};
|
|
1170
|
+
let x = 2 * a.topPadding;
|
|
1171
|
+
if (s.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
|
|
1172
|
+
const g = {};
|
|
1173
|
+
for (const b of p)
|
|
1174
|
+
g[b.section] === void 0 ? g[b.section] = [b] : g[b.section].push(b);
|
|
1175
|
+
let w = 0;
|
|
1176
|
+
for (const b of Object.keys(g)) {
|
|
1177
|
+
const v = Hr(g[b], w) + 1;
|
|
1178
|
+
w += v, x += v * (a.barHeight + a.barGap), S[b] = v;
|
|
1178
1179
|
}
|
|
1179
1180
|
} else {
|
|
1180
|
-
|
|
1181
|
-
for (const
|
|
1182
|
-
|
|
1181
|
+
x += p.length * (a.barHeight + a.barGap);
|
|
1182
|
+
for (const g of F)
|
|
1183
|
+
S[g] = p.filter((w) => w.type === g).length;
|
|
1183
1184
|
}
|
|
1184
|
-
|
|
1185
|
+
C.setAttribute("viewBox", "0 0 " + et + " " + x);
|
|
1185
1186
|
const q = D.select(`[id="${e}"]`), A = Ye().domain([
|
|
1186
|
-
We(
|
|
1187
|
-
return
|
|
1187
|
+
We(p, function(g) {
|
|
1188
|
+
return g.startTime;
|
|
1188
1189
|
}),
|
|
1189
|
-
Ve(
|
|
1190
|
-
return
|
|
1190
|
+
Ve(p, function(g) {
|
|
1191
|
+
return g.endTime;
|
|
1191
1192
|
})
|
|
1192
1193
|
]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
|
|
1193
|
-
function
|
|
1194
|
-
const
|
|
1194
|
+
function T(g, w) {
|
|
1195
|
+
const b = g.startTime, v = w.startTime;
|
|
1195
1196
|
let m = 0;
|
|
1196
|
-
return
|
|
1197
|
+
return b > v ? m = 1 : b < v && (m = -1), m;
|
|
1197
1198
|
}
|
|
1198
|
-
l(
|
|
1199
|
-
function M(
|
|
1200
|
-
const
|
|
1199
|
+
l(T, "taskCompare"), p.sort(T), M(p, et, x), be(q, x, et, a.useMaxWidth), q.append("text").text(s.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
|
|
1200
|
+
function M(g, w, b) {
|
|
1201
|
+
const v = a.barHeight, m = v + a.barGap, _ = a.topPadding, c = a.leftPadding, f = Pe().domain([0, F.length]).range(["#00B9FA", "#F95002"]).interpolate(Oe);
|
|
1201
1202
|
Y(
|
|
1202
1203
|
m,
|
|
1203
|
-
|
|
1204
|
+
_,
|
|
1204
1205
|
c,
|
|
1206
|
+
w,
|
|
1205
1207
|
b,
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
), N(c, w, b, T), L(y, m, w, c, p, u, b), R(m, w), G(c, w, b, T);
|
|
1208
|
+
g,
|
|
1209
|
+
s.db.getExcludes(),
|
|
1210
|
+
s.db.getIncludes()
|
|
1211
|
+
), N(c, _, w, b), L(g, m, _, c, v, f, w), R(m, _), G(c, _, w, b);
|
|
1211
1212
|
}
|
|
1212
1213
|
l(M, "makeGantt");
|
|
1213
|
-
function L(
|
|
1214
|
-
|
|
1215
|
-
const
|
|
1216
|
-
q.append("g").selectAll("rect").data(
|
|
1217
|
-
return r = o.order, r *
|
|
1214
|
+
function L(g, w, b, v, m, _, c) {
|
|
1215
|
+
g.sort((o, r) => o.vert === r.vert ? 0 : o.vert ? 1 : -1);
|
|
1216
|
+
const k = [...new Set(g.map((o) => o.order))].map((o) => g.find((r) => r.order === o));
|
|
1217
|
+
q.append("g").selectAll("rect").data(k).enter().append("rect").attr("x", 0).attr("y", function(o, r) {
|
|
1218
|
+
return r = o.order, r * w + b - 2;
|
|
1218
1219
|
}).attr("width", function() {
|
|
1219
1220
|
return c - a.rightPadding / 2;
|
|
1220
|
-
}).attr("height",
|
|
1221
|
-
for (const [r,
|
|
1222
|
-
if (o.type ===
|
|
1221
|
+
}).attr("height", w).attr("class", function(o) {
|
|
1222
|
+
for (const [r, W] of F.entries())
|
|
1223
|
+
if (o.type === W)
|
|
1223
1224
|
return "section section" + r % a.numberSectionStyles;
|
|
1224
1225
|
return "section section0";
|
|
1225
1226
|
}).enter();
|
|
1226
|
-
const
|
|
1227
|
-
if (
|
|
1227
|
+
const d = q.append("g").selectAll("rect").data(g).enter(), y = s.db.getLinks();
|
|
1228
|
+
if (d.append("rect").attr("id", function(o) {
|
|
1228
1229
|
return o.id;
|
|
1229
1230
|
}).attr("rx", 3).attr("ry", 3).attr("x", function(o) {
|
|
1230
|
-
return o.milestone ? A(o.startTime) +
|
|
1231
|
+
return o.milestone ? A(o.startTime) + v + 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m : A(o.startTime) + v;
|
|
1231
1232
|
}).attr("y", function(o, r) {
|
|
1232
|
-
return r = o.order, o.vert ? a.gridLineStartPadding : r *
|
|
1233
|
+
return r = o.order, o.vert ? a.gridLineStartPadding : r * w + b;
|
|
1233
1234
|
}).attr("width", function(o) {
|
|
1234
1235
|
return o.milestone ? m : o.vert ? 0.08 * m : A(o.renderEndTime || o.endTime) - A(o.startTime);
|
|
1235
1236
|
}).attr("height", function(o) {
|
|
1236
|
-
return o.vert ?
|
|
1237
|
+
return o.vert ? p.length * (a.barHeight + a.barGap) + a.barHeight * 2 : m;
|
|
1237
1238
|
}).attr("transform-origin", function(o, r) {
|
|
1238
|
-
return r = o.order, (A(o.startTime) +
|
|
1239
|
+
return r = o.order, (A(o.startTime) + v + 0.5 * (A(o.endTime) - A(o.startTime))).toString() + "px " + (r * w + b + 0.5 * m).toString() + "px";
|
|
1239
1240
|
}).attr("class", function(o) {
|
|
1240
1241
|
const r = "task";
|
|
1241
|
-
let V = "";
|
|
1242
|
-
o.classes.length > 0 && (V = o.classes.join(" "));
|
|
1243
|
-
let I = 0;
|
|
1244
|
-
for (const [X, P] of F.entries())
|
|
1245
|
-
o.type === P && (I = X % a.numberSectionStyles);
|
|
1246
1242
|
let W = "";
|
|
1247
|
-
|
|
1248
|
-
|
|
1243
|
+
o.classes.length > 0 && (W = o.classes.join(" "));
|
|
1244
|
+
let I = 0;
|
|
1245
|
+
for (const [X, O] of F.entries())
|
|
1246
|
+
o.type === O && (I = X % a.numberSectionStyles);
|
|
1247
|
+
let V = "";
|
|
1248
|
+
return o.active ? o.crit ? V += " activeCrit" : V = " active" : o.done ? o.crit ? V = " doneCrit" : V = " done" : o.crit && (V += " crit"), V.length === 0 && (V = " task"), o.milestone && (V = " milestone " + V), o.vert && (V = " vert " + V), V += I, V += " " + W, r + V;
|
|
1249
|
+
}), d.append("text").attr("id", function(o) {
|
|
1249
1250
|
return o.id + "-text";
|
|
1250
1251
|
}).text(function(o) {
|
|
1251
1252
|
return o.task;
|
|
1252
1253
|
}).attr("font-size", a.fontSize).attr("x", function(o) {
|
|
1253
|
-
let r = A(o.startTime),
|
|
1254
|
-
if (o.milestone && (r += 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m,
|
|
1255
|
-
return A(o.startTime) +
|
|
1254
|
+
let r = A(o.startTime), W = A(o.renderEndTime || o.endTime);
|
|
1255
|
+
if (o.milestone && (r += 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m, W = r + m), o.vert)
|
|
1256
|
+
return A(o.startTime) + v;
|
|
1256
1257
|
const I = this.getBBox().width;
|
|
1257
|
-
return I >
|
|
1258
|
+
return I > W - r ? W + I + 1.5 * a.leftPadding > c ? r + v - 5 : W + v + 5 : (W - r) / 2 + r + v;
|
|
1258
1259
|
}).attr("y", function(o, r) {
|
|
1259
|
-
return o.vert ? a.gridLineStartPadding +
|
|
1260
|
+
return o.vert ? a.gridLineStartPadding + p.length * (a.barHeight + a.barGap) + 60 : (r = o.order, r * w + a.barHeight / 2 + (a.fontSize / 2 - 2) + b);
|
|
1260
1261
|
}).attr("text-height", m).attr("class", function(o) {
|
|
1261
1262
|
const r = A(o.startTime);
|
|
1262
|
-
let
|
|
1263
|
-
o.milestone && (
|
|
1263
|
+
let W = A(o.endTime);
|
|
1264
|
+
o.milestone && (W = r + m);
|
|
1264
1265
|
const I = this.getBBox().width;
|
|
1265
|
-
let
|
|
1266
|
-
o.classes.length > 0 && (
|
|
1266
|
+
let V = "";
|
|
1267
|
+
o.classes.length > 0 && (V = o.classes.join(" "));
|
|
1267
1268
|
let X = 0;
|
|
1268
|
-
for (const [
|
|
1269
|
-
o.type === Q && (X =
|
|
1270
|
-
let
|
|
1271
|
-
return o.active && (o.crit ?
|
|
1269
|
+
for (const [z, Q] of F.entries())
|
|
1270
|
+
o.type === Q && (X = z % a.numberSectionStyles);
|
|
1271
|
+
let O = "";
|
|
1272
|
+
return o.active && (o.crit ? O = "activeCritText" + X : O = "activeText" + X), o.done ? o.crit ? O = O + " doneCritText" + X : O = O + " doneText" + X : o.crit && (O = O + " critText" + X), o.milestone && (O += " milestoneText"), o.vert && (O += " vertText"), I > W - r ? W + I + 1.5 * a.leftPadding > c ? V + " taskTextOutsideLeft taskTextOutside" + X + " " + O : V + " taskTextOutsideRight taskTextOutside" + X + " " + O + " width-" + I : V + " taskText taskText" + X + " " + O + " width-" + I;
|
|
1272
1273
|
}), ct().securityLevel === "sandbox") {
|
|
1273
1274
|
let o;
|
|
1274
1275
|
o = gt("#i" + e);
|
|
1275
1276
|
const r = o.nodes()[0].contentDocument;
|
|
1276
|
-
|
|
1277
|
-
return
|
|
1278
|
-
}).each(function(
|
|
1279
|
-
var I = r.querySelector("#" +
|
|
1277
|
+
d.filter(function(W) {
|
|
1278
|
+
return y.has(W.id);
|
|
1279
|
+
}).each(function(W) {
|
|
1280
|
+
var I = r.querySelector("#" + W.id), V = r.querySelector("#" + W.id + "-text");
|
|
1280
1281
|
const X = I.parentNode;
|
|
1281
|
-
var
|
|
1282
|
-
|
|
1282
|
+
var O = r.createElement("a");
|
|
1283
|
+
O.setAttribute("xlink:href", y.get(W.id)), O.setAttribute("target", "_top"), X.appendChild(O), O.appendChild(I), O.appendChild(V);
|
|
1283
1284
|
});
|
|
1284
1285
|
}
|
|
1285
1286
|
}
|
|
1286
1287
|
l(L, "drawRects");
|
|
1287
|
-
function Y(
|
|
1288
|
-
if (c.length === 0 &&
|
|
1288
|
+
function Y(g, w, b, v, m, _, c, f) {
|
|
1289
|
+
if (c.length === 0 && f.length === 0)
|
|
1289
1290
|
return;
|
|
1290
|
-
let
|
|
1291
|
-
for (const { startTime: I, endTime:
|
|
1292
|
-
(
|
|
1293
|
-
if (!
|
|
1291
|
+
let k, d;
|
|
1292
|
+
for (const { startTime: I, endTime: V } of _)
|
|
1293
|
+
(k === void 0 || I < k) && (k = I), (d === void 0 || V > d) && (d = V);
|
|
1294
|
+
if (!k || !d)
|
|
1294
1295
|
return;
|
|
1295
|
-
if (U(
|
|
1296
|
+
if (U(d).diff(U(k), "year") > 5) {
|
|
1296
1297
|
Dt.warn(
|
|
1297
1298
|
"The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
|
|
1298
1299
|
);
|
|
1299
1300
|
return;
|
|
1300
1301
|
}
|
|
1301
|
-
const
|
|
1302
|
-
let o = null, r = U(
|
|
1303
|
-
for (; r.valueOf() <=
|
|
1304
|
-
|
|
1302
|
+
const y = s.db.getDateFormat(), n = [];
|
|
1303
|
+
let o = null, r = U(k);
|
|
1304
|
+
for (; r.valueOf() <= d; )
|
|
1305
|
+
s.db.isInvalidDate(r, y, c, f) ? o ? o.end = r : o = {
|
|
1305
1306
|
start: r,
|
|
1306
1307
|
end: r
|
|
1307
|
-
} : o && (
|
|
1308
|
-
q.append("g").selectAll("rect").data(
|
|
1309
|
-
return
|
|
1310
|
-
}).attr("x", function(I) {
|
|
1311
|
-
return A(I.start) + T;
|
|
1312
|
-
}).attr("y", a.gridLineStartPadding).attr("width", function(I) {
|
|
1313
|
-
const W = I.end.add(1, "day");
|
|
1314
|
-
return A(W) - A(I.start);
|
|
1315
|
-
}).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(I, W) {
|
|
1316
|
-
return (A(I.start) + T + 0.5 * (A(I.end) - A(I.start))).toString() + "px " + (W * y + 0.5 * m).toString() + "px";
|
|
1308
|
+
} : o && (n.push(o), o = null), r = r.add(1, "d");
|
|
1309
|
+
q.append("g").selectAll("rect").data(n).enter().append("rect").attr("id", (I) => "exclude-" + I.start.format("YYYY-MM-DD")).attr("x", (I) => A(I.start.startOf("day")) + b).attr("y", a.gridLineStartPadding).attr("width", (I) => A(I.end.endOf("day")) - A(I.start.startOf("day"))).attr("height", m - w - a.gridLineStartPadding).attr("transform-origin", function(I, V) {
|
|
1310
|
+
return (A(I.start) + b + 0.5 * (A(I.end) - A(I.start))).toString() + "px " + (V * g + 0.5 * m).toString() + "px";
|
|
1317
1311
|
}).attr("class", "exclude-range");
|
|
1318
1312
|
}
|
|
1319
1313
|
l(Y, "drawExcludeDays");
|
|
1320
|
-
function N(
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1314
|
+
function N(g, w, b, v) {
|
|
1315
|
+
const m = s.db.getDateFormat(), _ = s.db.getAxisFormat();
|
|
1316
|
+
let c;
|
|
1317
|
+
_ ? c = _ : m === "D" ? c = "%d" : c = a.axisFormat ?? "%Y-%m-%d";
|
|
1318
|
+
let f = Xe(A).tickSize(-v + w + a.gridLineStartPadding).tickFormat(jt(c));
|
|
1319
|
+
const d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
|
|
1320
|
+
s.db.getTickInterval() || a.tickInterval
|
|
1324
1321
|
);
|
|
1325
|
-
if (
|
|
1326
|
-
const
|
|
1327
|
-
switch (
|
|
1322
|
+
if (d !== null) {
|
|
1323
|
+
const y = d[1], n = d[2], o = s.db.getWeekday() || a.weekday;
|
|
1324
|
+
switch (n) {
|
|
1328
1325
|
case "millisecond":
|
|
1329
|
-
|
|
1326
|
+
f.ticks(Jt.every(y));
|
|
1330
1327
|
break;
|
|
1331
1328
|
case "second":
|
|
1332
|
-
|
|
1329
|
+
f.ticks(Kt.every(y));
|
|
1333
1330
|
break;
|
|
1334
1331
|
case "minute":
|
|
1335
|
-
|
|
1332
|
+
f.ticks(Qt.every(y));
|
|
1336
1333
|
break;
|
|
1337
1334
|
case "hour":
|
|
1338
|
-
|
|
1335
|
+
f.ticks($t.every(y));
|
|
1339
1336
|
break;
|
|
1340
1337
|
case "day":
|
|
1341
|
-
|
|
1338
|
+
f.ticks(Zt.every(y));
|
|
1342
1339
|
break;
|
|
1343
1340
|
case "week":
|
|
1344
|
-
|
|
1341
|
+
f.ticks(se[o].every(y));
|
|
1345
1342
|
break;
|
|
1346
1343
|
case "month":
|
|
1347
|
-
|
|
1344
|
+
f.ticks(Ut.every(y));
|
|
1348
1345
|
break;
|
|
1349
1346
|
}
|
|
1350
1347
|
}
|
|
1351
|
-
if (q.append("g").attr("class", "grid").attr("transform", "translate(" +
|
|
1352
|
-
let
|
|
1353
|
-
if (
|
|
1354
|
-
const
|
|
1355
|
-
switch (
|
|
1348
|
+
if (q.append("g").attr("class", "grid").attr("transform", "translate(" + g + ", " + (v - 50) + ")").call(f).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), s.db.topAxisEnabled() || a.topAxis) {
|
|
1349
|
+
let y = Ge(A).tickSize(-v + w + a.gridLineStartPadding).tickFormat(jt(c));
|
|
1350
|
+
if (d !== null) {
|
|
1351
|
+
const n = d[1], o = d[2], r = s.db.getWeekday() || a.weekday;
|
|
1352
|
+
switch (o) {
|
|
1356
1353
|
case "millisecond":
|
|
1357
|
-
|
|
1354
|
+
y.ticks(Jt.every(n));
|
|
1358
1355
|
break;
|
|
1359
1356
|
case "second":
|
|
1360
|
-
|
|
1357
|
+
y.ticks(Kt.every(n));
|
|
1361
1358
|
break;
|
|
1362
1359
|
case "minute":
|
|
1363
|
-
|
|
1360
|
+
y.ticks(Qt.every(n));
|
|
1364
1361
|
break;
|
|
1365
1362
|
case "hour":
|
|
1366
|
-
|
|
1363
|
+
y.ticks($t.every(n));
|
|
1367
1364
|
break;
|
|
1368
1365
|
case "day":
|
|
1369
|
-
|
|
1366
|
+
y.ticks(Zt.every(n));
|
|
1370
1367
|
break;
|
|
1371
1368
|
case "week":
|
|
1372
|
-
|
|
1369
|
+
y.ticks(se[r].every(n));
|
|
1373
1370
|
break;
|
|
1374
1371
|
case "month":
|
|
1375
|
-
|
|
1372
|
+
y.ticks(Ut.every(n));
|
|
1376
1373
|
break;
|
|
1377
1374
|
}
|
|
1378
1375
|
}
|
|
1379
|
-
q.append("g").attr("class", "grid").attr("transform", "translate(" +
|
|
1376
|
+
q.append("g").attr("class", "grid").attr("transform", "translate(" + g + ", " + w + ")").call(y).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
|
1380
1377
|
}
|
|
1381
1378
|
}
|
|
1382
1379
|
l(N, "makeGrid");
|
|
1383
|
-
function R(
|
|
1384
|
-
let
|
|
1385
|
-
const
|
|
1386
|
-
q.append("g").selectAll("text").data(
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
for (const [
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1380
|
+
function R(g, w) {
|
|
1381
|
+
let b = 0;
|
|
1382
|
+
const v = Object.keys(S).map((m) => [m, S[m]]);
|
|
1383
|
+
q.append("g").selectAll("text").data(v).enter().append(function(m) {
|
|
1384
|
+
const _ = m[0].split(we.lineBreakRegex), c = -(_.length - 1) / 2, f = E.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1385
|
+
f.setAttribute("dy", c + "em");
|
|
1386
|
+
for (const [k, d] of _.entries()) {
|
|
1387
|
+
const y = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1388
|
+
y.setAttribute("alignment-baseline", "central"), y.setAttribute("x", "10"), k > 0 && y.setAttribute("dy", "1em"), y.textContent = d, f.appendChild(y);
|
|
1392
1389
|
}
|
|
1393
|
-
return
|
|
1394
|
-
}).attr("x", 10).attr("y", function(m,
|
|
1395
|
-
if (
|
|
1396
|
-
for (let c = 0; c <
|
|
1397
|
-
return
|
|
1390
|
+
return f;
|
|
1391
|
+
}).attr("x", 10).attr("y", function(m, _) {
|
|
1392
|
+
if (_ > 0)
|
|
1393
|
+
for (let c = 0; c < _; c++)
|
|
1394
|
+
return b += v[_ - 1][1], m[1] * g / 2 + b * g + w;
|
|
1398
1395
|
else
|
|
1399
|
-
return m[1] *
|
|
1396
|
+
return m[1] * g / 2 + w;
|
|
1400
1397
|
}).attr("font-size", a.sectionFontSize).attr("class", function(m) {
|
|
1401
|
-
for (const [
|
|
1398
|
+
for (const [_, c] of F.entries())
|
|
1402
1399
|
if (m[0] === c)
|
|
1403
|
-
return "sectionTitle sectionTitle" +
|
|
1400
|
+
return "sectionTitle sectionTitle" + _ % a.numberSectionStyles;
|
|
1404
1401
|
return "sectionTitle";
|
|
1405
1402
|
});
|
|
1406
1403
|
}
|
|
1407
1404
|
l(R, "vertLabels");
|
|
1408
|
-
function G(
|
|
1409
|
-
const m =
|
|
1405
|
+
function G(g, w, b, v) {
|
|
1406
|
+
const m = s.db.getTodayMarker();
|
|
1410
1407
|
if (m === "off")
|
|
1411
1408
|
return;
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1409
|
+
const _ = q.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), f = _.append("line");
|
|
1410
|
+
f.attr("x1", A(c) + g).attr("x2", A(c) + g).attr("y1", a.titleTopMargin).attr("y2", v - a.titleTopMargin).attr("class", "today"), m !== "" && f.attr("style", m.replace(/,/g, ";"));
|
|
1414
1411
|
}
|
|
1415
1412
|
l(G, "drawToday");
|
|
1416
|
-
function
|
|
1417
|
-
const
|
|
1418
|
-
for (let
|
|
1419
|
-
Object.prototype.hasOwnProperty.call(
|
|
1420
|
-
return
|
|
1413
|
+
function P(g) {
|
|
1414
|
+
const w = {}, b = [];
|
|
1415
|
+
for (let v = 0, m = g.length; v < m; ++v)
|
|
1416
|
+
Object.prototype.hasOwnProperty.call(w, g[v]) || (w[g[v]] = true, b.push(g[v]));
|
|
1417
|
+
return b;
|
|
1421
1418
|
}
|
|
1422
|
-
l(
|
|
1419
|
+
l(P, "checkUnique");
|
|
1423
1420
|
}, "draw"), Gr = {
|
|
1424
1421
|
setConf: Br,
|
|
1425
1422
|
draw: qr
|