@blokkli/editor 2.0.0-alpha.62 → 2.0.0-alpha.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/global/types/blockOptions.d.ts +32 -27
- package/dist/global/types/colorOptions.d.ts +16 -0
- package/dist/module.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +275 -18
- package/dist/modules/agent/index.d.mts +1 -1
- package/dist/modules/agent/index.mjs +2 -1
- package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +1 -1
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue +14 -5
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue +2 -2
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue +2 -2
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue +2 -2
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +1 -1
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +1 -1
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +1 -1
- package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +1 -1
- package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue +14 -1
- package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +31 -13
- package/dist/modules/agent/runtime/app/features/agent/index.vue +1 -1
- package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.d.ts +11 -0
- package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.js +47 -0
- package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +1 -1
- package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +28 -26
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +16 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.d.vue.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +59 -16
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +15 -0
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.d.ts +85 -15
- package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +136 -28
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +2 -2
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +6 -2
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +3 -3
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +5 -5
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/schemas.d.ts +17 -7
- package/dist/modules/agent/runtime/app/tools/schemas.js +29 -12
- package/dist/modules/agent/runtime/app/tools/search_text/index.js +1 -1
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.d.vue.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue +54 -30
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +18 -3
- package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.js +10 -15
- package/dist/modules/agent/runtime/server/default-system-prompts/architecture.js +1 -1
- package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.js +1 -0
- package/dist/modules/agent/runtime/shared/toolParams.d.ts +3 -3
- package/dist/modules/agent/runtime/shared/types.d.ts +3 -3
- package/dist/modules/charts/index.d.mts +14 -1
- package/dist/modules/charts/index.mjs +37 -2
- package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +1 -1
- package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +12 -5
- package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +7 -16
- package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +19 -9
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +7 -77
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.d.ts +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +16 -8
- package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +23 -7
- package/dist/modules/charts/runtime/features/charts/Editor/index.vue +5 -6
- package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +1 -1
- package/dist/modules/charts/runtime/helpers/index.d.ts +2 -1
- package/dist/modules/charts/runtime/helpers/index.js +4 -2
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationResult.graphql +3 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/runtime/adapter/index.js +5 -1
- package/dist/modules/iframes/index.d.mts +1 -1
- package/dist/modules/index.d.mts +1 -1
- package/dist/modules/readability/index.d.mts +1 -1
- package/dist/modules/readability/index.mjs +2 -1
- package/dist/modules/table-of-contents/index.d.mts +1 -1
- package/dist/runtime/components/Blocks/NotImplemented/index.vue +1 -1
- package/dist/runtime/composables/useBlokkliRuntimeConfig.d.ts +50 -0
- package/dist/runtime/composables/useBlokkliRuntimeConfig.js +34 -0
- package/dist/runtime/editor/adapter/index.d.ts +2 -1
- package/dist/runtime/editor/components/Actions/Title/index.vue +1 -1
- package/dist/runtime/editor/components/Actions/index.vue +1 -1
- package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +2 -2
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/Avatar/index.vue +1 -1
- package/dist/runtime/editor/components/BlockPreviewItem/index.vue +1 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +1 -1
- package/dist/runtime/editor/components/BlockProxy/index.vue +1 -1
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +1 -1
- package/dist/runtime/editor/components/BundleSelector/index.vue +1 -1
- package/dist/runtime/editor/components/ColorDropdown/index.d.vue.ts +26 -0
- package/dist/runtime/editor/components/ColorDropdown/index.vue +116 -0
- package/dist/runtime/editor/components/ColorDropdown/index.vue.d.ts +26 -0
- package/dist/runtime/editor/components/Dialog/index.vue +1 -1
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +14 -20
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +97 -52
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +14 -20
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +6 -6
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +30 -21
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +6 -6
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +19 -9
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +19 -10
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +19 -9
- package/dist/runtime/editor/components/DiffApproval/index.d.vue.ts +14 -6
- package/dist/runtime/editor/components/DiffApproval/index.vue +62 -35
- package/dist/runtime/editor/components/DiffApproval/index.vue.d.ts +14 -6
- package/dist/runtime/editor/components/DiffApproval/types.d.ts +32 -0
- package/dist/runtime/editor/components/DiffApproval/types.js +20 -0
- package/dist/runtime/editor/components/DiffViewer/State.vue +1 -1
- package/dist/runtime/editor/components/DraggableList.vue +1 -1
- package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +6 -4
- package/dist/runtime/editor/components/Dropdown/index.vue +91 -31
- package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +6 -4
- package/dist/runtime/editor/components/DropdownItem/index.vue +1 -1
- package/dist/runtime/editor/components/EditIndicator.vue +1 -1
- package/dist/runtime/editor/components/EditProvider.vue +2 -2
- package/dist/runtime/editor/components/FileDropHandler/index.vue +1 -1
- package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/RadioTabs/index.vue +1 -1
- package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Form/Search/index.vue +2 -2
- package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/FormOverlay/index.vue +1 -1
- package/dist/runtime/editor/components/Icon/index.vue +1 -1
- package/dist/runtime/editor/components/Indicators/index.vue +31 -100
- package/dist/runtime/editor/components/Konami/Game/index.vue +1 -1
- package/dist/runtime/editor/components/Messages/index.vue +1 -1
- package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +3 -2
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +5 -4
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +3 -2
- package/dist/runtime/editor/components/Overlay/index.vue +1 -1
- package/dist/runtime/editor/components/Pagination/index.vue +1 -1
- package/dist/runtime/editor/components/Panel/Section/index.vue +1 -1
- package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/PluginConfigForm/index.vue +1 -1
- package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +1 -1
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +1 -1
- package/dist/runtime/editor/components/Popup/index.vue +1 -1
- package/dist/runtime/editor/components/PopupHost/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/PopupHost/index.vue +12 -0
- package/dist/runtime/editor/components/PopupHost/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/PreviewProvider.vue +3 -2
- package/dist/runtime/editor/components/RelativeTime/index.vue +7 -13
- package/dist/runtime/editor/components/Resizable/index.vue +1 -1
- package/dist/runtime/editor/components/RichText/Editor/index.vue +1 -1
- package/dist/runtime/editor/components/ScaleToFit/index.vue +1 -1
- package/dist/runtime/editor/components/SearchOverlay/index.vue +1 -1
- package/dist/runtime/editor/components/SidebarFloater/index.vue +1 -1
- package/dist/runtime/editor/components/StatusIcon/index.vue +1 -1
- package/dist/runtime/editor/components/StatusIndicator/index.vue +1 -1
- package/dist/runtime/editor/components/SystemRequirements/index.vue +1 -1
- package/dist/runtime/editor/components/Tabs/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Tabs/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +2 -1
- package/dist/runtime/editor/components/Toolbar/index.vue +1 -1
- package/dist/runtime/editor/components/Transition/Collapse/index.vue +1 -1
- package/dist/runtime/editor/components/Transition/List/index.vue +1 -1
- package/dist/runtime/editor/components/index.d.ts +2 -0
- package/dist/runtime/editor/components/index.js +2 -0
- package/dist/runtime/editor/composables/defineViewOption.js +5 -1
- package/dist/runtime/editor/composables/useStickyToolbar.js +1 -4
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/features/add-list/Help/index.vue +1 -1
- package/dist/runtime/editor/features/add-list/index.vue +1 -1
- package/dist/runtime/editor/features/analyze/Main.vue +15 -2
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +4 -1
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +25 -16
- package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.d.ts +10 -0
- package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.js +39 -0
- package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.d.ts +5 -1
- package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.js +5 -0
- package/dist/runtime/editor/features/analyze/index.vue +1 -2
- package/dist/runtime/editor/features/anchors/Overlay/index.vue +11 -5
- package/dist/runtime/editor/features/anchors/index.vue +2 -1
- package/dist/runtime/editor/features/artboard/Overview/index.vue +1 -1
- package/dist/runtime/editor/features/artboard/Renderer.vue +1 -1
- package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +1 -1
- package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/block-transfer/index.vue +1 -1
- package/dist/runtime/editor/features/breadcrumbs/index.vue +1 -1
- package/dist/runtime/editor/features/changelog/changelog.json +17 -1
- package/dist/runtime/editor/features/clipboard/DropElement/index.vue +1 -1
- package/dist/runtime/editor/features/comments/AddForm/index.vue +1 -1
- package/dist/runtime/editor/features/comments/Comment/Meta/index.vue +1 -1
- package/dist/runtime/editor/features/comments/Comment/index.vue +1 -1
- package/dist/runtime/editor/features/comments/Thread/index.vue +1 -1
- package/dist/runtime/editor/features/complex-options/index.vue +1 -0
- package/dist/runtime/editor/features/debug/Main.vue +1 -1
- package/dist/runtime/editor/features/dev-mode/index.vue +1 -1
- package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +1 -1
- package/dist/runtime/editor/features/dragging-overlay/index.vue +1 -1
- package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +1 -1
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +1 -1
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.d.vue.ts +1 -5
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue.d.ts +1 -5
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +1 -1
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +1 -1
- package/dist/runtime/editor/features/editable-mask/index.vue +1 -1
- package/dist/runtime/editor/features/entity-title/index.vue +17 -7
- package/dist/runtime/editor/features/help/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/help/Shortcuts/index.vue +1 -1
- package/dist/runtime/editor/features/history/List/index.vue +1 -1
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/library/index.vue +1 -0
- package/dist/runtime/editor/features/media-library/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/Item.vue +5 -12
- package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +5 -4
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +8 -5
- package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +5 -4
- package/dist/runtime/editor/features/options/Form/Text/index.d.vue.ts +4 -0
- package/dist/runtime/editor/features/options/Form/Text/index.vue +11 -3
- package/dist/runtime/editor/features/options/Form/Text/index.vue.d.ts +4 -0
- package/dist/runtime/editor/features/options/index.vue +1 -1
- package/dist/runtime/editor/features/publish/Dialog/Item.vue +4 -7
- package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +1 -1
- package/dist/runtime/editor/features/publish/Dialog/Violations.d.vue.ts +12 -0
- package/dist/runtime/editor/features/publish/Dialog/Violations.vue +117 -0
- package/dist/runtime/editor/features/publish/Dialog/Violations.vue.d.ts +12 -0
- package/dist/runtime/editor/features/publish/Dialog/index.vue +61 -24
- package/dist/runtime/editor/features/publish/index.vue +2 -4
- package/dist/runtime/editor/features/publish/types.d.ts +0 -4
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +1 -0
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +1 -1
- package/dist/runtime/editor/features/search/index.vue +1 -1
- package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +1 -1
- package/dist/runtime/editor/features/settings/index.vue +1 -1
- package/dist/runtime/editor/features/structure/List/Item/index.vue +1 -1
- package/dist/runtime/editor/features/structure/index.vue +1 -1
- package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.vue +1 -0
- package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +1 -1
- package/dist/runtime/editor/features/theme/index.vue +1 -1
- package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +1 -1
- package/dist/runtime/editor/features/tour/Overlay/index.vue +1 -1
- package/dist/runtime/editor/features/transform/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue +1 -1
- package/dist/runtime/editor/features/workspace/index.vue +1 -1
- package/dist/runtime/editor/helpers/color/index.d.ts +7 -0
- package/dist/runtime/editor/helpers/color/index.js +14 -0
- package/dist/runtime/editor/helpers/diff/index.d.ts +98 -0
- package/dist/runtime/editor/helpers/diff/index.js +262 -0
- package/dist/runtime/editor/helpers/injections.d.ts +11 -0
- package/dist/runtime/editor/helpers/injections.js +1 -0
- package/dist/runtime/editor/helpers/options/index.d.ts +2 -0
- package/dist/runtime/editor/helpers/options/index.js +21 -0
- package/dist/runtime/editor/plugins/BlockIndicator/index.d.vue.ts +24 -1
- package/dist/runtime/editor/plugins/BlockIndicator/index.vue +17 -7
- package/dist/runtime/editor/plugins/BlockIndicator/index.vue.d.ts +24 -1
- package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +1 -0
- package/dist/runtime/editor/plugins/ItemAction/index.vue +1 -1
- package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +1 -0
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +2 -2
- package/dist/runtime/editor/plugins/Sidebar/index.vue +1 -1
- package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -2
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +1 -1
- package/dist/runtime/editor/providers/analyze.js +5 -2
- package/dist/runtime/editor/providers/animation.d.ts +2 -0
- package/dist/runtime/editor/providers/config.d.ts +3 -1
- package/dist/runtime/editor/providers/config.js +46 -15
- package/dist/runtime/editor/providers/definition.d.ts +4 -3
- package/dist/runtime/editor/providers/definition.js +10 -2
- package/dist/runtime/editor/providers/plugin.d.ts +1 -0
- package/dist/runtime/editor/providers/state.d.ts +21 -0
- package/dist/runtime/editor/providers/state.js +10 -0
- package/dist/runtime/editor/translations/de.json +9 -4
- package/dist/runtime/editor/translations/fr.json +4 -4
- package/dist/runtime/editor/translations/gsw_CH.json +9 -4
- package/dist/runtime/editor/translations/it.json +4 -4
- package/dist/runtime/editor/types/state.d.ts +7 -0
- package/dist/runtime/editor/types/ui.d.ts +1 -0
- package/dist/runtime/helpers/colors.d.ts +39 -0
- package/dist/runtime/helpers/colors.js +28 -0
- package/dist/runtime/types/colors.d.ts +11 -0
- package/dist/shared/{editor.D28NbXr3.d.mts → editor.BDyiQvbV.d.mts} +434 -406
- package/dist/shared/{editor.Gu7mgJ5Q.mjs → editor.BGemL1Oh.mjs} +146 -146
- package/dist/types.d.mts +1 -1
- package/package.json +74 -82
- package/dist/runtime/editor/features/validations/Overlay/Item.d.vue.ts +0 -7
- package/dist/runtime/editor/features/validations/Overlay/Item.vue +0 -36
- package/dist/runtime/editor/features/validations/Overlay/Item.vue.d.ts +0 -7
- package/dist/runtime/editor/features/validations/Overlay/index.d.vue.ts +0 -7
- package/dist/runtime/editor/features/validations/Overlay/index.vue +0 -115
- package/dist/runtime/editor/features/validations/Overlay/index.vue.d.ts +0 -7
- package/dist/runtime/editor/features/validations/SidebarItem/index.d.vue.ts +0 -10
- package/dist/runtime/editor/features/validations/SidebarItem/index.vue +0 -41
- package/dist/runtime/editor/features/validations/SidebarItem/index.vue.d.ts +0 -10
- package/dist/runtime/editor/features/validations/index.d.vue.ts +0 -3
- package/dist/runtime/editor/features/validations/index.vue +0 -91
- package/dist/runtime/editor/features/validations/index.vue.d.ts +0 -3
- package/dist/runtime/editor/types/config.d.ts +0 -5
- /package/dist/runtime/{editor/types/config.js → types/colors.js} +0 -0
|
@@ -23,7 +23,7 @@ const text = computed(() => {
|
|
|
23
23
|
useBlockRegistration(dom, props.uuid);
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
|
-
<style>/*! tailwindcss v4.
|
|
26
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
27
27
|
.bk.bk-block-not-implemented {
|
|
28
28
|
background-color: rgb(var(--bk-theme-red-light) / 1);
|
|
29
29
|
padding-block: 15px;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ComputedRef } from '#imports';
|
|
2
|
+
type UseBlokkliRuntimeConfig = {
|
|
3
|
+
/**
|
|
4
|
+
* Resolve a canonical color id to its current hex.
|
|
5
|
+
*
|
|
6
|
+
* Reads `app.config.blokkli.colorOptions` first; if the id is missing,
|
|
7
|
+
* disabled (null override on the id itself or its `<base>`), or null
|
|
8
|
+
* /undefined to begin with, cascades through `colorPalette` in order
|
|
9
|
+
* and returns the first that resolves. Falls back to `FALLBACK_HEX`
|
|
10
|
+
* only when every palette entry is also gone.
|
|
11
|
+
*/
|
|
12
|
+
resolveColorHex: (id: string | null | undefined) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Ordered canonical color ids with disabled entries already filtered
|
|
15
|
+
* out — a `<base>: null` family-disable drops `<base>.<mainShade>`,
|
|
16
|
+
* a direct `<id>: null` drops that id. Cycle through this for default
|
|
17
|
+
* color assignment (e.g. dynamic chart series).
|
|
18
|
+
*/
|
|
19
|
+
colorPalette: ComputedRef<string[]>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Runtime-only config surface for userland and integrator components
|
|
23
|
+
* (chart renderers, custom blocks, …) outside the editor.
|
|
24
|
+
*
|
|
25
|
+
* Sources:
|
|
26
|
+
* - `app.config.blokkli.colorOptions` — flat `Record<canonicalId, string | null>`
|
|
27
|
+
* seeded by the module with every canonical id (bare for flat colors,
|
|
28
|
+
* `<base>.<shade>` for ramped colors) at its build-time hex. `null`
|
|
29
|
+
* disables. The bare `<base>` is kept for ramped colors so userland
|
|
30
|
+
* can family-disable with `<base>: null`. This is the user-overridable
|
|
31
|
+
* surface — `updateAppConfig` deep-merges into it.
|
|
32
|
+
* - `#blokkli-build/config` → `colorPalette` — ordered canonical ids
|
|
33
|
+
* (one per declared family — flat ids verbatim, ramped ids as
|
|
34
|
+
* `<base>.<mainShade>`). Build-time static data, NOT in appConfig
|
|
35
|
+
* because it's not userland-overridable. Used as the cascading
|
|
36
|
+
* fallback for unresolved ids.
|
|
37
|
+
*
|
|
38
|
+
* Returns:
|
|
39
|
+
* - `resolveColorHex(id)` — flat lookup. If the requested id is missing
|
|
40
|
+
* or disabled, cascade through the enabled palette in order and return
|
|
41
|
+
* the first one that resolves. If even that yields nothing, return
|
|
42
|
+
* `FALLBACK_HEX`.
|
|
43
|
+
* - `colorPalette` — computed ordered canonical ids with disabled
|
|
44
|
+
* entries already filtered out (a `<base>: null` family-disable drops
|
|
45
|
+
* `<base>.<mainShade>`; a direct `<id>: null` drops that id). Userland
|
|
46
|
+
* can cycle through this directly to assign default colors — no need
|
|
47
|
+
* to second-guess which ids are still live.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useBlokkliRuntimeConfig(): UseBlokkliRuntimeConfig;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { computed, useAppConfig } from "#imports";
|
|
2
|
+
import { colorPalette as canonicalPalette } from "#blokkli-build/config";
|
|
3
|
+
import { FALLBACK_HEX } from "../helpers/colors.js";
|
|
4
|
+
export function useBlokkliRuntimeConfig() {
|
|
5
|
+
const appConfig = useAppConfig();
|
|
6
|
+
const overrides = computed(
|
|
7
|
+
() => appConfig.blokkli?.colorOptions ?? {}
|
|
8
|
+
);
|
|
9
|
+
function lookup(lookupId) {
|
|
10
|
+
const map = overrides.value;
|
|
11
|
+
const dotIndex = lookupId.indexOf(".");
|
|
12
|
+
if (dotIndex !== -1) {
|
|
13
|
+
const baseId = lookupId.slice(0, dotIndex);
|
|
14
|
+
if (map[baseId] === null) return void 0;
|
|
15
|
+
}
|
|
16
|
+
const value = map[lookupId];
|
|
17
|
+
return typeof value === "string" ? value : void 0;
|
|
18
|
+
}
|
|
19
|
+
const colorPalette = computed(
|
|
20
|
+
() => canonicalPalette.filter((id) => lookup(id) !== void 0)
|
|
21
|
+
);
|
|
22
|
+
function resolveColorHex(id) {
|
|
23
|
+
if (id) {
|
|
24
|
+
const direct = lookup(id);
|
|
25
|
+
if (direct !== void 0) return direct;
|
|
26
|
+
}
|
|
27
|
+
for (const fallbackId of colorPalette.value) {
|
|
28
|
+
const hex = lookup(fallbackId);
|
|
29
|
+
if (hex !== void 0) return hex;
|
|
30
|
+
}
|
|
31
|
+
return FALLBACK_HEX;
|
|
32
|
+
}
|
|
33
|
+
return { resolveColorHex, colorPalette };
|
|
34
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { AddNewBlockEvent, AddNewBlocksEvent, MoveBlockEvent, MoveMultipleBlocksEvent } from '../events/index.js';
|
|
3
3
|
import type { PluginConfigInput } from '../types/pluginConfig.js';
|
|
4
|
-
import type { EntityTranslation, MappedState } from '../types/state.js';
|
|
4
|
+
import type { EntityTranslation, MappedState, Validation } from '../types/state.js';
|
|
5
5
|
import type { BlockBundleDefinition, EntityTypeBundleInfo, EntityTypeInfo, FieldConfig } from '../types/definitions.js';
|
|
6
6
|
import type { EditBlockEvent } from '../features/edit/types.js';
|
|
7
7
|
import type { UserPermissions } from '../types/permissions.js';
|
|
@@ -10,6 +10,7 @@ export interface MutationResponseLike<T> {
|
|
|
10
10
|
success: boolean;
|
|
11
11
|
state?: T;
|
|
12
12
|
errors?: string[];
|
|
13
|
+
violations?: Validation[];
|
|
13
14
|
}
|
|
14
15
|
export interface GenericAdapterResponse<T> {
|
|
15
16
|
success: boolean;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
/>
|
|
51
51
|
<div
|
|
52
52
|
v-if="itemBundle?.id === fromLibraryBlockBundle"
|
|
53
|
-
class="_bk_absolute _bk_z-50
|
|
53
|
+
class="_bk_absolute _bk_z-50 _bk_top-[-7px] _bk_right-[-7px] _bk_bg-lime-dark _bk_size-20 _bk_flex _bk_items-center _bk_justify-center _bk_rounded-full _bk_border _bk_border-lime-normal _bk_shadow-lg"
|
|
54
54
|
>
|
|
55
55
|
<Icon name="reusable" class="_bk_size-[12px] _bk_fill-lime-light" />
|
|
56
56
|
</div>
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
};
|
|
112
112
|
</script>
|
|
113
113
|
|
|
114
|
-
<style>/*! tailwindcss v4.
|
|
114
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
115
115
|
.bk.bk-blokkli-item-actions-inner {
|
|
116
116
|
backface-visibility: hidden;
|
|
117
117
|
bottom: var(--bk-root-offset-bottom);
|
|
@@ -25,6 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
25
25
|
onClose?: (() => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
anchorEl: HTMLElement | null;
|
|
28
|
+
buttonLabel: string;
|
|
28
29
|
anchorCoordinates: Coord | null;
|
|
29
30
|
placementY: PlacementVertical;
|
|
30
31
|
placementX: PlacementHorizontal;
|
|
@@ -46,7 +46,7 @@ const props = defineProps({
|
|
|
46
46
|
id: { type: String, required: true },
|
|
47
47
|
title: { type: String, required: true },
|
|
48
48
|
anchorEl: { type: null, required: false, default: null },
|
|
49
|
-
buttonLabel: { type: String, required: false },
|
|
49
|
+
buttonLabel: { type: String, required: false, default: void 0 },
|
|
50
50
|
anchorCoordinates: { type: [Object, null], required: false, default: null },
|
|
51
51
|
placementY: { type: String, required: false, default: "auto" },
|
|
52
52
|
placementX: { type: String, required: false, default: "center" },
|
|
@@ -104,7 +104,7 @@ onBeforeUnmount(() => {
|
|
|
104
104
|
});
|
|
105
105
|
</script>
|
|
106
106
|
|
|
107
|
-
<style>/*! tailwindcss v4.
|
|
107
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
108
108
|
.bk.bk-artboard-tooltip {
|
|
109
109
|
--bk-gap: 15px;
|
|
110
110
|
--bk-caret-size: 10px;
|
|
@@ -25,6 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
25
25
|
onClose?: (() => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
anchorEl: HTMLElement | null;
|
|
28
|
+
buttonLabel: string;
|
|
28
29
|
anchorCoordinates: Coord | null;
|
|
29
30
|
placementY: PlacementVertical;
|
|
30
31
|
placementX: PlacementHorizontal;
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
};
|
|
99
99
|
</script>
|
|
100
100
|
|
|
101
|
-
<style>/*! tailwindcss v4.
|
|
101
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
102
102
|
.bk-avatar-image:before {
|
|
103
103
|
content: '';
|
|
104
104
|
position: absolute;
|
|
@@ -88,7 +88,7 @@ provide(INJECT_PROVIDER_BLOCKS, blocks);
|
|
|
88
88
|
provide(INJECT_FIELD_LIST_TYPE, fieldListType);
|
|
89
89
|
</script>
|
|
90
90
|
|
|
91
|
-
<style>/*! tailwindcss v4.
|
|
91
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
92
92
|
.bk-vars.bk-block-preview-item {
|
|
93
93
|
display: flex;
|
|
94
94
|
height: 100%;
|
|
@@ -32,7 +32,7 @@ function onBackgroundColor(color) {
|
|
|
32
32
|
}
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
|
-
<style>/*! tailwindcss v4.
|
|
35
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
36
36
|
.bk-vars.bk-block-preview-renderer {
|
|
37
37
|
min-height: 200px;
|
|
38
38
|
overflow: hidden;
|
|
@@ -87,7 +87,7 @@ const fieldLayout = computed(() => {
|
|
|
87
87
|
useBlockRegistration(dom, props.uuid);
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
|
-
<style>/*! tailwindcss v4.
|
|
90
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
91
91
|
.bk-vars.bk-block-proxy {
|
|
92
92
|
flex: 1;
|
|
93
93
|
color: rgb(var(--bk-theme-mono-900) / 1);
|
|
@@ -101,7 +101,7 @@ function downloadLogs() {
|
|
|
101
101
|
}
|
|
102
102
|
</script>
|
|
103
103
|
|
|
104
|
-
<style>/*! tailwindcss v4.
|
|
104
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
105
105
|
.bk-fatal-error-overlay {
|
|
106
106
|
position: fixed;
|
|
107
107
|
top: 0px;
|
|
@@ -273,7 +273,7 @@ onMounted(() => {
|
|
|
273
273
|
});
|
|
274
274
|
</script>
|
|
275
275
|
|
|
276
|
-
<style>/*! tailwindcss v4.
|
|
276
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
277
277
|
.bk.bk-bundle-selector {
|
|
278
278
|
--bk-bg: rgb(var(--bk-theme-mono-900) / 1);
|
|
279
279
|
--bk-header-bg: rgb(var(--bk-theme-mono-800) / 1);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
buttonClass?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare var __VLS_9: {
|
|
9
|
+
displayColor: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Dropdown
|
|
3
|
+
position="top-left"
|
|
4
|
+
:button-class="
|
|
5
|
+
buttonClass ?? '_bk_size-40 _bk_flex _bk_items-center _bk_justify-center _bk_group'
|
|
6
|
+
"
|
|
7
|
+
>
|
|
8
|
+
<template #button>
|
|
9
|
+
<slot :display-color>
|
|
10
|
+
<span
|
|
11
|
+
class="_bk_rounded-full _bk_block _bk_size-20 _bk_relative _bk_group-hover:outline-2 _bk_group-hover:outline-mono-100/40 _bk_group-hover:-outline-offset-2 _bk_group-hover:before:opacity-80"
|
|
12
|
+
:style="{ backgroundColor: displayColor }"
|
|
13
|
+
/>
|
|
14
|
+
</slot>
|
|
15
|
+
</template>
|
|
16
|
+
<div
|
|
17
|
+
v-if="hasAnyShades"
|
|
18
|
+
class="_bk_p-5 _bk_flex _bk_flex-wrap _bk_relative"
|
|
19
|
+
:style="{
|
|
20
|
+
maxWidth: maxShades * 40 + 10 + 'px'
|
|
21
|
+
}"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
v-for="row in colorRows"
|
|
25
|
+
:key="row.entryId"
|
|
26
|
+
class="_bk_flex _bk_items-center"
|
|
27
|
+
>
|
|
28
|
+
<button
|
|
29
|
+
v-for="item in row.items"
|
|
30
|
+
:key="item.colorId"
|
|
31
|
+
type="button"
|
|
32
|
+
class="_bk_group/tooltip _bk_flex _bk_border-none _bk_bg-transparent _bk_cursor-pointer _bk_size-40 _bk_items-center _bk_justify-center _bk_group"
|
|
33
|
+
@click="selectedId = item.colorId"
|
|
34
|
+
>
|
|
35
|
+
<span
|
|
36
|
+
class="_bk_rounded-full _bk_block _bk_relative _bk_outline-2 _bk_outline-offset-2 _bk_outline-transparent _bk_size-30"
|
|
37
|
+
:class="[
|
|
38
|
+
item.isMain && [
|
|
39
|
+
'_bk_before:bk-content-empty _bk_before:absolute _bk_before:size-8 _bk_before:rounded-full _bk_before:left-1/2 _bk_before:top-1/2 _bk_before:-translate-x-1/2 _bk_before:-translate-y-1/2',
|
|
40
|
+
item.isLightBg ? '_bk_before:bg-black' : '_bk_before:bg-white'
|
|
41
|
+
],
|
|
42
|
+
isSelected(item.colorId) ? '_bk_outline-mono-900!' : '_bk_group-hover:outline-mono-300'
|
|
43
|
+
]"
|
|
44
|
+
:style="{ backgroundColor: item.hex }"
|
|
45
|
+
/>
|
|
46
|
+
<Tooltip :label="item.label" placement="above-left" small />
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<template v-else>
|
|
51
|
+
<DropdownItem
|
|
52
|
+
v-for="entry in colorOptions"
|
|
53
|
+
:key="entry.id"
|
|
54
|
+
:text="entry.label"
|
|
55
|
+
:class="{ '_bk_bg-mono-100 _bk_text-mono-950': isSelected(entry.id) }"
|
|
56
|
+
@click="selectedId = entry.id"
|
|
57
|
+
>
|
|
58
|
+
<span
|
|
59
|
+
class="_bk_rounded-full _bk_block _bk_size-20 _bk_relative"
|
|
60
|
+
:style="{ backgroundColor: entry.hex }"
|
|
61
|
+
/>
|
|
62
|
+
</DropdownItem>
|
|
63
|
+
</template>
|
|
64
|
+
</Dropdown>
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<script setup>
|
|
68
|
+
import { computed, useBlokkli } from "#imports";
|
|
69
|
+
import { Dropdown, DropdownItem, Tooltip } from "#blokkli/editor/components";
|
|
70
|
+
import { isLightHex } from "#blokkli/editor/helpers/color";
|
|
71
|
+
defineProps({
|
|
72
|
+
buttonClass: { type: String, required: false }
|
|
73
|
+
});
|
|
74
|
+
const selectedId = defineModel({ type: String, ...{
|
|
75
|
+
default: ""
|
|
76
|
+
} });
|
|
77
|
+
const { config, $t } = useBlokkli();
|
|
78
|
+
const colorOptions = computed(() => config.colorOptions.value);
|
|
79
|
+
const hasAnyShades = computed(
|
|
80
|
+
() => colorOptions.value.some((entry) => entry.shades?.length)
|
|
81
|
+
);
|
|
82
|
+
const displayColor = computed(() => config.getColorHex(selectedId.value));
|
|
83
|
+
const colorRows = computed(
|
|
84
|
+
() => colorOptions.value.map((entry) => ({
|
|
85
|
+
entryId: entry.id,
|
|
86
|
+
items: entry.shades?.length ? entry.shades.map((shade) => ({
|
|
87
|
+
// Always emit the shade-qualified form for ramped colors — the
|
|
88
|
+
// bare base id is never emitted from this component, so consumers
|
|
89
|
+
// can compare ids with naive string equality without knowing
|
|
90
|
+
// which shade was declared as the family's main.
|
|
91
|
+
colorId: `${entry.id}.${shade.id}`,
|
|
92
|
+
label: shade.isMain ? `${entry.label} ${shade.id} (${$t("mainColor", "main color")})` : `${entry.label} ${shade.id}`,
|
|
93
|
+
hex: shade.hex,
|
|
94
|
+
isMain: !!shade.isMain,
|
|
95
|
+
isLightBg: isLightHex(shade.hex)
|
|
96
|
+
})) : [
|
|
97
|
+
{
|
|
98
|
+
colorId: entry.id,
|
|
99
|
+
label: entry.label,
|
|
100
|
+
hex: entry.hex,
|
|
101
|
+
isMain: false,
|
|
102
|
+
isLightBg: isLightHex(entry.hex)
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
})).sort((a, b) => b.items.length - a.items.length)
|
|
106
|
+
);
|
|
107
|
+
const maxShades = computed(
|
|
108
|
+
() => colorOptions.value.reduce(
|
|
109
|
+
(max, entry) => Math.max(max, entry.shades?.length ?? 0),
|
|
110
|
+
0
|
|
111
|
+
)
|
|
112
|
+
);
|
|
113
|
+
function isSelected(id) {
|
|
114
|
+
return selectedId.value === id;
|
|
115
|
+
}
|
|
116
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
buttonClass?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare var __VLS_9: {
|
|
9
|
+
displayColor: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
};
|
|
152
152
|
</script>
|
|
153
153
|
|
|
154
|
-
<style>/*! tailwindcss v4.
|
|
154
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
155
155
|
.bk.bk-dialog {
|
|
156
156
|
pointer-events: none;
|
|
157
157
|
position: fixed;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
+
import type { ApprovalItem, ApprovalUnit } from '../types.js';
|
|
1
2
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
selected: boolean
|
|
6
|
-
|
|
3
|
+
item: ApprovalItem;
|
|
4
|
+
/** Units belonging to this item, in reading order. Never empty in practice. */
|
|
5
|
+
units: ApprovalUnit[];
|
|
6
|
+
selected: Record<string, boolean>;
|
|
7
|
+
activeKey: string | null;
|
|
7
8
|
/**
|
|
8
|
-
* Render the new value entirely as an insertion instead of a diff.
|
|
9
|
-
*
|
|
10
|
-
* See the prop of the same name on DiffApproval.
|
|
9
|
+
* Render the new value entirely as an insertion instead of a diff. See the
|
|
10
|
+
* prop of the same name on DiffApproval.
|
|
11
11
|
*/
|
|
12
12
|
insertionsOnly?: boolean;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
15
|
-
* Restore the original Vue-managed nodes immediately, in preparation for the
|
|
16
|
-
* consumer's mutation. After this runs, Vue's reactive patch can write the
|
|
17
|
-
* new value into the live tracked nodes — and the post-mutation
|
|
18
|
-
* `onBeforeUnmount` restore is skipped so it doesn't clobber that value.
|
|
19
|
-
*/
|
|
20
14
|
declare function commitForApply(): void;
|
|
21
|
-
declare function
|
|
15
|
+
declare function updateRects(): void;
|
|
22
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
-
|
|
17
|
+
updateRects: typeof updateRects;
|
|
24
18
|
commitForApply: typeof commitForApply;
|
|
25
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
toggle: () => void;
|
|
27
|
-
activate: () => void;
|
|
20
|
+
toggle: (key: string) => void;
|
|
21
|
+
activate: (key: string) => void;
|
|
28
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
-
onToggle?: (() => any) | undefined;
|
|
30
|
-
onActivate?: (() => any) | undefined;
|
|
23
|
+
onToggle?: ((key: string) => any) | undefined;
|
|
24
|
+
onActivate?: ((key: string) => any) | undefined;
|
|
31
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
26
|
declare const _default: typeof __VLS_export;
|
|
33
27
|
export default _default;
|