reactive-md 0.8.0 → 0.9.1
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/CHANGELOG-ch.md +54 -4
- package/CHANGELOG.md +55 -4
- package/CONTRIBUTING-ch.md +13 -2
- package/CONTRIBUTING.md +13 -2
- package/README-ch.md +132 -23
- package/README-en.md +130 -21
- package/README.md +128 -21
- package/SECURITY-ch.md +3 -3
- package/SECURITY.md +3 -3
- package/THIRD_PARTY_NOTICES.md +111 -1
- package/cli/args.mjs +51 -1
- package/cli/assets.mjs +6 -1
- package/cli/build.mjs +125 -9
- package/cli/fs-utils.mjs +3 -3
- package/cli/help.mjs +12 -5
- package/cli/init.mjs +1 -1
- package/cli/package.mjs +1 -0
- package/dist-library/LocalDocumentView-sthUP0ct.js +109 -0
- package/dist-library/LocalDocumentViewCore-GiWV3bey.js +9829 -0
- package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +275 -0
- package/dist-library/{authoring-BsfSwQRm.js → authoring-Dsune4Hy.js} +240 -218
- package/dist-library/compile-wUv8KEge.js +1249 -0
- package/dist-library/{compiler-core-kPiH-gOV.js → compiler-core-As_m-MNm.js} +5372 -5559
- package/dist-library/compiler-eOfcinZs.js +62 -0
- package/dist-library/component-state-BoLCGee4.js +801 -0
- package/dist-library/{component-state-D_cw_EHe.js → component-state-C52ZFJGl.js} +2 -2
- package/dist-library/{registry-B9Jc3FVe.js → config-BadfhjdP.js} +374 -457
- package/dist-library/{config-validation-DXTynAw7.js → config-validation-F47AcE6o.js} +549 -751
- package/dist-library/controls-CcT6n7k_.js +6740 -0
- package/dist-library/coordinate-CWS9p5q_.js +293 -0
- package/dist-library/data-table-Bgccxd7h.js +296 -0
- package/dist-library/{default-components-Z_YMio5P.js → default-components-BwQf0oP-.js} +344 -334
- package/dist-library/{math-display-BJz4gbFc.js → display-B-VhqVND.js} +1299 -1299
- package/dist-library/export-BqVmTXm8.js +369 -0
- package/dist-library/gallery-CY6mTx8i.js +360 -0
- package/dist-library/html-CNT4KD-2.js +757 -0
- package/dist-library/{math-sample-BGEW49zY.js → incremental-Dv0FSp_U.js} +476 -394
- package/dist-library/latex-1w7aQgD5.js +928 -0
- package/dist-library/layout-C0YlEPGr.js +562 -0
- package/dist-library/mount-preset-KxvtKgJb.js +13 -0
- package/dist-library/options-1aDLK7JY.js +121 -0
- package/dist-library/{react-ByOHunUW.js → package-core-WFK1RhAZ.js} +49 -55
- package/dist-library/{parser-standard-DlCk7sLo.js → parser-standard-Yuf3A_VI.js} +6605 -7097
- package/dist-library/plugin-packs-B1XPWcFs.js +18 -0
- package/dist-library/{identity-MYJXKSkB.js → preset-core-CKc5YXSM.js} +31 -31
- package/dist-library/{props-DGlBk0e5.js → props-sJ8vk0cr.js} +1 -1
- package/dist-library/react-BbyAgeXc.js +6070 -0
- package/dist-library/react-D5iGiUdL.js +7 -0
- package/dist-library/reactive-md-authoring.js +222 -223
- package/dist-library/reactive-md-build.js +126 -72
- package/dist-library/reactive-md-compiler-standard.js +12 -10
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-default-packs.js +2 -2
- package/dist-library/reactive-md-default-preset.js +4 -4
- package/dist-library/reactive-md-export-assets.js +57 -0
- package/dist-library/reactive-md-export.js +5 -111
- package/dist-library/reactive-md-minimal-preset.js +24 -0
- package/dist-library/reactive-md-minimal-react-preset.js +26 -0
- package/dist-library/reactive-md-minimal-styles.js +80 -0
- package/dist-library/reactive-md-minimal.css +2 -0
- package/dist-library/reactive-md-pdf.js +7582 -0
- package/dist-library/reactive-md-plugin-chart.js +13 -0
- package/dist-library/reactive-md-plugin-data.js +17 -0
- package/dist-library/reactive-md-plugin-diagram.js +18 -0
- package/dist-library/reactive-md-plugin-forms.js +18 -0
- package/dist-library/reactive-md-plugin-gallery.js +12 -0
- package/dist-library/reactive-md-plugin-navigation.js +15 -0
- package/dist-library/reactive-md-plugin-network.js +222 -0
- package/dist-library/reactive-md-plugin-plot.js +24 -0
- package/dist-library/reactive-md-print.css +5 -0
- package/dist-library/reactive-md-react-minimal.js +28 -0
- package/dist-library/reactive-md-react-server.js +34 -32
- package/dist-library/reactive-md-react-unstyled.js +14 -9
- package/dist-library/reactive-md-react.js +14 -9
- package/dist-library/reactive-md-runtime-browser.js +847 -15
- package/dist-library/reactive-md-runtime.js +3 -3
- package/dist-library/reactive-md-sdk.js +8 -6
- package/dist-library/reactive-md-standalone-configured.js +16 -0
- package/dist-library/reactive-md-standalone-host.js +9 -438
- package/dist-library/reactive-md-testing-browser.js +5 -4
- package/dist-library/reactive-md-testing-react.js +46 -44
- package/dist-library/reactive-md-testing.js +45 -44
- package/dist-library/reactive-md-vite.js +135 -37
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +590 -498
- package/dist-library/registry-B9NGct4d.js +20 -0
- package/dist-library/registry-core-Bbad9Bm2.js +479 -0
- package/dist-library/{resources-BGt8mpDA.js → resources-D2GDQS0p.js} +45 -45
- package/dist-library/{runtime-Dkq7ldyg.js → runtime-B2fxeveq.js} +1 -1
- package/dist-library/runtime-kcA7bG7G.js +1282 -0
- package/dist-library/sample-bP4zHB3L.js +289 -0
- package/dist-library/{schema-ZFufO8V0.js → schema-BufhKUSM.js} +12 -11
- package/dist-library/sdk-core-BoJT1SIt.js +1166 -0
- package/dist-library/session-core-nmJHuR9c.js +452 -0
- package/dist-library/{shareable-DDVL4Fi9.js → shareable-DpbE-59H.js} +250 -283
- package/dist-library/tooltip-layer-HDLrSWs0.js +28 -0
- package/dist-library/types/authoring/catalog.d.ts +2 -3
- package/dist-library/types/authoring/editor-i18n.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +1 -1
- package/dist-library/types/authoring/insert.d.ts +1 -1
- package/dist-library/types/authoring/templates.d.ts +2 -2
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/build/host.d.ts +1 -1
- package/dist-library/types/build/index.d.ts +1 -1
- package/dist-library/types/build/notices.d.ts +1 -1
- package/dist-library/types/build/resources.d.ts +1 -1
- package/dist-library/types/build/vite.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +2 -2
- package/dist-library/types/compiler/result.d.ts +1 -1
- package/dist-library/types/compiler/standard.d.ts +2 -2
- package/dist-library/types/compiler/types.d.ts +1 -1
- package/dist-library/types/components/{controls.d.ts → controls/controls.d.ts} +2 -3
- package/dist-library/types/components/{numeric-sliders.d.ts → controls/numeric-sliders.d.ts} +1 -1
- package/dist-library/types/components/{gallery.d.ts → gallery/gallery.d.ts} +1 -1
- package/dist-library/types/components/{layout.d.ts → layout/layout.d.ts} +1 -1
- package/dist-library/types/components/minimal-preset.d.ts +2 -0
- package/dist-library/types/components/mount-preset.d.ts +4 -0
- package/dist-library/types/components/network/submit-button.d.ts +10 -0
- package/dist-library/types/components/plot/coordinate.d.ts +2 -0
- package/dist-library/types/components/plugins/chart.d.ts +2 -0
- package/dist-library/types/components/plugins/data.d.ts +2 -0
- package/dist-library/types/components/plugins/diagram.d.ts +2 -0
- package/dist-library/types/components/plugins/forms.d.ts +2 -0
- package/dist-library/types/components/plugins/gallery.d.ts +2 -0
- package/dist-library/types/components/plugins/navigation.d.ts +2 -0
- package/dist-library/types/components/plugins/network.d.ts +2 -0
- package/dist-library/types/components/plugins/plot.d.ts +2 -0
- package/dist-library/types/components/shared/visual-frame.d.ts +12 -0
- package/dist-library/types/components/{visuals.d.ts → shared/visuals.d.ts} +1 -7
- package/dist-library/types/components/{data-table.d.ts → table/data-table.d.ts} +2 -2
- package/dist-library/types/export/component-state.d.ts +1 -1
- package/dist-library/types/export/index.d.ts +2 -1
- package/dist-library/types/export/print-document.d.ts +18 -0
- package/dist-library/types/export/render-markup.d.ts +23 -0
- package/dist-library/types/export/requirements.d.ts +1 -1
- package/dist-library/types/export/resources.d.ts +1 -1
- package/dist-library/types/export/restoration.d.ts +1 -1
- package/dist-library/types/export-assets/index.d.ts +25 -0
- package/dist-library/types/local/compilation/compiler-attributes.d.ts +8 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +19 -0
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +32 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +32 -0
- package/dist-library/types/local/compilation/compiler-services.d.ts +62 -16
- package/dist-library/types/local/compilation/compiler-structure.d.ts +38 -3
- package/dist-library/types/local/compilation/compiler-tables.d.ts +30 -0
- package/dist-library/types/local/compilation/compiler-validation.d.ts +15 -0
- package/dist-library/types/local/compilation/compiler-values.d.ts +39 -1
- package/dist-library/types/local/compilation/compiler.d.ts +7 -14
- package/dist-library/types/local/compilation/dependencies.d.ts +1 -1
- package/dist-library/types/local/compilation/session/incremental.d.ts +75 -0
- package/dist-library/types/local/{session → compilation/session}/row-reuse.d.ts +1 -1
- package/dist-library/types/local/{session/compiler-cache.d.ts → compilation/session/semantic-cache.d.ts} +5 -19
- package/dist-library/types/local/compilation/streaming.d.ts +27 -0
- package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
- package/dist-library/types/local/{compilation → configuration}/component-kernel.d.ts +3 -79
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +1104 -1056
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +731 -0
- package/dist-library/types/local/configuration/diagnostics.d.ts +1 -1
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +66 -0
- package/dist-library/types/local/configuration/official-leaf-syntax.d.ts +24 -0
- package/dist-library/types/local/configuration/options-core.d.ts +5 -4
- package/dist-library/types/local/configuration/options.d.ts +2 -1
- package/dist-library/types/local/configuration/portable-options.d.ts +1 -1
- package/dist-library/types/local/configuration/schema-core.d.ts +1 -1
- package/dist-library/types/local/configuration/schema.d.ts +1 -1
- package/dist-library/types/local/css/author-css.d.ts +66 -0
- package/dist-library/types/local/evaluation/computations.d.ts +2 -2
- package/dist-library/types/local/evaluation/expression/compile.d.ts +30 -0
- package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -0
- package/dist-library/types/local/evaluation/expression/inference.d.ts +4 -0
- package/dist-library/types/local/evaluation/expression/syntax.d.ts +72 -0
- package/dist-library/types/local/evaluation/expression/values.d.ts +56 -0
- package/dist-library/types/local/evaluation/{math-display.d.ts → math/display.d.ts} +2 -2
- package/dist-library/types/local/evaluation/math/evaluation.d.ts +10 -0
- package/dist-library/types/local/evaluation/{math.d.ts → math/latex.d.ts} +58 -17
- package/dist-library/types/local/evaluation/{math-sample.d.ts → math/sample.d.ts} +4 -2
- package/dist-library/types/local/evaluation/math/syntax.d.ts +72 -0
- package/dist-library/types/local/evaluation/validation.d.ts +1 -1
- package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
- package/dist-library/types/local/html/html-details.d.ts +1 -1
- package/dist-library/types/local/html/html-entities.d.ts +11 -2
- package/dist-library/types/local/html/html-recovery.d.ts +1 -1
- package/dist-library/types/local/html/html-table.d.ts +1 -1
- package/dist-library/types/local/html/html.d.ts +40 -4
- package/dist-library/types/local/index.d.ts +14 -13
- package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
- package/dist-library/types/local/{markdown → parsing}/fast-markdown.d.ts +1 -1
- package/dist-library/types/local/{markdown → parsing}/footnotes.d.ts +1 -1
- package/dist-library/types/local/{markdown → parsing}/heading-anchors.d.ts +1 -1
- package/dist-library/types/local/parsing/html-attributes.d.ts +14 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +1 -1
- package/dist-library/types/local/{session → parsing}/parse-session.d.ts +5 -5
- package/dist-library/types/local/parsing/parser-capabilities.d.ts +7 -2
- package/dist-library/types/local/parsing/parser-convert.d.ts +26 -0
- package/dist-library/types/local/parsing/parser-core.d.ts +10 -4
- package/dist-library/types/local/parsing/parser-internals.d.ts +54 -0
- package/dist-library/types/local/parsing/parser-region.d.ts +46 -0
- package/dist-library/types/local/parsing/parser-standard.d.ts +3 -0
- package/dist-library/types/local/parsing/parser-tags.d.ts +108 -0
- package/dist-library/types/local/parsing/parser.d.ts +3 -3
- package/dist-library/types/local/{markdown → parsing}/plain-paragraphs.d.ts +1 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +1 -1
- package/dist-library/types/local/parsing/theme-declaration.d.ts +22 -0
- package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
- package/dist-library/types/local/rendering/document/LocalDocumentView.d.ts +5 -0
- package/dist-library/types/local/rendering/{LocalDocumentView.d.ts → document/LocalDocumentViewCore.d.ts} +48 -9
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/local/rendering/document/render-nodes.d.ts +24 -0
- package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
- package/dist-library/types/local/rendering/document/use-color-scheme.d.ts +10 -0
- package/dist-library/types/local/rendering/document/validation-state.d.ts +31 -0
- package/dist-library/types/local/rendering/document/view-render-context.d.ts +146 -0
- package/dist-library/types/local/rendering/{view-revision.d.ts → document/view-revision.d.ts} +31 -4
- package/dist-library/types/local/rendering/render-types.d.ts +1 -1
- package/dist-library/types/local/{widgets/table-surface.d.ts → rendering/table/data-table.d.ts} +3 -0
- package/dist-library/types/local/rendering/table/table-numeric-columns.d.ts +7 -0
- package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
- package/dist-library/types/local/runtime/retention.d.ts +1 -1
- package/dist-library/types/local/runtime/runtime-document.d.ts +71 -0
- package/dist-library/types/local/runtime/runtime-migration.d.ts +19 -0
- package/dist-library/types/local/runtime/runtime-values.d.ts +39 -0
- package/dist-library/types/local/runtime/runtime.d.ts +4 -2
- package/dist-library/types/local/runtime/state.d.ts +1 -1
- package/dist-library/types/local/source/authoring-syntax.d.ts +48 -0
- package/dist-library/types/local/source/authoring.d.ts +1 -1
- package/dist-library/types/local/source/source-context.d.ts +23 -0
- package/dist-library/types/local/source/source-migration.d.ts +2 -2
- package/dist-library/types/local/transport/compile-patch.d.ts +1 -1
- package/dist-library/types/local/transport/flat-compiled-data.d.ts +1 -1
- package/dist-library/types/local/transport/shared-data.d.ts +1 -1
- package/dist-library/types/local/transport/worker-handler.d.ts +30 -0
- package/dist-library/types/local/transport/worker-job.d.ts +28 -0
- package/dist-library/types/local/transport/worker.d.ts +32 -46
- package/dist-library/types/local/{contracts/types.d.ts → types.d.ts} +78 -21
- package/dist-library/types/pdf.d.ts +22 -0
- package/dist-library/types/presets/identity.d.ts +1 -0
- package/dist-library/types/presets/minimal.d.ts +2 -0
- package/dist-library/types/presets/plugin-packs.d.ts +1 -0
- package/dist-library/types/react/component-api.d.ts +20 -4
- package/dist-library/types/react/component-primitives.d.ts +10 -10
- package/dist-library/types/react/component-utils.d.ts +9 -1
- package/dist-library/types/react/index.d.ts +6 -5
- package/dist-library/types/{local/theme/i18n.d.ts → react/localization.d.ts} +2 -2
- package/dist-library/types/react/minimal.d.ts +13 -0
- package/dist-library/types/react/package-core.d.ts +67 -0
- package/dist-library/types/react/package.d.ts +3 -67
- package/dist-library/types/react/runtime/common.d.ts +1 -1
- package/dist-library/types/react/sdk-core.d.ts +115 -0
- package/dist-library/types/react/sdk.d.ts +4 -110
- package/dist-library/types/react/server.d.ts +2 -2
- package/dist-library/types/react/use-draft-field.d.ts +5 -1
- package/dist-library/types/runtime-services/browser/duplex.d.ts +163 -0
- package/dist-library/types/runtime-services/browser/http-sse.d.ts +117 -0
- package/dist-library/types/runtime-services/browser/index.d.ts +2 -1
- package/dist-library/types/runtime-services/component-state.d.ts +1 -1
- package/dist-library/types/runtime-services/index.d.ts +2 -0
- package/dist-library/types/runtime-services/network.d.ts +86 -0
- package/dist-library/types/runtime-services/runtime.d.ts +1 -1
- package/dist-library/types/sdk/config.d.ts +1 -1
- package/dist-library/types/sdk/index.d.ts +1 -0
- package/dist-library/types/sdk/props.d.ts +1 -1
- package/dist-library/types/sdk/registry-core.d.ts +1 -1
- package/dist-library/types/sdk/theme.d.ts +5 -4
- package/dist-library/types/sdk/types.d.ts +2 -2
- package/dist-library/types/shareable.d.ts +6 -5
- package/dist-library/types/standalone/diagnostics.d.ts +1 -1
- package/dist-library/types/standalone/host.d.ts +5 -0
- package/dist-library/types/standalone/payload.d.ts +1 -1
- package/dist-library/types/standalone/prepare.d.ts +2 -2
- package/dist-library/types/standalone/session-core.d.ts +68 -0
- package/dist-library/types/standalone/session.d.ts +6 -68
- package/dist-library/types/themes/contract.d.ts +7 -0
- package/dist-library/types/{local/theme/theme.d.ts → themes/document-theme.d.ts} +4 -3
- package/dist-library/types/vite/client.d.ts +19 -0
- package/dist-library/types/vite/index.d.ts +18 -3
- package/dist-library/types/vite/registration.d.ts +2 -2
- package/dist-library/{types-BFCrMrg0.js → types-BeNtPqdY.js} +1 -1
- package/dist-library/validation-BEBA_HvS.js +1121 -0
- package/dist-library/visual-frame-CyV1FXzs.js +48 -0
- package/dist-library/visuals-B5KSafVk.js +3 -0
- package/dist-library/visuals-BZbZYA7w.js +72572 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +146 -137
- package/docs/README-ch.md +16 -11
- package/docs/README.md +16 -11
- package/docs/compatibility/compatibility-ch.md +8 -8
- package/docs/compatibility/compatibility-en.md +8 -8
- package/docs/compatibility/source-versioning-ch.md +1 -1
- package/docs/compatibility/source-versioning-en.md +1 -1
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-development-reference-ch.md +4 -4
- package/docs/development/component-development-reference-en.md +4 -4
- package/docs/development/component-protocol-ch.md +14 -14
- package/docs/development/component-protocol-en.md +14 -14
- package/docs/development/extension-tutorial-ch.md +308 -0
- package/docs/development/extension-tutorial-en.md +308 -0
- package/docs/development/local-module-layout-ch.md +10 -50
- package/docs/development/local-module-layout-en.md +9 -49
- package/docs/development/performance-overview-ch.md +174 -154
- package/docs/development/performance-overview-en.md +174 -154
- package/docs/guides/local-guide-ch.md +2 -2
- package/docs/guides/local-guide-en.md +2 -2
- package/docs/integration/author-tools-ch.md +2 -2
- package/docs/integration/author-tools-en.md +2 -2
- package/docs/integration/compiler-ch.md +4 -2
- package/docs/integration/compiler-en.md +4 -2
- package/docs/integration/directory-discovery-ch.md +5 -1
- package/docs/integration/directory-discovery-en.md +5 -1
- package/docs/integration/editor-ch.md +35 -5
- package/docs/integration/editor-en.md +42 -4
- package/docs/integration/extension-sdk-ch.md +6 -4
- package/docs/integration/extension-sdk-en.md +6 -4
- package/docs/integration/local-integration-ch.md +201 -19
- package/docs/integration/local-integration-en.md +194 -18
- package/docs/integration/network-host-ch.md +75 -0
- package/docs/integration/network-host-en.md +75 -0
- package/docs/integration/shareable-export-ch.md +58 -16
- package/docs/integration/shareable-export-en.md +57 -15
- package/docs/reference/html-compatibility-ch.md +20 -67
- package/docs/reference/html-compatibility-en.md +19 -64
- package/docs/reference/local-interaction-syntax-ch.md +199 -26
- package/docs/reference/local-interaction-syntax-en.md +194 -27
- package/docs/reference/public-api-ch.md +416 -0
- package/docs/reference/public-api-en.md +416 -0
- package/docs/reference/theme-protocol-ch.md +27 -8
- package/docs/reference/theme-protocol-en.md +46 -8
- package/docs/releases/release-0.4.0-ch.md +2 -2
- package/docs/releases/release-0.4.0-en.md +2 -2
- package/docs/releases/release-0.8.0-ch.md +19 -3
- package/docs/releases/release-0.8.0-en.md +19 -3
- package/docs/releases/release-0.9.0-ch.md +44 -0
- package/docs/releases/release-0.9.0-en.md +44 -0
- package/docs/releases/release-0.9.1-ch.md +29 -0
- package/docs/releases/release-0.9.1-en.md +29 -0
- package/examples/component-package/README-ch.md +1 -1
- package/examples/component-package/README.md +1 -1
- package/examples/conformance/README-ch.md +3 -3
- package/examples/conformance/README.md +3 -3
- package/examples/game-2048-package/README-ch.md +3 -9
- package/examples/game-2048-package/README.md +8 -12
- package/examples/integration/README-ch.md +21 -2
- package/examples/integration/README.md +21 -2
- package/examples/integration/extension-sdk/README-ch.md +1 -1
- package/examples/integration/extension-sdk/README.md +1 -1
- package/examples/integration/streaming/index.html +48 -0
- package/examples/integration/streaming/main.js +175 -0
- package/examples/integration/streaming/package.json +13 -0
- package/examples/integration/streaming/worker.js +3 -0
- package/examples/local/README-ch.md +3 -3
- package/examples/local/README.md +2 -2
- package/examples/local/minimal-budget.reactive.md +48 -0
- package/examples/minimal-extension/README-ch.md +78 -0
- package/examples/minimal-extension/README.md +78 -0
- package/examples/minimal-extension/index.html +15 -0
- package/examples/minimal-extension/package.json +26 -0
- package/examples/minimal-extension/sample/document.reactive.md +10 -0
- package/examples/minimal-extension/scripts/build.mjs +32 -0
- package/examples/minimal-extension/scripts/export.mjs +72 -0
- package/examples/minimal-extension/scripts/test-node.mjs +75 -0
- package/examples/minimal-extension/src/extension.tsx +90 -0
- package/examples/minimal-extension/src/preview.tsx +12 -0
- package/examples/minimal-extension/src/source.ts +4 -0
- package/examples/minimal-extension/tsconfig.json +14 -0
- package/examples/network-survey/README.md +200 -0
- package/examples/network-survey/index.html +49 -0
- package/examples/network-survey/package.json +26 -0
- package/examples/network-survey/sample/document.reactive.md +51 -0
- package/examples/network-survey/src/components.tsx +325 -0
- package/examples/network-survey/src/host.ts +316 -0
- package/examples/network-survey/src/main.tsx +91 -0
- package/examples/network-survey/src/source.ts +1 -0
- package/examples/network-survey/tsconfig.json +26 -0
- package/examples/network-survey/vite.config.ts +227 -0
- package/examples/sci-fi-theme/README-ch.md +4 -2
- package/examples/sci-fi-theme/README.md +4 -2
- package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -0
- package/examples/sci-fi-theme/demo/demo.css +129 -23
- package/examples/sci-fi-theme/demo/document.reactive.md +27 -6
- package/examples/sci-fi-theme/demo/main.tsx +45 -10
- package/examples/sci-fi-theme/docs/design-system-ch.md +6 -6
- package/examples/sci-fi-theme/package.json +2 -1
- package/examples/sci-fi-theme/src/components.css +1064 -154
- package/examples/sci-fi-theme/src/notch.css +142 -0
- package/examples/sci-fi-theme/src/sci-fi.css +3 -1
- package/examples/sci-fi-theme/src/theme.ts +2 -0
- package/examples/sci-fi-theme/src/tokens.css +512 -408
- package/examples/tetris-package/README-ch.md +4 -4
- package/examples/tetris-package/README.md +4 -4
- package/package.json +70 -3
- package/dist-library/LocalDocumentView-6trX7xJc.js +0 -97920
- package/dist-library/compiler--ea2CKQF.js +0 -61
- package/dist-library/component-state-Cq2K5gkS.js +0 -490
- package/dist-library/options-CX5m5n-J.js +0 -115
- package/dist-library/runtime-C-sbfpOX.js +0 -1157
- package/dist-library/types/local/contracts/locale.d.ts +0 -1
- package/dist-library/types/local/contracts/version.d.ts +0 -2
- package/dist-library/types/local/evaluation/dates.d.ts +0 -2
- package/dist-library/types/local/evaluation/expression.d.ts +0 -47
- package/dist-library/types/local/markdown/markdown-structure.d.ts +0 -3
- package/dist-library/types/local/rendering/legacy-component-adapter.d.ts +0 -36
- package/dist-library/types/local/session/incremental.d.ts +0 -48
- package/dist-library/types/local/source/node-walk.d.ts +0 -3
- package/dist-library/types/local/source/text-length.d.ts +0 -13
- package/dist-library/types/local/theme/theme-name.d.ts +0 -3
- package/dist-library/types/local/widgets/visuals.d.ts +0 -25
- package/dist-library/types/react/default-theme.d.ts +0 -6
- package/dist-library/validation-W-bmny-x.js +0 -2253
- package/docs/development/releasing-ch.md +0 -12
- package/docs/development/releasing-en.md +0 -12
- package/docs/integration/codemirror-ch.md +0 -52
- package/docs/integration/codemirror-en.md +0 -29
- package/docs/integration/repository-split-ch.md +0 -40
- package/docs/integration/repository-split-en.md +0 -23
- package/docs/reference/computations-formatting-ch.md +0 -89
- package/docs/reference/computations-formatting-en.md +0 -89
- package/docs/reference/constraints-collections-ch.md +0 -104
- package/docs/reference/constraints-collections-en.md +0 -104
- package/docs/reference/local-components-v2-ch.md +0 -140
- package/docs/reference/local-components-v2-en.md +0 -106
- package/docs/reference/tolerance-ch.md +0 -64
- package/docs/reference/tolerance-en.md +0 -57
- /package/dist-library/types/components/{chart-motion.d.ts → chart/chart-motion.d.ts} +0 -0
- /package/dist-library/types/components/{default-chart-types.d.ts → chart/default-chart-types.d.ts} +0 -0
- /package/dist-library/types/components/{default-chart.d.ts → chart/default-chart.d.ts} +0 -0
- /package/dist-library/types/components/{diagram-inspector.d.ts → diagram/diagram-inspector.d.ts} +0 -0
- /package/dist-library/types/{local/widgets/diagram-layout.d.ts → components/diagram/layout.d.ts} +0 -0
- /package/dist-library/types/components/{mafs-plot-grid.d.ts → plot/mafs-plot-grid.d.ts} +0 -0
- /package/dist-library/types/components/{mafs-visuals.d.ts → plot/mafs-visuals.d.ts} +0 -0
- /package/dist-library/types/components/{use-hydrated.d.ts → shared/use-hydrated.d.ts} +0 -0
- /package/dist-library/types/local/{theme/colors.d.ts → configuration/color-values.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{collection-functions.d.ts → expression/collection-functions.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{data-functions.d.ts → expression/data-functions.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{formatting.d.ts → expression/formatting.d.ts} +0 -0
- /package/dist-library/types/local/{markdown → parsing}/markdown-blocks.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/code}/code-block.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/code}/code-languages.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/image}/image-view.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering}/math-view.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, B as t, P as n, T as r, et as i, rt as a, st as o, tt as s } from "./preset-core-CKc5YXSM.js";
|
|
2
2
|
// src/presets/default-authoring.ts
|
|
3
3
|
var c = Object.freeze([
|
|
4
4
|
{
|
|
@@ -1035,8 +1035,8 @@ var c = Object.freeze([
|
|
|
1035
1035
|
zh: "提示框"
|
|
1036
1036
|
},
|
|
1037
1037
|
description: {
|
|
1038
|
-
en: "Highlight info, success or
|
|
1039
|
-
zh: "
|
|
1038
|
+
en: "Highlight info, success, warning or error messages with different tones.",
|
|
1039
|
+
zh: "用不同语气突出普通、成功、警告或错误信息。"
|
|
1040
1040
|
},
|
|
1041
1041
|
category: "hint",
|
|
1042
1042
|
keywords: {
|
|
@@ -1044,12 +1044,14 @@ var c = Object.freeze([
|
|
|
1044
1044
|
"alert",
|
|
1045
1045
|
"notice",
|
|
1046
1046
|
"warning",
|
|
1047
|
+
"error",
|
|
1047
1048
|
"info",
|
|
1048
1049
|
"message"
|
|
1049
1050
|
],
|
|
1050
1051
|
zh: [
|
|
1051
1052
|
"提示",
|
|
1052
1053
|
"警告",
|
|
1054
|
+
"错误",
|
|
1053
1055
|
"通知",
|
|
1054
1056
|
"信息",
|
|
1055
1057
|
"消息"
|
|
@@ -1145,7 +1147,7 @@ function m(e, t) {
|
|
|
1145
1147
|
let n = c.find((t) => t.id === e);
|
|
1146
1148
|
return n ? p(n.title, t, n.id) : e;
|
|
1147
1149
|
}
|
|
1148
|
-
function
|
|
1150
|
+
function ee(e) {
|
|
1149
1151
|
let t = f(e);
|
|
1150
1152
|
if (!t) return;
|
|
1151
1153
|
let n = [];
|
|
@@ -1155,7 +1157,7 @@ function h(e) {
|
|
|
1155
1157
|
}
|
|
1156
1158
|
return Object.freeze(n);
|
|
1157
1159
|
}
|
|
1158
|
-
function
|
|
1160
|
+
function h(e) {
|
|
1159
1161
|
let t = f(e);
|
|
1160
1162
|
if (!t) return;
|
|
1161
1163
|
let n = t.insertText.en;
|
|
@@ -1167,7 +1169,7 @@ function g(e) {
|
|
|
1167
1169
|
};
|
|
1168
1170
|
}
|
|
1169
1171
|
// src/presets/default-semantics.ts
|
|
1170
|
-
var
|
|
1172
|
+
var g = t, _ = {
|
|
1171
1173
|
text: (e = {}) => ({
|
|
1172
1174
|
kind: "string",
|
|
1173
1175
|
coerce: "text",
|
|
@@ -1200,11 +1202,11 @@ var _ = s, v = {
|
|
|
1200
1202
|
enum: e,
|
|
1201
1203
|
...t
|
|
1202
1204
|
})
|
|
1203
|
-
},
|
|
1205
|
+
}, v = (e = {}) => _.text(e), y = () => _.text(), b = () => _.text(), x = () => _.boolean({
|
|
1204
1206
|
dynamic: !0,
|
|
1205
1207
|
default: !1
|
|
1206
|
-
}),
|
|
1207
|
-
function
|
|
1208
|
+
}), S = () => _.staticText({ color: !0 });
|
|
1209
|
+
function te() {
|
|
1208
1210
|
return Object.freeze({
|
|
1209
1211
|
interactive: !0,
|
|
1210
1212
|
static: !0,
|
|
@@ -1212,7 +1214,7 @@ function ee() {
|
|
|
1212
1214
|
offline: !0
|
|
1213
1215
|
});
|
|
1214
1216
|
}
|
|
1215
|
-
function
|
|
1217
|
+
function C(e, t, n, r = {}) {
|
|
1216
1218
|
return Object.freeze({
|
|
1217
1219
|
kind: e,
|
|
1218
1220
|
family: t,
|
|
@@ -1222,7 +1224,7 @@ function w(e, t, n, r = {}) {
|
|
|
1222
1224
|
...r
|
|
1223
1225
|
});
|
|
1224
1226
|
}
|
|
1225
|
-
function
|
|
1227
|
+
function w(e, t, n = {}) {
|
|
1226
1228
|
return Object.freeze({
|
|
1227
1229
|
kind: "number",
|
|
1228
1230
|
family: "number",
|
|
@@ -1233,57 +1235,57 @@ function T(e, t, n = {}) {
|
|
|
1233
1235
|
...n
|
|
1234
1236
|
});
|
|
1235
1237
|
}
|
|
1236
|
-
var
|
|
1238
|
+
var T = (e, t, n = "step") => ({
|
|
1237
1239
|
min: { prop: e },
|
|
1238
1240
|
max: { prop: t },
|
|
1239
1241
|
step: { prop: n }
|
|
1240
1242
|
});
|
|
1241
|
-
function
|
|
1243
|
+
function E(e) {
|
|
1242
1244
|
return Object.freeze(e);
|
|
1243
1245
|
}
|
|
1244
|
-
function
|
|
1246
|
+
function D(...e) {
|
|
1245
1247
|
return Object.freeze(e.map((e) => Object.freeze(e)));
|
|
1246
1248
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return
|
|
1249
|
+
function O(e, t, i) {
|
|
1250
|
+
return r({
|
|
1249
1251
|
id: `reactive-md/${e}`,
|
|
1250
1252
|
name: e,
|
|
1251
|
-
version:
|
|
1252
|
-
protocol:
|
|
1253
|
-
form:
|
|
1254
|
-
capabilities:
|
|
1255
|
-
...
|
|
1253
|
+
version: g,
|
|
1254
|
+
protocol: n,
|
|
1255
|
+
form: t,
|
|
1256
|
+
capabilities: te(),
|
|
1257
|
+
...i
|
|
1256
1258
|
});
|
|
1257
1259
|
}
|
|
1258
|
-
var
|
|
1260
|
+
var k = O("input", "leaf", {
|
|
1259
1261
|
props: {
|
|
1260
|
-
label:
|
|
1261
|
-
type:
|
|
1262
|
+
label: v(),
|
|
1263
|
+
type: _.choice(["text", "email"], {
|
|
1262
1264
|
static: !0,
|
|
1263
1265
|
default: "text"
|
|
1264
1266
|
}),
|
|
1265
|
-
placeholder:
|
|
1266
|
-
required:
|
|
1267
|
+
placeholder: _.text(),
|
|
1268
|
+
required: _.boolean({
|
|
1267
1269
|
dynamic: !0,
|
|
1268
1270
|
default: !1
|
|
1269
1271
|
}),
|
|
1270
|
-
"min-length":
|
|
1272
|
+
"min-length": _.number({
|
|
1271
1273
|
integer: !0,
|
|
1272
1274
|
min: 0,
|
|
1273
1275
|
default: 0
|
|
1274
1276
|
}),
|
|
1275
|
-
"max-length":
|
|
1277
|
+
"max-length": _.number({
|
|
1276
1278
|
integer: !0,
|
|
1277
1279
|
min: 0
|
|
1278
1280
|
}),
|
|
1279
|
-
disabled:
|
|
1281
|
+
disabled: x()
|
|
1280
1282
|
},
|
|
1281
|
-
bindings: { value:
|
|
1282
|
-
structure:
|
|
1283
|
+
bindings: { value: C("string", "text", "empty") },
|
|
1284
|
+
structure: E({
|
|
1283
1285
|
rule: "none",
|
|
1284
1286
|
label: "required"
|
|
1285
1287
|
}),
|
|
1286
|
-
rules:
|
|
1288
|
+
rules: D({
|
|
1287
1289
|
kind: "text-length",
|
|
1288
1290
|
min: "min-length",
|
|
1289
1291
|
max: "max-length"
|
|
@@ -1300,36 +1302,36 @@ var A = k("input", "leaf", {
|
|
|
1300
1302
|
kind: "value-required",
|
|
1301
1303
|
required: "required"
|
|
1302
1304
|
})
|
|
1303
|
-
}),
|
|
1305
|
+
}), A = O("textarea", "leaf", {
|
|
1304
1306
|
props: {
|
|
1305
|
-
label:
|
|
1306
|
-
placeholder:
|
|
1307
|
-
rows:
|
|
1307
|
+
label: v(),
|
|
1308
|
+
placeholder: _.text(),
|
|
1309
|
+
rows: _.number({
|
|
1308
1310
|
integer: !0,
|
|
1309
1311
|
positive: !0,
|
|
1310
1312
|
default: 4
|
|
1311
1313
|
}),
|
|
1312
|
-
required:
|
|
1314
|
+
required: _.boolean({
|
|
1313
1315
|
dynamic: !0,
|
|
1314
1316
|
default: !1
|
|
1315
1317
|
}),
|
|
1316
|
-
"min-length":
|
|
1318
|
+
"min-length": _.number({
|
|
1317
1319
|
integer: !0,
|
|
1318
1320
|
min: 0,
|
|
1319
1321
|
default: 0
|
|
1320
1322
|
}),
|
|
1321
|
-
"max-length":
|
|
1323
|
+
"max-length": _.number({
|
|
1322
1324
|
integer: !0,
|
|
1323
1325
|
min: 0
|
|
1324
1326
|
}),
|
|
1325
|
-
disabled:
|
|
1327
|
+
disabled: x()
|
|
1326
1328
|
},
|
|
1327
|
-
bindings: { value:
|
|
1328
|
-
structure:
|
|
1329
|
+
bindings: { value: C("string", "text", "empty") },
|
|
1330
|
+
structure: E({
|
|
1329
1331
|
rule: "none",
|
|
1330
1332
|
label: "required"
|
|
1331
1333
|
}),
|
|
1332
|
-
rules:
|
|
1334
|
+
rules: D({
|
|
1333
1335
|
kind: "text-length",
|
|
1334
1336
|
min: "min-length",
|
|
1335
1337
|
max: "max-length"
|
|
@@ -1344,23 +1346,23 @@ var A = k("input", "leaf", {
|
|
|
1344
1346
|
kind: "value-required",
|
|
1345
1347
|
required: "required"
|
|
1346
1348
|
})
|
|
1347
|
-
}),
|
|
1349
|
+
}), j = O("number", "leaf", {
|
|
1348
1350
|
props: {
|
|
1349
|
-
label:
|
|
1350
|
-
min:
|
|
1351
|
-
max:
|
|
1352
|
-
step:
|
|
1351
|
+
label: v(),
|
|
1352
|
+
min: _.number({ dynamic: !0 }),
|
|
1353
|
+
max: _.number({ dynamic: !0 }),
|
|
1354
|
+
step: _.number({
|
|
1353
1355
|
positive: !0,
|
|
1354
1356
|
default: 1
|
|
1355
1357
|
}),
|
|
1356
|
-
disabled:
|
|
1358
|
+
disabled: x()
|
|
1357
1359
|
},
|
|
1358
|
-
bindings: { value:
|
|
1359
|
-
structure:
|
|
1360
|
+
bindings: { value: C("number", "number", "nearest-zero", { constraints: T("min", "max") }) },
|
|
1361
|
+
structure: E({
|
|
1360
1362
|
rule: "none",
|
|
1361
1363
|
label: "required"
|
|
1362
1364
|
}),
|
|
1363
|
-
rules:
|
|
1365
|
+
rules: D({
|
|
1364
1366
|
kind: "numeric-range",
|
|
1365
1367
|
min: "min",
|
|
1366
1368
|
max: "max",
|
|
@@ -1369,30 +1371,30 @@ var A = k("input", "leaf", {
|
|
|
1369
1371
|
kind: "dynamic-constraints",
|
|
1370
1372
|
attributes: ["min", "max"]
|
|
1371
1373
|
})
|
|
1372
|
-
}),
|
|
1374
|
+
}), M = O("slider", "leaf", {
|
|
1373
1375
|
props: {
|
|
1374
|
-
label:
|
|
1375
|
-
min:
|
|
1376
|
+
label: v(),
|
|
1377
|
+
min: _.number({
|
|
1376
1378
|
dynamic: !0,
|
|
1377
1379
|
default: 0
|
|
1378
1380
|
}),
|
|
1379
|
-
max:
|
|
1381
|
+
max: _.number({
|
|
1380
1382
|
dynamic: !0,
|
|
1381
1383
|
default: 100
|
|
1382
1384
|
}),
|
|
1383
|
-
step:
|
|
1385
|
+
step: _.number({
|
|
1384
1386
|
positive: !0,
|
|
1385
1387
|
default: 1
|
|
1386
1388
|
}),
|
|
1387
|
-
disabled:
|
|
1388
|
-
color:
|
|
1389
|
+
disabled: x(),
|
|
1390
|
+
color: S()
|
|
1389
1391
|
},
|
|
1390
|
-
bindings: { value:
|
|
1391
|
-
structure:
|
|
1392
|
+
bindings: { value: C("number", "number", "min", { constraints: T("min", "max") }) },
|
|
1393
|
+
structure: E({
|
|
1392
1394
|
rule: "none",
|
|
1393
1395
|
label: "required"
|
|
1394
1396
|
}),
|
|
1395
|
-
rules:
|
|
1397
|
+
rules: D({
|
|
1396
1398
|
kind: "numeric-range",
|
|
1397
1399
|
min: "min",
|
|
1398
1400
|
max: "max",
|
|
@@ -1401,67 +1403,67 @@ var A = k("input", "leaf", {
|
|
|
1401
1403
|
kind: "dynamic-constraints",
|
|
1402
1404
|
attributes: ["min", "max"]
|
|
1403
1405
|
})
|
|
1404
|
-
}),
|
|
1406
|
+
}), N = O("range-slider", "leaf", {
|
|
1405
1407
|
props: {
|
|
1406
|
-
label:
|
|
1407
|
-
min:
|
|
1408
|
-
max:
|
|
1409
|
-
step:
|
|
1408
|
+
label: v(),
|
|
1409
|
+
min: _.number({ default: 0 }),
|
|
1410
|
+
max: _.number({ default: 100 }),
|
|
1411
|
+
step: _.number({
|
|
1410
1412
|
positive: !0,
|
|
1411
1413
|
default: 1
|
|
1412
1414
|
}),
|
|
1413
|
-
disabled:
|
|
1414
|
-
color:
|
|
1415
|
+
disabled: x(),
|
|
1416
|
+
color: S()
|
|
1415
1417
|
},
|
|
1416
1418
|
bindings: {
|
|
1417
|
-
start:
|
|
1418
|
-
end:
|
|
1419
|
+
start: w("start", "min", { constraints: T("min", "max") }),
|
|
1420
|
+
end: w("end", "max-step", { constraints: T("min", "max") })
|
|
1419
1421
|
},
|
|
1420
1422
|
slotRelations: [{
|
|
1421
1423
|
lower: "start",
|
|
1422
1424
|
upper: "end"
|
|
1423
1425
|
}],
|
|
1424
|
-
structure:
|
|
1426
|
+
structure: E({
|
|
1425
1427
|
rule: "none",
|
|
1426
1428
|
label: "required"
|
|
1427
1429
|
}),
|
|
1428
|
-
rules:
|
|
1430
|
+
rules: D({
|
|
1429
1431
|
kind: "numeric-range",
|
|
1430
1432
|
min: "min",
|
|
1431
1433
|
max: "max",
|
|
1432
1434
|
step: "step"
|
|
1433
1435
|
})
|
|
1434
|
-
}),
|
|
1436
|
+
}), P = O("coordinate", "leaf", {
|
|
1435
1437
|
props: {
|
|
1436
|
-
label:
|
|
1437
|
-
"x-min":
|
|
1438
|
-
"x-max":
|
|
1439
|
-
"y-min":
|
|
1440
|
-
"y-max":
|
|
1441
|
-
step:
|
|
1438
|
+
label: v(),
|
|
1439
|
+
"x-min": _.number({ default: -5 }),
|
|
1440
|
+
"x-max": _.number({ default: 5 }),
|
|
1441
|
+
"y-min": _.number({ default: -5 }),
|
|
1442
|
+
"y-max": _.number({ default: 5 }),
|
|
1443
|
+
step: _.number({
|
|
1442
1444
|
positive: !0,
|
|
1443
1445
|
default: 1
|
|
1444
1446
|
}),
|
|
1445
|
-
disabled:
|
|
1446
|
-
color:
|
|
1447
|
+
disabled: x(),
|
|
1448
|
+
color: S()
|
|
1447
1449
|
},
|
|
1448
1450
|
bindings: {
|
|
1449
|
-
x:
|
|
1451
|
+
x: w("x", "nearest-zero", { constraints: {
|
|
1450
1452
|
min: { prop: "x-min" },
|
|
1451
1453
|
max: { prop: "x-max" },
|
|
1452
1454
|
step: { prop: "step" }
|
|
1453
1455
|
} }),
|
|
1454
|
-
y:
|
|
1456
|
+
y: w("y", "nearest-zero", { constraints: {
|
|
1455
1457
|
min: { prop: "y-min" },
|
|
1456
1458
|
max: { prop: "y-max" },
|
|
1457
1459
|
step: { prop: "step" }
|
|
1458
1460
|
} })
|
|
1459
1461
|
},
|
|
1460
|
-
structure:
|
|
1462
|
+
structure: E({
|
|
1461
1463
|
rule: "none",
|
|
1462
1464
|
label: "required"
|
|
1463
1465
|
}),
|
|
1464
|
-
rules:
|
|
1466
|
+
rules: D({
|
|
1465
1467
|
kind: "numeric-range",
|
|
1466
1468
|
min: "x-min",
|
|
1467
1469
|
max: "x-max",
|
|
@@ -1471,45 +1473,45 @@ var A = k("input", "leaf", {
|
|
|
1471
1473
|
min: "y-min",
|
|
1472
1474
|
max: "y-max"
|
|
1473
1475
|
})
|
|
1474
|
-
}),
|
|
1476
|
+
}), F = O("toggle", "leaf", {
|
|
1475
1477
|
props: {
|
|
1476
|
-
label:
|
|
1477
|
-
disabled:
|
|
1478
|
-
color:
|
|
1478
|
+
label: v(),
|
|
1479
|
+
disabled: x(),
|
|
1480
|
+
color: S()
|
|
1479
1481
|
},
|
|
1480
|
-
bindings: { value:
|
|
1481
|
-
structure:
|
|
1482
|
+
bindings: { value: C("boolean", "boolean", "false") },
|
|
1483
|
+
structure: E({
|
|
1482
1484
|
rule: "none",
|
|
1483
1485
|
label: "required"
|
|
1484
1486
|
})
|
|
1485
|
-
}),
|
|
1487
|
+
}), I = O("checkbox", "leaf", {
|
|
1486
1488
|
props: {
|
|
1487
|
-
label:
|
|
1488
|
-
disabled:
|
|
1489
|
-
color:
|
|
1489
|
+
label: v(),
|
|
1490
|
+
disabled: x(),
|
|
1491
|
+
color: S()
|
|
1490
1492
|
},
|
|
1491
|
-
bindings: { value:
|
|
1492
|
-
structure:
|
|
1493
|
+
bindings: { value: C("boolean", "boolean", "false") },
|
|
1494
|
+
structure: E({
|
|
1493
1495
|
rule: "none",
|
|
1494
1496
|
label: "required"
|
|
1495
1497
|
})
|
|
1496
|
-
}),
|
|
1498
|
+
}), L = O("date", "leaf", {
|
|
1497
1499
|
props: {
|
|
1498
|
-
label:
|
|
1499
|
-
min:
|
|
1500
|
-
max:
|
|
1501
|
-
required:
|
|
1500
|
+
label: v(),
|
|
1501
|
+
min: _.dynamicText(),
|
|
1502
|
+
max: _.dynamicText(),
|
|
1503
|
+
required: _.boolean({
|
|
1502
1504
|
dynamic: !0,
|
|
1503
1505
|
default: !1
|
|
1504
1506
|
}),
|
|
1505
|
-
disabled:
|
|
1507
|
+
disabled: x()
|
|
1506
1508
|
},
|
|
1507
|
-
bindings: { value:
|
|
1508
|
-
structure:
|
|
1509
|
+
bindings: { value: C("string", "date", "empty") },
|
|
1510
|
+
structure: E({
|
|
1509
1511
|
rule: "none",
|
|
1510
1512
|
label: "required"
|
|
1511
1513
|
}),
|
|
1512
|
-
rules:
|
|
1514
|
+
rules: D({
|
|
1513
1515
|
kind: "date-bounds",
|
|
1514
1516
|
min: "min",
|
|
1515
1517
|
max: "max"
|
|
@@ -1527,111 +1529,111 @@ var A = k("input", "leaf", {
|
|
|
1527
1529
|
required: "required"
|
|
1528
1530
|
})
|
|
1529
1531
|
});
|
|
1530
|
-
function
|
|
1531
|
-
return
|
|
1532
|
+
function R(t, n = "container") {
|
|
1533
|
+
return O(t, n, {
|
|
1532
1534
|
props: {
|
|
1533
|
-
label:
|
|
1534
|
-
disabled:
|
|
1535
|
-
color:
|
|
1535
|
+
label: v(),
|
|
1536
|
+
disabled: x(),
|
|
1537
|
+
color: S()
|
|
1536
1538
|
},
|
|
1537
|
-
bindings: { value:
|
|
1538
|
-
structure:
|
|
1539
|
+
bindings: { value: C("string", "choice", "first-option") },
|
|
1540
|
+
structure: E({
|
|
1539
1541
|
rule: "options",
|
|
1540
1542
|
label: "required",
|
|
1541
1543
|
child: "option",
|
|
1542
1544
|
children: ["option"],
|
|
1543
1545
|
min: 1,
|
|
1544
|
-
max:
|
|
1546
|
+
max: e,
|
|
1545
1547
|
valueAttribute: "value"
|
|
1546
1548
|
}),
|
|
1547
|
-
rules:
|
|
1549
|
+
rules: D({
|
|
1548
1550
|
kind: "options-body",
|
|
1549
1551
|
child: "option",
|
|
1550
1552
|
valueAttribute: "value",
|
|
1551
1553
|
unique: !0,
|
|
1552
|
-
max:
|
|
1554
|
+
max: e
|
|
1553
1555
|
})
|
|
1554
1556
|
});
|
|
1555
1557
|
}
|
|
1556
|
-
var
|
|
1558
|
+
var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select", "container", {
|
|
1557
1559
|
props: {
|
|
1558
|
-
label:
|
|
1559
|
-
"max-selected":
|
|
1560
|
+
label: v(),
|
|
1561
|
+
"max-selected": _.number({
|
|
1560
1562
|
integer: !0,
|
|
1561
1563
|
min: 0
|
|
1562
1564
|
}),
|
|
1563
|
-
disabled:
|
|
1564
|
-
color:
|
|
1565
|
+
disabled: x(),
|
|
1566
|
+
color: S()
|
|
1565
1567
|
},
|
|
1566
|
-
bindings: { value:
|
|
1568
|
+
bindings: { value: C("array", "multi-select", "empty-array", {
|
|
1567
1569
|
exclusive: !0,
|
|
1568
1570
|
maxItems: { prop: "max-selected" }
|
|
1569
1571
|
}) },
|
|
1570
|
-
structure:
|
|
1572
|
+
structure: E({
|
|
1571
1573
|
rule: "options",
|
|
1572
1574
|
label: "required",
|
|
1573
1575
|
child: "option",
|
|
1574
1576
|
children: ["option"],
|
|
1575
1577
|
min: 1,
|
|
1576
|
-
max:
|
|
1578
|
+
max: e,
|
|
1577
1579
|
valueAttribute: "value",
|
|
1578
1580
|
forbidSeparator: ","
|
|
1579
1581
|
}),
|
|
1580
|
-
rules:
|
|
1582
|
+
rules: D({
|
|
1581
1583
|
kind: "options-body",
|
|
1582
1584
|
child: "option",
|
|
1583
1585
|
valueAttribute: "value",
|
|
1584
1586
|
unique: !0,
|
|
1585
|
-
max:
|
|
1587
|
+
max: e,
|
|
1586
1588
|
forbidSeparator: ","
|
|
1587
1589
|
}, {
|
|
1588
1590
|
kind: "option-count",
|
|
1589
1591
|
max: "max-selected"
|
|
1590
1592
|
})
|
|
1591
|
-
}),
|
|
1592
|
-
props: { value:
|
|
1593
|
-
structure:
|
|
1593
|
+
}), U = O("option", "container", {
|
|
1594
|
+
props: { value: _.staticText({ required: !0 }) },
|
|
1595
|
+
structure: E({
|
|
1594
1596
|
rule: "inline",
|
|
1595
1597
|
label: "none",
|
|
1596
1598
|
inlineOnly: !0,
|
|
1597
1599
|
noComponents: !0
|
|
1598
1600
|
}),
|
|
1599
|
-
rules:
|
|
1601
|
+
rules: D({
|
|
1600
1602
|
kind: "inline-body",
|
|
1601
1603
|
strict: !0
|
|
1602
1604
|
}, { kind: "no-components" })
|
|
1603
|
-
}),
|
|
1605
|
+
}), W = O("counter", "leaf", {
|
|
1604
1606
|
props: {
|
|
1605
|
-
label:
|
|
1606
|
-
min:
|
|
1607
|
-
max:
|
|
1608
|
-
step:
|
|
1607
|
+
label: v(),
|
|
1608
|
+
min: _.number({ default: 0 }),
|
|
1609
|
+
max: _.number(),
|
|
1610
|
+
step: _.number({
|
|
1609
1611
|
positive: !0,
|
|
1610
1612
|
default: 1
|
|
1611
1613
|
}),
|
|
1612
|
-
disabled:
|
|
1614
|
+
disabled: x()
|
|
1613
1615
|
},
|
|
1614
|
-
bindings: { value:
|
|
1615
|
-
structure:
|
|
1616
|
+
bindings: { value: C("number", "number", "nearest-zero", { constraints: T("min", "max") }) },
|
|
1617
|
+
structure: E({
|
|
1616
1618
|
rule: "none",
|
|
1617
1619
|
label: "required"
|
|
1618
1620
|
}),
|
|
1619
|
-
rules:
|
|
1621
|
+
rules: D({
|
|
1620
1622
|
kind: "numeric-range",
|
|
1621
1623
|
min: "min",
|
|
1622
1624
|
max: "max",
|
|
1623
1625
|
step: "step"
|
|
1624
1626
|
})
|
|
1625
|
-
}),
|
|
1627
|
+
}), G = O("timer", "leaf", {
|
|
1626
1628
|
props: {
|
|
1627
|
-
label:
|
|
1628
|
-
duration:
|
|
1629
|
+
label: v(),
|
|
1630
|
+
duration: _.number({
|
|
1629
1631
|
integer: !0,
|
|
1630
1632
|
positive: !0,
|
|
1631
1633
|
default: 60
|
|
1632
1634
|
})
|
|
1633
1635
|
},
|
|
1634
|
-
bindings: { value:
|
|
1636
|
+
bindings: { value: C("number", "timer", "duration", {
|
|
1635
1637
|
exclusive: !0,
|
|
1636
1638
|
constraints: {
|
|
1637
1639
|
min: { literal: 0 },
|
|
@@ -1640,11 +1642,11 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1640
1642
|
},
|
|
1641
1643
|
retain: !1
|
|
1642
1644
|
}) },
|
|
1643
|
-
structure:
|
|
1645
|
+
structure: E({
|
|
1644
1646
|
rule: "none",
|
|
1645
1647
|
label: "required"
|
|
1646
1648
|
}),
|
|
1647
|
-
rules:
|
|
1649
|
+
rules: D({
|
|
1648
1650
|
kind: "timer-duration",
|
|
1649
1651
|
attribute: "duration",
|
|
1650
1652
|
default: 60
|
|
@@ -1652,184 +1654,184 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1652
1654
|
kind: "retain",
|
|
1653
1655
|
value: !1
|
|
1654
1656
|
})
|
|
1655
|
-
}),
|
|
1657
|
+
}), K = O("checklist", "container", {
|
|
1656
1658
|
props: {
|
|
1657
|
-
label:
|
|
1658
|
-
disabled:
|
|
1659
|
-
color:
|
|
1659
|
+
label: v(),
|
|
1660
|
+
disabled: x(),
|
|
1661
|
+
color: S()
|
|
1660
1662
|
},
|
|
1661
|
-
bindings: { value:
|
|
1663
|
+
bindings: { value: C("array", "checklist", "checked", {
|
|
1662
1664
|
exclusive: !0,
|
|
1663
1665
|
retain: !1
|
|
1664
1666
|
}) },
|
|
1665
|
-
structure:
|
|
1667
|
+
structure: E({
|
|
1666
1668
|
rule: "content",
|
|
1667
1669
|
label: "required",
|
|
1668
1670
|
noComponents: !0
|
|
1669
1671
|
}),
|
|
1670
|
-
rules:
|
|
1672
|
+
rules: D({
|
|
1671
1673
|
kind: "checklist-body",
|
|
1672
|
-
itemLimit:
|
|
1674
|
+
itemLimit: e
|
|
1673
1675
|
}, {
|
|
1674
1676
|
kind: "retain",
|
|
1675
1677
|
value: !1
|
|
1676
1678
|
})
|
|
1677
|
-
}),
|
|
1679
|
+
}), q = O("progress", "leaf", {
|
|
1678
1680
|
props: {
|
|
1679
|
-
label:
|
|
1680
|
-
value:
|
|
1681
|
+
label: v(),
|
|
1682
|
+
value: _.number({
|
|
1681
1683
|
dynamic: !0,
|
|
1682
1684
|
required: !0
|
|
1683
1685
|
}),
|
|
1684
|
-
max:
|
|
1686
|
+
max: _.number({
|
|
1685
1687
|
positive: !0,
|
|
1686
1688
|
default: 100
|
|
1687
1689
|
}),
|
|
1688
|
-
color:
|
|
1690
|
+
color: S()
|
|
1689
1691
|
},
|
|
1690
|
-
structure:
|
|
1692
|
+
structure: E({
|
|
1691
1693
|
rule: "none",
|
|
1692
1694
|
label: "required"
|
|
1693
1695
|
}),
|
|
1694
|
-
rules:
|
|
1696
|
+
rules: D({
|
|
1695
1697
|
kind: "progress-bounds",
|
|
1696
1698
|
value: "value",
|
|
1697
1699
|
max: "max",
|
|
1698
1700
|
defaultMax: 100
|
|
1699
1701
|
})
|
|
1700
|
-
}),
|
|
1702
|
+
}), J = O("jump", "inline", {
|
|
1701
1703
|
props: {
|
|
1702
|
-
to:
|
|
1703
|
-
appearance:
|
|
1704
|
+
to: _.staticText({ required: !0 }),
|
|
1705
|
+
appearance: _.choice(["link", "button"], {
|
|
1704
1706
|
static: !0,
|
|
1705
1707
|
default: "link"
|
|
1706
1708
|
}),
|
|
1707
|
-
color:
|
|
1709
|
+
color: S()
|
|
1708
1710
|
},
|
|
1709
|
-
structure:
|
|
1711
|
+
structure: E({
|
|
1710
1712
|
rule: "inline",
|
|
1711
1713
|
label: "none",
|
|
1712
1714
|
inlineOnly: !0,
|
|
1713
1715
|
noComponents: !0
|
|
1714
1716
|
}),
|
|
1715
|
-
rules:
|
|
1717
|
+
rules: D({
|
|
1716
1718
|
kind: "inline-body",
|
|
1717
1719
|
strict: !0
|
|
1718
1720
|
}, { kind: "no-components" }, {
|
|
1719
1721
|
kind: "navigation",
|
|
1720
1722
|
target: "to"
|
|
1721
1723
|
})
|
|
1722
|
-
}),
|
|
1723
|
-
props: { id:
|
|
1724
|
-
structure:
|
|
1724
|
+
}), Y = O("anchor", "leaf", {
|
|
1725
|
+
props: { id: _.staticText({ required: !0 }) },
|
|
1726
|
+
structure: E({
|
|
1725
1727
|
rule: "none",
|
|
1726
1728
|
label: "none"
|
|
1727
1729
|
}),
|
|
1728
|
-
rules:
|
|
1730
|
+
rules: D({
|
|
1729
1731
|
kind: "anchor",
|
|
1730
1732
|
id: "id"
|
|
1731
1733
|
})
|
|
1732
|
-
}),
|
|
1733
|
-
props: { color:
|
|
1734
|
+
}), X = O("text", "inline", {
|
|
1735
|
+
props: { color: _.staticText({
|
|
1734
1736
|
required: !0,
|
|
1735
1737
|
color: !0
|
|
1736
1738
|
}) },
|
|
1737
|
-
structure:
|
|
1739
|
+
structure: E({
|
|
1738
1740
|
rule: "inline",
|
|
1739
1741
|
label: "none",
|
|
1740
1742
|
inlineOnly: !0,
|
|
1741
1743
|
noComponents: !0
|
|
1742
1744
|
}),
|
|
1743
|
-
rules:
|
|
1745
|
+
rules: D({
|
|
1744
1746
|
kind: "inline-body",
|
|
1745
1747
|
strict: !0
|
|
1746
1748
|
}, { kind: "no-components" })
|
|
1747
|
-
}),
|
|
1748
|
-
props: { color:
|
|
1749
|
+
}), ne = O("section", "container", {
|
|
1750
|
+
props: { color: _.staticText({
|
|
1749
1751
|
required: !0,
|
|
1750
1752
|
color: !0
|
|
1751
1753
|
}) },
|
|
1752
|
-
structure:
|
|
1754
|
+
structure: E({
|
|
1753
1755
|
rule: "any",
|
|
1754
1756
|
label: "none"
|
|
1755
1757
|
})
|
|
1756
|
-
}),
|
|
1758
|
+
}), Z = O("quiz", "container", {
|
|
1757
1759
|
props: {
|
|
1758
|
-
type:
|
|
1760
|
+
type: _.choice(["choice", "number"], {
|
|
1759
1761
|
static: !0,
|
|
1760
1762
|
default: "choice"
|
|
1761
1763
|
}),
|
|
1762
|
-
label:
|
|
1763
|
-
answer:
|
|
1764
|
-
explanation:
|
|
1765
|
-
tolerance:
|
|
1764
|
+
label: v(),
|
|
1765
|
+
answer: _.staticText({ required: !0 }),
|
|
1766
|
+
explanation: _.text(),
|
|
1767
|
+
tolerance: _.number({
|
|
1766
1768
|
min: 0,
|
|
1767
1769
|
default: 0
|
|
1768
1770
|
}),
|
|
1769
|
-
disabled:
|
|
1771
|
+
disabled: x()
|
|
1770
1772
|
},
|
|
1771
|
-
structure:
|
|
1773
|
+
structure: E({
|
|
1772
1774
|
rule: "quiz",
|
|
1773
1775
|
label: "required",
|
|
1774
1776
|
child: "option",
|
|
1775
1777
|
children: ["option"],
|
|
1776
|
-
max:
|
|
1778
|
+
max: e,
|
|
1777
1779
|
valueAttribute: "value"
|
|
1778
1780
|
}),
|
|
1779
|
-
rules:
|
|
1781
|
+
rules: D({
|
|
1780
1782
|
kind: "quiz-body",
|
|
1781
1783
|
type: "type",
|
|
1782
1784
|
answer: "answer",
|
|
1783
1785
|
tolerance: "tolerance",
|
|
1784
1786
|
child: "option",
|
|
1785
1787
|
valueAttribute: "value",
|
|
1786
|
-
max:
|
|
1788
|
+
max: e
|
|
1787
1789
|
}, {
|
|
1788
1790
|
kind: "nonempty",
|
|
1789
1791
|
attribute: "answer"
|
|
1790
1792
|
})
|
|
1791
|
-
}),
|
|
1793
|
+
}), re = O("panel", "container", {
|
|
1792
1794
|
props: {
|
|
1793
|
-
title:
|
|
1794
|
-
reset:
|
|
1795
|
+
title: b(),
|
|
1796
|
+
reset: _.boolean({ default: !0 })
|
|
1795
1797
|
},
|
|
1796
|
-
structure:
|
|
1798
|
+
structure: E({
|
|
1797
1799
|
rule: "any",
|
|
1798
1800
|
label: "none"
|
|
1799
1801
|
}),
|
|
1800
|
-
rules:
|
|
1802
|
+
rules: D({
|
|
1801
1803
|
kind: "self-binding-read",
|
|
1802
1804
|
mode: "always"
|
|
1803
1805
|
})
|
|
1804
|
-
}),
|
|
1805
|
-
props: { title:
|
|
1806
|
-
structure:
|
|
1806
|
+
}), ie = O("card", "container", {
|
|
1807
|
+
props: { title: b() },
|
|
1808
|
+
structure: E({
|
|
1807
1809
|
rule: "any",
|
|
1808
1810
|
label: "none"
|
|
1809
1811
|
})
|
|
1810
|
-
}),
|
|
1811
|
-
props: { columns:
|
|
1812
|
+
}), ae = O("grid", "container", {
|
|
1813
|
+
props: { columns: _.number({
|
|
1812
1814
|
integer: !0,
|
|
1813
1815
|
min: 1,
|
|
1814
1816
|
max: 4,
|
|
1815
1817
|
default: 2
|
|
1816
1818
|
}) },
|
|
1817
|
-
structure:
|
|
1819
|
+
structure: E({
|
|
1818
1820
|
rule: "components",
|
|
1819
1821
|
label: "none",
|
|
1820
1822
|
child: "card",
|
|
1821
1823
|
children: ["card"],
|
|
1822
1824
|
min: 1
|
|
1823
1825
|
}),
|
|
1824
|
-
rules:
|
|
1826
|
+
rules: D({
|
|
1825
1827
|
kind: "only-children",
|
|
1826
1828
|
children: ["card"],
|
|
1827
1829
|
min: 1
|
|
1828
1830
|
})
|
|
1829
|
-
}),
|
|
1831
|
+
}), oe = O("gallery", "container", {
|
|
1830
1832
|
props: {
|
|
1831
|
-
label:
|
|
1832
|
-
"item-width":
|
|
1833
|
+
label: v({ required: !0 }),
|
|
1834
|
+
"item-width": _.number({
|
|
1833
1835
|
dynamic: !0,
|
|
1834
1836
|
integer: !0,
|
|
1835
1837
|
default: 280,
|
|
@@ -1837,28 +1839,28 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1837
1839
|
max: 480
|
|
1838
1840
|
})
|
|
1839
1841
|
},
|
|
1840
|
-
structure:
|
|
1842
|
+
structure: E({
|
|
1841
1843
|
rule: "components",
|
|
1842
1844
|
label: "required",
|
|
1843
1845
|
child: "gallery-item",
|
|
1844
1846
|
children: ["gallery-item"],
|
|
1845
1847
|
min: 1
|
|
1846
1848
|
}),
|
|
1847
|
-
rules:
|
|
1849
|
+
rules: D({
|
|
1848
1850
|
kind: "only-children",
|
|
1849
1851
|
children: ["gallery-item"],
|
|
1850
1852
|
min: 1
|
|
1851
1853
|
})
|
|
1852
|
-
}),
|
|
1853
|
-
props: { label:
|
|
1854
|
-
structure:
|
|
1854
|
+
}), se = O("gallery-item", "container", {
|
|
1855
|
+
props: { label: y() },
|
|
1856
|
+
structure: E({
|
|
1855
1857
|
rule: "any",
|
|
1856
1858
|
label: "none"
|
|
1857
1859
|
})
|
|
1858
|
-
}),
|
|
1859
|
-
props: { label:
|
|
1860
|
-
bindings: { value:
|
|
1861
|
-
structure:
|
|
1860
|
+
}), ce = O("tabs", "container", {
|
|
1861
|
+
props: { label: y() },
|
|
1862
|
+
bindings: { value: C("string", "tabs", "first-tab", { exclusive: !0 }) },
|
|
1863
|
+
structure: E({
|
|
1862
1864
|
rule: "tabs",
|
|
1863
1865
|
label: "optional",
|
|
1864
1866
|
child: "tab",
|
|
@@ -1867,7 +1869,7 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1867
1869
|
valueAttribute: "value",
|
|
1868
1870
|
generatedPrefix: "tab-"
|
|
1869
1871
|
}),
|
|
1870
|
-
rules:
|
|
1872
|
+
rules: D({
|
|
1871
1873
|
kind: "value-sequence",
|
|
1872
1874
|
child: "tab",
|
|
1873
1875
|
valueAttribute: "value",
|
|
@@ -1875,20 +1877,20 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1875
1877
|
generatedPrefix: "tab-",
|
|
1876
1878
|
unique: !0
|
|
1877
1879
|
})
|
|
1878
|
-
}),
|
|
1880
|
+
}), le = O("tab", "container", {
|
|
1879
1881
|
props: {
|
|
1880
|
-
label:
|
|
1881
|
-
value:
|
|
1882
|
+
label: v(),
|
|
1883
|
+
value: _.staticText()
|
|
1882
1884
|
},
|
|
1883
|
-
structure:
|
|
1885
|
+
structure: E({
|
|
1884
1886
|
rule: "any",
|
|
1885
1887
|
label: "required",
|
|
1886
1888
|
parents: ["tabs"]
|
|
1887
1889
|
})
|
|
1888
|
-
}),
|
|
1889
|
-
props: { label:
|
|
1890
|
-
bindings: { value:
|
|
1891
|
-
structure:
|
|
1890
|
+
}), ue = O("steps", "container", {
|
|
1891
|
+
props: { label: y() },
|
|
1892
|
+
bindings: { value: C("string", "steps", "first-step", { exclusive: !0 }) },
|
|
1893
|
+
structure: E({
|
|
1892
1894
|
rule: "steps",
|
|
1893
1895
|
label: "optional",
|
|
1894
1896
|
child: "step",
|
|
@@ -1897,7 +1899,7 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1897
1899
|
valueAttribute: "value",
|
|
1898
1900
|
generatedPrefix: "step-"
|
|
1899
1901
|
}),
|
|
1900
|
-
rules:
|
|
1902
|
+
rules: D({
|
|
1901
1903
|
kind: "value-sequence",
|
|
1902
1904
|
child: "step",
|
|
1903
1905
|
valueAttribute: "value",
|
|
@@ -1905,72 +1907,73 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1905
1907
|
generatedPrefix: "step-",
|
|
1906
1908
|
unique: !0
|
|
1907
1909
|
})
|
|
1908
|
-
}),
|
|
1910
|
+
}), de = O("step", "container", {
|
|
1909
1911
|
props: {
|
|
1910
|
-
label:
|
|
1911
|
-
value:
|
|
1912
|
+
label: v(),
|
|
1913
|
+
value: _.staticText()
|
|
1912
1914
|
},
|
|
1913
|
-
structure:
|
|
1915
|
+
structure: E({
|
|
1914
1916
|
rule: "any",
|
|
1915
1917
|
label: "required",
|
|
1916
1918
|
parents: ["steps"]
|
|
1917
1919
|
})
|
|
1918
|
-
}),
|
|
1919
|
-
props: { label:
|
|
1920
|
-
structure:
|
|
1920
|
+
}), fe = O("accordion", "container", {
|
|
1921
|
+
props: { label: y() },
|
|
1922
|
+
structure: E({
|
|
1921
1923
|
rule: "components",
|
|
1922
1924
|
label: "optional",
|
|
1923
1925
|
child: "disclosure",
|
|
1924
1926
|
children: ["disclosure"],
|
|
1925
1927
|
min: 1
|
|
1926
1928
|
}),
|
|
1927
|
-
rules:
|
|
1929
|
+
rules: D({
|
|
1928
1930
|
kind: "only-children",
|
|
1929
1931
|
children: ["disclosure"],
|
|
1930
1932
|
min: 1
|
|
1931
1933
|
})
|
|
1932
|
-
}),
|
|
1934
|
+
}), pe = O("disclosure", "container", {
|
|
1933
1935
|
props: {
|
|
1934
|
-
label:
|
|
1935
|
-
open:
|
|
1936
|
+
label: v(),
|
|
1937
|
+
open: _.boolean({ default: !1 })
|
|
1936
1938
|
},
|
|
1937
|
-
structure:
|
|
1939
|
+
structure: E({
|
|
1938
1940
|
rule: "any",
|
|
1939
1941
|
label: "required",
|
|
1940
1942
|
parents: ["accordion"]
|
|
1941
1943
|
})
|
|
1942
|
-
}),
|
|
1943
|
-
props: { when:
|
|
1944
|
+
}), me = O("if", "container", {
|
|
1945
|
+
props: { when: _.boolean({
|
|
1944
1946
|
dynamic: !0,
|
|
1945
1947
|
required: !0
|
|
1946
1948
|
}) },
|
|
1947
|
-
structure:
|
|
1949
|
+
structure: E({
|
|
1948
1950
|
rule: "any",
|
|
1949
1951
|
label: "none"
|
|
1950
1952
|
}),
|
|
1951
|
-
rules:
|
|
1953
|
+
rules: D({
|
|
1952
1954
|
kind: "require-full-interpolation",
|
|
1953
1955
|
attributes: ["when"]
|
|
1954
1956
|
})
|
|
1955
|
-
}),
|
|
1957
|
+
}), he = O("alert", "container", {
|
|
1956
1958
|
props: {
|
|
1957
|
-
title:
|
|
1958
|
-
tone:
|
|
1959
|
+
title: b(),
|
|
1960
|
+
tone: _.choice([
|
|
1959
1961
|
"info",
|
|
1960
1962
|
"success",
|
|
1961
|
-
"warning"
|
|
1963
|
+
"warning",
|
|
1964
|
+
"error"
|
|
1962
1965
|
], {
|
|
1963
1966
|
dynamic: !0,
|
|
1964
1967
|
default: "info"
|
|
1965
1968
|
})
|
|
1966
1969
|
},
|
|
1967
|
-
structure:
|
|
1970
|
+
structure: E({
|
|
1968
1971
|
rule: "any",
|
|
1969
1972
|
label: "none"
|
|
1970
1973
|
})
|
|
1971
|
-
}),
|
|
1974
|
+
}), ge = O("badge", "inline", {
|
|
1972
1975
|
props: {
|
|
1973
|
-
tone:
|
|
1976
|
+
tone: _.choice([
|
|
1974
1977
|
"neutral",
|
|
1975
1978
|
"success",
|
|
1976
1979
|
"warning"
|
|
@@ -1978,44 +1981,44 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
1978
1981
|
dynamic: !0,
|
|
1979
1982
|
default: "neutral"
|
|
1980
1983
|
}),
|
|
1981
|
-
color:
|
|
1984
|
+
color: S()
|
|
1982
1985
|
},
|
|
1983
|
-
structure:
|
|
1986
|
+
structure: E({
|
|
1984
1987
|
rule: "inline",
|
|
1985
1988
|
label: "none",
|
|
1986
1989
|
inlineOnly: !0,
|
|
1987
1990
|
noComponents: !0
|
|
1988
1991
|
}),
|
|
1989
|
-
rules:
|
|
1992
|
+
rules: D({
|
|
1990
1993
|
kind: "inline-body",
|
|
1991
1994
|
strict: !0
|
|
1992
1995
|
}, { kind: "no-components" })
|
|
1993
|
-
}),
|
|
1994
|
-
props: { text:
|
|
1995
|
-
structure:
|
|
1996
|
+
}), _e = O("tooltip", "inline", {
|
|
1997
|
+
props: { text: _.text({ required: !0 }) },
|
|
1998
|
+
structure: E({
|
|
1996
1999
|
rule: "inline",
|
|
1997
2000
|
label: "none",
|
|
1998
2001
|
inlineOnly: !0,
|
|
1999
2002
|
noComponents: !0
|
|
2000
2003
|
}),
|
|
2001
|
-
rules:
|
|
2004
|
+
rules: D({
|
|
2002
2005
|
kind: "inline-body",
|
|
2003
2006
|
strict: !0
|
|
2004
2007
|
}, { kind: "no-components" })
|
|
2005
|
-
}),
|
|
2008
|
+
}), ve = O("validation", "leaf", {
|
|
2006
2009
|
props: {
|
|
2007
|
-
when:
|
|
2010
|
+
when: _.boolean({
|
|
2008
2011
|
dynamic: !0,
|
|
2009
2012
|
required: !0
|
|
2010
2013
|
}),
|
|
2011
|
-
message:
|
|
2012
|
-
fields:
|
|
2014
|
+
message: _.text({ required: !0 }),
|
|
2015
|
+
fields: _.staticText({ required: !0 })
|
|
2013
2016
|
},
|
|
2014
|
-
structure:
|
|
2017
|
+
structure: E({
|
|
2015
2018
|
rule: "none",
|
|
2016
2019
|
label: "none"
|
|
2017
2020
|
}),
|
|
2018
|
-
rules:
|
|
2021
|
+
rules: D({
|
|
2019
2022
|
kind: "validation-rule",
|
|
2020
2023
|
when: "when",
|
|
2021
2024
|
fields: "fields",
|
|
@@ -2027,19 +2030,19 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2027
2030
|
attributes: ["fields"],
|
|
2028
2031
|
scope: "validation"
|
|
2029
2032
|
})
|
|
2030
|
-
}),
|
|
2033
|
+
}), ye = O("data-table", "container", {
|
|
2031
2034
|
props: {
|
|
2032
|
-
label:
|
|
2033
|
-
rows:
|
|
2034
|
-
key:
|
|
2035
|
-
"max-rows":
|
|
2035
|
+
label: _.staticText(),
|
|
2036
|
+
rows: _.expressionText({ required: !0 }),
|
|
2037
|
+
key: _.expressionText({ required: !0 }),
|
|
2038
|
+
"max-rows": _.number({
|
|
2036
2039
|
integer: !0,
|
|
2037
2040
|
positive: !0,
|
|
2038
|
-
max:
|
|
2041
|
+
max: a,
|
|
2039
2042
|
default: 100
|
|
2040
2043
|
})
|
|
2041
2044
|
},
|
|
2042
|
-
structure:
|
|
2045
|
+
structure: E({
|
|
2043
2046
|
rule: "components",
|
|
2044
2047
|
label: "required",
|
|
2045
2048
|
child: "column",
|
|
@@ -2047,7 +2050,7 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2047
2050
|
min: 1,
|
|
2048
2051
|
max: 20
|
|
2049
2052
|
}),
|
|
2050
|
-
rules:
|
|
2053
|
+
rules: D({
|
|
2051
2054
|
kind: "data-table",
|
|
2052
2055
|
rows: "rows",
|
|
2053
2056
|
key: "key",
|
|
@@ -2056,8 +2059,8 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2056
2059
|
label: "label",
|
|
2057
2060
|
maxRows: "max-rows",
|
|
2058
2061
|
defaultMaxRows: 100,
|
|
2059
|
-
documentRows:
|
|
2060
|
-
documentCells:
|
|
2062
|
+
documentRows: s,
|
|
2063
|
+
documentCells: i,
|
|
2061
2064
|
maxColumns: 20
|
|
2062
2065
|
}, {
|
|
2063
2066
|
kind: "require-full-interpolation",
|
|
@@ -2073,17 +2076,17 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2073
2076
|
child: "column",
|
|
2074
2077
|
childValue: "value"
|
|
2075
2078
|
})
|
|
2076
|
-
}),
|
|
2079
|
+
}), be = O("column", "leaf", {
|
|
2077
2080
|
props: {
|
|
2078
|
-
label:
|
|
2079
|
-
value:
|
|
2081
|
+
label: _.staticText({ required: !0 }),
|
|
2082
|
+
value: _.expressionText({ required: !0 })
|
|
2080
2083
|
},
|
|
2081
|
-
structure:
|
|
2084
|
+
structure: E({
|
|
2082
2085
|
rule: "none",
|
|
2083
2086
|
label: "none",
|
|
2084
2087
|
parents: ["data-table"]
|
|
2085
2088
|
}),
|
|
2086
|
-
rules:
|
|
2089
|
+
rules: D({
|
|
2087
2090
|
kind: "require-full-interpolation",
|
|
2088
2091
|
attributes: ["value"]
|
|
2089
2092
|
}, {
|
|
@@ -2091,24 +2094,24 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2091
2094
|
attributes: ["value"],
|
|
2092
2095
|
scope: "row"
|
|
2093
2096
|
})
|
|
2094
|
-
}),
|
|
2097
|
+
}), xe = O("table", "container", {
|
|
2095
2098
|
props: {
|
|
2096
|
-
label:
|
|
2097
|
-
searchable:
|
|
2098
|
-
sortable:
|
|
2099
|
-
"page-size":
|
|
2099
|
+
label: y(),
|
|
2100
|
+
searchable: _.boolean({ default: !0 }),
|
|
2101
|
+
sortable: _.boolean({ default: !0 }),
|
|
2102
|
+
"page-size": _.number({
|
|
2100
2103
|
integer: !0,
|
|
2101
2104
|
positive: !0,
|
|
2102
2105
|
default: 10
|
|
2103
2106
|
}),
|
|
2104
|
-
key:
|
|
2107
|
+
key: _.staticText()
|
|
2105
2108
|
},
|
|
2106
|
-
bindings: { value:
|
|
2107
|
-
structure:
|
|
2109
|
+
bindings: { value: C("string", "selection", "none", { requiresAttributes: ["key"] }) },
|
|
2110
|
+
structure: E({
|
|
2108
2111
|
rule: "table",
|
|
2109
2112
|
label: "optional"
|
|
2110
2113
|
}),
|
|
2111
|
-
rules:
|
|
2114
|
+
rules: D({ kind: "single-table" }, {
|
|
2112
2115
|
kind: "selection-requires",
|
|
2113
2116
|
key: "key",
|
|
2114
2117
|
attributes: ["bind", "initial"]
|
|
@@ -2121,9 +2124,9 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2121
2124
|
mode: "attribute",
|
|
2122
2125
|
attribute: "key"
|
|
2123
2126
|
})
|
|
2124
|
-
}),
|
|
2127
|
+
}), Q = O("chart", "container", {
|
|
2125
2128
|
props: {
|
|
2126
|
-
kind:
|
|
2129
|
+
kind: _.choice([
|
|
2127
2130
|
"bar",
|
|
2128
2131
|
"line",
|
|
2129
2132
|
"area",
|
|
@@ -2134,19 +2137,19 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2134
2137
|
static: !0,
|
|
2135
2138
|
default: "bar"
|
|
2136
2139
|
}),
|
|
2137
|
-
title:
|
|
2138
|
-
x:
|
|
2139
|
-
y:
|
|
2140
|
-
"x-label":
|
|
2141
|
-
"y-label":
|
|
2142
|
-
key:
|
|
2143
|
-
},
|
|
2144
|
-
bindings: { value:
|
|
2145
|
-
structure:
|
|
2140
|
+
title: b(),
|
|
2141
|
+
x: _.staticText(),
|
|
2142
|
+
y: _.staticText(),
|
|
2143
|
+
"x-label": _.text(),
|
|
2144
|
+
"y-label": _.text(),
|
|
2145
|
+
key: _.staticText()
|
|
2146
|
+
},
|
|
2147
|
+
bindings: { value: C("string", "selection", "none", { requiresAttributes: ["key"] }) },
|
|
2148
|
+
structure: E({
|
|
2146
2149
|
rule: "table",
|
|
2147
2150
|
label: "none"
|
|
2148
2151
|
}),
|
|
2149
|
-
rules:
|
|
2152
|
+
rules: D({ kind: "single-table" }, {
|
|
2150
2153
|
kind: "chart-table",
|
|
2151
2154
|
chartKind: "kind",
|
|
2152
2155
|
x: "x",
|
|
@@ -2164,32 +2167,38 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2164
2167
|
mode: "attribute",
|
|
2165
2168
|
attribute: "key"
|
|
2166
2169
|
})
|
|
2167
|
-
}), Se =
|
|
2170
|
+
}), Se = O("plot", "container", {
|
|
2168
2171
|
props: {
|
|
2169
|
-
label:
|
|
2170
|
-
min:
|
|
2172
|
+
label: y(),
|
|
2173
|
+
min: _.number({
|
|
2171
2174
|
dynamic: !0,
|
|
2172
2175
|
default: -10
|
|
2173
2176
|
}),
|
|
2174
|
-
max:
|
|
2177
|
+
max: _.number({
|
|
2175
2178
|
dynamic: !0,
|
|
2176
2179
|
default: 10
|
|
2177
2180
|
}),
|
|
2178
|
-
samples:
|
|
2181
|
+
samples: _.number({
|
|
2179
2182
|
integer: !0,
|
|
2180
2183
|
min: 2,
|
|
2181
2184
|
max: 2e3,
|
|
2182
2185
|
static: !0,
|
|
2183
2186
|
default: 200
|
|
2184
2187
|
}),
|
|
2185
|
-
|
|
2186
|
-
|
|
2188
|
+
points: _.number({
|
|
2189
|
+
integer: !0,
|
|
2190
|
+
min: 2,
|
|
2191
|
+
max: 2e3,
|
|
2192
|
+
static: !0
|
|
2193
|
+
}),
|
|
2194
|
+
"x-label": _.text({ default: "x" }),
|
|
2195
|
+
"y-label": _.text({ default: "y" })
|
|
2187
2196
|
},
|
|
2188
|
-
structure:
|
|
2197
|
+
structure: E({
|
|
2189
2198
|
rule: "plot",
|
|
2190
2199
|
label: "optional"
|
|
2191
2200
|
}),
|
|
2192
|
-
rules:
|
|
2201
|
+
rules: D({ kind: "math-body" }, {
|
|
2193
2202
|
kind: "numeric-range",
|
|
2194
2203
|
min: "min",
|
|
2195
2204
|
max: "max",
|
|
@@ -2199,19 +2208,20 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2199
2208
|
min: "min",
|
|
2200
2209
|
max: "max",
|
|
2201
2210
|
samples: "samples",
|
|
2211
|
+
samplesAlias: "points",
|
|
2202
2212
|
curves: 16,
|
|
2203
|
-
points:
|
|
2213
|
+
points: o
|
|
2204
2214
|
}, { kind: "inline-math-reads" })
|
|
2205
|
-
}), Ce =
|
|
2215
|
+
}), Ce = O("timeline", "container", {
|
|
2206
2216
|
props: {
|
|
2207
|
-
title:
|
|
2208
|
-
unit:
|
|
2217
|
+
title: b(),
|
|
2218
|
+
unit: _.text({ default: "minutes" })
|
|
2209
2219
|
},
|
|
2210
|
-
structure:
|
|
2220
|
+
structure: E({
|
|
2211
2221
|
rule: "table",
|
|
2212
2222
|
label: "none"
|
|
2213
2223
|
}),
|
|
2214
|
-
rules:
|
|
2224
|
+
rules: D({ kind: "single-table" }, {
|
|
2215
2225
|
kind: "timeline-table",
|
|
2216
2226
|
headerSets: [[
|
|
2217
2227
|
"Task",
|
|
@@ -2225,23 +2235,23 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2225
2235
|
"说明"
|
|
2226
2236
|
]]
|
|
2227
2237
|
})
|
|
2228
|
-
}), we =
|
|
2238
|
+
}), we = O("diagram", "container", {
|
|
2229
2239
|
props: {
|
|
2230
|
-
label:
|
|
2231
|
-
direction:
|
|
2240
|
+
label: y(),
|
|
2241
|
+
direction: _.choice(["right", "down"], {
|
|
2232
2242
|
static: !0,
|
|
2233
2243
|
default: "right"
|
|
2234
2244
|
})
|
|
2235
2245
|
},
|
|
2236
|
-
bindings: { value:
|
|
2237
|
-
structure:
|
|
2246
|
+
bindings: { value: C("string", "diagram", "first-node", { exclusive: !0 }) },
|
|
2247
|
+
structure: E({
|
|
2238
2248
|
rule: "diagram",
|
|
2239
2249
|
label: "optional",
|
|
2240
2250
|
child: "node",
|
|
2241
2251
|
children: ["node", "edge"],
|
|
2242
2252
|
min: 1
|
|
2243
2253
|
}),
|
|
2244
|
-
rules:
|
|
2254
|
+
rules: D({
|
|
2245
2255
|
kind: "diagram-body",
|
|
2246
2256
|
node: "node",
|
|
2247
2257
|
edge: "edge",
|
|
@@ -2253,11 +2263,11 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2253
2263
|
kind: "self-binding-read",
|
|
2254
2264
|
mode: "always"
|
|
2255
2265
|
})
|
|
2256
|
-
}), Te =
|
|
2266
|
+
}), Te = O("node", "container", {
|
|
2257
2267
|
props: {
|
|
2258
|
-
id:
|
|
2259
|
-
label:
|
|
2260
|
-
tone:
|
|
2268
|
+
id: _.staticText({ required: !0 }),
|
|
2269
|
+
label: v(),
|
|
2270
|
+
tone: _.choice([
|
|
2261
2271
|
"neutral",
|
|
2262
2272
|
"success",
|
|
2263
2273
|
"warning"
|
|
@@ -2266,25 +2276,26 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2266
2276
|
default: "neutral"
|
|
2267
2277
|
})
|
|
2268
2278
|
},
|
|
2269
|
-
structure:
|
|
2279
|
+
structure: E({
|
|
2270
2280
|
rule: "content",
|
|
2271
2281
|
label: "required",
|
|
2272
2282
|
noComponents: !0,
|
|
2273
2283
|
parents: ["diagram"]
|
|
2274
2284
|
}),
|
|
2275
|
-
rules:
|
|
2276
|
-
}), Ee =
|
|
2285
|
+
rules: D({ kind: "no-components" })
|
|
2286
|
+
}), Ee = O("edge", "leaf", {
|
|
2277
2287
|
props: {
|
|
2278
|
-
from:
|
|
2279
|
-
to:
|
|
2280
|
-
label:
|
|
2288
|
+
from: _.staticText({ required: !0 }),
|
|
2289
|
+
to: _.staticText({ required: !0 }),
|
|
2290
|
+
label: y()
|
|
2281
2291
|
},
|
|
2282
|
-
structure:
|
|
2292
|
+
structure: E({
|
|
2283
2293
|
rule: "none",
|
|
2284
2294
|
label: "none",
|
|
2285
2295
|
parents: ["diagram"]
|
|
2286
2296
|
})
|
|
2287
2297
|
}), $ = Object.freeze([
|
|
2298
|
+
k,
|
|
2288
2299
|
A,
|
|
2289
2300
|
j,
|
|
2290
2301
|
M,
|
|
@@ -2293,7 +2304,7 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2293
2304
|
F,
|
|
2294
2305
|
I,
|
|
2295
2306
|
L,
|
|
2296
|
-
|
|
2307
|
+
z,
|
|
2297
2308
|
B,
|
|
2298
2309
|
V,
|
|
2299
2310
|
H,
|
|
@@ -2305,10 +2316,8 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2305
2316
|
J,
|
|
2306
2317
|
Y,
|
|
2307
2318
|
X,
|
|
2308
|
-
Z,
|
|
2309
|
-
te,
|
|
2310
|
-
Q,
|
|
2311
2319
|
ne,
|
|
2320
|
+
Z,
|
|
2312
2321
|
re,
|
|
2313
2322
|
ie,
|
|
2314
2323
|
ae,
|
|
@@ -2328,6 +2337,7 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2328
2337
|
ye,
|
|
2329
2338
|
be,
|
|
2330
2339
|
xe,
|
|
2340
|
+
Q,
|
|
2331
2341
|
Se,
|
|
2332
2342
|
Ce,
|
|
2333
2343
|
we,
|
|
@@ -2336,11 +2346,11 @@ var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select
|
|
|
2336
2346
|
]), De = Object.freeze($.map((e) => e.name));
|
|
2337
2347
|
// src/presets/default-components.ts
|
|
2338
2348
|
function Oe(e) {
|
|
2339
|
-
let t =
|
|
2340
|
-
return t ?
|
|
2349
|
+
let t = h(e.name);
|
|
2350
|
+
return t ? r({
|
|
2341
2351
|
...e,
|
|
2342
2352
|
authoring: t
|
|
2343
2353
|
}) : e;
|
|
2344
2354
|
}
|
|
2345
2355
|
var ke = Object.freeze($.map(Oe));
|
|
2346
|
-
export {
|
|
2356
|
+
export { d as a, ee as c, p as d, c as i, f as l, De as n, u as o, $ as r, m as s, ke as t, h as u };
|