minerva-design 1.15.0 → 1.16.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 (241) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/custom-elements.json +423 -1
  3. package/dist/angular/fesm2022/minerva-angular.mjs +1253 -6
  4. package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
  5. package/dist/angular/types/minerva-angular.d.ts +388 -2
  6. package/dist/charts/canvas.d.cts +2 -1
  7. package/dist/charts/canvas.d.ts +2 -1
  8. package/dist/charts/core.cjs +1 -1
  9. package/dist/charts/core.d.cts +3 -2
  10. package/dist/charts/core.d.ts +3 -2
  11. package/dist/charts/core.js +22 -21
  12. package/dist/charts/engine/canvas.cjs +1 -1
  13. package/dist/charts/engine/canvas.cjs.map +1 -1
  14. package/dist/charts/engine/canvas.d.cts +8 -1
  15. package/dist/charts/engine/canvas.d.ts +8 -1
  16. package/dist/charts/engine/canvas.js +136 -122
  17. package/dist/charts/engine/canvas.js.map +1 -1
  18. package/dist/charts/engine/chart.cjs +1 -1
  19. package/dist/charts/engine/chart.cjs.map +1 -1
  20. package/dist/charts/engine/chart.js +417 -298
  21. package/dist/charts/engine/chart.js.map +1 -1
  22. package/dist/charts/engine/controller.cjs +2 -2
  23. package/dist/charts/engine/controller.cjs.map +1 -1
  24. package/dist/charts/engine/controller.d.cts +7 -7
  25. package/dist/charts/engine/controller.d.ts +7 -7
  26. package/dist/charts/engine/controller.js +166 -154
  27. package/dist/charts/engine/controller.js.map +1 -1
  28. package/dist/charts/engine/dom.cjs +1 -1
  29. package/dist/charts/engine/dom.cjs.map +1 -1
  30. package/dist/charts/engine/dom.d.cts +13 -1
  31. package/dist/charts/engine/dom.d.ts +13 -1
  32. package/dist/charts/engine/dom.js +47 -6
  33. package/dist/charts/engine/dom.js.map +1 -1
  34. package/dist/charts/engine/drag-preview.cjs +2 -0
  35. package/dist/charts/engine/drag-preview.cjs.map +1 -0
  36. package/dist/charts/engine/drag-preview.d.cts +35 -0
  37. package/dist/charts/engine/drag-preview.d.ts +35 -0
  38. package/dist/charts/engine/drag-preview.js +38 -0
  39. package/dist/charts/engine/drag-preview.js.map +1 -0
  40. package/dist/charts/engine/overlay.cjs +1 -1
  41. package/dist/charts/engine/overlay.cjs.map +1 -1
  42. package/dist/charts/engine/overlay.d.cts +4 -1
  43. package/dist/charts/engine/overlay.d.ts +4 -1
  44. package/dist/charts/engine/overlay.js +5 -3
  45. package/dist/charts/engine/overlay.js.map +1 -1
  46. package/dist/charts/engine/presets.cjs +2 -2
  47. package/dist/charts/engine/presets.cjs.map +1 -1
  48. package/dist/charts/engine/presets.js +131 -82
  49. package/dist/charts/engine/presets.js.map +1 -1
  50. package/dist/charts/engine/quadrant-tasks.cjs +2 -0
  51. package/dist/charts/engine/quadrant-tasks.cjs.map +1 -0
  52. package/dist/charts/engine/quadrant-tasks.d.cts +78 -0
  53. package/dist/charts/engine/quadrant-tasks.d.ts +78 -0
  54. package/dist/charts/engine/quadrant-tasks.js +104 -0
  55. package/dist/charts/engine/quadrant-tasks.js.map +1 -0
  56. package/dist/charts/engine/scene.cjs +1 -1
  57. package/dist/charts/engine/scene.cjs.map +1 -1
  58. package/dist/charts/engine/scene.d.cts +5 -2
  59. package/dist/charts/engine/scene.d.ts +5 -2
  60. package/dist/charts/engine/scene.js +245 -245
  61. package/dist/charts/engine/scene.js.map +1 -1
  62. package/dist/charts/engine/shapes/bullet.cjs +1 -1
  63. package/dist/charts/engine/shapes/bullet.cjs.map +1 -1
  64. package/dist/charts/engine/shapes/bullet.js +33 -33
  65. package/dist/charts/engine/shapes/calendar.cjs +1 -1
  66. package/dist/charts/engine/shapes/calendar.cjs.map +1 -1
  67. package/dist/charts/engine/shapes/calendar.js +28 -28
  68. package/dist/charts/engine/shapes/layout.cjs +2 -2
  69. package/dist/charts/engine/shapes/layout.cjs.map +1 -1
  70. package/dist/charts/engine/shapes/layout.js +14 -14
  71. package/dist/charts/engine/types.d.cts +24 -3
  72. package/dist/charts/engine/types.d.ts +24 -3
  73. package/dist/charts/index.cjs +1 -1
  74. package/dist/charts/index.js +28 -27
  75. package/dist/charts/react/Chart.cjs +1 -1
  76. package/dist/charts/react/Chart.cjs.map +1 -1
  77. package/dist/charts/react/Chart.d.cts +3 -1
  78. package/dist/charts/react/Chart.d.ts +3 -1
  79. package/dist/charts/react/Chart.js +2 -0
  80. package/dist/charts/react/Chart.js.map +1 -1
  81. package/dist/charts/react/charts.cjs +1 -1
  82. package/dist/charts/react/charts.cjs.map +1 -1
  83. package/dist/charts/react/charts.js +223 -244
  84. package/dist/charts/react/charts.js.map +1 -1
  85. package/dist/core/contracts.cjs +1 -1
  86. package/dist/core/contracts.cjs.map +1 -1
  87. package/dist/core/contracts.js +1 -1
  88. package/dist/core/contracts.js.map +1 -1
  89. package/dist/native/charts/src/canvas.cjs +1 -1
  90. package/dist/native/charts/src/canvas.js +10 -9
  91. package/dist/native/charts/src/engine/controller.cjs +2 -2
  92. package/dist/native/charts/src/engine/controller.cjs.map +1 -1
  93. package/dist/native/charts/src/engine/controller.js +214 -202
  94. package/dist/native/charts/src/engine/controller.js.map +1 -1
  95. package/dist/native/charts/src/engine/drag-preview.cjs +2 -0
  96. package/dist/native/charts/src/engine/drag-preview.cjs.map +1 -0
  97. package/dist/native/charts/src/engine/drag-preview.js +38 -0
  98. package/dist/native/charts/src/engine/drag-preview.js.map +1 -0
  99. package/dist/native/charts/src/engine/overlay.cjs.map +1 -1
  100. package/dist/native/charts/src/engine/overlay.js.map +1 -1
  101. package/dist/native/charts/src/engine/presets.cjs +2 -2
  102. package/dist/native/charts/src/engine/presets.cjs.map +1 -1
  103. package/dist/native/charts/src/engine/presets.js +128 -79
  104. package/dist/native/charts/src/engine/presets.js.map +1 -1
  105. package/dist/native/charts/src/engine/quadrant-tasks.cjs +2 -0
  106. package/dist/native/charts/src/engine/quadrant-tasks.cjs.map +1 -0
  107. package/dist/native/charts/src/engine/quadrant-tasks.js +100 -0
  108. package/dist/native/charts/src/engine/quadrant-tasks.js.map +1 -0
  109. package/dist/native/charts/src/engine/scene.cjs +1 -1
  110. package/dist/native/charts/src/engine/scene.cjs.map +1 -1
  111. package/dist/native/charts/src/engine/scene.js +245 -245
  112. package/dist/native/charts/src/engine/scene.js.map +1 -1
  113. package/dist/native/charts/src/engine/shapes/bullet.cjs +1 -1
  114. package/dist/native/charts/src/engine/shapes/bullet.cjs.map +1 -1
  115. package/dist/native/charts/src/engine/shapes/bullet.js +33 -33
  116. package/dist/native/charts/src/engine/shapes/calendar.cjs +1 -1
  117. package/dist/native/charts/src/engine/shapes/calendar.cjs.map +1 -1
  118. package/dist/native/charts/src/engine/shapes/calendar.js +28 -28
  119. package/dist/native/charts/src/engine/shapes/layout.cjs +2 -2
  120. package/dist/native/charts/src/engine/shapes/layout.cjs.map +1 -1
  121. package/dist/native/charts/src/engine/shapes/layout.js +40 -40
  122. package/dist/native/components/Chart/charts.cjs +1 -1
  123. package/dist/native/components/Chart/charts.cjs.map +1 -1
  124. package/dist/native/components/Chart/charts.js +188 -118
  125. package/dist/native/components/Chart/charts.js.map +1 -1
  126. package/dist/native/components/Chart/scene.cjs +1 -1
  127. package/dist/native/components/Chart/scene.cjs.map +1 -1
  128. package/dist/native/components/Chart/scene.d.cts +26 -1
  129. package/dist/native/components/Chart/scene.d.ts +26 -1
  130. package/dist/native/components/Chart/scene.js +180 -57
  131. package/dist/native/components/Chart/scene.js.map +1 -1
  132. package/dist/native/components/Chart/types.d.cts +25 -1
  133. package/dist/native/components/Chart/types.d.ts +25 -1
  134. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.cjs +2 -0
  135. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.cjs.map +1 -0
  136. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.d.cts +21 -0
  137. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.d.ts +21 -0
  138. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.js +293 -0
  139. package/dist/native/components/QuadrantTaskBoard/QuadrantTaskBoard.js.map +1 -0
  140. package/dist/native/components/QuadrantTaskBoard/index.cjs +1 -0
  141. package/dist/native/components/QuadrantTaskBoard/index.d.cts +1 -0
  142. package/dist/native/components/QuadrantTaskBoard/index.d.ts +1 -0
  143. package/dist/native/components/QuadrantTaskBoard/index.js +2 -0
  144. package/dist/native/index.cjs +1 -1
  145. package/dist/native/index.d.cts +1 -0
  146. package/dist/native/index.d.ts +1 -0
  147. package/dist/native/index.js +3 -1
  148. package/dist/native/source/components/Chart/charts.tsx +193 -67
  149. package/dist/native/source/components/Chart/scene.tsx +280 -38
  150. package/dist/native/source/components/Chart/types.ts +29 -0
  151. package/dist/native/source/components/QuadrantTaskBoard/QuadrantTaskBoard.tsx +413 -0
  152. package/dist/native/source/components/QuadrantTaskBoard/index.ts +5 -0
  153. package/dist/native/source/index.ts +1 -0
  154. package/dist/native/source/manifest.ts +6 -0
  155. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.cjs +2 -0
  156. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.cjs.map +1 -0
  157. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.d.cts +19 -0
  158. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.d.ts +19 -0
  159. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.js +181 -0
  160. package/dist/react/components/QuadrantTaskBoard/QuadrantTaskBoard.js.map +1 -0
  161. package/dist/react/components/QuadrantTaskBoard/index.cjs +1 -0
  162. package/dist/react/components/QuadrantTaskBoard/index.d.cts +2 -0
  163. package/dist/react/components/QuadrantTaskBoard/index.d.ts +2 -0
  164. package/dist/react/components/QuadrantTaskBoard/index.js +3 -0
  165. package/dist/react/components/QuadrantTaskBoard/quadrantTaskBoard.module.scss.cjs +2 -0
  166. package/dist/react/components/QuadrantTaskBoard/quadrantTaskBoard.module.scss.cjs.map +1 -0
  167. package/dist/react/components/QuadrantTaskBoard/quadrantTaskBoard.module.scss.js +19 -0
  168. package/dist/react/components/QuadrantTaskBoard/quadrantTaskBoard.module.scss.js.map +1 -0
  169. package/dist/react/components/index.cjs +1 -1
  170. package/dist/react/components/index.d.cts +1 -0
  171. package/dist/react/components/index.d.ts +1 -0
  172. package/dist/react/components/index.js +3 -1
  173. package/dist/react/index.cjs +1 -1
  174. package/dist/react/index.js +7 -6
  175. package/dist/react/style.css +1 -0
  176. package/dist/react/styles/quadrant-task-board.css +10 -0
  177. package/dist/taro/index.d.ts +1 -0
  178. package/dist/taro/index.js +2231 -1849
  179. package/dist/taro/quadrant-task-board.d.ts +21 -0
  180. package/dist/uni/QuadrantTaskBoard.vue +350 -0
  181. package/dist/uni/QuadrantTaskBoard.vue.d.ts +191 -0
  182. package/dist/uni/charts-canvas.js +2 -1
  183. package/dist/uni/index.d.ts +1 -0
  184. package/dist/uni/index.js +1 -0
  185. package/dist/uni/manifest.d.ts +7 -0
  186. package/dist/uni/manifest.js +10 -0
  187. package/dist/vue/charts-global.d.ts +1 -0
  188. package/dist/vue/charts.js +8 -7
  189. package/dist/vue/charts.js.map +1 -1
  190. package/dist/vue/components/Chart/QuadrantChart.vue.d.ts +170 -192
  191. package/dist/vue/components/Chart/QuadrantChart.vue.js.map +1 -1
  192. package/dist/vue/components/Chart/QuadrantChart.vue_vue_type_script_setup_true_lang.js +173 -113
  193. package/dist/vue/components/Chart/QuadrantChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  194. package/dist/vue/components/Chart/cartesian.d.ts +3 -1
  195. package/dist/vue/components/Chart/cartesian.js +2 -1
  196. package/dist/vue/components/Chart/cartesian.js.map +1 -1
  197. package/dist/vue/components/Chart/props.d.ts +100 -1
  198. package/dist/vue/components/Chart/props.js +50 -5
  199. package/dist/vue/components/Chart/props.js.map +1 -1
  200. package/dist/vue/components/Chart/types.d.ts +12 -1
  201. package/dist/vue/components/QuadrantTaskBoard/QuadrantTaskBoard.vue.d.ts +183 -0
  202. package/dist/vue/components/QuadrantTaskBoard/QuadrantTaskBoard.vue.js +7 -0
  203. package/dist/vue/components/QuadrantTaskBoard/QuadrantTaskBoard.vue.js.map +1 -0
  204. package/dist/vue/components/QuadrantTaskBoard/QuadrantTaskBoard.vue_vue_type_script_setup_true_lang.js +243 -0
  205. package/dist/vue/components/QuadrantTaskBoard/QuadrantTaskBoard.vue_vue_type_script_setup_true_lang.js.map +1 -0
  206. package/dist/vue/components/QuadrantTaskBoard/index.d.ts +13 -0
  207. package/dist/vue/components/QuadrantTaskBoard/index.js +2 -0
  208. package/dist/vue/groups/charts.d.ts +1 -0
  209. package/dist/vue/groups/charts.js +5 -2
  210. package/dist/vue/groups/charts.js.map +1 -1
  211. package/dist/vue/index.js +3 -2
  212. package/dist/weapp/charts/canvas.js +2595 -2200
  213. package/dist/weapp/charts/core.js +11 -0
  214. package/dist/weapp/controls.js +689 -424
  215. package/dist/weapp/quadrant-task-board/index.js +1 -0
  216. package/dist/weapp/quadrant-task-board/index.json +1 -0
  217. package/dist/weapp/quadrant-task-board/index.wxml +1 -0
  218. package/dist/weapp/quadrant-task-board/index.wxss +1 -0
  219. package/dist/weapp/types.d.ts +47 -0
  220. package/dist/web-components/components/chart/charts.d.ts +39 -2
  221. package/dist/web-components/components/chart/charts.js +198 -50
  222. package/dist/web-components/components/chart/charts.js.map +1 -1
  223. package/dist/web-components/components/chart/engine-element.d.ts +2 -0
  224. package/dist/web-components/components/chart/engine-element.js +8 -7
  225. package/dist/web-components/components/chart/engine-element.js.map +1 -1
  226. package/dist/web-components/components/quadrant-task-board/quadrant-task-board.d.ts +129 -0
  227. package/dist/web-components/components/quadrant-task-board/quadrant-task-board.js +336 -0
  228. package/dist/web-components/components/quadrant-task-board/quadrant-task-board.js.map +1 -0
  229. package/dist/web-components/elements/chart.js +18 -18
  230. package/dist/web-components/elements/chart.js.map +1 -1
  231. package/dist/web-components/elements/quadrant-task-board.d.ts +2 -0
  232. package/dist/web-components/elements/quadrant-task-board.js +8 -0
  233. package/dist/web-components/elements/quadrant-task-board.js.map +1 -0
  234. package/dist/web-components/html-custom-data.json +70 -1
  235. package/dist/web-components/styles/QuadrantTaskBoard/quadrantTaskBoard.css.js +6 -0
  236. package/dist/web-components/styles/QuadrantTaskBoard/quadrantTaskBoard.css.js.map +1 -0
  237. package/dist/web-components/types/react.d.ts +15 -0
  238. package/dist/web-components/types/solid.d.ts +12 -0
  239. package/dist/web-components/types/svelte.d.ts +12 -0
  240. package/dist/web-components/types/vue.d.ts +13 -0
  241. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # minerva-design
2
2
 
3
+ ## 1.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a7980a1: QuadrantTaskBoard on every renderer, quadrant drags drawn live by the chart engine, polished point states, combo charts keep their lines above hovered bars.
8
+
9
+ - **QuadrantTaskBoard** (new; React from `minerva-design`, Vue, Web Components `minerva-design/web-components/quadrant-task-board`, Angular `MnQuadrantTaskBoard`, React Native, Taro, uni-app, WeChat): a task board on a four-quadrant matrix. Each quadrant has a header (title, count, add button); the active task gets edit / delete icon buttons; a dialog names a task and picks its quadrant; deleting asks for confirmation; tasks move by drag and drop or Shift + arrows. Controlled and simple: `points` + `onPointsChange` (`v-model:points`, `[(points)]`, `minerva-points-change`, `pointschange`); `labels` overrides the localized texts. The shared logic lives in `minerva-design/charts/core` (`newQuadrantTaskDraft`, `applyQuadrantTaskDraft`, `moveQuadrantTask`, `removeQuadrantTask`, `quadrantTaskLabels`, ...).
10
+ - **Live point drags**: the chart engine now draws the dragged point under the pointer itself, with its label in a pill, a dashed placeholder where it was and the target area highlighted (`interaction.dropTargets`, on for quadrant charts). Nothing re-renders while dragging; data is committed on drop. New `dragStart` / `dragEnd` (`{ cancelled }`) events; Escape cancels a drag. Same preview on the canvas host (mini programs, React Native).
11
+ - **Point states**: hovered dots get a tinted halo, a soft glow and a highlighted label chip (the tooltip keeps off it); selected quadrant dots get a glow, a ring in the surface color and an outer ring; the keyboard focus is a separate gap + focus-color ring. Quadrant series data is kept across re-renders, so hovering no longer rebuilds the chart.
12
+ - **Combo charts**: hovering a bar of a bar + line chart (dual axis or not) lifts the bar below the data layer, without the dimming veil, so lines and their hover markers always stay above the bars — on the web (GPU and Canvas2D), the canvas host and React Native.
13
+ - Vue, Web Components, Angular and React Native QuadrantChart: new slots / templates / render props for quadrant headers and actions on the active point.
14
+
3
15
  ## 1.15.0
4
16
 
5
17
  ### Minor Changes
@@ -7635,7 +7635,7 @@
7635
7635
  },
7636
7636
  {
7637
7637
  "kind": "class",
7638
- "description": "Four-quadrant matrix (priority matrix, Eisenhower, BCG...) of\n`minerva-design/charts/core` (the `<QuadrantChart>` of React): tinted\nquadrants with titles, dividers and labelled dots placed without\noverlapping labels. With `drag-points`, dots can be dragged to another\nquadrant (`minerva-point-drop`; update `points` to move them).\n\nA visually hidden list of the dots per quadrant lets screen readers and\nkeyboards reach every dot: arrows move between them, Enter clicks\n(`minerva-point-click`) and, with `drag-points`, Shift + arrows move the\nfocused dot to the neighbouring quadrant (`minerva-point-drop`, announced\nin a live region). The focused dot is drawn with a focus ring and\nreported by `minerva-hover`.\n\nPublished as the optional entry `minerva-design/web-components/chart`.",
7638
+ "description": "Four-quadrant matrix (priority matrix, Eisenhower, BCG...) of\n`minerva-design/charts/core` (the `<QuadrantChart>` of React): tinted\nquadrants with titles, dividers and labelled dots placed without\noverlapping labels. With `drag-points`, dots can be dragged to another\nquadrant (`minerva-point-drop`; update `points` to move them).\n\nA visually hidden list of the dots per quadrant lets screen readers and\nkeyboards reach every dot: arrows move between them, Enter clicks\n(`minerva-point-click`) and, with `drag-points`, Shift + arrows move the\nfocused dot to the neighbouring quadrant (`minerva-point-drop`, announced\nin a live region). The focused dot is drawn with a focus ring and\nreported by `minerva-hover`.\n\nSlotted content is placed over the plot: a header per quadrant (in its\nouter corner, replacing the drawn title, badge, description and count)\nand actions next to the active dot (hovered, keyboard-focused, else\n`selected-index`; read it from `activeIndex`). Both receive pointer\nevents; the rest of the plot stays interactive.\n\nPublished as the optional entry `minerva-design/web-components/chart`.",
7639
7639
  "name": "MinervaQuadrantChart",
7640
7640
  "cssParts": [
7641
7641
  {
@@ -7645,6 +7645,40 @@
7645
7645
  {
7646
7646
  "description": "The element the engine renders into",
7647
7647
  "name": "surface"
7648
+ },
7649
+ {
7650
+ "description": "The box over the plot holding the slotted headers and actions",
7651
+ "name": "overlay"
7652
+ },
7653
+ {
7654
+ "description": "The box of a quadrant header slot (in the outer corner of its quadrant)",
7655
+ "name": "quadrant-header"
7656
+ },
7657
+ {
7658
+ "description": "The zero-size box at the active dot holding the `point-actions` slot",
7659
+ "name": "point-actions"
7660
+ }
7661
+ ],
7662
+ "slots": [
7663
+ {
7664
+ "description": "Header of the top left quadrant (replaces its drawn title and count)",
7665
+ "name": "quadrant-header-top-left"
7666
+ },
7667
+ {
7668
+ "description": "Header of the top right quadrant",
7669
+ "name": "quadrant-header-top-right"
7670
+ },
7671
+ {
7672
+ "description": "Header of the bottom left quadrant",
7673
+ "name": "quadrant-header-bottom-left"
7674
+ },
7675
+ {
7676
+ "description": "Header of the bottom right quadrant",
7677
+ "name": "quadrant-header-bottom-right"
7678
+ },
7679
+ {
7680
+ "description": "Content shown at the active dot (e.g. edit / delete buttons), positioned by the slotted element",
7681
+ "name": "point-actions"
7648
7682
  }
7649
7683
  ],
7650
7684
  "members": [
@@ -7819,6 +7853,15 @@
7819
7853
  "description": "Leaves out the visually hidden list of the dots (keyboard and screen reader access)",
7820
7854
  "attribute": "no-accessible-points"
7821
7855
  },
7856
+ {
7857
+ "kind": "field",
7858
+ "name": "activeIndex",
7859
+ "type": {
7860
+ "text": "number | null"
7861
+ },
7862
+ "description": "Index of the active dot, the one showing the `point-actions` slot: the\nhovered dot, else the keyboard-focused one, else `selectedIndex`\n(`null`: none)",
7863
+ "readonly": true
7864
+ },
7822
7865
  {
7823
7866
  "kind": "field",
7824
7867
  "name": "height",
@@ -31137,6 +31180,385 @@
31137
31180
  }
31138
31181
  ]
31139
31182
  },
31183
+ {
31184
+ "kind": "javascript-module",
31185
+ "path": "src/components/quadrant-task-board/quadrant-task-board.ts",
31186
+ "declarations": [
31187
+ {
31188
+ "kind": "class",
31189
+ "description": "Task board on a four-quadrant matrix (`<QuadrantTaskBoard>` of React),\nbuilt on `<minerva-quadrant-chart>`: each quadrant header shows its\ntitle, the number of tasks and an add button; the active task (hovered,\nkeyboard-focused or selected) shows edit and delete buttons; a dialog\nnames a task and picks its quadrant, a confirmation precedes a delete.\nTasks can be dragged to another quadrant, or moved with Shift + arrows\nonce focused; a double click edits a task, a click on an empty area adds\none there.\n\nControlled, like `<minerva-kanban-board>`: the board never changes its\nown `points`. It fires `minerva-points-change` with the next list after\nan add, an edit, a delete, a drag and drop or a keyboard move; set it\nback as `points` to apply it (or keep the old list to refuse it).\n\nTexts are localized (the `locale` attribute, else the library language)\nand can be overridden with `labels`. The host's `aria-label` names the\nchart.\n\nPublished as the optional entry\n`minerva-design/web-components/quadrant-task-board` (it loads the chart\nengine, minerva-design/charts/core).",
31190
+ "name": "MinervaQuadrantTaskBoard",
31191
+ "cssParts": [
31192
+ {
31193
+ "description": "The box around the chart and the dialogs",
31194
+ "name": "root"
31195
+ },
31196
+ {
31197
+ "description": "The inner `<minerva-quadrant-chart>`",
31198
+ "name": "chart"
31199
+ }
31200
+ ],
31201
+ "members": [
31202
+ {
31203
+ "kind": "field",
31204
+ "name": "points",
31205
+ "type": {
31206
+ "text": "readonly QuadrantPoint[] | undefined"
31207
+ },
31208
+ "description": "Tasks `{ x, y, label, color, size }`; replace the array to update the board (controlled); property only"
31209
+ },
31210
+ {
31211
+ "kind": "field",
31212
+ "name": "labels",
31213
+ "type": {
31214
+ "text": "Partial<QuadrantTaskLabels> | undefined"
31215
+ },
31216
+ "description": "Texts of the buttons and dialogs (`add`, `edit`, `delete`, `deleteConfirm`, `name`, `quadrant`, `save`, `cancel`, `actions`), localized by default; property only"
31217
+ },
31218
+ {
31219
+ "kind": "field",
31220
+ "name": "quadrants",
31221
+ "type": {
31222
+ "text": "QuadrantRegions | undefined"
31223
+ },
31224
+ "description": "Titles, badges and colors of the quadrants (`topLeft`, `topRight`, `bottomLeft`, `bottomRight`); property only"
31225
+ },
31226
+ {
31227
+ "kind": "field",
31228
+ "name": "xLabel",
31229
+ "type": {
31230
+ "text": "string | undefined"
31231
+ },
31232
+ "description": "Title of the horizontal axis",
31233
+ "attribute": "x-label"
31234
+ },
31235
+ {
31236
+ "kind": "field",
31237
+ "name": "yLabel",
31238
+ "type": {
31239
+ "text": "string | undefined"
31240
+ },
31241
+ "description": "Title of the vertical axis",
31242
+ "attribute": "y-label"
31243
+ },
31244
+ {
31245
+ "kind": "field",
31246
+ "name": "axisLabels",
31247
+ "type": {
31248
+ "text": "QuadrantAxisLabels | undefined"
31249
+ },
31250
+ "description": "Texts at the ends of the dividers, drawn inside the plot (`top`, `bottom`, `left`, `right`); property only"
31251
+ },
31252
+ {
31253
+ "kind": "field",
31254
+ "name": "xDomain",
31255
+ "type": {
31256
+ "text": "[number, number] | undefined"
31257
+ },
31258
+ "description": "Range of the horizontal axis (default [0, 10]); property only"
31259
+ },
31260
+ {
31261
+ "kind": "field",
31262
+ "name": "yDomain",
31263
+ "type": {
31264
+ "text": "[number, number] | undefined"
31265
+ },
31266
+ "description": "Range of the vertical axis (default [0, 10]); property only"
31267
+ },
31268
+ {
31269
+ "kind": "field",
31270
+ "name": "xSplit",
31271
+ "type": {
31272
+ "text": "number | undefined"
31273
+ },
31274
+ "description": "X value of the vertical divider (the middle of the x domain by default)",
31275
+ "attribute": "x-split"
31276
+ },
31277
+ {
31278
+ "kind": "field",
31279
+ "name": "ySplit",
31280
+ "type": {
31281
+ "text": "number | undefined"
31282
+ },
31283
+ "description": "Y value of the horizontal divider (the middle of the y domain by default)",
31284
+ "attribute": "y-split"
31285
+ },
31286
+ {
31287
+ "kind": "field",
31288
+ "name": "reverseX",
31289
+ "type": {
31290
+ "text": "boolean"
31291
+ },
31292
+ "default": "false",
31293
+ "description": "Reverses the horizontal axis (e.g. \"urgent\" on the left)",
31294
+ "attribute": "reverse-x"
31295
+ },
31296
+ {
31297
+ "kind": "field",
31298
+ "name": "hideTicks",
31299
+ "type": {
31300
+ "text": "boolean"
31301
+ },
31302
+ "default": "false",
31303
+ "description": "Hides the numeric ticks of the axes (only the matrix remains)",
31304
+ "attribute": "hide-ticks"
31305
+ },
31306
+ {
31307
+ "kind": "field",
31308
+ "name": "hideLabels",
31309
+ "type": {
31310
+ "text": "boolean"
31311
+ },
31312
+ "default": "false",
31313
+ "description": "Hides the labels next to the tasks",
31314
+ "attribute": "hide-labels"
31315
+ },
31316
+ {
31317
+ "kind": "field",
31318
+ "name": "hideCounts",
31319
+ "type": {
31320
+ "text": "boolean"
31321
+ },
31322
+ "default": "false",
31323
+ "description": "Hides the number of tasks in the quadrant headers",
31324
+ "attribute": "hide-counts"
31325
+ },
31326
+ {
31327
+ "kind": "field",
31328
+ "name": "pointSize",
31329
+ "type": {
31330
+ "text": "number"
31331
+ },
31332
+ "default": "12",
31333
+ "description": "Dot diameter in pixels",
31334
+ "attribute": "point-size"
31335
+ },
31336
+ {
31337
+ "kind": "field",
31338
+ "name": "selectedIndex",
31339
+ "type": {
31340
+ "text": "number | null | undefined"
31341
+ },
31342
+ "description": "Index of the selected task, drawn with a ring (`null`: none); by default the board selects the last clicked, moved or saved task",
31343
+ "attribute": "selected-index"
31344
+ },
31345
+ {
31346
+ "kind": "field",
31347
+ "name": "height",
31348
+ "type": {
31349
+ "text": "string | number | undefined"
31350
+ },
31351
+ "description": "Height of the chart: pixels or any CSS length (default 320)",
31352
+ "attribute": "height"
31353
+ },
31354
+ {
31355
+ "kind": "field",
31356
+ "name": "locale",
31357
+ "type": {
31358
+ "text": "string | undefined"
31359
+ },
31360
+ "description": "Language of the built-in texts, quadrant titles and numbers (e.g. \"fr\"); the library language by default",
31361
+ "attribute": "locale"
31362
+ },
31363
+ {
31364
+ "kind": "field",
31365
+ "name": "noAccessiblePoints",
31366
+ "type": {
31367
+ "text": "boolean"
31368
+ },
31369
+ "default": "false",
31370
+ "description": "Leaves out the visually hidden list of the tasks (keyboard and screen reader access, keyboard moves)",
31371
+ "attribute": "no-accessible-points"
31372
+ },
31373
+ {
31374
+ "kind": "field",
31375
+ "name": "options",
31376
+ "type": {
31377
+ "text": "Omit<ChartOptions, \"series\"> | undefined"
31378
+ },
31379
+ "description": "Other engine options of the chart (legend, tooltip, padding, palette...); property only"
31380
+ }
31381
+ ],
31382
+ "events": [
31383
+ {
31384
+ "description": "The tasks changed (add, edit, delete, drag and drop, keyboard move); `detail: { points }`, the next list to set back as `points`",
31385
+ "name": "minerva-points-change"
31386
+ },
31387
+ {
31388
+ "description": "A task was clicked (it becomes the selected one); `detail: { point, index }`",
31389
+ "name": "minerva-point-click"
31390
+ },
31391
+ {
31392
+ "description": "A task is being dragged (on every move); `detail: { point, index, x, y, quadrant }`",
31393
+ "name": "minerva-point-drag"
31394
+ },
31395
+ {
31396
+ "description": "The hovered (or keyboard-focused) task changed; `detail: { x, xLabel, items }`, `null` when nothing is hovered",
31397
+ "name": "minerva-hover"
31398
+ },
31399
+ {
31400
+ "description": "The user zoomed or panned the chart; `detail`: the view",
31401
+ "name": "minerva-zoom"
31402
+ },
31403
+ {
31404
+ "description": "The chart backend is ready (or fell back after a GPU loss); `detail`: the renderer",
31405
+ "name": "minerva-renderer-change"
31406
+ }
31407
+ ],
31408
+ "attributes": [
31409
+ {
31410
+ "name": "x-label",
31411
+ "type": {
31412
+ "text": "string | undefined"
31413
+ },
31414
+ "description": "Title of the horizontal axis",
31415
+ "fieldName": "xLabel"
31416
+ },
31417
+ {
31418
+ "name": "y-label",
31419
+ "type": {
31420
+ "text": "string | undefined"
31421
+ },
31422
+ "description": "Title of the vertical axis",
31423
+ "fieldName": "yLabel"
31424
+ },
31425
+ {
31426
+ "name": "x-split",
31427
+ "type": {
31428
+ "text": "number | undefined"
31429
+ },
31430
+ "description": "X value of the vertical divider (the middle of the x domain by default)",
31431
+ "fieldName": "xSplit"
31432
+ },
31433
+ {
31434
+ "name": "y-split",
31435
+ "type": {
31436
+ "text": "number | undefined"
31437
+ },
31438
+ "description": "Y value of the horizontal divider (the middle of the y domain by default)",
31439
+ "fieldName": "ySplit"
31440
+ },
31441
+ {
31442
+ "name": "reverse-x",
31443
+ "type": {
31444
+ "text": "boolean"
31445
+ },
31446
+ "default": "false",
31447
+ "description": "Reverses the horizontal axis (e.g. \"urgent\" on the left)",
31448
+ "fieldName": "reverseX"
31449
+ },
31450
+ {
31451
+ "name": "hide-ticks",
31452
+ "type": {
31453
+ "text": "boolean"
31454
+ },
31455
+ "default": "false",
31456
+ "description": "Hides the numeric ticks of the axes (only the matrix remains)",
31457
+ "fieldName": "hideTicks"
31458
+ },
31459
+ {
31460
+ "name": "hide-labels",
31461
+ "type": {
31462
+ "text": "boolean"
31463
+ },
31464
+ "default": "false",
31465
+ "description": "Hides the labels next to the tasks",
31466
+ "fieldName": "hideLabels"
31467
+ },
31468
+ {
31469
+ "name": "hide-counts",
31470
+ "type": {
31471
+ "text": "boolean"
31472
+ },
31473
+ "default": "false",
31474
+ "description": "Hides the number of tasks in the quadrant headers",
31475
+ "fieldName": "hideCounts"
31476
+ },
31477
+ {
31478
+ "name": "point-size",
31479
+ "type": {
31480
+ "text": "number"
31481
+ },
31482
+ "default": "12",
31483
+ "description": "Dot diameter in pixels",
31484
+ "fieldName": "pointSize"
31485
+ },
31486
+ {
31487
+ "name": "selected-index",
31488
+ "type": {
31489
+ "text": "number | null | undefined"
31490
+ },
31491
+ "description": "Index of the selected task, drawn with a ring (`null`: none); by default the board selects the last clicked, moved or saved task",
31492
+ "fieldName": "selectedIndex"
31493
+ },
31494
+ {
31495
+ "name": "height",
31496
+ "type": {
31497
+ "text": "string | number | undefined"
31498
+ },
31499
+ "description": "Height of the chart: pixels or any CSS length (default 320)",
31500
+ "fieldName": "height"
31501
+ },
31502
+ {
31503
+ "name": "locale",
31504
+ "type": {
31505
+ "text": "string | undefined"
31506
+ },
31507
+ "description": "Language of the built-in texts, quadrant titles and numbers (e.g. \"fr\"); the library language by default",
31508
+ "fieldName": "locale"
31509
+ },
31510
+ {
31511
+ "name": "no-accessible-points",
31512
+ "type": {
31513
+ "text": "boolean"
31514
+ },
31515
+ "default": "false",
31516
+ "description": "Leaves out the visually hidden list of the tasks (keyboard and screen reader access, keyboard moves)",
31517
+ "fieldName": "noAccessiblePoints"
31518
+ }
31519
+ ],
31520
+ "tagName": "minerva-quadrant-task-board",
31521
+ "customElement": true,
31522
+ "summary": "Four-quadrant task board: add, edit, delete and drag tasks between quadrants.",
31523
+ "cssProperties": [
31524
+ {
31525
+ "name": "--quadrant-task-board-header-color",
31526
+ "description": "Text color of the quadrant titles (defaults to --text-color)"
31527
+ },
31528
+ {
31529
+ "name": "--quadrant-task-board-header-background",
31530
+ "description": "Background of the quadrant headers (defaults to a translucent surface)"
31531
+ },
31532
+ {
31533
+ "name": "--quadrant-task-board-count-background",
31534
+ "description": "Background of the task count chips (defaults to --surface-muted-color)"
31535
+ },
31536
+ {
31537
+ "name": "--quadrant-task-board-count-color",
31538
+ "description": "Text color of the task count chips (defaults to --text-secondary-color)"
31539
+ },
31540
+ {
31541
+ "name": "--quadrant-task-board-actions-background",
31542
+ "description": "Background of the toolbar of the active task (defaults to --surface-elevated-color)"
31543
+ },
31544
+ {
31545
+ "name": "--quadrant-task-board-actions-radius",
31546
+ "description": "Corner radius of the toolbar of the active task (defaults to --radius-md)"
31547
+ }
31548
+ ]
31549
+ }
31550
+ ],
31551
+ "exports": [
31552
+ {
31553
+ "kind": "js",
31554
+ "name": "MinervaQuadrantTaskBoard",
31555
+ "declaration": {
31556
+ "name": "MinervaQuadrantTaskBoard",
31557
+ "module": "src/components/quadrant-task-board/quadrant-task-board.ts"
31558
+ }
31559
+ }
31560
+ ]
31561
+ },
31140
31562
  {
31141
31563
  "kind": "javascript-module",
31142
31564
  "path": "src/components/radio/radio.ts",