reactive-md 0.9.2 → 0.10.0
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 +397 -333
- package/CHANGELOG.md +398 -334
- package/CONTRIBUTING-ch.md +22 -22
- package/CONTRIBUTING.md +22 -22
- package/README-ch.md +431 -431
- package/README-en.md +431 -431
- package/README.md +429 -429
- package/SECURITY-ch.md +83 -83
- package/SECURITY.md +83 -83
- package/THIRD_PARTY_NOTICES.md +0 -57
- package/bin/reactive-md.mjs +39 -39
- package/cli/args.mjs +263 -263
- package/cli/assets.mjs +395 -395
- package/cli/build.mjs +445 -445
- package/cli/check.mjs +444 -444
- package/cli/document.mjs +130 -130
- package/cli/errors.mjs +61 -61
- package/cli/fs-utils.mjs +133 -133
- package/cli/glob.mjs +203 -203
- package/cli/help.mjs +325 -323
- package/cli/init.mjs +1577 -1577
- package/cli/lint.mjs +177 -177
- package/cli/main.mjs +65 -65
- package/cli/migrate.mjs +368 -368
- package/cli/package-loader.mjs +41 -41
- package/cli/package.mjs +211 -211
- package/dist-library/LocalDocumentView-CP2QG86k.js +114 -0
- package/dist-library/{LocalDocumentViewCore-DXE0I0Qc.js → LocalDocumentViewCore-Cd6yMEkg.js} +379 -9445
- package/dist-library/LocalReactiveDocumentCore-VuYpZqdn.js +283 -0
- package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
- package/dist-library/authoring-Bwu_zCWs.js +768 -0
- package/dist-library/chart-B1TUtzm-.js +3 -0
- package/dist-library/choice-values-BItGjPD2.js +58 -0
- package/dist-library/color-values-r8Wf7ALn.js +6 -0
- package/dist-library/compile-B35rfzKr.js +1742 -0
- package/dist-library/compile-cache-key-D21X2Obx.js +28 -0
- package/dist-library/compiler-DBwLawMZ.js +98 -0
- package/dist-library/{compiler-core-DDDdvuLy.js → compiler-core-kkDiQ1RK.js} +4202 -3496
- package/dist-library/component-kernel-CsJSabHX.js +372 -0
- package/dist-library/{component-state-BRwvTV0d.js → component-state-Da0G8Ajc.js} +1 -1
- package/dist-library/component-utils-ZM3jUJNy.js +339 -0
- package/dist-library/conditional-branches-CIhJXasR.js +17 -0
- package/dist-library/config-validation-DbmsWAEV.js +469 -0
- package/dist-library/controls-DRy5rzzN.js +5970 -0
- package/dist-library/controls-DWlx-AQl.js +3 -0
- package/dist-library/{coordinate-B1VFK9fd.js → coordinate-c54pHfgf.js} +89 -89
- package/dist-library/data-BtFlkJzp.js +3 -0
- package/dist-library/data-table-CSAkm1eU.js +290 -0
- package/dist-library/data-table-model-DruztQFt.js +391 -0
- package/dist-library/data-visuals-rZQUeQM0.js +384 -0
- package/dist-library/{default-components-s21NevON.js → default-components-B-39etG9.js} +518 -355
- package/dist-library/{config-DXLvctiZ.js → default-config-CCa8rm2k.js} +265 -230
- package/dist-library/default-options-By16CVw1.js +131 -0
- package/dist-library/{registry-D6OGkOcX.js → default-registry-DXJy66xj.js} +4 -4
- package/dist-library/default-schema-CeYiEW1K.js +33 -0
- package/dist-library/diagram-BLepzI8l.js +3 -0
- package/dist-library/display-Bb6hAG5T.js +2065 -0
- package/dist-library/dist-Cueh1Psp.js +4761 -0
- package/dist-library/{document-theme-C8J6UyNO.js → document-theme-CJvN-nC1.js} +246 -4
- package/dist-library/{export-CIAIPBov.js → export-BSV4E0jv.js} +135 -135
- package/dist-library/font-aliases-CKYjwn4o.js +4 -0
- package/dist-library/gallery-BC6FYTqw.js +3 -0
- package/dist-library/{gallery-Dv1rOvL0.js → gallery-DM2yTVZJ.js} +1 -1
- package/dist-library/{html-Cr4CBwAH.js → html-CY9mC3Sr.js} +49 -48
- package/dist-library/{incremental-9nx92u9c.js → incremental-B-wW4H3F.js} +537 -384
- package/dist-library/{display-B_uutKkN.js → katex-4ukd4ZxT.js} +1555 -3618
- package/dist-library/layout-CPQggKxk.js +592 -0
- package/dist-library/layout-CaDWsDof.js +3 -0
- package/dist-library/limits-CFERRrlC.js +10 -0
- package/dist-library/localization-COdJ6lw2.js +6 -0
- package/dist-library/mafs-CnzDC5CR.js +3 -0
- package/dist-library/math-view-CyGTS6kv.js +20 -0
- package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
- package/dist-library/mount-preset-DtrCX4G8.js +24 -0
- package/dist-library/numeric-sliders-BmJ1LCLx.js +542 -0
- package/dist-library/{observability-4KqXhIEU.js → observability-BVQ16ByQ.js} +125 -43
- package/dist-library/package-core-Cu_r_qs7.js +128 -0
- package/dist-library/parser-BHl9Lxbw.js +8 -0
- package/dist-library/parser-standard-DDAKv_DZ.js +4872 -0
- package/dist-library/plugin-packs-CkI0floL.js +19 -0
- package/dist-library/preset-core-BKPbH_Nv.js +1371 -0
- package/dist-library/props-0iDqxlTk.js +174 -0
- package/dist-library/react-74jdGBmu.js +32 -0
- package/dist-library/reactive-md-authoring.js +315 -296
- package/dist-library/reactive-md-build.js +334 -43
- package/dist-library/reactive-md-compiler-session.js +4 -0
- package/dist-library/reactive-md-compiler-standard.js +10 -10
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-contracts.js +6 -0
- package/dist-library/reactive-md-default-packs.js +32 -15
- package/dist-library/reactive-md-default-preset.js +7 -7
- package/dist-library/reactive-md-export.js +6 -5
- package/dist-library/reactive-md-minimal-preset.js +3 -2
- package/dist-library/reactive-md-minimal-react-preset.js +26 -23
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +125 -3
- package/dist-library/reactive-md-pack-style-manifest.js +805 -0
- package/dist-library/reactive-md-plugin-chart.js +14 -9
- package/dist-library/reactive-md-plugin-data.js +8 -8
- package/dist-library/reactive-md-plugin-diagram.js +7 -6
- package/dist-library/reactive-md-plugin-forms.js +14 -13
- package/dist-library/reactive-md-plugin-gallery.js +6 -5
- package/dist-library/reactive-md-plugin-navigation.js +8 -8
- package/dist-library/reactive-md-plugin-network.js +13 -13
- package/dist-library/reactive-md-plugin-plot.js +7 -6
- package/dist-library/reactive-md-print.css +304 -304
- package/dist-library/reactive-md-react-component-accordion.js +10 -0
- package/dist-library/reactive-md-react-component-alert.js +10 -0
- package/dist-library/reactive-md-react-component-anchor.js +10 -0
- package/dist-library/reactive-md-react-component-badge.js +10 -0
- package/dist-library/reactive-md-react-component-card.js +10 -0
- package/dist-library/reactive-md-react-component-chart.js +22 -0
- package/dist-library/reactive-md-react-component-checkbox.js +10 -0
- package/dist-library/reactive-md-react-component-checklist.js +10 -0
- package/dist-library/reactive-md-react-component-choices.js +10 -0
- package/dist-library/reactive-md-react-component-column.js +6 -0
- package/dist-library/reactive-md-react-component-coordinate.js +21 -0
- package/dist-library/reactive-md-react-component-counter.js +10 -0
- package/dist-library/reactive-md-react-component-data-table.js +14 -0
- package/dist-library/reactive-md-react-component-date.js +10 -0
- package/dist-library/reactive-md-react-component-diagram.js +22 -0
- package/dist-library/reactive-md-react-component-disclosure.js +10 -0
- package/dist-library/reactive-md-react-component-edge.js +22 -0
- package/dist-library/reactive-md-react-component-else.js +10 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
- package/dist-library/reactive-md-react-component-gallery.js +10 -0
- package/dist-library/reactive-md-react-component-grid.js +10 -0
- package/dist-library/reactive-md-react-component-if.js +10 -0
- package/dist-library/reactive-md-react-component-input.js +10 -0
- package/dist-library/reactive-md-react-component-jump.js +10 -0
- package/dist-library/reactive-md-react-component-multi-select.js +10 -0
- package/dist-library/reactive-md-react-component-node.js +22 -0
- package/dist-library/reactive-md-react-component-number.js +10 -0
- package/dist-library/reactive-md-react-component-option.js +10 -0
- package/dist-library/reactive-md-react-component-panel.js +10 -0
- package/dist-library/reactive-md-react-component-plot.js +26 -0
- package/dist-library/reactive-md-react-component-progress.js +10 -0
- package/dist-library/reactive-md-react-component-quiz.js +10 -0
- package/dist-library/reactive-md-react-component-radio-group.js +10 -0
- package/dist-library/reactive-md-react-component-range-slider.js +10 -0
- package/dist-library/reactive-md-react-component-section.js +10 -0
- package/dist-library/reactive-md-react-component-select.js +10 -0
- package/dist-library/reactive-md-react-component-slider.js +10 -0
- package/dist-library/reactive-md-react-component-step.js +10 -0
- package/dist-library/reactive-md-react-component-steps.js +10 -0
- package/dist-library/reactive-md-react-component-tab.js +10 -0
- package/dist-library/reactive-md-react-component-table.js +14 -0
- package/dist-library/reactive-md-react-component-tabs.js +10 -0
- package/dist-library/reactive-md-react-component-text.js +10 -0
- package/dist-library/reactive-md-react-component-textarea.js +10 -0
- package/dist-library/reactive-md-react-component-timeline.js +14 -0
- package/dist-library/reactive-md-react-component-timer.js +10 -0
- package/dist-library/reactive-md-react-component-toggle.js +10 -0
- package/dist-library/reactive-md-react-component-tooltip.js +10 -0
- package/dist-library/reactive-md-react-component-validation.js +10 -0
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +44 -0
- package/dist-library/reactive-md-react-pack-data.js +21 -0
- package/dist-library/reactive-md-react-pack-layout.js +37 -0
- package/dist-library/reactive-md-react-pack-visuals.js +43 -0
- package/dist-library/reactive-md-react-packed.js +50 -0
- package/dist-library/reactive-md-react-server.js +29 -27
- package/dist-library/reactive-md-react-static-server.js +24 -0
- package/dist-library/reactive-md-react-static.js +1 -0
- package/dist-library/reactive-md-react-unstyled.js +15 -12
- package/dist-library/reactive-md-react.js +15 -12
- package/dist-library/reactive-md-scan.js +1 -0
- package/dist-library/reactive-md-sdk.js +23 -9
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +32 -32
- package/dist-library/reactive-md-testing.js +12 -12
- package/dist-library/reactive-md-vite.js +25 -9
- package/dist-library/reactive-md-worker-pool.js +401 -0
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +97 -1554
- package/dist-library/registry-core-DxEaxhJ6.js +126 -0
- package/dist-library/render-nodes-B6j6Ip5I.js +9404 -0
- package/dist-library/requirements-C56sFIEs.js +157 -0
- package/dist-library/resources-6VaNgk-h.js +74 -0
- package/dist-library/rmd-pack-controls.css +1032 -0
- package/dist-library/rmd-pack-data.css +724 -0
- package/dist-library/rmd-pack-layout.css +1834 -0
- package/dist-library/rmd-pack-resource-chart.css +300 -0
- package/dist-library/rmd-pack-resource-controls.css +781 -0
- package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
- package/dist-library/rmd-pack-resource-diagram.css +106 -0
- package/dist-library/rmd-pack-resource-gallery.css +346 -0
- package/dist-library/rmd-pack-resource-graphics.css +516 -0
- package/dist-library/rmd-pack-resource-layout.css +1489 -0
- package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
- package/dist-library/rmd-pack-resource-mafs.css +129 -0
- package/dist-library/rmd-pack-resource-visual-base.css +224 -0
- package/dist-library/rmd-pack-visuals.css +1394 -0
- package/dist-library/runtime-BHeuLOv_.js +1369 -0
- package/dist-library/runtime-requirement-DzPO8raU.js +772 -0
- package/dist-library/schema-core-CDXfxdID.js +155 -0
- package/dist-library/sdk-core-CnE-n0Z7.js +1295 -0
- package/dist-library/{session-core-dxQCJBNa.js → session-core-C071yQwV.js} +147 -133
- package/dist-library/sha256-utf16-Bmandi_H.js +937 -0
- package/dist-library/shareable-CHCDnl6j.js +844 -0
- package/dist-library/shared-bTzN-F4g.js +3 -0
- package/dist-library/structural-views-30-YD_TJ.js +11 -0
- package/dist-library/table-surface-CfZn_tk-.js +13 -0
- package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
- package/dist-library/types/assemblies/default-config.d.ts +35 -0
- package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
- package/dist-library/types/assemblies/default-registry.d.ts +18 -0
- package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
- package/dist-library/types/authoring/catalog.d.ts +14 -2
- package/dist-library/types/authoring/extensions.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +4 -4
- package/dist-library/types/authoring/templates.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +1 -0
- package/dist-library/types/compiler/session.d.ts +19 -0
- package/dist-library/types/compiler/standard.d.ts +1 -0
- package/dist-library/types/components/chart/default-chart-types.d.ts +3 -0
- package/dist-library/types/components/chart/default-chart.d.ts +7 -0
- package/dist-library/types/components/entries/accordion.d.ts +3 -0
- package/dist-library/types/components/entries/alert.d.ts +3 -0
- package/dist-library/types/components/entries/anchor.d.ts +3 -0
- package/dist-library/types/components/entries/badge.d.ts +3 -0
- package/dist-library/types/components/entries/card.d.ts +3 -0
- package/dist-library/types/components/entries/chart.d.ts +3 -0
- package/dist-library/types/components/entries/checkbox.d.ts +3 -0
- package/dist-library/types/components/entries/checklist.d.ts +3 -0
- package/dist-library/types/components/entries/choices.d.ts +3 -0
- package/dist-library/types/components/entries/column.d.ts +3 -0
- package/dist-library/types/components/entries/coordinate.d.ts +3 -0
- package/dist-library/types/components/entries/counter.d.ts +3 -0
- package/dist-library/types/components/entries/data-table.d.ts +3 -0
- package/dist-library/types/components/entries/date.d.ts +3 -0
- package/dist-library/types/components/entries/diagram.d.ts +3 -0
- package/dist-library/types/components/entries/disclosure.d.ts +3 -0
- package/dist-library/types/components/entries/edge.d.ts +3 -0
- package/dist-library/types/components/entries/else.d.ts +3 -0
- package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
- package/dist-library/types/components/entries/gallery.d.ts +3 -0
- package/dist-library/types/components/entries/grid.d.ts +3 -0
- package/dist-library/types/components/entries/if.d.ts +3 -0
- package/dist-library/types/components/entries/input.d.ts +3 -0
- package/dist-library/types/components/entries/jump.d.ts +3 -0
- package/dist-library/types/components/entries/multi-select.d.ts +3 -0
- package/dist-library/types/components/entries/node.d.ts +3 -0
- package/dist-library/types/components/entries/number.d.ts +3 -0
- package/dist-library/types/components/entries/option.d.ts +3 -0
- package/dist-library/types/components/entries/panel.d.ts +3 -0
- package/dist-library/types/components/entries/plot.d.ts +3 -0
- package/dist-library/types/components/entries/progress.d.ts +3 -0
- package/dist-library/types/components/entries/quiz.d.ts +3 -0
- package/dist-library/types/components/entries/radio-group.d.ts +3 -0
- package/dist-library/types/components/entries/range-slider.d.ts +3 -0
- package/dist-library/types/components/entries/section.d.ts +3 -0
- package/dist-library/types/components/entries/select.d.ts +3 -0
- package/dist-library/types/components/entries/slider.d.ts +3 -0
- package/dist-library/types/components/entries/step.d.ts +3 -0
- package/dist-library/types/components/entries/steps.d.ts +3 -0
- package/dist-library/types/components/entries/tab.d.ts +3 -0
- package/dist-library/types/components/entries/table.d.ts +3 -0
- package/dist-library/types/components/entries/tabs.d.ts +3 -0
- package/dist-library/types/components/entries/text.d.ts +3 -0
- package/dist-library/types/components/entries/textarea.d.ts +3 -0
- package/dist-library/types/components/entries/timeline.d.ts +3 -0
- package/dist-library/types/components/entries/timer.d.ts +3 -0
- package/dist-library/types/components/entries/toggle.d.ts +3 -0
- package/dist-library/types/components/entries/tooltip.d.ts +3 -0
- package/dist-library/types/components/entries/validation.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +6 -3
- package/dist-library/types/components/layout/structural-views.d.ts +3 -0
- package/dist-library/types/components/mount-preset.d.ts +2 -0
- package/dist-library/types/components/packs/controls.d.ts +2 -0
- package/dist-library/types/components/packs/data.d.ts +2 -0
- package/dist-library/types/components/packs/layout.d.ts +2 -0
- package/dist-library/types/components/packs/visuals.d.ts +2 -0
- package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
- package/dist-library/types/components/shared/table-surface.d.ts +10 -0
- package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
- package/dist-library/types/components/shared/visuals.d.ts +1 -3
- package/dist-library/types/components/table/data-table-model.d.ts +141 -0
- package/dist-library/types/components/table/data-table.d.ts +3 -50
- package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +9 -2
- package/dist-library/types/contracts/font-aliases.d.ts +18 -0
- package/dist-library/types/contracts/index.d.ts +8 -0
- package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
- package/dist-library/types/contracts/localization.d.ts +6 -0
- package/dist-library/types/contracts/number-literal.d.ts +2 -0
- package/dist-library/types/contracts/runtime-types.d.ts +19 -0
- package/dist-library/types/contracts/sha256-utf16.d.ts +2 -0
- package/dist-library/types/export/index.d.ts +4 -1
- package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
- package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
- package/dist-library/types/local/compilation/compiler-choices.d.ts +4 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
- package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +17 -5
- package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
- package/dist-library/types/local/compilation/compiler-structure.d.ts +9 -3
- package/dist-library/types/local/compilation/compiler-tables.d.ts +4 -2
- package/dist-library/types/local/compilation/compiler-validation.d.ts +14 -7
- package/dist-library/types/local/compilation/compiler-values.d.ts +2 -3
- package/dist-library/types/local/compilation/compiler.d.ts +1 -1
- package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
- package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
- package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
- package/dist-library/types/local/compilation/streaming.d.ts +1 -1
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +228 -2
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
- package/dist-library/types/local/configuration/embedding.d.ts +4 -0
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
- package/dist-library/types/local/configuration/options-core.d.ts +8 -2
- package/dist-library/types/local/evaluation/choice-values.d.ts +22 -0
- package/dist-library/types/local/evaluation/computations.d.ts +13 -5
- package/dist-library/types/local/evaluation/dataset.d.ts +4 -0
- package/dist-library/types/local/evaluation/expression/collection-functions.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/compile.d.ts +11 -4
- package/dist-library/types/local/evaluation/expression/data-functions.d.ts +23 -0
- package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -1
- package/dist-library/types/local/evaluation/expression/internal-names.d.ts +8 -0
- package/dist-library/types/local/evaluation/expression/syntax.d.ts +19 -2
- package/dist-library/types/local/evaluation/expression/transform-budget.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/values.d.ts +9 -1
- package/dist-library/types/local/evaluation/validation.d.ts +8 -6
- package/dist-library/types/local/index.d.ts +10 -4
- package/dist-library/types/local/observability-core.d.ts +20 -1
- package/dist-library/types/local/observability.d.ts +2 -0
- package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
- package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
- package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
- package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
- package/dist-library/types/local/performance-report.d.ts +70 -0
- package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -0
- package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
- package/dist-library/types/local/runtime/runtime.d.ts +3 -1
- package/dist-library/types/local/runtime/state.d.ts +30 -15
- package/dist-library/types/local/source/authoring-requirements.d.ts +3 -0
- package/dist-library/types/local/source/authoring-syntax.d.ts +3 -2
- package/dist-library/types/local/source/authoring.d.ts +10 -0
- package/dist-library/types/local/source/source-migration.d.ts +1 -0
- package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
- package/dist-library/types/local/transport/worker-job.d.ts +12 -2
- package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
- package/dist-library/types/local/transport/worker.d.ts +14 -0
- package/dist-library/types/local/types.d.ts +70 -27
- package/dist-library/types/observability.d.ts +1 -0
- package/dist-library/types/presets/default-semantics.d.ts +1 -1
- package/dist-library/types/presets/identity.d.ts +1 -8
- package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
- package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
- package/dist-library/types/react/component-api.d.ts +24 -4
- package/dist-library/types/react/component-loader.d.ts +61 -0
- package/dist-library/types/react/component-primitives.d.ts +5 -5
- package/dist-library/types/react/component-utils.d.ts +11 -0
- package/dist-library/types/react/font-aliases.d.ts +2 -0
- package/dist-library/types/react/index.d.ts +9 -5
- package/dist-library/types/react/localization.d.ts +5 -6
- package/dist-library/types/react/minimal.d.ts +2 -2
- package/dist-library/types/react/package-core.d.ts +6 -0
- package/dist-library/types/react/packed.d.ts +17 -0
- package/dist-library/types/react/render-lifecycle.d.ts +9 -0
- package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
- package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
- package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
- package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
- package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
- package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
- package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
- package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
- package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +3 -3
- package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
- package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +5 -14
- package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
- package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
- package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
- package/dist-library/types/react/sdk-core.d.ts +15 -4
- package/dist-library/types/react/sdk.d.ts +2 -1
- package/dist-library/types/react/server.d.ts +3 -10
- package/dist-library/types/react/static-server.d.ts +12 -0
- package/dist-library/types/scan/index.d.ts +15 -0
- package/dist-library/types/sdk/assembly.d.ts +3 -0
- package/dist-library/types/sdk/config.d.ts +2 -35
- package/dist-library/types/sdk/default-identity.d.ts +3 -0
- package/dist-library/types/sdk/font.d.ts +13 -0
- package/dist-library/types/sdk/index.d.ts +2 -1
- package/dist-library/types/sdk/preset.d.ts +9 -0
- package/dist-library/types/sdk/props.d.ts +8 -3
- package/dist-library/types/sdk/registry-core.d.ts +2 -2
- package/dist-library/types/sdk/registry.d.ts +2 -18
- package/dist-library/types/sdk/theme.d.ts +5 -0
- package/dist-library/types/sdk/types.d.ts +8 -2
- package/dist-library/types/sdk/version.d.ts +2 -0
- package/dist-library/types/shareable.d.ts +15 -3
- package/dist-library/types/standalone/prepare.d.ts +4 -2
- package/dist-library/types/standalone/session-core.d.ts +5 -2
- package/dist-library/types/vite/index.d.ts +3 -0
- package/dist-library/types/vite/registration.d.ts +1 -0
- package/dist-library/{types-Ib5kSScP.js → types-B4qG8J4S.js} +1 -1
- package/dist-library/types-FYhRWRn9.js +3 -0
- package/dist-library/use-hydrated-D1gFY2Dq.js +2655 -0
- package/dist-library/validation-DRuW0Wl9.js +433 -0
- package/dist-library/{version-DAxuGOG2.js → version-4wzhbvDG.js} +24 -33
- package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
- package/dist-library/visual-helpers-UU6xiL8g.js +75 -0
- package/dist-library/visuals-7xzoL9ql.js +49340 -0
- package/dist-library/visuals-CdHezgh5.js +3 -0
- package/dist-library/worker-3ldRjOEG.js +1632 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +127 -366
- package/docs/README-ch.md +104 -101
- package/docs/README.md +104 -101
- package/docs/compatibility/api-stability-ch.md +1 -1
- package/docs/compatibility/api-stability-en.md +1 -1
- package/docs/compatibility/compatibility-ch.md +146 -146
- package/docs/compatibility/compatibility-en.md +146 -146
- package/docs/compatibility/compatibility-manifest.schema.json +3 -2
- package/docs/compatibility/deprecation-ch.md +2 -2
- package/docs/compatibility/deprecation-en.md +2 -2
- package/docs/compatibility/source-versioning-ch.md +170 -162
- package/docs/compatibility/source-versioning-en.md +171 -162
- package/docs/compatibility/support-matrix-ch.md +4 -3
- package/docs/compatibility/support-matrix-en.md +4 -3
- package/docs/development/component-development-ch.md +66 -66
- package/docs/development/component-development-en.md +66 -66
- package/docs/development/component-development-reference-ch.md +269 -253
- package/docs/development/component-development-reference-en.md +254 -238
- package/docs/development/component-protocol-ch.md +768 -748
- package/docs/development/component-protocol-en.md +770 -750
- package/docs/development/extension-tutorial-ch.md +308 -308
- package/docs/development/extension-tutorial-en.md +308 -308
- package/docs/development/performance-overview-ch.md +422 -422
- package/docs/development/performance-overview-en.md +422 -422
- package/docs/guides/local-guide-ch.md +621 -532
- package/docs/guides/local-guide-en.md +621 -532
- package/docs/integration/author-tools-ch.md +66 -64
- package/docs/integration/author-tools-en.md +66 -64
- package/docs/integration/compiler-ch.md +90 -49
- package/docs/integration/compiler-en.md +77 -36
- package/docs/integration/directory-discovery-en.md +1 -1
- package/docs/integration/editor-ch.md +295 -295
- package/docs/integration/editor-en.md +303 -303
- package/docs/integration/extension-sdk-ch.md +424 -394
- package/docs/integration/extension-sdk-en.md +409 -379
- package/docs/integration/local-integration-ch.md +648 -646
- package/docs/integration/local-integration-en.md +664 -662
- package/docs/integration/pdf-export-ch.md +42 -0
- package/docs/integration/pdf-export-en.md +42 -0
- package/docs/integration/shareable-export-ch.md +299 -307
- package/docs/integration/shareable-export-en.md +301 -309
- package/docs/reference/diagnostics-counting-ch.md +127 -104
- package/docs/reference/diagnostics-counting-en.md +127 -104
- package/docs/reference/html-compatibility-ch.md +93 -93
- package/docs/reference/html-compatibility-en.md +95 -95
- package/docs/reference/local-interaction-syntax-ch.md +913 -724
- package/docs/reference/local-interaction-syntax-en.md +911 -722
- package/docs/reference/public-api-ch.md +134 -21
- package/docs/reference/public-api-en.md +134 -21
- package/docs/reference/theme-protocol-ch.md +198 -198
- package/docs/reference/theme-protocol-en.md +217 -217
- package/docs/releases/release-0.10.0-ch.md +45 -0
- package/docs/releases/release-0.10.0-en.md +45 -0
- package/docs/releases/release-0.4.0-ch.md +91 -91
- package/docs/releases/release-0.4.0-en.md +91 -91
- package/docs/releases/release-0.4.1-ch.md +25 -25
- package/docs/releases/release-0.4.1-en.md +25 -25
- package/docs/releases/release-0.5.0-ch.md +43 -43
- package/docs/releases/release-0.5.0-en.md +43 -43
- package/docs/releases/release-0.5.1-ch.md +41 -41
- package/docs/releases/release-0.5.1-en.md +41 -41
- package/docs/releases/release-0.5.2-ch.md +37 -37
- package/docs/releases/release-0.5.2-en.md +37 -37
- package/docs/releases/release-0.5.3-ch.md +26 -26
- package/docs/releases/release-0.5.3-en.md +26 -26
- package/docs/releases/release-0.6.0-ch.md +59 -59
- package/docs/releases/release-0.6.0-en.md +59 -59
- package/docs/releases/release-0.6.1-ch.md +29 -29
- package/docs/releases/release-0.6.1-en.md +29 -29
- package/docs/releases/release-0.7.0-ch.md +86 -86
- package/docs/releases/release-0.7.0-en.md +86 -86
- package/docs/releases/release-0.9.3-ch.md +45 -0
- package/docs/releases/release-0.9.3-en.md +45 -0
- package/examples/component-package/README-ch.md +101 -101
- package/examples/component-package/README.md +133 -133
- package/examples/conformance/README-ch.md +55 -55
- package/examples/conformance/README.md +55 -55
- package/examples/conformance/component-protocol-1.json +482 -482
- package/examples/conformance/component-protocol-1.schema.json +76 -76
- package/examples/conformance/local-draft-1.json +50 -50
- package/examples/conformance/local-draft-2.json +212 -212
- package/examples/conformance/local-draft-4.json +441 -0
- package/examples/game-2048-package/LICENSE +21 -21
- package/examples/game-2048-package/NOTICES.md +11 -11
- package/examples/game-2048-package/README-ch.md +91 -91
- package/examples/game-2048-package/README.md +98 -98
- package/examples/game-2048-package/package.json +35 -35
- package/examples/game-2048-package/sample/document.reactive.md +17 -17
- package/examples/game-2048-package/scripts/build-export.mjs +44 -44
- package/examples/game-2048-package/scripts/build.mjs +130 -130
- package/examples/game-2048-package/scripts/verify.mjs +180 -180
- package/examples/game-2048-package/src/component.css +161 -161
- package/examples/game-2048-package/src/components.tsx +326 -326
- package/examples/game-2048-package/src/game-engine.ts +228 -228
- package/examples/game-2048-package/src/harness.tsx +34 -34
- package/examples/game-2048-package/src/manifest.ts +85 -85
- package/examples/game-2048-package/src/node-entry.ts +30 -30
- package/examples/game-2048-package/src/sample.ts +4 -4
- package/examples/game-2048-package/tsconfig.json +15 -15
- package/examples/integration/README-ch.md +114 -82
- package/examples/integration/README.md +114 -82
- package/examples/integration/chat-session/index.mjs +91 -0
- package/examples/integration/chat-session/package.json +10 -0
- package/examples/integration/core/index.mjs +32 -32
- package/examples/integration/extension-sdk/README-ch.md +24 -24
- package/examples/integration/extension-sdk/README.md +24 -24
- package/examples/integration/static-embed/embed.mjs +44 -0
- package/examples/integration/static-embed/index.html +12 -0
- package/examples/integration/static-embed/main.mjs +24 -0
- package/examples/integration/static-embed/references.mjs +5 -0
- package/examples/integration/static-embed/render.mjs +10 -0
- package/examples/integration/worker/index.html +19 -19
- package/examples/integration/worker/main.js +61 -61
- package/examples/integration/worker/package.json +13 -13
- package/examples/integration/worker/worker.js +3 -3
- package/examples/local/README-ch.md +76 -76
- package/examples/local/README.md +76 -76
- package/examples/local/charts.reactive.md +73 -73
- package/examples/local/recipes/invoice-zh.reactive.md +36 -36
- package/examples/local/recipes/invoice.reactive.md +36 -36
- package/examples/local/recipes/workshop-zh.reactive.md +33 -33
- package/examples/local/recipes/workshop.reactive.md +33 -33
- package/examples/local/showcase/README-ch.md +22 -22
- package/examples/local/showcase/README.md +31 -31
- package/examples/local/showcase/explore.reactive.md +102 -102
- package/examples/local/showcase/flow.reactive.md +86 -86
- package/examples/local/showcase/forms.reactive.md +126 -126
- package/examples/local/showcase/functions.reactive.md +119 -119
- package/examples/local/showcase/layout.reactive.md +100 -100
- package/examples/local/showcase/statistics.reactive.md +108 -108
- package/examples/local/showcase/tasks.reactive.md +89 -89
- package/examples/local/showcase/zh/explore.reactive.md +102 -102
- package/examples/local/showcase/zh/flow.reactive.md +86 -86
- package/examples/local/showcase/zh/forms.reactive.md +126 -126
- package/examples/local/showcase/zh/functions.reactive.md +119 -119
- package/examples/local/showcase/zh/layout.reactive.md +100 -100
- package/examples/local/showcase/zh/statistics.reactive.md +108 -108
- package/examples/local/showcase/zh/tasks.reactive.md +89 -89
- package/examples/minimal-extension/README-ch.md +78 -78
- package/examples/minimal-extension/README.md +78 -78
- package/examples/minimal-extension/index.html +15 -15
- package/examples/minimal-extension/package.json +26 -26
- package/examples/minimal-extension/sample/document.reactive.md +10 -10
- package/examples/minimal-extension/scripts/build.mjs +32 -32
- package/examples/minimal-extension/scripts/export.mjs +72 -72
- package/examples/minimal-extension/scripts/test-node.mjs +75 -75
- package/examples/minimal-extension/src/extension.tsx +90 -90
- package/examples/minimal-extension/src/preview.tsx +12 -12
- package/examples/minimal-extension/src/source.ts +4 -4
- package/examples/minimal-extension/tsconfig.json +14 -14
- package/examples/sci-fi-theme/README-ch.md +133 -133
- package/examples/sci-fi-theme/README.md +148 -148
- package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -454
- package/examples/sci-fi-theme/demo/demo.css +638 -638
- package/examples/sci-fi-theme/demo/document.reactive.md +206 -206
- package/examples/sci-fi-theme/demo/index.html +13 -13
- package/examples/sci-fi-theme/demo/main.tsx +215 -215
- package/examples/sci-fi-theme/docs/design-system-ch.md +245 -245
- package/examples/sci-fi-theme/docs/design-system.md +474 -474
- package/examples/sci-fi-theme/package.json +28 -28
- package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -98
- package/examples/sci-fi-theme/src/components.css +2370 -2370
- package/examples/sci-fi-theme/src/index.ts +6 -6
- package/examples/sci-fi-theme/src/notch.css +142 -142
- package/examples/sci-fi-theme/src/sci-fi.css +7 -7
- package/examples/sci-fi-theme/src/theme.ts +39 -39
- package/examples/sci-fi-theme/tsconfig.json +20 -20
- package/examples/sci-fi-theme/vite.config.ts +24 -24
- package/examples/tetris-package/LICENSE +21 -21
- package/examples/tetris-package/NOTICES.md +11 -11
- package/examples/tetris-package/README-ch.md +91 -91
- package/examples/tetris-package/README.md +95 -95
- package/examples/tetris-package/package.json +35 -35
- package/examples/tetris-package/sample/document.reactive.md +16 -16
- package/examples/tetris-package/scripts/build-export.mjs +44 -44
- package/examples/tetris-package/scripts/build.mjs +130 -130
- package/examples/tetris-package/scripts/verify.mjs +173 -173
- package/examples/tetris-package/src/component.css +145 -145
- package/examples/tetris-package/src/components.tsx +334 -334
- package/examples/tetris-package/src/harness.tsx +34 -34
- package/examples/tetris-package/src/manifests.ts +93 -93
- package/examples/tetris-package/src/node-entry.ts +16 -16
- package/examples/tetris-package/src/sample.ts +4 -4
- package/examples/tetris-package/src/tetris-engine.ts +325 -325
- package/examples/tetris-package/tsconfig.json +15 -15
- package/package.json +66 -2
- package/dist-library/LocalDocumentView-BuqgJZEY.js +0 -109
- package/dist-library/LocalReactiveDocumentCore-CWBe4Mm5.js +0 -275
- package/dist-library/authoring-Ci_KzJ0q.js +0 -892
- package/dist-library/compile-Dx6Uw3D9.js +0 -1249
- package/dist-library/compiler-dxLPB9Ym.js +0 -86
- package/dist-library/config-validation-D3D7Dy2J.js +0 -586
- package/dist-library/controls-DoZyLCrV.js +0 -6740
- package/dist-library/data-table-8-3F15Jf.js +0 -296
- package/dist-library/layout-BBB2VF0S.js +0 -562
- package/dist-library/mount-preset-DMZ5wd3t.js +0 -13
- package/dist-library/options-BBp9IcHm.js +0 -121
- package/dist-library/package-core-K5xesGqy.js +0 -117
- package/dist-library/parser-standard-CBA1-hdG.js +0 -9630
- package/dist-library/plugin-packs-Bh1HhLym.js +0 -19
- package/dist-library/preset-core-DeZPA8IE.js +0 -1298
- package/dist-library/props-sJ8vk0cr.js +0 -183
- package/dist-library/react-0DCh-Mar.js +0 -7
- package/dist-library/registry-core-C9xOunaw.js +0 -479
- package/dist-library/resources-B0x_w3s9.js +0 -229
- package/dist-library/runtime-BpQdZmFI.js +0 -1288
- package/dist-library/schema-BryM_VRW.js +0 -40
- package/dist-library/sdk-core-ChslheKs.js +0 -1167
- package/dist-library/shareable-B8xMoGEa.js +0 -814
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
- package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
- package/dist-library/types-daDo2c_w.js +0 -3
- package/dist-library/validation-B3RI0xOk.js +0 -1123
- package/dist-library/visual-frame-_rcd5HUv.js +0 -48
- package/dist-library/visuals-DkDhNdEZ.js +0 -72572
- /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
- /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
- /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as
|
|
1
|
+
import { b as e, c as t, o as n, s as r, u as i } from "./limits-CFERRrlC.js";
|
|
2
|
+
import { R as a, T as o } from "./preset-core-BKPbH_Nv.js";
|
|
3
|
+
import { l as s, n as c } from "./version-4wzhbvDG.js";
|
|
3
4
|
// src/presets/default-authoring.ts
|
|
4
|
-
var
|
|
5
|
+
var l = Object.freeze([
|
|
5
6
|
{
|
|
6
7
|
id: "input",
|
|
7
8
|
title: {
|
|
@@ -37,7 +38,7 @@ var c = Object.freeze([
|
|
|
37
38
|
zh: "提示反馈"
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
]),
|
|
41
|
+
]), u = new Set(l.map((e) => e.id)), d = Object.freeze({
|
|
41
42
|
jump: {
|
|
42
43
|
title: {
|
|
43
44
|
en: "Jump and anchor",
|
|
@@ -96,24 +97,28 @@ var c = Object.freeze([
|
|
|
96
97
|
},
|
|
97
98
|
text: {
|
|
98
99
|
title: {
|
|
99
|
-
en: "
|
|
100
|
-
zh: "
|
|
100
|
+
en: "Inline text style",
|
|
101
|
+
zh: "行内文字样式"
|
|
101
102
|
},
|
|
102
103
|
description: {
|
|
103
|
-
en: "
|
|
104
|
-
zh: "
|
|
104
|
+
en: "Set at least one of color, size or font. Omitted styles are inherited.",
|
|
105
|
+
zh: "至少填写 color、size、font 中的一项。省略的样式由上下文继承。"
|
|
105
106
|
},
|
|
106
107
|
category: "hint",
|
|
107
108
|
keywords: {
|
|
108
109
|
en: [
|
|
109
110
|
"text",
|
|
110
111
|
"color",
|
|
111
|
-
"foreground"
|
|
112
|
+
"foreground",
|
|
113
|
+
"size",
|
|
114
|
+
"font"
|
|
112
115
|
],
|
|
113
116
|
zh: [
|
|
114
117
|
"文字",
|
|
115
118
|
"颜色",
|
|
116
|
-
"前景"
|
|
119
|
+
"前景",
|
|
120
|
+
"字号",
|
|
121
|
+
"字体"
|
|
117
122
|
]
|
|
118
123
|
},
|
|
119
124
|
inline: !0,
|
|
@@ -754,6 +759,39 @@ var c = Object.freeze([
|
|
|
754
759
|
zh: "<if when=\"{{ {{select:true}} }}\">\n{{selection:示例内容}}\n</if>"
|
|
755
760
|
}
|
|
756
761
|
},
|
|
762
|
+
else: {
|
|
763
|
+
title: {
|
|
764
|
+
en: "If/else pair",
|
|
765
|
+
zh: "条件与否则"
|
|
766
|
+
},
|
|
767
|
+
description: {
|
|
768
|
+
en: "Insert a complete if/else pair; the else branch shows when the condition is false.",
|
|
769
|
+
zh: "一次插入完整的 if/else 配对;条件不成立时显示否则分支。"
|
|
770
|
+
},
|
|
771
|
+
category: "layout",
|
|
772
|
+
keywords: {
|
|
773
|
+
en: [
|
|
774
|
+
"else",
|
|
775
|
+
"if",
|
|
776
|
+
"otherwise",
|
|
777
|
+
"fallback",
|
|
778
|
+
"condition",
|
|
779
|
+
"branch"
|
|
780
|
+
],
|
|
781
|
+
zh: [
|
|
782
|
+
"否则",
|
|
783
|
+
"如果",
|
|
784
|
+
"其他",
|
|
785
|
+
"分支",
|
|
786
|
+
"条件",
|
|
787
|
+
"配对"
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
insertText: {
|
|
791
|
+
en: "<if when=\"{{ {{select:true}} }}\">\n{{selection:Sample content}}\n</if>\n<else>\n{{selection:Alternative content}}\n</else>",
|
|
792
|
+
zh: "<if when=\"{{ {{select:true}} }}\">\n{{selection:示例内容}}\n</if>\n<else>\n{{selection:否则内容}}\n</else>"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
757
795
|
gallery: {
|
|
758
796
|
title: {
|
|
759
797
|
en: "Gallery",
|
|
@@ -1127,11 +1165,11 @@ var c = Object.freeze([
|
|
|
1127
1165
|
zh: "<tooltip text=\"这里显示补充说明。\">悬停查看</tooltip>"
|
|
1128
1166
|
}
|
|
1129
1167
|
}
|
|
1130
|
-
}),
|
|
1131
|
-
function
|
|
1132
|
-
return Object.hasOwn(
|
|
1168
|
+
}), f = Object.freeze(Object.keys(d));
|
|
1169
|
+
function p(e) {
|
|
1170
|
+
return Object.hasOwn(d, e) ? d[e] : void 0;
|
|
1133
1171
|
}
|
|
1134
|
-
function
|
|
1172
|
+
function m(e, t, n = "") {
|
|
1135
1173
|
if (e === void 0) return n;
|
|
1136
1174
|
for (let n of [
|
|
1137
1175
|
t,
|
|
@@ -1144,12 +1182,12 @@ function p(e, t, n = "") {
|
|
|
1144
1182
|
for (let t of Object.values(e)) if (typeof t == "string" && t.trim() !== "") return t;
|
|
1145
1183
|
return n;
|
|
1146
1184
|
}
|
|
1147
|
-
function
|
|
1148
|
-
let n =
|
|
1149
|
-
return n ?
|
|
1185
|
+
function h(e, t) {
|
|
1186
|
+
let n = l.find((t) => t.id === e);
|
|
1187
|
+
return n ? m(n.title, t, n.id) : e;
|
|
1150
1188
|
}
|
|
1151
|
-
function
|
|
1152
|
-
let t =
|
|
1189
|
+
function ee(e) {
|
|
1190
|
+
let t = p(e);
|
|
1153
1191
|
if (!t) return;
|
|
1154
1192
|
let n = [];
|
|
1155
1193
|
for (let e of [...t.keywords.en, ...t.keywords.zh]) {
|
|
@@ -1159,18 +1197,18 @@ function h(e) {
|
|
|
1159
1197
|
return Object.freeze(n);
|
|
1160
1198
|
}
|
|
1161
1199
|
function g(e) {
|
|
1162
|
-
let t =
|
|
1200
|
+
let t = p(e);
|
|
1163
1201
|
if (!t) return;
|
|
1164
1202
|
let n = t.insertText.en;
|
|
1165
1203
|
if (typeof n == "string" && n.trim() !== "") return {
|
|
1166
1204
|
title: t.title,
|
|
1167
1205
|
description: t.description,
|
|
1168
|
-
category:
|
|
1206
|
+
category: u.has(t.category) ? t.category : void 0,
|
|
1169
1207
|
insertText: n
|
|
1170
1208
|
};
|
|
1171
1209
|
}
|
|
1172
1210
|
// src/presets/default-semantics.ts
|
|
1173
|
-
var
|
|
1211
|
+
var _ = s, v = {
|
|
1174
1212
|
text: (e = {}) => ({
|
|
1175
1213
|
kind: "string",
|
|
1176
1214
|
coerce: "text",
|
|
@@ -1203,10 +1241,10 @@ var ee = r, _ = {
|
|
|
1203
1241
|
enum: e,
|
|
1204
1242
|
...t
|
|
1205
1243
|
})
|
|
1206
|
-
},
|
|
1244
|
+
}, y = (e = {}) => v.text(e), b = () => v.text(), x = () => v.text(), S = () => v.boolean({
|
|
1207
1245
|
dynamic: !0,
|
|
1208
1246
|
default: !1
|
|
1209
|
-
}),
|
|
1247
|
+
}), C = () => v.staticText({ color: !0 });
|
|
1210
1248
|
function te() {
|
|
1211
1249
|
return Object.freeze({
|
|
1212
1250
|
interactive: !0,
|
|
@@ -1215,7 +1253,7 @@ function te() {
|
|
|
1215
1253
|
offline: !0
|
|
1216
1254
|
});
|
|
1217
1255
|
}
|
|
1218
|
-
function
|
|
1256
|
+
function w(e, t, n, r = {}) {
|
|
1219
1257
|
return Object.freeze({
|
|
1220
1258
|
kind: e,
|
|
1221
1259
|
family: t,
|
|
@@ -1225,7 +1263,7 @@ function C(e, t, n, r = {}) {
|
|
|
1225
1263
|
...r
|
|
1226
1264
|
});
|
|
1227
1265
|
}
|
|
1228
|
-
function
|
|
1266
|
+
function T(e, t, n = {}) {
|
|
1229
1267
|
return Object.freeze({
|
|
1230
1268
|
kind: "number",
|
|
1231
1269
|
family: "number",
|
|
@@ -1236,57 +1274,57 @@ function w(e, t, n = {}) {
|
|
|
1236
1274
|
...n
|
|
1237
1275
|
});
|
|
1238
1276
|
}
|
|
1239
|
-
var
|
|
1277
|
+
var E = (e, t, n = "step") => ({
|
|
1240
1278
|
min: { prop: e },
|
|
1241
1279
|
max: { prop: t },
|
|
1242
1280
|
step: { prop: n }
|
|
1243
1281
|
});
|
|
1244
|
-
function
|
|
1282
|
+
function D(e) {
|
|
1245
1283
|
return Object.freeze(e);
|
|
1246
1284
|
}
|
|
1247
|
-
function
|
|
1285
|
+
function O(...e) {
|
|
1248
1286
|
return Object.freeze(e.map((e) => Object.freeze(e)));
|
|
1249
1287
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1288
|
+
function k(e, t, n) {
|
|
1289
|
+
return o({
|
|
1252
1290
|
id: `reactive-md/${e}`,
|
|
1253
1291
|
name: e,
|
|
1254
|
-
version:
|
|
1255
|
-
protocol:
|
|
1292
|
+
version: _,
|
|
1293
|
+
protocol: c,
|
|
1256
1294
|
form: t,
|
|
1257
1295
|
capabilities: te(),
|
|
1258
1296
|
...n
|
|
1259
1297
|
});
|
|
1260
1298
|
}
|
|
1261
|
-
var
|
|
1299
|
+
var A = k("input", "leaf", {
|
|
1262
1300
|
props: {
|
|
1263
|
-
label:
|
|
1264
|
-
type:
|
|
1301
|
+
label: y(),
|
|
1302
|
+
type: v.choice(["text", "email"], {
|
|
1265
1303
|
static: !0,
|
|
1266
1304
|
default: "text"
|
|
1267
1305
|
}),
|
|
1268
|
-
placeholder:
|
|
1269
|
-
required:
|
|
1306
|
+
placeholder: v.text(),
|
|
1307
|
+
required: v.boolean({
|
|
1270
1308
|
dynamic: !0,
|
|
1271
1309
|
default: !1
|
|
1272
1310
|
}),
|
|
1273
|
-
"min-length":
|
|
1311
|
+
"min-length": v.number({
|
|
1274
1312
|
integer: !0,
|
|
1275
1313
|
min: 0,
|
|
1276
1314
|
default: 0
|
|
1277
1315
|
}),
|
|
1278
|
-
"max-length":
|
|
1316
|
+
"max-length": v.number({
|
|
1279
1317
|
integer: !0,
|
|
1280
1318
|
min: 0
|
|
1281
1319
|
}),
|
|
1282
|
-
disabled:
|
|
1320
|
+
disabled: S()
|
|
1283
1321
|
},
|
|
1284
|
-
bindings: { value:
|
|
1285
|
-
structure:
|
|
1322
|
+
bindings: { value: w("string", "text", "empty") },
|
|
1323
|
+
structure: D({
|
|
1286
1324
|
rule: "none",
|
|
1287
1325
|
label: "required"
|
|
1288
1326
|
}),
|
|
1289
|
-
rules:
|
|
1327
|
+
rules: O({
|
|
1290
1328
|
kind: "text-length",
|
|
1291
1329
|
min: "min-length",
|
|
1292
1330
|
max: "max-length"
|
|
@@ -1303,36 +1341,36 @@ var k = O("input", "leaf", {
|
|
|
1303
1341
|
kind: "value-required",
|
|
1304
1342
|
required: "required"
|
|
1305
1343
|
})
|
|
1306
|
-
}),
|
|
1344
|
+
}), j = k("textarea", "leaf", {
|
|
1307
1345
|
props: {
|
|
1308
|
-
label:
|
|
1309
|
-
placeholder:
|
|
1310
|
-
rows:
|
|
1346
|
+
label: y(),
|
|
1347
|
+
placeholder: v.text(),
|
|
1348
|
+
rows: v.number({
|
|
1311
1349
|
integer: !0,
|
|
1312
1350
|
positive: !0,
|
|
1313
1351
|
default: 4
|
|
1314
1352
|
}),
|
|
1315
|
-
required:
|
|
1353
|
+
required: v.boolean({
|
|
1316
1354
|
dynamic: !0,
|
|
1317
1355
|
default: !1
|
|
1318
1356
|
}),
|
|
1319
|
-
"min-length":
|
|
1357
|
+
"min-length": v.number({
|
|
1320
1358
|
integer: !0,
|
|
1321
1359
|
min: 0,
|
|
1322
1360
|
default: 0
|
|
1323
1361
|
}),
|
|
1324
|
-
"max-length":
|
|
1362
|
+
"max-length": v.number({
|
|
1325
1363
|
integer: !0,
|
|
1326
1364
|
min: 0
|
|
1327
1365
|
}),
|
|
1328
|
-
disabled:
|
|
1366
|
+
disabled: S()
|
|
1329
1367
|
},
|
|
1330
|
-
bindings: { value:
|
|
1331
|
-
structure:
|
|
1368
|
+
bindings: { value: w("string", "text", "empty") },
|
|
1369
|
+
structure: D({
|
|
1332
1370
|
rule: "none",
|
|
1333
1371
|
label: "required"
|
|
1334
1372
|
}),
|
|
1335
|
-
rules:
|
|
1373
|
+
rules: O({
|
|
1336
1374
|
kind: "text-length",
|
|
1337
1375
|
min: "min-length",
|
|
1338
1376
|
max: "max-length"
|
|
@@ -1347,23 +1385,23 @@ var k = O("input", "leaf", {
|
|
|
1347
1385
|
kind: "value-required",
|
|
1348
1386
|
required: "required"
|
|
1349
1387
|
})
|
|
1350
|
-
}),
|
|
1388
|
+
}), M = k("number", "leaf", {
|
|
1351
1389
|
props: {
|
|
1352
|
-
label:
|
|
1353
|
-
min:
|
|
1354
|
-
max:
|
|
1355
|
-
step:
|
|
1390
|
+
label: y(),
|
|
1391
|
+
min: v.number({ dynamic: !0 }),
|
|
1392
|
+
max: v.number({ dynamic: !0 }),
|
|
1393
|
+
step: v.number({
|
|
1356
1394
|
positive: !0,
|
|
1357
1395
|
default: 1
|
|
1358
1396
|
}),
|
|
1359
|
-
disabled:
|
|
1397
|
+
disabled: S()
|
|
1360
1398
|
},
|
|
1361
|
-
bindings: { value:
|
|
1362
|
-
structure:
|
|
1399
|
+
bindings: { value: w("number", "number", "nearest-zero", { constraints: E("min", "max") }) },
|
|
1400
|
+
structure: D({
|
|
1363
1401
|
rule: "none",
|
|
1364
1402
|
label: "required"
|
|
1365
1403
|
}),
|
|
1366
|
-
rules:
|
|
1404
|
+
rules: O({
|
|
1367
1405
|
kind: "numeric-range",
|
|
1368
1406
|
min: "min",
|
|
1369
1407
|
max: "max",
|
|
@@ -1372,30 +1410,30 @@ var k = O("input", "leaf", {
|
|
|
1372
1410
|
kind: "dynamic-constraints",
|
|
1373
1411
|
attributes: ["min", "max"]
|
|
1374
1412
|
})
|
|
1375
|
-
}),
|
|
1413
|
+
}), N = k("slider", "leaf", {
|
|
1376
1414
|
props: {
|
|
1377
|
-
label:
|
|
1378
|
-
min:
|
|
1415
|
+
label: y(),
|
|
1416
|
+
min: v.number({
|
|
1379
1417
|
dynamic: !0,
|
|
1380
1418
|
default: 0
|
|
1381
1419
|
}),
|
|
1382
|
-
max:
|
|
1420
|
+
max: v.number({
|
|
1383
1421
|
dynamic: !0,
|
|
1384
1422
|
default: 100
|
|
1385
1423
|
}),
|
|
1386
|
-
step:
|
|
1424
|
+
step: v.number({
|
|
1387
1425
|
positive: !0,
|
|
1388
1426
|
default: 1
|
|
1389
1427
|
}),
|
|
1390
|
-
disabled:
|
|
1391
|
-
color:
|
|
1428
|
+
disabled: S(),
|
|
1429
|
+
color: C()
|
|
1392
1430
|
},
|
|
1393
|
-
bindings: { value:
|
|
1394
|
-
structure:
|
|
1431
|
+
bindings: { value: w("number", "number", "min", { constraints: E("min", "max") }) },
|
|
1432
|
+
structure: D({
|
|
1395
1433
|
rule: "none",
|
|
1396
1434
|
label: "required"
|
|
1397
1435
|
}),
|
|
1398
|
-
rules:
|
|
1436
|
+
rules: O({
|
|
1399
1437
|
kind: "numeric-range",
|
|
1400
1438
|
min: "min",
|
|
1401
1439
|
max: "max",
|
|
@@ -1404,67 +1442,67 @@ var k = O("input", "leaf", {
|
|
|
1404
1442
|
kind: "dynamic-constraints",
|
|
1405
1443
|
attributes: ["min", "max"]
|
|
1406
1444
|
})
|
|
1407
|
-
}),
|
|
1445
|
+
}), P = k("range-slider", "leaf", {
|
|
1408
1446
|
props: {
|
|
1409
|
-
label:
|
|
1410
|
-
min:
|
|
1411
|
-
max:
|
|
1412
|
-
step:
|
|
1447
|
+
label: y(),
|
|
1448
|
+
min: v.number({ default: 0 }),
|
|
1449
|
+
max: v.number({ default: 100 }),
|
|
1450
|
+
step: v.number({
|
|
1413
1451
|
positive: !0,
|
|
1414
1452
|
default: 1
|
|
1415
1453
|
}),
|
|
1416
|
-
disabled:
|
|
1417
|
-
color:
|
|
1454
|
+
disabled: S(),
|
|
1455
|
+
color: C()
|
|
1418
1456
|
},
|
|
1419
1457
|
bindings: {
|
|
1420
|
-
start:
|
|
1421
|
-
end:
|
|
1458
|
+
start: T("start", "min", { constraints: E("min", "max") }),
|
|
1459
|
+
end: T("end", "max-step", { constraints: E("min", "max") })
|
|
1422
1460
|
},
|
|
1423
1461
|
slotRelations: [{
|
|
1424
1462
|
lower: "start",
|
|
1425
1463
|
upper: "end"
|
|
1426
1464
|
}],
|
|
1427
|
-
structure:
|
|
1465
|
+
structure: D({
|
|
1428
1466
|
rule: "none",
|
|
1429
1467
|
label: "required"
|
|
1430
1468
|
}),
|
|
1431
|
-
rules:
|
|
1469
|
+
rules: O({
|
|
1432
1470
|
kind: "numeric-range",
|
|
1433
1471
|
min: "min",
|
|
1434
1472
|
max: "max",
|
|
1435
1473
|
step: "step"
|
|
1436
1474
|
})
|
|
1437
|
-
}),
|
|
1475
|
+
}), F = k("coordinate", "leaf", {
|
|
1438
1476
|
props: {
|
|
1439
|
-
label:
|
|
1440
|
-
"x-min":
|
|
1441
|
-
"x-max":
|
|
1442
|
-
"y-min":
|
|
1443
|
-
"y-max":
|
|
1444
|
-
step:
|
|
1477
|
+
label: y(),
|
|
1478
|
+
"x-min": v.number({ default: -5 }),
|
|
1479
|
+
"x-max": v.number({ default: 5 }),
|
|
1480
|
+
"y-min": v.number({ default: -5 }),
|
|
1481
|
+
"y-max": v.number({ default: 5 }),
|
|
1482
|
+
step: v.number({
|
|
1445
1483
|
positive: !0,
|
|
1446
1484
|
default: 1
|
|
1447
1485
|
}),
|
|
1448
|
-
disabled:
|
|
1449
|
-
color:
|
|
1486
|
+
disabled: S(),
|
|
1487
|
+
color: C()
|
|
1450
1488
|
},
|
|
1451
1489
|
bindings: {
|
|
1452
|
-
x:
|
|
1490
|
+
x: T("x", "nearest-zero", { constraints: {
|
|
1453
1491
|
min: { prop: "x-min" },
|
|
1454
1492
|
max: { prop: "x-max" },
|
|
1455
1493
|
step: { prop: "step" }
|
|
1456
1494
|
} }),
|
|
1457
|
-
y:
|
|
1495
|
+
y: T("y", "nearest-zero", { constraints: {
|
|
1458
1496
|
min: { prop: "y-min" },
|
|
1459
1497
|
max: { prop: "y-max" },
|
|
1460
1498
|
step: { prop: "step" }
|
|
1461
1499
|
} })
|
|
1462
1500
|
},
|
|
1463
|
-
structure:
|
|
1501
|
+
structure: D({
|
|
1464
1502
|
rule: "none",
|
|
1465
1503
|
label: "required"
|
|
1466
1504
|
}),
|
|
1467
|
-
rules:
|
|
1505
|
+
rules: O({
|
|
1468
1506
|
kind: "numeric-range",
|
|
1469
1507
|
min: "x-min",
|
|
1470
1508
|
max: "x-max",
|
|
@@ -1474,45 +1512,45 @@ var k = O("input", "leaf", {
|
|
|
1474
1512
|
min: "y-min",
|
|
1475
1513
|
max: "y-max"
|
|
1476
1514
|
})
|
|
1477
|
-
}),
|
|
1515
|
+
}), I = k("toggle", "leaf", {
|
|
1478
1516
|
props: {
|
|
1479
|
-
label:
|
|
1480
|
-
disabled:
|
|
1481
|
-
color:
|
|
1517
|
+
label: y(),
|
|
1518
|
+
disabled: S(),
|
|
1519
|
+
color: C()
|
|
1482
1520
|
},
|
|
1483
|
-
bindings: { value:
|
|
1484
|
-
structure:
|
|
1521
|
+
bindings: { value: w("boolean", "boolean", "false") },
|
|
1522
|
+
structure: D({
|
|
1485
1523
|
rule: "none",
|
|
1486
1524
|
label: "required"
|
|
1487
1525
|
})
|
|
1488
|
-
}),
|
|
1526
|
+
}), L = k("checkbox", "leaf", {
|
|
1489
1527
|
props: {
|
|
1490
|
-
label:
|
|
1491
|
-
disabled:
|
|
1492
|
-
color:
|
|
1528
|
+
label: y(),
|
|
1529
|
+
disabled: S(),
|
|
1530
|
+
color: C()
|
|
1493
1531
|
},
|
|
1494
|
-
bindings: { value:
|
|
1495
|
-
structure:
|
|
1532
|
+
bindings: { value: w("boolean", "boolean", "false") },
|
|
1533
|
+
structure: D({
|
|
1496
1534
|
rule: "none",
|
|
1497
1535
|
label: "required"
|
|
1498
1536
|
})
|
|
1499
|
-
}),
|
|
1537
|
+
}), R = k("date", "leaf", {
|
|
1500
1538
|
props: {
|
|
1501
|
-
label:
|
|
1502
|
-
min:
|
|
1503
|
-
max:
|
|
1504
|
-
required:
|
|
1539
|
+
label: y(),
|
|
1540
|
+
min: v.dynamicText(),
|
|
1541
|
+
max: v.dynamicText(),
|
|
1542
|
+
required: v.boolean({
|
|
1505
1543
|
dynamic: !0,
|
|
1506
1544
|
default: !1
|
|
1507
1545
|
}),
|
|
1508
|
-
disabled:
|
|
1546
|
+
disabled: S()
|
|
1509
1547
|
},
|
|
1510
|
-
bindings: { value:
|
|
1511
|
-
structure:
|
|
1548
|
+
bindings: { value: w("string", "date", "empty") },
|
|
1549
|
+
structure: D({
|
|
1512
1550
|
rule: "none",
|
|
1513
1551
|
label: "required"
|
|
1514
1552
|
}),
|
|
1515
|
-
rules:
|
|
1553
|
+
rules: O({
|
|
1516
1554
|
kind: "date-bounds",
|
|
1517
1555
|
min: "min",
|
|
1518
1556
|
max: "max"
|
|
@@ -1530,111 +1568,127 @@ var k = O("input", "leaf", {
|
|
|
1530
1568
|
required: "required"
|
|
1531
1569
|
})
|
|
1532
1570
|
});
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1571
|
+
function z(e, t = "container") {
|
|
1572
|
+
return k(e, t, {
|
|
1535
1573
|
props: {
|
|
1536
|
-
label:
|
|
1537
|
-
|
|
1538
|
-
|
|
1574
|
+
label: y(),
|
|
1575
|
+
options: v.expressionText(),
|
|
1576
|
+
disabled: S(),
|
|
1577
|
+
color: C()
|
|
1539
1578
|
},
|
|
1540
|
-
bindings: { value:
|
|
1541
|
-
structure:
|
|
1579
|
+
bindings: { value: w("string", "choice", "first-option") },
|
|
1580
|
+
structure: D({
|
|
1542
1581
|
rule: "options",
|
|
1543
1582
|
label: "required",
|
|
1544
1583
|
child: "option",
|
|
1545
1584
|
children: ["option"],
|
|
1546
1585
|
min: 1,
|
|
1547
|
-
max:
|
|
1586
|
+
max: n,
|
|
1548
1587
|
valueAttribute: "value"
|
|
1549
1588
|
}),
|
|
1550
|
-
rules:
|
|
1589
|
+
rules: O({
|
|
1551
1590
|
kind: "options-body",
|
|
1552
1591
|
child: "option",
|
|
1553
1592
|
valueAttribute: "value",
|
|
1554
1593
|
unique: !0,
|
|
1555
|
-
max:
|
|
1594
|
+
max: n
|
|
1595
|
+
}, {
|
|
1596
|
+
kind: "require-full-interpolation",
|
|
1597
|
+
attributes: ["options"]
|
|
1598
|
+
}, {
|
|
1599
|
+
kind: "scoped-expressions",
|
|
1600
|
+
attributes: ["options"],
|
|
1601
|
+
scope: "row"
|
|
1556
1602
|
})
|
|
1557
1603
|
});
|
|
1558
1604
|
}
|
|
1559
|
-
var
|
|
1605
|
+
var B = z("select"), V = z("choices"), H = z("radio-group"), U = k("multi-select", "container", {
|
|
1560
1606
|
props: {
|
|
1561
|
-
label:
|
|
1562
|
-
|
|
1607
|
+
label: y(),
|
|
1608
|
+
options: v.expressionText(),
|
|
1609
|
+
"max-selected": v.number({
|
|
1563
1610
|
integer: !0,
|
|
1564
1611
|
min: 0
|
|
1565
1612
|
}),
|
|
1566
|
-
disabled:
|
|
1567
|
-
color:
|
|
1613
|
+
disabled: S(),
|
|
1614
|
+
color: C()
|
|
1568
1615
|
},
|
|
1569
|
-
bindings: { value:
|
|
1616
|
+
bindings: { value: w("array", "multi-select", "empty-array", {
|
|
1570
1617
|
exclusive: !0,
|
|
1571
1618
|
maxItems: { prop: "max-selected" }
|
|
1572
1619
|
}) },
|
|
1573
|
-
structure:
|
|
1620
|
+
structure: D({
|
|
1574
1621
|
rule: "options",
|
|
1575
1622
|
label: "required",
|
|
1576
1623
|
child: "option",
|
|
1577
1624
|
children: ["option"],
|
|
1578
1625
|
min: 1,
|
|
1579
|
-
max:
|
|
1626
|
+
max: n,
|
|
1580
1627
|
valueAttribute: "value",
|
|
1581
1628
|
forbidSeparator: ","
|
|
1582
1629
|
}),
|
|
1583
|
-
rules:
|
|
1630
|
+
rules: O({
|
|
1584
1631
|
kind: "options-body",
|
|
1585
1632
|
child: "option",
|
|
1586
1633
|
valueAttribute: "value",
|
|
1587
1634
|
unique: !0,
|
|
1588
|
-
max:
|
|
1635
|
+
max: n,
|
|
1589
1636
|
forbidSeparator: ","
|
|
1590
1637
|
}, {
|
|
1591
1638
|
kind: "option-count",
|
|
1592
1639
|
max: "max-selected"
|
|
1640
|
+
}, {
|
|
1641
|
+
kind: "require-full-interpolation",
|
|
1642
|
+
attributes: ["options"]
|
|
1643
|
+
}, {
|
|
1644
|
+
kind: "scoped-expressions",
|
|
1645
|
+
attributes: ["options"],
|
|
1646
|
+
scope: "row"
|
|
1593
1647
|
})
|
|
1594
|
-
}),
|
|
1595
|
-
props: { value:
|
|
1596
|
-
structure:
|
|
1648
|
+
}), W = k("option", "container", {
|
|
1649
|
+
props: { value: v.staticText({ required: !0 }) },
|
|
1650
|
+
structure: D({
|
|
1597
1651
|
rule: "inline",
|
|
1598
1652
|
label: "none",
|
|
1599
1653
|
inlineOnly: !0,
|
|
1600
1654
|
noComponents: !0
|
|
1601
1655
|
}),
|
|
1602
|
-
rules:
|
|
1656
|
+
rules: O({
|
|
1603
1657
|
kind: "inline-body",
|
|
1604
1658
|
strict: !0
|
|
1605
1659
|
}, { kind: "no-components" })
|
|
1606
|
-
}),
|
|
1660
|
+
}), G = k("counter", "leaf", {
|
|
1607
1661
|
props: {
|
|
1608
|
-
label:
|
|
1609
|
-
min:
|
|
1610
|
-
max:
|
|
1611
|
-
step:
|
|
1662
|
+
label: y(),
|
|
1663
|
+
min: v.number({ default: 0 }),
|
|
1664
|
+
max: v.number(),
|
|
1665
|
+
step: v.number({
|
|
1612
1666
|
positive: !0,
|
|
1613
1667
|
default: 1
|
|
1614
1668
|
}),
|
|
1615
|
-
disabled:
|
|
1669
|
+
disabled: S()
|
|
1616
1670
|
},
|
|
1617
|
-
bindings: { value:
|
|
1618
|
-
structure:
|
|
1671
|
+
bindings: { value: w("number", "number", "nearest-zero", { constraints: E("min", "max") }) },
|
|
1672
|
+
structure: D({
|
|
1619
1673
|
rule: "none",
|
|
1620
1674
|
label: "required"
|
|
1621
1675
|
}),
|
|
1622
|
-
rules:
|
|
1676
|
+
rules: O({
|
|
1623
1677
|
kind: "numeric-range",
|
|
1624
1678
|
min: "min",
|
|
1625
1679
|
max: "max",
|
|
1626
1680
|
step: "step"
|
|
1627
1681
|
})
|
|
1628
|
-
}),
|
|
1682
|
+
}), K = k("timer", "leaf", {
|
|
1629
1683
|
props: {
|
|
1630
|
-
label:
|
|
1631
|
-
duration:
|
|
1684
|
+
label: y(),
|
|
1685
|
+
duration: v.number({
|
|
1632
1686
|
integer: !0,
|
|
1633
1687
|
positive: !0,
|
|
1634
1688
|
default: 60
|
|
1635
1689
|
})
|
|
1636
1690
|
},
|
|
1637
|
-
bindings: { value:
|
|
1691
|
+
bindings: { value: w("number", "timer", "duration", {
|
|
1638
1692
|
exclusive: !0,
|
|
1639
1693
|
constraints: {
|
|
1640
1694
|
min: { literal: 0 },
|
|
@@ -1643,11 +1697,11 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1643
1697
|
},
|
|
1644
1698
|
retain: !1
|
|
1645
1699
|
}) },
|
|
1646
|
-
structure:
|
|
1700
|
+
structure: D({
|
|
1647
1701
|
rule: "none",
|
|
1648
1702
|
label: "required"
|
|
1649
1703
|
}),
|
|
1650
|
-
rules:
|
|
1704
|
+
rules: O({
|
|
1651
1705
|
kind: "timer-duration",
|
|
1652
1706
|
attribute: "duration",
|
|
1653
1707
|
default: 60
|
|
@@ -1655,184 +1709,204 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1655
1709
|
kind: "retain",
|
|
1656
1710
|
value: !1
|
|
1657
1711
|
})
|
|
1658
|
-
}),
|
|
1712
|
+
}), q = k("checklist", "container", {
|
|
1659
1713
|
props: {
|
|
1660
|
-
label:
|
|
1661
|
-
disabled:
|
|
1662
|
-
color:
|
|
1714
|
+
label: y(),
|
|
1715
|
+
disabled: S(),
|
|
1716
|
+
color: C()
|
|
1663
1717
|
},
|
|
1664
|
-
bindings: { value:
|
|
1718
|
+
bindings: { value: w("array", "checklist", "checked", {
|
|
1665
1719
|
exclusive: !0,
|
|
1666
1720
|
retain: !1
|
|
1667
1721
|
}) },
|
|
1668
|
-
structure:
|
|
1722
|
+
structure: D({
|
|
1669
1723
|
rule: "content",
|
|
1670
1724
|
label: "required",
|
|
1671
1725
|
noComponents: !0
|
|
1672
1726
|
}),
|
|
1673
|
-
rules:
|
|
1727
|
+
rules: O({
|
|
1674
1728
|
kind: "checklist-body",
|
|
1675
|
-
itemLimit:
|
|
1729
|
+
itemLimit: n
|
|
1676
1730
|
}, {
|
|
1677
1731
|
kind: "retain",
|
|
1678
1732
|
value: !1
|
|
1679
1733
|
})
|
|
1680
|
-
}),
|
|
1734
|
+
}), J = k("progress", "leaf", {
|
|
1681
1735
|
props: {
|
|
1682
|
-
label:
|
|
1683
|
-
value:
|
|
1736
|
+
label: y(),
|
|
1737
|
+
value: v.number({
|
|
1684
1738
|
dynamic: !0,
|
|
1685
1739
|
required: !0
|
|
1686
1740
|
}),
|
|
1687
|
-
max:
|
|
1741
|
+
max: v.number({
|
|
1688
1742
|
positive: !0,
|
|
1689
1743
|
default: 100
|
|
1690
1744
|
}),
|
|
1691
|
-
color:
|
|
1745
|
+
color: C()
|
|
1692
1746
|
},
|
|
1693
|
-
structure:
|
|
1747
|
+
structure: D({
|
|
1694
1748
|
rule: "none",
|
|
1695
1749
|
label: "required"
|
|
1696
1750
|
}),
|
|
1697
|
-
rules:
|
|
1751
|
+
rules: O({
|
|
1698
1752
|
kind: "progress-bounds",
|
|
1699
1753
|
value: "value",
|
|
1700
1754
|
max: "max",
|
|
1701
1755
|
defaultMax: 100
|
|
1702
1756
|
})
|
|
1703
|
-
}),
|
|
1757
|
+
}), Y = k("jump", "inline", {
|
|
1704
1758
|
props: {
|
|
1705
|
-
to:
|
|
1706
|
-
appearance:
|
|
1759
|
+
to: v.staticText({ required: !0 }),
|
|
1760
|
+
appearance: v.choice(["link", "button"], {
|
|
1707
1761
|
static: !0,
|
|
1708
1762
|
default: "link"
|
|
1709
1763
|
}),
|
|
1710
|
-
color:
|
|
1764
|
+
color: C()
|
|
1711
1765
|
},
|
|
1712
|
-
structure:
|
|
1766
|
+
structure: D({
|
|
1713
1767
|
rule: "inline",
|
|
1714
1768
|
label: "none",
|
|
1715
1769
|
inlineOnly: !0,
|
|
1716
1770
|
noComponents: !0
|
|
1717
1771
|
}),
|
|
1718
|
-
rules:
|
|
1772
|
+
rules: O({
|
|
1719
1773
|
kind: "inline-body",
|
|
1720
1774
|
strict: !0
|
|
1721
1775
|
}, { kind: "no-components" }, {
|
|
1722
1776
|
kind: "navigation",
|
|
1723
1777
|
target: "to"
|
|
1724
1778
|
})
|
|
1725
|
-
}),
|
|
1726
|
-
props: { id:
|
|
1727
|
-
structure:
|
|
1779
|
+
}), X = k("anchor", "leaf", {
|
|
1780
|
+
props: { id: v.staticText({ required: !0 }) },
|
|
1781
|
+
structure: D({
|
|
1728
1782
|
rule: "none",
|
|
1729
1783
|
label: "none"
|
|
1730
1784
|
}),
|
|
1731
|
-
rules:
|
|
1785
|
+
rules: O({
|
|
1732
1786
|
kind: "anchor",
|
|
1733
1787
|
id: "id"
|
|
1734
1788
|
})
|
|
1735
|
-
}),
|
|
1736
|
-
props: {
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1789
|
+
}), Z = k("text", "inline", {
|
|
1790
|
+
props: {
|
|
1791
|
+
color: C(),
|
|
1792
|
+
size: v.choice([
|
|
1793
|
+
"sm",
|
|
1794
|
+
"md",
|
|
1795
|
+
"lg",
|
|
1796
|
+
"xl"
|
|
1797
|
+
], {
|
|
1798
|
+
static: !0,
|
|
1799
|
+
allowPositiveNumber: !0,
|
|
1800
|
+
description: {
|
|
1801
|
+
en: "A theme size or a positive number in pixels, such as 20.",
|
|
1802
|
+
zh: "主题字号或以像素为单位的正数,例如 20。"
|
|
1803
|
+
}
|
|
1804
|
+
}),
|
|
1805
|
+
font: v.choice(a, { static: !0 })
|
|
1806
|
+
},
|
|
1807
|
+
structure: D({
|
|
1741
1808
|
rule: "inline",
|
|
1742
1809
|
label: "none",
|
|
1743
1810
|
inlineOnly: !0,
|
|
1744
1811
|
noComponents: !0
|
|
1745
1812
|
}),
|
|
1746
|
-
rules:
|
|
1813
|
+
rules: O({
|
|
1814
|
+
kind: "required-one-of",
|
|
1815
|
+
attributes: [
|
|
1816
|
+
"color",
|
|
1817
|
+
"size",
|
|
1818
|
+
"font"
|
|
1819
|
+
]
|
|
1820
|
+
}, {
|
|
1747
1821
|
kind: "inline-body",
|
|
1748
1822
|
strict: !0
|
|
1749
1823
|
}, { kind: "no-components" })
|
|
1750
|
-
}),
|
|
1751
|
-
props: { color:
|
|
1824
|
+
}), ne = k("section", "container", {
|
|
1825
|
+
props: { color: v.staticText({
|
|
1752
1826
|
required: !0,
|
|
1753
1827
|
color: !0
|
|
1754
1828
|
}) },
|
|
1755
|
-
structure:
|
|
1829
|
+
structure: D({
|
|
1756
1830
|
rule: "any",
|
|
1757
1831
|
label: "none"
|
|
1758
1832
|
})
|
|
1759
|
-
}),
|
|
1833
|
+
}), re = k("quiz", "container", {
|
|
1760
1834
|
props: {
|
|
1761
|
-
type:
|
|
1835
|
+
type: v.choice(["choice", "number"], {
|
|
1762
1836
|
static: !0,
|
|
1763
1837
|
default: "choice"
|
|
1764
1838
|
}),
|
|
1765
|
-
label:
|
|
1766
|
-
answer:
|
|
1767
|
-
explanation:
|
|
1768
|
-
tolerance:
|
|
1839
|
+
label: y(),
|
|
1840
|
+
answer: v.staticText({ required: !0 }),
|
|
1841
|
+
explanation: v.text(),
|
|
1842
|
+
tolerance: v.number({
|
|
1769
1843
|
min: 0,
|
|
1770
1844
|
default: 0
|
|
1771
1845
|
}),
|
|
1772
|
-
disabled:
|
|
1846
|
+
disabled: S()
|
|
1773
1847
|
},
|
|
1774
|
-
structure:
|
|
1848
|
+
structure: D({
|
|
1775
1849
|
rule: "quiz",
|
|
1776
1850
|
label: "required",
|
|
1777
1851
|
child: "option",
|
|
1778
1852
|
children: ["option"],
|
|
1779
|
-
max:
|
|
1853
|
+
max: n,
|
|
1780
1854
|
valueAttribute: "value"
|
|
1781
1855
|
}),
|
|
1782
|
-
rules:
|
|
1856
|
+
rules: O({
|
|
1783
1857
|
kind: "quiz-body",
|
|
1784
1858
|
type: "type",
|
|
1785
1859
|
answer: "answer",
|
|
1786
1860
|
tolerance: "tolerance",
|
|
1787
1861
|
child: "option",
|
|
1788
1862
|
valueAttribute: "value",
|
|
1789
|
-
max:
|
|
1863
|
+
max: n
|
|
1790
1864
|
}, {
|
|
1791
1865
|
kind: "nonempty",
|
|
1792
1866
|
attribute: "answer"
|
|
1793
1867
|
})
|
|
1794
|
-
}),
|
|
1868
|
+
}), ie = k("panel", "container", {
|
|
1795
1869
|
props: {
|
|
1796
|
-
title:
|
|
1797
|
-
reset:
|
|
1870
|
+
title: x(),
|
|
1871
|
+
reset: v.boolean({ default: !0 })
|
|
1798
1872
|
},
|
|
1799
|
-
structure:
|
|
1873
|
+
structure: D({
|
|
1800
1874
|
rule: "any",
|
|
1801
1875
|
label: "none"
|
|
1802
1876
|
}),
|
|
1803
|
-
rules:
|
|
1877
|
+
rules: O({
|
|
1804
1878
|
kind: "self-binding-read",
|
|
1805
1879
|
mode: "always"
|
|
1806
1880
|
})
|
|
1807
|
-
}),
|
|
1808
|
-
props: { title:
|
|
1809
|
-
structure:
|
|
1881
|
+
}), ae = k("card", "container", {
|
|
1882
|
+
props: { title: x() },
|
|
1883
|
+
structure: D({
|
|
1810
1884
|
rule: "any",
|
|
1811
1885
|
label: "none"
|
|
1812
1886
|
})
|
|
1813
|
-
}),
|
|
1814
|
-
props: { columns:
|
|
1887
|
+
}), oe = k("grid", "container", {
|
|
1888
|
+
props: { columns: v.number({
|
|
1815
1889
|
integer: !0,
|
|
1816
1890
|
min: 1,
|
|
1817
1891
|
max: 4,
|
|
1818
1892
|
default: 2
|
|
1819
1893
|
}) },
|
|
1820
|
-
structure:
|
|
1894
|
+
structure: D({
|
|
1821
1895
|
rule: "components",
|
|
1822
1896
|
label: "none",
|
|
1823
1897
|
child: "card",
|
|
1824
1898
|
children: ["card"],
|
|
1825
1899
|
min: 1
|
|
1826
1900
|
}),
|
|
1827
|
-
rules:
|
|
1901
|
+
rules: O({
|
|
1828
1902
|
kind: "only-children",
|
|
1829
1903
|
children: ["card"],
|
|
1830
1904
|
min: 1
|
|
1831
1905
|
})
|
|
1832
|
-
}),
|
|
1906
|
+
}), se = k("gallery", "container", {
|
|
1833
1907
|
props: {
|
|
1834
|
-
label:
|
|
1835
|
-
"item-width":
|
|
1908
|
+
label: y({ required: !0 }),
|
|
1909
|
+
"item-width": v.number({
|
|
1836
1910
|
dynamic: !0,
|
|
1837
1911
|
integer: !0,
|
|
1838
1912
|
default: 280,
|
|
@@ -1840,28 +1914,28 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1840
1914
|
max: 480
|
|
1841
1915
|
})
|
|
1842
1916
|
},
|
|
1843
|
-
structure:
|
|
1917
|
+
structure: D({
|
|
1844
1918
|
rule: "components",
|
|
1845
1919
|
label: "required",
|
|
1846
1920
|
child: "gallery-item",
|
|
1847
1921
|
children: ["gallery-item"],
|
|
1848
1922
|
min: 1
|
|
1849
1923
|
}),
|
|
1850
|
-
rules:
|
|
1924
|
+
rules: O({
|
|
1851
1925
|
kind: "only-children",
|
|
1852
1926
|
children: ["gallery-item"],
|
|
1853
1927
|
min: 1
|
|
1854
1928
|
})
|
|
1855
|
-
}),
|
|
1856
|
-
props: { label:
|
|
1857
|
-
structure:
|
|
1929
|
+
}), ce = k("gallery-item", "container", {
|
|
1930
|
+
props: { label: b() },
|
|
1931
|
+
structure: D({
|
|
1858
1932
|
rule: "any",
|
|
1859
1933
|
label: "none"
|
|
1860
1934
|
})
|
|
1861
|
-
}),
|
|
1862
|
-
props: { label:
|
|
1863
|
-
bindings: { value:
|
|
1864
|
-
structure:
|
|
1935
|
+
}), le = k("tabs", "container", {
|
|
1936
|
+
props: { label: b() },
|
|
1937
|
+
bindings: { value: w("string", "tabs", "first-tab", { exclusive: !0 }) },
|
|
1938
|
+
structure: D({
|
|
1865
1939
|
rule: "tabs",
|
|
1866
1940
|
label: "optional",
|
|
1867
1941
|
child: "tab",
|
|
@@ -1870,7 +1944,7 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1870
1944
|
valueAttribute: "value",
|
|
1871
1945
|
generatedPrefix: "tab-"
|
|
1872
1946
|
}),
|
|
1873
|
-
rules:
|
|
1947
|
+
rules: O({
|
|
1874
1948
|
kind: "value-sequence",
|
|
1875
1949
|
child: "tab",
|
|
1876
1950
|
valueAttribute: "value",
|
|
@@ -1878,20 +1952,20 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1878
1952
|
generatedPrefix: "tab-",
|
|
1879
1953
|
unique: !0
|
|
1880
1954
|
})
|
|
1881
|
-
}),
|
|
1955
|
+
}), ue = k("tab", "container", {
|
|
1882
1956
|
props: {
|
|
1883
|
-
label:
|
|
1884
|
-
value:
|
|
1957
|
+
label: y(),
|
|
1958
|
+
value: v.staticText()
|
|
1885
1959
|
},
|
|
1886
|
-
structure:
|
|
1960
|
+
structure: D({
|
|
1887
1961
|
rule: "any",
|
|
1888
1962
|
label: "required",
|
|
1889
1963
|
parents: ["tabs"]
|
|
1890
1964
|
})
|
|
1891
|
-
}),
|
|
1892
|
-
props: { label:
|
|
1893
|
-
bindings: { value:
|
|
1894
|
-
structure:
|
|
1965
|
+
}), de = k("steps", "container", {
|
|
1966
|
+
props: { label: b() },
|
|
1967
|
+
bindings: { value: w("string", "steps", "first-step", { exclusive: !0 }) },
|
|
1968
|
+
structure: D({
|
|
1895
1969
|
rule: "steps",
|
|
1896
1970
|
label: "optional",
|
|
1897
1971
|
child: "step",
|
|
@@ -1900,7 +1974,7 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1900
1974
|
valueAttribute: "value",
|
|
1901
1975
|
generatedPrefix: "step-"
|
|
1902
1976
|
}),
|
|
1903
|
-
rules:
|
|
1977
|
+
rules: O({
|
|
1904
1978
|
kind: "value-sequence",
|
|
1905
1979
|
child: "step",
|
|
1906
1980
|
valueAttribute: "value",
|
|
@@ -1908,57 +1982,67 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1908
1982
|
generatedPrefix: "step-",
|
|
1909
1983
|
unique: !0
|
|
1910
1984
|
})
|
|
1911
|
-
}),
|
|
1985
|
+
}), fe = k("step", "container", {
|
|
1912
1986
|
props: {
|
|
1913
|
-
label:
|
|
1914
|
-
value:
|
|
1987
|
+
label: y(),
|
|
1988
|
+
value: v.staticText()
|
|
1915
1989
|
},
|
|
1916
|
-
structure:
|
|
1990
|
+
structure: D({
|
|
1917
1991
|
rule: "any",
|
|
1918
1992
|
label: "required",
|
|
1919
1993
|
parents: ["steps"]
|
|
1920
1994
|
})
|
|
1921
|
-
}),
|
|
1922
|
-
props: { label:
|
|
1923
|
-
structure:
|
|
1995
|
+
}), pe = k("accordion", "container", {
|
|
1996
|
+
props: { label: b() },
|
|
1997
|
+
structure: D({
|
|
1924
1998
|
rule: "components",
|
|
1925
1999
|
label: "optional",
|
|
1926
2000
|
child: "disclosure",
|
|
1927
2001
|
children: ["disclosure"],
|
|
1928
2002
|
min: 1
|
|
1929
2003
|
}),
|
|
1930
|
-
rules:
|
|
2004
|
+
rules: O({
|
|
1931
2005
|
kind: "only-children",
|
|
1932
2006
|
children: ["disclosure"],
|
|
1933
2007
|
min: 1
|
|
1934
2008
|
})
|
|
1935
|
-
}),
|
|
2009
|
+
}), me = k("disclosure", "container", {
|
|
1936
2010
|
props: {
|
|
1937
|
-
label:
|
|
1938
|
-
open:
|
|
2011
|
+
label: y(),
|
|
2012
|
+
open: v.boolean({ default: !1 })
|
|
1939
2013
|
},
|
|
1940
|
-
structure:
|
|
2014
|
+
structure: D({
|
|
1941
2015
|
rule: "any",
|
|
1942
2016
|
label: "required",
|
|
1943
2017
|
parents: ["accordion"]
|
|
1944
2018
|
})
|
|
1945
|
-
}),
|
|
1946
|
-
props: { when:
|
|
2019
|
+
}), he = k("if", "container", {
|
|
2020
|
+
props: { when: v.boolean({
|
|
1947
2021
|
dynamic: !0,
|
|
1948
2022
|
required: !0
|
|
1949
2023
|
}) },
|
|
1950
|
-
structure:
|
|
2024
|
+
structure: D({
|
|
2025
|
+
rule: "any",
|
|
2026
|
+
label: "none"
|
|
2027
|
+
}),
|
|
2028
|
+
rules: O({
|
|
2029
|
+
kind: "require-full-interpolation",
|
|
2030
|
+
attributes: ["when"]
|
|
2031
|
+
})
|
|
2032
|
+
}), ge = k("else", "container", {
|
|
2033
|
+
props: { when: v.boolean({ dynamic: !0 }) },
|
|
2034
|
+
structure: D({
|
|
1951
2035
|
rule: "any",
|
|
1952
2036
|
label: "none"
|
|
1953
2037
|
}),
|
|
1954
|
-
rules:
|
|
2038
|
+
rules: O({
|
|
1955
2039
|
kind: "require-full-interpolation",
|
|
1956
2040
|
attributes: ["when"]
|
|
1957
2041
|
})
|
|
1958
|
-
}),
|
|
2042
|
+
}), _e = k("alert", "container", {
|
|
1959
2043
|
props: {
|
|
1960
|
-
title:
|
|
1961
|
-
tone:
|
|
2044
|
+
title: x(),
|
|
2045
|
+
tone: v.choice([
|
|
1962
2046
|
"info",
|
|
1963
2047
|
"success",
|
|
1964
2048
|
"warning",
|
|
@@ -1968,13 +2052,13 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1968
2052
|
default: "info"
|
|
1969
2053
|
})
|
|
1970
2054
|
},
|
|
1971
|
-
structure:
|
|
2055
|
+
structure: D({
|
|
1972
2056
|
rule: "any",
|
|
1973
2057
|
label: "none"
|
|
1974
2058
|
})
|
|
1975
|
-
}),
|
|
2059
|
+
}), ve = k("badge", "inline", {
|
|
1976
2060
|
props: {
|
|
1977
|
-
tone:
|
|
2061
|
+
tone: v.choice([
|
|
1978
2062
|
"neutral",
|
|
1979
2063
|
"success",
|
|
1980
2064
|
"warning"
|
|
@@ -1982,44 +2066,44 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
1982
2066
|
dynamic: !0,
|
|
1983
2067
|
default: "neutral"
|
|
1984
2068
|
}),
|
|
1985
|
-
color:
|
|
2069
|
+
color: C()
|
|
1986
2070
|
},
|
|
1987
|
-
structure:
|
|
2071
|
+
structure: D({
|
|
1988
2072
|
rule: "inline",
|
|
1989
2073
|
label: "none",
|
|
1990
2074
|
inlineOnly: !0,
|
|
1991
2075
|
noComponents: !0
|
|
1992
2076
|
}),
|
|
1993
|
-
rules:
|
|
2077
|
+
rules: O({
|
|
1994
2078
|
kind: "inline-body",
|
|
1995
2079
|
strict: !0
|
|
1996
2080
|
}, { kind: "no-components" })
|
|
1997
|
-
}),
|
|
1998
|
-
props: { text:
|
|
1999
|
-
structure:
|
|
2081
|
+
}), ye = k("tooltip", "inline", {
|
|
2082
|
+
props: { text: v.text({ required: !0 }) },
|
|
2083
|
+
structure: D({
|
|
2000
2084
|
rule: "inline",
|
|
2001
2085
|
label: "none",
|
|
2002
2086
|
inlineOnly: !0,
|
|
2003
2087
|
noComponents: !0
|
|
2004
2088
|
}),
|
|
2005
|
-
rules:
|
|
2089
|
+
rules: O({
|
|
2006
2090
|
kind: "inline-body",
|
|
2007
2091
|
strict: !0
|
|
2008
2092
|
}, { kind: "no-components" })
|
|
2009
|
-
}),
|
|
2093
|
+
}), be = k("validation", "leaf", {
|
|
2010
2094
|
props: {
|
|
2011
|
-
when:
|
|
2095
|
+
when: v.boolean({
|
|
2012
2096
|
dynamic: !0,
|
|
2013
2097
|
required: !0
|
|
2014
2098
|
}),
|
|
2015
|
-
message:
|
|
2016
|
-
fields:
|
|
2099
|
+
message: v.text({ required: !0 }),
|
|
2100
|
+
fields: v.staticText({ required: !0 })
|
|
2017
2101
|
},
|
|
2018
|
-
structure:
|
|
2102
|
+
structure: D({
|
|
2019
2103
|
rule: "none",
|
|
2020
2104
|
label: "none"
|
|
2021
2105
|
}),
|
|
2022
|
-
rules:
|
|
2106
|
+
rules: O({
|
|
2023
2107
|
kind: "validation-rule",
|
|
2024
2108
|
when: "when",
|
|
2025
2109
|
fields: "fields",
|
|
@@ -2031,19 +2115,40 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2031
2115
|
attributes: ["fields"],
|
|
2032
2116
|
scope: "validation"
|
|
2033
2117
|
})
|
|
2034
|
-
}),
|
|
2118
|
+
}), xe = k("data-table", "container", {
|
|
2035
2119
|
props: {
|
|
2036
|
-
label:
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2120
|
+
label: v.staticText(),
|
|
2121
|
+
empty: v.staticText(),
|
|
2122
|
+
rows: v.expressionText({ required: !0 }),
|
|
2123
|
+
key: v.expressionText({ required: !0 }),
|
|
2124
|
+
searchable: v.boolean({ default: !1 }),
|
|
2125
|
+
sortable: v.boolean({ default: !1 }),
|
|
2126
|
+
"page-size": v.number({
|
|
2127
|
+
integer: !0,
|
|
2128
|
+
positive: !0
|
|
2129
|
+
}),
|
|
2130
|
+
"max-rows": v.number({
|
|
2040
2131
|
integer: !0,
|
|
2041
2132
|
positive: !0,
|
|
2042
|
-
max:
|
|
2133
|
+
max: i,
|
|
2043
2134
|
default: 100
|
|
2044
|
-
})
|
|
2045
|
-
|
|
2046
|
-
|
|
2135
|
+
}),
|
|
2136
|
+
align: v.choice([
|
|
2137
|
+
"left",
|
|
2138
|
+
"center",
|
|
2139
|
+
"right"
|
|
2140
|
+
], {
|
|
2141
|
+
static: !0,
|
|
2142
|
+
default: "center"
|
|
2143
|
+
}),
|
|
2144
|
+
"row-align": v.choice([
|
|
2145
|
+
"left",
|
|
2146
|
+
"center",
|
|
2147
|
+
"right"
|
|
2148
|
+
], { dynamic: !0 })
|
|
2149
|
+
},
|
|
2150
|
+
bindings: { value: w("string", "selection", "none", { requiresAttributes: ["key"] }) },
|
|
2151
|
+
structure: D({
|
|
2047
2152
|
rule: "components",
|
|
2048
2153
|
label: "required",
|
|
2049
2154
|
child: "column",
|
|
@@ -2051,7 +2156,7 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2051
2156
|
min: 1,
|
|
2052
2157
|
max: 20
|
|
2053
2158
|
}),
|
|
2054
|
-
rules:
|
|
2159
|
+
rules: O({
|
|
2055
2160
|
kind: "data-table",
|
|
2056
2161
|
rows: "rows",
|
|
2057
2162
|
key: "key",
|
|
@@ -2060,15 +2165,19 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2060
2165
|
label: "label",
|
|
2061
2166
|
maxRows: "max-rows",
|
|
2062
2167
|
defaultMaxRows: 100,
|
|
2063
|
-
documentRows:
|
|
2064
|
-
documentCells:
|
|
2168
|
+
documentRows: t,
|
|
2169
|
+
documentCells: r,
|
|
2065
2170
|
maxColumns: 20
|
|
2066
2171
|
}, {
|
|
2067
2172
|
kind: "require-full-interpolation",
|
|
2068
|
-
attributes: [
|
|
2173
|
+
attributes: [
|
|
2174
|
+
"rows",
|
|
2175
|
+
"key",
|
|
2176
|
+
"row-align"
|
|
2177
|
+
]
|
|
2069
2178
|
}, {
|
|
2070
2179
|
kind: "scoped-expressions",
|
|
2071
|
-
attributes: ["key"],
|
|
2180
|
+
attributes: ["key", "row-align"],
|
|
2072
2181
|
scope: "row"
|
|
2073
2182
|
}, {
|
|
2074
2183
|
kind: "row-values",
|
|
@@ -2076,18 +2185,60 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2076
2185
|
key: "key",
|
|
2077
2186
|
child: "column",
|
|
2078
2187
|
childValue: "value"
|
|
2188
|
+
}, {
|
|
2189
|
+
kind: "self-binding-read",
|
|
2190
|
+
mode: "always"
|
|
2079
2191
|
})
|
|
2080
|
-
}),
|
|
2192
|
+
}), Q = k("column", "leaf", {
|
|
2081
2193
|
props: {
|
|
2082
|
-
label:
|
|
2083
|
-
value:
|
|
2194
|
+
label: v.staticText({ required: !0 }),
|
|
2195
|
+
value: v.expressionText({ required: !0 }),
|
|
2196
|
+
format: v.choice([
|
|
2197
|
+
"plain",
|
|
2198
|
+
"number",
|
|
2199
|
+
"percent",
|
|
2200
|
+
"scientific",
|
|
2201
|
+
"currency"
|
|
2202
|
+
], {
|
|
2203
|
+
static: !0,
|
|
2204
|
+
default: "plain"
|
|
2205
|
+
}),
|
|
2206
|
+
summary: v.choice([
|
|
2207
|
+
"sum",
|
|
2208
|
+
"average",
|
|
2209
|
+
"count"
|
|
2210
|
+
], { static: !0 }),
|
|
2211
|
+
align: v.choice([
|
|
2212
|
+
"left",
|
|
2213
|
+
"center",
|
|
2214
|
+
"right"
|
|
2215
|
+
], { static: !0 }),
|
|
2216
|
+
digits: v.number({
|
|
2217
|
+
integer: !0,
|
|
2218
|
+
min: 0,
|
|
2219
|
+
max: 20
|
|
2220
|
+
}),
|
|
2221
|
+
currency: v.staticText({
|
|
2222
|
+
default: "USD",
|
|
2223
|
+
pattern: "^[A-Z]{3}$"
|
|
2224
|
+
}),
|
|
2225
|
+
locale: v.choice([
|
|
2226
|
+
"en-US",
|
|
2227
|
+
"zh-CN",
|
|
2228
|
+
"de-DE",
|
|
2229
|
+
"fr-FR",
|
|
2230
|
+
"ja-JP"
|
|
2231
|
+
], {
|
|
2232
|
+
static: !0,
|
|
2233
|
+
default: "en-US"
|
|
2234
|
+
})
|
|
2084
2235
|
},
|
|
2085
|
-
structure:
|
|
2236
|
+
structure: D({
|
|
2086
2237
|
rule: "none",
|
|
2087
2238
|
label: "none",
|
|
2088
|
-
parents: ["data-table"]
|
|
2239
|
+
parents: ["data-table", "chart"]
|
|
2089
2240
|
}),
|
|
2090
|
-
rules:
|
|
2241
|
+
rules: O({
|
|
2091
2242
|
kind: "require-full-interpolation",
|
|
2092
2243
|
attributes: ["value"]
|
|
2093
2244
|
}, {
|
|
@@ -2095,24 +2246,24 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2095
2246
|
attributes: ["value"],
|
|
2096
2247
|
scope: "row"
|
|
2097
2248
|
})
|
|
2098
|
-
}),
|
|
2249
|
+
}), Se = k("table", "container", {
|
|
2099
2250
|
props: {
|
|
2100
|
-
label:
|
|
2101
|
-
searchable:
|
|
2102
|
-
sortable:
|
|
2103
|
-
"page-size":
|
|
2251
|
+
label: b(),
|
|
2252
|
+
searchable: v.boolean({ default: !0 }),
|
|
2253
|
+
sortable: v.boolean({ default: !0 }),
|
|
2254
|
+
"page-size": v.number({
|
|
2104
2255
|
integer: !0,
|
|
2105
2256
|
positive: !0,
|
|
2106
2257
|
default: 10
|
|
2107
2258
|
}),
|
|
2108
|
-
key:
|
|
2259
|
+
key: v.staticText()
|
|
2109
2260
|
},
|
|
2110
|
-
bindings: { value:
|
|
2111
|
-
structure:
|
|
2261
|
+
bindings: { value: w("string", "selection", "none", { requiresAttributes: ["key"] }) },
|
|
2262
|
+
structure: D({
|
|
2112
2263
|
rule: "table",
|
|
2113
2264
|
label: "optional"
|
|
2114
2265
|
}),
|
|
2115
|
-
rules:
|
|
2266
|
+
rules: O({ kind: "single-table" }, {
|
|
2116
2267
|
kind: "selection-requires",
|
|
2117
2268
|
key: "key",
|
|
2118
2269
|
attributes: ["bind", "initial"]
|
|
@@ -2125,9 +2276,9 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2125
2276
|
mode: "attribute",
|
|
2126
2277
|
attribute: "key"
|
|
2127
2278
|
})
|
|
2128
|
-
}),
|
|
2279
|
+
}), Ce = k("chart", "container", {
|
|
2129
2280
|
props: {
|
|
2130
|
-
kind:
|
|
2281
|
+
kind: v.choice([
|
|
2131
2282
|
"bar",
|
|
2132
2283
|
"line",
|
|
2133
2284
|
"area",
|
|
@@ -2138,23 +2289,34 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2138
2289
|
static: !0,
|
|
2139
2290
|
default: "bar"
|
|
2140
2291
|
}),
|
|
2141
|
-
title:
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
"
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2292
|
+
title: x(),
|
|
2293
|
+
rows: v.expressionText(),
|
|
2294
|
+
x: v.staticText(),
|
|
2295
|
+
y: v.staticText(),
|
|
2296
|
+
"x-label": v.text(),
|
|
2297
|
+
"y-label": v.text(),
|
|
2298
|
+
key: v.staticText(),
|
|
2299
|
+
"max-rows": v.number({
|
|
2300
|
+
integer: !0,
|
|
2301
|
+
positive: !0,
|
|
2302
|
+
max: i,
|
|
2303
|
+
default: 100
|
|
2304
|
+
})
|
|
2305
|
+
},
|
|
2306
|
+
bindings: { value: w("string", "selection", "none", { requiresAttributes: ["key"] }) },
|
|
2307
|
+
structure: D({
|
|
2150
2308
|
rule: "table",
|
|
2151
2309
|
label: "none"
|
|
2152
2310
|
}),
|
|
2153
|
-
rules:
|
|
2311
|
+
rules: O({ kind: "single-table" }, {
|
|
2154
2312
|
kind: "chart-table",
|
|
2155
2313
|
chartKind: "kind",
|
|
2156
2314
|
x: "x",
|
|
2157
2315
|
y: "y"
|
|
2316
|
+
}, {
|
|
2317
|
+
kind: "scoped-expressions",
|
|
2318
|
+
attributes: ["rows"],
|
|
2319
|
+
scope: "row"
|
|
2158
2320
|
}, {
|
|
2159
2321
|
kind: "table-selection",
|
|
2160
2322
|
key: "key",
|
|
@@ -2168,38 +2330,38 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2168
2330
|
mode: "attribute",
|
|
2169
2331
|
attribute: "key"
|
|
2170
2332
|
})
|
|
2171
|
-
}),
|
|
2333
|
+
}), we = k("plot", "container", {
|
|
2172
2334
|
props: {
|
|
2173
|
-
label:
|
|
2174
|
-
min:
|
|
2335
|
+
label: b(),
|
|
2336
|
+
min: v.number({
|
|
2175
2337
|
dynamic: !0,
|
|
2176
2338
|
default: -10
|
|
2177
2339
|
}),
|
|
2178
|
-
max:
|
|
2340
|
+
max: v.number({
|
|
2179
2341
|
dynamic: !0,
|
|
2180
2342
|
default: 10
|
|
2181
2343
|
}),
|
|
2182
|
-
samples:
|
|
2344
|
+
samples: v.number({
|
|
2183
2345
|
integer: !0,
|
|
2184
2346
|
min: 2,
|
|
2185
2347
|
max: 2e3,
|
|
2186
2348
|
static: !0,
|
|
2187
2349
|
default: 200
|
|
2188
2350
|
}),
|
|
2189
|
-
points:
|
|
2351
|
+
points: v.number({
|
|
2190
2352
|
integer: !0,
|
|
2191
2353
|
min: 2,
|
|
2192
2354
|
max: 2e3,
|
|
2193
2355
|
static: !0
|
|
2194
2356
|
}),
|
|
2195
|
-
"x-label":
|
|
2196
|
-
"y-label":
|
|
2357
|
+
"x-label": v.text({ default: "x" }),
|
|
2358
|
+
"y-label": v.text({ default: "y" })
|
|
2197
2359
|
},
|
|
2198
|
-
structure:
|
|
2360
|
+
structure: D({
|
|
2199
2361
|
rule: "plot",
|
|
2200
2362
|
label: "optional"
|
|
2201
2363
|
}),
|
|
2202
|
-
rules:
|
|
2364
|
+
rules: O({ kind: "math-body" }, {
|
|
2203
2365
|
kind: "numeric-range",
|
|
2204
2366
|
min: "min",
|
|
2205
2367
|
max: "max",
|
|
@@ -2211,18 +2373,18 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2211
2373
|
samples: "samples",
|
|
2212
2374
|
samplesAlias: "points",
|
|
2213
2375
|
curves: 16,
|
|
2214
|
-
points:
|
|
2376
|
+
points: e
|
|
2215
2377
|
}, { kind: "inline-math-reads" })
|
|
2216
|
-
}),
|
|
2378
|
+
}), Te = k("timeline", "container", {
|
|
2217
2379
|
props: {
|
|
2218
|
-
title:
|
|
2219
|
-
unit:
|
|
2380
|
+
title: x(),
|
|
2381
|
+
unit: v.text({ default: "minutes" })
|
|
2220
2382
|
},
|
|
2221
|
-
structure:
|
|
2383
|
+
structure: D({
|
|
2222
2384
|
rule: "table",
|
|
2223
2385
|
label: "none"
|
|
2224
2386
|
}),
|
|
2225
|
-
rules:
|
|
2387
|
+
rules: O({ kind: "single-table" }, {
|
|
2226
2388
|
kind: "timeline-table",
|
|
2227
2389
|
headerSets: [[
|
|
2228
2390
|
"Task",
|
|
@@ -2236,23 +2398,23 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2236
2398
|
"说明"
|
|
2237
2399
|
]]
|
|
2238
2400
|
})
|
|
2239
|
-
}),
|
|
2401
|
+
}), Ee = k("diagram", "container", {
|
|
2240
2402
|
props: {
|
|
2241
|
-
label:
|
|
2242
|
-
direction:
|
|
2403
|
+
label: b(),
|
|
2404
|
+
direction: v.choice(["right", "down"], {
|
|
2243
2405
|
static: !0,
|
|
2244
2406
|
default: "right"
|
|
2245
2407
|
})
|
|
2246
2408
|
},
|
|
2247
|
-
bindings: { value:
|
|
2248
|
-
structure:
|
|
2409
|
+
bindings: { value: w("string", "diagram", "first-node", { exclusive: !0 }) },
|
|
2410
|
+
structure: D({
|
|
2249
2411
|
rule: "diagram",
|
|
2250
2412
|
label: "optional",
|
|
2251
2413
|
child: "node",
|
|
2252
2414
|
children: ["node", "edge"],
|
|
2253
2415
|
min: 1
|
|
2254
2416
|
}),
|
|
2255
|
-
rules:
|
|
2417
|
+
rules: O({
|
|
2256
2418
|
kind: "diagram-body",
|
|
2257
2419
|
node: "node",
|
|
2258
2420
|
edge: "edge",
|
|
@@ -2264,11 +2426,11 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2264
2426
|
kind: "self-binding-read",
|
|
2265
2427
|
mode: "always"
|
|
2266
2428
|
})
|
|
2267
|
-
}),
|
|
2429
|
+
}), De = k("node", "container", {
|
|
2268
2430
|
props: {
|
|
2269
|
-
id:
|
|
2270
|
-
label:
|
|
2271
|
-
tone:
|
|
2431
|
+
id: v.staticText({ required: !0 }),
|
|
2432
|
+
label: y(),
|
|
2433
|
+
tone: v.choice([
|
|
2272
2434
|
"neutral",
|
|
2273
2435
|
"success",
|
|
2274
2436
|
"warning"
|
|
@@ -2277,26 +2439,25 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2277
2439
|
default: "neutral"
|
|
2278
2440
|
})
|
|
2279
2441
|
},
|
|
2280
|
-
structure:
|
|
2442
|
+
structure: D({
|
|
2281
2443
|
rule: "content",
|
|
2282
2444
|
label: "required",
|
|
2283
2445
|
noComponents: !0,
|
|
2284
2446
|
parents: ["diagram"]
|
|
2285
2447
|
}),
|
|
2286
|
-
rules:
|
|
2287
|
-
}),
|
|
2448
|
+
rules: O({ kind: "no-components" })
|
|
2449
|
+
}), Oe = k("edge", "leaf", {
|
|
2288
2450
|
props: {
|
|
2289
|
-
from:
|
|
2290
|
-
to:
|
|
2291
|
-
label:
|
|
2451
|
+
from: v.staticText({ required: !0 }),
|
|
2452
|
+
to: v.staticText({ required: !0 }),
|
|
2453
|
+
label: b()
|
|
2292
2454
|
},
|
|
2293
|
-
structure:
|
|
2455
|
+
structure: D({
|
|
2294
2456
|
rule: "none",
|
|
2295
2457
|
label: "none",
|
|
2296
2458
|
parents: ["diagram"]
|
|
2297
2459
|
})
|
|
2298
2460
|
}), $ = Object.freeze([
|
|
2299
|
-
k,
|
|
2300
2461
|
A,
|
|
2301
2462
|
j,
|
|
2302
2463
|
M,
|
|
@@ -2305,7 +2466,7 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2305
2466
|
F,
|
|
2306
2467
|
I,
|
|
2307
2468
|
L,
|
|
2308
|
-
|
|
2469
|
+
R,
|
|
2309
2470
|
B,
|
|
2310
2471
|
V,
|
|
2311
2472
|
H,
|
|
@@ -2343,15 +2504,17 @@ var z = R("select"), B = R("choices"), V = R("radio-group"), H = O("multi-select
|
|
|
2343
2504
|
Ce,
|
|
2344
2505
|
we,
|
|
2345
2506
|
Te,
|
|
2346
|
-
Ee
|
|
2347
|
-
|
|
2507
|
+
Ee,
|
|
2508
|
+
De,
|
|
2509
|
+
Oe
|
|
2510
|
+
]), ke = Object.freeze($.map((e) => e.name));
|
|
2348
2511
|
// src/presets/default-components.ts
|
|
2349
|
-
function
|
|
2512
|
+
function Ae(e) {
|
|
2350
2513
|
let t = g(e.name);
|
|
2351
|
-
return t ?
|
|
2514
|
+
return t ? o({
|
|
2352
2515
|
...e,
|
|
2353
2516
|
authoring: t
|
|
2354
2517
|
}) : e;
|
|
2355
2518
|
}
|
|
2356
|
-
var
|
|
2357
|
-
export {
|
|
2519
|
+
var je = Object.freeze($.map(Ae));
|
|
2520
|
+
export { f as a, ee as c, m as d, l as i, p as l, ke as n, d as o, $ as r, h as s, je as t, g as u };
|