@gramlot/gramlot 0.3.41 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/assets/icons/align-center.svg +4 -0
  2. package/assets/icons/align-justify.svg +4 -0
  3. package/assets/icons/align-left.svg +4 -0
  4. package/assets/icons/align-right.svg +4 -0
  5. package/assets/icons/applications.svg +4 -0
  6. package/assets/icons/archive.svg +4 -0
  7. package/assets/icons/attachment.svg +4 -0
  8. package/assets/icons/bold.svg +4 -0
  9. package/assets/icons/book.svg +4 -0
  10. package/assets/icons/bookmark.svg +4 -0
  11. package/assets/icons/calendar.svg +4 -0
  12. package/assets/icons/cancel.svg +4 -0
  13. package/assets/icons/chart.svg +4 -1
  14. package/assets/icons/chat.svg +4 -0
  15. package/assets/icons/clock.svg +4 -0
  16. package/assets/icons/code.svg +4 -0
  17. package/assets/icons/collapse.svg +4 -0
  18. package/assets/icons/columns.svg +4 -0
  19. package/assets/icons/confirm.svg +4 -0
  20. package/assets/icons/copy.svg +4 -0
  21. package/assets/icons/cut.svg +4 -0
  22. package/assets/icons/database.svg +4 -0
  23. package/assets/icons/delete.svg +4 -0
  24. package/assets/icons/detach.svg +4 -0
  25. package/assets/icons/document.svg +4 -0
  26. package/assets/icons/download.svg +4 -0
  27. package/assets/icons/duplicate.svg +4 -0
  28. package/assets/icons/edit.svg +4 -0
  29. package/assets/icons/eraser.svg +4 -0
  30. package/assets/icons/expand.svg +4 -0
  31. package/assets/icons/export.svg +4 -0
  32. package/assets/icons/eye.svg +4 -0
  33. package/assets/icons/filter.svg +4 -0
  34. package/assets/icons/first.svg +4 -0
  35. package/assets/icons/folder.svg +4 -0
  36. package/assets/icons/group.svg +4 -0
  37. package/assets/icons/help.svg +4 -0
  38. package/assets/icons/home.svg +4 -0
  39. package/assets/icons/horizontal-rule.svg +4 -0
  40. package/assets/icons/image.svg +4 -0
  41. package/assets/icons/import.svg +4 -0
  42. package/assets/icons/indent.svg +4 -0
  43. package/assets/icons/info.svg +4 -0
  44. package/assets/icons/inspector.svg +4 -0
  45. package/assets/icons/italic.svg +4 -0
  46. package/assets/icons/last.svg +4 -0
  47. package/assets/icons/layers.svg +4 -0
  48. package/assets/icons/link.svg +4 -0
  49. package/assets/icons/list-bulleted.svg +4 -0
  50. package/assets/icons/list-numbered.svg +4 -0
  51. package/assets/icons/list.svg +4 -0
  52. package/assets/icons/lock.svg +4 -0
  53. package/assets/icons/logout.svg +4 -0
  54. package/assets/icons/navigation.svg +4 -0
  55. package/assets/icons/new.svg +4 -0
  56. package/assets/icons/next.svg +4 -0
  57. package/assets/icons/open.svg +4 -0
  58. package/assets/icons/outdent.svg +4 -0
  59. package/assets/icons/palette.svg +4 -0
  60. package/assets/icons/panel-bottom.svg +4 -0
  61. package/assets/icons/panel-left.svg +4 -0
  62. package/assets/icons/panel-right.svg +4 -0
  63. package/assets/icons/panel-top.svg +4 -0
  64. package/assets/icons/paragraph.svg +4 -0
  65. package/assets/icons/paste.svg +4 -0
  66. package/assets/icons/pause.svg +4 -0
  67. package/assets/icons/pin.svg +4 -0
  68. package/assets/icons/play.svg +4 -0
  69. package/assets/icons/previous.svg +4 -0
  70. package/assets/icons/print.svg +4 -0
  71. package/assets/icons/redo.svg +4 -0
  72. package/assets/icons/refresh.svg +4 -0
  73. package/assets/icons/save.svg +4 -0
  74. package/assets/icons/search.svg +4 -0
  75. package/assets/icons/select-all.svg +4 -0
  76. package/assets/icons/send.svg +4 -0
  77. package/assets/icons/settings.svg +4 -0
  78. package/assets/icons/sort-ascending.svg +4 -0
  79. package/assets/icons/sort-descending.svg +4 -0
  80. package/assets/icons/stop.svg +4 -0
  81. package/assets/icons/strikethrough.svg +4 -0
  82. package/assets/icons/table.svg +4 -0
  83. package/assets/icons/tree.svg +4 -0
  84. package/assets/icons/underline.svg +4 -0
  85. package/assets/icons/undo.svg +4 -0
  86. package/assets/icons/unlock.svg +4 -0
  87. package/assets/icons/upload.svg +4 -0
  88. package/assets/icons/user.svg +4 -0
  89. package/assets/icons/warning.svg +4 -0
  90. package/assets/icons/zoom-in.svg +4 -0
  91. package/assets/icons/zoom-out.svg +4 -0
  92. package/dist/components/charts/__init__.py +1 -1
  93. package/dist/components/charts/assets/index.js +1 -1
  94. package/dist/components/charts/assets/libraries/vega.js +11 -11
  95. package/dist/components/charts/grammar.json +2032 -72
  96. package/dist/components/editors/__init__.py +1 -1
  97. package/dist/components/editors/assets/collection.js +1 -1
  98. package/dist/components/editors/assets/index.js +1 -1
  99. package/dist/components/editors/assets/libraries/codemirror.js +30 -31
  100. package/dist/components/editors/assets/libraries/jodit.js +453 -447
  101. package/dist/components/editors/commands.json +113 -1
  102. package/dist/components/editors/grammar.json +12 -5
  103. package/dist/components/grid/__init__.py +1 -1
  104. package/dist/components/grid/assets/index.js +1 -1
  105. package/dist/components/grid/commands.json +4 -6
  106. package/dist/components/grid/grammar.json +112 -0
  107. package/dist/components/inputs/__init__.py +1 -1
  108. package/dist/components/inputs/assets/index.js +1 -1
  109. package/dist/components/inputs/grammar.json +5165 -359
  110. package/dist/components/layout/__init__.py +1 -1
  111. package/dist/components/layout/assets/collection.js +1 -0
  112. package/dist/components/layout/assets/index.js +1 -1
  113. package/dist/components/layout/grammar.json +433 -4
  114. package/dist/components/tree/__init__.py +1 -1
  115. package/dist/components/tree/assets/index.js +1 -1
  116. package/dist/components/tree/grammar.json +51 -0
  117. package/dist/components/typst/__init__.py +1 -1
  118. package/dist/components/typst/assets/collection.js +6 -6
  119. package/dist/components/typst/assets/index.js +1 -1
  120. package/dist/components/uploads/__init__.py +1 -1
  121. package/dist/components/uploads/assets/index.js +1 -1
  122. package/dist/components/uploads/grammar.json +66 -0
  123. package/dist/declared-collections.js +1 -1
  124. package/dist/gramlot.js +5486 -2029
  125. package/dist/gramlot.min.js +361 -138
  126. package/dist/libraries.json +6 -4
  127. package/dist/standard-collections.js +1 -1
  128. package/dist/standard-grammar.js +1 -1
  129. package/package.json +6 -2
  130. package/src/binding/ask-dialog.js +17 -3
  131. package/src/binding/providers.js +3 -2
  132. package/src/binding/remote.js +41 -6
  133. package/src/binding/runtime.js +30 -3
  134. package/src/builder/gramlot-builder.d.ts +3 -1
  135. package/src/builder/gramlot-builder.js +77 -26
  136. package/src/builder/source.js +78 -15
  137. package/src/builder/xml-recipe.js +144 -0
  138. package/src/chat-file-types.js +13 -0
  139. package/src/chat.d.ts +1 -0
  140. package/src/chat.js +35 -25
  141. package/src/commands.d.ts +1 -1
  142. package/src/commands.js +1 -1
  143. package/src/components/border-container.js +64 -6
  144. package/src/components/buttons.js +26 -31
  145. package/src/components/chart-bar3d-options.js +0 -1
  146. package/src/components/chart-boxplot-options.js +1 -1
  147. package/src/components/chart-candlestick-options.js +1 -1
  148. package/src/components/chart-engines/echarts-options.js +6 -5
  149. package/src/components/chart-engines/echarts.js +27 -10
  150. package/src/components/chart-engines/plotly-map.js +1 -1
  151. package/src/components/chart-engines/plotly.js +21 -14
  152. package/src/components/chart-engines/uplot.js +17 -11
  153. package/src/components/chart-engines/vega.js +17 -11
  154. package/src/components/chart-funnel-options.js +1 -1
  155. package/src/components/chart-geographic-options.js +2 -2
  156. package/src/components/chart-heatmap-options.js +1 -1
  157. package/src/components/chart-map-bar3d-options.js +2 -2
  158. package/src/components/chart-map-options.js +2 -2
  159. package/src/components/chart-pane.js +5 -5
  160. package/src/components/chart-parallel-options.js +1 -1
  161. package/src/components/chart-radar-options.js +1 -1
  162. package/src/components/chart-renderer.js +6 -1
  163. package/src/components/chart-sankey-options.js +1 -1
  164. package/src/components/chart-spatial-options.js +6 -2
  165. package/src/components/chart-sunburst-options.js +13 -1
  166. package/src/components/chart-theme.js +14 -0
  167. package/src/components/chart-treemap-options.js +1 -1
  168. package/src/components/chart-type-data.js +24 -4
  169. package/src/components/charts.js +7 -6
  170. package/src/components/check-box-text-editor.js +1 -0
  171. package/src/components/check-box-text.js +2 -0
  172. package/src/components/check-box-tree.js +1 -1
  173. package/src/components/choice-editor.js +5 -4
  174. package/src/components/choice-field-styles.js +9 -1
  175. package/src/components/code-mirror-engine.js +19 -5
  176. package/src/components/code-mirror-gramlot.js +85 -0
  177. package/src/components/code-mirror.js +3 -2
  178. package/src/components/drawing.js +43 -14
  179. package/src/components/editor-commands.js +69 -0
  180. package/src/components/editor-options.js +1 -1
  181. package/src/components/editors.js +5 -3
  182. package/src/components/form-tray-pane.js +18 -0
  183. package/src/components/graphical-ranges.js +190 -0
  184. package/src/components/grid-check-sets.js +39 -3
  185. package/src/components/grid-footer.js +6 -1
  186. package/src/components/grid-header-interaction.js +3 -3
  187. package/src/components/grid-styles.js +30 -5
  188. package/src/components/grid-tools.js +15 -7
  189. package/src/components/grid.js +109 -15
  190. package/src/components/html-editor-commands.js +61 -0
  191. package/src/components/html-editor.js +18 -3
  192. package/src/components/inputs.js +94 -23
  193. package/src/components/jodit-engine.js +110 -7
  194. package/src/components/layout.js +3 -2
  195. package/src/components/menus.js +89 -26
  196. package/src/components/numeric-range.js +39 -0
  197. package/src/components/selected-container.js +123 -64
  198. package/src/components/tab-bar.js +389 -0
  199. package/src/components/toolbar-icon-style.js +22 -0
  200. package/src/components/toolbar-overflow.js +74 -12
  201. package/src/components/tray-base.js +528 -0
  202. package/src/components/tray-pane.js +41 -518
  203. package/src/components/tree.js +56 -4
  204. package/src/components/typed-editor.js +5 -2
  205. package/src/components/typst-preview.js +3 -3
  206. package/src/components/upload-blocks.js +88 -0
  207. package/src/components/upload-engine.js +21 -31
  208. package/src/components/uploader.js +168 -47
  209. package/src/editing-session.js +2 -1
  210. package/src/gramlot.js +6 -3
  211. package/src/handlers/dom-handler.d.ts +2 -0
  212. package/src/handlers/dom-handler.js +9 -0
  213. package/src/handlers/rpc-handler.d.ts +1 -1
  214. package/src/handlers/rpc-handler.js +2 -0
  215. package/src/handlers/source-handler.d.ts +5 -3
  216. package/src/handlers/source-handler.js +31 -13
  217. package/src/icons.js +84 -0
  218. package/src/ide-runtime.js +3 -1
  219. package/src/index-page-runtime.js +20 -5
  220. package/src/index-page-styles.js +1 -1
  221. package/src/index-theme.js +210 -3
  222. package/src/index.d.ts +7 -2
  223. package/src/index.js +7 -2
  224. package/src/libraries.js +4 -4
  225. package/src/object-extract.d.ts +7 -0
  226. package/src/object-extract.js +31 -0
  227. package/src/renderer/attributes.js +1 -1
  228. package/src/renderer/gramlot-renderer.d.ts +2 -2
  229. package/src/renderer/gramlot-renderer.js +4 -1
  230. package/src/server/chat-attachments.js +139 -0
  231. package/src/server/chat.d.ts +33 -0
  232. package/src/server/chat.js +168 -0
  233. package/src/server/database-selectors.d.ts +6 -0
  234. package/src/server/database-selectors.js +13 -0
  235. package/src/server/gramlot-file-server.js +6 -1
  236. package/src/server/gramlot-server.d.ts +19 -3
  237. package/src/server/gramlot-server.js +149 -19
  238. package/src/server/index-page.d.ts +10 -0
  239. package/src/server/index-page.js +92 -8
  240. package/src/server/index.d.ts +1 -1
  241. package/src/server/index.js +1 -1
  242. package/src/server/page-base.js +4 -0
  243. package/src/server/page-store.d.ts +21 -0
  244. package/src/server/page-store.js +219 -0
  245. package/src/server/page.d.ts +6 -1
  246. package/src/server/page.js +5 -1
  247. package/src/server/store-recipe.js +102 -0
  248. package/src/server/toolbar-icon-name.d.ts +93 -0
  249. package/src/server/upload.d.ts +2 -0
  250. package/src/server/upload.js +36 -18
  251. package/src/server/visual-editor.js +4 -2
  252. package/src/tree-store.d.ts +5 -1
  253. package/src/tree-store.js +11 -2
  254. package/src/view/choice-focus.js +17 -0
  255. package/src/view/html.js +21 -1
  256. package/src/view/labelbox.js +6 -1
  257. package/src/view/menu.js +9 -3
  258. package/src/visual-editor.d.ts +1 -0
  259. package/src/visual-editor.js +10 -5
  260. package/themes/gramlot-base/theme.css +60 -28
  261. package/themes/gramlot-compact/theme.css +2 -0
  262. package/themes/gramlot-index/icons/align-center.svg +4 -0
  263. package/themes/gramlot-index/icons/align-justify.svg +4 -0
  264. package/themes/gramlot-index/icons/align-left.svg +4 -0
  265. package/themes/gramlot-index/icons/align-right.svg +4 -0
  266. package/themes/gramlot-index/icons/applications.svg +4 -0
  267. package/themes/gramlot-index/icons/archive.svg +4 -0
  268. package/themes/gramlot-index/icons/attachment.svg +4 -0
  269. package/themes/gramlot-index/icons/bold.svg +4 -0
  270. package/themes/gramlot-index/icons/book.svg +4 -0
  271. package/themes/gramlot-index/icons/bookmark.svg +4 -0
  272. package/themes/gramlot-index/icons/calendar.svg +4 -0
  273. package/themes/gramlot-index/icons/cancel.svg +4 -0
  274. package/themes/gramlot-index/icons/chart.svg +4 -0
  275. package/themes/gramlot-index/icons/chat.svg +4 -0
  276. package/themes/gramlot-index/icons/clock.svg +4 -0
  277. package/themes/gramlot-index/icons/code.svg +4 -0
  278. package/themes/gramlot-index/icons/collapse.svg +4 -0
  279. package/themes/gramlot-index/icons/columns.svg +4 -0
  280. package/themes/gramlot-index/icons/confirm.svg +4 -0
  281. package/themes/gramlot-index/icons/copy.svg +4 -0
  282. package/themes/gramlot-index/icons/cut.svg +4 -0
  283. package/themes/gramlot-index/icons/database.svg +4 -0
  284. package/themes/gramlot-index/icons/delete.svg +4 -0
  285. package/themes/gramlot-index/icons/detach.svg +4 -0
  286. package/themes/gramlot-index/icons/document.svg +4 -0
  287. package/themes/gramlot-index/icons/download.svg +4 -0
  288. package/themes/gramlot-index/icons/duplicate.svg +4 -0
  289. package/themes/gramlot-index/icons/edit.svg +4 -0
  290. package/themes/gramlot-index/icons/eraser.svg +4 -0
  291. package/themes/gramlot-index/icons/expand.svg +4 -0
  292. package/themes/gramlot-index/icons/export.svg +4 -0
  293. package/themes/gramlot-index/icons/eye.svg +4 -0
  294. package/themes/gramlot-index/icons/filter.svg +4 -0
  295. package/themes/gramlot-index/icons/first.svg +4 -0
  296. package/themes/gramlot-index/icons/folder.svg +4 -0
  297. package/themes/gramlot-index/icons/group.svg +4 -0
  298. package/themes/gramlot-index/icons/help.svg +4 -0
  299. package/themes/gramlot-index/icons/home.svg +4 -0
  300. package/themes/gramlot-index/icons/horizontal-rule.svg +4 -0
  301. package/themes/gramlot-index/icons/image.svg +4 -0
  302. package/themes/gramlot-index/icons/import.svg +4 -0
  303. package/themes/gramlot-index/icons/indent.svg +4 -0
  304. package/themes/gramlot-index/icons/info.svg +4 -0
  305. package/themes/gramlot-index/icons/inspector.svg +4 -0
  306. package/themes/gramlot-index/icons/italic.svg +4 -0
  307. package/themes/gramlot-index/icons/last.svg +4 -0
  308. package/themes/gramlot-index/icons/layers.svg +4 -0
  309. package/themes/gramlot-index/icons/link.svg +4 -0
  310. package/themes/gramlot-index/icons/list-bulleted.svg +4 -0
  311. package/themes/gramlot-index/icons/list-numbered.svg +4 -0
  312. package/themes/gramlot-index/icons/list.svg +4 -0
  313. package/themes/gramlot-index/icons/lock.svg +4 -0
  314. package/themes/gramlot-index/icons/logout.svg +4 -0
  315. package/themes/gramlot-index/icons/navigation.svg +4 -0
  316. package/themes/gramlot-index/icons/new.svg +4 -0
  317. package/themes/gramlot-index/icons/next.svg +4 -0
  318. package/themes/gramlot-index/icons/open.svg +4 -0
  319. package/themes/gramlot-index/icons/outdent.svg +4 -0
  320. package/themes/gramlot-index/icons/palette.svg +4 -0
  321. package/themes/gramlot-index/icons/panel-bottom.svg +4 -0
  322. package/themes/gramlot-index/icons/panel-left.svg +4 -0
  323. package/themes/gramlot-index/icons/panel-right.svg +4 -0
  324. package/themes/gramlot-index/icons/panel-top.svg +4 -0
  325. package/themes/gramlot-index/icons/paragraph.svg +4 -0
  326. package/themes/gramlot-index/icons/paste.svg +4 -0
  327. package/themes/gramlot-index/icons/pause.svg +4 -0
  328. package/themes/gramlot-index/icons/pin.svg +4 -0
  329. package/themes/gramlot-index/icons/play.svg +4 -0
  330. package/themes/gramlot-index/icons/previous.svg +4 -0
  331. package/themes/gramlot-index/icons/print.svg +4 -0
  332. package/themes/gramlot-index/icons/redo.svg +4 -0
  333. package/themes/gramlot-index/icons/refresh.svg +4 -0
  334. package/themes/gramlot-index/icons/save.svg +4 -0
  335. package/themes/gramlot-index/icons/search.svg +4 -0
  336. package/themes/gramlot-index/icons/select-all.svg +4 -0
  337. package/themes/gramlot-index/icons/send.svg +4 -0
  338. package/themes/gramlot-index/icons/settings.svg +4 -0
  339. package/themes/gramlot-index/icons/sort-ascending.svg +4 -0
  340. package/themes/gramlot-index/icons/sort-descending.svg +4 -0
  341. package/themes/gramlot-index/icons/stop.svg +4 -0
  342. package/themes/gramlot-index/icons/strikethrough.svg +4 -0
  343. package/themes/gramlot-index/icons/table.svg +4 -0
  344. package/themes/gramlot-index/icons/tree.svg +4 -0
  345. package/themes/gramlot-index/icons/underline.svg +4 -0
  346. package/themes/gramlot-index/icons/undo.svg +4 -0
  347. package/themes/gramlot-index/icons/unlock.svg +4 -0
  348. package/themes/gramlot-index/icons/upload.svg +4 -0
  349. package/themes/gramlot-index/icons/user.svg +4 -0
  350. package/themes/gramlot-index/icons/warning.svg +4 -0
  351. package/themes/gramlot-index/icons/zoom-in.svg +4 -0
  352. package/themes/gramlot-index/icons/zoom-out.svg +4 -0
  353. package/themes/gramlot-index/icons.json +93 -0
  354. package/themes/gramlot-index/theme.css +24 -0
  355. package/themes/joanna/theme.css +2 -0
  356. package/themes/mela/theme.css +2 -0
  357. package/themes/mimi/theme.css +2 -0
  358. package/tools/gramlot-tools-inspector.js +11 -3
package/src/view/html.js CHANGED
@@ -1,3 +1,4 @@
1
+ import {bindIcons, renderIcon, projectIconAttributes} from '../icons.js';
1
2
  import {createLabelbox, projectLabelbox, labelboxStyle} from './labelbox.js';
2
3
  import {commandFrame, frameRecipient} from './menu-command.js';
3
4
  import {randomId} from '../random-id.js';
@@ -39,7 +40,8 @@ function domPropertyName(name) {
39
40
  * names and style arrive adapted by the renderers (GramlotHtmlRenderer, GramlotSvgRenderer).
40
41
  */
41
42
  export class HtmlElement {
42
- constructor({format, metadataAttributes = [], invokeScript = null, callLogic = null, reportError = null, uploadContext = null} = {}) {
43
+ constructor({icons, format, metadataAttributes = [], invokeScript = null, callLogic = null, reportError = null, uploadContext = null} = {}) {
44
+ this.icons = icons;
43
45
  this.format = format;
44
46
  this.uploadContext = uploadContext;
45
47
  this.invokeScript = invokeScript;
@@ -115,6 +117,7 @@ export class HtmlElement {
115
117
  tag ??= defaultTag;
116
118
  const element = namespace === XHTML_NS
117
119
  ? document.createElement(tag) : document.createElementNS(namespace, tag);
120
+ bindIcons(element, this.icons);
118
121
  if (meta.gramlot_component && element.constructor.gramlotComponent?.tag !== tag) {
119
122
  throw new Error(`Component collection must be activated before rendering ${tag}`);
120
123
  }
@@ -280,10 +283,26 @@ export class HtmlElement {
280
283
  if (attrs.lbl_variant === 'card' && attrs.lbl_position == null) delete defaults.lbl_position;
281
284
  projectLabelbox(record.labelbox, {...defaults, ...attrs}, adapt);
282
285
  }
286
+ const iconAttributes = attrs;
283
287
  if (this.definition(node).meta.gramlot_component) {
284
288
  // A component reads its data and structure by address when it draws; the path of the
285
289
  // Data change that asked for the projection (null otherwise) tells it what changed.
286
290
  attrs = element.projectAttributes(attrs, adapt, change?.path ?? null);
291
+ const slot = element.shadowRoot?.querySelector('[iconslot=""]');
292
+ if (slot && Object.hasOwn(iconAttributes, 'icon')) {
293
+ renderIcon(element, slot, element.entryIcon ?? iconAttributes.icon);
294
+ attrs = {...attrs}; delete attrs.icon;
295
+ }
296
+ } else if (isHtml && !this.definition(node).meta.void && (attrs.icon != null || record.icon)) {
297
+ if (!record.icon) {
298
+ record.icon = element.ownerDocument.createElement("span");
299
+ record.icon.setAttribute("aria-hidden", "true");
300
+ record.icon.style.cssText = "display:inline-flex;vertical-align:middle;margin-inline-end:.35em";
301
+ element.prepend(record.icon);
302
+ }
303
+ renderIcon(element, record.icon, attrs.icon);
304
+ record.icon.hidden = !attrs.icon;
305
+ attrs = {...attrs}; delete attrs.icon;
287
306
  }
288
307
  if (record.labelbox) {
289
308
  attrs = Object.fromEntries(Object.entries(attrs).filter(([name]) =>
@@ -293,6 +312,7 @@ export class HtmlElement {
293
312
  record.presentationSlot = attrs.slot;
294
313
  delete attrs.slot;
295
314
  }
315
+ attrs = projectIconAttributes(iconAttributes, attrs, element.ownerDocument);
296
316
  attrs = Object.fromEntries(sourceAttributeItems({...attrs, ...renderAttributes}));
297
317
  const controlled = ControlAdapter.classFor(element, attrs) !== null;
298
318
  if (textValue === DEFAULT_TEXT) textValue = this.text(node);
@@ -28,8 +28,12 @@ export const labelboxStyle = `.gramlot-labelbox>.label-box>.label-menu-trigger{f
28
28
  .gramlot-labelbox[data-variant='card']>.control-box{padding:12px}
29
29
  .gramlot-labelbox[data-movable]>.label-box{cursor:grab;touch-action:none;user-select:none}
30
30
  .gramlot-labelbox[data-movable]>.label-box>label{cursor:inherit;user-select:none;-webkit-user-select:none}
31
+ gramlot-form-tray-pane > .gramlot-labelbox[data-selected]{outline:1px solid #dd8200;outline-offset:-1px}
31
32
  .gramlot-labelbox[data-selected]{outline:2px solid var(--gramlot-focus-ring,var(--gramlot-brand-blue,#3766b5));outline-offset:-2px}
32
- .gramlot-labelbox[data-tray-block]>.label-box{position:relative;padding-inline:88px 32px}
33
+ .gramlot-labelbox[data-tray-block]>.label-box{position:relative}
34
+ gramlot-tray-pane > .gramlot-labelbox[data-tray-block]>.label-box{padding-inline:88px 32px}
35
+ gramlot-form-tray-pane > .gramlot-labelbox>.label-box{font-weight:600}
36
+ gramlot-form-tray-pane > .gramlot-labelbox[data-selected]>.label-box{padding-inline:30px}
33
37
  .gramlot-labelbox>.label-box>.tray-settings-button{position:absolute;left:31px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;padding:4px;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
34
38
  .gramlot-labelbox>.label-box>button[hidden]{display:none}
35
39
  .gramlot-labelbox>.label-box>.tray-settings-button[data-kind=layer]{left:59px}
@@ -44,6 +48,7 @@ export const labelboxStyle = `.gramlot-labelbox>.label-box>.label-menu-trigger{f
44
48
  .tray-settings-button:focus-visible{outline:2px solid var(--gramlot-focus-ring,Highlight);outline-offset:-2px}
45
49
 
46
50
  .gramlot-labelbox>.label-box>.tray-rotate{position:absolute;left:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;padding:4px;border:0;border-radius:4px;background:transparent;color:inherit;cursor:grab;touch-action:none;opacity:.7}
51
+ .gramlot-labelbox>.label-box>.tray-rotate[hidden]{display:none}
47
52
  .tray-rotate svg{width:18px;height:18px;pointer-events:none}
48
53
  .gramlot-labelbox>.label-box>.tray-rotate:hover{opacity:1;background:color-mix(in srgb,currentColor 12%,transparent)}
49
54
  .tray-rotate:focus-visible{opacity:1;outline:2px solid var(--gramlot-focus-ring,Highlight);outline-offset:-2px}
package/src/view/menu.js CHANGED
@@ -2,9 +2,10 @@
2
2
  import {Bag} from '@genrojs/bag';
3
3
  import {SourceBag, sourceTarget} from '@genrojs/builders';
4
4
  import {toTytx} from '@genrojs/tytx';
5
+ import {resolverMenuLines} from '../builder/source.js';
5
6
  import {RpcResolver} from '../binding/rpc-resolver.js';
6
7
 
7
- const ENTRY_FIELDS=new Set(['kind','command','caption','icon','iconSrc','tooltip','disabled','hidden','checked','favorite','parameters','resolver','cacheTime','sync']);
8
+ const ENTRY_FIELDS=new Set(['kind','command','caption','icon','tooltip','disabled','hidden','checked','favorite','parameters','resolver','cacheTime','sync']);
8
9
  function entries(bag,ancestors=new Set()) {
9
10
  if (!(bag instanceof Bag) || ancestors.has(bag)) throw new TypeError('Menu resolver must return an acyclic Bag');
10
11
  const parents=new Set([...ancestors,bag]);
@@ -36,8 +37,13 @@ function project(menu,records) {
36
37
  let node=menu.value instanceof SourceBag?menu.value.getNodes().find(node=>node.label===item.label):null;
37
38
  const wasSubmenu=node?.value instanceof SourceBag;
38
39
  if(node && (wasSubmenu!==(kind==='submenu') || (node.value==='-')!==(kind==='separator'))){menu.value.popNode(node.label);node=null;}
39
- if(!node)node=sourceTarget(handle.menuline(value,{...attrs,node_label:item.label}));
40
- else {
40
+ if(!node) {
41
+ const {caption, ...fields} = attrs;
42
+ node = sourceTarget(handle.menuline(value, {...fields, node_label:item.label}));
43
+ resolverMenuLines.add(node);
44
+ if (caption != null) node.setAttr({caption});
45
+ } else {
46
+ resolverMenuLines.add(node);
41
47
  const previous=Object.keys(node.attr).filter(key=>ENTRY_FIELDS.has(key)&&!Object.hasOwn(attrs,key));
42
48
  node.setAttr({...Object.fromEntries(previous.map(key=>[key,null])),...attrs});
43
49
  }
@@ -13,6 +13,7 @@ export class VisualEditorLogic {
13
13
  chatPickAttachments(node:SourceBagNode, ...args:unknown[]):unknown;
14
14
  chatRenderAttachments(node:SourceBagNode, ...args:unknown[]):unknown;
15
15
  chatRemoveAttachment(node:SourceBagNode, ...args:unknown[]):unknown;
16
+ chatDraftKey(node:SourceBagNode, ...args:unknown[]):unknown;
16
17
  chatSend(node:SourceBagNode, ...args:unknown[]):unknown;
17
18
  assistantState(node:SourceBagNode, ...args:unknown[]):unknown;
18
19
  assistantApply(node:SourceBagNode, ...args:unknown[]):unknown;
@@ -5,7 +5,7 @@ import {SourcePicker} from './source-picker.js';
5
5
  import {appearanceStyles, paletteStyles} from './index-page-styles.js';
6
6
  import {toolIcons} from './visual-editor-icons.js';
7
7
  import {Bag} from '@genrojs/bag';
8
- import {chatRender, chatSend, chatCompleted, chatReset, chatResize, chatPickAttachments, chatRenderAttachments, chatRemoveAttachment} from './chat.js';
8
+ import {chatRender, chatSend, chatDraftKey, chatCompleted, chatReset, chatResize, chatPickAttachments, chatRenderAttachments, chatRemoveAttachment} from './chat.js';
9
9
 
10
10
  export function visualEditorScope(node) {
11
11
  for (let scope = node; scope; scope = scope.parentNode) {
@@ -30,14 +30,14 @@ const catalogueSections = [
30
30
  ['html.document', 'Document and metadata', 'html head body title base meta link style script noscript template slot'],
31
31
  ['components.layout.containers', 'Containers', 'borderContainer contentPane framePane stackContainer tabContainer'],
32
32
  ['components.layout.windows', 'Windows', 'dialog floatingPane'],
33
- ['components.layout.composition', 'Composition', 'formlet groupBox trayPane transformPane'],
33
+ ['components.layout.composition', 'Composition', 'formlet groupBox trayPane formTrayPane transformPane'],
34
34
  ['components.inputs.text', 'Text', 'textbox textBoxArea passwordbox'],
35
35
  ['components.inputs.choices', 'Choices', 'checkbox radioButton radioButtonText checkBoxText filteringSelect comboBox callbackSelect dbSelect dbComboBox'],
36
- ['components.inputs.numbers', 'Numbers and colors', 'numberTextBox horizontalSlider verticalSlider colorpicker'],
36
+ ['components.inputs.numbers', 'Numbers and colors', 'numberTextBox horizontalSlider verticalSlider knob starRating colorpicker'],
37
37
  ['components.inputs.dates', 'Dates and times', 'dateTextBox timeTextBox dateCalendar'],
38
38
  ['components.commands', 'Buttons and menus', 'button toggleButton dropDownButton menu menuline spacer'],
39
39
  ['components.data', 'Trees and grids', 'tree grid searchBox'],
40
- ['components.editors', 'Editors and previews', 'codeMirror htmlEditor htmlPreview markdownEditor markdownPreview typstPreview']
40
+ ['components.editors', 'Editors and previews', 'codeMirror htmlPreview markdownEditor markdownPreview typstPreview']
41
41
  ];
42
42
  const sectionTitles = {html:'HTML', components:'Gramlot', 'components.layout':'Layout', 'components.inputs':'Inputs'};
43
43
  const styleParameters = Object.fromEntries(['class','style','width','height','padding','margin','color','background']
@@ -82,6 +82,7 @@ export class VisualEditorLogic {
82
82
  chatPickAttachments(node) { return chatPickAttachments(this.page, node); }
83
83
  chatRenderAttachments(node, params) { return chatRenderAttachments(this.page, node, params); }
84
84
  chatRemoveAttachment(node) { return chatRemoveAttachment(this.page, node); }
85
+ chatDraftKey(node, event) { return chatDraftKey(this.page, node, event); }
85
86
  chatSend(node) {
86
87
  if (node.GET('.pending') || !node.GET('.conversation.ready') || !node.GET('.draft')?.trim()) return;
87
88
  const editor = visualEditorScope(node);
@@ -601,6 +602,10 @@ export class VisualEditorLogic {
601
602
  node.rootBuilder.binding.renderer.destination.ownerDocument.documentElement.setAttribute('data-theme', mode);
602
603
  }
603
604
  initializeEditor(node, {dataRoot}) {
605
+ const editor = visualEditorScope(node);
606
+ const main = node.rootBuilder.source.getItem('main');
607
+ const tree = editor.value.getNodeByAttr('id', editor.getAttr('visualEditorId') + '-source-tree');
608
+ tree.setAttr({storepath:'*S.' + main.relativePath(editor) + '.layout.center.design'});
604
609
  const scope = node.GET('.catalogueScope');
605
610
  validateCatalogue(scope);
606
611
  if (Array.isArray(scope)) for (const tag of scope) {
@@ -917,7 +922,7 @@ export class VisualEditorLogic {
917
922
  if (prefix === 'lbl') this.parameterField(node, heading, current.nodeTag, 'lbl', entries.lbl,
918
923
  'properties', current.getAttr('lbl'));
919
924
  else heading.span(title, {class:'visual-labelbox-title'});
920
- heading.button({iconSrc:toolIcons.properties, title:`Edit ${title.toLowerCase()} attributes`,
925
+ heading.button({icon:toolIcons.properties, title:`Edit ${title.toLowerCase()} attributes`,
921
926
  'aria-label':`Edit ${title.toLowerCase()} attributes`, class:'button--quiet',
922
927
  action:'toggleLabelboxAttributes', prefix});
923
928
  const choices = Object.entries(entries).filter(([name]) => name.startsWith(prefix + '_'));
@@ -36,12 +36,18 @@
36
36
  --gramlot-error: #b13d48;
37
37
  --gramlot-error-background: #fceef0;
38
38
 
39
+ --gramlot-button-height: 24px;
40
+ --gramlot-button-padding: 2px 8px;
41
+ --gramlot-button-background: color-mix(in srgb, var(--gramlot-surface) 84%, var(--gramlot-ink));
42
+ --gramlot-button-hover: color-mix(in srgb, var(--gramlot-surface) 74%, var(--gramlot-ink));
39
43
  --gramlot-button-icon-size: 24px;
40
44
  --gramlot-button-icon-padding: 5px;
41
45
  --gramlot-field-height: 2.75rem;
42
46
  --gramlot-field-padding: .55rem .75rem;
43
47
  --gramlot-field-font-size: .875rem;
44
48
  --gramlot-field-background: var(--gramlot-surface);
49
+ --gramlot-choice-background: color-mix(in srgb, var(--gramlot-surface) 89%, var(--gramlot-ink));
50
+ --gramlot-choice-border-width: 0px;
45
51
  --gramlot-field-readonly-background: var(--gramlot-surface-subtle);
46
52
  --gramlot-label-size: 1em;
47
53
  --gramlot-font-ui: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
@@ -61,7 +67,7 @@
61
67
  --gramlot-radius: 0.5rem;
62
68
  --gramlot-radius-lg: 0.75rem;
63
69
  --gramlot-shadow: 0 1px 2px rgb(24 35 51 / 5%), 0 8px 24px rgb(24 35 51 / 5%);
64
- --gramlot-focus-ring: #456bc4;
70
+ --gramlot-focus-ring: var(--gramlot-action);
65
71
  --gramlot-page-width: 72rem;
66
72
  }
67
73
 
@@ -88,7 +94,6 @@
88
94
  --gramlot-warning-background: #483718;
89
95
  --gramlot-error: #ffb3bb;
90
96
  --gramlot-error-background: #4d2630;
91
- --gramlot-focus-ring: #ffc400;
92
97
  --gramlot-shadow: 0 1px 2px rgb(0 0 0 / 15%), 0 8px 24px rgb(0 0 0 / 12%);
93
98
  }
94
99
  }
@@ -162,40 +167,39 @@
162
167
  display: inline-flex;
163
168
  align-items: center;
164
169
  justify-content: center;
165
- gap: var(--gramlot-space-2);
166
- min-block-size: 2.75rem;
167
- border: 1px solid var(--gramlot-action);
170
+ gap: var(--gramlot-button-gap, .35em);
171
+ box-sizing: border-box;
172
+ min-block-size: max(var(--gramlot-button-height), var(--gramlot-touch-target, 0px));
173
+ min-inline-size: var(--gramlot-touch-target, 0px);
174
+ border: 0;
168
175
  border-radius: var(--gramlot-radius-sm);
169
- background: var(--gramlot-action);
170
- color: var(--gramlot-surface);
171
- padding: 0.6rem 1rem;
172
- font-size: 0.875rem;
173
- font-weight: 650;
174
- line-height: 1.5;
176
+ background: var(--gramlot-button-background);
177
+ color: var(--gramlot-button-color, var(--gramlot-ink));
178
+ padding: var(--gramlot-button-padding);
179
+ font: inherit;
180
+ font-size: var(--gramlot-field-font-size);
181
+ line-height: 1.25;
175
182
  text-align: center;
176
183
  text-decoration: none;
177
184
  cursor: pointer;
178
- transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
185
+ transition: background-color 150ms ease;
179
186
  }
180
187
  :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):hover:not(:disabled) {
181
- background: var(--gramlot-action-hover);
182
- border-color: var(--gramlot-action-hover);
183
- color: var(--gramlot-surface);
188
+ background: var(--gramlot-button-hover);
184
189
  }
185
- :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):active:not(:disabled) { transform: translateY(1px); }
186
- :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):disabled { opacity: 0.55; cursor: not-allowed; }
187
- :where(.button--secondary, button.secondary) {
188
- background: var(--gramlot-surface);
189
- color: var(--gramlot-action);
190
- border-color: var(--gramlot-border-control);
190
+ :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):active:not(:disabled) { filter: brightness(.9); }
191
+ :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):focus-visible {
192
+ outline: 1px solid var(--gramlot-focus-ring);
193
+ outline-offset: -1px;
191
194
  }
192
- :where(.button--secondary, button.secondary):hover:not(:disabled) {
193
- background: var(--gramlot-selected);
194
- color: var(--gramlot-action-hover);
195
- border-color: var(--gramlot-action-hover);
195
+ :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button):disabled { opacity: .55; cursor: not-allowed; }
196
+ :where(.button--secondary, button.secondary) { background: var(--gramlot-selected); color: var(--gramlot-action); }
197
+ :where(.button--secondary, button.secondary):hover:not(:disabled) { background: var(--gramlot-selected); color: var(--gramlot-action-hover); }
198
+ :where(.button--quiet, button.quiet) { background: transparent; color: var(--gramlot-action); }
199
+ :where(.button--quiet, button.quiet):hover:not(:disabled) { background: var(--gramlot-selected); color: var(--gramlot-action-hover); }
200
+ @media (forced-colors: active) {
201
+ :where(button, input[type="button"], input[type="submit"], input[type="reset"], .button) { border: 1px solid ButtonText; }
196
202
  }
197
- :where(.button--quiet, button.quiet) { background: transparent; color: var(--gramlot-action); border-color: transparent; }
198
- :where(.button--quiet, button.quiet):hover:not(:disabled) { background: var(--gramlot-selected); color: var(--gramlot-action-hover); border-color: transparent; }
199
203
 
200
204
  :where(label) { display: inline-block; margin-block-end: var(--gramlot-space-1); font-size: 0.875rem; font-weight: 600; }
201
205
  :where(label:has(input:disabled)) { color: var(--gramlot-text-secondary); }
@@ -212,6 +216,14 @@
212
216
  font-size: var(--gramlot-field-font-size);
213
217
  line-height: var(--gramlot-field-line-height,1.5);
214
218
  }
219
+ :where(select) {
220
+ background-color: var(--gramlot-choice-background);
221
+ border-width: var(--gramlot-choice-border-width);
222
+ }
223
+ :where(select):focus-visible { outline: 1px solid var(--gramlot-focus-ring); outline-offset: -1px; }
224
+ :where(select).pointer-focus:focus { outline: none; }
225
+ :where(select)[aria-invalid="true"], :where(select):user-invalid { background-color: var(--gramlot-error-background); }
226
+ @media (forced-colors: active) { :where(select) { border: 1px solid ButtonText; } }
215
227
  :where(textarea) { min-block-size: 7rem; resize: vertical; }
216
228
  :where(input, textarea)::placeholder { color: var(--gramlot-text-secondary); opacity: 1; }
217
229
  :where(input, select, textarea):disabled { opacity: 0.6; cursor: not-allowed; }
@@ -309,6 +321,7 @@
309
321
  /* Resident Bag grid: shared palette and theme density. */
310
322
  :root {
311
323
  --gramlot-grid-background: var(--gramlot-surface);
324
+ --gramlot-grid-empty-background: var(--gramlot-surface-subtle);
312
325
  --gramlot-grid-color: var(--gramlot-ink);
313
326
  --gramlot-grid-border-color: var(--gramlot-border);
314
327
  --gramlot-grid-header-background: light-dark(#e5e7eb, #373b42);
@@ -475,8 +488,27 @@
475
488
  .visual-clipboard-title { font-weight:600; }
476
489
  .visual-clipboard .visual-editor-hint { font-size:11px; }
477
490
 
491
+ /* Graphite command strips carry their own ink and popup surfaces in either page mode. */
492
+ .gramlot-toolbar-graphite {
493
+ color-scheme:dark;
494
+ --gramlot-ink:#e4e4e6;
495
+ --gramlot-field-background:#303033;
496
+ --gramlot-border-control:#555559;
497
+ --gramlot-selected:#49494e;
498
+ --gramlot-action:#f4f4f5;
499
+ --gramlot-action-hover:#fff;
500
+ --gramlot-focus-ring:#c4c4c9;
501
+ color:var(--gramlot-ink);
502
+ background:#28282b;
503
+ }
478
504
  /* FrameGrid owns its single command/search toolbar. */
479
- .gramlot-grid-toolbar { padding:2px 6px; min-height:40px; background:var(--gramlot-surface-subtle); }
505
+ .gramlot-grid-toolbar { box-sizing:border-box; padding:2px 6px; min-height:40px; background:var(--gramlot-surface-subtle); border-bottom:1px solid var(--gramlot-border-control); }
480
506
  /* A toolbar with no tools and no authored items takes no space (it may hold an empty text node). */
481
507
  .gramlot-grid-toolbar:not(:has(> *)) { display:none; }
482
508
  .gramlot-grid-toolbar > .gramlot-grid-search { margin-inline-start:auto; }
509
+
510
+ /* The layer of `_waitingMessage` over the element of a remote node while its request runs (legacy hiderLayer). */
511
+ .gramlot-waiting-host { position:relative; }
512
+ .gramlot-waiting-layer { position:absolute; inset:0; z-index:399; display:flex; align-items:center; justify-content:center;
513
+ background:color-mix(in srgb, var(--gramlot-surface, #ffffff) 55%, transparent); }
514
+ .gramlot-waiting-message { text-align:center; font-size:2em; font-weight:600; color:var(--gramlot-text-secondary, #555555); }
@@ -1,6 +1,8 @@
1
1
  /* gramlot-compact: professional density profile; load after Base. */
2
2
  @layer gramlot.tokens {
3
3
  :root {
4
+ --gramlot-choice-background: var(--gramlot-field-background);
5
+ --gramlot-choice-border-width: 1px;
4
6
  color-scheme: light;
5
7
  --gramlot-background: #f3f5f7;
6
8
  --gramlot-surface: #ffffff;
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M7 10h10M4 14h16M7 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M4 10h16M4 14h16M4 19h16"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M4 10h10M4 14h16M4 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M10 10h10M4 14h16M10 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><rect x="14" y="14" width="7" height="7" rx="1.5"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 4h18v5H3zM5 9v12h14V9m-9 4h4"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M8 13l7-7a3 3 0 0 1 4 4L9 20a4.5 4.5 0 0 1-6-6l11-11m-8 13a1.4 1.4 0 0 0 2 2l8-8"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M12 6c-3-2-6-2.5-10-2v14c4-.5 7 0 10 2 3-2 6-2.5 10-2V4c-4-.5-7 0-10 2Zm0 0v14"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M6 3h12v18l-6-4-6 4z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3" y="5" width="18" height="16" rx="2"/><path d="M7 3v4m10-4v4M3 10h18M7 14h2m3 0h2"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M5 5l14 14M19 5L5 19"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 3v17h17M8 16v-5M13 16V6M18 16v-8"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 4h18v13H9l-6 4zM7 9h10m-10 4h7"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <circle cx="12" cy="12" r="9"/><path d="M12 6v6l4 2"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M8 6l-6 6 6 6m8-12 6 6-6 6m-3-15-2 18"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 8h5V3m8 0v5h5m0 8h-5v5m-8 0v-5H3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16m6-16v16"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 12l6 6L21 6"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M8 7h10l3 3v11H8zM5 17H3V3h11v1"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <circle cx="6" cy="17" r="3"/><circle cx="18" cy="17" r="3"/><path d="M8 15L18 3M16 15L6 3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <ellipse cx="12" cy="5.5" rx="8" ry="3"/><path d="M4 5.5v13c0 4 16 4 16 0v-13M4 12c0 4 16 4 16 0"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 7h16M9 7V4h6v3M6 7l1 14h10l1-14M10 10v7m4-7v7"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M13 4h7v7m0-7-10 10m-1-9H4v15h15v-5"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M5 3h9l5 5v13H5zM14 3v6h5M8 13h8m-8 4h6"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M12 3v13m-5-5 5 5 5-5M4 17v4h16v-4"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M9 9h12v12H9zM15 6V3H3v12h3M12 15h6m-3-3v6"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 16L15 5l4 4L8 20l-5 1zM13 7l4 4M15 5l2-2 4 4-2 2"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M14.5 4l5.5 5.5L11 18.5H6.5L3 15zM8.5 9.5l6 6M11 20.5h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 10V4h6m4 0h6v6m0 4v6h-6m-4 0H4v-6"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M12 4H4v16h8m-2-8h11m-5-5 5 5-5 5"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z"/><circle cx="12" cy="12" r="3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 4h18l-7 9v6l-4 2v-8z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M5 5v14M18 5l-8 7 8 7"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 5h7l2 3h9v11H3z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 4h8l2 3h8v12H3zM7 11h9m-9 4h6"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <circle cx="12" cy="12" r="9"/><path d="M9 9a3 3 0 0 1 6 0c0 2-3 2.5-3 5m0 3h.01"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M2 11l10-8 10 8m-17-1v11h5v-7h4v7h5V10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 12h18M8 6h8M8 18h8"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M21 15l-5-5-9 10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M13 4h7v16h-7M3 12h12m-5-5 5 5-5 5"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M11 10h9M11 14h9M4 19h16M4 9l3 3-3 3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <circle cx="12" cy="12" r="9"/><path d="M12 11v6m0-10h.01"/>
4
+ </svg>