@brandsync/wc 1.16.0 → 1.17.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 (451) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/REFERENCE.md +231 -0
  3. package/custom-elements.json +3902 -1547
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/{p-0228a584.entry.js → p-044ac86c.entry.js} +1 -1
  6. package/dist/brandsync-wc/p-065c7e7c.entry.js +1 -0
  7. package/dist/brandsync-wc/{p-e9afb553.entry.js → p-07673a48.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-54f9529f.entry.js → p-08e96f13.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-f3cc961b.entry.js → p-0bbaef51.entry.js} +1 -1
  10. package/dist/brandsync-wc/p-11d80e17.entry.js +1 -0
  11. package/dist/brandsync-wc/{p-c85fe37b.entry.js → p-1bd99669.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-f4d1d56e.entry.js → p-225148be.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-15f4c343.entry.js → p-2bd30709.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-76748795.entry.js → p-32297416.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-d165a742.entry.js → p-35f76ea7.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-4ca40386.entry.js → p-3bad5e1b.entry.js} +1 -1
  17. package/dist/brandsync-wc/{p-ed71eb02.entry.js → p-3bdeeb9d.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-67629178.entry.js → p-3c6ec5d0.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-abfa43f5.entry.js → p-3cb79512.entry.js} +1 -1
  20. package/dist/brandsync-wc/p-3d2c62a6.entry.js +1 -0
  21. package/dist/brandsync-wc/{p-23379d7c.entry.js → p-3d7b0708.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-2e285364.entry.js → p-43d5f708.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-d81c4f58.entry.js → p-4b460eda.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-b6081bba.entry.js → p-4eaa9ed4.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-c25553bc.entry.js → p-4f4c0c68.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-a56bc608.entry.js → p-5057e4fe.entry.js} +1 -1
  27. package/dist/brandsync-wc/p-54d91ac9.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-65fa1b21.entry.js → p-57ff14ca.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-538d5b58.entry.js → p-5b933ff4.entry.js} +1 -1
  30. package/dist/brandsync-wc/{p-b67a0c8f.entry.js → p-5c61eb06.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-86774165.entry.js → p-5eb5795f.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-b663ee67.entry.js → p-61deb48c.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-cc4c8c1d.entry.js → p-67f125e8.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-3488c4fc.entry.js → p-6ea02b98.entry.js} +1 -1
  35. package/dist/brandsync-wc/p-70c650b2.entry.js +1 -0
  36. package/dist/brandsync-wc/{p-949a4270.entry.js → p-79fc849c.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-5a45ef51.entry.js → p-7ed071fb.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-298158da.entry.js → p-8134f97c.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-4ed00786.entry.js → p-844205d9.entry.js} +1 -1
  40. package/dist/brandsync-wc/p-84d6d6eb.entry.js +1 -0
  41. package/dist/brandsync-wc/{p-401b3d3d.entry.js → p-857987f9.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-b9c9bcba.entry.js → p-8c4dfccb.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-38ac9aad.entry.js → p-90ba3032.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-1ca8b01e.entry.js → p-9396c67e.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-e9b6b30f.entry.js → p-9d740928.entry.js} +1 -1
  46. package/dist/brandsync-wc/{p-baa3d37a.entry.js → p-a7fa839a.entry.js} +1 -1
  47. package/dist/brandsync-wc/{p-f271e1d2.entry.js → p-a7fb0b59.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-89ea6366.entry.js → p-ab14a07d.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-912629c6.entry.js → p-aec2dfeb.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-8390a155.entry.js → p-b02bf1ca.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-9beeb30c.entry.js → p-b142d8c9.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-a12691d8.entry.js → p-b4511ad3.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-5ed1f45e.entry.js → p-b5710db6.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-34b0c048.entry.js → p-baa39c08.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-0159f0da.entry.js → p-be7aac52.entry.js} +1 -1
  56. package/dist/brandsync-wc/p-c835afb7.entry.js +1 -0
  57. package/dist/brandsync-wc/{p-45986ad4.entry.js → p-d25adab2.entry.js} +1 -1
  58. package/dist/brandsync-wc/p-d2a15599.entry.js +1 -0
  59. package/dist/brandsync-wc/{p-521d0fc2.entry.js → p-d7956c51.entry.js} +1 -1
  60. package/dist/brandsync-wc/p-d9184940.entry.js +1 -0
  61. package/dist/brandsync-wc/{p-0f97fe35.entry.js → p-dcbeb143.entry.js} +1 -1
  62. package/dist/brandsync-wc/{p-cf287ff1.entry.js → p-debc83cc.entry.js} +1 -1
  63. package/dist/brandsync-wc/{p-dcacee29.entry.js → p-e0a9f2d1.entry.js} +1 -1
  64. package/dist/brandsync-wc/p-e123b391.entry.js +1 -0
  65. package/dist/brandsync-wc/{p-7dc59e0b.entry.js → p-e8ae626d.entry.js} +1 -1
  66. package/dist/brandsync-wc/p-e8e22238.entry.js +1 -0
  67. package/dist/brandsync-wc/{p-6cb21302.entry.js → p-eb0dc5bf.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-38fe9d07.entry.js → p-f43a7f16.entry.js} +1 -1
  69. package/dist/brandsync-wc/{p-7b3518b8.entry.js → p-f82a9f0d.entry.js} +1 -1
  70. package/dist/brandsync-wc/{p-f0be9125.entry.js → p-f98dfa85.entry.js} +1 -1
  71. package/dist/brandsync-wc/{p-36fe783a.entry.js → p-fdc168ec.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-42b79d95.entry.js → p-ffccc1ee.entry.js} +1 -1
  73. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  74. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  75. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  76. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  77. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  78. package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
  79. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  80. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  81. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  82. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  83. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  84. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  85. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  86. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  87. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  89. package/dist/cjs/bs-command-palette.cjs.entry.js +374 -0
  90. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  91. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  92. package/dist/cjs/bs-container.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
  94. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  95. package/dist/cjs/bs-divider.cjs.entry.js +1 -1
  96. package/dist/cjs/bs-empty-state.cjs.entry.js +47 -0
  97. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  98. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  99. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-global-search.cjs.entry.js +326 -0
  101. package/dist/cjs/bs-grid.cjs.entry.js +2 -2
  102. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  104. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
  106. package/dist/cjs/bs-key-caps.cjs.entry.js +39 -0
  107. package/dist/cjs/bs-key.cjs.entry.js +28 -0
  108. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +112 -0
  109. package/dist/cjs/bs-list-item.cjs.entry.js +1 -1
  110. package/dist/cjs/bs-list.cjs.entry.js +1 -1
  111. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  115. package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
  116. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  118. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  119. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  120. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  121. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  122. package/dist/cjs/bs-search-item.cjs.entry.js +47 -0
  123. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  124. package/dist/cjs/bs-shortcut-row.cjs.entry.js +27 -0
  125. package/dist/cjs/bs-skeleton.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  127. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  128. package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
  129. package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
  130. package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
  131. package/dist/cjs/bs-stack.cjs.entry.js +1 -1
  132. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  133. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  134. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  135. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  136. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  137. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  138. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  139. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  140. package/dist/cjs/bs-tree-item.cjs.entry.js +2 -2
  141. package/dist/cjs/bs-tree.cjs.entry.js +1 -1
  142. package/dist/cjs/loader.cjs.js +1 -1
  143. package/dist/collection/collection-manifest.json +9 -1
  144. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  145. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  146. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  147. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  148. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  149. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  150. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  151. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  152. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  153. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  154. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  155. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  156. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  157. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  158. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  159. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  160. package/dist/collection/components/bs-command-palette/bs-command-palette.cmp.test.js +207 -0
  161. package/dist/collection/components/bs-command-palette/bs-command-palette.css +214 -0
  162. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1114 -0
  163. package/dist/collection/components/bs-command-palette/bs-command-palette.stories.js +194 -0
  164. package/dist/collection/components/bs-composer/bs-composer.js +1 -1
  165. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  166. package/dist/collection/components/bs-container/bs-container.js +1 -1
  167. package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
  168. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  169. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  170. package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +102 -0
  171. package/dist/collection/components/bs-empty-state/bs-empty-state.css +45 -0
  172. package/dist/collection/components/bs-empty-state/bs-empty-state.js +175 -0
  173. package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +52 -0
  174. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  175. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  176. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  177. package/dist/collection/components/bs-global-search/bs-global-search.cmp.test.js +491 -0
  178. package/dist/collection/components/bs-global-search/bs-global-search.css +115 -0
  179. package/dist/collection/components/bs-global-search/bs-global-search.js +1024 -0
  180. package/dist/collection/components/bs-global-search/bs-global-search.stories.js +146 -0
  181. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  182. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  183. package/dist/collection/components/bs-input/bs-input.js +2 -2
  184. package/dist/collection/components/bs-key/bs-key.cmp.test.js +59 -0
  185. package/dist/collection/components/bs-key/bs-key.css +58 -0
  186. package/dist/collection/components/bs-key/bs-key.js +84 -0
  187. package/dist/collection/components/bs-key/bs-key.stories.js +19 -0
  188. package/dist/collection/components/bs-key-caps/bs-key-caps.cmp.test.js +60 -0
  189. package/dist/collection/components/bs-key-caps/bs-key-caps.css +28 -0
  190. package/dist/collection/components/bs-key-caps/bs-key-caps.js +120 -0
  191. package/dist/collection/components/bs-key-caps/bs-key-caps.stories.js +29 -0
  192. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.js +194 -0
  193. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.css +138 -0
  194. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +485 -0
  195. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.js +111 -0
  196. package/dist/collection/components/bs-list/bs-list.js +1 -1
  197. package/dist/collection/components/bs-list-item/bs-list-item.js +1 -1
  198. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  199. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  200. package/dist/collection/components/bs-message/bs-message.js +1 -1
  201. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  202. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  203. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  204. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  205. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  206. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  207. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  208. package/dist/collection/components/bs-search-item/bs-search-item.cmp.test.js +147 -0
  209. package/dist/collection/components/bs-search-item/bs-search-item.css +112 -0
  210. package/dist/collection/components/bs-search-item/bs-search-item.js +222 -0
  211. package/dist/collection/components/bs-search-item/bs-search-item.stories.js +31 -0
  212. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  213. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.cmp.test.js +60 -0
  214. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.css +42 -0
  215. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +154 -0
  216. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.stories.js +24 -0
  217. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  218. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  219. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  220. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  221. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  222. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  223. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  224. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  225. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  226. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  227. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  228. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  229. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  230. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  231. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  232. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  233. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  234. package/dist/collection/components/bs-tree/bs-tree.js +1 -1
  235. package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
  236. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  237. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  238. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  239. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  240. package/dist/components/bs-accordion-group.js +1 -1
  241. package/dist/components/bs-ai-disclaimer.js +1 -1
  242. package/dist/components/bs-ai-greeting.js +1 -1
  243. package/dist/components/bs-ai-thinking.js +1 -1
  244. package/dist/components/bs-app-shell.js +1 -1
  245. package/dist/components/bs-attachment-list.js +1 -1
  246. package/dist/components/bs-attachment.js +1 -1
  247. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  248. package/dist/components/bs-breadcrumbs.js +1 -1
  249. package/dist/components/bs-button-skeleton.js +1 -1
  250. package/dist/components/bs-carousel.js +1 -1
  251. package/dist/components/bs-chatbot-feedback.js +1 -1
  252. package/dist/components/bs-chatbot-header.js +1 -1
  253. package/dist/components/bs-chatbot-response-action.js +1 -1
  254. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  255. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  256. package/dist/components/bs-checkbox-skeleton.js +1 -1
  257. package/dist/components/bs-citation-preview.js +1 -1
  258. package/dist/components/bs-command-palette.d.ts +11 -0
  259. package/dist/components/bs-command-palette.js +1 -0
  260. package/dist/components/bs-composer-status-banner.js +1 -1
  261. package/dist/components/bs-composer.js +1 -1
  262. package/dist/components/bs-container.js +1 -1
  263. package/dist/components/bs-cookie-consent.js +1 -1
  264. package/dist/components/bs-data-table.js +1 -1
  265. package/dist/components/bs-datepicker.js +1 -1
  266. package/dist/components/bs-dialog.js +1 -1
  267. package/dist/components/bs-divider.js +1 -1
  268. package/dist/components/bs-empty-state.d.ts +11 -0
  269. package/dist/components/bs-empty-state.js +1 -0
  270. package/dist/components/bs-error-page.js +1 -1
  271. package/dist/components/bs-file-upload-item.js +1 -1
  272. package/dist/components/bs-file-upload.js +1 -1
  273. package/dist/components/bs-global-search.d.ts +11 -0
  274. package/dist/components/bs-global-search.js +1 -0
  275. package/dist/components/bs-grid.js +1 -1
  276. package/dist/components/bs-icon-button.js +1 -1
  277. package/dist/components/bs-icon-tile.js +1 -1
  278. package/dist/components/bs-inline-tab.js +1 -1
  279. package/dist/components/bs-input.js +1 -1
  280. package/dist/components/bs-key-caps.d.ts +11 -0
  281. package/dist/components/bs-key-caps.js +1 -0
  282. package/dist/components/bs-key.d.ts +11 -0
  283. package/dist/components/bs-key.js +1 -0
  284. package/dist/components/bs-keyboard-shortcuts.d.ts +11 -0
  285. package/dist/components/bs-keyboard-shortcuts.js +1 -0
  286. package/dist/components/bs-list-item.js +1 -1
  287. package/dist/components/bs-list.js +1 -1
  288. package/dist/components/bs-menu-item.js +1 -1
  289. package/dist/components/bs-menu.js +1 -1
  290. package/dist/components/bs-message-list.js +1 -1
  291. package/dist/components/bs-message.js +1 -1
  292. package/dist/components/bs-navigation-drawer-item.js +1 -1
  293. package/dist/components/bs-navigation-drawer.js +1 -1
  294. package/dist/components/bs-navigation-header.js +1 -1
  295. package/dist/components/bs-onboarding-checklist.js +1 -1
  296. package/dist/components/bs-pagination.js +1 -1
  297. package/dist/components/bs-popover.js +1 -1
  298. package/dist/components/bs-product-tour.js +1 -1
  299. package/dist/components/bs-progress-linear.js +1 -1
  300. package/dist/components/bs-progress.js +1 -1
  301. package/dist/components/bs-qr-code.js +1 -1
  302. package/dist/components/bs-radio.js +1 -1
  303. package/dist/components/bs-search-item.d.ts +11 -0
  304. package/dist/components/bs-search-item.js +1 -0
  305. package/dist/components/bs-session-timeout.js +1 -1
  306. package/dist/components/bs-shortcut-row.d.ts +11 -0
  307. package/dist/components/bs-shortcut-row.js +1 -0
  308. package/dist/components/bs-side-panel.js +1 -1
  309. package/dist/components/bs-skeleton.js +1 -1
  310. package/dist/components/bs-slider.js +1 -1
  311. package/dist/components/bs-snackbar.js +1 -1
  312. package/dist/components/bs-source-link.js +1 -1
  313. package/dist/components/bs-spinner.js +1 -1
  314. package/dist/components/bs-split-pane.js +1 -1
  315. package/dist/components/bs-stack.js +1 -1
  316. package/dist/components/bs-stepper-step.js +1 -1
  317. package/dist/components/bs-stepper.js +1 -1
  318. package/dist/components/bs-switch.js +1 -1
  319. package/dist/components/bs-tab.js +1 -1
  320. package/dist/components/bs-tabs.js +1 -1
  321. package/dist/components/bs-timepicker.js +1 -1
  322. package/dist/components/bs-toast.js +1 -1
  323. package/dist/components/bs-tooltip-trigger.js +1 -1
  324. package/dist/components/bs-tooltip.js +1 -1
  325. package/dist/components/bs-tree-item.js +1 -1
  326. package/dist/components/bs-tree.js +1 -1
  327. package/dist/components/bs-whats-new-entry.js +1 -1
  328. package/dist/components/bs-whats-new.js +1 -1
  329. package/dist/components/{p-GTDI4Ibw.js → p-B32Kl4IB.js} +1 -1
  330. package/dist/components/{p-B128GX8H.js → p-BDnZvjlq.js} +1 -1
  331. package/dist/components/{p-BdkE4auv.js → p-BUpnOUIM.js} +1 -1
  332. package/dist/components/p-BcYNrEOB.js +1 -0
  333. package/dist/components/{p-B80vOwH6.js → p-BcbaiZLh.js} +1 -1
  334. package/dist/components/p-Bp3DIxjT.js +1 -0
  335. package/dist/components/p-CH5atin4.js +1 -0
  336. package/dist/components/{p-kDJsWjTN.js → p-CRM1wIX9.js} +1 -1
  337. package/dist/components/p-CYzBTzzf.js +1 -0
  338. package/dist/components/p-CervX0wH.js +1 -0
  339. package/dist/components/{p-C93ymWm7.js → p-Cpe2k7ZC.js} +1 -1
  340. package/dist/components/{p-Bb1-2M8K.js → p-D7AXo5NT.js} +1 -1
  341. package/dist/components/{p-J9cxcDhY.js → p-D8bvv9QQ.js} +1 -1
  342. package/dist/components/{p-DFKc3lLA.js → p-DG9eT5yi.js} +1 -1
  343. package/dist/components/{p-D0KM1R2i.js → p-DMLfXpva.js} +1 -1
  344. package/dist/components/{p-CQjSDdH7.js → p-DYDk73TF.js} +1 -1
  345. package/dist/components/{p-C7RZ6qZC.js → p-DcjgRtSQ.js} +1 -1
  346. package/dist/components/p-Dt4JNhHT.js +1 -0
  347. package/dist/components/{p-CK7fiES5.js → p-DtYTs9Kh.js} +1 -1
  348. package/dist/components/{p-BsbtyRJV.js → p-TAY9S9yG.js} +1 -1
  349. package/dist/components/{p-ByLUtXxO.js → p-w-DkdA4O.js} +1 -1
  350. package/dist/esm/brandsync-wc.js +1 -1
  351. package/dist/esm/bs-accordion-group.entry.js +1 -1
  352. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  353. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  354. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  355. package/dist/esm/bs-app-shell.entry.js +1 -1
  356. package/dist/esm/bs-attachment-list.entry.js +1 -1
  357. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  358. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  359. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  360. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  361. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  362. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  363. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  364. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  365. package/dist/esm/bs-citation-preview.entry.js +1 -1
  366. package/dist/esm/bs-command-palette.entry.js +372 -0
  367. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  368. package/dist/esm/bs-composer.entry.js +1 -1
  369. package/dist/esm/bs-container.entry.js +1 -1
  370. package/dist/esm/bs-data-table.entry.js +2 -2
  371. package/dist/esm/bs-datepicker.entry.js +1 -1
  372. package/dist/esm/bs-divider.entry.js +1 -1
  373. package/dist/esm/bs-empty-state.entry.js +45 -0
  374. package/dist/esm/bs-error-page.entry.js +1 -1
  375. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  376. package/dist/esm/bs-file-upload.entry.js +1 -1
  377. package/dist/esm/bs-global-search.entry.js +324 -0
  378. package/dist/esm/bs-grid.entry.js +2 -2
  379. package/dist/esm/bs-icon-button.entry.js +1 -1
  380. package/dist/esm/bs-icon-tile.entry.js +2 -2
  381. package/dist/esm/bs-inline-tab.entry.js +1 -1
  382. package/dist/esm/bs-input_3.entry.js +4 -4
  383. package/dist/esm/bs-key-caps.entry.js +37 -0
  384. package/dist/esm/bs-key.entry.js +26 -0
  385. package/dist/esm/bs-keyboard-shortcuts.entry.js +110 -0
  386. package/dist/esm/bs-list-item.entry.js +1 -1
  387. package/dist/esm/bs-list.entry.js +1 -1
  388. package/dist/esm/bs-message-list.entry.js +1 -1
  389. package/dist/esm/bs-message.entry.js +1 -1
  390. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  391. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  392. package/dist/esm/bs-navigation-header.entry.js +1 -1
  393. package/dist/esm/bs-pagination.entry.js +1 -1
  394. package/dist/esm/bs-popover.entry.js +1 -1
  395. package/dist/esm/bs-progress-linear.entry.js +2 -2
  396. package/dist/esm/bs-progress.entry.js +2 -2
  397. package/dist/esm/bs-qr-code.entry.js +1 -1
  398. package/dist/esm/bs-radio.entry.js +1 -1
  399. package/dist/esm/bs-search-item.entry.js +45 -0
  400. package/dist/esm/bs-session-timeout.entry.js +1 -1
  401. package/dist/esm/bs-shortcut-row.entry.js +25 -0
  402. package/dist/esm/bs-skeleton.entry.js +1 -1
  403. package/dist/esm/bs-slider.entry.js +1 -1
  404. package/dist/esm/bs-snackbar.entry.js +1 -1
  405. package/dist/esm/bs-source-link.entry.js +2 -2
  406. package/dist/esm/bs-spinner.entry.js +1 -1
  407. package/dist/esm/bs-split-pane.entry.js +1 -1
  408. package/dist/esm/bs-stack.entry.js +1 -1
  409. package/dist/esm/bs-stepper-step.entry.js +1 -1
  410. package/dist/esm/bs-stepper.entry.js +1 -1
  411. package/dist/esm/bs-switch.entry.js +1 -1
  412. package/dist/esm/bs-tab_3.entry.js +3 -3
  413. package/dist/esm/bs-timepicker.entry.js +2 -2
  414. package/dist/esm/bs-toast.entry.js +1 -1
  415. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  416. package/dist/esm/bs-tooltip.entry.js +1 -1
  417. package/dist/esm/bs-tree-item.entry.js +2 -2
  418. package/dist/esm/bs-tree.entry.js +1 -1
  419. package/dist/esm/loader.js +1 -1
  420. package/dist/types/components/bs-command-palette/bs-command-palette.cmp.test.d.ts +1 -0
  421. package/dist/types/components/bs-command-palette/bs-command-palette.d.ts +172 -0
  422. package/dist/types/components/bs-command-palette/bs-command-palette.stories.d.ts +56 -0
  423. package/dist/types/components/bs-empty-state/bs-empty-state.cmp.test.d.ts +1 -0
  424. package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +50 -0
  425. package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +13 -0
  426. package/dist/types/components/bs-global-search/bs-global-search.cmp.test.d.ts +1 -0
  427. package/dist/types/components/bs-global-search/bs-global-search.d.ts +166 -0
  428. package/dist/types/components/bs-global-search/bs-global-search.stories.d.ts +61 -0
  429. package/dist/types/components/bs-key/bs-key.cmp.test.d.ts +1 -0
  430. package/dist/types/components/bs-key/bs-key.d.ts +36 -0
  431. package/dist/types/components/bs-key/bs-key.stories.d.ts +11 -0
  432. package/dist/types/components/bs-key-caps/bs-key-caps.cmp.test.d.ts +1 -0
  433. package/dist/types/components/bs-key-caps/bs-key-caps.d.ts +31 -0
  434. package/dist/types/components/bs-key-caps/bs-key-caps.stories.d.ts +15 -0
  435. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.d.ts +1 -0
  436. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.d.ts +95 -0
  437. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.d.ts +43 -0
  438. package/dist/types/components/bs-search-item/bs-search-item.cmp.test.d.ts +1 -0
  439. package/dist/types/components/bs-search-item/bs-search-item.d.ts +61 -0
  440. package/dist/types/components/bs-search-item/bs-search-item.stories.d.ts +13 -0
  441. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.cmp.test.d.ts +1 -0
  442. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.d.ts +38 -0
  443. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.stories.d.ts +13 -0
  444. package/dist/types/components.d.ts +1902 -76
  445. package/package.json +1 -1
  446. package/reference.d.ts +24 -0
  447. package/reference.json +855 -76
  448. package/dist/brandsync-wc/p-769c5b4a.entry.js +0 -1
  449. package/dist/brandsync-wc/p-e5f50e93.entry.js +0 -1
  450. package/dist/brandsync-wc/p-e72dd05e.entry.js +0 -1
  451. package/dist/components/p-BaJEv6rL.js +0 -1
@@ -0,0 +1,1114 @@
1
+ import { h } from "@stencil/core";
2
+ /** The result sections, in display (and keyboard) order. */
3
+ const RESULT_SECTIONS = ['recent', 'suggested', 'commands', 'navigation', 'records'];
4
+ const ALL_SECTIONS = [...RESULT_SECTIONS, 'try-instead'];
5
+ let uid = 0;
6
+ const svgProps = {
7
+ viewBox: '0 0 24 24',
8
+ fill: 'none',
9
+ stroke: 'currentColor',
10
+ 'stroke-width': '1.8',
11
+ 'stroke-linecap': 'round',
12
+ 'stroke-linejoin': 'round',
13
+ 'aria-hidden': 'true',
14
+ };
15
+ /**
16
+ * A Ctrl+K command palette: a modal with a search field, grouped commands, navigation and records, a
17
+ * no-results view and a keyboard-hint footer. The data, the filtering, the command registry and the
18
+ * recent-items storage are all yours: you slot `bs-search-item`s into the sections and set `status`.
19
+ *
20
+ * Built from a native `<dialog>` (opened with `showModal()`, so focus is trapped, the page behind is inert
21
+ * and the backdrop is the scrim), `bs-input` (type="search"), `bs-search-item`, `bs-key` (footer hints and
22
+ * the Esc cap), `bs-chip-informative` (the scope chip) and `bs-spinner` (loading). Slot a `bs-key-caps` with
23
+ * `slot="trailing"` inside an item to show a command's shortcut.
24
+ *
25
+ * ## When to use
26
+ * - An app-wide "do anything" entry point opened with a hotkey: run commands, navigate, open records.
27
+ *
28
+ * ## When not to use
29
+ * - A plain search box with a dropdown -- use `bs-global-search`.
30
+ * - A small list of actions on one control -- use `bs-menu`.
31
+ *
32
+ * A `>` as the first character of the field switches to commands-only mode (`commandsOnly`, reflected as
33
+ * `commands-only`). The component filters nothing: listen to `bsInput`, swap the slotted items, set `status`.
34
+ * Nested (sub-command) palettes are a consumer pattern: swap the slotted commands and set `scopeLabel`.
35
+ *
36
+ * @slot recent - `bs-search-item`s for the "Recent" section.
37
+ * @slot suggested - `bs-search-item`s for the "Suggested" section.
38
+ * @slot commands - `bs-search-item`s for the "Commands" section.
39
+ * @slot navigation - `bs-search-item`s for the "Navigation" section.
40
+ * @slot records - `bs-search-item`s for the "Records" section.
41
+ * @slot try-instead - `bs-search-item`s under "Try instead" in the no-results view (status `empty`).
42
+ * @part dialog - The native `<dialog>`.
43
+ * @part panel - The palette surface.
44
+ * @part search - The search bar row.
45
+ * @part input - The `bs-input`.
46
+ * @part results - The scrolling results area.
47
+ * @part section - One section (header and items).
48
+ * @part section-header - A section header.
49
+ * @part empty - The no-results message block.
50
+ * @part footer - The footer row.
51
+ * @part hint - One keyboard hint (keycaps and text).
52
+ * @prop --bs-command-palette-width - Panel width. Defaults to `640px` (Figma); capped to the viewport.
53
+ * @prop --bs-command-palette-top - Distance from the top of the viewport. Defaults to `12vh`.
54
+ * @prop --bs-command-palette-max-height - Max height of the results area. Defaults to `60vh`.
55
+ * @prop --bs-command-palette-radius - Aliased to `--bs-border-radius-150`.
56
+ * @prop --bs-command-palette-bg - Panel background. Aliased to `--bs-surface-base`.
57
+ * @prop --bs-command-palette-shadow - Figma elevation level 4: `0 8px 16px` in `--bs-elevation-higher` (stronger in dark mode).
58
+ * @prop --bs-command-palette-overlay - Scrim colour. Aliased to `--bs-surface-overlay`.
59
+ * @prop --bs-command-palette-footer-bg - Aliased to `--bs-surface-container`.
60
+ * @prop --bs-command-palette-divider-color - Aliased to `--bs-border-default`.
61
+ * @prop --bs-command-palette-header-border-color - Aliased to `--bs-border-neutral-container`.
62
+ * @prop --bs-command-palette-header-color - Aliased to `--bs-text-muted`.
63
+ * @prop --bs-command-palette-hint-color - Aliased to `--bs-text-secondary`.
64
+ * @prop --bs-command-palette-z-index - Aliased to `--bs-z-index-modal`.
65
+ */
66
+ export class BsCommandPalette {
67
+ el;
68
+ id = `bs-cp-${++uid}`;
69
+ itemSeq = 0;
70
+ observer;
71
+ dialogEl;
72
+ comboEl;
73
+ inputEl;
74
+ previousFocus;
75
+ userMoved = false;
76
+ /** The field value. Two-way. A leading `>` means commands-only mode. */
77
+ value = '';
78
+ /** Whether the palette is open. */
79
+ open = false;
80
+ /** Derived from `value` (it starts with `>`). Read-only; set `value` instead. */
81
+ commandsOnly = false;
82
+ /** Which view to show. You choose it; nothing is inferred from `value`. `default` and `results` render the same; they differ for screen readers only. */
83
+ status = 'default';
84
+ /** Accessible name of the dialog. */
85
+ label = 'Command palette';
86
+ /** Placeholder of the field. */
87
+ placeholder = 'Type a command or search…';
88
+ /** Keep the palette open after an item is chosen. */
89
+ keepOpenOnSelect = false;
90
+ /** Shows the footer of keyboard hints. */
91
+ showFooter = true;
92
+ /** Global shortcut that toggles the palette, e.g. `mod+k` (`mod` is Cmd on Mac, Ctrl elsewhere). Empty = off. */
93
+ hotkey = '';
94
+ /** Nested scope: shows this text as a chip before the field. Backspace on an empty field emits `bsScopeExit`. */
95
+ scopeLabel;
96
+ /** Section headers. */
97
+ recentLabel = 'Recent';
98
+ suggestedLabel = 'Suggested';
99
+ commandsLabel = 'Commands';
100
+ navigationLabel = 'Navigation';
101
+ recordsLabel = 'Records';
102
+ tryInsteadLabel = 'Try instead';
103
+ /** Footer hint texts. */
104
+ navigateLabel = 'Navigate';
105
+ openLabel = 'Open';
106
+ closeLabel = 'Close';
107
+ commandsOnlyLabel = 'Commands only';
108
+ allResultsLabel = 'All results';
109
+ /** No-results view copy. Include the query in `emptyHeading` yourself. */
110
+ emptyHeading = 'No commands or records';
111
+ emptyDescription = 'Check the spelling, or search records instead.';
112
+ /** A suggested correction; the "Did you mean" line shows while it is set. */
113
+ didYouMean;
114
+ didYouMeanLabel = 'Did you mean';
115
+ /** Text of the loading row. */
116
+ loadingLabel = 'Loading…';
117
+ /** Accessible name of the results listbox. */
118
+ listLabel = 'Results';
119
+ filled = { recent: false, suggested: false, commands: false, navigation: false, records: false, 'try-instead': false };
120
+ activeId = null;
121
+ /** Fires on every keystroke with `{ value, query, commandsOnly }`. */
122
+ bsInput;
123
+ /** Fires when an item is chosen (click or Enter) with `{ value, section, commandsOnly }`. */
124
+ bsSelect;
125
+ /** Fires when the "Did you mean" suggestion is pressed, with its text. */
126
+ bsSuggestion;
127
+ /** Fires when the palette opens or closes through user interaction (hotkey, Esc, scrim, selection). */
128
+ bsOpenChange;
129
+ /** Fires on Backspace in an empty field while `scopeLabel` is set. */
130
+ bsScopeExit;
131
+ /** Opens the palette. */
132
+ async show() {
133
+ this.open = true;
134
+ }
135
+ /** Closes the palette and restores focus. */
136
+ async close() {
137
+ this.open = false;
138
+ }
139
+ onValueChange() {
140
+ this.commandsOnly = this.value.startsWith('>');
141
+ }
142
+ resetMoved() {
143
+ this.userMoved = false;
144
+ }
145
+ componentWillLoad() {
146
+ this.commandsOnly = this.value.startsWith('>');
147
+ this.readFilled();
148
+ this.prepareItems();
149
+ }
150
+ connectedCallback() {
151
+ document.addEventListener('keydown', this.onDocKeyDown);
152
+ this.observer = new MutationObserver(() => {
153
+ this.readFilled();
154
+ this.prepareItems();
155
+ this.syncActive();
156
+ });
157
+ this.observer.observe(this.el, { childList: true });
158
+ }
159
+ disconnectedCallback() {
160
+ document.removeEventListener('keydown', this.onDocKeyDown);
161
+ this.observer?.disconnect();
162
+ if (this.dialogEl?.open)
163
+ this.dialogEl.close();
164
+ }
165
+ componentDidRender() {
166
+ this.syncDialog();
167
+ this.prepareItems();
168
+ this.syncActive();
169
+ }
170
+ syncDialog() {
171
+ const d = this.dialogEl;
172
+ if (!d)
173
+ return;
174
+ if (this.open && !d.open) {
175
+ this.previousFocus = document.activeElement;
176
+ d.showModal();
177
+ this.focusInput();
178
+ }
179
+ else if (!this.open && d.open) {
180
+ d.close();
181
+ const prev = this.previousFocus;
182
+ this.previousFocus = null;
183
+ if (prev && prev.isConnected)
184
+ prev.focus?.();
185
+ }
186
+ }
187
+ focusInput() {
188
+ this.inputEl?.focus();
189
+ const native = this.inputEl?.shadowRoot?.querySelector('input');
190
+ native?.select?.();
191
+ }
192
+ onDocKeyDown = (ev) => {
193
+ if (!this.hotkey || ev.defaultPrevented)
194
+ return;
195
+ const parts = this.hotkey.toLowerCase().split('+').map(p => p.trim());
196
+ const key = parts[parts.length - 1];
197
+ const mods = parts.slice(0, -1);
198
+ const isMac = /mac|iphone|ipad/i.test(navigator.platform || navigator.userAgent);
199
+ const want = (m) => mods.includes(m);
200
+ const wantMeta = want('meta') || want('cmd') || (want('mod') && isMac);
201
+ const wantCtrl = want('ctrl') || (want('mod') && !isMac);
202
+ if (ev.key.toLowerCase() !== key)
203
+ return;
204
+ if (ev.metaKey !== wantMeta || ev.ctrlKey !== wantCtrl || ev.altKey !== want('alt') || ev.shiftKey !== want('shift'))
205
+ return;
206
+ ev.preventDefault();
207
+ this.setOpen(!this.open);
208
+ };
209
+ setOpen(next) {
210
+ if (this.open === next)
211
+ return;
212
+ this.open = next;
213
+ this.bsOpenChange.emit(next);
214
+ }
215
+ allItems() {
216
+ return Array.from(this.el.children).filter(c => c.tagName === 'BS-SEARCH-ITEM' && ALL_SECTIONS.includes(c.getAttribute('slot')));
217
+ }
218
+ shownSections() {
219
+ if (this.status === 'loading')
220
+ return [];
221
+ if (this.status === 'empty')
222
+ return ['try-instead'];
223
+ return RESULT_SECTIONS;
224
+ }
225
+ visibleItems() {
226
+ if (!this.open)
227
+ return [];
228
+ const items = this.allItems();
229
+ return this.shownSections().flatMap(s => items.filter(i => i.getAttribute('slot') === s));
230
+ }
231
+ enabledItems() {
232
+ return this.visibleItems().filter(i => !i.disabled);
233
+ }
234
+ readFilled() {
235
+ const next = { ...this.filled };
236
+ let changed = false;
237
+ for (const s of ALL_SECTIONS) {
238
+ const has = Array.from(this.el.children).some(c => c.getAttribute('slot') === s);
239
+ if (next[s] !== has) {
240
+ next[s] = has;
241
+ changed = true;
242
+ }
243
+ }
244
+ if (changed)
245
+ this.filled = next;
246
+ }
247
+ prepareItems() {
248
+ for (const item of this.allItems()) {
249
+ if (item.selectionRole !== 'option')
250
+ item.selectionRole = 'option';
251
+ if (!item.id)
252
+ item.id = `${this.id}-opt-${++this.itemSeq}`;
253
+ }
254
+ }
255
+ /** First enabled item is active unless the user moved the highlight (and it still exists). */
256
+ syncActive() {
257
+ const enabled = this.enabledItems();
258
+ let id = this.activeId;
259
+ if (!this.open || !enabled.length)
260
+ id = null;
261
+ else if (!this.userMoved || !enabled.some(i => i.id === id))
262
+ id = enabled[0].id;
263
+ if (id !== this.activeId)
264
+ this.activeId = id;
265
+ let activeItem;
266
+ for (const item of this.allItems()) {
267
+ const on = !!id && item.id === id;
268
+ if (on)
269
+ activeItem = item;
270
+ if (item.active !== on)
271
+ item.active = on;
272
+ }
273
+ // The items live in the light DOM, so an id reference cannot reach them from this shadow root; the
274
+ // element-reference property can (the light DOM is an ancestor scope).
275
+ if (this.comboEl)
276
+ this.comboEl.ariaActiveDescendantElement = activeItem ?? null;
277
+ }
278
+ setActive(item) {
279
+ this.userMoved = true;
280
+ this.activeId = item.id;
281
+ for (const i of this.allItems())
282
+ i.active = i.id === item.id;
283
+ if (this.comboEl)
284
+ this.comboEl.ariaActiveDescendantElement = item;
285
+ item.scrollIntoView?.({ block: 'nearest' });
286
+ }
287
+ onInput = (ev) => {
288
+ ev.stopPropagation();
289
+ this.value = ev.detail;
290
+ this.userMoved = false;
291
+ const commandsOnly = this.value.startsWith('>');
292
+ this.bsInput.emit({ value: this.value, query: (commandsOnly ? this.value.slice(1) : this.value).trim(), commandsOnly });
293
+ };
294
+ onKeyDown = (ev) => {
295
+ switch (ev.key) {
296
+ case 'ArrowDown':
297
+ case 'ArrowUp': {
298
+ ev.preventDefault();
299
+ const items = this.enabledItems();
300
+ if (!items.length)
301
+ return;
302
+ const idx = items.findIndex(i => i.id === this.activeId);
303
+ const next = ev.key === 'ArrowDown' ? (idx + 1) % items.length : idx <= 0 ? items.length - 1 : idx - 1;
304
+ this.setActive(items[next]);
305
+ return;
306
+ }
307
+ case 'Enter': {
308
+ const active = this.enabledItems().find(i => i.id === this.activeId);
309
+ if (active) {
310
+ ev.preventDefault();
311
+ active.click();
312
+ }
313
+ return;
314
+ }
315
+ case 'Backspace':
316
+ if (this.scopeLabel && this.value === '')
317
+ this.bsScopeExit.emit();
318
+ return;
319
+ }
320
+ };
321
+ onDialogKeyDown = (ev) => {
322
+ if (ev.key === 'Escape') {
323
+ ev.preventDefault();
324
+ ev.stopPropagation();
325
+ this.setOpen(false);
326
+ }
327
+ };
328
+ /** Native cancel (Esc through another path): handle it ourselves so state and focus stay in sync. */
329
+ onCancel = (ev) => {
330
+ ev.preventDefault();
331
+ this.setOpen(false);
332
+ };
333
+ /** A click that lands on the `<dialog>` itself is a click on the backdrop (the scrim). */
334
+ onDialogClick = (ev) => {
335
+ if (ev.target === this.dialogEl)
336
+ this.setOpen(false);
337
+ };
338
+ onItemSelect(ev) {
339
+ const item = ev.target;
340
+ if (!item || item.tagName !== 'BS-SEARCH-ITEM')
341
+ return;
342
+ ev.stopPropagation();
343
+ this.bsSelect.emit({ value: ev.detail, section: item.getAttribute('slot') ?? '', commandsOnly: this.commandsOnly });
344
+ if (!this.keepOpenOnSelect)
345
+ this.setOpen(false);
346
+ }
347
+ onResultsMouseOver = (ev) => {
348
+ const item = ev.composedPath().find(n => n.tagName === 'BS-SEARCH-ITEM');
349
+ if (item && !item.disabled && item.id !== this.activeId)
350
+ this.setActive(item);
351
+ };
352
+ sectionLabel(s) {
353
+ return {
354
+ recent: this.recentLabel,
355
+ suggested: this.suggestedLabel,
356
+ commands: this.commandsLabel,
357
+ navigation: this.navigationLabel,
358
+ records: this.recordsLabel,
359
+ 'try-instead': this.tryInsteadLabel,
360
+ }[s];
361
+ }
362
+ renderSection(s) {
363
+ const hid = `${this.id}-h-${s}`;
364
+ return (h("div", { part: "section", class: "bs-command-palette__section", role: "group", "aria-labelledby": hid }, h("div", { part: "section-header", id: hid, class: "bs-command-palette__section-header" }, this.sectionLabel(s)), h("slot", { name: s })));
365
+ }
366
+ renderHint(keys, label) {
367
+ return (h("span", { part: "hint", class: "bs-command-palette__hint" }, keys, h("span", { class: "bs-command-palette__hint-text" }, label)));
368
+ }
369
+ renderFooter() {
370
+ const arrow = (d) => (h("bs-key", null, h("svg", { slot: "icon", ...svgProps }, h("path", { d: d }))));
371
+ return (h("div", { part: "footer", class: "bs-command-palette__footer" }, this.renderHint([arrow('M12 19V5M5 12l7-7 7 7'), arrow('M12 5v14M5 12l7 7 7-7')], this.navigateLabel), this.renderHint([
372
+ h("bs-key", null, h("svg", { slot: "icon", ...svgProps }, h("path", { d: "M9 14 4 9l5-5" }), h("path", { d: "M4 9h10.5a5.5 5.5 0 0 1 0 11H11" }))),
373
+ ], this.openLabel), this.renderHint([h("bs-key", { label: "Esc" })], this.closeLabel), h("span", { class: "bs-command-palette__spacer" }), this.commandsOnly
374
+ ? this.renderHint([h("bs-key", { label: "Backspace" })], this.allResultsLabel)
375
+ : this.renderHint([h("bs-key", { label: ">" })], this.commandsOnlyLabel)));
376
+ }
377
+ renderEmpty() {
378
+ return (h("div", { part: "empty", class: "bs-command-palette__empty" }, h("svg", { class: "bs-command-palette__empty-icon", ...svgProps, "stroke-width": "1.5" }, h("circle", { cx: "11", cy: "11", r: "7" }), h("path", { d: "m20 20-3.5-3.5M8.5 11h5" })), h("div", { class: "bs-command-palette__empty-heading" }, this.emptyHeading), h("div", { class: "bs-command-palette__empty-description" }, this.emptyDescription), this.didYouMean && (h("div", { class: "bs-command-palette__empty-description" }, this.didYouMeanLabel, ' ', h("button", { type: "button", class: "bs-command-palette__link", onClick: () => this.bsSuggestion.emit(this.didYouMean) }, this.didYouMean)))));
379
+ }
380
+ announcement() {
381
+ if (!this.open)
382
+ return '';
383
+ if (this.status === 'empty')
384
+ return this.emptyHeading;
385
+ if (this.status === 'loading')
386
+ return this.loadingLabel;
387
+ return '';
388
+ }
389
+ render() {
390
+ const listId = `${this.id}-listbox`;
391
+ const loading = this.status === 'loading';
392
+ const empty = this.status === 'empty';
393
+ const sections = this.shownSections().filter(s => this.filled[s]);
394
+ const hasList = sections.length > 0;
395
+ const showResults = loading || empty || hasList;
396
+ return (h("dialog", { key: '55a38e90a59faa6f0314c7e26ae90326fc82d7dc', ref: el => (this.dialogEl = el), part: "dialog", class: "bs-command-palette", "aria-label": this.label, "aria-modal": "true", role: "dialog", onCancel: this.onCancel, onClose: () => this.open && this.setOpen(false), onClick: this.onDialogClick, onKeyDown: this.onDialogKeyDown }, h("div", { key: '793f0509daba42c4a208d3f5ff3cdfa7d963989a', part: "panel", class: "bs-command-palette__panel" }, h("div", { key: '9af1794a677b7696e242df6a4e9e7775a8efdbea', part: "search", class: "bs-command-palette__search" }, this.scopeLabel && (h("bs-chip-informative", { key: '506dd50cecd610c48d61b24723e5a700a05ec693', class: "bs-command-palette__scope", color: "info" }, this.scopeLabel)), h("div", { key: 'ae0d016a687820e4960b9ff3d59c74cd937796bf', class: "bs-command-palette__field", ref: el => (this.comboEl = el), role: "combobox", "aria-label": this.placeholder, "aria-expanded": String(hasList), "aria-haspopup": "listbox", "aria-controls": hasList ? listId : undefined, onKeyDown: this.onKeyDown }, h("bs-input", { key: 'd444f70cfd6878434d19364ee1668987ae7da1c2', part: "input", ref: el => (this.inputEl = el), type: "search", value: this.value, placeholder: this.placeholder, onBsInput: this.onInput })), h("span", { key: '8baa325a3af0bd2c4b09e7201c315fbbb37f55e9', class: "bs-command-palette__esc", "aria-hidden": "true" }, h("bs-key", { key: 'a9bc3f695d63b32ab227b93a8a46db33da56da27', label: "Esc" }))), showResults && h("div", { key: 'e97114037b44d14a51872929314773aa637d64f1', class: "bs-command-palette__divider", role: "presentation" }), showResults && (h("div", { key: 'c8bc5e63b0ff902c8a2730775ae7294f025a7dc6', part: "results", class: "bs-command-palette__results", "aria-busy": String(loading), onMouseOver: this.onResultsMouseOver }, loading && (h("div", { key: 'c4bfacce3dc902aab472d825494d1e67ca593c32', class: "bs-command-palette__loading", role: "status" }, h("bs-spinner", { key: 'fcf43a2a30cc94b67075bbded0eaae329c4e18a4', size: "sm" }), h("span", { key: 'b9f195cacbd6ad6acfcd151f47c52b0c937ff1f5' }, this.loadingLabel))), empty && this.renderEmpty(), hasList && (h("div", { key: 'e4da543ad73a9b7dc209876d6e8dd1d057f4048e', id: listId, class: "bs-command-palette__list", role: "listbox", "aria-label": this.listLabel }, sections.map(s => this.renderSection(s)))))), this.showFooter && this.renderFooter()), h("span", { key: 'c4aab5214af689a0332a9730753ca187b91b5ec3', class: "bs-command-palette__live", "aria-live": "polite" }, this.announcement())));
397
+ }
398
+ static get is() { return "bs-command-palette"; }
399
+ static get encapsulation() { return "shadow"; }
400
+ static get originalStyleUrls() {
401
+ return {
402
+ "$": ["bs-command-palette.css"]
403
+ };
404
+ }
405
+ static get styleUrls() {
406
+ return {
407
+ "$": ["bs-command-palette.css"]
408
+ };
409
+ }
410
+ static get properties() {
411
+ return {
412
+ "value": {
413
+ "type": "string",
414
+ "mutable": true,
415
+ "complexType": {
416
+ "original": "string",
417
+ "resolved": "string",
418
+ "references": {}
419
+ },
420
+ "required": false,
421
+ "optional": false,
422
+ "docs": {
423
+ "tags": [],
424
+ "text": "The field value. Two-way. A leading `>` means commands-only mode."
425
+ },
426
+ "getter": false,
427
+ "setter": false,
428
+ "reflect": false,
429
+ "attribute": "value",
430
+ "defaultValue": "''"
431
+ },
432
+ "open": {
433
+ "type": "boolean",
434
+ "mutable": true,
435
+ "complexType": {
436
+ "original": "boolean",
437
+ "resolved": "boolean",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": false,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": "Whether the palette is open."
445
+ },
446
+ "getter": false,
447
+ "setter": false,
448
+ "reflect": true,
449
+ "attribute": "open",
450
+ "defaultValue": "false"
451
+ },
452
+ "commandsOnly": {
453
+ "type": "boolean",
454
+ "mutable": true,
455
+ "complexType": {
456
+ "original": "boolean",
457
+ "resolved": "boolean",
458
+ "references": {}
459
+ },
460
+ "required": false,
461
+ "optional": false,
462
+ "docs": {
463
+ "tags": [],
464
+ "text": "Derived from `value` (it starts with `>`). Read-only; set `value` instead."
465
+ },
466
+ "getter": false,
467
+ "setter": false,
468
+ "reflect": true,
469
+ "attribute": "commands-only",
470
+ "defaultValue": "false"
471
+ },
472
+ "status": {
473
+ "type": "string",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "BsCommandPaletteStatus",
477
+ "resolved": "\"default\" | \"empty\" | \"loading\" | \"results\"",
478
+ "references": {
479
+ "BsCommandPaletteStatus": {
480
+ "location": "local",
481
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-command-palette/bs-command-palette.tsx",
482
+ "id": "src/components/bs-command-palette/bs-command-palette.tsx::BsCommandPaletteStatus"
483
+ }
484
+ }
485
+ },
486
+ "required": false,
487
+ "optional": false,
488
+ "docs": {
489
+ "tags": [],
490
+ "text": "Which view to show. You choose it; nothing is inferred from `value`. `default` and `results` render the same; they differ for screen readers only."
491
+ },
492
+ "getter": false,
493
+ "setter": false,
494
+ "reflect": true,
495
+ "attribute": "status",
496
+ "defaultValue": "'default'"
497
+ },
498
+ "label": {
499
+ "type": "string",
500
+ "mutable": false,
501
+ "complexType": {
502
+ "original": "string",
503
+ "resolved": "string",
504
+ "references": {}
505
+ },
506
+ "required": false,
507
+ "optional": false,
508
+ "docs": {
509
+ "tags": [],
510
+ "text": "Accessible name of the dialog."
511
+ },
512
+ "getter": false,
513
+ "setter": false,
514
+ "reflect": false,
515
+ "attribute": "label",
516
+ "defaultValue": "'Command palette'"
517
+ },
518
+ "placeholder": {
519
+ "type": "string",
520
+ "mutable": false,
521
+ "complexType": {
522
+ "original": "string",
523
+ "resolved": "string",
524
+ "references": {}
525
+ },
526
+ "required": false,
527
+ "optional": false,
528
+ "docs": {
529
+ "tags": [],
530
+ "text": "Placeholder of the field."
531
+ },
532
+ "getter": false,
533
+ "setter": false,
534
+ "reflect": false,
535
+ "attribute": "placeholder",
536
+ "defaultValue": "'Type a command or search\u2026'"
537
+ },
538
+ "keepOpenOnSelect": {
539
+ "type": "boolean",
540
+ "mutable": false,
541
+ "complexType": {
542
+ "original": "boolean",
543
+ "resolved": "boolean",
544
+ "references": {}
545
+ },
546
+ "required": false,
547
+ "optional": false,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": "Keep the palette open after an item is chosen."
551
+ },
552
+ "getter": false,
553
+ "setter": false,
554
+ "reflect": false,
555
+ "attribute": "keep-open-on-select",
556
+ "defaultValue": "false"
557
+ },
558
+ "showFooter": {
559
+ "type": "boolean",
560
+ "mutable": false,
561
+ "complexType": {
562
+ "original": "boolean",
563
+ "resolved": "boolean",
564
+ "references": {}
565
+ },
566
+ "required": false,
567
+ "optional": false,
568
+ "docs": {
569
+ "tags": [],
570
+ "text": "Shows the footer of keyboard hints."
571
+ },
572
+ "getter": false,
573
+ "setter": false,
574
+ "reflect": false,
575
+ "attribute": "show-footer",
576
+ "defaultValue": "true"
577
+ },
578
+ "hotkey": {
579
+ "type": "string",
580
+ "mutable": false,
581
+ "complexType": {
582
+ "original": "string",
583
+ "resolved": "string",
584
+ "references": {}
585
+ },
586
+ "required": false,
587
+ "optional": false,
588
+ "docs": {
589
+ "tags": [],
590
+ "text": "Global shortcut that toggles the palette, e.g. `mod+k` (`mod` is Cmd on Mac, Ctrl elsewhere). Empty = off."
591
+ },
592
+ "getter": false,
593
+ "setter": false,
594
+ "reflect": false,
595
+ "attribute": "hotkey",
596
+ "defaultValue": "''"
597
+ },
598
+ "scopeLabel": {
599
+ "type": "string",
600
+ "mutable": false,
601
+ "complexType": {
602
+ "original": "string",
603
+ "resolved": "string",
604
+ "references": {}
605
+ },
606
+ "required": false,
607
+ "optional": true,
608
+ "docs": {
609
+ "tags": [],
610
+ "text": "Nested scope: shows this text as a chip before the field. Backspace on an empty field emits `bsScopeExit`."
611
+ },
612
+ "getter": false,
613
+ "setter": false,
614
+ "reflect": false,
615
+ "attribute": "scope-label"
616
+ },
617
+ "recentLabel": {
618
+ "type": "string",
619
+ "mutable": false,
620
+ "complexType": {
621
+ "original": "string",
622
+ "resolved": "string",
623
+ "references": {}
624
+ },
625
+ "required": false,
626
+ "optional": false,
627
+ "docs": {
628
+ "tags": [],
629
+ "text": "Section headers."
630
+ },
631
+ "getter": false,
632
+ "setter": false,
633
+ "reflect": false,
634
+ "attribute": "recent-label",
635
+ "defaultValue": "'Recent'"
636
+ },
637
+ "suggestedLabel": {
638
+ "type": "string",
639
+ "mutable": false,
640
+ "complexType": {
641
+ "original": "string",
642
+ "resolved": "string",
643
+ "references": {}
644
+ },
645
+ "required": false,
646
+ "optional": false,
647
+ "docs": {
648
+ "tags": [],
649
+ "text": ""
650
+ },
651
+ "getter": false,
652
+ "setter": false,
653
+ "reflect": false,
654
+ "attribute": "suggested-label",
655
+ "defaultValue": "'Suggested'"
656
+ },
657
+ "commandsLabel": {
658
+ "type": "string",
659
+ "mutable": false,
660
+ "complexType": {
661
+ "original": "string",
662
+ "resolved": "string",
663
+ "references": {}
664
+ },
665
+ "required": false,
666
+ "optional": false,
667
+ "docs": {
668
+ "tags": [],
669
+ "text": ""
670
+ },
671
+ "getter": false,
672
+ "setter": false,
673
+ "reflect": false,
674
+ "attribute": "commands-label",
675
+ "defaultValue": "'Commands'"
676
+ },
677
+ "navigationLabel": {
678
+ "type": "string",
679
+ "mutable": false,
680
+ "complexType": {
681
+ "original": "string",
682
+ "resolved": "string",
683
+ "references": {}
684
+ },
685
+ "required": false,
686
+ "optional": false,
687
+ "docs": {
688
+ "tags": [],
689
+ "text": ""
690
+ },
691
+ "getter": false,
692
+ "setter": false,
693
+ "reflect": false,
694
+ "attribute": "navigation-label",
695
+ "defaultValue": "'Navigation'"
696
+ },
697
+ "recordsLabel": {
698
+ "type": "string",
699
+ "mutable": false,
700
+ "complexType": {
701
+ "original": "string",
702
+ "resolved": "string",
703
+ "references": {}
704
+ },
705
+ "required": false,
706
+ "optional": false,
707
+ "docs": {
708
+ "tags": [],
709
+ "text": ""
710
+ },
711
+ "getter": false,
712
+ "setter": false,
713
+ "reflect": false,
714
+ "attribute": "records-label",
715
+ "defaultValue": "'Records'"
716
+ },
717
+ "tryInsteadLabel": {
718
+ "type": "string",
719
+ "mutable": false,
720
+ "complexType": {
721
+ "original": "string",
722
+ "resolved": "string",
723
+ "references": {}
724
+ },
725
+ "required": false,
726
+ "optional": false,
727
+ "docs": {
728
+ "tags": [],
729
+ "text": ""
730
+ },
731
+ "getter": false,
732
+ "setter": false,
733
+ "reflect": false,
734
+ "attribute": "try-instead-label",
735
+ "defaultValue": "'Try instead'"
736
+ },
737
+ "navigateLabel": {
738
+ "type": "string",
739
+ "mutable": false,
740
+ "complexType": {
741
+ "original": "string",
742
+ "resolved": "string",
743
+ "references": {}
744
+ },
745
+ "required": false,
746
+ "optional": false,
747
+ "docs": {
748
+ "tags": [],
749
+ "text": "Footer hint texts."
750
+ },
751
+ "getter": false,
752
+ "setter": false,
753
+ "reflect": false,
754
+ "attribute": "navigate-label",
755
+ "defaultValue": "'Navigate'"
756
+ },
757
+ "openLabel": {
758
+ "type": "string",
759
+ "mutable": false,
760
+ "complexType": {
761
+ "original": "string",
762
+ "resolved": "string",
763
+ "references": {}
764
+ },
765
+ "required": false,
766
+ "optional": false,
767
+ "docs": {
768
+ "tags": [],
769
+ "text": ""
770
+ },
771
+ "getter": false,
772
+ "setter": false,
773
+ "reflect": false,
774
+ "attribute": "open-label",
775
+ "defaultValue": "'Open'"
776
+ },
777
+ "closeLabel": {
778
+ "type": "string",
779
+ "mutable": false,
780
+ "complexType": {
781
+ "original": "string",
782
+ "resolved": "string",
783
+ "references": {}
784
+ },
785
+ "required": false,
786
+ "optional": false,
787
+ "docs": {
788
+ "tags": [],
789
+ "text": ""
790
+ },
791
+ "getter": false,
792
+ "setter": false,
793
+ "reflect": false,
794
+ "attribute": "close-label",
795
+ "defaultValue": "'Close'"
796
+ },
797
+ "commandsOnlyLabel": {
798
+ "type": "string",
799
+ "mutable": false,
800
+ "complexType": {
801
+ "original": "string",
802
+ "resolved": "string",
803
+ "references": {}
804
+ },
805
+ "required": false,
806
+ "optional": false,
807
+ "docs": {
808
+ "tags": [],
809
+ "text": ""
810
+ },
811
+ "getter": false,
812
+ "setter": false,
813
+ "reflect": false,
814
+ "attribute": "commands-only-label",
815
+ "defaultValue": "'Commands only'"
816
+ },
817
+ "allResultsLabel": {
818
+ "type": "string",
819
+ "mutable": false,
820
+ "complexType": {
821
+ "original": "string",
822
+ "resolved": "string",
823
+ "references": {}
824
+ },
825
+ "required": false,
826
+ "optional": false,
827
+ "docs": {
828
+ "tags": [],
829
+ "text": ""
830
+ },
831
+ "getter": false,
832
+ "setter": false,
833
+ "reflect": false,
834
+ "attribute": "all-results-label",
835
+ "defaultValue": "'All results'"
836
+ },
837
+ "emptyHeading": {
838
+ "type": "string",
839
+ "mutable": false,
840
+ "complexType": {
841
+ "original": "string",
842
+ "resolved": "string",
843
+ "references": {}
844
+ },
845
+ "required": false,
846
+ "optional": false,
847
+ "docs": {
848
+ "tags": [],
849
+ "text": "No-results view copy. Include the query in `emptyHeading` yourself."
850
+ },
851
+ "getter": false,
852
+ "setter": false,
853
+ "reflect": false,
854
+ "attribute": "empty-heading",
855
+ "defaultValue": "'No commands or records'"
856
+ },
857
+ "emptyDescription": {
858
+ "type": "string",
859
+ "mutable": false,
860
+ "complexType": {
861
+ "original": "string",
862
+ "resolved": "string",
863
+ "references": {}
864
+ },
865
+ "required": false,
866
+ "optional": false,
867
+ "docs": {
868
+ "tags": [],
869
+ "text": ""
870
+ },
871
+ "getter": false,
872
+ "setter": false,
873
+ "reflect": false,
874
+ "attribute": "empty-description",
875
+ "defaultValue": "'Check the spelling, or search records instead.'"
876
+ },
877
+ "didYouMean": {
878
+ "type": "string",
879
+ "mutable": false,
880
+ "complexType": {
881
+ "original": "string",
882
+ "resolved": "string",
883
+ "references": {}
884
+ },
885
+ "required": false,
886
+ "optional": true,
887
+ "docs": {
888
+ "tags": [],
889
+ "text": "A suggested correction; the \"Did you mean\" line shows while it is set."
890
+ },
891
+ "getter": false,
892
+ "setter": false,
893
+ "reflect": false,
894
+ "attribute": "did-you-mean"
895
+ },
896
+ "didYouMeanLabel": {
897
+ "type": "string",
898
+ "mutable": false,
899
+ "complexType": {
900
+ "original": "string",
901
+ "resolved": "string",
902
+ "references": {}
903
+ },
904
+ "required": false,
905
+ "optional": false,
906
+ "docs": {
907
+ "tags": [],
908
+ "text": ""
909
+ },
910
+ "getter": false,
911
+ "setter": false,
912
+ "reflect": false,
913
+ "attribute": "did-you-mean-label",
914
+ "defaultValue": "'Did you mean'"
915
+ },
916
+ "loadingLabel": {
917
+ "type": "string",
918
+ "mutable": false,
919
+ "complexType": {
920
+ "original": "string",
921
+ "resolved": "string",
922
+ "references": {}
923
+ },
924
+ "required": false,
925
+ "optional": false,
926
+ "docs": {
927
+ "tags": [],
928
+ "text": "Text of the loading row."
929
+ },
930
+ "getter": false,
931
+ "setter": false,
932
+ "reflect": false,
933
+ "attribute": "loading-label",
934
+ "defaultValue": "'Loading\u2026'"
935
+ },
936
+ "listLabel": {
937
+ "type": "string",
938
+ "mutable": false,
939
+ "complexType": {
940
+ "original": "string",
941
+ "resolved": "string",
942
+ "references": {}
943
+ },
944
+ "required": false,
945
+ "optional": false,
946
+ "docs": {
947
+ "tags": [],
948
+ "text": "Accessible name of the results listbox."
949
+ },
950
+ "getter": false,
951
+ "setter": false,
952
+ "reflect": false,
953
+ "attribute": "list-label",
954
+ "defaultValue": "'Results'"
955
+ }
956
+ };
957
+ }
958
+ static get states() {
959
+ return {
960
+ "filled": {},
961
+ "activeId": {}
962
+ };
963
+ }
964
+ static get events() {
965
+ return [{
966
+ "method": "bsInput",
967
+ "name": "bsInput",
968
+ "bubbles": true,
969
+ "cancelable": true,
970
+ "composed": true,
971
+ "docs": {
972
+ "tags": [],
973
+ "text": "Fires on every keystroke with `{ value, query, commandsOnly }`."
974
+ },
975
+ "complexType": {
976
+ "original": "BsCommandPaletteInputDetail",
977
+ "resolved": "BsCommandPaletteInputDetail",
978
+ "references": {
979
+ "BsCommandPaletteInputDetail": {
980
+ "location": "local",
981
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-command-palette/bs-command-palette.tsx",
982
+ "id": "src/components/bs-command-palette/bs-command-palette.tsx::BsCommandPaletteInputDetail"
983
+ }
984
+ }
985
+ }
986
+ }, {
987
+ "method": "bsSelect",
988
+ "name": "bsSelect",
989
+ "bubbles": true,
990
+ "cancelable": true,
991
+ "composed": true,
992
+ "docs": {
993
+ "tags": [],
994
+ "text": "Fires when an item is chosen (click or Enter) with `{ value, section, commandsOnly }`."
995
+ },
996
+ "complexType": {
997
+ "original": "BsCommandPaletteSelectDetail",
998
+ "resolved": "BsCommandPaletteSelectDetail",
999
+ "references": {
1000
+ "BsCommandPaletteSelectDetail": {
1001
+ "location": "local",
1002
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-command-palette/bs-command-palette.tsx",
1003
+ "id": "src/components/bs-command-palette/bs-command-palette.tsx::BsCommandPaletteSelectDetail"
1004
+ }
1005
+ }
1006
+ }
1007
+ }, {
1008
+ "method": "bsSuggestion",
1009
+ "name": "bsSuggestion",
1010
+ "bubbles": true,
1011
+ "cancelable": true,
1012
+ "composed": true,
1013
+ "docs": {
1014
+ "tags": [],
1015
+ "text": "Fires when the \"Did you mean\" suggestion is pressed, with its text."
1016
+ },
1017
+ "complexType": {
1018
+ "original": "string",
1019
+ "resolved": "string",
1020
+ "references": {}
1021
+ }
1022
+ }, {
1023
+ "method": "bsOpenChange",
1024
+ "name": "bsOpenChange",
1025
+ "bubbles": true,
1026
+ "cancelable": true,
1027
+ "composed": true,
1028
+ "docs": {
1029
+ "tags": [],
1030
+ "text": "Fires when the palette opens or closes through user interaction (hotkey, Esc, scrim, selection)."
1031
+ },
1032
+ "complexType": {
1033
+ "original": "boolean",
1034
+ "resolved": "boolean",
1035
+ "references": {}
1036
+ }
1037
+ }, {
1038
+ "method": "bsScopeExit",
1039
+ "name": "bsScopeExit",
1040
+ "bubbles": true,
1041
+ "cancelable": true,
1042
+ "composed": true,
1043
+ "docs": {
1044
+ "tags": [],
1045
+ "text": "Fires on Backspace in an empty field while `scopeLabel` is set."
1046
+ },
1047
+ "complexType": {
1048
+ "original": "void",
1049
+ "resolved": "void",
1050
+ "references": {}
1051
+ }
1052
+ }];
1053
+ }
1054
+ static get methods() {
1055
+ return {
1056
+ "show": {
1057
+ "complexType": {
1058
+ "signature": "() => Promise<void>",
1059
+ "parameters": [],
1060
+ "references": {
1061
+ "Promise": {
1062
+ "location": "global",
1063
+ "id": "global::Promise"
1064
+ }
1065
+ },
1066
+ "return": "Promise<void>"
1067
+ },
1068
+ "docs": {
1069
+ "text": "Opens the palette.",
1070
+ "tags": []
1071
+ }
1072
+ },
1073
+ "close": {
1074
+ "complexType": {
1075
+ "signature": "() => Promise<void>",
1076
+ "parameters": [],
1077
+ "references": {
1078
+ "Promise": {
1079
+ "location": "global",
1080
+ "id": "global::Promise"
1081
+ }
1082
+ },
1083
+ "return": "Promise<void>"
1084
+ },
1085
+ "docs": {
1086
+ "text": "Closes the palette and restores focus.",
1087
+ "tags": []
1088
+ }
1089
+ }
1090
+ };
1091
+ }
1092
+ static get elementRef() { return "el"; }
1093
+ static get watchers() {
1094
+ return [{
1095
+ "propName": "value",
1096
+ "methodName": "onValueChange"
1097
+ }, {
1098
+ "propName": "status",
1099
+ "methodName": "resetMoved"
1100
+ }, {
1101
+ "propName": "open",
1102
+ "methodName": "resetMoved"
1103
+ }];
1104
+ }
1105
+ static get listeners() {
1106
+ return [{
1107
+ "name": "bsItemSelect",
1108
+ "method": "onItemSelect",
1109
+ "target": undefined,
1110
+ "capture": false,
1111
+ "passive": false
1112
+ }];
1113
+ }
1114
+ }