@blokkli/editor 2.0.0-alpha.63 → 2.0.0-alpha.65
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/module.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +154 -5
- 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/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/index.vue +1 -1
- package/dist/modules/agent/runtime/app/features/agent/index.vue +1 -1
- package/dist/modules/agent/runtime/app/helpers/mutationResult.d.ts +12 -0
- package/dist/modules/agent/runtime/app/helpers/mutationResult.js +34 -0
- package/dist/modules/agent/runtime/app/providers/toolsProvider.js +13 -7
- 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 +16 -5
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +43 -15
- 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/index.d.ts +1 -1
- 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.js +1 -3
- 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 +2 -2
- 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/index.d.ts +3 -3
- package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.js +10 -15
- package/dist/modules/agent/runtime/server/server-tools/load_tools/index.d.ts +1 -3
- package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +3 -1
- 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/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/CsvImport/OutputPreviewTable/index.vue +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/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/runtime/adapter/index.js +3 -0
- 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/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.vue +1 -1
- package/dist/runtime/editor/components/Dialog/index.vue +1 -1
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +1 -1
- package/dist/runtime/editor/components/DiffApproval/types.js +1 -3
- 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 +1 -0
- package/dist/runtime/editor/components/Dropdown/index.vue +2 -2
- package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +1 -0
- 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 +1 -0
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +2 -1
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
- 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/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/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/index.vue +1 -1
- 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 +8 -0
- 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/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/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/diff/index.d.ts +11 -0
- package/dist/runtime/editor/helpers/diff/index.js +13 -7
- 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 +2 -1
- package/dist/runtime/editor/plugins/ItemAction/index.vue +1 -1
- package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +2 -1
- 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/animation.d.ts +2 -0
- 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 +25 -1
- package/dist/runtime/editor/providers/state.js +17 -0
- package/dist/runtime/editor/translations/de.json +2 -0
- package/dist/runtime/editor/translations/fr.json +2 -0
- package/dist/runtime/editor/translations/gsw_CH.json +2 -0
- package/dist/runtime/editor/translations/it.json +2 -0
- package/dist/runtime/editor/types/state.d.ts +7 -0
- package/dist/runtime/editor/types/ui.d.ts +1 -0
- package/dist/shared/{editor.Gu7mgJ5Q.mjs → editor.BGemL1Oh.mjs} +146 -146
- package/dist/shared/{editor.D28NbXr3.d.mts → editor.S5sA3rij.d.mts} +452 -406
- package/dist/types.d.mts +1 -1
- package/package.json +74 -82
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BlokkliModule } from '../../shared/editor.
|
|
1
|
+
import { B as BlokkliModule } from '../../shared/editor.S5sA3rij.mjs';
|
|
2
2
|
import 'nuxt/schema';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import '../../../dist/global/types/definitions.js';
|
|
@@ -14,6 +14,19 @@ type ChartsModuleOptions = {
|
|
|
14
14
|
* @todo not yet implemented
|
|
15
15
|
*/
|
|
16
16
|
chartRenderComponent?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Number format settings for the chart editor.
|
|
19
|
+
*/
|
|
20
|
+
numberFormat?: {
|
|
21
|
+
/**
|
|
22
|
+
* Override the locales offered in the number-format editor.
|
|
23
|
+
*
|
|
24
|
+
* Provide an array of BCP-47 locale ids (e.g. `['de-CH', 'en-US']`) to
|
|
25
|
+
* restrict the selectable locales. When omitted, blökkli ships a default
|
|
26
|
+
* set. The label for each locale is derived automatically from its id.
|
|
27
|
+
*/
|
|
28
|
+
locales?: string[];
|
|
29
|
+
};
|
|
17
30
|
};
|
|
18
31
|
|
|
19
32
|
declare const _default: (options?: ChartsModuleOptions | undefined) => BlokkliModule<ChartsModuleOptions>;
|
|
@@ -3,7 +3,7 @@ import { defineBlokkliModule } from '../index.mjs';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import * as path from 'node:path';
|
|
5
5
|
import * as fs from 'node:fs';
|
|
6
|
-
import { C as Collector, a as CollectedFile,
|
|
6
|
+
import { C as Collector, a as CollectedFile, b as extractFirstStringArg } from '../../shared/editor.BGemL1Oh.mjs';
|
|
7
7
|
import { d as defineCodeTemplate } from '../../shared/editor.6D5vApr0.mjs';
|
|
8
8
|
import 'typescript';
|
|
9
9
|
import 'oxc-walker';
|
|
@@ -223,6 +223,31 @@ export const chartTypeIllustrations: Partial<Record<ChartTypeId, Component>>
|
|
|
223
223
|
);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
const DEFAULT_NUMBER_FORMAT_LOCALES = [
|
|
227
|
+
"de-CH",
|
|
228
|
+
"fr-CH",
|
|
229
|
+
"it-CH",
|
|
230
|
+
"de-DE",
|
|
231
|
+
"en-US",
|
|
232
|
+
"en-GB",
|
|
233
|
+
"fr-FR"
|
|
234
|
+
];
|
|
235
|
+
function createConfigTemplate(options) {
|
|
236
|
+
const numberFormatLocales = options?.numberFormat?.locales ?? DEFAULT_NUMBER_FORMAT_LOCALES;
|
|
237
|
+
return defineCodeTemplate(
|
|
238
|
+
"charts-config",
|
|
239
|
+
() => `export const chartsConfig = {
|
|
240
|
+
numberFormatLocales: ${JSON.stringify(numberFormatLocales)},
|
|
241
|
+
}
|
|
242
|
+
`,
|
|
243
|
+
() => `export const chartsConfig: {
|
|
244
|
+
numberFormatLocales: string[]
|
|
245
|
+
}
|
|
246
|
+
`,
|
|
247
|
+
{ write: true }
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
226
251
|
const resolve = createResolver(
|
|
227
252
|
fileURLToPath(new URL("./", import.meta.url))
|
|
228
253
|
).resolve;
|
|
@@ -231,7 +256,16 @@ const index = defineBlokkliModule({
|
|
|
231
256
|
options.blokkliDirs ??= [];
|
|
232
257
|
options.blokkliDirs.push(resolve("./runtime/blokkli"));
|
|
233
258
|
},
|
|
234
|
-
setup({ context, helper, $t }) {
|
|
259
|
+
setup({ context, helper, $t }, options) {
|
|
260
|
+
helper.addPackageDependency(
|
|
261
|
+
"echarts/core",
|
|
262
|
+
"echarts/renderers",
|
|
263
|
+
"echarts/charts",
|
|
264
|
+
"echarts/components",
|
|
265
|
+
"vue-echarts",
|
|
266
|
+
"json5",
|
|
267
|
+
"zod"
|
|
268
|
+
);
|
|
235
269
|
helper.addAlias("#blokkli/charts/types", resolve("./runtime/types"));
|
|
236
270
|
helper.addAlias(
|
|
237
271
|
"#blokkli/charts/definition",
|
|
@@ -261,6 +295,7 @@ const index = defineBlokkliModule({
|
|
|
261
295
|
context.addTemplate(createDefinitionsTemplate(chartTypes));
|
|
262
296
|
context.addTemplate(createComponentsTemplate(chartTypes));
|
|
263
297
|
context.addTemplate(createIllustrationsTemplate(chartTypes));
|
|
298
|
+
context.addTemplate(createConfigTemplate(options));
|
|
264
299
|
helper.addAppTsInclude(projectChartsDir);
|
|
265
300
|
for (const dir of moduleBlokkliDirs) {
|
|
266
301
|
helper.addAppTsInclude(path.join(dir, "chart-types"));
|
|
@@ -121,7 +121,7 @@ function openExamples() {
|
|
|
121
121
|
}
|
|
122
122
|
</script>
|
|
123
123
|
|
|
124
|
-
<style>/*! tailwindcss v4.
|
|
124
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
125
125
|
.bk-advanced-config-error {
|
|
126
126
|
border-radius: 4px;
|
|
127
127
|
border-style: var(--bk-tw-border-style);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FormToggle
|
|
3
3
|
v-if="option.type === 'checkbox'"
|
|
4
|
-
:label
|
|
5
|
-
:description
|
|
4
|
+
:label
|
|
5
|
+
:description
|
|
6
6
|
:model-value="!!(value ?? option.default)"
|
|
7
7
|
@update:model-value="$emit('update', $event)"
|
|
8
8
|
/>
|
|
9
9
|
<FormRadio
|
|
10
10
|
v-else-if="option.type === 'radios'"
|
|
11
11
|
:id="`chart-option-${optionKey}`"
|
|
12
|
-
:label
|
|
13
|
-
:description
|
|
12
|
+
:label
|
|
13
|
+
:description
|
|
14
14
|
inline
|
|
15
15
|
:options="radioOptions"
|
|
16
16
|
:model-value="String(value ?? option.default ?? '')"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
<FormNumber
|
|
20
20
|
v-else-if="option.type === 'number'"
|
|
21
21
|
:id="`chart-option-${optionKey}`"
|
|
22
|
-
:label
|
|
23
|
-
:description
|
|
22
|
+
:label
|
|
23
|
+
:description
|
|
24
24
|
:min="numberMin"
|
|
25
25
|
:max="numberMax"
|
|
26
26
|
:nullable="option.nullable"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
<FormText
|
|
32
32
|
v-else-if="option.type === 'text'"
|
|
33
33
|
:id="`chart-option-${optionKey}`"
|
|
34
|
-
:label
|
|
35
|
-
:description
|
|
34
|
+
:label
|
|
35
|
+
:description
|
|
36
36
|
:model-value="String(value ?? option.default ?? '')"
|
|
37
37
|
lazy
|
|
38
38
|
@update:model-value="$emit('update', $event ?? '')"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup>
|
|
43
|
-
import { computed } from "#imports";
|
|
43
|
+
import { computed, useBlokkli } from "#imports";
|
|
44
44
|
import {
|
|
45
45
|
FormToggle,
|
|
46
46
|
FormRadio,
|
|
@@ -53,6 +53,16 @@ const props = defineProps({
|
|
|
53
53
|
value: { type: null, required: true }
|
|
54
54
|
});
|
|
55
55
|
defineEmits(["update"]);
|
|
56
|
+
const { definitions } = useBlokkli();
|
|
57
|
+
const label = computed(() => {
|
|
58
|
+
return definitions.resolveDefinitionString(props.option.label);
|
|
59
|
+
});
|
|
60
|
+
const description = computed(() => {
|
|
61
|
+
if (props.option.description) {
|
|
62
|
+
return definitions.resolveDefinitionString(props.option.description);
|
|
63
|
+
}
|
|
64
|
+
return void 0;
|
|
65
|
+
});
|
|
56
66
|
const radioOptions = computed(() => {
|
|
57
67
|
if (props.option.type !== "radios") {
|
|
58
68
|
return [];
|
package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue
CHANGED
|
@@ -102,7 +102,7 @@ function onDragEnd() {
|
|
|
102
102
|
}
|
|
103
103
|
</script>
|
|
104
104
|
|
|
105
|
-
<style>/*! tailwindcss v4.
|
|
105
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
106
106
|
.bk-csv-preview-table th,.bk-csv-preview-table td {
|
|
107
107
|
border-right-style: var(--bk-tw-border-style);
|
|
108
108
|
border-right-width: 1px;
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
<th />
|
|
11
11
|
<th v-for="(s, si) in series" :key="si">
|
|
12
12
|
<div class="bk-chart-data-table-series-header">
|
|
13
|
-
<
|
|
13
|
+
<span
|
|
14
14
|
v-if="hasSeriesColors"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
class="_bk_contents"
|
|
16
|
+
>
|
|
17
|
+
<ColorDropdown
|
|
18
|
+
:color-id="s.color"
|
|
19
|
+
@select="updateSeriesColor(si, $event)"
|
|
20
|
+
/>
|
|
21
|
+
</span>
|
|
18
22
|
<input
|
|
19
23
|
type="text"
|
|
20
24
|
:value="s.name"
|
|
@@ -52,11 +56,15 @@
|
|
|
52
56
|
<tr v-for="(cat, ci) in categories" :key="ci">
|
|
53
57
|
<td>
|
|
54
58
|
<div class="bk-chart-data-table-category-cell">
|
|
55
|
-
<
|
|
59
|
+
<span
|
|
56
60
|
v-if="hasCategoryColors"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
class="_bk_contents"
|
|
62
|
+
>
|
|
63
|
+
<ColorDropdown
|
|
64
|
+
:color-id="categoryColors[ci] || ''"
|
|
65
|
+
@select="updateCategoryColor(ci, $event)"
|
|
66
|
+
/>
|
|
67
|
+
</span>
|
|
60
68
|
<input
|
|
61
69
|
type="text"
|
|
62
70
|
class="bk-chart-data-table-input _bk_font-semibold"
|
|
@@ -69,6 +69,7 @@ import { computed, useBlokkli } from "#imports";
|
|
|
69
69
|
import { createNumberFormatter } from "../../../../helpers/numberFormat";
|
|
70
70
|
import { FormSelect, FormText, FormRadio } from "#blokkli/editor/components";
|
|
71
71
|
import PanelSection from "#blokkli/editor/components/Panel/Section/index.vue";
|
|
72
|
+
import { chartsConfig } from "#blokkli-build/charts-config";
|
|
72
73
|
const { $t } = useBlokkli();
|
|
73
74
|
const props = defineProps({
|
|
74
75
|
format: { type: Object, required: true }
|
|
@@ -83,15 +84,30 @@ function update(key, value) {
|
|
|
83
84
|
}
|
|
84
85
|
emit("update:format", next);
|
|
85
86
|
}
|
|
87
|
+
function deriveLocaleLabel(id) {
|
|
88
|
+
let name = id;
|
|
89
|
+
try {
|
|
90
|
+
name = new Intl.DisplayNames([id], {
|
|
91
|
+
type: "language",
|
|
92
|
+
languageDisplay: "standard"
|
|
93
|
+
}).of(id) ?? id;
|
|
94
|
+
} catch {
|
|
95
|
+
}
|
|
96
|
+
try {
|
|
97
|
+
const example = new Intl.NumberFormat(id, {
|
|
98
|
+
minimumFractionDigits: 2
|
|
99
|
+
}).format(1234.5);
|
|
100
|
+
return `${name} \u2014 ${example}`;
|
|
101
|
+
} catch {
|
|
102
|
+
return name;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
86
105
|
const localeOptions = computed(() => [
|
|
87
106
|
{ value: "", label: $t("chartsNumberFormatLocaleAuto", "Auto (browser)") },
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{ value: "en-US", label: "English (US) \u2014 1,234.50" },
|
|
93
|
-
{ value: "en-GB", label: "English (UK) \u2014 1,234.50" },
|
|
94
|
-
{ value: "fr-FR", label: "Fran\xE7ais (France) \u2014 1 234,50" }
|
|
107
|
+
...chartsConfig.numberFormatLocales.map((id) => ({
|
|
108
|
+
value: id,
|
|
109
|
+
label: deriveLocaleLabel(id)
|
|
110
|
+
}))
|
|
95
111
|
]);
|
|
96
112
|
const decimalsOptions = computed(() => [
|
|
97
113
|
{ value: "", label: $t("auto", "Auto") },
|
|
@@ -239,9 +239,11 @@ import "#blokkli/charts/adapter";
|
|
|
239
239
|
import {
|
|
240
240
|
categoriesAreDates,
|
|
241
241
|
categoriesAreNumeric,
|
|
242
|
+
getColorIdAtIndex,
|
|
242
243
|
getDefaultChartData,
|
|
243
244
|
getFirstColorId
|
|
244
245
|
} from "../../../helpers";
|
|
246
|
+
import { isColorIdValid } from "#blokkli/helpers/colors";
|
|
245
247
|
import { getChartType, getDefaultTypeOptions } from "../../../chart-types";
|
|
246
248
|
import { useChartEditorState } from "./useChartEditorState";
|
|
247
249
|
import { useChartDataSourcePreview } from "./useChartDataSourcePreview";
|
|
@@ -283,24 +285,21 @@ function getCurrentData() {
|
|
|
283
285
|
const hasSeries = Array.isArray(parsed?.series) && parsed.series.length > 0;
|
|
284
286
|
if (parsed && (isAdvanced2 || hasSeries)) {
|
|
285
287
|
if (!isAdvanced2) {
|
|
286
|
-
const validIds = new Set(colorOptions.map((c) => c.id));
|
|
287
288
|
const fallbackId = getFirstColorId(colorOptions);
|
|
288
289
|
for (const series of parsed.series) {
|
|
289
|
-
if (!
|
|
290
|
+
if (!isColorIdValid(series.color, colorOptions)) {
|
|
290
291
|
series.color = fallbackId;
|
|
291
292
|
}
|
|
292
293
|
}
|
|
293
294
|
if (Array.isArray(parsed.categoryColors)) {
|
|
294
295
|
for (let i = 0; i < parsed.categoryColors.length; i++) {
|
|
295
|
-
if (!
|
|
296
|
+
if (!isColorIdValid(parsed.categoryColors[i], colorOptions)) {
|
|
296
297
|
parsed.categoryColors[i] = fallbackId;
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
} else {
|
|
300
301
|
parsed.categoryColors = parsed.categories.map(
|
|
301
|
-
(_, i) =>
|
|
302
|
-
return colorOptions[i % colorOptions.length]?.id || fallbackId;
|
|
303
|
-
}
|
|
302
|
+
(_, i) => getColorIdAtIndex(i, colorOptions)
|
|
304
303
|
);
|
|
305
304
|
}
|
|
306
305
|
} else {
|
|
@@ -216,6 +216,8 @@ export default defineBlokkliEditAdapter(
|
|
|
216
216
|
const mutations = (state?.mutations || []).filter(falsy);
|
|
217
217
|
const currentUserIsOwner = !!state?.currentUserIsOwner;
|
|
218
218
|
const ownerName = state?.ownerName || "";
|
|
219
|
+
const lastChangedRaw = state?.changedRawField?.first?.value;
|
|
220
|
+
const lastChanged = lastChangedRaw ? parseInt(lastChangedRaw) : void 0;
|
|
219
221
|
const fields = state?.mutatedState?.fields || [];
|
|
220
222
|
const violations = state.mutatedState?.violations || [];
|
|
221
223
|
const entity = state.entity;
|
|
@@ -255,6 +257,7 @@ export default defineBlokkliEditAdapter(
|
|
|
255
257
|
mutations,
|
|
256
258
|
currentUserIsOwner,
|
|
257
259
|
ownerName,
|
|
260
|
+
lastChanged,
|
|
258
261
|
ownerId: state.user?.id,
|
|
259
262
|
mutatedState: {
|
|
260
263
|
fields,
|
package/dist/modules/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Blokkli, B as BlokkliModule, d as defineBlokkliModule } from '../shared/editor.
|
|
1
|
+
export { b as Blokkli, B as BlokkliModule, d as defineBlokkliModule } from '../shared/editor.S5sA3rij.mjs';
|
|
2
2
|
import 'nuxt/schema';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import '../../dist/global/types/definitions.js';
|
|
@@ -6,7 +6,8 @@ const resolve = createResolver(
|
|
|
6
6
|
fileURLToPath(new URL("./", import.meta.url))
|
|
7
7
|
).resolve;
|
|
8
8
|
const index = defineBlokkliModule({
|
|
9
|
-
setup({ context }) {
|
|
9
|
+
setup({ context, helper }) {
|
|
10
|
+
helper.addPackageDependency("syllable");
|
|
10
11
|
context.registerAdapterExtension(
|
|
11
12
|
"@blokkli/readability",
|
|
12
13
|
resolve("./runtime/adapter-extension")
|
|
@@ -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;
|
|
@@ -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);
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
class="_bk_rounded-full _bk_block _bk_relative _bk_outline-2 _bk_outline-offset-2 _bk_outline-transparent _bk_size-30"
|
|
37
37
|
:class="[
|
|
38
38
|
item.isMain && [
|
|
39
|
-
'_bk_before: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',
|
|
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
40
|
item.isLightBg ? '_bk_before:bg-black' : '_bk_before:bg-white'
|
|
41
41
|
],
|
|
42
42
|
isSelected(item.colorId) ? '_bk_outline-mono-900!' : '_bk_group-hover:outline-mono-300'
|
|
@@ -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;
|
|
@@ -172,7 +172,7 @@ function onReasonInput(event) {
|
|
|
172
172
|
}
|
|
173
173
|
</script>
|
|
174
174
|
|
|
175
|
-
<style>/*! tailwindcss v4.
|
|
175
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
176
176
|
.bk.bk-diff-approval-toolbar-hint {
|
|
177
177
|
grid-area: mode;
|
|
178
178
|
}
|
|
@@ -3,9 +3,7 @@ export function unitsFromItems(items) {
|
|
|
3
3
|
const units = [];
|
|
4
4
|
for (const item of items) {
|
|
5
5
|
if (item.segments) {
|
|
6
|
-
const atoms = flattenSegments(item.segments).filter(
|
|
7
|
-
(s) => s.status !== "matched" || s.beforeHtml !== s.afterHtml
|
|
8
|
-
);
|
|
6
|
+
const atoms = flattenSegments(item.segments).filter((s) => s.changed);
|
|
9
7
|
for (const segment of atoms) {
|
|
10
8
|
units.push({
|
|
11
9
|
kind: "segment",
|
|
@@ -248,7 +248,7 @@ function scrollToBlock(uuid) {
|
|
|
248
248
|
}
|
|
249
249
|
</script>
|
|
250
250
|
|
|
251
|
-
<style>/*! tailwindcss v4.
|
|
251
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
252
252
|
.bk.bk-diff-sidebar-pane {
|
|
253
253
|
position: absolute;
|
|
254
254
|
top: 0px;
|
|
@@ -148,7 +148,7 @@ if (import.meta.hot) {
|
|
|
148
148
|
}
|
|
149
149
|
</script>
|
|
150
150
|
|
|
151
|
-
<style>/*! tailwindcss v4.
|
|
151
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
152
152
|
.bk-vars.bk-draggable-list-container .bk-list-item {
|
|
153
153
|
border-radius: 0 !important;
|
|
154
154
|
background-color: white;
|
|
@@ -18,6 +18,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
position: DropdownPosition;
|
|
21
|
+
buttonClass: string;
|
|
21
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -49,7 +49,7 @@ import { INJECT_POPUP_HOST } from "#blokkli/editor/helpers/injections";
|
|
|
49
49
|
const props = defineProps({
|
|
50
50
|
position: { type: String, required: false, default: "bottom-left" },
|
|
51
51
|
disabled: { type: Boolean, required: false, default: false },
|
|
52
|
-
buttonClass: { type: String, required: false }
|
|
52
|
+
buttonClass: { type: String, required: false, default: void 0 }
|
|
53
53
|
});
|
|
54
54
|
const popupHostRef = inject(INJECT_POPUP_HOST, null);
|
|
55
55
|
const teleport = computed(() => popupHostRef?.value ?? null);
|
|
@@ -169,7 +169,7 @@ onBeforeUnmount(() => {
|
|
|
169
169
|
defineExpose({ close });
|
|
170
170
|
</script>
|
|
171
171
|
|
|
172
|
-
<style>/*! tailwindcss v4.
|
|
172
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
173
173
|
.bk .bk-dropdown-menu-trigger {
|
|
174
174
|
appearance: none;
|
|
175
175
|
}
|
|
@@ -18,6 +18,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
19
|
disabled: boolean;
|
|
20
20
|
position: DropdownPosition;
|
|
21
|
+
buttonClass: string;
|
|
21
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,7 +17,7 @@ defineProps({
|
|
|
17
17
|
defineEmits(["click"]);
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
|
-
<style>/*! tailwindcss v4.
|
|
20
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
21
21
|
.bk .bk-dropdown-menu-item {
|
|
22
22
|
display: flex;
|
|
23
23
|
width: 100%;
|
|
@@ -176,7 +176,7 @@ onBeforeUnmount(() => {
|
|
|
176
176
|
});
|
|
177
177
|
</script>
|
|
178
178
|
|
|
179
|
-
<style>/*! tailwindcss v4.
|
|
179
|
+
<style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
|
|
180
180
|
:root {
|
|
181
181
|
--bk-edit-indicator-color: 5 80 230;
|
|
182
182
|
--bk-edit-indicator-z-index: 1000000;
|