@ixfx/components 0.2.3 → 0.2.4

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 (579) hide show
  1. package/LICENSE +1 -1
  2. package/bundle/chunk-pbuEa-1d.js +13 -0
  3. package/bundle/index.d.ts +4702 -569
  4. package/bundle/index.d.ts.map +1 -1
  5. package/bundle/index.js +34929 -2800
  6. package/bundle/index.js.map +1 -1
  7. package/bundle/style.css +133 -0
  8. package/dist/ac-text/ac-text.d.ts +99 -0
  9. package/dist/ac-text/ac-text.d.ts.map +1 -0
  10. package/dist/ac-text/ac-text.js +571 -0
  11. package/dist/ac-text/ac-text.js.map +1 -0
  12. package/dist/button/button-styles.d.ts +2 -0
  13. package/dist/button/button-styles.d.ts.map +1 -0
  14. package/dist/button/button-styles.js +75 -0
  15. package/dist/button/button-styles.js.map +1 -0
  16. package/dist/button/button.d.ts +16 -0
  17. package/dist/button/button.d.ts.map +1 -0
  18. package/dist/button/button.js +58 -0
  19. package/dist/button/button.js.map +1 -0
  20. package/dist/button/radio-group.d.ts +44 -0
  21. package/dist/button/radio-group.d.ts.map +1 -0
  22. package/dist/button/radio-group.js +385 -0
  23. package/dist/button/radio-group.js.map +1 -0
  24. package/dist/button/split-button.d.ts +59 -0
  25. package/dist/button/split-button.d.ts.map +1 -0
  26. package/dist/button/split-button.js +480 -0
  27. package/dist/button/split-button.js.map +1 -0
  28. package/dist/button/types.d.ts +18 -0
  29. package/dist/button/types.d.ts.map +1 -0
  30. package/dist/button/types.js +2 -0
  31. package/dist/button/types.js.map +1 -0
  32. package/dist/checkbox.d.ts +64 -0
  33. package/dist/checkbox.d.ts.map +1 -0
  34. package/dist/checkbox.js +265 -0
  35. package/dist/checkbox.js.map +1 -0
  36. package/dist/colour-picker/colour-picker-popup.d.ts +102 -0
  37. package/dist/colour-picker/colour-picker-popup.d.ts.map +1 -0
  38. package/dist/colour-picker/colour-picker-popup.js +399 -0
  39. package/dist/colour-picker/colour-picker-popup.js.map +1 -0
  40. package/dist/colour-picker/colour-picker.d.ts +100 -0
  41. package/dist/colour-picker/colour-picker.d.ts.map +1 -0
  42. package/dist/colour-picker/colour-picker.js +567 -0
  43. package/dist/colour-picker/colour-picker.js.map +1 -0
  44. package/dist/colour-picker/index.d.ts +4 -0
  45. package/dist/colour-picker/index.d.ts.map +1 -0
  46. package/dist/colour-picker/index.js +3 -0
  47. package/dist/colour-picker/index.js.map +1 -0
  48. package/dist/colour-picker/styles.d.ts +2 -0
  49. package/dist/colour-picker/styles.d.ts.map +1 -0
  50. package/dist/colour-picker/styles.js +139 -0
  51. package/dist/colour-picker/styles.js.map +1 -0
  52. package/dist/colour-picker/types.d.ts +33 -0
  53. package/dist/colour-picker/types.d.ts.map +1 -0
  54. package/dist/colour-picker/types.js +2 -0
  55. package/dist/colour-picker/types.js.map +1 -0
  56. package/dist/colour-picker/util.d.ts +15 -0
  57. package/dist/colour-picker/util.d.ts.map +1 -0
  58. package/dist/colour-picker/util.js +35 -0
  59. package/dist/colour-picker/util.js.map +1 -0
  60. package/dist/common/searchable.d.ts +9 -0
  61. package/dist/common/searchable.d.ts.map +1 -0
  62. package/dist/common/searchable.js +9 -0
  63. package/dist/common/searchable.js.map +1 -0
  64. package/dist/common/tree-component.d.ts +172 -0
  65. package/dist/common/tree-component.d.ts.map +1 -0
  66. package/dist/common/tree-component.js +8 -0
  67. package/dist/common/tree-component.js.map +1 -0
  68. package/dist/common/tree-data-model.d.ts +100 -0
  69. package/dist/common/tree-data-model.d.ts.map +1 -0
  70. package/dist/common/tree-data-model.js +207 -0
  71. package/dist/common/tree-data-model.js.map +1 -0
  72. package/dist/common/tree-item.d.ts +7 -0
  73. package/dist/common/tree-item.d.ts.map +1 -0
  74. package/dist/common/tree-item.js +2 -0
  75. package/dist/common/tree-item.js.map +1 -0
  76. package/dist/common/types.d.ts +69 -0
  77. package/dist/common/types.d.ts.map +1 -0
  78. package/dist/common/types.js +6 -0
  79. package/dist/common/types.js.map +1 -0
  80. package/dist/crumbs/crumb-navigation.d.ts +96 -0
  81. package/dist/crumbs/crumb-navigation.d.ts.map +1 -0
  82. package/dist/crumbs/crumb-navigation.js +911 -0
  83. package/dist/crumbs/crumb-navigation.js.map +1 -0
  84. package/dist/crumbs/crumb-path-controller.d.ts +18 -0
  85. package/dist/crumbs/crumb-path-controller.d.ts.map +1 -0
  86. package/dist/crumbs/crumb-path-controller.js +81 -0
  87. package/dist/crumbs/crumb-path-controller.js.map +1 -0
  88. package/dist/crumbs/crumb-path.d.ts +65 -0
  89. package/dist/crumbs/crumb-path.d.ts.map +1 -0
  90. package/dist/crumbs/crumb-path.js +691 -0
  91. package/dist/crumbs/crumb-path.js.map +1 -0
  92. package/dist/data-display.d.ts +10 -3
  93. package/dist/data-display.d.ts.map +1 -1
  94. package/dist/data-display.js +45 -28
  95. package/dist/data-display.js.map +1 -1
  96. package/dist/editable-label/editable-label.d.ts +98 -0
  97. package/dist/editable-label/editable-label.d.ts.map +1 -0
  98. package/dist/editable-label/editable-label.js +348 -0
  99. package/dist/editable-label/editable-label.js.map +1 -0
  100. package/dist/editable-label/editable-number.d.ts +96 -0
  101. package/dist/editable-label/editable-number.d.ts.map +1 -0
  102. package/dist/editable-label/editable-number.js +702 -0
  103. package/dist/editable-label/editable-number.js.map +1 -0
  104. package/dist/hex/colour.d.ts +6 -0
  105. package/dist/hex/colour.d.ts.map +1 -0
  106. package/dist/hex/colour.js +33 -0
  107. package/dist/hex/colour.js.map +1 -0
  108. package/dist/hex/data.d.ts +18 -0
  109. package/dist/hex/data.d.ts.map +1 -0
  110. package/dist/hex/data.js +61 -0
  111. package/dist/hex/data.js.map +1 -0
  112. package/dist/hex/diff.d.ts +14 -0
  113. package/dist/hex/diff.d.ts.map +1 -0
  114. package/dist/hex/diff.js +31 -0
  115. package/dist/hex/diff.js.map +1 -0
  116. package/dist/hex/hex-editor.d.ts +101 -0
  117. package/dist/hex/hex-editor.d.ts.map +1 -0
  118. package/dist/hex/hex-editor.js +894 -0
  119. package/dist/hex/hex-editor.js.map +1 -0
  120. package/dist/hex/selection.d.ts +11 -0
  121. package/dist/hex/selection.d.ts.map +1 -0
  122. package/dist/hex/selection.js +218 -0
  123. package/dist/hex/selection.js.map +1 -0
  124. package/dist/hex/types.d.ts +34 -0
  125. package/dist/hex/types.d.ts.map +1 -0
  126. package/dist/hex/types.js +4 -0
  127. package/dist/hex/types.js.map +1 -0
  128. package/dist/icons/defaults.d.ts +27 -0
  129. package/dist/icons/defaults.d.ts.map +1 -0
  130. package/dist/icons/defaults.js +34 -0
  131. package/dist/icons/defaults.js.map +1 -0
  132. package/dist/icons/icon.d.ts +31 -0
  133. package/dist/icons/icon.d.ts.map +1 -0
  134. package/dist/icons/icon.js +125 -0
  135. package/dist/icons/icon.js.map +1 -0
  136. package/dist/icons/index.d.ts +5 -0
  137. package/dist/icons/index.d.ts.map +1 -0
  138. package/dist/icons/index.js +6 -0
  139. package/dist/icons/index.js.map +1 -0
  140. package/dist/icons/registry.d.ts +11 -0
  141. package/dist/icons/registry.d.ts.map +1 -0
  142. package/dist/icons/registry.js +17 -0
  143. package/dist/icons/registry.js.map +1 -0
  144. package/dist/incr-search/ac-adapter.d.ts +18 -0
  145. package/dist/incr-search/ac-adapter.d.ts.map +1 -0
  146. package/dist/incr-search/ac-adapter.js +29 -0
  147. package/dist/incr-search/ac-adapter.js.map +1 -0
  148. package/dist/incr-search/controller-miller.d.ts +9 -0
  149. package/dist/incr-search/controller-miller.d.ts.map +1 -0
  150. package/dist/incr-search/controller-miller.js +8 -0
  151. package/dist/incr-search/controller-miller.js.map +1 -0
  152. package/dist/incr-search/controller-tree.d.ts +55 -0
  153. package/dist/incr-search/controller-tree.d.ts.map +1 -0
  154. package/dist/incr-search/controller-tree.js +106 -0
  155. package/dist/incr-search/controller-tree.js.map +1 -0
  156. package/dist/incr-search/element-search.d.ts +15 -0
  157. package/dist/incr-search/element-search.d.ts.map +1 -0
  158. package/dist/incr-search/element-search.js +82 -0
  159. package/dist/incr-search/element-search.js.map +1 -0
  160. package/dist/incr-search/fuzzy.d.ts +3 -0
  161. package/dist/incr-search/fuzzy.d.ts.map +1 -0
  162. package/dist/incr-search/fuzzy.js +37 -0
  163. package/dist/incr-search/fuzzy.js.map +1 -0
  164. package/dist/incr-search/highlight.d.ts +5 -0
  165. package/dist/incr-search/highlight.d.ts.map +1 -0
  166. package/dist/incr-search/highlight.js +54 -0
  167. package/dist/incr-search/highlight.js.map +1 -0
  168. package/dist/incr-search/incr-search.d.ts +3 -0
  169. package/dist/incr-search/incr-search.d.ts.map +1 -0
  170. package/dist/incr-search/incr-search.js +73 -0
  171. package/dist/incr-search/incr-search.js.map +1 -0
  172. package/dist/incr-search/index.d.ts +12 -0
  173. package/dist/incr-search/index.d.ts.map +1 -0
  174. package/dist/incr-search/index.js +8 -0
  175. package/dist/incr-search/index.js.map +1 -0
  176. package/dist/incr-search/types.d.ts +59 -0
  177. package/dist/incr-search/types.d.ts.map +1 -0
  178. package/dist/incr-search/types.js +2 -0
  179. package/dist/incr-search/types.js.map +1 -0
  180. package/dist/index.d.ts +49 -9
  181. package/dist/index.d.ts.map +1 -1
  182. package/dist/index.js +50 -10
  183. package/dist/index.js.map +1 -1
  184. package/dist/interaction/index.d.ts +10 -0
  185. package/dist/interaction/index.d.ts.map +1 -0
  186. package/dist/interaction/index.js +10 -0
  187. package/dist/interaction/index.js.map +1 -0
  188. package/dist/interaction/tickled-controller.d.ts +186 -0
  189. package/dist/interaction/tickled-controller.d.ts.map +1 -0
  190. package/dist/interaction/tickled-controller.js +256 -0
  191. package/dist/interaction/tickled-controller.js.map +1 -0
  192. package/dist/interaction/tickled-styles.d.ts +53 -0
  193. package/dist/interaction/tickled-styles.d.ts.map +1 -0
  194. package/dist/interaction/tickled-styles.js +106 -0
  195. package/dist/interaction/tickled-styles.js.map +1 -0
  196. package/dist/interaction/tree-keyboard-controller.d.ts +30 -0
  197. package/dist/interaction/tree-keyboard-controller.d.ts.map +1 -0
  198. package/dist/interaction/tree-keyboard-controller.js +105 -0
  199. package/dist/interaction/tree-keyboard-controller.js.map +1 -0
  200. package/dist/keyboard.d.ts +16 -0
  201. package/dist/keyboard.d.ts.map +1 -0
  202. package/dist/keyboard.js +22 -0
  203. package/dist/keyboard.js.map +1 -0
  204. package/dist/labelled-radial-input/index.d.ts +2 -0
  205. package/dist/labelled-radial-input/index.d.ts.map +1 -0
  206. package/dist/labelled-radial-input/index.js +2 -0
  207. package/dist/labelled-radial-input/index.js.map +1 -0
  208. package/dist/labelled-radial-input/labelled-radial-input.d.ts +77 -0
  209. package/dist/labelled-radial-input/labelled-radial-input.d.ts.map +1 -0
  210. package/dist/labelled-radial-input/labelled-radial-input.js +214 -0
  211. package/dist/labelled-radial-input/labelled-radial-input.js.map +1 -0
  212. package/dist/labelled-range-input/index.d.ts +2 -0
  213. package/dist/labelled-range-input/index.d.ts.map +1 -0
  214. package/dist/labelled-range-input/index.js +2 -0
  215. package/dist/labelled-range-input/index.js.map +1 -0
  216. package/dist/labelled-range-input/labelled-range-input.d.ts +80 -0
  217. package/dist/labelled-range-input/labelled-range-input.d.ts.map +1 -0
  218. package/dist/labelled-range-input/labelled-range-input.js +137 -0
  219. package/dist/labelled-range-input/labelled-range-input.js.map +1 -0
  220. package/dist/led.d.ts +20 -0
  221. package/dist/led.d.ts.map +1 -0
  222. package/dist/led.js +100 -0
  223. package/dist/led.js.map +1 -0
  224. package/dist/menu/index.d.ts +14 -0
  225. package/dist/menu/index.d.ts.map +1 -0
  226. package/dist/menu/index.js +13 -0
  227. package/dist/menu/index.js.map +1 -0
  228. package/dist/menu/menu-bar.d.ts +23 -0
  229. package/dist/menu/menu-bar.d.ts.map +1 -0
  230. package/dist/menu/menu-bar.js +110 -0
  231. package/dist/menu/menu-bar.js.map +1 -0
  232. package/dist/menu/menu-check-item.d.ts +33 -0
  233. package/dist/menu/menu-check-item.d.ts.map +1 -0
  234. package/dist/menu/menu-check-item.js +175 -0
  235. package/dist/menu/menu-check-item.js.map +1 -0
  236. package/dist/menu/menu-command-controller.d.ts +14 -0
  237. package/dist/menu/menu-command-controller.d.ts.map +1 -0
  238. package/dist/menu/menu-command-controller.js +22 -0
  239. package/dist/menu/menu-command-controller.js.map +1 -0
  240. package/dist/menu/menu-container.d.ts +36 -0
  241. package/dist/menu/menu-container.d.ts.map +1 -0
  242. package/dist/menu/menu-container.js +351 -0
  243. package/dist/menu/menu-container.js.map +1 -0
  244. package/dist/menu/menu-from-tree.d.ts +17 -0
  245. package/dist/menu/menu-from-tree.d.ts.map +1 -0
  246. package/dist/menu/menu-from-tree.js +103 -0
  247. package/dist/menu/menu-from-tree.js.map +1 -0
  248. package/dist/menu/menu-header.d.ts +12 -0
  249. package/dist/menu/menu-header.d.ts.map +1 -0
  250. package/dist/menu/menu-header.js +36 -0
  251. package/dist/menu/menu-header.js.map +1 -0
  252. package/dist/menu/menu-item.d.ts +41 -0
  253. package/dist/menu/menu-item.d.ts.map +1 -0
  254. package/dist/menu/menu-item.js +240 -0
  255. package/dist/menu/menu-item.js.map +1 -0
  256. package/dist/menu/menu-radio-group.d.ts +24 -0
  257. package/dist/menu/menu-radio-group.d.ts.map +1 -0
  258. package/dist/menu/menu-radio-group.js +71 -0
  259. package/dist/menu/menu-radio-group.js.map +1 -0
  260. package/dist/menu/menu-radio-item.d.ts +22 -0
  261. package/dist/menu/menu-radio-item.d.ts.map +1 -0
  262. package/dist/menu/menu-radio-item.js +116 -0
  263. package/dist/menu/menu-radio-item.js.map +1 -0
  264. package/dist/menu/menu-separator.d.ts +11 -0
  265. package/dist/menu/menu-separator.d.ts.map +1 -0
  266. package/dist/menu/menu-separator.js +29 -0
  267. package/dist/menu/menu-separator.js.map +1 -0
  268. package/dist/menu/menu-sub-trigger.d.ts +46 -0
  269. package/dist/menu/menu-sub-trigger.d.ts.map +1 -0
  270. package/dist/menu/menu-sub-trigger.js +302 -0
  271. package/dist/menu/menu-sub-trigger.js.map +1 -0
  272. package/dist/menu/menu-trigger.d.ts +57 -0
  273. package/dist/menu/menu-trigger.d.ts.map +1 -0
  274. package/dist/menu/menu-trigger.js +351 -0
  275. package/dist/menu/menu-trigger.js.map +1 -0
  276. package/dist/miller/index.d.ts +5 -0
  277. package/dist/miller/index.d.ts.map +1 -0
  278. package/dist/miller/index.js +5 -0
  279. package/dist/miller/index.js.map +1 -0
  280. package/dist/miller/miller-base.d.ts +184 -0
  281. package/dist/miller/miller-base.d.ts.map +1 -0
  282. package/dist/miller/miller-base.js +1249 -0
  283. package/dist/miller/miller-base.js.map +1 -0
  284. package/dist/miller/miller-list.d.ts +30 -0
  285. package/dist/miller/miller-list.d.ts.map +1 -0
  286. package/dist/miller/miller-list.js +192 -0
  287. package/dist/miller/miller-list.js.map +1 -0
  288. package/dist/miller/miller-tree-controller.d.ts +58 -0
  289. package/dist/miller/miller-tree-controller.d.ts.map +1 -0
  290. package/dist/miller/miller-tree-controller.js +134 -0
  291. package/dist/miller/miller-tree-controller.js.map +1 -0
  292. package/dist/miller/types.d.ts +63 -0
  293. package/dist/miller/types.d.ts.map +1 -0
  294. package/dist/miller/types.js +6 -0
  295. package/dist/miller/types.js.map +1 -0
  296. package/dist/mixins/labelled-input-base.d.ts +38 -0
  297. package/dist/mixins/labelled-input-base.d.ts.map +1 -0
  298. package/dist/mixins/labelled-input-base.js +171 -0
  299. package/dist/mixins/labelled-input-base.js.map +1 -0
  300. package/dist/mixins/labelled-input-util.d.ts +3 -0
  301. package/dist/mixins/labelled-input-util.d.ts.map +1 -0
  302. package/dist/mixins/labelled-input-util.js +10 -0
  303. package/dist/mixins/labelled-input-util.js.map +1 -0
  304. package/dist/my-element.d.ts.map +1 -1
  305. package/dist/my-element.js +1 -1
  306. package/dist/my-element.js.map +1 -1
  307. package/dist/narrowed-text/index.d.ts +3 -0
  308. package/dist/narrowed-text/index.d.ts.map +1 -0
  309. package/dist/narrowed-text/index.js +3 -0
  310. package/dist/narrowed-text/index.js.map +1 -0
  311. package/dist/narrowed-text/narrowed-text.d.ts +48 -0
  312. package/dist/narrowed-text/narrowed-text.d.ts.map +1 -0
  313. package/dist/narrowed-text/narrowed-text.js +668 -0
  314. package/dist/narrowed-text/narrowed-text.js.map +1 -0
  315. package/dist/narrowed-text/types.d.ts +20 -0
  316. package/dist/narrowed-text/types.d.ts.map +1 -0
  317. package/dist/narrowed-text/types.js +2 -0
  318. package/dist/narrowed-text/types.js.map +1 -0
  319. package/dist/panel/panel-group.d.ts +23 -0
  320. package/dist/panel/panel-group.d.ts.map +1 -0
  321. package/dist/panel/panel-group.js +109 -0
  322. package/dist/panel/panel-group.js.map +1 -0
  323. package/dist/panel/panel.d.ts +39 -0
  324. package/dist/panel/panel.d.ts.map +1 -0
  325. package/dist/panel/panel.js +417 -0
  326. package/dist/panel/panel.js.map +1 -0
  327. package/dist/plots/colour-map.d.ts +31 -0
  328. package/dist/plots/colour-map.d.ts.map +1 -0
  329. package/dist/plots/colour-map.js +133 -0
  330. package/dist/plots/colour-map.js.map +1 -0
  331. package/dist/plots/data.d.ts +27 -0
  332. package/dist/plots/data.d.ts.map +1 -0
  333. package/dist/plots/data.js +47 -0
  334. package/dist/plots/data.js.map +1 -0
  335. package/dist/plots/single-axis.d.ts +41 -0
  336. package/dist/plots/single-axis.d.ts.map +1 -0
  337. package/dist/plots/single-axis.js +428 -0
  338. package/dist/plots/single-axis.js.map +1 -0
  339. package/dist/plots/svg-utils.d.ts +12 -0
  340. package/dist/plots/svg-utils.d.ts.map +1 -0
  341. package/dist/plots/svg-utils.js +64 -0
  342. package/dist/plots/svg-utils.js.map +1 -0
  343. package/dist/plots/xy-axis.d.ts +42 -0
  344. package/dist/plots/xy-axis.d.ts.map +1 -0
  345. package/dist/plots/xy-axis.js +307 -0
  346. package/dist/plots/xy-axis.js.map +1 -0
  347. package/dist/polar-pad/polar-pad.d.ts +132 -0
  348. package/dist/polar-pad/polar-pad.d.ts.map +1 -0
  349. package/dist/polar-pad/polar-pad.js +598 -0
  350. package/dist/polar-pad/polar-pad.js.map +1 -0
  351. package/dist/radial-input/radial-input.d.ts +45 -0
  352. package/dist/radial-input/radial-input.d.ts.map +1 -0
  353. package/dist/radial-input/radial-input.js +692 -0
  354. package/dist/radial-input/radial-input.js.map +1 -0
  355. package/dist/radial-input/svg-utils.d.ts +147 -0
  356. package/dist/radial-input/svg-utils.d.ts.map +1 -0
  357. package/dist/radial-input/svg-utils.js +346 -0
  358. package/dist/radial-input/svg-utils.js.map +1 -0
  359. package/dist/radial-input/types.d.ts +25 -0
  360. package/dist/radial-input/types.d.ts.map +1 -0
  361. package/dist/radial-input/types.js +5 -0
  362. package/dist/radial-input/types.js.map +1 -0
  363. package/dist/range/range-multi.d.ts +62 -0
  364. package/dist/range/range-multi.d.ts.map +1 -0
  365. package/dist/range/range-multi.js +652 -0
  366. package/dist/range/range-multi.js.map +1 -0
  367. package/dist/range/range.d.ts +23 -0
  368. package/dist/range/range.d.ts.map +1 -0
  369. package/dist/range/range.js +153 -0
  370. package/dist/range/range.js.map +1 -0
  371. package/dist/range-input/index.d.ts +2 -0
  372. package/dist/range-input/index.d.ts.map +1 -0
  373. package/dist/range-input/index.js +2 -0
  374. package/dist/range-input/index.js.map +1 -0
  375. package/dist/range-input/range-input.d.ts +92 -0
  376. package/dist/range-input/range-input.d.ts.map +1 -0
  377. package/dist/range-input/range-input.js +472 -0
  378. package/dist/range-input/range-input.js.map +1 -0
  379. package/dist/selecthorizontal.d.ts +1 -1
  380. package/dist/selecthorizontal.d.ts.map +1 -1
  381. package/dist/selecthorizontal.js +3 -3
  382. package/dist/selecthorizontal.js.map +1 -1
  383. package/dist/snap-container/snap-container.d.ts +45 -0
  384. package/dist/snap-container/snap-container.d.ts.map +1 -0
  385. package/dist/snap-container/snap-container.js +352 -0
  386. package/dist/snap-container/snap-container.js.map +1 -0
  387. package/dist/split-layout/split-layout.d.ts +25 -9
  388. package/dist/split-layout/split-layout.d.ts.map +1 -1
  389. package/dist/split-layout/split-layout.js +520 -66
  390. package/dist/split-layout/split-layout.js.map +1 -1
  391. package/dist/styles/popup.d.ts +11 -0
  392. package/dist/styles/popup.d.ts.map +1 -0
  393. package/dist/styles/popup.js +20 -0
  394. package/dist/styles/popup.js.map +1 -0
  395. package/dist/styles/prominence.d.ts +58 -0
  396. package/dist/styles/prominence.d.ts.map +1 -0
  397. package/dist/styles/prominence.js +94 -0
  398. package/dist/styles/prominence.js.map +1 -0
  399. package/dist/styles/tooltip.d.ts +2 -0
  400. package/dist/styles/tooltip.d.ts.map +1 -0
  401. package/dist/styles/tooltip.js +100 -0
  402. package/dist/styles/tooltip.js.map +1 -0
  403. package/dist/svg-edit-label.js +1 -1
  404. package/dist/svg-edit-label.js.map +1 -1
  405. package/dist/swipe/index.d.ts +2 -0
  406. package/dist/swipe/index.d.ts.map +1 -0
  407. package/dist/swipe/index.js +2 -0
  408. package/dist/swipe/index.js.map +1 -0
  409. package/dist/swipe/swipe.d.ts +65 -0
  410. package/dist/swipe/swipe.d.ts.map +1 -0
  411. package/dist/swipe/swipe.js +229 -0
  412. package/dist/swipe/swipe.js.map +1 -0
  413. package/dist/tabs/tab-layout-item.d.ts.map +1 -1
  414. package/dist/tabs/tab-layout-item.js +1 -1
  415. package/dist/tabs/tab-layout-item.js.map +1 -1
  416. package/dist/tabs/tab-layout.d.ts.map +1 -1
  417. package/dist/tabs/tab-layout.js +1 -1
  418. package/dist/tabs/tab-layout.js.map +1 -1
  419. package/dist/tabs/tab-list-item.d.ts +22 -6
  420. package/dist/tabs/tab-list-item.d.ts.map +1 -1
  421. package/dist/tabs/tab-list-item.js +174 -42
  422. package/dist/tabs/tab-list-item.js.map +1 -1
  423. package/dist/tabs/tab-list.d.ts +15 -5
  424. package/dist/tabs/tab-list.d.ts.map +1 -1
  425. package/dist/tabs/tab-list.js +159 -50
  426. package/dist/tabs/tab-list.js.map +1 -1
  427. package/dist/tabs/tab-panel.d.ts +1 -1
  428. package/dist/tabs/tab-panel.d.ts.map +1 -1
  429. package/dist/tabs/tab-panel.js +2 -2
  430. package/dist/tabs/tab-panel.js.map +1 -1
  431. package/dist/tabs/tab-panels.d.ts +3 -3
  432. package/dist/tabs/tab-panels.d.ts.map +1 -1
  433. package/dist/tabs/tab-panels.js +6 -6
  434. package/dist/tabs/tab-panels.js.map +1 -1
  435. package/dist/timeline/index.d.ts +9 -0
  436. package/dist/timeline/index.d.ts.map +1 -0
  437. package/dist/timeline/index.js +8 -0
  438. package/dist/timeline/index.js.map +1 -0
  439. package/dist/timeline/timeline-controller.d.ts +48 -0
  440. package/dist/timeline/timeline-controller.d.ts.map +1 -0
  441. package/dist/timeline/timeline-controller.js +81 -0
  442. package/dist/timeline/timeline-controller.js.map +1 -0
  443. package/dist/timeline/timeline-draw.d.ts +28 -0
  444. package/dist/timeline/timeline-draw.d.ts.map +1 -0
  445. package/dist/timeline/timeline-draw.js +330 -0
  446. package/dist/timeline/timeline-draw.js.map +1 -0
  447. package/dist/timeline/timeline-element.d.ts +140 -0
  448. package/dist/timeline/timeline-element.d.ts.map +1 -0
  449. package/dist/timeline/timeline-element.js +888 -0
  450. package/dist/timeline/timeline-element.js.map +1 -0
  451. package/dist/timeline/timeline-interactions.d.ts +40 -0
  452. package/dist/timeline/timeline-interactions.d.ts.map +1 -0
  453. package/dist/timeline/timeline-interactions.js +393 -0
  454. package/dist/timeline/timeline-interactions.js.map +1 -0
  455. package/dist/timeline/timeline-styles.d.ts +2 -0
  456. package/dist/timeline/timeline-styles.d.ts.map +1 -0
  457. package/dist/timeline/timeline-styles.js +153 -0
  458. package/dist/timeline/timeline-styles.js.map +1 -0
  459. package/dist/timeline/timeline-track-tabs.d.ts +30 -0
  460. package/dist/timeline/timeline-track-tabs.d.ts.map +1 -0
  461. package/dist/timeline/timeline-track-tabs.js +204 -0
  462. package/dist/timeline/timeline-track-tabs.js.map +1 -0
  463. package/dist/timeline/types.d.ts +144 -0
  464. package/dist/timeline/types.d.ts.map +1 -0
  465. package/dist/timeline/types.js +3 -0
  466. package/dist/timeline/types.js.map +1 -0
  467. package/dist/tree/index.d.ts +5 -0
  468. package/dist/tree/index.d.ts.map +1 -0
  469. package/dist/tree/index.js +5 -0
  470. package/dist/tree/index.js.map +1 -0
  471. package/dist/tree/tree-base.d.ts +70 -0
  472. package/dist/tree/tree-base.d.ts.map +1 -0
  473. package/dist/tree/tree-base.js +1028 -0
  474. package/dist/tree/tree-base.js.map +1 -0
  475. package/dist/tree/tree-controller.d.ts +14 -0
  476. package/dist/tree/tree-controller.d.ts.map +1 -0
  477. package/dist/tree/tree-controller.js +96 -0
  478. package/dist/tree/tree-controller.js.map +1 -0
  479. package/dist/tree/tree-list.d.ts +20 -0
  480. package/dist/tree/tree-list.d.ts.map +1 -0
  481. package/dist/tree/tree-list.js +174 -0
  482. package/dist/tree/tree-list.js.map +1 -0
  483. package/dist/tree/types.d.ts +14 -0
  484. package/dist/tree/types.d.ts.map +1 -0
  485. package/dist/tree/types.js +7 -0
  486. package/dist/tree/types.js.map +1 -0
  487. package/dist/util/checkbox.d.ts +2 -0
  488. package/dist/util/checkbox.d.ts.map +1 -0
  489. package/dist/util/checkbox.js +69 -0
  490. package/dist/util/checkbox.js.map +1 -0
  491. package/dist/util/circle-arc.d.ts +6 -6
  492. package/dist/util/circle-arc.d.ts.map +1 -1
  493. package/dist/util/circle-arc.js +28 -20
  494. package/dist/util/circle-arc.js.map +1 -1
  495. package/dist/util/clamp.d.ts +4 -0
  496. package/dist/util/clamp.d.ts.map +1 -0
  497. package/dist/util/clamp.js +23 -0
  498. package/dist/util/clamp.js.map +1 -0
  499. package/dist/util/compare.d.ts +8 -8
  500. package/dist/util/compare.d.ts.map +1 -1
  501. package/dist/util/compare.js +13 -13
  502. package/dist/util/compare.js.map +1 -1
  503. package/dist/util/content-editable.d.ts +1 -1
  504. package/dist/util/content-editable.d.ts.map +1 -1
  505. package/dist/util/content-editable.js +2 -2
  506. package/dist/util/content-editable.js.map +1 -1
  507. package/dist/util/coordinates.d.ts +3 -0
  508. package/dist/util/coordinates.d.ts.map +1 -0
  509. package/dist/util/coordinates.js +11 -0
  510. package/dist/util/coordinates.js.map +1 -0
  511. package/dist/util/drag.d.ts +16 -0
  512. package/dist/util/drag.d.ts.map +1 -0
  513. package/dist/util/drag.js +20 -0
  514. package/dist/util/drag.js.map +1 -0
  515. package/dist/util/is-numeric.d.ts +2 -0
  516. package/dist/util/is-numeric.d.ts.map +1 -0
  517. package/dist/util/is-numeric.js +9 -0
  518. package/dist/util/is-numeric.js.map +1 -0
  519. package/dist/util/key-value.d.ts +2 -2
  520. package/dist/util/key-value.d.ts.map +1 -1
  521. package/dist/util/key-value.js +4 -5
  522. package/dist/util/key-value.js.map +1 -1
  523. package/dist/util/near.d.ts +2 -0
  524. package/dist/util/near.d.ts.map +1 -0
  525. package/dist/util/near.js +6 -0
  526. package/dist/util/near.js.map +1 -0
  527. package/dist/util/svg-editable-text.d.ts +6 -2
  528. package/dist/util/svg-editable-text.d.ts.map +1 -1
  529. package/dist/util/svg-editable-text.js +5 -7
  530. package/dist/util/svg-editable-text.js.map +1 -1
  531. package/dist/util/time.d.ts.map +1 -1
  532. package/dist/util/time.js +1 -1
  533. package/dist/util/time.js.map +1 -1
  534. package/dist/util/tooltip-controller.d.ts +10 -0
  535. package/dist/util/tooltip-controller.d.ts.map +1 -0
  536. package/dist/util/tooltip-controller.js +237 -0
  537. package/dist/util/tooltip-controller.js.map +1 -0
  538. package/dist/util/tooltip.d.ts +21 -0
  539. package/dist/util/tooltip.d.ts.map +1 -0
  540. package/dist/util/tooltip.js +98 -0
  541. package/dist/util/tooltip.js.map +1 -0
  542. package/dist/util/value-drag.d.ts +33 -0
  543. package/dist/util/value-drag.d.ts.map +1 -0
  544. package/dist/util/value-drag.js +154 -0
  545. package/dist/util/value-drag.js.map +1 -0
  546. package/dist/xy-pad.d.ts +117 -0
  547. package/dist/xy-pad.d.ts.map +1 -0
  548. package/dist/xy-pad.js +455 -0
  549. package/dist/xy-pad.js.map +1 -0
  550. package/package.json +47 -30
  551. package/README.md +0 -14
  552. package/dist/charts/frequency-histogram-plot.d.ts +0 -33
  553. package/dist/charts/frequency-histogram-plot.d.ts.map +0 -1
  554. package/dist/charts/frequency-histogram-plot.js +0 -54
  555. package/dist/charts/frequency-histogram-plot.js.map +0 -1
  556. package/dist/charts/histogram-vis.d.ts +0 -57
  557. package/dist/charts/histogram-vis.d.ts.map +0 -1
  558. package/dist/charts/histogram-vis.js +0 -222
  559. package/dist/charts/histogram-vis.js.map +0 -1
  560. package/dist/charts/plot.d.ts +0 -199
  561. package/dist/charts/plot.d.ts.map +0 -1
  562. package/dist/charts/plot.js +0 -914
  563. package/dist/charts/plot.js.map +0 -1
  564. package/dist/crumb-nav.d.ts +0 -41
  565. package/dist/crumb-nav.d.ts.map +0 -1
  566. package/dist/crumb-nav.js +0 -198
  567. package/dist/crumb-nav.js.map +0 -1
  568. package/dist/crumb-navigation.d.ts +0 -30
  569. package/dist/crumb-navigation.d.ts.map +0 -1
  570. package/dist/crumb-navigation.js +0 -307
  571. package/dist/crumb-navigation.js.map +0 -1
  572. package/dist/dial.d.ts +0 -89
  573. package/dist/dial.d.ts.map +0 -1
  574. package/dist/dial.js +0 -506
  575. package/dist/dial.js.map +0 -1
  576. package/dist/util/drag-controller.d.ts +0 -13
  577. package/dist/util/drag-controller.d.ts.map +0 -1
  578. package/dist/util/drag-controller.js +0 -21
  579. package/dist/util/drag-controller.js.map +0 -1
@@ -0,0 +1,691 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { css, html, LitElement, nothing } from 'lit';
8
+ import { customElement, property, state } from 'lit/decorators.js';
9
+ import { popupSurfaceStyles } from '../styles/popup.js';
10
+ import '../ac-text/ac-text.js';
11
+ const INVALID_ANCHOR_CHARS_RE = /[^\w-]/g;
12
+ let CrumbPathElement = class CrumbPathElement extends LitElement {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.path = ``;
16
+ this.separator = `/`;
17
+ this.pathRoot = ``;
18
+ this._openIdx = null;
19
+ this._editing = false;
20
+ this._cachedSiblings = new Map();
21
+ this._leafSegmentIndex = null;
22
+ this._confirmedLeafIndices = new Set();
23
+ this._dropdownActiveIndex = -1;
24
+ this._editingCancelled = false;
25
+ this._editStartIndex = null;
26
+ this._openCumPath = null;
27
+ this.#uid = Math.random().toString(36).slice(2, 8);
28
+ this.#onPopoverToggle = (e) => {
29
+ if (e.newState === `closed` && this._openIdx !== null) {
30
+ this._openIdx = null;
31
+ this._dropdownActiveIndex = -1;
32
+ this.#cleanupPending();
33
+ }
34
+ };
35
+ this.#onDropdownKeyDown = (e) => {
36
+ if (this._openIdx === null)
37
+ return;
38
+ const siblings = this._cachedSiblings.get(this._openCumPath ?? String(this._openIdx)) ?? [];
39
+ if (!siblings.length) {
40
+ if (e.key === `Escape`) {
41
+ e.preventDefault();
42
+ this.#closeDropdown();
43
+ }
44
+ return;
45
+ }
46
+ switch (e.key) {
47
+ case `ArrowDown`:
48
+ e.preventDefault();
49
+ this._dropdownActiveIndex = (this._dropdownActiveIndex + 1) % siblings.length;
50
+ this.#scrollDropdownActiveIntoView();
51
+ break;
52
+ case `ArrowUp`:
53
+ e.preventDefault();
54
+ this._dropdownActiveIndex = this._dropdownActiveIndex <= 0
55
+ ? siblings.length - 1
56
+ : this._dropdownActiveIndex - 1;
57
+ this.#scrollDropdownActiveIntoView();
58
+ break;
59
+ case `Enter`:
60
+ if (this._dropdownActiveIndex >= 0) {
61
+ e.preventDefault();
62
+ this.#selectSibling(this._openIdx, siblings[this._dropdownActiveIndex]);
63
+ }
64
+ break;
65
+ case `Escape`:
66
+ e.preventDefault();
67
+ this.#closeDropdown();
68
+ break;
69
+ }
70
+ };
71
+ this.#onHostKeyDown = (e) => {
72
+ if (this._editing)
73
+ return;
74
+ const nonEditKeys = [`ArrowUp`, `ArrowDown`, `ArrowLeft`, `ArrowRight`, `Enter`];
75
+ if (!nonEditKeys.includes(e.key)) {
76
+ this._editing = true;
77
+ }
78
+ };
79
+ }
80
+ #pendingController;
81
+ #pendingIndex;
82
+ #uid;
83
+ #anchorName(cumPath) {
84
+ return `--cp-${this.#uid}-${cumPath
85
+ .replaceAll(this.separator, `-`)
86
+ .replaceAll(` `, `-`)
87
+ .replace(INVALID_ANCHOR_CHARS_RE, `-`)}`;
88
+ }
89
+ #closeDropdown() {
90
+ if (this._openIdx !== null) {
91
+ this._openIdx = null;
92
+ this._openCumPath = null;
93
+ this._dropdownActiveIndex = -1;
94
+ this.#cleanupPending();
95
+ const popup = this.shadowRoot?.querySelector(`.crumb-dropdown`);
96
+ try {
97
+ popup?.hidePopover();
98
+ }
99
+ catch { /* unsupported */ }
100
+ }
101
+ }
102
+ #onPopoverToggle;
103
+ updated(changedProperties) {
104
+ if (this._editing) {
105
+ const el = this.shadowRoot?.querySelector(`ixfx-ac-text`);
106
+ if (el instanceof LitElement) {
107
+ const editValue = this.path;
108
+ if (this._editStartIndex !== null) {
109
+ const segments = this.#getSegments();
110
+ const segmentLabel = segments[this._editStartIndex];
111
+ const startPos = this.path.indexOf(segmentLabel);
112
+ el.focusWithValue(editValue, startPos);
113
+ }
114
+ else {
115
+ el.focusWithValue(editValue);
116
+ }
117
+ }
118
+ }
119
+ if (changedProperties.has(`_openIdx`) && this._openIdx !== null) {
120
+ this.updateComplete.then(() => {
121
+ const popup = this.shadowRoot?.querySelector(`.crumb-dropdown`);
122
+ if (popup) {
123
+ popup.style.setProperty(`position-anchor`, this.#anchorName(this._openCumPath ?? String(this._openIdx)));
124
+ try {
125
+ popup.showPopover();
126
+ }
127
+ catch { /* unsupported */ }
128
+ popup.focus();
129
+ }
130
+ });
131
+ }
132
+ }
133
+ #cleanupPending() {
134
+ if (this.#pendingController) {
135
+ this.#pendingController.abort();
136
+ this.#pendingController = undefined;
137
+ this.#pendingIndex = undefined;
138
+ }
139
+ }
140
+ #getSegments() {
141
+ const fullPath = this.path;
142
+ if (this.pathRoot.length > 0 && fullPath.startsWith(this.pathRoot)) {
143
+ const relativePath = fullPath.slice(this.pathRoot.length);
144
+ return relativePath.split(this.separator).filter(p => p.length > 0);
145
+ }
146
+ return this.path.split(this.separator).filter(p => p.length > 0);
147
+ }
148
+ #getRootSegments() {
149
+ if (this.pathRoot.length === 0)
150
+ return [];
151
+ return this.pathRoot.split(this.separator).filter(p => p.length > 0);
152
+ }
153
+ #getCumulativePath(index, isRoot) {
154
+ const segments = this.#getSegments();
155
+ const rootSegments = this.#getRootSegments();
156
+ if (isRoot) {
157
+ return rootSegments.slice(0, index + 1).join(this.separator);
158
+ }
159
+ return [...rootSegments, ...segments.slice(0, index + 1)].join(this.separator);
160
+ }
161
+ setPath(newPath) {
162
+ this.#cleanupPending();
163
+ if (this.pathRoot.length > 0 && !newPath.startsWith(this.pathRoot)) {
164
+ newPath = this.pathRoot;
165
+ }
166
+ this.path = newPath;
167
+ this._cachedSiblings = new Map();
168
+ this._openIdx = null;
169
+ this._leafSegmentIndex = null;
170
+ this._confirmedLeafIndices = new Set();
171
+ }
172
+ getPath() {
173
+ return this.path;
174
+ }
175
+ #onCaretClick(index, event) {
176
+ event.preventDefault();
177
+ event.stopPropagation();
178
+ if (this._openIdx === index) {
179
+ this.#closeDropdown();
180
+ return;
181
+ }
182
+ const target = event.currentTarget;
183
+ const cumPath = target.dataset.cumulative;
184
+ this._openIdx = index;
185
+ this._openCumPath = cumPath ?? null;
186
+ this._dropdownActiveIndex = -1;
187
+ const segments = this.#getSegments();
188
+ const rootSegments = this.#getRootSegments();
189
+ const pathSegments = cumPath
190
+ ? cumPath.split(this.separator).filter(p => p.length > 0)
191
+ : (index === -1 ? rootSegments : segments.slice(0, index + 1));
192
+ const cacheKey = cumPath ?? String(index);
193
+ if (!this._cachedSiblings.has(cacheKey) && this.siblingLookup) {
194
+ this.#cleanupPending();
195
+ const controller = new AbortController();
196
+ this.#pendingController = controller;
197
+ this.#pendingIndex = index;
198
+ this.siblingLookup(pathSegments, index, controller.signal)
199
+ .then((siblings) => {
200
+ if (!controller.signal.aborted) {
201
+ this._cachedSiblings.set(cacheKey, siblings);
202
+ if (siblings.length === 0) {
203
+ this._confirmedLeafIndices.add(cumPath ?? ``);
204
+ }
205
+ this.#pendingController = undefined;
206
+ this.#pendingIndex = undefined;
207
+ this.requestUpdate();
208
+ }
209
+ })
210
+ .catch((err) => {
211
+ if (err.name !== `AbortError`) {
212
+ console.error(`Sibling lookup failed:`, err);
213
+ }
214
+ this.#pendingController = undefined;
215
+ this.#pendingIndex = undefined;
216
+ });
217
+ this.dispatchEvent(new CustomEvent(`expand`, {
218
+ detail: { index, segments: pathSegments, path: pathSegments.join(this.separator), signal: controller.signal },
219
+ bubbles: true,
220
+ composed: true,
221
+ }));
222
+ }
223
+ this.requestUpdate();
224
+ }
225
+ #onLabelClick(index, event) {
226
+ event.preventDefault();
227
+ event.stopPropagation();
228
+ this.#closeDropdown();
229
+ const segments = this.#getSegments();
230
+ const truncatedSegments = segments.slice(0, index + 1);
231
+ const hadLeading = this.path.startsWith(this.separator);
232
+ const newPath = truncatedSegments.join(this.separator);
233
+ this.path = hadLeading ? this.separator + newPath : newPath;
234
+ this._cachedSiblings = new Map();
235
+ this._leafSegmentIndex = null;
236
+ const parentPath = truncatedSegments.slice(0, -1).join(this.separator);
237
+ this.dispatchEvent(new CustomEvent(`navigate`, {
238
+ detail: { index, label: truncatedSegments[index], parentPath, fullPath: newPath },
239
+ bubbles: true,
240
+ composed: true,
241
+ }));
242
+ }
243
+ #selectSibling(index, segment) {
244
+ const cumPath = this._openCumPath;
245
+ this.#closeDropdown();
246
+ const segments = this.#getSegments();
247
+ const rootSegments = this.#getRootSegments();
248
+ let newSegments;
249
+ if (cumPath) {
250
+ newSegments = [...cumPath.split(this.separator).filter(p => p.length > 0), segment.label];
251
+ }
252
+ else if (this.pathRoot.length > 0 && index < rootSegments.length) {
253
+ newSegments = [...rootSegments.slice(0, index + 1), segment.label];
254
+ }
255
+ else {
256
+ newSegments = [...rootSegments, ...segments.slice(0, index + 1 - rootSegments.length), segment.label];
257
+ }
258
+ const hadLeading = this.path.startsWith(this.separator);
259
+ const newPath = newSegments.join(this.separator);
260
+ this.path = hadLeading ? this.separator + newPath : newPath;
261
+ this._cachedSiblings = new Map();
262
+ const leafIndex = segment.isLeaf ? newSegments.length - 1 : null;
263
+ this._leafSegmentIndex = leafIndex;
264
+ if (segment.isLeaf) {
265
+ this._confirmedLeafIndices.add(cumPath ?? ``);
266
+ }
267
+ const parentPath = newSegments.slice(0, -1).join(this.separator);
268
+ this.dispatchEvent(new CustomEvent(`navigate`, {
269
+ detail: { index, label: segment.label, parentPath, fullPath: newPath },
270
+ bubbles: true,
271
+ composed: true,
272
+ }));
273
+ }
274
+ #onSiblingClick(index, segment, event) {
275
+ event.preventDefault();
276
+ event.stopPropagation();
277
+ this.#selectSibling(index, segment);
278
+ }
279
+ #onDropdownKeyDown;
280
+ #scrollDropdownActiveIntoView() {
281
+ this.updateComplete.then(() => {
282
+ this.shadowRoot?.querySelector(`.crumb-option.active`)
283
+ ?.scrollIntoView({ block: `nearest` });
284
+ });
285
+ }
286
+ #renderDropdownContent(index) {
287
+ const siblings = this._cachedSiblings.get(this._openCumPath ?? String(index)) ?? [];
288
+ const isPending = this.#pendingIndex === index;
289
+ return html `
290
+ ${isPending ? html `<span class="loading-spinner"></span>` : nothing}
291
+ ${siblings.length === 0 && !isPending
292
+ ? html `<span class="crumb-option crumb-option-label">No items</span>`
293
+ : siblings.map((segment, i) => html `
294
+ <div class="crumb-option ${i === this._dropdownActiveIndex ? `active` : ``}"
295
+ @click=${(e) => this.#onSiblingClick(index, segment, e)}>
296
+ ${segment.icon
297
+ ? html `<ixfx-icon class="crumb-icon" name="${segment.icon}"></ixfx-icon>`
298
+ : nothing}
299
+ <span class="option-label">${segment.label}</span>
300
+ </div>
301
+ `)}
302
+ `;
303
+ }
304
+ #renderSegment(label, index, isLast) {
305
+ const isOpen = this._openIdx === index;
306
+ const cumPath = this.#getCumulativePath(index, false);
307
+ return html `
308
+ <div class="seg" data-cumulative=${cumPath} @click=${(e) => this.#onSegmentClick(index, e)}>
309
+ <label title=${label} @click=${(e) => this.#onLabelClick(index, e)}>
310
+ ${label}
311
+ </label>
312
+ ${(!isLast || this.siblingLookup) && this._leafSegmentIndex !== index
313
+ ? html `
314
+ <div class="caret ${isOpen ? `open` : ``} ${this._confirmedLeafIndices.has(cumPath) ? `disabled` : ``}"
315
+ style="anchor-name: ${this.#anchorName(cumPath)}"
316
+ data-cumulative=${cumPath}
317
+ @click=${(e) => this.#onCaretClick(index, e)}>
318
+ ${this.separator}
319
+ </div>
320
+ `
321
+ : nothing}
322
+ </div>
323
+ `;
324
+ }
325
+ #renderRootSegment(label, index) {
326
+ const rootSegments = this.#getRootSegments();
327
+ const isLast = index === rootSegments.length - 1;
328
+ const isOpen = this._openIdx === index;
329
+ const cumPath = this.#getCumulativePath(index, true);
330
+ return html `
331
+ <div class="seg seg-root" data-cumulative=${cumPath} @click=${(e) => this.#onRootSegmentClick(index, e)}>
332
+ <label title=${label}>${label}</label>
333
+ ${isLast && this.siblingLookup
334
+ ? html `
335
+ <div class="caret ${isOpen ? `open` : ``} ${this._confirmedLeafIndices.has(cumPath) ? `disabled` : ``}"
336
+ style="anchor-name: ${this.#anchorName(cumPath)}"
337
+ data-cumulative=${cumPath}
338
+ @click=${(e) => this.#onCaretClick(index, e)}>
339
+ ${this.separator}
340
+ </div>
341
+ `
342
+ : nothing}
343
+ </div>
344
+ `;
345
+ }
346
+ #onRootSegmentClick(index, event) {
347
+ event.preventDefault();
348
+ event.stopPropagation();
349
+ const rootSegments = this.#getRootSegments();
350
+ const newPath = rootSegments.slice(0, index + 1).join(this.separator);
351
+ this.setPath(newPath);
352
+ }
353
+ #onSegmentClick(index, event) {
354
+ event.preventDefault();
355
+ event.stopPropagation();
356
+ this.#closeDropdown();
357
+ this._editing = true;
358
+ this._editStartIndex = index;
359
+ }
360
+ #onTrailingClick() {
361
+ this.#closeDropdown();
362
+ this._editing = true;
363
+ this._editStartIndex = null;
364
+ }
365
+ #makeCompletionProvider() {
366
+ return async (query, signal) => {
367
+ if (!this.siblingLookup)
368
+ return [];
369
+ const endsWithSep = query.endsWith(this.separator);
370
+ const parts = query.split(this.separator).filter(p => p.length > 0);
371
+ const parentSegments = endsWithSep ? parts : parts.slice(0, -1);
372
+ const lastSegment = endsWithSep ? `` : (parts.at(-1) ?? ``);
373
+ const hadLeading = query.startsWith(this.separator);
374
+ const children = await this.siblingLookup(parentSegments, parentSegments.length - 1, signal);
375
+ return children
376
+ .filter(c => c.label.toLowerCase().startsWith(lastSegment.toLowerCase()))
377
+ .map((c) => {
378
+ const joined = [...parentSegments, c.label].join(this.separator);
379
+ return { label: hadLeading ? this.separator + joined : joined, icon: c.icon, isLeaf: c.isLeaf };
380
+ });
381
+ };
382
+ }
383
+ #onAcChange(e) {
384
+ e.stopPropagation();
385
+ const newPath = e.detail.value;
386
+ this.path = newPath;
387
+ this._cachedSiblings = new Map();
388
+ this._leafSegmentIndex = newPath.endsWith(this.separator) ? null : newPath.split(this.separator).filter((p) => p.length > 0).length - 1;
389
+ this._editing = false;
390
+ this._editingCancelled = false;
391
+ this._editStartIndex = null;
392
+ this.#dispatchChangeEvent(newPath);
393
+ }
394
+ #onAcFocusOut() {
395
+ if (this._editing) {
396
+ this._editing = false;
397
+ if (!this._editingCancelled) {
398
+ const el = this.shadowRoot?.querySelector(`ixfx-ac-text`);
399
+ const newPath = el?.value ?? this.path;
400
+ if (newPath !== this.path) {
401
+ this.path = newPath;
402
+ this._cachedSiblings = new Map();
403
+ this._leafSegmentIndex = newPath.endsWith(this.separator) ? null : newPath.split(this.separator).filter((p) => p.length > 0).length - 1;
404
+ this.#dispatchChangeEvent(newPath);
405
+ }
406
+ }
407
+ this._editingCancelled = false;
408
+ this._editStartIndex = null;
409
+ }
410
+ }
411
+ #dispatchChangeEvent(newPath) {
412
+ const segments = newPath.split(this.separator).filter(p => p.length > 0);
413
+ const label = segments.at(-1) ?? ``;
414
+ const parentPath = segments.slice(0, -1).join(this.separator);
415
+ this.dispatchEvent(new CustomEvent(`change`, {
416
+ detail: { label, parentPath, fullPath: newPath },
417
+ bubbles: true,
418
+ composed: true,
419
+ }));
420
+ }
421
+ #onAcKeyDown(e) {
422
+ if (e.key === `Escape`) {
423
+ this._editingCancelled = true;
424
+ this._editing = false;
425
+ this._editStartIndex = null;
426
+ }
427
+ }
428
+ #onHostKeyDown;
429
+ render() {
430
+ const segments = this.#getSegments();
431
+ if (this._editing) {
432
+ const editValue = this.path;
433
+ return html `
434
+ <ixfx-ac-text
435
+ .value=${editValue}
436
+ .tabSuffix=${this.separator}
437
+ .completionProvider=${this.#makeCompletionProvider()}
438
+ @change=${this.#onAcChange}
439
+ @focusout=${this.#onAcFocusOut}
440
+ @keydown=${this.#onAcKeyDown}
441
+ ></ixfx-ac-text>
442
+ `;
443
+ }
444
+ const rootSegments = this.#getRootSegments();
445
+ const leadingCaret = this.siblingLookup && rootSegments.length === 0
446
+ ? html `
447
+ <div class="caret ${this._openIdx === -1 ? `open` : ``} ${this._confirmedLeafIndices.has(``) ? `disabled` : ``}"
448
+ style="anchor-name: ${this.#anchorName(``)}"
449
+ data-cumulative=""
450
+ @click=${(e) => this.#onCaretClick(-1, e)}>
451
+ ${this.separator}
452
+ </div>`
453
+ : nothing;
454
+ return html `
455
+ <div class="crumbs" tabindex="0" @keydown=${this.#onHostKeyDown}>
456
+ ${rootSegments.length > 0
457
+ ? rootSegments.map((label, i) => this.#renderRootSegment(label, i))
458
+ : nothing}
459
+ ${leadingCaret}
460
+ ${segments.map((label, i) => this.#renderSegment(label, i, i === segments.length - 1))}
461
+ <div class="trailing" @click=${this.#onTrailingClick}></div>
462
+ </div>
463
+ ${this._openIdx !== null
464
+ ? html `
465
+ <div class="crumb-dropdown popup-surface" popover="auto" tabindex="-1"
466
+ @toggle=${this.#onPopoverToggle}
467
+ @keydown=${this.#onDropdownKeyDown}
468
+ @click=${(e) => e.stopPropagation()}>
469
+ ${this.#renderDropdownContent(this._openIdx)}
470
+ </div>
471
+ `
472
+ : nothing}
473
+ `;
474
+ }
475
+ static { this.styles = [popupSurfaceStyles, css `
476
+ :host {
477
+ --text-highlight: var(--accent);
478
+ --separator: var(--surface-muted-text);
479
+ --padding-s: var(--space-xs);
480
+ --padding-m: var(--space-s);
481
+
482
+ display: flex;
483
+ width: 100%;
484
+ gap: var(--padding-s);
485
+ position: relative;
486
+ }
487
+
488
+ ixfx-ac-text {
489
+ flex: 1;
490
+ font-size: inherit;
491
+ --ac-input-padding: var(--padding-s) var(--padding-m);
492
+ --ac-input-background: var(--surface-4);
493
+ --ac-input-border-radius: var(--radius-s, 3px);
494
+ --ac-popup-font-size: var(--text-s, 11px);
495
+ }
496
+
497
+ .crumbs {
498
+ display: flex;
499
+ width: 100%;
500
+ overflow-x:scroll;
501
+ scroll-snap-type:x proximity;
502
+ scrollbar-width: none;
503
+ }
504
+
505
+ .trailing {
506
+ flex: 1;
507
+ min-width: 1em;
508
+ cursor: text;
509
+ }
510
+
511
+ .seg {
512
+ scroll-snap-align:start;
513
+
514
+ position: relative;
515
+ cursor: pointer;
516
+ display: flex;
517
+ flex-wrap: nowrap;
518
+ align-items: center;
519
+ user-select: none;
520
+ pointer-events: auto;
521
+ }
522
+
523
+ .seg:hover {
524
+ overflow: unset;
525
+ }
526
+
527
+ .seg-root {
528
+ opacity: 0.8;
529
+ }
530
+
531
+ .seg-root:hover {
532
+ opacity: 1;
533
+ }
534
+
535
+ .seg-root label {
536
+ font-weight: normal;
537
+ }
538
+
539
+ label {
540
+ display: flex;
541
+ align-items: center;
542
+ white-space: nowrap;
543
+ text-overflow: ellipsis;
544
+ align-content: center;
545
+ overflow: hidden;
546
+ padding: 0 var(--padding-m);
547
+ transition: all 0.2s ease-in-out;
548
+ border-radius: var(--radius-m);
549
+ }
550
+
551
+ label:hover,.caret:hover {
552
+ color: var(--item-text-tickled);
553
+ background: var(--item-bg-tickled);
554
+ }
555
+
556
+ .caret {
557
+ scroll-snap-align:start;
558
+
559
+ position: relative;
560
+ padding: var(--padding-m);
561
+ transition: all 0.2s ease-in-out;
562
+
563
+ border-radius: var(--radius-m);
564
+ }
565
+
566
+
567
+ .caret.open {
568
+ background: color-mix(in srgb, var(--hover-bg) 40%, transparent);
569
+ }
570
+
571
+ .caret.disabled {
572
+ opacity: 0.4;
573
+ cursor: not-allowed;
574
+ }
575
+
576
+ .crumb-icon {
577
+ width: 1em;
578
+ height: 1em;
579
+ flex-shrink: 0;
580
+ }
581
+
582
+ .crumb-dropdown {
583
+ /* Reset popover UA defaults */
584
+ inset: unset;
585
+ margin: 0;
586
+
587
+ /* Anchor positioning — position-anchor set dynamically via JS */
588
+ position: fixed;
589
+ position-area: block-end span-inline-end;
590
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
591
+ margin-block-start: 2px;
592
+
593
+ min-width: 10ch;
594
+ max-width: min(40ch, 80vw);
595
+ max-height: 280px;
596
+ overflow-y: auto;
597
+ padding: var(--padding-s);
598
+ outline: none;
599
+ }
600
+
601
+ .crumb-option {
602
+ display: flex;
603
+ align-items: center;
604
+ gap: var(--padding-s);
605
+ padding: var(--padding-s) var(--padding-m);
606
+ cursor: pointer;
607
+ border-radius: var(--radius-s, 4px);
608
+ transition: background 0.15s ease-out;
609
+ overflow: hidden;
610
+ }
611
+
612
+ .crumb-option:hover,
613
+ .crumb-option.active {
614
+ background: var(--hover-bg);
615
+ color: var(--hover-fg);
616
+ }
617
+
618
+ .option-label {
619
+ flex: 1;
620
+ min-width: 0;
621
+ overflow: hidden;
622
+ white-space: nowrap;
623
+ text-overflow: ellipsis;
624
+ }
625
+
626
+ .crumb-option-label {
627
+ font-style: italic;
628
+ opacity: 0.6;
629
+ pointer-events: none;
630
+ user-select: none;
631
+ }
632
+
633
+ .loading-spinner {
634
+ display: inline-block;
635
+ width: 12px;
636
+ height: 12px;
637
+ border: 2px solid var(--surface-5);
638
+ border-top-color: var(--accent);
639
+ border-radius: 50%;
640
+ animation: crumb-spin 0.7s linear infinite;
641
+ }
642
+
643
+ @keyframes crumb-spin {
644
+ to { transform: rotate(360deg); }
645
+ }
646
+ `]; }
647
+ };
648
+ __decorate([
649
+ property({ type: String })
650
+ ], CrumbPathElement.prototype, "path", void 0);
651
+ __decorate([
652
+ property({ type: String })
653
+ ], CrumbPathElement.prototype, "separator", void 0);
654
+ __decorate([
655
+ property({ type: String, attribute: `path-root` })
656
+ ], CrumbPathElement.prototype, "pathRoot", void 0);
657
+ __decorate([
658
+ property({ type: Object })
659
+ ], CrumbPathElement.prototype, "siblingLookup", void 0);
660
+ __decorate([
661
+ state()
662
+ ], CrumbPathElement.prototype, "_openIdx", void 0);
663
+ __decorate([
664
+ state()
665
+ ], CrumbPathElement.prototype, "_editing", void 0);
666
+ __decorate([
667
+ state()
668
+ ], CrumbPathElement.prototype, "_cachedSiblings", void 0);
669
+ __decorate([
670
+ state()
671
+ ], CrumbPathElement.prototype, "_leafSegmentIndex", void 0);
672
+ __decorate([
673
+ state()
674
+ ], CrumbPathElement.prototype, "_confirmedLeafIndices", void 0);
675
+ __decorate([
676
+ state()
677
+ ], CrumbPathElement.prototype, "_dropdownActiveIndex", void 0);
678
+ __decorate([
679
+ state()
680
+ ], CrumbPathElement.prototype, "_editingCancelled", void 0);
681
+ __decorate([
682
+ state()
683
+ ], CrumbPathElement.prototype, "_editStartIndex", void 0);
684
+ __decorate([
685
+ state()
686
+ ], CrumbPathElement.prototype, "_openCumPath", void 0);
687
+ CrumbPathElement = __decorate([
688
+ customElement(`ixfx-crumb-path`)
689
+ ], CrumbPathElement);
690
+ export { CrumbPathElement };
691
+ //# sourceMappingURL=crumb-path.js.map