@argusvane/datum-form-test 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/NOTICE +26 -0
- package/README.md +52 -2
- package/bin/datum-form-test.mjs +11 -0
- package/dist/bundle-size.txt +3 -0
- package/dist/cli.mjs +3 -0
- package/dist/datum-form-test.LICENSE.txt +510 -0
- package/dist/index.mjs +68728 -0
- package/dist/types/engine/form-engine/agent/builder/agent-texts-en.d.ts +53 -0
- package/dist/types/engine/form-engine/builder/controller/builder-controller.d.ts +2534 -0
- package/dist/types/engine/form-engine/builder/controller/dependents.d.ts +122 -0
- package/dist/types/engine/form-engine/builder/controller/language-edits.d.ts +48 -0
- package/dist/types/engine/form-engine/builder/controller/simulated-options.d.ts +20 -0
- package/dist/types/engine/form-engine/builder/controller/translation-rules.d.ts +71 -0
- package/dist/types/engine/form-engine/builder/controller/try-submission.d.ts +45 -0
- package/dist/types/engine/form-engine/builder/data/data-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/data/data-model-import.d.ts +119 -0
- package/dist/types/engine/form-engine/builder/data/data-model-plan.d.ts +52 -0
- package/dist/types/engine/form-engine/builder/data/data-surface.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/data/data-texts-en.d.ts +205 -0
- package/dist/types/engine/form-engine/builder/data/schema-rows.d.ts +56 -0
- package/dist/types/engine/form-engine/builder/data-model/compare.d.ts +37 -0
- package/dist/types/engine/form-engine/builder/data-model/data-model.d.ts +113 -0
- package/dist/types/engine/form-engine/builder/data-model/example.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/data-model/from-form.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/data-model/from-json-schema.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/data-model/from-sample.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/data-model/generate.d.ts +101 -0
- package/dist/types/engine/form-engine/builder/data-model/index.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/data-model/mapping.d.ts +26 -0
- package/dist/types/engine/form-engine/builder/data-model/read-input.d.ts +39 -0
- package/dist/types/engine/form-engine/builder/data-model/to-json-schema.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/definition-budget.d.ts +27 -0
- package/dist/types/engine/form-engine/builder/drag-drop/html5-drag-drop.d.ts +57 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-legality.d.ts +23 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-texts-en.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/drag-drop/move-ui.d.ts +72 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-accept.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-add-step.d.ts +51 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-completions.d.ts +66 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-coverage.d.ts +32 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor-loader.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor-texts-en.d.ts +72 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-editor.d.ts +50 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-model.d.ts +422 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-panel-styles.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-panel-texts-en.d.ts +174 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-record.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-rename.d.ts +93 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-rules.d.ts +42 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-runner.d.ts +2 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-scaffold.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-textarea.d.ts +88 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-texts-en.d.ts +222 -0
- package/dist/types/engine/form-engine/builder/form-tests/tests-words.d.ts +12 -0
- package/dist/types/engine/form-engine/builder/formula/feel-functions.d.ts +98 -0
- package/dist/types/engine/form-engine/builder/formula/feel-print.d.ts +47 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor-loader.d.ts +16 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor-styles.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/formula/formula-editor.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/formula/formula-fields.d.ts +44 -0
- package/dist/types/engine/form-engine/builder/formula/formula-textarea.d.ts +75 -0
- package/dist/types/engine/form-engine/builder/formula/formula-texts-en.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/formula/rename.d.ts +98 -0
- package/dist/types/engine/form-engine/builder/history/command-history.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/history/form-steps-on-page.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/history/rename-step.d.ts +68 -0
- package/dist/types/engine/form-engine/builder/index.d.ts +48 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-authoring-texts-en.d.ts +20 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-authoring.d.ts +119 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-builder-mode.d.ts +385 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-catalog.d.ts +212 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-checks.d.ts +175 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-components.d.ts +183 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-config-rename.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-designer-panels.d.ts +67 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-designer.d.ts +296 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-finding-words.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-findings.d.ts +74 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-from-form.d.ts +89 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-mode-loader.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-mode-model.d.ts +100 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-preview-texts-en.d.ts +28 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-preview.d.ts +163 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-references.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-texts-en.d.ts +151 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-texts.d.ts +51 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-tree.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/journey-designer/journey-try-map.d.ts +49 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-canvas-adapter.d.ts +253 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-history.d.ts +71 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-review.d.ts +79 -0
- package/dist/types/engine/form-engine/builder/journey-designer/step-view.d.ts +75 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-layout.d.ts +135 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-model.d.ts +346 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-preferences.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-styles.d.ts +32 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-svg.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map-texts-en.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/journey-map/journey-map.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/languages/engine-texts.d.ts +19 -0
- package/dist/types/engine/form-engine/builder/languages/exchange.d.ts +199 -0
- package/dist/types/engine/form-engine/builder/languages/languages-cells.d.ts +106 -0
- package/dist/types/engine/form-engine/builder/languages/languages-exchange-dialog.d.ts +58 -0
- package/dist/types/engine/form-engine/builder/languages/languages-exchange-texts-en.d.ts +101 -0
- package/dist/types/engine/form-engine/builder/languages/languages-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/languages/languages-model.d.ts +180 -0
- package/dist/types/engine/form-engine/builder/languages/languages-surface.d.ts +418 -0
- package/dist/types/engine/form-engine/builder/languages/languages-texts-en.d.ts +174 -0
- package/dist/types/engine/form-engine/builder/logic/builder-texts.d.ts +1127 -0
- package/dist/types/engine/form-engine/builder/logic/coverage.d.ts +86 -0
- package/dist/types/engine/form-engine/builder/logic/index.d.ts +5 -0
- package/dist/types/engine/form-engine/builder/logic/logic-journey-host.d.ts +92 -0
- package/dist/types/engine/form-engine/builder/logic/logic-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/logic/logic-model.d.ts +158 -0
- package/dist/types/engine/form-engine/builder/logic/logic-surface.d.ts +359 -0
- package/dist/types/engine/form-engine/builder/logic/logic-texts-en.d.ts +216 -0
- package/dist/types/engine/form-engine/builder/logic/logic-types.d.ts +183 -0
- package/dist/types/engine/form-engine/builder/overview/overview-loader.d.ts +7 -0
- package/dist/types/engine/form-engine/builder/overview/overview-surface.d.ts +84 -0
- package/dist/types/engine/form-engine/builder/overview/overview-texts-en.d.ts +27 -0
- package/dist/types/engine/form-engine/builder/palette/command-palette.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/palette/palette-filter.d.ts +37 -0
- package/dist/types/engine/form-engine/builder/palette/palette-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/palette/palette-texts-en.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-bindings.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-catalog.d.ts +108 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/layout-conditions.d.ts +172 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-builder-mode.d.ts +406 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-canvas-adapters.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-chunk.d.ts +13 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-loader.d.ts +10 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer-panels.d.ts +89 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-designer.d.ts +95 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-layout-texts.d.ts +86 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-mode-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-mode-model.d.ts +88 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-panel-styles.d.ts +1 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-template-designer.d.ts +139 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-template-source.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/pdf-texts-en.d.ts +405 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/template-mode.d.ts +186 -0
- package/dist/types/engine/form-engine/builder/pdf-designer/template-pages.d.ts +57 -0
- package/dist/types/engine/form-engine/builder/popover-place.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/preview/builder-preview-runtime.d.ts +284 -0
- package/dist/types/engine/form-engine/builder/print/print-breaks.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/print/print-loader.d.ts +6 -0
- package/dist/types/engine/form-engine/builder/print/print-preview.d.ts +121 -0
- package/dist/types/engine/form-engine/builder/print/print-samples.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/print/print-settings-model.d.ts +138 -0
- package/dist/types/engine/form-engine/builder/print/print-styles.d.ts +1 -0
- package/dist/types/engine/form-engine/builder/print/print-surface.d.ts +284 -0
- package/dist/types/engine/form-engine/builder/print/print-texts-en.d.ts +104 -0
- package/dist/types/engine/form-engine/builder/property-editor/component-editor-context.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/property-editor/component-json.d.ts +83 -0
- package/dist/types/engine/form-engine/builder/property-editor/condition-words.d.ts +26 -0
- package/dist/types/engine/form-engine/builder/property-editor/css-classes.d.ts +84 -0
- package/dist/types/engine/form-engine/builder/property-editor/editor-composer.d.ts +9 -0
- package/dist/types/engine/form-engine/builder/property-editor/inspector-model.d.ts +376 -0
- package/dist/types/engine/form-engine/builder/property-editor/rule-source.d.ts +8 -0
- package/dist/types/engine/form-engine/builder/property-editor/rules-model.d.ts +179 -0
- package/dist/types/engine/form-engine/builder/tree-editor/nested-tree-view.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/tree-editor/slot-constraints.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/tree-editor/tree-editor.d.ts +185 -0
- package/dist/types/engine/form-engine/builder/web-component/assistants-settings.d.ts +43 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-chrome-panel.d.ts +179 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-features.d.ts +97 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-form-fields-panel.d.ts +42 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-modes.d.ts +704 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-outline.d.ts +24 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-panels.d.ts +1872 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-shared.d.ts +917 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-tests-panel.d.ts +454 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-theme-registry.d.ts +36 -0
- package/dist/types/engine/form-engine/builder/web-component/builder-variables-panel.d.ts +158 -0
- package/dist/types/engine/form-engine/builder/web-component/canvas-hooks.d.ts +53 -0
- package/dist/types/engine/form-engine/builder/web-component/chrome-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/web-component/default-builder-element.d.ts +2012 -0
- package/dist/types/engine/form-engine/builder/web-component/definition-size.d.ts +12 -0
- package/dist/types/engine/form-engine/builder/web-component/dialog-frame.d.ts +36 -0
- package/dist/types/engine/form-engine/builder/web-component/formula-settings.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/web-component/host-control-styles.d.ts +38 -0
- package/dist/types/engine/form-engine/builder/web-component/json-viewer-loader.d.ts +18 -0
- package/dist/types/engine/form-engine/builder/web-component/json-viewer.d.ts +38 -0
- package/dist/types/engine/form-engine/builder/web-component/modal-place.d.ts +55 -0
- package/dist/types/engine/form-engine/builder/web-component/palette-glyphs.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/web-component/panel-memory.d.ts +68 -0
- package/dist/types/engine/form-engine/builder/web-component/phone-menu.d.ts +67 -0
- package/dist/types/engine/form-engine/builder/web-component/phone-styles.d.ts +30 -0
- package/dist/types/engine/form-engine/builder/web-component/remote-images.d.ts +25 -0
- package/dist/types/engine/form-engine/builder/web-component/sheet-gestures.d.ts +59 -0
- package/dist/types/engine/form-engine/builder/web-component/starter-submit.d.ts +14 -0
- package/dist/types/engine/form-engine/builder/web-component/studio-dark-theme.d.ts +22 -0
- package/dist/types/engine/form-engine/builder/web-component/studio-tokens.d.ts +46 -0
- package/dist/types/engine/form-engine/builder/web-component/surface-sheet.d.ts +31 -0
- package/dist/types/engine/form-engine/builder/web-component/tests-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/builder/web-component/toolbar-roving.d.ts +21 -0
- package/dist/types/engine/form-engine/builder/web-component/try-it-types.d.ts +262 -0
- package/dist/types/engine/form-engine/builder/web-component/try-it.d.ts +85 -0
- package/dist/types/engine/form-engine/builder/web-component/try-texts-en.d.ts +64 -0
- package/dist/types/engine/form-engine/builder/web-component/variables-panel-loader.d.ts +17 -0
- package/dist/types/engine/form-engine/core/accessibility/accessibility-semantics.d.ts +51 -0
- package/dist/types/engine/form-engine/core/accessibility/keyboard-navigation.d.ts +8 -0
- package/dist/types/engine/form-engine/core/crypto/sha256.d.ts +18 -0
- package/dist/types/engine/form-engine/core/errors/error-navigation.d.ts +14 -0
- package/dist/types/engine/form-engine/core/errors/form-error.d.ts +32 -0
- package/dist/types/engine/form-engine/core/events/event-bus.d.ts +18 -0
- package/dist/types/engine/form-engine/core/events/event-types.d.ts +236 -0
- package/dist/types/engine/form-engine/core/events/hooks.d.ts +107 -0
- package/dist/types/engine/form-engine/core/expressions/compile.d.ts +565 -0
- package/dist/types/engine/form-engine/core/expressions/condition-shape.d.ts +11 -0
- package/dist/types/engine/form-engine/core/expressions/definition-structure.d.ts +329 -0
- package/dist/types/engine/form-engine/core/expressions/expression.d.ts +102 -0
- package/dist/types/engine/form-engine/core/expressions/formula-types.d.ts +114 -0
- package/dist/types/engine/form-engine/core/expressions/formula.d.ts +150 -0
- package/dist/types/engine/form-engine/core/expressions/function-docs.d.ts +13 -0
- package/dist/types/engine/form-engine/core/expressions/function-table.d.ts +396 -0
- package/dist/types/engine/form-engine/core/expressions/inspect.d.ts +292 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-lint.d.ts +28 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-parse.d.ts +200 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-read.d.ts +11 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-run.d.ts +58 -0
- package/dist/types/engine/form-engine/core/form-tests/form-test-types.d.ts +413 -0
- package/dist/types/engine/form-engine/core/form-tests/index.d.ts +7 -0
- package/dist/types/engine/form-engine/core/index.d.ts +75 -0
- package/dist/types/engine/form-engine/core/journey/journey-diagnostics.d.ts +249 -0
- package/dist/types/engine/form-engine/core/journey/journey-flow.d.ts +77 -0
- package/dist/types/engine/form-engine/core/journey/journey-path.d.ts +213 -0
- package/dist/types/engine/form-engine/core/journey/journey-server-check.d.ts +66 -0
- package/dist/types/engine/form-engine/core/journey/journey-shared.d.ts +39 -0
- package/dist/types/engine/form-engine/core/journey/journey-types.d.ts +246 -0
- package/dist/types/engine/form-engine/core/journey/presentation.d.ts +163 -0
- package/dist/types/engine/form-engine/core/journey/worked-out-text.d.ts +10 -0
- package/dist/types/engine/form-engine/core/localization/form-texts.d.ts +283 -0
- package/dist/types/engine/form-engine/core/localization/locale-documents.d.ts +74 -0
- package/dist/types/engine/form-engine/core/localization/localized-text.d.ts +21 -0
- package/dist/types/engine/form-engine/core/localization/supported-locales.d.ts +49 -0
- package/dist/types/engine/form-engine/core/localization/translations.d.ts +312 -0
- package/dist/types/engine/form-engine/core/localization/validation-messages.d.ts +120 -0
- package/dist/types/engine/form-engine/core/schema/agent-tools-setting.d.ts +5 -0
- package/dist/types/engine/form-engine/core/schema/answer-kinds.d.ts +92 -0
- package/dist/types/engine/form-engine/core/schema/button-group.d.ts +24 -0
- package/dist/types/engine/form-engine/core/schema/button.d.ts +75 -0
- package/dist/types/engine/form-engine/core/schema/collection.d.ts +29 -0
- package/dist/types/engine/form-engine/core/schema/component-classes.d.ts +26 -0
- package/dist/types/engine/form-engine/core/schema/component-kinds.d.ts +76 -0
- package/dist/types/engine/form-engine/core/schema/contracts.d.ts +614 -0
- package/dist/types/engine/form-engine/core/schema/control-hints.d.ts +45 -0
- package/dist/types/engine/form-engine/core/schema/data-grid.d.ts +138 -0
- package/dist/types/engine/form-engine/core/schema/data-source-capability.d.ts +20 -0
- package/dist/types/engine/form-engine/core/schema/file-upload.d.ts +114 -0
- package/dist/types/engine/form-engine/core/schema/form-chrome.d.ts +301 -0
- package/dist/types/engine/form-engine/core/schema/grid.d.ts +88 -0
- package/dist/types/engine/form-engine/core/schema/image.d.ts +19 -0
- package/dist/types/engine/form-engine/core/schema/inline-options.d.ts +69 -0
- package/dist/types/engine/form-engine/core/schema/journey.d.ts +336 -0
- package/dist/types/engine/form-engine/core/schema/legend-mark.d.ts +10 -0
- package/dist/types/engine/form-engine/core/schema/length-limits.d.ts +33 -0
- package/dist/types/engine/form-engine/core/schema/pattern-validity.d.ts +2 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout-read.d.ts +508 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout-table.d.ts +25 -0
- package/dist/types/engine/form-engine/core/schema/pdf-layout.d.ts +224 -0
- package/dist/types/engine/form-engine/core/schema/pdf-renditions.d.ts +46 -0
- package/dist/types/engine/form-engine/core/schema/pdf-signature-configuration.d.ts +6 -0
- package/dist/types/engine/form-engine/core/schema/print.d.ts +76 -0
- package/dist/types/engine/form-engine/core/schema/signature.d.ts +13 -0
- package/dist/types/engine/form-engine/core/schema/static-html.d.ts +44 -0
- package/dist/types/engine/form-engine/core/schema/steps.d.ts +28 -0
- package/dist/types/engine/form-engine/core/schema/types.d.ts +186 -0
- package/dist/types/engine/form-engine/core/schema/validate-on-setting.d.ts +16 -0
- package/dist/types/engine/form-engine/core/state/answer-shape.d.ts +28 -0
- package/dist/types/engine/form-engine/core/state/effective-state.d.ts +42 -0
- package/dist/types/engine/form-engine/core/state/form-state.d.ts +160 -0
- package/dist/types/engine/form-engine/core/state/hidden-value-policy.d.ts +34 -0
- package/dist/types/engine/form-engine/core/state/host-context.d.ts +24 -0
- package/dist/types/engine/form-engine/core/state/semantic-state.d.ts +19 -0
- package/dist/types/engine/form-engine/core/state/submittable-fold.d.ts +460 -0
- package/dist/types/engine/form-engine/core/submission/canonical-submission.d.ts +62 -0
- package/dist/types/engine/form-engine/core/submission/envelope-completeness.d.ts +20 -0
- package/dist/types/engine/form-engine/core/submission/form-notice.d.ts +43 -0
- package/dist/types/engine/form-engine/core/submission/jcs.d.ts +20 -0
- package/dist/types/engine/form-engine/core/submission/signing.d.ts +110 -0
- package/dist/types/engine/form-engine/core/submission/submission-file.d.ts +34 -0
- package/dist/types/engine/form-engine/core/submission/submission-handler.d.ts +25 -0
- package/dist/types/engine/form-engine/core/submission/submission-modes.d.ts +11 -0
- package/dist/types/engine/form-engine/core/submission/webauthn-assertion.d.ts +41 -0
- package/dist/types/engine/form-engine/core/text/placeholders.d.ts +20 -0
- package/dist/types/engine/form-engine/core/text/spreadsheet-cell.d.ts +14 -0
- package/dist/types/engine/form-engine/core/tree/component-id.d.ts +14 -0
- package/dist/types/engine/form-engine/core/tree/component-path.d.ts +6 -0
- package/dist/types/engine/form-engine/core/tree/component-tree.d.ts +60 -0
- package/dist/types/engine/form-engine/core/tree/data-scope.d.ts +151 -0
- package/dist/types/engine/form-engine/core/tree/nesting.d.ts +10 -0
- package/dist/types/engine/form-engine/core/tree/prototype-names.d.ts +6 -0
- package/dist/types/engine/form-engine/data/client/client-data-source-runtime.d.ts +7 -0
- package/dist/types/engine/form-engine/data/client/registered-client-data-source-runtime.d.ts +6 -0
- package/dist/types/engine/form-engine/data/host/data-source-set.d.ts +46 -0
- package/dist/types/engine/form-engine/data/index.d.ts +9 -0
- package/dist/types/engine/form-engine/data/providers/data-source-provider-registry.d.ts +11 -0
- package/dist/types/engine/form-engine/data/providers/registered-data-source-runtime.d.ts +10 -0
- package/dist/types/engine/form-engine/data/providers/remote-data-source-provider.d.ts +30 -0
- package/dist/types/engine/form-engine/data/providers/static-data-source-provider.d.ts +20 -0
- package/dist/types/engine/form-engine/data/server/registered-server-data-source-runtime.d.ts +6 -0
- package/dist/types/engine/form-engine/data/server/server-data-source-runtime.d.ts +7 -0
- package/dist/types/engine/form-engine/index.d.ts +29 -0
- package/dist/types/engine/form-engine/persistence/core/draft-compatibility.d.ts +22 -0
- package/dist/types/engine/form-engine/persistence/core/draft-store.d.ts +96 -0
- package/dist/types/engine/form-engine/persistence/file-draft/draft-file.d.ts +3 -0
- package/dist/types/engine/form-engine/persistence/index.d.ts +7 -0
- package/dist/types/engine/form-engine/persistence/indexeddb/indexeddb-draft-store.d.ts +15 -0
- package/dist/types/engine/form-engine/persistence/local-storage/browser-local-draft-store.d.ts +22 -0
- package/dist/types/engine/form-engine/persistence/local-storage/in-memory-draft-store.d.ts +8 -0
- package/dist/types/engine/form-engine/persistence/server/server-draft-store.d.ts +15 -0
- package/dist/types/engine/form-engine/plugins/component-adapters.d.ts +66 -0
- package/dist/types/engine/form-engine/plugins/index.d.ts +4 -0
- package/dist/types/engine/form-engine/plugins/lifecycle/plugin-lifecycle.d.ts +11 -0
- package/dist/types/engine/form-engine/plugins/manifest/load-plugin-manifest.d.ts +23 -0
- package/dist/types/engine/form-engine/plugins/platform/plugin-platform.d.ts +81 -0
- package/dist/types/engine/form-engine/registry/capabilities/drawing-capabilities.d.ts +52 -0
- package/dist/types/engine/form-engine/registry/capabilities/field-capabilities.d.ts +205 -0
- package/dist/types/engine/form-engine/registry/components/component-registry.d.ts +9 -0
- package/dist/types/engine/form-engine/registry/data-sources/data-source-registry.d.ts +9 -0
- package/dist/types/engine/form-engine/registry/engine-component-types.d.ts +20 -0
- package/dist/types/engine/form-engine/registry/engine-version.d.ts +5 -0
- package/dist/types/engine/form-engine/registry/formula-functions/formula-function-registry.d.ts +33 -0
- package/dist/types/engine/form-engine/registry/index.d.ts +13 -0
- package/dist/types/engine/form-engine/registry/kinds.d.ts +83 -0
- package/dist/types/engine/form-engine/registry/pdf/pdf-rendition-registry.d.ts +15 -0
- package/dist/types/engine/form-engine/registry/plugins/plugin-registry.d.ts +14 -0
- package/dist/types/engine/form-engine/registry/submission/submission-handler-registry.d.ts +7 -0
- package/dist/types/engine/form-engine/registry/validators/validator-registry.d.ts +6 -0
- package/dist/types/engine/form-engine/registry/version-range.d.ts +15 -0
- package/dist/types/engine/form-engine/registry/versioned-theme-registry.d.ts +30 -0
- package/dist/types/engine/form-engine/registry/versioning.d.ts +5 -0
- package/dist/types/engine/form-engine/render/core/component-model.d.ts +292 -0
- package/dist/types/engine/form-engine/render/core/component-options.d.ts +58 -0
- package/dist/types/engine/form-engine/render/core/css-rules.d.ts +68 -0
- package/dist/types/engine/form-engine/render/core/error-accessibility.d.ts +23 -0
- package/dist/types/engine/form-engine/render/core/error-summary.d.ts +62 -0
- package/dist/types/engine/form-engine/render/core/error-wording.d.ts +104 -0
- package/dist/types/engine/form-engine/render/core/escape-html.d.ts +2 -0
- package/dist/types/engine/form-engine/render/core/file-storage.d.ts +59 -0
- package/dist/types/engine/form-engine/render/core/host-data-sources.d.ts +44 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-default.d.ts +5 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-eager.d.ts +10 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit-factory.d.ts +13 -0
- package/dist/types/engine/form-engine/render/core/journey-render-kit.d.ts +61 -0
- package/dist/types/engine/form-engine/render/core/journey-render.d.ts +132 -0
- package/dist/types/engine/form-engine/render/core/journey-review-kit-eager.d.ts +9 -0
- package/dist/types/engine/form-engine/render/core/journey-review-kit.d.ts +33 -0
- package/dist/types/engine/form-engine/render/core/journey-review.d.ts +134 -0
- package/dist/types/engine/form-engine/render/core/presentation-tree.d.ts +374 -0
- package/dist/types/engine/form-engine/render/core/print-options.d.ts +89 -0
- package/dist/types/engine/form-engine/render/core/render-contracts.d.ts +7 -0
- package/dist/types/engine/form-engine/render/core/render-orchestrator.d.ts +139 -0
- package/dist/types/engine/form-engine/render/core/render-policy.d.ts +52 -0
- package/dist/types/engine/form-engine/render/core/runtime-render-bridge.d.ts +154 -0
- package/dist/types/engine/form-engine/render/core/scalar-text.d.ts +10 -0
- package/dist/types/engine/form-engine/render/core/tab-slots.d.ts +25 -0
- package/dist/types/engine/form-engine/render/core/token-style-vars.d.ts +45 -0
- package/dist/types/engine/form-engine/render/icons/builtin-icons.d.ts +24 -0
- package/dist/types/engine/form-engine/render/icons/icon-names.d.ts +67 -0
- package/dist/types/engine/form-engine/render/icons/icon-set.d.ts +102 -0
- package/dist/types/engine/form-engine/render/index.d.ts +68 -0
- package/dist/types/engine/form-engine/render/live/announcer.d.ts +10 -0
- package/dist/types/engine/form-engine/render/live/assets-feature.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/assets-policy.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/assets.d.ts +109 -0
- package/dist/types/engine/form-engine/render/live/binding-registry.d.ts +46 -0
- package/dist/types/engine/form-engine/render/live/buttons.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/chrome.d.ts +15 -0
- package/dist/types/engine/form-engine/render/live/component-text.d.ts +10 -0
- package/dist/types/engine/form-engine/render/live/contract.d.ts +1267 -0
- package/dist/types/engine/form-engine/render/live/data-grid.d.ts +51 -0
- package/dist/types/engine/form-engine/render/live/datum/buttons.d.ts +44 -0
- package/dist/types/engine/form-engine/render/live/datum/choice-fields.d.ts +8 -0
- package/dist/types/engine/form-engine/render/live/datum/chrome-files.d.ts +43 -0
- package/dist/types/engine/form-engine/render/live/datum/chrome.d.ts +49 -0
- package/dist/types/engine/form-engine/render/live/datum/container-kit.d.ts +66 -0
- package/dist/types/engine/form-engine/render/live/datum/containers.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/content.d.ts +5 -0
- package/dist/types/engine/form-engine/render/live/datum/css.d.ts +40 -0
- package/dist/types/engine/form-engine/render/live/datum/date.d.ts +66 -0
- package/dist/types/engine/form-engine/render/live/datum/default-tokens.d.ts +30 -0
- package/dist/types/engine/form-engine/render/live/datum/field-scaffold.d.ts +131 -0
- package/dist/types/engine/form-engine/render/live/datum/file.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/datum/frames.d.ts +33 -0
- package/dist/types/engine/form-engine/render/live/datum/grid.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/datum/groups.d.ts +45 -0
- package/dist/types/engine/form-engine/render/live/datum/icons.d.ts +18 -0
- package/dist/types/engine/form-engine/render/live/datum/leaf-kit.d.ts +17 -0
- package/dist/types/engine/form-engine/render/live/datum/month-names.d.ts +2 -0
- package/dist/types/engine/form-engine/render/live/datum/notice.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/options.d.ts +133 -0
- package/dist/types/engine/form-engine/render/live/datum/page.d.ts +13 -0
- package/dist/types/engine/form-engine/render/live/datum/parts.d.ts +120 -0
- package/dist/types/engine/form-engine/render/live/datum/signature.d.ts +25 -0
- package/dist/types/engine/form-engine/render/live/datum/steps.d.ts +30 -0
- package/dist/types/engine/form-engine/render/live/datum/summary.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/datum/tabs.d.ts +23 -0
- package/dist/types/engine/form-engine/render/live/datum/text-fields.d.ts +7 -0
- package/dist/types/engine/form-engine/render/live/datum/tokens.d.ts +1030 -0
- package/dist/types/engine/form-engine/render/live/error-target.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/field-preview.d.ts +22 -0
- package/dist/types/engine/form-engine/render/live/fields.d.ts +26 -0
- package/dist/types/engine/form-engine/render/live/files.d.ts +20 -0
- package/dist/types/engine/form-engine/render/live/form-notices.d.ts +17 -0
- package/dist/types/engine/form-engine/render/live/guards.d.ts +37 -0
- package/dist/types/engine/form-engine/render/live/journey-page.d.ts +45 -0
- package/dist/types/engine/form-engine/render/live/journey-review.d.ts +50 -0
- package/dist/types/engine/form-engine/render/live/lit.d.ts +48 -0
- package/dist/types/engine/form-engine/render/live/look-classes.d.ts +27 -0
- package/dist/types/engine/form-engine/render/live/media-labels.d.ts +16 -0
- package/dist/types/engine/form-engine/render/live/mount.d.ts +450 -0
- package/dist/types/engine/form-engine/render/live/notices.d.ts +3 -0
- package/dist/types/engine/form-engine/render/live/readonly-sizing.d.ts +14 -0
- package/dist/types/engine/form-engine/render/live/renderer.d.ts +12 -0
- package/dist/types/engine/form-engine/render/live/sources.d.ts +4 -0
- package/dist/types/engine/form-engine/render/live/steps.d.ts +6 -0
- package/dist/types/engine/form-engine/render/live/summary.d.ts +33 -0
- package/dist/types/engine/form-engine/render/live/tabs.d.ts +8 -0
- package/dist/types/engine/form-engine/render/live/tooltips.d.ts +30 -0
- package/dist/types/engine/form-engine/render/pdf/default-layout.d.ts +51 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-abi.d.ts +819 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-agent-signer.d.ts +92 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-attachments.d.ts +76 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-components.d.ts +282 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-designer-styles.d.ts +12 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-document.d.ts +412 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-layout-selection.d.ts +54 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-pages.d.ts +25 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-provider.d.ts +219 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-render-mode.d.ts +2 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-render-model.d.ts +124 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-renditions.d.ts +160 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-service.d.ts +161 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-signer.d.ts +26 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template-components.d.ts +168 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template-constants.d.ts +14 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-template.d.ts +84 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-text-addresses.d.ts +20 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme-defaults.d.ts +410 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme-registry.d.ts +25 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-theme.d.ts +91 -0
- package/dist/types/engine/form-engine/render/pdf/pdf-values.d.ts +47 -0
- package/dist/types/engine/form-engine/render/pdf/standard-renditions.d.ts +33 -0
- package/dist/types/engine/form-engine/render/pdf/template-text.d.ts +52 -0
- package/dist/types/engine/form-engine/render/print/answer-text.d.ts +3 -0
- package/dist/types/engine/form-engine/render/print/basic.d.ts +18 -0
- package/dist/types/engine/form-engine/render/print/datum.d.ts +2 -0
- package/dist/types/engine/form-engine/render/print/document.d.ts +65 -0
- package/dist/types/engine/form-engine/render/print/field-answer.d.ts +47 -0
- package/dist/types/engine/form-engine/render/print/index.d.ts +12 -0
- package/dist/types/engine/form-engine/render/print/model.d.ts +346 -0
- package/dist/types/engine/form-engine/render/print/safe-html.d.ts +41 -0
- package/dist/types/engine/form-engine/render/print/slot-text.d.ts +30 -0
- package/dist/types/engine/form-engine/render/print/theme.d.ts +86 -0
- package/dist/types/engine/form-engine/render/react/interactive-renderer.d.ts +9 -0
- package/dist/types/engine/form-engine/render/readonly/readonly-renderer.d.ts +12 -0
- package/dist/types/engine/form-engine/render/web-component/custom-element-base.d.ts +3 -0
- package/dist/types/engine/form-engine/render/web-component/form-features.d.ts +76 -0
- package/dist/types/engine/form-engine/render/web-component/form-host-element.d.ts +310 -0
- package/dist/types/engine/form-engine/render/web-component/form-renderer-element.d.ts +846 -0
- package/dist/types/engine/form-engine/render/web-component/locale-select-element.d.ts +24 -0
- package/dist/types/engine/form-engine/render/web-component/pdf-download.d.ts +75 -0
- package/dist/types/engine/form-engine/render/web-component/print-frame.d.ts +85 -0
- package/dist/types/engine/form-engine/render/web-component/print-pipeline.d.ts +11 -0
- package/dist/types/engine/form-engine/render/web-component/print-policy.d.ts +2 -0
- package/dist/types/engine/form-engine/render/web-component/submission-download.d.ts +47 -0
- package/dist/types/engine/form-engine/render/web-component/typed-answers.d.ts +26 -0
- package/dist/types/engine/form-engine/render/webauthn/assertion.d.ts +69 -0
- package/dist/types/engine/form-engine/render/webauthn/authenticator-data.d.ts +21 -0
- package/dist/types/engine/form-engine/render/webauthn/errors.d.ts +30 -0
- package/dist/types/engine/form-engine/render/webauthn/registration-verify.d.ts +44 -0
- package/dist/types/engine/form-engine/render/webauthn/registration.d.ts +77 -0
- package/dist/types/engine/form-engine/render/webauthn/signal.d.ts +27 -0
- package/dist/types/engine/form-engine/render/webauthn/signing-provider.d.ts +70 -0
- package/dist/types/engine/form-engine/rules/dependencies/calculation-cycle.d.ts +25 -0
- package/dist/types/engine/form-engine/rules/dependencies/dependency-extractor.d.ts +9 -0
- package/dist/types/engine/form-engine/rules/dependencies/dependency-graph.d.ts +26 -0
- package/dist/types/engine/form-engine/rules/evaluator/evaluator.d.ts +209 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-date.d.ts +26 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-list.d.ts +28 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-number.d.ts +6 -0
- package/dist/types/engine/form-engine/rules/evaluator/functions-text.d.ts +23 -0
- package/dist/types/engine/form-engine/runtime/browser/collection-runtime.d.ts +34 -0
- package/dist/types/engine/form-engine/runtime/browser/draft-read.d.ts +27 -0
- package/dist/types/engine/form-engine/runtime/browser/form-runtime.d.ts +1470 -0
- package/dist/types/engine/form-engine/runtime/browser/form-test-runtime-driver.d.ts +83 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-action.d.ts +42 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-navigation.d.ts +200 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-presentation-overlay.d.ts +69 -0
- package/dist/types/engine/form-engine/runtime/browser/journey/journey-server-checks.d.ts +89 -0
- package/dist/types/engine/form-engine/runtime/browser/journey-engine-eager.d.ts +11 -0
- package/dist/types/engine/form-engine/runtime/browser/journey-engine.d.ts +462 -0
- package/dist/types/engine/form-engine/runtime/browser/path-validation-runs.d.ts +91 -0
- package/dist/types/engine/form-engine/runtime/browser/runtime-orchestrator.d.ts +530 -0
- package/dist/types/engine/form-engine/runtime/browser/submission-key.d.ts +12 -0
- package/dist/types/engine/form-engine/runtime/index.d.ts +8 -0
- package/dist/types/engine/form-engine/validation/core/error-store.d.ts +70 -0
- package/dist/types/engine/form-engine/validation/core/field-constraints.d.ts +293 -0
- package/dist/types/engine/form-engine/validation/core/test-vectors.d.ts +20 -0
- package/dist/types/engine/form-engine/validation/core/validation-pipeline.d.ts +65 -0
- package/dist/types/engine/form-engine/validation/parity/browser-adapter.d.ts +4 -0
- package/dist/types/engine/form-engine/validation/parity/formula-function-parity.d.ts +27 -0
- package/dist/types/engine/form-engine/validation/parity/index.d.ts +7 -0
- package/dist/types/engine/form-engine/validation/parity/parity-runner.d.ts +21 -0
- package/dist/types/engine/form-engine/validation/parity/runtime-adapter.d.ts +9 -0
- package/dist/types/engine/form-engine/validation/parity/server-adapter.d.ts +7 -0
- package/dist/types/engine/form-engine/validation/parity/vectors.d.ts +28 -0
- package/dist/types/engine/form-engine/validation/parity/wasm-adapter.d.ts +9 -0
- package/dist/types/engine/form-engine/validation/server/server-validation.d.ts +49 -0
- package/dist/types/engine/form-engine/validation/wasm/form-test-kernel-driver.d.ts +95 -0
- package/dist/types/engine/form-engine/validation/wasm/in-process-host.d.ts +56 -0
- package/dist/types/engine/form-engine/validation/wasm/portable-kernel.d.ts +1926 -0
- package/dist/types/engine/form-engine/validation/wasm/portable-options.d.ts +282 -0
- package/dist/types/engine/form-engine/validation/wasm/wasm-validation-host.d.ts +429 -0
- package/dist/types/engine/form-engine/verification/gate-inputs.d.ts +26 -0
- package/dist/types/engine/form-engine/verification/release-gates.d.ts +32 -0
- package/dist/types/engine/form-engine/verification/telemetry-bridge.d.ts +15 -0
- package/dist/types/engine/form-engine/verification/telemetry-sinks.d.ts +13 -0
- package/dist/types/engine/form-engine/verification/telemetry.d.ts +29 -0
- package/dist/types/packages/form-test/src/api.d.ts +75 -0
- package/dist/types/packages/form-test/src/args.d.ts +27 -0
- package/dist/types/packages/form-test/src/cli.d.ts +10 -0
- package/dist/types/packages/form-test/src/coverage.d.ts +11 -0
- package/dist/types/packages/form-test/src/drivers.d.ts +23 -0
- package/dist/types/packages/form-test/src/exit-codes.d.ts +17 -0
- package/dist/types/packages/form-test/src/index.d.ts +28 -0
- package/dist/types/packages/form-test/src/load.d.ts +25 -0
- package/dist/types/packages/form-test/src/parity.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/json.d.ts +7 -0
- package/dist/types/packages/form-test/src/report/junit.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/markdown.d.ts +14 -0
- package/dist/types/packages/form-test/src/report/model.d.ts +137 -0
- package/dist/types/packages/form-test/src/report/schema.d.ts +449 -0
- package/dist/types/packages/form-test/src/report/words.d.ts +48 -0
- package/dist/types/packages/form-test/src/run.d.ts +15 -0
- package/dist/types/packages/form-test/src/version.d.ts +3 -0
- package/dist/types/packages/form-test/src/vitest.d.ts +43 -0
- package/dist/types/packages/quickjs-wasm-host/src/fresh-sandbox-host.d.ts +70 -0
- package/dist/types/packages/quickjs-wasm-host/src/heap-recycle.d.ts +44 -0
- package/dist/types/packages/quickjs-wasm-host/src/index.d.ts +4 -0
- package/dist/types/packages/quickjs-wasm-host/src/program-host.d.ts +179 -0
- package/dist/types/packages/quickjs-wasm-host/src/quickjs-wasm-host-adapter.d.ts +218 -0
- package/dist/types/packages/quickjs-wasm-host/src/sandbox-program.d.ts +108 -0
- package/dist/vitest.mjs +189 -0
- package/fixtures/clock.json +35 -0
- package/fixtures/failing.datum-test +2 -0
- package/fixtures/main.datum-test +17 -0
- package/fixtures/main.json +435 -0
- package/package.json +93 -4
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
import type { InspectorAssetChoice, InspectorChoice, InspectorModel, InspectorSection } from "../property-editor/inspector-model.js";
|
|
2
|
+
import { type RuleEditorState, type RuleRunControl } from "../property-editor/rules-model.js";
|
|
3
|
+
import { type BuilderTextOptions } from "../logic/builder-texts.js";
|
|
4
|
+
import type { NestedTreeNodeView } from "../tree-editor/nested-tree-view.js";
|
|
5
|
+
import type { BuilderModeWays } from "./builder-modes.js";
|
|
6
|
+
import { type IconSet } from "../../render/icons/icon-set.js";
|
|
7
|
+
import type { DatumIconName } from "../../render/icons/icon-names.js";
|
|
8
|
+
import type { ComponentNode } from "../../core/schema/types.js";
|
|
9
|
+
import type { BuilderController, BuilderIdRow, FormIdentity, TranslatableText } from "../controller/builder-controller.js";
|
|
10
|
+
import { escapeHtml } from "../../render/core/escape-html.js";
|
|
11
|
+
import type { FormChromePart, FormChromePartType } from "../../core/schema/form-chrome.js";
|
|
12
|
+
import { type FormulaSettingsView } from "./formula-settings.js";
|
|
13
|
+
import { type AssistantsSettingsView } from "./assistants-settings.js";
|
|
14
|
+
/** Re-exported so the builder panels keep one escaper, shared with the form markup. */
|
|
15
|
+
export declare const esc: typeof escapeHtml;
|
|
16
|
+
/**
|
|
17
|
+
* The box a docked panel draws itself in: the palette's, the outline's, the inspector's — and
|
|
18
|
+
* the shell's own View panel, which is plain markup in the shell's shadow root rather than an
|
|
19
|
+
* element of its own. Shared so the two roots cannot drift: a panel that did not
|
|
20
|
+
* match the others would read as a hole in the column rather than a panel.
|
|
21
|
+
*/
|
|
22
|
+
export declare const PANEL_BOX_STYLES = "\n /* Studio: the drawer around a panel is the card (the shell draws it), so the panel draws no second frame. */\n .panel {\n position: relative;\n background: var(--db-surface);\n border: 0;\n border-radius: 0;\n padding: var(--db-space-3) var(--db-space-4);\n height: 100%;\n overflow: auto;\n }\n .panel-head {\n display: flex; align-items: center; justify-content: space-between;\n gap: 8px; margin-bottom: 8px;\n }\n /* A panel of separate cards (its host data-floating, so the drawer draws none): it scrolls them, a pinned one held at its edge. */\n .panel.card-stack { height: auto; max-height: 100%; margin: 0 calc(-1 * var(--db-space-2)); padding: 0 var(--db-space-2) var(--db-space-2); background: none; overflow: auto; pointer-events: auto; }\n :where(.panel.card-stack .card) { padding: var(--db-space-3) var(--db-space-4); }\n .card-stack > .is-pinned { position: sticky; top: 0; bottom: 0; z-index: 1; }";
|
|
23
|
+
/**
|
|
24
|
+
* The rules every builder shadow root shares, printed by `builderTokens()` and by the shell
|
|
25
|
+
* (which does not use `builderTokens()`), so the shell's own panels (View, Settings) draw
|
|
26
|
+
* their buttons, fields and dropdowns as the docked panels do.
|
|
27
|
+
*
|
|
28
|
+
* Keyboard focus is a ring, never a colour change alone: 2px of --db-focus, 2px outside the
|
|
29
|
+
* control, on every button, field and disclosure. It sits in `:where()` so it adds no
|
|
30
|
+
* specificity: any surface's own one-class rule (an inset ring in a scrolling list, the
|
|
31
|
+
* on-dark ring on the selection bar) wins without a fight.
|
|
32
|
+
*
|
|
33
|
+
* A dropdown is drawn by the builder, not the browser: left to itself Safari keeps its own
|
|
34
|
+
* face, height and corners on a select whatever the rules beside this one say, so the same
|
|
35
|
+
* box read three ways across browsers. The arrow is two gradients in the box's own ink, so
|
|
36
|
+
* it follows the scheme and forced colours. Only the arrow and the room for it are set here;
|
|
37
|
+
* each panel's own rule keeps the box's line, fill and size. Never the form on the canvas,
|
|
38
|
+
* which is its theme's to draw.
|
|
39
|
+
*/
|
|
40
|
+
export declare const FOCUS_AND_SELECT_STYLES = "\n :where(button, input, select, textarea, summary, a[href]):focus-visible { outline: 2px solid var(--db-focus); outline-offset: 2px; }\n select:not([multiple]):not([size]):not(.canvas-surface select) {\n -webkit-appearance: none; appearance: none;\n background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);\n background-repeat: no-repeat; background-size: 5px 5px, 5px 5px;\n background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;\n padding-inline-end: 32px; text-overflow: ellipsis;\n }\n select:not([multiple]):not([size]):not(.canvas-surface select):dir(rtl) { background-position: 12px 50%, 17px 50%; }\n /* Forced colours drop a drawn gradient, so the browser's own arrow comes back. */\n @media (forced-colors: active) {\n select:not([multiple]):not([size]):not(.canvas-surface select) { -webkit-appearance: auto; appearance: auto; background-image: none; }\n }";
|
|
41
|
+
/** The tick boxes, the text boxes and a field's label: 13px labels, 14px boxes. */
|
|
42
|
+
export declare const SHARED_CONTROL_STYLES = "\n :where(input[type=\"checkbox\"], input[type=\"radio\"]) {\n inline-size: 24px; block-size: 24px; flex: none; margin: 0; accent-color: var(--db-selected); cursor: pointer;\n }\n :where(input[type=\"checkbox\"], input[type=\"radio\"]):disabled { cursor: default; }\n :where(input:not([type=\"checkbox\"], [type=\"radio\"], [type=\"range\"], [type=\"file\"], [type=\"color\"]), select, textarea) {\n min-block-size: var(--db-control-h); padding: 0 var(--db-space-3);\n border: var(--db-border-w) solid var(--db-line-input); border-radius: var(--db-radius-md);\n background-color: var(--db-surface); color: var(--db-ink); font-family: inherit; font-size: var(--db-text-base);\n }\n /* A textarea is as tall as its rows, and its text starts clear of the line. */\n :where(textarea) { min-block-size: 0; padding: var(--db-space-2) var(--db-space-3); }\n :where(.field) { display: grid; gap: var(--db-space-1); min-width: 0; }\n :where(.field) > :where(.field-label, label):where(:not(.choice)) { font-size: var(--db-text-md); font-weight: 500; color: var(--db-ink); }";
|
|
43
|
+
/**
|
|
44
|
+
* The class patterns (see the table above). Notices: info has no line or wash token of its own,
|
|
45
|
+
* so it is the sunken well under the divider line; warning and error are their tone's pair. A
|
|
46
|
+
* .card-stack is the scroller and its cards keep their height; their shadows are clipped at its
|
|
47
|
+
* edges, so a stack that needs them whole leaves itself padding.
|
|
48
|
+
*/
|
|
49
|
+
export declare const SHARED_PATTERN_STYLES = "\n .seg {\n display: inline-flex; flex-wrap: wrap; gap: var(--db-space-half); padding: var(--db-space-half);\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-pill);\n }\n .seg-btn, .seg > button {\n display: inline-flex; align-items: center; justify-content: center; gap: var(--db-space-1);\n min-block-size: 32px; padding: 0 var(--db-space-3); border: 0; border-radius: var(--db-radius-pill);\n background: transparent; color: var(--db-ink-muted); font: inherit; font-size: var(--db-text-sm); font-weight: 500; cursor: pointer;\n transition: background-color var(--db-motion-fast) var(--db-ease), color var(--db-motion-fast) var(--db-ease);\n }\n .seg-btn:hover, .seg > button:hover { background: var(--db-surface-hover); color: var(--db-ink); }\n :is(.seg-btn, .seg > button):is([aria-pressed=\"true\"], [aria-selected=\"true\"], [aria-checked=\"true\"]) { background: var(--db-selected); color: var(--db-selected-ink); }\n :is(.seg-btn, .seg > button):disabled { opacity: .45; cursor: default; }\n :where(.empty-state) { display: grid; justify-items: start; gap: var(--db-space-2); padding: var(--db-space-6) var(--db-space-4); }\n :where(.empty-state) > :where(h2, h3) { margin: 0; font-size: var(--db-text-lg); font-weight: 600; }\n :where(.empty-state) > :where(p) { margin: 0; font-size: var(--db-text-md); color: var(--db-ink-muted); }\n /* No document yet: a card of its own in the middle of the room. */\n .empty-state.is-page {\n max-inline-size: 560px; margin: var(--db-space-8) auto; gap: var(--db-space-3); padding: var(--db-space-5) var(--db-space-6);\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-xl); background: var(--db-surface); box-shadow: var(--db-shadow-card);\n }\n .empty-state.is-page > :is(h2, h3) { font-size: var(--db-text-xl); line-height: 1.2; }\n :host([data-phone]) .empty-state.is-page { margin-inline: var(--db-space-3); padding: var(--db-space-4); }\n :where(.card-title, .card-heading, .card-lead) { margin: 0; }\n :where(.card-title) { font-size: var(--db-text-lg); font-weight: 600; }\n :where(.card-heading) { font-size: var(--db-text-md); font-weight: 600; }\n :where(.card-lead) { font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n :where(.link-btn, .row-link) {\n padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer;\n text-decoration: underline; text-underline-offset: 3px;\n }\n :where(.link-btn) { color: var(--db-accent-text); }\n :where(.row-link) { color: var(--db-ink); font-weight: 500; text-decoration-color: var(--db-line-input); }\n :where(.note) {\n margin: 0; padding: var(--db-space-2) var(--db-space-3); border: var(--db-border-w) solid var(--db-line-divider);\n border-radius: var(--db-radius-md); background: var(--db-surface-sunken); font-size: var(--db-text-sm);\n }\n :where(.note[data-tone=\"warning\"]) { border-color: var(--db-warn-line); background: var(--db-warn-soft); }\n :where(.note[data-tone=\"error\"]) { border-color: var(--db-danger-line); background: var(--db-danger-soft); }\n :where(.note.confirm) { display: grid; gap: var(--db-space-2); }\n :where(.note.confirm) > p { margin: 0; }\n :where(.confirm-actions) { display: flex; flex-wrap: wrap; gap: var(--db-space-2); }\n :where(.menu) {\n z-index: var(--db-z-popover); display: flex; flex-direction: column; gap: var(--db-space-half); min-inline-size: 160px;\n padding: var(--db-space-1); background: var(--db-surface); color: var(--db-ink);\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-lg); box-shadow: var(--db-shadow-overlay);\n }\n :where(.menu)[hidden] { display: none; }\n :where(.menu-item) {\n display: flex; align-items: center; gap: var(--db-space-2); inline-size: 100%; min-block-size: 36px; padding: 0 var(--db-space-3);\n border: 0; border-radius: var(--db-radius-sm); background: transparent; color: var(--db-ink);\n font: inherit; font-size: var(--db-text-md); text-align: start; cursor: pointer;\n }\n :where(.menu-item):is(:hover, :focus-visible) { background: var(--db-surface-hover); }\n :where(.menu-item):focus-visible { outline: 2px solid var(--db-focus); outline-offset: -2px; }\n :where(.menu-item.danger) { color: var(--db-danger); }\n :where(.menu-item.danger):hover { background: var(--db-danger-soft); }\n :where(.menu-item):is(:disabled, [aria-disabled=\"true\"]) { opacity: .45; background: transparent; cursor: default; }\n :where(.ref-chip, .try-chip) { display: inline-flex; align-items: center; min-block-size: 24px; padding: 0 var(--db-space-2); font-size: var(--db-text-sm); }\n :where(.ref-chip) { border-radius: var(--db-radius-xs); background: var(--db-accent-soft); color: var(--db-accent-text); font-weight: 500; }\n :where(.try-chip) {\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-pill);\n background: var(--db-surface); color: var(--db-ink); font-family: var(--db-font-mono); cursor: pointer;\n }\n :where(.try-chip):hover { background: var(--db-surface-hover); }\n :where(.card) { background: var(--db-surface); border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-xl); box-shadow: var(--db-shadow-card); }\n :where(.card-stack) { display: flex; flex-direction: column; gap: var(--db-space-3); min-height: 0; overflow: auto; }\n :where(.card-stack) > * { flex: none; min-width: 0; }\n @media (pointer: coarse) {\n .seg-btn, .seg > button { min-block-size: 44px; }\n :where(.menu-item) { min-block-size: 44px; }\n }\n @media (forced-colors: active) {\n :is(.seg-btn, .seg > button):is([aria-pressed=\"true\"], [aria-selected=\"true\"], [aria-checked=\"true\"]):not(:focus-visible) { outline: 2px solid Highlight; outline-offset: -4px; }\n :where(.menu-item):is(:disabled, [aria-disabled=\"true\"]) { color: GrayText; opacity: 1; }\n }";
|
|
50
|
+
/**
|
|
51
|
+
* Tooltips for an icon-only button, in any root: drawn, not the browser's title, so they show
|
|
52
|
+
* on keyboard focus as well as on hover, within a moment rather than a second. data-tip holds
|
|
53
|
+
* the words, which repeat the button's aria-label for the eye and add nothing to what is read.
|
|
54
|
+
* Below the button by default; data-tip-side="top", "start" or "end" puts it there. The tip is
|
|
55
|
+
* the button's ::after, so an ancestor that clips (overflow hidden or a scroller) clips it too,
|
|
56
|
+
* and it stacks only within the button's own stacking context: a pill or a drawer that clips
|
|
57
|
+
* puts its tips on the side with room. A touch pointer has no hover, so there the tip shows on
|
|
58
|
+
* keyboard focus alone.
|
|
59
|
+
*/
|
|
60
|
+
export declare const TIP_STYLES = "\n :where([data-tip]) { position: relative; }\n :where([data-tip])::after {\n content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1; transform: translateX(-50%);\n padding: var(--db-space-1) var(--db-space-2); border-radius: var(--db-radius-sm);\n background: var(--db-ink); color: var(--db-surface); box-shadow: var(--db-shadow-pill);\n font-family: var(--db-font); font-size: var(--db-text-xs); font-weight: 500; line-height: 1.3; white-space: nowrap;\n pointer-events: none; opacity: 0; transition: opacity var(--db-motion-fast) var(--db-ease);\n }\n :where([data-tip-side=\"top\"])::after { top: auto; bottom: calc(100% + 10px); }\n :where([data-tip-side=\"start\"], [data-tip-side=\"end\"])::after { top: 50%; left: auto; transform: translateY(-50%); }\n :where([data-tip-side=\"start\"])::after { inset-inline-end: calc(100% + 10px); }\n :where([data-tip-side=\"end\"])::after { inset-inline-start: calc(100% + 10px); }\n @media (hover: hover) { :where([data-tip]):hover::after { opacity: 1; transition-delay: 250ms; } }\n :where([data-tip]):focus-visible::after { opacity: 1; transition-delay: 0ms; }\n @media (forced-colors: active) {\n :where([data-tip])::after { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }\n }";
|
|
61
|
+
/**
|
|
62
|
+
* Icon buttons: round and borderless, the hover a fill; 32px, past WCAG 2.5.8's 24. Printed in
|
|
63
|
+
* every panel and in the shell, for the modes' overlays there (the PDF preview's head).
|
|
64
|
+
*/
|
|
65
|
+
export declare const ICON_BUTTON_STYLES = "\n .icon-btn {\n display: inline-flex; align-items: center; justify-content: center; gap: var(--db-space-1);\n min-inline-size: 32px; min-block-size: 32px; padding: 0 var(--db-space-2);\n border: 0; border-radius: var(--db-radius-pill); background: transparent; color: var(--db-ink-muted);\n font: inherit; font-size: var(--db-text-sm); font-weight: 500; cursor: pointer;\n transition: background-color var(--db-motion-fast) var(--db-ease), color var(--db-motion-fast) var(--db-ease);\n }\n @media (pointer: coarse) { .icon-btn { min-inline-size: 44px; min-block-size: 44px; } }\n .icon-btn:hover:not(:disabled) { background: var(--db-surface-hover); color: var(--db-ink); }\n /* Nothing to undo, nothing to redo: the button stays where it is, faded rather than gone. */\n .icon-btn:disabled { opacity: .4; cursor: default; }\n .icon-btn svg { width: var(--db-icon-size); height: var(--db-icon-size); }";
|
|
66
|
+
/** Shared design tokens + base rules for every builder panel's shadow root. */
|
|
67
|
+
export declare function builderTokens(): string;
|
|
68
|
+
/**
|
|
69
|
+
* The panel's prompts — a delete, which takes a whole subtree with it from a control on hover
|
|
70
|
+
* chrome a pointer can reach by accident, and leaving a component with unsaved edits — ask
|
|
71
|
+
* first, and ask in a way nothing else can be clicked past: each is a `<dialog>` the panel
|
|
72
|
+
* opens with `showModal()`, so the browser's top layer puts it above every stacking context
|
|
73
|
+
* on the page and everything outside it — the canvas, the palette, the host's own chrome — is
|
|
74
|
+
* inert until it is answered. It is drawn over the builder's own box, and only that box is
|
|
75
|
+
* dimmed (modal-place.ts): a builder embedded in a page keeps its prompts to itself. Not `window.confirm`, which is blocking, unstyleable and
|
|
76
|
+
* unavailable in a non-browser DOM the panels are also expected to run under. Exported for a
|
|
77
|
+
* mode that draws the same prompt over its own surface (the PDF designer's template mapping).
|
|
78
|
+
*/
|
|
79
|
+
export declare const CONFIRM_STYLES = "\n dialog.db-confirm {\n /* Over the builder's own box, not the window (modal-place.ts): the insets and the size are the shell's. */\n position: fixed; inset: var(--db-modal-inset, 0px); margin: auto; height: fit-content;\n width: min(360px, calc(var(--db-modal-w, 100vw) - 32px)); max-height: calc(var(--db-modal-h, 100vh) - 32px);\n background: var(--db-surface); color: var(--db-ink); border: var(--db-border-w) solid var(--db-line-card);\n border-radius: var(--db-radius-lg); padding: var(--db-space-5); box-shadow: var(--db-shadow-overlay);\n font-family: var(--db-font); font-size: var(--db-text-md); line-height: 1.4;\n }\n /* The backdrop is no descendant of the dialog, so the token carries a fallback for engines\n that do not let ::backdrop see custom properties (the studio scrim's own value). */\n dialog.db-confirm::backdrop { background: var(--db-scrim, rgba(22, 23, 26, .42)); clip-path: inset(var(--db-modal-inset, 0px)); }\n .db-confirm h4 { margin: 0 0 var(--db-space-2); font-size: var(--db-text-lg); font-weight: 600; line-height: 1.2; }\n .db-confirm p { margin: 0 0 var(--db-space-4); font-size: var(--db-text-md); color: var(--db-ink-muted); }\n .db-confirm p.db-confirm-note { color: var(--db-danger); }\n .db-confirm ul.db-confirm-problems { margin: calc(-1 * var(--db-space-2)) 0 var(--db-space-4); padding-inline-start: var(--db-space-5); font-size: var(--db-text-md); color: var(--db-danger); }\n .db-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--db-space-2); }\n .db-confirm code { font-family: var(--db-font-mono); }\n /* What else names the component a delete removes: the list, then the box that takes them along. */\n .db-confirm p.db-confirm-dependents-head { margin-block-end: var(--db-space-1); color: var(--db-ink); }\n .db-confirm ul.db-confirm-dependents { margin: 0 0 var(--db-space-3); padding-inline-start: var(--db-space-5); font-size: var(--db-text-md); color: var(--db-ink-muted); }\n .db-confirm label.db-confirm-also { display: flex; align-items: center; gap: var(--db-space-2); font-size: var(--db-text-md); color: var(--db-ink); }\n .db-confirm p.db-confirm-keep { margin: var(--db-space-1) 0 var(--db-space-4); font-size: var(--db-text-sm); }\n /*\n * Buttons are pills: white with an input-weight line, the accent fill for a primary, the\n * strong --db-selected fill for the commit that closes a panel or a dialog (the studio's\n * Apply), and danger as red words on white with a red line.\n */\n .btn {\n display: inline-flex; align-items: center; justify-content: center; gap: var(--db-space-2);\n min-block-size: 36px; padding: 0 var(--db-space-4);\n border: var(--db-border-w) solid var(--db-line-input); border-radius: var(--db-radius-pill);\n background: var(--db-surface); color: var(--db-ink);\n font: inherit; font-size: var(--db-text-md); font-weight: 500; line-height: 1.2; cursor: pointer;\n transition: background-color var(--db-motion-fast) var(--db-ease), border-color var(--db-motion-fast) var(--db-ease);\n }\n .btn:hover:not(:disabled) { background: var(--db-surface-hover); }\n .btn:disabled { opacity: .45; cursor: default; }\n /* The smaller button every surface shares (a row's action, a card's footer); a touch pointer gets the full target back. */\n .btn.small { min-block-size: 32px; padding: 0 var(--db-space-3); font-size: var(--db-text-sm); }\n .btn.primary { background: var(--db-accent); border-color: var(--db-accent); color: var(--db-accent-ink); }\n .btn.primary:hover:not(:disabled) { background: var(--db-accent-hover); border-color: var(--db-accent-hover); }\n .btn.danger { background: var(--db-surface); border-color: var(--db-danger-line); color: var(--db-danger); }\n .btn.danger:hover:not(:disabled) { background: var(--db-danger-soft); }\n .btn[aria-pressed=\"true\"], .btn[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--db-selected); border-color: var(--db-selected); color: var(--db-selected-ink); }\n /* A tool switched on (Show hidden, Record) is the pale accent, not the strong fill of a current choice: after the rule above, which it overrides at equal weight. */\n .tool-toggle:is([aria-pressed=\"true\"], [aria-expanded=\"true\"]), .tool-toggle:is([aria-pressed=\"true\"], [aria-expanded=\"true\"]):hover:not(:disabled) { background: var(--db-accent-soft); border-color: var(--db-accent); color: var(--db-accent-text); }\n .db-confirm-actions .btn.primary { background: var(--db-selected); border-color: var(--db-selected); color: var(--db-selected-ink); }\n .db-confirm-actions .btn.primary:hover:not(:disabled) { background: color-mix(in oklab, var(--db-selected) 84%, var(--db-surface)); }\n @media (pointer: coarse) { .btn.small { min-block-size: 44px; } }\n @media (forced-colors: active) {\n .btn:disabled, .icon-btn:disabled { color: GrayText; border-color: GrayText; opacity: 1; }\n .tool-toggle:is([aria-pressed=\"true\"], [aria-expanded=\"true\"]):not(:focus-visible) { outline: 2px solid Highlight; outline-offset: -2px; }\n }\n";
|
|
80
|
+
export interface DeleteConfirmation {
|
|
81
|
+
componentId: string;
|
|
82
|
+
/** The component's display label, shown so the author can tell which one this is. */
|
|
83
|
+
label: string;
|
|
84
|
+
/** Number of components that go with it, so a container's blast radius is visible. */
|
|
85
|
+
descendantCount: number;
|
|
86
|
+
/**
|
|
87
|
+
* The id the dialog names it by beside its label: `componentId` when absent, the text its ID
|
|
88
|
+
* row shows, or `false` where the inspector shows it none — a builder's own node id, never the
|
|
89
|
+
* author's (`journey-page_2`), which the label alone names.
|
|
90
|
+
*/
|
|
91
|
+
idShown?: string | false | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* What else in the form names it (`BuilderController.dependentsOf`), worded by
|
|
94
|
+
* `dependentsHeading` and `dependentLines`. Absent or empty: the dialog is the plain one.
|
|
95
|
+
* Present: the list, and an "Also remove references" box (`data-confirm-also-remove`), unticked.
|
|
96
|
+
*/
|
|
97
|
+
dependents?: {
|
|
98
|
+
heading: string;
|
|
99
|
+
lines: readonly string[];
|
|
100
|
+
} | undefined;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The confirmation for a pending delete: a `<dialog>` the panel shows modally (see
|
|
104
|
+
* `CONFIRM_STYLES`). Returns `""` when nothing is pending, so a caller can drop it straight
|
|
105
|
+
* into its markup.
|
|
106
|
+
*/
|
|
107
|
+
export declare function deleteConfirmHtml(pending: DeleteConfirmation | undefined, words?: BuilderTextOptions): string;
|
|
108
|
+
export interface UnsavedChangesPromptView {
|
|
109
|
+
componentId: string;
|
|
110
|
+
/** The component's display label, so the author can tell which edits these are. */
|
|
111
|
+
label: string;
|
|
112
|
+
/** What the author was doing (the controller's `HeldActionKind`); the wording follows it. */
|
|
113
|
+
action: "select" | "add" | "drop" | "leave" | "replace" | "remove" | "panel";
|
|
114
|
+
/** The form root's draft (the Form panel, Header & footer): named as the form's settings, not by its id. */
|
|
115
|
+
isRoot?: boolean;
|
|
116
|
+
/** Save is refused while the draft has a problem (an unusable id, class or data key), and the prompt says so. */
|
|
117
|
+
blocked: boolean;
|
|
118
|
+
/** What is wrong, in words, when {@link blocked}: the prompt lists it, and Keep editing leads there. */
|
|
119
|
+
problems?: readonly string[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The prompt the properties panel puts up when the author leaves a component whose edits
|
|
123
|
+
* are still a draft — a click on another component, on the canvas background, on the
|
|
124
|
+
* palette, a drop, or the host taking them off the builder page (`requestLeave`). The canvas
|
|
125
|
+
* previews a draft as though it were saved, so without this the click away is the moment the
|
|
126
|
+
* edit quietly stops being real while the author believes it landed. The same modal
|
|
127
|
+
* `<dialog>` as the delete confirmation (see `CONFIRM_STYLES`). Returns `""` when nothing is
|
|
128
|
+
* pending.
|
|
129
|
+
*/
|
|
130
|
+
export declare function unsavedChangesPromptHtml(prompt: UnsavedChangesPromptView | undefined, words?: BuilderTextOptions): string;
|
|
131
|
+
/** One inline option (or validation message) as the editor works on it: the key and its default-language text (translations are the Languages workspace's). */
|
|
132
|
+
export interface OptionsEditorRow {
|
|
133
|
+
value: string;
|
|
134
|
+
label: string;
|
|
135
|
+
/**
|
|
136
|
+
* Options only: the line of help under the option (`InlineOption.description`), in the
|
|
137
|
+
* default language. Edited in the Description column the dialog shows once "Descriptions"
|
|
138
|
+
* is on; absent or blank means the option has none.
|
|
139
|
+
*/
|
|
140
|
+
description?: string | undefined;
|
|
141
|
+
/** Messages only: what the code means, read-only beside it (an engine or host description). */
|
|
142
|
+
meaning?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Messages only: a code this component's own constraints can raise. Listed whether or not
|
|
145
|
+
* it has a message — a blank row keeps the page's or engine's wording — so the author sees
|
|
146
|
+
* everything the field can say in one place. It cannot be removed, only cleared.
|
|
147
|
+
*/
|
|
148
|
+
seeded?: boolean | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Messages only: the page's own wording for the code, in the default language — what a blank
|
|
151
|
+
* row shows on the form. Drawn as the cell's placeholder, and copied in by "Use default" so
|
|
152
|
+
* the author can start from it rather than from nothing.
|
|
153
|
+
*/
|
|
154
|
+
fallback?: {
|
|
155
|
+
default: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}
|
|
158
|
+
/** Whether a row carries any text at all. */
|
|
159
|
+
export declare function optionsRowHasText(row: OptionsEditorRow): boolean;
|
|
160
|
+
/** The dialog's window geometry once the author has moved or resized it. */
|
|
161
|
+
export interface OptionsEditorFrame {
|
|
162
|
+
left: number;
|
|
163
|
+
top: number;
|
|
164
|
+
width: number;
|
|
165
|
+
height: number;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* What the keyed-text dialog edits. `options` is a field's inline choices (key → label);
|
|
169
|
+
* `messages` is a component's validation text per error code (code → message).
|
|
170
|
+
* Same table, same handlers, same `data-options-*` protocol — only the words change.
|
|
171
|
+
*/
|
|
172
|
+
export type OptionsEditorKind = "options" | "messages";
|
|
173
|
+
export interface OptionsEditorView {
|
|
174
|
+
/** Which list this is; absent means inline options, the dialog's first job. */
|
|
175
|
+
kind?: OptionsEditorKind | undefined;
|
|
176
|
+
/** The property the list is written to (`options`, `messages`); the dialog's identity across repaints. */
|
|
177
|
+
path: string;
|
|
178
|
+
/** Names the component the rows belong to. */
|
|
179
|
+
title: string;
|
|
180
|
+
rows: OptionsEditorRow[];
|
|
181
|
+
/** The add-row inputs as typed so far. */
|
|
182
|
+
newValue: string;
|
|
183
|
+
newLabel: string;
|
|
184
|
+
error: string | undefined;
|
|
185
|
+
/** The data source the component names, if any — it takes precedence over the inline list. */
|
|
186
|
+
sourceId: string | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Options only: whether the Description columns are shown. Off until an option carries a
|
|
189
|
+
* description or the author presses "Descriptions", so the common list of plain choices
|
|
190
|
+
* is not widened by columns nobody fills.
|
|
191
|
+
*/
|
|
192
|
+
showDescriptions?: boolean | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Keys worth offering for the add row, in titled groups drawn as chips under the table —
|
|
195
|
+
* for the messages editor, the validation codes this form or field raises, then the rest
|
|
196
|
+
*. A click puts the key in the add row's key box. A collapsed group sits
|
|
197
|
+
* behind a "more" disclosure so the ones that matter here stay in front.
|
|
198
|
+
*/
|
|
199
|
+
suggestions?: OptionsEditorSuggestionGroup[] | undefined;
|
|
200
|
+
maximized: boolean;
|
|
201
|
+
frame?: OptionsEditorFrame | undefined;
|
|
202
|
+
/** The builder's words (locale and catalog); English when absent. */
|
|
203
|
+
words?: BuilderTextOptions | undefined;
|
|
204
|
+
}
|
|
205
|
+
/** The property the parts are written to (`chrome.header`, `chrome.footer`). */
|
|
206
|
+
/** The part types as the editor names them, in the order its add-part picker offers them. */
|
|
207
|
+
export declare const CHROME_PART_TYPE_LABELS: ReadonlyArray<{
|
|
208
|
+
value: FormChromePartType;
|
|
209
|
+
label: string;
|
|
210
|
+
}>;
|
|
211
|
+
export declare function chromePartLabel(part: FormChromePart, words?: BuilderTextOptions): string;
|
|
212
|
+
/**
|
|
213
|
+
* The next free id of the `part_1` style among `taken`: a part's translations are
|
|
214
|
+
* keyed by its id, which is unique across the header and the footer, so the builder names a part
|
|
215
|
+
* it creates and never reuses a number a deleted part held while another carries it.
|
|
216
|
+
*/
|
|
217
|
+
export declare function nextChromePartId(taken: Iterable<string>): string;
|
|
218
|
+
/** Every part id in `parts`, groups walked. */
|
|
219
|
+
export declare function chromePartIds(parts: readonly FormChromePart[]): string[];
|
|
220
|
+
/**
|
|
221
|
+
* A fresh part of `type`, with nothing in it yet, for the editor's Add. `taken` holds the ids
|
|
222
|
+
* already in the header and footer, so the new part's id (`part_1` style) is unique across both.
|
|
223
|
+
*/
|
|
224
|
+
export declare function createChromePart(type: FormChromePartType, taken?: Iterable<string>): FormChromePart;
|
|
225
|
+
/**
|
|
226
|
+
* A row key names a part by its indices: `"0"` the first top-level part, `"0.2"` the third
|
|
227
|
+
* part of the first group. The list holding the keyed part, and its index in that list.
|
|
228
|
+
*/
|
|
229
|
+
export declare function chromeListAt(parts: FormChromePart[], key: string): {
|
|
230
|
+
list: FormChromePart[];
|
|
231
|
+
index: number;
|
|
232
|
+
} | undefined;
|
|
233
|
+
export declare function chromePartAt(parts: FormChromePart[], key: string): FormChromePart | undefined;
|
|
234
|
+
/** The configuration path of a row key's part: `"0.2"` under `chrome.header` is `chrome.header.0.parts.2`. */
|
|
235
|
+
export declare function chromePartPath(fieldPath: string, key: string): string;
|
|
236
|
+
export interface OptionsEditorSuggestion {
|
|
237
|
+
value: string;
|
|
238
|
+
/** What the key means, shown on hover with the details a message may quote. */
|
|
239
|
+
label: string;
|
|
240
|
+
/** The `{parameter}` names a message for the key may use; shown on hover. */
|
|
241
|
+
parameters?: readonly string[] | undefined;
|
|
242
|
+
}
|
|
243
|
+
export interface OptionsEditorSuggestionGroup {
|
|
244
|
+
title: string;
|
|
245
|
+
suggestions: OptionsEditorSuggestion[];
|
|
246
|
+
/** What the group says when it has nothing to offer; absent, an empty group is not drawn. */
|
|
247
|
+
emptyText?: string | undefined;
|
|
248
|
+
collapsed?: boolean | undefined;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* The keyed-text editor: a `<dialog>` the properties panel shows modally (see
|
|
252
|
+
* `CONFIRM_STYLES` for why a dialog), holding one row per entry — its key and its default
|
|
253
|
+
* text — with add, remove and (for options) reorder,
|
|
254
|
+
* and Export / Import of the same JSON the schema carries. It edits a field's inline options
|
|
255
|
+
* (key → label) and a component's validation messages (code → message) alike; see
|
|
256
|
+
* {@link OptionsEditorKind}. Nothing changes until Apply; Apply then writes every value
|
|
257
|
+
* straight to the form as one undo step (through `controller.setProperties`), so the panel's
|
|
258
|
+
* own Save has nothing left to write for it.
|
|
259
|
+
*
|
|
260
|
+
* The panel owns the working copy ({@link OptionsEditorView}) and repaints the whole dialog
|
|
261
|
+
* on each structural change; typing in a cell updates the copy without a repaint, so the
|
|
262
|
+
* caret stays where it is.
|
|
263
|
+
*/
|
|
264
|
+
export declare function optionsEditorHtml(view: OptionsEditorView): string;
|
|
265
|
+
/** The options editor's own rules, on top of `CONFIRM_STYLES` (the `.db-confirm` base and `.btn`). */
|
|
266
|
+
export declare const OPTIONS_EDITOR_STYLES = "\n dialog.db-options-editor {\n /* fit-content, not auto: a fixed box with inset: 0 and an auto height fills the viewport. */\n width: min(760px, calc(var(--db-modal-w, 100vw) - 32px)); height: fit-content; max-height: calc(var(--db-modal-h, 100vh) - 32px);\n flex-direction: column; gap: var(--db-space-3);\n /* Native resize from the corner; the dialog's own box clips, and the table scrolls. */\n resize: both; overflow: hidden;\n }\n dialog.db-options-editor[open] { display: flex; }\n dialog.db-options-editor.maximized {\n inset: var(--db-modal-inset, 0px) !important; margin: 0 !important;\n width: var(--db-modal-w, 100vw) !important; height: var(--db-modal-h, 100vh) !important; max-width: none; max-height: none;\n border-radius: 0; resize: none;\n }\n .db-options-head { display: flex; align-items: center; gap: var(--db-space-1); cursor: move; user-select: none; }\n .db-options-head h4 { margin: 0; flex: 1; font-size: var(--db-text-lg); font-weight: 600; line-height: 1.2; }\n .db-options-head .icon-btn { cursor: pointer; font-size: var(--db-text-lg); }\n .db-confirm p.db-options-hint { margin: 0; }\n .db-options-tools { display: flex; flex-wrap: wrap; gap: var(--db-space-2); }\n .db-options-scroll {\n flex: 1; min-height: 120px; overflow: auto;\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-md); background: var(--db-surface);\n }\n .db-options-table { width: 100%; border-collapse: collapse; font-size: var(--db-text-sm); }\n .db-options-table th, .db-options-table td {\n padding: var(--db-space-1) var(--db-space-2); border-bottom: var(--db-border-w) solid var(--db-line-divider); text-align: start; vertical-align: middle;\n }\n .db-options-table th {\n position: sticky; top: 0; z-index: 1; background: var(--db-surface-sunken);\n font-weight: 600; color: var(--db-ink-muted); white-space: nowrap;\n }\n .db-options-table th code, .db-options-hint code { font-family: var(--db-font-mono); font-size: var(--db-text-xs); }\n .db-options-table input, .db-options-add input {\n width: 100%; min-width: 90px; min-block-size: 32px; box-sizing: border-box;\n border: var(--db-border-w) solid var(--db-line-input); background: var(--db-surface); color: var(--db-ink);\n border-radius: var(--db-radius-sm); padding: var(--db-space-1) var(--db-space-2); font: inherit; font-size: var(--db-text-sm);\n }\n .db-options-add input { min-block-size: 36px; border-radius: var(--db-radius-md); padding: 0 var(--db-space-3); font-size: var(--db-text-md); }\n .db-options-table input::placeholder, .db-options-add input::placeholder { color: var(--db-ink-subtle); }\n .db-options-actions { white-space: nowrap; text-align: end; }\n .db-options-actions .btn { min-block-size: 28px; min-inline-size: 28px; padding: 0 var(--db-space-2); margin-inline-start: var(--db-space-half); }\n .db-options-empty { color: var(--db-ink-muted); text-align: center; padding: var(--db-space-4) var(--db-space-2); }\n /* The suggestion chips: the keys worth adding, grouped, the ones that matter here in front. */\n .db-options-suggest { display: grid; gap: var(--db-space-2); font-size: var(--db-text-sm); }\n .db-options-suggest__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--db-space-1); }\n .db-options-suggest__title, .db-options-suggest__more > summary { color: var(--db-ink-muted); }\n .db-options-suggest__more > summary { cursor: pointer; user-select: none; }\n .db-options-suggest__more[open] > summary { margin-bottom: var(--db-space-2); }\n .db-options-suggest__none { color: var(--db-ink-muted); font-style: italic; }\n .db-options-chip {\n display: inline-flex; align-items: center; min-block-size: 28px;\n font: inherit; font-size: var(--db-text-sm); font-family: var(--db-font-mono);\n padding: 0 var(--db-space-3); border-radius: var(--db-radius-pill); cursor: pointer;\n border: var(--db-border-w) solid var(--db-line-input); background: var(--db-surface); color: var(--db-ink);\n }\n .db-options-chip:hover:not([disabled]) { background: var(--db-surface-hover); }\n .db-options-chip[disabled] { opacity: 0.55; cursor: default; }\n .db-options-add { display: flex; gap: var(--db-space-2); }\n .db-options-add input { flex: 1; }\n .db-confirm p.db-options-error { margin: 0; color: var(--db-danger); }\n /* The inspector's own row: a count and the button that opens the editor. */\n .options-row .options-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--db-space-2); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n .options-note { margin: calc(-1 * var(--db-space-2)) 0 var(--db-space-3); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n .options-note code { font-family: var(--db-font-mono); }\n /* A value map: one row per answer, the answer beside the select that says what is written for it. */\n .property-listing { display: grid; gap: var(--db-space-2); }\n .property-listing-line { margin: 0; font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n .property-listing-groups, .property-listing-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--db-space-1); }\n .property-listing-groups { gap: var(--db-space-3); }\n .property-listing-heading { font-weight: 600; font-size: var(--db-text-sm); }\n .property-listing-groups ul li { font-size: var(--db-text-sm); padding-inline-start: var(--db-space-3); }\n .value-map-rows { list-style: none; margin: 0 0 var(--db-space-2); padding: 0; display: grid; gap: var(--db-space-2); }\n .value-map-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--db-space-2); font-size: var(--db-text-sm); }\n .value-map-rows code { font-family: var(--db-font-mono); color: var(--db-ink-muted); }\n /* The messages editor: a meaning column beside the code, so it takes the catalog's width. */\n dialog.db-options-editor[data-options-kind=\"messages\"] { width: min(960px, calc(var(--db-modal-w, 100vw) - 32px)); }\n .db-options-meaning { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--db-ink-muted); font-size: var(--db-text-xs); }\n /* The options editor's rows: the name is a row header, not a sticky column header. */\n .db-options-table th[scope=\"row\"] {\n position: static; z-index: auto; background: transparent;\n color: var(--db-ink); font-weight: 500; white-space: nowrap;\n }\n /* Short windows: the tools tighten and the grid keeps room to show rows, scrolling inside while the head and tools stay put. */\n @media (max-height: 700px) {\n .db-options-tools { gap: var(--db-space-1); }\n .db-options-tools .btn { min-block-size: 28px; padding-inline: var(--db-space-2); }\n .db-options-scroll { min-height: 180px; }\n .db-options-add input { min-inline-size: 0; }\n }\n";
|
|
267
|
+
export interface VerticalRect {
|
|
268
|
+
top: number;
|
|
269
|
+
height: number;
|
|
270
|
+
left?: number;
|
|
271
|
+
width?: number;
|
|
272
|
+
}
|
|
273
|
+
export type InsertionAxis = "vertical" | "horizontal";
|
|
274
|
+
/**
|
|
275
|
+
* The index at which a dragged component should be inserted among `nodeRects` (the direct
|
|
276
|
+
* `.db-node` rects of a drop zone, in document order) given the pointer position along the
|
|
277
|
+
* zone's flow axis. Pointer before a node's midpoint inserts before it; after inserts after;
|
|
278
|
+
* past the last node appends.
|
|
279
|
+
*
|
|
280
|
+
* The axis matters now that the canvas renders real layout: a `grid` lays its
|
|
281
|
+
* children out side by side, where vertical midpoints would put the marker in visibly the
|
|
282
|
+
* wrong place.
|
|
283
|
+
*/
|
|
284
|
+
export declare function computeInsertionIndex(nodeRects: VerticalRect[], pointer: number, axis?: InsertionAxis): number;
|
|
285
|
+
/** The flow axis a container's drop zone lays its children out along. */
|
|
286
|
+
export declare function insertionAxisForLayout(kind: "stack" | "grid"): InsertionAxis;
|
|
287
|
+
/**
|
|
288
|
+
* The drop zone a drag is aimed at, from the event's composed path (target first).
|
|
289
|
+
*
|
|
290
|
+
* Walking outward from the target, the first of these answers:
|
|
291
|
+
*
|
|
292
|
+
* 1. an element that *is* a zone — a drag over a field targets the zone the field sits in,
|
|
293
|
+
* and one inside a nested container targets that container, whose zone is nearer on the
|
|
294
|
+
* path than its parent's;
|
|
295
|
+
* 2. an element that wraps exactly one top-level zone — the chrome a container shell draws
|
|
296
|
+
* around its slot: a PDF page band's label and padding, a tab panel's padding, a card's
|
|
297
|
+
* heading, a group's legend. Each is visibly part of the container's box, so a drop on it
|
|
298
|
+
* goes into the container. Without this a drag over any of them found no zone and fell
|
|
299
|
+
* through to the root, so a drop on the PDF footer band's label landed in the *header* (the
|
|
300
|
+
* root's first zone in document order) and one on a tab panel's padding left the tab.
|
|
301
|
+
* An element wrapping several (a grid's columns, the PDF page's three bands, the form
|
|
302
|
+
* root) is ambiguous and skipped.
|
|
303
|
+
*
|
|
304
|
+
* A node's own grip and type chip are chrome of the node, not of what it holds: over them
|
|
305
|
+
* only rule 1 applies, so a container dragged by its grip still targets the zone around it
|
|
306
|
+
* rather than its own inside. The walk stops at the rendered form's shadow root: the canvas
|
|
307
|
+
* chrome outside it wraps every zone and would otherwise answer for all of them. `undefined`
|
|
308
|
+
* leaves the caller its own fallback (the root's primary slot, anywhere over the canvas).
|
|
309
|
+
*/
|
|
310
|
+
export declare function dropZoneOnPath(path: readonly EventTarget[]): HTMLElement | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* The icon-vocabulary name the palette draws for a component type: the full normalized name
|
|
313
|
+
* first, then with leading segments dropped, so a vendor-prefixed type (`gcds-link`,
|
|
314
|
+
* `acme-rating`) lands on the glyph its tail names rather than on the generic one.
|
|
315
|
+
*/
|
|
316
|
+
export declare function paletteGlyphName(type: string): DatumIconName;
|
|
317
|
+
/** The palette glyph for a component type: host override, built-in match, or the fallback. */
|
|
318
|
+
export declare function paletteIconHtml(entry: {
|
|
319
|
+
type: string;
|
|
320
|
+
icon?: string | undefined;
|
|
321
|
+
}, icons?: IconSet): string;
|
|
322
|
+
/** What the palette needs to know about one offerable type. */
|
|
323
|
+
export interface PaletteEntry {
|
|
324
|
+
type: string;
|
|
325
|
+
label: string;
|
|
326
|
+
icon?: string | undefined;
|
|
327
|
+
/** Explicit palette group. Omitted, the palette infers one from the type name. */
|
|
328
|
+
group?: string | undefined;
|
|
329
|
+
}
|
|
330
|
+
export declare function paletteHtml(componentTypes: PaletteEntry[], icons?: IconSet, words?: BuilderTextOptions): string;
|
|
331
|
+
/** The group label for one palette entry: declared group first, else inferred from the type. */
|
|
332
|
+
export declare function paletteGroupForEntry(entry: Pick<PaletteEntry, "type" | "group">): string;
|
|
333
|
+
/**
|
|
334
|
+
* Palette entries gathered under their group labels: built-in groups in their canonical
|
|
335
|
+
* order, then host-declared groups in first-appearance order, with "Other" always last —
|
|
336
|
+
* a catch-all reads as an afterthought anywhere else. Within a group, host order is kept.
|
|
337
|
+
*/
|
|
338
|
+
export declare function groupPaletteEntries(componentTypes: PaletteEntry[]): Array<{
|
|
339
|
+
label: string;
|
|
340
|
+
entries: PaletteEntry[];
|
|
341
|
+
}>;
|
|
342
|
+
/**
|
|
343
|
+
* The palette as collapsible groups. With everything in a single group the headings would
|
|
344
|
+
* only restate the panel, so the flat list renders instead. `collapsedGroups` carries which
|
|
345
|
+
* headings the author closed across the panel's re-renders (the toolbar repaints on every
|
|
346
|
+
* controller change); groups it does not name default open, so finding a component never
|
|
347
|
+
* starts behind a closed door.
|
|
348
|
+
*/
|
|
349
|
+
export declare function paletteGroupsHtml(componentTypes: PaletteEntry[], collapsedGroups?: ReadonlySet<string>, icons?: IconSet, words?: BuilderTextOptions): string;
|
|
350
|
+
export declare const TOOLBAR_STYLES = "\n /* Two cards: the filter's, pinned while the listing's scrolls beneath it, so the box never scrolls out of reach. */\n .palette-list { display: grid; gap: var(--db-space-2); align-content: start; }\n .palette-item svg { width: var(--db-icon-size); height: var(--db-icon-size); }\n /* A component is a row in a list: no box until hovered, its glyph on an accent-soft tile. */\n .palette-item {\n width: 100%; min-block-size: 40px; display: flex; align-items: center; gap: var(--db-space-3); text-align: start;\n border: 0; color: var(--db-ink);\n border-radius: var(--db-radius-sm); background: transparent; padding: var(--db-space-1) var(--db-space-2); cursor: grab;\n font: inherit; font-size: var(--db-text-md); font-weight: 500;\n transition: background-color var(--db-motion-fast) var(--db-ease);\n }\n .palette-item:hover { background: var(--db-surface-hover); }\n .palette-item:active { cursor: grabbing; }\n /*\n * The glyph must never be the event target: click-to-add and dragstart both read the\n * button's own dataset, and an SVG child would otherwise retarget them.\n */\n .palette-icon {\n flex: none; pointer-events: none; display: inline-flex; align-items: center; justify-content: center;\n inline-size: 28px; block-size: 28px; border-radius: var(--db-radius-sm);\n background: var(--db-accent-soft); color: var(--db-accent-text);\n }\n .palette-icon--text { font-size: var(--db-text-base); line-height: 1; }\n .palette-label { pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n /* The filter heads the column on its own: the shell's activity strip opens and closes the panel. */\n .panel-head--bare { justify-content: flex-start; margin: 0; gap: var(--db-space-2); }\n /* The box is the shared one (SHARED_CONTROL_STYLES). */\n .palette-filter { flex: 1 1 auto; min-width: 0; }\n .palette-filter::placeholder { color: var(--db-ink-subtle); }\n /*\n * Groups collapse the same way the properties panel's sections do: a palette of dozens of\n * components is a directory, and a directory needs headings that fold. Open by default \u2014\n * the headings organise, they must not hide. A plain heading row, a divider between groups,\n * no box around them.\n */\n .palette-group + .palette-group { border-top: var(--db-border-w) solid var(--db-line-divider); padding-top: var(--db-space-2); }\n .palette-group > summary {\n cursor: pointer; list-style: none; min-block-size: 32px; padding: 0 var(--db-space-2); display: flex; align-items: center;\n gap: var(--db-space-2); border-radius: var(--db-radius-sm);\n font-size: var(--db-text-sm); font-weight: 600; letter-spacing: .02em; color: var(--db-ink-muted);\n }\n .palette-group > summary:hover { background: var(--db-surface-hover); color: var(--db-ink); }\n .palette-group > summary::-webkit-details-marker { display: none; }\n /* A drawn chevron, not a text glyph: crisp in any face, and nothing added to the name. */\n .palette-group > summary::before { content: \"\"; display: inline-block; flex: none; width: 6px; height: 6px; margin-inline: 2px 4px; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--db-motion-fast) var(--db-ease); }\n .palette-group[open] > summary::before { transform: rotate(45deg); }\n .palette-count {\n margin-inline-start: auto; border-radius: var(--db-radius-pill); background: var(--db-surface-sunken); color: var(--db-ink-muted);\n padding: 0 var(--db-space-2); font-size: var(--db-text-xs); font-weight: 500; letter-spacing: 0; line-height: 1.6;\n }\n .palette-group-body { display: grid; gap: var(--db-space-half); padding: var(--db-space-1) 0 var(--db-space-2); }\n";
|
|
351
|
+
export declare const CANVAS_PANEL_STYLES = "\n /*\n * The canvas is a page; the form is a sheet on it.\n *\n * A form is never the width of the window it is filled in on \u2014 it is a column on a page \u2014\n * so authoring it edge-to-edge across the canvas misrepresents it. The panel supplies the\n * backdrop and .canvas-surface the sheet: bounded, centred, with the page showing on both\n * sides, the way a notebook shows a cell.\n *\n * The sheet's width is the form's own: --db-sheet-w by default, overridden inline by the\n * bar's Width control, so choosing a device width narrows the sheet rather than the window \u2014\n * or by the tree, when the host's BuilderControllerOptions.sheetWidth gives it the say (the\n * PDF designer's page); the canvas marks the sheet data-sheet-fixed then, see below.\n */\n /*\n * A window onto the builder's backdrop, not a boxed panel: the page the sheet sits on is\n * the shell's own dotted backdrop, so the canvas draws no frame or fill of its own \u2014 a\n * border here reads as a stray seam beside the form.\n *\n * The column fills the box the shell gives it (a flex item as tall as the shell's\n * row) and the page inside it is the scroll region, both ways. Scrolling *inside* the pane\n * is what puts the horizontal scrollbar at the bottom of the canvas where it can be seen.\n */\n .panel--canvas {\n background: transparent; border: 0; border-radius: 0; padding: 0;\n display: flex; flex-direction: column;\n height: 100%;\n overflow: hidden;\n }\n /*\n * The page scrolls both ways. Auto margins center the sheet while it fits and collapse to\n * zero once it overflows \u2014 the sheet is then laid out from the scroller's start, which is\n * what keeps every part of it reachable by scrolling (unsafe flex centering was tried and\n * puts the left overflow beyond scrollLeft 0). The canvas re-centers scrollLeft from\n * script whenever the width changes, so an over-wide sheet still *looks* centered and a\n * drag still grows both edges symmetrically.\n *\n * --db-canvas-gap is the headroom above the sheet, inside the scroll region, so a host can\n * rest the sheet at the same y as another surface's (the web host aligns it with its\n * renderer stage) without adding page height.\n */\n .canvas-page {\n padding: var(--db-canvas-gap, var(--db-space-6)) var(--db-space-4) var(--db-space-10);\n flex: 1; min-height: 0;\n overflow: auto;\n /* Always-visible scrollbars: an overlay scrollbar hides until touched, and a sheet\n wider than the pane then looks cut off rather than scrollable. */\n scrollbar-width: thin;\n scrollbar-color: var(--db-line-card) transparent;\n }\n /*\n * The sheet keeps clear of the open side drawer when the canvas has the room.\n * --db-side-w is how far the drawer reaches over the canvas's start edge (nothing while it is\n * folded), at whatever width it opened or was dragged to; the sheet's start edge must sit a gap\n * past it (--page-clear, zero while folded). --page-sheet is the sheet as drawn, which the\n * canvas writes: a device, dragged or fixed width or the default, times the zoom. The page's\n * start padding grows only by what centring between it and the end padding (--page-end: Try\n * it's room, when shown) leaves short: a sheet already clear does not move, one that would be\n * covered moves just clear, and one too wide for the room left starts clear of the drawer, a\n * default sheet narrowing to the room and a set width keeping its size for the page to scroll.\n * When the room left would be under 480px, the least a form sheet is useful at, the padding\n * stays as it was and the drawer lies over the sheet. Pure arithmetic (the 1000 multipliers\n * turn a sign into all or nothing). A mode's own surface lays itself out and keeps the plain\n * padding.\n */\n /*\n * The end edge keeps clear of the inspector the same way: --db-props-w is how far it reaches\n * (nothing while it is folded or has nothing to show), and --page-end is the end padding the\n * start padding above centres against. With under 480px left beside the inspector the padding\n * stays plain and the inspector lies over the sheet. Try it sets --page-end itself.\n */\n .canvas-page:not([data-surface]) {\n --page-props: min(calc(var(--db-props-w, 0px) * 1000), calc(var(--db-props-w, 0px) + 2 * var(--db-gap, 12px)));\n --page-end: max(var(--db-space-4), min(var(--page-props), calc((100% - var(--page-props) - 480px) * 1000)));\n padding-right: var(--page-end);\n }\n .canvas-page:not([data-surface]) {\n --page-clear: min(calc(var(--db-side-w, 0px) * 1000), calc(var(--db-side-w, 0px) + 2 * var(--db-gap, 12px)));\n padding-left: max(var(--db-space-4), min(\n clamp(var(--db-space-4), calc(2 * var(--page-clear) + var(--page-sheet, var(--db-sheet-w, 860px)) + var(--page-end, var(--db-space-4)) - 100%), var(--page-clear)),\n calc((100% - var(--page-clear) - var(--page-end, var(--db-space-4)) - 480px) * 1000)));\n }\n /*\n * In Chromium and WebKit a non-auto scrollbar-width/color displaces the ::-webkit-scrollbar\n * styling below, and a \"thin\" bar on macOS is still an overlay one that hides until touched\n * \u2014 defeating the always-visible intent. Resetting to auto where the webkit pseudos exist\n * re-enables the custom bars, which are painted persistently and hold layout space. Firefox\n * fails the selector test and keeps the thin styling above.\n */\n @supports selector(::-webkit-scrollbar) {\n .canvas-page { scrollbar-width: auto; scrollbar-color: auto; }\n }\n /*\n * The hand (a pan): empty canvas around the sheet says it can be grabbed; while a pan is in\n * flight the whole page says so, and nothing under it is selected as text.\n */\n .canvas-page:not([data-surface]) { cursor: grab; }\n .canvas-page:not([data-surface]) > .canvas-surface { cursor: auto; }\n .canvas-page[data-panning], .canvas-page[data-panning] * { cursor: grabbing; user-select: none; }\n .canvas-page::-webkit-scrollbar { width: 10px; height: 10px; }\n .canvas-page::-webkit-scrollbar-thumb { background: var(--db-line-card); border-radius: var(--db-radius-pill); }\n .canvas-page::-webkit-scrollbar-thumb:hover { background: var(--db-accent); }\n .canvas-page::-webkit-scrollbar-track { background: transparent; }\n /*\n * The canvas's notice (a drop it refused, a step of the history that could not be taken) stays\n * in view while the page scrolls either way, and clear of the drawers lying over the page's\n * edges: --db-side-w and --db-props-w say how far they reach, nothing while one is\n * folded or, for the inspector, while nothing is selected.\n */\n [data-drop-error] {\n position: sticky; top: 0; left: 0; z-index: 3;\n margin-left: min(var(--db-side-w, 0px), max(0px, calc(100% - 240px)));\n margin-right: min(var(--db-props-w, 0px), max(0px, calc(100% - 240px)));\n }\n [data-drop-error] .drop-error { box-shadow: var(--db-shadow-pill); }\n .canvas-surface {\n position: relative;\n margin: 0 auto;\n width: 100%;\n max-width: var(--db-sheet-w, 860px);\n /*\n * The sheet's fill is the *form's* page, not a builder panel: the drawn form's own\n * background, read off it by the canvas after every draw, white when the form is\n * transparent. A dark builder therefore shows a light form on a white sheet, and a form\n * drawn dark a dark sheet flush with the form, whatever the chrome around it. The\n * frame \u2014 outline, corners, shadow \u2014 stays builder chrome: a card line carries the edge\n * (an HDR display flattens shadows), the sheet shadow only lifts it.\n */\n background: var(--db-sheet-bg, #fff);\n border: var(--db-border-w) solid var(--db-line-card);\n border-radius: var(--db-radius-lg);\n box-shadow: var(--db-shadow-sheet);\n /*\n * The same breathing room on every side; the fields must not press against the sheet's\n * edge. Chrome that hangs outside a field (the drag grip at -28px) may still overhang\n * the sheet onto the page \u2014 the sheet does not clip, so nothing is lost.\n */\n padding: var(--db-space-6);\n }\n /* A wholly empty form: the renderer draws nothing, so the canvas says where the first component goes. */\n .canvas-empty-root {\n margin: 0; padding: var(--db-space-4); text-align: center; font-family: var(--db-font); font-size: var(--db-text-sm);\n color: var(--db-ink-muted);\n border: var(--db-border-w) dashed var(--db-line-input); border-radius: var(--db-radius-md); background: var(--db-surface-sunken);\n }\n /*\n * A sheet whose width the tree fixes: the inline width is the *form's* \u2014 a PDF page at its\n * paper width \u2014 so the box switches to content-box and the padding and border above wrap\n * it, rather than eating into it the way they do a device width.\n */\n .canvas-surface[data-sheet-fixed] { box-sizing: content-box; }\n /*\n * A form that draws its own frame previews it on a flush sheet: the sheet keeps\n * its fill and its room, and drops its border and shadow, so the author sees one frame.\n */\n .canvas-surface--flush { border-color: transparent; box-shadow: none; }\n /*\n * A mode's own surface in the sheet's place: a populated PDF's pages, drawn by\n * the mode, laid out where the sheet would be \u2014 the page's padding around it, the page\n * scrolling it. The sheet is put away while one is up.\n */\n .canvas-mode-surface { display: block; }\n .canvas-mode-surface[hidden] { display: none; }\n .canvas-page[data-surface] .canvas-surface { display: none; }\n /* Grips straddling the sheet's edges; dragging one sets a custom preview width. */\n .sheet-grip {\n position: absolute; top: 0; bottom: 0; width: 10px; z-index: 2;\n cursor: ew-resize; background: transparent;\n transition: background-color var(--db-motion-fast) var(--db-ease);\n }\n .sheet-grip[data-sheet-grip=\"left\"] { left: -5px; }\n .sheet-grip[data-sheet-grip=\"right\"] { right: -5px; }\n .sheet-grip:hover { background: color-mix(in oklab, var(--db-accent) 15%, transparent); }\n\n /*\n * Edit and preview. The canvas is one Tab stop: its ring sits inside the\n * pane, since the pane meets the drawers and the bar edge to edge.\n */\n .panel--canvas { position: relative; }\n .canvas-page:focus { outline: none; }\n .canvas-page:focus-visible { outline: 2px solid var(--db-focus); outline-offset: -4px; border-radius: var(--db-radius-lg); }\n .sr-only {\n position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;\n clip: rect(0 0 0 0); white-space: nowrap; border: 0;\n }\n /*\n * The canvas bar and the selection bar sit in fixed places over the part of the canvas the\n * drawers leave showing: --db-side-w and --db-props-w say how far each reaches (capped as the\n * page's margins are, above). Nothing is measured; neither bar is ever attached to a field.\n */\n .canvas-bar-zone, .selection-zone {\n position: absolute; z-index: var(--db-z-canvas-ui);\n /* Physical, as the drawers are (left and right in the shell): in a right-to-left page the bars must still clear the drawer, not trade sides with it. */\n left: calc(min(var(--db-side-w, 0px), max(0px, calc(100% - 240px))) + var(--db-gap, 12px));\n right: calc(min(var(--db-props-w, 0px), max(0px, calc(100% - 240px))) + var(--db-gap, 12px));\n display: flex; justify-content: center; pointer-events: none;\n }\n /* The canvas bar keeps to the end edge, clear of the bar's documents menu that opens over the canvas's start. */\n .canvas-bar-zone { top: var(--db-gap, 12px); justify-content: flex-end; }\n /* Room for the bars, so neither covers the sheet's first or last row. */\n .panel--canvas[data-canvas-bar-shown] .canvas-page { padding-top: calc(var(--db-gap, 12px) + 52px); }\n .panel--canvas[data-selection-shown] .canvas-page { padding-bottom: calc(var(--db-gap, 12px) + 64px); }\n .selection-zone { bottom: var(--db-gap, 12px); }\n .canvas-bar-zone[hidden], .selection-zone[hidden], .canvas-devices[hidden], .canvas-zoom[hidden], .canvas-previewing[hidden], .canvas-bar[hidden] { display: none; }\n /*\n * Both bars answer the room the drawers leave them: each zone is a container. A\n * wide canvas shows the width and zoom buttons in the bar (their wrapper lays out nothing of\n * its own); a narrow one folds them behind one button, opened as a card under the bar. The\n * selection bar lets the component's name give way first, and drops it where even its\n * buttons are tight: the inspector names the selection too.\n */\n .canvas-bar-zone { container: db-canvas-bar / inline-size; }\n .selection-zone { container: db-selection-bar / inline-size; }\n .canvas-more-pop, .canvas-actions { display: contents; }\n .canvas-tool.canvas-more { display: none; }\n @container db-canvas-bar (max-width: 519px) {\n .canvas-bar { position: relative; }\n .canvas-tool.canvas-more { display: inline-flex; }\n .canvas-more-pop {\n position: absolute; top: calc(100% + var(--db-space-2)); inset-inline-end: 0;\n display: none; flex-direction: column; align-items: stretch; gap: var(--db-space-1);\n padding: var(--db-space-1); border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-lg);\n background: var(--db-surface); box-shadow: var(--db-shadow-overlay);\n }\n .canvas-bar[data-more-open] .canvas-more-pop { display: flex; }\n .canvas-more-pop .canvas-zoom { margin: 0; padding: var(--db-space-1) 0 0; border: 0; border-top: var(--db-border-w) solid var(--db-line-divider); }\n .canvas-more-pop .canvas-zoom[hidden] { display: none; }\n .canvas-more-pop .canvas-tool[data-tip]::after { display: none; }\n .canvas-more-pop .canvas-word { justify-content: flex-start; }\n .canvas-stepper-text { max-width: 14ch; }\n }\n @container db-canvas-bar (max-width: 299px) {\n .canvas-stepper-text, .canvas-previewing { display: none; }\n }\n @container db-selection-bar (max-width: 359px) {\n .selection-name { display: none; }\n }\n .canvas-bar, .selection-bar {\n pointer-events: auto; display: flex; align-items: center; gap: var(--db-space-1); max-width: 100%;\n padding: var(--db-space-1); border-radius: var(--db-radius-pill); font-family: var(--db-font); font-size: var(--db-text-sm);\n }\n .canvas-bar { background: var(--db-surface); border: var(--db-border-w) solid var(--db-line-card); box-shadow: var(--db-shadow-pill); color: var(--db-ink); }\n .canvas-devices { display: inline-flex; gap: 2px; }\n /* The zoom: out, in, Fit and the level (which goes back to 100%), after a divider. */\n .canvas-zoom { display: inline-flex; align-items: center; gap: 2px; padding-inline-start: var(--db-space-1); margin-inline-start: var(--db-space-1); border-inline-start: var(--db-border-w) solid var(--db-line-divider); }\n /* Nothing before it (no width buttons, no previewing word, no worded action of a mode): no divider either, or the bar starts with an empty segment. */\n .canvas-previewing[hidden] ~ .canvas-more-pop > .canvas-actions:not(:has(> :not([hidden]))) + .canvas-devices[hidden] + .canvas-zoom { padding-inline-start: 0; margin-inline-start: 0; border-inline-start: 0; }\n .canvas-actions:not(:has(> :not([hidden]))) + .canvas-devices[hidden] + .canvas-zoom { border-block-start: 0; padding-block-start: 0; }\n .canvas-zoom-word { inline-size: auto; min-inline-size: 32px; padding: 0 var(--db-space-2); font: inherit; font-weight: 500; font-variant-numeric: tabular-nums; }\n .canvas-zoom-word[data-canvas-zoom-level] { min-inline-size: 48px; }\n /* A mode's worded action (Suggest mappings): a tool as wide as its words. */\n .canvas-tool.canvas-word { inline-size: auto; padding: 0 var(--db-space-3); font: inherit; font-weight: 500; white-space: nowrap; }\n .canvas-tool[hidden] { display: none; }\n .canvas-stepper { display: inline-flex; align-items: center; gap: 2px; padding-inline-end: var(--db-space-2); margin-inline-end: var(--db-space-1); border-inline-end: var(--db-border-w) solid var(--db-line-divider); }\n .canvas-stepper[hidden] { display: none; }\n .canvas-stepper-text { padding: 0 var(--db-space-2); font-weight: 500; white-space: nowrap; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }\n .canvas-tool:disabled { opacity: .4; cursor: default; }\n .canvas-tool:disabled:hover { background: transparent; color: var(--db-ink-muted); }\n .canvas-tool, .selection-btn {\n display: inline-flex; align-items: center; justify-content: center; flex: none;\n inline-size: 32px; block-size: 32px; padding: 0; border: 0; border-radius: var(--db-radius-pill);\n background: transparent; color: inherit; cursor: pointer;\n transition: background-color var(--db-motion-fast) var(--db-ease);\n }\n .canvas-tool svg, .selection-btn svg { inline-size: var(--db-icon-size); block-size: var(--db-icon-size); }\n .canvas-tool { color: var(--db-ink-muted); }\n .canvas-tool:hover { background: var(--db-surface-hover); color: var(--db-ink); }\n .canvas-tool[aria-pressed=\"true\"] { background: var(--db-accent-soft); color: var(--db-accent-text); }\n .canvas-try {\n min-block-size: 32px; padding: 0 var(--db-space-3); border: 0; border-radius: var(--db-radius-pill);\n background: var(--db-accent); color: var(--db-accent-ink); font: inherit; font-weight: 600; cursor: pointer;\n }\n .canvas-try:hover { background: var(--db-accent-hover); }\n /* A primary action that cannot run now keeps the accent; only the fade says so. */\n .canvas-try:disabled { opacity: .5; cursor: default; background: var(--db-accent); }\n .canvas-try[aria-pressed=\"true\"] { background: var(--db-selected); color: var(--db-selected-ink); }\n .canvas-previewing { padding: 0 var(--db-space-2) 0 var(--db-space-3); font-weight: 600; color: var(--db-ink); }\n /* The selection bar is the studio's one dark part: the selected colour, its own focus ring. */\n .selection-bar { background: var(--db-selected); color: var(--db-selected-ink); box-shadow: var(--db-shadow-overlay); }\n .selection-name {\n flex: 0 1 auto; padding: 0 var(--db-space-3); font-weight: 600; min-width: 0; max-width: 24ch;\n overflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n }\n .selection-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--db-selected-ink) 16%, transparent); }\n .selection-btn:disabled { opacity: .4; cursor: default; }\n .selection-btn:focus-visible { outline: 2px solid var(--db-focus-on-dark); outline-offset: -2px; }\n .selection-btn[data-selection-action=\"delete\"] { margin-inline-start: var(--db-space-1); }\n /* The canvas's icon buttons carry the shared tooltips (TIP_STYLES): below the canvas bar, above the selection bar. */\n .selection-btn[data-tip]::after { top: auto; bottom: calc(100% + 10px); }\n @media (pointer: coarse) {\n .canvas-tool, .selection-btn { inline-size: 44px; block-size: 44px; }\n .canvas-try { min-block-size: 44px; }\n }\n @media (forced-colors: active) {\n .canvas-bar, .selection-bar { border: 1px solid CanvasText; }\n .selection-btn:disabled { color: GrayText; opacity: 1; }\n }\n .selection-edit[hidden] { display: none; }\n /*\n * The phone tier: the shell's data-phone, set on this element. The canvas is the\n * phone's width and has no toolbar: Try it is on the bottom bar, zoom and Show hidden are in the menu drawer. Two pills stay, each only\n * when it applies: the steps stepper, and Previewing with Back to editing. The selection bar\n * runs the width above the bottom bar, Edit first.\n */\n :host([data-phone]) .canvas-more,\n :host([data-phone]) .canvas-more-pop,\n :host([data-phone]) .panel--canvas:not([data-previewing]) .canvas-try { display: none; }\n :host([data-phone]) .canvas-bar-zone { inset-inline: var(--db-gap, 8px); justify-content: flex-start; }\n :host([data-phone]) .canvas-bar-zone:not(:has(.canvas-stepper:not([hidden]), .canvas-previewing:not([hidden]))) { display: none; }\n :host([data-phone]) .canvas-bar { min-block-size: 44px; }\n :host([data-phone]) .canvas-tool { inline-size: 40px; block-size: 40px; }\n :host([data-phone]) .canvas-stepper { border-inline-end: 0; margin-inline-end: 0; }\n :host([data-phone]) .canvas-stepper-text { max-width: 24ch; }\n :host([data-phone]) .canvas-try { min-block-size: 40px; }\n :host([data-phone]) .canvas-page {\n padding-inline: var(--db-gap, 8px);\n padding-bottom: calc(var(--db-bottom-bar-h, 0px) + var(--db-gap, 8px));\n touch-action: pan-x pan-y;\n }\n :host([data-phone]) .panel--canvas:not(:has(.canvas-stepper:not([hidden]), .canvas-previewing:not([hidden]))) .canvas-page { padding-top: var(--db-gap, 8px); }\n :host([data-phone]) .panel--canvas[data-selection-shown] .canvas-page { padding-bottom: calc(var(--db-bottom-bar-h, 0px) + 2 * var(--db-gap, 8px) + 48px); }\n :host([data-phone]) .canvas-surface:not([data-sheet-fixed]) { width: 100% !important; max-width: none !important; }\n :host([data-phone]) .sheet-grip { display: none; }\n :host([data-phone]) .panel--canvas[data-try-shown] .canvas-page { padding-right: var(--db-gap, 8px); }\n :host([data-phone]) .selection-zone { inset-inline: var(--db-gap, 8px); bottom: calc(var(--db-bottom-bar-h, 0px) + var(--db-gap, 8px)); }\n :host([data-phone]) .selection-bar { width: 100%; min-block-size: 48px; padding: 2px; }\n :host([data-phone]) .selection-name { flex: 1; min-width: 0; padding: 0 var(--db-space-1); }\n :host([data-phone]) .selection-btn { inline-size: 44px; block-size: 44px; }\n :host([data-phone]) .selection-btn[data-tip]::after { display: none; }\n";
|
|
352
|
+
/**
|
|
353
|
+
* Chrome the canvas layers over the rendered form. Every rule here is deliberately additive —
|
|
354
|
+
* selection uses `outline` rather than a border or box-shadow, and drop zones only draw on
|
|
355
|
+
* hover — so that nothing on the canvas shifts a field's position relative to where the live
|
|
356
|
+
* form puts it. That restraint is what makes the preview trustworthy.
|
|
357
|
+
*
|
|
358
|
+
* Loaded into `<datum-form-renderer>`'s shadow root via its `extraStyles`, so it reaches the
|
|
359
|
+
* decorated markup while the form's own CSS isolation boundary still holds.
|
|
360
|
+
*/
|
|
361
|
+
export declare const CANVAS_CHROME_STYLES: string;
|
|
362
|
+
/**
|
|
363
|
+
* What the live renderer wraps every drawn component in (the DOM contract): a field's
|
|
364
|
+
* wrapper (`data-component-id`) or a container's (`data-container-id`). Whatever a binding draws
|
|
365
|
+
* inside, these are the boxes the canvas places, counts and drops between.
|
|
366
|
+
*/
|
|
367
|
+
export declare const DRAWN_COMPONENT_SELECTOR = ".datum-live-field[data-component-id], .datum-live-container[data-container-id]";
|
|
368
|
+
/** The component a drawn wrapper is: a container's id, else a field's. */
|
|
369
|
+
export declare function drawnComponentId(element: HTMLElement): string | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* The components drawn in a drop zone at its own level, in document order: each drawn wrapper
|
|
372
|
+
* inside it that no other drawn wrapper inside it holds. A binding may put its own elements
|
|
373
|
+
* between the zone and its components (a list item, a table cell), so these are found, not
|
|
374
|
+
* assumed to be the zone's children.
|
|
375
|
+
*/
|
|
376
|
+
export declare function zoneItems(zone: Element): HTMLElement[];
|
|
377
|
+
/**
|
|
378
|
+
* Which way a zone's components flow, read from where they were laid out: side by side when two
|
|
379
|
+
* neighbours share a line (a row, a layout grid's columns, a data grid's template row), else
|
|
380
|
+
* stacked. A zone with fewer than two components takes the axis it was marked with.
|
|
381
|
+
*/
|
|
382
|
+
export declare function zoneAxis(zone: HTMLElement, items: readonly HTMLElement[]): InsertionAxis;
|
|
383
|
+
/**
|
|
384
|
+
* Marks the canvas's drop zones on the drawn form: run after every draw. An empty
|
|
385
|
+
* slot draws its own zone (the canvas hooks' `emptySlot`); a slot that holds components is the
|
|
386
|
+
* smallest element its components share, so a design system's container keeps its own markup and
|
|
387
|
+
* a drop lands in the slot it is aimed at. The root's zone is the `<form>` itself when it holds
|
|
388
|
+
* nothing (marked `data-db-root`, which the root's selection outline hangs on); a container whose
|
|
389
|
+
* one slot is drawn empty with no zone of its own takes drops on its node. A slot whose
|
|
390
|
+
* components share their element with another slot's has no element of its own, and is left
|
|
391
|
+
* unmarked: a drop there lands in the container around it.
|
|
392
|
+
*
|
|
393
|
+
* Last time's marks go first and the new ones are worked out on a copy; the DOM is written only
|
|
394
|
+
* where the two differ. Taking a mark off the `<form>` and putting it back sends a style
|
|
395
|
+
* invalidation to every component under it (the sheet's `[data-dropzone] > [data-component-id]`
|
|
396
|
+
* rules), about 6 ms of style per commit at 200 fields for marks that did not move.
|
|
397
|
+
*/
|
|
398
|
+
export declare function markDropZones(root: ParentNode, view: NestedTreeNodeView): void;
|
|
399
|
+
/**
|
|
400
|
+
* Where a drag aimed at `zone` puts the dragged component, from the pointer: the index among the
|
|
401
|
+
* slot's components (counting the ones not drawn, a hidden step's or a rule's), and the element to
|
|
402
|
+
* show the insertion marker before (`undefined`: after the last). `index` reads the drawn
|
|
403
|
+
* components' places in the tree (`placeOf`), so a slot whose components are not all drawn still
|
|
404
|
+
* gets the slot's own index.
|
|
405
|
+
*/
|
|
406
|
+
export declare function zoneInsertion(zone: HTMLElement, pointer: {
|
|
407
|
+
x: number;
|
|
408
|
+
y: number;
|
|
409
|
+
}, placeOf: (componentId: string) => number | undefined): {
|
|
410
|
+
index: number;
|
|
411
|
+
before: HTMLElement | undefined;
|
|
412
|
+
after: HTMLElement | undefined;
|
|
413
|
+
axis: InsertionAxis;
|
|
414
|
+
};
|
|
415
|
+
/** Puts the insertion marker in `zone`, before `before`, after `after`, or at its end. */
|
|
416
|
+
export declare function placeMarker(marker: HTMLElement, zone: HTMLElement, before: Element | undefined, after: Element | undefined, axis: InsertionAxis): void;
|
|
417
|
+
/** The place of each component in its slot, read off the builder's tree view: what a drop counts in. */
|
|
418
|
+
export declare function slotPlaces(view: NestedTreeNodeView): Map<string, number>;
|
|
419
|
+
/**
|
|
420
|
+
* Declared slot ids per container id, read off the builder's own tree view. The registry knows
|
|
421
|
+
* about slots a node declares but has not filled; the render model only sees children that
|
|
422
|
+
* exist, so an empty container would otherwise have nowhere to drop into.
|
|
423
|
+
*/
|
|
424
|
+
export declare function declaredSlotsByComponent(view: NestedTreeNodeView): Map<string, string[]>;
|
|
425
|
+
/**
|
|
426
|
+
* The `emptyHint` of every declared slot that has one, per container id then slot id, read
|
|
427
|
+
* off the builder's own tree view like {@link declaredSlotsByComponent}: what the canvas says
|
|
428
|
+
* in that slot while it is empty. A blank hint is kept as `""`: the slot's zone is
|
|
429
|
+
* drawn with no words (a journey's Check answers or exit step, which asks no field).
|
|
430
|
+
*/
|
|
431
|
+
export declare function slotEmptyHintsByComponent(view: NestedTreeNodeView): Map<string, Map<string, string>>;
|
|
432
|
+
/**
|
|
433
|
+
* The component tree's rows, shared by the outline panel and any host drawing `treeTabHtml`
|
|
434
|
+
* inside the properties panel's styles.
|
|
435
|
+
*/
|
|
436
|
+
export declare const TREE_STYLES = "\n .tree-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--db-space-half); }\n .tree-row { display: flex; align-items: center; gap: var(--db-space-1); min-width: 0; }\n /* The label (two lines at most) over the type and key, the hidden chip at that line's end. */\n .tree-select {\n flex: 1; min-width: 0; min-block-size: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--db-space-2); text-align: start;\n border: var(--db-border-w) solid transparent; border-radius: var(--db-radius-sm); background: none;\n padding: var(--db-space-1) var(--db-space-2); font: inherit; font-size: var(--db-text-md); cursor: pointer; color: var(--db-ink); overflow: hidden;\n transition: background-color var(--db-motion-fast) var(--db-ease);\n }\n .tree-select:hover { background: var(--db-surface-hover); }\n .tree-select.active { border-color: var(--db-accent); background: var(--db-accent-soft); }\n .tree-label { grid-column: 1 / -1; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }\n .tree-meta { color: var(--db-ink-muted); font-size: var(--db-text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .tree-hidden {\n color: var(--db-ink-muted); background: var(--db-surface-sunken); font-size: var(--db-text-xs); font-weight: 500;\n border-radius: var(--db-radius-pill); padding: 0 var(--db-space-2); white-space: nowrap; flex-shrink: 0;\n }\n .tree-delete {\n display: inline-flex; align-items: center; min-block-size: 28px;\n border: var(--db-border-w) solid var(--db-danger-line); background: var(--db-surface); color: var(--db-danger);\n border-radius: var(--db-radius-pill); padding: 0 var(--db-space-2); font: inherit; font-size: var(--db-text-xs); font-weight: 500; cursor: pointer;\n }\n .tree-delete:hover { background: var(--db-danger-soft); }\n .tree-note { margin: 0 0 var(--db-space-2); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n";
|
|
437
|
+
/**
|
|
438
|
+
* The folded inspector's stub in the floating drawer: one small card holding its button, not a
|
|
439
|
+
* strip the drawer's height. Its own sheet, since the stub paints without PROPERTIES_STYLES.
|
|
440
|
+
*/
|
|
441
|
+
export declare const INSPECTOR_STUB_STYLES = "\n :host([data-floating]) .panel--stub {\n height: auto; padding: var(--db-space-1) 0; overflow: visible;\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-pill); box-shadow: var(--db-shadow-card);\n }\n";
|
|
442
|
+
export declare const PROPERTIES_STYLES = "\n /*\n * The panel is a column: a fixed head and tab strip, one scrolling body, and a footer that\n * stays put. Save / Cancel / Delete must never scroll out of reach \u2014 the panel is narrow and\n * a long property list would otherwise hide the only way to commit an edit.\n */\n .panel { display: flex; flex-direction: column; overflow: hidden; }\n /*\n * The shell docks the panel in a column as tall as itself, so the body takes\n * whatever the head and the footer leave and scrolls inside it; a host that leaves the\n * panel unbounded gets a body as tall as its content, with the sticky footer covering that.\n */\n .inspector-body { flex: 1; min-height: 0; overflow: auto; }\n /*\n * Pill tabs, the studio's segmented look: transparent until chosen, the chosen one in the\n * strong --db-selected fill. 34px tall, past WCAG 2.5.8's floor.\n */\n .inspector-tabs { position: relative; display: flex; align-items: center; gap: var(--db-space-1); margin-bottom: var(--db-space-3); flex-wrap: nowrap; }\n /*\n * The Form panel names what it edits above its tabs: with two inspectors on\n * screen, the tabs alone would not say which tree's root this one is for.\n */\n .inspector-head { justify-content: flex-start; margin-bottom: var(--db-space-3); }\n .inspector-head strong { font-size: var(--db-text-lg); font-weight: 600; line-height: 1.2; }\n .inspector-filter { margin-bottom: var(--db-space-4); }\n /* The box is the shared one (SHARED_CONTROL_STYLES), the filter's width. */\n .inspector-filter input { width: 100%; }\n .inspector-filter input::placeholder, .property-row input::placeholder { color: var(--db-ink-subtle); }\n .inspector-tab {\n appearance: none; display: inline-flex; align-items: center; gap: var(--db-space-2);\n min-block-size: 34px; padding: 0 var(--db-space-3);\n border: 0; border-radius: var(--db-radius-pill);\n background: transparent; color: var(--db-ink-muted);\n font: inherit; font-size: var(--db-text-base); font-weight: 500; cursor: pointer;\n transition: background-color var(--db-motion-fast) var(--db-ease), color var(--db-motion-fast) var(--db-ease);\n }\n .inspector-tab:hover { color: var(--db-ink); background: var(--db-surface-hover); }\n .inspector-tab.active, .inspector-tab.active:hover { color: var(--db-selected-ink); background: var(--db-selected); }\n /* A tab's count (Logic's rules): a small chip, its number also in the tab's name. */\n .inspector-tab-count {\n min-inline-size: 18px; padding: 0 var(--db-space-1); border-radius: var(--db-radius-pill);\n background: var(--db-surface-sunken); color: var(--db-ink); font-size: var(--db-text-xs); font-weight: 600; line-height: 18px; text-align: center;\n }\n .inspector-tab.active .inspector-tab-count { background: color-mix(in oklab, var(--db-selected-ink) 22%, transparent); color: var(--db-selected-ink); }\n /* The component's name over its tabs, its type beside it (for example \"Legal business name \u00B7 Short text\"). */\n .inspector-title { display: flex; align-items: baseline; gap: var(--db-space-2); min-width: 0; margin-bottom: var(--db-space-3); }\n .inspector-title strong { font-size: var(--db-text-lg); font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n .inspector-title span { color: var(--db-ink-muted); font-size: var(--db-text-sm); white-space: nowrap; }\n /* The tabs' \u22EF: what is about the component rather than a setting of it (its JSON). */\n /* One row: the tabs may wrap among themselves, the \u22EF stays at the row's end (a narrow drawer, the Form panel's). */\n .inspector-tablist { min-width: 0; display: flex; gap: var(--db-space-1); flex-wrap: wrap; }\n .inspector-more { margin-inline-start: auto; }\n /* The shared menu (SHARED_PATTERN_STYLES), dropped from the tabs' end. */\n .inspector-menu { position: absolute; inset-inline-end: 0; top: calc(100% + var(--db-space-1)); }\n .style-options { border: 0; margin: 0 0 var(--db-space-4); padding: 0; display: grid; gap: var(--db-space-2); }\n .style-option { display: flex; align-items: flex-start; gap: var(--db-space-2); min-block-size: 24px; font-size: var(--db-text-md); cursor: pointer; }\n /* The caption's first line centred on the 24px box. */\n .style-option-text { display: grid; gap: 2px; padding-top: 3px; }\n .style-option-help { color: var(--db-ink-muted); font-size: var(--db-text-sm); }\n .style-option-group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--db-space-2); }\n .style-options legend, .style-option-group legend { padding: 0; margin-bottom: var(--db-space-2); font-size: var(--db-text-md); font-weight: 600; color: var(--db-ink); }\n /*\n * The footer spans the drawer edge to edge (it gives the panel's padding back) under a\n * divider: Delete at the start, the secondary Cancel and the strong commit at the end.\n */\n .inspector-footer {\n position: sticky; bottom: calc(-1 * var(--db-space-3)); z-index: 1;\n display: flex; flex-direction: column; gap: var(--db-space-2);\n margin: var(--db-space-3) calc(-1 * var(--db-space-4)) calc(-1 * var(--db-space-3)); padding: var(--db-space-3) var(--db-space-4);\n border-top: var(--db-border-w) solid var(--db-line-divider); background: var(--db-surface);\n }\n .inspector-footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--db-space-2); }\n /* Delete is last in the markup so Tab reaches Discard and Apply first, and still draws first. */\n .inspector-footer-row > [data-inspector-delete] { order: -1; }\n .inspector-footer .spacer { flex: 1; }\n .inspector-footer .btn.primary { background: var(--db-selected); border-color: var(--db-selected); color: var(--db-selected-ink); }\n .inspector-footer .btn.primary:hover:not(:disabled) { background: color-mix(in oklab, var(--db-selected) 84%, var(--db-surface)); border-color: var(--db-selected); }\n /* Waiting for Save: the warn ink and a dot, so the state is a word and a mark, not a hue alone. */\n .dirty-flag { display: inline-flex; align-items: center; gap: var(--db-space-1); font-size: var(--db-text-sm); font-weight: 500; color: var(--db-warn); }\n .dirty-flag::before { content: \"\"; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; }\n /*\n * The line above Save: what holds it back, and the way there. One problem shows its message;\n * several show their count, which opens their list.\n */\n .problem-summary {\n appearance: none; display: block; width: 100%; min-block-size: 32px; text-align: start; cursor: pointer;\n padding: var(--db-space-2) var(--db-space-3); border-radius: var(--db-radius-md);\n border: var(--db-border-w) solid var(--db-danger-line); background: var(--db-danger-soft);\n font: inherit; font-size: var(--db-text-sm); color: var(--db-danger);\n }\n .problem-summary:hover .problem-summary__count { text-decoration: underline; text-underline-offset: 2px; }\n .problem-summary__count { font-weight: 600; }\n .problem-summary[aria-expanded]::after { content: \"\"; display: inline-block; flex: none; width: 6px; height: 6px; margin-inline: var(--db-space-2) 0; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--db-motion-fast) var(--db-ease); }\n .problem-summary[aria-expanded=\"true\"]::after { transform: rotate(45deg); }\n .problem-list {\n list-style: none; margin: 0; padding: var(--db-space-1); display: grid; gap: var(--db-space-half);\n border: var(--db-border-w) solid var(--db-danger-line); background: var(--db-danger-soft);\n border-radius: var(--db-radius-md); max-height: 160px; overflow: auto;\n }\n .problem-item {\n appearance: none; width: 100%; min-block-size: 28px; text-align: start; background: none; border: none; cursor: pointer;\n padding: var(--db-space-1) var(--db-space-2); border-radius: var(--db-radius-sm);\n font: inherit; font-size: var(--db-text-sm); color: var(--db-danger);\n }\n .problem-item:hover { background: var(--db-surface); }\n .problem-item strong { color: var(--db-ink); margin-inline-end: var(--db-space-1); }\n /* A problem's message under its box, and the box it names. */\n .field-error { margin: var(--db-space-1) 0 0; font-size: var(--db-text-sm); color: var(--db-danger); }\n /* The box a problem names: see .property-row input[aria-invalid] after the field rules, which it has to follow. */\n /* Read out, never shown: what a refused Save or a jump to a problem says. */\n .sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n /*\n * Sections fold like the rules and translations do. No box: each is a plain heading row\n * (sentence case, the muted 12px heading) with a divider above it, and its rows beneath.\n */\n .inspector-section { border-top: var(--db-border-w) solid var(--db-line-divider); }\n .inspector-body > .inspector-section:first-child { border-top: 0; }\n .inspector-section > summary {\n cursor: pointer; list-style: none; min-block-size: 40px; padding: var(--db-space-2) 0; display: flex; align-items: center;\n gap: var(--db-space-2); font-size: var(--db-text-sm); font-weight: 600; letter-spacing: .02em; color: var(--db-ink-muted);\n }\n .inspector-section > summary:hover { color: var(--db-ink); }\n .inspector-section > summary::-webkit-details-marker { display: none; }\n .inspector-section > summary::before, .rule > summary::before { content: \"\"; display: inline-block; flex: none; width: 6px; height: 6px; margin-inline: 2px 4px; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--db-motion-fast) var(--db-ease); }\n .inspector-section[open] > summary::before, .rule[open] > summary::before { transform: rotate(45deg); }\n .inspector-section-body { padding: var(--db-space-1) 0 var(--db-space-2); }\n /* Advisory, not a refusal \u2014 amber, and Save stays live. */\n .css-class-warning { margin: calc(-1 * var(--db-space-2)) 0 var(--db-space-3); font-size: var(--db-text-sm); color: var(--db-warn); }\n /* A note the tree's owner makes about a box: advisory like the class warning, never counted against Save. */\n .field-note { margin: var(--db-space-1) 0 0; font-size: var(--db-text-sm); color: var(--db-warn); }\n .field-note[data-severity=\"error\"] { color: var(--db-danger); }\n /* A line that only informs (a rule calculates the answer): muted, never amber. */\n .field-note[data-severity=\"info\"] { color: var(--db-ink-muted); }\n /* Notes about the component as a whole, or about a box this tab does not draw: above the sections. */\n .inspector-notes { display: grid; gap: var(--db-space-1); margin: 0 0 var(--db-space-3); }\n .inspector-notes .field-note { margin: 0; }\n /*\n * Label above input, not beside it. The panel is a narrow column; a fixed label gutter took\n * a third of it and left every text box too short to read a label or an id in. Stacking\n * gives the input the panel's full width, which is where the author is actually working.\n */\n .property-row { display: grid; gap: calc(var(--db-space-1) + var(--db-space-half)); margin-bottom: var(--db-space-4); font-size: var(--db-text-md); }\n .property-row > strong, .property-row > span:first-child, .property-label strong { font-size: var(--db-text-md); color: var(--db-ink); font-weight: 500; }\n .property-row input[type=\"text\"], .property-row input[type=\"number\"], .property-row select {\n border: var(--db-border-w) solid var(--db-line-input); border-radius: var(--db-radius-md); min-block-size: var(--db-control-h); padding: 0 var(--db-space-3); width: 100%;\n background: var(--db-surface); color: var(--db-ink); font: inherit; font-size: var(--db-text-base);\n }\n /* After the field rules, so the danger border wins over theirs. */\n .property-row input[aria-invalid=\"true\"], .property-row select[aria-invalid=\"true\"], .property-row textarea[aria-invalid=\"true\"] {\n border-color: var(--db-danger);\n }\n .property-static { color: var(--db-ink-muted); font-family: var(--db-font-mono); font-size: var(--db-text-sm); word-break: break-all; }\n /*\n * A property with a description gets a \"?\" beside its label. The text is one click away\n * (or a hover, through the button's title) rather than always on screen: most rows do not\n * need it, and a panel of hints would bury the controls. See labeledRowHtml. The toggle is a\n * 24px round chip (WCAG 2.5.8's floor), pressed in the strong fill while its note is open.\n */\n .property-label { display: flex; align-items: center; gap: var(--db-space-1); }\n .property-help-toggle {\n flex: none; inline-size: 24px; block-size: 24px; min-inline-size: 24px; min-block-size: 24px; padding: 0;\n border-radius: var(--db-radius-pill); border: 0;\n background: var(--db-surface-sunken); color: var(--db-ink-muted); font: inherit; font-size: var(--db-text-xs); font-weight: 600;\n line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;\n transition: background-color var(--db-motion-fast) var(--db-ease), color var(--db-motion-fast) var(--db-ease);\n }\n .property-help-toggle:hover { background: var(--db-surface-hover); color: var(--db-ink); }\n .property-help-toggle[aria-expanded=\"true\"] { background: var(--db-selected); color: var(--db-selected-ink); }\n @media (forced-colors: active) {\n .property-help-toggle { border: var(--db-border-w) solid ButtonText; }\n }\n .property-help { margin: 0; font-size: var(--db-text-sm); line-height: 1.4; color: var(--db-ink-muted); }\n pre { margin: 0; background: var(--db-surface-sunken); border: var(--db-border-w) solid var(--db-line-divider); border-radius: var(--db-radius-md); padding: var(--db-space-3); font-family: var(--db-font-mono); font-size: var(--db-text-sm); max-height: 340px; overflow: auto; }\n /*\n * JSON tab. The viewer is the tab's whole body: edge to edge across the panel (the body\n * gives the panel's padding back, as the footer does) and as tall as the rail lets the body\n * be, the editor's own scroller doing the scrolling. The <pre> the markup carries is the\n * text's source, and what shows until the panel mounts the editor beside it \u2014 hidden from\n * then on, but still there for a host that reads the JSON from the DOM (see\n * DatumBuilderPropertiesElement.mountJsonViewer). Where nothing bounds the rail the body\n * grows with the document to its usual cap and scrolls itself, as it did for the <pre>.\n */\n .inspector-body:has(> [data-json-view]) { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--db-space-4)); }\n [data-json-view] { flex: 1; min-height: 0; max-height: none; border-radius: 0; border-width: var(--db-border-w) 0; }\n [data-json-view][hidden] { display: none; }\n .json-editor {\n flex: 1; min-height: 240px; display: flex; flex-direction: column;\n border-top: var(--db-border-w) solid var(--db-line-divider); border-bottom: var(--db-border-w) solid var(--db-line-divider);\n }\n .json-editor > .cm-editor { flex: 1; min-height: 0; }\n /*\n * The inspector's JSON is a box to edit: the textarea is the box until the editor\n * mounts, and for good if it never does. The line about children sits above it and a problem\n * under it, each its own height, the box taking the rest.\n */\n textarea.json-edit {\n width: 100%; min-height: 240px; resize: none; padding: var(--db-space-3);\n font-family: var(--db-font-mono); font-size: var(--db-text-sm); line-height: 1.5;\n color: var(--db-ink); background: var(--db-surface-sunken);\n }\n .inspector-body:has(> [data-json-view]) > .json-note,\n .inspector-body:has(> [data-json-view]) > .json-error { flex: none; margin: var(--db-space-2) var(--db-space-4); }\n .json-note { font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /*\n * A checkbox's caption belongs beside it, not above: the control is the smaller half. The box\n * is the shared one (SHARED_CONTROL_STYLES): 24px square, WCAG 2.5.8's floor for a target\n * (Required, a PDF layout's title setting), in the strong fill when ticked.\n */\n .property-row:has(> input[type=\"checkbox\"]) {\n grid-template-columns: auto 1fr; align-items: center; column-gap: var(--db-space-3);\n }\n .property-row > input[type=\"checkbox\"] { justify-self: start; order: -1; }\n /* With a description the row has a third child, the help text; it spans under both. */\n .property-row--help:has(> input[type=\"checkbox\"]) { row-gap: var(--db-space-1); }\n .property-row--help:has(> input[type=\"checkbox\"]) > .property-help { grid-column: 1 / -1; }\n .locale-hint { margin: 0 0 var(--db-space-2); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /* The pointer line under a component's texts: coverage in words, then the way to Languages. */\n .translation-pointer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--db-space-2); margin: var(--db-space-2) 0 0; font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n .translation-pointer-text { flex: 1 1 auto; min-width: 0; }\n\n \n .tree-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--db-space-half); }\n .tree-row { display: flex; align-items: center; gap: var(--db-space-1); min-width: 0; }\n /* The label (two lines at most) over the type and key, the hidden chip at that line's end. */\n .tree-select {\n flex: 1; min-width: 0; min-block-size: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--db-space-2); text-align: start;\n border: var(--db-border-w) solid transparent; border-radius: var(--db-radius-sm); background: none;\n padding: var(--db-space-1) var(--db-space-2); font: inherit; font-size: var(--db-text-md); cursor: pointer; color: var(--db-ink); overflow: hidden;\n transition: background-color var(--db-motion-fast) var(--db-ease);\n }\n .tree-select:hover { background: var(--db-surface-hover); }\n .tree-select.active { border-color: var(--db-accent); background: var(--db-accent-soft); }\n .tree-label { grid-column: 1 / -1; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }\n .tree-meta { color: var(--db-ink-muted); font-size: var(--db-text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .tree-hidden {\n color: var(--db-ink-muted); background: var(--db-surface-sunken); font-size: var(--db-text-xs); font-weight: 500;\n border-radius: var(--db-radius-pill); padding: 0 var(--db-space-2); white-space: nowrap; flex-shrink: 0;\n }\n .tree-delete {\n display: inline-flex; align-items: center; min-block-size: 28px;\n border: var(--db-border-w) solid var(--db-danger-line); background: var(--db-surface); color: var(--db-danger);\n border-radius: var(--db-radius-pill); padding: 0 var(--db-space-2); font: inherit; font-size: var(--db-text-xs); font-weight: 500; cursor: pointer;\n }\n .tree-delete:hover { background: var(--db-danger-soft); }\n .tree-note { margin: 0 0 var(--db-space-2); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n\n\n .rules-note { margin: 0 0 var(--db-space-3); font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /* A rule is a card, as on the Logic board: white, a card line, the studio's sheet corner. */\n .rule { border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-lg); margin-bottom: var(--db-space-2); background: var(--db-surface); }\n .rule > summary {\n cursor: pointer; list-style: none; min-block-size: 40px; padding: var(--db-space-2) var(--db-space-3); display: flex; align-items: center;\n gap: var(--db-space-2); font-size: var(--db-text-md); font-weight: 600; border-radius: var(--db-radius-lg);\n }\n .rule > summary:hover { background: var(--db-surface-hover); }\n .rule[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }\n .rule > summary::-webkit-details-marker { display: none; }\n .rule-state {\n margin-inline-start: auto; font-weight: 500; font-size: var(--db-text-xs); white-space: nowrap;\n color: var(--db-ink-muted); background: var(--db-surface-sunken); border-radius: var(--db-radius-pill); padding: 0 var(--db-space-2);\n }\n .rule-state.on { color: var(--db-accent-text); background: var(--db-accent-soft); }\n .rule-body { padding: 0 var(--db-space-3) var(--db-space-3); display: grid; gap: var(--db-space-3); }\n .rule-desc { margin: 0; font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /* The head: the Off / Formula segmented control (the shared .seg look, in SHARED_PATTERN_STYLES) and the Runs control. */\n .rule-head { display: flex; align-items: center; justify-content: space-between; gap: var(--db-space-2); flex-wrap: wrap; }\n /* Where the rule runs: a select-looking button opening the four scopes, each with its consequence. */\n .rule-run { position: relative; }\n .rule-run > summary {\n list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--db-space-1); min-block-size: 30px; padding: 0 var(--db-space-3);\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-pill); background: var(--db-surface);\n font-size: var(--db-text-sm); font-weight: 500; color: var(--db-ink); white-space: nowrap;\n }\n .rule-run > summary::-webkit-details-marker { display: none; }\n .rule-run > summary:hover { background: var(--db-surface-hover); }\n .rule-run > summary::after { content: \"\"; display: inline-block; width: 5px; height: 5px; margin-inline-start: 2px; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }\n .rule-run-menu {\n position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: var(--db-z-popover, 30); min-width: 300px; max-width: min(360px, 90vw);\n display: grid; gap: 2px; padding: var(--db-space-1); background: var(--db-surface); color: var(--db-ink);\n border: var(--db-border-w) solid var(--db-line-card); border-radius: var(--db-radius-lg); box-shadow: var(--db-shadow-overlay, 0 24px 48px -20px rgba(0,0,0,.45));\n }\n .rule-run-option {\n display: grid; gap: 2px; text-align: start; border: 0; background: transparent; border-radius: var(--db-radius-md); padding: var(--db-space-2) var(--db-space-3);\n font: inherit; font-size: var(--db-text-sm); color: var(--db-ink); cursor: pointer;\n }\n .rule-run-option:hover, .rule-run-option:focus-visible { background: var(--db-surface-hover); }\n .rule-run-option:focus-visible { outline: 2px solid var(--db-focus); outline-offset: -2px; }\n .rule-run-option[aria-checked=\"true\"] { background: var(--db-surface-sunken); }\n .rule-run-option b { font-weight: 500; }\n .rule-run-option span { font-size: var(--db-text-xs); color: var(--db-ink-muted); }\n .rule-run-fixed {\n display: inline-flex; align-items: center; min-block-size: 26px; padding: 0 var(--db-space-2); border-radius: var(--db-radius-pill);\n background: var(--db-surface-sunken); color: var(--db-ink-muted); font-size: var(--db-text-xs); font-weight: 500; white-space: nowrap; cursor: help;\n }\n /* The formula box: the plain textarea first, the editor (formula-editor-styles.ts) swapped in over it when its chunk lands. */\n .rule-formula { display: grid; gap: var(--db-space-2); min-width: 0; }\n /* The shared textarea (SHARED_CONTROL_STYLES), at the formula's size. */\n .rule-formula-box { width: 100%; min-height: 44px; resize: vertical; font: inherit; font-size: var(--db-text-sm); line-height: 1.6; }\n .rule-formula-box[aria-invalid=\"true\"] { border-color: var(--db-danger-line, var(--db-danger)); }\n .rule-formula-box[hidden] { display: none; }\n .rule-try { display: flex; flex-wrap: wrap; gap: var(--db-space-1); align-items: center; font-size: var(--db-text-xs); color: var(--db-ink-muted); }\n .rule-reads { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; margin: 0; font-size: var(--db-text-xs); color: var(--db-ink-muted); line-height: 24px; }\n .rule-reads-label { font-size: var(--db-text-xs); font-weight: 600; letter-spacing: .02em; color: var(--db-ink-muted); margin-inline-end: 2px; }\n /*\n * A field it reads is the shared .ref-chip, a value the same chip in the sunken well, a formula\n * to try the shared .try-chip. They keep the line's 11px: at 12px the Reads as line no longer\n * fits the inspector's column and its last words wrap under the chips.\n */\n .rule-reads .val { background: var(--db-surface-sunken); color: var(--db-ink); }\n .rule-reads > *, .rule-try > * { font-size: inherit; }\n .rule-links { margin: 0; display: flex; justify-content: flex-end; font-size: var(--db-text-xs); }\n .rule-warning { margin: 0; font-size: var(--db-text-sm); color: var(--db-warn); }\n .rule-editor-failed { margin: 0; display: flex; gap: var(--db-space-2); align-items: center; font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /* An expression property's JSON box (the inspector's expression control). */\n .rule-json { width: 100%; min-height: 108px; resize: vertical; font-family: var(--db-font-mono); font-size: var(--db-text-sm); }\n .rule-error { margin: 0; font-size: var(--db-text-sm); color: var(--db-danger); }\n .rule-hint { margin: 0; font-size: var(--db-text-sm); color: var(--db-ink-muted); }\n /* The head's and the identity rows' groupings draw nothing of their own outside the floating drawer. */\n .inspector-top { display: contents; }\n /*\n * The floating drawer: the shell's inspector drawer sets data-floating\n * and draws no frame, and the panel is a stack of cards over the canvas. The head (name, tabs,\n * filter) is one card, each part of the body (the identity rows, a section, a rule, a note)\n * another, and Apply and Discard a card of their own after them. Still one panel with one\n * Apply: only the dressing moves. Every place is CSS: the column takes its\n * content's height up to the drawer's, its body scrolls, and the canvas under the gaps and\n * under a short column takes the pointer. Last, so it overrides the rules above.\n */\n :host([data-floating]) { pointer-events: none; }\n :host([data-floating]) .panel:not(.panel--stub) {\n height: auto; max-height: 100%; padding: 0; gap: var(--db-space-2);\n background: transparent; overflow: visible;\n }\n :host([data-floating]) .panel:not(.panel--stub) > * { pointer-events: auto; }\n :host([data-floating]) :is(.inspector-top, .inspector-footer, .inspector-body > *) {\n background: var(--db-surface); border: var(--db-border-w) solid var(--db-line-card);\n border-radius: var(--db-radius-xl); box-shadow: var(--db-shadow-card);\n }\n :host([data-floating]) .inspector-top { display: block; flex: none; padding: var(--db-space-3) var(--db-space-4); }\n :host([data-floating]) .inspector-top > :last-child { margin-bottom: 0; }\n /*\n * The body scrolls the cards. Its inline padding, given back by a margin, leaves the cards'\n * shadows room inside the scroller, which clips them; the cards still line up with the head's.\n */\n :host([data-floating]) .inspector-body {\n flex: 0 1 auto; display: flex; flex-direction: column; gap: var(--db-space-2);\n margin: 0 calc(-1 * var(--db-space-2)); padding: 0 var(--db-space-2) var(--db-space-3);\n }\n :host([data-floating]) .inspector-body > * { flex: none; margin: 0; padding: var(--db-space-3) var(--db-space-4); }\n :host([data-floating]) .inspector-body > .inspector-section { border-top: var(--db-border-w) solid var(--db-line-card); padding-block: 0; }\n :host([data-floating]) .inspector-section > summary { min-block-size: 44px; }\n :host([data-floating]) .inspector-body > .rule { padding: 0; border-radius: var(--db-radius-lg); }\n :host([data-floating]) .inspector-body > .drop-error { background: var(--db-danger-soft); border-color: var(--db-danger-line); }\n :host([data-floating]) .inspector-body > .inspector-about > .property-row:last-child { margin-bottom: 0; }\n :host([data-floating]) .inspector-section-body > :last-child { margin-bottom: var(--db-space-3); }\n /* The JSON is one card the body's whole height, the viewer edge to edge inside it. */\n :host([data-floating]) .inspector-body:has(> [data-json-view]) {\n flex: 1 1 auto; gap: 0; margin: 0; padding: 0; overflow: hidden;\n background: var(--db-surface); border: var(--db-border-w) solid var(--db-line-card);\n border-radius: var(--db-radius-xl); box-shadow: var(--db-shadow-card);\n }\n :host([data-floating]) .inspector-body:has(> [data-json-view]) > * { flex: 1 1 auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }\n :host([data-floating]) .inspector-body:has(> [data-json-view]) > [hidden] { display: none; }\n :host([data-floating]) .json-editor { border: 0; }\n :host([data-floating]) .inspector-body:has(> [data-json-view]) > .json-note,\n :host([data-floating]) .inspector-body:has(> [data-json-view]) > .json-error { flex: none; padding: 0; margin: var(--db-space-2) var(--db-space-4); }\n :host([data-floating]) .inspector-body:has(> [data-json-view]) > textarea.json-edit { padding: var(--db-space-3); }\n /* Apply and Discard: a card pinned under the cards, raised like the drawer it replaces. */\n :host([data-floating]) .inspector-footer {\n position: static; flex: none; margin: 0; padding: var(--db-space-3) var(--db-space-4);\n box-shadow: var(--db-shadow-overlay);\n }\n\n.formula-editor{display:flex;flex-direction:column;gap:8px;min-width:0;position:relative;font-family:var(--db-font, inherit)}\n.formula-editor .formula.cm-editor{min-height:44px;border:var(--db-border-w, 1px) solid var(--db-line-input);border-radius:var(--db-radius-md);background:var(--db-surface);color:var(--db-ink);font-size:var(--db-text-md);line-height:28px}\n.formula-editor .formula.cm-editor.cm-focused{outline:2px solid var(--db-focus, var(--db-accent));outline-offset:1px}\n.formula-editor .formula.cm-editor.bad{border-color:var(--db-danger-line, var(--db-danger))}\n.formula-editor .formula.cm-editor .cm-scroller{font-family:inherit;line-height:28px;overflow:visible}\n.formula-editor .formula.cm-editor .cm-content{padding:8px 10px;min-height:44px;caret-color:var(--db-ink);white-space:pre-wrap;word-break:break-word}\n.formula-editor .formula.cm-editor .cm-line{padding:0}\n.formula-editor .formula.cm-editor .cm-cursor{border-left-color:var(--db-ink)}\n.formula-editor .formula.cm-editor .cm-placeholder{color:var(--db-ink-subtle, var(--db-ink-muted));font-size:var(--db-text-md);font-style:normal}\n.formula-editor .formula.cm-editor .cm-selectionBackground,.formula-editor .formula.cm-editor.cm-focused .cm-selectionBackground{background:var(--db-accent-soft)}\n.formula-editor .f-field{vertical-align:middle;white-space:nowrap}\n.formula-editor .f-field.unknown{background:var(--db-danger-soft);color:var(--db-danger);text-decoration:underline wavy var(--db-danger);text-underline-offset:4px}\n.formula-editor .f-kw{color:var(--db-ink-muted);font-weight:600}\n.formula-editor .f-op{color:var(--db-ink);font-family:var(--db-font-mono, ui-monospace, Menlo, monospace)}\n.formula-editor .f-num{color:var(--db-code-literal);font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);font-weight:500}\n.formula-editor .f-str{color:var(--db-code-string);font-family:var(--db-font-mono, ui-monospace, Menlo, monospace)}\n.formula-editor .f-fn{color:var(--db-ink);font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);font-weight:500}\n.formula-editor .f-path{color:var(--db-accent-text, var(--db-accent));font-weight:500}\n.formula-editor .f-bad{color:var(--db-danger);text-decoration:underline wavy var(--db-danger);text-underline-offset:4px}\n.formula-editor .formula.cm-editor .cm-lintRange{background-image:none;background-repeat:no-repeat;padding-bottom:0}\n.formula-editor .formula.cm-editor .cm-lintRange-error{text-decoration:underline wavy var(--db-danger);text-underline-offset:4px}\n.formula-editor .formula.cm-editor .cm-lintRange-warning{text-decoration:underline wavy var(--db-warn-line, var(--db-warn));text-underline-offset:4px}\n.formula-editor .formula.cm-editor .cm-lintPoint-error::after{border-bottom-color:var(--db-danger)}\n.formula-editor .formula.cm-editor .cm-lintPoint-warning::after{border-bottom-color:var(--db-warn-line, var(--db-warn))}\n.formula-editor .cm-tooltip{background:var(--db-surface);color:var(--db-ink);border:1px solid var(--db-line-card, var(--db-line-input));border-radius:var(--db-radius-lg);box-shadow:var(--db-shadow-overlay, 0 24px 48px -20px rgba(0,0,0,.45));font-family:var(--db-font, inherit);font-size:var(--db-text-sm);z-index:var(--db-z-popover, 30)}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete{padding:6px}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul{font-family:inherit;min-width:280px;max-width:420px;max-height:300px}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--db-radius-sm);line-height:1.3}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected]{background:var(--db-surface-hover, var(--db-accent-soft));color:inherit}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li.f-opt-field .cm-completionLabel{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:var(--db-radius-xs);background:var(--db-accent-soft);color:var(--db-accent-text, var(--db-accent));font-weight:500}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li.f-opt-function .cm-completionLabel{font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);font-weight:500}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li.f-opt-keyword .cm-completionLabel{color:var(--db-ink-muted);font-weight:600}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li.f-opt-option .cm-completionLabel{font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);color:var(--db-code-string)}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li .cm-completionDetail{margin-inline-start:auto;font-style:normal;font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);color:var(--db-ink-muted);font-size:var(--db-text-xs)}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li.f-opt-function .cm-completionDetail{margin-inline-start:0;font-family:inherit}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > .cm-completionSection{font-size:var(--db-text-sm);font-weight:600;letter-spacing:.02em;color:var(--db-ink-muted);padding:8px 10px 2px}\n.formula-editor .cm-tooltip.cm-tooltip-autocomplete .f-suggest-footer{padding:6px 10px 4px;font-size:var(--db-text-xs);color:var(--db-ink-subtle, var(--db-ink-muted));border-block-start:1px solid var(--db-line-divider);margin-block-start:4px;display:var(--db-hint-display, block)}\n.formula-editor .cm-tooltip.cm-completionInfo{padding:8px 10px;max-width:280px;color:var(--db-ink-muted);font-size:var(--db-text-xs)}\n.formula-editor .cm-tooltip.cm-tooltip-lint{padding:6px 10px;font-size:var(--db-text-xs)}\n.formula-editor .cm-tooltip.cm-tooltip-lint .cm-diagnostic{border-left:0;padding:2px 0}\n.formula-editor .cm-tooltip.cm-tooltip-lint .cm-diagnosticAction{background:var(--db-accent-soft);color:var(--db-accent-text, var(--db-accent));border-radius:var(--db-radius-xs);padding:2px 6px;margin-inline-start:6px;cursor:pointer}\n.formula-editor .f-help{display:flex;flex-wrap:wrap;gap:6px;align-items:center;position:relative}\n.formula-editor .f-help .help{height:30px;padding:0 10px;border-radius:var(--db-radius-pill, 999px);border:1px solid var(--db-line-card, var(--db-line-input));background:var(--db-surface);font:inherit;font-size:var(--db-text-xs);font-weight:500;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--db-ink)}\n.formula-editor .f-help .help:hover{background:var(--db-surface-hover)}\n.formula-editor .f-help .help:focus-visible{outline:2px solid var(--db-focus, var(--db-accent));outline-offset:2px}\n.formula-editor .f-help .help[aria-expanded=\"true\"]{background:var(--db-selected);border-color:var(--db-selected);color:var(--db-selected-ink)}\n.formula-editor .f-help .help .f-glyph{font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);font-weight:600}\n.formula-editor .f-help .help svg{width:12px;height:12px}\n.formula-editor .f-help .f-spacer{flex:1}\n.formula-editor .f-help .f-reference{font-size:var(--db-text-xs);color:var(--db-accent-text, var(--db-accent));text-decoration:none}\n.formula-editor .f-help .f-reference:hover{text-decoration:underline}\n.formula-editor .f-menu{position:absolute;inset-block-start:calc(100% + 4px);inset-inline-start:0;box-sizing:border-box;min-width:280px;max-width:100%;max-height:320px;overflow:auto}\n.formula-editor .f-menu[hidden]{display:none}\n.formula-editor .f-menu.f-menu-wide{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:2px 12px;width:min(560px, 100%)}\n.formula-editor .f-menu.f-menu-wide[hidden]{display:none}\n.formula-editor .f-mh{font-size:var(--db-text-sm);font-weight:600;color:var(--db-ink-muted);padding:8px 10px 2px;grid-column:1 / -1}\n.formula-editor .f-mi .f-sub{font-size:var(--db-text-xs);color:var(--db-ink-muted);margin-inline-start:auto;font-family:var(--db-font-mono, ui-monospace, Menlo, monospace);white-space:nowrap}\n.formula-editor .f-mi .f-args{color:var(--db-ink-muted)}\n.formula-editor .f-menu-empty{padding:8px 10px;font-size:var(--db-text-xs);color:var(--db-ink-muted)}\n/* The phone: the helper row rides above the box so the suggestions popover never covers it, and every touch target in the editor measures 44px (24px at the least). */\n:host([data-phone]) .formula-editor .f-help{order:-1}\n:host([data-phone]) .formula-editor .f-help .help{min-height:44px;height:auto}\n:host([data-phone]) .formula-editor .f-help .f-reference{display:inline-flex;align-items:center;min-height:44px}\n:host([data-phone]) .formula-editor .f-mi{min-height:44px}\n:host([data-phone]) .formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li{min-height:44px;box-sizing:border-box}\n@media (pointer:coarse){.formula-editor .cm-tooltip.cm-tooltip-autocomplete > ul > li{min-height:44px;box-sizing:border-box}}\n\n /*\n * The phone sheet: the footer clears the home indicator through the\n * shell's safe-area token, and the tabs, buttons, menu rows and help toggles measure 44px\n * (the help chip keeps its 24px look and takes a 44px hit area).\n */\n :host([data-phone]) .inspector-footer { padding-bottom: calc(var(--db-space-3) + var(--db-safe-bottom, env(safe-area-inset-bottom, 0px))); }\n :host([data-phone]) .inspector-tab { min-block-size: var(--db-density-control-h, 44px); min-inline-size: var(--db-density-control-h, 44px); justify-content: center; }\n :host([data-phone]) .inspector-footer .btn, :host([data-phone]) .inspector-body .btn { min-block-size: var(--db-density-control-h, 44px); }\n :host([data-phone]) .menu-item, :host([data-phone]) .problem-summary { min-block-size: var(--db-density-control-h, 44px); }\n :host([data-phone]) .property-help-toggle { position: relative; }\n :host([data-phone]) .property-help-toggle::after { content: \"\"; position: absolute; inset: -10px; }\n";
|
|
443
|
+
export interface TreeTabOptions {
|
|
444
|
+
selectedId: string | undefined;
|
|
445
|
+
/** Component ids the preview is currently hiding (a false `rules.visibleWhen`, or `hidden`). */
|
|
446
|
+
hiddenIds: ReadonlySet<string>;
|
|
447
|
+
/**
|
|
448
|
+
* Whether rows carry a delete control. The builder's own tree dropdown is for navigating and
|
|
449
|
+
* selecting, so it sets this false: an irreversible action does not belong on a list an
|
|
450
|
+
* author is scrolling through to find something. Defaults to true for a host rendering the
|
|
451
|
+
* tree as a standalone editor.
|
|
452
|
+
*/
|
|
453
|
+
deletable?: boolean | undefined;
|
|
454
|
+
/** The line above the rows; the form's wording when omitted. */
|
|
455
|
+
note?: string | undefined;
|
|
456
|
+
/** The builder's words; English when absent. */
|
|
457
|
+
words?: BuilderTextOptions | undefined;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The component tree as a selectable list — every component the form has, including the ones
|
|
461
|
+
* the canvas is not painting, with a marker on those. It is the index of the form, and the way
|
|
462
|
+
* to reach a component gated behind a rule.
|
|
463
|
+
*/
|
|
464
|
+
export declare function treeTabHtml(view: NestedTreeNodeView, options: TreeTabOptions): string;
|
|
465
|
+
/**
|
|
466
|
+
* What the ID's "?" says. An id names its component across the whole tree, so no two share
|
|
467
|
+
* one, whatever containers they sit in. On the form's own tree it also says how the id relates
|
|
468
|
+
* to where the component's data is stored, which the Saved as line shows when the two differ
|
|
469
|
+
*. A PDF layout's components store nothing: they show the form's answers.
|
|
470
|
+
*/
|
|
471
|
+
export declare function idHelpText(node: ComponentNode, place: {
|
|
472
|
+
isRoot: boolean;
|
|
473
|
+
formTree: boolean;
|
|
474
|
+
}, words?: BuilderTextOptions): string;
|
|
475
|
+
/**
|
|
476
|
+
* What the Saved as line's "?" says: what the path is, how it is made, and, inside a
|
|
477
|
+
* repeating section, what its `[]` stands for.
|
|
478
|
+
*/
|
|
479
|
+
export declare function savedAsHelpText(node: ComponentNode, path: string, words?: BuilderTextOptions): string;
|
|
480
|
+
/** The DOM id of the message a problem at `target` draws under its box (`"id"`, a property path, `rules:<key>`). */
|
|
481
|
+
export declare function problemDomId(target: string): string;
|
|
482
|
+
/**
|
|
483
|
+
* An advisory note as the panel draws it (`BuilderNote`): under the box it is about,
|
|
484
|
+
* or above the sections. Never a problem: it is not listed by the footer and holds nothing back.
|
|
485
|
+
*/
|
|
486
|
+
export interface InspectorNoteView {
|
|
487
|
+
message: string;
|
|
488
|
+
severity?: "error" | "warning" | undefined;
|
|
489
|
+
}
|
|
490
|
+
/** One language's standing for the component the pointer line speaks of. */
|
|
491
|
+
export interface TranslationCoverageEntry {
|
|
492
|
+
/** The language code. */
|
|
493
|
+
code: string;
|
|
494
|
+
/** The language under the name the form gave it. */
|
|
495
|
+
label: string;
|
|
496
|
+
/** How many of the component's texts have no current translation in it (stale counts as missing). */
|
|
497
|
+
missing: number;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* How well the texts `pick` chooses are translated, one entry per language besides the default
|
|
501
|
+
* (the pointer line). The counts are the Languages workspace's own:
|
|
502
|
+
* the rows come from its model (`languagesTexts` over the committed form, the map and the page's
|
|
503
|
+
* catalog) and each language's figure from `languageCoverage`, so the pointer and the Texts
|
|
504
|
+
* grid cannot disagree: a text the page's catalog words counts as translated, a stale one as
|
|
505
|
+
* missing. Empty when the form declares one language or `pick` chooses no text.
|
|
506
|
+
*/
|
|
507
|
+
export declare function translationCoverageOf(controller: CoverageSource, pick: (text: TranslatableText) => boolean): TranslationCoverageEntry[];
|
|
508
|
+
/** What {@link translationCoverageOf} reads from the controller. */
|
|
509
|
+
type CoverageSource = Pick<BuilderController, "localization" | "translatableTexts" | "translations" | "translationCatalog">;
|
|
510
|
+
/**
|
|
511
|
+
* {@link translationCoverageOf} for several picks over one read of the form: the Header & footer
|
|
512
|
+
* panel asks once per part, and the texts are read once for all of them (and not at all for a
|
|
513
|
+
* form of one language). The rules are the Languages model's own leaf (`languages-cells.ts`:
|
|
514
|
+
* the same texts listed, the same cell status), so the pointer and the Texts grid cannot
|
|
515
|
+
* disagree, and the model's chunk stays lazy.
|
|
516
|
+
*/
|
|
517
|
+
export declare function translationCoverageReader(controller: CoverageSource): (pick: (text: TranslatableText) => boolean) => TranslationCoverageEntry[];
|
|
518
|
+
/**
|
|
519
|
+
* The one line under a component's texts when the form declares more than one language
|
|
520
|
+
*: the languages that have everything, then each that lacks some with how
|
|
521
|
+
* many, and (`offerOpen`, when the shell has the workspace) the way to the Languages workspace
|
|
522
|
+
* filtered to this component (or, with `target`, to a header or footer part: the button names it
|
|
523
|
+
* for the Header & footer panel's goto). Nothing is drawn for a single-language form, or when
|
|
524
|
+
* the component shows no text (`coverage` empty).
|
|
525
|
+
*/
|
|
526
|
+
export declare function translationPointerHtml(coverage: readonly TranslationCoverageEntry[], words?: BuilderTextOptions, offerOpen?: boolean, target?: {
|
|
527
|
+
id: string;
|
|
528
|
+
label: string;
|
|
529
|
+
}): string;
|
|
530
|
+
/**
|
|
531
|
+
* The rows of one inspector section as the properties panel draws them, for a surface that
|
|
532
|
+
* shows a component's fields outside the inspector (the Print workspace's "On paper" card): the
|
|
533
|
+
* same markup, `data-prop` attributes and problem lines. `problems` is `BuilderController.problemsOf`
|
|
534
|
+
* for the component, by box. The caller listens for the boxes' `input`/`change` events and writes
|
|
535
|
+
* through the controller.
|
|
536
|
+
*/
|
|
537
|
+
export declare function inspectorSectionRowsHtml(section: Pick<InspectorSection, "fields">, options?: {
|
|
538
|
+
problems?: ReadonlyArray<{
|
|
539
|
+
target: string;
|
|
540
|
+
message: string;
|
|
541
|
+
}>;
|
|
542
|
+
words?: BuilderTextOptions | undefined;
|
|
543
|
+
openHelp?: ReadonlySet<string>;
|
|
544
|
+
}): string;
|
|
545
|
+
/**
|
|
546
|
+
* What a `formula` control draws: the rule view of its value and the options its feedback is
|
|
547
|
+
* drawn with. The panel builds one per paint and refreshes the feedback in place as the author
|
|
548
|
+
* types, exactly as it does for a rule on the Rules tab (the box and the editor are left alone).
|
|
549
|
+
*/
|
|
550
|
+
export interface FormulaFieldView {
|
|
551
|
+
/** The rule key the box is addressed by (`data-rule`); the panel resolves it back to the field. */
|
|
552
|
+
key: string;
|
|
553
|
+
view: RuleView;
|
|
554
|
+
options: RuleHtmlOptions;
|
|
555
|
+
}
|
|
556
|
+
/** The ready-made value an envelope is, if it is one: the same storage and reference. */
|
|
557
|
+
export declare function assetChoiceOf(value: unknown, choices: readonly InspectorAssetChoice[]): InspectorAssetChoice | undefined;
|
|
558
|
+
/** The select's "upload" and "none" entries; a value that is neither a choice nor absent shows as its own, disabled entry. */
|
|
559
|
+
export declare const FILE_CHOICE_NONE = "";
|
|
560
|
+
export declare const FILE_CHOICE_UPLOAD = "__upload";
|
|
561
|
+
export declare const FILE_CHOICE_CUSTOM = "__custom";
|
|
562
|
+
/** One piece of a rule's "Reads as" line: a field chip, a value pill, or plain words. */
|
|
563
|
+
export interface RuleReadsToken {
|
|
564
|
+
kind: "field" | "value" | "word";
|
|
565
|
+
text: string;
|
|
566
|
+
}
|
|
567
|
+
/** What the tab draws for one rule beyond its editor state: the panel's view of it. */
|
|
568
|
+
export interface RuleView extends RuleEditorState {
|
|
569
|
+
/** Where the rule may run and how the control draws; absent: as its descriptor says. */
|
|
570
|
+
runControl?: RuleRunControl | undefined;
|
|
571
|
+
/** Advice under the box that holds nothing back: an unknown field with its nearest name. */
|
|
572
|
+
warnings?: readonly string[] | undefined;
|
|
573
|
+
/** The rule in words, labels and option names in place of ids and values. */
|
|
574
|
+
reads?: readonly RuleReadsToken[] | undefined;
|
|
575
|
+
/** Formulas to try when the box is empty, as the editor would spell them. */
|
|
576
|
+
examples?: readonly string[] | undefined;
|
|
577
|
+
}
|
|
578
|
+
/** What one rule's markup is drawn with beyond its state (see {@link ruleFeedbackHtml}). */
|
|
579
|
+
export interface RuleHtmlOptions {
|
|
580
|
+
/** The problem under the box, and in the summary above Save when it is the author's own. */
|
|
581
|
+
error: string | undefined;
|
|
582
|
+
notes?: readonly InspectorNoteView[] | undefined;
|
|
583
|
+
openInLogic: boolean;
|
|
584
|
+
editorFailed: boolean;
|
|
585
|
+
words: BuilderTextOptions | undefined;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* How a rule's box describes itself: invalid while its text does not parse, and described by
|
|
589
|
+
* its problem line, else by the notes under it (the ids `ruleFeedbackHtml` draws). A panel
|
|
590
|
+
* refreshing a box in place while the author types sets these the way a paint would.
|
|
591
|
+
*/
|
|
592
|
+
export declare function ruleBoxDescription(key: string, options: Pick<RuleHtmlOptions, "error" | "notes">): {
|
|
593
|
+
invalid: boolean;
|
|
594
|
+
describedBy: string | undefined;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Everything a rule draws under its box, as one block the panel can refresh in place while
|
|
598
|
+
* the author types (the box itself, and the editor over it, are left alone): the editor's
|
|
599
|
+
* failed-load line, the "Try one" chips over an empty box, the problem line, the unknown-field
|
|
600
|
+
* warnings, the secret note, "Reads as", the Open in Logic link, and the tree owner's notes.
|
|
601
|
+
* Empty but for the notes when the rule is off.
|
|
602
|
+
*/
|
|
603
|
+
export declare function ruleFeedbackHtml(state: RuleView, options: RuleHtmlOptions): string;
|
|
604
|
+
/** The textarea a rule's formula is typed in (the editor mounts over it); also the box of a `formula` control. */
|
|
605
|
+
export declare function ruleFormulaBoxHtml(state: RuleView, options: Pick<RuleHtmlOptions, "error" | "notes" | "words">, label: string): string;
|
|
606
|
+
export interface RulesTabOptions {
|
|
607
|
+
/** Editor state per rule, in the order {@link RULE_DESCRIPTORS} declares, or a builder mode's descriptors do. */
|
|
608
|
+
states: RuleView[];
|
|
609
|
+
/** Rule sections the author has expanded, so they survive the panel's re-render. */
|
|
610
|
+
openRules: ReadonlySet<string>;
|
|
611
|
+
/** Per-rule parse problems, keyed by rule: under the box and in the summary above Save. */
|
|
612
|
+
errors: ReadonlyMap<string, string>;
|
|
613
|
+
/** The tree owner's advisory notes about a rule (a `BuilderNote` targeting `rules:<key>`), keyed by rule. */
|
|
614
|
+
notes?: ReadonlyMap<string, readonly InspectorNoteView[]> | undefined;
|
|
615
|
+
/**
|
|
616
|
+
* The line at the top of the tab, from a builder mode whose conditions read something other
|
|
617
|
+
* than the form's rules do (`BuilderModeRules.note`). Absent: the form's own line.
|
|
618
|
+
*/
|
|
619
|
+
note?: string | undefined;
|
|
620
|
+
/** Whether each rule offers "Open in Logic": the form's own rules, which the Logic workspace lists. */
|
|
621
|
+
openInLogic?: boolean | undefined;
|
|
622
|
+
/** The formula editor's chunk failed to load: the plain box stays, with a Retry. */
|
|
623
|
+
editorFailed?: boolean | undefined;
|
|
624
|
+
/** The builder's locale and catalog for the tab's words. */
|
|
625
|
+
words?: BuilderTextOptions | undefined;
|
|
626
|
+
/** A step's Go to rules, listed in the rules' markup in place of descriptors, each with Open in Logic. */
|
|
627
|
+
ways?: BuilderModeWays | undefined;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* The Logic tab: every rule the engine evaluates, each off or written as a formula. See
|
|
631
|
+
* `property-editor/rules-model.ts` for what the box holds and what the draft gets.
|
|
632
|
+
*/
|
|
633
|
+
export declare function rulesTabHtml(options: RulesTabOptions): string;
|
|
634
|
+
/** Selectable ids for a rule's field box: every component on the form except the one edited. */
|
|
635
|
+
export declare function ruleFieldOptions(view: NestedTreeNodeView, excludeId: string | undefined): InspectorChoice[];
|
|
636
|
+
export type InspectorTab = "properties" | "style" | "rules" | "tree" | "json";
|
|
637
|
+
/**
|
|
638
|
+
* The sections the inspector's Style tab holds: how a component looks —
|
|
639
|
+
* its presentation and its PDF appearance — apart from what it is, says and stores, which the
|
|
640
|
+
* Field tab keeps. Named options only; no class picker is added. The "On paper" group is not
|
|
641
|
+
* here: whether and how a component prints is a choice about the component, so it closes the
|
|
642
|
+
* Field tab, after everything about the component on screen.
|
|
643
|
+
*/
|
|
644
|
+
export declare const STYLE_SECTION_IDS: ReadonlySet<string>;
|
|
645
|
+
/** Whether a component's model has anything for the Style tab. */
|
|
646
|
+
export declare function hasStyleSections(model: InspectorModel | undefined): boolean;
|
|
647
|
+
/** What the form-level Identity section renders from; see {@link identitySectionHtml}. */
|
|
648
|
+
export interface IdentityPanelOptions {
|
|
649
|
+
/** The identity being edited — the form root draft's view of the definition's id and versions. */
|
|
650
|
+
value: FormIdentity;
|
|
651
|
+
/** What is wrong with a box, in words, drawn under it (`BuilderController.identityProblems`). */
|
|
652
|
+
problems?: {
|
|
653
|
+
id?: string;
|
|
654
|
+
version?: string;
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* The form-level Identity section: the definition's `id`, `version` and `schemaVersion` —
|
|
659
|
+
* how a submission envelope, a saved draft and the host's storage name this form. Not any
|
|
660
|
+
* component's configuration: the properties panel routes the boxes through
|
|
661
|
+
* `BuilderController.setDraftIdentity`, so Save / Cancel govern them like every other
|
|
662
|
+
* form-root property. A box left blank keeps its current value on Save.
|
|
663
|
+
*/
|
|
664
|
+
export declare function identitySectionHtml(options: IdentityPanelOptions, open: boolean, words?: BuilderTextOptions): string;
|
|
665
|
+
/** The inspector's editable JSON; see {@link PropertiesPanelOptions.jsonEdit}. */
|
|
666
|
+
export interface JsonEditView {
|
|
667
|
+
/** The text the box holds: the draft's JSON, or what the author typed that does not apply yet. */
|
|
668
|
+
text: string;
|
|
669
|
+
/** What the box is, for assistive technology. */
|
|
670
|
+
label: string;
|
|
671
|
+
/** Why the text does not apply, with the line and column when there is one to point at. */
|
|
672
|
+
problem?: {
|
|
673
|
+
message: string;
|
|
674
|
+
line?: number | undefined;
|
|
675
|
+
column?: number | undefined;
|
|
676
|
+
} | undefined;
|
|
677
|
+
/** Whether the component has children, which the JSON leaves to the canvas (a line above the box says so). */
|
|
678
|
+
hasChildren?: boolean;
|
|
679
|
+
}
|
|
680
|
+
export interface PropertiesPanelOptions {
|
|
681
|
+
tab: InspectorTab;
|
|
682
|
+
/**
|
|
683
|
+
* The coverage the pointer line under the component's texts speaks of:
|
|
684
|
+
* one entry per language besides the default. Absent or empty draws no line, which is what a
|
|
685
|
+
* single-language form, a component with no text, and the `translations` feature
|
|
686
|
+
* turned off all look like.
|
|
687
|
+
*/
|
|
688
|
+
translationCoverage?: readonly TranslationCoverageEntry[];
|
|
689
|
+
/** Whether the pointer line offers Open in Languages (the shell has the workspace); default true. */
|
|
690
|
+
openInLanguages?: boolean;
|
|
691
|
+
/**
|
|
692
|
+
* Whether the panel offers the Style tab: the Field tab ("properties") then leaves out the
|
|
693
|
+
* {@link STYLE_SECTION_IDS} sections, which the Style tab shows. Off, the Field tab has them all.
|
|
694
|
+
*/
|
|
695
|
+
splitStyle?: boolean;
|
|
696
|
+
/** The component tree, rendered as the selectable list on the Tree tab. */
|
|
697
|
+
treeView: NestedTreeNodeView;
|
|
698
|
+
/** Component ids the canvas preview is currently hiding. */
|
|
699
|
+
hiddenIds: ReadonlySet<string>;
|
|
700
|
+
/**
|
|
701
|
+
* What holds the component's Save back (the controller's `problemsOf`, plus what the panel
|
|
702
|
+
* itself could not read, such as an expression that does not parse), each drawn under its
|
|
703
|
+
* own box. When given, the three single-problem options below are ignored.
|
|
704
|
+
*/
|
|
705
|
+
problems?: ReadonlyArray<{
|
|
706
|
+
target: string;
|
|
707
|
+
message: string;
|
|
708
|
+
}>;
|
|
709
|
+
/** The pending id's problem alone; see {@link problems}. */
|
|
710
|
+
idError?: string | undefined;
|
|
711
|
+
/** When false the ID is shown read-only (e.g. the form root). */
|
|
712
|
+
idEditable: boolean;
|
|
713
|
+
/**
|
|
714
|
+
* How the tree's owner wants the ID row drawn (`BuilderController.idRow`): hidden,
|
|
715
|
+
* read-only with its own text, or editable where {@link idEditable} allows; its `help`
|
|
716
|
+
* replaces the row's "?" text. Absent: as {@link idEditable} says, with the builder's help.
|
|
717
|
+
*/
|
|
718
|
+
idRow?: BuilderIdRow | undefined;
|
|
719
|
+
isRoot: boolean;
|
|
720
|
+
/** Property paths whose "?" description the author expanded; see {@link labeledRowHtml}. */
|
|
721
|
+
openHelp?: ReadonlySet<string>;
|
|
722
|
+
/** Property sections the author collapsed. Sections not named here render open. */
|
|
723
|
+
collapsedSections?: ReadonlySet<string>;
|
|
724
|
+
/**
|
|
725
|
+
* Property sections the author opened that start folded (`InspectorSection.folded`).
|
|
726
|
+
* A folded section not named here renders folded.
|
|
727
|
+
*/
|
|
728
|
+
openedSections?: ReadonlySet<string>;
|
|
729
|
+
/**
|
|
730
|
+
* The tree owner's advisory notes about the component (`BuilderController.notesOf`):
|
|
731
|
+
* each under the box its `target` names, the rest above the sections. Never blocking.
|
|
732
|
+
*/
|
|
733
|
+
notes?: ReadonlyArray<InspectorNoteView & {
|
|
734
|
+
target?: string | undefined;
|
|
735
|
+
}>;
|
|
736
|
+
/**
|
|
737
|
+
* Lines that only inform about the component (`inspectorHints`: a rule calculates
|
|
738
|
+
* its answer), drawn once above the sections of the Field tab. Never blocking, never counted.
|
|
739
|
+
*/
|
|
740
|
+
hints?: readonly string[];
|
|
741
|
+
/**
|
|
742
|
+
* Which adapter draws the component and whose it is (`BuilderController.drawnByLine`), one
|
|
743
|
+
* line of the same kind as the hints, after them. Absent before the canvas has drawn it.
|
|
744
|
+
*/
|
|
745
|
+
drawnBy?: string | undefined;
|
|
746
|
+
/**
|
|
747
|
+
* The binding's classes that apply to the component, for the Style tab (`BuilderController.styleOptions`),
|
|
748
|
+
* and the classes the draft carries now; each option is a toggle of its class, and the options of a
|
|
749
|
+
* group are one choice among them with a way back to none.
|
|
750
|
+
*/
|
|
751
|
+
styleOptions?: {
|
|
752
|
+
choices: ReadonlyArray<{
|
|
753
|
+
name: string;
|
|
754
|
+
label: string;
|
|
755
|
+
description?: string | undefined;
|
|
756
|
+
group?: string | undefined;
|
|
757
|
+
groupLabel?: string | undefined;
|
|
758
|
+
}>;
|
|
759
|
+
active: readonly string[];
|
|
760
|
+
};
|
|
761
|
+
/** The cssClass value's problem alone; see {@link problems}. */
|
|
762
|
+
cssClassError?: string | undefined;
|
|
763
|
+
/** Advisory note about cssClass entries the binding does not declare. */
|
|
764
|
+
cssClassWarning?: string | undefined;
|
|
765
|
+
/** The data key's problem alone; see {@link problems}. */
|
|
766
|
+
dataKeyError?: string | undefined;
|
|
767
|
+
/**
|
|
768
|
+
* Where the selection's answer is stored (`billing.street`, `items[].sku`), shown as a line
|
|
769
|
+
* under its type when it is not simply the id; unset for a component with no place of its own.
|
|
770
|
+
*/
|
|
771
|
+
dataPath?: string | undefined;
|
|
772
|
+
/**
|
|
773
|
+
* Whether the tree is the form's own rather than another mode's, such as a PDF layout
|
|
774
|
+
*. Only the form's components store answers, so only they get the ID help's
|
|
775
|
+
* sentence about where. Default true.
|
|
776
|
+
*/
|
|
777
|
+
formTree?: boolean;
|
|
778
|
+
/** Text of `expression` controls as typed, by property path; see {@link expressionFieldHtml}. */
|
|
779
|
+
expressionDrafts?: ReadonlyMap<string, string>;
|
|
780
|
+
/** Parse failures of `expression` controls, by property path, shown under the box. */
|
|
781
|
+
expressionErrors?: ReadonlyMap<string, string>;
|
|
782
|
+
/** Why a `file` control refused the last pick, by property path; see {@link fileFieldHtml}. */
|
|
783
|
+
fileErrors?: ReadonlyMap<string, string>;
|
|
784
|
+
/** The formula boxes of `formula` controls, by property path; see {@link FormulaFieldView}. */
|
|
785
|
+
formulas?: ReadonlyMap<string, FormulaFieldView>;
|
|
786
|
+
/** The builder's locale and catalog for the panel's own words; the Rules tab's `words` when absent. */
|
|
787
|
+
words?: BuilderTextOptions | undefined;
|
|
788
|
+
/** Everything the Rules tab needs. Omit and the tab renders as unavailable. */
|
|
789
|
+
rules?: RulesTabOptions;
|
|
790
|
+
/**
|
|
791
|
+
* The JSON view as a box to edit: the text as the author has it, and why it does
|
|
792
|
+
* not apply. Omit and the JSON tab shows the node read-only, children and all.
|
|
793
|
+
*/
|
|
794
|
+
jsonEdit?: JsonEditView;
|
|
795
|
+
/** Renders the form-level Identity section (form id, version, schema version); {@link isRoot} only. */
|
|
796
|
+
identity?: IdentityPanelOptions;
|
|
797
|
+
/**
|
|
798
|
+
* Settings other builder modes add to the form's own, a section per mode after
|
|
799
|
+
* the form's sections; {@link isRoot} only. See {@link modeSettingsSectionHtml}.
|
|
800
|
+
*/
|
|
801
|
+
modeSettings?: ReadonlyArray<ModeSettingsGroupView>;
|
|
802
|
+
/** The form's formula-error policy (Formulas section); {@link isRoot} on the form's own panel only. */
|
|
803
|
+
formulaSettings?: FormulaSettingsView;
|
|
804
|
+
/** The author's switch for assistants in the browser (Browser assistants section); {@link isRoot} on the form's own panel only, whatever the builder's features. */
|
|
805
|
+
assistantsSettings?: AssistantsSettingsView;
|
|
806
|
+
/**
|
|
807
|
+
* Which optional parts of the inspector exist: a part the builder's `features`
|
|
808
|
+
* list leaves out is absent here, not merely dimmed. Every key defaults to true. `formulas` is the
|
|
809
|
+
* Form panel's Formulas section, `print` the component's "On paper" group, `pdfAction` the Button's
|
|
810
|
+
* "Download as PDF" action and `webauthn` its passkey signature choice. A stored value the choice list no longer offers stays in the select as the
|
|
811
|
+
* unrecognized value it is, so a round trip through the box rewrites nothing.
|
|
812
|
+
*/
|
|
813
|
+
parts?: Partial<Record<InspectorPart, boolean>>;
|
|
814
|
+
/**
|
|
815
|
+
* Property paths the host manages (`managed-settings`): the box is not
|
|
816
|
+
* drawn; its label and a one-line "managed by the site" note stand in its place.
|
|
817
|
+
*/
|
|
818
|
+
managedSettings?: readonly string[];
|
|
819
|
+
}
|
|
820
|
+
/** The inspector parts {@link PropertiesPanelOptions.parts} can switch off. */
|
|
821
|
+
export type InspectorPart = "formulas" | "print" | "pdfAction" | "webauthn";
|
|
822
|
+
/** One mode's rows in the Form panel, as {@link modeSettingsSectionHtml} draws them. */
|
|
823
|
+
export interface ModeSettingsGroupView {
|
|
824
|
+
/** The mode's id: the section's and the open button's key. */
|
|
825
|
+
mode: string;
|
|
826
|
+
title: string;
|
|
827
|
+
rows: ReadonlyArray<{
|
|
828
|
+
id: string;
|
|
829
|
+
label: string;
|
|
830
|
+
description?: string | undefined;
|
|
831
|
+
choices: readonly InspectorChoice[];
|
|
832
|
+
/** The value as the author sees it: drafted, else committed. */
|
|
833
|
+
value: string;
|
|
834
|
+
note?: string | undefined;
|
|
835
|
+
open?: {
|
|
836
|
+
label: string;
|
|
837
|
+
document?: string | undefined;
|
|
838
|
+
} | undefined;
|
|
839
|
+
}>;
|
|
840
|
+
/** Rows that only say something, after the choices: a label, its words, the open button. */
|
|
841
|
+
readOnlyRows?: ReadonlyArray<{
|
|
842
|
+
id: string;
|
|
843
|
+
label: string;
|
|
844
|
+
note: string;
|
|
845
|
+
open?: {
|
|
846
|
+
label: string;
|
|
847
|
+
document?: string | undefined;
|
|
848
|
+
} | undefined;
|
|
849
|
+
}>;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* A mode's settings in the Form panel: a section under the mode's heading, a
|
|
853
|
+
* select per row (`data-root-setting` names the setting, drafted on the form root), its
|
|
854
|
+
* description and note — both read with the select (`aria-describedby`), since what is at stake
|
|
855
|
+
* belongs with the choice — and a button that opens the mode (`data-root-setting-open`). A
|
|
856
|
+
* read-only row is its label over its words (`data-root-setting-readonly`), with no
|
|
857
|
+
* control to draft. Nothing without rows.
|
|
858
|
+
*/
|
|
859
|
+
export declare function modeSettingsSectionHtml(group: ModeSettingsGroupView, open: boolean, words?: BuilderTextOptions): string;
|
|
860
|
+
export declare function propertiesPanelHtml(model: InspectorModel | undefined, selectedNode: ComponentNode | undefined, options: PropertiesPanelOptions): string;
|
|
861
|
+
/**
|
|
862
|
+
* The Style tab's options: the classes the binding declares for this component, by name, as
|
|
863
|
+
* toggles, never a picker of raw class names. Classes that share a group exclude each other: they
|
|
864
|
+
* are drawn as one set of radio buttons under a legend, with a "Default" choice first that clears
|
|
865
|
+
* the set (a native radio group, so the arrow keys move between the choices and the group is one
|
|
866
|
+
* Tab stop). A group with a single class offered has nothing to exclude and is a toggle.
|
|
867
|
+
* A shared panel look is worded through the builder's text tables (so a host's translation of the
|
|
868
|
+
* tab reaches it) while the binding declares it as the shared one; a binding that relabels a look,
|
|
869
|
+
* or declares a class of its own, is worded as it declares it. The radios check the last active
|
|
870
|
+
* class of a group, the one the form draws when a hand-written list holds two. Nothing when the
|
|
871
|
+
* binding declares none that applies.
|
|
872
|
+
*/
|
|
873
|
+
export declare function styleOptionsHtml(view: PropertiesPanelOptions["styleOptions"], words?: BuilderTextOptions): string;
|
|
874
|
+
export interface InspectorFooterOptions {
|
|
875
|
+
/** No selection at all — the footer is not rendered. */
|
|
876
|
+
hasSelection: boolean;
|
|
877
|
+
/** Whether the draft differs from what is committed. Drives Save / Cancel. */
|
|
878
|
+
dirty: boolean;
|
|
879
|
+
/** The form root cannot be deleted, so it gets no delete control. */
|
|
880
|
+
deletable: boolean;
|
|
881
|
+
/**
|
|
882
|
+
* What holds the Save back, in the order the panel shows them, each with the name of the
|
|
883
|
+
* box it is under. Save stays usable: pressing it with a problem leads to the first one
|
|
884
|
+
* instead of saving, and the line above it leads to each.
|
|
885
|
+
*/
|
|
886
|
+
problems?: ReadonlyArray<{
|
|
887
|
+
target: string;
|
|
888
|
+
label: string;
|
|
889
|
+
message: string;
|
|
890
|
+
}>;
|
|
891
|
+
/** Whether the list the count opens is open (only with more than one problem). */
|
|
892
|
+
problemsOpen?: boolean;
|
|
893
|
+
/**
|
|
894
|
+
* Whether Apply is held back (`applyBlockers`: a pattern that is no regular
|
|
895
|
+
* expression, a minimum above its maximum). The one exception to the rule below: Apply is
|
|
896
|
+
* disabled while it holds, and the message under the box and the line above say why.
|
|
897
|
+
*/
|
|
898
|
+
applyBlocked?: boolean;
|
|
899
|
+
/** The builder's words (locale and catalog); English when absent. */
|
|
900
|
+
words?: BuilderTextOptions | undefined;
|
|
901
|
+
}
|
|
902
|
+
/** "1 problem", "3 problems". */
|
|
903
|
+
export declare function problemCountText(count: number, words?: BuilderTextOptions): string;
|
|
904
|
+
/** A problem in words: `CSS classes: "2cols" is not…`, or the message alone when it names its box already (`ID "city" already exists.`). */
|
|
905
|
+
export declare function problemText(problem: {
|
|
906
|
+
label: string;
|
|
907
|
+
message: string;
|
|
908
|
+
}, words?: BuilderTextOptions): string;
|
|
909
|
+
/**
|
|
910
|
+
* Save / Cancel / Delete. The panel edits into a draft rather than writing through on every
|
|
911
|
+
* keystroke, so these are how an edit actually lands (or is thrown away) — which also makes a
|
|
912
|
+
* session of typing one entry in the undo history instead of one per character. Save is never
|
|
913
|
+
* disabled by a problem: a disabled button says nothing and cannot be reached, so Save leads
|
|
914
|
+
* to the problem instead, and the line above it says what is wrong and leads to each one.
|
|
915
|
+
*/
|
|
916
|
+
export declare function inspectorFooterHtml(options: InspectorFooterOptions): string;
|
|
917
|
+
export {};
|