@blokkli/editor 2.0.0-alpha.52 → 2.0.0-alpha.54

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.
Files changed (373) hide show
  1. package/dist/chunks/tailwindConfig.mjs +3 -3
  2. package/dist/global/types/blockOptions.d.ts +18 -2
  3. package/dist/module.d.mts +2 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +281 -18
  6. package/dist/modules/agent/index.d.mts +1 -1
  7. package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +1 -0
  8. package/dist/modules/agent/runtime/app/composables/agentProvider.js +7 -0
  9. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.d.vue.ts +2 -2
  10. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue +14 -49
  11. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue.d.ts +2 -2
  12. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.d.vue.ts +10 -0
  13. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +102 -0
  14. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue.d.ts +10 -0
  15. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +8 -5
  16. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +3 -3
  17. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +9 -5
  18. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +3 -3
  19. package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +7 -0
  20. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +16 -2
  21. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +7 -0
  22. package/dist/modules/agent/runtime/app/features/agent/index.vue +29 -0
  23. package/dist/modules/agent/runtime/app/features/agent/types.d.ts +16 -0
  24. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +3 -1
  25. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +2 -0
  26. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +8 -1
  27. package/dist/modules/charts/index.d.mts +1 -1
  28. package/dist/modules/charts/index.mjs +2 -3
  29. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +1 -1
  30. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +1 -1
  31. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +16 -0
  32. package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +9 -0
  33. package/dist/modules/drupal/graphql/features/agent.graphql +20 -0
  34. package/dist/modules/drupal/graphql/features/publishNew.graphql +14 -0
  35. package/dist/modules/drupal/graphql/features/referenced-entities.graphql +21 -0
  36. package/dist/modules/drupal/graphql/features/textFieldValues.graphql +20 -0
  37. package/dist/modules/drupal/graphql/features/workspace.graphql +23 -0
  38. package/dist/modules/drupal/graphql/mutations/bulk_translate_field_values.graphql +19 -0
  39. package/dist/modules/drupal/graphql/mutations/clear_outdated_translation.graphql +15 -0
  40. package/dist/modules/drupal/graphql/mutations/ignore_analyze.graphql +15 -0
  41. package/dist/modules/drupal/graphql/mutations/request_translation.graphql +10 -0
  42. package/dist/modules/drupal/graphql/mutations/unignore_analyze.graphql +15 -0
  43. package/dist/modules/drupal/index.d.mts +1 -1
  44. package/dist/modules/drupal/index.mjs +16 -0
  45. package/dist/modules/drupal/runtime/adapter/index.js +180 -11
  46. package/dist/modules/iframes/index.d.mts +31 -0
  47. package/dist/modules/iframes/index.mjs +52 -0
  48. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.d.vue.ts +18 -0
  49. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue +61 -0
  50. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue.d.ts +18 -0
  51. package/dist/modules/iframes/runtime/components/index.d.ts +1 -0
  52. package/dist/modules/iframes/runtime/components/index.js +1 -0
  53. package/dist/modules/iframes/runtime/features/iframes/Editor/index.d.vue.ts +12 -0
  54. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +220 -0
  55. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue.d.ts +12 -0
  56. package/dist/modules/iframes/runtime/types.d.ts +10 -0
  57. package/dist/modules/index.d.mts +1 -1
  58. package/dist/modules/table-of-contents/index.d.mts +1 -1
  59. package/dist/runtime/components/Blocks/NotImplemented/index.vue +57 -0
  60. package/dist/runtime/components/BlokkliEditable.vue +1 -1
  61. package/dist/runtime/editor/adapter/index.d.ts +8 -1
  62. package/dist/runtime/editor/components/Actions/Interactions/index.vue +77 -17
  63. package/dist/runtime/editor/components/Actions/{ItemDropdown.vue → ItemDropdown/index.vue} +9 -10
  64. package/dist/runtime/editor/components/Actions/index.vue +586 -23
  65. package/dist/runtime/editor/components/AnimationCanvas/index.vue +1 -0
  66. package/dist/runtime/editor/components/AppMenu/MenuButton.vue +185 -1
  67. package/dist/runtime/editor/components/AppMenu/index.vue +24 -10
  68. package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +6 -2
  69. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +223 -3
  70. package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +6 -2
  71. package/dist/runtime/editor/components/AutoHeight/index.vue +23 -0
  72. package/dist/runtime/editor/components/Banner/Inner.d.vue.ts +30 -0
  73. package/dist/runtime/editor/components/Banner/Inner.vue +32 -0
  74. package/dist/runtime/editor/components/Banner/Inner.vue.d.ts +30 -0
  75. package/dist/runtime/editor/components/Banner/index.d.vue.ts +3 -13
  76. package/dist/runtime/editor/components/Banner/index.vue +2 -14
  77. package/dist/runtime/editor/components/Banner/index.vue.d.ts +3 -13
  78. package/dist/runtime/editor/components/BetaIndicator/index.d.vue.ts +6 -0
  79. package/dist/runtime/editor/components/BetaIndicator/index.vue +16 -0
  80. package/dist/runtime/editor/components/BetaIndicator/index.vue.d.ts +6 -0
  81. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +51 -1
  82. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +27 -1
  83. package/dist/runtime/editor/components/BlockProxy/index.vue +148 -1
  84. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +59 -0
  85. package/dist/runtime/editor/components/BundleSelector/index.vue +170 -20
  86. package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -0
  87. package/dist/runtime/editor/components/Dialog/index.vue +341 -0
  88. package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -0
  89. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +117 -0
  90. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +224 -28
  91. package/dist/runtime/editor/components/DiffViewer/DiffValue.d.vue.ts +1 -0
  92. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue +5 -1
  93. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue.d.ts +1 -0
  94. package/dist/runtime/editor/components/DiffViewer/State.vue +319 -0
  95. package/dist/runtime/editor/components/DraggableList.vue +103 -0
  96. package/dist/runtime/editor/components/Dropdown/index.vue +84 -0
  97. package/dist/runtime/editor/components/EditProvider.vue +72 -15
  98. package/dist/runtime/editor/components/FileDropHandler/index.d.vue.ts +23 -0
  99. package/dist/runtime/editor/components/FileDropHandler/index.vue +108 -0
  100. package/dist/runtime/editor/components/FileDropHandler/index.vue.d.ts +23 -0
  101. package/dist/runtime/editor/components/FlexTextarea/index.vue +4 -2
  102. package/dist/runtime/editor/components/Form/Datepicker/index.vue +149 -0
  103. package/dist/runtime/editor/components/Form/Toggle/index.vue +205 -1
  104. package/dist/runtime/editor/components/FormOverlay/index.vue +90 -0
  105. package/dist/runtime/editor/components/Icon/index.vue +6 -0
  106. package/dist/runtime/editor/components/Indicators/index.vue +161 -0
  107. package/dist/runtime/editor/components/InfoBox/index.vue +65 -0
  108. package/dist/runtime/editor/components/Konami/index.vue +119 -0
  109. package/dist/runtime/editor/components/Loading/index.d.vue.ts +6 -3
  110. package/dist/runtime/editor/components/Loading/index.vue +10 -5
  111. package/dist/runtime/editor/components/Loading/index.vue.d.ts +6 -3
  112. package/dist/runtime/editor/components/Messages/index.vue +131 -0
  113. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +1 -0
  114. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +246 -12
  115. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
  116. package/dist/runtime/editor/components/NotEditStateInfo/index.d.vue.ts +3 -0
  117. package/dist/runtime/editor/components/NotEditStateInfo/index.vue +19 -0
  118. package/dist/runtime/editor/components/NotEditStateInfo/index.vue.d.ts +3 -0
  119. package/dist/runtime/editor/components/Overlay/index.vue +84 -0
  120. package/dist/runtime/editor/components/Pagination/index.vue +41 -0
  121. package/dist/runtime/editor/components/PluginConfigForm/index.vue +23 -0
  122. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +429 -0
  123. package/dist/runtime/editor/components/PluginConfigFormInline/index.d.vue.ts +22 -0
  124. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +150 -0
  125. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue.d.ts +22 -0
  126. package/dist/runtime/editor/components/Popup/index.vue +77 -2
  127. package/dist/runtime/editor/components/PreviewProvider.vue +7 -0
  128. package/dist/runtime/editor/components/Resizable/index.vue +90 -1
  129. package/dist/runtime/editor/components/ScaleToFit/index.vue +30 -1
  130. package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +43 -0
  131. package/dist/runtime/editor/components/SearchOverlay/index.vue +264 -0
  132. package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +43 -0
  133. package/dist/runtime/editor/components/StatusIcon/index.vue +104 -0
  134. package/dist/runtime/editor/components/StatusIndicator/index.d.vue.ts +9 -0
  135. package/dist/runtime/editor/components/StatusIndicator/index.vue +16 -0
  136. package/dist/runtime/editor/components/StatusIndicator/index.vue.d.ts +9 -0
  137. package/dist/runtime/editor/components/SystemRequirements/index.vue +57 -0
  138. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +30 -0
  139. package/dist/runtime/editor/components/Tabs/index.vue +32 -0
  140. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +30 -0
  141. package/dist/runtime/editor/components/Toolbar/index.vue +215 -4
  142. package/dist/runtime/editor/components/Tooltip/Context.d.vue.ts +7 -0
  143. package/dist/runtime/editor/components/Tooltip/Context.vue +13 -0
  144. package/dist/runtime/editor/components/Tooltip/Context.vue.d.ts +7 -0
  145. package/dist/runtime/editor/components/Tooltip/Status.d.vue.ts +8 -0
  146. package/dist/runtime/editor/components/Tooltip/Status.vue +27 -0
  147. package/dist/runtime/editor/components/Tooltip/Status.vue.d.ts +8 -0
  148. package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +27 -0
  149. package/dist/runtime/editor/components/Tooltip/index.vue +40 -0
  150. package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +27 -0
  151. package/dist/runtime/editor/components/index.d.ts +59 -49
  152. package/dist/runtime/editor/components/index.js +59 -98
  153. package/dist/runtime/editor/composables/defineHighlight.d.ts +2 -0
  154. package/dist/runtime/editor/composables/defineHighlight.js +10 -0
  155. package/dist/runtime/editor/composables/index.d.ts +1 -0
  156. package/dist/runtime/editor/composables/index.js +1 -0
  157. package/dist/runtime/editor/composables/useBlockRegistration.js +8 -0
  158. package/dist/runtime/editor/composables/useStickyToolbar.d.ts +1 -0
  159. package/dist/runtime/editor/composables/useStickyToolbar.js +16 -0
  160. package/dist/runtime/editor/css/output.css +1 -1
  161. package/dist/runtime/editor/events/index.d.ts +10 -0
  162. package/dist/runtime/editor/features/add-list/Help/index.vue +193 -0
  163. package/dist/runtime/editor/features/add-list/index.vue +441 -0
  164. package/dist/runtime/editor/features/analyze/Ignored/index.d.vue.ts +7 -0
  165. package/dist/runtime/editor/features/analyze/Ignored/index.vue +35 -0
  166. package/dist/runtime/editor/features/analyze/Ignored/index.vue.d.ts +7 -0
  167. package/dist/runtime/editor/features/analyze/Main.vue +148 -24
  168. package/dist/runtime/editor/features/analyze/Results/Results.d.vue.ts +1 -9
  169. package/dist/runtime/editor/features/analyze/Results/Results.vue +0 -2
  170. package/dist/runtime/editor/features/analyze/Results/Results.vue.d.ts +1 -9
  171. package/dist/runtime/editor/features/analyze/Results/ResultsItem.d.vue.ts +1 -9
  172. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +1 -2
  173. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue.d.ts +1 -9
  174. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.d.vue.ts +1 -9
  175. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +11 -8
  176. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue.d.ts +1 -9
  177. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.d.vue.ts +3 -10
  178. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +63 -25
  179. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue.d.ts +3 -10
  180. package/dist/runtime/editor/features/analyze/analyzers/altText.js +2 -0
  181. package/dist/runtime/editor/features/analyze/analyzers/headingStructure.js +3 -0
  182. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.d.ts +7 -0
  183. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.js +8 -0
  184. package/dist/runtime/editor/features/analyze/analyzers/readability.js +6 -12
  185. package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +20 -0
  186. package/dist/runtime/editor/features/analyze/index.vue +458 -0
  187. package/dist/runtime/editor/features/analyze/types.d.ts +12 -0
  188. package/dist/runtime/editor/features/artboard/Overview/index.vue +37 -4
  189. package/dist/runtime/editor/features/artboard/Renderer.vue +79 -9
  190. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +84 -0
  191. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
  192. package/dist/runtime/editor/features/block-scheduler/index.vue +114 -0
  193. package/dist/runtime/editor/features/breadcrumbs/index.vue +150 -0
  194. package/dist/runtime/editor/features/changelog/Dialog/index.vue +62 -7
  195. package/dist/runtime/editor/features/changelog/changelog.json +9 -1
  196. package/dist/runtime/editor/features/clipboard/index.vue +153 -1
  197. package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +39 -16
  198. package/dist/runtime/editor/features/command-palette/Palette/index.vue +24 -130
  199. package/dist/runtime/editor/features/comments/index.vue +235 -0
  200. package/dist/runtime/editor/features/complex-options/index.vue +4 -1
  201. package/dist/runtime/editor/features/debug/Main.vue +1 -1
  202. package/dist/runtime/editor/features/debug/Section/Features.vue +2 -4
  203. package/dist/runtime/editor/features/debug/index.vue +168 -0
  204. package/dist/runtime/editor/features/dev-mode/index.vue +92 -27
  205. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +1 -1
  206. package/dist/runtime/editor/features/dragging-overlay/index.vue +330 -0
  207. package/dist/runtime/editor/features/edit/index.vue +15 -17
  208. package/dist/runtime/editor/features/edit-form/Frame/index.vue +21 -4
  209. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.d.vue.ts +10 -1
  210. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +47 -5
  211. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue.d.ts +10 -1
  212. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +77 -0
  213. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +55 -56
  214. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +417 -8
  215. package/dist/runtime/editor/features/editable-mask/index.vue +9 -0
  216. package/dist/runtime/editor/features/entity-title/index.vue +40 -56
  217. package/dist/runtime/editor/features/fragments/Dialog/index.vue +90 -0
  218. package/dist/runtime/editor/features/help/Shortcuts/index.vue +71 -0
  219. package/dist/runtime/editor/features/help/index.vue +17 -0
  220. package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +89 -0
  221. package/dist/runtime/editor/features/highlights/Renderer/index.vue +408 -0
  222. package/dist/runtime/editor/features/highlights/Renderer/vertex.glsl +87 -0
  223. package/dist/runtime/editor/features/highlights/index.d.vue.ts +3 -0
  224. package/dist/runtime/editor/features/highlights/index.vue +20 -0
  225. package/dist/runtime/editor/features/highlights/index.vue.d.ts +3 -0
  226. package/dist/runtime/editor/features/history/List/index.vue +209 -0
  227. package/dist/runtime/editor/features/history/index.vue +0 -1
  228. package/dist/runtime/editor/features/hover/Renderer/index.vue +1 -1
  229. package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +1 -1
  230. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +18 -0
  231. package/dist/runtime/editor/features/media-library/Library/index.vue +10 -30
  232. package/dist/runtime/editor/features/media-library/index.vue +331 -0
  233. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +1 -1
  234. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +1 -1
  235. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +6 -2
  236. package/dist/runtime/editor/features/options/Form/Item.vue +21 -18
  237. package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +6 -0
  238. package/dist/runtime/editor/features/options/Form/Radios/index.vue +25 -6
  239. package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +6 -0
  240. package/dist/runtime/editor/features/options/Form/index.vue +1 -4
  241. package/dist/runtime/editor/features/options/index.vue +729 -0
  242. package/dist/runtime/editor/features/ownership/Banner/index.vue +9 -8
  243. package/dist/runtime/editor/features/ownership/index.vue +1 -1
  244. package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +8 -3
  245. package/dist/runtime/editor/features/publish/Dialog/Item.vue +18 -20
  246. package/dist/runtime/editor/features/publish/Dialog/index.vue +5 -1
  247. package/dist/runtime/editor/features/publish/index.vue +835 -0
  248. package/dist/runtime/editor/features/publish/types.d.ts +5 -1
  249. package/dist/runtime/editor/features/referenced-entities/List/Item/index.d.vue.ts +4 -0
  250. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +81 -0
  251. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue.d.ts +4 -0
  252. package/dist/runtime/editor/features/referenced-entities/List/index.d.vue.ts +11 -0
  253. package/dist/runtime/editor/features/referenced-entities/List/index.vue +78 -0
  254. package/dist/runtime/editor/features/referenced-entities/List/index.vue.d.ts +11 -0
  255. package/dist/runtime/editor/features/referenced-entities/index.d.vue.ts +3 -0
  256. package/dist/runtime/editor/features/referenced-entities/index.vue +36 -0
  257. package/dist/runtime/editor/features/referenced-entities/index.vue.d.ts +3 -0
  258. package/dist/runtime/editor/features/referenced-entities/types.d.ts +13 -0
  259. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +188 -0
  260. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
  261. package/dist/runtime/editor/features/search/index.vue +511 -0
  262. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +58 -0
  263. package/dist/runtime/editor/features/selection/index.vue +47 -15
  264. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +23 -0
  265. package/dist/runtime/editor/features/settings/Dialog/index.vue +5 -2
  266. package/dist/runtime/editor/features/settings/index.vue +152 -0
  267. package/dist/runtime/editor/features/structure/List/Item/index.vue +7 -0
  268. package/dist/runtime/editor/features/structure/index.vue +178 -0
  269. package/dist/runtime/editor/features/templates/ManageDialog/Item.vue +3 -3
  270. package/dist/runtime/editor/features/templates/ManageDialog/index.vue +24 -3
  271. package/dist/runtime/editor/features/theme/index.vue +94 -0
  272. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +34 -0
  273. package/dist/runtime/editor/features/tour/Overlay/index.vue +243 -13
  274. package/dist/runtime/editor/features/transform/Dialog/index.vue +132 -1
  275. package/dist/runtime/editor/features/translations/Banner/index.d.vue.ts +14 -1
  276. package/dist/runtime/editor/features/translations/Banner/index.vue +139 -12
  277. package/dist/runtime/editor/features/translations/Banner/index.vue.d.ts +14 -1
  278. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.d.vue.ts +3 -0
  279. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +272 -0
  280. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue.d.ts +3 -0
  281. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.d.vue.ts +10 -0
  282. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +382 -0
  283. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue.d.ts +10 -0
  284. package/dist/runtime/editor/features/translations/CsvDialog/csv.d.ts +22 -0
  285. package/dist/runtime/editor/features/translations/CsvDialog/csv.js +50 -0
  286. package/dist/runtime/editor/features/translations/CsvDialog/index.d.vue.ts +10 -0
  287. package/dist/runtime/editor/features/translations/CsvDialog/index.vue +37 -0
  288. package/dist/runtime/editor/features/translations/CsvDialog/index.vue.d.ts +10 -0
  289. package/dist/runtime/editor/features/translations/CsvDialog/po.d.ts +7 -0
  290. package/dist/runtime/editor/features/translations/CsvDialog/po.js +36 -0
  291. package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +37 -0
  292. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +102 -0
  293. package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +37 -0
  294. package/dist/runtime/editor/features/translations/TranslateDialog/index.d.vue.ts +7 -0
  295. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +294 -0
  296. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue.d.ts +7 -0
  297. package/dist/runtime/editor/features/translations/index.vue +276 -6
  298. package/dist/runtime/editor/features/translations/types.d.ts +47 -0
  299. package/dist/runtime/editor/features/validations/Overlay/index.vue +130 -0
  300. package/dist/runtime/editor/features/validations/index.vue +41 -0
  301. package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.d.vue.ts +2 -4
  302. package/dist/runtime/editor/features/workspace/Overlay/index.vue +177 -0
  303. package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.vue.d.ts +2 -4
  304. package/dist/runtime/editor/features/workspace/index.d.vue.ts +3 -0
  305. package/dist/runtime/editor/features/workspace/index.vue +46 -0
  306. package/dist/runtime/editor/features/workspace/index.vue.d.ts +3 -0
  307. package/dist/runtime/editor/features/workspace/types.d.ts +59 -0
  308. package/dist/runtime/editor/features/workspace/types.js +0 -0
  309. package/dist/runtime/editor/icons/svg/spinner.svg +2 -2
  310. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +21 -7
  311. package/dist/runtime/editor/plugins/ContextMenu/index.vue +4 -0
  312. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +9 -2
  313. package/dist/runtime/editor/plugins/ItemAction/index.vue +26 -16
  314. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +9 -2
  315. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +24 -26
  316. package/dist/runtime/editor/plugins/Sidebar/index.vue +612 -27
  317. package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +13 -84
  318. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +36 -22
  319. package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +13 -84
  320. package/dist/runtime/editor/plugins/ViewOption/index.vue +13 -14
  321. package/dist/runtime/editor/providers/blocks.js +1 -0
  322. package/dist/runtime/editor/providers/cache.d.ts +23 -0
  323. package/dist/runtime/editor/providers/cache.js +29 -0
  324. package/dist/runtime/editor/providers/directive.d.ts +25 -0
  325. package/dist/runtime/editor/providers/directive.js +20 -0
  326. package/dist/runtime/editor/providers/fieldValue.d.ts +5 -5
  327. package/dist/runtime/editor/providers/fieldValue.js +8 -7
  328. package/dist/runtime/editor/providers/plugin.d.ts +14 -0
  329. package/dist/runtime/editor/providers/plugin.js +9 -0
  330. package/dist/runtime/editor/providers/readability.js +1 -1
  331. package/dist/runtime/editor/providers/selection.js +1 -1
  332. package/dist/runtime/editor/providers/state.d.ts +1 -0
  333. package/dist/runtime/editor/providers/state.js +1 -0
  334. package/dist/runtime/editor/providers/texts.js +11 -1
  335. package/dist/runtime/editor/providers/ui.d.ts +11 -0
  336. package/dist/runtime/editor/providers/ui.js +5 -1
  337. package/dist/runtime/editor/translations/de.json +316 -56
  338. package/dist/runtime/editor/translations/fr.json +310 -50
  339. package/dist/runtime/editor/translations/gsw_CH.json +311 -51
  340. package/dist/runtime/editor/translations/it.json +310 -50
  341. package/dist/runtime/editor/types/app.d.ts +2 -0
  342. package/dist/runtime/editor/types/definitions.d.ts +8 -0
  343. package/dist/runtime/editor/types/field.d.ts +1 -0
  344. package/dist/runtime/editor/types/state.d.ts +10 -0
  345. package/dist/runtime/editor/types/ui.d.ts +3 -1
  346. package/dist/runtime/helpers/tw.d.ts +15 -0
  347. package/dist/runtime/helpers/tw.js +3 -0
  348. package/dist/runtime/types/field.d.ts +1 -0
  349. package/dist/shared/{editor.DsGJIlGn.d.mts → editor.BTOBvmaz.d.mts} +20 -3
  350. package/dist/types.d.mts +1 -1
  351. package/package.json +16 -3
  352. package/dist/runtime/editor/features/analyze/Renderer/fragment.glsl +0 -74
  353. package/dist/runtime/editor/features/analyze/Renderer/index.d.vue.ts +0 -24
  354. package/dist/runtime/editor/features/analyze/Renderer/index.vue +0 -330
  355. package/dist/runtime/editor/features/analyze/Renderer/index.vue.d.ts +0 -24
  356. package/dist/runtime/editor/features/analyze/Renderer/vertex.glsl +0 -94
  357. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.d.vue.ts +0 -7
  358. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue +0 -17
  359. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue.d.ts +0 -7
  360. package/dist/runtime/editor/features/assistant/Overlay/index.vue +0 -108
  361. package/dist/runtime/editor/features/assistant/docs.md +0 -7
  362. package/dist/runtime/editor/features/assistant/index.vue +0 -66
  363. package/dist/runtime/editor/features/assistant/types.d.ts +0 -37
  364. package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue +0 -168
  365. package/dist/runtime/editor/providers/fieldValueAdapterTypes.d.ts +0 -13
  366. /package/dist/{runtime/editor/features/assistant → modules/iframes/runtime}/types.js +0 -0
  367. /package/dist/runtime/editor/components/Actions/{ItemDropdown.d.vue.ts → ItemDropdown/index.d.vue.ts} +0 -0
  368. /package/dist/runtime/editor/components/Actions/{ItemDropdown.vue.d.ts → ItemDropdown/index.vue.d.ts} +0 -0
  369. /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.d.vue.ts +0 -0
  370. /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.vue.d.ts +0 -0
  371. /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.d.vue.ts +0 -0
  372. /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.vue.d.ts +0 -0
  373. /package/dist/runtime/editor/{providers/fieldValueAdapterTypes.js → features/referenced-entities/types.js} +0 -0
@@ -0,0 +1,429 @@
1
+ <template>
2
+ <div
3
+ ref="root"
4
+ class="bk-config-filter-select"
5
+ :class="{ 'bk-is-open': isOpen }"
6
+ @keydown.stop="onKeydown"
7
+ >
8
+ <button type="button" @click="toggle">
9
+ <div>
10
+ <span class="bk-config-filter-select-label">{{ label }}</span>
11
+ <span v-if="selectedLabel" class="bk-config-filter-select-value">{{
12
+ selectedLabel
13
+ }}</span>
14
+ </div>
15
+ <Icon name="bk_mdi_arrow_drop_down" />
16
+ </button>
17
+ <div
18
+ v-if="isOpen"
19
+ class="bk-config-filter-select-dropdown bk-scrollbar-dark"
20
+ >
21
+ <div v-if="options.length > 10" class="bk-config-filter-select-search">
22
+ <input
23
+ ref="searchInput"
24
+ v-model="search"
25
+ class="bk-form-input bk-is-small"
26
+ type="text"
27
+ :placeholder="$t('filterSelectSearch', 'Search...')"
28
+ />
29
+ </div>
30
+ <ul ref="listEl">
31
+ <li v-for="(option, index) in filteredOptions" :key="option.value">
32
+ <button
33
+ type="button"
34
+ :class="{
35
+ 'bk-is-active': option.value === modelValue,
36
+ 'bk-is-highlighted': index === highlightedIndex
37
+ }"
38
+ @click="select(option.value)"
39
+ @mouseenter="highlightedIndex = index"
40
+ >
41
+ {{ option.label }}
42
+ </button>
43
+ </li>
44
+ <li
45
+ v-if="!filteredOptions.length"
46
+ class="bk-config-filter-select-empty"
47
+ >
48
+ {{ $t("filterSelectNoResults", "No results") }}
49
+ </li>
50
+ </ul>
51
+ </div>
52
+ </div>
53
+ </template>
54
+
55
+ <script setup>
56
+ import {
57
+ ref,
58
+ computed,
59
+ nextTick,
60
+ watch,
61
+ useTemplateRef,
62
+ onBeforeUnmount,
63
+ useBlokkli
64
+ } from "#imports";
65
+ import { Icon } from "#blokkli/editor/components";
66
+ const { $t } = useBlokkli();
67
+ const props = defineProps({
68
+ label: { type: String, required: true },
69
+ options: { type: Array, required: true },
70
+ modelValue: { type: String, required: false }
71
+ });
72
+ const emit = defineEmits(["update:modelValue"]);
73
+ const isOpen = ref(false);
74
+ const search = ref("");
75
+ const highlightedIndex = ref(-1);
76
+ const searchInput = useTemplateRef("searchInput");
77
+ const root = useTemplateRef("root");
78
+ const listEl = useTemplateRef("listEl");
79
+ const selectedLabel = computed(() => {
80
+ const option = props.options.find((o) => o.value === props.modelValue);
81
+ return option?.label ?? "";
82
+ });
83
+ const filteredOptions = computed(() => {
84
+ if (!search.value) {
85
+ return props.options;
86
+ }
87
+ const term = search.value.toLowerCase();
88
+ return props.options.filter((o) => o.label.toLowerCase().includes(term));
89
+ });
90
+ watch(filteredOptions, () => {
91
+ highlightedIndex.value = -1;
92
+ });
93
+ function scrollToHighlighted() {
94
+ if (!listEl.value || highlightedIndex.value < 0) {
95
+ return;
96
+ }
97
+ const buttons = listEl.value.querySelectorAll("button");
98
+ buttons[highlightedIndex.value]?.scrollIntoView({ block: "nearest" });
99
+ }
100
+ function toggle() {
101
+ isOpen.value = !isOpen.value;
102
+ if (isOpen.value) {
103
+ search.value = "";
104
+ highlightedIndex.value = -1;
105
+ nextTick(() => {
106
+ searchInput.value?.focus();
107
+ });
108
+ }
109
+ }
110
+ function select(value) {
111
+ emit("update:modelValue", value);
112
+ isOpen.value = false;
113
+ }
114
+ function onKeydown(e) {
115
+ if (!isOpen.value) {
116
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
117
+ e.preventDefault();
118
+ toggle();
119
+ }
120
+ return;
121
+ }
122
+ const options = filteredOptions.value;
123
+ switch (e.key) {
124
+ case "ArrowDown":
125
+ e.preventDefault();
126
+ highlightedIndex.value = highlightedIndex.value < options.length - 1 ? highlightedIndex.value + 1 : 0;
127
+ nextTick(scrollToHighlighted);
128
+ break;
129
+ case "ArrowUp":
130
+ e.preventDefault();
131
+ highlightedIndex.value = highlightedIndex.value > 0 ? highlightedIndex.value - 1 : options.length - 1;
132
+ nextTick(scrollToHighlighted);
133
+ break;
134
+ case "Enter": {
135
+ e.preventDefault();
136
+ const option = options[highlightedIndex.value];
137
+ if (option) {
138
+ select(option.value);
139
+ }
140
+ break;
141
+ }
142
+ case "Escape":
143
+ e.preventDefault();
144
+ isOpen.value = false;
145
+ break;
146
+ }
147
+ }
148
+ function onClickOutside(e) {
149
+ if (root.value && !root.value.contains(e.target)) {
150
+ isOpen.value = false;
151
+ }
152
+ }
153
+ watch(isOpen, (open) => {
154
+ if (open) {
155
+ document.addEventListener("click", onClickOutside, true);
156
+ } else {
157
+ document.removeEventListener("click", onClickOutside, true);
158
+ }
159
+ });
160
+ onBeforeUnmount(() => {
161
+ document.removeEventListener("click", onClickOutside, true);
162
+ });
163
+ </script>
164
+
165
+ <style>
166
+ .bk .bk-config-filter-select {
167
+
168
+ position: relative;
169
+
170
+ height: 100%
171
+ }
172
+
173
+ .bk .bk-config-filter-select > button {
174
+
175
+ display: flex;
176
+
177
+ height: 100%;
178
+
179
+ width: 100%;
180
+
181
+ cursor: pointer;
182
+
183
+ align-items: center;
184
+
185
+ justify-content: space-between;
186
+
187
+ padding-left: 10px;
188
+
189
+ padding-right: 10px;
190
+
191
+ text-align: left;
192
+
193
+ min-width: 150px
194
+ }
195
+
196
+ .bk .bk-config-filter-select > button > div:first-child {
197
+
198
+ display: flex;
199
+
200
+ height: 100%;
201
+
202
+ flex-direction: column;
203
+
204
+ justify-content: center;
205
+
206
+ gap: 5px
207
+ }
208
+
209
+ .bk .bk-config-filter-select > button > .bk-icon {
210
+
211
+ height: 25px;
212
+
213
+ width: 25px;
214
+
215
+ flex-shrink: 0;
216
+
217
+ --bk-tw-text-opacity: 1;
218
+
219
+ color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1));
220
+
221
+ transition-property: transform;
222
+
223
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
224
+
225
+ transition-duration: 150ms
226
+ }
227
+
228
+ .bk .bk-config-filter-select > button > .bk-icon svg {
229
+
230
+ fill: currentColor
231
+ }
232
+
233
+ .bk .bk-config-filter-select > button .bk-config-filter-select-label {
234
+
235
+ font-size: 12px;
236
+
237
+ line-height: 16px;
238
+
239
+ font-weight: 600;
240
+
241
+ text-transform: uppercase;
242
+
243
+ line-height: 1;
244
+
245
+ letter-spacing: 0.025em;
246
+
247
+ --bk-tw-text-opacity: 1;
248
+
249
+ color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1))
250
+ }
251
+
252
+ .bk .bk-config-filter-select > button .bk-config-filter-select-value {
253
+
254
+ display: block;
255
+
256
+ max-width: 100%;
257
+
258
+ overflow: hidden;
259
+
260
+ text-overflow: ellipsis;
261
+
262
+ white-space: nowrap;
263
+
264
+ font-size: 14px;
265
+
266
+ line-height: 20px;
267
+
268
+ font-weight: 600;
269
+
270
+ line-height: 1 !important;
271
+
272
+ --bk-tw-text-opacity: 1;
273
+
274
+ color: rgb(var(--bk-theme-mono-900) / var(--bk-tw-text-opacity, 1))
275
+ }
276
+
277
+ .bk .bk-config-filter-select.bk-is-open > button > .bk-icon {
278
+
279
+ --bk-tw-rotate: 180deg;
280
+
281
+ transform: translate(var(--bk-tw-translate-x), var(--bk-tw-translate-y)) rotate(var(--bk-tw-rotate)) skewX(var(--bk-tw-skew-x)) skewY(var(--bk-tw-skew-y)) scaleX(var(--bk-tw-scale-x)) scaleY(var(--bk-tw-scale-y))
282
+ }
283
+
284
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown {
285
+
286
+ position: absolute;
287
+
288
+ top: 100%;
289
+
290
+ left: 0px;
291
+
292
+ z-index: 50;
293
+
294
+ max-height: 300px;
295
+
296
+ width: 100%;
297
+
298
+ overflow: auto;
299
+
300
+ border-width: 1px;
301
+
302
+ --bk-tw-border-opacity: 1;
303
+
304
+ border-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
305
+
306
+ --bk-tw-bg-opacity: 1;
307
+
308
+ background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
309
+
310
+ --bk-tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
311
+
312
+ --bk-tw-shadow-colored: 0 10px 15px -3px var(--bk-tw-shadow-color), 0 4px 6px -4px var(--bk-tw-shadow-color);
313
+
314
+ box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow)
315
+ }
316
+
317
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown .bk-config-filter-select-search {
318
+
319
+ position: sticky;
320
+
321
+ top: 0px;
322
+
323
+ border-bottom-width: 1px;
324
+
325
+ --bk-tw-border-opacity: 1;
326
+
327
+ border-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
328
+
329
+ --bk-tw-bg-opacity: 1;
330
+
331
+ background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
332
+
333
+ padding: 15px
334
+ }
335
+
336
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown ul {
337
+
338
+ padding-top: 3px;
339
+
340
+ padding-bottom: 3px
341
+ }
342
+
343
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown li button {
344
+
345
+ width: 100%;
346
+
347
+ cursor: pointer;
348
+
349
+ overflow: hidden;
350
+
351
+ text-overflow: ellipsis;
352
+
353
+ white-space: nowrap;
354
+
355
+ padding-left: 20px;
356
+
357
+ padding-right: 20px;
358
+
359
+ padding-top: 8px;
360
+
361
+ padding-bottom: 8px;
362
+
363
+ text-align: left;
364
+
365
+ font-size: 14px;
366
+
367
+ line-height: 20px;
368
+
369
+ --bk-tw-text-opacity: 1;
370
+
371
+ color: rgb(var(--bk-theme-mono-900) / var(--bk-tw-text-opacity, 1))
372
+ }
373
+
374
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown li button:hover {
375
+
376
+ --bk-tw-bg-opacity: 1;
377
+
378
+ background-color: rgb(var(--bk-theme-accent-50) / var(--bk-tw-bg-opacity, 1));
379
+
380
+ --bk-tw-text-opacity: 1;
381
+
382
+ color: rgb(var(--bk-theme-accent-900) / var(--bk-tw-text-opacity, 1))
383
+ }
384
+
385
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown li button.bk-is-highlighted {
386
+
387
+ --bk-tw-bg-opacity: 1;
388
+
389
+ background-color: rgb(var(--bk-theme-accent-50) / var(--bk-tw-bg-opacity, 1));
390
+
391
+ --bk-tw-text-opacity: 1;
392
+
393
+ color: rgb(var(--bk-theme-accent-900) / var(--bk-tw-text-opacity, 1))
394
+ }
395
+
396
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown li button.bk-is-active {
397
+
398
+ --bk-tw-bg-opacity: 1;
399
+
400
+ background-color: rgb(var(--bk-theme-accent-100) / var(--bk-tw-bg-opacity, 1));
401
+
402
+ font-weight: 600;
403
+
404
+ --bk-tw-text-opacity: 1;
405
+
406
+ color: rgb(var(--bk-theme-accent-900) / var(--bk-tw-text-opacity, 1))
407
+ }
408
+
409
+ .bk .bk-config-filter-select .bk-config-filter-select-dropdown .bk-config-filter-select-empty {
410
+
411
+ padding-left: 20px;
412
+
413
+ padding-right: 20px;
414
+
415
+ padding-top: 10px;
416
+
417
+ padding-bottom: 10px;
418
+
419
+ font-size: 14px;
420
+
421
+ line-height: 20px;
422
+
423
+ font-style: italic;
424
+
425
+ --bk-tw-text-opacity: 1;
426
+
427
+ color: rgb(var(--bk-theme-mono-400) / var(--bk-tw-text-opacity, 1))
428
+ }
429
+ </style>
@@ -0,0 +1,22 @@
1
+ import type { PluginConfigInput } from '#blokkli/editor/types/pluginConfig';
2
+ type __VLS_Props = {
3
+ filters: PluginConfigInput[];
4
+ modelValue: Record<string, any>;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ before?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: Record<string, any>) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,150 @@
1
+ <template>
2
+ <div class="bk-plugin-config-form-inline">
3
+ <slot name="before" />
4
+ <div v-for="filter in filters" :key="filter.name">
5
+ <label v-if="filter.type === 'text'" class="bk-form-text">
6
+ <Icon name="bk_mdi_search" />
7
+ <input
8
+ :value="modelValue[filter.name]"
9
+ type="text"
10
+ :placeholder="filter.placeholder"
11
+ @change="
12
+ emit('update:modelValue', {
13
+ ...modelValue,
14
+ [filter.name]: $event.target.value
15
+ })
16
+ "
17
+ />
18
+ </label>
19
+ <FilterSelect
20
+ v-else-if="filter.type === 'options'"
21
+ :model-value="modelValue[filter.name]"
22
+ :label="filter.label"
23
+ :options="filter.options"
24
+ @update:model-value="
25
+ emit('update:modelValue', {
26
+ ...modelValue,
27
+ [filter.name]: $event
28
+ })
29
+ "
30
+ />
31
+ <FormToggle
32
+ v-else-if="filter.type === 'checkbox'"
33
+ :model-value="modelValue[filter.name]"
34
+ :label="filter.label"
35
+ @update:model-value="
36
+ emit('update:modelValue', {
37
+ ...modelValue,
38
+ [filter.name]: $event
39
+ })
40
+ "
41
+ />
42
+ </div>
43
+ </div>
44
+ </template>
45
+
46
+ <script setup>
47
+ import { FormToggle, Icon } from "#blokkli/editor/components";
48
+ import FilterSelect from "./FilterSelect/index.vue";
49
+ defineProps({
50
+ filters: { type: Array, required: true },
51
+ modelValue: { type: Object, required: true }
52
+ });
53
+ const emit = defineEmits(["update:modelValue"]);
54
+ </script>
55
+
56
+ <style>
57
+ .bk .bk-plugin-config-form-inline {
58
+ position: relative;
59
+ z-index: 5000;
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ column-gap: 1px;
63
+ white-space: nowrap;
64
+ --bk-tw-bg-opacity: 1;
65
+ background-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-bg-opacity, 1));
66
+ flex: 0 0 auto
67
+ }
68
+
69
+ .bk .bk-plugin-config-form-inline > div {
70
+ height: 54px;
71
+ flex: 1 1 0%;
72
+ --bk-tw-bg-opacity: 1;
73
+ background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1))
74
+ }
75
+
76
+ .bk .bk-plugin-config-form-inline > div:hover {
77
+ --bk-tw-bg-opacity: 1;
78
+ background-color: rgb(var(--bk-theme-mono-100) / var(--bk-tw-bg-opacity, 1))
79
+ }
80
+
81
+ .bk .bk-plugin-config-form-inline > div {
82
+ border-bottom-width: 1px;
83
+ --bk-tw-border-opacity: 1;
84
+ border-bottom-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1))
85
+ }
86
+
87
+ .bk .bk-plugin-config-form-inline > div .bk-checkbox-toggle {
88
+ width: 100%;
89
+ cursor: pointer;
90
+ padding-top: 15px;
91
+ padding-bottom: 15px;
92
+ padding-left: 10px;
93
+ padding-right: 10px
94
+ }
95
+
96
+ .bk .bk-plugin-config-form-inline > div .bk-checkbox-toggle .bk-checkbox-toggle-label-label {
97
+ font-size: 14px;
98
+ line-height: 20px
99
+ }
100
+
101
+ .bk .bk-plugin-config-form-inline > div .bk-form-text {
102
+ position: relative
103
+ }
104
+
105
+ .bk .bk-plugin-config-form-inline > div .bk-form-text .bk-icon {
106
+ position: absolute;
107
+ top: 50%;
108
+ left: 5px;
109
+ z-index: 50;
110
+ width: 20px;
111
+ height: 20px;
112
+ --bk-tw-translate-y: -50%;
113
+ transform: translate(var(--bk-tw-translate-x), var(--bk-tw-translate-y)) rotate(var(--bk-tw-rotate)) skewX(var(--bk-tw-skew-x)) skewY(var(--bk-tw-skew-y)) scaleX(var(--bk-tw-scale-x)) scaleY(var(--bk-tw-scale-y));
114
+ --bk-tw-text-opacity: 1;
115
+ color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1))
116
+ }
117
+
118
+ .bk .bk-plugin-config-form-inline > div .bk-form-text .bk-icon svg {
119
+ fill: currentColor
120
+ }
121
+
122
+ .bk .bk-plugin-config-form-inline > div .bk-form-text input {
123
+ border-width: 0 !important;
124
+ background-color: transparent;
125
+ font-size: 14px;
126
+ line-height: 20px;
127
+ --bk-tw-shadow: 0 0 #0000 !important;
128
+ --bk-tw-shadow-colored: 0 0 #0000 !important;
129
+ box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow) !important;
130
+ outline-width: 0px !important
131
+ }
132
+
133
+ .bk .bk-plugin-config-form-inline > div .bk-form-text input:focus {
134
+ outline-width: 0px !important
135
+ }
136
+
137
+ .bk .bk-plugin-config-form-inline > div .bk-form-text:focus-within .bk-icon {
138
+ --bk-tw-text-opacity: 1;
139
+ color: rgb(var(--bk-theme-accent-700) / var(--bk-tw-text-opacity, 1))
140
+ }
141
+
142
+ .bk .bk-plugin-config-form-inline > div .bk-form-text > input {
143
+ display: block;
144
+ height: 100%;
145
+ width: 100%;
146
+ padding-left: 30px;
147
+ padding-right: 5px !important;
148
+ min-width: 200px
149
+ }
150
+ </style>
@@ -0,0 +1,22 @@
1
+ import type { PluginConfigInput } from '#blokkli/editor/types/pluginConfig';
2
+ type __VLS_Props = {
3
+ filters: PluginConfigInput[];
4
+ modelValue: Record<string, any>;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ before?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: Record<string, any>) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -9,8 +9,8 @@
9
9
  >
10
10
  <div class="bk-popup-title">
11
11
  <h2>{{ title }}</h2>
12
- <button class="bk-popup-close" @click="onClose">
13
- <Icon name="bk_mdi_close" />
12
+ <button class="_bk_p-20 _bk_hover:bg-mono-50 _bk_text-mono-500" @click="onClose">
13
+ <Icon name="bk_mdi_close" class="_bk_size-20" />
14
14
  </button>
15
15
  </div>
16
16
 
@@ -80,3 +80,78 @@ onBeforeUnmount(() => {
80
80
  }
81
81
  });
82
82
  </script>
83
+
84
+ <style>
85
+ .bk.bk-popup {
86
+ position: relative;
87
+ width: 100%;
88
+ hyphens: auto;
89
+ --bk-tw-bg-opacity: 1;
90
+ background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
91
+ --bk-tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
92
+ --bk-tw-shadow-colored: 0 20px 25px -5px var(--bk-tw-shadow-color), 0 8px 10px -6px var(--bk-tw-shadow-color);
93
+ box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
94
+ pointer-events: auto;
95
+ z-index: calc(var(--bk-z-index-base) + 210000) /* "tour-popup" */;
96
+ overflow: hidden;
97
+ border-width: 1px;
98
+ --bk-tw-border-opacity: 1;
99
+ border-color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-border-opacity, 1));
100
+ grid-area: viewport
101
+ }
102
+
103
+ .bk.bk-popup.bk-is-top-left {
104
+ align-self: flex-start;
105
+ justify-self: start
106
+ }
107
+
108
+ .bk.bk-popup.bk-is-bottom-right {
109
+ align-self: flex-end;
110
+ justify-self: end
111
+ }
112
+
113
+ @media (min-width: 1024px) {
114
+ .bk.bk-popup {
115
+ margin: 20px;
116
+ width: 360px;
117
+ border-radius: 8px
118
+ }
119
+ }
120
+
121
+ @media (min-width: 1280px) {
122
+ .bk.bk-popup {
123
+ width: 400px
124
+ }
125
+ }
126
+
127
+ .bk.bk-popup h2 {
128
+ font-weight: 700
129
+ }
130
+
131
+ @media (min-width: 1024px) {
132
+
133
+ .bk.bk-popup h2 {
134
+ font-size: 20px;
135
+ line-height: 28px
136
+ }
137
+ }
138
+
139
+ .bk.bk-popup .bk-button {
140
+ margin-top: 20px;
141
+ width: 100%
142
+ }
143
+
144
+ .bk.bk-popup .bk-popup-title {
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: space-between;
148
+ border-bottom-width: 1px;
149
+ --bk-tw-border-opacity: 1;
150
+ border-bottom-color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-border-opacity, 1));
151
+ padding-left: 20px
152
+ }
153
+
154
+ .bk.bk-popup .bk-popup-content {
155
+ padding: 20px
156
+ }
157
+ </style>